You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "GAWLAS,JULIUS (HP-Cupertino,ex1)" <ju...@hp.com> on 2001/12/09 19:17:01 UTC

[PATCH] latest mod_jk and Apache 2.0 initialization (reposting)

I am reposting that patch again - let me know if there are any questions or
concerns.

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>