summaryrefslogtreecommitdiff
path: root/src/MultiUrlRequestInfo.cc
Commit message (Collapse)AuthorAgeFilesLines
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-101/+108
|
* Rewrite Time with chronoTatsuhiro Tsujikawa2015-06-091-2/+2
|
* Replace timer facility with chrono libTatsuhiro Tsujikawa2015-06-091-7/+3
|
* Add --min-tls-version optionTatsuhiro Tsujikawa2014-12-061-2/+6
| | | | | The --min-tls-version option specifies minimum SSL/TLS version to enable. Possible Values: SSLv3, TLSv1, TLSv1.1, TLSv1.2 Default: TLSv1
* Add --enable-color option to enable/disable terminal color outputTatsuhiro Tsujikawa2014-01-301-0/+1
|
* AppleTLS: Enable --certificateNils Maier2013-09-301-2/+1
| | | | Tested against self-signed CA with nginx
* Log exception; throw error if loading private key and/or certificate failedTatsuhiro Tsujikawa2013-09-261-2/+7
|
* Teach Libssl backend to load .p12 filesNils Maier2013-09-221-5/+1
|
* More code cleanupsNils Maier2013-08-211-16/+13
|
* Win: Use SetConsoleCtrlHandler for SIGINT/SIGTERMNils Maier2013-08-181-7/+30
|
* MultiUrlRequestFactory: Use std::unique_ptr for DownloadEngineTatsuhiro Tsujikawa2013-07-061-1/+1
|
* Refactor MultiUrlRequestInfo ctorTatsuhiro Tsujikawa2013-07-061-14/+34
| | | | | | | StatCalc creation is moved to MultiUrlRequestInfo. The summary output is done only when PREF_QUIET is false and it is always to global::cout(), so remove summaryOut_ and just use global::cout() in that case. Also use std::unique_ptr for statCalc_ in DownloadEngine.
* DownloadEngine:: Use std::unique_ptr for webSocketSessionMan_Tatsuhiro Tsujikawa2013-07-061-4/+2
| | | | | | Notifier::addDownloadEventListener now takes pointer to DownloadEventListener. Session holds unique_ptr to ApiCallbackDownloadEventListener object.
* DownloadEngine: Use std::unique_ptr for RequestGroupManTatsuhiro Tsujikawa2013-07-061-1/+1
|
* Rewrite AuthConfig objects using std::unique_ptrTatsuhiro Tsujikawa2013-06-261-2/+2
|
* HttpRequest: Store non-owning raw pointer for authConfigFactory_Tatsuhiro Tsujikawa2013-06-251-2/+2
|
* Move RequestGroup vector from Context to RequestGroupManTatsuhiro Tsujikawa2013-06-231-6/+5
|
* Use std::unique_ptr in SingletonHolderTatsuhiro Tsujikawa2013-06-221-2/+1
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-12/+12
|
* Fix compile error without message digest supportTatsuhiro Tsujikawa2013-05-251-0/+2
|
* Fix uninitialized valuesTatsuhiro Tsujikawa2013-05-231-1/+5
|
* Refactor Notifier interface to accept DownloadEventListener interfaceTatsuhiro Tsujikawa2013-05-111-5/+9
| | | | | | | WebSocketSessionMan now implements DownloadEventListener and is added to Notifier. It becomes member variable of DownloadEngine. The event constant for download event is defined in aria2.h so that we can add event callback API later.
* Reset global::globalHaltRequested to 0 in MultiUrlRequestInfo::prepare()Tatsuhiro Tsujikawa2013-05-051-0/+1
|
* Add SessionConfig to store per Session configTatsuhiro Tsujikawa2013-05-041-20/+49
| | | | | | | sessionConfigSetKeepRunning() was removed and SessionConfig has keepRunning member instead. Signal handlers are now all prepared in MultiUrlRequestGroup object. Setting SessionConfig.useSignalHandler to false will avoid signal handler setup.
* Add initialization function and addUri API function for libaria2Tatsuhiro Tsujikawa2013-04-261-19/+14
|
* Move initialization code in aria2::main to struct ContextTatsuhiro Tsujikawa2013-04-251-67/+102
|
* AppleTLS: Support credentials via KeyChain fingerprintsNils Maier2013-04-081-2/+5
|
* AppleTLS: Implement AppleTLS and Apple Message DigestNils Maier2013-04-051-5/+3
|
* Revert 6b55f5d3 because it breaks opensolaris buildTatsuhiro Tsujikawa2013-03-171-7/+1
|
* Do changes in 8aa1db6 in other places which include signal.hTatsuhiro Tsujikawa2013-03-031-1/+7
|
* Do not reference RequestGroups longer than necessaryNils Maier2013-02-261-1/+3
| | | | | | | | | | There is an initial vector of SharedHandle<RequestGroup> to seed the DownloadEngine. This vector was however kept alive via main.cc -> MultiUrlRequestInfo up until the program exits, hence effetively leaking all initial RequestGroups and associated object instances. Hence, as a matter of dirty-workaround, drop the contents of that initial vector as soon as it is not required any longer.
* Set sa_mask when setting signal handlerTatsuhiro Tsujikawa2013-02-141-6/+22
|
* Reworked download/upload statistics calculationTatsuhiro Tsujikawa2012-10-251-0/+1
| | | | | | | | | | | | | | The old implementation calculates download/upload statistics for a RequestGroup by summing up all PeerStat objects. For global statistics, those are summed together. This clearly incurs runtime penalty and we introduced some kind of caching which updates statistics every 250ms but it did not work right. This change removes all these aggregation code, and instead makes RequestGroup and RequestGroupMan objects hold NetStat object and download/upload bytes are directly calculated by thier own NetStat. This is far more simplar than the old way and less runtime penalty and brings more accuracy.
* RPC over SSL/TLS transportTatsuhiro Tsujikawa2012-09-301-9/+28
| | | | | | | To enable RPC over SSL/TLS, specify server certificate and private key using --rpc-certificate and --rpc-private-key options and enable --rpc-secure option. After the encryption is enabled, use https and wss scheme to access RPC server.
* Removed *Handle typedefTatsuhiro Tsujikawa2012-09-281-1/+1
|
* Use system-wide certificates for SSLTatsuhiro Tsujikawa2012-07-051-1/+4
| | | | | | | | | | Use system-wide certificates for SSL. For GnuTLS it requires the latest version, 3.0.20. OpenSSL had it for longer. This means that if SSL library is properly configured to locate system-wide certificates store, the user don't have to use --ca-certificate option. Also packagers don't have to use --with-ca-bundle configure option. Patch from Cristian Morales Vega
* Moved parseAsyncDNSServers() to AsyncNameResolver.cc and refactored.Tatsuhiro Tsujikawa2012-05-161-47/+3
| | | | | The parseAsyncDNSServers() now uses net::getBinAddr() internally, which makes the function simpler. Also added unit test.
* Conditional compile for WebSocket.Tatsuhiro Tsujikawa2012-04-081-1/+5
| | | | WebSocket support depends on Message Digest support.
* Added JSON-RPC over WebSocket.Tatsuhiro Tsujikawa2012-03-201-0/+11
| | | | Wslay library must be placed under deps/wslay.
* Added --deferred-input option.Tatsuhiro Tsujikawa2012-02-051-2/+8
| | | | | | | | | If true is given to --deferred-input option, aria2 does not read all URIs and options from file specified by -i option at startup, but it reads one by one when it needs later. This may reduce memory usage if input file contains a lot of URIs to download. If false is given, aria2 reads all URIs and options at startup. This option defaults to false.
* Made notice level log messages translatableTatsuhiro Tsujikawa2011-12-021-2/+2
|
* Rewritten util::split and added its iterator version.Tatsuhiro Tsujikawa2011-11-041-2/+2
| | | | | Iterator based functions util::startsWith, util::endsWith, util::streq, util::strieq were added.
* Use sockaddr_union in parseAsyncDNSServers().Tatsuhiro Tsujikawa2011-10-191-4/+4
|
* Added --download-result option.Tatsuhiro Tsujikawa2011-08-221-1/+2
| | | | | | | | | | Added --download-result=OPT option. This option changes the way "Download Results" is formatted. If OPT is 'default', print GID, status, average download speed and path/URI. If multiple files are involved, path/URI of first requested file is printed and remaining ones are omitted. If OPT is 'full', print GID, status, average download speed, percentage of progress and path/URI. The percentage of progress and path/URI are printed for each requested file in each row.
* Use global::cout to output string to stdout.Tatsuhiro Tsujikawa2011-08-091-8/+8
| | | | | | | In MinGW32 build, global::cout is WinConsoleFile. When outputing to console, it uses WriteConsoleW, so Unicode characters are written. Fixed memory leak in WChar<->MultiByte conversion functions. The portion of code which uses std::cout is rewritten to use global::cout.
* Fixed the bug that the message "Loaded cookies from ..." appears whenTatsuhiro Tsujikawa2011-05-121-2/+2
| | | | loading cookies from that file failed.
* Fixed compile error and unit test error without SSL library.Tatsuhiro Tsujikawa2011-03-171-1/+1
|
* Fixed compile error with c-ares 1.7.0Tatsuhiro Tsujikawa2011-02-191-0/+3
|
* Check the availability of ares_set_servers and ares_addr_node.Tatsuhiro Tsujikawa2011-02-181-1/+2
|
* Added --async-dns-server option.Tatsuhiro Tsujikawa2011-02-081-0/+49
| | | | | | | | | | This option accepts comma separated list of DNS server address used in asynchronous DNS resolver. Usually asynchronous DNS resolver reads DNS server addresses from /etc/resolv.conf. When this option is used, it uses DNS servers specified in this option instead of ones in /etc/resolv.conf. You can specify both IPv4 and IPv6 address. This option is useful when the system does not have /etc/resolv.conf and user does not have the permission to create it.