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