MCPcopy Create free account
hub / github.com/Noumena-Network/code / onSessionTimeout

Function onSessionTimeout

src/bridge/bridgeMain.ts:1695–1714  ·  view source on GitHub ↗
(
  sessionId: string,
  timeoutMs: number,
  logger: BridgeLogger,
  timedOutSessions: Set<string>,
  handle: SessionHandle,
)

Source from the content-addressed store, hash-verified

1693}
1694
1695function onSessionTimeout(
1696 sessionId: string,
1697 timeoutMs: number,
1698 logger: BridgeLogger,
1699 timedOutSessions: Set<string>,
1700 handle: SessionHandle,
1701): void {
1702 logForDebugging(
1703 `[bridge:session] sessionId=${sessionId} timed out after ${formatDuration(timeoutMs)}`,
1704 )
1705 logEvent('ncode_bridge_session_timeout', {
1706 timeout_ms: timeoutMs,
1707 })
1708 logger.logSessionFailed(
1709 sessionId,
1710 `Session timed out after ${formatDuration(timeoutMs)}`,
1711 )
1712 timedOutSessions.add(sessionId)
1713 handle.kill()
1714}
1715
1716export type ParsedArgs = {
1717 verbose: boolean

Callers

nothing calls this directly

Calls 5

formatDurationFunction · 0.70
logEventFunction · 0.70
logForDebuggingFunction · 0.50
addMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected