From d2a6529f0431176787425cebdf8ef03f078a7393 Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 9 Jun 2026 02:44:25 +0100 Subject: [PATCH] fix: avoid mcp shutdown response snapshot allocation --- src/gateway/mcp-http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateway/mcp-http.ts b/src/gateway/mcp-http.ts index 435999c4fc77..36c991887f55 100644 --- a/src/gateway/mcp-http.ts +++ b/src/gateway/mcp-http.ts @@ -159,7 +159,7 @@ export async function startMcpLoopbackServer(port = 0): Promise<{ }; const closeActiveSseResponses = (): void => { - for (const res of [...activeSseResponses]) { + for (const res of activeSseResponses) { if (!res.destroyed && !res.writableEnded) { const socket = res.socket; res.end();