Message306373
From my example: "finally: sock._io_refs -= 1"
Oh, sock._decref_socketios() must be uesd here to really close the socket if it was closed in the meanwhile:
def _decref_socketios(self):
if self._io_refs > 0:
self._io_refs -= 1
if self._closed:
self.close() |
|
Date |
User |
Action |
Args |
2017-11-16 16:38:50 | vstinner | set | recipients:
+ vstinner, gvanrossum, pitrou, asvetlov, Ben.Darnell, yselivanov |
2017-11-16 16:38:50 | vstinner | set | messageid: <1510850330.51.0.213398074469.issue32038@psf.upfronthosting.co.za> |
2017-11-16 16:38:50 | vstinner | link | issue32038 messages |
2017-11-16 16:38:50 | vstinner | create | |
|