summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-05-10 19:19:13 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2011-05-10 19:19:13 +0200
commit462bdd8cc05e12fb2a68f0329ccd2e42a8e17c47 (patch)
tree4145b454ce18e89412cda8884e5c2efc116775e8 /Doc
parent42bd637389cf900ae1fdca47b3fb688b39679fdf (diff)
parent05b2fcfa19d374e219d5f0250bf3bb100797a5c2 (diff)
downloadcpython-462bdd8cc05e12fb2a68f0329ccd2e42a8e17c47.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')
-rw-r--r--Doc/library/socket.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 65533df2cd..0357be79c0 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -662,8 +662,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='r', buffering=None, *, encoding=None, \