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

fix(bitswap/client/msgq): prevent duplicate requests #691

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 19, 2024

  1. fix(bitswap/client/msgq): prevent duplicate requests

    Previously, in-progress requests could be re-requested again during periodic rebroadcast.
    The queue requests, and while awaiting response, the rebroadcast event happens.
    Rebroadcast event changes previosly sent WANTs to pending and sends them again in a new message.
    
    The solution here is to ensure WANT was in sent status for long enough, before bringing it back to pending.
    This utilizes existing `sendAt` map which tracks when every CID was sent.
    Wondertan committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    9020b71 View commit details
    Browse the repository at this point in the history