]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: move "cookie" to its own parser
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 14:00:17 +0000 (16:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 08:30:59 +0000 (10:30 +0200)
commit99ecc2dcff49679cfed509b1a37513d9b89d179d
tree77e8d59d64028be16dd308a617de0259135e23dc
parent0ac9feb5a3de9f9af206434abab34e42b10da3d6
CLEANUP: cfgparse-listen: move "cookie" to its own parser

The keyword is now registered in cfg_kws and parsed by
proxy_parse_cookie(), making it discoverable via "-dKcfg".

The "maxidle" and "maxlife" options were essentially re-merged since
they differed by only the struct member receiving the parsed value.
The code was refactored a little bit since it never happened over the
years when keywords were added, but overall nothing fancy.

There's one minor change though, that's imposed by keyword parsers:
previously it was possible to report up to 3 alerts if multiple args
were invalid, but now it's no longer possible since keyword parsers
can only report one error, so only the first one is reported. No big
deal.
src/cfgparse-listen.c