]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: move "option" to its own parser
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 15:58:18 +0000 (17:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 08:30:59 +0000 (10:30 +0200)
commit34c596dc0e0c06e74bab04e833bbbe8a8aa6bb29
tree06c6f0bd8f89110f67a1e77b8eeaf5dde48692c4
parentb2b6115d496596241448c6016eed779cb71675e6
CLEANUP: cfgparse-listen: move "option" to its own parser

This was by far the largest block of cfg_parse_listen(), about 470
lines. It is now registered in cfg_kws and parsed by
proxy_parse_option(), making the keyword discoverable via "-dKcfg". The
keyword modifier is taken from cfg_curr_kwm since the keyword parsers
don't receive it.

The whole block of non-standard options was a bit rearranged by
dependencies or behaviors so as to factor some code, mode checks and
flags setting.
src/cfgparse-listen.c