[6.0] 071d8e9d0 Make H/2 varnishtest ignore window updates while in rxreq/rxresp
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Oct 18 09:21:08 UTC 2023
commit 071d8e9d098ac77cd665a3001f7c8251e25c1149
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Tue Jun 22 11:49:35 2021 +0200
Make H/2 varnishtest ignore window updates while in rxreq/rxresp
This makes it easier to not have to know exactly when and how many window
updates to expect in a test case.
diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index 67ba24bae..b72e53228 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -2243,9 +2243,11 @@ cmd_rxmsg(CMD_ARGS)
else
ONLY_H2_CLIENT(s->hp, av);
- f = rxstuff(s);
- if (!f)
- return;
+ do {
+ f = rxstuff(s);
+ if (!f)
+ return;
+ } while (f->type == TYPE_WINDOW_UPDATE);
rcv++;
CHKFRAME(f->type, TYPE_HEADERS, rcv, *av);
More information about the varnish-commit
mailing list