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
{{ message }}
Repository navigation
Infinite wait while connecting to TLS protected cluster (AWS MemoryDB) #2477
I know it's not exactly Redis related and I don't know if it's reproducible for Redis cluster.
But given an AWS MemoryDB cluster (that behaves as Redis at least in documentation) that is protected by TLS.
Have cluster defined as:
Last line never resolves. Because by default we have minimizeConnections as false and then RedisCluster start checking all the slots and all other slots it checks without tls: true option. Possible solution is to use tls in case we have tls in rootNodes or at least to add this to documentation.
As workaround:
@studentIvan , it's not related issue. It's even completely different package.
But just for information:
You have opened connection and you have to close it explicitly. If your app is still doesn't close, check other async processes and connections you have.
Reacted by Ivan Maslow | AI Coding & Web Performance Enthusiast
@leibale , thank you.
Tell me if I can help somehow.
I can add more logs if you need and so on.
If you think it's good idea to use for all slots the same tls as it's in connection string, I can create PR a bit later.
P.S. and yes, it doesn't respect timeout for some reason. I didn't dig deep enough to find why.
This issue has been automatically marked as stale due to inactivity.
It will be closed in 30 days if no further activity occurs.
If you believe this issue is still relevant, please add a comment to keep it open.
This issue has been automatically closed due to inactivity.
If you believe this issue is still relevant, please reopen it or create a new issue with updated information.
Activity
maslowivan commentedon Apr 24, 2023
Faced the same issue when using the github actions with actions/github-script
To solve the problem I've added the disconnect and process.exit(0) like this:
DKurilo commentedon Apr 24, 2023
@studentIvan , it's not related issue. It's even completely different package.
But just for information:
You have opened connection and you have to close it explicitly. If your app is still doesn't close, check other async processes and connections you have.
leibale commentedon Apr 24, 2023
@DKurilo it should emit an
errorafterconnectTimeouthas been reached (which should be5000by default). I'll debug it later.DKurilo commentedon Apr 24, 2023
@leibale , thank you.
Tell me if I can help somehow.
I can add more logs if you need and so on.
If you think it's good idea to use for all slots the same tls as it's in connection string, I can create PR a bit later.
P.S. and yes, it doesn't respect timeout for some reason. I didn't dig deep enough to find why.
github-actions commentedon Apr 30, 2026
This issue has been automatically marked as stale due to inactivity.
It will be closed in 30 days if no further activity occurs.
If you believe this issue is still relevant, please add a comment to keep it open.
github-actions commentedon May 30, 2026
This issue has been automatically closed due to inactivity.
If you believe this issue is still relevant, please reopen it or create a new issue with updated information.