We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c6be9f commit 806b2beCopy full SHA for 806b2be
src/iperf_api.c
@@ -2247,7 +2247,7 @@ iperf_exchange_parameters(struct iperf_test *test)
2247
if (get_parameters(test) < 0)
2248
return -1;
2249
2250
- if (test->max_server_duration > 0 && (test->duration + test->omit) > test->max_server_duration) {
+ if (test->max_server_duration > 0 && ((test->duration + test->omit) > test->max_server_duration) || test->duration == 0) {
2251
if (iperf_set_send_state(test, SERVER_ERROR) != 0)
2252
2253
0 commit comments