https://github.com/python/cpython/commit/b7c633fbfc9f365c7e00969c4fd980b63949db8f
commit: b7c633fbfc9f365c7e00969c4fd980b63949db8f
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-02-20T15:01:31Z
summary:

[3.12] gh-112020: Document the meaning of empty bytes returned by socket.recv() 
(GH-112055) (GH-115722)

(cherry picked from commit e71468ba4f5fb2da0cefe9e923b01811cb53fb5f)

Co-authored-by: talcs <[email protected]>

files:
M Doc/library/socket.rst

diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 4bfb0d8c2cfeac..dccf78ef8c0128 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1605,8 +1605,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::
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to