Adds iperf timeout for bandwith measurements.
This commit is contained in:
@@ -805,6 +805,8 @@ class Client:
|
|||||||
is_measurement_done = False
|
is_measurement_done = False
|
||||||
iperf_return = 0
|
iperf_return = 0
|
||||||
while not is_measurement_done or iperf_return != 0:
|
while not is_measurement_done or iperf_return != 0:
|
||||||
|
if iperf_return != 0:
|
||||||
|
reconnect_modem()
|
||||||
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)
|
||||||
@@ -871,6 +873,8 @@ class Client:
|
|||||||
is_measurement_done = False
|
is_measurement_done = False
|
||||||
iperf_return = 0
|
iperf_return = 0
|
||||||
while not is_measurement_done or iperf_return != 0:
|
while not is_measurement_done or iperf_return != 0:
|
||||||
|
if iperf_return != 0:
|
||||||
|
reconnect_modem()
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user