Skip to content

gh-109534: Asyncio sslproto memleak - #113338

Closed
ordinary-jamie wants to merge 2 commits into
python:mainfrom
ordinary-jamie:asyncio-sslproto-memleak
Closed

ordinary-jamie wants to merge 2 commits into
python:mainfrom
ordinary-jamie:asyncio-sslproto-memleak

Conversation

@ordinary-jamie

@ordinary-jamie ordinary-jamie commented Dec 20, 2023 •

Copy link
Copy Markdown
Contributor
When the `asyncio.sslproto.SSLProtocol` raises on handshake, it doesn't
appear to release its SSL buffer, causing a memory leak. This is because
of the `memoryview`. This commit releases the `memoryview` before
unsetting the reference to the `bytearray`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant