Initial streaming request blocking other requests to same url

Reinis Rozitis r at roze.lv
Thu Feb 28 13:37:34 CET 2013


> The 3.0 official 
> documentation(https://www.varnish-cache.org/docs/3.0/reference/vcl.html) 
> says:
> "As of Varnish Cache 3.0 the object will marked as busy as it is delivered 
> so only client can access the object."

Try the streaming fork: 
http://repo.varnish-cache.org/source/varnish-3.0.2-streaming.tar.gz or 
https://github.com/mbgrydeland/varnish-cache-streaming/
iirc the git version had some extra fixes since 3.0.2 release.


And for the particular objects in vcl_fetch set set beresp.do_stream = true;

For example:

sub vcl_fetch {
# whatever else

     if (req.url ~ "\.mp4") {
       set beresp.do_stream = true;
    }

     return (deliver);
}




p.s. if this works want ISKs in Eve :)


rr 




More information about the varnish-misc mailing list