perf: sync protocol and core hardening updates

This commit is contained in:
A 2026-07-11 19:48:26 +08:00
parent 152fed3b87
commit 4390ebf5a9
283 changed files with 29231 additions and 2295 deletions

View file

@ -57,7 +57,10 @@ func runIdleBackoffLoop(ctx context.Context, interval, maxIdleInterval time.Dura
case <-timer.C:
}
if dispatch(ctx) {
timer.Reset(backoff.ActiveDelay())
// 有积压时立即继续 drain;interval 只用于空闲轮询。旧逻辑每个非空
// batch 也固定等待 base,形成 batch/base 的人工吞吐上限。
_ = backoff.ActiveDelay()
timer.Reset(0)
continue
}
timer.Reset(backoff.IdleDelay())