mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "guojilin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRMINA-1036) Handler leak in NioSocketConnector
Date Tue, 17 May 2016 02:51:12 GMT
guojilin created DIRMINA-1036:
---------------------------------

             Summary: Handler leak in NioSocketConnector
                 Key: DIRMINA-1036
                 URL: https://issues.apache.org/jira/browse/DIRMINA-1036
             Project: MINA
          Issue Type: Bug
            Reporter: guojilin


When NioSocketConnector.connect(SocketAddress, SocketAddress) is called, and remoteAddress
is reachable but localAddress is not assigned, a handler will leak.

In NioSocketConnector.newHandle(SocketAddress localAddress),  SocketChannel.open() and SocketChannel.socket().bind()
are called. If localAddress is not assigend, open() returns normally but a java.net.BindException
will throw at bind().
In its caller, AbstractPollingIoConnector.connect0(), it catches exception but can not get
the opened SocketChannel.



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

Mime
View raw message