diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-11-06 14:48:22 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-11-17 09:52:40 -0500 |
commit | 7fc64f02a3057405f9e75d70848afd2e9b95da05 (patch) | |
tree | 6f126115f02e8ffa0433c3e5cba5922e135fcfee /src/or/networkstatus.c | |
parent | 1d5e693b63bffe06cb69932176eb0ac4ea4decbd (diff) | |
download | tor-7fc64f02a3057405f9e75d70848afd2e9b95da05.tar.gz tor-7fc64f02a3057405f9e75d70848afd2e9b95da05.zip |
Introduce cache for outdated microdesc dirservers.
We gonna use this cache to avoid dirservers without outdated md info.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 997280de52..36e62020e3 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -2041,6 +2041,9 @@ networkstatus_set_current_consensus(const char *consensus, "CLOCK_SKEW MIN_SKEW=%ld SOURCE=CONSENSUS", delta); } + /* We got a new consesus. Reset our md fetch fail cache */ + microdesc_reset_outdated_dirservers_list(); + router_dir_info_changed(); result = 0; |