Commit cddb8f49 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a TCP reuse testcase, and polish the a00006 case a bit



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2748 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3cdff20c
# $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
# $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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment