]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: move "stick" to its own parser
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 13:53:59 +0000 (15:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 08:30:59 +0000 (10:30 +0200)
commit0ac9feb5a3de9f9af206434abab34e42b10da3d6
tree741450cfdf9cc3ded6881485142a6eb4cc4aa04e
parentd3ad6094c3885c0c34d997f3dc1d2b707566daf8
CLEANUP: cfgparse-listen: move "stick" to its own parser

The stick rules are forbidden in a defaults section. They were moved
to a new proxy_parse_stick() function registered in cfg_kws, making
them discoverable via "-dKcfg".

The code is mostly the same, with error paths reworked to avoid chains of
free()+return calls in error paths.
src/cfgparse-listen.c