]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: move the load-balancing keywords to their own parser
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 09:19:08 +0000 (11:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commit3a6686683b8f96cd322158a7447be94ae7bf8ce3
treefabf8ec9419fd47314e134b4f8a0f57911fabce6
parenta941ab6b0998b949355ffc7c424aa51e27e01d53
CLEANUP: cfgparse-listen: move the load-balancing keywords to their own parser

"balance", "hash-type" and "hash-balance-factor" are used to configure
the load balancing and require the backend capability, so they were moved
together to a new proxy_parse_balance() function registered in cfg_kws,
making them discoverable via "-dKcfg". As usual, backend_parse_balance()
now needs to take care of releasing the error message.
src/cfgparse-listen.c