From 0e725e24bf64bc70a47c73ea8b63231498921a5b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 30 Mar 2019 10:07:41 +0000 Subject: [PATCH] [Minor] Allow delayed DNS servers init --- src/libserver/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/dns.c b/src/libserver/dns.c index 4fbf40728..016f63b25 100644 --- a/src/libserver/dns.c +++ b/src/libserver/dns.c @@ -308,7 +308,7 @@ rspamd_dns_resolv_conf_on_server (struct rdns_resolver *resolver, rspamd_inet_address_set_port (addr, port); test_fd = rspamd_inet_address_connect (addr, SOCK_DGRAM, TRUE); - if (test_fd == -1) { + if (test_fd == -1 && (errno != EINTR || errno != ECONNREFUSED || errno != ECONNRESET)) { msg_warn_config ("cannot open connection to nameserver at address %s: %s", name, strerror (errno)); rspamd_inet_address_free (addr); -- 2.39.5