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 E7306200B45 for ; Thu, 30 Jun 2016 10:53:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E628D160A51; Thu, 30 Jun 2016 08:53:51 +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 6782B160A7F for ; Thu, 30 Jun 2016 10:53:50 +0200 (CEST) Received: (qmail 96902 invoked by uid 500); 30 Jun 2016 08:53:49 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 95579 invoked by uid 99); 30 Jun 2016 08:53:48 -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; Thu, 30 Jun 2016 08:53:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D8AB6E38AD; Thu, 30 Jun 2016 08:53:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: drankye@apache.org To: commits@directory.apache.org Date: Thu, 30 Jun 2016 08:54:12 -0000 Message-Id: <7100a2148ce44c2b9553989a271175b2@git.apache.org> In-Reply-To: <19c327db7623444a91b9a5859944fa8f@git.apache.org> References: <19c327db7623444a91b9a5859944fa8f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [25/44] directory-kerby git commit: Continued on DIRKRB-552 Fail to restart KdcServer. archived-at: Thu, 30 Jun 2016 08:53:52 -0000 Continued on DIRKRB-552 Fail to restart KdcServer. Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/ee3046d9 Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/ee3046d9 Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/ee3046d9 Branch: refs/heads/gssapi Commit: ee3046d9fa48e0a9c82c5c15ca1760be0dee0ab8 Parents: 60357e3 Author: plusplusjiajia Authored: Mon Jun 6 15:26:07 2016 +0800 Committer: plusplusjiajia Committed: Mon Jun 6 15:26:07 2016 +0800 ---------------------------------------------------------------------- .../org/apache/kerby/kerberos/kerb/transport/KdcNetwork.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/ee3046d9/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/transport/KdcNetwork.java ---------------------------------------------------------------------- diff --git a/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/transport/KdcNetwork.java b/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/transport/KdcNetwork.java index e3d7570..5323225 100644 --- a/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/transport/KdcNetwork.java +++ b/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/transport/KdcNetwork.java @@ -106,6 +106,12 @@ public abstract class KdcNetwork { //CHECKSTYLE:ON public synchronized void stop() { + // TODO: waiting the network closed. + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + e.printStackTrace(); + } isStopped = true; }