commit 0e725e2: [Minor] Allow delayed DNS servers init

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Mar 30 10:14:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-03-30 10:07:41 +0000
URL: https://github.com/rspamd/rspamd/commit/0e725e24bf64bc70a47c73ea8b63231498921a5b

[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);


More information about the Commits mailing list