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
@@ -8,6 +8,7 @@ named different KIDs got one licence; and a KID the licence did not cover was lo
server alone.
"""
import asyncio
import base64
import json
from types import SimpleNamespace
@@ -100,6 +101,7 @@ def fake_playready(monkeypatch):
def _session(tracks: dict, buf=None):
session = SimpleNamespace(
lock=asyncio.Lock(),
service_tag="EX",
service_instance=SimpleNamespace(),
served_keys={},