From fc7af71aa826859ae2b38d6f8cc388b959343944 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 30 Oct 2011 19:23:27 +0900 Subject: [PATCH] --split option is now available in aria2.changeOption. --split option is now available in aria2.changeOption if a download is waiting/paused in queue. --- src/OptionHandlerFactory.cc | 1 + src/RpcMethodImpl.cc | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index c58139ce..1a231cd7 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -946,6 +946,7 @@ OptionHandlerFactory::createOptionHandlers() op->addTag(TAG_HTTP); op->setInitialOption(true); op->setChangeGlobalOption(true); + op->setChangeOptionForReserved(true); handlers.push_back(op); } { diff --git a/src/RpcMethodImpl.cc b/src/RpcMethodImpl.cc index 080ab592..8f31ae3a 100644 --- a/src/RpcMethodImpl.cc +++ b/src/RpcMethodImpl.cc @@ -1134,6 +1134,9 @@ void changeOption sgl.normalize(); dctx->setFileFilter(sgl); } + if(option.defined(PREF_SPLIT)) { + group->setNumConcurrentCommand(option.getAsInt(PREF_SPLIT)); + } if(option.defined(PREF_MAX_DOWNLOAD_LIMIT)) { group->setMaxDownloadSpeedLimit (option.getAsInt(PREF_MAX_DOWNLOAD_LIMIT));