Project

General

Profile

Bug #2119

mod_cgi: bad chunked transfer encoding with the mod_deflate patch

Added by geronimo almost 10 years ago. Updated over 3 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
mod_deflate
Target version:
-
Start date:
2009-12-13
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:
No

Description

If mod_deflate support patch is applied (http://redmine.lighttpd.net/attachments/632/lighttpd-1.4.19.mod_deflate.patch) transfer chunked encoding will be broken in mod_cgi even if mod_deflate is disabled.

Steps to reproduce.
Write simple cgi script:

#!/usr/bin/perl
use CGI
print CGI::header();
print "hello world";

When you try curl http://localhost/cgi-test.pl you will receive "(18) transfer closed with outstanding read data remaining" because there is no last zero size chunk in the response.

There are no problems with HTTP/1.0 because chunked transfer encoding is not used.


Related issues

Related to Feature #1824: Adding mod_deflate to 1.4.xx Fixed2008-11-18

Actions

History

#1

Updated by stbuehler almost 10 years ago

  • Status changed from New to Invalid
  • Target version deleted (1.4.x)

Why do you think the patch wasn't applied upstream?

#2

Updated by geronimo almost 10 years ago

stbuehler wrote:

Why do you think the patch wasn't applied upstream?

If you are not going to make 1.5.x the main release, mod_deflate is a must have feature in 1.4.x

#3

Updated by stbuehler almost 10 years ago

No.

#4

Updated by geronimo almost 10 years ago

I have made a patch: http://redmine.lighttpd.net/attachments/1057/mod_deflate-1.4.19-fix-chunked-coding.patch
I don't like it, but it's the easiest way not to make the diff with the trunk too large.

#5

Updated by gstrauss over 3 years ago

#7

Updated by gstrauss over 3 years ago

  • Category set to mod_deflate

Also available in: Atom