Skip to content

Commit 0a0610c

Browse files
committed
fix: increase timeouts to 120s, update docs, and bind to 0.0.0.0
1 parent 0f454de commit 0a0610c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

manager/libs/applications/compatibility/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(
1414
):
1515
super().__init__()
1616
self.update_callback = callback
17-
self.server = WebsocketServer(port=port, host="127.0.0.1")
17+
self.server = WebsocketServer(port=port, host="0.0.0.0")
1818
self.server.set_fn_new_client(self.on_open)
1919
self.server.set_fn_client_left(self.on_close)
2020
self.server.set_fn_message_received(self.on_message)

manager/libs/process_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def is_xserver_running(display):
7575
return os.path.exists(x_socket_path)
7676

7777

78-
def wait_for_xserver(display, timeout=30):
78+
def wait_for_xserver(display, timeout=120):
7979
"""
8080
Wait for the X server to start within a specified timeout period.
8181

manager/manager/vnc/vnc_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ def start_vnc_gpu(self, display, internal_port, external_port, dri_path):
115115
self.wait_for_port("localhost", internal_port)
116116
self.wait_for_port("localhost", external_port)
117117

118-
def wait_for_port(self, host, port, timeout=20):
118+
def wait_for_port(self, host, port, timeout=120):
119119
"""Wait for a TCP port on a host to become available within a timeout period.
120120
121121
Args:
122122
host (str): Hostname or IP address to check.
123123
port (int): Port number to check.
124-
timeout (int, optional): Maximum time to wait in seconds. Defaults to 20.
124+
timeout (int, optional): Maximum time to wait in seconds. Defaults to 120.
125125
126126
Raises:
127127
TimeoutError: If the port does not become available within the timeout.

0 commit comments

Comments
 (0)