]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: listener: keep a single thread-mask and warn on "process" misuse
authorWilly Tarreau <w@1wt.eu>
Sat, 2 Feb 2019 12:14:34 +0000 (13:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Feb 2019 13:27:07 +0000 (14:27 +0100)
commita36b324777d5230f1eb0d77b01b5d54642d791ca
tree87408b6f419775bf79e3ec82b79d807723a59a38
parent26f6ae12c038365a56cd8d33fd5f97f816e3e97b
MEDIUM: listener: keep a single thread-mask and warn on "process" misuse

Now that nbproc and nbthread are exclusive, we can still provide more
detailed explanations about what we've found in the config when a bind
line appears on multiple threads and processes at the same time, then
ignore the setting.

This patch reduces the listener's thread mask to a single mask instead
of an array of masks per process. Now we have only one thread mask and
one process mask per bind-conf. This removes ~504 bytes of RAM per
bind-conf and will simplify handling of thread masks.

If a "bind" line only refers to process numbers not found by its parent
frontend or not covered by the global nbproc directive, or to a thread
not covered by the global nbthread directive, a warning is emitted saying
what will be used instead.
doc/configuration.txt
include/types/listener.h
src/cfgparse.c
src/listener.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c