From: Willy Tarreau Date: Fri, 23 Nov 2012 19:08:09 +0000 (+0100) Subject: BUG/MAJOR: peers: the listener's maxaccept was not set and caused loops X-Git-Tag: v1.5-dev14~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca57de3e7b5ea23e9e1ec51cb33637334196b52f;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index c317743202..9fa1881921 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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; }