feat(remote): keep slow remote session requests alive with a heartbeat

Titles, tracks and licence stream a newline every 30s until the body is ready, so a slow service outlasts the client timeout and proxy idle limits; add a per-server timeout.
This commit is contained in:
imSp4rky
2026-09-24 10:18:03 -06:00
parent c06b00ec63
commit 91db1fa0b1
21 changed files with 377 additions and 42 deletions
+3 -1
View File
@@ -452,7 +452,9 @@ class Services(click.Group):
server_name = ctx.params.get("server")
server_url, api_key, services_config = resolve_server(server_name)
client = RemoteClient(server_url, api_key, services_config.get("_auth_headers"))
client = RemoteClient(
server_url, api_key, services_config.get("_auth_headers"), services_config.get("_timeout")
)
result = client.get("/api/services")
Services.remote_services_cache = result.get("services", [])
return Services.remote_services_cache