Skip to content

Add MaxInflightRPCsPerSubnet#439

Open
Alrighttt wants to merge 4 commits into
masterfrom
matt/max-inflight-per-subnet
Open

Add MaxInflightRPCsPerSubnet#439
Alrighttt wants to merge 4 commits into
masterfrom
matt/max-inflight-per-subnet

Conversation

@Alrighttt

Copy link
Copy Markdown
Contributor

Adds a per-subnet limit on concurrent inbound RPCs.

@github-project-automation github-project-automation Bot moved this to In Progress in Sia Jun 9, 2026
@Alrighttt Alrighttt requested review from ChrisSchinnerl and n8mgr June 9, 2026 15:04
Comment thread syncer/syncer.go
defer done()

subnet := s.subnetKey(p.ConnAddr)
inflight := make(chan struct{}, s.config.MaxInflightRPCs)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

given that we already have a MaxInflightRPCs (per peer), might it make more sense to implement MaxInflightRPCsPerSubnet by adding MaxPeersPerSubnet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants