https://bz.apache.org/bugzilla/show_bug.cgi?id=57866
--- Comment #3 from Konstantin Kolinko <knst.koli...@gmail.com> --- 1. If Tomcat did call "def.setLevel(Deflater.DEFAULT_COMPRESSION);" but that call did not re-enable compression, that would be a bug in Deflater class. >From Tomcat point of view that is a WONTFIX. It is up to JRE vendor (Oracle) to fix their Deflater implementation. (Disclaimer: I have not run your example yet. IIRC, when I tested it several years ago the compression was re-enabled successfully.) 2. See o.a.coyote.http11.filters.GzipOutputFilter #doWrite(ByteChunk chunk, Response res). That is where FlushableGZIPOutputStream is instantiated. Tomcat 8 does not use FlushableGZIPOutputStream, but uses new Java7+ constructor for java.util.zip.GZIPOutputStream to enable flushing. It should be possible to backport that to Tomcat 7 to call that constructor via reflection when running on Java 7+. (As such, this issue becomes an enhancement request). -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org