projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
400829c
)
BUG/MINOR: proxy/server: Skip per-proxy/server post-check for disabled proxies
author
Christopher Faulet
<cfaulet@haproxy.com>
Mon, 2 Nov 2020 15:20:13 +0000
(16:20 +0100)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Tue, 3 Nov 2020 09:23:00 +0000
(10:23 +0100)
per-proxy and per-server post-check callback functions must be skipped for
disabled proxies because most of the configuration validity check is skipped for
these proxies.
This patch must be backported as far as 2.1.
src/haproxy.c
patch
|
blob
|
history
diff --git
a/src/haproxy.c
b/src/haproxy.c
index
3e6fd18
..
2b5aa70
100644
(file)
--- a/
src/haproxy.c
+++ b/
src/haproxy.c
@@
-1958,6
+1958,9
@@
static void init(int argc, char **argv)
struct post_proxy_check_fct *ppcf;
struct post_server_check_fct *pscf;
+ if (px->disabled)
+ continue;
+
list_for_each_entry(pscf, &post_server_check_list, list) {
for (srv = px->srv; srv; srv = srv->next)
err_code |= pscf->fct(srv);