| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We want to distinguish handshake failures from errors later on in
the channel's lifetime.
Closes #359.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Give specific error kinds to different END reasons
Closes #360
See merge request tpo/core/arti!343
|
| | |/ / /
| | | |
| | | |
| | | | |
Closes #360.
|
| |\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | | |
impl Debug for DataStream (and its components)
See merge request tpo/core/arti!351
|
| | | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
My proximate motivation is that tls-api wants its inner streams to be
Debug. But in general, I agree with the Rust API Guidelines notion
that almost everything should be Debug.
I have gone for the "dump all the things" approach. A more nuanced
approach would be possible too.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Dir store redux
See merge request tpo/core/arti!345
|
| | | | | |
|
| | | | | |
|
| |/ / / |
|
| |\ \ \
| |_|/
|/| |
| | |
| | | |
add example of tcp hook
See merge request tpo/core/arti!341
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Try to make the `hook-tcp` example a bit easier to read by
adding/changing comments, and renaming the lifetimes for
`async_trait`-generated trait methods.
|
| | | |
| | |
| | |
| | | |
goal of the example
|
| | | | |
|
| | | |
| | |
| | |
| | | |
this required to make additional types public
|
| |\ \ \ |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
To implement this, we had to refactor the tor_circmgr api for
flushing state changes to disk, so that it checks if it has the lock,
and only then tries to store.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
There was only one use of this, and it was in as-yet-unused relay-only
code.
Removing this type required refactoring the relay onion handshake code
to use its own error type, which is probably clever anyway.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This is a bit ugly but we need it to work around the problem where
exits aren't always clear about _why_ a hostname lookup failed.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is still not as specific as we want; but there's already a TODO
comment in tor-dirclient::err about fixing that at some point in the
future.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Also document that it's a lower-level error kind.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Also add some TODO comments in circmgr for future work.
|
| | | | | |
|
| | | |/
| |/|
| | |
| | |
| | | |
Per #348, These are the cases that we meant to fix down the road, but
not in 0.1.0.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Make a TorClientBuilder API.
Closes #350
See merge request tpo/core/arti!337
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a defensive API choice to protect against the possibility
that we'll want to add a bunch of other non-config options in
the future.
Closes #350
|
| |\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | | |
Remove clippy::needless_borrow exception in CI.
Closes #310
See merge request tpo/core/arti!338
|
| | |/ /
| | |
| | |
| | |
| | | |
This exception is no longer necessary now that the underlying CI bug
is fixed.
|
| |\ \ \ |
|
| | | |/
| |/| |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Improve error messages from arti cli
See merge request tpo/core/arti!331
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This is more typing in the definition but it produces much better
error messages if you try to Report(foo).to_string()
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
I c&p this lint suppression but from a cli option printed by clippy,
and I didn't notice the need to change the - to _.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is the first one where anyhow::Error impl AsRef<dyn StdError>
We want this because we want to add error reporting functionality
which works with all kinds of errors, which means we need an
anyhow::Error which can be vieweed as a StdError.
(The alternative would be to deref at the call sites of
report_and_exit, making it less ergonomic.)
anyhow 1.0.23 is from November 2019.
|
| | | | |
| | | |
| | | |
| | | | |
I think all of this diff is a strict disimprovement, but whatever.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | | |
Handle panics from circuit construction
Closes #347
See merge request tpo/core/arti!336
|