[Varnish] #1688: ESI-included synthetic response is delivered uncompressed within a gzipped response

Varnish varnish-bugs at varnish-cache.org
Mon Mar 2 15:14:06 CET 2015


#1688: ESI-included synthetic response is delivered uncompressed within a gzipped
response
----------------------------------------+----------------------------------
 Reporter:  geoff                       |       Owner:  phk
     Type:  defect                      |      Status:  closed
 Priority:  normal                      |   Milestone:  Varnish 4.0 release
Component:  varnishd                    |     Version:  4.0.3
 Severity:  major                       |  Resolution:  fixed
 Keywords:  esi include synthetic gzip  |
----------------------------------------+----------------------------------

Comment (by phk):

 The test-case you provided only pointed out that varnishtest forgot to NUL
 terminate the gunzip'ed body, which made "expect resp.body" fall of the
 end of the world, varnishd does the right thing.

 You will see the synth response uncompressed in the middle of the gzip'ed
 data in this case, but it will be prefixed by five bytes that make it a
 "literal" gzip block:

 {{{
 **** c1    1.2 chunk| \x002\x00\xcd\xffthis is the body of an included
 synthetic response
 }}}

 Notice that the '2' is ascii two, not part of \x00, so in this case the
 header says type=0x00, length = 0x0032, ~length = 0xffcd.

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



More information about the varnish-bugs mailing list