From dc9255aabef4ed178f155bc4de1f590e23682a9e Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Mon, 31 Jul 2006 23:46:55 +0000 Subject: [PATCH] Good catch by Ruediger git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@427368 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_balancer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 27b43cb7cf..8f995d73a8 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++; -- 2.40.0