| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
rpc spec: define method namespacing.
Closes #822
See merge request tpo/core/arti!1141
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Closes #822
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
DirMgr: Detect that directory state is ready if it begins with all MDs
Closes #802
See merge request tpo/core/arti!1126
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously, we'd only call PendingNetDir::upgrade_if_necesessary
when adding a microdescriptor. But if it began already having all
of its descriptors (because we found them in the cache), we wouldn't
actually upgrade it to a PendingNetDir::Yielding, which would make
it unusable, and would make us schedule its reset time too far
in the future.
Fixes #802.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
netdoc: Add MiddleOnly flag to RelayFlags
Closes #833
See merge request tpo/core/arti!1145
|
| |/ / / / /
| | | | |
| | | | |
| | | | | |
Closes #833
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
rpcserver: Fix a couple of broken rustdoc links
See merge request tpo/core/arti!1143
|
| |/ / / / |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
fix macos reproducible builds
Closes #832
See merge request tpo/core/arti!1142
|
| |/ / / / |
|
| |\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | | |
Run cargo update
See merge request tpo/core/arti!1140
|
| |/ / /
| | |
| | |
| | |
| | | |
The lockfile on main seems to be broken. I skim-eyeballed the diff,
which is entirely autogenerated.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Update our secmem_proc dependency to 0.3.0
Closes #664
See merge request tpo/core/arti!1138
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(This wasn't possible before we updated our MSRV to 1.65.)
Closes #664.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Upgrade a couple more dependencies
See merge request tpo/core/arti!1139
|
| | | | | | |
|
| | |/ / / |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
RPC: Terminology and error-handling conformance
Closes #826 and #825
See merge request tpo/core/arti!1136
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Now instead of hoping that buggy clients will detect a magic `id`,
we can simply tell them that they will get no `id` at all. If they
can't handle that case, no major harm is done: the connection will
get closed anyway.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since we're serializing everything in this format, let's enforce it.
With this change, we can no longer cram arbitrary junk into an
RPC error, so we have to clean up our handling of cancelled requests.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is a bit big, but it's not that _complicated_.
The idea here is that we use serde's "untagged" enum facility
when parsing our `Request`s, such that if parsing as a `Request`
fails, we parse as an `InvalidRequest` and try to report
what the problem was exactly.
This lets us determine the ID of a request (if it had one),
so we can report that ID in our error message. We can also
recover from a much broader variety of errors.
We now also conform with the spec reporting errors about
completely wrong json, requests without IDs, and so on.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Well, mostly correct. Our current serde implementation doesn't
tell us much about what went wrong with the object, so we can't
tell why we couldn't convert it into a Request.
Also, our output for the data field is not as the spec says:
we should bring them into conformance.
Part of #825.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These are experimental for now so that we can change them without
breaking semver.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The field is called "kinds", it is a list, and it holds strings
beginning with "arti:".
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Even though json-rpc uses "result" to mean "a successful return value
from a method", we can't: Rust's `Result` type is so pervasive
that confusion would be inevitable.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Always "method", never "command".
Always "authentication scheme", never "authentication method".
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
Bump Rust version in reproducible build scripts
See merge request tpo/core/arti!1137
|
| |/ / / /
| | | |
| | | |
| | | | |
Now that we require 1.65, Rust 1.63 is no longer sufficient.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Document some properties of semver
See merge request tpo/core/arti!1129
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Discussion
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1129#note_2895839
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Discussion
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1129#note_2895837
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Discussion
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1129#note_2895835
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1129#note_2895834
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
I think we've bedded in the new process.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
ExitPath: Add an explanation of WeightRole::Exit on non-exit circs
Closes #785
See merge request tpo/core/arti!1135
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
In one case, we use WeightRole::Exit on circuits that can't
actually be used to exit. This commit adds a comment to explain
why, so that we don't wonder about it in the future, and we have
some indication of whether it's still appropriate.
Closes #785
|
| |\ \ \ \ \ \
| |_|_|/ / /
|/| | | | |
| | | | | |
| | | | | | |
Remove misleading TODO.
See merge request tpo/core/arti!1130
|