-
-
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
stream response memory leak #3673
Comments
Seems, this is #3631. Please recheck. If so, please close issue. If not, please provide us a way to reproduce the bug. |
@asvetlov interesting, this bug was added a long time before I have started to inspect streams code :) |
The code i use is provided here. The issue you mentioned is with post method, for me its with get method. |
@odysseusmax you did not provide exact URL. The issue I have provided is not connected with specific method. It is connected with reading a chunked response. So, GET is affected too. |
@socketpair any link that points to some file greater than 1GB |
@odysseusmax if so, I consider this bug is fixed. Please re-test on latest 4.0 or 3.5 branch. |
okey will test and respond |
Reopen please if required. |
Issue is solved in 4.0 |
@odysseusmax actually in latest 3.5 too. |
Long story short
I'm using aiohttp for downloading files. From my experience I found that the chunked stream requests are causing memory leaks. I'm working with large files and i have very limited memory. When i make a request, it completes the request succesfully, but the response is loaded into memory and not released causing memory overflow.
Expected behaviour
Load chunked responses and release it to avoid memory leak.
Actual behaviour
Loads response content as chunks and not releasing.
Steps to reproduce
This is what i use.
Your environment
using aiohttp-client
script running on heroku
latest aiohttp (as of now)
The text was updated successfully, but these errors were encountered: