Message278795
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.
------------
except:
print(sock) #<- here it looks normal
time.sleep(3)
print(sock) #<- here it still looks normal
sock.close()
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. |
|
Date |
User |
Action |
Args |
2016-10-17 03:31:03 | GeorgeY | set | recipients:
+ GeorgeY, martin.panter |
2016-10-17 03:31:02 | GeorgeY | set | messageid: <1476675062.87.0.273420645229.issue28447@psf.upfronthosting.co.za> |
2016-10-17 03:31:02 | GeorgeY | link | issue28447 messages |
2016-10-17 03:31:01 | GeorgeY | create | |
|