From c7d5c9de7fc031a348503c2abbfbff7d63de7c68 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 4d64466f7..966b04adc 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<