From 3892a9d21c4c8febe5241262ce7db92a15b2cd04 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 30 Aug 2021 14:18:14 +0100 Subject: [PATCH] h2: bulk rx: deal with window We don't always keep updating the rxflow window on bulk rx, and just run down the initial. This keeps us going with 64K in flight --- lib/roles/h2/http2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/roles/h2/http2.c b/lib/roles/h2/http2.c index 21b605cc4..a09b97fc0 100644 --- a/lib/roles/h2/http2.c +++ b/lib/roles/h2/http2.c @@ -2255,10 +2255,9 @@ lws_h2_parser(struct lws *wsi, unsigned char *in, lws_filepos_t _inlen, goto close_swsi_and_return; } - break; + goto do_windows; } #endif - if (lwsi_state(h2n->swsi) == LRS_DEFERRING_ACTION) { m = lws_buflist_append_segment( &h2n->swsi->buflist, in - 1, (unsigned int)n); @@ -2337,7 +2336,7 @@ do_windows: * fast as we can take it */ - m = n; //(2 * h2n->length) + 65536; + m = n + 65536; /* update both the stream and nwsi */