]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: validate defaults proxies separately
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 3 Feb 2026 10:09:42 +0000 (11:09 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Feb 2026 13:35:18 +0000 (14:35 +0100)
commit2c8ad11b7302d846f1cb201965cd2e5903858cc9
tree371ae0aa9607e430a62899b1b6e835bade4d6047
parent2a07dc9c24b8293920fc24ca248e8b2a5c06130d
MINOR: cfgparse: validate defaults proxies separately

Default proxies validation occurs during post-parsing. The objective is
to report any tcp/http-rules which could not behave as expected.

Previously, this was performed while looping over standard proxies list,
when such proxy is referencing a default instance. This was enough as
only named referenced proxies were kept after parsing. However, this is
not the case anymore in the context of dynamic backends creation at
runtime.

As such, this patch now performs validation on every named defaults
outside of the standard proxies list loop. This should not cause any
behavior difference, as defaults are validated without using the proxy
which relies on it.

Along with this change, PR_FL_READY proxy flag is now removed. Its usage
was only really needed for defaults, to avoid validating a same instance
multiple times. With the validation of defaults in their own loop, it is
now redundant.
include/haproxy/proxy-t.h
src/cfgparse.c