-
Notifications
You must be signed in to change notification settings - Fork 43
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 retry logic of an momentarily unavailable peer #311
Comments
Yeah we had discussed an exponential backoff on connection attempts, and I think that would be a pretty decent and simple way to implement this functionality at least at first. We'll keep trying to connect with longer waits between attempts after each failure. |
Proposal: This attribute works with If the second trial also fails, it will increase its waiting time by the number of seconds defined by Delete node from
|
I think a week isn't that long if/when we target non-exchanges that don't expect to be online 24/7. It would be a good thing to have configurable I think, but something around there may be fine for now. But mainly I think a 5 second fixed backoff is too little and will result in way too many connection attempts, I think an exponential backoff (5, 10, 20, 40, 80, 160, etc) makes a lot more sense. Also I don't think we should delete the node from the db per se, maybe we just drop its listening addresses from the db indicating that we no longer believe those are good and we stop trying to connect to them. |
adjusted |
It will not increase, or reconnection attempts should stop? Another thing: At the moment we're not listing a node in db before our first successful connection. |
It will not increase. Re-connection attempts go on til
With #386 we'll learn about the node again once it's online again at some point. |
add automatic test |
I don't think we got this yet: #185 (comment)
Do this now or as part of #178 ?
The text was updated successfully, but these errors were encountered: