Commit 853e6f95 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 4ff0c868
...@@ -185,7 +185,12 @@ def shutdown_zeo_server(adminaddr): ...@@ -185,7 +185,12 @@ def shutdown_zeo_server(adminaddr):
break break
raise raise
except socket.error, e: 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 break
raise raise
try: 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