You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by abel-von <gi...@git.apache.org> on 2017/12/01 07:12:49 UTC
[GitHub] zookeeper pull request #423: ZOOKEEPER-2949: using hostname and port to crea...
Github user abel-von commented on a diff in the pull request:
https://github.com/apache/zookeeper/pull/423#discussion_r154279983
--- Diff: src/java/main/org/apache/zookeeper/ClientCnxnSocketNetty.java ---
@@ -340,13 +340,24 @@ public static Packet getInstance() {
return instance;
}
}
+
/**
* ZKClientPipelineFactory is the netty pipeline factory for this netty
* connection implementation.
*/
private class ZKClientPipelineFactory implements ChannelPipelineFactory {
private SSLContext sslContext = null;
private SSLEngine sslEngine = null;
+ private String host;
+ private int port;
+
+ public ZKClientPipelineFactory() {
--- End diff --
Maybe not,but it's just a good thing to keep the default constructor when I define a constructor with parameters.
---