-
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
Quit immediately when reconnecting #410
Quit immediately when reconnecting #410
Conversation
dd6248e
to
dc8703c
Compare
@luin do you have time for some feedback here? |
Sorry for the late response. There's a problem that the |
dc8703c
to
675aa59
Compare
No problem, I appreciate your time! Is that a simple |
I think We'd better also include a test for it:
|
SGTM! Do you think this should be a separate test? |
Yes I think it should be a separate test since |
675aa59
to
f261f0e
Compare
Let me know if you like the style of the new test. |
LGTM! 👍 |
@luin would you be up to a patch/minor release which includes this PR? Not urgent, only if you have spare time and agree with it. Thanks! |
Sure! Just released v2.5.0. Thank you for the pull request. |
I'm not sure if this is the right approach but the idea is to be able to quit immediately when
redis.quit()
is called and the client is in the reconnecting state. In this case,quit()
should not have to wait for the connection to be ready.What do you think?