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

P2P: Fix net_plugin requesting same range repeatedly #516

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Aug 11, 2024

PR #472 Added additional unneeded check for !sync_source in start_sync to know if a sync was not already in progress. However, if the last request had received all the blocks from the previous request then sync_source would already be reset. This sets up a race condition such that many start_sync calls can kick off a new sync instead of continuing the current one.

Also with #472 there is no need to reset sync_next_expected_num back to received block when receiving a block already received. This just causes additional requests for blocks already received.

Resolves #499

@heifner heifner requested review from greg7mdp and linh2931 August 11, 2024 00:07
@heifner heifner added the OCI Work exclusive to OCI team label Aug 11, 2024
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: INTERNALS
summary: Fix net_plugin requesting same range repeatedly.
Note:end

@heifner heifner merged commit 5993b32 into main Aug 12, 2024
36 checks passed
@heifner heifner deleted the GH-499-sync branch August 12, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P2P: syncing requesting same range repeatedly
4 participants