mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +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:
@@ -628,7 +628,7 @@ tcp_connection_cb(uv_stream_t *server, int status) {
|
||||
&ssock->quotacb);
|
||||
if (result == ISC_R_QUOTA) {
|
||||
isc__nm_incstats(ssock, STATID_ACCEPTFAIL);
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -670,7 +670,7 @@ tlsdns_connection_cb(uv_stream_t *server, int status) {
|
||||
&ssock->quotacb);
|
||||
if (result == ISC_R_QUOTA) {
|
||||
isc__nm_incstats(ssock, STATID_ACCEPTFAIL);
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user