<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/channel/reactor.rs, branch arti-v1.1.9</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.9</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.9'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-08-04T17:37:28Z</updated>
<entry>
<title>proto: methods to wait until a channel/circuit is shut down.</title>
<updated>2023-08-04T17:37:28Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-08-04T17:32:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=64fca7e45fcca858689b4111e9cfce3a5e90eade'/>
<id>urn:sha1:64fca7e45fcca858689b4111e9cfce3a5e90eade</id>
<content type='text'>
The implementation here is perhaps excessively simple: we put
a `oneshot::Sender` in the `Reactor` object, and a
`Shared&lt;oneshot::Receiver&gt;` in the circuit or channel.  When
the reactor is dropped, any copy of the `Shared&lt;Receiver&gt;` will
yield `Err(Cancelled)`.

I'm marking these methods as experimental because I'm not sure I've
thought of all the implications here, and we might want to change
things around.

Down the road, these methods might want to yield a `Result&lt;&gt;`
indicating why the reactor was shut down.

This feature was inspired by a request from Saksham Mittal, and a
felt need while working on !1472.
</content>
</entry>
<entry>
<title>async-utils: rename SinkExt to SinkPrepareExt</title>
<updated>2023-04-19T16:38:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-18T19:05:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5cd5e6a3f8431eab20e43fcdaa4e93d9afc9b729'/>
<id>urn:sha1:5cd5e6a3f8431eab20e43fcdaa4e93d9afc9b729</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move functionality from tor_basic_utils to tor_async_utils</title>
<updated>2023-03-29T17:57:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-03-29T13:17:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a62affd66e34e98035bd14cb67b355065598a2d7'/>
<id>urn:sha1:a62affd66e34e98035bd14cb67b355065598a2d7</id>
<content type='text'>
This commit is mostly code movement; I'd recommend reviewing it
with git's `--color-moved` option.
</content>
</entry>
<entry>
<title>Rename OpenClientChan{Msg,Cell} =&gt; OpenChan{Msg,Cell}S2C</title>
<updated>2023-02-09T15:20:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-09T15:10:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0d772e5bede71c389b7eee58ce1b12c8651cba0f'/>
<id>urn:sha1:0d772e5bede71c389b7eee58ce1b12c8651cba0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: Do not parse forbidden commands on inbound cells.</title>
<updated>2023-02-09T15:20:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-08T14:41:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b7490ce3749f490c254ec89580522a8da520f88a'/>
<id>urn:sha1:b7490ce3749f490c254ec89580522a8da520f88a</id>
<content type='text'>
Unlike C tor, we treat unrecognized commands as reason to kill off
the connection entirely.  That's fine; if we need to add an
unrecognized command in the future, we can use VERSIONS to negotiate
it.

Also, if someday we want this code to support relay channels as
well, we can use some type trickery to have that work too.
</content>
</entry>
<entry>
<title>tor-cell: Rename ChanMsg and ChanCell-related types.</title>
<updated>2023-02-07T21:03:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-07T14:12:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d99c13067939bd256614796be0a50637c3a2b3eb'/>
<id>urn:sha1:d99c13067939bd256614796be0a50637c3a2b3eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-cell: Remove ChanMsg methods that are duplicated in ChanMsgClass.</title>
<updated>2023-02-07T21:03:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-07T13:48:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3c7aea723bc49dac09eeb4bcc1acb40f6094e2d5'/>
<id>urn:sha1:3c7aea723bc49dac09eeb4bcc1acb40f6094e2d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-cell: Use macro to generate ChanMsg too.</title>
<updated>2023-02-07T21:03:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-06T19:51:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=71445f7ace187d824e535949dfbe781c7db03197'/>
<id>urn:sha1:71445f7ace187d824e535949dfbe781c7db03197</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: reactor tests: Use debug fmt on an error</title>
<updated>2022-12-12T16:40:51Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-12-12T15:36:56Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8fea4dd6d32dc5e41698ebc06d2466b0ce5845c6'/>
<id>urn:sha1:8fea4dd6d32dc5e41698ebc06d2466b0ce5845c6</id>
<content type='text'>
In tests, debug fmt is usually appropriate.

Found while looking for a candidate for
  https://gitlab.torproject.org/tpo/core/arti/-/issues/680
</content>
</entry>
<entry>
<title>tor-linkspec: Remove the old OwnedFoo::new() functions</title>
<updated>2022-10-06T19:13:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-05T18:08:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=299ebd729d697cde69dc720e358abf933af2a054'/>
<id>urn:sha1:299ebd729d697cde69dc720e358abf933af2a054</id>
<content type='text'>
These are now builders.
</content>
</entry>
</feed>
