<div dir="ltr">Yes. req.grace is gone.<div><br></div><div>The docs need an update. Have a look at the builtin VCL (vcl_hit) and you'll see how it works.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-05-06 11:45 GMT+02:00 Giuseppe Pascarella <span dir="ltr"><<a href="mailto:g.pascarella@sportnetwork.it" target="_blank">g.pascarella@sportnetwork.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I just want the grace mechanism to work.<br>
So I need to skip at all the check in vcl_recv? <br>
<br>
if (!std.healthy(req.backend_hint)) {<br>
set req.grace = 10m;<br>
} else {<br>
set req.grace = 2m;<br>
}<br>
<span><br>
As reported in<br>
<a href="https://www.varnish-cache.org/docs/trunk/users-guide/vcl-grace.html" target="_blank">https://www.varnish-cache.org/docs/trunk/users-guide/vcl-grace.html</a> "in
order to enable Varnish to actually serve the stale object we *must*
enable this on the request".<br>
</span><br><div class="">
<div>-- <br><span style="color:rgb(102,102,102)">Giuseppe Pascarella</span><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">Chief Technology Officer @
Divisione Multimedia</span><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">Sport Network SRL</span><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">t: <a href="tel:%2B39.06.49.246.423" value="+390649246423" target="_blank">+39.06.49.246.423</a></span><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">m: <a href="tel:%2B39.338.733.61.93" value="+393387336193" target="_blank">+39.338.733.61.93</a></span><br>
</div>
<br>
<font size="-2" color="blue"><pre>Ai sensi della legge 196/2003, si precisa che le informazioni
contenute in questo messaggio e nei suoi eventuali allegati sono
riservate e per uso esclusivo del destinatario. Nessuno, all'infuori
dello stesso deve copiare o distribuire il messaggio o parte di esso a
terzi. Chiunque riceva questo messaggio per errore è pregato di
informare immediatamente il mittente e distruggerlo.</pre></font>
</div></div>
<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></blockquote></div><br><br clear="all"><div><br></div>-- <br>
<div dir="ltr"><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>CTO | Varnish Software<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>
<br></span><span style="font-family:'Helvetica Neue',Arial,sans-serif;font-size:14px;font-weight:bold">Winner of the Red Herring Top 100 Global Award 2013<br></span><p style="margin:0px;line-height:normal;font-family:Helvetica">
<img src="https://www.varnish-software.com/sites/default/files/redherring_2013_winner_sml.jpg"></p><span style="font-weight:bold"><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>
</div>