]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp: don't try to set/clear v6only on inherited sockets
authorWilly Tarreau <w@1wt.eu>
Wed, 26 Aug 2020 08:21:06 +0000 (10:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 26 Aug 2020 08:26:42 +0000 (10:26 +0200)
commitbbb284d6752c94817e37be9a26b5aea92e506612
tree5c3d861d803852bf1c1575a0064c24adb2360bfb
parentadabbfe5a446cf5e74d3d5614ee71ec292042c01
MINOR: tcp: don't try to set/clear v6only on inherited sockets

If a socket was already bound (inherited from a parent or retrieved from
a previous process), there's no point trying to change its IPV6_V6ONLY
state since it will fail. This is visible in strace as an EINVAL during
a reload when passing FDs.
src/proto_tcp.c