Skip to content

Commit

Permalink
http2: increase stream window size to 10 MB
Browse files Browse the repository at this point in the history
Reported-by: pandada8 on github

Fixes curl#11162
Closes curl#11167
  • Loading branch information
icing authored and bch committed Jul 19, 2023
1 parent cd41364 commit 8519fde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/http2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test1800
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ User-Agent: curl/%VERSION
Accept: */*
Connection: Upgrade, HTTP2-Settings
Upgrade: %H2CVER
HTTP2-Settings: AAMAAABkAAQACAAAAAIAAAAA
HTTP2-Settings: AAMAAABkAAQAoAAAAAIAAAAA

</protocol>
</verify>
Expand Down

0 comments on commit 8519fde

Please sign in to comment.