Author GeorgeY
Recipients GeorgeY, martin.panter
Date 2016-10-17.03:31:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476675062.87.0.273420645229.issue28447@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-10-17 03:31:03GeorgeYsetrecipients: + GeorgeY, martin.panter
2016-10-17 03:31:02GeorgeYsetmessageid: <1476675062.87.0.273420645229.issue28447@psf.upfronthosting.co.za>
2016-10-17 03:31:02GeorgeYlinkissue28447 messages
2016-10-17 03:31:01GeorgeYcreate