<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div class="yahoo_quoted" style="display: block;"><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt;"><div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"><div class="y_msg_container"><div id="yiv5732960105"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt;"><div id="yiv5732960105"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt;"><div id="yiv5732960105"><div
 class="yiv5732960105yqt2711349434" id="yiv5732960105yqt76781"><div id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_6791"><div class="yiv5732960105yui_3_13_0_ym1_1_1394535300689_6671" id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_6790" style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt;"><div id="yiv5732960105"><div class="yiv5732960105yqt7536193702" id="yiv5732960105yqt91963"><div id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_4942"><div class="yiv5732960105yui_3_13_0_ym1_1_1394535300689_4823 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6672" id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_4941" style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt;"><div id="yiv5732960105"><div class="yiv5732960105yqt3195436838" id="yiv5732960105yqt83921"><div
 id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_3118"><div class="yiv5732960105yui_3_13_0_ym1_1_1394535300689_2437 yiv5732960105yui_3_13_0_ym1_1_1394535300689_4824 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6673" id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_3117" style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt;"><div id="yiv5732960105yui_3_13_0_ym1_7_1394136307377_33"><div id="yiv5732960105yui_3_13_0_ym1_7_1394136307377_33"><span class="yiv5732960105yui_3_13_0_ym1_1_1394535300689_2438 yiv5732960105yui_3_13_0_ym1_1_1394535300689_4825 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6674 yiv5732960105yui_3_13_0_ym1_1_1394535300689_8866" id="yiv5732960105yui_3_13_0_ym1_7_1394136307377_53">On Friday, 7 March 2014, 8:32, Per Buer <perbu@varnish-software.com> wrote:</span></div><div class="yiv5732960105yahoo_quoted"
 id="yiv5732960105yui_3_13_0_ym1_7_1394136307377_35" style="display: block;"><div class="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17483 yiv5732960105yui_3_13_0_ym1_1_1394535300689_2440 yiv5732960105yui_3_13_0_ym1_1_1394535300689_4827 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6676 yiv5732960105yui_3_13_0_ym1_1_1394535300689_8868" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17624" style="font-size:10pt;"><div class="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17484 yiv5732960105yui_3_13_0_ym1_1_1394535300689_2441 yiv5732960105yui_3_13_0_ym1_1_1394535300689_4828 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6677 yiv5732960105yui_3_13_0_ym1_1_1394535300689_8869" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17623" style="font-size:12pt;"><div dir="ltr"></div><blockquote id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17622" style="margin-top:5px;margin-left:5px;border-left-width:2px;border-left-style:solid;border-left-color:rgb(16, 16,
 255);padding-left:5px;"><div class="yiv5732960105y_msg_container" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17635"><div id="yiv5732960105"><div id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17634"><div dir="ltr" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17633">Hi <div class="yiv5732960105gmail_extra" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17632"><br clear="none"><br clear="none"><div class="yiv5732960105yqt2554308176" id="yiv5732960105yqtfd78997"><div class="yiv5732960105gmail_quote" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17631">On Thu, Mar 6, 2014 at 9:16 PM, Antony Mayi <span dir="ltr"><<a rel="nofollow" shape="rect" id="yiv5732960105yui_3_13_0_ym1_8_1394535300689_59" ymailto="mailto:antonymayi@yahoo.com" target="_blank" href="mailto:antonymayi@yahoo.com">antonymayi@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv5732960105gmail_quote"
 id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17630" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex;"><div id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17629"><div class="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17488 yiv5732960105yui_3_13_0_ym1_1_1394535300689_2444 yiv5732960105yui_3_13_0_ym1_1_1394535300689_4831 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6680 yiv5732960105yui_3_13_0_ym1_1_1394535300689_8872" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17628" style="font-size:10pt;"><div id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_3146">Hi,</div><div id="yiv5732960105yui_3_13_0_ym1_8_1394535300689_62"><br clear="none"></div><div class="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17489 yiv5732960105yui_3_13_0_ym1_1_1394535300689_2445 yiv5732960105yui_3_13_0_ym1_1_1394535300689_4832 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6681
 yiv5732960105yui_3_13_0_ym1_1_1394535300689_8873" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17627" style="background-color:transparent;">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.</div><div class="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17490 yiv5732960105yui_3_13_0_ym1_1_1394535300689_2446 yiv5732960105yui_3_13_0_ym1_1_1394535300689_4833 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6682 yiv5732960105yui_3_13_0_ym1_1_1394535300689_8874" id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_3145"
 style="background-color:transparent;"><br clear="none"></div><div class="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17491 yiv5732960105yui_3_13_0_ym1_1_1394535300689_2447 yiv5732960105yui_3_13_0_ym1_1_1394535300689_4834 yiv5732960105yui_3_13_0_ym1_1_1394535300689_6683 yiv5732960105yui_3_13_0_ym1_1_1394535300689_8875" id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17992" style="background-color:transparent;">is there any way to control this in varnish - ie. some timeouts or buffer sizes etc (not interested in piping)?</div></div></div></blockquote><div id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17993"><br clear="none"></div><div id="yiv5732960105yui_3_13_0_ym1_1_1394136307377_17994">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.</div><div id="yiv5732960105yui_3_13_0_ym1_1_1394535300689_3144"><br clear="none"></div></div></div></div></div></div></div></div></blockquote></div></div></div></div><div id="yiv5732960105yui_3_13_0_ym1_7_1394136307377_33"><br clear="none"></div><div id="yiv5732960105yui_3_13_0_ym1_7_1394136307377_33">ok, thanks for explaining. I found this: https://www.varnish-software.com/blog/streaming-varnish-30 which suggest it should work in Varnish 3.0. I am using the official 3.0.5 from varnish rpm repo. I am setting the do_stream to true but still getting one big chunk. so is the blogpost wrong or has it not been officially released as rpm yet?</div><div id="yiv5732960105yui_3_13_0_ym1_7_1394136307377_33">thanks,</div><div id="yiv5732960105yui_3_13_0_ym1_7_1394136307377_33"><span style="font-size:
 10pt;">Antony.</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div> </blockquote>  </div> </div>   </div> </div></body></html>