From 82df406152f72b35e3fa3d0a83c1990cf3dc1669 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 14 May 2001 21:33:45 +0000 Subject: [PATCH] don't log ISC_R_CANCEL as a 'fatal error' --- bin/named/client.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/named/client.c b/bin/named/client.c index 211a3259ac..34eaf7ac79 100644 --- a/bin/named/client.c +++ b/bin/named/client.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: client.c,v 1.166 2001/05/14 21:12:32 gson Exp $ */ +/* $Id: client.c,v 1.167 2001/05/14 21:33:45 gson Exp $ */ #include @@ -1263,11 +1263,14 @@ client_request(isc_task_t *task, isc_event_t *event) { if (TCP_CLIENT(client)) { ns_client_next(client, result); } else { - isc_log_write(ns_g_lctx, NS_LOGCATEGORY_CLIENT, - NS_LOGMODULE_CLIENT, ISC_LOG_ERROR, - "UDP client handler shutting down " - "due to fatal receive error: %s", - isc_result_totext(result)); + if (result != ISC_R_CANCELED) + isc_log_write(ns_g_lctx, NS_LOGCATEGORY_CLIENT, + NS_LOGMODULE_CLIENT, + ISC_LOG_ERROR, + "UDP client handler shutting " + "down due to fatal receive " + "error: %s", + isc_result_totext(result)); isc_task_shutdown(client->task); } goto cleanup;