Do not send flush packet if explicit is false
authormturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 4 Feb 2011 11:16:14 +0000 (11:16 +0000)
committermturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 4 Feb 2011 11:16:14 +0000 (11:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1067151 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/ajp/AjpProcessor.java

index 83afa3d..3c5ac23 100644 (file)
@@ -578,7 +578,7 @@ public class AjpProcessor extends AbstractAjpProcessor {
      */
     @Override
     protected void flush(boolean explicit) throws IOException {
-        if (!finished) {
+        if (explicit && !finished) {
             // Send the flush message
             output.write(flushMessageArray);
         }