vtest "H/2 stream multiple buffer exhaustion"

server s1 {
	rxreq
	txresp
} -start

vinyl v1 -vcl+backend {
} -start

vinyl v1 -cliok "param.set feature +http2"
vinyl v1 -cliok "param.reset h2_initial_window_size"
vinyl v1 -cliok "param.reset h2_rx_window_low_water"

client c1 {
	stream 1 {
		txreq -req GET -url /1 -hdr "content-length" "131072" -nostrend
		txdata -datalen 16384 -nostrend
		rxwinup
		txdata -datalen 16384 -nostrend
		rxwinup
		txdata -datalen 16384 -nostrend
		rxwinup
		txdata -datalen 16384 -nostrend
		rxwinup
		txdata -datalen 16384 -nostrend
		rxwinup
		txdata -datalen 16384 -nostrend
		rxwinup
		txdata -datalen 16384 -nostrend
		rxwinup
		txdata -datalen 16384
		rxresp
		expect resp.status == 200
	} -start
} -run
