Skip to content

Commit 11012b5

Browse files
committed
board: change audio/video server connection timeout
- wait for connection 2s in total, delay 25ms after each try
1 parent 9a7b5b2 commit 11012b5

34 files changed

Lines changed: 68 additions & 68 deletions

File tree

board/Corstone-300/vsi/python/vsi_audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def connectToServer(self, address, authkey):
7373
Returns:
7474
None
7575
"""
76-
for _ in range(50):
76+
for _ in range(80):
7777
try:
7878
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7979
if isinstance(self.conn, Connection):
@@ -82,7 +82,7 @@ def connectToServer(self, address, authkey):
8282
self.conn = None
8383
except Exception:
8484
self.conn = None
85-
time.sleep(0.01)
85+
time.sleep(0.025)
8686

8787
def setMode(self, mode):
8888
"""

board/Corstone-300/vsi/python/vsi_video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def connectToServer(self, address, authkey):
7272
Returns:
7373
None
7474
"""
75-
for _ in range(50):
75+
for _ in range(80):
7676
try:
7777
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7878
if isinstance(self.conn, Connection):
@@ -81,7 +81,7 @@ def connectToServer(self, address, authkey):
8181
self.conn = None
8282
except Exception:
8383
self.conn = None
84-
time.sleep(0.01)
84+
time.sleep(0.025)
8585

8686
def setMode(self, mode):
8787
"""

board/Corstone-310/vsi/python/vsi_audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def connectToServer(self, address, authkey):
7373
Returns:
7474
None
7575
"""
76-
for _ in range(50):
76+
for _ in range(80):
7777
try:
7878
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7979
if isinstance(self.conn, Connection):
@@ -82,7 +82,7 @@ def connectToServer(self, address, authkey):
8282
self.conn = None
8383
except Exception:
8484
self.conn = None
85-
time.sleep(0.01)
85+
time.sleep(0.025)
8686

8787
def setMode(self, mode):
8888
"""

board/Corstone-310/vsi/python/vsi_video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def connectToServer(self, address, authkey):
7272
Returns:
7373
None
7474
"""
75-
for _ in range(50):
75+
for _ in range(80):
7676
try:
7777
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7878
if isinstance(self.conn, Connection):
@@ -81,7 +81,7 @@ def connectToServer(self, address, authkey):
8181
self.conn = None
8282
except Exception:
8383
self.conn = None
84-
time.sleep(0.01)
84+
time.sleep(0.025)
8585

8686
def setMode(self, mode):
8787
"""

board/Corstone-315/vsi/python/vsi_audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def connectToServer(self, address, authkey):
7373
Returns:
7474
None
7575
"""
76-
for _ in range(50):
76+
for _ in range(80):
7777
try:
7878
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7979
if isinstance(self.conn, Connection):
@@ -82,7 +82,7 @@ def connectToServer(self, address, authkey):
8282
self.conn = None
8383
except Exception:
8484
self.conn = None
85-
time.sleep(0.01)
85+
time.sleep(0.025)
8686

8787
def setMode(self, mode):
8888
"""

board/Corstone-315/vsi/python/vsi_video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def connectToServer(self, address, authkey):
7272
Returns:
7373
None
7474
"""
75-
for _ in range(50):
75+
for _ in range(80):
7676
try:
7777
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7878
if isinstance(self.conn, Connection):
@@ -81,7 +81,7 @@ def connectToServer(self, address, authkey):
8181
self.conn = None
8282
except Exception:
8383
self.conn = None
84-
time.sleep(0.01)
84+
time.sleep(0.025)
8585

8686
def setMode(self, mode):
8787
"""

board/Corstone-320/vsi/python/vsi_audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def connectToServer(self, address, authkey):
7373
Returns:
7474
None
7575
"""
76-
for _ in range(50):
76+
for _ in range(80):
7777
try:
7878
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7979
if isinstance(self.conn, Connection):
@@ -82,7 +82,7 @@ def connectToServer(self, address, authkey):
8282
self.conn = None
8383
except Exception:
8484
self.conn = None
85-
time.sleep(0.01)
85+
time.sleep(0.025)
8686

8787
def setMode(self, mode):
8888
"""

board/Corstone-320/vsi/python/vsi_video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def connectToServer(self, address, authkey):
7272
Returns:
7373
None
7474
"""
75-
for _ in range(50):
75+
for _ in range(80):
7676
try:
7777
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7878
if isinstance(self.conn, Connection):
@@ -81,7 +81,7 @@ def connectToServer(self, address, authkey):
8181
self.conn = None
8282
except Exception:
8383
self.conn = None
84-
time.sleep(0.01)
84+
time.sleep(0.025)
8585

8686
def setMode(self, mode):
8787
"""

example/FVP_Audio/board/Corstone-300/vsi/python/vsi_audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def connectToServer(self, address, authkey):
7373
Returns:
7474
None
7575
"""
76-
for _ in range(50):
76+
for _ in range(80):
7777
try:
7878
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7979
if isinstance(self.conn, Connection):
@@ -82,7 +82,7 @@ def connectToServer(self, address, authkey):
8282
self.conn = None
8383
except Exception:
8484
self.conn = None
85-
time.sleep(0.01)
85+
time.sleep(0.025)
8686

8787
def setMode(self, mode):
8888
"""

example/FVP_Audio/board/Corstone-300/vsi/python/vsi_video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def connectToServer(self, address, authkey):
7272
Returns:
7373
None
7474
"""
75-
for _ in range(50):
75+
for _ in range(80):
7676
try:
7777
self.conn = Client(address, authkey=authkey.encode('utf-8'))
7878
if isinstance(self.conn, Connection):
@@ -81,7 +81,7 @@ def connectToServer(self, address, authkey):
8181
self.conn = None
8282
except Exception:
8383
self.conn = None
84-
time.sleep(0.01)
84+
time.sleep(0.025)
8585

8686
def setMode(self, mode):
8787
"""

0 commit comments

Comments
 (0)