[master] 65e7c1f43 try to stabilize vtc

Nils Goroll nils.goroll at uplex.de
Sat Oct 10 16:41:06 UTC 2020


commit 65e7c1f4338f29b679f63014b43f7e35152db5f8
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat Oct 10 18:38:58 2020 +0200

    try to stabilize vtc
    
    seen in vtest:
    
    **** v1   vsl|       1004 Begin           b bereq 1003 fetch
    **** v1   vsl|       1004 VCL_use         b vcl1
    **** v1   vsl|       1004 Timestamp       b Start: 1602334643.946723 0.000000 0.000000
    **** v1   vsl|       1004 BereqMethod     b PUT
    **** v1   vsl|       1004 BereqURL        b /2
    **** v1   vsl|       1004 BereqProtocol   b HTTP/1.1
    **** v1   vsl|       1004 BereqHeader     b Host: 127.0.0.1
    **** v1   vsl|       1004 BereqHeader     b Content-Length: 250000
    **** v1   vsl|       1004 BereqHeader     b X-Forwarded-For: 127.0.0.1
    **** v1   vsl|       1004 BereqMethod     b GET
    **** v1   vsl|       1004 BereqHeader     b Accept-Encoding: gzip
    **** v1   vsl|       1004 BereqHeader     b X-Varnish: 1004
    **** v1   vsl|       1004 VCL_call        b BACKEND_FETCH
    **** v1   vsl|       1004 VCL_return      b fetch
    **** v1   vsl|       1004 BackendOpen     b 26 s1 127.0.0.1 36579 127.0.0.1 60878 connect
    **** v1   vsl|       1004 Timestamp       b Bereq: 1602334643.956883 0.010159 0.010159
    **** v1   vsl|       1004 FetchError      b HTC eof (-1)
    
    Ref #3433

diff --git a/bin/varnishtest/tests/r03433.vtc b/bin/varnishtest/tests/r03433.vtc
index 0ebbb5d9b..d361caada 100644
--- a/bin/varnishtest/tests/r03433.vtc
+++ b/bin/varnishtest/tests/r03433.vtc
@@ -1,6 +1,11 @@
 varnishtest "req.body and restarts"
 
-server s1 -repeat 4 {
+server s1 -repeat 2 {
+	rxreq
+	txresp -bodylen 1000
+} -start
+
+server s2 -repeat 2 {
 	rxreq
 	txresp -bodylen 1000
 } -start
@@ -14,6 +19,14 @@ varnish v1 -vcl+backend {
 		return (hash);
 	}
 
+	sub vcl_backend_fetch {
+		if (bereq.url == "/1") {
+			set bereq.backend = s1;
+		} else {
+			set bereq.backend = s2;
+		}
+	}
+
 	sub vcl_backend_response {
 		set beresp.ttl = 0.1s;
 	}


More information about the varnish-commit mailing list