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

Tighten libp2p request quotas #4254

Merged
merged 4 commits into from
Nov 2, 2022
Merged

Tighten libp2p request quotas #4254

merged 4 commits into from
Nov 2, 2022

Conversation

arnetheduck
Copy link
Member

To further tighten Nimbus against spam, this PR introduces a global quota for block requests (shared between peers) as well as a general per-peer request limit that applies to all libp2p requests.

  • apply request quota before decoding message
  • for high-bandwidth requests (blocks), apply a shared global quota which helps manage bandwidth for high-peer setups

@github-actions
Copy link

github-actions bot commented Oct 24, 2022

Unit Test Results

         9 files  ±0       849 suites  ±0   22m 48s ⏱️ + 1m 33s
  2 385 tests ±0    2 236 ✔️ ±0  149 💤 ±0  0 ±0 
10 826 runs  ±0  10 653 ✔️ ±0  173 💤 ±0  0 ±0 

Results for commit b585977. ± Comparison against base commit 0cfc1b7.

♻️ This comment has been updated with latest results.

To further tighten Nimbus against spam, this PR introduces a global
quota for block requests (shared between peers) as well as a general
per-peer request limit that applies to all libp2p requests.

* apply request quota before decoding message
* for high-bandwidth requests (blocks), apply a shared global quota
which helps manage bandwidth for high-peer setups
@arnetheduck arnetheduck marked this pull request as ready for review November 2, 2022 07:27
@arnetheduck arnetheduck enabled auto-merge (squash) November 2, 2022 07:27
@arnetheduck arnetheduck merged commit fc724b2 into unstable Nov 2, 2022
@arnetheduck arnetheduck deleted the global-quota branch November 2, 2022 10:46
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