Commit 7cee37c0 authored by Nils Goroll's avatar Nils Goroll

more test stabilization

With 32ef5dce, this test also cancels
backend requests and thus may prevent the server from finishing writing
the reponse body

Ref #2964
parent 1842a555
...@@ -3,8 +3,10 @@ varnishtest "shard director Restarts" ...@@ -3,8 +3,10 @@ varnishtest "shard director Restarts"
server s1 { server s1 {
rxreq rxreq
txresp -body "ech3Ooj" txresp -body "ech3Ooj"
accept
rxreq rxreq
txresp -body "ech3Ooj" txresp -body "ech3Ooj"
accept
rxreq rxreq
txresp -body "ech3Ooj" txresp -body "ech3Ooj"
} -start } -start
...@@ -12,8 +14,10 @@ server s1 { ...@@ -12,8 +14,10 @@ server s1 {
server s2 { server s2 {
rxreq rxreq
txresp -body "ieQu2qua" txresp -body "ieQu2qua"
accept
rxreq rxreq
txresp -body "ieQu2qua" txresp -body "ieQu2qua"
accept
rxreq rxreq
txresp -body "ieQu2qua" txresp -body "ieQu2qua"
} -start } -start
...@@ -21,8 +25,10 @@ server s2 { ...@@ -21,8 +25,10 @@ server s2 {
server s3 { server s3 {
rxreq rxreq
txresp -body "xiuFi3Pe" txresp -body "xiuFi3Pe"
accept
rxreq rxreq
txresp -body "xiuFi3Pe" txresp -body "xiuFi3Pe"
accept
rxreq rxreq
txresp -body "xiuFi3Pe" txresp -body "xiuFi3Pe"
} -start } -start
...@@ -38,6 +44,10 @@ varnish v1 -vcl+backend { ...@@ -38,6 +44,10 @@ varnish v1 -vcl+backend {
vd.reconfigure(25); vd.reconfigure(25);
} }
sub vcl_backend_fetch {
set bereq.http.Connection = "close";
}
sub vcl_recv { sub vcl_recv {
set req.backend_hint = vd.backend(by=KEY, set req.backend_hint = vd.backend(by=KEY,
key=1756955383, key=1756955383,
......
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