diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-29 21:12:34 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-29 21:12:34 (GMT) |
commit | c6aceeed29f5bcb238cc3ab0a1010f34648666cb (patch) | |
tree | 9fe113d984ea9361dcaa0f7f997b0473a1d03b76 /Doc | |
parent | 66565649b53b39a11306d96935be8a4810a70f3f (diff) | |
parent | ec2ce092a2e2ea82e7dc178531dd8870af79e3a5 (diff) | |
download | cpython-c6aceeed29f5bcb238cc3ab0a1010f34648666cb.zip cpython-c6aceeed29f5bcb238cc3ab0a1010f34648666cb.tar.gz cpython-c6aceeed29f5bcb238cc3ab0a1010f34648666cb.tar.bz2 |
(Merge 3.4) Issue #22063: Mention in asyncio documentation that socket
operations require the socket to be non-blocking
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index b44fe75..1e16b9e 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -337,6 +337,8 @@ Low-level socket operations representing the data received. The maximum amount of data to be received at once is specified by *nbytes*. + The socket *sock* must be non-blocking. + This method is a :ref:`coroutine <coroutine>`. .. seealso:: @@ -351,6 +353,8 @@ Low-level socket operations an exception is raised, and there is no way to determine how much data, if any, was successfully processed by the receiving end of the connection. + The socket *sock* must be non-blocking. + This method is a :ref:`coroutine <coroutine>`. .. seealso:: @@ -367,6 +371,8 @@ Low-level socket operations :py:data:`~socket.AF_INET` and :py:data:`~socket.AF_INET6` address families. Use :meth:`getaddrinfo` to resolve the hostname asynchronously. + The socket *sock* must be non-blocking. + This method is a :ref:`coroutine <coroutine>`. .. seealso:: @@ -384,6 +390,8 @@ Low-level socket operations and *address* is the address bound to the socket on the other end of the connection. + The socket *sock* must be non-blocking. + This method is a :ref:`coroutine <coroutine>`. .. seealso:: |