瀏覽代碼

Adds iperf timeout for bandwith measurements.

master
Lukas Prause 3 年之前
父節點
當前提交
9b06611587
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. +6
    -4
      measurement_main.py

+ 6
- 4
measurement_main.py 查看文件

@@ -803,10 +803,11 @@ class Client:
tcp_algo[congestion_control_index],
]
is_measurement_done = False
while not is_measurement_done:
iperf_return = 0
while not is_measurement_done or iperf_return != 0:
try:
try:
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:
print_message("iPerf timed out. Retry...")
@@ -868,10 +869,11 @@ class Client:
)
sleep(2)
is_measurement_done = False
while not is_measurement_done:
iperf_return = 0
while not is_measurement_done or iperf_return != 0:
try:
try:
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:
print_message("iPerf timed out. Retry...")

Loading…
取消
儲存