]> git.kaiwu.me - haproxy.git/commit
MINOR: stats: protect proxy iteration via watcher
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 10 Feb 2026 10:20:12 +0000 (11:20 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 27 Feb 2026 09:28:24 +0000 (10:28 +0100)
commit20376c54e2166a0882b71b26326360786f79ebdb
treeeaf36a80daf8a58a01791443ed711b5a0b2c3d8f
parent4bcfc09acf26fc74f422766163629008fbae8683
MINOR: stats: protect proxy iteration via watcher

Define a new <px_watch> watcher member in stats applet context. It is
used to register the applet on a proxy when iterating over the proxies
list. <obj1> is automatically updated via the watcher interaction.
Watcher is first initialized prior to stats_dump_proxies() invocation.

This guarantees that stats dump is safe even if applet yields and a
backend is removed in parallel.
include/haproxy/stats-t.h
src/http_ana.c
src/stats-html.c
src/stats-proxy.c
src/stats.c