]> git.kaiwu.me - haproxy.git/commit
[BUG] maintain_proxies must not disable backends
authorWilly Tarreau <w@1wt.eu>
Sat, 16 Aug 2008 16:41:13 +0000 (18:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Sep 2008 09:13:46 +0000 (11:13 +0200)
commit3191fc8d0e3744a78204c05e8d6e8a83a5cf7f0e
tree575799b5fe34eb45d9b0cd14ba56b90b974c61cd
parente7ed3e14a8b3a52fe5286a1796f946799aa8a460
[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)
(cherry picked from commit 2f9127b4b91de1ac685498e145f29342115bcb71)
src/proxy.c