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

Add host and port info to BindException thrown by NioSocketAcceptor#open

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.8
    • Component/s: Core
    • Labels:
      None

      Description

      When calling bind on an implementation of the SocketAcceptor (in our case the NioSocketAcceptor) and specifying a port that is already taken the exception does not include the host and port that the connection attempt was made to. Please add the host and port to the exception message so that it's easier to identify what couldn't bind.

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        Added the LocalAddress to the error message
        Fixed with commit 5ffd8c02a8ffcb4671d3db80598a851143f79d6f

        Show
        elecharny Emmanuel Lecharny added a comment - Added the LocalAddress to the error message Fixed with commit 5ffd8c02a8ffcb4671d3db80598a851143f79d6f

          People

          • Assignee:
            Unassigned
            Reporter:
            justincbeck Justin Beck
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development