Skip to content

Conversation

@theaeolianmachine
Copy link
Contributor

@theaeolianmachine theaeolianmachine commented Feb 26, 2017

Currently you can't set a timeout on a request, leading to program hangs when the connection never gets back to you (I've ran into this personally a few times).

This adds the ability to set the timeout on any call, as recommended by requests:
http://docs.python-requests.org/en/master/user/quickstart/#timeouts

Would really love to be able to use this sometime soon.

@theaeolianmachine
Copy link
Contributor Author

Something to consider - this does what you expect on a single call, but on a paged call I'm pretty sure it means it won't fetch any future pages once the Timeout exception is thrown. Is that the behavior that we want? Don't necessarily have strong opinions here.

@theaeolianmachine theaeolianmachine force-pushed the add_timeout_to_request_options branch from 66c7e65 to 180a96f Compare January 10, 2018 01:32
@theaeolianmachine theaeolianmachine merged commit bac44ab into master Jan 11, 2018
@theaeolianmachine theaeolianmachine deleted the add_timeout_to_request_options branch January 11, 2018 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants