Commit 78b232a6 authored by Jim Fulton's avatar Jim Fulton

Darwin generates a different error number when trying to connect to a

port that nothing's listening on.
parent 61084543
......@@ -185,7 +185,12 @@ def shutdown_zeo_server(adminaddr):
break
raise
except socket.error, e:
if e[0] == errno.ECONNREFUSED and i > 0:
if (e[0] == errno.ECONNREFUSED
or
# MAC OS X uses EINVAL when connecting to a port
# that isn't being listened on.
(sys.platform == 'darwin' and e[0] == errno.EINVAL)
) and i > 0:
break
raise
try:
......
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