From 2081e25f93e081a9010cc6b542ba4a40b46f7f34 Mon Sep 17 00:00:00 2001 From: M09Ic Date: Mon, 9 Jan 2023 22:23:34 +0800 Subject: [PATCH] =?UTF-8?q?bl=E4=B8=AD=E7=9A=84exceed=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=80=82=E9=85=8Dread-all?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pool.go b/internal/pool.go index eb78674..81ffbc0 100644 --- a/internal/pool.go +++ b/internal/pool.go @@ -323,10 +323,10 @@ func (pool *Pool) Invoke(v interface{}) { } } - if bl.BodyLength > ihttp.DefaultMaxBodySize { + if ihttp.DefaultMaxBodySize != 0 && bl.BodyLength > ihttp.DefaultMaxBodySize { bl.ExceedLength = true } - bl.Source = int(unit.source) + bl.Source = unit.source bl.ReqDepth = unit.depth bl.Spended = time.Since(start).Milliseconds() switch unit.source {