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

NioDatagramConnector.newHandle leaks DatagramChannels on bind exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M4
    • 2.0.0-M5
    • Core
    • None

    Description

      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;
      }

      Attachments

        Activity

          People

            elecharny Emmanuel Lécharny
            jjfraney@gmail.com John J. Franey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: