httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Köhler <>
Subject mod_deflate and flush?
Date Tue, 24 Oct 2006 22:35:49 GMT

JSP (via mod_jk) and maybe other plugins sometimes flush the connection,
so that the browsers receive everything that's stuck in some internal
buffer. Here's a quote from mod_jk's docs:

JkOptions     +FlushPackets
JkOptions FlushPackets, you ask mod_jk to flush Apache's connection
buffer after each AJP packet chunk received from Tomcat.

mod_deflate breaks that. I know the issue from ssh already. Some special
treatment has to be done, so that flushing happens inspite of the
compression. Can mod_deflate do that too? Or would that break the

IMHO, this is important. The other thing i ask myself: can apache
detect, when a CGI-application calls flush() on the STDOUT-handle?
If so, then flushing would even work for CGI-scripts.

If mod_deflate is not abled to support flushing, how can i explicitly
disbale it within an CGI- or JSP-application? For example: can i return
HTTP-Headers to Apache, so that Apache doesn't compress?


View raw message