<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-chanmgr/src/builder.rs, branch derive-traits</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-02-16T16:55:47Z</updated>
<entry>
<title>tor-chanmgr: use Bug types.</title>
<updated>2022-02-16T16:55:47Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-15T19:19:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=caa70fde35b6a973ae2b29bf4760c5e019c14911'/>
<id>urn:sha1:caa70fde35b6a973ae2b29bf4760c5e019c14911</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'error-improvements' into 'main'</title>
<updated>2022-02-08T14:42:30Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2022-02-08T14:42:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=109515ecfe587a65f0920e074cdd593d3810cd97'/>
<id>urn:sha1:109515ecfe587a65f0920e074cdd593d3810cd97</id>
<content type='text'>
Hopefully uncontroversial improvements to new Error code

See merge request tpo/core/arti!291</content>
</entry>
<entry>
<title>Expire channels that have been unused for too long</title>
<updated>2022-02-05T03:52:51Z</updated>
<author>
<name>Yuan Lyu</name>
<email>lyuyuan92@gmail.com</email>
</author>
<published>2022-02-04T04:36:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f6f732a47818f789db76ad692d0025de1051072f'/>
<id>urn:sha1:f6f732a47818f789db76ad692d0025de1051072f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make SpawnError wrappers contain a 'spawning' string</title>
<updated>2022-02-04T21:06:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-04T20:39:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=070e52653d9a49fe561e9ce119881f696baa325e'/>
<id>urn:sha1:070e52653d9a49fe561e9ce119881f696baa325e</id>
<content type='text'>
(By our convention, these errors should say what we were trying to
spawn when the error occurred.)
</content>
</entry>
<entry>
<title>channel errors: Include what we were doing</title>
<updated>2022-02-04T15:03:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-02-04T15:03:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6c2f9dac16f3c550b2286fad3b8dce97cb7ba8e0'/>
<id>urn:sha1:6c2f9dac16f3c550b2286fad3b8dce97cb7ba8e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-chanmgr: Handle IO errora in the new style</title>
<updated>2022-02-04T14:42:37Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-01-26T15:44:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2a471ffd1a1d70ed585067d2e1dc1bf94b8f3103'/>
<id>urn:sha1:2a471ffd1a1d70ed585067d2e1dc1bf94b8f3103</id>
<content type='text'>
Two ? in the tests become expects, which will do.  That avoids having
to construct a proper error with context here.
</content>
</entry>
<entry>
<title>tor-chanmgr: Add bootstrap/status reporting.</title>
<updated>2022-01-18T18:06:08Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-01-17T22:11:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c162e57e29a3bfd1f0e793b25d8c986a96a0a474'/>
<id>urn:sha1:c162e57e29a3bfd1f0e793b25d8c986a96a0a474</id>
<content type='text'>
The information is pretty basic here: we use "have we been able to
connect/TLS-handshake/Tor-handshake" as a proxy for "are we on the
internet? Are we on a reasonably unfiltered part of the internet?"

Eventually we'll want to make the information gathered and exported
more detailed: I've noted a few places in the code.  For now,
however, this is about as good as C Tor does today, and it should be
a good starting point.

This uses a slightly different design from tor-dirmgr.  Instead of
exporting an entire state structure via `postage::watch`, it exports
only the parts of that structure which the user is supposed to
read.  I think that's more reasonable in this case because most of
the possible internal transitions in the tor-chanmgr state don't
cause a change in the exposed status.
</content>
</entry>
<entry>
<title>chanmgr: get rid of Arc around Channel</title>
<updated>2022-01-13T13:12:29Z</updated>
<author>
<name>Ian Jackson</name>
<email>iwj@torproject.org</email>
</author>
<published>2022-01-13T13:12:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9b723cba53852ecd3505c0cabc42ca3b5d31ad34'/>
<id>urn:sha1:9b723cba53852ecd3505c0cabc42ca3b5d31ad34</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-chanmgr: Fix happy eyeballs comment grammar in builder.rs</title>
<updated>2021-12-14T18:45:19Z</updated>
<author>
<name>Neel Chauhan</name>
<email>neel@neelc.org</email>
</author>
<published>2021-12-14T18:45:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e67d4e08213094c74685da72db26a4e01c4d8b00'/>
<id>urn:sha1:e67d4e08213094c74685da72db26a4e01c4d8b00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make TlsConnector wrap TCP connections, not create its own</title>
<updated>2021-12-07T17:00:40Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2021-12-02T11:44:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b14c5f370eef0a4fc1d2504ce54de1a921472567'/>
<id>urn:sha1:b14c5f370eef0a4fc1d2504ce54de1a921472567</id>
<content type='text'>
`tor-rtcompat`'s `TlsConnector` trait previously included a method to
create a TLS-over-TCP connection, which implied creating a TCP stream
inside that method. This commit changes that, and makes the function
wrap a TCP stream, as returned from the runtime's `TcpProvider` trait
implementation, instead.

This means you can actually override `TcpProvider` and have it apply to
*all* connections Arti makes, which is useful for issues like arti#235
and other cases where you want to have a custom TCP stream
implementation.

This required updating the mock TCP/TLS types in `tor-rtmock` slightly;
due to the change in API, we now store whether a `LocalStream` should
actually be a TLS stream inside the stream itself, and check this
property on reads/writes in order to detect misuse. The fake TLS wrapper
checks this property and removes it in order to "wrap" the stream,
making reads and writes work again.
</content>
</entry>
</feed>
