From 3aca3492ebf2185ce8592d49392b3d3fa273264b Mon Sep 17 00:00:00 2001 From: V2Ray Date: Thu, 8 Oct 2015 01:30:43 +0200 Subject: [PATCH] Increase buffer size in VMessIn --- proxy/vmess/vmessin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/vmess/vmessin.go b/proxy/vmess/vmessin.go index 697e07f8c..5564c66e9 100644 --- a/proxy/vmess/vmessin.go +++ b/proxy/vmess/vmessin.go @@ -96,7 +96,7 @@ func (handler *VMessInboundHandler) HandleConnection(connection net.Conn) error } // Optimize for small response packet - buffer := make([]byte, 0, 2*1024) + buffer := make([]byte, 0, 4*1024) buffer = append(buffer, request.ResponseHeader...) if data, open := <-output; open {