[master] d1a8c7bc0 Restrict ttls to valid RFC8941 sf-decimal values

Poul-Henning Kamp phk at FreeBSD.org
Wed May 19 09:09:04 UTC 2021


commit d1a8c7bc02ff7c8712c434d4b5c3d51c9ba9a061
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed May 19 09:06:25 2021 +0000

    Restrict ttls to valid RFC8941 sf-decimal values

diff --git a/bin/varnishtest/tests/r01499.vtc b/bin/varnishtest/tests/r01499.vtc
index 4f313e5da..9c61f90ad 100644
--- a/bin/varnishtest/tests/r01499.vtc
+++ b/bin/varnishtest/tests/r01499.vtc
@@ -10,7 +10,7 @@ server s1 {
 
 varnish v1 -vcl+backend {
 	sub vcl_backend_response {
-		set beresp.ttl = 0.0001s;
+		set beresp.ttl = 0.001s;
 		set beresp.grace = 0s;
 		set beresp.keep = 2s;
 	}
diff --git a/bin/varnishtest/tests/r01879.vtc b/bin/varnishtest/tests/r01879.vtc
index 8c3d7e296..090adc601 100644
--- a/bin/varnishtest/tests/r01879.vtc
+++ b/bin/varnishtest/tests/r01879.vtc
@@ -17,7 +17,7 @@ varnish v1 -vcl+backend {
 	import std;
 
 	sub vcl_backend_response {
-		set beresp.ttl = 0.00001s;
+		set beresp.ttl = 0.001s;
 		set beresp.grace = 0.1s;
 		set beresp.keep = 9999s;
 	}
diff --git a/bin/varnishtest/tests/r02319.vtc b/bin/varnishtest/tests/r02319.vtc
index 005ab0fe0..0ae5e41d1 100644
--- a/bin/varnishtest/tests/r02319.vtc
+++ b/bin/varnishtest/tests/r02319.vtc
@@ -8,7 +8,7 @@ server s1 {
 
 varnish v1 -vcl+backend {
 	sub vcl_backend_fetch {
-		set bereq.between_bytes_timeout = 0.0001s;
+		set bereq.between_bytes_timeout = 0.001s;
 	}
 	sub vcl_backend_response {
 		set beresp.do_stream = false;
diff --git a/bin/varnishtest/tests/r02763.vtc b/bin/varnishtest/tests/r02763.vtc
index 3488d7c95..8babdadf7 100644
--- a/bin/varnishtest/tests/r02763.vtc
+++ b/bin/varnishtest/tests/r02763.vtc
@@ -29,7 +29,7 @@ varnish v1 -vcl+backend {
 		if (bereq.http.HFM) {
 			set beresp.uncacheable = true;
 		} else {
-			set beresp.ttl = 0.0001s;
+			set beresp.ttl = 0.001s;
 			set beresp.grace = 0s;
 			set beresp.keep = 1m;
 		}
diff --git a/bin/varnishtest/tests/r02946.vtc b/bin/varnishtest/tests/r02946.vtc
index 71872679a..3756b9845 100644
--- a/bin/varnishtest/tests/r02946.vtc
+++ b/bin/varnishtest/tests/r02946.vtc
@@ -12,7 +12,7 @@ varnish v1 -vcl {
 			return (deliver);
 		}
 		set beresp.status = 200;
-		set beresp.ttl = 0.0001s;
+		set beresp.ttl = 0.001s;
 		set beresp.grace = 1h;
 		return (deliver);
 	}


More information about the varnish-commit mailing list