directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [27/50] [abbrv] directory-kerby git commit: Continued on DIRKRB-552 Fail to restart KdcServer.
Date Fri, 21 Jul 2017 11:27:14 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/0935dbac
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/0935dbac
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/0935dbac

Branch: refs/heads/gssapi
Commit: 0935dbac5ff2c6ffd19db1014a41257db962c7e0
Parents: 7005d51
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Mon Jun 6 15:26:07 2016 +0800
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Jul 21 12:25:51 2017 +0100

----------------------------------------------------------------------
 .../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/0935dbac/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