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(bitswap): allow configuring WithWantHaveReplaceSize #10512

Merged
merged 7 commits into from
Sep 28, 2024

Conversation

gammazero
Copy link
Contributor

@gammazero gammazero commented Sep 14, 2024

Allow configuration of the bitswap server's replace WantHave with WantBlock maximum block size using the Internal.Bitswap.WantHaveReplaceSize config item. This sets the maximum size of a block in bytes up to which we will replace a want-have with a want-block. Setting a size of 0 disables this replacement and means that block sizes are not read for WantHave requests.

See ipfs/boxo#672 for more details

Allow conguration of the bitswap server's replace WantHave with WantBlock maximum block size using the `Internal.Bitswap.ReplaceHasWithBlockMaxSize` config item. This sets the maximum size of a block in bytes up to which we will replace a want-have with a want-block. Setting a size of 0 disables this replacement and means that block sizes are not read for WantHave requests.
@gammazero gammazero marked this pull request as ready for review September 20, 2024 20:44
@gammazero gammazero requested a review from a team as a code owner September 20, 2024 20:44
@lidel lidel added the skip/changelog This change does NOT require a changelog entry label Sep 26, 2024
@lidel lidel changed the title feat: add configuration for bitswap replace WantHave max size feat(bitswap): allow configuring WithWantHaveReplaceSize Sep 26, 2024
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, feel free to merge after switching to boxo release or commit from boxo main with ipfs/boxo#672

@gammazero gammazero merged commit 9577527 into master Sep 28, 2024
14 checks passed
@gammazero gammazero deleted the feat/config-bitswap-wanthave-replace branch September 28, 2024 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog This change does NOT require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants