Commit Graph

3535 Commits (5ea3bcc3492ca6d4b32fda4d8458eaee912748b4)

Author SHA1 Message Date
Nils Maier 366e2e8f79 Use default where possible 2016-08-29 16:52:20 +02:00
Nils Maier 08f4b5e4f4 WinTLS: Better errors (from WSA) 2016-08-29 16:51:18 +02:00
Tatsuhiro Tsujikawa 3cdde0f425 Compile with openssl 1.1.0
We moved @CPPUNIT_LIBS@ to later position.  This is because in my
development environment, it adds linker search directory which
contains system default openssl, while I'd like to use my custom
openssl installation.  This fix is not universal, since other
libraries can do the same thing.  It is a bit hard to fix this
properly because we mix -L and -l in a same variable.
2016-08-27 00:35:28 +09:00
Tatsuhiro Tsujikawa 7a31f9bf29 Make assertion hold
If we have peer which is already used, make addAndCheckoutPeer() fail.
If peer is in unused list, first remove the old entry, and then add
new one.  This would make assertion in ~DefaultPeerStorage hold.
2016-08-20 18:49:19 +09:00
Tatsuhiro Tsujikawa c42fa9f20c Revert "Remove false assertion"
This reverts commit 65b7205dfd.
2016-08-20 18:27:43 +09:00
Tatsuhiro Tsujikawa 65b7205dfd Remove false assertion
As of 4df7b540a2, the assertion no
longer holds.
2016-08-20 18:22:23 +09:00
Tatsuhiro Tsujikawa 48310915ee Replace "/" with "-" in magnet dn name when used as in-memory download name 2016-08-01 22:25:03 +09:00
Tatsuhiro Tsujikawa 8e07568a9e clang-format 2016-07-21 01:00:47 +09:00
Tatsuhiro Tsujikawa 5b4e3361d4 Update --auto-file-renaming help text according to the manual page 2016-07-20 22:51:12 +09:00
Tatsuhiro Tsujikawa 9a63e59104 Extend maximum BitTorrent incoming payload size to 64KiB 2016-07-20 22:42:29 +09:00
103yiran d1afaa2ff1 correcting the copyright format error 2016-07-20 11:21:00 +08:00
103yiran 8c1ebd2e4f correcting the copyright format error 2016-07-20 11:19:42 +08:00
103yiran 193073754d correcting the copyright format error 2016-07-20 11:18:23 +08:00
103yiran e5ece7586e correcting the copyright format error 2016-07-20 11:17:07 +08:00
103yiran d25fdd3636 correcting the copyright format error 2016-07-20 11:13:56 +08:00
103yiran 0eaeda9548 correcting the copyright format error 2016-07-20 11:11:00 +08:00
103yiran d3e9c34bd5 correcting the copyright format error 2016-07-20 11:09:20 +08:00
103yiran 24949b7c70 correcting the copyright format error 2016-07-20 11:04:59 +08:00
Nils Maier f5ceeebe86 Fix some compiler warnings 2016-07-19 20:55:42 +02:00
Nils Maier 665a1d1b35 Better auto-renaming
Up until now aria2 file auto renaming worked by just appending a new
unique number to the file path, behind the file name extension, if any,
changing what most other programs consider the file extension in the
process.
Now, aria2 will attempt to insert the number before the file extension,
leaving the extension intact, so that e.g. a ".jpg" still is a ".jpg"
file and opens in your configured image viewer when clicking it.
If a file has no extension (incl. so called "dot files"), the number
will be appended to the file name as usual.

Note: This is a potentially breaking change that might break third party
scripts that rely on aria2 auto file renaming producing a certain format
for renamed files. Please fix your scripts accordingly.

Closes GH-709
2016-07-19 20:55:41 +02:00
Nils Maier b6d9e7a01f Log number of items loaded from input file 2016-07-19 20:55:41 +02:00
Tatsuhiro Tsujikawa 196e4cbede Use C++ style cast 2016-07-18 17:41:09 +09:00
Tatsuhiro Tsujikawa 196f8c4ad9 Fix help output 2016-07-18 17:38:52 +09:00
Tatsuhiro Tsujikawa 99e5d85de0 Merge branch 'seed' of https://github.com/SSSSeb/aria2 into SSSSeb-seed 2016-07-18 17:34:34 +09:00
Tatsuhiro Tsujikawa 3220989f56 Link external libraries to libaria2 with --enable-libaria2 2016-07-17 19:17:12 +09:00
Tatsuhiro Tsujikawa 777b818690 Add offset value to Timer::clock::now() to treat 0 as special value 2016-07-14 00:52:43 +09:00
Sébastien Cabaniols 7410b27990 allow seconds for seed-time (fractional minutes) 2016-07-12 09:58:56 +02:00
Tatsuhiro Tsujikawa 01f870221b Fix have entry removal 2016-07-11 01:29:12 +09:00
Tatsuhiro Tsujikawa babdcb2c7d Change have entry indexing method
Now use increasing sequence of integer rather than timer value.
2016-07-10 22:42:49 +09:00
Tatsuhiro Tsujikawa f2aa7564b0 Remove unnecessary condition 2016-07-10 00:05:08 +09:00
Tatsuhiro Tsujikawa 4d27668d7c Decide interest and choking after receiving messages 2016-07-10 00:04:42 +09:00
Tatsuhiro Tsujikawa c4cf8fa61d Send have message without too much delay
Also send bitfield rather than have messages if bitfield message is
equal to or less than the sum of have messages which otherwise would
be sent.
2016-07-09 21:36:57 +09:00
Tatsuhiro Tsujikawa ae11b7a85d Fix bug that causes bogus EOF connection failure in BitTorrent downloads 2016-07-09 21:36:57 +09:00
Tatsuhiro Tsujikawa 41df1607f6 Fix frequent interested/not interested message transmission 2016-07-09 21:36:57 +09:00
Tatsuhiro Tsujikawa 570d46725f Fix frequent choke/unchoke message transmission 2016-07-09 21:36:57 +09:00
Tatsuhiro Tsujikawa 360ca57231 Try to use available URI if all pooled requests are sleeping 2016-07-07 23:51:51 +09:00
Tatsuhiro Tsujikawa a1ce6d2e7f Set server status error on network failure 2016-07-05 23:15:52 +09:00
Tatsuhiro Tsujikawa 295affe160 Disable AI_ADDRCONFIG if no IPv4/IPv6 address is configured for any interface 2016-07-04 22:06:35 +09:00
Tatsuhiro Tsujikawa 4df7b540a2 Fix warning "Cannot fid peer ... in usedPeers_" 2016-07-03 05:26:41 +09:00
Tatsuhiro Tsujikawa f7cbbfd209 Retain peers obtained earlier 2016-07-02 16:05:22 +09:00
Tatsuhiro Tsujikawa d38da969a5 Apply --retry-wait on 503 only 2016-06-21 23:46:54 +09:00
Tatsuhiro Tsujikawa e8fcedf092 Take into account timeout 2016-06-21 23:30:39 +09:00
Tatsuhiro Tsujikawa 10b64e281a Ensure that lowest speed check is done even when download speed is 0 2016-06-21 23:25:24 +09:00
Tatsuhiro Tsujikawa 2365c91994 Document that -o is always relative to -d option 2016-06-21 22:50:37 +09:00
Tatsuhiro Tsujikawa 1e59e357af Fix compile error on OS X 2016-06-19 19:08:17 +09:00
Tatsuhiro Tsujikawa f6f672f4d9 Allow larger ut_metadata size 2016-06-17 23:07:55 +09:00
Tatsuhiro Tsujikawa a86a823f50 mingw: Change FD_SETSIZE to 32768 2016-06-16 23:00:21 +09:00
Tatsuhiro Tsujikawa fa07d0be35 Fix uninitialized variable 2016-06-14 21:55:42 +09:00
Tatsuhiro Tsujikawa 2dd10c9645 Revert "Remove dead code"
This reverts commit fd024e6773.
2016-06-12 09:52:58 +09:00
Tatsuhiro Tsujikawa fd024e6773 Remove dead code 2016-06-10 00:18:35 +09:00