You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2012/08/29 02:55:24 UTC

svn commit: r1378408 - /tomcat/tc7.0.x/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java

Author: kkolinko
Date: Wed Aug 29 00:55:23 2012
New Revision: 1378408

URL: http://svn.apache.org/viewvc?rev=1378408&view=rev
Log:
For https://issues.apache.org/bugzilla/show_bug.cgi?id=53725
A bit more safety.
I do not see whether it is actually needed, but before r1378403 this call was protected by "!def.finished()" check. So I am restoring this protection.

Modified:
    tomcat/tc7.0.x/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java

Modified: tomcat/tc7.0.x/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java?rev=1378408&r1=1378407&r2=1378408&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java Wed Aug 29 00:55:23 2012
@@ -97,7 +97,7 @@ public class FlushableGZIPOutputStream e
     }
 
     private void reenableCompression() {
-        if (flagReenableCompression) {
+        if (flagReenableCompression && !def.finished()) {
             flagReenableCompression = false;
             def.setLevel(Deflater.DEFAULT_COMPRESSION);
         }



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