Skip to content

Parity: stream over a direct UDP path to the Silo API host (from Silo-Server/silo-server#5047) #1028

Open

Description

@darthShadow

Silo-Server/silo-server#4440 adds a direct UDP path between native clients and the API host. Its pull requests land in order: the readiness check (Silo-Server/silo-server#5047), the leased engine, and the enrollment, coordination and playback changes. The path is off until an administrator turns it on. The Android and Android TV apps do not use it yet.

What users should get: on Android and Android TV, a signed-in device away from home enrolls with the server, connects to the API host over UDP, and plays on that path when the server says it is live. This is for long or lossy links, where one TCP route through a reverse proxy recovers slowly from loss. In every other case the app keeps the plan it gets today. A user who wants the direct path to be the only remote route can choose Direct only in Settings. The server's description for that setting is: "Direct only still uses the local network connection when one is available."

What the server provides (the code and docs ship with the pull requests above; docs/direct-connections-api.md is the contract):

  • GET /api/v2/capabilities/direct-connections says whether the path is available to this login session.
  • POST /api/v2/direct-connections/enrollment enrolls the device with its engine's node key and returns a 10-minute signaling ticket. The device renews it at half its remaining time and withdraws on sign-out.
  • startPlayback, replanPlayback and the bandwidth probe take media_transport (regular or direct). The plan says direct only when the path is live.
  • The new setting playback.connection_path (automatic or direct_only), client-local, listed for android and android_tv, is sent as connection_path at enrollment.
  • The "Client Contract" section of docs/direct-connections-api.md has nine numbered rules: feature detection, enrollment, the engine, media transport, Direct only, the bandwidth probe, path labels, trust (an HTTPS address the system trusts) and the 421 answer.

The open question for this repository is the engine. The contract gives the wire rules, and maps each to the Go API of the shunpike module (github.com/darthShadow/shunpike) for a first-party engine. A client with its own engine follows the wire rules. How an Android app gets an engine is for the app's maintainers to decide.

Server side: Silo-Server/silo-server#4440 and its pull requests, starting at Silo-Server/silo-server#5047.

AI disclosure: drafted with Claude Code (claude-sonnet-5-5). The server facts come from the pull request branches; the client repository was searched on its main branch for direct-path code, and the app was not run on a device.

Activity

  1. added
    needs-review
    on Nov 21, 2026
  2. darthShadow commented on Nov 24, 2026

    @darthShadow
    Author

    Silo-Server/silo-server#5273 is the second pull request of this feature: the server now runs the direct connection engine on one API replica at a time and serves HTTP/3 on its UDP socket. No client can connect yet, because the server registers no peers until the third pull request (enrollment and peer registration). Nothing to build in this client for #5273; this issue stays open for that third pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions