fix(server): absorb healthy event bursts

This commit is contained in:
Kit Langton 2026-07-08 20:32:52 -04:00
commit 0590819090

View file

@ -6,7 +6,9 @@ import { HttpServerResponse } from "effect/unstable/http"
import { HttpApiBuilder } from "effect/unstable/httpapi"
import { Api } from "../api"
const subscriberCapacity = 256
// Session execution emits dense event bursts; allow healthy SSE clients enough
// time to absorb one without weakening the bounded slow-subscriber failure.
const subscriberCapacity = 4_096
function eventData(data: unknown): Sse.Event {
return {