<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/channel.rs, 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-18T18:28:07Z</updated>
<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: Make Channel::send_control() pub(crate) for testing</title>
<updated>2026-08-18T16:13:57Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-08-13T15:32:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=619dbdc2bd5342157b27d56f181ea88ad7b5f13b'/>
<id>urn:sha1:619dbdc2bd5342157b27d56f181ea88ad7b5f13b</id>
<content type='text'>
The relay circuit reactor tests will soon need the ability to send
control messages (for allocating a circuit id for the circuit reactor
under test).
</content>
</entry>
<entry>
<title>proto: Rename CircId and UniqId variable name</title>
<updated>2026-08-03T18:25:23Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-07-29T14:03:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cc838ad3312d491c406fdc06c2971c006c4cf5f5'/>
<id>urn:sha1:cc838ad3312d491c406fdc06c2971c006c4cf5f5</id>
<content type='text'>
A CircId is now a circ_id and a UniqId is a unique_id so we stop
confusing them in the code.

Furthermore, channel_id that are CircId are now circ_id. Channel IDs are
different and encoded internally into a UniqId.

This is the first step to clarify semantic before we change the logging
to log both unique ID and circ ID.

No behavior change.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-proto: add 'test_utils' mod for channel tests</title>
<updated>2026-07-30T03:41:41Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-07-30T02:58:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=be497c5c67c78ae4161038e8e0a3f2af5a7b66ec'/>
<id>urn:sha1:be497c5c67c78ae4161038e8e0a3f2af5a7b66ec</id>
<content type='text'>
These help to establish connected channel objects to be used for tests.
</content>
</entry>
<entry>
<title>proto: Replace CircuitRx{Sender,Receiver} with new channel type</title>
<updated>2026-06-08T14:07:16Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-05-13T13:53:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6b206002d3aaadeee3d2442637c62d1b752b0960'/>
<id>urn:sha1:6b206002d3aaadeee3d2442637c62d1b752b0960</id>
<content type='text'>
This is needed for relays as part of #2490.

Note that changing this type affects the client implementation too (i.e.
clients will start prioritizing inbound DESTROY, discarding any queued
data without forwarding it to their local streams). But that's okay,
because it will generally only affect misbehaving clients, and clients
unlucky enough to encounter a hibernating relay.
</content>
</entry>
<entry>
<title>proto: Wrap PeerInfo in Arc&lt;&gt;</title>
<updated>2026-04-23T14:45:29Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-04-23T09:32:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0211b9058f4b1adabcc7953c6055bd40fac08664'/>
<id>urn:sha1:0211b9058f4b1adabcc7953c6055bd40fac08664</id>
<content type='text'>
To avoid copying the same information for every circuit,
as suggested by @opara in
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3906#note_3399497
</content>
</entry>
<entry>
<title>proto: Remove expect(unused) from channel PeerInfo</title>
<updated>2026-04-23T14:43:58Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-04-21T10:39:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=faf4c502309ffcdb24c07077815abf29dac9c1a9'/>
<id>urn:sha1:faf4c502309ffcdb24c07077815abf29dac9c1a9</id>
<content type='text'>
This is used in the relay circuit reactor.
</content>
</entry>
<entry>
<title>proto: Add an accessor for the PeerInfo of a channel</title>
<updated>2026-04-23T14:43:58Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-04-21T10:25:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=759a60ee8a4f4d2670bd5136595f0e6cbd0290bf'/>
<id>urn:sha1:759a60ee8a4f4d2670bd5136595f0e6cbd0290bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: give our rsa ident to the channel reactor</title>
<updated>2026-04-16T14:20:17Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-04-16T14:17:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=49f18162c533cc921b712aa4db8ace458fa62d04'/>
<id>urn:sha1:49f18162c533cc921b712aa4db8ace458fa62d04</id>
<content type='text'>
This will be needed for ntor handshakes.
</content>
</entry>
<entry>
<title>proto: Remove re-export of MsgBuf in unit tests</title>
<updated>2026-04-14T18:38:50Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-04-08T18:33:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=59cd1dc3dad1a428eb0fd3236ae9b71760d88353'/>
<id>urn:sha1:59cd1dc3dad1a428eb0fd3236ae9b71760d88353</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
</feed>
