mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John J. Franey (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRMINA-667) NioDatagramConnector.newHandle leaks DatagramChannels on bind exception
Date Sat, 07 Mar 2009 02:44:56 GMT
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



This method does not close the DatagramChannel on exception, 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.


Mime
View raw message