From 3733c24efa7eaa65455153702c3fb71c9233eafb Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 29 Jul 2002 01:03:24 +0000 Subject: [PATCH] 1342, [func] Log remote address with TCP dispatch failures. --- CHANGES | 2 ++ lib/dns/dispatch.c | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 70dbf119da..06303c7487 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 3d2901997e..5e6bf9ba5a 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;