Commit 31ea898e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a testcase for backend retries.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5104 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c47b2dbc
......@@ -4,33 +4,28 @@
server s1 -repeat 1 {
rxreq
txresp \
-hdr "Connection: close" \
-hdr "Test1: foobar" \
-hdr "Test2: foobar" \
-body "012345\n"
}
varnish v1 -launch
txresp -bodylen 5
rxreq
accept
rxreq
txresp -bodylen 6
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
pipe;
return(pass);
}
}
varnish v1 -start
server s1 -start
} -start
client c1 {
txreq -url "/"
txreq
rxresp
expect resp.status == 200
}
client c1 -run
# server s1 -wait
expect resp.bodylen == 5
txreq
rxresp
expect resp.status == 200
expect resp.bodylen == 6
} -run
# varnish v1 -wait
varnish v1 -expect backend_retry == 1
# $Id$
test "Backend close retry"
server s1 -repeat 1 {
rxreq
txresp -bodylen 5
rxreq
accept
rxreq
txresp -bodylen 6
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
return(pass);
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.bodylen == 5
txreq
rxresp
expect resp.status == 200
expect resp.bodylen == 6
} -run
varnish v1 -expect backend_retry == 1
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