Author: jfrederic.clere(a)jboss.com
Date: 2008-05-29 06:11:44 -0400 (Thu, 29 May 2008)
New Revision: 1639
Modified:
trunk/mod_cluster/native/mod_manager/mod_manager.c
Log:
Add default values.
Modified: trunk/mod_cluster/native/mod_manager/mod_manager.c
===================================================================
--- trunk/mod_cluster/native/mod_manager/mod_manager.c 2008-05-29 08:27:13 UTC (rev 1638)
+++ trunk/mod_cluster/native/mod_manager/mod_manager.c 2008-05-29 10:11:44 UTC (rev 1639)
@@ -36,6 +36,8 @@
#include "http_protocol.h"
#include "http_core.h"
#include "scoreboard.h"
+#include "mod_proxy.h"
+#include "ap_mpm.h"
#include "mod_proxy_cluster.h"
@@ -429,6 +431,7 @@
/* Process the node/balancer description */
nodeinfo_t nodeinfo;
balancerinfo_t balancerinfo;
+ int mpm_threads;
char *JVMRoute;
char *Domain;
char *Host;
@@ -459,6 +462,13 @@
strcpy(nodeinfo.mess.Port, "8009");
strcpy(nodeinfo.mess.Type, "ajp");
nodeinfo.mess.reversed = 0;
+ nodeinfo.mess.remove = 0; /* not marked as removed */
+ nodeinfo.mess.flushpackets = flush_off; /* FLUSH_OFF; See enum flush_packets in
proxy.h flush_off */
+ nodeinfo.mess.flushwait = PROXY_FLUSH_WAIT;
+ nodeinfo.mess.ping = apr_time_from_sec(10);
+ ap_mpm_query(AP_MPMQ_MAX_THREADS, &mpm_threads);
+ nodeinfo.mess.smax = mpm_threads + 1;
+ nodeinfo.mess.ttl = apr_time_from_sec(60);
/* Fill default balancer values */
memset(&balancerinfo, '\0', sizeof(balancerinfo));
Show replies by date