| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | clang-format-3.9 | Tatsuhiro Tsujikawa | 2016-10-15 | 1 | -2/+2 |
| | | |||||
| * | Fix typo found by Debian's Lintian | Tatsuhiro Tsujikawa | 2016-09-03 | 1 | -1/+1 |
| | | |||||
| * | Use default where possible | Nils Maier | 2016-08-29 | 1 | -2/+2 |
| | | |||||
| * | Refactor SocketCore::getPeerInfo, getAddrInfo to return Endpoint object | Tatsuhiro Tsujikawa | 2016-01-09 | 1 | -7/+6 |
| | | |||||
| * | make clang-format using clang-format-3.6 | Tatsuhiro Tsujikawa | 2015-12-27 | 1 | -159/+144 |
| | | |||||
| * | Evict timed out pooled socket periodically | Tatsuhiro Tsujikawa | 2015-11-11 | 1 | -7/+10 |
| | | | | | | | | | | | Previously we only scanned pool socket to check they are timed out when we pooled another socket. This means that pooled socket is not closed long time (stays in CLOSE-WAIT state) if we don't pool any more socket. In this commit, we now check pooled socket periodically (30 seconds) to avoid the sockets hanging in CLOSE-WAIT state long time. See GH-477 | ||||
| * | Use user-defined literals for time units | Tatsuhiro Tsujikawa | 2015-06-21 | 1 | -3/+2 |
| | | |||||
| * | Replace timer facility with chrono lib | Tatsuhiro Tsujikawa | 2015-06-09 | 1 | -24/+30 |
| | | |||||
| * | Use std::make_shared and make_unique where possible, part 1 | Tatsuhiro Tsujikawa | 2014-09-13 | 1 | -1/+1 |
| | | |||||
| * | Delay auth failures instead of PBKDF2 | Nils Maier | 2014-07-22 | 1 | -73/+5 |
| | | | | | Closes GH-256 | ||||
| * | Revert to existing "proper" coding style | Tatsuhiro Tsujikawa | 2014-06-03 | 1 | -6/+6 |
| | | | | | | The rule is simple: don't try to change the coding style of the existing codebase. | ||||
| * | Initialize DownloadEngine::tokenAverageDuration_ to something. | Nils Maier | 2014-05-27 | 1 | -1/+2 |
| | | |||||
| * | Adjust RPC token processing time | Nils Maier | 2014-05-20 | 1 | -3/+3 |
| | | | | | Make it consume a bit less time. | ||||
| * | Validate token using PBKDF2-HMAC-SHA1. | Nils Maier | 2014-04-19 | 1 | -1/+91 |
| | | | | | | | | | This change should make token validation more resilient to: - timing attacks (constant time array compare) - brute-force/dictionary attacks (PBKDF2) Closes #220 | ||||
| * | More code cleanups | Nils Maier | 2013-08-21 | 1 | -40/+48 |
| | | |||||
| * | Convert to autos and ranged loops | Nils Maier | 2013-08-21 | 1 | -18/+12 |
| | | |||||
| * | Convert most 0/NULL pointers to nullptr | Nils Maier | 2013-08-20 | 1 | -3/+3 |
| | | | | | Courtesy of llvm cpp11-migrate 3.3 | ||||
| * | Move GHR outside of function and provide ctor to suppress compiler warning | Tatsuhiro Tsujikawa | 2013-08-19 | 1 | -7/+12 |
| | | | | | Without ctor, compiler emits warning "unused variable ghr". | ||||
| * | Code cleanup | Tatsuhiro Tsujikawa | 2013-08-19 | 1 | -1/+1 |
| | | |||||
| * | Win: Use SetConsoleCtrlHandler for SIGINT/SIGTERM | Nils Maier | 2013-08-18 | 1 | -0/+8 |
| | | |||||
| * | DownloadEngine: Use std::unique_ptr for eventPoll_ | Tatsuhiro Tsujikawa | 2013-07-06 | 1 | -2/+2 |
| | | |||||
| * | Refactor MultiUrlRequestInfo ctor | Tatsuhiro Tsujikawa | 2013-07-06 | 1 | -2/+2 |
| | | | | | | | | 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 btRegistry_ | Tatsuhiro Tsujikawa | 2013-07-06 | 1 | -1/+1 |
| | | |||||
| * | DownloadEngine: Use std::unique_ptr for dnsCache_ | Tatsuhiro Tsujikawa | 2013-07-06 | 1 | -1/+1 |
| | | |||||
| * | DownloadEngine:: Use std::unique_ptr for webSocketSessionMan_ | Tatsuhiro Tsujikawa | 2013-07-06 | 1 | -2/+2 |
| | | | | | | | Notifier::addDownloadEventListener now takes pointer to DownloadEventListener. Session holds unique_ptr to ApiCallbackDownloadEventListener object. | ||||
| * | DownloadEngine: Use std::unique_ptr for RequestGroupMan | Tatsuhiro Tsujikawa | 2013-07-06 | 1 | -3/+2 |
| | | |||||
| * | DownloadEngine: Use std::unique_ptr for checkIntegrityMan_, fileAllocationMan_ | Tatsuhiro Tsujikawa | 2013-07-06 | 1 | -4/+4 |
| | | |||||
| * | Return std::unique_ptr member as const ref | Tatsuhiro Tsujikawa | 2013-06-26 | 1 | -4/+5 |
| | | | | | | Returning raw pointer has a risk that it may be stolen by std::shared_ptr in accident. | ||||
| * | HttpRequest: Use raw non-owning pointer for cookieStorage_ | Tatsuhiro Tsujikawa | 2013-06-25 | 1 | -0/+5 |
| | | |||||
| * | HttpRequest: Store non-owning raw pointer for authConfigFactory_ | Tatsuhiro Tsujikawa | 2013-06-25 | 1 | -2/+7 |
| | | |||||
| * | Wrap Command object in std::unique_ptr | Tatsuhiro Tsujikawa | 2013-06-23 | 1 | -23/+19 |
| | | |||||
| * | Require -std=c++11 and use std::shared_ptr instead of SharedHandle | Tatsuhiro Tsujikawa | 2013-06-22 | 1 | -32/+32 |
| | | |||||
| * | Release elements in routineCommands_ on destruction | Tatsuhiro Tsujikawa | 2013-05-15 | 1 | -6/+9 |
| | | |||||
| * | Refactor Notifier interface to accept DownloadEventListener interface | Tatsuhiro Tsujikawa | 2013-05-11 | 1 | -0/+11 |
| | | | | | | | | 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. | ||||
| * | Call onEndOfRun() on oneshot == true as well | Tatsuhiro Tsujikawa | 2013-04-27 | 1 | -3/+1 |
| | | |||||
| * | Add initialization function and addUri API function for libaria2 | Tatsuhiro Tsujikawa | 2013-04-26 | 1 | -5/+4 |
| | | |||||
| * | Move initialization code in aria2::main to struct Context | Tatsuhiro Tsujikawa | 2013-04-25 | 1 | -6/+12 |
| | | |||||
| * | Revert DownloadEngine.cc change in 6b55f5d3 because Debian Lenny breaks | Tatsuhiro Tsujikawa | 2013-03-04 | 1 | -7/+1 |
| | | |||||
| * | Do changes in 8aa1db6 in other places which include signal.h | Tatsuhiro Tsujikawa | 2013-03-03 | 1 | -1/+7 |
| | | |||||
| * | Support UDP tracker | Tatsuhiro Tsujikawa | 2013-02-25 | 1 | -3/+3 |
| | | | | | | It shares UDP listening port with IPv4 DHT. At the moment, in order to enable UDP tracker support, enable IPv4 DHT. | ||||
| * | Initialized scalar members | Tatsuhiro Tsujikawa | 2012-10-29 | 1 | -1/+2 |
| | | |||||
| * | Reworked download/upload statistics calculation | Tatsuhiro Tsujikawa | 2012-10-25 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | 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. | ||||
| * | Removed *Handle typedef | Tatsuhiro Tsujikawa | 2012-09-28 | 1 | -6/+6 |
| | | |||||
| * | Use std::string for SocketPoolEntry::options_ | Tatsuhiro Tsujikawa | 2012-09-26 | 1 | -12/+14 |
| | | | | | | Currently, we only store 1 value for FTP download. std::map is overkill in the this situation. | ||||
| * | Remove trailing white spaces | Tatsuhiro Tsujikawa | 2012-09-02 | 1 | -2/+2 |
| | | |||||
| * | Catch exception from Socket::getPeerInfo() when pooling connection | Tatsuhiro Tsujikawa | 2012-09-02 | 1 | -6/+24 |
| | | | | | | | | Socket::getPeerInfo() may fail if its TCP connection has already disconnected. In this case, we log this error. The success or failure of pooling connection should not affect the later execution of the program. | ||||
| * | Changed createSockPoolKey so that we can support IPv6 numeric address safely. | Tatsuhiro Tsujikawa | 2011-11-12 | 1 | -3/+2 |
| | | |||||
| * | Don't append character to std::string. | Tatsuhiro Tsujikawa | 2011-11-12 | 1 | -7/+3 |
| | | |||||
| * | Code cleanup. Avoid std::string temporaries. | Tatsuhiro Tsujikawa | 2011-11-05 | 1 | -1/+1 |
| | | |||||
| * | wallclock is now retrieved using global::wallclock() call. | Tatsuhiro Tsujikawa | 2011-08-10 | 1 | -10/+7 |
| | | | | | | This is necessary to avoid global variable initialization order problem. | ||||
