-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
library: use timeouts #52
Comments
Very good idea 😄 Nice implementation suggestion as well. I'll do this. Do you think we should put a default timeout? If yes, how many seconds? |
Yes, I think a default timeout would be useful, Probably a long timeout like 60 or 120 seconds. Because users probably don't expect that operations can potentially block forever. |
Thanks, then I'll use a default timeout of 60 seconds. |
Released in 0.9.0. You can use the global |
Sometimes network calls can block forever if no timeouts are specified. For example here
aria2p/src/aria2p/client.py
Line 324 in 56d7d7a
It would be good if a timeout could be passed to requests.
Maybe it could be specified globally for the client like
Client(..., timeout=60)
and then userequests.post(..., timeout=self.timeout)
.The text was updated successfully, but these errors were encountered: