You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2009/03/08 21:13:56 UTC

[jira] Assigned: (DIRMINA-667) NioDatagramConnector.newHandle leaks DatagramChannels on bind exception

     [ https://issues.apache.org/jira/browse/DIRMINA-667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny reassigned DIRMINA-667:
-----------------------------------------

    Assignee: Emmanuel Lecharny

> NioDatagramConnector.newHandle leaks DatagramChannels on bind exception
> -----------------------------------------------------------------------
>
>                 Key: DIRMINA-667
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-667
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M4
>            Reporter: John J. Franey
>            Assignee: Emmanuel Lecharny
>
> This method does not close the DatagramChannel on exception in bind, and the reference is not recoverable by its caller.
>    @Override
>     protected DatagramChannel newHandle(SocketAddress localAddress)
>             throws Exception {
>         DatagramChannel ch = DatagramChannel.open();
>         if (localAddress != null) {
>             ch.socket().bind(localAddress);
>         }
>         return ch;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.