summaryrefslogtreecommitdiff
path: root/src/RpcMethodImpl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Restart active download to apply previously not applicable optionsTatsuhiro Tsujikawa2016-05-061-2/+14
| | | | | | | | | | | | | | | Previously, we categorized options that can be used in aria2.changeOption RPC method into 2 categories. The options in one category can be applied on the fly, meaning that download continues to be active while applying options. Another category includes options which are only applicable when downloads are waiting or paused. In this change, when active download is ordered to change options which only applicable in waiting or paused state, it is now paused, and then automatically restarted. Although we have limited number of download concurrency, the pause and restart is done atomically, and the download is inserted at the front of the queue, it is picked up immediately if the concurrency regulation allows.
* Add bittorrent key to aria2.tellStopped statusTatsuhiro Tsujikawa2016-04-171-0/+12
|
* AmendTatsuhiro Tsujikawa2016-04-151-7/+16
|
* Merge branch 'RpcTellStatus-Hashing' of https://github.com/kkartaltepe/aria2 ↵Tatsuhiro Tsujikawa2016-04-151-0/+11
|\ | | | | | | into kkartaltepe-RpcTellStatus-Hashing
| * Report CheckIntegrity info in tellStatusKurt Kartaltepe2016-03-221-0/+11
| | | | | | | | | | | | | | | | | | - Adds verifiedLength to tellStatus. Reports the length of data that has been verified of the current RequestGroup being verified. - Adds verifyPending to tellStatus. Reports if the RequestGroup has a verification of integrity pending. Closes #561
* | clang-formatTatsuhiro Tsujikawa2016-04-151-1/+1
| |
* | system.listNotifications RPC methodSonny Piers2016-04-081-0/+20
| |
* | clang-formatTatsuhiro Tsujikawa2016-03-261-1/+1
|/
* Added support for a dynamic management of the number of concurrent downloads ↵oliviercommelarbre2016-03-161-1/+5
| | | | as a function of the overall bandwidth observed
* Add following to aria2.tellStatus response key as reverse link for followedByTatsuhiro Tsujikawa2016-03-051-0/+11
|
* Add "seeder" key to tellStatus RPC responseTatsuhiro Tsujikawa2016-02-031-4/+9
|
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-501/+491
|
* Fix compile error on travisTatsuhiro Tsujikawa2015-12-261-1/+1
|
* Add system.listMethods RPC methodTatsuhiro Tsujikawa2015-12-261-0/+18
| | | | | | | | system.listMethods just returns the available RPC method names. It can be executed without secret token, because it just returns the method names, and does not alter anything. See GH-437
* Send the last error message as part of tellStatus RPC responseJarda Snajdr2015-11-181-0/+4
|
* Use user-defined literals for time unitsTatsuhiro Tsujikawa2015-06-211-2/+2
|
* Replace timer facility with chrono libTatsuhiro Tsujikawa2015-06-091-4/+4
|
* Don't send back rpc-secret option value in aria2.getGlobalOption RPC methodTatsuhiro Tsujikawa2015-03-131-1/+1
|
* Remove request pre-authorization againNils Maier2014-07-221-4/+0
|
* Delay auth failures instead of PBKDF2Nils Maier2014-07-221-46/+65
| | | | Closes GH-256
* Fix use-after-free on exit with multi-file torrent download + DHTTatsuhiro Tsujikawa2014-06-081-0/+6
| | | | | | | | | | | DefaultPieceStorage may be referenced by one of DHT task (e.g., DHTPeerLookupTask), after RequestGroup was deleted, and even after RequestGroupMan was deleted. DefaultPieceStorage has a reference to MultiDiskAdaptor which calls RequestGroupMan object on destruction. So when DHT task is destroyed, DefaultPieceStorage is destroyed, which in turn destroys MultiDiskAdaptor. DHT task is destroyed after RequestGroupMan was destroyed, MultiDiskAdaptor will use now freed RequestGroupMan object, this is use-after-free.
* util::parseIntSegments: Return SegList<int>Tatsuhiro Tsujikawa2014-06-041-3/+2
|
* Support PREF_DIR change for Metalink filesTatsuhiro Tsujikawa2014-06-041-10/+23
| | | | | Reworked previous commit adeead6f0396e2f8551d1182972e277728fd6c8b, and now support changing PREF_DIR for Metalink downloads.
* Fix assertion failure when dir option of paused HTTP/FTP download is changedTatsuhiro Tsujikawa2014-06-031-3/+12
| | | | | | | | | | | | When the directory is changed via aria2.changeOption RPC method, we directly change first FileEntry's path using FileEntry::setPath(). If there is no PREF_OUT option is given, basically file name is unknown, so we just set empty string and let the next run determine the correct file name and new directory is applied there. But previous code does not reset length property of FileEntry, so the unexpected code path is taken when unpaused and its path expects path is not empty string. This commit fixes this issue by setting length to 0 using FileEntry::setLength().
* Authorize RPC multicalls only once.Nils Maier2014-05-201-2/+10
| | | | | Cache the auth status afterwards and just assume the token still matches (within the same request, of course).
* Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, alwaysNils Maier2014-04-171-10/+2
|
* Fix some warningsNils Maier2014-04-131-1/+0
|
* Add aria2.saveSession RPC methodTatsuhiro Tsujikawa2014-02-191-0/+18
| | | | | This method saves the current session to a file specified by --save-session option. This method returns "OK" if it succeeds.
* Add numStoppedTotal key to aria2.getGlobalStat() RPC method responseTatsuhiro Tsujikawa2014-02-151-0/+2
| | | | | | | It shows the number of stopped downloads in the current session and not capped by --max-download-result option. On the other hand, the existing numStopped key also shows the number of stopped downloads, but it is capped by --max-download-result option.
* Code cleanupTatsuhiro Tsujikawa2013-11-101-47/+47
|
* Introduce PrefPtr typedefNils Maier2013-09-191-2/+2
|
* Convert to autos and ranged loopsNils Maier2013-08-211-17/+12
|
* Rewrite RPC method factory functionTatsuhiro Tsujikawa2013-07-111-2/+1
|
* Use std::unique_ptr for ValueBase object hierarchyTatsuhiro Tsujikawa2013-07-111-264/+252
|
* BtRegistry: Use std::unique_ptr for BtObjectTatsuhiro Tsujikawa2013-07-061-10/+8
|
* DownloadEngine: Use std::unique_ptr for RequestGroupManTatsuhiro Tsujikawa2013-07-061-1/+1
|
* Use std::unique_ptr for MessageDigestTatsuhiro Tsujikawa2013-07-031-1/+1
|
* Rewrite util::divideTatsuhiro Tsujikawa2013-06-251-2/+1
|
* Wrap Command object in std::unique_ptrTatsuhiro Tsujikawa2013-06-231-3/+4
|
* DownloadContext::attrs_ now holds std::unique_ptrTatsuhiro Tsujikawa2013-06-231-4/+3
| | | | DownloadContext::getAttribute() returns a raw pointer.
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-158/+158
|
* Make getOption RPC method return option for stopped downloadsTatsuhiro Tsujikawa2013-05-281-5/+10
|
* Add changeGlobalOption, getGlobalOption, getGlobalOptions APITatsuhiro Tsujikawa2013-05-171-31/+34
|
* Add changeOption and DownloadHandle::getOption APITatsuhiro Tsujikawa2013-05-161-79/+77
| | | | | In aria2c.rst, define section label for "Input File" section so that it can be referenced from other document.
* Add changePosition APITatsuhiro Tsujikawa2013-05-151-4/+4
|
* Use BtFileMode for TorrentAttribute::modeTatsuhiro Tsujikawa2013-05-151-2/+2
|
* Add removeDownload, pauseDownload and unpauseDownload API functionTatsuhiro Tsujikawa2013-05-011-26/+24
|
* Implement IndexedList::iteratorTatsuhiro Tsujikawa2013-03-031-5/+5
| | | | | It is dangerous to expose internal iterator to the outside, which is easily misused.
* Remove PeerStorage::getActivePeers() and add getUsedPeers() insteadTatsuhiro Tsujikawa2013-01-261-6/+7
| | | | | PeerStorage::getUsedPeers() returns non-active peers, so caller must call Peer::isActive() to get active peers.
* Faster deletion of RequestGroup and DownloadResult listsTatsuhiro Tsujikawa2012-12-191-20/+18
|