Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
09a0f2d0
Commit
09a0f2d0
authored
8 years ago
by
Andrea Shepard
Browse files
Options
Downloads
Patches
Plain Diff
Eliminate redundant hourly reset of descriptor download failures
parent
05853485
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/main.c
+0
-14
0 additions, 14 deletions
src/or/main.c
with
0 additions
and
14 deletions
src/or/main.c
+
0
−
14
View file @
09a0f2d0
...
...
@@ -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
),
...
...
@@ -1605,15 +1600,6 @@ launch_descriptor_fetches_callback(time_t now, const or_options_t *options)
return
GREEDY_DESCRIPTOR_RETRY_INTERVAL
;
}
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment