]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1342, [func] Log remote address with TCP dispatch failures.
authorMark Andrews <marka@isc.org>
Mon, 29 Jul 2002 01:03:24 +0000 (01:03 +0000)
committerMark Andrews <marka@isc.org>
Mon, 29 Jul 2002 01:03:24 +0000 (01:03 +0000)
CHANGES
lib/dns/dispatch.c

diff --git a/CHANGES b/CHANGES
index 70dbf119daf807eca3faf222daeb5acf85046fb5..06303c7487984c26f2a3fd39c06aa1a4a5b06185 100644 (file)
--- 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.
index 3d2901997ee9304aa20d38fc067c164474427bd6..5e6bf9ba5aed637d956354ad9e1109c33fa190f6 100644 (file)
@@ -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 <config.h>
 
@@ -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;