| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | | | rpcserver: Wrap InvokeError as internal error | Nick Mathewson | 2024-10-17 | 3 | -9/+18 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm about to remove HasKind from InvokeError, which would otherwise break this code. These errors are all in fact internal errors, since in this context they can only stem from incorrectly formed calls to `invoke_special_method`. | |||||
| | * | | | Tweak some RpcErrorKind member names. | Nick Mathewson | 2024-10-17 | 1 | -4/+4 | |
| | | | | | | | | | | | | | | | | | In some cases, the tor_error::ErrorKind names were nicer. | |||||
| | * | | | rpc: Create a constructor for RpcError. | Nick Mathewson | 2024-10-17 | 1 | -0/+14 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We'll use this to make RpcErrors directly, without having to go through an error that implements HasKind. Later, we'll add the ability to set the `data` fields on an RpcError. | |||||
| | * | | | rpc: Allow the "RpcError.kinds" to be an RpcErrorKind. | Nick Mathewson | 2024-10-17 | 3 | -23/+33 | |
| | | | | | | | | | | | | | | | | | | | | | This change will let us start removing the not-entirely-logical `Rpc.*` variants from tor_error::ErrorKind. | |||||
| | * | | | rpc: Make RpcErrorKind public. | Nick Mathewson | 2024-10-17 | 2 | -2/+3 | |
| | | | | | ||||||
| | * | | | rpc: Rename RpcCode to RpcErrorKind. | Nick Mathewson | 2024-10-17 | 1 | -6/+13 | |
| | | | | | | | | | | | | | | | | | This is about to be a public competitor with tor_error::ErrorKind. | |||||
| | * | | | rpc: Use an alias for RpcCode. | Nick Mathewson | 2024-10-17 | 1 | -9/+10 | |
| | | | | | ||||||
| | * | | | rpc: Remove prefix from RpcCode members. | Nick Mathewson | 2024-10-17 | 1 | -20/+19 | |
| |/ / / | ||||||
| * | | | Merge branch 'single_match_warn_in_memqueue' into 'main' | Alexander Hansen Færøy | 2024-10-17 | 1 | -0/+1 | |
| |\ \ \ | |_|/ |/| | | | | | | | | memquota: suppress clippy::single_match warning. See merge request tpo/core/arti!2555 | |||||
| | * | | memquota: suppress clippy::single_match warning. | Nick Mathewson | 2024-10-17 | 1 | -0/+1 | |
| |/ / | | | | | | | | | "Suppress" rather than "fix": this pattern is intentional, and makes it clear that we're doing an exhaustive match. | |||||
| * | | Merge branch 'tor-key-forge-cleanup' into 'main' | gabi-250 | 2024-10-17 | 3 | -7/+12 | |
| |\ \ | | | | | | | | | | | | | tor-key-forge: Minor cleanups and reformatting See merge request tpo/core/arti!2552 | |||||
| | * | | tor-key-forge: Fix typo in documentation. | Gabriela Moldovan | 2024-10-17 | 1 | -2/+2 | |
| | | | | ||||||
| | * | | tor-key-forge: Replace fully-qualified path with import. | Gabriela Moldovan | 2024-10-17 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | `KeypairData` is already in scope, so there's no need to fully-qualify it. | |||||
| | * | | tor-key-forge: Reformat derives for readability. | Gabriela Moldovan | 2024-10-17 | 1 | -2/+4 | |
| | | | | ||||||
| | * | | tor-key-forge: Reformat a long line for readability. | Gabriela Moldovan | 2024-10-17 | 1 | -1/+4 | |
| | | | | ||||||
| * | | | Merge branch 'dead' into 'main' | Alexander Hansen Færøy | 2024-10-17 | 12 | -3/+41 | |
| |\ \ \ | | | | | | | | | | | | | | | | | Disable a lot of dead code warnings and add a default-runtime feature in arti See merge request tpo/core/arti!2551 | |||||
| | * | | | arti: Introduce a new default-runtime Cargo feature | Ian Jackson | 2024-10-17 | 2 | -2/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Now one can do a minimal build with cargo build -p arti --no-default-features --features=default-runtime rather than needing to specify tokio,native-tls. | |||||
| | * | | | Disable a lot of dead code warnings (fmt) | Ian Jackson | 2024-10-17 | 3 | -3/+12 | |
| | | | | | ||||||
| | * | | | Disable a lot of dead code warnings | Ian Jackson | 2024-10-17 | 10 | -1/+27 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now cargo check --workspace --no-default-features --all-targets cargo build -p arti --no-default-features --features=memquota,tokio,native-tls are both clean. | |||||
| * | | | | 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 | |
| | | | | | | ||||||
| * | | | | | Merge branch 'orport' into 'main' | David Goulet | 2024-10-17 | 2 | -224/+309 | |
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | tor-chanmgr: refactored to remove `with_channels` and added `PendingChannelHandle` See merge request tpo/core/arti!2538 | |||||
| | * | | | | | 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}`. | |||||
| * | | | | | | Merge branch 'non-linux-fix' into 'main' | Nick Mathewson | 2024-10-17 | 1 | -1/+3 | |
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rtcompat: Fix android compilation in `general` See merge request tpo/core/arti!2553 | |||||
| | * | | | | | | rtcompat: Fix android compilation in `general` | Nick Mathewson | 2024-10-17 | 1 | -1/+3 | |
| | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously I had assumed that `std::os::linux` also existed on android, based on the documentation of `std::os::linux::net::SocketAddrExt`. That is not, however, true. This should fix the `check-targets` CI job. | |||||
| * | | | | | | Merge branch 'rpc-connect-sketch' into 'main' | Nick Mathewson | 2024-10-17 | 1 | -0/+464 | |
| |\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | RPC: Sketch for how connect strings work See merge request tpo/core/arti!2439 | |||||
| | * | | | | | rpc-connect-sketch: Clarify and restrict socket addr format | Nick Mathewson | 2024-10-17 | 1 | -8/+16 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect: add some example connect strings. | Nick Mathewson | 2024-10-17 | 1 | -1/+32 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect: clarify that "embedded" is not final. | Nick Mathewson | 2024-10-17 | 1 | -0/+10 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect: unknown builtins are "decline". | Nick Mathewson | 2024-10-17 | 1 | -2/+2 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect: replace a "may" with a "must" | Nick Mathewson | 2024-10-17 | 1 | -1/+1 | |
| | | | | | | | ||||||
| | * | | | | | Apply suggestions about authentication/socket relationships. | Nick Mathewson | 2024-10-17 | 1 | -3/+6 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect-sketch: Slightly clarify escaping. | Nick Mathewson | 2024-10-17 | 1 | -5/+4 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect-sketch: Revise connect string spec. | Nick Mathewson | 2024-10-17 | 1 | -118/+130 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect-sketch: Revise search-order-and-config section | Nick Mathewson | 2024-10-17 | 1 | -38/+76 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect-sketch: Add suggested "security concerns" section. | Nick Mathewson | 2024-10-17 | 1 | -1/+34 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect-sketch: Add suggested clarifications about cookie file. | Nick Mathewson | 2024-10-17 | 1 | -1/+16 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect-sketch: Remove file type indicator. | Nick Mathewson | 2024-10-17 | 1 | -3/+0 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect-sketch: Classify our previously-undecided error cases | Nick Mathewson | 2024-10-17 | 1 | -6/+7 | |
| | | | | | | | ||||||
| | * | | | | | rpc-connect-sketch: call setuid-detection nice-to-have. | Nick Mathewson | 2024-10-17 | 1 | -0/+1 | |
| | | | | | | | ||||||
| | * | | | | | RPC: Sketch for how connect strings work | Nick Mathewson | 2024-10-17 | 1 | -0/+316 | |
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | This is based on conversations with Diziet, and is a followup from arti!2388 and arti!2429. | |||||
| * | | | | | Merge branch 'fs-watcher-poll' into 'main' | gabi-250 | 2024-10-17 | 6 | -4/+57 | |
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-config: Use a polling watcher on non-windows platforms that don't have inotify. Closes #1644 See merge request tpo/core/arti!2547 | |||||
| | * | | | | | arti: Add a warning about watch_configuration's performance issues. | Gabriela Moldovan | 2024-10-17 | 1 | -0/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Part of #1644 | |||||
| | * | | | | | tor-config: Document the limitations of the FileWatcher. | Gabriela Moldovan | 2024-10-16 | 2 | -0/+11 | |
| | | | | | | | ||||||
