1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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
This commit is contained in:
Andy Green 2021-08-30 14:18:14 +01:00
parent f6954e432c
commit 3892a9d21c

View file

@ -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 */