소스 검색

Adds iperf timeout for bandwith measurements.

master
Lukas Prause 3 년 전
부모
커밋
912a78c562
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +4
    -4
      measurement_main.py

+ 4
- 4
measurement_main.py 파일 보기

@@ -369,7 +369,7 @@ class Server:
self.config["port"],
)
try:
subprocess.call(iperf_command, timeout=time + 1)
subprocess.call(iperf_command, timeout=float(time) + 1)
except:
print_message("iPerf timed out. Going ahead with next measurement...")
processHandler.kill_all()
@@ -441,7 +441,7 @@ class Server:
"--one-off",
]
try:
subprocess.call(iperf_command, timeout=time + 1)
subprocess.call(iperf_command, timeout=float(time) + 1.0)
except:
print_message("iPerf timed out. Going ahead with next measurement...")
sleep(2)
@@ -807,7 +807,7 @@ class Client:
tcp_algo[congestion_control_index],
]
try:
subprocess.call(iperf_command, timeout=time + 2)
subprocess.call(iperf_command, timeout=float(time) + 2)
except:
print_message("iPerf timed out. Going ahead with next measurement...")
sleep(4)
@@ -865,7 +865,7 @@ class Client:
)
sleep(2)
try:
subprocess.call(iperf_command, timeout=time+2)
subprocess.call(iperf_command, timeout=float(time)+2)
except:
print_message("iPerf timed out. Going ahead with next measurement...")
processHandler.kill_all()

Loading…
취소
저장