bpo-34745: Fix asyncio sslproto memory issues by fantix · Pull Request #12386 · python/cpython (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation7 Commits4 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
These issues are not strictly memory leaks, but they do affect the memory footprint and garbage collection if called frequently.
- Handshake timeout not cleaned in time
- Circular reference between
_SSLPipe
andSSLProtocol
- Circular reference between
SSLProtocol
andUserProtocol
https://bugs.python.org/issue34745
Before the fix:
After the fix:
- Break circular ref SSLProtocol <-> UserProtocol
1st1 approved these changes Mar 17, 2019
Thanks @fantix for the PR, and @1st1 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖
Sorry, @fantix and @1st1, I could not cleanly backport this to 3.6
due to a conflict.
Please backport using cherry_picker on command line.cherry_picker f683f464259715d620777d7ed568e701337a703a 3.6
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
- Fix handshake timeout leak in asyncio/sslproto
Break circular ref _SSLPipe <-> SSLProtocol
bpo-34745: Fix asyncio ssl memory leak
Break circular ref SSLProtocol <-> UserProtocol
Add NEWS entry (cherry picked from commit f683f46)
Co-authored-by: Fantix King fantix.king@gmail.com
@fantix Could you please make a pr against 3.6?
@1st1 sure thing, thanks for the quick response!
miss-islington added a commit that referenced this pull request
- Fix handshake timeout leak in asyncio/sslproto
Break circular ref _SSLPipe <-> SSLProtocol
bpo-34745: Fix asyncio ssl memory leak
Break circular ref SSLProtocol <-> UserProtocol
Add NEWS entry (cherry picked from commit f683f46)
Co-authored-by: Fantix King fantix.king@gmail.com
fantix deleted the fix-sslproto-handshake-timeout-leak branch
fantix added a commit to fantix/cpython that referenced this pull request
Fix handshake timeout leak in asyncio/sslproto, refs MagicStack/uvloop#222
Break circular ref _SSLPipe <-> SSLProtocol
bpo-34745: Fix asyncio ssl memory leak
Break circular ref SSLProtocol <-> UserProtocol
Add NEWS entry
Hi guys, sorry for reopening such an old issue. I'm just playing with asyncio+ssl.
My python version is 3.6.9; my asyncio version is 3.4.3. I still see the memory leak.
What can I upgrade in order to have this issue fixed in my current environment?
Thanks a lot,