Browse Source

fix a mistake

dev
破娃酱 8 years ago
parent
commit
a3a8ed996c
  1. 2
      shadowsocks/tcprelay.py

2
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):

Loading…
Cancel
Save