natural commented on a change in pull request #4202: NIFI-7203 Support for TLS 
in Zookeeper Server
URL: https://github.com/apache/nifi/pull/4202#discussion_r407768245
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/state/server/ZooKeeperStateServer.java
 ##########
 @@ -104,8 +105,16 @@ private void startStandalone() throws IOException {
             
embeddedZkServer.setMinSessionTimeout(config.getMinSessionTimeout());
             
embeddedZkServer.setMaxSessionTimeout(config.getMaxSessionTimeout());
 
+            final InetSocketAddress port = config.getClientPortAddress();
+            final InetSocketAddress secPort = 
config.getSecureClientPortAddress();
             connectionFactory = ServerCnxnFactory.createFactory();
-            connectionFactory.configure(config.getClientPortAddress(), 
config.getMaxClientCnxns());
+            if (secPort != null) {
 
 Review comment:
   I think you're right, your implementation should be merged, not this one.
   
   I was trying to avoid multiple connections due to the security implications 
but I think we can just as easily handle that elsewhere.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to