]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets (GH-128933...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 18 Jan 2025 03:45:42 +0000 (04:45 +0100)
committerGitHub <noreply@github.com>
Sat, 18 Jan 2025 03:45:42 +0000 (03:45 +0000)
commitd8a442637bf3ce588ea6023439317954c9fa8a58
treedc68dbbad31dbe5d4acc8564538fb2f3b2fa1d69
parent77e29c75da6598d8e2bb8704ae42a69e44e2d874
[3.13] gh-128916: Do not set `SO_REUSEPORT` on non-`AF_INET*` sockets (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 3829104ab412a47bf3f36b8c133c886d2cc9a6d4)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Lib/asyncio/base_events.py
Lib/socket.py
Lib/socketserver.py
Misc/NEWS.d/next/Library/2025-01-17-11-46-16.gh-issue-128916.GEePbO.rst [new file with mode: 0644]