optimized peer storage in resume data an in memory. Should use far less memory than previously for the peer list. Introduced peer source affinity, to avoid problem with a peer list that's diluted with stale peers

This commit is contained in:
Arvid Norberg
2009-05-06 22:36:24 +00:00
parent ea91a6e077
commit c8176cca55
9 changed files with 248 additions and 113 deletions

View File

@@ -3662,7 +3662,8 @@ known peers. These peers are not necessarily connected, so this number
should be much greater than the maximum number of connected peers.
Peers are evicted from the cache when the list grows passed 90% of
this limit, and once the size hits the limit, peers are no longer
added to the list.
added to the list. If this limit is set to 0, there is no limit on
how many peers we'll keep in the peer list.
``min_announce_interval`` is the minimum allowed announce interval
for a tracker. This is specified in seconds, defaults to 5 minutes and