]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: proxy: protect show backend against be deletion
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 21 Jul 2026 09:35:25 +0000 (11:35 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 21 Jul 2026 14:58:20 +0000 (16:58 +0200)
commit35f60950f95a69064bee9f7814d19a92aba80ba4
treeae99d04b14da8eb6c922b6ed027d532a9bec8520
parent6c8b1d2eeb2547e407b7819619228327303ef603
BUG/MEDIUM: proxy: protect show backend against be deletion

Command "show backend" loops over the list of visible proxies to display
information about all the backend instances. This command may yield in
case of a long output, but this is not safe with introduction of dynamic
backend deletion at runtime.

Fixes this by using the watcher mechanism, similarly to what is
implemented for stats dump. To support this, a new context dedicated to
"show backend" has been defined.

This must be backported up to 3.4.
src/proxy.c