chunked response transfer encoding

Per Buer perbu at
Fri Mar 7 08:32:13 CET 2014


On Thu, Mar 6, 2014 at 9:16 PM, Antony Mayi <antonymayi at> wrote:

> Hi,
> my backend is sending chunked response (~100chunks, 100bytes each). it
> seems varnish then sends it again using chunked encoding but only as one
> big chunk. the app is sort of a json streaming system and the whole point
> of sending the responses in chunks is for the client to be able to handle
> each chunk asap once they are available. unfortunately varnish cumulates it
> into (which means waits for) one big chunk so the whole advantage of early
> client processing is gone.
> is there any way to control this in varnish - ie. some timeouts or buffer
> sizes etc (not interested in piping)?

This would require streaming. Varnish 3.0 will wait for the whole object to
arrive before forwarding it. Use Varnish 4.0 or dig out the streaming
patches. Set do_stream = true.

 <> *Per Buer*
CTO | Varnish Software
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!

Winner of the Red Herring Top 100 Global Award 2013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list