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 E5E47200CBF for ; Sat, 8 Jul 2017 08:42:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E470916AABC; Sat, 8 Jul 2017 06:42:23 +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 2DF0916AAB9 for ; Sat, 8 Jul 2017 08:42:23 +0200 (CEST) Received: (qmail 74678 invoked by uid 500); 8 Jul 2017 06:42:22 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 74667 invoked by uid 99); 8 Jul 2017 06:42:21 -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; Sat, 08 Jul 2017 06:42:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 88D68E968F; Sat, 8 Jul 2017 06:42:21 +0000 (UTC) From: ivankelly To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper issue #227: ZOOKEEPER-2755 Allow to subclass ClientCnxnSocketNetty... Content-Type: text/plain Message-Id: <20170708064221.88D68E968F@git1-us-west.apache.org> Date: Sat, 8 Jul 2017 06:42:21 +0000 (UTC) archived-at: Sat, 08 Jul 2017 06:42:24 -0000 Github user ivankelly commented on the issue: https://github.com/apache/zookeeper/pull/227 Is this for tests or for production use? > Using an ephemeral port may work but it makes trickier setting up things. How does it make things tricker? Each server you set up in the test setup just needs to expose a method to query which port it is listening. This is simplier than using a whole other transport, and ensures the same code paths will be used in the test as will be used in production. > Without opening ports you can run multiple parallel tests easily Opening ports doesn't have to be hard. > Opening a port can be seen as a security risk. Tests should not be run anywhere security is a concern. --- 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. ---