STINNER Victor <[email protected]> added the comment:
>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()
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32038>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com