-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle correctly some errors on initial client connect. (#1139)
This is a mostly-cosmetic reimplementation of pull request #1128. Original commit log: Fix two issues that caused an active TCP test to terminate if a new connection request was received while in streams creation phase. One issue was in iperf_tcp_accept() - after identifying that the cookies of the new connection if from a new client, error was returned which caused the active test to terminate. The other issue was in iperf_run_server() where congestion alg was set for the new client, although the stream to it was already closed by iperf_tcp_accept(). That also cause the active test to terminate. Another minor issue that was fixed is that after a client received a failure state (negative state) from the server, iperf_client_end() still tried to send back IPERF_DONE to the server. That caused the client to issue failure message of "unable to send control message: Connection reset by peer" instead of "the server is busy running a test". Originally submitted by: @davidBar-On
- Loading branch information
Showing
3 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters