From: Jim Jagielski Date: Mon, 31 Jul 2006 23:46:55 +0000 (+0000) Subject: Good catch by Ruediger X-Git-Tag: 2.3.0~2189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc9255aabef4ed178f155bc4de1f590e23682a9e;p=thirdparty%2Fapache%2Fhttpd.git Good catch by Ruediger git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@427368 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 27b43cb7cfe..8f995d73a8b 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -919,7 +919,7 @@ static proxy_worker *find_best_byrequests(proxy_balancer *balancer, checked_standby = checking_standby++; } cur_lbset++; - } while (cur_lbset < max_lbset && !mycandidate); + } while (cur_lbset <= max_lbset && !mycandidate); if (mycandidate) { mycandidate->s->lbstatus -= total_factor; @@ -999,7 +999,7 @@ static proxy_worker *find_best_bytraffic(proxy_balancer *balancer, checked_standby = checking_standby++; } cur_lbset++; - } while (cur_lbset < max_lbset && !mycandidate); + } while (cur_lbset <= max_lbset && !mycandidate); if (mycandidate) { mycandidate->s->elected++;