pxblat.Server.wait_ready(*, restart: bool = False)[source]

Wait server ready in block mode.

Parameters:
timeout

Timeout for wait server ready.

restart: bool = False

If timeout, restart server and wait again.

Raises:
  • RuntimeError – If server is not opened by gfServer or the server takes longer time to be ready, the wait_server_ready may be timeout.

  • If restart is True, the server will be restarted and wait again.