]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add ETIMEDOUT to the list of relatively benign unclean-close errnos.
authorBen Darnell <ben@bendarnell.com>
Sun, 15 Jun 2014 15:33:46 +0000 (11:33 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 15 Jun 2014 15:33:46 +0000 (11:33 -0400)
tornado/iostream.py

index 910abbc92fb5eb6e9406b13d2c21a0260f45dae9..7aa268e5ca49941278268d05d9e7a259ede257c6 100644 (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):