mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- silence 'tcp connect: broken pipe' at low verbosity.
git-svn-id: file:///svn/unbound/trunk@2341 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
6976832ffe
commit
c9dbc9907a
2 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
15 November 2010: Wouter
|
||||||
|
- silence 'tcp connect: broken pipe' at low verbosity.
|
||||||
|
|
||||||
9 November 2010: Wouter
|
9 November 2010: Wouter
|
||||||
- unbound-anchor compiles with openssl 0.9.7.
|
- unbound-anchor compiles with openssl 0.9.7.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -895,6 +895,10 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
|
||||||
#ifdef ETIMEDOUT
|
#ifdef ETIMEDOUT
|
||||||
else if(error == ETIMEDOUT && verbosity < 2)
|
else if(error == ETIMEDOUT && verbosity < 2)
|
||||||
return 0; /* silence 'connection timed out' */
|
return 0; /* silence 'connection timed out' */
|
||||||
|
#endif
|
||||||
|
#ifdef EPIPE
|
||||||
|
else if(error == EPIPE && verbosity < 2)
|
||||||
|
return 0; /* silence 'broken pipe' */
|
||||||
#endif
|
#endif
|
||||||
else if(error != 0) {
|
else if(error != 0) {
|
||||||
log_err("tcp connect: %s", strerror(error));
|
log_err("tcp connect: %s", strerror(error));
|
||||||
|
|
@ -933,6 +937,10 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
|
||||||
#endif /* HAVE_WRITEV */
|
#endif /* HAVE_WRITEV */
|
||||||
if(r == -1) {
|
if(r == -1) {
|
||||||
#ifndef USE_WINSOCK
|
#ifndef USE_WINSOCK
|
||||||
|
#ifdef EPIPE
|
||||||
|
if(errno == EPIPE && verbosity < 2)
|
||||||
|
return 0; /* silence 'broken pipe' */
|
||||||
|
#endif
|
||||||
if(errno == EINTR || errno == EAGAIN)
|
if(errno == EINTR || errno == EAGAIN)
|
||||||
return 1;
|
return 1;
|
||||||
log_err("tcp writev: %s", strerror(errno));
|
log_err("tcp writev: %s", strerror(errno));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue