From: Ben Darnell Date: Sun, 12 May 2013 20:24:19 +0000 (-0400) Subject: Check for ECONNRESET in addition to EPIPE on send(). X-Git-Tag: v3.1.0~76^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47ab0ce2fa65dea5a7808af032fe10f587f6de74;p=thirdparty%2Ftornado.git Check for ECONNRESET in addition to EPIPE on send(). ECONNRESET appears to be the error code used here on Windows. Closes #757. Closes #758. --- 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