]> err.no Git - varnish/commitdiff
Add test for two corner cases in backend body determination.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 18 Dec 2008 11:48:56 +0000 (11:48 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 18 Dec 2008 11:48:56 +0000 (11:48 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3472 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/b00027.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/b00027.vtc b/varnish-cache/bin/varnishtest/tests/b00027.vtc
new file mode 100644 (file)
index 0000000..6451d0b
--- /dev/null
@@ -0,0 +1,28 @@
+# $Id$
+
+test "test backend transmission corner cases"
+
+server s1 {
+       rxreq
+       txresp
+       rxreq
+       txresp -proto HTTP/1.0 -hdr "Connection: keep-alive"
+       rxreq
+       txresp -hdr "Transfer-encoding: foobar"
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+client c1 {
+       txreq -url /foo
+       rxresp
+       expect resp.status == 200
+       expect resp.bodylen == 0
+       txreq -url /bar
+       rxresp
+       expect resp.status == 200
+       expect resp.bodylen == 0
+       txreq -url /barf
+       rxresp
+       expect resp.status == 503
+} -run