From: phk Date: Fri, 27 Jun 2008 10:37:23 +0000 (+0000) Subject: add req.grace handling as well X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d41e4e71428cf53106a568cedd6c87e3e7ba87f3;p=varnish add req.grace handling as well git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2845 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/v00000.vtc b/varnish-cache/bin/varnishtest/tests/v00000.vtc index 463d1bdb..43743d43 100644 --- a/varnish-cache/bin/varnishtest/tests/v00000.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00000.vtc @@ -1,6 +1,6 @@ # $Id$ -test "VCL/VRT: obj.ttl and obj.grace" +test "VCL/VRT: req.grace, obj.ttl and obj.grace" server s1 { @@ -11,9 +11,12 @@ server s1 { server s1 -start varnish v1 -vcl+backend { + sub vcl_recv { + set req.grace += 1 s; + } sub vcl_fetch { set obj.ttl += 1 m; - set obj.grace += 1 m; + set obj.grace += 1 h; } } -start