directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiajia Li (JIRA)" <>
Subject [jira] [Commented] (DIRKRB-536) KrbClient leaks sockets
Date Thu, 25 Feb 2016 06:34:18 GMT


Jiajia Li commented on DIRKRB-536:

Thanks [~aphaskell], the reuse_client.patch looks great to me. I've committed it.

commit bbddb6f87a877dee7ff77be1e982f6616e1aec4d
Author: plusplusjiajia <>
Date:   Thu Feb 25 14:36:50 2016 +0800

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

> KrbClient leaks sockets
> -----------------------
>                 Key: DIRKRB-536
>                 URL:
>             Project: Directory Kerberos
>          Issue Type: Bug
>            Reporter: Alexander Haskell
>            Assignee: Alexander Haskell
>         Attachments: release_socket.patch, reuse_client.patch
> KrbClient does not close sockets at the end of a request. This is not a problem for KinitTool
as the jvm closes the sockets at program termination. A longer running application has to
rely on the garbage collector cleaning up open sockets. The most likely location to do this
appears to be at the end of DefaultInternalKrbClient.doRequest\{T,S}gt() by calling release()
on DefaultInternalKrbClient.transport.

This message was sent by Atlassian JIRA

View raw message