[issue21119] asyncio create_connection resource warning

STINNER Victor report at bugs.python.org
Fri Apr 4 18:52:08 CEST 2014


STINNER Victor added the comment:

BaseEventLoop.create_datagram_endpoint() and _UnixSelectorEventLoop.create_unix_server() have the same bug.

close2.patch fixes these methods but also modify socketpair() to ensure that the 2 sockets are closed on error.

I didn't audit the whole asyncio module.

Note: BaseEventLoop.create_server() uses a different approach: a "completed" flag with a try/finally block.

----------
Added file: http://bugs.python.org/file34725/close2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21119>
_______________________________________


More information about the Python-bugs-list mailing list