STINNER Victor added the comment:

I'm not sure that it's a good idea to compare asyncore and asyncio. While their 
name are similar, their design are *very* different. I'm only talking about the 
kernel, the core event loop checking for file descriptors.

In asyncio, when you close a transport, the transport is not *closed* 
immediately. It is scheduled to be closed as soon as possible: usually in the 
next loop iteration, but it can longer to complex transports like subprocesses 
or TLS connections.

Thanks to this design, asyncio doesn't have the race condition described in 
this issue.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30931>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to