[4.0] 6c0eb3d Resurrect this test-case
Lasse Karstensen
lkarsten at varnish-software.com
Mon Sep 22 16:38:25 CEST 2014
commit 6c0eb3d59736ca036bf664698b8d33b532291bcd
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Sep 1 09:23:35 2014 +0000
Resurrect this test-case
diff --git a/bin/varnishtest/tests/r00979.vtc b/bin/varnishtest/tests/r00979.vtc
new file mode 100644
index 0000000..46d7fa9
--- /dev/null
+++ b/bin/varnishtest/tests/r00979.vtc
@@ -0,0 +1,31 @@
+varnishtest "r00979.vtc Test restart when do_stream in vcl_deliver"
+
+server s1 {
+ rxreq
+ txresp -status 200 -gzipbody "1"
+
+ accept
+ rxreq
+ txresp -status 200 -body "11"
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_backend_response {
+ set beresp.do_stream = true;
+ set beresp.uncacheable = true;
+ }
+ sub vcl_deliver {
+ if (req.restarts == 0) {
+ return (restart);
+ }
+ }
+} -start
+
+varnish v1 -cliok "param.set debug +syncvsl"
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.status == 200
+ expect resp.bodylen == 2
+} -run
More information about the varnish-commit
mailing list