[docs] [issue26703] Socket state corrupts when original socket object goes out of scope in a different thread

Martin Panter report at bugs.python.org
Wed Apr 6 18:15:24 EDT 2016


Martin Panter added the comment:

Also, if you enable warnings (e.g. python -Wall), you should see that the socket is being closed:

-c:22: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 8080)>

----------

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


More information about the docs mailing list