Skip to content

Commit 26fb1ee

Browse files
committed
swarm maxAge: increase to 20 min
1 parent ca9b30f commit 26fb1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server/swarm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var randomIterate = require('random-iterate')
99
function Swarm (infoHash, server) {
1010
this.peers = new LRU({
1111
max: server.peersCacheLength || 1000,
12-
maxAge: server.peersCacheTtl || 900000 // 900 000ms = 15 minutes
12+
maxAge: server.peersCacheTtl || 20 * 60 * 1000 // 20 minutes
1313
})
1414
this.complete = 0
1515
this.incomplete = 0

0 commit comments

Comments
 (0)