Skip to content

Commit e3b303a

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 0d57f10 commit e3b303a

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
@@ -670,8 +670,8 @@ The following functions all create :ref:`socket objects <socket-objects>`.
670670
``(host, port)``) and return the socket object.
671671

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

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

0 commit comments

Comments
 (0)