diff options
author | David Goulet <dgoulet@torproject.org> | 2019-05-23 09:40:07 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-05-23 09:40:07 -0400 |
commit | e13e2012b9d1bbde73bea22d9fd13fb0b88c04de (patch) | |
tree | 9dd66137f69b56f0390ca45045a758c70ba75e75 /src/feature/relay/dns.c | |
parent | 327bb0e2ca72dd57bd1ceb9c05dd90dfffcc92a5 (diff) | |
parent | 37aae23945c45c459091b38699130a14466d33ef (diff) | |
download | tor-e13e2012b9d1bbde73bea22d9fd13fb0b88c04de.tar.gz tor-e13e2012b9d1bbde73bea22d9fd13fb0b88c04de.zip |
Merge branch 'tor-github/pr/1034'
Diffstat (limited to 'src/feature/relay/dns.c')
-rw-r--r-- | src/feature/relay/dns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c index 664edf96a9..f68efc9096 100644 --- a/src/feature/relay/dns.c +++ b/src/feature/relay/dns.c @@ -2187,7 +2187,8 @@ dns_cache_handle_oom(time_t now, size_t min_remove_bytes) current_size -= bytes_removed; total_bytes_removed += bytes_removed; - time_inc += 3600; /* Increase time_inc by 1 hour. */ + /* Increase time_inc by a reasonable fraction. */ + time_inc += (MAX_DNS_TTL_AT_EXIT / 4); } while (total_bytes_removed < min_remove_bytes); return total_bytes_removed; |