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:
Ondřej Surý 2022-02-01 18:36:12 +01:00
parent d7d0289dd6
commit 00e8bfcdfc
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -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;
}
}