8000 [3.13] gh-129994: update docs when using `dualstack_ipv6` in `socket.… · python/cpython@1918799 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1918799

Browse files
[3.13] gh-129994: update docs when using dualstack_ipv6 in socket.create_server (GH-129996) (#131890)
gh-129994: update docs when using `dualstack_ipv6` in `socket.create_server` (GH-129996) (cherry picked from commit 044a1e1) Co-authored-by: Alexander Ershov <150328014+AEErshov@users.noreply.github.com>
1 parent 2570896 commit 1918799

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/socket.rst

Lines changed: 4 additions & 4 deletions
< 9A74 div data-testid="neutral diffstat" class="DiffSquares-module__diffSquare--h5kjy DiffSquares-module__neutral--VlyoP">
Original file line numberDiff line numberDiff line change
@@ -838,10 +838,10 @@ The following functions all create :ref:`socket objects <socket-objects>`.
838838
, a default reasonable value is chosen.
839839
*reuse_port* dictates whether to set the :data:`SO_REUSEPORT` socket option.
840840

841-
If *dualstack_ipv6* is true and the platform supports it the socket will
842-
be able to accept both IPv4 and IPv6 connections, else it will raise
843-
:exc:`ValueError`. Most POSIX platforms and Windows are supposed to support
844-
this functionality.
841+
If *dualstack_ipv6* is true, *family* is :data:`AF_INET6` and the platform
842+
supports it the socket will be able to accept both IPv4 and IPv6 connections,
843+
else it will raise :exc:`ValueError`. Most POSIX platforms and Windows are
844+
supposed to support this functionality.
845845
When this functionality is enabled the address returned by
846846
:meth:`socket.getpeername` when an IPv4 connection occurs will be an IPv6
847847
address represented as an IPv4-mapped IPv6 address.

0 commit comments

Comments
 (0)
0