Bug #1031
closedmod_deflate breaks cgi
Description
I have a cgi, which output a small image:
Content-type: image/png\r\n\r\n
(The image itself)
It works well without mod_deflate.
But after applying the patch "lighttpd-1.4.13.mod_deflate.jz.patch",
a browser always wait for more output, and for most cases the image
can not be displayed.
But for fastcgis, it seems ok.
-- yasheng
Updated by Anonymous about 17 years ago
I have this problem with regular cgis. This includes awstats and mailman. The log contents for a request to awstats.pl:
mod_deflate.c.1213: (trace) add deflate filter to filter chain
2007-10-31 09:55:55: (mod_deflate.c.1247) Content-Type: text/html; charset=
2007-10-31 09:55:55: (mod_deflate.c.1254) mime-type: text/html
2007-10-31 09:55:55: (mod_deflate.c.1293) add Vary: Accept-Encoding for /cgi-bin/prot/awstats.pl
2007-10-31 09:55:55: (mod_deflate.c.322) output-buffer-size: 0
2007-10-31 09:55:55: (mod_deflate.c.324) compression-level: 5
2007-10-31 09:55:55: (mod_deflate.c.326) mem-level: 9
2007-10-31 09:55:55: (mod_deflate.c.328) window-size: -15
2007-10-31 09:55:55: (mod_deflate.c.330) min-compress-size: 200
2007-10-31 09:55:55: (mod_deflate.c.332) work-block-size: 2048
mod_deflate.c.1349: (trace) compressing '/cgi-bin/prot/awstats.pl' with compression = gzip
2007-10-31 09:55:55: (mod_deflate.c.1379) end = 0 for uri /cgi-bin/prot/awstats.pl
2007-10-31 09:55:55: (mod_deflate.c.960) compress: in_queue len= 3965
2007-10-31 09:55:55: (mod_deflate.c.371) gzip_header len= 10
2007-10-31 09:55:55: (mod_deflate.c.406) compress: in= 3965 , out= 0
2007-10-31 09:55:55: (mod_deflate.c.1037) compressed bytes: 3965
mod_deflate.c.1049: (trace) end: 0 - 3965 - 3965
2007-10-31 09:55:55: (mod_deflate.c.472) flush: in= 0 , out= 1228
2007-10-31 09:55:55: (mod_deflate.c.960) compress: in_queue len= 4096
2007-10-31 09:55:55: (mod_deflate.c.406) compress: in= 4096 , out= 0
2007-10-31 09:55:55: (mod_deflate.c.1037) compressed bytes: 4096
mod_deflate.c.1049: (trace) end: 0 - 8061 - 8061
2007-10-31 09:55:55: (mod_deflate.c.472) flush: in= 0 , out= 797
2007-10-31 09:55:55: (mod_deflate.c.960) compress: in_queue len= 16384
2007-10-31 09:55:55: (mod_deflate.c.406) compress: in= 4096 , out= 0
2007-10-31 09:55:55: (mod_deflate.c.406) compress: in= 12288 , out= 0
2007-10-31 09:55:55: (mod_deflate.c.1037) compressed bytes: 16384
mod_deflate.c.1049: (trace) end: 0 - 24445 - 24445
2007-10-31 09:55:55: (mod_deflate.c.472) flush: in= 0 , out= 1816
2007-10-31 09:55:55: (mod_deflate.c.960) compress: in_queue len= 0
2007-10-31 09:55:55: (mod_deflate.c.1037) compressed bytes: 0
mod_deflate.c.1049: (trace) end: 0 - 24445 - 24445
2007-10-31 09:55:55: (mod_deflate.c.1056) flush error
-- rupa
Updated by Anonymous about 17 years ago
can't attach log (says my IP is in sc.surbl.org). Pasted here: http://rafb.net/p/BGCofJ15.html
-- rupa
Updated by stbuehler about 16 years ago
- Status changed from New to Fixed
- Resolution set to invalid
guess why mod_deflate is not official in 1.4. the other problem may be fixed with #1276.
Updated by gstrauss over 8 years ago
- Related to Feature #1824: Adding mod_deflate to 1.4.xx added
Updated by gstrauss over 8 years ago
- Description updated (diff)
Also available in: Atom