Add ETIMEDOUT to the list of relatively benign unclean-close errnos.

This commit is contained in:
Ben Darnell 2014-06-15 11:33:46 -04:00
parent 99aa924c46
commit 409ddc474a
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ _ERRNO_WOULDBLOCK = (errno.EWOULDBLOCK, errno.EAGAIN)
# These errnos indicate that a connection has been abruptly terminated.
# They should be caught and handled less noisily than other errors.
_ERRNO_CONNRESET = (errno.ECONNRESET, errno.ECONNABORTED, errno.EPIPE)
_ERRNO_CONNRESET = (errno.ECONNRESET, errno.ECONNABORTED, errno.EPIPE,
errno.ETIMEDOUT)
class StreamClosedError(IOError):