Commit db0bd2fc authored by Vincent Pelletier's avatar Vincent Pelletier

Treat "host unreachable" the same way as "connection refused"

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2141 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 85f70e00
......@@ -119,7 +119,7 @@ class SocketConnector:
except socket.error, (err, errmsg):
if err == errno.EAGAIN:
raise ConnectorTryAgainException
if err == errno.ECONNREFUSED:
if err in (errno.ECONNREFUSED, errno.EHOSTUNREACH):
raise ConnectorConnectionRefusedException
if err == errno.ECONNRESET:
raise ConnectorConnectionClosedException
......
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