You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mt...@apache.org on 2005/08/19 13:58:39 UTC
svn commit: r233468 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Author: mturk
Date: Fri Aug 19 04:58:36 2005
New Revision: 233468
URL: http://svn.apache.org/viewcvs?rev=233468&view=rev
Log:
Temporary make balancer working.
What is needed is a setup for the finder function
introduced, but never implemented.
Modified:
httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=233468&r1=233467&r2=233468&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Fri Aug 19 04:58:36 2005
@@ -367,6 +367,13 @@
if (PROXY_THREAD_LOCK(balancer) != APR_SUCCESS)
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);
/*