mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-19 20:08:53 -04:00
Add log message when hard quota is reached in TCP accept
When isc_quota_attach_cb() API returns ISC_R_QUOTA (meaning hard quota
was reached) the accept_connection() would return without logging a
message about quota reached.
Change the connection callback to log the quota reached message.
(cherry picked from commit 2ae84702ad)
This commit is contained in:
parent
d7d0289dd6
commit
00e8bfcdfc
2 changed files with 2 additions and 2 deletions
|
|
@ -627,7 +627,7 @@ tcp_connection_cb(uv_stream_t *server, int status) {
|
|||
if (result == ISC_R_QUOTA) {
|
||||
isc__nm_incstats(ssock->mgr,
|
||||
ssock->statsindex[STATID_ACCEPTFAIL]);
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -596,7 +596,7 @@ tcpdns_connection_cb(uv_stream_t *server, int status) {
|
|||
if (result == ISC_R_QUOTA) {
|
||||
isc__nm_incstats(ssock->mgr,
|
||||
ssock->statsindex[STATID_ACCEPTFAIL]);
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue