From bf876ecde4207a4218fb7a73e484c0453e964a24 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Fri, 3 Mar 2023 13:32:50 +0100 Subject: [PATCH] fix: no limits --- resource.go | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 62 insertions(+), 3 deletions(-) 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, }, }