| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
We now take an enum describing whether we are doing no negotiation,
HsV3 negotiation, or full negotiation. This lets us do away with
the notions of default relay crypto, and of declaring post-facto
that no negotiation has occurred.
|
| | | |
| | |
| | |
| | |
| | | |
Instead call it compatible_with_cgo, which is what we actually
care about in this context.
|
| | | |
| | |
| | |
| | | |
Let's see if it works!
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
Since these will be negotiated (or determined as part of negotiation)
they belong in HopSettings.
|
| | | | |
|
| |\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | | |
Apply tcyrus's patches from #2050
Closes #2050
See merge request tpo/core/arti!3104
|
| | | |
| | |
| | |
| | |
| | | |
`tor_llcrypto::pk::ed25519::PublicKey` is based on `ed25519_dalek::VerifyingKey`
and not `ed25519_dalek::SigningKey`.
|
| |/ / |
|
| |\ \
| | |
| | |
| | |
| | | |
tor-keymgr: Add err::Error::KeystoreNotConfigured
See merge request tpo/core/arti!3103
|
| |/ / |
|
| |\ \
| | |
| | |
| | |
| | | |
tor-proto: Add support for sending XON messages
See merge request tpo/core/arti!3099
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
`DataReader` -> `DataReaderInner`
`DataReaderNew` -> `DataReader`
This means that the `DataReader` now supports XON/XOFF flow control
using the `XonXoffReader`.
This means that it can receive requests for a new drain rate from the
reactor, and can send the new drain rate to the reactor once there is no
more stream data queued.
|
| | | |
| | |
| | |
| | | |
This will later become `DataReader`.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The idea here is that the reactor builds an `XonXoffReaderCtrl` for the
new stream, and the `XonXoffReaderCtrl` can receive notifications from
the reactor's `StreamFlowControl`. The `XonXoffReaderCtrl` can be
combined with any `AsyncRead` to build a `XonXoffReader`, essentially
wrapping the `AsyncRead` with a type that handles XON/XOFF flow control.
Essentially, the reactor gives you a type that allows you to add
XON/XOFF flow control support to any `AsyncRead`.
We will add this `XonXoffReader` to the `DataReader` in a future commit.
|
| | | |
| | |
| | |
| | |
| | | |
Nothing actually causes an XON to be sent yet. But this adds the code so
that anything holding the `StreamTarget` can request to send an XON.
|
| |/ / |
|
| |\ \
| | |
| | |
| | |
| | | |
maint: Avoid x-prefix in comparisons.
See merge request tpo/core/arti!3100
|
| |/ /
| |
| |
| |
| |
| |
| | |
This applies the fixes suggested by shellcheck (the x-prefixes were
causing the `shellcheck` job to fail; see [SC2268]).
[SC2268]: https://www.shellcheck.net/wiki/SC2268
|
| |\ \
| | |
| | |
| | |
| | | |
tor-proto,tor-cell: Code refactoring and add support for sending XOFF messages
See merge request tpo/core/arti!3094
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
XON/XOFF flow control will want to know how many data bytes are queued
on a stream, so the new types track that.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
It now performs some validation and can return a `Result`.
We perform validation here since different cell formats may have
different maximum data lengths in the future, and `UnparsedRelayMsg`
doesn't expose the cell format so it's difficult to perform this
validation at a higher layer.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
As we continue adding more functionality to streams like flow control,
we'll have more objects to pass around. This tries to group them
together.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The plan is to use `StreamSendFlowControl` (now `StreamFlowControl`) for
both outgoing and incoming directions, so a name change is needed.
This also updates some comments, and renames some related struct fields
that have the word "send" in them.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This allows us to extend the command to implement different flow control
methods. We could add new command variants for new flow control methods
instead, but I think it makes sense to have them be a single command as
they will always have a stream ID / hop location in common. This also
helps us keep the flow control logic in one place.
|
| | | |
| | |
| | |
| | |
| | | |
I don't see any further changes being needed for these types, and it
simplifies a lot of future code in tor-proto that uses these types.
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
conflux: Add conflux tests for client-side SWITCH handling
See merge request tpo/core/arti!3091
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `Ord` impl of `OooRelayMsg` already "reverses" the seqno comparison,
which means previously we were double-reversing it (leading to the ooo
cell heap logic being broken in cases where its size was > 1).
Caught by the new conflux switch handling tests.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The two mock exit legs will use this channel to notify each other of the
receipt of BEGIN cells. This will enable us to extend the tests to
support writing cells to the stream (but only after the stream is
opened).
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
This abolishes the overly-long tuple used in these tests.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
I am moving these out of the `relays` list, in preparation for a minor
refactoring around that part.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This is about to become slightly more complex, as the mock exit will
support writing to the stream too.
|
| |/ / /
| | |
| | |
| | |
| | | |
I will another test for exit-to-client transmissions, so I am
preemptively renaming its counterpart.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
config-path, dirmgr, general-addr: Remove unnecessary parentheses.
See merge request tpo/core/arti!3096
|
| | | | | |
|
| | |/ /
| | |
| | |
| | | |
This resolves some nightly clippy warnings.
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
arti: raw: Rename `arti keys-raw remove-by-path`
See merge request tpo/core/arti!3095
|