mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-22 01:06:30 -05:00
Increase buffer size in VMessIn
This commit is contained in:
parent
c9f6747bd2
commit
3aca3492eb
@ -96,7 +96,7 @@ func (handler *VMessInboundHandler) HandleConnection(connection net.Conn) error
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Optimize for small response packet
|
// Optimize for small response packet
|
||||||
buffer := make([]byte, 0, 2*1024)
|
buffer := make([]byte, 0, 4*1024)
|
||||||
buffer = append(buffer, request.ResponseHeader...)
|
buffer = append(buffer, request.ResponseHeader...)
|
||||||
|
|
||||||
if data, open := <-output; open {
|
if data, open := <-output; open {
|
||||||
|
Loading…
Reference in New Issue
Block a user