You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@giraph.apache.org by GitBox <gi...@apache.org> on 2021/05/14 01:41:40 UTC

[GitHub] [giraph] dlogothetis commented on a change in pull request #150: GIRAPH-1251: Add optional SSLHandler for all Netty Communication

dlogothetis commented on a change in pull request #150:
URL: https://github.com/apache/giraph/pull/150#discussion_r632203918



##########
File path: giraph-core/src/main/java/org/apache/giraph/comm/netty/NettyClient.java
##########
@@ -325,6 +327,12 @@ public NettyClient(Mapper<?, ?, ?, ?>.Context context,
       executionGroup = null;
     }
 
+    if (conf.sslAuthenticate()) {
+      nettySSLHandler = new NettySSLHandler(true, conf);
+    } else {
+      nettySSLHandler = null;
+    }

Review comment:
       nit: this is not necessary, right?

##########
File path: giraph-core/src/main/java/org/apache/giraph/comm/netty/NettyServer.java
##########
@@ -192,6 +193,12 @@ public NettyServer(ImmutableClassesGiraphConfiguration conf,
     } else {
       executionGroup = null;
     }
+
+    if (conf.sslAuthenticate()) {
+      nettySSLHandler = new NettySSLHandler(false, conf);
+    } else {
+      nettySSLHandler = null;
+    }

Review comment:
       same here, this is not necessayr




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