vtest "Wrong calculation of last storage segment length"

server s1 {
	rxreq
	txresp -hdr "Transfer-encoding: chunked"
	# This is chunksize (128k) + 2 to force to chunks to be allocated
	chunkedlen 131074
	chunkedlen 0
} -start

vinyl v1 -vcl+backend "" -start

client c1 {
	txreq -proto HTTP/1.0
	rxresp
	# Chunked encoding streaming HTTP/1.0 client turns
	# into EOF body delivery.
	expect resp.http.connection == close
	expect resp.bodylen == 131074
} -run
