[issue26703] Socket state corrupts when original socket object goes out of scope in a different thread
April 6, 2016
10:12 p.m.
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@python components: +Documentation -IO nosy: +docs@python, martin.panter type: crash -> behavior _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue26703> _______________________________________
3658
Age (days ago)
3658
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Panter