]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: listener: store stream vs dgram at the bind_conf level
authorWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 14:15:01 +0000 (16:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 16:41:55 +0000 (18:41 +0200)
commit91b780a4553031b28796dd47b54eb58a7a1826fa
tree4455abdfd36a302e54253aa55793fd8bb72b9e3c
parent787e92a4fb1d48a555ed90ad9b7528f20c9eb3d0
CLEANUP: listener: store stream vs dgram at the bind_conf level

Let's collect the set of xprt-level and sock-level dgram/stream protocols
seen on a bind line and store that in the bind_conf itself while they're
being parsed. This will make it much easier to detect incompatibilities
later than the current approch which consists in scanning all listeners
in post-parsing.
include/haproxy/listener-t.h
src/cfgparse.c