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

Connection closed #1908

Open
rafael-jurisoft opened this issue Aug 20, 2024 · 0 comments
Open

Connection closed #1908

rafael-jurisoft opened this issue Aug 20, 2024 · 0 comments

Comments

@rafael-jurisoft
Copy link

rafael-jurisoft commented Aug 20, 2024

I am getting connection closed errors, and it is crashing the nodejs app.
Why iinstead of reconnecting it is sending an error?

var baseConnection_retryStrategy = function (times) {
    if (times > 200) {
      return "Max retries";
    } else {
      return 1000;
    }
  };
  var baseConnection_reconnectOnError = function (param) {
    return true;
  };
  var baseConnection = {
    port: 6379,
    host: process.env.REDIS_IP,
    password: process.env.REDIS_PASSWORD,
    retryStrategy: baseConnection_retryStrategy,
    reconnectOnError: baseConnection_reconnectOnError
  }; // params to ioredis
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