diff options
| author | oliviercommelarbre <oliviercommelarbre@gmail.com> | 2016-02-11 00:04:49 +0100 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-16 21:22:49 +0900 |
| commit | 9e05371fb6a70d7d5e9d49db31b879e79c1b56e7 (patch) | |
| tree | de5e25d3a5b89c932f897e6c4905ba7b507337ec /src/OptionHandlerFactory.cc | |
| parent | f0f1b8ef47c391550ff99982f1cad3dd4e1d410d (diff) | |
Added support for a dynamic management of the number of concurrent downloads as a function of the overall bandwidth observed
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 87b07cec..86a6f1a9 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -417,6 +417,16 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers() 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, "1", 1, 16, 'x')); |
