mirror of
https://github.com/transmission/transmission
synced 2024-12-27 10:07:40 +00:00
(trunk libT) better scrape management on private trackers.
If a private tracker scrape says that there are no downloaders in the swarm, mark all the peers in the private swarm as seeds. This can greatly reduce unnecessary overhead on large seedboxes. We don't do this same trick on public torrents, since a public tracker won't know of all the peers.
This commit is contained in:
parent
5fcec12cfd
commit
9f122a021a
1 changed files with 3 additions and 0 deletions
|
@ -1300,6 +1300,9 @@ on_scrape_done( const tr_scrape_response * response,
|
||||||
tracker->downloaderCount = row->downloaders;
|
tracker->downloaderCount = row->downloaders;
|
||||||
tracker->consecutiveFailures = 0;
|
tracker->consecutiveFailures = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( tr_torrentIsPrivate( tier->tor ) && !row->downloaders )
|
||||||
|
tr_peerMgrMarkAllAsSeeds( tier->tor );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue