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

PortUnreachable not check while writing to socket

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Not A Problem
    • 2.1.4
    • None
    • Core
    • None
    • Java 1.8, Unix/Windows

    Description

      Hi guys,

      My intention is to send udp package to a specific ip and port (even if there is not receiver). Me - as the sender - do not have any knowledge about (existing) receivers. After receiving a "unreachable port" package back to myself (because no receiver exists), the session was closed automatically.

      In your class AbstractPollingIoProcessor from lines 1108ff. in such a case a UnreachablePortException was thrown, catched and therefore in line 1112 the session was closed.

      In contrast to this, while reading from a socket (lines 560ff.), you are distinguishing cases with and without the flag CloseOnPortUnreachable from the sessionConfig. [I am not quite sure about my statement here]

      Can you explain, why this was not done at the "writing"-process? Or was there anything I missunderstood?

      Thanks
      Alex

      Attachments

        1. exceptionstack.png
          106 kB
          Alexander B
        2. minatest2.7z
          3 kB
          Alexander B

        Activity

          People

            johnnyv Jonathan Valliere
            abuechel Alexander B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: