mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
Ignore and don't log ISC_R_NOTCONNECTED from uv_accept()
When client disconnects before the connection can be accepted, the named would log a spurious log message: error: Accepting TCP connection failed: socket is not connected We now ignore the ISC_R_NOTCONNECTED result code and log only other errors
This commit is contained in:
@@ -517,9 +517,17 @@ error:
|
|||||||
if (sock->quota != NULL) {
|
if (sock->quota != NULL) {
|
||||||
isc_quota_detach(&sock->quota);
|
isc_quota_detach(&sock->quota);
|
||||||
}
|
}
|
||||||
isc_log_write(isc_lctx, ISC_LOGCATEGORY_GENERAL, ISC_LOGMODULE_NETMGR,
|
|
||||||
ISC_LOG_ERROR, "Accepting TCP connection failed: %s",
|
switch (result) {
|
||||||
isc_result_totext(result));
|
case ISC_R_NOTCONNECTED:
|
||||||
|
/* IGNORE: The client disconnected before we could accept */
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
isc_log_write(isc_lctx, ISC_LOGCATEGORY_GENERAL,
|
||||||
|
ISC_LOGMODULE_NETMGR, ISC_LOG_ERROR,
|
||||||
|
"Accepting TCP connection failed: %s",
|
||||||
|
isc_result_totext(result));
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Detach the socket properly to make sure uv_close() is called.
|
* Detach the socket properly to make sure uv_close() is called.
|
||||||
|
Reference in New Issue
Block a user