<div dir="ltr">No. It doesn't work.<div><br></div><div style>You'll end with multiple versions of the same object in memory and you'll disable caching when multiple requests are taking place. Sort of like a braindamaged "pass" that doesn't free up the memory when the request is done.</div>

<div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 30, 2013 at 11:22 AM, Jakub Słociński <span dir="ltr"><<a href="mailto:kuba@ovh.net" target="_blank">kuba@ovh.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
I would bet that hash_ignore_busy works under the version Xianzhe Wang<br>
mentioned - 3.0.2-streaming :)<br>
<br>
--<br>
Regards,<br>
Jakub Słociński<br>
<br>
Per Buer napisał(a):<br>
<div><div class="h5">> Hi.<br>
><br>
> On Tue, Jan 29, 2013 at 1:13 PM, Jakub Słociński <<a href="mailto:kuba@ovh.net">kuba@ovh.net</a>> wrote:<br>
><br>
> > Hi Xianzhe Wang,<br>
> > you should try option<br>
> > "set req.hash_ignore_busy = true;"<br>
> > in vlc_recv.<br>
> ><br>
><br>
> No. This won't work.<br>
><br>
> Plain vanilla varnish doesn't support streaming properly. You should use<br>
> the "plus" branch of Varnish if you need it.<br>
><br>
><br>
><br>
><br>
><br>
> ><br>
> > Regards,<br>
> > --<br>
> > Jakub S.<br>
> ><br>
> ><br>
> > Xianzhe Wang napisał(a):<br>
> > > Hello everyone,<br>
> > >     My varnish version is 3.0.2-streaming release.And I set<br>
> > > "beresp.do_stream  = true" in vcl_fetch in order to "Deliver the object<br>
> > to<br>
> > > the client directly without fetching the whole object into varnish";<br>
> > ><br>
> > > This is a part of my *.vcl file:<br>
> > ><br>
> > >  sub vcl_fetch {<br>
> > >     set beresp.grace = 30m;<br>
> > ><br>
> > >     set beresp.do_stream = true;<br>
> > ><br>
> > >     if (beresp.http.Content-Length && beresp.http.Content-Length ~<br>
> > > "[0-9]{8,}") {<br>
> > >        return (hit_for_pass);<br>
> > >     }<br>
> > ><br>
> > >      if (beresp.http.Pragma ~ "no-cache" || beresp.http.Cache-Control ~<br>
> > > "no-cache" || beresp.http.Cache-Control ~ "private") {<br>
> > >            return (hit_for_pass);<br>
> > >        }<br>
> > ><br>
> > >      if (beresp.ttl <= 0s ||<br>
> > >          beresp.http.Set-Cookie ||<br>
> > >          beresp.http.Vary == "*") {<br>
> > ><br>
> > >                 set beresp.ttl = 120 s;<br>
> > >                 return (hit_for_pass);<br>
> > >      }<br>
> > ><br>
> > >     return (deliver);<br>
> > >  }<br>
> > ><br>
> > > Then I request a big file(about 100M+) like "xxx.zip" from clients.There<br>
> > is<br>
> > > only one client can access the object.because "the object will marked as<br>
> > > busy as it is delivered."<br>
> > ><br>
> > > But if  the request goes directly to “pass” ,multiple clients can get the<br>
> > > response at the same time.<br>
> > ><br>
> > > Also if I remove<br>
> > >   if (beresp.http.Content-Length && beresp.http.Content-Length ~<br>
> > > "[0-9]{8,}") {<br>
> > >        return (hit_for_pass);<br>
> > >     }<br>
> > > to make the file cacheable,multiple clients can get the response at the<br>
> > > same time.<br>
> > ><br>
> > > Now I want "multiple clients can get the response at the same time." in<br>
> > all<br>
> > > situations("pass","hit","hit_for_pass").<br>
> > ><br>
> > > What can I do for it?<br>
> > > Any suggestions  will be appreciate.<br>
> > > Thank you.<br>
> > ><br>
> > >  -Shawn Wang<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>
> > 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>
><br>
> --<br>
</div></div>>  <<a href="http://www.varnish-software.com/" target="_blank">http://www.varnish-software.com/</a>> *Per Buer*<br>
<div class="HOEnZb"><div class="h5">> CEO | Varnish Software AS<br>
> Phone: <a href="tel:%2B47%20958%2039%20117" value="+4795839117">+47 958 39 117</a> | Skype: per.buer<br>
> We Make Websites Fly!<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">

<table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">

<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>

<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CEO | Varnish Software AS<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>

<br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></div>
</div>