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

Limit simultaneous incoming requests on a per peer basis #245

Merged
merged 2 commits into from
Oct 13, 2021

Conversation

hannahhoward
Copy link
Collaborator

Goals

Don't let the request queue fill all the way up with requests with a very slow peer in an Estuary like scenario

Implementation

I didn't even know this existed in the peer task queue! What this option does is you just won't be able to pop work from a queue until the number active requests drops. Note that paused requests are not part of the active count, so we don't need to worry about that part.

impl/graphsync.go Outdated Show resolved Hide resolved
Co-authored-by: Rod Vagg <rod@vagg.org>
@hannahhoward hannahhoward merged commit 749e517 into main Oct 13, 2021
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
@mvdan mvdan deleted the feat/max-active-per-peer branch December 15, 2021 14:18
marten-seemann pushed a commit that referenced this pull request Mar 2, 2023
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