From 707ebd945588a33c5db0b48dd243d81019773b6a Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 6 Dec 2023 13:11:57 -0700 Subject: [PATCH] Fix typo, tune backoff more --- async.go | 12 +++++++++--- handshake.go | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/async.go b/async.go index 3d7e713..e61343c 100644 --- a/async.go +++ b/async.go @@ -176,11 +176,17 @@ var retryIntervals = []time.Duration{ 20 * time.Minute, // elapsed: 2 hr 30 * time.Minute, 30 * time.Minute, // elapsed: 3 hr + 30 * time.Minute, + 30 * time.Minute, // elapsed: 4 hr + 30 * time.Minute, + 30 * time.Minute, // elapsed: 5 hr + 1 * time.Hour, // elapsed: 6 hr 1 * time.Hour, - 1 * time.Hour, - 1 * time.Hour, // elapsed: 6 hr + 1 * time.Hour, // elapsed: 8 hr + 2 * time.Hour, + 2 * time.Hour, // elapsed: 12 hr 3 * time.Hour, - 3 * time.Hour, // elapsed: 12 hr + 3 * time.Hour, // elapsed: 18 hr 6 * time.Hour, // repeat for up to maxRetryDuration } diff --git a/handshake.go b/handshake.go index 07bbeed..9c923f6 100644 --- a/handshake.go +++ b/handshake.go @@ -927,6 +927,6 @@ type helloInfoCtxKey string // a context.Context within a DecisionFunc. However, be advised that it is best practice // that the decision whether to obtain a certificate is be based solely on the name, // not other properties of the specific connection/client requesting the connection. -// Fpr example, it is not adviseable to use a client's IP address to decide whether to +// For example, it is not adviseable to use a client's IP address to decide whether to // allow a certificate. Instead, the ClientHello can be useful for logging, etc. const ClientHelloInfoCtxKey helloInfoCtxKey = "certmagic:ClientHelloInfo"