mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-17 06:41:00 +01:00
[BUG] maintain_proxies must not disable backends
maintain_proxies could disable backends (p->maxconn == 0) which is wrong (but apparently harmless). Add a check for p->maxconn == 0. (cherry picked from commit d5382b4aaa099ce5ce2af5828bd4d6dc38e9e8ea)
This commit is contained in:
parent
116f4105d4
commit
2f9127b4b9
@ -314,7 +314,7 @@ void maintain_proxies(struct timeval *next)
|
||||
/* if there are enough free sessions, we'll activate proxies */
|
||||
if (actconn < global.maxconn) {
|
||||
while (p) {
|
||||
if (p->feconn < p->maxconn) {
|
||||
if (!p->maxconn || p->feconn < p->maxconn) {
|
||||
if (p->state == PR_STIDLE) {
|
||||
for (l = p->listen; l != NULL; l = l->next)
|
||||
enable_listener(l);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user