vtest "H/1 -> H/2 upgrade"

feature cmd "nghttp --version | grep -qE 'nghttp2/([2-9]|1.[5-9]|1.4[89])'"

server s1 {
	rxreq
	upgrade

	stream 1 { rxprio } -start
	stream 3 { rxprio } -start
	stream 5 { rxprio } -start
	stream 7 { rxprio } -start
	stream 9 { rxprio } -start
	stream 11 { rxprio } -start

	stream 0 -wait
	stream 1 -wait { txresp } -run

	stream 0 { rxgoaway } -run

} -start

shell { nghttp http://${s1_sock} -nu --no-rfc7540-pri }

server s1 -wait
