We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8dba84 commit 2e4dc96Copy full SHA for 2e4dc96
internal/verification/dns.go
@@ -179,9 +179,13 @@ func performDNSVerificationWithRetries(
179
attempt, config.MaxRetries, domain, retryDelay)
180
181
// Wait before retry with context cancellation support
182
+ timer := time.NewTimer(retryDelay)
183
select {
- case <-time.After(retryDelay):
184
+ case <-timer.C:
185
+ // Timer fired normally, continue with retry
186
case <-ctx.Done():
187
+ // Context cancelled, stop timer to prevent leak
188
+ timer.Stop()
189
return nil, &DNSVerificationError{
190
Domain: domain,
191
Token: expectedToken,
0 commit comments