git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2748
d4fa192b-c00b-0410-8231-
f00ffab90ce4
# $Id$
-test "dual shared client HTTP transactions"
+test "bidirectional message bodies"
server s1 -listen :9080 {
rxreq
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
--- /dev/null
+# $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