| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add a missing backtick. | Nick Mathewson | 2025-07-09 | 1 | -1/+1 |
| | | |||||
| * | Typo fixes (automatic and hand-verified) | Nick Mathewson | 2025-07-09 | 1 | -1/+1 |
| | | | | | Made with https://crates.io/crates/typos-cli | ||||
| * | Temporarily suppress mismatched_lifetime_syntaxes. | Gabriela Moldovan | 2025-07-07 | 1 | -0/+1 |
| | | | | | See #2060. | ||||
| * | squash! Upgrade rand dependency to 0.9. | Nick Mathewson | 2025-03-18 | 1 | -1/+1 |
| | | | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()` | ||||
| * | tor-rtmock: allow-Decorate every use of MockSleepProvider | Ian Jackson | 2025-03-06 | 1 | -1/+5 |
| | | | | | | | | MockSleepProvider and MockSleepRuntime have been declared deprecated by the docs for some time. We're about to mark them `#[deprecated]`. This commit has been split out for clarity of review. | ||||
| * | tor-chanmgr: Update NetParamsExtract docs (fmt). | Gabriela Moldovan | 2025-01-15 | 1 | -1/+2 |
| | | |||||
| * | tor-chanmgr: Update NetParamsExtract docs. | Gabriela Moldovan | 2025-01-15 | 1 | -4/+1 |
| | | | | | | This also removes the TODO that was addressed by adding the kist params to this type. | ||||
| * | tor-chanmgr: Move KIST and padding params to ChannelParams. | Gabriela Moldovan | 2025-01-15 | 1 | -11/+22 |
| | | |||||
| * | tor-proto: Remove dependency on tor-netdir. | Gabriela Moldovan | 2025-01-15 | 1 | -5/+41 |
| | | | | | | | | | This moves the `NetParameters -> KistParams` conversion to `tor-chanmgr`. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2706#note_3147557 | ||||
| * | tor-chanmgr: Add a TODO about a possible renaming. | Gabriela Moldovan | 2025-01-15 | 1 | -0/+3 |
| | | |||||
| * | tor-changmgr: Update the KIST params whenever the consensus/config changes. | Gabriela Moldovan | 2025-01-15 | 1 | -8/+34 |
| | | | | | Closes #1730, #1728 | ||||
| * | tor-chanmgr: Add reparameterize_kist to AbstractChannel trait. | Gabriela Moldovan | 2025-01-15 | 4 | -0/+21 |
| | | | | | | Needed for the chanmgr to be able to update existing channels with new KIST settings read from the consensus. | ||||
| * | tor-rtcompat: Big invasive change adding StreamOps bound everywhere. | Gabriela Moldovan | 2025-01-15 | 1 | -1/+2 |
| | | | | | | | This is unfortunately necessary, because after the channel handshake, we need to give the channel reactor a `StreamOps` handle to the underlying stream. | ||||
| * | Merge branch 'mod-module-files' into 'main' | Nick Mathewson | 2025-01-07 | 1 | -0/+1 |
| |\ | | | | | | | | | clippy: deny `mod_module_files` See merge request tpo/core/arti!2689 | ||||
| | * | clippy: deny `mod_module_files` | Steven Engler | 2025-01-06 | 1 | -0/+1 |
| | | | | | | | | | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files | ||||
| * | | fix: fix typos | Dimitris Apostolou | 2025-01-06 | 1 | -1/+1 |
| |/ | |||||
| * | add_warnings, *: Allow clippy::needless_lifetimes | Nick Mathewson | 2024-12-03 | 1 | -0/+1 |
| | | | | | | | | | In 1.83, this warning triggers on many of our crates. We're thinking of fixing them all, but for now, we're going to disable the warning. This is part of #1765. | ||||
| * | tor-chanmgr: remove immediately awaited async block expression | Steven Engler | 2024-11-27 | 1 | -23/+15 |
| | | | | | This shouldn't be needed anymore now that we use a `Defer`. | ||||
| * | tor-chanmgr: use `Defer` in `AbstractChanMgr` to handle cancellations | Steven Engler | 2024-11-27 | 1 | -18/+23 |
| | | |||||
| * | tor-chanmgr: add `util::defer` module | Steven Engler | 2024-11-27 | 3 | -0/+79 |
| | | | | | | This contains the `Defer` type, which can be used to defer a closure until the `Defer` is dropped. | ||||
| * | tor-chanmgr: change `RequestCancelled` retry from `Never` to `Immediate` | Steven Engler | 2024-11-21 | 1 | -1/+1 |
| | | | | | | | | If the channel request was cancelled, we should be able to retry immediately. Additionally, the `kind()` of `RequestCancelled` is `TransientFailure`, and I don't think it make sense for a transient error to return a `retry_time()` of `Never`. | ||||
| * | tor-chanmgr: fix reconfigure bug when given `CheckAllOrNothing` | Steven Engler | 2024-11-12 | 1 | -2/+9 |
| | | | | | We shouldn't actually reconfigure anything if given `CheckAllOrNothing`. | ||||
| * | tor-chanmgr: remove panics in debug builds | Steven Engler | 2024-11-11 | 2 | -7/+1 |
| | | | | | | | These were supposed to fail loudly in debug builds by panicking, but panics are mostly useless for debugging in async applications that use a runtime which catches panics. So we'll just log the error instead. | ||||
| * | tor-chanmgr: rename `replace_pending_channel` to ↵ | Steven Engler | 2024-10-24 | 2 | -9/+10 |
| | | | | | `upgrade_pending_channel_to_open` | ||||
| * | tor-chanmgr: `remove_pending` now takes a `PendingChannelHandle` | Steven Engler | 2024-10-24 | 1 | -18/+8 |
| | | |||||
| * | tor-chanmgr: improve cleanup procedure of pending channels | Steven Engler | 2024-10-24 | 2 | -47/+92 |
| | | | | | | | | | | | An attempt to make sure that there are no code paths which forget to remove a pending channel from the channel map. This also adds error-level log messages and panics during debug builds if a `PendingChannelHandle` is dropped without properly passing it to `MgrState::remove_pending_channel` or `MgrState::replace_pending_channel`. | ||||
| * | Revert "tor-chanmgr: `PendingChannelHandle` removes the channel when dropped" | Steven Engler | 2024-10-21 | 2 | -56/+34 |
| | | | | | | | | | This reverts commit f85bc3cf849109aaa2c4da9fc8c06e7173a0543f. There were some small conflcits in `AbstractChanMgr::get_or_launch_internal`, so this wasn't a clean revert. | ||||
| * | Merge branch 'chanmgr-select-docs' into 'main' | David Goulet | 2024-10-17 | 1 | -0/+25 |
| |\ | | | | | | | | | tor-chanmgr: update comments about selecting pending channels See merge request tpo/core/arti!2544 | ||||
| | * | tor-chanmgr: update comments about selecting pending channels | Steven Engler | 2024-10-16 | 1 | -0/+25 |
| | | | |||||
| * | | tor-chanmgr: remove `handle_build_outcome` | Steven Engler | 2024-10-15 | 1 | -28/+19 |
| | | | |||||
| * | | tor-chanmgr: `PendingChannelHandle` removes the channel when dropped | Steven Engler | 2024-10-15 | 2 | -27/+56 |
| | | | |||||
| * | | tor-chanmgr: added `PendingChannelHandle` | Steven Engler | 2024-10-15 | 2 | -36/+64 |
| | | | | | | | | | | | This handle contains all of the details required to remove or replace a pending channel entry from the channel map. | ||||
| * | | tor-chanmgr: refactor so we don't need `with_channels{,_and_params}` | Steven Engler | 2024-10-15 | 2 | -78/+76 |
| | | | | | | | | | | | | | These methods on `MgrState` acquire a lock, and it's easy for calling code to also try to acquire the same lock within the closure, causing a deadlock. It's better to not expose these methods. | ||||
| * | | tor-chanmgr: fix some incorrect comments | Steven Engler | 2024-10-15 | 2 | -5/+3 |
| | | | |||||
| * | | tor-chanmgr: removed use of `with_channels` within `request_channel` | Steven Engler | 2024-10-15 | 1 | -61/+66 |
| | | | | | | | | | Best reviewed with the '-w' flag to hide whitespace changes. | ||||
| * | | tor-chanmgr: refactored `AbstractChanMgr::choose_action` | Steven Engler | 2024-10-15 | 2 | -109/+145 |
| |/ | | | | | | | | This moves most of the channel map logic from `AbstractChanMgr::choose_action` to `MgrState::request_channel`. This is working towards being able to remove `MgrState::with_channels{,_and_params}`. | ||||
| * | memquota: Change ToplevelAccount to be an alias for Arc<MemoryQuotaTracker> | Ian Jackson | 2024-10-15 | 2 | -1/+3 |
| | | | | | Fixes a TODO. | ||||
| * | tor-chanmgr: fix `unused_imports` warning on `ChannelAccount` | Steven Engler | 2024-10-09 | 1 | -1/+3 |
| | | |||||
| * | tor-chanmgr: note API causes deadlocks under some conditions | Steven Engler | 2024-10-09 | 2 | -3/+16 |
| | | |||||
| * | tor-chanmgr: minor code cleanup | Steven Engler | 2024-10-09 | 1 | -5/+5 |
| | | |||||
| * | tor-chanmgr: remove unused code path | Steven Engler | 2024-10-09 | 1 | -11/+3 |
| | | |||||
| * | tor-proto: Make circuit->channel queues participate in memquota | Ian Jackson | 2024-10-03 | 1 | -1/+12 |
| | | | | | | | | | We use the *channel*'s memquota account. This is arguably wrong, but it's hard to get right now. See #1652. Change the type of the queue, and the places it's constructed. The use sites can all stay the same. | ||||
| * | tor-proto: Plumb the ChannelAccount through to queue creation site | Ian Jackson | 2024-10-03 | 4 | -10/+20 |
| | | | | | | This gets it as far as the outbound circuit->channel mpsc queue creation. Also, we provide an accessor for it. | ||||
| * | tor-proto: Plumb the ChannelAccount through to queue creation site (pre-fmt) | Ian Jackson | 2024-10-03 | 1 | -1/+3 |
| | | |||||
| * | tor-chanmgr: Make a memquota::ChannelAcocunt per channel | Ian Jackson | 2024-10-03 | 5 | -6/+20 |
| | | | | | | This delivers a fresh account per channel to the places where channels are actually made, but doesn't pass them to tor-proto yet. | ||||
| * | tor-chanmgr: Make a memquota::ChannelAcocunt per channel (pre-fmt) | Ian Jackson | 2024-10-03 | 1 | -1/+4 |
| | | |||||
| * | memquota: Add a toplevel account in tor-chanmgr | Ian Jackson | 2024-10-03 | 3 | -1/+17 |
| | | | | | | | | | | Plumb through a top-level account. This doesn't have any channel-specific, circuit-specific or stream-specific accounts yet. tor-circmgr's and tor-hsclient's *tests* need fake account. In arti-relay, use a dummy account for now. | ||||
| * | memquota: Add a toplevel account in tor-chanmgr (pre-fmt) | Ian Jackson | 2024-10-03 | 1 | -1/+2 |
| | | |||||
| * | tor-chanmgr: Provide a variant for memquota errors | Ian Jackson | 2024-10-03 | 1 | -0/+8 |
| | | |||||
| * | tor-chanmgr: minor doc improvements | Steven Engler | 2024-10-01 | 1 | -3/+3 |
| | | |||||
