MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / isTransientConnectionError

Function isTransientConnectionError

server/src/db/client.ts:75–81  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

73]);
74
75function isTransientConnectionError(err: unknown): boolean {
76 if (!(err instanceof Error)) return false;
77 const code = (err as any).code || "";
78 const message = err.message || "";
79 return TRANSIENT_CONNECTION_ERRORS.has(code)
80 || TRANSIENT_CONNECTION_ERRORS.has(message);
81}
82
83/**
84 * Execute a parameterized query. All callers must use $1, $2, etc. placeholders

Callers 1

queryFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected