From 8c1d997a9fdf85a35b37e183fcddd1349e20cad8 Mon Sep 17 00:00:00 2001 From: IrineSistiana <49315432+IrineSistiana@users.noreply.github.com> Date: Thu, 31 Dec 2020 23:33:25 +0800 Subject: [PATCH] fixed #25 --- dispatcher/utils/io_buffer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dispatcher/utils/io_buffer.go b/dispatcher/utils/io_buffer.go index 068846d72..d374a7b68 100644 --- a/dispatcher/utils/io_buffer.go +++ b/dispatcher/utils/io_buffer.go @@ -53,6 +53,7 @@ func getTCPWriteBuf() *bytes.Buffer { } func releaseTCPWriteBuf(buf *bytes.Buffer) { + buf.Reset() tcpWriteBufPool.Put(buf) }