Send SERVER_ERROR to client with error info in more cases#1950
Send SERVER_ERROR to client with error info in more cases#1950davidBar-On wants to merge 2 commits intoesnet:masterfrom
Conversation
|
Thanks for the PR! I think this looks like a good change, and in addition I appreciate factoring out the copy-paste code that sends the |
I did test with existing iperf3, but I don't expect an problem. Currently, when the server does not send |
I have tested now with iperf3 that does not included the change and found that behavior is indeed o.k. However, I found that if a server error occurs in From what I checked, almost all systems should support |
Version of iperf3 (or development branch, such as
masteror3.1-STABLE) to which this pull request applies:master
Issues fixed (if any): none
Brief description of code changes (suitable for use as a commit message):
In both
error_handlingandcleanup_server()iniperf_server.c, added sendingSERVER_ERRORstate to the client with the error info (and removed now redundantSERVER_ERRORafter parameters exchange).Also added "SERVER ERROR: ..." error message in the client, when
SERVER_ERRORstate is received, so it will be clear that the error printed is from the server and not the client itself. (The current error message is printed by who ever callsiperf_run_client(), e.g.main.c, so could not just change that message.)