[master] 425d37b Introduce a barrier to prevent the HEADERS from overtaking the WINDOWS_UPDATE

Poul-Henning Kamp phk at FreeBSD.org
Wed Apr 5 00:03:05 CEST 2017


commit 425d37b6420cb7c4cc0c50af4a55684685525f0f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Apr 4 22:01:59 2017 +0000

    Introduce a barrier to prevent the HEADERS from overtaking
    the WINDOWS_UPDATE

diff --git a/bin/varnishtest/tests/t02005.vtc b/bin/varnishtest/tests/t02005.vtc
index 2cf31ee..85235f7 100644
--- a/bin/varnishtest/tests/t02005.vtc
+++ b/bin/varnishtest/tests/t02005.vtc
@@ -1,7 +1,10 @@
 varnishtest "H2 POST"
 
+barrier b1 cond 2
+
 server s1 {
 	rxreq
+	barrier b1 sync
 	txresp -hdr "Content-Type: text/plain" -body response
 } -start
 
@@ -13,6 +16,7 @@ client c1 {
 		txreq -req POST -hdr content-type text/plain -hdr content-length 7 -body request
 
 		rxwinup
+		barrier b1 sync
 		# First, HTTP checks
 		rxresp
 		expect resp.http.content-Type == "text/plain"



More information about the varnish-commit mailing list