浏览代码

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

正在加载...
取消
保存