Skip to content

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

Merged
andynog merged 1 commit intov0.38.x-experimentalfrom
mergify/bp/v0.38.x-experimental/pr-4425
Nov 4, 2024
Merged

fix(p2p): adjust backoff seconds to increase reconnect retries close to 24 hours (backport #4377) (backport #4425)#4428
andynog merged 1 commit intov0.38.x-experimentalfrom
mergify/bp/v0.38.x-experimental/pr-4425

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).
This is an automatic backport of pull request #4425 done by [Mergify](https://mergify.com).

…to 24 hours (backport #4377) (#4425)

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
<hr>This is an automatic backport of pull request #4377 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Andy Nogueira <me@andynogueira.dev>
(cherry picked from commit deef97f)
@mergify mergify bot requested a review from a team as a code owner November 4, 2024 21:43
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

@andynog andynog merged commit c731f93 into v0.38.x-experimental Nov 4, 2024
@andynog andynog deleted the mergify/bp/v0.38.x-experimental/pr-4425 branch November 4, 2024 22:05
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

Successfully merging this pull request may close these issues.

1 participant