-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Client raises asyncio.TimeoutError #7122
Comments
Hey @graingert, can this be related to your patch #6877? |
Looks like the code does raise aiohttp/aiohttp/client_proto.py Line 197 in 0d39c84
Line 504 in 0d39c84
|
This is not a new behavior. At least since version 2.3.10, this case raises |
Thanks for posting this question @poofeg. I had thought we had handled timeouts in our retry logic, but we didn't identify this exception as one that needs to be handled as well. I would suggest:
Do people agree the documentation should be updated to call out this behavior? |
@webknjaz @bdraco Any opinion on these timeouts? Also, I noticed that ClientResponse.start() reenters the same timer context that is already being used in the parent Client._request() call, which seems redundant.
Not as well. It's the only one that needs to be handled as it is the parent for all timeout exceptions. |
This could have been planned for future timeouts though (there are several proposed timeouts commented out in ClientTimeout). |
I don't have a strong opinion either way as long as the docs reflect what actually happens. I would consider this issue closed by the changes proposed in #8968 |
Describe the bug
Client raises
asyncio.TimeoutError
, although according to the documentation it seems thataiohttp.ServerTimeoutError
should be raised.To Reproduce
nc -l 8000
Expected behavior
Result: "aiohttp.ServerTimeoutError"
Logs/tracebacks
Python Version
3.11.0
aiohttp Version
3.8.3
multidict Version
6.0.2
yarl Version
1.8.1
OS
macOS 12.6.1
Related component
Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: