summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Try adding "test --all" and "fmt" and "clippy".Nick Mathewson2020-12-071-4/+10
| | |
* | | Mark some XXXX issues as XXXX-A1.Nick Mathewson2020-12-0716-41/+40
|/ /
* | Fix grammar in a log messageNick Mathewson2020-12-071-1/+1
| |
* | Add a missing documentation comment.Nick Mathewson2020-12-071-0/+1
| |
* | Add a few log messages about download timing.Nick Mathewson2020-12-072-2/+12
| |
* | Merge remote-tracking branch 'origin/mr/2' into mainNick Mathewson2020-12-071-1/+1
|\ \
| * | Fix typo in pick_path().Alexander Færøy2020-12-051-1/+1
| | | | | | | | | | | | | | | | | | This patch fixes a minor typo in the error case when looking for a middle relay for a 3-hop circuit where the error message should say "No middle relay found" and not "No exit relay found".
* | | Merge branch 'mr_4_squashed' into mainNick Mathewson2020-12-071-4/+6
|\ \ \
| * | | Let's try explicit target?Alexander Færøy2020-12-071-2/+2
| | | |
| * | | No need to install Husky hooks on CI.Alexander Færøy2020-12-071-0/+4
| | | |
| * | | No need to install libsqlite3-dev on CI servers.Alexander Færøy2020-12-061-2/+0
| | | |
* | | | Teach updater to download microdescriptors for usable directory.Nick Mathewson2020-12-073-43/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Reuse microdescriptors from previous consensusNick Mathewson2020-12-062-11/+20
| | | | | | | | | | | | | | | | | | | | Previously, we'd re-parse them from the database every time we got a new consensus.
* | | | Refactor NetDir a little for space savings and updatingNick Mathewson2020-12-061-19/+96
|/ / / | | | | | | | | | | | | | | | | | | Rather than having the NetDir own its microdescs and consensus, give it Arc<>s for them. This way, we can do a shallow copy of a NetDir to work around mutability issues that would otherwise make it hard to add microdescs to a netdir on the fly.
* | | Also install libsqlite3-dev.Alexander Færøy2020-12-061-0/+2
| | |
* | | Add Gitlab CI support.Alexander Færøy2020-12-061-0/+17
|/ /
* | Enforce that the periods in a consensus lifetime are nonempty.Nick Mathewson2020-12-043-7/+17
| | | | | | | | | | To be valid, a lifetime must have valid_after < fresh_until < valid_until.
* | Update a few comments.Nick Mathewson2020-12-041-3/+16
| |
* | Dirmgr: Add a feature to keep the directory up-to-date.Nick Mathewson2020-12-043-30/+235
| | | | | | | | | | This required me to move the sqlite connection from a rwlock into mutex, since it isn't actually Sync.
* | authcert: move location into UncheckedAuthCert.Nick Mathewson2020-12-041-22/+39
| | | | | | | | This lets us make AuthCert Send and Sync.
* | tor-dirclient: tweak so that its future is Send.Nick Mathewson2020-12-041-2/+2
| |
* | Fix a copy-paste bug in netstatus::LifetimeNick Mathewson2020-12-041-1/+1
| |
* | rtcompat: add a function to sleep until a given wallclock timeNick Mathewson2020-12-041-1/+36
| | | | | | | | | | (We can't just subtract and sleep, since we should be at least somewhat concerned about clock jumps.)
* | Upgrade async-ioNick Mathewson2020-12-031-1/+1
| |
* | TODONick Mathewson2020-12-031-10/+11
| |
* | A few more tests for role-based weightingNick Mathewson2020-12-021-0/+36
| |
* | Use bwweightscale to avoid miscalculating weights for v2dir relaysNick Mathewson2020-12-021-16/+32
| |
* | More tests for weight.rs; find a bug.Nick Mathewson2020-12-021-1/+44
| |
* | Add a few easy tests in weights.rsNick Mathewson2020-12-022-3/+56
| |
* | a little more refactoring for testabilityNick Mathewson2020-12-021-7/+13
| |
* | Clarify DFLT_WEIGHT in weights.rsNick Mathewson2020-12-021-1/+4
| |
* | Resolve a couple of TODOs in weight.rsNick Mathewson2020-12-021-3/+4
| | | | | | | | (Thanks to Mike Perry for answers here.)
* | weights: refactor a couple of functions to be more testable.Nick Mathewson2020-12-021-5/+14
| |
* | Use a slightly prettier syntax in max_weightNick Mathewson2020-12-021-1/+2
| |
* | Run cargo fix --edition-idiomsNick Mathewson2020-12-029-15/+15
| |
* | Fix a few comments in weight.rsNick Mathewson2020-12-021-12/+17
| |
* | Use a better calculation for deciding if we have enough paths.Nick Mathewson2020-12-022-12/+62
| |
* | Implement correct (?) weighting for path selection.Nick Mathewson2020-12-025-88/+401
| |
* | Fix a couple of clippy warnings in tor-dirclient.Nick Mathewson2020-12-022-2/+3
| |
* | Abandon directory circuits on most kinds of directory failure.Nick Mathewson2020-12-023-24/+178
|/ | | | | (There are more cases that this _doesn't_ handle, but it's a start for now.)
* When retiring circuits, do it by ID, not by reference.Nick Mathewson2020-12-011-8/+8
|
* Bump to latest async-ioNick Mathewson2020-12-011-1/+1
|
* Expose UniqId types for channels and circuitsNick Mathewson2020-12-014-14/+30
|
* Rename LogId -> UniqId.Nick Mathewson2020-12-017-106/+125
|
* Derive more types for circuit and channel LogIdsNick Mathewson2020-12-012-2/+2
|
* Enforce uniqueness on circuit and channel logidsNick Mathewson2020-12-011-3/+9
|
* tor-dirmgr: retry up to 3 times on download failure.Nick Mathewson2020-12-012-4/+118
|
* tor-dirclient: add timeoutsNick Mathewson2020-12-015-9/+42
| | | | | | | | This adds two timeouts in total: one for sending begin, and getting headers, and one for getting the rest of the data. These timeouts are way too long right now, but at least the code is there.
* Make mmap usage optional.Nick Mathewson2020-12-012-10/+15
|
* tor-dirmgr: tests for storage.rsNick Mathewson2020-12-011-0/+38
|