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

Handler leak in NioSocketConnector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: