[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] In cell_queues_check_size(), add DNS cache size to total memory allocation
commit a207511bb0cc86b20a5ed682898a74660efdd5b2
Author: Neel Chauhan <neel@xxxxxxxxx>
Date: Wed Aug 8 20:52:57 2018 -0400
In cell_queues_check_size(), add DNS cache size to total memory allocation
---
src/core/or/relay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/core/or/relay.c b/src/core/or/relay.c
index 62a4bca84..2a6bedcb8 100644
--- a/src/core/or/relay.c
+++ b/src/core/or/relay.c
@@ -2539,6 +2539,7 @@ cell_queues_check_size(void)
geoip_client_cache_total_allocation();
alloc += geoip_client_cache_total;
const size_t dns_cache_total = dns_cache_total_allocation();
+ alloc += dns_cache_total;
if (alloc >= get_options()->MaxMemInQueues_low_threshold) {
last_time_under_memory_pressure = approx_time();
if (alloc >= get_options()->MaxMemInQueues) {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits