You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
fix: always emit an error when the connection drops
This commit is contained in:
@@ -102,7 +102,8 @@ function connect (client) {
|
||||
const stream = client._stream
|
||||
|
||||
if (options.connectTimeout) {
|
||||
// TODO: Investigate why this is not properly triggered
|
||||
// TODO: Investigate why this is not properly triggered.
|
||||
// TODO: Check if this works with tls.
|
||||
stream.setTimeout(client._connectTimeout, () => {
|
||||
// Note: This is only tested if a internet connection is established
|
||||
lazyReconnect(client, 'timeout')
|
||||
|
Reference in New Issue
Block a user