mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-13 01:19:02 +02:00
Revert "MINOR: cfgparse-listen: "http-reuse" requires TCP or HTTP mode"
This reverts commit 65f1124b5d since we
cannot perform the test during parsing as the effective proxy mode is
not yet known.
This commit is contained in:
committed by
Willy Tarreau
parent
f1a072d077
commit
7d59730100
@@ -2342,12 +2342,6 @@ stats_error_parsing:
|
||||
if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
|
||||
err_code |= ERR_WARN;
|
||||
|
||||
if (curproxy->mode != PR_MODE_TCP && curproxy->mode != PR_MODE_HTTP) {
|
||||
ha_alert("parsing [%s:%d] : '%s' requires TCP or HTTP mode.\n", file, linenum, args[0]);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (strcmp(args[1], "never") == 0) {
|
||||
/* enable a graceful server shutdown on an HTTP 404 response */
|
||||
curproxy->options &= ~PR_O_REUSE_MASK;
|
||||
|
||||
Reference in New Issue
Block a user