[Varnish] #1220: Temporary gzip issue: Invalid Gzip data: incorrect header check

Varnish varnish-bugs at varnish-cache.org
Wed Oct 16 09:11:22 CEST 2013


#1220: Temporary gzip issue: Invalid Gzip data: incorrect header check
-------------------------+---------------------
 Reporter:  jinjian.1@…  |       Owner:  martin
     Type:  defect       |      Status:  new
 Priority:  normal       |   Milestone:
Component:  varnishd     |     Version:  3.0.2
 Severity:  normal       |  Resolution:
 Keywords:  stream Gzip  |
-------------------------+---------------------

Comment (by miroslav.spousta):

 We also encountered this issue. It happens when:
 - backend server is using gzip + chunked encoding
 - streaming is allowed in VCL (set beresp.do_stream = true in vcl_fetch)

 The reason is that RES_StreamPoll() frees data before they are decoded by
 VGZ_Gunzip() in vfp_testgzip_bytes().

 The attached patch fixes this by moving RES_StreamPoll() call just after
 VGZ buffer processing.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1220#comment:8>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list