Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1036

Handler leak in NioSocketConnector

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                guojilin guojilin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: