]> granicus.if.org Git - apache/commitdiff
Good catch by Ruediger
authorJim Jagielski <jim@apache.org>
Mon, 31 Jul 2006 23:46:55 +0000 (23:46 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 31 Jul 2006 23:46:55 +0000 (23:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@427368 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_balancer.c

index 27b43cb7cfe2c5f9a6eb15f3ffeabed1e2ac465d..8f995d73a8b3463c91c8c2d54e3c1df7bed4ac86 100644 (file)
@@ -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++;