summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | bridge descriptors tests: Fix flaky testIan Jackson2022-11-031-1/+11
| | |
| * | bridge descriptors tests: Test set_bridges more thoroughly (fix)Ian Jackson2022-11-031-1/+1
| | | | | | | | | | | | | | | | | | The RetryDelays are being triggered for the 2nd time here, so their timeouts can be longer. We must bump the sleep to make sure we don't have a flaky test.
| * | bridge descriptors: logging: Log addition and removal (fmt)Ian Jackson2022-11-031-12/+20
| | | | | | | | | | | | Worsify formatting as demanded by rustfmt.
| * | bridge descriptors: logging: Log addition and removalIan Jackson2022-11-031-8/+31
| | | | | | | | | | | | | | | This involves breaking the calls to `new_bridges.remove` into a helper that does the logging.
| * | bridge descriptors: logging: Log download start and outcomeIan Jackson2022-11-031-0/+6
| | |
| * | bridge descriptors tests: Test set_bridges more thoroughlyIan Jackson2022-11-031-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | Prior to the previous commit, set_bridges would malfunction if there were bridges which where (i) in current (ii) in queued or running (iii) in the new bridge set. This test failed then and passes now.
| * | bridge descriptors: Rewrite set_bridgesIan Jackson2022-11-031-18/+12
| | | | | | | | | | | | | | | | | | | | | | | | This was fundamentally confused and irregular. Now it is more regular: it does the same things to all the elements of Tracked, and a simple filtering on current. This fixes a bug, for which I'm about to add a test case.
| * | bridge descriptors tests: Add another couple of test casesIan Jackson2022-11-031-1/+31
| | |
| * | bridge descriptors tests: stream_drain_ready returns event countIan Jackson2022-11-031-1/+4
| | | | | | | | | | | | We'll use this in a moment.
| * | bridge descriptors tests: Break out bad_bridge helper functionIan Jackson2022-11-031-7/+7
| | |
| * | bridge descriptors: Change default max_refetchIan Jackson2022-11-032-2/+2
| | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/820#note_2850269
| * | bridge descriptors: Add clarification about bridge statesIan Jackson2022-11-031-0/+3
| | |
| * | bridge descriptors: Improve and fix docs for consider_launchingIan Jackson2022-11-031-1/+6
| | |
| * | bridge descriptors: Add comments where StateGuard is droppedIan Jackson2022-11-031-0/+8
| | |
| * | bridge descriptors: Document `changed` and `earliest_timeout` OptionsIan Jackson2022-11-031-0/+5
| | |
| * | bridge descriptors: Document updates argument to timeout_taskIan Jackson2022-11-031-0/+6
| | |
| * | Require derive_more 0.99.3Ian Jackson2022-11-0312-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | 0.99.[012] have a bug https://github.com/JelteF/derive_more/issues/114 which makes the Deref derive for bridgedesc::StateGuard not work and therefore breaks minimal-versions CI. It seems simpler to require the newer version everywhere.
| * | bridge descriptors: TestsIan Jackson2022-11-034-0/+273
| | |
| * | bridge descriptors: Provide a consistency check functionIan Jackson2022-11-031-0/+196
| | | | | | | | | | | | | | | This is really part of the tests, but I put it here so that it can be compiled-in if someone wants it during debugging.
| * | bridge descriptors: Provide an implementation of BridgeDescProviderIan Jackson2022-11-034-0/+1099
| | | | | | | | | | | | Tests will come in a moment.
| * | tor-dirclient: Response: Provide into_output_stringIan Jackson2022-11-031-0/+11
| | | | | | | | | | | | | | | This is the missing one of the full set. It turns out that I wanted this rather than the non-consuming output_string.
| * | Copy tor-netdoc/testdata/routerdesc1.txt into tor-dirmgrIan Jackson2022-11-031-0/+50
|/ / | | | | | | | | This seems better than having tor_netdoc export a `#[cfg(test)]` public constant.
* | Merge branch 'guards_as_bridges_part3' into 'main'Nick Mathewson2022-11-026-156/+559
|\ \ | | | | | | | | | | | | GuardMgr: decouple NetDir from guards and sample code. See merge request tpo/core/arti!815
| * | Refactor CandidateStatus API to simplify code in descs.Nick Mathewson2022-11-022-30/+35
| | | | | | | | | | | | This removes some duplication.
| * | GuardMgr: Fix and improve comments based on review.Nick Mathewson2022-11-023-6/+13
| | |
| * | guardmgr: fix rustdoc references.Nick Mathewson2022-11-022-3/+3
| | |
| * | guardmgr: Refactor candidate info; add `full_dir_info`Nick Mathewson2022-11-024-30/+72
| | | | | | | | | | | | | | | | | | | | | Previously we always set `dir_info_missing` to `false` for new guards, since new guards could only be taken from ones that were present in the NetDir. But for bridges, we don't download their info until _after_ we have chosen them as guards.
| * | guardmgr: Implement Universe for bridges.Nick Mathewson2022-11-023-2/+161
| | | | | | | | | | | | | | | Now we can use a group of bridges as the basis for a sample of guards.
| * | guardmgr: Universe API should look up by ChanTargetNick Mathewson2022-11-023-14/+13
| | | | | | | | | | | | This will be necessary for bridges.
| * | guardmgr: take sampled guards from Universe.Nick Mathewson2022-11-023-83/+140
| | | | | | | | | | | | This is a trickier case, since we have to deal with weights.
| * | guardmgr: Continue porting porting code to use Universe.Nick Mathewson2022-11-022-12/+11
| | | | | | | | | | | | Two more simple cases that can use Universe instead of Netdir.
| * | guardmgr: Begin to decouple guards from NetDir.Nick Mathewson2022-11-023-38/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this and the upcoming commits I'll be changing how guards related to `NetDir` and to `Relay`. Previously, a guard could only come from (or be updated from) a `Relay` in a `NetDir`. Soon it will be able to be built from a bridge as well. To do this, I'm defining a `Universe` trait (name negotiable) that represents a set of things that may be guards. I'm going to continue extending its functionality until there are no more methods in guard.rs or sample.rs that take `NetDir`. This commit removes most of the usage of `NetDir` and `Relay` in `guard.rs`.
| * | guardmgr: Rename microdescriptor_missing to dir_info_missingNick Mathewson2022-11-021-9/+9
| | |
| * | guardmgr: Allow guards to be constructed from any ChanTarget.Nick Mathewson2022-11-022-7/+16
| | |
| * | guardmgr: Include PtTarget in guards.Nick Mathewson2022-11-021-8/+50
| |/ | | | | | | | | Use a vector, since we may (someday) want to allow a Guard to have multiple PtTargets.
* | Merge branch 'notify' into 'main'Ian Jackson2022-11-011-123/+137
|\ \ | | | | | | | | | | | | | | | | | | refactor config reload triggering Closes #562 See merge request tpo/core/arti!819
| * | debounce reload cfg eventstrinity-1686a2022-11-011-0/+7
| | |
| * | rename unused fieldtrinity-1686a2022-10-301-3/+2
| | |
| * | update some stringstrinity-1686a2022-10-301-10/+10
| | |
| * | use iife so we can try! instead of custom error handlingtrinity-1686a2022-10-301-64/+56
| | |
| * | refactor so events always indicate reloadtrinity-1686a2022-10-301-71/+74
| | |
| * | depends less on notify typestrinity-1686a2022-10-301-22/+35
| |/
* | Merge branch 'remove-deps' into 'main'Ian Jackson2022-11-016-15/+1
|\ \ | |/ |/| | | | | remove unused dependancies See merge request tpo/core/arti!817
| * remove unused dependanciestrinity-1686a2022-10-296-15/+1
|/
* Merge branch 'upgrade_20221028' into 'main'Nick Mathewson2022-10-281-123/+209
|\ | | | | | | | | Upgrade and update dependencies See merge request tpo/core/arti!816
| * Upgrade dependencies in preparation for upcoming release(s)Nick Mathewson2022-10-281-123/+209
|/
* update to latest arti-corporaNick Mathewson2022-10-281-0/+0
|
* Merge branch 'guards_as_bridges_part2' into 'main'Nick Mathewson2022-10-276-142/+374
|\ | | | | | | | | Use ByRelayIds to hold guards in GuardSet See merge request tpo/core/arti!808
| * guardmgr: Rename and clarify of non-persistent-state copy fnsNick Mathewson2022-10-273-32/+24
| | | | | | | | These will need a bigger overhaul: see #612 and #611.
| * Clarify fix_consistencyIan Jackson2022-10-271-2/+2
| |