]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: move proxy post-init in a dedicated function
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 30 Jan 2026 15:31:04 +0000 (16:31 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Feb 2026 13:35:18 +0000 (14:35 +0100)
commita8bc83bea5f63d224b9b7686d1eb076c7efffbe7
tree694d8c3bbe1c2b66e89ace1cf97f5b06b88b7145
parent2c8ad11b7302d846f1cb201965cd2e5903858cc9
MINOR: cfgparse: move proxy post-init in a dedicated function

A lot of proxies initialization code is delayed on post-parsing stage,
as it depends on the configuration fully parsed. This is performed via a
loop on proxies_list.

Extract this code in a dedicated function proxy_finalize(). This patch
will be useful for dynamic backends creation.

Note that for the moment the code has been extracted as-is. With each
new features, some init code was added there. This has become a giant
loop with no real ordering. A future patch may provide some cleanup in
order to reorganize this.
include/haproxy/proxy.h
src/cfgparse.c
src/proxy.c