<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/util, branch arti-v0.6.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.6.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.6.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-07-11T15:18:51Z</updated>
<entry>
<title>tor-proto: Stop using write_infallible in handshake code.</title>
<updated>2022-07-11T15:18:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-11T15:04:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fbb6484025ac024642afbeef6734d88e35210673'/>
<id>urn:sha1:fbb6484025ac024642afbeef6734d88e35210673</id>
<content type='text'>
This change was a bit annoying, since most of this code _can't_ fail,
and so the only reasonable response is to wrap the input in an
internal error... except for one case where we're actually encoding
a caller-provided message, so we _do_ want to wrap the EncodeError
from tor_bytes.
</content>
</entry>
<entry>
<title>tor-proto: split and elaborate tor_bytes::Error instances</title>
<updated>2022-06-23T19:42:45Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-23T19:42:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=38004a4f4dd3aa99b81b6585039e81dc77c17f32'/>
<id>urn:sha1:38004a4f4dd3aa99b81b6585039e81dc77c17f32</id>
<content type='text'>
Some of these were for decoding particular objects (we now say
what kind of objects), and some were unrelated tor_cert errors that
for some reason we had shoved into a tor_bytes::Error.

There is now a separate tor_cert::CertError type, independent from
tor_cert's use of `tor_bytes::Error` for parsing errors.
</content>
</entry>
<entry>
<title>tor-proto: Split CellErr based on activity.</title>
<updated>2022-06-23T18:59:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-23T18:59:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=35b7b8a47ad96f5eee032fab7900b3b29bf2fa73'/>
<id>urn:sha1:35b7b8a47ad96f5eee032fab7900b3b29bf2fa73</id>
<content type='text'>
Failing to encode is fundamentally different from failing to
decode. We now treat those separately, and describe _what_ we failed
to encode or decode.
</content>
</entry>
<entry>
<title>tor-proto: clean up error names and messages</title>
<updated>2022-06-23T18:35:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-23T18:35:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=92fd9fb0dec25ddd45a4428603db99bad8d72661'/>
<id>urn:sha1:92fd9fb0dec25ddd45a4428603db99bad8d72661</id>
<content type='text'>
This avoids adding additional information for now; that will come on
the next commits.
</content>
</entry>
<entry>
<title>Merge branch 'display_source_cleanup' into 'main'</title>
<updated>2022-06-21T19:34:27Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2022-06-21T19:34:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4e3537746f4aa5d4df4abd5cb2be1385a4baa64b'/>
<id>urn:sha1:4e3537746f4aa5d4df4abd5cb2be1385a4baa64b</id>
<content type='text'>
Do not include error source() in display() format.

See merge request tpo/core/arti!598</content>
</entry>
<entry>
<title>tor-proto: err: Provide ChannelClosed as a separate unit error</title>
<updated>2022-06-21T18:19:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-06-16T17:16:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=13ca24ba3ae5a17744355b26a1706bd5aaa07891'/>
<id>urn:sha1:13ca24ba3ae5a17744355b26a1706bd5aaa07891</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do not include error source() in display() format.</title>
<updated>2022-06-21T18:14:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-21T18:14:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=08d9bbf33b9fff8aa33a823422aa4e323137be07'/>
<id>urn:sha1:08d9bbf33b9fff8aa33a823422aa4e323137be07</id>
<content type='text'>
According to doc/Errors.md, and in keeping with current best
practices, we should not include display an error's `source()` as
part of that error's display method.  Instead, we should let the
caller decide to call source() and display that error in turn.

Part of #323.
</content>
</entry>
<entry>
<title>Change to exhaustive match.</title>
<updated>2022-06-08T15:02:22Z</updated>
<author>
<name>Ian Jackson</name>
<email>iwj@torproject.org</email>
</author>
<published>2022-06-08T15:00:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=af92d72b3910a4f5a0b214bde38d6488caa8ce22'/>
<id>urn:sha1:af92d72b3910a4f5a0b214bde38d6488caa8ce22</id>
<content type='text'>
</content>
</entry>
<entry>
<title>try to differentiate transient from nontransient error</title>
<updated>2022-06-08T15:02:01Z</updated>
<author>
<name>trinity-1686a</name>
<email>trinity@deuxfleurs.fr</email>
</author>
<published>2022-06-02T17:43:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6c6998a65b815ffe5c20b5c1db48d76af55648e9'/>
<id>urn:sha1:6c6998a65b815ffe5c20b5c1db48d76af55648e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use testing_rng() in tests throughout our crates.</title>
<updated>2022-06-02T18:56:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-02T17:31:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=967ea67b7dfc158f29cf449eb09bac89acdee46b'/>
<id>urn:sha1:967ea67b7dfc158f29cf449eb09bac89acdee46b</id>
<content type='text'>
This only affects uses of thread_rng(), and affects them all more or
less indiscriminately.  One test does not work with
ARTI_TEST_PRNG=deterministic; the next commit will fix it.
</content>
</entry>
</feed>
