thiezn / iperf3-python

Python wrapper around iperf3
https://iperf3-python.readthedocs.org/
MIT License
110 stars 51 forks source link

Timeout in server #24

Open h3ct0r opened 6 years ago

h3ct0r commented 6 years ago

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!

thiezn commented 6 years ago

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.

ChristofKaufmann commented 5 years ago

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.