rewrite alloc.buffer

This commit is contained in:
Darien Raymond committed 2016-12-06 11:03:42 +01:00
1 parent 4bf8288cc2
commit 8c8f0a53fd
51 files changed
+391 -299

No files matched your search

+1 -1
View File
@@ -236,7 +236,7 @@ func (v *VMessInboundHandler) HandleConnection(connection internet.Connection) {
}
output.Release()
if request.Option.Has(protocol.RequestOptionChunkStream) {
if err := v2writer.Write(alloc.NewLocalBuffer(32).Clear()); err != nil {
if err := v2writer.Write(alloc.NewLocalBuffer(32)); err != nil {
connection.SetReusable(false)
}
}