[Neo-report] r2141 vincent - /trunk/neo/connector.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jun 7 15:47:17 CEST 2010
Author: vincent
Date: Mon Jun 7 15:47:16 2010
New Revision: 2141
Log:
Treat "host unreachable" the same way as "connection refused"
Modified:
trunk/neo/connector.py
Modified: trunk/neo/connector.py
==============================================================================
--- trunk/neo/connector.py [iso-8859-1] (original)
+++ trunk/neo/connector.py [iso-8859-1] Mon Jun 7 15:47:16 2010
@@ -119,7 +119,7 @@
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
More information about the Neo-report
mailing list