Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Add HTTP timeout (default: 10s) #10

Merged
merged 2 commits into from
Mar 3, 2019
Merged

Add HTTP timeout (default: 10s) #10

merged 2 commits into from
Mar 3, 2019

Conversation

hjacobs
Copy link
Owner

@hjacobs hjacobs commented Mar 3, 2019

Fixes #7

From kelproject#156:

Add support for timeouts in HTTPClient. Without setting timeout some requests could hang indefinitely.

http://docs.python-requests.org/en/master/user/quickstart/#timeouts

I chose a default of 10 secs, not sure if this is the ideal value.

@hjacobs hjacobs changed the title #7 add HTTP timeout (default: 10s) Add HTTP timeout (default: 10s) Mar 3, 2019
@hjacobs hjacobs merged commit c4962c9 into master Mar 3, 2019
@hjacobs hjacobs deleted the http-timeout branch March 4, 2019 22:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant