Skip to content

Commit 707ebd9

Browse files
committed
Fix typo, tune backoff more
1 parent 2b4a688 commit 707ebd9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

async.go

+9-3
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,17 @@ var retryIntervals = []time.Duration{
176176
20 * time.Minute, // elapsed: 2 hr
177177
30 * time.Minute,
178178
30 * time.Minute, // elapsed: 3 hr
179+
30 * time.Minute,
180+
30 * time.Minute, // elapsed: 4 hr
181+
30 * time.Minute,
182+
30 * time.Minute, // elapsed: 5 hr
183+
1 * time.Hour, // elapsed: 6 hr
179184
1 * time.Hour,
180-
1 * time.Hour,
181-
1 * time.Hour, // elapsed: 6 hr
185+
1 * time.Hour, // elapsed: 8 hr
186+
2 * time.Hour,
187+
2 * time.Hour, // elapsed: 12 hr
182188
3 * time.Hour,
183-
3 * time.Hour, // elapsed: 12 hr
189+
3 * time.Hour, // elapsed: 18 hr
184190
6 * time.Hour, // repeat for up to maxRetryDuration
185191
}
186192

handshake.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,6 @@ type helloInfoCtxKey string
927927
// a context.Context within a DecisionFunc. However, be advised that it is best practice
928928
// that the decision whether to obtain a certificate is be based solely on the name,
929929
// not other properties of the specific connection/client requesting the connection.
930-
// Fpr example, it is not adviseable to use a client's IP address to decide whether to
930+
// For example, it is not adviseable to use a client's IP address to decide whether to
931931
// allow a certificate. Instead, the ClientHello can be useful for logging, etc.
932932
const ClientHelloInfoCtxKey helloInfoCtxKey = "certmagic:ClientHelloInfo"

0 commit comments

Comments
 (0)