Commit 3a82481f authored by Dag Haavi Finstad's avatar Dag Haavi Finstad

Make t02007.vtc less flaky

Add a barrier sync to ensure we get the WINDOW_UPDATE and the DATA
frames in the expected order.
parent bea0e671
varnishtest "H2 Huge response headers"
barrier b1 sock 2
server s1 {
rxreq
expect req.proto == HTTP/1.1
......@@ -19,10 +21,22 @@ server s1 {
expect req.url == /5
} -start
varnish v1 -vcl+backend {} -cliok "param.set feature +http2" -start
varnish v1 -cliok "param.set feature +http2"
varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set debug +h2_nocheck"
varnish v1 -vcl+backend {
import debug;
sub vcl_deliver {
if (req.url == "/1") {
if (!debug.barrier_sync("${b1_sock}")) {
return (synth(400));
}
}
}
} -start
client c1 {
stream 0 {
txsettings -framesize 64
......@@ -31,6 +45,7 @@ client c1 {
stream 1 {
txreq \
-req POST \
-url /1 \
-hdr content-type text/plain \
-nostrend \
-nohdrend
......@@ -50,6 +65,7 @@ client c1 {
-data request
rxwinup
barrier b1 sync
rxresp
expect resp.status == 200
expect resp.http.content-Type == "text/plain"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment