From b6ae76fedbf29d49c59b2e8b195fe98072929a6e Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Sat, 22 Aug 2026 16:56:00 +0900 Subject: [PATCH] knotmirror: cap backoff retries fix: Signed-off-by: Seongmin Lee --- knotmirror/resyncer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/knotmirror/resyncer.go b/knotmirror/resyncer.go index 4d64466f..966b04ad 100644 --- a/knotmirror/resyncer.go +++ b/knotmirror/resyncer.go @@ -411,6 +411,8 @@ func (r *Resyncer) handleResyncFailure(ctx context.Context, repoDid syntax.DID, } func backoff(retries int, max int) time.Duration { + // Cap retries to prevent bit shift overflow + retries = min(retries, 30) dur := min(1<