Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-755

Nio2Connector leaks socket if address is unresolvable or unreachable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.7.0
    • None
    • openjdk 1.8.0_111

    Description

      During an async client connect (with ClientChannel.Streaming.Async), if the hostname is not resolvable, an UnresolvedAddressException is thrown from the "socket.connect(...)" call in Nio2Connector.java. The socket was allocated before the connect, but it is not closed in the "catch" block. This causes the socket to leak, and can eventually exhaust the file descriptors in the system.

      Attachments

        1. mina.patch
          2 kB
          Matthew S Havener

        Activity

          People

            lgoldstein Lyor Goldstein
            matthavener Matthew S Havener
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: