Skip to content

Commit

Permalink
Properly reset the --fq-rate parameter on the server between tests.
Browse files Browse the repository at this point in the history
Without this change, an --fq-rate setting would persist on the server,
which could adversely slow down future --reverse tests. This bug was
exposed by PR esnet#1643, which allows --fq-rate to work on the server. One
annoying side-effect of this bug was that GitHub Actions scripts were
timing out and throwing errors.

Pet file copyright date while here.
  • Loading branch information
bmah888 committed Mar 14, 2024
1 parent c362e1a commit d7c021b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iperf_api.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* iperf, Copyright (c) 2014-2022, The Regents of the University of
* iperf, Copyright (c) 2014-2024, The Regents of the University of
* California, through Lawrence Berkeley National Laboratory (subject
* to receipt of any required approvals from the U.S. Dept. of
* Energy). All rights reserved.
Expand Down Expand Up @@ -3252,6 +3252,7 @@ iperf_reset_test(struct iperf_test *test)
test->settings->socket_bufsize = 0;
test->settings->blksize = DEFAULT_TCP_BLKSIZE;
test->settings->rate = 0;
test->settings->fqrate = 0;
test->settings->burst = 0;
test->settings->mss = 0;
test->settings->tos = 0;
Expand Down

0 comments on commit d7c021b

Please sign in to comment.