Commit Graph

2794 Commits (b292ae1305e8915edd7099446bdd533ac5c4d0a4)

Author SHA1 Message Date
Tatsuhiro Tsujikawa b292ae1305 Use info level log for system trusted ca imports failure
This is because on some platforms (gnutls on cygwin for example),
library always fails for this function and getting ERROR every time
aria2c invoked is too hard.
2013-04-05 01:07:43 +09:00
Tatsuhiro Tsujikawa 7ce725098b Remove default value for deprecated --enable-async-dns6 to suppress warning 2013-04-03 02:27:45 +09:00
Tatsuhiro Tsujikawa 8580c98bce Abstract TLS session implementation
Now TLS session object is abstracted as TLSSession class. Currently,
we have GNUTLS and OpenSSL implementations.
2013-04-03 02:24:41 +09:00
Tatsuhiro Tsujikawa 19b5b7e214 Remove deprecated options: --enable-direct-io and --metalink-servers 2013-04-02 00:12:24 +09:00
Tatsuhiro Tsujikawa cd1f1fb56d Deprecate --enable-async-dns6
The IPv6 asynchronous name resolver is enabled if the host has at
least one interface with IPv6 address configured (the loopback address
will not be counted), which is roughly the same behaviour of the
standard getaddrinfo(3). To disable IPv6 asynchronous name resolver,
use --disable-ipv6.
2013-04-02 00:02:56 +09:00
Tatsuhiro Tsujikawa 26972b8535 Rewrite backup connection handling
Now dedicated ConnectCommand handles connection establishment.  It
checks whether connection is established or not.  It also handles
backup connection. The next Command creation is abstracted using
ControlChain struct template.
2013-04-01 23:51:33 +09:00
Tatsuhiro Tsujikawa cf23e3e11d Fix compile error without c-ares 2013-04-01 02:08:53 +09:00
Tatsuhiro Tsujikawa d575e3cc77 Rewrite async DNS portion without exception 2013-04-01 02:03:22 +09:00
Tatsuhiro Tsujikawa 497c1dd8c9 Use AsyncNameResolverMan in NameResolveCommand 2013-04-01 01:56:51 +09:00
Tatsuhiro Tsujikawa 12a3eaf233 Fix uninitialized UDPTrackerClient::numWatchers_ 2013-04-01 01:24:57 +09:00
Tatsuhiro Tsujikawa b5a6c39262 Use AsyncNameResolverMan in DHTEntryPointNameResolveCommand 2013-04-01 01:24:18 +09:00
Tatsuhiro Tsujikawa 597e1a5c1b Implement simple Happy Eyeballs for HTTP/FTP downloads 2013-04-01 00:12:27 +09:00
Tatsuhiro Tsujikawa d671d8bf36 mingw: Ignore tunnel interface and address in 169.254.* 2013-03-31 18:02:46 +09:00
Tatsuhiro Tsujikawa b9fb15f884 Use GetAdaptersAddresses for Mingw 2013-03-31 18:02:46 +09:00
Tatsuhiro Tsujikawa f4a0987544 Check non-loopback (and non-linklocak for IPv6) address is configured
Issue A record query only when non-loopback IPv4 address is
configured.  Likewise, issue AAA record query only when non-loopback
and non-linklocak IPv6 address is configured.
2013-03-31 18:02:45 +09:00
Tatsuhiro Tsujikawa 56fac58b4d Parallel A and AAAA record lookups with c-ares 2013-03-31 18:02:45 +09:00
Tatsuhiro Tsujikawa 5535ed5f95 Code cleanup 2013-03-18 22:45:07 +09:00
Tatsuhiro Tsujikawa d88e815033 Fix bug that invalid range error when requesting range starting 0
Since the change b782a56b, we use endOffsetOverride_ as the return
value of getEndByte(). But aria2 does not send Range header field when
range starts 0 (this is because some server returns error if it
received Range: 0-), and the HttpRequest::isRangeSatisfied() checks
the equality of getEndByte() and the end byte in response header and
fails. The fix is send Range header if getEndByte() is set.
2013-03-18 22:01:36 +09:00
Tatsuhiro Tsujikawa 0fa92911d7 util.cc: Include only signal.h for opensolaris build 2013-03-17 15:42:50 +09:00
Tatsuhiro Tsujikawa 0741a14486 Revert 6b55f5d3 because it breaks opensolaris build 2013-03-17 15:42:16 +09:00
Tatsuhiro Tsujikawa 18ad88088d Fix typo in GZipFile.h spelling 2013-03-16 20:40:39 +09:00
Tatsuhiro Tsujikawa 85de8b0642 Revert DownloadEngine.cc change in 6b55f5d3 because Debian Lenny breaks 2013-03-04 22:32:51 +09:00
Tatsuhiro Tsujikawa 588ee2f1cc GZipFile: Move buf_, buflen_ to initializer list 2013-03-03 22:55:44 +09:00
Tatsuhiro Tsujikawa 43cb2d880a Rewrite GZipFile::vprintf()
MINGW does not have vasprintf(), so we use _vscprintf() and
vsnprintf(). We want to reuse buffer, so for non-MINGW we use
vsnprintf() with retrying doubling buffer size if output is truncated.
2013-03-03 21:49:42 +09:00
Tatsuhiro Tsujikawa e17d0f8d4e Bring back datetime in console log 2013-03-03 18:35:07 +09:00
Tatsuhiro Tsujikawa 66a85777ad Document UDP tracker in manual 2013-03-03 18:28:25 +09:00
Tatsuhiro Tsujikawa baaa3a4fb2 Use IndexedList::remove_if to clean up RequestGroupMan::removeStoppedGroup 2013-03-03 18:08:19 +09:00
Tatsuhiro Tsujikawa d4ba562710 Implement IndexedList::iterator
It is dangerous to expose internal iterator to the outside, which is
easily misused.
2013-03-03 18:00:42 +09:00
Tatsuhiro Tsujikawa 421ae13d40 Run checksum check if -V and -c are used and file is completed
With -c option, aria2 can continue download after the existing file
position. If it is not completed, then after completion aria2 runs
checksum checking if available. But if existing file has already been
completed, then CreateRequestCommand exits without issuing checksum
checking. And aria2 treats it download error because it needs checksum
verification but it has not been done. This change fixes this by
properly checking download state and issue checksum checking before
CreateRequestCommand.
2013-03-03 17:18:12 +09:00
Tatsuhiro Tsujikawa 9b99875478 Add writeOptionLine() to format 1 line of option name/value pair 2013-03-03 14:12:59 +09:00
Tatsuhiro Tsujikawa 6b55f5d393 Do changes in 8aa1db6 in other places which include signal.h 2013-03-03 13:41:03 +09:00
Tatsuhiro Tsujikawa 7c66d1952a Merge branch 'mingw-signal' of https://github.com/nmaier/aria2 into nmaier-mingw-signal 2013-03-03 13:28:51 +09:00
Tatsuhiro Tsujikawa 122e5929c1 SessionSerializer: Remove check fp because it is always true 2013-03-03 13:20:54 +09:00
Tatsuhiro Tsujikawa f4469b79aa SessionSerializer crash when filename length is less than 3 2013-03-03 13:19:52 +09:00
Tatsuhiro Tsujikawa 910e40f128 Fix missing value in serialized pause option 2013-03-03 13:17:49 +09:00
Nils Maier f2f8b14047 Support for gzipped -i and --save-session
Saved sessions may very large, as in hundreds and even thousands of
megabyte when dealing with large queues.
Add support to save and reload sessions to gzipped files, when libz is
available.

The session serializer will output gzipped contents when the file ends
with .gz, while the input file reader (UriListParser) will accept
whatever is thrown at it.
2013-03-02 15:48:26 +01:00
Nils Maier b0556a7519 Do not use a virtual varargs function
This stuff breaks in some compiler (configurations)
2013-03-02 15:48:26 +01:00
Nils Maier 8aa1db682b Check for sys/signal.h and/or signal.h
mingw-w64 does not actually have sys/signal.h, while OSX currently has a
broken signal.h
Better check the presence of both and use sys/signal.h if present, else
signal.h
2013-03-02 15:09:54 +01:00
Nils Maier 7f6a446750 Hygiene: Fix some clang warnings, mostly unused private members. 2013-03-01 13:17:52 +01:00
Nils Maier 62f842579d Fix bustage on OSX with ./configure CC=cc CXX=c++ (clang) 2013-03-01 12:43:40 +01:00
Tatsuhiro Tsujikawa e4bd910d43 Update doc 2013-02-26 23:43:52 +09:00
Tatsuhiro Tsujikawa 704eebfac6 Use std::remove_if 2013-02-26 23:43:20 +09:00
Tatsuhiro Tsujikawa 7f805df4f0 Use std::remove_if 2013-02-26 22:59:28 +09:00
Tatsuhiro Tsujikawa 4ac4fdf1e9 Use same port number for IPv4 and IPv6 DHT 2013-02-26 22:44:19 +09:00
Tatsuhiro Tsujikawa 33037982dc Improve log message for server socket 2013-02-26 22:44:15 +09:00
Tatsuhiro Tsujikawa dfac717dbf Merge branch 'fix-initial-rq-leak' of https://github.com/nmaier/aria2 into nmaier-fix-initial-rq-leak 2013-02-26 21:56:37 +09:00
Nils Maier d1301b8697 Do not reference RequestGroups longer than necessary
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.
2013-02-26 10:49:24 +01:00
Nils Maier 11b9f3ebe2 Detect console with on Windows
Signed-off-by: Nils Maier <maierman@web.de>
2013-02-25 20:47:43 +01:00
Tatsuhiro Tsujikawa a49397ed19 Fix infinite loop when size of downloadResults_ exceeds maxDownloadResult_ 2013-02-25 21:42:54 +09:00
Tatsuhiro Tsujikawa 2aeb7137d0 Log host and port when unexpected or unknown UDP tracker reply is received 2013-02-25 01:14:27 +09:00