You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Enrico Olivelli (JIRA)" <ji...@apache.org> on 2016/06/28 07:04:56 UTC

[jira] [Commented] (BOOKKEEPER-871) Potential resource leak with unclosed stream in SslServerContextFactory

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

Enrico Olivelli commented on BOOKKEEPER-871:
--------------------------------------------

I cannot find any SslServerContextFactory class in BookKeeper 4.4.0, can we close this issue (or delete it at all?)

> Potential resource leak with unclosed stream in SslServerContextFactory
> -----------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-871
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-871
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ted Yu
>
> In SslServerContextFactory ctor:
> {code}
>             KeyStore ks = KeyStore.getInstance("pkcs12");
>             ks.load(cfg.getCertStream(), cfg.getPassword().toCharArray());
> {code}
> The stream returned by cfg.getCertStream() is not closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)