Tatsuhiro Tsujikawa
2dba2f86a4
Drop old node from DHT routing table if node ID has changed.
2011-01-07 00:20:58 +09:00
Tatsuhiro Tsujikawa
653951f70a
Drop connection if client and peer are both seeders.
2011-01-07 00:20:10 +09:00
Tatsuhiro Tsujikawa
b6d5c389b8
Added missing include.
2011-01-07 00:19:10 +09:00
Tatsuhiro Tsujikawa
920583502e
Consider IP address and port when finding DHT node.
2011-01-07 00:14:42 +09:00
Tatsuhiro Tsujikawa
d429943d05
Fixed the bug that peer is marked as seeder whenever it sends
...
extension handshake with metadata size.
Peer must be marked as seeder only when client has not got metadata
yet. This bug causes aria2 shutdowns connection early when it gets
have message from a peer because it wrongly recognizes the peer as
seeder.
2011-01-06 22:43:34 +09:00
Tatsuhiro Tsujikawa
e818f9c8a5
Use %lx for DWORD.
...
GetLastError() returns DWORD, not C-String.
2010-12-19 00:24:36 +09:00
Tatsuhiro Tsujikawa
3cf156240b
Updated po templates.
2010-12-18 21:45:19 +09:00
Tatsuhiro Tsujikawa
05bf745f66
Updated version number to 1.10.8 in man page.
2010-12-18 21:39:53 +09:00
Tatsuhiro Tsujikawa
6af3cd82b3
Updated for 1.10.8 release
2010-12-18 21:38:56 +09:00
Tatsuhiro Tsujikawa
7a7c95fa15
Bump up version number to 1.10.8
2010-12-18 21:26:38 +09:00
Tatsuhiro Tsujikawa
b04e0bae6b
Moved #include <gettext.h> inside of #ifdef ENABLE_NLS.
...
If we put #include <gettext.h> outside of #ifdef ENABLE_NLS and
--disable-nls is used, gettext(msgid) is defined as ((const char *)
(Msgid)). System header includes libintl.h regardless of
--disable-nls. For example, #include <string> will include libintl.h
through include chain. Since libintl.h refers gettext and it is
defined as non-function form, this causes compile error. User reported
gcc-4.2.2 has this problem. But gcc-4.4.5 does not suffer from this
problem.
2010-12-15 22:33:26 +09:00
Tatsuhiro Tsujikawa
5856d9252b
Updated doc.
2010-12-10 21:50:23 +09:00
Tatsuhiro Tsujikawa
94ee6d6895
Updated doc
2010-12-10 21:34:24 +09:00
Tatsuhiro Tsujikawa
9e70c5ead7
Fixed typo
2010-12-10 21:29:50 +09:00
Tatsuhiro Tsujikawa
418c04c94c
Fixed typo
2010-12-09 21:59:35 +09:00
Tatsuhiro Tsujikawa
3d0764eb9d
Added comment.
2010-12-09 21:49:00 +09:00
Tatsuhiro Tsujikawa
31ec5ddf92
Updated help text for --input-file option.
...
Removed reference of --out and --dir option. It is a regacy before we
supported many other options.
2010-12-08 22:54:20 +09:00
Tatsuhiro Tsujikawa
235b5a0848
Allocate buffer used by DownloadCommand in stack.
2010-12-08 20:41:12 +09:00
Tatsuhiro Tsujikawa
9103fb6105
Refactored PieceStatMan::updatePieceStats().
2010-12-07 01:08:11 +09:00
Tatsuhiro Tsujikawa
829803d4f5
Fixed compile error which occurs when system has posix_fallocate() but
...
does not have fallocate().
2010-12-05 23:47:35 +09:00
Tatsuhiro Tsujikawa
da8e0203b8
Removed specializations of std::swap(PeerEntry&, PeerEntry&).
...
Declaring std::swap(PeerEntry&, PeerEntry&) in class declaration
breaks under Mac OS X 10.5. They are also not used. So we simply
removed them.
2010-12-05 23:19:37 +09:00
Tatsuhiro Tsujikawa
55e49b65d3
Use errno to get error code epoll_ctl(). Using its returned value as
...
error code is simply wrong.
2010-12-05 23:13:09 +09:00
Tatsuhiro Tsujikawa
f0e8940cec
Added Arabic translation. Updated Russian, Greek and Danish
...
translation. Thanks to all translators.
2010-12-05 16:04:58 +09:00
Tatsuhiro Tsujikawa
089563cb2a
Updated po templates.
2010-12-05 15:54:38 +09:00
Tatsuhiro Tsujikawa
6363da9cea
Updated NEWS for 1.10.7 release.
2010-12-05 15:16:15 +09:00
Tatsuhiro Tsujikawa
bc798ae4e6
Use Exception::getErrorCode() in main() instead of error_code::UNKNOWN_ERROR
...
unconditionally.
2010-12-05 15:13:32 +09:00
Tatsuhiro Tsujikawa
f5efdd9413
Updated doc for --on-download-stop.
2010-12-04 22:43:07 +09:00
Tatsuhiro Tsujikawa
0271ec0352
Updated usage of --on-download-* options.
2010-12-04 22:42:24 +09:00
Tatsuhiro Tsujikawa
934c185e79
Updated Event Hook.
2010-12-04 21:52:10 +09:00
Tatsuhiro Tsujikawa
4747c3a2da
Added Hook Event subsection and described about COMMAND specified in
...
--on-download-* options. Made all --on-download-* option refer this
subsection.
2010-12-04 21:48:46 +09:00
Tatsuhiro Tsujikawa
c1a130fdf5
Updated doc for --save-session.
2010-12-04 21:15:23 +09:00
Tatsuhiro Tsujikawa
044e6df7ac
Updated man page for --on-download-start. Mentioned about 2 new
...
arguments.
2010-12-04 21:11:09 +09:00
Tatsuhiro Tsujikawa
adcfffeccb
Fixed arithmetic exception when completedLength is 0.
2010-12-04 20:56:52 +09:00
Tatsuhiro Tsujikawa
f3e89651a8
Return true if completedLength is 0.
2010-12-04 20:56:14 +09:00
Tatsuhiro Tsujikawa
c5ef9dadbd
Pass the number of requested files as 2nd argument to the command specified in
...
--on-download-* hook.
As a consequence, first filename is passed as 3rd argument.
2010-12-04 19:00:48 +09:00
Tatsuhiro Tsujikawa
0cdfc3d104
Call RequestGroupMan::removeStoppedGroup() in
...
DownloadEngine::onEndOfRun() to process RequestGroup objects currently
in-progress.
With this change, --on-download-stop/error/complete hooks are properly
called for in-progress downloads when Ctrl-C is pressed.
2010-12-04 18:24:38 +09:00
Tatsuhiro Tsujikawa
567b424907
Pass first filename as 2nd argument to command specified by
...
--on-download-* option.
2010-12-04 18:14:27 +09:00
Tatsuhiro Tsujikawa
c03ab007a3
Throw exception when unrecognized URI, bad Metalink or bad .torrent
...
file are given in command-line and exits with status non-zero.
2010-12-04 17:19:31 +09:00
Tatsuhiro Tsujikawa
c81dcd80ea
Removed 3rd argument auxUris of createBtMagnetRequestGroup().
2010-12-04 16:47:09 +09:00
Tatsuhiro Tsujikawa
f9a6697352
Fixed compile error without ssl library.
2010-12-04 00:37:42 +09:00
Tatsuhiro Tsujikawa
8f39257fd5
Added aria2c bash_completion.
...
make_bash_completion.py generates aria2c bash_completion using `aria2c
--help=#all'.
2010-12-03 23:03:59 +09:00
Tatsuhiro Tsujikawa
0a2b1660fa
Removed DownloadContext::dir_. Use PREF_DIR value instead.
2010-12-03 13:08:22 +09:00
Tatsuhiro Tsujikawa
479f71efaf
Bump up version number to 1.10.7
2010-12-03 11:41:16 +09:00
Tatsuhiro Tsujikawa
7a3faa625b
Check a2x, asciidoc presence and only build documents when they are
...
available.
2010-12-02 23:55:52 +09:00
Tatsuhiro Tsujikawa
816be74e61
Generate man pages, its HTML version and README.html by make.
...
Removed those generated files and scripts to generate them from repository. Added aria2c.1.asciidoc
to dist_doc_DATA.
2010-12-02 23:24:04 +09:00
Tatsuhiro Tsujikawa
3ee6784b76
Made `make distcheck' pass.
...
We added 2 macros A2_TEST_DIR and A2_TEST_OUT_DIR to pass tests in
`make distcheck`. A2_TEST_DIR refers to test directory. All output
files by unit tests are now created under A2_TEST_OUT_DIR directory.
2010-12-02 22:52:35 +09:00
Tatsuhiro Tsujikawa
7ac1f17d56
Added missing error_code.h to Makefile.am
2010-12-01 23:06:39 +09:00
Tatsuhiro Tsujikawa
85d0a9b740
Updated EXIT STATUS section.
2010-12-01 21:58:12 +09:00
Tatsuhiro Tsujikawa
f0f4f8f703
Added more error code values.
...
I have not set error code for all exception invocation.
In this change, I set error code where error likely occurs.
2010-12-01 21:26:58 +09:00
Tatsuhiro Tsujikawa
6bc215fcec
Add groupToAdd to requestGroups_ even if exception is thrown in
...
createInitialCommand().
This makes groupToAdd be processed by removeStoppedGroup() and
--on-download-error hook is properly triggered. Now
--on-download-start is also triggered for groupToAdd even if exception
is thrown in createInitialCommand().
2010-11-29 21:06:39 +09:00