| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
data"
This reverts commit 87e0109832559dec41a485b268579d58be0de278.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This reverts commit 8da8b88481c26d49ac96e79165538e01237ec9ed.
|
| |\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | / /
| | |_|_|/ /
| |/| | | | |
Introduce SinkTrySend trait and implement it
See merge request tpo/core/arti!2468
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Plumbing.
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This is the method try_send from mpsc::channel::Sender. We want to be
able to replace that type in tor-circmgr with a memquota wrapper, so
the call needs to be a trait method.
This API is deceptively simple.
Implementing it will involve more support machinery for error handling.
|
| |/ / / / /
| | | | |
| | | | |
| | | | | |
We're going to want this for try_send.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Provide a type-erased SleepProvider + CoarseTimeProvider and use it for memquota queues
See merge request tpo/core/arti!2460
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Prompted by
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2460#note_3085583
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Prompted by
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2460#note_3085582
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Prompted by
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2460#note_3085581
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Nothing uses this yet, but we will do so.
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Use tor_rtcompat::DynTimeProvider instead.
Ultimately, we're going to want one of these in Channel etc. The
CoarseTimeProvider generic argument then becomes pervasive.
Instead, erase it. This will involve an indirect function call each
time an item is inserted. I think that can't be helped.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This will replace the internal ad-hoc DynCoarseTimeProvider in
tor-memquota.
We need this to be public because it's going to be shared by many of our
protocol elements (eg ClientCirc, Channel, etc.) as they need to use
it for their mq queues.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It doesn't need an owned value here.
(clippy's note about this was defeated by this being a trait method.)
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
I'm about to add some unsafe which I want tested in CI.
We must disable two tests.
|
| |\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | |
| | | | | |
| | | | | | |
Fix a couple of lifetime warnings from nightly.
See merge request tpo/core/arti!2478
|
| |/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Nightly rustdoc, under some circumstances, issues a warning when
you have an elided lifetime that matches a lifetime with a name.
(It would prefer that you name the lifetime explicitly.)
This does not change the actual lifetime of anything;
it only makes some formerly elided lifetimes explicit.
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
Warn on nonlocal addresses in configuration, PT results
See merge request tpo/core/arti!2454
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Miscellaneous cleanups, mostly in tor-memquota
See merge request tpo/core/arti!2461
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Make it have a summary line of only reasonable size.
While we're here, wrap the body with semantic linefeeds.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It turns out that my fingers want to treat "memquota" as a word. We
have this in tor_memquota etc. too.
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
This will be useful in tests.
|
| | |/ / / / |
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
Suppress some dead code warnings
See merge request tpo/core/arti!2463
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes
cargo check --all-features -p tor-async-utils --all-targets
which otherwise prints
warning: function `new_unnamed_socketaddr` is never used
--> crates/tor-rtcompat/src/unix.rs:14:15
|
14 | pub(crate) fn new_unnamed_socketaddr() -> std::io::Result<SocketAddr> {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes
cargo check -p tor-circmgr --all-features --all-targets
which otherwise prints
warning: variant `InstanceState` is never constructed
--> crates/tor-persist/src/err.rs:45:5
|
13 | pub(crate) enum Resource {
| -------- variant in this enum
...
45 | InstanceState {
| ^^^^^^^^^^^^^
|
= note: `Resource` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
warning: variants `Deleting` and `Enumerating` are never constructed
--> crates/tor-persist/src/err.rs:66:5
|
57 | pub(crate) enum Action {
| ------ variants in this enum
...
66 | Deleting,
| ^^^^^^^^
...
78 | Enumerating,
| ^^^^^^^^^^^
|
= note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
warning: method `delete` is never used
--> crates/tor-persist/src/load_store.rs:83:19
|
35 | impl Target<'_> {
| --------------- method in this implementation
...
83 | pub(crate) fn delete(&self) -> Result<(), ErrorSource> {
| ^^^^^^
|
| | | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes
cargo check -p tor-chanmgr --all-features --all-targets
which otherwise prints
warning: method `reply` is never used
--> crates/tor-proto/src/crypto/handshake.rs:73:8
|
65 | pub(crate) trait AuxDataReply<H>
| ------------ method in this trait
...
73 | fn reply(&mut self, msg: &H::ClientAuxData) -> Option<H::ServerAuxData>;
| ^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Python: Use the correct library extension on osx, windows.
See merge request tpo/core/arti!2469
|
| | | | | |
| | | | |
| | | | |
| | | | | |
(The windows case is untested; the osx case worked fine.)
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fix typed-index-collections versions to ~3.1.0
See merge request tpo/core/arti!2471
|
| | |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Using the tilde here tells cargo not to bump to 3.2.x,
which would require Rust 1.81.0.
I wish we could say "don't use 3.2.x unless you're on Rust 1.81",
but I don't see an easy way. Leaving this as-is breaks our CI.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
tor-chanmgr: support multiple channels for a relay ID
See merge request tpo/core/arti!2442
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Like `ByRelayIds`, but allows multiple items per relay ID.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This makes the `HasAddrs` trait nicer to use when most things that have
addresses are passed by reference anyways.
|