[pypy-issue] [issue1577] SSLSocket.close() doesn't work

Ben Darnell tracker at bugs.pypy.org
Mon Aug 5 17:27:35 CEST 2013

Ben Darnell <ben at bendarnell.com> added the comment:

I don't think it's the same issue - in this case the type is still _realsocket.  

The problem is that after wrap_socket, the _realsocket has a refcount of 2.  The 
original socket is rendered unusable by the wrapping, so it should no longer 
retain a reference.  (cpython didn't actually guarantee this prior to 3.2; you'd 
have a similar leak in cpython 2.7 if the wrapped and unwrapped sockets had 
different names)

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list