You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
socket.has_dualstack_ipv6() incorrectly returns True on DragonFly BSD #154291
On DragonFly BSD, socket.has_dualstack_ipv6() returns True, but dualstack sockets do not actually work: setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, 0) succeeds silently without clearing the flag, so the socket stays IPv6-only and an IPv4 client connection is refused.
has_dualstack_ipv6() only checks that setsockopt does not raise, so it does not detect this. It should verify with getsockopt that IPV6_V6ONLY was actually cleared.
This makes test_socket.test_dual_stack_client_v4 fail on DragonFly with ConnectionRefusedError.
Activity
gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292)
[3.13] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (G…
[3.14] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (G…
[3.15] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (G…