#1781: Error with gzip content on Varnish4
--------------------------+----------------------
Reporter: llavaud | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 4.1.0-TP1 | Severity: major
Keywords: gzip corrupt |
--------------------------+----------------------
Hello,
i have a problem with some gzip content, i request an url on my Varnish3
and i got a correct gzip response but if i do the same request on my
Varnish4 server i got a corrupt gzip response.
- request on the Varnish3 (3.0.5 on debian wheezy):
{{{
curl -H 'Accept-Encoding: gzip' -H 'Host: www.parents.fr'
http://10.114.3.12/Beaute-Forme/Beaute --silent > /tmp/content.gz
}}}
{{{
stat /tmp/content.gz
File: ‘/tmp/content.gz’
Size: 11804 Blocks: 24 IO Block: 4096 regular file
Device: 801h/2049d Inode: 175099 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/laurentl) Gid: ( 1000/laurentl)
Access: 2015-09-01 18:25:01.632840870 +0200
Modify: 2015-09-01 18:25:33.733209689 +0200
Change: 2015-09-01 18:25:33.733209689 +0200
Birth: -
}}}
{{{
gunzip -t /tmp/content.gz
}}}
- request on the Varnish4 (4.1.0-TP1 on debian wheezy):
{{{
curl -H 'Accept-Encoding: gzip' -H 'Host: www.parents.fr'
http://10.114.3.14/Beaute-Forme/Beaute --silent > /tmp/content2.gz
}}}
file is smaller:
{{{
stat /tmp/content2.gz
File: ‘/tmp/content2.gz’
Size: 11794 Blocks: 24 IO Block: 4096 regular file
Device: 801h/2049d Inode: 175055 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/laurentl) Gid: ( 1000/laurentl)
Access: 2015-09-01 18:26:38.481953633 +0200
Modify: 2015-09-01 18:26:38.509953954 +0200
Change: 2015-09-01 18:26:38.509953954 +0200
Birth: -
}}}
and corrupt:
{{{
gunzip -t /tmp/content2.gz
gzip: /tmp/content2.gz: invalid compressed data--crc error
gzip: /tmp/content2.gz: invalid compressed data--length error
}}}
i have attached the full varnishlog.
thanks in advance.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1781>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
--------------------------+----------------------
Reporter: llavaud | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 4.1.0-TP1 | Severity: major
Keywords: gzip corrupt |
--------------------------+----------------------
Hello,
i have a problem with some gzip content, i request an url on my Varnish3
and i got a correct gzip response but if i do the same request on my
Varnish4 server i got a corrupt gzip response.
- request on the Varnish3 (3.0.5 on debian wheezy):
{{{
curl -H 'Accept-Encoding: gzip' -H 'Host: www.parents.fr'
http://10.114.3.12/Beaute-Forme/Beaute --silent > /tmp/content.gz
}}}
{{{
stat /tmp/content.gz
File: ‘/tmp/content.gz’
Size: 11804 Blocks: 24 IO Block: 4096 regular file
Device: 801h/2049d Inode: 175099 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/laurentl) Gid: ( 1000/laurentl)
Access: 2015-09-01 18:25:01.632840870 +0200
Modify: 2015-09-01 18:25:33.733209689 +0200
Change: 2015-09-01 18:25:33.733209689 +0200
Birth: -
}}}
{{{
gunzip -t /tmp/content.gz
}}}
- request on the Varnish4 (4.1.0-TP1 on debian wheezy):
{{{
curl -H 'Accept-Encoding: gzip' -H 'Host: www.parents.fr'
http://10.114.3.14/Beaute-Forme/Beaute --silent > /tmp/content2.gz
}}}
file is smaller:
{{{
stat /tmp/content2.gz
File: ‘/tmp/content2.gz’
Size: 11794 Blocks: 24 IO Block: 4096 regular file
Device: 801h/2049d Inode: 175055 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/laurentl) Gid: ( 1000/laurentl)
Access: 2015-09-01 18:26:38.481953633 +0200
Modify: 2015-09-01 18:26:38.509953954 +0200
Change: 2015-09-01 18:26:38.509953954 +0200
Birth: -
}}}
and corrupt:
{{{
gunzip -t /tmp/content2.gz
gzip: /tmp/content2.gz: invalid compressed data--crc error
gzip: /tmp/content2.gz: invalid compressed data--length error
}}}
i have attached the full varnishlog.
thanks in advance.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1781>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs