[master] 29db5c9 Add a H1 testcase which exercises the single like of code which triggers this bug for H2. (H2 will be added to the testcase as part of the fix.)

Poul-Henning Kamp phk at FreeBSD.org
Tue Mar 21 13:26:06 CET 2017


commit 29db5c9a92493ae6553f5cce37c04a2a625e96cd
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 21 12:24:48 2017 +0000

    Add a H1 testcase which exercises the single like of code which
    triggers this bug for H2.  (H2 will be added to the testcase as part
    of the fix.)

diff --git a/bin/varnishtest/tests/r02258.vtc b/bin/varnishtest/tests/r02258.vtc
new file mode 100644
index 0000000..ab2fac3
--- /dev/null
+++ b/bin/varnishtest/tests/r02258.vtc
@@ -0,0 +1,24 @@
+varnishtest "Streaming range premature finish"
+
+server s1 {
+	non_fatal
+	rxreq
+	txresp -nolen -hdr "Content-length: 9"
+	delay 1
+	send "BLA"
+	delay .4
+	send "BLA"
+	delay .3
+	send "BL"
+} -start
+
+varnish v1 -vcl+backend { } -start
+
+client c1 {
+	txreq -hdr "range: bytes=0-16"
+	rxresp -no_obj
+	expect resp.status == 206
+	expect resp.http.content-length == 9
+	recv 8
+	expect_close
+} -run



More information about the varnish-commit mailing list