REORG: listener: move the bind_conf's thread setup code to listener.c
authorWilly Tarreau <w@1wt.eu>
Sat, 22 Apr 2023 21:25:38 +0000 (23:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Apr 2023 07:46:15 +0000 (09:46 +0200)
commitf6a8444f55edf928eebdd6a51ad26f621a6ddacc
tree340399fbff08fc09e8a19d935aa4ad6aef1fdf31
parent4c538df28c972b75ef8f543b60d3a2c67f9e98e8
REORG: listener: move the bind_conf's thread setup code to listener.c

What used to be only two lines to apply a mask in a loop in
check_config_validity() grew into a 130-line block that performs deeply
listener-specific operations that do not have their place there anymore.
In addition it's worth noting that the peers code still doesn't support
shards nor being bound to more than one group, which is a second reason
for moving that code to its own function. Nothing was changed except
recreating the missing variables from the bind_conf itself (the fe only).
include/haproxy/listener.h
src/cfgparse.c
src/listener.c