From d41e4e71428cf53106a568cedd6c87e3e7ba87f3 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 27 Jun 2008 10:37:23 +0000 Subject: [PATCH] add req.grace handling as well git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2845 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/tests/v00000.vtc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.5