[Python-checkins] gh-96773 Fix documentation of socket backlog (#96778)

kumaraditya303 webhook-mailer at python.org
Sun Jan 1 10:06:23 EST 2023


https://github.com/python/cpython/commit/1d1480fefc6ae77d14d6eff007b180ff5d1cd5d4
commit: 1d1480fefc6ae77d14d6eff007b180ff5d1cd5d4
branch: main
author: Mehrdad Moradizadeh <mhrddmoradii at gmail.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-01-01T20:36:17+05:30
summary:

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

files:
M Doc/library/socket.rst

diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index de2e1aa3868b..cffb19c8b7b5 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -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



More information about the Python-checkins mailing list