Skip to content

[3.13] gh-128916: Do not set SO_REUSEPORT on non-AF_INET* sockets (GH-128933) #128969

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
merged 1 commit into from
Jan 18, 2025

Conversation

miss-islington
Copy link
Contributor

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 [email protected]


(cherry picked from commit 3829104)

Co-authored-by: Michał Górny [email protected]
Co-authored-by: Vinay Sajip [email protected]

…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 <[email protected]>

---------
(cherry picked from commit 3829104)

Co-authored-by: Michał Górny <[email protected]>
Co-authored-by: Vinay Sajip <[email protected]>
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.

3 participants