[master] 613036a06 Add test case for large req body buffer use

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


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

    Add test case for large req body buffer use

diff --git a/bin/varnishtest/tests/t02018.vtc b/bin/varnishtest/tests/t02018.vtc
new file mode 100644
index 000000000..b6ff9eec8
--- /dev/null
+++ b/bin/varnishtest/tests/t02018.vtc
@@ -0,0 +1,36 @@
+varnishtest "H/2 stream multiple buffer exhaustion"
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {
+} -start
+
+varnish v1 -cliok "param.set feature +http2"
+varnish v1 -cliok "param.reset h2_initial_window_size"
+varnish v1 -cliok "param.reset h2_rx_window_low_water"
+
+client c1 {
+	stream 1 {
+		txreq -req GET -url /1 -hdr "content-length" "131072" -nostrend
+		txdata -datalen 16384 -nostrend
+		rxwinup
+		txdata -datalen 16384 -nostrend
+		rxwinup
+		txdata -datalen 16384 -nostrend
+		rxwinup
+		txdata -datalen 16384 -nostrend
+		rxwinup
+		txdata -datalen 16384 -nostrend
+		rxwinup
+		txdata -datalen 16384 -nostrend
+		rxwinup
+		txdata -datalen 16384 -nostrend
+		rxwinup
+		txdata -datalen 16384
+		rxresp
+		expect resp.status == 200
+	} -start
+} -run


More information about the varnish-commit mailing list