aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-proto/src/client/stream
Commit message (Collapse)AuthorAgeFilesLines
* proto: Add crate-level exports for two extra stream types (fmt)Gabriela Moldovan2026-06-172-2/+2
|
* proto: Move RateLimitedWriter to tor-async-utilsDavid Goulet2026-06-081-2/+3
| | | | Signed-off-by: David Goulet <[email protected]>
* proto: Set the ClientDataStreamCtrl to None for relay streams (fmt)Gabriela Moldovan2026-06-081-5/+7
|
* proto: Set the ClientDataStreamCtrl to None for relay streamsGabriela Moldovan2026-06-081-3/+3
| | | | Previously this would panic.
* proto: Make the ClientDataStreamCtrl optional throughoutGabriela Moldovan2026-06-081-12/+22
| | | | | | | We will reuse `DataStream` for relay exit streams, and those aren't going to have a `ClientDataStreamCtrl`. Part of #2557
* Merge branch 'minor-doc-fix' into 'main'gabi-2502026-06-021-1/+1
|\ | | | | | | | | proto: Fix typo in ResolveCmdChecker docs See merge request tpo/core/arti!4035
| * proto: Fix typo in ResolveCmdChecker docsGabriela Moldovan2026-05-281-1/+1
| | | | | | | | This returns a boxed `ResolveCmdChecker`, not a `DataCmdChecker`.
* | proto: Replace outdated references to RawCellStreamGabriela Moldovan2026-05-282-3/+3
|/ | | | | `RawCellStream` was removed long ago, in c559754116678866eabe525f5b189b50cc78b5cc.
* proto: Allow DataStreamCtrl and ClientTunnel to be RPC objects.Nick Mathewson2026-04-281-0/+5
|
* proto: Fix relay/hs-service feature gatingGabriela Moldovan2025-12-081-1/+1
| | | | | Without this, `tor-proto` doesn't compile if you enable the `relay` feature but not `hs-service`.
* proto: Add a Tunnel::Relay variant for StreamTargetGabriela Moldovan2025-11-241-5/+13
|
* proto: Move raw under top-level stream modGabriela Moldovan2025-11-241-164/+0
|
* proto: Move StreamTarget to stream moduleGabriela Moldovan2025-11-241-1/+2
|
* proto: Move IncomingStream* types to shared moduleGabriela Moldovan2025-11-241-299/+0
|
* proto: Move CloseStreamBehavior to top-level stream moduleGabriela Moldovan2025-11-141-1/+1
|
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* proto: Replace ClientCircSyncView in IncomingStreamRequestFilterGabriela Moldovan2025-10-301-2/+2
|
* proto: Move dumb pipes to top-lvl stream module (fmt)Gabriela Moldovan2025-10-211-1/+1
|
* proto: Move dumb pipes to top-lvl stream moduleGabriela Moldovan2025-10-212-257/+1
|
* proto: Rename data cmd checkers to {Inbound,Outbound}DataCmdCheckerGabriela Moldovan2025-10-161-4/+4
| | | | | | The previous "incoming" terminology was rather ambiguous. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3348#note_3275337
* proto: Fix docs to refer to the right stream:: paths.Gabriela Moldovan2025-10-161-1/+1
|
* proto: Move IncomingDataCmdChecker to top-level stream module.Gabriela Moldovan2025-10-161-48/+0
| | | | | | | This will be used by relays too (for validating incoming messages on streams). This is just code motion, so it's best reviewed with `--color-moved`.
* proto: Split out DataCmdChecker into multiple types (fmt).Gabriela Moldovan2025-10-161-1/+1
|
* proto: Split out DataCmdChecker into multiple types.Gabriela Moldovan2025-10-161-11/+46
| | | | | | | | | | | The incoming one will be used for the exit relay implementation too. Also, with this change, receiving `CONNECTED` on an incoming stream will result in a clearer error message. Previously, the check against receiving `CONNECTED` on an incoming stream was bundled with the double-CONNECTED check for client data streams, so in the incoming stream case, the error message was misleading ("Received CONNECTED twice on a stream.").
* proto: Do not fully-qualify Arc.Gabriela Moldovan2025-10-161-3/+3
| | | | | `Arc` is already in scope, and not fully-qualifying it makes it more readable.
* proto: Replace fully-qualified paths with use (fmt).Gabriela Moldovan2025-10-162-8/+2
|
* proto: Replace fully-qualified paths with use.Gabriela Moldovan2025-10-162-8/+8
|
* proto: Reformat imports post-move.Gabriela Moldovan2025-10-163-3/+3
|
* proto: Avoid crate-pub reexports of shared types from the client module.Gabriela Moldovan2025-10-163-12/+11
| | | | | This makes it easier to see which parts are implementation-agnostic (i.e. do not import from crate::client).
* proto: Move cmdchecker under top-level stream module.Gabriela Moldovan2025-10-161-55/+0
| | | | | The CmdChecker will be used by relays too, so I am moving it to the shared `stream` module.
* proto: Move flow_ctrl module under stream (fmt).Gabriela Moldovan2025-10-071-4/+2
|
* proto: Move flow_ctrl module under stream.Gabriela Moldovan2025-10-079-1066/+2
| | | | This will be used by exits too, so I am moving it out of `client`.
* tor-proto: add some trace logs to XON/XOFF codeSteven Engler2025-09-221-0/+9
|
* tor-proto: fix a hard-coded `cc_xoff_client`Steven Engler2025-09-182-4/+15
| | | | This should be `cc_xoff_exit` if we're an exit.
* tor-proto: rename `take_capacity_to_send` to `about_to_send`Steven Engler2025-09-183-10/+8
| | | | | | XON/XOFF flow control doesn't have the idea of taking "capacity". But it does need to know the messages we're about to send so that it can count the number of stream bytes that we've sent.
* tor-proto: add checks for receiving XON/XOFF before data sentSteven Engler2025-09-171-0/+14
|
* tor-proto: share the `FlowCtrlParameters` across streamsSteven Engler2025-09-172-6/+7
| | | | | Streams at the same circuit hop will now share a single `Arc<FlowCtrlParameters>`.
* tor-proto: improved the `SidechannelMitigation` testsSteven Engler2025-09-171-67/+67
|
* tor-proto: enabled some tests for `SidechannelMitigation`Steven Engler2025-09-171-12/+9
|
* tor-proto: update some comments for `SidechannelMitigation`Steven Engler2025-09-171-3/+41
|
* tor-proto: add some tests for XON/XOFF `SidechannelMitigation`Steven Engler2025-09-161-0/+81
|
* tor-proto: rename `FlowCtrlMethods` to `FlowCtrlHooks`Steven Engler2025-09-163-8/+6
|
* tor-proto: move check for consecutive XOFF messagesSteven Engler2025-09-161-13/+8
|
* tor-proto: add `SidechannelMitigation` to `XonXoffFlowCtrl`Steven Engler2025-09-162-2/+37
|
* tor-proto: add `SidechannelMitigation` for XON/XOFF flow controlSteven Engler2025-09-162-1/+154
| | | | This is not used anywhere yet.
* tor-proto: rename `LastSentXonXoff` to `XonXoffMsg`Steven Engler2025-09-161-10/+7
|
* tor-proto: change `take_capacity_to_send` to take `AnyRelayMsg`Steven Engler2025-09-163-5/+7
|
* tor-proto: use consensus parameter in `XonXoffFlowCtrl`Steven Engler2025-09-161-10/+4
|
* tor-proto: fix a comment after previous moveSteven Engler2025-09-161-7/+5
|
* tor-proto: change some `///` comments to `//!`Steven Engler2025-09-161-27/+27
|