http2: increase stream window size to 10 MB

Reported-by: pandada8 on github

Fixes #11162
Closes #11167
This commit is contained in:
Stefan Eissing 2023-05-20 18:11:12 +02:00 committed by Daniel Stenberg
parent 54ce13d3ff
commit 1886eef7fa
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@
* use 16K as chunk size, as that fits H2 DATA frames well */
#define H2_CHUNK_SIZE (16 * 1024)
/* this is how much we want "in flight" for a stream */
#define H2_STREAM_WINDOW_SIZE (512 * 1024)
#define H2_STREAM_WINDOW_SIZE (10 * 1024 * 1024)
/* on receving from TLS, we prep for holding a full stream window */
#define H2_NW_RECV_CHUNKS (H2_STREAM_WINDOW_SIZE / H2_CHUNK_SIZE)
/* on send into TLS, we just want to accumulate small frames */

View File

@ -49,7 +49,7 @@ User-Agent: curl/%VERSION
Accept: */*
Connection: Upgrade, HTTP2-Settings
Upgrade: %H2CVER
HTTP2-Settings: AAMAAABkAAQACAAAAAIAAAAA
HTTP2-Settings: AAMAAABkAAQAoAAAAAIAAAAA
</protocol>
</verify>