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

Improve IDONTWANT Flood Protection #590

Merged
merged 2 commits into from
Dec 28, 2024
Merged

Conversation

nisdas
Copy link
Contributor

@nisdas nisdas commented Dec 27, 2024

In this PR we add in a new config parameter called MaxIDontWantLength which would be very similarly used as MaxIHaveLength has been used of IHAVE messgaes . This parameter has been set as the value of 10 now.

The main purpose is to bring how IDONTWANT messages are handled in line with how IHAVE have been handled. We add the relevant changes to the handleIDontWant method along with adding in a new regression test for this check.

Copy link
Collaborator

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

LGTM

@vyzo vyzo merged commit 0936035 into libp2p:master Dec 28, 2024
9 checks passed
@nisdas
Copy link
Contributor Author

nisdas commented Dec 30, 2024

@vyzo Is it possible to tag a new release with this ?

@vyzo
Copy link
Collaborator

vyzo commented Dec 30, 2024

yes, can do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants