]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proxy: use global proxy list for REGISTER_POST_PROXY_CHECK() hook
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 9 May 2025 14:41:30 +0000 (16:41 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 2 Jun 2025 15:51:27 +0000 (17:51 +0200)
commite262e4bbe4c50ab16131ca49c0f687f536657fa8
tree60f27ed22317ab2c5798404ef77ed5b0c32814a3
parent1f12e45b0a890aa6d0212b0ca7b69edd44038d08
MEDIUM: proxy: use global proxy list for REGISTER_POST_PROXY_CHECK() hook

REGISTER_POST_PROXY_CHECK() used to iterate over "main" proxies to run
registered callbacks. This means hidden proxies (and their servers) did
not get a chance to get post-checked and could cause issues if some post-
checks are expected to be executed on all proxies no matter their type.

Instead we now rely on the global proxies list. Another side effect is that
the REGISTER_POST_SERVER_CHECK() now runs as well for servers from proxies
that are not part of the main proxies list.
src/haproxy.c