iperf3-python icon indicating copy to clipboard operation
iperf3-python copied to clipboard

Timeout in server

Open h3ct0r opened this issue 8 years ago • 2 comments

Hi,

Is there a way to use a timeout on the server? For example, the server automatically closes when X seconds have passed without a client request.

Thanks!

h3ct0r avatar Nov 19 '17 22:11 h3ct0r

Hi H3ctor,

At the moment there is no builtin option to terminate the server when there is no client activity. When I have some time to spend I'll investigate if we can add an option.

thiezn avatar Jan 24 '18 14:01 thiezn

As far as I know this has been implemented in recent iperf3 versions. It can be controlled by the test duration. The server will be killed 5 seconds after the duration has passed. So for the default duration of 10 s, the server will be killed after 15 s, if the connection breaks during the test. See this pull request: esnet/iperf#446

But if you mean a time out before a test is started, I don't know if this exists. I guess not.

ChristofKaufmann avatar Jan 24 '19 18:01 ChristofKaufmann