]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow delayed DNS servers init
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Mar 2019 10:07:41 +0000 (10:07 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Mar 2019 10:07:41 +0000 (10:07 +0000)
src/libserver/dns.c

index 4fbf40728ecb0016e0ce31772fdb7bb2f36906cc..016f63b254212c87667644853b7ea72a8d2bbabb 100644 (file)
@@ -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);