From: Mladen Turk Date: Fri, 19 Aug 2005 17:23:00 +0000 (+0000) Subject: Arghhh.... missed the version. Sorry for the noise. X-Git-Tag: 2.1.7~5^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a75750ab89599157ddac99f31f36810340fba62c;p=apache Arghhh.... missed the version. Sorry for the noise. Revert the hack for setting the lbmethod. The problem is deeper inside caused by the new hook to the balancer module that is never called on WIN32. Although the hack fixed core dump, the proxy is still unusable because the configuration is failing due to the empty lbmethod names array. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@233516 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index a0711350ad..af409f67a2 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -359,11 +359,6 @@ static proxy_worker *find_best_bytraffic(proxy_balancer *balancer, return mycandidate; } -static proxy_balancer_method _default_lbmethod = { - "byrequests", - find_best_byrequests -}; - static proxy_worker *find_best_worker(proxy_balancer *balancer, request_rec *r) { @@ -877,9 +872,6 @@ static void child_init(apr_pool_t *p, server_rec *s) balancer = (proxy_balancer *)conf->balancers->elts; for (i = 0; i < conf->balancers->nelts; i++) { init_balancer_members(conf, s, balancer); - if (!balancer->lbmethod->finder) { - balancer->lbmethod->finder = _default_lbmethod; - } balancer++; } s = s->next;