Browse Source

Adds iperf timeout for bandwith measurements.

master
Lukas Prause 3 years ago
parent
commit
912a78c562
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      measurement_main.py

+ 4
- 4
measurement_main.py View File

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

Loading…
Cancel
Save