ozgur / python-firebase

Python interface to the Firebase's REST API
http://ozgur.github.com/python-firebase/
MIT License
593 stars 155 forks source link

Modify requests ReadTimeout #53

Closed TylerAldrich closed 6 years ago

TylerAldrich commented 9 years ago

Add ability to customize requests ReadTimeout if session with timeout attribute is passed in, otherwise default to decorators value.

Allows you to pass in your own requests.Session() object with a timeout field. This allows people to have a customized ReadTimeout that is much shorter than the default 60 seconds. Useful when Firebase is having intermittent server issues, so retrys can happen at a quicker rate.

garhiggins commented 8 years ago

+1, was just considering writing this same pull request.

rodrhern commented 8 years ago

+1 for the fix http_connection overwrites timeout, even if you provide a connection with a different timeout, you will always have 60