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

Test busy then pass



git-svn-id: http://www.varnish-cache.org/svn/trunk@2859 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 884aa7b7
# $Id$
test "Test parking second request on backend delay, then pass"
server s1 {
rxreq
expect req.url == "/foo"
send "HTTP/1.1 200 Ok\r\nContent-Length: 12\r\n\r\n"
delay .5
send "line1\n"
delay .5
send "line2\n"
rxreq
expect req.url == "/foo"
txresp -body "foobar"
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
pass;
}
} -start
client c1 {
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.http.content-length == 12
expect resp.http.x-varnish == "1001"
} -start
delay .2
client c2 {
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.http.content-length == 6
expect resp.http.x-varnish == "1002"
} -start
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