great, that works!

One thing is open now, the same request can only be delivered to one client at 
a time. Any ideas?

Christoph

----- Ursprüngliche Mail -----
Von: "Paul A. Procacci" <[email protected]>
An: "Christoph Mitasch" <[email protected]>
CC: [email protected]
Gesendet: Freitag, 31. August 2012 16:58:33
Betreff: Re: Output Buffering with Varnish

`man vcl`

############
beresp.do_stream
          Deliver  the  object to the client directly without fetching the
          whole object into varnish. If this request is  pass'ed  it  will
          not be stored in memory. As of Varnish Cache 3.0 the object will
          marked as busy as it is delivered so only client can access  the
          object.
############

This probably does what you want.

~Paul

On Fri, Aug 31, 2012 at 04:39:11PM +0200, Christoph Mitasch wrote:
> Hello,
>
> I'm using Varnish 3.0.2-2~bpo60+1 on Debian Squeeze.
>
> 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.
> <?
> echo "started";
> for ($i=0;$i<10;$i++) {
>  echo "+++";
>  echo str_repeat(" ", 4096);
>  sleep(1);
>  flush();
>  ob_flush();
> }
> echo "stopped";
> ?>
>
> How can Varnish be configured that scripts making use of output buffering are 
> working as expected?
>
> Thank you,
> Christoph
>
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

________________________________

This message may contain confidential or privileged information. If you are not 
the intended recipient, please advise us immediately and delete this message. 
See http://www.datapipe.com/legal/email_disclaimer/ 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.

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to