-
-
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
Getting Connection closed with aiohttp client #2849
Comments
Sorry, but if there is no way to reproduce the problem on depveloper's machine -- a chance to get is fixed is close to zero. You wrote that aiohttp client generates |
Thank you for your response. I understand that my description of problem is not enough for developers to understand the cause. However, probably you can suggest, how can we debug/investigate this issue to get more information on it? |
Please confirm that you are not running into the "abort HTTP requests that last longer than 5 minutes by default" issue: #2249 |
It's definitely not the same problem. Our requests are far less then 5 minutes, it's just 1K json + headers. |
Hi. We found a problem in our own code: connection was closed before response was read (response was read outside of context manager). This issue can be closed Sorry for taking your time, and thanks a lot for your work! |
Cool! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
We have an asyncio-based application, which uses aiohttp to query REST api. Sometimes requests to this API fail with following error (pasted only aiohttp part of stack trace):
This is easily reproduced when we generate a lot of api requests from our application, but it does not reproduced when we do the same requests with curl, so it does not seem to be server/network issue.
Expected behaviour
Client executes requests without errors (just like curl does)
Actual behaviour
client gets {{Connection closed}} error
Steps to reproduce
Do a lot of requests to specific server from specific application. Not sure how can it be reproduced in third-party environment.
Your environment
python 3.5.5
aiohttp 2.3.2 (also tested with 3.0.8 - same
additional information
I dumped network traffic using tcpdump and session with error looks totally the same as session without error (server ip changed to
10.10.0.1
):The text was updated successfully, but these errors were encountered: