◐ Shell
clean mode source ↗

GH-98539: fix ref cycle in `_SSLProtocolTransport` after close by kumaraditya303 · Pull Request #98540 · python/cpython

@kumaraditya303

gvanrossum

gvanrossum

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Oct 22, 2022
…ythonGH-98540)

(cherry picked from commit 62bf5d8)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>

gvanrossum pushed a commit that referenced this pull request

Oct 24, 2022
…GH-98540) (#98551)

GH-98539: fix ref cycle in `_SSLProtocolTransport` after close  (GH-98540)
(cherry picked from commit 62bf5d8)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>

pquentin added a commit to pquentin/rally that referenced this pull request

May 4, 2023
Since python/cpython#98540 which was included in
Python 3.11.1, aiohttp can fail if two tasks are trying to close the
connection concurrently.

This was referenced

May 4, 2023

bdraco added a commit to home-assistant/core that referenced this pull request

May 13, 2023
There is currently a relatively fast memory leak when using
cpython 3.11.2+ and cleanup_closed with aiohttp

For my production instance it was leaking ~450MiB per day
of `MemoryBIO`, `SSLProtocol`, `SSLObject`, `_SSLProtocolTransport`
`memoryview`, and `managedbuffer` objects

see aio-libs/aiohttp#7252
see python/cpython#98540

balloob pushed a commit to home-assistant/core that referenced this pull request

May 14, 2023
…93013)

* Disable cleanup_closed for aiohttp.TCPConnector with cpython 3.11.2+

There is currently a relatively fast memory leak when using
cpython 3.11.2+ and cleanup_closed with aiohttp

For my production instance it was leaking ~450MiB per day
of `MemoryBIO`, `SSLProtocol`, `SSLObject`, `_SSLProtocolTransport`
`memoryview`, and `managedbuffer` objects

see aio-libs/aiohttp#7252
see python/cpython#98540

* Update homeassistant/helpers/aiohttp_client.py

balloob pushed a commit to home-assistant/core that referenced this pull request

May 14, 2023
…93013)

* Disable cleanup_closed for aiohttp.TCPConnector with cpython 3.11.2+

There is currently a relatively fast memory leak when using
cpython 3.11.2+ and cleanup_closed with aiohttp

For my production instance it was leaking ~450MiB per day
of `MemoryBIO`, `SSLProtocol`, `SSLObject`, `_SSLProtocolTransport`
`memoryview`, and `managedbuffer` objects

see aio-libs/aiohttp#7252
see python/cpython#98540

* Update homeassistant/helpers/aiohttp_client.py