Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions base/tools/wait-for-port
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def check_port(host, port):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
return sock.connect_ex((host, port)) == 0
except OSError as e:
logging.error(f"Can't connect to {host}:{port} — {e}")
return False
finally:
sock.close()

Expand Down
Loading