left4me/l4d2web/tests
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
..
test_auth.py security: harden boundary inputs and production defaults 2026-05-07 00:53:33 +02:00
test_blueprints.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_config.py config: allow SESSION_COOKIE_SECURE override and disable on test deploy 2026-05-07 00:56:48 +02:00
test_global_map_cache.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_global_map_sources.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_global_overlay_builders.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_global_overlay_cli.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_global_overlay_models.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_global_overlay_refresh.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_global_overlays.py refactor(l4d2-web): remove legacy external overlay type 2026-05-08 09:31:04 +02:00
test_health.py security: harden boundary inputs and production defaults 2026-05-07 00:53:33 +02:00
test_host_commands.py fix(l4d2-web): keep SSE log stream from pinning gunicorn threads 2026-05-08 11:18:56 +02:00
test_job_logs.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_job_worker.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_l4d2_facade.py refactor(l4d2-web): remove legacy external overlay type 2026-05-08 09:31:04 +02:00
test_models.py chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00
test_overlay_builders.py refactor(l4d2-web): remove legacy external overlay type 2026-05-08 09:31:04 +02:00
test_overlay_creation.py feat(l4d2-web): overlay path helpers and creation 2026-05-07 16:38:39 +02:00
test_overlays.py refactor(l4d2-web): remove legacy external overlay type 2026-05-08 09:31:04 +02:00
test_pages.py feat(l4d2-web): managed global map overlays with daily refresh 2026-05-08 08:05:14 +02:00
test_security.py chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00
test_servers.py feat(web): blueprint-prefilled create-server flow + empty-state CTA 2026-05-07 01:47:33 +02:00
test_status_and_server_logs.py fix(l4d2-web): keep SSE log stream from pinning gunicorn threads 2026-05-08 11:18:56 +02:00
test_steam_workshop.py feat(l4d2-web): steam workshop API client and downloader 2026-05-07 16:37:39 +02:00
test_workshop_overlay_models.py refactor(l4d2-web): remove legacy external overlay type 2026-05-08 09:31:04 +02:00
test_workshop_paths.py feat(l4d2-web): overlay path helpers and creation 2026-05-07 16:38:39 +02:00
test_workshop_routes.py feat(l4d2-web): workshop overlay UI (routes + templates) 2026-05-07 16:50:54 +02:00