mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-12 22:41:03 +01:00
BUG/MINOR: config: server on-marked-* statement is ignored in default-server
Commits e0d1bfb ("[MINOR] Allow shutdown of sessions when a server
becomes unavailable") and eb2c24a ("MINOR: checks: add on-marked-up
option") mentionned that the directive was supported in default-server
but while it can be stated there, it's ignored because the config value
is not copied from the default server upon creation of a new server.
Moving the statement to the "server" lines works fine though. Thanks
to Baptiste Assmann for reporting and diagnosing this bug.
These features were introduced in 1.5-dev6 and 1.5-dev10 respectively,
so no backport is needed.
This commit is contained in:
parent
518ceddebe
commit
abd03df9de
@ -4683,6 +4683,8 @@ stats_error_parsing:
|
||||
newsrv->maxconn = curproxy->defsrv.maxconn;
|
||||
newsrv->slowstart = curproxy->defsrv.slowstart;
|
||||
newsrv->onerror = curproxy->defsrv.onerror;
|
||||
newsrv->onmarkeddown = curproxy->defsrv.onmarkeddown;
|
||||
newsrv->onmarkedup = curproxy->defsrv.onmarkedup;
|
||||
newsrv->consecutive_errors_limit
|
||||
= curproxy->defsrv.consecutive_errors_limit;
|
||||
#ifdef OPENSSL
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user