From 47ab0ce2fa65dea5a7808af032fe10f587f6de74 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 12 May 2013 16:24:19 -0400 Subject: [PATCH] Check for ECONNRESET in addition to EPIPE on send(). ECONNRESET appears to be the error code used here on Windows. Closes #757. Closes #758. --- tornado/iostream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/iostream.py b/tornado/iostream.py index 8545fcf4a..40493c6c6 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -547,7 +547,7 @@ class BaseIOStream(object): self._write_buffer_frozen = True break else: - if e.args[0] != errno.EPIPE: + if e.args[0] not in (errno.EPIPE, errno.ECONNRESET): # Broken pipe errors are usually caused by connection # reset, and its better to not log EPIPE errors to # minimize log spam -- 2.47.2