From 8f33b95f9f0f961e9e2db7e961a348c615e91abb Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 2 Feb 2017 17:40:52 -0800 Subject: [PATCH] swarm maxAge: increase to 20 min --- lib/server/swarm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/swarm.js b/lib/server/swarm.js index d8a26e5..738005f 100644 --- a/lib/server/swarm.js +++ b/lib/server/swarm.js @@ -9,7 +9,7 @@ var randomIterate = require('random-iterate') function Swarm (infoHash, server) { this.peers = new LRU({ max: server.peersCacheLength || 1000, - maxAge: server.peersCacheTtl || 900000 // 900 000ms = 15 minutes + maxAge: server.peersCacheTtl || 20 * 60 * 1000 // 20 minutes }) this.complete = 0 this.incomplete = 0