[pypy-issue] Issue #2183: PyPy 4.0.0 SSL module appears to leak memory. (pypy/pypy)
issues-reply at bitbucket.org
Fri Nov 6 10:50:34 EST 2015
New issue 2183: PyPy 4.0.0 SSL module appears to leak memory.
Originally raised as [Requests issue #2862](https://github.com/kennethreitz/requests/issues/2862).
It seems that somewhere in the PyPy stack, the SSL module leaks memory. The following script slowly but indefinitely leaks memory on my machine (OS X 10.11 El Capitan) under the latest two PyPy releases (4.0.0 and 2.6.1) at least. The script does not leak under CPython 2.7.10.
The script is below:
ctx = ssl.create_default_context()
s = socket.create_connection(('www.bing.com', 443))
s = ctx.wrap_socket(s, server_hostname='www.bing.com')
if __name__ == '__main__':
Please let me know if there's any additional diagnostics you'd like to see.
More information about the pypy-issue