[experimental-ims] c4d56d7 Add test case for v-c.org ticket #1157 (connection close on pass and do_stream)

Martin Blix Grydeland martin at varnish-software.com
Thu Dec 18 10:27:50 CET 2014


commit c4d56d7670512c41c54d3b66283f42c2230e6e20
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Jun 20 14:49:44 2012 +0200

    Add test case for v-c.org ticket #1157 (connection close on pass and
    do_stream)
    
    Bug fix itself is not applicable to trunk, but has been pushed on 3.0.

diff --git a/bin/varnishtest/tests/r01157.vtc b/bin/varnishtest/tests/r01157.vtc
new file mode 100644
index 0000000..9cecd9a
--- /dev/null
+++ b/bin/varnishtest/tests/r01157.vtc
@@ -0,0 +1,26 @@
+varnishtest "#1157 - Connection close on pass and do_stream"
+
+server s1 {
+	rxreq
+	txresp
+	expect req.url == "/"
+
+	rxreq
+	txresp
+	expect req.url == "/"
+} -start
+
+varnish v1 -vcl+backend {
+	sub vcl_recv { return (pass); }
+	sub vcl_fetch {	set beresp.do_stream = true; }
+} -start
+
+client c1 {
+	txreq -url /
+	rxresp
+	expect resp.status == 200
+
+	txreq -url /
+	rxresp
+	expect resp.status == 200
+} -run



More information about the varnish-commit mailing list