varnishtest "Test orderly connection closure"


server s1 {
	rxreq
	txresp -nolen -hdr "Transfer-encoding: chunked"
	delay .2
	chunkedlen 30000
	delay .2
	chunkedlen 100000
	delay .2
	chunkedlen 0
} -start

varnish v1 -vcl+backend { } -start

client c1 {
	txreq -hdr "Connection: close"
	delay 3
	rxresp
	expect resp.bodylen == 130000
} -run
