vtest "Test between_bytes_timeout works fetching headers"

server s1 {
	rxreq
	send "HTTP/1.0 "
	delay 2
} -start

vinyl v1 -vcl+backend {
	sub vcl_recv { return (pass); }
	sub vcl_backend_fetch { set bereq.between_bytes_timeout = 1s; }
} -start

vinyl v1 -cliok "param.set debug +syncvsl"

client c1 {
	txreq
	rxresp
	expect resp.status == 503
} -run

server s1 -wait
