directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiajia Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRKRB-536) KrbClient leaks sockets
Date Wed, 24 Feb 2016 07:02:18 GMT

    [ https://issues.apache.org/jira/browse/DIRKRB-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15160290#comment-15160290
] 

Jiajia Li commented on DIRKRB-536:
----------------------------------

I think this patch will lead to KdcTest failure because the KrbClient is reused in the test.
Looking forward to the new feature.

> KrbClient leaks sockets
> -----------------------
>
>                 Key: DIRKRB-536
>                 URL: https://issues.apache.org/jira/browse/DIRKRB-536
>             Project: Directory Kerberos
>          Issue Type: Bug
>            Reporter: Alexander Haskell
>            Assignee: Alexander Haskell
>         Attachments: release_socket.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
(v6.3.4#6332)

Mime
View raw message