Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
GH-98539: fix ref cycle in_SSLProtocolTransport after close#98540
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
miss-islington commentedOct 22, 2022
Thanks@kumaraditya303 for the PR, and@gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…ythonGH-98540)(cherry picked from commit62bf5d8)Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
bedevere-bot commentedOct 22, 2022
GH-98551 is a backport of this pull request to the3.11 branch. |
Sincepython/cpython#98540 which was included inPython 3.11.1, aiohttp can fail if two tasks are trying to close theconnection concurrently.
There is currently a relatively fast memory leak when usingcpython 3.11.2+ and cleanup_closed with aiohttpFor my production instance it was leaking ~450MiB per dayof `MemoryBIO`, `SSLProtocol`, `SSLObject`, `_SSLProtocolTransport``memoryview`, and `managedbuffer` objectsseeaio-libs/aiohttp#7252seepython/cpython#98540
Dreamsorcerer commentedMay 13, 2023
This change makes it unsafe to call |
gvanrossum commentedMay 13, 2023
Makes sense. Can you send a PR? |
…93013)* Disable cleanup_closed for aiohttp.TCPConnector with cpython 3.11.2+There is currently a relatively fast memory leak when usingcpython 3.11.2+ and cleanup_closed with aiohttpFor my production instance it was leaking ~450MiB per dayof `MemoryBIO`, `SSLProtocol`, `SSLObject`, `_SSLProtocolTransport``memoryview`, and `managedbuffer` objectsseeaio-libs/aiohttp#7252seepython/cpython#98540* Update homeassistant/helpers/aiohttp_client.py
Dreamsorcerer commentedMay 14, 2023
…93013)* Disable cleanup_closed for aiohttp.TCPConnector with cpython 3.11.2+There is currently a relatively fast memory leak when usingcpython 3.11.2+ and cleanup_closed with aiohttpFor my production instance it was leaking ~450MiB per dayof `MemoryBIO`, `SSLProtocol`, `SSLObject`, `_SSLProtocolTransport``memoryview`, and `managedbuffer` objectsseeaio-libs/aiohttp#7252seepython/cpython#98540* Update homeassistant/helpers/aiohttp_client.py
…ome-assistant#93013)* Disable cleanup_closed for aiohttp.TCPConnector with cpython 3.11.2+There is currently a relatively fast memory leak when usingcpython 3.11.2+ and cleanup_closed with aiohttpFor my production instance it was leaking ~450MiB per dayof `MemoryBIO`, `SSLProtocol`, `SSLObject`, `_SSLProtocolTransport``memoryview`, and `managedbuffer` objectsseeaio-libs/aiohttp#7252seepython/cpython#98540* Update homeassistant/helpers/aiohttp_client.py
Uh oh!
There was an error while loading.Please reload this page.
_SSLProtocolTransportkeeps reference to protocol after close #98539