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 b3384af commit 5a0d51bCopy full SHA for 5a0d51b
Doc/library/socket.rst
@@ -1506,8 +1506,9 @@ to sockets.
1506
1507
Receive data from the socket. The return value is a bytes object representing the
1508
data received. The maximum amount of data to be received at once is specified
1509
- by *bufsize*. See the Unix manual page :manpage:`recv(2)` for the meaning of
1510
- 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
1511
+ *flags*; it defaults to zero.
1512
1513
.. note::
1514
0 commit comments