Georgey added the comment:
Yes that is definitely a closed socket. But it is strange that in a single
thread server without select module, the socket is never closed until I
explicitly use close() method.
print(sock) #<- here it looks normal
print(sock) #<- here it still looks normal
print(sock) #<- finally the [closed] tag appears and all the details lost
So I guess the "Socket Automatically Closing" effect associate with "select"
module? For when I run the single-thread server in the IDLE and called
time.sleep(), it has been already treated as multi-thread.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list