Yury Selivanov <yseliva...@gmail.com> added the comment:

> Why not instead add `loop.sock_close()`?

It wouldn't help if the program calls `socket.close()` somewhere.  This can 
happen easily in big code bases.

Ideally (at least I think so) we need to provide a guarantee that the socket 
object can't be closed at all (or be closed in a controlled manner) if it's 
being operated by asyncio/event-loop.

----------

_______________________________________
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

Reply via email to