STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32038> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com