2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Proper accounting of active TCP connections

This commit is contained in:
Witold Kręcicki
2020-02-28 11:57:51 +01:00
committed by Witold Krecicki
parent 71b05e3e0f
commit fc9e2276ca
4 changed files with 54 additions and 19 deletions

View File

@@ -369,7 +369,16 @@ struct isc_nmsocket {
*/
isc_quota_t *quota;
isc_quota_t *pquota;
bool overquota;
/*%
* How many connections we have not accepted due to quota?
* When we close a connection we need to accept a new one.
*/
int overquota;
/*%
* How many active connections we have?
*/
int conns;
/*%
* Socket statistics