mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-11 14:53:05 -05: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.
This commit is contained in:
parent
a7c52761b4
commit
d5382b4aaa
1 changed files with 1 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ void maintain_proxies(int *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…
Reference in a new issue