You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2004/01/17 06:19:28 UTC

cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common ChannelUn.java

billbarker    2004/01/16 21:19:28

  Modified:    jk/java/org/apache/jk/common ChannelUn.java
  Log:
  Handle unregistering Requests for ChannelUnix.
  
  This is an easy one, since it works like ChannelSocket.
  
  Revision  Changes    Path
  1.25      +8 -0      jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelUn.java
  
  Index: ChannelUn.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelUn.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- ChannelUn.java	18 Sep 2003 16:21:00 -0000	1.24
  +++ ChannelUn.java	17 Jan 2004 05:19:28 -0000	1.25
  @@ -287,6 +287,14 @@
               }
               if( log.isDebugEnabled() )
                   log.debug( "Closing un channel");
  +            try{
  +                MsgAjp endM = new MsgAjp();
  +                endM.reset();
  +                endM.appendByte((byte)HANDLE_THREAD_END);
  +                next.invoke(endM, ep);
  +            } catch( Exception ee) {
  +                log.error( "Error, releasing connection",ee);
  +            }
               this.close( ep );
           } catch( Exception ex ) {
               ex.printStackTrace();
  
  
  

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


Re: cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common ChannelUn.java

Posted by Bill Barker <wb...@wilshire.com>.
----- Original Message ----- 
From: <bi...@apache.org>
To: <ja...@apache.org>
Sent: Friday, January 16, 2004 9:19 PM
Subject: cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common
ChannelUn.java


> billbarker    2004/01/16 21:19:28
>
>   Modified:    jk/java/org/apache/jk/common ChannelUn.java
>   Log:
>   Handle unregistering Requests for ChannelUnix.
>
>   This is an easy one, since it works like ChannelSocket.
>
>   Revision  Changes    Path
>   1.25      +8 -0
jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelUn.java
>

I could use some help to fix ChannelJni (Costin/Mladen ?).  In this case,
the threads die in the native code, so I have no way to get notified in the
Java code (short of adding a 'finalize' method, which is just too hideous to
think about :).