vtest "workspace overrun on h/2 delivery"

server s1 {
	rxreq
	txresp -hdrlen Foo 500
} -start

vinyl v1 -vcl+backend  {
	import vtc;
	sub vcl_deliver {
		vtc.workspace_alloc(client, -50);
	}
} -start

vinyl v1 -cliok "param.set feature +http2"
vinyl v1 -cliok "param.set debug +syncvsl"
vinyl v1 -cliok "param.set vsl_mask +H2TxHdr"
vinyl v1 -cliok "param.set vsl_mask +H2TxBody"


client c1 {
	stream 1 {
		txreq
		rxresp
		expect resp.status == 500
		expect resp.http.content-length == 0
		expect resp.http.server == "Vinyl-Cache"
	} -run
} -run

vinyl v1 -expect client_resp_500 == 1
vinyl v1 -expect ws_client_overflow == 1
