-
Notifications
You must be signed in to change notification settings - Fork 308
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
fix: DNS TTL not respected #1442
fix: DNS TTL not respected #1442
Conversation
77ca2a5
to
5f27f7b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good. The only hesitation I have is that reconnectPeer
is relentless. It's designed for persistent peers, not for normal peers that you want to connect to. Thus, afaik, it ignores errors and continuously redials.
When trying to reconnect, if this fails we should give up trying to connect the peer. I would suggest we add some additional input to the reconnectToPeer
method which will distinguish between retry forever and retry once and if failed log an error
3d32731
to
9c47113
Compare
For context here the peer won't try to reconnect forever. It first tries to connect 20 times with 5 second intervals(20*5=100s), then another 10 times with exponential backoff which ends in 16h(3**10 = 16hrs). it will give up after that so no change needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @ninabarbakadze
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should i merge this? @cmwaters @evan-forbes
I don't think dev ops was able to test this yet
yeah, we should merge imo |
0d2b638
into
celestiaorg:v0.34.x-celestia
Description
Fixes #1425
Testing
Testing DNS change is not really possible in unit tests so @smuu agreed to help me test manually