Autosearch

I assume everyone has tried the autosearch option in DC++, right?
Anyway, here is “what the file has to go through to be autosearched for”.

  • The file can’t already be running: You don’t need to search for a file that is being downloaded.
  • The file can’t be a file list: There’s no need to autosearch for this… It’s not like there’s going to be someone else that is havin that file list…
  • The file can’t be set to ‘paused’: DC++ respect that you don’t want to have this file to be downloaded (yet) and doesn’t waste resources trying to search for an alternative source.
  • The file can’t have more than 5 (five) online sources: This to avoid carrying out an autosearch when there are sufficient sources online.
  • The file must have a TTH: Searches for files with a TTH can be done with a lookup in a table.  Searches for files without TTH have to be done with relatively expensive string search.  And even then, they’re not guaranteed to be exact matches.
  • The file can’t be in an (internal) ‘autosearch list’: This list is composed of the 30 most recent autosearches. If a file has been searched for recently, new sources are unlikely to be discovered.
If a file is autosearched for and there are any (more than 0) online sources, the next autosearch will be performed 2 minutes later. If the file doesn’t have a source, the next autosearch will be performed 5 minutes later. (I just checked QueueManager.cpp… To me that doesn’t make any sense… Oh, well. Live with it.)

One Response to Autosearch

  1. TPO says:

    “* The file can’t have more than 5 (five) online sources – This to avoid carrying out an autosearch when there’s (apparantly) a ‘lot’ of sources already online.”

    This value is now configurable, as of version 0.685.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: