mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-15 21:45:10 +00:00
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:
@@ -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={},
|
||||
|
||||
Reference in New Issue
Block a user