https://bz.apache.org/bugzilla/show_bug.cgi?id=57866
Bug ID: 57866 Summary: FlushableGZIPOutputStream only compresses first flush() Product: Tomcat 7 Version: 7.0.54 Hardware: PC OS: Linux Status: NEW Severity: minor Priority: P2 Component: Connectors Assignee: dev@tomcat.apache.org Reporter: j...@yahoo.com Created attachment 32695 --> https://bz.apache.org/bugzilla/attachment.cgi?id=32695&action=edit minimum webapp exhibiting issue (change server.xml webapps path and run with maven) Sorry if this bug is against the wrong component. I'm not sure which component includes Coyote filters. I have a servlet that streams its response, and I also need it to be compressed. Looking in wireshark and stepping through FlushableGZIPOutputStream/GZIPOutputStream/Deflater it seems that only the data up to the first flush is being compressed. deflateBytes seems to be called appropriately but after the first flush() the deflated bytes seem to be a binary header followed by uncompressed text. My server environment uses Java 7, but I tried Java 6 in case FlushableGZIPOutputStream interferes with Java 7's Deflater. (Both workaround/fix JDK bugs 4255743 and 4813885.) Java 6 behaves the same as Java 7. -- 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