File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,11 @@ restart the server after \fIn\fR seconds in case it gets stuck. In
233233one-off mode, this is the number of seconds the server will wait
234234before exiting.
235235.TP
236+ .BR --server-max-duration " "
237+ max time, in seconds, that an iperf client can run against the server.
238+ When the sum of the client's time and omit values exceeds the max duration set by the server
239+ or the client's time value is 0, the measurement is rejected.
240+ .TP
236241.BR --server-bitrate-limit " \fI n \fR [KMGT]"
237242set a limit on the server side, which will cause a test to abort if
238243the client specifies a test of more than \fI n \fR bits per second, or
Original file line number Diff line number Diff line change @@ -2253,7 +2253,7 @@ iperf_exchange_parameters(struct iperf_test *test)
22532253 if (get_parameters (test ) < 0 )
22542254 return -1 ;
22552255
2256- if (test -> max_server_duration > 0 && ((test -> duration + test -> omit ) > test -> max_server_duration ) || test -> duration == 0 ) {
2256+ if (( test -> max_server_duration > 0 ) && ((( test -> duration + test -> omit ) > test -> max_server_duration ) || ( test -> duration == 0 )) ) {
22572257 if (iperf_set_send_state (test , SERVER_ERROR ) != 0 )
22582258 return -1 ;
22592259
You can’t perform that action at this time.
0 commit comments