]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: assign dynamic proxy ID
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 23 Dec 2025 15:15:47 +0000 (16:15 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Feb 2026 16:28:27 +0000 (17:28 +0100)
commit5753c14e8412540524de4394c830e125509d2a33
treeeb0ab5637889c99325acbf459df1f2e6c14bc658
parent3115eb82a694d5dd37e67386f909f1a90fd5554e
MINOR: proxy: assign dynamic proxy ID

Implement proxy ID generation for dynamic backends. This is performed
through the already function existing proxy_get_next_id().

As an optimization, lookup will performed starting from a global
variable <dynpx_next_id>. It is initialized to the greatest ID assigned
after parsing, and updated each time a backend instance is created. When
backend deletion will be implemented, it could be lowered to the newly
available slot.
include/haproxy/proxy.h
src/cfgparse.c
src/proxy.c