Skip to content

Only one Client error log about Server error - #2053

Open
davidBar-On wants to merge 1 commit into
esnet:masterfrom
davidBar-On:issue-2051-add-only-one-server-error-to-json-output
Open

Only one Client error log about Server error#2053
davidBar-On wants to merge 1 commit into
esnet:masterfrom
davidBar-On:issue-2051-add-only-one-server-error-to-json-output

Conversation

@davidBar-On

Copy link
Copy Markdown
Contributor

Suggested fix to the issue that the client logs two error messages when receiving an error from the server, which may be a problem in JSON output.

The suggested solution is that the SERVER ERROR prefix to the error text is added by iperf_strerror(), instead of logging a special error message (which causes the duplicate log). This is by negating the error code received from the server, which indicates to iperf_strerror() that this is a server error. In addition, handling of the errno received from the server was also added to iperf_strerror()

@bmah888

bmah888 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR, acknowledged!

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