-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Attempts to connet to a non-running server spam it with connect attempts #3487
Comments
Thank you for the issue @smurfix
This seems reasonable to me. Is this something that you would be interested in contributing?
Sometimes the server comes online during the connection process. This happens frequently in Kubernetes situations where the address genuinely may not have existed a short while ago. |
Exponential backoff is easy … PR created. |
This error does not make sense, on the face of it – either you time out, implying that there was no answer, or the connection was rejected, implying that the server told you there's no listener.
What actually happens is that
distributed
spams the server with connect requests for ten seconds, all of which get rejected. This is not a good idea. At all. Please either use a reasonable back-off or simply believe the server when it says ECONNREFUSED.The text was updated successfully, but these errors were encountered: