aMule Forum

English => Feature requests => Topic started by: stoatwblr on March 02, 2012, 04:08:00 PM

Title: kad contacts and source seeds
Post 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)

Title: Re: kad contacts and source seeds
Post by: Stu Redman on March 02, 2012, 07:59:18 PM
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

Code: [Select]
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! )
Title: Re: kad contacts and source seeds
Post by: stoatwblr on March 02, 2012, 10:16:39 PM
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.
Title: Re: kad contacts and source seeds
Post by: GonoszTopi on March 09, 2012, 10:38:14 PM
And be warned that source seeds have a 2 hour life-time, i.e. source-seeds older than 2 hours are not used...