directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [26/29] directory-kerby git commit: Continued on DIRKRB-552 Fail to restart KdcServer.
Date Tue, 07 Jun 2016 02:23:12 GMT
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/kadmin-remote
Commit: ee3046d9fa48e0a9c82c5c15ca1760be0dee0ab8
Parents: 60357e3
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Mon Jun 6 15:26:07 2016 +0800
Committer: plusplusjiajia <jiajia.li@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;
     }
 


Mime
View raw message