]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: collect per-capability stat in proxy_cond_disable()
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 12 May 2025 15:12:49 +0000 (17:12 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 2 Jun 2025 15:51:17 +0000 (17:51 +0200)
commit6ccf770fe2cae4bea588e93947c87795d9f6f35f
tree2a201a565e7f17314eed47b9db8a05f11ac34d9e
parentc7c017ec3c73c6d4d7d1453cdc610f7eec8b8a46
MINOR: proxy: collect per-capability stat in proxy_cond_disable()

proxy_cond_disable() collects and prints cumulated connections for be and
fe proxies no matter their type. With shared stats it may cause issues
because depending on the proxy capabilities only fe or be counters may
be allocated.

In this patch we add some checks to ensure we only try to read from
valid memory locations, else we rely on default values (0).
src/proxy.c