aMule Forum
English => Feature requests => Topic started by: stoatwblr on March 02, 2012, 04:08:00 PM
-
It'd be useful (for me) to make the number of saved kad contacts tunable along with the number of sources required to declare a file "rare"
(I have a couple of situations where there may be 40 sources for a file but they're all missing the same chunk - and reacquiring those sources takes up to a day after a restart. I'm having to restart frequently at the moment because I'm testing ZFS)
-
Hm, shouldn't take that long. Unless these sources connect only part-time and with switching IPs of course. Then the seeds won't help you either.
If you want to play with it just tweak in PartFile.cpp
void CPartFile::SaveSourceSeeds()
{
#define MAX_SAVED_SOURCES 10
// Kry - Sources seeds
<snip>
if (GetSourceCount()>20) {
return;
}
Increase the 20 to turn on the seeds feature for files with more sources.
Increase the 10 to save more seeds per file. (must not exceed 255! )
-
It's quite likely they're only part time.
With most of the KAD world on some form of broadband connection, IPs don't change much anymore.
Thanks for the pointers.
-
And be warned that source seeds have a 2 hour life-time, i.e. source-seeds older than 2 hours are not used...