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

Prevent duplicate block transmission #1093

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

benbierens
Copy link
Contributor

During reliability testing (#974) block retransmission was found to cause significant delay and download failure in larger networks.

This PR prevents wantBlocks being sent for open requests for which a wantBlock has already been sent, reducing duplicates to zero.

Open issue (that already existed and hasn't been seen in testing) is that when a wantBlock is sent and the peer doesn't respond with the block, the inFlight flag is never cleared, forcing the full block-retrieval-timeout before the block can be retried.

@benbierens benbierens requested review from gmega and dryajov February 3, 2025 08:44
@gmega gmega added the Client See https://miro.com/app/board/uXjVNZ03E-c=/ for details label Feb 6, 2025
@gmega gmega added Client See https://miro.com/app/board/uXjVNZ03E-c=/ for details and removed Client See https://miro.com/app/board/uXjVNZ03E-c=/ for details labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client See https://miro.com/app/board/uXjVNZ03E-c=/ for details
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants