aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-07-18 15:33:29 +0000
committerAndrea Shepard <andrea@torproject.org>2016-08-10 03:34:54 +0000
commit09a0f2d0b241e0f2102eefa912fbd7bdc8efdc98 (patch)
treead71a81bc1f84f62aacbd48cab562bc6e1d7757e /src/or/main.c
parent05853485a4a57a3742ff1969640c4f9378091152 (diff)
downloadtor-09a0f2d0b241e0f2102eefa912fbd7bdc8efdc98.tar.gz
tor-09a0f2d0b241e0f2102eefa912fbd7bdc8efdc98.zip
Eliminate redundant hourly reset of descriptor download failures
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 76af910b3e..1455204210 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -169,9 +169,6 @@ static int can_complete_circuits = 0;
/** How often do we check for router descriptors that we should download
* when we have enough directory info? */
#define LAZY_DESCRIPTOR_RETRY_INTERVAL (60)
-/** How often do we 'forgive' undownloadable router descriptors and attempt
- * to download them again? */
-#define DESCRIPTOR_FAILURE_RESET_INTERVAL (60*60)
/** Decides our behavior when no logs are configured/before any
* logs have been configured. For 0, we log notice to stdout as normal.
@@ -1247,7 +1244,6 @@ static int periodic_events_initialized = 0;
CALLBACK(rotate_onion_key);
CALLBACK(check_ed_keys);
CALLBACK(launch_descriptor_fetches);
-CALLBACK(reset_descriptor_failures);
CALLBACK(rotate_x509_certificate);
CALLBACK(add_entropy);
CALLBACK(launch_reachability_tests);
@@ -1279,7 +1275,6 @@ static periodic_event_item_t periodic_events[] = {
CALLBACK(rotate_onion_key),
CALLBACK(check_ed_keys),
CALLBACK(launch_descriptor_fetches),
- CALLBACK(reset_descriptor_failures),
CALLBACK(rotate_x509_certificate),
CALLBACK(add_entropy),
CALLBACK(launch_reachability_tests),
@@ -1606,15 +1601,6 @@ launch_descriptor_fetches_callback(time_t now, const or_options_t *options)
}
static int
-reset_descriptor_failures_callback(time_t now, const or_options_t *options)
-{
- (void)now;
- (void)options;
- router_reset_descriptor_download_failures();
- return DESCRIPTOR_FAILURE_RESET_INTERVAL;
-}
-
-static int
rotate_x509_certificate_callback(time_t now, const or_options_t *options)
{
static int first = 1;