summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix segfault when time_t is 64bit on 32bit arch (#1666)Natanael Copa2020-12-281-3/+4
| | | | | | On some platforms, like with musl libc, time_t may be 64 bit even on 32bit platforms. Fix segfault by convert time_t to 64 bit and use 64bit format modifier instead of assume time_t is %ld
* flush OS write buffers before saving control fileAli MJ Al-Nasrawy2020-06-179-0/+42
| | | | | | | | | | This ensures that pieces are physically written to disk before marking them as finished in the control file. This should prevent data loss and corruption when resuming downloads after a system crash. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* flush internal buffers before auto-saving control fileAli MJ Al-Nasrawy2020-06-175-7/+13
| | | | | | | | | | Otherwise, some pieces may be marked as finished in the control file though they have not yet been written to the storage file. This should prevent data loss and corruption when resuming downloads after an app crash. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* Reset sessionDownloadLength and sessionUploadLength on download startTatsuhiro Tsujikawa2019-10-121-0/+2
| | | | | | | This commit resets sessionDownloadLength and sessionUploadLength when a download restarted (including unpause RPC method). Fixes #1486
* AppleTLS: even more correctly define kTLSProtocol13Nils Maier2019-10-061-3/+3
| | | | Yes, again
* AppleTLS: correctly define kTLSProtocol13Nils Maier2019-10-061-1/+4
|
* AppleTLS: update cipher suitesNils Maier2019-10-061-1/+10
|
* AppleTLS: TLSv3Nils Maier2019-10-061-2/+14
|
* Bump copyright year in --versionTatsuhiro Tsujikawa2019-09-211-1/+1
|
* Fix compiler warningTatsuhiro Tsujikawa2019-09-153-3/+6
|
* Update android build dependenciesTatsuhiro Tsujikawa2019-09-151-1/+1
| | | | | Update android build dependencies. Use android NDK r20 and build aarch64 binary.
* clang-format-8Tatsuhiro Tsujikawa2019-06-221-2/+2
|
* Merge pull request #1213 from Chaneybenjamini/libressl-prTatsuhiro Tsujikawa2019-05-191-1/+2
|\ | | | | Fix build with Libressl version 2.7.x
| * Fix openssl API version logic for libressl 2.7.xBen Chaney2018-06-031-1/+2
| |
* | Drop SSLv3.0 and TLSv1.0 and add TLSv1.3Tatsuhiro Tsujikawa2019-04-0712-98/+64
| | | | | | | | TLSv1.3 support is added for GNUTLS and OpenSSL.
* | clang-format-7Tatsuhiro Tsujikawa2019-04-072-4/+4
| |
* | Merge pull request #1315 from neheb/patch-1Tatsuhiro Tsujikawa2019-04-071-0/+3
|\ \ | | | | | | Platform: Fix compilation without deprecated OpenSSL APIs
| * | Platform: Fix compilation without deprecated OpenSSL APIsRosen Penev2019-01-221-0/+3
| | |
* | | Mask headersTatsuhiro Tsujikawa2019-01-051-6/+12
|/ /
* | FileEntry: Use implicitly-declared copy constructorTatsuhiro Tsujikawa2018-12-022-13/+0
| |
* | Remove linux getrandom and use C++ stdlib insteadTatsuhiro Tsujikawa2018-11-254-174/+2
| |
* | Don't send Accept Metalink header if Metalink is disabledTatsuhiro Tsujikawa2018-11-181-0/+8
| |
* | Update docTatsuhiro Tsujikawa2018-10-131-1/+1
| |
* | Enable IndentPPDirectivesTatsuhiro Tsujikawa2018-06-0993-682/+683
| |
* | gnutls: Fix bug that commonName is always emptyTatsuhiro Tsujikawa2018-06-051-0/+3
|/
* Fix compile warningTatsuhiro Tsujikawa2018-05-171-0/+1
|
* Fix build failure when InternalDHKeyExchange is usedTatsuhiro Tsujikawa2018-05-171-4/+6
|
* clang-formatTatsuhiro Tsujikawa2018-05-152-2/+3
|
* BufferedFile: Flush content on closeTatsuhiro Tsujikawa2018-02-121-0/+6
|
* wintls: Don't log writeData error in closing stateTatsuhiro Tsujikawa2018-01-081-2/+10
|
* WinTLS: Check return valueTatsuhiro Tsujikawa2018-01-041-2/+4
|
* mingw: Use SetFileTime to avoid DST adjustmentTatsuhiro Tsujikawa2017-11-291-4/+42
|
* clang-format-5.0Tatsuhiro Tsujikawa2017-11-2338-129/+477
|
* mingw: Fix compile errorTatsuhiro Tsujikawa2017-11-161-6/+7
|
* Merge pull request #1065 from kwkam/unknown-statTatsuhiro Tsujikawa2017-11-082-5/+10
|\ | | | | UnknownLengthPieceStorage: Completed Length
| * UnknownLengthPieceStorage: return piece lengthkwkam2017-11-082-5/+10
| | | | | | | | | | show something in console status when downloading items with unknown content length
* | replace some lines with make_uniquekwkam2017-11-083-12/+12
|/
* mingw: Fix high CPU usage in BitTorrent downloadsTatsuhiro Tsujikawa2017-11-061-5/+14
| | | | | | | | This commit fixes high CPU usage in BitTorrent downloads. Only mingw build is affected by this bug. Thank you kwkam for identifying the cause of the issue, and helping debugging this patch.
* Merge pull request #1059 from kwkam/patch-3Tatsuhiro Tsujikawa2017-11-054-14/+10
|\ | | | | replace some lines with make_shared
| * replace some lines with make_sharedkwkam2017-11-054-14/+10
| |
* | Merge pull request #1058 from kwkam/patch-2Tatsuhiro Tsujikawa2017-11-052-9/+14
|\ \ | | | | | | WinConsoleFile: fix colour properly
| * | WinConsoleFile: fix colour properlykwkam2017-11-052-9/+14
| |/
* / util: also detect xdg_* env variables on windowskwkam2017-11-041-1/+7
|/ | | so if people like to keep FHS they could define XDG_* for it
* Merge pull request #1038 from nicolov/patch-1Tatsuhiro Tsujikawa2017-11-011-0/+1
|\ | | | | Retry on HTTP 502
| * Retry on HTTP 502nicolov2017-10-221-0/+1
| |
* | MacOS: Allocate once (apfs compat)Nils Maier2017-11-011-16/+12
| |
* | Fix bug that signal handler does not work with libaria2Tatsuhiro Tsujikawa2017-10-311-3/+11
|/ | | | | This commit fixes the bug that signal handler does not work with libaria2 when aria2::RUN_ONCE is passed to aria2::run().
* wintls: Potential fix for undecrypted readTatsuhiro Tsujikawa2017-10-071-11/+7
|
* clang-formatTatsuhiro Tsujikawa2017-10-074-12/+10
|
* libaria2: Return last error code from DownloadHandle::getErrorCodeTatsuhiro Tsujikawa2017-08-301-1/+3
|