Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec2ce09

Browse files
committed
Issue #22063: Mention in asyncio documentation that socket operations require
the socket to be non-blocking
1 parent 9c9f1f1 commit ec2ce09

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ Low-level socket operations
337337
representing the data received. The maximum amount of data to be received
338338
at once is specified by *nbytes*.
339339

340+
The socket *sock* must be non-blocking.
341+
340342
This method is a :ref:`coroutine <coroutine>`.
341343

342344
.. seealso::
@@ -351,6 +353,8 @@ Low-level socket operations
351353
an exception is raised, and there is no way to determine how much data, if
352354
any, was successfully processed by the receiving end of the connection.
353355

356+
The socket *sock* must be non-blocking.
357+
354358
This method is a :ref:`coroutine <coroutine>`.
355359

356360
.. seealso::
@@ -367,6 +371,8 @@ Low-level socket operations
367371
:py:data:`~socket.AF_INET` and :py:data:`~socket.AF_INET6` address families.
368372
Use :meth:`getaddrinfo` to resolve the hostname asynchronously.
369373

374+
The socket *sock* must be non-blocking.
375+
370376
This method is a :ref:`coroutine <coroutine>`.
371377

372378
.. seealso::
@@ -384,6 +390,8 @@ Low-level socket operations
384390
and *address* is the address bound to the socket on the other end of the
385391
connection.
386392

393+
The socket *sock* must be non-blocking.
394+
387395
This method is a :ref:`coroutine <coroutine>`.
388396

389397
.. seealso::

0 commit comments

Comments
 (0)