bl中的exceed显示适配read-all

This commit is contained in:
M09Ic 2023-01-09 22:23:34 +08:00
parent b019324383
commit 2081e25f93

View File

@ -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.ExceedLength = true
} }
bl.Source = int(unit.source) bl.Source = unit.source
bl.ReqDepth = unit.depth bl.ReqDepth = unit.depth
bl.Spended = time.Since(start).Milliseconds() bl.Spended = time.Since(start).Milliseconds()
switch unit.source { switch unit.source {