]> granicus.if.org Git - python/commitdiff
Issue #22063: Mention in asyncio documentation that socket operations require
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 29 Jul 2014 21:12:22 +0000 (23:12 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 29 Jul 2014 21:12:22 +0000 (23:12 +0200)
the socket to be non-blocking

Doc/library/asyncio-eventloop.rst

index b44fe753b80be1c47f4dde56386b193333ebe67e..1e16b9e6546abd32d241c825e3e2cad5929a46ea 100644 (file)
@@ -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::