From 9e05371fb6a70d7d5e9d49db31b879e79c1b56e7 Mon Sep 17 00:00:00 2001 From: oliviercommelarbre Date: Thu, 11 Feb 2016 00:04:49 +0100 Subject: Added support for a dynamic management of the number of concurrent downloads as a function of the overall bandwidth observed --- src/OptionHandlerFactory.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/OptionHandlerFactory.cc') diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 87b07cec..86a6f1a9 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -416,6 +416,16 @@ std::vector OptionHandlerFactory::createOptionHandlers() op->setChangeGlobalOption(true); handlers.push_back(op); } + { + OptionHandler* op(new OptimizeConcurrentDownloadsOptionHandler + (PREF_OPTIMIZE_CONCURRENT_DOWNLOADS, + TEXT_OPTIMIZE_CONCURRENT_DOWNLOADS, + A2_V_FALSE, + OptionHandler::OPT_ARG)); + op->addTag(TAG_BASIC); + op->setChangeGlobalOption(true); + handlers.push_back(op); + } { OptionHandler* op(new NumberOptionHandler(PREF_MAX_CONNECTION_PER_SERVER, TEXT_MAX_CONNECTION_PER_SERVER, -- cgit