We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d625abe + 3404e00 commit e715d22Copy full SHA for e715d22
base/tools/wait-for-port
@@ -16,6 +16,9 @@ def check_port(host, port):
16
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
17
try:
18
return sock.connect_ex((host, port)) == 0
19
+ except OSError as e:
20
+ logging.error(f"Can't connect to {host}:{port} — {e}")
21
+ return False
22
finally:
23
sock.close()
24
0 commit comments