vtest "Backend close retry with a UDS"

server s1 -listen "${tmpdir}/s1.sock" -repeat 1 {
	rxreq
	txresp -bodylen 5

	rxreq
	accept

	rxreq
	txresp -bodylen 6

} -start

vinyl v1 -vcl+backend {
	sub vcl_recv {
		return(pass);
	}
} -start

client c1 {
	txreq
	rxresp
	expect resp.status == 200
	expect resp.bodylen == 5

	txreq
	rxresp
	expect resp.status == 200
	expect resp.bodylen == 6
} -run

vinyl v1 -expect backend_retry == 1
