You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by hg...@apache.org on 2001/02/05 17:04:01 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/server Ajp13Interceptor.java

hgomez      01/02/05 08:04:01

  Modified:    src/share/org/apache/tomcat/modules/server
                        Ajp13Interceptor.java
  Log:
  Avoid that ajp13 send 2 times END_OF_RESPONSE.
  The problems occurs when using RequestDispatcher and Forward via ajp13
  
  Revision  Changes    Path
  1.6       +4 -3      jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13Interceptor.java
  
  Index: Ajp13Interceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13Interceptor.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Ajp13Interceptor.java	2000/12/26 23:35:34	1.5
  +++ Ajp13Interceptor.java	2001/02/05 16:04:00	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13Interceptor.java,v 1.5 2000/12/26 23:35:34 costin Exp $
  - * $Revision: 1.5 $
  - * $Date: 2000/12/26 23:35:34 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13Interceptor.java,v 1.6 2001/02/05 16:04:00 hgomez Exp $
  + * $Revision: 1.6 $
  + * $Date: 2001/02/05 16:04:00 $
    *
    * ====================================================================
    *
  @@ -265,6 +265,7 @@
       {
   	if(!finished) {
   	    super.finish();
  +		finished = true; // Avoid END_OF_RESPONSE sent 2 times
   	    ajp13.finish();
   	}
       }