Skip to content

Commit

Permalink
ssnet: EHOSTUNREACH and ENETUNREACH are non-fatal errors.
Browse files Browse the repository at this point in the history
Reported by Wayne Scott.
  • Loading branch information
apenwarr committed May 7, 2010
1 parent 8fe3592 commit 77935bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ssnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def try_connect(self):
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)
Expand Down

0 comments on commit 77935bd

Please sign in to comment.