[master] 9c2e787 Resurrect this test-case
Poul-Henning Kamp
phk at FreeBSD.org
Mon Sep 1 11:23:45 CEST 2014
commit 9c2e787d2780aa6a3dfb6ed31eab66cd854af320
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