Martin Panter added the comment:

I still think something is closing your socket object. I cannot see what it is 
from the code you posted though. If you update the print() call, I expect you 
will see that it is closed, and the file descriptor is set to -1:

print("sock_err @ ", msg[1], msg[1]._closed, msg[1].fileno())  # Expect True, -1


Python tracker <>
Python-bugs-list mailing list

Reply via email to