Tatsuhiro Tsujikawa
e5c27034f3
Added assertion in shiftBuffer to check size.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
02ca3ed0b7
Use refreshInterval_ as timeout value of event polling.
...
refreshInterval_ is now limited less than 1000ms.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
781a4220fc
Bump up DHT version number to 3.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
a2a91a2c74
Shorten MAX_BUFFER_LENGTH of MSEHandshake.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
2ee68ec8ad
Drop connection if IA length > 68 (BtHandshakeMessage::MESSAGE_LENGTH).
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
acfb290eca
We don't need to call PeerConnection::sendPendingData() twice when
...
sending piece message.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
3020087a75
Don't try legacy BitTorrent handshake when connection did not established.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
ce2d401dce
Eliminated SocketCore::peekData from MSEHandshake.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
c48db2cdf3
Fixed the bug that making directory fails on Windows OS.
...
On Windows, stat("C:/test/", ...) fails because of trailing "/".
To handle "\" as path separator, "\" are replaced with "/"
beforehand.
2011-01-09 18:27:08 +09:00
Tatsuhiro Tsujikawa
a9f734218f
Don't send announce_peer message with empty token in
...
DHTPeerLookupTask. Replace old node ID with new node ID when response
message is received in DHTAbstractNodeLookupTask.
2011-01-07 00:22:43 +09:00
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