Commit Graph

2945 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
fae5e143f0 Documented --truncate-console-readout option in man page. 2011-06-15 20:31:41 +09:00
Tatsuhiro Tsujikawa
561dafc942 Added --truncate-console-readout option.
This option truncates console readout to fit in a single line.  This
is default. Give false value to this option to tell aria2 not to
truncate console readout.
2011-06-15 20:27:14 +09:00
Tatsuhiro Tsujikawa
e3e7a420de Cache and reuse RpcMethod objects. 2011-06-15 20:07:10 +09:00
Tatsuhiro Tsujikawa
d1885a5874 Allowed missing params in system.multicall RPC method. 2011-06-15 00:42:50 +09:00
Tatsuhiro Tsujikawa
2d92571cf9 Moved jsonRpc flag from RpcMethod to RpcRequest.
Now RpcMethod is stateless, so we can cache and reuse them.
2011-06-15 00:19:07 +09:00
Tatsuhiro Tsujikawa
ba9673be1d Initialized member variables of DownloadResult in its ctor. 2011-06-12 00:51:36 +09:00
Tatsuhiro Tsujikawa
65ec9e98df Replaced InOrder with Inorder. 2011-06-11 21:49:09 +09:00
Tatsuhiro Tsujikawa
8566fde624 Documented --stream-piece-selector option in man page. 2011-06-11 21:42:11 +09:00
Tatsuhiro Tsujikawa
deaea9537b Added --stream-piece-selector option.
This option specifies piece selection algorithm used in HTTP/FTP
download. Piece means fixed length segment which is downloaded in
parallel in segmented download. If 'default' is given, aria2 selects
piece so that it reduces the number of establishing connection. This
is reasonable default behaviour because establishing connection is an
expensive operation.  If 'inorder' is given, aria2 selects piece which
has minimum index. Index=0 means first of the file. This will be
useful to view movie while downloading it. --enable-http-pipelining
option may be useful to reduce reconnection overhead.  Please note
that aria2 honors --min-split-size option, so it will be necessary to
specify a reasonable value to --min-split-size option.
2011-06-11 21:41:56 +09:00
Tatsuhiro Tsujikawa
595a514b17 Fixed typo 2011-06-11 18:03:33 +09:00
Tatsuhiro Tsujikawa
cc82da3bab Added StreamPieceSelector class.
This class abstracts the piece selection algorithm for HTTP/FTP
download.
2011-06-11 17:34:17 +09:00
Tatsuhiro Tsujikawa
533cdfa850 Removed unnecessary template parameter from std::make_pair call.
The patch was contributed from Dan Fandrich.
2011-06-10 21:11:03 +09:00
Tatsuhiro Tsujikawa
51dc544f2b Logged invoked RPC method name. 2011-06-07 23:33:04 +09:00
Tatsuhiro Tsujikawa
e958f5dab3 Implemented fast file allocation in MinGW32 build.
We use SetFilePointerEx and SetEndOfFile to allocate extents.  This
only works with NTFS. To enable this feature, --file-allocation=falloc
must be given.
2011-06-07 01:09:38 +09:00
Tatsuhiro Tsujikawa
867cab6df1 Small code cleanup 2011-06-01 01:43:31 +09:00
Tatsuhiro Tsujikawa
2799c9f0cc Only percent-encode non-printable ASCII chars(0x00-0x1f), non-ASCII
chars(>0x7f), ' ', '"', '<' and '>' for URIs supplied by user and
remote server(usually Location header field).
2011-06-01 01:34:30 +09:00
Tatsuhiro Tsujikawa
74a049ddfc Don't throw exception if Z_BUF_ERROR is encountered in
GZipDecodingFilter.
2011-05-30 23:10:06 +09:00
Tatsuhiro Tsujikawa
34207cda01 Don't throw exception if Z_BUF_ERROR is encountered in GZipEncoder. 2011-05-30 23:04:48 +09:00
Tatsuhiro Tsujikawa
70b7394b21 Updated doc for --save-session option. 2011-05-29 21:07:27 +09:00
Tatsuhiro Tsujikawa
4784114281 Don't save removed download in --save-session text file.
Now stat column of removed downloads in Download Results is 'RM'
instead of INPR.
2011-05-29 20:59:45 +09:00
Tatsuhiro Tsujikawa
058fdbc42b Updated NEWS 2011-05-21 00:12:05 +09:00
Tatsuhiro Tsujikawa
30dee631d5 Updated Japanese, Spanish and Simplified Chinese translation.
Thanks to all translators.
2011-05-21 00:10:31 +09:00
Tatsuhiro Tsujikawa
0f9b59cdce Fixed compile error with g++-4.6.1 2011-05-21 00:04:25 +09:00
Tatsuhiro Tsujikawa
36c125c7a2 Updated po templates 2011-05-20 23:54:53 +09:00
Tatsuhiro Tsujikawa
fbba1010ee Require gnutls >= 2.2.0 2011-05-20 20:45:09 +09:00
Tatsuhiro Tsujikawa
c6b71eac8f Updated doc for --save-session option. 2011-05-19 19:01:17 +09:00
Tatsuhiro Tsujikawa
5cef1cb15c Added missing base_uri.xml to EXTRA_DIST 2011-05-16 23:28:33 +09:00
Tatsuhiro Tsujikawa
0c65c3606e Made bool type argument as optional. 2011-05-16 22:49:53 +09:00
Tatsuhiro Tsujikawa
4dc71647f8 Added --metalink-base-uri option to -i list options. 2011-05-16 22:45:53 +09:00
Tatsuhiro Tsujikawa
653f04ef5c Add CreateRequestCommand with STATUS_INACTIVE instead of SleepCommand
+ DownloadFailureException.

Throwing DownloadFailureException may stop download unexpectedly when
--reuse-uri is false. Using CreateRequestCommand with STATUS_INACTIVE,
they can be executed next iteration with
DownloadEngine::setRefreshInterval(0).
2011-05-16 22:01:49 +09:00
Tatsuhiro Tsujikawa
c9fe4c64f5 Added relative URI support to ExpatMetalinkProcessor 2011-05-16 01:37:19 +09:00
Tatsuhiro Tsujikawa
f6625f8dc5 Updated for 1.11.2 release 2011-05-16 01:09:26 +09:00
Tatsuhiro Tsujikawa
3ee4f372b7 Bump up version number to 1.11.2 2011-05-15 23:55:04 +09:00
Tatsuhiro Tsujikawa
47b39953d2 Updated bash_completion 2011-05-15 23:47:59 +09:00
Tatsuhiro Tsujikawa
49b49c351a Eliminated few seconds delay when downloads stop or pause.
The delay is caused because some Commands are only called in certain
interval(called refreshInterval, default, 1000ms). In aria2 download
stops when all Commands associated to it are stopped. Since some
Commands are called in each 1000ms by default, as mentioned before, we
have to wait for them.  To fix this issue, we call
DownloadEngine::setRefreshInterval(0) when pausing/stopping downloads.
DownloadEngine::setRefreshInterval(0) makes refreshInterval 0 in one
shot.

When all segments are ignored, now DownloadFailureException is thrown.
And stop the download immediately. As described earlier, we call
DownloadEngine::setRefreshInterval(0) in catch block of
DownloadFailureException to eliminate delay.
2011-05-15 23:35:06 +09:00
Tatsuhiro Tsujikawa
7d14491389 Added paragraph about --metalink-base-uri option. 2011-05-14 22:55:11 +09:00
Tatsuhiro Tsujikawa
b57c64bf4f Documented --metalink-base-uri option in man page. 2011-05-14 22:54:39 +09:00
Tatsuhiro Tsujikawa
49b032800f Added --metalink-base-uri option.
--metalink-uri option specifies base URI to resolve relative URI in
metalink file stored in local disk. If URI points to a directory, URI
must end with '/'.
2011-05-14 22:52:54 +09:00
Tatsuhiro Tsujikawa
ed589ab034 Run batch file with cmd.exe. Quoted user command.
It seems that we have to specify the full path to cmd.exe in the first
argument of CreateProcess() to run batch file in proper manner.  We
first determine the full path to cmd.exe. To do this, we get windir
environment variable and concatenate it with "\system32\cmd.exe".
2011-05-14 21:27:31 +09:00
Tatsuhiro Tsujikawa
286991e17d Strip DQUOTE from cookie-value and updated doc. 2011-05-14 21:24:10 +09:00
Tatsuhiro Tsujikawa
3026b18ecd Updated doc 2011-05-14 21:23:59 +09:00
Tatsuhiro Tsujikawa
00fa59d0f5 Fixed the bug that the message "Loaded cookies from ..." appears when
loading cookies from that file failed.
2011-05-12 09:39:03 +09:00
Tatsuhiro Tsujikawa
7d7b014c72 Fixed my e-mail address in README.asciidoc 2011-05-07 18:51:41 +09:00
Tatsuhiro Tsujikawa
990a9e6d8e Applied patch from Dan Fandrich.
Thanks to Dan Fandrich.
I modified some lines to suite my taste.
2011-05-07 18:48:58 +09:00
Tatsuhiro Tsujikawa
ad5af56c17 Support relative URI in Metalink file.
If relative URI is found in Metalink file, aria2 resolves its full URI
contatenating the URI from which Metalink file is retrieved and
relative URI in Metalink file. This feature is not available if
Metalink file in local disk is specified in command line.
2011-05-07 18:41:18 +09:00
Tatsuhiro Tsujikawa
e7d7233d54 Moved joinUri from util namespace to uri namespace. 2011-05-06 23:20:43 +09:00
Tatsuhiro Tsujikawa
11d7e4fa46 Set DownloadEngine::setNoWait(true) in SleepCommand. 2011-04-30 23:45:17 +09:00
Tatsuhiro Tsujikawa
1122e55a35 Handle "..", "." in util::joinUri() 2011-04-30 22:42:10 +09:00
Tatsuhiro Tsujikawa
55d00d047c Added swap for UriStruct 2011-04-30 00:29:14 +09:00
Tatsuhiro Tsujikawa
871819af59 Added util::joinUri() 2011-04-30 00:15:27 +09:00