BUG/MINOR: cli: fix _getsocks with musl libc
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 3 Jan 2022 18:43:41 +0000 (19:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Jan 2022 07:52:56 +0000 (08:52 +0100)
commit5ca0d91e56de1511680d31c6cd65761db56f4a7d
tree7e4e1c295ed271da0783472a196fdbf87fd8db5e
parent57e10ede3b8dd1d080d03f9c1cc8e357cdaf55c6
BUG/MINOR: cli: fix _getsocks with musl libc

In ticket #1413, the transfer of FDs couldn't correctly work on alpine
linux. After a few tests with musl on another distribution it seems to
be a limitation of this libc.

The number of FD that could be sent per sendmsg was set to 253, which
does not seem to work with musl, decreasing it 252 seems to work
better, so lets set this value everywhere since it does not have that
much impact.

This must be backported in every maintained version.

(cherry picked from commit 148d7a030156ca927e744013dd6fc32b473c1ef6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit ac1d29e8a67447941b4b1606be865dd6bbdd2b54)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 6b83f770a45faec876f207123fb358b1b79dfbea)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/compat.h