<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/stream, 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-23T13:59:02Z</updated>
<entry>
<title>tor-proto: Make some imports more precise</title>
<updated>2023-08-23T13:59:02Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-08-23T13:57:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d5fce95e1ebadbc3837aee32b4a19c2d4a7247d0'/>
<id>urn:sha1:d5fce95e1ebadbc3837aee32b4a19c2d4a7247d0</id>
<content type='text'>
A warning is getting in my way when I run
  cargo clippy -p tor-hsservice --all-features

See also
  https://gitlab.torproject.org/tpo/core/arti/-/issues/1006#note_2932088
</content>
</entry>
<entry>
<title>tor-proto: Make update_state() and discard() return Result&lt;(), Bug&gt;.</title>
<updated>2023-08-09T12:07:35Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-09T12:07:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6073a4f7679251ff7e97501cd4a85fa92d12355d'/>
<id>urn:sha1:6073a4f7679251ff7e97501cd4a85fa92d12355d</id>
<content type='text'>
These functions only ever return `Bug` errors.
</content>
</entry>
<entry>
<title>tor-proto: Implement IncomingStream::discard().</title>
<updated>2023-08-08T14:25:45Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-08T14:18:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a0daa9adb6b99c516835108cfe13512cff50bb13'/>
<id>urn:sha1:a0daa9adb6b99c516835108cfe13512cff50bb13</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: Replace boolean flags with an IncomingStreamState enum.</title>
<updated>2023-08-08T14:25:42Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-08T14:13:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4507c33479b048344b19e55f057b46b903d26c4c'/>
<id>urn:sha1:4507c33479b048344b19e55f057b46b903d26c4c</id>
<content type='text'>
This commit introduces an `IncomingStreamState` enum, which indicates
whether the stream was accepted, discarded, or rejected, or if it is
still pending. The `is_rejected`/`is_accepted` boolean flags are no
longer needed.

Without this change, we'd need to introduce yet another boolean flag
when we implement `discard()` (for the "discarded" state).
</content>
</entry>
<entry>
<title>Merge branch 'tor-proto-incoming-todo' into 'main'</title>
<updated>2023-08-08T13:13:31Z</updated>
<author>
<name>gabi-250</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-08T13:13:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fa595875ecb43fed82a193c2df3dd28ba5ea2256'/>
<id>urn:sha1:fa595875ecb43fed82a193c2df3dd28ba5ea2256</id>
<content type='text'>
tor-proto: Replace IncomingStreamMsg with IncomingStreamRequest.

See merge request tpo/core/arti!1477</content>
</entry>
<entry>
<title>tor-proto: Fix broken docs.</title>
<updated>2023-08-08T12:14:39Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-08T12:14:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7446ed08b6f590eb3e62b2fa9c44a9ea758c6220'/>
<id>urn:sha1:7446ed08b6f590eb3e62b2fa9c44a9ea758c6220</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: Make it obvious that we're discarding a Result.</title>
<updated>2023-08-08T12:07:45Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-08T12:07:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a74e4cf661355cfb9a2b7fa800612cf8125d4345'/>
<id>urn:sha1:a74e4cf661355cfb9a2b7fa800612cf8125d4345</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: Make StreamTarget::close return the oneshot::Receiver instead of blocking.</title>
<updated>2023-08-08T12:04:01Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-08T12:04:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4fb5121a77c42ce094b736c1f6f49ec72185be37'/>
<id>urn:sha1:4fb5121a77c42ce094b736c1f6f49ec72185be37</id>
<content type='text'>
Instead of having 2 version of `StreamTarget::close` (a blocking one and
a nonblocking one), we can just return the `oneshot::Receiver` for
receiving the reactor's response and let the caller of
`StreamTarget::close` decide whether to block.

This allows us to reduce some code duplication in the `IncomingStream`
implementation.
</content>
</entry>
<entry>
<title>tor-proto: Make take_inner() use mut_inner() to check the inner value.</title>
<updated>2023-08-08T11:47:13Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-08T11:47:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2b2f0f606592badcbfa2de3f971f6b4434a96483'/>
<id>urn:sha1:2b2f0f606592badcbfa2de3f971f6b4434a96483</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: Replace IncomingStreamMsg with IncomingStreamRequest.</title>
<updated>2023-08-07T15:45:49Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-07T15:45:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=41fab65de12445d772aba0a1131e1549c873316f'/>
<id>urn:sha1:41fab65de12445d772aba0a1131e1549c873316f</id>
<content type='text'>
The two enums essentially serve the same purpose, so we don't
need both of them.

This also addresses the TODO that says we should return an error if
`accept_data` is called for a RESOLVE stream.
</content>
</entry>
</feed>
