Skip to content

Bug: For Logon/Logout/Resend/SequenceReset messages we should wait until sent - #21

Merged
AlexandrosKyriakakis merged 2 commits into
developfrom
escape-send-queued-when-blocked
Feb 1, 2024
Merged

AlexandrosKyriakakis merged 2 commits into
developfrom
escape-send-queued-when-blocked

Conversation

@AlexandrosKyriakakis

@AlexandrosKyriakakis AlexandrosKyriakakis commented Feb 1, 2024 •

Copy link
Copy Markdown
Member

Issue

When log on request was queued because cannot be send due to connection not ready,
Then it goes through the main session loop which leads to SendAppMessages

But, since session is not logged on yet because the message queued is the log on message, we drop the toSend queued messages so we lose the log on message itself.

Proposed solution

For important messages like Logon/Logout/Resend/SequenceReset we block until sent.

use default instead of a timer

refactor send queued

In case of Log On messages block until sent
@AlexandrosKyriakakis
AlexandrosKyriakakis requested a review from a team February 1, 2024 10:54
@AlexandrosKyriakakis AlexandrosKyriakakis self-assigned this Feb 1, 2024
@AlexandrosKyriakakis
AlexandrosKyriakakis merged commit 6eaa8ce into develop Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants