]> git.ipfire.org Git - thirdparty/krb5.git/commit
Only set SO_REUSEPORT on macOS 1429/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 23 Apr 2025 21:19:46 +0000 (17:19 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 25 Apr 2025 03:57:07 +0000 (23:57 -0400)
commite21e17e200cc9ad874628d4d2a9d6b0d7dbdf5ea
tree5a52a1c54d7372982363db746956bb1db7b4135e
parentb43ac6b2b02b0d81370aab337d31159aba219ed6
Only set SO_REUSEPORT on macOS

Recent versions of the Linux kernel (after commit
5b0af621c3f6ef9261cf6067812f2fd9943acb4b) return -1 with errno set to
EOPNOTSUPP when a process attempts to set SO_REUSEPORT on a UNIX
domain socket.  We started setting this flag in commit
c423f13cc2f3fbdbf48390535cb1629b99b0eb27 to work around a test suite
issue on macOS.  Restrict setting SO_REUSEPORT to macOS to avoid
unnecessary interactions with its behavior on other platforms.
src/kdc/t_sockact.c
src/lib/apputils/net-server.c