Skip to content

Commit

Permalink
[fix][client] Add logging when lib disabled sni even after passing pr…
Browse files Browse the repository at this point in the history
…oxy-url (#23545)

Co-authored-by: Lari Hotari <[email protected]>
  • Loading branch information
rdhabalia and lhotari authored Nov 6, 2024
1 parent c266db2 commit c811801
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ public ConnectionPool(InstrumentProvider instrumentProvider,
this.eventLoopGroup = eventLoopGroup;
this.clientConfig = conf;
this.maxConnectionsPerHosts = conf.getConnectionsPerBroker();
this.isSniProxy = clientConfig.isUseTls() && clientConfig.getProxyProtocol() != null
boolean sniProxyExpected = clientConfig.getProxyProtocol() != null
&& StringUtils.isNotBlank(clientConfig.getProxyServiceUrl());
this.isSniProxy = clientConfig.isUseTls() && sniProxyExpected;
if (!this.isSniProxy && sniProxyExpected) {
log.warn("Disabling SNI proxy because tls is not enabled");
}

pool = new ConcurrentHashMap<>();
bootstrap = new Bootstrap();
Expand Down

0 comments on commit c811801

Please sign in to comment.