| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | | | | GuardMgr: Clarify intent with update_active_set. | Nick Mathewson | 2022-11-08 | 1 | -4/+5 | |
| | | | | | | | | | | | | | | | | | | | | | Also fix its behavior when using bridges. | |||||
| | * | | | | GuardMgr: Split `update_internal` into two functions. | Nick Mathewson | 2022-11-08 | 1 | -27/+50 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first part changes which guard set is active based on based on the parameters, which always come from a NetDir; the second changes the contents of the active guard set, based on a Universe. | |||||
| | * | | | | Refactor external guardmgr APIs: Stop taking NetDir arguments. | Nick Mathewson | 2022-11-08 | 7 | -84/+54 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These arguments were used only for legacy (testing) purposes; the tests now use `TestNetDirProvider`. This lets us simplify our internal logic for passing a `NetDir` to our samples, and prepare for having a `BridgeSet` to pass there instead. This is a breaking change to `guardmgr` and `circmgr`. | |||||
| | * | | | | Mock implementation of a NetDirProvider for testing. | Nick Mathewson | 2022-11-08 | 2 | -0/+61 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | I'm about to remove the old testing APIs from GurdMgr that took in a NetDir in each function: adding this will make that possible. | |||||
| | * | | | | Add an accessor for the latest BridgeDescList. | Nick Mathewson | 2022-11-08 | 1 | -0/+12 | |
| | | | | | | ||||||
| | * | | | | Implement GuardMgr::install_bridge_desc_provider | Nick Mathewson | 2022-11-08 | 1 | -6/+25 | |
| | | | | | | ||||||
| | * | | | | Require Send+Sync for BridgeDescProvider | Nick Mathewson | 2022-11-08 | 1 | -1/+1 | |
| | | |/ / | |/| | | | | | | | | | | We require these for NetDirProvider, so this shouldn't be a big reach. | |||||
| * | | | | Merge branch 'hilev_spelling' into 'main' | Nick Mathewson | 2022-11-07 | 5 | -8/+8 | |
| |\ \ \ \ | |/ / / |/| | | | | | | | | | | | Spelling fixes and normalizations on some high-level crates See merge request tpo/core/arti!835 | |||||
| | * | | | Spelling fixes and normalizations on some high-level crates | Nick Mathewson | 2022-11-07 | 5 | -8/+8 | |
| | | | | | ||||||
| * | | | | bridge desc: Make BridgeDescProvider DynClone | Ian Jackson | 2022-11-07 | 1 | -1/+3 | |
| |/ / / | | | | | | | | | | | | | This allows the use of Box<dyn BridgeDescProvider> in callers, since Box<dyn BridgeDescProvider> is now Clone. | |||||
| * / / | Fix typos | Dimitris Apostolou | 2022-11-06 | 6 | -9/+9 | |
| |/ / | ||||||
| * | | bridgedesc: Rename "text" from "output" | Ian Jackson | 2022-11-03 | 1 | -5/+5 | |
| | | | | | | | | | | | | | This was confusing, because it's the output of the donwload, but nowhere near the output of the whole process. And it's going to become even less so. | |||||
| * | | bridgedesc: Make process_document into a free function | Ian Jackson | 2022-11-03 | 1 | -53/+67 | |
| | | | | | | | | | It deserves this treatment, I think. | |||||
| * | | bridgedesc: Introduce Downloaded | Ian Jackson | 2022-11-03 | 1 | -13/+17 | |
| | | | | | | | | | | | This gives names to things and makes things clearer, and this will be even more true in a moemnt. | |||||
| * | | bridgedesc: download: Break out process_document | Ian Jackson | 2022-11-03 | 1 | -47/+54 | |
| | | | | | | | | | We're going to want to reuse this for handling cached stuff. | |||||
| * | | bridgedesc: Prepare Mockable trait for if-modified-since | Ian Jackson | 2022-11-03 | 2 | -6/+15 | |
| |/ | ||||||
| * | Merge branch 'warning' into 'main' | Nick Mathewson | 2022-11-03 | 1 | -1/+1 | |
| |\ | | | | | | | | | tor-guardmgr: use imported WeightThreshold in one place See merge request tpo/core/arti!825 | |||||
| | * | tor-guardmgr: use imported WeightThreshold in one place | Ian Jackson | 2022-11-03 | 1 | -1/+1 | |
| | | | | | | | | | | | Without this, an unused import warning is generated when building without features. | |||||
| * | | guardmgr config: Provide bridge information to new and reconfigure | Ian Jackson | 2022-11-03 | 3 | -3/+61 | |
| | | | ||||||
| * | | bridges config: Provide uninhabited placeholder | Ian Jackson | 2022-11-03 | 1 | -0/+14 | |
| | | | | | | | | | | | This will avoid having to make bridge-related trait features in GuardMgr conditional, which would be non-additive. | |||||
| * | | bridges config: Check that bridges aren't enabled with no bridges | Ian Jackson | 2022-11-03 | 1 | -1/+32 | |
| | | | | | | | | | This is the validation which is called for by the documentation. | |||||
| * | | guardmgr config: Introduce and require new GuardMgrConfig trait | Ian Jackson | 2022-11-03 | 8 | -27/+78 | |
| | | | | | | | | | | | It doesn't seem to me like it makes sense to provide the backward compatibility here. | |||||
| * | | define_accessor_trait: Allow specification of other items | Ian Jackson | 2022-11-03 | 1 | -1/+10 | |
| | | | ||||||
| * | | define_accessor_trait: Allow specification of supertraits | Ian Jackson | 2022-11-03 | 1 | -4/+8 | |
| | | | ||||||
| * | | guardmgr config: Pass fallback list from config by reference | Ian Jackson | 2022-11-03 | 3 | -12/+12 | |
| |/ | | | | | This does involve additional cloning. However, soon it will mean that we can pass the whole `TorClientConfig` by reference. | |||||
| * | Suppress two clippy::large_enum_variant warnings | Nick Mathewson | 2022-11-03 | 2 | -0/+2 | |
| | | | | | These are newly present on 1.65. We can address them later. | |||||
| * | Run add_warnings. | Nick Mathewson | 2022-11-03 | 38 | -0/+38 | |
| | | ||||||
| * | Merge branch 'edition-2021' into 'main' | eta | 2022-11-03 | 9 | -9/+9 | |
| |\ | | | | | | | | | set all crate edition to 2021 See merge request tpo/core/arti!822 | |||||
| | * | set all crate edition to 2021 | trinity-1686a | 2022-11-01 | 9 | -9/+9 | |
| | | | ||||||
| * | | bridge descriptors tests: Fix flaky test | Ian Jackson | 2022-11-03 | 1 | -1/+11 | |
| | | | ||||||
| * | | bridge descriptors tests: Test set_bridges more thoroughly (fix) | Ian Jackson | 2022-11-03 | 1 | -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 Jackson | 2022-11-03 | 1 | -12/+20 | |
| | | | | | | | | | Worsify formatting as demanded by rustfmt. | |||||
| * | | bridge descriptors: logging: Log addition and removal | Ian Jackson | 2022-11-03 | 1 | -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 outcome | Ian Jackson | 2022-11-03 | 1 | -0/+6 | |
| | | | ||||||
| * | | bridge descriptors tests: Test set_bridges more thoroughly | Ian Jackson | 2022-11-03 | 1 | -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_bridges | Ian Jackson | 2022-11-03 | 1 | -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 cases | Ian Jackson | 2022-11-03 | 1 | -1/+31 | |
| | | | ||||||
| * | | bridge descriptors tests: stream_drain_ready returns event count | Ian Jackson | 2022-11-03 | 1 | -1/+4 | |
| | | | | | | | | | We'll use this in a moment. | |||||
| * | | bridge descriptors tests: Break out bad_bridge helper function | Ian Jackson | 2022-11-03 | 1 | -7/+7 | |
| | | | ||||||
| * | | bridge descriptors: Change default max_refetch | Ian Jackson | 2022-11-03 | 2 | -2/+2 | |
| | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/820#note_2850269 | |||||
| * | | bridge descriptors: Add clarification about bridge states | Ian Jackson | 2022-11-03 | 1 | -0/+3 | |
| | | | ||||||
| * | | bridge descriptors: Improve and fix docs for consider_launching | Ian Jackson | 2022-11-03 | 1 | -1/+6 | |
| | | | ||||||
| * | | bridge descriptors: Add comments where StateGuard is dropped | Ian Jackson | 2022-11-03 | 1 | -0/+8 | |
| | | | ||||||
| * | | bridge descriptors: Document `changed` and `earliest_timeout` Options | Ian Jackson | 2022-11-03 | 1 | -0/+5 | |
| | | | ||||||
| * | | bridge descriptors: Document updates argument to timeout_task | Ian Jackson | 2022-11-03 | 1 | -0/+6 | |
| | | | ||||||
| * | | Require derive_more 0.99.3 | Ian Jackson | 2022-11-03 | 12 | -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: Tests | Ian Jackson | 2022-11-03 | 3 | -0/+270 | |
| | | | ||||||
| * | | bridge descriptors: Provide a consistency check function | Ian Jackson | 2022-11-03 | 1 | -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 BridgeDescProvider | Ian Jackson | 2022-11-03 | 3 | -0/+1098 | |
| | | | | | | | | | Tests will come in a moment. | |||||
| * | | tor-dirclient: Response: Provide into_output_string | Ian Jackson | 2022-11-03 | 1 | -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. | |||||
