From fe730d3ad969820da8848d3f4004e007ddab6034 Mon Sep 17 00:00:00 2001 From: Romain Date: Fri, 10 Oct 2025 12:10:05 +0200 Subject: [PATCH] Make the staple updates continuous --- pkg/tls/ocsp.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkg/tls/ocsp.go b/pkg/tls/ocsp.go index 1517458ae..2df703fb0 100644 --- a/pkg/tls/ocsp.go +++ b/pkg/tls/ocsp.go @@ -49,15 +49,17 @@ func (o *ocspStapler) Run(ctx context.Context) { ticker := time.NewTicker(time.Hour) defer ticker.Stop() - select { - case <-ctx.Done(): - return + for { + select { + case <-ctx.Done(): + return - case <-o.forceStapleUpdates: - o.updateStaples(ctx) + case <-o.forceStapleUpdates: + o.updateStaples(ctx) - case <-ticker.C: - o.updateStaples(ctx) + case <-ticker.C: + o.updateStaples(ctx) + } } }