1
0
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:
V2Ray 2015-10-10 16:50:19 +02:00
parent 213aa2ecf0
commit 083b1d4736

View File

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