[issue32038] Add API to intercept socket.close()
Yury Selivanov
report at bugs.python.org
Thu Nov 16 11:42:07 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:
There's also 'sock._closed' attribute that sock.close() and sock. _decref_socketios() interact with.. Alright, let me play with this in uvloop. So far it looks like we don't need any new APIs :)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32038>
_______________________________________
More information about the Python-bugs-list
mailing list