mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection. Patch by Daniel Evers.
This commit is contained in:
parent
cda41d3bf7
commit
1be815aac4
5 changed files with 20 additions and 6 deletions
|
@ -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, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue