]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cli: _getsocks must send the peers sockets
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 16 Jan 2020 14:32:08 +0000 (15:32 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 16 Jan 2020 15:25:22 +0000 (16:25 +0100)
commit5fd3b28c9c071376a9bffb427b25872ffc068601
treed3f2f13d23b8a42379957404eb038db4feaba095
parentec9ac54982841d49859747f6a535bf7444284bc3
BUG/MEDIUM: cli: _getsocks must send the peers sockets

This bug prevents to reload HAProxy when you have both the seamless
reload (-x / expose-fd listeners) and the peers.

Indeed the _getsocks command does not send the FDs of the peers
listeners, so if no reuseport is possible during the bind, the new
process will fail to bind and exits.

With this feature, it is not possible to fallback on the SIGTTOU method
if we didn't receive all the sockets, because you can't close() the
sockets of the new process without closing those of the previous
process, they are the same.

Should fix bug #443.

Must be backported as far as 1.8.
src/cli.c