Uploaded image for project: 'OpenFAST'
  1. OpenFAST
  2. FAST-28

It is not possible to disable the message listener in Session

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      The setListening(boolean) in Session method doesn't stop the listening thread immediatly, and doesn't prevent the listening thread from starting. Today, invoking setListening(false) will allow the listening thread to consume one message before it disables listening.

      A quick fix is to not start the listening thread if the message listener is null.

      This bug is pretty sever since it is not possible to use readMessage() in Session to perform a "blocked" reading since the first message is always consumed by the listener.

        Attachments

          Activity

            People

            • Assignee:
              jacob_northey Jacob Northey
              Reporter:
              andreas_selenwall Andreas Selenwall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: