diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-05-10 17:16:29 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-05-10 17:16:29 (GMT) |
commit | 1be815aac49bc0dc3937eb3a618fc9f1a6deb51a (patch) | |
tree | 53a031df40dc4b8cebfb5b5fe586ffdecd78c392 /Doc | |
parent | cda41d3bf74f97f8956eb9018bdc02c693b65282 (diff) | |
download | cpython-1be815aac49bc0dc3937eb3a618fc9f1a6deb51a.zip cpython-1be815aac49bc0dc3937eb3a618fc9f1a6deb51a.tar.gz cpython-1be815aac49bc0dc3937eb3a618fc9f1a6deb51a.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')
-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 bfb8ae9..14cd4ff 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -652,8 +652,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, \ |