Hello Python Dev, One of my HTTPS servers leaked over 8 GB of memory over the past week. After troubleshooting the issue, I managed to narrow it down to the minimal test case below:
https://gist.github.com/hydrogen-mvm/d588521c2138e0f98aa94b18e7dedfdb (Note that the 100 threads are not necessary, but they help exaggerate and accelerate the memory leaking.) The memory leak happens if I send a HTTPS request, regardless if it's GET or POST. The most bizarre part is the destination address does -not- need to exist and it still leaks! (In the script above it points to a non-existent HTTPS server on your localhost.) This leak does not happen for HTTP (plaintext) requests, which suggests that the bug might be SSL-related. My OS is Windows 7 and my Python version is: Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32 A friend of mine tested the script on his Windows 10 machine and also experienced the same memory leaking effect. Please confirm if this is in fact a bug in Python or this is a bug in my environment. Thanks.
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/HE4PXCWWDODJ6PHRUOZXSYCHMM53S3PN/