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:
Miss Islington (bot) 2023-01-01 07:13:50 -08:00 committed by GitHub
parent d0a9bc5a89
commit c7dcfdaef6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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