From 862fa890ee77e617e5196b0c2a96545050e7095d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Wed, 5 Apr 2017 22:11:55 +0800 Subject: [PATCH] typo --- shadowsocks/tcprelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index ce9db08..a56ea1b 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -761,7 +761,7 @@ class TCPRelayHandler(object): def _get_read_size(self, sock, recv_buffer_size): if self._overhead == 0: - return buffer_size + return recv_buffer_size buffer_size = len(sock.recv(recv_buffer_size, socket.MSG_PEEK)) if buffer_size == recv_buffer_size: return buffer_size