1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 14:56:33 -04:00

Increase buffer size in VMessIn

This commit is contained in:
V2Ray 2015-10-08 01:30:43 +02:00
parent c9f6747bd2
commit 3aca3492eb

View File

@ -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 {