[master] 5455830 More H2 coverage

Poul-Henning Kamp phk at FreeBSD.org
Sat Feb 18 10:09:05 CET 2017


commit 5455830d9361be8d4e9d97cb2ebaa12487f9cad4
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Feb 18 09:07:04 2017 +0000

    More H2 coverage

diff --git a/bin/varnishtest/tests/t02003.vtc b/bin/varnishtest/tests/t02003.vtc
index 64f9358..f2e26db 100644
--- a/bin/varnishtest/tests/t02003.vtc
+++ b/bin/varnishtest/tests/t02003.vtc
@@ -10,6 +10,37 @@ varnish v1 -vcl+backend {} -start
 varnish v1 -cliok "param.set feature +http2"
 varnish v1 -cliok "param.set debug +syncvsl"
 
+# Test Even stream numbers
+
+client c1 {
+	stream 0 {
+		rxgoaway
+		expect goaway.laststream == 0
+		expect goaway.err == PROTOCOL_ERROR
+	} -start
+	stream 2 {
+		txwinup -size 1
+	} -run
+	stream 0 -wait
+} -run
+
+# Test reverse order stream numbers
+
+client c1 {
+	stream 0 {
+		rxgoaway
+		expect goaway.laststream == 3
+		expect goaway.err == PROTOCOL_ERROR
+	} -start
+	stream 3 {
+		txwinup -size 1
+	} -run
+	stream 1 {
+		txwinup -size 1
+	} -run
+	stream 0 -wait
+} -run
+
 # Test WINDOW_UPDATE error conditions
 
 client c1 {
diff --git a/bin/varnishtest/tests/t02004.vtc b/bin/varnishtest/tests/t02004.vtc
new file mode 100644
index 0000000..cfb5c4d
--- /dev/null
+++ b/bin/varnishtest/tests/t02004.vtc
@@ -0,0 +1,24 @@
+varnishtest "H2 panic"
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {
+	import debug;
+
+	sub vcl_recv {
+		debug.panic("H2 panic");
+	}
+} -start
+
+varnish v1 -cliok "param.set feature +http2"
+varnish v1 -cliok "param.set debug +syncvsl"
+
+client c1 {
+	stream 1 {
+		txreq -hdr :authority foo.bar -pad cotton
+		delay 3
+	} -run
+} -run



More information about the varnish-commit mailing list