varnishtest "workspace overrun on h/2 delivery"

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

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

varnish v1 -cliok "param.set feature +http2"
varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set vsl_mask +H2TxHdr"
varnish 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 == "Varnish"
	} -run
} -run

varnish v1 -expect client_resp_500 == 1
varnish v1 -expect ws_client_overflow == 1
