[issue10127] ssl.SSLSocket().close() does not close the connection

PoltoS report at bugs.python.org
Sat Oct 16 23:24:51 CEST 2010


PoltoS <poltorak at alsenet.com> added the comment:

After some investigations it seems that a dup() is called in ssl wrap_socket(), so on sock.close() the socket is not really closed, since there is still one more reference (file descriptor) in the kernel's tcp/ip stack. Can someone confirm this?

Have not done this, but it is possible to check my supposition using linux lsof command before and after .close().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10127>
_______________________________________


More information about the Python-bugs-list mailing list