Skip to content

Commit c7dcfda

Browse files
gh-96773 Fix documentation of socket backlog (GH-96778)
(cherry picked from commit 1d1480f) Co-authored-by: Mehrdad Moradizadeh <[email protected]>
1 parent d0a9bc5 commit c7dcfda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/socket.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@ The following functions all create :ref:`socket objects <socket-objects>`.
717717
``(host, port)``) and return the socket object.
718718

719719
*family* should be either :data:`AF_INET` or :data:`AF_INET6`.
720-
*backlog* is the queue size passed to :meth:`socket.listen`; when ``0``
721-
a default reasonable value is chosen.
720+
*backlog* is the queue size passed to :meth:`socket.listen`; if not specified
721+
, a default reasonable value is chosen.
722722
*reuse_port* dictates whether to set the :data:`SO_REUSEPORT` socket option.
723723

724724
If *dualstack_ipv6* is true and the platform supports it the socket will

0 commit comments

Comments
 (0)