tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GAWLAS,JULIUS (HP-Cupertino,ex1)" <julius_gaw...@hp.com>
Subject [PATCH] latest mod_jk and Apache 2.0 initialization
Date Thu, 06 Dec 2001 00:21:34 GMT
Seems like the latest j-t-c mod_jk calls initialization (init_jk) twice -
once during post_config and then in child_init. This has a side effect of
trying to create non existing workers and subsequently failing. Enclosed
simple patch prevents second initialization call.

Julius

Index: mod_jk.c
===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v
retrieving revision 1.39
diff -u -r1.39 mod_jk.c
--- mod_jk.c	2001/12/04 21:38:26	1.39
+++ mod_jk.c	2001/12/05 23:56:17
@@ -1473,7 +1473,10 @@
     jk_server_conf_t *conf =
         (jk_server_conf_t *)ap_get_module_config(s->module_config,
&jk_module);
 
-    init_jk( pconf, conf, s );
+    if(!conf->was_initialized) {
+        conf->was_initialized = JK_TRUE;        		
+	    init_jk( pconf, conf, s );
+	}
 }
 
 /** Initialize jk, using worker.properties. 

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message