Commit a6c8ebf4 authored by Geoff Simmons's avatar Geoff Simmons

add test b00025.vtc

parent 5d14d62a
varnishtest "Check that the first_byte_timeout works from backend definition"
feature SO_RCVTIMEO_WORKS
server s1 {
rxreq
delay 1.5
txresp
} -start
varnish v1 -vcl {
import backend_dyn from "${vmod_topbuild}/src/.libs/libvmod_backend_dyn.so";
backend dummy { .host="${bad_ip}"; }
sub vcl_init {
if (!backend_dyn.create(name="b1", host="${s1_addr}",
port="${s1_port}",
first_byte_timeout = 1s)) {
return(fail);
}
}
sub vcl_recv {
set req.backend_hint = backend_dyn.by_name("b1");
}
} -start
# Fragmenting storage tests for #1397
varnish v1 -cliok "debug.fragfetch 4"
client c1 {
txreq
rxresp
expect resp.status == 503
} -run
server s1 {
rxreq
delay 0.5
txresp
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
} -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