Author: markt Date: Tue Aug 28 22:40:56 2012 New Revision: 1378371 URL: http://svn.apache.org/viewvc?rev=1378371&view=rev Log: Remove FlushableGZIPOutputStream. The bugs it works around are fixed in Java 7 and Tomcat 8 requires Java 7.
Removed: tomcat/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java tomcat/trunk/test/org/apache/coyote/http11/filters/TestFlushableGZIPOutputStream.java tomcat/trunk/test/org/apache/coyote/http11/filters/bug52121-part1 tomcat/trunk/test/org/apache/coyote/http11/filters/bug52121-part2 Modified: tomcat/trunk/java/org/apache/coyote/http11/filters/GzipOutputFilter.java Modified: tomcat/trunk/java/org/apache/coyote/http11/filters/GzipOutputFilter.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/filters/GzipOutputFilter.java?rev=1378371&r1=1378370&r2=1378371&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/http11/filters/GzipOutputFilter.java (original) +++ tomcat/trunk/java/org/apache/coyote/http11/filters/GzipOutputFilter.java Tue Aug 28 22:40:56 2012 @@ -74,7 +74,7 @@ public class GzipOutputFilter implements public int doWrite(ByteChunk chunk, Response res) throws IOException { if (compressionStream == null) { - compressionStream = new FlushableGZIPOutputStream(fakeOutputStream); + compressionStream = new GZIPOutputStream(fakeOutputStream, true); } compressionStream.write(chunk.getBytes(), chunk.getStart(), chunk.getLength()); @@ -136,7 +136,7 @@ public class GzipOutputFilter implements public long end() throws IOException { if (compressionStream == null) { - compressionStream = new FlushableGZIPOutputStream(fakeOutputStream); + compressionStream = new GZIPOutputStream(fakeOutputStream, true); } compressionStream.finish(); compressionStream.close(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org