From f826f6d2c30fa306300165c365fff7de5afa3f6f Mon Sep 17 00:00:00 2001 From: Para Dox Date: Sun, 1 Jun 2025 21:19:48 +0700 Subject: [PATCH] more debug --- split-proxy/proxy.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/split-proxy/proxy.js b/split-proxy/proxy.js index ff67a462..ec6ce7ac 100644 --- a/split-proxy/proxy.js +++ b/split-proxy/proxy.js @@ -361,7 +361,8 @@ class RPCProxy { // Log if client closed very early if (isClientClosed() && totalTime < 10) { - logger.warn({ + // This appears to be normal JSON-RPC client behavior + logger.info({ requestId, endpoint: 'stream', totalTimeMs: totalTime, @@ -372,9 +373,11 @@ class RPCProxy { httpVersion: res.req.httpVersion, keepAlive: res.req.headers.connection, clientClosedAt: getClientCloseReason(), + responseComplete: true, // We're in the 'end' event, so response is complete + chunksReceived: chunks.length, // For small responses, log the actual data to see what's happening responseData: rawData.length < 200 ? responseData : '[truncated]', - }, 'Client closed connection very quickly'); + }, 'Client closed connection quickly (normal for JSON-RPC)'); } logger.info({