2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

don't log ISC_R_CANCEL as a 'fatal error'

This commit is contained in:
Andreas Gustafsson
2001-05-14 21:33:45 +00:00
parent 70fcb78509
commit 82df406152

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 <config.h> #include <config.h>
@@ -1263,10 +1263,13 @@ client_request(isc_task_t *task, isc_event_t *event) {
if (TCP_CLIENT(client)) { if (TCP_CLIENT(client)) {
ns_client_next(client, result); ns_client_next(client, result);
} else { } else {
if (result != ISC_R_CANCELED)
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_CLIENT, isc_log_write(ns_g_lctx, NS_LOGCATEGORY_CLIENT,
NS_LOGMODULE_CLIENT, ISC_LOG_ERROR, NS_LOGMODULE_CLIENT,
"UDP client handler shutting down " ISC_LOG_ERROR,
"due to fatal receive error: %s", "UDP client handler shutting "
"down due to fatal receive "
"error: %s",
isc_result_totext(result)); isc_result_totext(result));
isc_task_shutdown(client->task); isc_task_shutdown(client->task);
} }