aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/dns.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-02-14 13:20:53 -0500
committerDavid Goulet <dgoulet@torproject.org>2022-02-14 13:20:53 -0500
commitea48ddc9552ecfc73d3b2186c05ee15cd7cc361d (patch)
tree8a1f3de161b8f9962e833a18c9a7e751230a0ed6 /src/feature/relay/dns.c
parent52d1c1fd311c9d552b32108a7e92ea2be76e090c (diff)
downloadtor-ea48ddc9552ecfc73d3b2186c05ee15cd7cc361d.tar.gz
tor-ea48ddc9552ecfc73d3b2186c05ee15cd7cc361d.zip
dns: Do not trigger overload general on DNS timeout
This was missed in #40527 when the DNS timeout overload general signal was removed. Closes #40564 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/dns.c')
-rw-r--r--src/feature/relay/dns.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c
index c6e0439338..180f2cbdd1 100644
--- a/src/feature/relay/dns.c
+++ b/src/feature/relay/dns.c
@@ -1539,16 +1539,6 @@ evdns_callback(int result, char type, int count, int ttl, void *addresses,
tor_addr_make_unspec(&addr);
- /* Note down any DNS errors to the statistics module */
- if (result == DNS_ERR_TIMEOUT) {
- /* libevent timed out while resolving a name. However, because libevent
- * handles retries and timeouts internally, this means that all attempts of
- * libevent timed out. If we wanted to get more granular information about
- * individual libevent attempts, we would have to implement our own DNS
- * timeout/retry logic */
- rep_hist_note_overload(OVERLOAD_GENERAL);
- }
-
/* Keep track of whether IPv6 is working */
if (type == DNS_IPv6_AAAA) {
if (result == DNS_ERR_TIMEOUT) {