| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Fix typos
See merge request tpo/core/arti!578
|
| |/ / / |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Introduce and use nested length reader/writers
See merge request tpo/core/arti!572
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This does away entirely with `wire_addr_len`, which recapitulates the
length calculation.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
We'll want this in a moment.
|
| |/ / /
| | |
| | |
| | | |
Writing is going to be able to give errors too.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
clippy: Allow dbg in tests *again*
See merge request tpo/core/arti!575
|
| | | | | |
|
| | |/ /
| | |
| | |
| | | |
*sigh*
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix topo sorting of Cargo.toml and reorganise CI jobs a bit
Closes #495
See merge request tpo/core/arti!576
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
This reverts one file from commit bfd41ddb5fefe8808c33669c508dde4325808e35.
|
| | | | | |
|
| | |/ /
| | |
| | |
| | |
| | | |
Otherwise it doesn't work on sane systems where /usr/bin/python is
never an incompatible version from previously.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
return nodata instead of servfail in some instances
See merge request tpo/core/arti!564
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | |/ / |
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
Fix a doc link
See merge request tpo/core/arti!573
|
| | | | |
|
| |/ / |
|
| |\ \
| | |
| | |
| | |
| | | |
Plumb a SleepProvider (now Clone + ....) into Channel
See merge request tpo/core/arti!569
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
The channel reactor is going to want to be able to sleep so that it
can do padding, so it needs a SleepProvider.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This will make it much more convenient for code that only wants one of
these traits (or a subset of them). This is a good thing to support
because it will allow us to use a ZST in places that do not need an
actual async runtime handle (typically, the runtime handle is needed
only for spawn).
|
| | | | |
|
| |\ \ \ |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The randomized tests in this crate take a lot of iterations to
converge, so they default to using a deterministic PRNG seed with
few iterations and higher tolerance, and they only randomize the
tests (with more iterations and tighter tolerances) when you
explicitly opt in to randomization.
(If you specify a seed explicitly, you're doing that to reproduce a
randomized case, so we use the same behavior.)
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
The trouble was that one of the helper functions they used
did not take a PRNG as an argument.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This only affects uses of thread_rng(), and affects them all more or
less indiscriminately. One test does not work with
ARTI_TEST_PRNG=deterministic; the next commit will fix it.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Use NetDirProvider in GuardMgr
Closes #93
See merge request tpo/core/arti!568
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Some of our existing code optionally takes a netdir from the
caller. When it doesn't give us one, use the netdir from the
installed NetDirProvider.
(Possibly someday we should remove the NetDir arguments
entirely. I'm deferring that because there are only two APIs
affected, and because making this change would force us to rewrite a
pretty large mess of unit tests.)
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously it was the job of a task in CircMgr to do this; but we're
going to want to give GuardMgr full access to the latest NetDir for
this, and for other code-simplification reasons.
With this change I'm deprecating a couple of functions in
tor-circmgr. It's no longer necessary for us to have an artificial
external way for you to feed new NetDirs to a circmgr. (I could
just remove them, but I want practice deprecating.)
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Our own code is the only stuff that consumes NetDirProvider, and all
the code that consumes it wants it to be Send and Sync.
Making this change avoids our having to define a new function to
upcast Arc<dyn Foo> to Arc<dyn NetDirProvider + Send + Sync>.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This uses some apparently-standard trickery to implement a function
that lets us upcast from Arc<dyn Subtrait> to Arc<dyn Supertrait>.
I considered as alternatives `as_dyn_trait` and `cast_dyn_object`.
Both were nice, but generated a far larger interface than this.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Scattered tests throughout tor-netdoc
See merge request tpo/core/arti!562
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
(This is slightly different from recovering from errors in the
middle of a list of mds, since in this case we _can't_ advance to the
next md.)
Also, note that a given branch is probably not reachable.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The "bad-id" microdescriptor is hand-edited based on one from a
Chutney network.
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Found via coverage.
|