KEMBAR78
[3.12] gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets (GH-128933) by miss-islington · Pull Request #128970 · python/cpython · GitHub
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>
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