]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96773 Fix documentation of socket backlog (GH-96778)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 1 Jan 2023 15:13:50 +0000 (07:13 -0800)
committerGitHub <noreply@github.com>
Sun, 1 Jan 2023 15:13:50 +0000 (07:13 -0800)
(cherry picked from commit 1d1480fefc6ae77d14d6eff007b180ff5d1cd5d4)

Co-authored-by: Mehrdad Moradizadeh <mhrddmoradii@gmail.com>
Doc/library/socket.rst

index 8c260897dbaabc6d59b2dd7031bf352098a95020..bb689c4df8de5ec37cc6688556cee6d024a53a85 100644 (file)
@@ -717,8 +717,8 @@ The following functions all create :ref:`socket objects <socket-objects>`.
    ``(host, port)``) and return 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