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.
1 parent 2354409 commit 98a0437Copy full SHA for 98a0437
python/paddle/fluid/transpiler/details/checkport.py
@@ -34,6 +34,7 @@ def wait_server_ready(endpoints):
34
"""
35
while True:
36
all_ok = True
37
+ not_ready_endpoints = []
38
for ep in endpoints:
39
ip_port = ep.split(":")
40
with closing(socket.socket(socket.AF_INET,
@@ -42,8 +43,11 @@ def wait_server_ready(endpoints):
42
43
result = sock.connect_ex((ip_port[0], int(ip_port[1])))
44
if result != 0:
45
all_ok = False
46
+ not_ready_endpoints.append(ip_port)
47
if not all_ok:
48
sys.stderr.write("pserver not ready, wait 3 sec to retry...\n")
49
+ sys.stderr.write("not ready endpoints:" + str(not_ready_endpoints) +
50
+ "\n")
51
sys.stderr.flush()
52
time.sleep(3)
53
else:
0 commit comments