MINOR: sock: add a function to check for SO_REUSEPORT support at runtime
authorWilly Tarreau <w@1wt.eu>
Sat, 22 Apr 2023 16:25:09 +0000 (18:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Apr 2023 07:46:15 +0000 (09:46 +0200)
commitb073573c10bbe06420dcbe7c8deab75feac91ed7
treef95239ab09965425dc35a412ef047386a4e557fb
parent8a5e6f4cca2396c5c498d9ebbdc12f9624ac6a48
MINOR: sock: add a function to check for SO_REUSEPORT support at runtime

The new function _sock_supports_reuseport() will be used to check if a
protocol type supports SO_REUSEPORT or not. This will be useful to verify
that shards can really work.
include/haproxy/sock.h
src/sock.c