mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
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:
parent
e9d742c16d
commit
d0eb5cad47
2 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
- added configure check for ldns 1.4.0 (using its compat funcs).
|
- added configure check for ldns 1.4.0 (using its compat funcs).
|
||||||
- neater comments in worker.h.
|
- neater comments in worker.h.
|
||||||
- removed doc/plan and updated doc/TODO.
|
- removed doc/plan and updated doc/TODO.
|
||||||
|
- silenced EHOSTDOWN (verbosity 2 or higher to see it).
|
||||||
|
|
||||||
12 November 2008: Wouter
|
12 November 2008: Wouter
|
||||||
- add unbound-control manpage to makedist replace list.
|
- add unbound-control manpage to makedist replace list.
|
||||||
|
|
|
||||||
|
|
@ -800,6 +800,10 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
|
||||||
#ifdef EHOSTUNREACH
|
#ifdef EHOSTUNREACH
|
||||||
else if(error == EHOSTUNREACH && verbosity < 2)
|
else if(error == EHOSTUNREACH && verbosity < 2)
|
||||||
return 0; /* silence 'no route to host' */
|
return 0; /* silence 'no route to host' */
|
||||||
|
#endif
|
||||||
|
#ifdef EHOSTDOWN
|
||||||
|
else if(error == EHOSTDOWN && verbosity < 2)
|
||||||
|
return 0; /* silence 'host is down' */
|
||||||
#endif
|
#endif
|
||||||
else if(error != 0) {
|
else if(error != 0) {
|
||||||
log_err("tcp connect: %s", strerror(error));
|
log_err("tcp connect: %s", strerror(error));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue