-
pxblat.wait_server_ready(host: str, port: int, timeout: int =
60, server_option=None) None[source] Wait for a server to become ready by checking if a given port is open or if a specific server status is reached.
- Parameters:¶
- host : str¶
The hostname or IP address of the server to check.
- port : int¶
The port number to check for open status.
- timeout : int, optional¶
The maximum number of seconds to wait for the server to become ready. Defaults to 60.
- server_option : str, optional¶
The specific server status to check for. If None, the function will check for an open port. Defaults to None.
- Raises:¶
RuntimeError – If the server does not become ready within the specified timeout.
- Returns:¶
None