mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
gh-96773 Fix documentation of socket backlog (GH-96778)
(cherry picked from commit 1d1480fefc
)
Co-authored-by: Mehrdad Moradizadeh <mhrddmoradii@gmail.com>
This commit is contained in:
parent
d0a9bc5a89
commit
c7dcfdaef6
1 changed files with 2 additions and 2 deletions
|
@ -717,8 +717,8 @@ The following functions all create :ref:`socket objects <socket-objects>`.
|
||||||
``(host, port)``) and return the socket object.
|
``(host, port)``) and return the socket object.
|
||||||
|
|
||||||
*family* should be either :data:`AF_INET` or :data:`AF_INET6`.
|
*family* should be either :data:`AF_INET` or :data:`AF_INET6`.
|
||||||
*backlog* is the queue size passed to :meth:`socket.listen`; when ``0``
|
*backlog* is the queue size passed to :meth:`socket.listen`; if not specified
|
||||||
a default reasonable value is chosen.
|
, a default reasonable value is chosen.
|
||||||
*reuse_port* dictates whether to set the :data:`SO_REUSEPORT` socket option.
|
*reuse_port* dictates whether to set the :data:`SO_REUSEPORT` socket option.
|
||||||
|
|
||||||
If *dualstack_ipv6* is true and the platform supports it the socket will
|
If *dualstack_ipv6* is true and the platform supports it the socket will
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue