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

IoSessionRecycler RemoteAddress Collision

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.7
    • 2.2.3, 2.0.25, 2.1.8
    • Core
    • None
    • Mina Sprint 2.2.0

    Description

      When using NioDatagramAcceptor with multiple binded local addresses the IoSessionRecycler is not working as expected.

      If the acceptor has been prefilled with two sessions:
      remoteaddr=192.168.1.10:2001 localaddr=192.168.1.20:1000
      remoteaddr=192.168.1.10:2001 localaddr=192.168.1.20:1001

      so with same remote address but different local address, when the recycle method of IoSessionRecycler interface is called only remote address is passed. The recycler returns the same IoSession for incoming datagrams on two different local addresses of the same acceptor.

      The IoSessionRecycler should have the local address parameter also in order to find the correct IoSession.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            johnnyv Jonathan Valliere
            flaviobattimo Flavio Battimo
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Active Sprint:
                Mina Sprint 2.2.0 ends 28/Aug/21
                View on Board

                Slack

                  Issue deployment