Skip to content

[3.15] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292)#154299

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-c7bbf04-3.15
Jul 20, 2026
Merged

[3.15] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292)#154299
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-c7bbf04-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

On DragonFly BSD setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, 0) succeeds without
actually clearing the flag, so has_dualstack_ipv6() wrongly returned True.
Verify with getsockopt() that IPV6_V6ONLY was cleared.
(cherry picked from commit c7bbf04)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

…thonGH-154292)

On DragonFly BSD setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, 0) succeeds without
actually clearing the flag, so has_dualstack_ipv6() wrongly returned True.
Verify with getsockopt() that IPV6_V6ONLY was cleared.
(cherry picked from commit c7bbf040e721781be8f11a3b0716220835d4de2f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 20, 2026 20:01
@serhiy-storchaka
serhiy-storchaka merged commit 4294605 into python:3.15 Jul 20, 2026
55 checks passed
@miss-islington
miss-islington deleted the backport-c7bbf04-3.15 branch July 20, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants