[issue32038] Add API to intercept socket.close()
STINNER Victor
report at bugs.python.org
Thu Nov 16 12:05:36 EST 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
> Perhaps you can just dup() the socket? That's what the ref counter is for IIRC.
Sure. That's another option.
But for asyncio with a lot of concurrent users, I'm not sure that it's ok to create a temporary file descriptor, since there is a risk of hitting the maximum number of open file descriptors :-(
Depending on the platform and the event loop implementation, the limit may be low.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32038>
_______________________________________
More information about the Python-bugs-list
mailing list