[FAST-28] It is not possible to disable the message listener in Session Created: 29/Apr/10  Updated: 29/Apr/10

Status: Open
Project: OpenFAST
Component/s: Session Control Protocol
Affects Version/s: 1.0.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Andreas Selenwall Assignee: Jacob Northey
Resolution: Unresolved Votes: 0
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.


Generated at Wed Nov 27 04:57:11 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.