Skip to content
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

"noconnection" event not emitted if Redis goes away after the first connection #44

Open
rjp opened this issue Nov 2, 2010 · 0 comments

Comments

@rjp
Copy link

rjp commented Nov 2, 2010

To reproduce,

  1. create a script having a redis client object and a "noconnection" listener
  2. kill redis
  3. run the script - noconnection event fires as expected
  4. start redis
  5. run the script
  6. kill redis
  7. script bombs out with an exception thrown and no "noconnection" event

If you remove the "throw e" under the client.maybeReconnect() call in the stream "error" listener, that behaves as expected - a stream of "reconnecting" events followed by a "noconnection" after the maximum reconnect count is reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant