8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d2ec89 commit 39bb8a5Copy full SHA for 39bb8a5
Doc/library/socket.rst
@@ -1605,8 +1605,9 @@ to sockets.
1605
1606
Receive data from the socket. The return value is a bytes object representing the
1607
data received. The maximum amount of data to be received at once is specified
1608
- by *bufsize*. See the Unix manual page :manpage:`recv(2)` for the meaning of
1609
- 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
1610
+ *flags*; it defaults to zero.
1611
1612
.. note::
1613
0 commit comments