gh-96773 Fix documentation of socket backlog (#96778)

This commit is contained in:
Mehrdad Moradizadeh 2023-01-01 10:06:17 -05:00 committed by GitHub
parent d52d4942cf
commit 1d1480fefc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -803,8 +803,8 @@ The following functions all create :ref:`socket objects <socket-objects>`.
``(host, port)``) and returns the socket object.
*family* should be either :data:`AF_INET` or :data:`AF_INET6`.
*backlog* is the queue size passed to :meth:`socket.listen`; when ``0``
a default reasonable value is chosen.
*backlog* is the queue size passed to :meth:`socket.listen`; if not specified
, a default reasonable value is chosen.
*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