directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: DIRKRB-536 KrbClient leaks sockets. Contributed by Alexander Haskell.
Date Wed, 24 Feb 2016 06:41:47 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 2069b4949 -> 59866a9b4


DIRKRB-536 KrbClient leaks sockets. Contributed by Alexander Haskell.


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/59866a9b
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/59866a9b
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/59866a9b

Branch: refs/heads/trunk
Commit: 59866a9b40622420c1439918c2586f1138e9a210
Parents: 2069b49
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Wed Feb 24 14:49:11 2016 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Wed Feb 24 14:49:11 2016 +0800

----------------------------------------------------------------------
 .../kerby/kerberos/kerb/client/impl/DefaultInternalKrbClient.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/59866a9b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/impl/DefaultInternalKrbClient.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/impl/DefaultInternalKrbClient.java
b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/impl/DefaultInternalKrbClient.java
index e2c18d3..da108ab 100644
--- a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/impl/DefaultInternalKrbClient.java
+++ b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/impl/DefaultInternalKrbClient.java
@@ -73,6 +73,7 @@ public class DefaultInternalKrbClient extends AbstractInternalKrbClient
{
 
         krbHandler.handleRequest(tgtTktReq);
 
+        transport.release();
         return tgtTktReq.getTicket();
     }
 
@@ -85,6 +86,7 @@ public class DefaultInternalKrbClient extends AbstractInternalKrbClient
{
 
         krbHandler.handleRequest(ticketReq);
 
+        transport.release();
         return ticketReq.getSgt();
     }
 


Mime
View raw message