diff --git a/resource.go b/resource.go index f225d93..16f803b 100644 --- a/resource.go +++ b/resource.go @@ -17,9 +17,68 @@ func NewResourceManager() (network.ResourceManager, error) { cfg := rcmgr.PartialLimitConfig{ System: rcmgr.ResourceLimits{ - ConnsOutbound: rcmgr.Unlimited, - Conns: rcmgr.Unlimited, - ConnsInbound: rcmgr.Unlimited, + Conns: rcmgr.Unlimited, + ConnsInbound: rcmgr.Unlimited, + ConnsOutbound: rcmgr.Unlimited, + Streams: rcmgr.Unlimited, + StreamsInbound: rcmgr.Unlimited, + StreamsOutbound: rcmgr.Unlimited, + }, + Transient: rcmgr.ResourceLimits{ + Conns: rcmgr.Unlimited, + ConnsInbound: rcmgr.Unlimited, + ConnsOutbound: rcmgr.Unlimited, + Streams: rcmgr.Unlimited, + StreamsInbound: rcmgr.Unlimited, + StreamsOutbound: rcmgr.Unlimited, + }, + ServiceDefault: rcmgr.ResourceLimits{ + Conns: rcmgr.Unlimited, + ConnsInbound: rcmgr.Unlimited, + ConnsOutbound: rcmgr.Unlimited, + Streams: rcmgr.Unlimited, + StreamsInbound: rcmgr.Unlimited, + StreamsOutbound: rcmgr.Unlimited, + }, + ServicePeerDefault: rcmgr.ResourceLimits{ + Conns: rcmgr.Unlimited, + ConnsInbound: rcmgr.Unlimited, + ConnsOutbound: rcmgr.Unlimited, + Streams: rcmgr.Unlimited, + StreamsInbound: rcmgr.Unlimited, + StreamsOutbound: rcmgr.Unlimited, + }, + ProtocolDefault: rcmgr.ResourceLimits{ + Conns: rcmgr.Unlimited, + ConnsInbound: rcmgr.Unlimited, + ConnsOutbound: rcmgr.Unlimited, + Streams: rcmgr.Unlimited, + StreamsInbound: rcmgr.Unlimited, + StreamsOutbound: rcmgr.Unlimited, + }, + ProtocolPeerDefault: rcmgr.ResourceLimits{ + Conns: rcmgr.Unlimited, + ConnsInbound: rcmgr.Unlimited, + ConnsOutbound: rcmgr.Unlimited, + Streams: rcmgr.Unlimited, + StreamsInbound: rcmgr.Unlimited, + StreamsOutbound: rcmgr.Unlimited, + }, + Conn: rcmgr.ResourceLimits{ + Conns: rcmgr.Unlimited, + ConnsInbound: rcmgr.Unlimited, + ConnsOutbound: rcmgr.Unlimited, + Streams: rcmgr.Unlimited, + StreamsInbound: rcmgr.Unlimited, + StreamsOutbound: rcmgr.Unlimited, + }, + Stream: rcmgr.ResourceLimits{ + Conns: rcmgr.Unlimited, + ConnsInbound: rcmgr.Unlimited, + ConnsOutbound: rcmgr.Unlimited, + Streams: rcmgr.Unlimited, + StreamsInbound: rcmgr.Unlimited, + StreamsOutbound: rcmgr.Unlimited, }, }