varnishtest "#1175 - -sdefault c_fail incremented by allocations, not bytes"

server s1 {
	rxreq
	txresp -nolen -hdr "Content-Length: 1048576"
} -start

varnish v1 -syntax 4.0 -arg "-s test=default,1M" -vcl+backend {
	sub vcl_backend_response {
		set beresp.storage = storage.test;
		set beresp.do_stream = false;
	}
} -start

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

varnish v1 -expect SM?.test.c_fail < 5
