Description
Description
Hi ,
I create my RedisClient using below params
const client = createClient({ url: url, socket: { reconnectStrategy: reconnectInterval }, pingInterval: pingInterval });
When I try to close this handle using quit or disconnect it doesnt close. I see this following open handles
`tcp stream {
fd: 14,
readable: true,
writable: true,
address: {},
serverAddr: null
}
tcp stream {
fd: 18,
readable: true,
writable: true,
address: {},
serverAddr: null
}
tcp stream {
fd: 19,
readable: true,
writable: true,
address: {},
serverAddr: null
}`
But if I remove pingInterval: pingInterval
parameter during client creation handle gets closed properly on client.disconnect
. Discovered this behavior while writing unit tests in Jest and had to close the handle as part of it. Please help me with this.
Node.js Version
v20.4.0
Redis Server Version
6.2.13
Node Redis Version
4.6.5
Platform
Linux
Logs
No response