mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 21:37:57 +08:00
feat: lower connection pool
This commit is contained in:
parent
a10d012b81
commit
e0e4741fe0
@ -96,11 +96,11 @@ func InitWithIdentity(identity Identity) (*Config, error) {
|
||||
|
||||
// DefaultConnMgrHighWater is the default value for the connection managers
|
||||
// 'high water' mark
|
||||
const DefaultConnMgrHighWater = 900
|
||||
const DefaultConnMgrHighWater = 150
|
||||
|
||||
// DefaultConnMgrLowWater is the default value for the connection managers 'low
|
||||
// water' mark
|
||||
const DefaultConnMgrLowWater = 600
|
||||
const DefaultConnMgrLowWater = 50
|
||||
|
||||
// DefaultConnMgrGracePeriod is the default value for the connection managers
|
||||
// grace period
|
||||
|
||||
@ -1778,7 +1778,7 @@ The connection manager considers a connection idle if:
|
||||
LowWater is the number of connections that the basic connection manager will
|
||||
trim down to.
|
||||
|
||||
Default: `600`
|
||||
Default: `50`
|
||||
|
||||
Type: `optionalInteger`
|
||||
|
||||
@ -1788,7 +1788,7 @@ HighWater is the number of connections that, when exceeded, will trigger a
|
||||
connection GC operation. Note: protected/recently formed connections don't count
|
||||
towards this limit.
|
||||
|
||||
Default: `900`
|
||||
Default: `150`
|
||||
|
||||
Type: `optionalInteger`
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user