]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cfgparse: acknowledge that proxy ID auto numbering starts at 2
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 23 Dec 2025 14:40:42 +0000 (15:40 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 23 Dec 2025 15:35:49 +0000 (16:35 +0100)
commitb562602044608916735016683b0ead89c90e40d9
treed711f3c8f837148d8b54d88e3e66cd3b3ffc9bfe
parent5904f8279bcb5cebd9266d04d14ee310017486cf
MEDIUM: cfgparse: acknowledge that proxy ID auto numbering starts at 2

Each frontend/backend/listen proxies is assigned an unique ID. It can
either be set explicitely via 'id' keyword, or automatically assigned on
post parsing depending on the available values.

It was expected that the first automatically assigned value would start
at '1'. However, due to a legacy bug this is not the case as this value
is always skipped. Thus, automatically assigned proxies always start at
'2' or more.

To avoid breaking the current existing state, this situation is now
acknowledged with the current patch. The code is rewritten with an
explicit warning to ensure that this won't be fixed without knowing the
current status. A new regtest also ensures this.
doc/configuration.txt
reg-tests/proxy/proxy_id.vtc [new file with mode: 0644]
src/cfgparse.c