diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-05-07 12:30:03 -0400 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-05-07 12:30:03 -0400 |
commit | 77935bd110d901e9e50b1e62aa74b0d27d33c35e (patch) | |
tree | 963015d93b6b09bebf48ad6f324ceb066efd2a22 | |
parent | 8fe3592be3fafb04d12f056a264c73cb846c1a0e (diff) |
ssnet: EHOSTUNREACH and ENETUNREACH are non-fatal errors.
Reported by Wayne Scott.
-rw-r--r-- | ssnet.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -83,7 +83,9 @@ class SockWrapper: elif e.args[0] == errno.EISCONN: # connected successfully (BSD) self.connect_to = None - elif e.args[0] in [errno.ECONNREFUSED, errno.ETIMEDOUT]: + elif e.args[0] in [errno.ECONNREFUSED, errno.ETIMEDOUT, + errno.EHOSTUNREACH, errno.ENETUNREACH, + errno.EACCES, errno.EPERM]: # a "normal" kind of error self.connect_to = None self.seterr(e) |