Commit 9ad70632 authored by Jim Fulton's avatar Jim Fulton

wait much longer for servers to start cuz address already in use

parent 01294186
...@@ -161,10 +161,10 @@ def start_zeo_server(storage_conf=None, zeo_conf=None, port=None, keep=False, ...@@ -161,10 +161,10 @@ def start_zeo_server(storage_conf=None, zeo_conf=None, port=None, keep=False,
else: else:
pid = subprocess.Popen(args, env=d, close_fds=True).pid pid = subprocess.Popen(args, env=d, close_fds=True).pid
# We need to wait until the server starts, but not forever. # We need to wait until the server starts, but not forever. 150
# 30 seconds is a somewhat arbitrary upper bound. A BDBStorage # seconds is a somewhat arbitrary upper bound, but probably helps
# takes a long time to open -- more than 10 seconds on occasion. # in an address already in use situation.
for i in range(300): for i in range(1500):
time.sleep(0.1) time.sleep(0.1)
try: try:
if isinstance(adminaddr, str) and not os.path.exists(adminaddr): if isinstance(adminaddr, str) and not os.path.exists(adminaddr):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment