mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
`endpoints/streaming.py` held a general-purpose Redis session store and an HTTP client alongside its routes, so both were reachable only through the ASGI test client and neither could serve a second caller. They now sit in `handler/streaming/` next to the container and protocol modules, matching how `handler/netplay_handler.py` already owns its Redis room state. - `session_store.py`: the keys, TTLs, compare-and-set helpers, drain markers, staleness rule and termination notices. Its names are public now, because the module boundary is the privacy boundary. - `broker.py`: the urllib transport, its bounded reads and byte caps, and the translation of a transport failure into the 502/503 the frontend parses. The endpoint module drops from 5157 lines to 3616 and keeps the routes, the claim and teardown flows, and the asset sync. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>