We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e00960a commit e71468bCopy full SHA for e71468b
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