mirror of
https://github.com/smittix/intercept.git
synced 2026-04-28 16:50:01 -07:00
Werkzeug's dev server buffers SSE response headers until the first body byte is written. With keepalive_interval=30s, opening two SSE connections on DOMContentLoaded (satellite stream + new ground station stream) meant the browser waited 30 seconds before receiving any response bytes from either connection. Browsers keep their loading indicator active while connections are pending, causing the satellite dashboard to appear stuck loading. Fix: yield an immediate keepalive at the start of sse_stream_fanout so every SSE endpoint flushes headers + first data to the browser instantly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7.2 KiB
7.2 KiB