Fix typo, tune backoff more

This commit is contained in:
Matthew Holt 2023-12-06 13:11:57 -07:00
parent 2b4a688bf9
commit 707ebd9455
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
2 changed files with 10 additions and 4 deletions

View File

@ -176,11 +176,17 @@ var retryIntervals = []time.Duration{
20 * time.Minute, // elapsed: 2 hr 20 * time.Minute, // elapsed: 2 hr
30 * time.Minute, 30 * time.Minute,
30 * time.Minute, // elapsed: 3 hr 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, 1 * time.Hour, // elapsed: 8 hr
1 * time.Hour, // elapsed: 6 hr 2 * time.Hour,
2 * time.Hour, // elapsed: 12 hr
3 * time.Hour, 3 * time.Hour,
3 * time.Hour, // elapsed: 12 hr 3 * time.Hour, // elapsed: 18 hr
6 * time.Hour, // repeat for up to maxRetryDuration 6 * time.Hour, // repeat for up to maxRetryDuration
} }

View File

@ -927,6 +927,6 @@ type helloInfoCtxKey string
// a context.Context within a DecisionFunc. However, be advised that it is best practice // 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, // 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. // 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. // allow a certificate. Instead, the ClientHello can be useful for logging, etc.
const ClientHelloInfoCtxKey helloInfoCtxKey = "certmagic:ClientHelloInfo" const ClientHelloInfoCtxKey helloInfoCtxKey = "certmagic:ClientHelloInfo"