Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6820

NIO transport should properly handle ClosedChannelException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.15.0
    • 5.15.1, 5.16.0
    • Transport
    • None

    Description

      The NIO transport does not properly handle a ClosedChannelException when it happens inside the SelectorSelection class. Instead of properly disposing of the transport it calls System.out.println() for the exception and keeps the transport alive. This caused a NPE later when the enable() method was called because the SelectionKey was null. The fix is to call onError() when the ClosedChannelException occurs so things get cleaned up and logged properly.

      Attachments

        Issue Links

          Activity

            People

              cshannon Christopher L. Shannon
              cshannon Christopher L. Shannon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: