mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
MEDIUM: spoe: Force the reuse 'always' mode for SPOP backends
The reuse "always" mode is forced for SPOP backends. For now, SPOP connections cannot be idle, but once implemented, thanks to this patch, it will be possible to reuse SPOP connections. The related issue is #2502.
This commit is contained in:
parent
d2ce835fb7
commit
e65ff4bf58
1 changed files with 2 additions and 0 deletions
|
|
@ -3918,6 +3918,8 @@ out_uri_auth_compat:
|
|||
|
||||
if ((curproxy->mode != PR_MODE_HTTP) && (curproxy->options & PR_O_REUSE_MASK) != PR_O_REUSE_NEVR)
|
||||
curproxy->options &= ~PR_O_REUSE_MASK;
|
||||
if (curproxy->mode == PR_MODE_SPOP)
|
||||
curproxy->options |= PR_O_REUSE_ALWS;
|
||||
|
||||
if ((curproxy->mode != PR_MODE_HTTP) && newsrv->flags & SRV_F_RHTTP) {
|
||||
ha_alert("%s '%s' : server %s uses reverse HTTP addressing which can only be used with HTTP mode.\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue