Commit de1aa79a authored by Nils Goroll's avatar Nils Goroll

extend send_timeout test to uds

parent 51127b46
......@@ -5,7 +5,10 @@ server s1 {
txresp -bodylen 100000
} -start
varnish v1 -vcl+backend {
varnish v1 -arg "-p timeout_idle=1" \
-arg "-a 127.0.0.1:0" \
-arg "-a ${tmpdir}/v1.sock" \
-vcl+backend {
import debug;
sub vcl_deliver {
......@@ -17,6 +20,7 @@ varnish v1 -cliok "param.set send_timeout 1"
logexpect l1 -v v1 {
expect * * Debug "Hit total send timeout"
expect * * Debug "Hit total send timeout"
} -start
client c1 -rcvbuf 128 {
......@@ -24,8 +28,17 @@ client c1 -rcvbuf 128 {
rxresphdrs
# keep the session open for 2 seconds
delay 2
} -run
} -start
client c1u -connect "${tmpdir}/v1.sock" -rcvbuf 128 {
txreq
rxresphdrs
# keep the session open for 2 seconds
delay 2
} -start
client c1 -wait
client c1u -wait
logexpect l1 -wait
feature SO_RCVTIMEO_WORKS
......@@ -34,6 +47,7 @@ varnish v1 -cliok "param.reset send_timeout"
logexpect l2 -v v1 {
expect * * Debug "Hit idle send timeout"
expect * * Debug "Hit idle send timeout"
} -start
client c2 -rcvbuf 128 {
......@@ -41,6 +55,15 @@ client c2 -rcvbuf 128 {
rxresphdrs
# keep the session open for 2 seconds
delay 2
} -run
} -start
client c2u -connect "${tmpdir}/v1.sock" -rcvbuf 128 {
txreq
rxresphdrs
# keep the session open for 2 seconds
delay 2
} -start
client c2 -wait
client c2u -wait
logexpect l2 -wait
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