Adds iperf timeout for bandwith measurements.
This commit is contained in:
@@ -810,12 +810,12 @@ class Client:
|
|||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
iperf_return = subprocess.call(iperf_command, timeout=float(time) + TIMEOUT_OFFSET)
|
iperf_return = subprocess.call(iperf_command, timeout=float(time) + TIMEOUT_OFFSET)
|
||||||
is_measurement_done = True
|
|
||||||
except:
|
except:
|
||||||
print_message("iPerf timed out. Retry...")
|
print_message("iPerf timed out...")
|
||||||
reconnect_modem()
|
reconnect_modem()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
exit()
|
exit()
|
||||||
|
is_measurement_done = True
|
||||||
sleep(4)
|
sleep(4)
|
||||||
processHandler.kill_all()
|
processHandler.kill_all()
|
||||||
congestion_control_index = (congestion_control_index + 1) % len(
|
congestion_control_index = (congestion_control_index + 1) % len(
|
||||||
@@ -878,12 +878,12 @@ class Client:
|
|||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
iperf_return = subprocess.call(iperf_command, timeout=float(time) + TIMEOUT_OFFSET)
|
iperf_return = subprocess.call(iperf_command, timeout=float(time) + TIMEOUT_OFFSET)
|
||||||
is_measurement_done = True
|
|
||||||
except:
|
except:
|
||||||
print_message("iPerf timed out. Retry...")
|
print_message("iPerf timed out...")
|
||||||
reconnect_modem()
|
reconnect_modem()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
exit()
|
exit()
|
||||||
|
is_measurement_done = True
|
||||||
processHandler.kill_all()
|
processHandler.kill_all()
|
||||||
congestion_control_index = (congestion_control_index + 1) % len(
|
congestion_control_index = (congestion_control_index + 1) % len(
|
||||||
tcp_algo
|
tcp_algo
|
||||||
|
|||||||
Reference in New Issue
Block a user