refactor buffer

This commit is contained in:
Darien Raymond committed 2016-12-09 12:08:25 +01:00
1 parent 7a80409e30
commit 055023fdd5
53 files changed
+220 -284

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ func (v *VMessInboundHandler) HandleConnection(connection internet.Connection) {
}
output.Release()
if request.Option.Has(protocol.RequestOptionChunkStream) {
if err := bodyWriter.Write(buf.NewLocalBuffer(8)); err != nil {
if err := bodyWriter.Write(buf.NewLocal(8)); err != nil {
connection.SetReusable(false)
}
}