Skip to content

fix(p2p): adjust backoff seconds to increase reconnect retries close to 24 hours (backport #4377)#4424

Merged
mergify[bot] merged 2 commits intov1.xfrom
mergify/bp/v1.x/pr-4377
Nov 4, 2024
Merged

fix(p2p): adjust backoff seconds to increase reconnect retries close to 24 hours (backport #4377)#4424
mergify[bot] merged 2 commits intov1.xfrom
mergify/bp/v1.x/pr-4377

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Nov 4, 2024

close: #3519

Adjust reconnectBackOffBaseSeconds to increase reconnect retries to up 1 day (~24 hours).

The new value can be validated here: https://go.dev/play/p/k8F5rS-i24p, which will show that the total time is increased to almost 24 hours.

Initial reconnecting time: 2m8.493s
Total reconnecting time. : 23h55m56.249s

The reconnectBackOffBaseSeconds is increased by a bit over 10% (from 3.0 to 3.4 seconds) so this would not affect reconnection retries too much.

PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

This is an automatic backport of pull request #4377 done by [Mergify](https://mergify.com).

…to 24 hours (#4377)

close: #3519

Adjust `reconnectBackOffBaseSeconds` to increase reconnect retries to up
1 day (~24 hours).

The new value can be validated here: https://go.dev/play/p/k8F5rS-i24p,
which will show that the total time is increased to almost 24 hours.

Initial reconnecting time: 2m8.493s
Total reconnecting time. : 23h55m56.249s

The `reconnectBackOffBaseSeconds` is increased by a bit over 10% (from
3.0 to 3.4 seconds) so this would not affect reconnection retries too
much.

#### PR checklist

- [ ] ~~Tests written/updated~~
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Daniel <daniel.cason@informal.systems>
(cherry picked from commit 81f2763)
@mergify mergify bot requested a review from a team as a code owner November 4, 2024 19:58
@mergify mergify bot assigned andynog Nov 4, 2024
@mergify mergify bot requested a review from a team November 4, 2024 19:58
@andynog andynog added the p2p label Nov 4, 2024
Copy link
Collaborator

@andynog andynog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mergify mergify bot merged commit d63ab55 into v1.x Nov 4, 2024
@mergify mergify bot deleted the mergify/bp/v1.x/pr-4377 branch November 4, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant