fix: do not allow dial to large number of multiaddrs (#954)

This commit is contained in:
Vasco Santos
2021-07-09 08:46:24 +02:00
committed by GitHub
parent 13cf476148
commit af723b355e
5 changed files with 34 additions and 1 deletions

View File

@ -4,6 +4,7 @@ module.exports = {
DIAL_TIMEOUT: 30e3, // How long in ms a dial attempt is allowed to take
MAX_PARALLEL_DIALS: 100, // Maximum allowed concurrent dials
MAX_PER_PEER_DIALS: 4, // Allowed parallel dials per DialRequest
MAX_ADDRS_TO_DIAL: 25, // Maximum number of allowed addresses to attempt to dial
METRICS: {
computeThrottleMaxQueueSize: 1000,
computeThrottleTimeout: 2000,