aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: kad contacts and source seeds  (Read 4418 times)

stoatwblr

  • Sr. Member
  • ****
  • Karma: 12
  • Offline Offline
  • Posts: 318
kad contacts and source seeds
« 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)

Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: kad contacts and source seeds
« Reply #1 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! )
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

stoatwblr

  • Sr. Member
  • ****
  • Karma: 12
  • Offline Offline
  • Posts: 318
Re: kad contacts and source seeds
« Reply #2 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.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: kad contacts and source seeds
« Reply #3 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...
Logged
concordia cum veritate