Skip to content

[ngtcp2] set max window size to 10x of initial (128KB), as the quiche backend does - #15392

Closed
kazuho wants to merge 1 commit into
curl:masterfrom
kazuho:kazuho/ngtcp2-max-stream-window
Closed

[ngtcp2] set max window size to 10x of initial (128KB), as the quiche backend does#15392
kazuho wants to merge 1 commit into
curl:masterfrom
kazuho:kazuho/ngtcp2-max-stream-window

Conversation

@kazuho

@kazuho kazuho commented Oct 24, 2024

Copy link
Copy Markdown
Contributor

QUIC backends use flow control windows initially set to 128KB. In #14880, the maximum size used by the quiche backend was increased to 1280KB, but that of the ngtcp2 backend remained at 128KB.

With a window size of 128KB, the sustained maximum throughput with the ngtcp2 backend has been equivalent to TCP without the window scaling option (note: ngtcp2 sends MAX_STREAM_DATA when 1/2 the window is consumed, while TCP updates the window size with each ACK).

This PR changes the ngtcp2 backend to use the same maximum (1280KB) as the quiche backend does.

@github-actions github-actions Bot added the HTTP/3 h3 or quic related label Oct 24, 2024
@bagder
bagder requested a review from icing October 24, 2024 12:44
@bagder bagder closed this in b34b757 Oct 24, 2024
@bagder

bagder commented Oct 24, 2024

Copy link
Copy Markdown
Member

Thanks!

pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HTTP/3 h3 or quic related

Development

Successfully merging this pull request may close these issues.

3 participants