Skip to content

Improved handling of latched senders in QuickSendAsync#1515

Merged
jeremydmiller merged 1 commit intoJasperFx:mainfrom
luisfelipediaz:fix/network-outbox-retry
Jun 27, 2025
Merged

Improved handling of latched senders in QuickSendAsync#1515
jeremydmiller merged 1 commit intoJasperFx:mainfrom
luisfelipediaz:fix/network-outbox-retry

Conversation

@luisfelipediaz
Copy link

To fix the reported problems in this issue: #1514
This pull request introduces an enhancement to the QuickSendAsync method in src/Wolverine/Envelope.Internals.cs to improve handling of latched senders. The change ensures that messages are not sent immediately when the sender is latched, while maintaining durability and retry logic.

Key change:

  • Improved handling of latched senders in QuickSendAsync:
    • Added logic to detect when the sender is latched (e.g., due to network disconnection or transport failure).
    • If the sender is a SendingAgent, the envelope is explicitly marked as failed using MarkProcessingFailureAsync, enabling retries when the connection is restored.

@jeremydmiller
Copy link
Member

Oh, good catch!

@jeremydmiller jeremydmiller merged commit 3c07c89 into JasperFx:main Jun 27, 2025
1 check passed
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