New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect HTTP/2 connection window size #1489
Conversation
Motivation: `InboundTrafficController` uses a hard-coded water mark value of 128KiB, which is much smaller than our current initial connection window size (1MiB). Modifications: - Use the water mark values that matches the initial HTTP/2 connection window size. - HTTP/1 connections' water mark values stay same. Result: - Less frequent network read suspension which was unnecessary.
Codecov Report
@@ Coverage Diff @@
## master #1489 +/- ##
===========================================
- Coverage 72.26% 72.17% -0.1%
+ Complexity 6684 6675 -9
===========================================
Files 637 637
Lines 27667 27677 +10
Branches 3332 3332
===========================================
- Hits 19994 19975 -19
- Misses 5925 5949 +24
- Partials 1748 1753 +5
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #1489 +/- ##
===========================================
- Coverage 72.26% 72.17% -0.1%
+ Complexity 6684 6675 -9
===========================================
Files 637 637
Lines 27667 27677 +10
Branches 3332 3332
===========================================
- Hits 19994 19975 -19
- Misses 5925 5949 +24
- Partials 1748 1753 +5
Continue to review full report at Codecov.
|
Thanks for reviewing. |
Motivation: `InboundTrafficController` uses a hard-coded water mark value of 128KiB, which is much smaller than our current initial connection window size (1MiB). Modifications: - Use the water mark values that matches the initial HTTP/2 connection window size. - HTTP/1 connections' water mark values stay same. - Disable Netty `Channel` write buffer water mark to reduce unnecessary emission of `channelWritabilityChanged` events. Result: - Less frequent network read suspension which was unnecessary. - Less frequent `channelWritabilityChanged` events.
Motivation:
InboundTrafficController
uses a hard-coded water mark value of 128KiB,which is much smaller than our current initial connection window size
(1MiB).
Modifications:
window size.
Channel
write buffer water mark to reduce unnecessaryemission of
channelWritabilityChanged
events.Result:
channelWritabilityChanged
events.