Преглед изворни кода

Adds iperf timeout for bandwith measurements.

master
Lukas Prause пре 3 година
родитељ
комит
231f8e9a7f
1 измењених фајлова са 4 додато и 4 уклоњено
  1. +4
    -4
      measurement_main.py

+ 4
- 4
measurement_main.py Прегледај датотеку

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(
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

Loading…
Откажи
Сачувај