Fix crashing on ECONNABORTED

In certain cases socket.connect fails with ECONNABORTED, which is
treated as "unknown" error causing sshuttle to crash.

Fixes #356
This commit is contained in:
Nick Sokolov 2019-09-13 11:24:10 -07:00 committed by Brian May
parent 21ef365c59
commit 138d2877c6

View File

@ -56,7 +56,8 @@ cmd_to_name = {
NET_ERRS = [errno.ECONNREFUSED, errno.ETIMEDOUT,
errno.EHOSTUNREACH, errno.ENETUNREACH,
errno.EHOSTDOWN, errno.ENETDOWN,
errno.ENETUNREACH]
errno.ENETUNREACH, errno.ECONNABORTED,
errno.ECONNRESET]
def _add(l, elem):