New submission from STINNER Victor:

The sock_xxx() methods of asyncio.BaseEventLoop don't make the socket 
non-blocking, and the documentation doesn't require that sockets are already 
set to non-blocking mode.

It looks like a bug, at least in the documentation.

If these methods should make the sockets non-blocking, should they also restore 
the previous timeout (blocking mode) at exit? 
ssl.SSLSocket.do_handshake(block=True) makes temporary the socket blocking, and 
then restore the previous timeout.

----------
components: asyncio
messages: 223909
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio: sock_xxx() methods of event loops should make the socket 
non-blocking
versions: Python 3.4, Python 3.5

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

Reply via email to