]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
silence host is down error, which the resolver operator cannot do anything
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 13 Nov 2008 13:24:36 +0000 (13:24 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 13 Nov 2008 13:24:36 +0000 (13:24 +0000)
about.  Verbosity 2 shows it for debugging of course.

git-svn-id: file:///svn/unbound/trunk@1349 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/netevent.c

index a9d4b8efcc654c416896bf73923cc4b841df277d..52ed1ef6f6e221f8b9788b283bc294f9390c5afe 100644 (file)
@@ -3,6 +3,7 @@
        - added configure check for ldns 1.4.0 (using its compat funcs).
        - neater comments in worker.h.
        - removed doc/plan and updated doc/TODO.
+       - silenced EHOSTDOWN (verbosity 2 or higher to see it).
 
 12 November 2008: Wouter
        - add unbound-control manpage to makedist replace list.
index 8fc9a576d7141a233ee5bb2894c9fb19e69ca4a5..390a00ec6dffc72991eabb7fc197229ee85631d2 100644 (file)
@@ -800,6 +800,10 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
 #ifdef EHOSTUNREACH
                 else if(error == EHOSTUNREACH && verbosity < 2)
                         return 0; /* silence 'no route to host' */
+#endif
+#ifdef EHOSTDOWN
+                else if(error == EHOSTDOWN && verbosity < 2)
+                        return 0; /* silence 'host is down' */
 #endif
                 else if(error != 0) {
                        log_err("tcp connect: %s", strerror(error));