From 29db5c9a92493ae6553f5cce37c04a2a625e96cd Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 21 Mar 2017 12:24:48 +0000 Subject: [PATCH] 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.) --- bin/varnishtest/tests/r02258.vtc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bin/varnishtest/tests/r02258.vtc diff --git a/bin/varnishtest/tests/r02258.vtc b/bin/varnishtest/tests/r02258.vtc new file mode 100644 index 0000000000..ab2fac3d36 --- /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