You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2002/07/02 14:08:25 UTC

cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_channel_jni.c

mturk       2002/07/02 05:08:25

  Modified:    jk/native2/common jk_channel_jni.c
  Log:
  Call the vm detach on 'afterRequest' and on
  channel destoy.
  
  Revision  Changes    Path
  1.31      +5 -1      jakarta-tomcat-connectors/jk/native2/common/jk_channel_jni.c
  
  Index: jk_channel_jni.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_channel_jni.c,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- jk_channel_jni.c	29 Jun 2002 18:31:00 -0000	1.30
  +++ jk_channel_jni.c	2 Jul 2002 12:08:25 -0000	1.31
  @@ -329,6 +329,10 @@
           (*jniEnv)->DeleteGlobalRef( jniEnv, epData->jniJavaContext );
       }
       
  +    jniCh->vm->detach( env, jniCh->vm );
  +    env->l->jkLog(env, env->l, JK_LOG_INFO,
  +                  "channel_jni.close() ok\n" ); 
  +
       endpoint->channelData=NULL;
       return JK_OK;
   
  @@ -522,7 +526,7 @@
       if( we==NULL || we->vm==NULL ) {
           return JK_OK;
       }
  -    /* we->vm->detach( env, we->vm );  */
  +    we->vm->detach( env, we->vm );
       
       if( worker->mbean->debug > 0 )
           env->l->jkLog(env, env->l, JK_LOG_INFO, 
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>