Skip to content

Commit 91b5691

Browse files
authored
Merge pull request #266 from Dev-sh21/fix/macos-vnc-timeout
fix(vnc): increase VNC and XServer timeouts for macOS/ARM64
2 parents 0f454de + 1188ee2 commit 91b5691

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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)