From a3a8ed996c24157e47e404b4db53d1b0ed0893b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Sat, 8 Apr 2017 22:02:35 +0800 Subject: [PATCH] fix a mistake --- shadowsocks/tcprelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index a56ea1b..3616761 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -767,7 +767,7 @@ class TCPRelayHandler(object): return buffer_size s = buffer_size % self._tcp_mss + self._overhead if s > self._tcp_mss: - return buffer_size + s - self._tcp_mss + return buffer_size - (s - self._tcp_mss) return buffer_size def _on_local_read(self):