[master] 843a141b3 Add H/2 stream data head of line blocking test case

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Aug 30 08:31:08 UTC 2021


commit 843a141b3ee88fc7a180386a6ea9ecb9d7ccebc5
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue Jun 22 11:49:43 2021 +0200

    Add H/2 stream data head of line blocking test case
    
    This is the test case that fails if these changes aren't in tree. Note the
    commented out rxwinup commands that are necessary for the proper fail mode
    when run without the varnishtest window update changes.

diff --git a/bin/varnishtest/tests/t02017.vtc b/bin/varnishtest/tests/t02017.vtc
new file mode 100644
index 000000000..5090e6262
--- /dev/null
+++ b/bin/varnishtest/tests/t02017.vtc
@@ -0,0 +1,46 @@
+varnishtest "H/2 stream data head of line blocking"
+
+barrier b1 cond 2
+barrier b2 cond 2
+barrier b3 cond 2
+barrier b4 cond 2
+
+server s1 {
+	rxreq
+	barrier b4 sync
+	txresp
+} -start
+
+varnish v1 -vcl+backend {
+	sub vcl_recv {
+		if (req.url == "/2") {
+			return (synth(700));
+		}
+	}
+} -start
+
+varnish v1 -cliok "param.set feature +http2"
+
+client c1 {
+	stream 1 {
+		txreq -req GET -url /1 -hdr "content-length" "1" -nostrend
+		barrier b1 sync
+		barrier b2 sync
+		txdata -data 1
+#		rxwinup
+		barrier b3 sync
+		rxresp
+		expect resp.status == 200
+	} -start
+	stream 3 {
+		barrier b1 sync
+		txreq -req GET -url /2 -hdr "content-length" "1" -nostrend
+		barrier b2 sync
+		barrier b3 sync
+		txdata -data 2
+#		rxwinup
+		rxresp
+		expect resp.status == 700
+		barrier b4 sync
+	} -start
+} -run


More information about the varnish-commit mailing list