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
In the event that client.quit(); is called I would expected client.status to update to something like disconnecting or closing and then to close once complete. That does not happen.
After some investigation it seems the issue is that there is no intermediate state before end. Like reconnecting or connecting there should be an ending status which indicates that the connection is in the process of being closed, up until that point it responds as ready even though it's being killed in an async fashion.
Perhaps disconnect should be awaitable until disconnection has occurred.
In the event that
client.quit();
is called I would expectedclient.status
to update to something likedisconnecting
orclosing
and then toclose
once complete. That does not happen.The same applies when calling
await this._redisClient?.quit();
too.Incidentally it would be good to get some tsdocs on the statuses so it's obvious what they mean, for example what's the difference between
end
andclose
https://github.com/luin/ioredis/blob/main/lib/Redis.ts#L37-L44
The text was updated successfully, but these errors were encountered: