| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
| |
| |
| |
| | |
XON/XOFF flow control will want to know how many data bytes are queued
on a stream, so the new types track that.
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\
| |
| |
| |
| | |
tor-proto: Handle incoming XON/XOFF messages
See merge request tpo/core/arti!3054
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Moves the `DataWriter` impl to immediately after the definition.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
We only want to try to decode it if the circuit is using window-based
flow control.
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
tor-proto: Fix 0-len buffer bug in `DataReader::poll_read`
Closes #2053
See merge request tpo/core/arti!3080
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Implement proposal 360 (limit HsDesc inflation opportunities)
Closes #2046
See merge request tpo/core/arti!3070
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |/ / /
| | |
| | |
| | | |
Made with https://crates.io/crates/typos-cli
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Done using:
```
for crate in $(./maint/list_crates | rg '^(tor|arti-)'); do
cargo set-version -p $crate 0.32.0
done
```
|
| | |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The non-{arti-,tor-} crates are:
```
./maint/list_crates | rg -v '^(tor|arti)'
oneshot-fused-workaround
slotmap-careful
test-temp-dir
fslock-guard
hashx
equix
caret
fs-mistrust
safelog
retry-error
```
We split them in the following categories:
* crates with no changes (no version bumps): None
```
maint/changed_crates -v "arti-v$LAST_VERSION" 2>&1 >/dev/null | grep -i "no change" | grep -v '\(tor\|arti\)-'
```
* crates that only have non-functional changes (bump the patch version):
- oneshot-fused-workaround
- slotmap-careful
- test-temp-dir
- fslock-guard
- hashx
- equix
- caret
- safelog
- retry-error
* crates where APIs were broken (bump minor):
- fs-mistrust (the implicit once_cell feature was removed)
The bumps from this commit were created using this script:
```
PATCH="
oneshot-fused-workaround
slotmap-careful
test-temp-dir
fslock-guard
hashx
equix
caret
safelog
retry-error
"
for crate in $PATCH; do
cargo set-version --bump patch -p $crate;
done
MINOR="
fs-mistrust
"
for crate in $MINOR; do
cargo set-version --bump minor -p $crate;
done
```
|
| | | |
|
| | |
| |
| |
| | |
See #2060.
|
| |\ \
| | |
| | |
| | |
| | | |
Run fixup-features, upgrade deps in preparation for release
See merge request tpo/core/arti!3083
|
| | | |
| | |
| | |
| | |
| | |
| | | |
I had to also bump `toml` to `0.8.23`, because `toml 0.8.22` is
incompatible with `serde_spanned 0.6.9` (which is automatically pulled
in because of the d-d upgrade).
|
| |/ /
| |
| |
| |
| | |
This appears to be a testing-only struct, so we can safely ignore
the warning.
|
| | |
| |
| |
| | |
We need to pass by value for the conflux case.
|
| | |
| |
| |
| | |
The function can return an error, but only if `conflux` is enabled.
|
| | |
| |
| |
| | |
With the latest rustc version, this now triggers a warning.
|