left4me/l4d2web/services
mwiegand 4552af6544
fix(l4d2-web): keep SSE log stream from pinning gunicorn threads
stream_command used a blocking proc.stdout.readline() that never woke
when the underlying journalctl was silent, so Flask never delivered
GeneratorExit on client disconnect — the worker thread and the journalctl
child both leaked permanently and pinned the gunicorn thread pool.

Switch to a select-based read loop with a 15s heartbeat tick (yielded as
""), and translate the tick to an SSE keepalive comment in the log route.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 11:18:56 +02:00
..
__init__.py chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00
global_map_cache.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
global_map_sources.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
global_overlay_refresh.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
global_overlays.py refactor(l4d2-web): remove legacy external overlay type 2026-05-08 09:31:04 +02:00
host_commands.py fix(l4d2-web): keep SSE log stream from pinning gunicorn threads 2026-05-08 11:18:56 +02:00
job_worker.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
l4d2_facade.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
overlay_builders.py refactor(l4d2-web): remove legacy external overlay type 2026-05-08 09:31:04 +02:00
overlay_creation.py feat(l4d2-web): overlay path helpers and creation 2026-05-07 16:38:39 +02:00
security.py security: harden boundary inputs and production defaults 2026-05-07 00:53:33 +02:00
spec_yaml.py chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00
status.py chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00
steam_workshop.py feat(l4d2-web): steam workshop API client and downloader 2026-05-07 16:37:39 +02:00
workshop_paths.py feat(l4d2-web): overlay path helpers and creation 2026-05-07 16:38:39 +02:00