MCPcopy
hub / github.com/coder/mux / isIgnorableStreamError

Function isIgnorableStreamError

src/node/utils/streamErrors.ts:33–36  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

31}
32
33export function isIgnorableStreamError(error: unknown): boolean {
34 const code = getErrorCode(error);
35 return code === "EPIPE" || code === "ECONNRESET";
36}
37
38export interface StreamErrorHandlerOptions {
39 logger?: Pick<Logger, "debug" | "warn">;

Callers 3

writeMethod · 0.90
createOrpcServerFunction · 0.90
handlerFunction · 0.85

Calls 1

getErrorCodeFunction · 0.70

Tested by

no test coverage detected