Browse Source

Increase buffer size in VMessIn

pull/40/head
V2Ray 9 years ago
parent
commit
3aca3492eb
  1. 2
      proxy/vmess/vmessin.go

2
proxy/vmess/vmessin.go

@ -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…
Cancel
Save