<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-08-19T17:29:14Z</updated>
<entry>
<title>tor-proto: disable flowctrl sidechannel mitigations for relays</title>
<updated>2026-08-19T17:29:14Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-08-19T17:29:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=11da332e886f642c4402fcb288be69036753ec90'/>
<id>urn:sha1:11da332e886f642c4402fcb288be69036753ec90</id>
<content type='text'>
The end result should be:

1. outgoing streams - enable sidechannel mitigations
2. incoming hs streams - enable sidechannel mitigations
3. incoming exit streams - disable sidechannel mitigations
</content>
</entry>
<entry>
<title>tor-proto: add `StreamHandler::flowctrl_sidechannel_mitigations()`</title>
<updated>2026-08-19T17:27:23Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-08-19T17:27:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f32fbb29337808e98ac3832a04bcb8e77f65b749'/>
<id>urn:sha1:f32fbb29337808e98ac3832a04bcb8e77f65b749</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: add `WithSidechannelMitigations` for flow ctrl</title>
<updated>2026-08-19T17:21:06Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-08-19T17:17:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=12d730da58224c38e966fc4678b61e8b3f289fa9'/>
<id>urn:sha1:12d730da58224c38e966fc4678b61e8b3f289fa9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: make 'testing_exports' available to own unit tests</title>
<updated>2026-08-18T18:28:07Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-08-18T18:24:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1e4653ab71c3cad580a0564924b9764bdc1a7ea4'/>
<id>urn:sha1:1e4653ab71c3cad580a0564924b9764bdc1a7ea4</id>
<content type='text'>
This fixes:

```text
$ cargo test -p tor-proto --features relay
error[E0603]: enum import `CtrlMsg` is private
   --&gt; crates/tor-proto/src/relay/reactor.rs:463:33
    |
463 |             use crate::channel::CtrlMsg;
    |                                 ^^^^^^^ private enum import
    |
note: the enum import `CtrlMsg` is defined here...
   --&gt; crates/tor-proto/src/channel.rs:117:5
    |
117 | use testing_exports::*;
    |     ^^^^^^^^^^^^^^^^^^
note: ...and refers to the enum import `CtrlMsg` which is defined here...
&lt;snip&gt;
```

There are a few ways we could fix this, but I don't see an advantage of
one over another.
</content>
</entry>
<entry>
<title>proto: Extend test to check DESTROY is sent to the next hop</title>
<updated>2026-08-18T16:13:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-08-18T10:18:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d849b8b84285eb7ae579c0f58988f8be06cde4e4'/>
<id>urn:sha1:d849b8b84285eb7ae579c0f58988f8be06cde4e4</id>
<content type='text'>
This extends the `destroy_from_client()` test to also check that a
DESTROY received from the client (or, more generally speaking, from the
"inbound channel") is actually forwarded to the next hop.

The reason the `assert_destroy_sent()` assertion is commented out is
specified in the TODO that precedes it (tldr: testing the DESTROY
behaviour involves both the channel reactor and the circuit reactor, and
our test setup is currently quite limited, in that it doesn't actually
exercise the right channel reactor code paths for the *inbound*
channel). I plan to address this soon.
</content>
</entry>
<entry>
<title>proto: Move assert_cell_is_destroy macro out of helper function</title>
<updated>2026-08-18T16:13:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-08-18T10:16:56Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5a34a40326a1d1e014725bac526a4505f4cf7691'/>
<id>urn:sha1:5a34a40326a1d1e014725bac526a4505f4cf7691</id>
<content type='text'>
I am about to need this in a test.
</content>
</entry>
<entry>
<title>proto: Add comments explaining why the tests use DestroyDirection::Backward</title>
<updated>2026-08-18T16:13:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-08-18T10:09:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fa6e21cc03b008662cc906ae59f639ba9985368c'/>
<id>urn:sha1:fa6e21cc03b008662cc906ae59f639ba9985368c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>proto: Remove misleading comment and rename misnamed variable</title>
<updated>2026-08-18T16:13:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-08-18T10:08:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f0266082010685d29be0c7f386b116adb2467581'/>
<id>urn:sha1:f0266082010685d29be0c7f386b116adb2467581</id>
<content type='text'>
This fixes an old bad copy-paste that I've just noticed.
</content>
</entry>
<entry>
<title>proto: Clarify what read_{inbound,outbound} are for</title>
<updated>2026-08-18T16:13:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-08-18T09:42:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e9e6cf8a3047bb4d222894969f9a1fba4a710acc'/>
<id>urn:sha1:e9e6cf8a3047bb4d222894969f9a1fba4a710acc</id>
<content type='text'>
This adds an example suggested by opara.
</content>
</entry>
<entry>
<title>proto: Update the tests to check DESTROY is only sent when needed</title>
<updated>2026-08-18T16:13:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-08-13T16:27:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8bcc721b73efafbf1a0ca95610afb044434f07a5'/>
<id>urn:sha1:8bcc721b73efafbf1a0ca95610afb044434f07a5</id>
<content type='text'>
</content>
</entry>
</feed>
