Skip to content

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 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

…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>
@gpshead gpshead enabled auto-merge (squash) January 18, 2025 00:50
@gpshead gpshead merged commit 8a8f5d6 into python:3.12 Jan 18, 2025
30 checks passed
@miss-islington miss-islington deleted the backport-3829104-3.12 branch January 2, 2026 18:01
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