Tor 0.4.9.0-alpha-dev
Data Fields
overload_dns_stats_t Struct Reference

Data Fields

uint64_t stats_n_request
 
time_t next_assessment_time
 

Detailed Description

Overload DNS statistics. The information in this object is used to assess if, due to DNS errors, we should emit a general overload signal or not.

NOTE: This structure is not per DNS query type like the statistics below because of a libevent bug (https://github.com/libevent/libevent/issues/1219), on error, the type is not propagated up back to the user and so we need to keep our own stats for the overload signal.

Definition at line 231 of file rephist.c.

Field Documentation

◆ next_assessment_time

time_t next_assessment_time

When is the next assessment time of the general overload for DNS errors. Once this time is reached, all stats are reset and this time is set to the next assessment time.

Definition at line 240 of file rephist.c.

◆ stats_n_request

uint64_t stats_n_request

Total number of DNS request seen at an Exit. They might not all end successfully or might even be lost by tor. This counter is incremented right before the DNS request is initiated.

Definition at line 235 of file rephist.c.


The documentation for this struct was generated from the following file: