summaryrefslogtreecommitdiffstats
path: root/Doc/library/socket.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-05-10 17:19:13 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-05-10 17:19:13 (GMT)
commit3cade9942e5e3cc6d185ee5c1b444498e297be02 (patch)
tree472cf36ec53e9a21ea524c620c06a9d376bd0256 /Doc/library/socket.rst
parent388196ed72fbac61eea511eefb36f8f94634a8b4 (diff)
parent1be815aac49bc0dc3937eb3a618fc9f1a6deb51a (diff)
downloadcpython-3cade9942e5e3cc6d185ee5c1b444498e297be02.zip
cpython-3cade9942e5e3cc6d185ee5c1b444498e297be02.tar.gz
cpython-3cade9942e5e3cc6d185ee5c1b444498e297be02.tar.bz2
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.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 65533df..0357be7 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, \