2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +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,11 +1263,14 @@ 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 {
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_CLIENT, if (result != ISC_R_CANCELED)
NS_LOGMODULE_CLIENT, ISC_LOG_ERROR, isc_log_write(ns_g_lctx, NS_LOGCATEGORY_CLIENT,
"UDP client handler shutting down " NS_LOGMODULE_CLIENT,
"due to fatal receive error: %s", ISC_LOG_ERROR,
isc_result_totext(result)); "UDP client handler shutting "
"down due to fatal receive "
"error: %s",
isc_result_totext(result));
isc_task_shutdown(client->task); isc_task_shutdown(client->task);
} }
goto cleanup; goto cleanup;