From f2dab48e66ab35bced3bf41451e089ed44eb0e0a Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 27 Jan 2023 16:57:03 +0100 Subject: [PATCH] docs: DefaultResourceMgrMinInboundConns --- docs/libp2p-resource-management.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/libp2p-resource-management.md b/docs/libp2p-resource-management.md index d6b782da1..b3eb48ce1 100644 --- a/docs/libp2p-resource-management.md +++ b/docs/libp2p-resource-management.md @@ -152,7 +152,7 @@ existing low priority idle connections can prevent new high priority connections The ResourceMgr doesn't know that the new connection is high priority and simply blocks it because of the limit its enforcing. To ensure the ConnMgr and ResourceMgr are congruent, the ResourceMgr [computed default limts](#computed-default-limits) are adjusted such that: -1. `Swarm.ResourceMgr.Limits.System.ConnsInbound` >= `max(Swarm.ConnMgr.HighWater * 2, 800)` AND +1. `Swarm.ResourceMgr.Limits.System.ConnsInbound` >= `max(Swarm.ConnMgr.HighWater * 2, DefaultResourceMgrMinInboundConns)` AND 2. `Swarm.ResourceMgr.Limits.System.StreamsInbound` is greater than any new/adjusted `Swarm.ResourceMgr.Limits.System.ConnsInbound` value so that there's enough streams per connection. ### How does one see the Active Limits?