[master] 2c022ed The changes to the backend/waiter has changed the dyamics of closing backend connections enough to make previously almost stable test-cases more unstable.

Poul-Henning Kamp phk at FreeBSD.org
Sun May 24 23:24:46 CEST 2015


commit 2c022ed3ad3bfb14479e4968205827bbf8200f8e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sun May 24 21:23:56 2015 +0000

    The changes to the backend/waiter has changed the dyamics of
    closing backend connections enough to make previously almost
    stable test-cases more unstable.
    
    Fix this one by having the server send Connection: close as appropriate.

diff --git a/bin/varnishtest/tests/c00046.vtc b/bin/varnishtest/tests/c00046.vtc
index b5baf91..52872d7 100644
--- a/bin/varnishtest/tests/c00046.vtc
+++ b/bin/varnishtest/tests/c00046.vtc
@@ -2,7 +2,7 @@ varnishtest	"Object/LRU/Stevedores with hinting and body alloc failures"
 
 server s1 {
 	rxreq
-	txresp -bodylen 1000000
+	txresp -hdr "Connection: close" -bodylen 1000000
 } -start
 
 varnish v1 \
@@ -34,7 +34,7 @@ varnish v1 -expect SMA.s2.g_space > 1000000
 server s1 -wait {
 	rxreq
 	non-fatal
-	txresp -bodylen 1000001
+	txresp -hdr "Connection: close" -bodylen 1000001
 } -start
 
 client c1 {
@@ -56,7 +56,7 @@ varnish v1 -expect SMA.s2.g_space > 1000000
 server s1 -wait {
 	rxreq
 	# non-fatal
-	txresp -bodylen 1000002
+	txresp -hdr "Connection: close" -bodylen 1000002
 } -start
 
 client c1 {



More information about the varnish-commit mailing list