Commit 00ce8fcf authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

White space OCD.

parent 4defdfc1
varnishtest "Regression test for #1684"
server s1 {
rxreq
txresp -hdr "foo: 1"
accept
rxreq
txresp -hdr "foo: 2"
accept
rxreq
txresp -hdr "foo: 3"
rxreq
txresp -hdr "foo: 1"
accept
rxreq
txresp -hdr "foo: 2"
accept
rxreq
txresp -hdr "foo: 3"
} -start
varnish v1 -vcl+backend {
sub vcl_recv { return (pass); }
sub vcl_backend_response {
set beresp.http.bar = bereq.retries;
if (beresp.http.foo != bereq.http.stop) {
return (retry);
}
}
sub vcl_recv { return (pass); }
sub vcl_backend_response {
set beresp.http.bar = bereq.retries;
if (beresp.http.foo != bereq.http.stop) {
return (retry);
}
}
} -start
# check log for the aborted POST
......@@ -31,8 +31,7 @@ varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set max_retries 2"
client c1 {
txreq -hdr "stop: 3"
rxresp
expect resp.http.foo == 3
txreq -hdr "stop: 3"
rxresp
expect resp.http.foo == 3
} -run
......@@ -51,7 +51,7 @@ varnish v1 -expect VBE.vcl2.default.happy >= 0
# and the unused one should go cold
delay 4
varnish v1 -expect !VBE.vcl2.default.happy
varnish v1 -expect !VBE.vcl2.default.happy
# Mark the used warm and use it the other
varnish v1 -cliok "vcl.state vcl1 warm"
......
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