You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by dr...@apache.org on 2016/06/30 08:54:12 UTC

[25/44] directory-kerby git commit: Continued on DIRKRB-552 Fail to restart KdcServer.

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 <ji...@intel.com>
Authored: Mon Jun 6 15:26:07 2016 +0800
Committer: plusplusjiajia <ji...@intel.com>
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;
     }