From 1e259b5c6f41a929d3b676c6c51801dc8485e0a8 Mon Sep 17 00:00:00 2001 From: "arraykeys@gmail.com" Date: Fri, 14 Sep 2018 11:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96crashed=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/leakybuf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/leakybuf.go b/utils/leakybuf.go index 95fbf26..513c90e 100644 --- a/utils/leakybuf.go +++ b/utils/leakybuf.go @@ -6,7 +6,7 @@ type LeakyBuf struct { freeList chan []byte } -const LeakyBufSize = 1024 // data.len(2) + hmacsha1(10) + data(4096) +const LeakyBufSize = 2048 // data.len(2) + hmacsha1(10) + data(4096) const maxNBuf = 2048 var LeakyBuffer = NewLeakyBuf(maxNBuf, LeakyBufSize)