summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authortalcs <talh8787@gmail.com>2024-02-20 14:54:33 (GMT)
committerGitHub <noreply@github.com>2024-02-20 14:54:33 (GMT)
commite71468ba4f5fb2da0cefe9e923b01811cb53fb5f (patch)
tree43e24bf9083c8757dab7aa239c91c4509e297482 /Doc
parente00960a74d66f95b7803f8e5546267a078fd065c (diff)
downloadcpython-e71468ba4f5fb2da0cefe9e923b01811cb53fb5f.zip
cpython-e71468ba4f5fb2da0cefe9e923b01811cb53fb5f.tar.gz
cpython-e71468ba4f5fb2da0cefe9e923b01811cb53fb5f.tar.bz2
gh-112020: Document the meaning of empty bytes returned by socket.recv() (GH-112055)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/socket.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 4bfb0d8..dccf78e 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::