]> err.no Git - varnish/commitdiff
Add a TCP reuse testcase, and polish the a00006 case a bit
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Jun 2008 15:34:14 +0000 (15:34 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Jun 2008 15:34:14 +0000 (15:34 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2748 d4fa192b-c00b-0410-8231-f00ffab90ce4

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

index 97661989dde7033a4833cd9b7c70142660a42199..3cb1671d08b039654e735a23fd38304a3fa74194 100644 (file)
@@ -1,6 +1,6 @@
 # $Id$
 
-test "dual shared client HTTP transactions"
+test "bidirectional message bodies"
 
 server s1 -listen :9080 {
        rxreq
@@ -26,12 +26,4 @@ client c1 -connect localhost:9080 {
 
 client c1 -run
 
-client c1 -connect localhost:9081 {
-       txreq 
-       rxresp
-       expect resp.proto == HTTP/1.1
-       expect resp.status == 200
-       expect resp.msg == Ok
-}
-
 server s1 -wait
diff --git a/varnish-cache/bin/varnishtest/tests/a00007.vtc b/varnish-cache/bin/varnishtest/tests/a00007.vtc
new file mode 100644 (file)
index 0000000..34afcb7
--- /dev/null
@@ -0,0 +1,25 @@
+# $Id$
+
+test "TCP reuse"
+
+server s1 -listen :9080 {
+       rxreq
+       expect req.url == "/1"
+       txresp -hdr "Length: 10" -body "123456789\n"
+       rxreq
+       expect req.url == "/2"
+       txresp -hdr "Length: 10" -body "987654321\n"
+}
+
+server s1 -start 
+
+client c1 -connect localhost:9080 {
+       txreq -url "/1" -req "POST" -hdr "Length: 10" -body "abcdefghi\n"
+       rxresp
+       txreq -url "/2" -req "POST" -hdr "Length: 10" -body "ihgfedcba\n"
+       rxresp
+}
+
+client c1 -run
+
+server s1 -wait