mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
In cell_queues_check_size(), add DNS cache size to total memory allocation
This commit is contained in:
parent
7c052d4ac3
commit
a207511bb0
@ -2539,6 +2539,7 @@ cell_queues_check_size(void)
|
|||||||
geoip_client_cache_total_allocation();
|
geoip_client_cache_total_allocation();
|
||||||
alloc += geoip_client_cache_total;
|
alloc += geoip_client_cache_total;
|
||||||
const size_t dns_cache_total = dns_cache_total_allocation();
|
const size_t dns_cache_total = dns_cache_total_allocation();
|
||||||
|
alloc += dns_cache_total;
|
||||||
if (alloc >= get_options()->MaxMemInQueues_low_threshold) {
|
if (alloc >= get_options()->MaxMemInQueues_low_threshold) {
|
||||||
last_time_under_memory_pressure = approx_time();
|
last_time_under_memory_pressure = approx_time();
|
||||||
if (alloc >= get_options()->MaxMemInQueues) {
|
if (alloc >= get_options()->MaxMemInQueues) {
|
||||||
|
Loading…
Reference in New Issue
Block a user