2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 07:35:26 +00: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.
This commit is contained in:
Ondřej Surý
2022-02-01 18:36:12 +01:00
parent 858e522b4e
commit 2ae84702ad
3 changed files with 3 additions and 3 deletions

View File

@@ -597,7 +597,7 @@ tcpdns_connection_cb(uv_stream_t *server, int status) {
&ssock->quotacb);
if (result == ISC_R_QUOTA) {
isc__nm_incstats(ssock, STATID_ACCEPTFAIL);
return;
goto done;
}
}