Use the 3.0.3plus release. It has proper streaming (and working persistent storage).<div><br></div><div><div>Per.</div><div><br></div><div>(Note: It is not as well supported as the 3.0.3 release)</div><div><br><div class="gmail_quote">

On Fri, Aug 31, 2012 at 8:57 PM, Christoph Mitasch <span dir="ltr"><<a href="mailto:cmitasch@thomas-krenn.com" target="_blank">cmitasch@thomas-krenn.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

great, that works!<br>
<br>
One thing is open now, the same request can only be delivered to one client at a time. Any ideas?<br>
<br>
Christoph<br>
<br>
----- Ursprüngliche Mail -----<br>
Von: "Paul A. Procacci" <<a href="mailto:pprocacci@datapipe.com">pprocacci@datapipe.com</a>><br>
An: "Christoph Mitasch" <<a href="mailto:cmitasch@thomas-krenn.com">cmitasch@thomas-krenn.com</a>><br>
CC: <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
Gesendet: Freitag, 31. August 2012 16:58:33<br>
Betreff: Re: Output Buffering with Varnish<br>
<div class="HOEnZb"><div class="h5"><br>
`man vcl`<br>
<br>
############<br>
beresp.do_stream<br>
          Deliver  the  object to the client directly without fetching the<br>
          whole object into varnish. If this request is  pass'ed  it  will<br>
          not be stored in memory. As of Varnish Cache 3.0 the object will<br>
          marked as busy as it is delivered so only client can access  the<br>
          object.<br>
############<br>
<br>
This probably does what you want.<br>
<br>
~Paul<br>
<br>
On Fri, Aug 31, 2012 at 04:39:11PM +0200, Christoph Mitasch wrote:<br>
> Hello,<br>
><br>
> I'm using Varnish 3.0.2-2~bpo60+1 on Debian Squeeze.<br>
><br>
> The following PHP code behaves differently when Varnish is used. The output is returned after 10 seconds at once. When Varnish is not used, an output is returned every second.<br>
> <?<br>
> echo "started";<br>
> for ($i=0;$i<10;$i++) {<br>
>  echo "+++";<br>
>  echo str_repeat(" ", 4096);<br>
>  sleep(1);<br>
>  flush();<br>
>  ob_flush();<br>
> }<br>
> echo "stopped";<br>
> ?><br>
><br>
> How can Varnish be configured that scripts making use of output buffering are working as expected?<br>
><br>
> Thank you,<br>
> Christoph<br>
><br>
> _______________________________________________<br>
> varnish-misc mailing list<br>
> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
<br>
________________________________<br>
<br>
This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See <a href="http://www.datapipe.com/legal/email_disclaimer/" target="_blank">http://www.datapipe.com/legal/email_disclaimer/</a> for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you.<br>


<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></div></div></blockquote></div><br><br clear="all"><div><br>

</div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div>

<a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>

<br></div></div><br>
</div></div>