Skip to content

Commit

Permalink
Reset the congestion protocol on the server between tests
Browse files Browse the repository at this point in the history
Otherwise, the server keeps the last congestion protocol asked by a
client (-C option), applying it to the following clients not asking for
a specific protocol.
  • Loading branch information
hwti committed Dec 14, 2024
1 parent 2a29844 commit 1e80c4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -3262,6 +3262,9 @@ iperf_reset_test(struct iperf_test *test)

SLIST_INIT(&test->streams);

if (test->congestion)
free(test->congestion);
test->congestion = NULL;
if (test->remote_congestion_used)
free(test->remote_congestion_used);
test->remote_congestion_used = NULL;
Expand Down

0 comments on commit 1e80c4f

Please sign in to comment.