From 1e7e707024858b97cd0ceed4729b2c1cabb0262e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Sun, 9 Apr 2017 18:33:29 +0800 Subject: [PATCH] set MSS up to 1500 --- shadowsocks/obfsplugin/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/obfsplugin/auth.py b/shadowsocks/obfsplugin/auth.py index 74959ad..3b9b739 100755 --- a/shadowsocks/obfsplugin/auth.py +++ b/shadowsocks/obfsplugin/auth.py @@ -1212,7 +1212,7 @@ class auth_aes128_sha1(auth_base): def rnd_data_len(self, buf_size, full_buf_size): if full_buf_size >= self.server_info.buffer_size: return 0 - tcp_mss = self.server_info.tcp_mss if self.server_info.tcp_mss < 4096 else 4096 + tcp_mss = self.server_info.tcp_mss if self.server_info.tcp_mss < 1500 else 1500 rev_len = tcp_mss - buf_size - 9 if rev_len == 0: return 0