-
Notifications
You must be signed in to change notification settings - Fork 917
Fix SslHandler in Netty client #1184
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
Codecov Report
@@ Coverage Diff @@
## master #1184 +/- ##
============================================
- Coverage 58.98% 58.98% -0.01%
- Complexity 4594 4595 +1
============================================
Files 744 744
Lines 23020 23027 +7
Branches 1721 1721
============================================
+ Hits 13579 13583 +4
- Misses 8755 8756 +1
- Partials 686 688 +2
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.
LGTM
|
||
public ChannelPipelineInitializer(Protocol protocol, | ||
SslContext sslCtx, | ||
long clientMaxStreams, | ||
AtomicReference<ChannelPool> channelPoolRef, | ||
NettyConfiguration configuration) { | ||
NettyConfiguration configuration, | ||
URI key) { |
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.
nit: poolKey
might be a little more descriptive
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.
yup, updated
|
||
CreateAppResponse response = pinpointAsyncClient.createApp(b -> b.createApplicationRequest(r -> r.name(APP_NAME))).join(); | ||
|
||
appId = response.applicationResponse().id(); |
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 it necessary to create an app? Would doing a list operation be sufficient (to avoid creating any resources)?
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.
Nope, updated to use getApps
instead
99cd0d4
to
b09720e
Compare
|
||
public ChannelPipelineInitializer(Protocol protocol, | ||
SslContext sslCtx, | ||
long clientMaxStreams, | ||
AtomicReference<ChannelPool> channelPoolRef, | ||
NettyConfiguration configuration) { | ||
NettyConfiguration configuration, | ||
URI poorKey) { |
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.
poorKey -> poolKey?
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.
Oops. Good catch! Fixed.
*/ | ||
private void configureSslEngine(SSLEngine sslEngine) { | ||
SSLParameters sslParameters = sslEngine.getSSLParameters(); | ||
sslParameters.setEndpointIdentificationAlgorithm("HTTPS"); |
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.
How in the world is this not the default...
…sed the requests to fail of handshake_failure in some services.
b09720e
to
92fcb55
Compare
Recover the correct model for ec2.
Description
Fix a bug where SNI was not enabled in Netty NIO Async Client for TLS and caused the requests to fail of handshake_failure in some services.
Motivation and Context
See #1171
Testing
Added integ tests.
Running the whole integ tests suites now.All integ tests passedScreenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense