You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node processes containing redis clients would crash with SocketClosedUnexpectedlyError.
The reason is well known - timeout in redis.conf (in our case it's set to 1h, and our node processes would crash within same interval).
The problem is that without on('error') listener the error is seemingly considered 'uncaught' and crashes the process.
After adding the listener (it simply logs the error), the library would recreate/reconnect to the server and process would continue to live on.
Is this behavior by design? Or I missed something in docs?
This issue might also be related or the same as #2276, #2274 and #2273.
Environment:
Node.js Version: 16
Redis Server Version: 6.0
Node Redis Version: 3 & 4
Platform: linux (debian, arch)
The text was updated successfully, but these errors were encountered:
Node processes containing redis clients would crash with SocketClosedUnexpectedlyError.
The reason is well known -
timeout
in redis.conf (in our case it's set to 1h, and our node processes would crash within same interval).The problem is that without on('error') listener the error is seemingly considered 'uncaught' and crashes the process.
After adding the listener (it simply logs the error), the library would recreate/reconnect to the server and process would continue to live on.
Is this behavior by design? Or I missed something in docs?
This issue might also be related or the same as #2276, #2274 and #2273.
Environment:
The text was updated successfully, but these errors were encountered: