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:
Willy Tarreau 2012-11-23 20:08:09 +01:00
parent cfd97c6f04
commit ca57de3e7b

View File

@ -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;
}