varnishtest "Test retry in be_resp w/conn: close"

server s1 {
	rxreq
	txresp -hdr "Connection: close" -bodylen 3
	expect_close
	accept

	rxreq
	txresp -hdr "Connection: close" -bodylen 5
	expect_close
} -start

varnish v1 -vcl+backend {
	sub vcl_backend_response {
		if (bereq.retries == 0) {
			return(retry);
		}
	}
} -start

client c1 {
	txreq -url "/"
	rxresp
	expect resp.status == 200
	expect resp.bodylen == 5
} -run
