Commit 28ece2a0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Try to make this test more stable under load.

parent dd4c1ed0
...@@ -5,13 +5,13 @@ feature SO_RCVTIMEO_WORKS ...@@ -5,13 +5,13 @@ feature SO_RCVTIMEO_WORKS
server s1 { server s1 {
rxreq rxreq
send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n" send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n"
delay 1.5 delay 4.0
send "Baba\n" send "Baba\n"
} -start } -start
varnish v1 -vcl+backend { varnish v1 -vcl+backend {
sub vcl_miss { sub vcl_miss {
set bereq.between_bytes_timeout = 1s; set bereq.between_bytes_timeout = 2s;
} }
} -start } -start
...@@ -24,14 +24,22 @@ client c1 { ...@@ -24,14 +24,22 @@ client c1 {
server s1 { server s1 {
rxreq rxreq
send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n" send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n"
delay 0.5 delay 1.0
send "Baba\n" send "Baba\n"
delay 0.5 delay 1.0
send "Baba\n"
delay 1.0
send "Baba\n"
delay 1.0
send "Baba\n"
delay 1.0
send "Baba\n" send "Baba\n"
} -start } -start
client c1 { client c1 {
txreq txreq
timeout 10
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 25
} -run } -run
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