From af94ecc8b40a036707c317a3543d2afb578eea01 Mon Sep 17 00:00:00 2001 From: xenolf Date: Wed, 23 Mar 2016 23:55:15 +0100 Subject: [PATCH] Adjust cloudflare provider timeout values to better cope with spikes in propagation time. Fix #167 --- providers/dns/cloudflare/cloudflare.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/providers/dns/cloudflare/cloudflare.go b/providers/dns/cloudflare/cloudflare.go index d0067e22..894cf088 100644 --- a/providers/dns/cloudflare/cloudflare.go +++ b/providers/dns/cloudflare/cloudflare.go @@ -47,6 +47,12 @@ func NewDNSProviderCredentials(email, key string) (*DNSProvider, error) { }, nil } +// Timeout returns the timeout and interval to use when checking for DNS +// propagation. Adjusting here to cope with spikes in propagation times. +func (c *DNSProvider) Timeout() (timeout, interval time.Duration) { + return 120 * time.Second, 2 * time.Second +} + // Present creates a TXT record to fulfil the dns-01 challenge func (c *DNSProvider) Present(domain, token, keyAuth string) error { fqdn, value, _ := acme.DNS01Record(domain, keyAuth)