Skip to content

Commit 4d6d5fc

Browse files
committed
Reduce offers cache length to 2000.
1 parent ddc748c commit 4d6d5fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/server/swarm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Swarm (infoHash, server) {
2121
// maps offer_id to peer_id so that trickling candidates
2222
// can be sent to the correct peer
2323
self.offers = new LRU({
24-
max: 5000,
24+
max: 2000,
2525
maxAge: 60 * 1000 * 5 // 5 min
2626
})
2727

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bittorrent-tracker",
33
"description": "Simple, robust, BitTorrent tracker (client & server) implementation",
4-
"version": "9.11.0-arc-3",
4+
"version": "9.11.0-arc-4",
55
"author": {
66
"name": "WebTorrent, LLC",
77
"email": "[email protected]",

0 commit comments

Comments
 (0)