mirror of
https://github.com/python/cpython.git
synced 2025-09-30 04:15:43 +00:00
[3.12] gh-112020: Document the meaning of empty bytes returned by socket.recv() (GH-112055) (GH-115722)
(cherry picked from commit e71468ba4f
)
Co-authored-by: talcs <talh8787@gmail.com>
This commit is contained in:
parent
82e01a8b6d
commit
b7c633fbfc
1 changed files with 3 additions and 2 deletions
|
@ -1605,8 +1605,9 @@ to sockets.
|
||||||
|
|
||||||
Receive data from the socket. The return value is a bytes object representing the
|
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
|
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
|
by *bufsize*. A returned empty bytes object indicates that the client has disconnected.
|
||||||
the optional argument *flags*; it defaults to zero.
|
See the Unix manual page :manpage:`recv(2)` for the meaning of the optional argument
|
||||||
|
*flags*; it defaults to zero.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue