[New-bugs-announce] [issue22063] asyncio: sock_xxx() methods of event loops should make the socket non-blocking

STINNER Victor report at bugs.python.org
Fri Jul 25 01:24:17 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22063>
_______________________________________


More information about the New-bugs-announce mailing list