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

feat: close outdated connections to non-RT peers #1057

Merged
merged 2 commits into from Dec 11, 2023

Conversation

maqi
Copy link
Member

@maqi maqi commented Dec 7, 2023

Description

Summary generated by Reviewpad on 11 Dec 23 11:32 UTC

This pull request includes two patches.

The first patch adds a new feature to close outdated connections to non-RT (real-time) peers. It introduces a new data structure live_connected_peers to keep track of peers that have a live connection. It also implements a method remove_outdated_connections to remove outdated connections to peers that are not present in the RT (routing table). This ensures that connections to non-RT peers are closed in a timely manner.

The second patch includes changes related to the Gossipsub behavior. It modifies the configuration of Gossipsub to avoid message loops. It sets the iwant_followup_time to 10 seconds and the published_message_ids_cache_time to 120 seconds. These changes increase the intervals at which certain actions are triggered, reducing the risk of message looping.

These patches improve the networking behavior and stability of the system.

@maqi maqi added the DoNotMerge label Dec 7, 2023
@reviewpad reviewpad bot added Small Pull request is small waiting-for-review labels Dec 7, 2023
@maqi maqi force-pushed the long_live_connection_debug branch 4 times, most recently from 1d70084 to 6ae7d64 Compare December 8, 2023 19:21
@maqi maqi removed the DoNotMerge label Dec 11, 2023
@maqi maqi added this pull request to the merge queue Dec 11, 2023
Merged via the queue into maidsafe:main with commit cc8b312 Dec 11, 2023
28 checks passed
@maqi maqi deleted the long_live_connection_debug branch December 11, 2023 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants