Files
romm/backend/endpoints
Zach Clendenen 32264a11d8 fix(streaming): stop a pool from rolling its own holder onto a second container
Rolling over to the next free container is for the players who did not get
one. The holder claiming again should still be refused, and a single
container refused it for free by failing SET NX on its only key, so the
pool path never had to say it out loud.

A second session for the same user is one nothing can reach. Status,
heartbeat, release and save-and-exit all resolve through
find_session_for_user, which answers with the first match, so the later
session holds a pool slot until its TTL lapses and under whole-card sync
both halves mount the one card resolve_card picks per (user, emulator),
leaving the later release on top of the earlier one's writes.

Check for a held session across the candidate pool before trying any key
and answer 409 with the rom the user is already in.

The pool tests that filled several containers from one token now use a
distinct user per container, which is what they were describing anyway.
2026-09-15 13:30:18 -05:00
..
2026-03-08 14:51:28 -04:00
2026-03-15 11:25:39 -04:00
2026-06-21 17:42:25 -04:00
2026-09-08 17:59:52 -04:00
2026-07-23 14:44:56 -04:00
2025-12-07 16:34:22 -05:00