Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the accounting of outgoing RPC fragment sizes #546

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

amn-rtl
Copy link
Collaborator

@amn-rtl amn-rtl commented Apr 20, 2023

For outgoing fragmented RPC messages, the header size was accounted for an extra time for each fragment except the first one. This change corrects that.

For outgoing fragmented RPC messages, the header size was accounted for
an extra time for each fragment except the first one. This change
corrects that.
@amn-rtl amn-rtl requested review from pyhys, hefloryd and olbjo April 20, 2023 11:25
Copy link
Collaborator

@pyhys pyhys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is about receiving an ACK on a fragment we have sent earlier, and the calculation of how much data we have successfully sent so far. For the first ACK we should count the entire message, but for consecutive messages we should only count the payload (not the header).

Change an error message to be slightly more helpful.
@pyhys
Copy link
Collaborator

pyhys commented Apr 28, 2023

Perfect!

@hefloryd hefloryd merged commit ecd17af into rtlabs-com:master Jun 1, 2023
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.

3 participants