]> err.no Git - varnish/commitdiff
add req.grace handling as well
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 27 Jun 2008 10:37:23 +0000 (10:37 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 27 Jun 2008 10:37:23 +0000 (10:37 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2845 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/v00000.vtc

index 463d1bdb3beca620ae26c91d8fbef703e3dca451..43743d4344f98b3c34b0d4478e86fdb60dcc638e 100644 (file)
@@ -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