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>
Fri, 7 Jan 2022 14:25:14 +0000 (15:25 +0100)
commitac1d29e8a67447941b4b1606be865dd6bbdd2b54
tree0fe6418e95220df174e896e9a0721c2f8bd197a3
parent5f904e0e22b56bfd96ceb716027d8d7ed3e02267
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>
include/haproxy/compat.h