summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | tor-circmgr: Have separate targets for the STUB and STUB+ pools (fmt).Gabriela Moldovan2024-04-291-3/+3
| | | |
| * | | tor-circmgr: Have separate targets for the STUB and STUB+ pools.Gabriela Moldovan2024-04-291-32/+46
| | | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2102#note_3024366
| * | | tor-circmgr: Add a TODO about launching HS circuits in parallel.Gabriela Moldovan2024-04-291-0/+1
| | | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2102#note_3024370
| * | | tor-circmgr: Expand on the ForLaunch docs.Nick Mathewson2024-04-291-1/+2
| | | |
| * | | tor-circmgr: Remove an addressed TODO.Gabriela Moldovan2024-04-291-13/+0
| | | |
| * | | tor-circmgr: Log the kinds of circuits we're about to launch (fmt).Gabriela Moldovan2024-04-291-4/+1
| | | |
| * | | tor-circmgr: Log the kinds of circuits we're about to launch.Gabriela Moldovan2024-04-292-3/+24
| | | |
| * | | tor-circmgr: Remove no-longer-needed dead code allows.Gabriela Moldovan2024-04-291-2/+0
| | | |
| * | | tor-circmgr: Make a fraction of preemptive HS circuits be STUB+.Gabriela Moldovan2024-04-292-11/+111
| | |/ | |/| | | | | | | Closes #1353
* | | Merge branch 'rpc-macro' into 'main'Ian Jackson2024-04-291-33/+86
|\ \ \ | |/ / |/| | | | | | | | | | | | | | tor-rpcbase: simplify invoker_ent invocation (and infer the fn type) Closes #1380 See merge request tpo/core/arti!2103
| * | tor-rpcbase: Add a missing `#[doc(hidden)]`Ian Jackson2024-04-291-0/+1
| | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2103#note_3024372 I overlooked this.
| * | tor-rpcbase: invoker_ent!: simplify argument parsingIan Jackson2024-04-251-12/+15
| | | | | | | | | | | | | | | | | | Previously, one of the macros was documented to accept `(function_expr)`, but in fact it would only accept an identifier. Now we *do* accept any expression.
| * | tor-rpcbase: invoker_ent!: abolish flags argumentIan Jackson2024-04-251-19/+9
| | | | | | | | | | | | | | | | | | | | | | | | IMO if we want flags again in the future, we should probably pick a syntax that doesn't involve such awkward patterns. Perhaps `$expr $( , $( $flag )* )?`. But I think we probably won't need that feature.
| * | tor-rpcbase: invoker_ent: Infer the correct fn type for castIan Jackson2024-04-251-7/+69
| | | | | | | | | | | | | | | This renders the Update flag redundant. Indeed, in this commit we mow ignore the flags.
| * | tor-rpcbase: invoker_ent!: remove buggy unuseable armIan Jackson2024-04-251-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This arm puts parens around its argument. But the other arm insists on $func:ident, and also would capture any reasonable input. This was probably something to do with the (func_expr) syntax. We don't need to *fix* this macrology, because in a moment the whole macro can be made to take $func:expr.
* | | Merge branch 'vanguard-config-fixes' into 'main'gabi-2502024-04-294-59/+99
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-guardmgr: Temporarily reintroduce VanguardConfig. Closes #1272 See merge request tpo/core/arti!2099
| * | | tor-guardmgr: Add a TODO about using the vanguard consensus params.Gabriela Moldovan2024-04-291-0/+3
| | | |
| * | | tor-guardmgr: Make the VanguardMgr tests pass again.Gabriela Moldovan2024-04-291-14/+29
| | | | | | | | | | | | | | | | | | | | The tests need to be updated now that the `VanguardMode` is read from the config rather than the consensus.
| * | | tor-guardmgr: Temporarily reintroduce VanguardConfig.Gabriela Moldovan2024-04-292-36/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As discussed on #tor-dev, I'm reintroducing `VanguardConfig` for now. The `VanguardConfig` specifies what mode (full/lite/disabled) the `VanguardMgr` should run in. We currently don't have a separate modes for HS clients and HS services. We shouldn't actually *need* a `VanguardConfig` at all, so this is just a (hopefully!) short- or medium-term fix until we sort out #1382 (which might involve making breaking changes to our `reconfigure()` APIs). Closes #1272
| * | | tor-guardmgr: Remove old TODO about making VanguardMode a VanguardParam.Gabriela Moldovan2024-04-291-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `VanguardParams` already contains the `vanguards_enabled` and `vanguards_hs_service` `VanguardMode` params. We still intend to abolish `VanguardConfig` in favour of deriving the `VanguardMode` from the consensus params (#1382), but this is not the right place for such a TODO.
| * | | tor-guardmgr: Remove unnecessary clippy allows.Gabriela Moldovan2024-04-293-6/+0
|/ / / | | | | | | | | | None of these should be unused anymore.
* | | Merge branch 'lgpl' into 'main'Nick Mathewson2024-04-297-0/+2522
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Add LGPL-3.0 file Closes #1375 See merge request tpo/core/arti!2094
| * | Ship GPL-3 alongside LGPL-3, as requiredIan Jackson2024-04-253-0/+2022
| | |
| * | Add note re LGPL to README.me License sectionIan Jackson2024-04-251-0/+5
| | |
| * | Copy LGPL-3 file into hashx and equix cratesIan Jackson2024-04-252-0/+330
| | | | | | | | | | | | | | | | | | | | | | | | This is the simplest way to get this included during "cargo publish", which is necessary. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2094#note_3021187
| * | Add LGPL-3.0 fileIan Jackson2024-04-251-0/+165
| |/ | | | | | | | | | | This is required by the LGPL. Fixes #1375.
* | Merge branch 'bomb' into 'main'Ian Jackson2024-04-256-76/+654
|\ \ | | | | | | | | | | | | | | | | | | tor_memtrack: Soup up DropBomb. make into its own module, and add more tests Closes #1381 See merge request tpo/core/arti!2100
| * | tor-memtrack: Fix typosgabi-2502024-04-251-2/+2
| | |
| * | tor_memtrack: Use DropBombCondition in bookkeeping.rsIan Jackson2024-04-241-5/+24
| | | | | | | | | | | | | | | | | | In addition to the in-module, switchable, tests, I have done an ad-hoc test, removing the bulk of the accounting from Participation::release_qty, it crashes in a test as expected.
| * | tor-memtrack: bookkeeping: Break out BOMB d-d conditionIan Jackson2024-04-241-1/+3
| | | | | | | | | | | | We're going to want this in other places.
| * | tor_memtrack: Use DropBombCondition in refcount.rsIan Jackson2024-04-242-12/+74
| | | | | | | | | | | | | | | | | | In addition to the in-module, switchable, tests, I have done an ad-hoc test, removing the Drop impl for Participation, and it crashes in a test as expected.
| * | tor-memtrack: New DropBombCondition typeIan Jackson2024-04-242-5/+191
| | | | | | | | | | | | This will be used by refcount and bookkeeping.
| * | tor-memtrack: Add test cases for drop_reentrancyIan Jackson2024-04-241-0/+39
| | |
| * | tor_memtrack: Soup up DropBomb and make into its own moduleIan Jackson2024-04-245-65/+335
| | | | | | | | | | | | | | | | | | | | | | | | And make it testable. In addition to the in-module tests, I have done an ad-hoc test, removing the .promise call from deferred_drop, and it does panic in the test cawe as desired.
* | | Merge branch 'b1373' into 'main'gabi-2502024-04-251-10/+42
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Circuit reactor: document some requirements and assumptions Closes #1373 See merge request tpo/core/arti!2089
| * | | Circuit reactor: document some requirements and assumptionsJim Newsome2024-04-251-10/+42
|/ / / | | | | | | | | | | | | | | | | | | | | | There are some tricky bits here that implicitly assume particular behavior in other bits for correctness. Document these requirements and assumptions. Fixes arti#1373
* | | Merge branch 'dead' into 'main'Ian Jackson2024-04-258-9/+9
|\ \ \ | |_|/ |/| | | | | | | | Fix dead code warnings with Rust beta See merge request tpo/core/arti!2098
| * | Mark tor_dirmgr::storage::Store::consensus_by_meta cfg(test)Ian Jackson2024-04-252-0/+2
| | | | | | | | | | | | This seems to be used only in tests, since at least 2022.
| * | Delete duplicate KeySpecifierComponentPrettyHelperIan Jackson2024-04-251-9/+0
| | | | | | | | | | | | This had somehow got duplicated; remove the one in derive.rs.
| * | Add temporary allows for some dead code warningsIan Jackson2024-04-254-0/+5
| | |
| * | Add a dead code allow in RPC codeIan Jackson2024-04-251-0/+1
| | |
| * | Suppress a spurious dead code lintIan Jackson2024-04-251-0/+1
|/ /
* | Merge branch 'hspool-loop' into 'main'Alexander Færøy2024-04-251-1/+1
|\ \ | |/ |/| | | | | tor-circmgr: Loop until we run out of circuits to launch. See merge request tpo/core/arti!2101
| * tor-circmgr: Loop until we run out of circuits to launch.Gabriela Moldovan2024-04-251-1/+1
|/ | | | | Previously this would only loop `n_to_launch - 1` times, so the pool was always 1 circuit short of the `n_to_launch` target.
* Merge branch 'misc-nightly-warnings' into 'main'Alexander Færøy2024-04-2311-19/+21
|\ | | | | | | | | | | | | Clean up various nightly clippy warnings Closes #1379 See merge request tpo/core/arti!2097
| * Use clone_from in CircMgr config updater.Nick Mathewson2024-04-221-1/+3
| | | | | | | | | | Clippy prefers this idiom as potentially more efficient. It's not critical-path, but let's let clippy have its way.
| * Fix recursive impl for arti_client::Error.Nick Mathewson2024-04-221-1/+1
| | | | | | | | This is an actual bug. Closes #1379.
| * dirmgr: Use contains_key in check.Nick Mathewson2024-04-221-1/+1
| |
| * Use uXX::MAX in place of std::uXX::MAXNick Mathewson2024-04-228-14/+14
| | | | | | | | | | | | The old code produced a warning from clippy nightly; we may as well update to use the new associated consts. (They've been there since Rust 1.4x.)
| * proto: Simplify a check-and-convert to use try_into+expectNick Mathewson2024-04-221-2/+2
| |