summaryrefslogtreecommitdiff
path: root/tor-dirmgr/src/err.rs
Commit message (Collapse)AuthorAgeFilesLines
* Major revision on DirMgr logic -- almost a complete rewrite.Nick Mathewson2021-04-131-0/+11
| | | | | | | | The big idea of this revision is to separate the code that knows about doing downloads from the code that decides what to download. Later, we can make a similar change for database access. With these changes together, we can make our code much more testable, and eventually enable more download types in parallel.
* Add support for a lockfile to control concurrent access to a dirmgr.Nick Mathewson2021-03-291-0/+3
|
* Add DirMgr::load_once.Nick Mathewson2021-03-291-0/+4
| | | | | This function loads a current bootstrapped directory from disk, if it can.
* Make CircMgr an optional element of DirMgr. Not yet used.Nick Mathewson2021-03-291-0/+3
|
* Make authorities and fallbacks configurable.Nick Mathewson2021-02-111-0/+3
| | | | | | | | | | This commit adds configuration options for these values, with the right defaults, and uses those options instead of built-in functions to set them. We also remove the function to extract information from chutney directories: now that arti is configurable, it can be chutney's job to make its own network configurations.
* Teach updater to download microdescriptors for usable directory.Nick Mathewson2020-12-071-0/+3
| | | | | | | | | | This follows a three-phase process: We are either fetching microdescriptors, waiting for the time to download the next consensus, or fetching the next consensus and making it usable. We can stop fetching microdescriptors for two reasons: by having no more mds that we need to download, or by running out of time in which the current consensus is usable.
* Document and de-warning the rest of tor-dirmgrNick Mathewson2020-11-231-1/+1
|
* Move storage and config logic from netdir to dirmgr.Nick Mathewson2020-11-201-0/+24