-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
The pooled clients are not handling any of the errors emitted by the socket via
this.#onSocketError(new SocketClosedUnexpectedlyError()); |
and is causing node to report these as uncaughtException and abort the process.
So, as soon as executeIsolated
gets called, which starts a pooled client, and if the connected server goes away, the client will die with an uncaughtException due to the exception thrown by the socket above.
2022-03-16T20:39:58.139Z error: uncaughtException: Socket closed unexpectedly
Error: Socket closed unexpectedly
at Socket.<anonymous> (/test/node_modules/@node-redis/client/dist/lib/client/socket.js:182:118)
at Object.onceWrapper (events.js:520:26)
at Socket.emit (events.js:400:28)
at TCP.<anonymous> (net.js:686:12)
Environment:
- Node.js Version: v14.19.0
- Redis Server Version: 6.0.5
- Node Redis Version: [email protected]
- Platform: debian bullseye