Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F0E70200C63 for ; Thu, 6 Apr 2017 00:19:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDF36160B94; Wed, 5 Apr 2017 22:19:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6EDA6160B9E for ; Thu, 6 Apr 2017 00:19:54 +0200 (CEST) Received: (qmail 89877 invoked by uid 500); 5 Apr 2017 22:19:51 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 86630 invoked by uid 99); 5 Apr 2017 22:19:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2017 22:19:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0CAD0E968D; Wed, 5 Apr 2017 22:19:48 +0000 (UTC) From: sudheeshkatkam To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #773: DRILL-4335: Apache Drill should support network enc... Content-Type: text/plain Message-Id: <20170405221949.0CAD0E968D@git1-us-west.apache.org> Date: Wed, 5 Apr 2017 22:19:48 +0000 (UTC) archived-at: Wed, 05 Apr 2017 22:19:55 -0000 Github user sudheeshkatkam commented on a diff in the pull request: https://github.com/apache/drill/pull/773#discussion_r109971454 --- Diff: exec/rpc/src/main/java/org/apache/drill/exec/rpc/AbstractRemoteConnection.java --- @@ -34,16 +37,26 @@ private final WriteManager writeManager; private final RequestIdMap requestIdMap = new RequestIdMap(); private final String clientName; - private String name; + // Encryption related parameters + private EncryptionContext encryptionContext; + // SaslBackendWrapper to hold instance of SaslClient/SaslServer + protected SaslBackendWrapper saslBackend; + public AbstractRemoteConnection(SocketChannel channel, String name) { this.channel = channel; this.clientName = name; this.writeManager = new WriteManager(); + this.encryptionContext = new EncryptionContext(); channel.pipeline().addLast(new BackPressureHandler()); } + public AbstractRemoteConnection(SocketChannel channel, String name, EncryptionContext encryptionContext) { + this(channel, name); + this.encryptionContext.initialize(encryptionContext); --- End diff -- To avoid `initialize`, call this ctor from the other one and move other inits here. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---