mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
(Merge 3.4) Issue #22063: Mention in asyncio documentation that socket
operations require the socket to be non-blocking
This commit is contained in:
commit
c6aceeed29
1 changed files with 8 additions and 0 deletions
|
@ -337,6 +337,8 @@ Low-level socket operations
|
||||||
representing the data received. The maximum amount of data to be received
|
representing the data received. The maximum amount of data to be received
|
||||||
at once is specified by *nbytes*.
|
at once is specified by *nbytes*.
|
||||||
|
|
||||||
|
The socket *sock* must be non-blocking.
|
||||||
|
|
||||||
This method is a :ref:`coroutine <coroutine>`.
|
This method is a :ref:`coroutine <coroutine>`.
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
@ -351,6 +353,8 @@ Low-level socket operations
|
||||||
an exception is raised, and there is no way to determine how much data, if
|
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.
|
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>`.
|
This method is a :ref:`coroutine <coroutine>`.
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
@ -367,6 +371,8 @@ Low-level socket operations
|
||||||
:py:data:`~socket.AF_INET` and :py:data:`~socket.AF_INET6` address families.
|
:py:data:`~socket.AF_INET` and :py:data:`~socket.AF_INET6` address families.
|
||||||
Use :meth:`getaddrinfo` to resolve the hostname asynchronously.
|
Use :meth:`getaddrinfo` to resolve the hostname asynchronously.
|
||||||
|
|
||||||
|
The socket *sock* must be non-blocking.
|
||||||
|
|
||||||
This method is a :ref:`coroutine <coroutine>`.
|
This method is a :ref:`coroutine <coroutine>`.
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
@ -384,6 +390,8 @@ Low-level socket operations
|
||||||
and *address* is the address bound to the socket on the other end of the
|
and *address* is the address bound to the socket on the other end of the
|
||||||
connection.
|
connection.
|
||||||
|
|
||||||
|
The socket *sock* must be non-blocking.
|
||||||
|
|
||||||
This method is a :ref:`coroutine <coroutine>`.
|
This method is a :ref:`coroutine <coroutine>`.
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue