]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: move the backend one-arg keywords to their own parser
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 16:05:59 +0000 (18:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commitc5669ed8eb9c9515df9baf7e170b48e9dc30f4e3
tree3880f9818e364134ead25771c3e8e352dcb11e2b
parent57fd31afb11789468dc068c90f116a38d1d3b966
CLEANUP: cfgparse-listen: move the backend one-arg keywords to their own parser

"retries", "http-reuse", "http-send-name-header", "dynamic-cookie-key",
"load-server-state-from-file" and "server-state-file-name" all require
the backend capability and take a single argument, so they were moved
together to a new proxy_parse_be_opts() function registered in cfg_kws,
making them discoverable via "-dKcfg". The code was slightly cleaned up
while moved, but nothing sensitive (removed some flag dance which already
caused bugs in the past, etc).
src/cfgparse-listen.c