]> git.kaiwu.me - haproxy.git/commit
CLENAUP: cfgparse-listen: move the "server" keywords to their own parser
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 15:49:55 +0000 (17:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 08:30:59 +0000 (10:30 +0200)
commit7899b35916b5273b414971a57722faa11d6013e8
tree8c0a190b17549bfa67dfcd3016f020df9b088388
parenteaff198ccc6895b037fc0a4262cb8c8da3cb4b76
CLENAUP: cfgparse-listen: move the "server" keywords to their own parser

"server", "default-server" and "server-template" only differ by the
flags they pass to parse_server(), so they were moved together to a new
proxy_parse_server() function registered in cfg_kws, making them
discoverable via "-dKcfg". parse_server() emits its own messages, so the
new parser only has to turn a fatal error into a negative return value.
src/cfgparse-listen.c