Author: jfrederic.clere(a)jboss.com
Date: 2008-06-06 03:09:03 -0400 (Fri, 06 Jun 2008)
New Revision: 1667
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Arrange proxy_node_isup declaration.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-05 22:28:44 UTC
(rev 1666)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-06 07:09:03 UTC
(rev 1667)
@@ -119,6 +119,8 @@
(*worker)->keepalive = 1;
(*worker)->keepalive_set = 1;
(*worker)->is_address_reusable = 1;
+ (*worker)->acquire_set = 1;
+ (*worker)->acquire = apr_time_make(0, 2 * 1000); /* 2 ms */
/*
* The Shared datastatus may already contains a valid information
@@ -709,6 +711,7 @@
* not in error state or not disabled.
*/
if (PROXY_WORKER_IS_USABLE(worker) && iscontext_host_ok(r,
balancer, worker)) {
+ /* XXX: That looks fishy */
if (worker->s->lbfactor <= 0)
mytraffic = curmin;
else
@@ -849,7 +852,7 @@
* id : worker id
* load : load factor from the cluster manager.
*/
-PROXY_DECLARE(int) proxy_node_isup(request_rec *r, int id, char *scheme, int load)
+static int proxy_node_isup(request_rec *r, int id, char *scheme, int load)
{
void *sconf = r->server->module_config;
proxy_server_conf *conf = (proxy_server_conf *)