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 RE: mod_jk inprocess worker and Apache 2.0 not working
Date Tue, 04 Dec 2001 20:58:13 GMT
Costin,

> The main problem with JNI and apache is that we can't support sessions
> corectly. Apache is a multi-process server ( even apache2.0 - 
> each process
> has multiple threads, but it's still multiprocess ).

Thanks for quick answer, but I don't think I can quite see 
contradiction here - I would appreciate very much if you can 
expand on the explanation. 

BTW, few days ago I posted a patch to t-j-c mod_jk.c for Apache 2.0. 
Most important is the change in prototype of jk_post_config 
which used to be void but now needs to return success code, 
also changes to types of some variables to better confirm to 
Apache 2.0 types. I am attaching it again since as it stands now mod_jk
does not work with Apache 2.0.

Thanks again
Julius


Index: mod_jk.c
===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v
retrieving revision 1.37
diff -u -r1.37 mod_jk.c
--- mod_jk.c	2001/11/21 00:09:21	1.37
+++ mod_jk.c	2001/11/30 23:58:13
@@ -110,9 +110,8 @@
 #define ADD_SSL_INFO    
 
 /* module MODULE_VAR_EXPORT jk_module; */
-AP_DECLARE_DATA module jk_module;
+AP_MODULE_DECLARE_DATA module jk_module;
 
-
 typedef struct {
 
     /*
@@ -326,7 +325,7 @@
             
             /* Debug - try to get around rwrite */
             while( ll > 0 ) {
-                long toSend=(ll>CHUNK_SIZE) ? CHUNK_SIZE : ll;
+                size_t toSend=(ll>CHUNK_SIZE) ? CHUNK_SIZE : ll;
                 r = ap_rwrite((const char *)bb, toSend, p->r );
                 jk_log(main_log, JK_LOG_DEBUG, 
                        "writing %ld (%ld) out of %ld \n",toSend, r, ll );
@@ -535,7 +534,7 @@
         }
 
         if(conf->envvars_in_use) {
-            apr_array_header_t *t = apr_table_elts(conf->envvars);
+            const apr_array_header_t *t = apr_table_elts(conf->envvars);
             if(t && t->nelts) {
                 int i;
                 apr_table_entry_t *elts = (apr_table_entry_t *)t->elts;
@@ -563,7 +562,7 @@
     s->num_headers      = 0;
     if(r->headers_in && apr_table_elts(r->headers_in)) {
         int need_content_length_header = (!s->is_chunked &&
s->content_length == 0) ? JK_TRUE : JK_FALSE;
-        apr_array_header_t *t = apr_table_elts(r->headers_in);
+        const apr_array_header_t *t = apr_table_elts(r->headers_in);
         if(t && t->nelts) {
             int i;
             apr_table_entry_t *elts = (apr_table_entry_t *)t->elts;
@@ -1514,7 +1513,7 @@
     return;
 }
 
-static void jk_post_config(apr_pool_t *pconf, 
+static int jk_post_config(apr_pool_t *pconf, 
                            apr_pool_t *plog, 
                            apr_pool_t *ptemp, 
                            server_rec *s)
@@ -1528,6 +1527,7 @@
             init_jk( pconf, conf, s );
         }
     }
+	return OK;
 }
 
 /** Use the internal mod_jk mappings to find if this is a request for

--
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