mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-03 05:40:24 -05:00
BUG/MAJOR: peers: the listener's maxaccept was not set and caused loops
Recent commit 16a214 to move the maxaccept parameter to listeners didn't set it on the peers' listeners, resulting in the value zero being used there. This caused a busy loop for each peers section, because no incoming connection could be accepted. Thanks to Herv Commowick for reporting this issue.
This commit is contained in:
parent
cfd97c6f04
commit
ca57de3e7b
1 changed files with 1 additions and 0 deletions
|
|
@ -7135,6 +7135,7 @@ out_uri_auth_compat:
|
|||
while (*last) {
|
||||
curpeers = *last;
|
||||
if (curpeers->peers_fe) {
|
||||
LIST_NEXT(&curpeers->peers_fe->conf.listeners, struct listener *, by_fe)->maxaccept = 1;
|
||||
last = &curpeers->next;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue