harp.utils.network¶
- wait_for_port(port, host='localhost', timeout=10.0)[source]¶
Wait until a port starts accepting TCP connections. Args:
port: Port number. host: Host address on which the port should exist. timeout: In seconds. How long to wait before raising errors.
- Raises:
TimeoutError: The port isn’t accepting connection after time specified in timeout.