Skip to content

Messages are dropped when "NotInSession" #986

@viachaslau-lapitski

Description

@viachaslau-lapitski

Describe the bug

I have noticed that if session is created with a schedule, then you can loss messages if submitted before session start time. Could be legit case but it contradict to this

void onCreate(SessionID sessionId);

Sessions exist whether or not a counter party is connected to it. As soon as a session is created, you can begin sending messages to it. If no one is logged on, the messages will be sent at the time a connection is established with the counterparty.

To Reproduce

in order to reproduce issue you need to make sure that session start time is in future (few minutes, hours, etc)

Expected behavior

Is it possible to fix code in a way that if session object is created and you send messages to the session, they are not dropped (reset by periodic timer) ? Probably that's ok to clear session state upon session end time, but everything that is submitted into session between session end and session start should be sent out at session start (if connected)

system information:

  • OS: Linux
  • JDK 17
  • QFJ Version 2.3.1

Additional context

No additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions