varnishtest "Transit buffering with early close"

feature cmd {test $(uname) != SunOS}

server s1 {
	non_fatal
	rxreq
	txresp -bodylen 2000000
} -start

varnish v1 -cliok "param.set transit_buffer 1k"
varnish v1 -vcl+backend { } -start

client c1 -rcvbuf 128 {
	txreq -method POST
	rxresphdrs
	expect resp.status == 200
	recv 100
} -run

varnish v1 -expect VBE.vcl1.s1.conn == 0
varnish v1 -expect VBE.vcl1.s1.busy == 0
