Repository navigation
feat(fleet-proxy): raw TCP splice for RustDesk direct access (salvage of #7338) - #8618
Conversation
… of PR #7338) Re-applies the remainder of closed archive PR #7338 (task 14926, issue #7297) onto current main: fleet proxy splice subcommand + raw_splice/raw_stream relay, broker raw_splice session handling gated on the proxy-raw-splice capability and the rustdesk service (port 21118 in the default services table), and connect_raw_tunnel re-expressed on the current deadline-based tunnel design (#5758: setup bounded by TRANSPORT_DEADLINE, established raw stream carries no HTTP timeouts). Conflicts with main-side ssh subcommand and registry/domain updates resolved as unions.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3df615b40
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… exit Codex P2 on PR #8618: a raw relay only refreshed broker.last_used at setup, so keepalive_loop would exit the broker after idle_exit_secs (default 3600s) even mid-session. serve_session now refreshes last_used every 60s from a scoped thread for the life of the relay.
|
Fixed in 7ace7db: |
|
🤖 Agent note · salvage check for duplicate PR #7703 (task 10516)
|
Salvage re-application of the remainder of closed archive PR #7338 (task 14926, batch issue #7297).
What this adds
fleet proxy splice: a loopback listener on 127.0.0.1:21118 that relays each accepted TCP stream through the fleet broker to the laptop's RustDesk direct-access service (newraw_splice.rs/raw_stream.rsin fleet-proxy).serve.rshandles araw_splicesession frame, gated on the client advertising the newproxy-raw-splicecapability AND therustdeskservice being present in the services map; anything else gets an explicit error frame.PORT_RUSTDESK(21118) added to the default services table (rustdesk,rustdesk-direct-v1), with the services test updated to 4 entries.Capability::ProxyRawSplice(proxy-raw-splice), in serve + connect capability sets and the proxy domain's subcommands.Re-application notes (three-way discipline)
TcpStream::connect, timeout-shapedtune).connect_raw_tunnelis re-expressed on current main's deadline design: setup is bounded byTRANSPORT_DEADLINEviaconnect_tunnel_inner, and only the established raw stream carries no read/write timeouts — the archive's intent, on main's structure.fleet proxy sshrecovery subcommand, registry domain text, fleet-config dispatch-test validation) were resolved as unions: both subcommands and both validations survive.Tests
cargo test -p fleet-proxy -p fleet-config -p fleet-registry -p fleeton the laptop: all suites pass (89 fleet-proxy incl. the newraw_direct_tunnel_has_no_http_timeoutsandraw_connect_tunnel_clears_timeouts_after_handshake, 45 fleet-config, 19+14 registry/fleet, 0 failures).cargo fmtapplied to the touched crates.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.