Chunked gzip encoding problem in trunk
Dmitry Panov
dmitry.panov at yahoo.co.uk
Wed Mar 2 00:30:25 CET 2011
Hi guys,
If the backend returns chunked gzip data it currently results in an
error response from varnish. This is because both vfp_testgzip_bytes()
and vfp_gunzip_bytes() assume that the gzipped stream ends at the end of
the block being read. This obviously is not happening in case of chunked
gzip, because chunking is done after gzipping.
I solved the problem by adding Z_OK to the condition (patch attached).
Best regards,
--
Dmitry Panov
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: chunked_gzip.patch
URL: <http://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20110301/868b28d2/attachment.ksh>
More information about the varnish-dev
mailing list