Repository navigation
Increase Kestrel's default HTTP/2 upload window sizes - #43302
Merged
Merged
Conversation
halter73
requested review from
BrennanConroy,
JamesNK and
Tratcher
as code owners
August 15, 2022 17:31
Tratcher
approved these changes
Aug 15, 2022
Member
Author
|
I tested this with a 108 MB file upload using a single stream on localhost before and after the default window sizes changes. I induced 10 ms of latency introduced by adding a Task.Delay to We see a ~6x improvement when we're bottlenecked by the WINDOW_UPDATE latency as is the case with 10 ms of latency on localhost. We should theoretically see an 8x improvement from the 8x larger window update, but there could be some other overhead preventing the full theoretical improvement. Before (10 ms delay before writing WINDOW_UPDATEs)After (10 ms delay before writing WINDOW_UPDATEs) |
adityamandaleeka
approved these changes
Aug 15, 2022
halter73
enabled auto-merge (squash)
August 15, 2022 23:16
halter73
force-pushed
the
halter73/41825
branch
from
August 16, 2022 01:27
19f8321 to
46f0043
Compare
JamesNK
approved these changes
Aug 16, 2022
Member
Author
|
/backport to release/7.0-rc1 |
Contributor
|
Started backporting to release/7.0-rc1: https://github.com/dotnet/aspnetcore/actions/runs/2870724507 |
4 of 9 tasks
11 tasks
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Fixes #41825
This should dramatically improve HTTP/2 upload speeds with high-latency connections using Kestrel's default configuration. Clients are limited by both the connection and stream limits. So even though there could be many streams, Kestrel will still only buffer up to 1MB of request body data for all streams across the entire connection with this new default.