mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix for #447: squelch connection refused tcp connection failures
from the log, unless verbosity is high.
This commit is contained in:
parent
0c07861404
commit
57d4c3a8a4
2 changed files with 18 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
19 March 2021: Wouter
|
||||
- Fix for #447: squelch connection refused tcp connection failures
|
||||
from the log, unless verbosity is high.
|
||||
|
||||
17 March 2021: Wouter
|
||||
- Fix #441: Minimal NSEC range not accepted for top level domains.
|
||||
|
||||
|
|
|
|||
|
|
@ -1633,6 +1633,10 @@ comm_point_tcp_handle_read(int fd, struct comm_point* c, int short_ok)
|
|||
if(errno == ECONNRESET && verbosity < 2)
|
||||
return 0; /* silence reset by peer */
|
||||
#endif
|
||||
#ifdef ECONNREFUSED
|
||||
if(errno == ECONNREFUSED && verbosity < 2)
|
||||
return 0; /* silence reset by peer */
|
||||
#endif
|
||||
#ifdef ENETUNREACH
|
||||
if(errno == ENETUNREACH && verbosity < 2)
|
||||
return 0; /* silence it */
|
||||
|
|
@ -1661,6 +1665,16 @@ comm_point_tcp_handle_read(int fd, struct comm_point* c, int short_ok)
|
|||
}
|
||||
#endif
|
||||
#else /* USE_WINSOCK */
|
||||
if(WSAGetLastError() == WSAECONNREFUSED && verbosity < 2)
|
||||
return 0;
|
||||
if(WSAGetLastError() == WSAEHOSTDOWN && verbosity < 2)
|
||||
return 0;
|
||||
if(WSAGetLastError() == WSAEHOSTUNREACH && verbosity < 2)
|
||||
return 0;
|
||||
if(WSAGetLastError() == WSAENETDOWN && verbosity < 2)
|
||||
return 0;
|
||||
if(WSAGetLastError() == WSAENETUNREACH && verbosity < 2)
|
||||
return 0;
|
||||
if(WSAGetLastError() == WSAECONNRESET)
|
||||
return 0;
|
||||
if(WSAGetLastError() == WSAEINPROGRESS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue