BUG/MINOR: peers: init bind_proc to 1 if it wasn't initialized
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 24 Mar 2020 15:02:48 +0000 (16:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:52:58 +0000 (16:52 +0200)
commitf9009aea0de127ede6f73c0c84153c1c57303229
tree84b4ed8d2b461b3f6ec339780fcce86f07bf5399
parente04beb23b0d1e6abbb94481612e3a7439f9172a5
BUG/MINOR: peers: init bind_proc to 1 if it wasn't initialized

Tim reported that in master-worker mode, if a stick-table is declared
but not used in the configuration, its associated peers listener won't
bind.

This problem is due the fact that the master-worker and the daemon mode,
depend on the bind_proc field of the peers proxy to disable the listener.
Unfortunately the bind_proc is left to 0 if no stick-table were used in
the configuration, stopping the listener on all processes.

This fixes sets the bind_proc to the first process if it wasn't
initialized.

Should fix bug #558. Should be backported as far as 1.8.

(cherry picked from commit a2cfd7e356f4d744294b510b05d88bf58304db25)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/cfgparse.c