Python function
available_port
available_port()
max.kv_cache.available_port(start_port=8000, end_port=9000, max_attempts=100)
Finds an available TCP port in the given range.
-
Parameters:
-
Returns:
-
An available port number.
-
Return type:
-
Raises:
-
RuntimeError – If no available port is found after max_attempts.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!