-
Notifications
You must be signed in to change notification settings - Fork 909
Various code clean up on async code #1065
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
Conversation
1a74d09
to
3413a6c
Compare
@@ -87,7 +87,7 @@ | |||
NettyNioAsyncHttpClient(DefaultBuilder builder, AttributeMap serviceDefaultsMap) { | |||
this.configuration = new NettyConfiguration(serviceDefaultsMap); | |||
this.protocol = serviceDefaultsMap.get(SdkHttpConfigurationOption.PROTOCOL); | |||
this.maxStreams = builder.maxHttp2Streams == null ? Integer.MAX_VALUE : builder.maxHttp2Streams; | |||
this.maxStreams = builder.maxHttp2Streams == null ? Long.MAX_VALUE : builder.maxHttp2Streams; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intended to the max value for this setting? If so, we should probably be setting to 2^32 - 1 since the spec defines option values as unsigned 32-bit values: https://httpwg.org/specs/rfc7540.html#SettingFormat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Will use 2^32 - 1
Yeah, it will use the min value of serverMaxStreams and clientMaxStreams.
channel.attr(MAX_CONCURRENT_STREAMS).set(Math.min(clientMaxStreams, serverMaxStreams));
Codecov Report
@@ Coverage Diff @@
## master #1065 +/- ##
============================================
+ Coverage 56.11% 56.16% +0.05%
- Complexity 4660 4662 +2
============================================
Files 819 819
Lines 27917 27920 +3
Branches 2252 2252
============================================
+ Hits 15665 15681 +16
+ Misses 11528 11511 -17
- Partials 724 728 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ing unit tests, updating javadoc
b7f4a17
to
ebd2d1e
Compare
…e7792eaa6-2 Release
Description
Http2SettingsFrameHandler
Types of changes
Checklist
mvn install
succeedsLicense