From: Mark Andrews Date: Mon, 29 Jul 2002 01:03:24 +0000 (+0000) Subject: 1342, [func] Log remote address with TCP dispatch failures. X-Git-Tag: v9.2.3rc1~104^2~447 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=3733c24efa7eaa65455153702c3fb71c9233eafb;p=thirdparty%2Fbind9.git 1342, [func] Log remote address with TCP dispatch failures. --- diff --git a/CHANGES b/CHANGES index 70dbf119daf..06303c74879 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1342, [func] Log remote address with TCP dispatch failures. + 1341. [func] Allow a rate limiter to be stalled. 1340. [bug] Delay and spread out the startup refresh load. diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index 3d2901997ee..5e6bf9ba5ae 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dispatch.c,v 1.108 2002/05/08 06:34:30 marka Exp $ */ +/* $Id: dispatch.c,v 1.109 2002/07/29 01:03:24 marka Exp $ */ #include @@ -718,6 +718,7 @@ tcp_recv(isc_task_t *task, isc_event_t *ev_in) { isc_boolean_t queue_response; dns_qid_t *qid; int level; + char buf[ISC_SOCKADDR_FORMATSIZE]; UNUSED(task); @@ -758,8 +759,9 @@ tcp_recv(isc_task_t *task, isc_event_t *ev_in) { default: level = ISC_LOG_ERROR; logit: + isc_sockaddr_format(&tcpmsg->address, buf, sizeof(buf)); dispatch_log(disp, level, "shutting down due to TCP " - "receive error: %s", + "receive error: %s: %s", buf, isc_result_totext(tcpmsg->result)); do_cancel(disp, NULL); break;