mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-26 11:44:22 -04:00
Simplify code
This commit is contained in:
parent
213aa2ecf0
commit
083b1d4736
@ -93,8 +93,7 @@ func (handler *VMessInboundHandler) HandleConnection(connection *net.TCPConn) er
|
||||
}
|
||||
|
||||
// Optimize for small response packet
|
||||
buffer := alloc.NewLargeBuffer()
|
||||
buffer.Clear()
|
||||
buffer := alloc.NewLargeBuffer().Clear()
|
||||
buffer.Append(request.ResponseHeader)
|
||||
|
||||
if data, open := <-output; open {
|
||||
|
Loading…
x
Reference in New Issue
Block a user