Skip to content

Commit 4dceda1

Browse files
committed
fix: remove connect timeout
1 parent 4764eff commit 4dceda1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/RedisStringsHandler.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,9 @@ export default class RedisStringsHandler {
149149
// Create Redis client with properly typed configuration
150150
this.client = createClient({
151151
url: redisUrl,
152-
pingInterval: 5000, // Useful with Redis deployments that do not use TCP Keep-Alive. Restarts the connection if it is idle for too long.
152+
pingInterval: 10_000, // Useful with Redis deployments that do not use TCP Keep-Alive. Restarts the connection if it is idle for too long.
153153
...(database !== 0 ? { database } : {}),
154-
...(socketOptions
155-
? { socket: { connectTimeout: timeoutMs, ...socketOptions } }
156-
: { connectTimeout: timeoutMs }),
154+
...(socketOptions ? { socket: { ...socketOptions } } : {}),
157155
...(clientOptions || {}),
158156
});
159157

0 commit comments

Comments
 (0)