summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | memquota: Fix circuit account lifetimeIan Jackson2024-10-212-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We foolishly made *two* CircuitAccounts, one of which gets immediately dropped. But we need to hold onto the account somewhere, because an mq_queue doesn't keep the account alive. Otherwise everything breaks when mq tracking is enabled.
| * | | memquota: Log a trace message when a claim failsIan Jackson2024-10-212-1/+9
| | | |
| * | | memquota: Log a message at info on startup, if enabledIan Jackson2024-10-211-0/+3
| | | |
* | | | Merge branch 'inet_not_tcp' into 'main'David Goulet2024-10-222-40/+40
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | general::SocketAddr: Say "inet" rather than "tcp" Closes #1701 See merge request tpo/core/arti!2554
| * | | | general::SocketAddr: Say "inet" rather than "tcp"Nick Mathewson2024-10-172-40/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "inet" makes more sense, since in principle these can also be used for udp, etc. Also making a corresponding change in rpc-connect-sketch.md, which uses this format. Closes #1701.
* | | | | Merge branch 'peek' into 'main'Ian Jackson2024-10-221-4/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove an obsolete TODO See merge request tpo/core/arti!2562
| * | | | | Remove an obsolete TODOIan Jackson2024-10-211-4/+0
| | |/ / / | |/| | | | | | | | | | | | | This *is* in tor-async-utils :-).
* | | | | Merge branch 'rpc-api-cleaning' into 'main'Nick Mathewson2024-10-2212-77/+326
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Tests and Improvements to python rpc client API See merge request tpo/core/arti!2567
| * | | | | python: Enforce that a response has just one type.Nick Mathewson2024-10-211-3/+13
| | | | | |
| * | | | | Typo fixes from @jnewsomeNick Mathewson2024-10-221-2/+2
| | | | | |
| * | | | | python: add tests for opening streams via RPC.Nick Mathewson2024-10-212-0/+35
| | | | | |
| * | | | | python: Expose RPC status code from errors.Nick Mathewson2024-10-214-3/+52
| | | | | |
| * | | | | python: Rename connect to open_stream, for consistency.Nick Mathewson2024-10-211-1/+1
| | | | | |
| * | | | | python: add more tests for the rpc code.Nick Mathewson2024-10-211-1/+38
| | | | | |
| * | | | | python: avoid redundant error messages.Nick Mathewson2024-10-211-1/+4
| | | | | |
| * | | | | rpclib: Rename RequestCancelled to be accurate.Nick Mathewson2024-10-214-18/+9
| | | | | |
| * | | | | python: Move meta.features test to new module.Nick Mathewson2024-10-213-47/+50
| | | | | |
| * | | | | python: remove an unused importNick Mathewson2024-10-211-1/+0
| | | | | |
| * | | | | python: Return "stream" as an object.Nick Mathewson2024-10-211-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Make the return type from connect() more sensible.
| * | | | | python: Provide a sensible way to set metaparams in requestsNick Mathewson2024-10-212-2/+36
| | | | | |
| * | | | | python: Decode JSON in rpc responses more aggressivelyNick Mathewson2024-10-213-26/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tweaks the APIs to return a dict in cases where we know that we are getting a result, and to return an ArtiRpcResponse in cases where we don't know what kind of response we're getting. It also expands our Error objects to support decoding. Rationale: everybody who is using this libaray will want to decode the json objects that they receive. By doing it in the library, we can save them some annoyance.
| * | | | | python: Allow execute methods to accept dictsNick Mathewson2024-10-212-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, they only took strings, which sometimes required the caller to use json.
| * | | | | maint/cbindgen: Workaround for systems without gnu-getopt by default.Nick Mathewson2024-10-211-2/+9
|/ / / / /
* | | | | Merge branch 'rpc-cancel' into 'main'Ian Jackson2024-10-211-9/+28
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | rpc-draft: Clarify and weaken cancel guarantees See merge request tpo/core/arti!2564
| * | | | | rpc-draft: Clarify and weaken cancel guaranteesNick Mathewson2024-10-211-9/+28
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | Part of #818. Tries to match the set of guarantees specified by @diziet on that ticket.
* | | | | Merge branch 'bug1531' into 'main'Ian Jackson2024-10-2116-40/+53
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move crates to crates to slotmap-careful Closes #1531 See merge request tpo/core/arti!2530
| * | | | | Convert a few crates to slotmap-carefulNeel Chauhan2024-10-1716-40/+53
| | | | | |
* | | | | | Merge branch 'test_create_hop_count_reinstate' into 'main'gabi-2502024-10-211-4/+1
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | tor-proto: Reinstate circuit hop check in test_create() See merge request tpo/core/arti!2546
| * | | | | tor-proto: Reinstate circuit hop check in test_create()Neel Chauhan2024-10-161-4/+1
| |/ / / /
* | | | | Merge branch 'arti-rpcserver-comment' into 'main'wesleyac2024-10-211-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | Fix typo in arti-rpcserver auth.rs comment See merge request tpo/core/arti!2558
| * | | | Fix typo in arti-rpcserver auth.rs commentNeel Chauhan2024-10-181-1/+1
| | |/ / | |/| |
* | | | Merge branch 'rpc-error-improvements' into 'main'Alexander Hansen Færøy2024-10-2115-148/+237
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Cleanups and improvements in the RpcError code Closes #1662 See merge request tpo/core/arti!2556
| * | | rpc: List missing required features in error dataNick Mathewson2024-10-172-5/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our spec says that when the RPC client has said "I require you to have feature X" and we don't have it, we need to include the feature(s) we don't have in an `rpc:unsupported_features` field of our error. Also, add an integration test for this behavior. Closes #1662
| * | | python: fix a return type annotation.Nick Mathewson2024-10-171-1/+1
| | | | | | | | | | | | | | | | (Found while writing a test.)
| * | | rpc: Include "data" field in error.Nick Mathewson2024-10-171-3/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In older versions of the rpc spec, this field held a serialized version of the Arti error object. That's no longer the design: now it provides a way for specific errors to include extra, specified, machine-readable data. For more information see the section "Errors" in rpc-meta-draft.md
| * | | Remove Rpc* variants from tor_error::ErrorKindNick Mathewson2024-10-178-92/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are not regular ErrorKinds, since they can never occur in an error that's meant to be returned from a Rust API like `arti-client`. Instead, they only exist for errors returned from RpcError. (I can't find the place where we discussed this previously, but the rationale is that if an ErrorKind never makes sense in response to something that the user does from Rust, we should never have that be an ErrorKind. The fact that the removed kinds do not actually appear outside the RPC system suggests that this is reasonable.)
| * | | rpcserver: Wrap InvokeError as internal errorNick Mathewson2024-10-173-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 Mathewson2024-10-171-4/+4
| | | | | | | | | | | | | | | | In some cases, the tor_error::ErrorKind names were nicer.
| * | | rpc: Create a constructor for RpcError.Nick Mathewson2024-10-171-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 Mathewson2024-10-173-23/+33
| | | | | | | | | | | | | | | | | | | | This change will let us start removing the not-entirely-logical `Rpc.*` variants from tor_error::ErrorKind.
| * | | rpc: Make RpcErrorKind public.Nick Mathewson2024-10-172-2/+3
| | | |
| * | | rpc: Rename RpcCode to RpcErrorKind.Nick Mathewson2024-10-171-6/+13
| | | | | | | | | | | | | | | | This is about to be a public competitor with tor_error::ErrorKind.
| * | | rpc: Use an alias for RpcCode.Nick Mathewson2024-10-171-9/+10
| | | |
| * | | rpc: Remove prefix from RpcCode members.Nick Mathewson2024-10-171-20/+19
|/ / /
* | | Merge branch 'single_match_warn_in_memqueue' into 'main'Alexander Hansen Færøy2024-10-171-0/+1
|\ \ \ | |_|/ |/| | | | | | | | memquota: suppress clippy::single_match warning. See merge request tpo/core/arti!2555
| * | memquota: suppress clippy::single_match warning.Nick Mathewson2024-10-171-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-2502024-10-173-7/+12
|\ \ | | | | | | | | | | | | tor-key-forge: Minor cleanups and reformatting See merge request tpo/core/arti!2552
| * | tor-key-forge: Fix typo in documentation.Gabriela Moldovan2024-10-171-2/+2
| | |
| * | tor-key-forge: Replace fully-qualified path with import.Gabriela Moldovan2024-10-171-2/+2
| | | | | | | | | | | | | | | `KeypairData` is already in scope, so there's no need to fully-qualify it.
| * | tor-key-forge: Reformat derives for readability.Gabriela Moldovan2024-10-171-2/+4
| | |