You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enabling a previously disabled session might lead to message loss #965
Describe the bug
When a session is disabled (i.e. after calling logout()) it will no longer get reset as defined by its SessionSchedule. This is because next() returns early when a session is disabled:
have a session that is disabled and has not been used at the current day (i.e. there was no established session for that day)
send messages to that Session via sendToTarget() - the messages will end up in the Session's message store.
establish a connection to the session
based on QFJ's internal timer, the next() method will be called within a second and a reset will be done, effectively removing the Sessions's message store
Expected behavior
Session should get reset based on its schedule even when it is disabled.
Hey @chrjohn, can I pick this one up? Based on @philipwhiuk's suggestion, I plan to implement the fix to skip resetting unless sequence numbers have advanced.
Activity
philipwhiuk commentedon Oct 30, 2025
A simple optimisation we do for this is to not bother resetting unless the sequence numbers have advanced.
Ra9huvansh commentedon Apr 7, 2026
Hey @chrjohn, can I pick this one up? Based on @philipwhiuk's suggestion, I plan to implement the fix to skip resetting unless sequence numbers have advanced.
chrjohn commentedon Apr 8, 2026
Hi @Ra9huvansh , please do. Thank you 👍