Sfoglia il codice sorgente

Adds iperf timeout for bandwith measurements.

master
Lukas Prause 3 anni fa
parent
commit
231f8e9a7f
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      measurement_main.py

+ 4
- 4
measurement_main.py Vedi File

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…
Annulla
Salva