mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-26 07:51:13 +00:00
Change find an unused port.
This commit is contained in:
parent
f5540ee147
commit
95a89ac91b
@ -71,9 +71,9 @@ def find_unused_port(start_port, end_port, host='127.0.0.1', socket_type="TCP",
|
||||
else:
|
||||
continue
|
||||
else:
|
||||
raise Exception("Could not find an unused port between {} and {}: {}".format(start_port, end_port, e))
|
||||
raise Exception("Could not find an unused port between {} and {} on host {}: {}".format(start_port, end_port, host, e))
|
||||
|
||||
raise Exception("Could not find a free port between {0} and {1}, last exception: {}".format(start_port, end_port, last_exception))
|
||||
raise Exception("Could not find a free port between {} and {} on host {}, last exception: {}".format(start_port, end_port, host, last_exception))
|
||||
|
||||
|
||||
def wait_socket_is_ready(host, port, wait=2.0, socket_timeout=10):
|
||||
|
Loading…
Reference in New Issue
Block a user