summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | Merge branch 'always-ims' into 'main'eta2022-03-161-10/+49
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dirmgr: Always send if-modified-since on consensus documents. Closes #403 See merge request tpo/core/arti!412
| * | | | | | | dirmgr: Always send if-modified-since on consensus documents.Nick Mathewson2022-03-161-10/+49
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We never want a consensus document that's super-old, since we would reject it immediately for being too old. Also, never send an if-modified-since that's so old that we'd reject the response. Closes #403
* | | | | | | Merge branch 'typos' into 'main'Nick Mathewson2022-03-161-1/+1
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | Fix typo See merge request tpo/core/arti!416
| * | | | | | Fix typoDimitris Apostolou2022-03-161-1/+1
|/ / / / / /
* | | | | | Merge branch 'derive-builder' into 'main'Ian Jackson2022-03-1612-25/+21
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | derive_builder: Switch to upstream 0.11 See merge request tpo/core/arti!414
| * | | | | derive_builder: Switch to upstream 0.11Ian Jackson2022-03-1611-25/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has the different syntax for builder field attributes than what I originally proposed in my MR, and which therefore is in the pinned branch. My upstream MR for the field attributes feature was morged: https://github.com/colin-kiegel/rust-derive-builder/issues/239
| * | | | | downgrade_dependencies: Upgrade darlingIan Jackson2022-03-161-0/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new version of derive_builder requires a newer darling. Ooops. Upstream MR here: https://github.com/colin-kiegel/rust-derive-builder/pull/242 For now, upgrade darling. When there's a new upstream derive_builder, we can use it and drop this.
* | | | | Merge branch 'move-retry-delay' into 'main'Ian Jackson2022-03-165-153/+179
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Move RetryDelay into tor-basic-utils See merge request tpo/core/arti!411
| * | | | | RetryDelay: remove accessors.Nick Mathewson2022-03-162-24/+10
| | | | | | | | | | | | | | | | | | | | | | | | Instead, check initial_delay in dirmgr directly.
| * | | | | Remove re-export of retry-schedule in tor-dirmgr.Nick Mathewson2022-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It wasn't necessary.
| * | | | | Fix up documentation on RetryDelay.Nick Mathewson2022-03-162-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's no longer about downloads; it's about whatever you need to retry.
| * | | | | Move RetryDelay from dirmgr to basic-utils.Nick Mathewson2022-03-165-155/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This (almost) a pure code-movement commit: it also makes one public function private in order to suppress a warning.
| * | | | | RetryDelay: add accessors for stateNick Mathewson2022-03-161-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We'll need these for our unit tests in tor-dirmgr once we move RetryDelay into tor-basic-utils.
| * | | | | tor-basic-utils/Cargo.toml: reformat.Nick Mathewson2022-03-161-1/+2
| | |/ / / | |/| | | | | | | | | | | | | | | | | | This is a separate commit to avoid putting format changes in the next commit.
* | | | | Merge branch 'clippy' into 'main'Nick Mathewson2022-03-161-4/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | Replace a match with some as_ref and as See merge request tpo/core/arti!413
| * | | | Replace a match with some as_ref and asIan Jackson2022-03-161-4/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | The match was doing a deref coercion. Found by current nightly's needless_match (whose suggestion doesn't compile, https://github.com/rust-lang/rust-clippy/issues/8551 )
* | | | Merge branch 'testing_dns_port' into 'main'Ian Jackson2022-03-162-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Use port 35353 for testing, not 5353. See merge request tpo/core/arti!408
| * | | | Use port 35353 for testing, not 5353.Nick Mathewson2022-03-152-3/+3
| |/ / / | | | | | | | | | | | | | | | | Apparently 5353 is commonly used for mDNS, and so counts as "already in use" on many consumer machines.
* | | | Merge branch 'dns' into 'main'Nick Mathewson2022-03-151-3/+2
|\ \ \ \ | |/ / / |/| | | | | | | | | | | fix rust-nightly CI job See merge request tpo/core/arti!409
| * | | make run_dns_resolver public and fix typotrinity-1686a2022-03-151-3/+2
|/ / /
* | | Merge branch 'dns' into 'main'Nick Mathewson2022-03-1423-46/+614
|\ \ \ | | | | | | | | | | | | | | | | Add DNS resolver support to arti See merge request tpo/core/arti!390
| * | | comment AAAA test and explain why it's disabledtrinity-1686a2022-03-141-1/+4
| | | |
| * | | add simple unit test on UDPtrinity-1686a2022-03-145-3/+48
| | | |
| * | | add integration test and fill semver_statustrinity-1686a2022-03-144-4/+14
| | | |
| * | | fix typos and minor issuestrinity-1686a2022-03-143-16/+24
| | | |
| * | | actually add DNS supporttrinity-1686a2022-03-145-5/+145
| | | |
| * | | add skeleton for DNS handlingtrinity-1686a2022-03-145-14/+99
| | | |
| * | | add udp to runtimetrinity-1686a2022-03-1416-37/+314
|/ / /
* | | Merge branch 'testing-docs' into 'main'Nick Mathewson2022-03-142-0/+344
|\ \ \ | | | | | | | | | | | | | | | | New documents to checkpoint my work on #329 and #87 See merge request tpo/core/arti!407
| * | | Apply 1 suggestion(s) to 1 file(s)eta2022-03-141-1/+1
| | | |
| * | | New documents to checkpoint my work on #329 and #87Nick Mathewson2022-03-142-0/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These documents explain how to profile arti for CPU and memory, and how to simulate different kinds of breakage and misconfiguration. They aren't at all in their final form, but I figure it's useful to check them in so that more people can look at them, and make suggestions.
* | | | Merge branch 'intern-more' into 'main'Nick Mathewson2022-03-149-25/+91
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-netdoc: use InternCache to save memory for families and protover lists Closes #384 and #385 See merge request tpo/core/arti!398
| * \ \ \ Merge branch 'main' into 'intern-more'Nick Mathewson2022-03-1414-99/+45
| |\ \ \ \ | |/ / / / |/| | | | | | | | | # Conflicts: # doc/semver_status.md
* | | | | Merge branch 'missing_shrink_to_fit' into 'main'eta2022-03-141-0/+7
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | dirmgr: Call shrink_to_fit on missing-microdesc hashtable Closes #388 See merge request tpo/core/arti!399
| * | | | dirmgr: Call shrink_to_fit on missing-microdesc hashtableNick Mathewson2022-03-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This hashtable starts out pretty large, but it can spend most of our runtime (when we aren't downloading) being small. To avoid doing too much work, I've made it so we only call shrink_to_fit twice per consensus: once when we're no longer pending, and once when we're complete. Closes #388.
* | | | | Merge branch 'slice-from-ref' into 'main'eta2022-03-143-49/+22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Simpify tor-netdoc TokVal See merge request tpo/core/arti!404
| * | | | | tor-netdoc: Actually, make TokVal be a VecIan Jackson2022-03-113-46/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enum was otiose: its set of valid values is precisely those of a Vec. (Indeed what would TokVal::Multi(vec![]) have meant?)
| * | | | | Remove a pointless sliceIan Jackson2022-03-111-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | std::slice::from_ref exists. Spotted while reviewing !400
* | | | | | Merge branch 'humantime' into 'main'eta2022-03-1411-51/+18
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace humantime_serde_option with upstream code Closes #396 See merge request tpo/core/arti!406
| * | | | | | humantime_serde_option: Add note about semverIan Jackson2022-03-141-1/+5
| | | | | | |
| * | | | | | Revert "humantime_serde_option: New module in tor-basic-utils"Ian Jackson2022-03-144-35/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have upstreamed this code. This reverts commit 6193c9d9742d1d19a45a0ee1c383858201304912.
| * | | | | | Use new upstream humantime_serde_option featureIan Jackson2022-03-142-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace all uses of our copy of this code.
| * | | | | | humantime: Update to humantime-serde 1.1.1Ian Jackson2022-03-145-6/+6
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has the humantime_serde::option module, which we have upstreamed and are about to switch to. The remaining dependency with version = "1" is going to be removed in a moment.
| | | * | | Canonicalize and intern protover lines on descriptorsNick Mathewson2022-03-116-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should save around 1MB per consensus, since every relay has a 'protocols' lines, but there are only a few distinct possibilities for such a line. Closes #385.
| | | * | | Canonicalize and intern family representations to save memory.Nick Mathewson2022-03-114-9/+57
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | This should save 1-3 MB of ram on each running arti client. Closes #384. See also tor#27359 and proposal 298.
* | | | | Merge branch 'arti-lib' into 'main'Ian Jackson2022-03-118-268/+329
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | arti: Move all code from binary crate to library crate See merge request tpo/core/arti!403
| * | | | | arti library crate: Add another note about panickingIan Jackson2022-03-111-0/+4
| | | | | |
| * | | | | arti library crate: re-add clippy lintsIan Jackson2022-03-111-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I ought to have c&p these. As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/403#note_2786099
| * | | | | arti library crate: Add note about panickingIan Jackson2022-03-111-0/+4
| | | | | |
| * | | | | Add note about semver.Ian Jackson2022-03-111-0/+4
| | | | | |