[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:12:00 EDT 2016


Martin Panter added the comment:

The documentation already says “Sockets are automatically closed when they are garbage-collected”. If for some reason you want to release a socket object but keep the file descriptor open, I suggest socket.detach(). Otherwise, pass the original socket, not the fileno.

I think this is at best a documentation issue, if you have any suggestions.

----------
assignee:  -> docs at python
components: +Documentation -IO
nosy: +docs at python, martin.panter
type: crash -> behavior

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


More information about the docs mailing list