mirror of https://github.com/aria2/aria2
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed the number of tracker request attempt from 5 to 2. * src/TrackerWatcherCommand.ccpull/1/head
parent
cb6604c88e
commit
8ab55abf11
|
@ -1,3 +1,8 @@
|
|||
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Changed the number of tracker request attempt from 5 to 2.
|
||||
* src/TrackerWatcherCommand.cc
|
||||
|
||||
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Use host and protocol in original URI, because URI selector
|
||||
|
|
|
@ -205,11 +205,10 @@ TrackerWatcherCommand::createRequestGroup(const std::string& uri)
|
|||
// and if they all fails, then try next one.
|
||||
if(backupTrackerIsAvailable(_requestGroup->getDownloadContext())) {
|
||||
logger->debug("This is multi-tracker announce.");
|
||||
rg->getOption()->put(PREF_MAX_TRIES, "2");
|
||||
} else {
|
||||
logger->debug("This is single-tracker announce.");
|
||||
rg->getOption()->put(PREF_MAX_TRIES, "5");
|
||||
}
|
||||
rg->getOption()->put(PREF_MAX_TRIES, "2");
|
||||
// TODO When dry-run mode becomes available in BitTorrent, set
|
||||
// PREF_DRY_RUN=false too.
|
||||
rg->getOption()->put(PREF_USE_HEAD, V_FALSE);
|
||||
|
|
Loading…
Reference in New Issue