-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump outgoing delivery-count in handle_deliver
What? For credit API v1, increase the outgoing delivery-count as soon as the message is scheduled for delivery, that is before the message is queued in the session's outgoing_pending queue. Why? 1. More correct for credit API v1 in case a FLOW is received for an outgoing link topping up credit while an outgoing transfer on the same link is queued in outgoing_pending. For the server's credit calculation to be correct, it doesn't matter whether the outgoing in-flight message travels through the network, is queued in TCP buffers, processed by the writer, or just queued in the session's outgoing_pending queue. 2. Higher performance as no map update is performed for credit API v2 in send_pending() 3. Simplifies code
- Loading branch information
Showing
1 changed file
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters