r2845 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Fri Jun 27 12:37:24 CEST 2008
Author: phk
Date: 2008-06-27 12:37:23 +0200 (Fri, 27 Jun 2008)
New Revision: 2845
Modified:
trunk/varnish-cache/bin/varnishtest/tests/v00000.vtc
Log:
add req.grace handling as well
Modified: trunk/varnish-cache/bin/varnishtest/tests/v00000.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00000.vtc 2008-06-27 10:15:55 UTC (rev 2844)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00000.vtc 2008-06-27 10:37:23 UTC (rev 2845)
@@ -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 -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
More information about the varnish-commit
mailing list