Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Benjamin J. Thompson
Tor
Commits
d14127eb
Commit
d14127eb
authored
10 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Use the DL_SCHED_CONSENSUS schedule for consensuses.
Fixes bug 11679; bugfix on 0.2.2.6-alpha
parent
bb175dac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug11679
+3
-0
3 additions, 0 deletions
changes/bug11679
src/or/networkstatus.c
+8
-1
8 additions, 1 deletion
src/or/networkstatus.c
with
11 additions
and
1 deletion
changes/bug11679
0 → 100644
+
3
−
0
View file @
d14127eb
o Minor bugfixes (client):
- Use the consensus schedule for downloading consensuses, and not the
generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
This diff is collapsed.
Click to expand it.
src/or/networkstatus.c
+
8
−
1
View file @
d14127eb
...
...
@@ -83,7 +83,11 @@ static consensus_waiting_for_certs_t
* before the current consensus becomes invalid. */
static
time_t
time_to_download_next_consensus
[
N_CONSENSUS_FLAVORS
];
/** Download status for the current consensus networkstatus. */
static
download_status_t
consensus_dl_status
[
N_CONSENSUS_FLAVORS
];
static
download_status_t
consensus_dl_status
[
N_CONSENSUS_FLAVORS
]
=
{
{
0
,
0
,
DL_SCHED_CONSENSUS
},
{
0
,
0
,
DL_SCHED_CONSENSUS
},
};
/** True iff we have logged a warning about this OR's version being older than
* listed by the authorities. */
...
...
@@ -754,6 +758,9 @@ update_consensus_networkstatus_downloads(time_t now)
resource
=
networkstatus_get_flavor_name
(
i
);
/* Let's make sure we remembered to update consensus_dl_status */
tor_assert
(
consensus_dl_status
[
i
].
schedule
==
DL_SCHED_CONSENSUS
);
if
(
!
download_status_is_ready
(
&
consensus_dl_status
[
i
],
now
,
options
->
TestingConsensusMaxDownloadTries
))
continue
;
/* We failed downloading a consensus too recently. */
...
...
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