From e7a61a934fe8db4c5842b73feb36e9340a8a8bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Wed, 25 Jan 2017 01:08:00 +0800 Subject: [PATCH] ignore SIGPIPE --- shadowsocks/tcprelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index 571fe42..dbcba08 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -882,7 +882,7 @@ class TCPRelayHandler(object): def _on_local_error(self): if self._local_sock: err = eventloop.get_sock_error(self._local_sock) - if err.errno not in [errno.ECONNRESET]: + if err.errno not in [errno.ECONNRESET, errno.EPIPE]: logging.error(err) logging.error("local error, exception from %s:%d" % (self._client_address[0], self._client_address[1])) self.destroy()