]> 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 07:32:58 +0000 (09:32 +0200)
commit4b5e341c21be9dd2ca7d35ea67b905a465e8efa3
treeb31ef74e32d61730b8e461f79a8bbba0ffd1a174
parent7aa4687330527da23a5f7f0bb4d09b115f1a9bfa
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