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 2003/07/30 04:25:54 UTC

cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkCoyoteHandler.java

billbarker    2003/07/29 19:25:54

  Modified:    jk/java/org/apache/jk/server JkCoyoteHandler.java
  Log:
  Make certain that we tell Apache that we have finished with the request.
  
  If the Adapter throws an exception before entering the Pipeline, we end up with both Apache and Tomcat trying to read the Channel and hence not serving requests.
  
  Reported By: Kenneth.Y.Kwan@pccw.com Kwan, Kenneth Y
  
  Revision  Changes    Path
  1.42      +3 -0      jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java
  
  Index: JkCoyoteHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- JkCoyoteHandler.java	17 May 2003 03:21:33 -0000	1.41
  +++ JkCoyoteHandler.java	30 Jul 2003 02:25:53 -0000	1.42
  @@ -295,6 +295,9 @@
           } catch( Exception ex ) {
               ex.printStackTrace();
           }
  +        if(ep.getStatus() != JK_STATUS_CLOSED) {
  +            res.finish();
  +        }
   
           ep.setStatus( JK_STATUS_NEW );
   
  
  
  

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