billbarker 02/03/18 22:20:55 Modified: coyote/src/java/org/apache/coyote/tomcat3 CoyoteResponse.java Log: Even better. Don't send the ACK twice. This in effect means that the ACK is only sent on the primary request, and not on any sub-requests (including error handling). Revision Changes Path 1.6 +6 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteResponse.java Index: CoyoteResponse.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteResponse.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- CoyoteResponse.java 19 Mar 2002 04:27:50 -0000 1.5 +++ CoyoteResponse.java 19 Mar 2002 06:20:55 -0000 1.6 @@ -83,6 +83,7 @@ String reportedname=null; org.apache.coyote.Response coyoteResponse=null; ByteChunk outputChunk = new ByteChunk(); + boolean acknowledged=false; public CoyoteResponse() { super(); @@ -103,6 +104,7 @@ super.recycle(); if(coyoteResponse != null) coyoteResponse.recycle(); outputChunk.recycle(); + acknowledged=false; } public void setReported(String reported) { @@ -141,6 +143,9 @@ public void sendAcknowledgement() throws IOException { + // Don't ACK twice on the same request. (e.g. on a forward) + if(acknowledged) + return; // Ignore any call from an included servlet if (isIncluded()) return; @@ -149,5 +154,6 @@ (sm.getString("hsrf.error.ise")); coyoteResponse.acknowledge(); + acknowledged=true; } }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>