From: Ondřej Surý Date: Wed, 16 Aug 2023 14:55:02 +0000 (+0200) Subject: Limit the memory pool for the uvreqs X-Git-Tag: v9.19.17~43^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c9cf8fabb9fd07dffa189d55487d4dbee49dde9;p=thirdparty%2Fbind9.git Limit the memory pool for the uvreqs Set the number of maximum free items for the uvreq memory pool to 64. --- diff --git a/lib/isc/netmgr/netmgr.c b/lib/isc/netmgr/netmgr.c index d4f2c2c7222..a6968f40a74 100644 --- a/lib/isc/netmgr/netmgr.c +++ b/lib/isc/netmgr/netmgr.c @@ -239,6 +239,7 @@ isc_netmgr_create(isc_mem_t *mctx, isc_loopmgr_t *loopmgr, isc_nm_t **netmgrp) { isc_mempool_create(worker->mctx, sizeof(isc__nm_uvreq_t), &worker->uvreq_pool); + isc_mempool_setfreemax(worker->uvreq_pool, ISC_NM_UVREQS_MAX); isc_loop_attach(loop, &worker->loop); isc_loop_teardown(loop, networker_teardown, worker);