Files
9router/src
zerray 52ad3b6630 fix: prevent SSE listener leak in console-logs stream (#751)
The ReadableStream cancel() callback is not reliably invoked on client
disconnect under Next.js, causing emitter listeners (line/clear) and the
keepalive interval to accumulate, eventually triggering
MaxListenersExceededWarning.

Use request.signal as the primary disconnect trigger, with cancel() and
enqueue failures as fallbacks. Cleanup is idempotent via state.closed.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 15:11:47 +07:00
..
2026-03-17 09:30:07 +07:00
2026-02-20 17:05:46 +07:00
2026-03-27 11:45:54 +07:00
2026-02-21 16:42:46 +07:00