From b49f76cd1cb80efb41ecc72bc1075f6bbcdb19c2 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 13 Nov 2016 21:05:40 +0100 Subject: [PATCH] fix tcp reading --- proxy/shadowsocks/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/shadowsocks/protocol.go b/proxy/shadowsocks/protocol.go index c4d99f2e1..a54585ec3 100644 --- a/proxy/shadowsocks/protocol.go +++ b/proxy/shadowsocks/protocol.go @@ -29,7 +29,7 @@ func ReadTCPSession(user *protocol.User, reader io.Reader) (*protocol.RequestHea } account := rawAccount.(*ShadowsocksAccount) - buffer := alloc.NewLocalBuffer(256) + buffer := alloc.NewLocalBuffer(512) defer buffer.Release() ivLen := account.Cipher.IVSize()