-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hook up the keepAlive after a successful connect #1554
Conversation
Alternatively we could use |
Is there a link explains why it didn't work? |
This comment was marked as resolved.
This comment was marked as resolved.
Passing connection options during |
35e2a99
to
f39acf4
Compare
Is this ready for review? I think we also need to change SentinelConnector? |
f39acf4
to
c1eca5c
Compare
This is now ready. I've decided to move it back into the redis constructor to keep it in one place with the reconnect handling. |
LGTM! Awesome 👍 |
🎉 This PR is included in version 5.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I haven't tested it yet as I'm running on macos and there's no way to read out the socket options, but this should fix #1339
Changelog
socket.setKeepAlive(true, ms)
after a successful connect as workaround for a node issue where it won't work when it's called before a successful connect