diff options
author | Bruce A. Mah <bmah@kitchenlab.org> | 2017-05-17 12:50:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 12:50:50 -0700 |
commit | 9d7d60aca1c946547c88042a302a434d10d580ed (patch) | |
tree | b5868160e7f050121040d438561ff6ba1fd96e6b /src/iperf.h | |
parent | f1415a0d98bb6737329bb4091d3289d9b341bd72 (diff) | |
download | iperf3-9d7d60aca1c946547c88042a302a434d10d580ed.tar.gz |
Issue 216 (#581)
* Add configurable timeout for the setup of the control connection.
This is specified using the new --connect-timeout option, with an
integer parameter in ms. The iperf3 client will wait for this
amount of time for the setup of the control connection to the
server. If this option is not given, the OS default for TCP
connection setup is used. Specifying a smaller connection timeout
allows faster detection of a down / unresponsive iperf3 server.
The implementation uses a variation on the timeout_connect()
function from OpenBSD's netcat utility.
Fixes #216.
Diffstat (limited to 'src/iperf.h')
-rwxr-xr-x | src/iperf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/iperf.h b/src/iperf.h index 53c44d2..c270d73 100755 --- a/src/iperf.h +++ b/src/iperf.h @@ -128,6 +128,7 @@ struct iperf_settings char unit_format; /* -f */ int num_ostreams; /* SCTP initmsg settings */ char *authtoken; /* Authentication token */ + int connect_timeout; /* socket connection timeout, in ms */ }; struct iperf_test; |