| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
dirmgr: Always send if-modified-since on consensus documents.
Closes #403
See merge request tpo/core/arti!412
|
| | | |_|_|/ / /
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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
|
| |\ \ \ \ \ \ \
| |_|_|/ / / /
|/| | | | | |
| | | | | | |
| | | | | | | |
Fix typo
See merge request tpo/core/arti!416
|
| |/ / / / / / |
|
| |\ \ \ \ \ \
| |_|/ / / /
|/| | | | |
| | | | | |
| | | | | | |
derive_builder: Switch to upstream 0.11
See merge request tpo/core/arti!414
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Move RetryDelay into tor-basic-utils
See merge request tpo/core/arti!411
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Instead, check initial_delay in dirmgr directly.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
It wasn't necessary.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It's no longer about downloads; it's about whatever you need to
retry.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This (almost) a pure code-movement commit: it also makes one public
function private in order to suppress a warning.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We'll need these for our unit tests in tor-dirmgr once we move
RetryDelay into tor-basic-utils.
|
| | | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | | |
This is a separate commit to avoid putting format changes in the
next commit.
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
Replace a match with some as_ref and as
See merge request tpo/core/arti!413
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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 )
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Use port 35353 for testing, not 5353.
See merge request tpo/core/arti!408
|
| | |/ / /
| | | |
| | | |
| | | |
| | | | |
Apparently 5353 is commonly used for mDNS, and so counts as "already in
use" on many consumer machines.
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
fix rust-nightly CI job
See merge request tpo/core/arti!409
|
| |/ / / |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Add DNS resolver support to arti
See merge request tpo/core/arti!390
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |/ / / |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
New documents to checkpoint my work on #329 and #87
See merge request tpo/core/arti!407
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
tor-netdoc: use InternCache to save memory for families and protover lists
Closes #384 and #385
See merge request tpo/core/arti!398
|
| | |\ \ \ \
| |/ / / /
|/| | | |
| | | | | |
# Conflicts:
# doc/semver_status.md
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
dirmgr: Call shrink_to_fit on missing-microdesc hashtable
Closes #388
See merge request tpo/core/arti!399
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Simpify tor-netdoc TokVal
See merge request tpo/core/arti!404
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This enum was otiose: its set of valid values is precisely those of a
Vec. (Indeed what would TokVal::Multi(vec![]) have meant?)
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
std::slice::from_ref exists. Spotted while reviewing !400
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Replace humantime_serde_option with upstream code
Closes #396
See merge request tpo/core/arti!406
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
We have upstreamed this code.
This reverts commit 6193c9d9742d1d19a45a0ee1c383858201304912.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Replace all uses of our copy of this code.
|
| |/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
| | |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This should save 1-3 MB of ram on each running arti client.
Closes #384. See also tor#27359 and proposal 298.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
arti: Move all code from binary crate to library crate
See merge request tpo/core/arti!403
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
I ought to have c&p these.
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/403#note_2786099
|
| | | | | | | |
|
| | | | | | | |
|