| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix some warnings about needless & from nightly clippy | Nick Mathewson | 2021-06-18 | 1 | -1/+1 |
| | | |||||
| * | Add noop_method_call warning. | Nick Mathewson | 2021-05-27 | 1 | -0/+1 |
| | | | | | | | This would have saved ahf and me a lot of confusion in debugging a situation where we were cloning a reference of a type that didn't implement Clone. | ||||
| * | Enable cargo_common_metadata warning. | Nick Mathewson | 2021-05-25 | 1 | -0/+1 |
| | | |||||
| * | Module docs for remaining crates | Nick Mathewson | 2021-05-25 | 1 | -1/+7 |
| | | |||||
| * | Add the "unreachable_pub" lint. | Nick Mathewson | 2021-05-18 | 1 | -0/+1 |
| | | | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are. | ||||
| * | Always capitalize as RouterDesc, Microdesc. | Nick Mathewson | 2021-05-18 | 1 | -4/+4 |
| | | |||||
| * | Consistency, renaming, and testing for dirmgrconfig | Nick Mathewson | 2021-05-14 | 1 | -1/+1 |
| | | |||||
| * | Rename NetDirConfig to DirMgrConfig. | Nick Mathewson | 2021-05-14 | 1 | -7/+7 |
| | | |||||
| * | Add builders for remaining config types in tor-dirmgr. | Nick Mathewson | 2021-05-14 | 1 | -1/+4 |
| | | |||||
| * | Fix some warnings from nightly clippy | Nick Mathewson | 2021-05-07 | 1 | -2/+2 |
| | | |||||
| * | Repair multiprocess collaborative directory download. | Nick Mathewson | 2021-05-03 | 1 | -1/+3 |
| | | |||||
| * | Add trait_duplication_in_bounds warning. | Nick Mathewson | 2021-05-03 | 1 | -0/+1 |
| | | |||||
| * | Add unseparated_literal_suffix lint, and fix it. | Nick Mathewson | 2021-05-03 | 1 | -0/+1 |
| | | |||||
| * | Add a few more clippy warnings | Nick Mathewson | 2021-05-03 | 1 | -0/+5 |
| | | |||||
| * | Add some more clippy warnings to our list. | Nick Mathewson | 2021-04-27 | 1 | -1/+6 |
| | | |||||
| * | Enforce (and obey) clippy lints about exhaustive enums, structs. | Nick Mathewson | 2021-04-27 | 1 | -0/+3 |
| | | | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change). | ||||
| * | Fix some broken rustdoc links. | Nick Mathewson | 2021-04-18 | 1 | -1/+1 |
| | | |||||
| * | Move timer functions into an extension trait. | Nick Mathewson | 2021-04-17 | 1 | -3/+2 |
| | | |||||
| * | Move around the public modules in tor_rtcompat. | Nick Mathewson | 2021-04-17 | 1 | -1/+1 |
| | | |||||
| * | Remove all non-runtime methods in tor_rtcompat. | Nick Mathewson | 2021-04-16 | 1 | -15/+30 |
| | | |||||
| * | Add a "Runtime" parameter to all the manager types. | Nick Mathewson | 2021-04-16 | 1 | -8/+9 |
| | | | | | | This is a big change, but it is a step towards our goal of removing tor_rtcompat:: calls directly. | ||||
| * | Move the "sleep()" function from task to timer. | Nick Mathewson | 2021-04-16 | 1 | -2/+2 |
| | | |||||
| * | Major revision on DirMgr logic -- almost a complete rewrite. | Nick Mathewson | 2021-04-13 | 1 | -887/+223 |
| | | | | | | | | | 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. | ||||
| * | Start moving responsibility for building requests into dirmgr | Nick Mathewson | 2021-04-09 | 1 | -1/+79 |
| | | | | | This will help with my planned "directory state" refactoring. | ||||
| * | DirMgr::netdir() is no longer async | Nick Mathewson | 2021-04-02 | 1 | -11/+8 |
| | | | | | | | | | Since we moved to a non-async mutex(*), we no longer need to worry that this function might need to suspend. (*) This is _not_ safe in general, but it's okay in this case, since we never suspend while holding that mutex: see shared_ref.rs. | ||||
| * | Turn the shared network directory reference into its own type | Nick Mathewson | 2021-04-02 | 1 | -27/+13 |
| | | | | | | | Doing this will make it easier to use it from other parts of the crate, and will make it more obvious that it's safe to use a regular (not async) rwlock here. | ||||
| * | Make ConsensusRequest take a flavor. | Nick Mathewson | 2021-04-01 | 1 | -1/+2 |
| | | |||||
| * | Add accessors for members of different directory requests | Nick Mathewson | 2021-04-01 | 1 | -3/+3 |
| | | | | | | | | | This will let us use these types both as client and server-side implementations. Making this change required me to change the download code to take requests by reference. (Sorry, David) | ||||
| * | DirMgr: add text() and texts() functions to ask for document text | Nick Mathewson | 2021-03-31 | 1 | -3/+80 |
| | | | | | | Also, start on a larger refactoring where we ask for documents by their ID. | ||||
| * | Refactor sqlite.rs to know about consensus flavors. | Nick Mathewson | 2021-03-31 | 1 | -4/+4 |
| | | | | | | These were stored in the database before, but they were hardwired in the API. | ||||
| * | Use Arc::make_mut() to simplify the code a bit | Nick Mathewson | 2021-03-30 | 1 | -7/+11 |
| | | | | | | Previously we used NetDir::extend here, which used try_unwrap. But it's much simpler to use the intended object for this purpose. | ||||
| * | Fix Rust-1.51 clippy warnings about acronyms in camel case. | Nick Mathewson | 2021-03-29 | 1 | -8/+8 |
| | | | | | This is painful, but we shouldn't have to do it again. | ||||
| * | DirMgr: cooperative multiprocess support. | Nick Mathewson | 2021-03-29 | 1 | -33/+99 |
| | | | | | | | | | | | | | | | A directory manager can now launch or run in read-only or read-write mode, depending on whether it manages to acquire a lock on the filesystem. In read-write mode, it bootstraps and stores data into the database as usual. In read-only mode, it assumes that another process will be updating the database, and so it only loads it periodically, looking for new information. However, it also tries to acquire the lock itself, so it can enter read-write mode. | ||||
| * | Create a DirMgr::load_or_bootstrap_from_config. | Nick Mathewson | 2021-03-29 | 1 | -0/+16 |
| | | |||||
| * | Add DirMgr::load_once. | Nick Mathewson | 2021-03-29 | 1 | -0/+25 |
| | | | | | | This function loads a current bootstrapped directory from disk, if it can. | ||||
| * | Use the CircMgr in the DirMgr for all our downloading needs. | Nick Mathewson | 2021-03-29 | 1 | -15/+18 |
| | | |||||
| * | Make CircMgr an optional element of DirMgr. Not yet used. | Nick Mathewson | 2021-03-29 | 1 | -3/+15 |
| | | |||||
| * | Avoid unwrap() in dirmgr | Nick Mathewson | 2021-03-04 | 1 | -2/+7 |
| | | |||||
| * | Make first-level directory retry logic configurable. | Nick Mathewson | 2021-02-17 | 1 | -16/+17 |
| | | |||||
| * | Make our initial bootstrap retry schedule configurarable | Nick Mathewson | 2021-02-17 | 1 | -5/+5 |
| | | |||||
| * | Add support to override network parameters in the configuration. | Nick Mathewson | 2021-02-16 | 1 | -1/+1 |
| | | |||||
| * | Make authorities and fallbacks configurable. | Nick Mathewson | 2021-02-11 | 1 | -1/+1 |
| | | | | | | | | | | | 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. | ||||
| * | Check declared post-digest on consensus diffs. | Nick Mathewson | 2021-01-25 | 1 | -5/+6 |
| | | |||||
| * | Don't give up easily on initial bootstrap attempts. | Nick Mathewson | 2021-01-25 | 1 | -7/+14 |
| | | |||||
| * | Resolve a few more XXX-A1 comments in dirmgr. | Nick Mathewson | 2021-01-25 | 1 | -18/+29 |
| | | |||||
| * | dirmgr: fix usage and meaning of `pending`. | Nick Mathewson | 2021-01-25 | 1 | -3/+3 |
| | | | | | | The documentation and implementation diverged; the documentation was correct. | ||||
| * | Detect consensuses that are signed by the wrong authorities. | Nick Mathewson | 2021-01-25 | 1 | -0/+32 |
| | | | | | | | | | | | | | With this patch we don't consider a consensus to be even potentially well-signed if the authorities that are listed as signing it don't contain enough authorities we believe in. Otherwise, we'd just try fetching certs for them and failing forever. (I found this by switching from a chutney network to the main network without cleaning out my cache.) Closes #44 | ||||
| * | dirmgr: Extra explanatory comments. | Nick Mathewson | 2021-01-25 | 1 | -3/+23 |
| | | | | | Also replace some "disk" with "cache" in log messages | ||||
| * | dirmgr: Handle another error in download_mds(). | George Kadianakis | 2020-12-23 | 1 | -8/+12 |
| | | | | | Co-authored-by: David Goulet <[email protected]> | ||||
| * | dirmgr: Handle some errors in download_mds(). | George Kadianakis | 2020-12-23 | 1 | -3/+8 |
| | | | | | Co-authored-by: David Goulet <[email protected]> | ||||
