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

Fix off-by-one error in Dgram client retry count checking. #354

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

ximon18
Copy link
Member

@ximon18 ximon18 commented Jul 18, 2024

The transmit loop looped from 0..max_retries exclusive, so with the default max_retries value of 5 it would go round the loop 5 times, i.e. 1 try and 4 retries, not 5 retries.

This commit adjusts the logic and allowed minimum value to match the actual behaviour.

This commit also fixes a typo in the word "capped" in the doc strings.

The transmit loop looped from 0..max_retries _exclusive_, so with the default max_retries value of 5 it would go round the loop 5 times, i.e. 1 try and 4 retries, not 5 retries.

This commit adjusts the logic and allowed minimum value to match the actual behaviour.

This commit also fixes a typo in the word "capped" in the doc strings.
@ximon18 ximon18 requested a review from a team July 18, 2024 10:23
@ximon18 ximon18 mentioned this pull request Jul 18, 2024
@ximon18 ximon18 changed the title FIX: Off by one error in Dgram client retry count checking. Fix off-by-one error in Dgram client retry count checking. Jul 22, 2024
@ximon18 ximon18 merged commit 6b761f9 into main Jul 23, 2024
26 checks passed
@ximon18 ximon18 deleted the fix-dgram-retry-count branch July 23, 2024 18:37
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