From: Olivier Houchard Date: Fri, 20 Jun 2025 13:06:04 +0000 (+0200) Subject: BUG/MAJOR: fwlc: Count an avoided server as unusable. X-Git-Tag: v3.3-dev2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e28e647fef43e5865c87f328832fec7794a423e5;p=thirdparty%2Fhaproxy.git BUG/MAJOR: fwlc: Count an avoided server as unusable. When fwlc_get_next_server(), if a server to avoid has been provided, and we have to ignore it, don't forget to increase the number of unusable servers, otherwise we may end up ignoring it over and over, never switching to another server, in an infinite loop until the process gets killed. This hopefully fixes Github issues #3004 and #3014. This should be backported to 3.2. --- diff --git a/src/lb_fwlc.c b/src/lb_fwlc.c index a082505e3..4a6d5bd64 100644 --- a/src/lb_fwlc.c +++ b/src/lb_fwlc.c @@ -806,6 +806,7 @@ redo: break; } avoided = s; + unusable++; } else unusable++;