quickfixj icon indicating copy to clipboard operation
quickfixj copied to clipboard

Messages are dropped when "NotInSession"

Open viachaslau-lapitski opened this issue 5 months ago • 1 comments

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 https://github.com/quickfix-j/quickfixj/blob/2d0cdfd9e088552219964f892197e3323a0d9e81/quickfixj-core/src/main/java/quickfix/Application.java#L35

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

viachaslau-lapitski avatar Jun 09 '25 13:06 viachaslau-lapitski