Skip to content

Commit

Permalink
[3.11] gh-112020: Document the meaning of empty bytes returned by soc…
Browse files Browse the repository at this point in the history
…ket.recv() (GH-112055) (GH-115723)

(cherry picked from commit e71468b)

Co-authored-by: talcs <talh8787@gmail.com>
  • Loading branch information
miss-islington and talcs authored Feb 20, 2024
1 parent b3384af commit 5a0d51b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1506,8 +1506,9 @@ to sockets.

Receive data from the socket. The return value is a bytes object representing the
data received. The maximum amount of data to be received at once is specified
by *bufsize*. See the Unix manual page :manpage:`recv(2)` for the meaning of
the optional argument *flags*; it defaults to zero.
by *bufsize*. A returned empty bytes object indicates that the client has disconnected.
See the Unix manual page :manpage:`recv(2)` for the meaning of the optional argument
*flags*; it defaults to zero.

.. note::

Expand Down

0 comments on commit 5a0d51b

Please sign in to comment.