Mailing List Archive

Issue 1315 in cherokee: gzipped content + Accept-Encoding: gzip, deflate breaks keep alive
Status: New
Owner: ----

New issue 1315 by p...@noc4.net: gzipped content + Accept-Encoding:
gzip,deflate breaks keep alive
http://code.google.com/p/cherokee/issues/detail?id=1315

What steps will reproduce the problem?
1. enable Transforms -> Information Encoders -> gzip
2. create a request with Accept-Encoding: gzip,deflate & Connection:
Keep-Alive headers set


What is the expected output?
compressed reply with Connection: Keep-Alive

What do you see instead?
compressed reply with Connection: close

What version of the product are you using? On what operating system?
Server: Cherokee/1.2.101 (Gentoo Linux) x86_64 gcc 4.5.3

Please provide any additional information below.


## with gzip transform

2011-12-06 02:06:13 (111 MB/s) - `/dev/null' saved [93868/93868]

web2 ~ # wget -SO/dev/null --header='Connection: keep-alive'
--header='Accept-Encoding: gzip,deflate'
http://static.cdn.noc4.net:8081/jquery-1.7.1.min.js
--2011-12-06 02:06:45-- http://static.cdn.noc4.net:8081/jquery-1.7.1.min.js
Resolving static.cdn.noc4.net (static.cdn.noc4.net)...
2a02:2658:1017::450:3, 31.3.231.205
Connecting to static.cdn.noc4.net (static.cdn.noc4.net)|
2a02:2658:1017::450:3|:8081... connected.
HTTP request sent, awaiting response...
HTTP/1.0 200 OK
Connection: close
Date: Tue, 06 Dec 2011 02:08:11 GMT
Server: Cherokee/1.2.101 (Gentoo Linux)
Content-Encoding: gzip
Vary: Accept-Encoding
Last-Modified: Thu, 24 Nov 2011 15:43:44 GMT
Content-Type: application/x-javascript
X-Hosted-By: NOC4 Technologies Limited, UK. <http://www.noc4.net/>
Length: unspecified [application/x-javascript]
Saving to: `/dev/null'

[
<=>
] 33,239 --.-K/s in 0.005s

2011-12-06 02:06:45 (6.46 MB/s) - `/dev/null' saved [33239]

web2 ~ # wget -SO/dev/null --header='Connection: keep-alive'
http://static.cdn.noc4.net:8081/jquery-1.7.1.min.js
--2011-12-06 02:07:04-- http://static.cdn.noc4.net:8081/jquery-1.7.1.min.js
Resolving static.cdn.noc4.net (static.cdn.noc4.net)...
2a02:2658:1017::450:3, 31.3.231.205
Connecting to static.cdn.noc4.net (static.cdn.noc4.net)|
2a02:2658:1017::450:3|:8081... connected.
HTTP request sent, awaiting response...
HTTP/1.0 200 OK
Connection: Keep-Alive
Keep-Alive: timeout=16, max=500
Date: Tue, 06 Dec 2011 02:08:30 GMT
Server: Cherokee/1.2.101 (Gentoo Linux)
Last-Modified: Thu, 24 Nov 2011 15:43:44 GMT
Content-Type: application/x-javascript
Content-Length: 93868
X-Hosted-By: NOC4 Technologies Limited, UK. <http://www.noc4.net/>
Length: 93868 (92K) [application/x-javascript]
Saving to: `/dev/null'

100%[=========================================================================================================================================>]
93,868
--.-K/s in 0.002s

2011-12-06 02:07:04 (44.0 MB/s) - `/dev/null' saved [93868/93868]


## without gzip transform

web2 ~ # wget -SO/dev/null --header='Connection: keep-alive'
--header='Accept-Encoding: gzip,deflate'
http://static.cdn.noc4.net:8081/jquery-1.7.1.min.js
--2011-12-06 02:06:13-- http://static.cdn.noc4.net:8081/jquery-1.7.1.min.js
Resolving static.cdn.noc4.net (static.cdn.noc4.net)...
2a02:2658:1017::450:3, 31.3.231.205
Connecting to static.cdn.noc4.net (static.cdn.noc4.net)|
2a02:2658:1017::450:3|:8081... connected.
HTTP request sent, awaiting response...
HTTP/1.0 200 OK
Connection: Keep-Alive
Keep-Alive: timeout=16, max=500
Date: Tue, 06 Dec 2011 02:07:39 GMT
Server: Cherokee/1.2.101 (Gentoo Linux)
Last-Modified: Thu, 24 Nov 2011 15:43:44 GMT
Content-Type: application/x-javascript
Content-Length: 93868
X-Hosted-By: NOC4 Technologies Limited, UK. <http://www.noc4.net/>
Length: 93868 (92K) [application/x-javascript]
Saving to: `/dev/null'

100%[=========================================================================================================================================>]
93,868
--.-K/s in 0.001s


_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev