silence host is down error, which the resolver operator cannot do anything

about.  Verbosity 2 shows it for debugging of course.



git-svn-id: file:///svn/unbound/trunk@1349 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-11-13 13:24:36 +00:00
parent e9d742c16d
commit d0eb5cad47
2 changed files with 5 additions and 0 deletions

View 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.

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