Author: jfrederic.clere(a)jboss.com
Date: 2009-07-14 03:46:15 -0400 (Tue, 14 Jul 2009)
New Revision: 2493
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Fix for MODCLUSTER-80.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-07-14 06:44:48 UTC
(rev 2492)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2009-07-14 07:46:15 UTC
(rev 2493)
@@ -757,7 +757,7 @@
* Check that the request has a sessionid (even invalid)
* @param r the request_rec.
* @param balancer_name name of the balancer. (to find the balancer)
- * @param conf the proxy configuration.
+ * @param conf the proxy configuration. (Could be null
* @param balance the balancer (balancer to use).
* @return 1 is it finds a sessionid 0 otherwise.
*/
@@ -769,6 +769,11 @@
char *sticky_used;
int i;
+ if (conf == NULL) {
+ void *sconf = r->server->module_config;
+ conf = (proxy_server_conf *) ap_get_module_config(sconf, &proxy_module);
+ }
+
if (balancer == NULL) {
balancer = (proxy_balancer *)conf->balancers->elts;
for (i = 0; i < conf->balancers->nelts; i++, balancer++) {
Show replies by date