10000 socket.create_server: dualstack_ipv6 and family · Issue #129994 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

socket.create_server: dualstack_ipv6 and family #129994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AEErshov opened this issue Feb 11, 2025 · 2 comments
Closed

socket.create_server: dualstack_ipv6 and family #129994

AEErshov opened this issue Feb 11, 2025 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@AEErshov
Copy link
Contributor
AEErshov commented Feb 11, 2025

Documentation

Calling socket.create_server with dualstack_ipv6=True expect family=AF_INET. For example:

socket.create_server(("", 12345), family=socket.AF_INET, dualstack_ipv6=True)

raise ValueError.

There is nothing about it docs. We should add this constrain in docs.

Linked PRs

@AEErshov AEErshov added the docs Documentation in the Doc dir label Feb 11, 2025
@picnixz
Copy link
Member
picnixz commented Feb 11, 2025

I guess we can indeed mention that dualstack_ipv6 requires family=socket.AF_INET6, although the example of https://docs.python.org/3/library/socket.html#socket.create_server is a bit implicit about that.

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Mar 30, 2025
…reate_server` (pythonGH-129996)

(cherry picked from commit 044a1e1)

Co-authored-by: Alexander Ershov <150328014+AEErshov@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Mar 30, 2025
…reate_server` (pythonGH-129996)

(cherry picked from commit 044a1e1)

Co-authored-by: Alexander Ershov <150328014+AEErshov@users.noreply.github.com>
picnixz pushed a commit that referenced this issue Mar 30, 2025
…create_server` (GH-129996) (#131891)

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>
@picnixz
Copy link
Member
picnixz commented Mar 30, 2025

Thank you for the report and the fix!

@picnixz picnixz closed this as completed Mar 30, 2025
picnixz pushed a commit that referenced this issue Mar 30, 2025
…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>
seehwan pushed a commit to seehwan/cpython that referenced this issue Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
Status: Todo
Development

No branches or pull requests

2 participants
0