MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / reconnectOnError

Function reconnectOnError

src/utils/redis.js:68–71  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

66 // 错误重连策略
67 reconnectOnError(err) {
68 const targetErrors = ['READONLY', 'ETIMEDOUT', 'ECONNRESET', 'EPIPE']
69 return targetErrors.some(e => err.message.includes(e))
70 }
71})
72
73/**
74 * 验证 Redis 命令通道是否可用

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected