<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src, branch arti-v1.2.8</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-09-16T15:00:43Z</updated>
<entry>
<title>tor-proto: Use Reader::take_all_but().</title>
<updated>2024-09-16T15:00:43Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-12T12:49:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=17927a8c9a13e027961b62b3c787387e8ed6f2e5'/>
<id>urn:sha1:17927a8c9a13e027961b62b3c787387e8ed6f2e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-bytes: Error: provide and call Error::incomplete_error</title>
<updated>2024-09-11T13:19:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-09-11T11:32:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=12c2fbe076cfcff8d734b24d6aef243d09c64d15'/>
<id>urn:sha1:12c2fbe076cfcff8d734b24d6aef243d09c64d15</id>
<content type='text'>
We introduce the new constructor and call it at the error generation
sites.  But there is still not yet any functional change.

Change the type of Truncated's field to be Sensitive.

The original reason for not doing this no longer applies, since we
don't generally want to open-code construction of this variant.
Conveniently, changing the type means we get to find all the sites
where one *is* constructed and adjust them.

In reader.rs and tor-proto we can just call incomplete_error.

In tor-cell, there's a call site where we previously provided an
underestimate, and where the Reader isn't available.  We adjust that
ad-hoc but this is fine because the error variant will
change.  (relaycell is using a Reader from from_slice.)
</content>
</entry>
<entry>
<title>tor-bytes: Add a deficit field to Error::Truncated (fmt)</title>
<updated>2024-09-10T09:10:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-09-05T16:04:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3642336ad06998f8eb8228883abc17a04186534d'/>
<id>urn:sha1:3642336ad06998f8eb8228883abc17a04186534d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-bytes: Add a deficit field to Error::Truncated</title>
<updated>2024-09-10T09:10:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-09-05T15:48:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2ae6523dbfc6f3b26ffdc2465f93afab6de3c542'/>
<id>urn:sha1:2ae6523dbfc6f3b26ffdc2465f93afab6de3c542</id>
<content type='text'>
This will allow us to fix #1592, but it doesn't do so yet.
</content>
</entry>
<entry>
<title>Fix typos</title>
<updated>2024-09-03T08:09:02Z</updated>
<author>
<name>Dimitris Apostolou</name>
<email>dimitris.apostolou@icloud.com</email>
</author>
<published>2024-09-03T08:09:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=676f913463b7d84f34dd6101b99d03ef79cf57ad'/>
<id>urn:sha1:676f913463b7d84f34dd6101b99d03ef79cf57ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move stream_peek into tor-async-utils</title>
<updated>2024-08-29T14:08:06Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2024-08-21T19:23:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2a11886271c41a0e2449c944b2f24db7f243d506'/>
<id>urn:sha1:2a11886271c41a0e2449c944b2f24db7f243d506</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extract tor_async_utils::oneshot into ::oneshot-fused-workaround</title>
<updated>2024-08-28T14:27:46Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2024-08-22T19:20:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=46f7f01092e6ac55e3e958dc3a2228b1d36e26a1'/>
<id>urn:sha1:46f7f01092e6ac55e3e958dc3a2228b1d36e26a1</id>
<content type='text'>
Having this in the `tor-async-utils` crate prevents us from doing both
of the following without introducing a circular dependency:

* using it in `tor-rtmock` (which we currently do, particularly in
  tests).
* using `tor-rtmock` to test things in `tor-async-utils`. We don't do
  this yet, but it is generally sensible to do so. In particular we
  want to move the `stream_peak` module there, which is currently tested
  with `tor-rtmock`.

Moving this into its own crate avoids this circular dependency.
</content>
</entry>
<entry>
<title>`tor_proto::channel`: update comment to point to `tor-chanmgr`</title>
<updated>2024-08-27T14:33:11Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2024-08-27T14:33:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=adada9b92f278cdb0a4a1e1fbdef91d0ec9c4a4d'/>
<id>urn:sha1:adada9b92f278cdb0a4a1e1fbdef91d0ec9c4a4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>`circuit` docs: delete comment about no flow-control etc</title>
<updated>2024-08-26T19:53:11Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2024-08-26T19:44:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=508d67054c282e9aedda4e5d1e700b8b9e5f3da1'/>
<id>urn:sha1:508d67054c282e9aedda4e5d1e700b8b9e5f3da1</id>
<content type='text'>
There is now (sendme-style) flow control, and some fairness
(via round robin scheduling of streams).
</content>
</entry>
<entry>
<title>`circuit` docs: delete "one big mutex" limitation</title>
<updated>2024-08-26T19:36:01Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2024-08-26T19:36:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e5918dfdc4f155ab0c973860a9522faa41f2137a'/>
<id>urn:sha1:e5918dfdc4f155ab0c973860a9522faa41f2137a</id>
<content type='text'>
There is a mutex for some of the "mutable state", but the reactor only
needs to lock it when adding a hop. It's not needed "to process a cell"
or when streams send. Probably not worth calling out here.
</content>
</entry>
</feed>
