1342, [func] Log remote address with TCP dispatch failures.

This commit is contained in:
Mark Andrews
2002-07-29 01:03:24 +00:00
parent c8b06dc2f9
commit 3733c24efa
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -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.
+4 -2
View 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;