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

Reply via email to