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

NioSocketConnector missing defaultLocalAddress

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.8
    • Component/s: Core
    • Labels:
      None

      Description

      The NioSocketConnector class has a default remote address but no default local address. On servers with multiple network interfaces behind several firewalls this is an issue.

      Without a default local address the behaviour is the same as today, it uses the system default. If you have set a default local address the default is used when connecting.

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        Fixed by applying the proposed patch.

        Show
        elecharny Emmanuel Lecharny added a comment - Fixed by applying the proposed patch.
        Hide
        pinus Haug Bürger added a comment -

        I have the version 2.0.3 but I can not find a property defaultLocalAddress or something like that to set the interface for the outbound messages. How to create a NioSocketConnector which is configured to use a certain interface (ethernet port) for the outbound messages?

        Show
        pinus Haug Bürger added a comment - I have the version 2.0.3 but I can not find a property defaultLocalAddress or something like that to set the interface for the outbound messages. How to create a NioSocketConnector which is configured to use a certain interface (ethernet port) for the outbound messages?
        Hide
        elecharny Emmanuel Lecharny added a comment -

        The committed patch is for DIRMINA-771, not this issue. My bad.

        Show
        elecharny Emmanuel Lecharny added a comment - The committed patch is for DIRMINA-771 , not this issue. My bad.
        Hide
        elecharny Emmanuel Lecharny added a comment -

        I have added teh defaultLocalHaddress into the NioSocketConnector class.

        Fixed by commit 46f929204de3efa24ceffd2e87838eb85005d194

        Show
        elecharny Emmanuel Lecharny added a comment - I have added teh defaultLocalHaddress into the NioSocketConnector class. Fixed by commit 46f929204de3efa24ceffd2e87838eb85005d194

          People

          • Assignee:
            elecharny Emmanuel Lecharny
            Reporter:
            pinus Haug Bürger
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development