mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Temporary make balancer working.
What is needed is a setup for the finder function introduced, but never implemented. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@233468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -367,6 +367,13 @@ static proxy_worker *find_best_worker(proxy_balancer *balancer,
|
|||||||
if (PROXY_THREAD_LOCK(balancer) != APR_SUCCESS)
|
if (PROXY_THREAD_LOCK(balancer) != APR_SUCCESS)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
if (!(*balancer->lbmethod->finder)) {
|
||||||
|
/* XXX: UGLY HACK!!!
|
||||||
|
* Where is the finder function setup?
|
||||||
|
*/
|
||||||
|
balancer->lbmethod->finder = find_best_byrequests;
|
||||||
|
}
|
||||||
|
|
||||||
candidate = (*balancer->lbmethod->finder)(balancer, r);
|
candidate = (*balancer->lbmethod->finder)(balancer, r);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user