]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96773 Fix documentation of socket backlog (#96778)
authorMehrdad Moradizadeh <mhrddmoradii@gmail.com>
Sun, 1 Jan 2023 15:06:17 +0000 (10:06 -0500)
committerGitHub <noreply@github.com>
Sun, 1 Jan 2023 15:06:17 +0000 (20:36 +0530)
Doc/library/socket.rst

index de2e1aa3868bb377d636b2b587e7f521e9dc575f..cffb19c8b7b571a630768f240ab63b400e47ccec 100644 (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