Quieter low verbosity logging.

git-svn-id: file:///svn/unbound/trunk@719 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-10-30 14:59:01 +00:00
parent 0eb3149af5
commit 2bb408e2aa
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
- fixup assertion failure that relied on compressed names to be
smaller than uncompressed names. A packet from comrite.com was seen
to be compressed to a larger size. Added it as unit test.
- quieter logging at low verbosity level for common tcp messages.
23 October 2007: Wouter
- fixup (grand-)parent problem for dnssec-lameness detection.
+4
View File
@@ -347,6 +347,8 @@ comm_point_tcp_handle_read(int fd, struct comm_point* c, int short_ok)
else if(r == -1) {
if(errno == EINTR || errno == EAGAIN)
return 1;
if(errno == ECONNRESET && verbosity < 2)
return 0; /* silence reset by peer */
log_err("read (in tcp s): %s", strerror(errno));
return 0;
}
@@ -411,6 +413,8 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
}
if(error == EINPROGRESS || error == EWOULDBLOCK)
return 1; /* try again later */
if(error == ECONNREFUSED && verbosity < 2)
return 0; /* silence 'connection refused' */
if(error != 0) {
log_err("tcp connect: %s", strerror(error));
return 0;