| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | |_|_|/ /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | |_|/ / /
|/| | | | |
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
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
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
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 )
|
| |/ / |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| | |
| | |
| | | |
# 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
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This does not constitute any kind of stable API promise.
But it might allow people to use our arti client code in novel ways.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This is just code motion and the minimal fixups.
|
| |\ \ \ \ \
| |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
tor-netdoc: Save allocation space in GenericRouterstatus
Closes #387
See merge request tpo/core/arti!400
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
(Once we're done parsing these, the vector will never get any
longer.)
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This should save around 181K of heap on a current directory.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When the version is a Tor version, we can just parse it; otherwise,
we can intern it. This shrinks GenericRouterStatus and avoids a lot
of extra help allocations.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is the default vscode format, and seems popular elsewhere.
This commit does nothing but reformat.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Part of #387
|
| |\ \ \ \ \
| |/ / / /
|/| | | |
| | | | |
| | | | | |
Make ArtiConfigBuilder contain a TorClientConfigBuilder
See merge request tpo/core/arti!401
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is an API break: now one must use `.tor()` to access the Tor
configuration parts.
But it is not a config file format break, because `#[serde(flatten)]`.
|
| | |/ / /
| | | |
| | | |
| | | | |
As per #371
|
| | | | |
| | | |
| | | |
| | | | |
Make update_config only conditionally exported; add semver-status update.
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
Add flatfile DirMgr
See merge request tpo/core/arti!318
|
| | | | | |
|