MEDIUM: mworker: try to guess the next stats socket to use with -x
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 1 Jun 2017 15:38:53 +0000 (17:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 08:56:32 +0000 (10:56 +0200)
commit85b0bd9e54041501248eff73e0f9901ffc7ed140
tree4082ce7af8501b152ab620b9256c7350555c1400
parentcb11fd2c7a32f5476f76cc93ed4c712935222a23
MEDIUM: mworker: try to guess the next stats socket to use with -x

In master worker mode, you can't specify the stats socket where you get
your listeners FDs on a reload, because the command line of the re-exec
is launched by the master.

To solve the problem, when -x is found on the command line, its
parameter is rewritten on a reexec with the first stats socket with the
capability to send sockets. It tries to reuse the original parameter if
it has this capability.
src/haproxy.c