]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cli: fix _getsocks with musl libc
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 3 Jan 2022 18:43:41 +0000 (19:43 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 3 Jan 2022 18:50:34 +0000 (19:50 +0100)
commit148d7a030156ca927e744013dd6fc32b473c1ef6
tree73517464f68ff16b4c46e4528878920235193f0a
parentae5c42f4d0ce74af7554b9a94c8a3c43286efc35
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.
include/haproxy/compat.h