Skip to content
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

Disable peer disconnect on activity timeout #1424

Merged
merged 1 commit into from
Nov 24, 2022
Merged

Conversation

turuslan
Copy link
Contributor

Referenced issues

Description of the Change

Nobody updates peer activity time, so we disconnect from all peers.
This PR disables peer disconnect on activity timeout until activity time is updated/fixed.

Benefits

Don't disconnect from all peers after time specified in config after connection.

Possible Drawbacks

  • Need to deduplicate/merge active_peers_ and peer_states_.
  • Need to update peer activity time with keepAlive

@turuslan turuslan enabled auto-merge (squash) November 24, 2022 14:48
@turuslan turuslan merged commit bbe32ed into master Nov 24, 2022
@turuslan turuslan deleted the fix/peer-disconnect branch November 24, 2022 15:20
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.

3 participants