diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-05-10 19:16:03 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-05-10 19:16:03 +0200 |
commit | 32bb603da8b576d1fdfdd3ccebe91cf7dc5d3963 (patch) | |
tree | ff31c0392f0259e5e6b793d30992aa0eef232b3d /Doc/library/socket.rst | |
parent | e1a2bb917ddf2d0d9a89417d204cfbc2f95e603d (diff) | |
download | cpython-32bb603da8b576d1fdfdd3ccebe91cf7dc5d3963.tar.gz |
Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection. Patch by Daniel Evers.
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r-- | Doc/library/socket.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 96152f9d39..d6b1e4c5e5 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -644,8 +644,8 @@ correspond to Unix system calls applicable to sockets. .. method:: socket.listen(backlog) Listen for connections made to the socket. The *backlog* argument specifies the - maximum number of queued connections and should be at least 1; the maximum value - is system-dependent (usually 5). + maximum number of queued connections and should be at least 0; the maximum value + is system-dependent (usually 5), the minimum value is forced to 0. .. method:: socket.makefile([mode[, bufsize]]) |