_SSLProtocolTransport
keeps reference to protocol after close
#98539
Labels
_SSLProtocolTransport
keeps reference to protocol after close
#98539
kumaraditya303 commentedOct 22, 2022
_SSLProtocolTransport
keeps reference to protocol after close. It leads to reference cyeles between the transport and the protocol and is bad for gc. Clearing this is better as it frees up the memory immediately without waiting for the gc. This causes memory leaks in some cases as if an exception occurs the deallocation is delayed even further as tracebacks keeps ref to frame and frame keeps locals alive.cpython/Lib/asyncio/sslproto.py
Lines 102 to 111 in 8d57423
The text was updated successfully, but these errors were encountered: