]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: centralize proxies_list insert during config parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 22 Jul 2026 14:06:55 +0000 (16:06 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Jul 2026 14:03:19 +0000 (16:03 +0200)
commit8fa7d45b63a0bcfecb8dfb41648cd6f2c2a6cf71
tree658ecaff09d7d546f25c60c5669fbd495694268d
parent07dc4cb0ae17c21d63f169cf8211d45fc9ea3523
MINOR: proxy: centralize proxies_list insert during config parsing

Define a new function wrapper mainpx_register() which is used to insert
a proxy instance in <proxies_list> which contain all user visible
entries. Insertion is performed at the front of the list. Thus it must
only be used during configuration parsing, before proxies list reversal.

The main objective of this patch is to simplify the list conversion to a
doubly linked one by centralizing the required changes in a single
function. A nice benefit is that it is now easier to determine the exact
proxies list composition.
include/haproxy/proxy.h
src/cfgparse-listen.c
src/cli.c
src/haload_init.c
src/http_client.c
src/tcpcheck.c