Skip to content

Fix backward compatibility issue of client incorrectly print 0 UDP packets loss#1988

Open
davidBar-On wants to merge 1 commit intoesnet:masterfrom
davidBar-On:issue-1984-UDP-0-loss-despite-non-zero-loss
Open

Fix backward compatibility issue of client incorrectly print 0 UDP packets loss#1988
davidBar-On wants to merge 1 commit intoesnet:masterfrom
davidBar-On:issue-1984-UDP-0-loss-despite-non-zero-loss

Conversation

@davidBar-On
Copy link
Contributor

Fix backward compatibility issue of client showing UDP 0 packets loss, although packets were lost. The issue is with older iperf3 servers that did not send committed packets into.

The main issue was that for some reason, the committed error count variable was not auto initialized to zero. However, when I added a printf() of its value, it was initialized to 0. Maybe a compiler issue, as the later initialization of the variable is done under if statement with no else.

For robustness, also ignored the omitted values if committing time is not specified. That allows showing the real packets loss when server does not support sending the omitting info.

@bmah888
Copy link
Contributor

bmah888 commented Jan 9, 2026

Thanks for the PR! We'll review and comment.

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

Comments