racorn opened a new pull request #8177: URL: https://github.com/apache/pulsar/pull/8177
### Motivation Improve previous PR #8117 (Always use SNI for TLS enabled Java client) ### Modifications - Use `ChannelFutures.toCompletableFuture` instead of private static utility method. - When TLS is not enabled, use 'original' code that invokes `Bootstrap.connect(InetSocketAddress)`; it is only when TLS is enabled we need custom setup code to properly set SNI headers. - Add documentation and argument checks to `PulsarChannelInitializer.initTls` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
