-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-128916: Do not set SO_REUSEPORT
on non-AF_INET*
sockets
#128933
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
Merged
gpshead
merged 2 commits into
python:main
from
mgorny:no-reuseport-on-unix-sockets-128916
Jan 18, 2025
Merged
gh-128916: Do not set SO_REUSEPORT
on non-AF_INET*
sockets
#128933
gpshead
merged 2 commits into
python:main
from
mgorny:no-reuseport-on-unix-sockets-128916
Jan 18, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do not attempt to set ``SO_REUSEPORT`` on sockets of address familifies other than ``AF_INET`` and ``AF_INET6``, as it is meaningless with these address families, and the call with fail with Linux kernel 6.12.9 and newer.
vsajip
reviewed
Jan 17, 2025
Misc/NEWS.d/next/Library/2025-01-17-11-46-16.gh-issue-128916.GEePbO.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
asvetlov
approved these changes
Jan 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
gpshead
approved these changes
Jan 18, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Jan 18, 2025
…ythonGH-128933) * pythongh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets Do not attempt to set ``SO_REUSEPORT`` on sockets of address familifies other than ``AF_INET`` and ``AF_INET6``, as it is meaningless with these address families, and the call with fail with Linux kernel 6.12.9 and newer. * Apply suggestions from code review Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> --------- (cherry picked from commit 3829104) Co-authored-by: Michał Górny <mgorny@gentoo.org> Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
GH-128969 is a backport of this pull request to the 3.13 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Jan 18, 2025
…ythonGH-128933) * pythongh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets Do not attempt to set ``SO_REUSEPORT`` on sockets of address familifies other than ``AF_INET`` and ``AF_INET6``, as it is meaningless with these address families, and the call with fail with Linux kernel 6.12.9 and newer. * Apply suggestions from code review Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> --------- (cherry picked from commit 3829104) Co-authored-by: Michał Górny <mgorny@gentoo.org> Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
GH-128970 is a backport of this pull request to the 3.12 branch. |
gpshead
pushed a commit
that referenced
this pull request
Jan 18, 2025
…GH-128933) (#128970) gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets (GH-128933) * gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets Do not attempt to set ``SO_REUSEPORT`` on sockets of address familifies other than ``AF_INET`` and ``AF_INET6``, as it is meaningless with these address families, and the call with fail with Linux kernel 6.12.9 and newer. * Apply suggestions from code review --------- (cherry picked from commit 3829104) Co-authored-by: Michał Górny <mgorny@gentoo.org> Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
gpshead
pushed a commit
that referenced
this pull request
Jan 18, 2025
…GH-128933) (#128969) gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets (GH-128933) * gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets Do not attempt to set ``SO_REUSEPORT`` on sockets of address familifies other than ``AF_INET`` and ``AF_INET6``, as it is meaningless with these address families, and the call with fail with Linux kernel 6.12.9 and newer. * Apply suggestions from code review --------- (cherry picked from commit 3829104) Co-authored-by: Michał Górny <mgorny@gentoo.org> Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Thanks! The test failure only affected 3.14, but I guess the change per se makes sense for older branches as well (for user code). |
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this pull request
Jan 21, 2025
…ythonGH-128933) * pythongh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets Do not attempt to set ``SO_REUSEPORT`` on sockets of address familifies other than ``AF_INET`` and ``AF_INET6``, as it is meaningless with these address families, and the call with fail with Linux kernel 6.12.9 and newer. * Apply suggestions from code review Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> --------- Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
befeleme
pushed a commit
to fedora-python/cpython
that referenced
this pull request
Jan 21, 2025
…ockets (pythonGH-128933) * pythongh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets Do not attempt to set ``SO_REUSEPORT`` on sockets of address familifies other than ``AF_INET`` and ``AF_INET6``, as it is meaningless with these address families, and the call with fail with Linux kernel 6.12.9 and newer. * Apply suggestions from code review Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> --------- Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Do not attempt to set
SO_REUSEPORT
on sockets of address familifies other thanAF_INET
andAF_INET6
, as it is meaningless with these address families, and the call with fail with Linux kernel 6.12.9 and newer.socketserver.Unix*Server
may attempt to setSO_REUSEPORT
on Unix sockets, causingEOPNOTSUPP
, e.g. intest_asyncio
#128916