diff options
author | Viktor TrĂ³n <viktor.tron@gmail.com> | 2018-09-28 17:04:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 17:04:07 +0800 |
commit | 0da3b17a112a75b54c8b3e5a2bf65a27a1c8c999 (patch) | |
tree | a8ff65462707ec59c340a93b0a456657b2ab46d6 /cmd/swarm/main.go | |
parent | d8d86692716158f9d514dcaa06b69f129d43c3d8 (diff) | |
parent | 86f68cf04f5166848fd44150363866d7faa72b60 (diff) | |
download | dexon-0da3b17a112a75b54c8b3e5a2bf65a27a1c8c999.tar dexon-0da3b17a112a75b54c8b3e5a2bf65a27a1c8c999.tar.gz dexon-0da3b17a112a75b54c8b3e5a2bf65a27a1c8c999.tar.bz2 dexon-0da3b17a112a75b54c8b3e5a2bf65a27a1c8c999.tar.lz dexon-0da3b17a112a75b54c8b3e5a2bf65a27a1c8c999.tar.xz dexon-0da3b17a112a75b54c8b3e5a2bf65a27a1c8c999.tar.zst dexon-0da3b17a112a75b54c8b3e5a2bf65a27a1c8c999.zip |
Merge pull request #17747 from ethersphere/max-stream-peer-servers
Add stream peer servers limit
Diffstat (limited to 'cmd/swarm/main.go')
-rw-r--r-- | cmd/swarm/main.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go index 4c9ce931e..71d707c2b 100644 --- a/cmd/swarm/main.go +++ b/cmd/swarm/main.go @@ -116,6 +116,12 @@ var ( Usage: "Duration for sync subscriptions update after no new peers are added (default 15s)", EnvVar: SWARM_ENV_SYNC_UPDATE_DELAY, } + SwarmMaxStreamPeerServersFlag = cli.IntFlag{ + Name: "max-stream-peer-servers", + Usage: "Limit of Stream peer servers, 0 denotes unlimited", + EnvVar: SWARM_ENV_MAX_STREAM_PEER_SERVERS, + Value: 10000, // A very large default value is possible as stream servers have very small memory footprint + } SwarmLightNodeEnabled = cli.BoolFlag{ Name: "lightnode", Usage: "Enable Swarm LightNode (default false)", @@ -542,6 +548,7 @@ pv(1) tool to get a progress bar: SwarmSwapAPIFlag, SwarmSyncDisabledFlag, SwarmSyncUpdateDelay, + SwarmMaxStreamPeerServersFlag, SwarmLightNodeEnabled, SwarmDeliverySkipCheckFlag, SwarmListenAddrFlag, |