summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | hyper-examples: Use random nickname for onion servicenield2025-08-041-1/+1
| | | |
| * | | Merge branch 'main' into hyper-examplesnield2025-08-0464-398/+1939
| |\ \ \ | |/ / / |/| | | | | | | | | | | # Conflicts: # examples/hyper-examples/src/bin/hyper-http-hs-example.rs
* | | | Merge branch 'enable-memquota' into 'main'opara2025-07-3117-72/+444
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | arti,arti-client,tor-memquota: Always enable the memquota system See merge request tpo/core/arti!3110
| * | | | tor-memquota: moved auto calc into separate functionSteven Engler2025-07-311-49/+112
| | | | |
| * | | | tor-memquota: return an error when `total_available_memory()` failsSteven Engler2025-07-311-15/+29
| | | | |
| * | | | maint: change the dependencies in 'downgrade_dependencies'Steven Engler2025-07-311-1/+4
| | | | |
| * | | | arti: update example configSteven Engler2025-07-311-5/+16
| | | | |
| * | | | tor-memquota: small fmt change to log messageSteven Engler2025-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All other INFO log lines emitted when arti starts begin with an uppercase character, so this line looks out of place if it begins with a lowercase character.
| * | | | tor-memquota: change behaviour of "auto"Steven Engler2025-07-311-23/+180
| | | | | | | | | | | | | | | | | | | | | | | | | A `max` of "auto" (the default) now determines a limit based on the system's total available memory, rather than acting as "disabled".
| * | | | tor-memquota: config now supports `ExplicitOrAuto`Steven Engler2025-07-313-17/+61
| | | | | | | | | | | | | | | | | | | | | | | | | Note that this contains a breaking change to the `ConfigBuilder`. This should not break any existing toml configuration files.
| * | | | tor-memquota: add 'cfg-if' and 'sysinfo' dependenciesSteven Engler2025-07-312-0/+46
| | | | |
| * | | | tor-config: impl `NotAutoValue` for `ByteQty`Steven Engler2025-07-312-0/+4
| | | | |
| * | | | tor-config: add `ExplicitOrAuto::map` and `From<T> for ExplicitOrAuto<T>`Steven Engler2025-07-311-0/+18
| | | | |
| * | | | tor-memquota: add config test for `usize::MAX`Steven Engler2025-07-311-0/+4
| | | | |
| * | | | arti-relay: always enable "tor-memquota/memquota"Steven Engler2025-07-311-2/+1
| | | | |
| * | | | arti: make "memquota" feature a no-opSteven Engler2025-07-314-34/+35
| | | | |
| * | | | arti-client: make "memquota" feature a no-opSteven Engler2025-07-312-3/+12
| | | | |
| * | | | arti-client: always enable "tor-memquota/memquota"Steven Engler2025-07-311-2/+1
|/ / / /
* | | | Merge branch 'revised-redacted-api' into 'main'Nick Mathewson2025-07-3117-59/+249
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | safelog: Add new DisplayRedacted/DebugRedacted APIs, and use it for HsId. Closes #2012 and #2066 See merge request tpo/core/arti!3107
| * | | | Use new DisplayRedacted/DebugRedacted code for HsId.Nick Mathewson2025-07-3116-58/+73
| | | | | | | | | | | | | | | | | | | | Closes #2012.
| * | | | safelog: Add new DisplayRedacted/DebugRedacted APIs.Nick Mathewson2025-07-312-1/+176
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | These APIs differ from Redactable by forcing the caller to choose whether an object should be displayed in redacted or non-redacted form. (Redactable objects still implement Display, which creates the risk of accidentally displaying an un-redacted object.)
* | | | Merge branch 'gsoc-ctor-migrate' into 'main'gabi-2502025-07-3115-47/+355
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | arti: hss: Add `arti hss ctor-migrate` See merge request tpo/core/arti!3102
| * | | | arti: hss: Add `arti hss ctor-migrate`hjrgrn2025-07-3115-47/+355
|/ / / /
* | | | Merge branch 'configuration-sources-pub' into 'main'Alexander Hansen Færøy2025-07-301-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | arti-client: Re-export `ConfigurationSources` See merge request tpo/core/arti!3044
| * | | | arti-client: Re-export `ConfigurationSources`Clara Engler2025-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit re-exports `ConfigurationSources` in `arti_client::config`. The similar `ConfigurationSource` is already publicly exported, but it unfortunately it is pretty useless without a `ConfigurationSources` to which it belongs.
* | | | | Merge branch 'check-license-fix' into 'main'Nick Mathewson2025-07-302-7/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | check_licenses: allow outputs from cargo-license 0.7.0, and pin to 0.7.0 Closes #2083 See merge request tpo/core/arti!3111
| * | | | | ci: Pin to cargo-license 0.7.0Nick Mathewson2025-07-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | This should prevent recurrences of issues like #2083.
| * | | | | check_licenses: treat LGPL-3.0/LGPL-3.0-only as synonymsNick Mathewson2025-07-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cargo-license version 0.7 now normalizes the "-only" variant into "LGPL-3.0".
| * | | | | check_licenses: allow sorted versions of some spdx exprsNick Mathewson2025-07-301-0/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | cargo-license 0.7 has started normalizing SPDX expressions, which includes sorting the licenses in an AND or OR.
* | | | | Merge branch 'license-workaround' into 'main'Nick Mathewson2025-07-301-1/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ci: Downgrade cargo-license to 0.6.1 as a workaround See merge request tpo/core/arti!3108
| * | | | | ci: downgrade cargo-license to 0.6.1 as workaroundSteven Engler2025-07-291-1/+2
|/ / / / /
* | | | | Merge branch 'conflux-set-cleanup' into 'main'David Goulet2025-07-283-61/+87
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | proto: Add a ConfluxSet::remove_unchecked method. See merge request tpo/core/arti!3105
| * | | | | proto: Add test for ShutdownAndReturnCircuit error condition.Gabriela Moldovan2025-07-251-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command is supposed to return an error when handled by a tunnel reactor that has more than one circuit. Prevents the `ConfluxSet::take_single_leg()` bug fixed in 00bb0628.
| * | | | | proto: Remove an already-addressed TODO.Gabriela Moldovan2025-07-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | This was fixed in !3091
| * | | | | proto: Remove element_idx + remove in favor of remove_unchecked().Gabriela Moldovan2025-07-251-11/+1
| | | | | |
| * | | | | proto: Replace hand-rolled exactly_one() impl with itertools.Gabriela Moldovan2025-07-252-52/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This slightly reduces the amount of code we need to maintain. This also drive-by fixes a bug in `ConfluxSet::take_single_leg`, which previously never actually checked if the conflux set was of size one.
| * | | | | proto: Add a ConfluxSet::remove_unchecked method.Gabriela Moldovan2025-07-251-0/+16
|/ / / / / | | | | | | | | | | | | | | | | | | | | This method will enable us to remove some duplicated code, as well as the `element_idx` function.
* | | | | Merge branch 'prop362' into 'main'wesleyac2025-07-233-64/+560
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Implement prop 362 See merge request tpo/core/arti!3093
| * | | | | tor-hsservice: Fix doccomment link.Wesley Aptekar-Cassels2025-07-231-1/+1
| | | | | |
| * | | | | tor-hsservice: Add monotonic request id to RendRequestOrdByEffort.Wesley Aptekar-Cassels2025-07-231-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that even in situations where multiple requests are received at the exact same time, we will not drop any requests.
| * | | | | tor-hsservice: Add note about SUGGESTED_EFFORT_DEADZONE.Wesley Aptekar-Cassels2025-07-231-0/+4
| | | | | |
| * | | | | tor-hsservice: Fix typo.Wesley Aptekar-Cassels2025-07-231-4/+4
| | | | | |
| * | | | | tor-hsservice: Remove remaining `as` casts from suggested effort update.Wesley Aptekar-Cassels2025-07-231-12/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This basically converts everything to use the num_traits conversion function, and explicitly panics on errors.
| * | | | | tor-hsservice: Remove another use of `as`.Wesley Aptekar-Cassels2025-07-233-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This pulls in num_traits (which is already a dependency for PoW) to allow f64 casts that for reasons I do not understand are not implemented via TryFrom in the standard library.
| * | | | | tor-hsservice: Convert as into checked conversion.Wesley Aptekar-Cassels2025-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should never happen, as the queue size is limited to well below u32. However, it's still nicer not to use `as`.
| * | | | | tor-hsservice: Make num_dequeued u32 instead of usize.Wesley Aptekar-Cassels2025-07-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to divide a Duration by this, and Duration only supports division by u32. This is, in a sense, just pushing around where the overflow would happen, (from the conversion in the suggested update to the increment when a item is dequeued). However, this overflow is so unlikely to happen (it would require more that 14 million requests per second) that it does not seem worth slowing down the increment operation to try to handle it.
| * | | | | tor-hsservice: Fix typos.Wesley Aptekar-Cassels2025-07-231-6/+6
| | | | | |
| * | | | | tor-hsservice: Use Mutex for suggested_effort.Wesley Aptekar-Cassels2025-07-231-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has fewer weird edge cases than RwLock does. It might also be reasonable to make this a AtomicU32 (or AtomicEffort which wraps AtomicU32), but that's slightly more complex, so I've opted for a mutex for now.
| * | | | | tor-hsservice: Add tests for PowManager control loop.Wesley Aptekar-Cassels2025-07-231-21/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modifies the code to be more testable (making it generic over RendRequest, getting the time from the runtime rather than Instant::now(), etc) and adds some tests for the PoW control loop.
| * | | | | tor-hsservice: Make PowManager generic over RendRequests.Wesley Aptekar-Cassels2025-07-231-12/+15
| | | | | |