Commit Graph

5035 Commits (a7fcf83bdfabf213d80e32d72561764f82e6782d)

Author SHA1 Message Date
c3mb0 aad9838b34 Removed the unnecessary newline 2016-01-20 15:08:47 +02:00
c3mb0 8be520d419 Updated dependency and source url's
The RaspberryPi Dockerfile had some out-of-date dependency packages and
was downloading an outdated aria2 source from Sourceforge, which
resulted in a build for version 1.19.0.  The new
fetch-latest-release-from-GitHub script I've cooked up should always
work as long as GitHub doesn't change their API and aria2's platform
agnostic releases follow the "{version number}.tar.bz2" naming format.
2016-01-20 14:13:59 +02:00
Tatsuhiro Tsujikawa 8b93b12488 Reduce delay in tracker request
We eliminated 1 second delay between completion of name resolution for
tracker request and time when it is actually issued.  We also elimited
1 second delay after last torrent download exists and it is told to
DHTInteractionCommand.
2016-01-19 11:24:57 +09:00
Tatsuhiro Tsujikawa 7b2e797fdf Disable IPv6 on non-async NameResolver if configuration wants 2016-01-19 10:50:21 +09:00
Tatsuhiro Tsujikawa ffec92ec57 Fix mysterious 1 second delay with async DNS 2016-01-19 10:42:25 +09:00
Tatsuhiro Tsujikawa e6b6aa324b UDP tracker: Log transaction ID and connection ID in hex string 2016-01-19 00:24:21 +09:00
Tatsuhiro Tsujikawa dd678b7c65 UDP tracker: Use unsigned integer for transaction ID and connection ID 2016-01-18 23:47:31 +09:00
Tatsuhiro Tsujikawa ddb94ebdac Fix bug that UDP port was incorrectly used in UDP tracker announce request 2016-01-18 23:29:07 +09:00
Tatsuhiro Tsujikawa 9b41970134 Don't use std::random_device directly as suggested by document
See http://en.cppreference.com/w/cpp/numeric/random/random_device
2016-01-17 17:30:36 +09:00
Tatsuhiro Tsujikawa 0282899bfa Fix compile error 2016-01-16 21:21:16 +09:00
Tatsuhiro Tsujikawa aa06a17fda Refactor HttpRequest
This also makes comparison performed when replacing builtin header
field with user-defined one case-insensitive.
2016-01-10 16:59:31 +09:00
Tatsuhiro Tsujikawa bf9d99f291 Send Want-Digest as per RFC 3230 2016-01-10 16:10:57 +09:00
Tatsuhiro Tsujikawa ea4d99ea08 Refactor SocketCore::getPeerInfo, getAddrInfo to return Endpoint object 2016-01-09 18:17:04 +09:00
Tatsuhiro Tsujikawa e899eba76f Define SockAddr and use it instead of raw std::pair 2016-01-09 17:20:03 +09:00
Tatsuhiro Tsujikawa d2d06395d9 Try all found address set to bind sockets with --multiple-interface
Fixes GH-523
2016-01-09 14:06:09 +09:00
Tatsuhiro Tsujikawa e92027b9f0 clang-format 2016-01-05 16:23:58 +09:00
Tatsuhiro Tsujikawa 8246fd1ff5 Updating upload size and speed must be done separately 2016-01-05 16:23:58 +09:00
Tatsuhiro Tsujikawa b1132d6b10 make clang-format using clang-format-3.6 2015-12-27 18:40:08 +09:00
Tatsuhiro Tsujikawa 4abad2f64c Exclude src/usage_text.h from clang-format 2015-12-27 18:36:36 +09:00
Tatsuhiro Tsujikawa eaaf33d9aa Replace sourceforge references with aria2.github.io 2015-12-27 18:03:57 +09:00
Tatsuhiro Tsujikawa 22e18e5983 Fix compile error on travis 2015-12-26 21:08:06 +09:00
Tatsuhiro Tsujikawa d0ccb39880 Add system.listMethods RPC method
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
2015-12-26 20:58:42 +09:00
Tatsuhiro Tsujikawa b9435f8786 Clean up 2015-12-26 19:03:50 +09:00
Tatsuhiro Tsujikawa 0a63a7ecc3 Add clang-format
Use clang-format-3.6 for now.
2015-12-23 18:00:49 +09:00
Tatsuhiro Tsujikawa bc1c9cae00 Cleanup 2015-12-23 17:34:09 +09:00
Tatsuhiro Tsujikawa 8512fe992e Support content-range from non-compliant server
See GH-509
2015-12-19 19:26:39 +09:00
Tatsuhiro Tsujikawa 8709015024 Reduce UDP tracker request timeout
See GH-507
2015-12-19 18:26:10 +09:00
Tatsuhiro Tsujikawa b89dc77407 Update doc 2015-12-19 11:35:30 +09:00
Tatsuhiro Tsujikawa 029d6897f2 Apply --retry-wait when retrying after 404
Previously, --retry-wait was not used when retrying after 404
(--max-file-not-found).  The retry was done without delay.  Also the
maximum retry count (--max-retries) was ignored when retrying with
404.

This commit makes --retry-wait apply for retrying with 404 as well.
It also combines --max-retries and --max-file-not-found.  When
retrying with 404, it is counted toward retry count.
2015-12-18 23:00:35 +09:00
Tatsuhiro Tsujikawa c54ecdf8e1 Fix compile error with LibreSSL 2015-12-17 17:21:28 +09:00
Tatsuhiro Tsujikawa 79e3381173 Compile with OpenSSL 1.1.0-pre1 2015-12-14 21:11:06 +09:00
Tatsuhiro Tsujikawa 97f3c3c27e Update bash_completion 2015-12-06 22:30:27 +09:00
Tatsuhiro Tsujikawa 5456e91d61 Update openssl version to 1.0.2e in Android build README 2015-12-06 22:27:27 +09:00
Tatsuhiro Tsujikawa c12d64ff25 Update NEWS 2015-12-05 22:24:49 +09:00
Tatsuhiro Tsujikawa b858d20548 Bump up version number to 1.19.3 2015-12-05 22:16:59 +09:00
Tatsuhiro Tsujikawa 9a77c404f7 Fix bug that pause/unpause seeding torrent prevents new downloads from starting
Previously, with --bt-detach-seed-only, when user issued pause and
unpause command to seeding torrent, and it was started again, and it
immediately got seeding status, but aria2 did not start new download
waiting in the queue.  This commit fixes this bug.

See GH-490
2015-12-02 23:49:38 +09:00
Tatsuhiro Tsujikawa fb4310e849 Detailed docker copy instruction 2015-12-02 23:03:01 +09:00
Tatsuhiro Tsujikawa 6f857fe332 Merge pull request #498 from ITriskTI/patch-1
Update aria2c.rst
2015-12-01 22:31:28 +09:00
Nils Maier cccbc59026 mingw: fix handle leak in File::size 2015-12-01 14:24:17 +01:00
ITriskTI 3de11fa246 Update aria2c.rst 2015-12-01 15:40:23 +03:00
Tatsuhiro Tsujikawa 8fbfb3ac84 Log tracker request URI when processing response failed 2015-11-30 23:29:57 +09:00
Tatsuhiro Tsujikawa c63e315d3b Update sphinx_rtd_theme 2015-11-29 19:01:10 +09:00
Tatsuhiro Tsujikawa 35f08f05ef Add --bt-enable-hook-after-hash-check option
This option sets flag which allows hook command invocation after hash
check (see -V option) in BitTorrent download.  By default, when hash
check succeeds, the command given by --on-bt-download-complete is
executed.  To disable this action, give false to this option.
2015-11-29 18:54:19 +09:00
Tatsuhiro Tsujikawa 6a0638c158 Update doc 2015-11-28 14:12:34 +09:00
Tatsuhiro Tsujikawa e8a9a366db Add --socket-recv-buffer-size option
Set the maximum socket receive buffer in bytes. Specifing 0 will
disable this option. This value will be set to socket file descriptor
using SO_RCVBUF socket option with setsockopt() call.

See GH-487 about the usecase of this option
2015-11-28 14:12:23 +09:00
Tatsuhiro Tsujikawa 699f04d0b8 Disable --deferred-input when --save-session is used together
With --deferred-input=true, aria2 only reads input file to fill active
download slots, while keeping input file open.  Meanwhile,
--save-session saves all download info inside memory, but this does
not take into account of unread item in input file.  This will lead to
lose input data in saved session file.  Also current BufferedFile
implementation used to read/write input/output file take a lock on
Windows.  This effectively prevents session serializer from writing
session data to the same file which is still kept open because of
--deferred-input.  See GH-493
2015-11-28 13:02:21 +09:00
Tatsuhiro Tsujikawa d0b6a88f9c Base32 decode lowercased characters as well 2015-11-25 23:08:24 +09:00
Tatsuhiro Tsujikawa 432675e512 mingw: Use GetFileSize to get file size
_wstat family does not work with symbolic links.  They always returns
size 0.  To workaround this, we now use GetFileSize to get file size.
To do that, we need to first obtain file HANDLE, which is a bit
tedious because of the messy interface of CreateFileW, but we have no
way to get around it.
2015-11-23 12:30:49 +09:00
Tatsuhiro Tsujikawa c2157e608e Fix bug that file allocation=trunc get stuck with Windows symlink 2015-11-22 00:36:43 +09:00
Tatsuhiro Tsujikawa 2eb92bc4be Merge branch 'jsnajdr-master' 2015-11-21 17:07:41 +09:00