Skip to content

Commit 0f6c2ed

Browse files
committed
Realtime ECONNRESET is expected
1 parent eeffe13 commit 0f6c2ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/webapp/app/services/realtime/redisRealtimeStreams.server.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ export class RedisRealtimeStreams implements StreamIngestor, StreamResponder {
184184

185185
return new Response(null, { status: 200 });
186186
} catch (error) {
187+
if (error instanceof Error) {
188+
if ("code" in error && error.code === "ECONNRESET") {
189+
logger.info("[RealtimeStreams][ingestData] Connection reset during ingestData:", {
190+
error,
191+
});
192+
return new Response(null, { status: 500 });
193+
}
194+
}
195+
187196
logger.error("[RealtimeStreams][ingestData] Error in ingestData:", { error });
188197

189198
return new Response(null, { status: 500 });

0 commit comments

Comments
 (0)