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

[5.0 -> main] P2P: Fix: Throttling of last block of request caused lost block #1793

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Oct 18, 2023

When throttling was enabled on a connection, the net_plugin would assume the last block of a peer_requested was sent and reset the peer_requested indicating no other sync blocks need to be sent to the peer. This caused the block to not be sent or rescheduled to be sent later resulting in the peer not receiving the block. The peer would have to wait for a full timeout before requesting the required block from a different peer.

Merges release/5.0 into main including #1791

Resolves #1776

@heifner heifner requested review from greg7mdp and linh2931 October 18, 2023 12:46
@heifner heifner added the OCI Work exclusive to OCI team label Oct 18, 2023
@heifner heifner merged commit 13e1fe4 into main Oct 18, 2023
21 checks passed
@heifner heifner deleted the GH-1776-throttle-fix-main branch October 18, 2023 14:07
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.

Test Failure: p2p_sync_throttle_test
3 participants