[issue32038] Add API to intercept socket.close()

Yury Selivanov report at bugs.python.org
Thu Nov 16 11:40:25 EST 2017


Yury Selivanov <yselivanov at gmail.com> added the comment:

> Oh, sock._decref_socketios() must be uesd here to really close the socket if it was closed in the meanwhile:

For it to work correctly, socket objects should be initialized with "self._io_refs = 1".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32038>
_______________________________________


More information about the Python-bugs-list mailing list