forked from kenzuya/unshackle
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user