[master] 728549101 Make H/2 varnishtest ignore window updates while in rxreq/rxresp

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Aug 30 08:31:08 UTC 2021


commit 7285491019712223ca1c33b873d0d21362a35107
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 be80d32ed..750d6f074 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -2302,9 +2302,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