Commit Graph

2790 Commits (b0ed9b3bd10026c72fd53e9f5846dd5dabeebfa7)

Author SHA1 Message Date
Tatsuhiro Tsujikawa b0ed9b3bd1 Added retry-wait option to -i list options. 2011-01-17 21:25:17 +09:00
Tatsuhiro Tsujikawa f2a63fa06a Added --retry-wait option.
This option was once existed in aria2 but erased on 2009-09-20.  Now
it is resurrected once again.  We choose 2 as default value, but there
is no good theory behind it.  Now we retry HTTP download when remote
server returns 503 Service Unavailable if --retry-wait > 0. We also
added error code 29: HTTP_SERVICE_UNAVAILABLE.
2011-01-17 21:19:45 +09:00
Tatsuhiro Tsujikawa 4824b09237 Reverted comment which was removed unintentionally. Moved 2
DownloadEngine related lines outside of #ifdef ENABLE_MESSAGE_DIGEST.
2011-01-16 22:35:30 +09:00
Tatsuhiro Tsujikawa 90d94953d7 Don't show metadata download and paused download in "Download Results". 2011-01-16 22:20:29 +09:00
Tatsuhiro Tsujikawa 9fe35495fd Fixed doc 2011-01-16 21:16:56 +09:00
Tatsuhiro Tsujikawa 2c3187451f Don't pool connection if the command has multiple segments.
This means it did HTTP pipelined request. If this response is for the
first request, then successive response may arrived to the socket.
2011-01-16 21:05:14 +09:00
Tatsuhiro Tsujikawa 97d0b71dd4 Don't use SocketCore::isReadable() repeatedly.
We can know whether data is available by inspecting 2nd argument of
SocketCore::readData() because we use non-blocking I/O.
2011-01-16 21:04:31 +09:00
Tatsuhiro Tsujikawa 63fe7874da Handle the situation when remote server returns Connection: close
after several pipelined requests.

We call Request::setMaxPipelinedRequest(1) if Connection: close is
received. Also call Request::supportsPersistentConnection(true) and
Request::setMaxPipelinedRequest(1) when closing the connection.
2011-01-16 18:12:14 +09:00
Tatsuhiro Tsujikawa b2f27e6548 Check !SocketRecvBuffer::bufferEmpty() in ctor.
Also treat !SocketRecvBuffer::bufferEmpty() as data is available.
2011-01-16 17:52:18 +09:00
Tatsuhiro Tsujikawa e60181d1ad Removed SocketCore::peekData() 2011-01-16 17:41:17 +09:00
Tatsuhiro Tsujikawa 629099d40d Eliminated SocketCore::peekData() from HttpServer. 2011-01-16 17:27:01 +09:00
Tatsuhiro Tsujikawa d030dd5a3f Code cleanup 2011-01-16 17:26:46 +09:00
Tatsuhiro Tsujikawa ea1b4b3ee5 Eliminated SocketCore::peekData() form HTTP/FTP downloads.
We introduced SocketRecvBuffer which buffers received bytes. Since
HTTP response header and response body are divided with \r\n, we have
to buffer up several bytes to find this delimiter. We use
SocketRecvBuffer to hold these bytes and only consumes header and
passes SocketRecvBuffer, which may contain head of response body, to
next Command.  Since FTPConnection doesn't use SocketCore::peekData(),
we left it as is.
2011-01-16 16:55:41 +09:00
Tatsuhiro Tsujikawa 602a9d6ba3 Updated NEWS 2011-01-10 17:11:01 +09:00
Tatsuhiro Tsujikawa 772588e727 Updated Russian, Hungarian and Chinese (Simplified)
translation. Thanks to all translators.
2011-01-10 17:06:08 +09:00
Tatsuhiro Tsujikawa 627754e681 Updated po templates. 2011-01-10 17:05:07 +09:00
Tatsuhiro Tsujikawa 0ee2c1a65c Updated for 1.10.9 release 2011-01-10 17:04:45 +09:00
Tatsuhiro Tsujikawa 91a4f2d210 Bump up version number to 1.10.9. 2011-01-10 12:51:52 +09:00
Tatsuhiro Tsujikawa 3e67079087 Rewritten NAT check handling.
We simplified PeerConnection::receiveHandshake().
DefaultBtMessageReceiver and PeerReceiverHandshakeCommand look
PeerConnection's buffer and do NAT check handling themselves.
2011-01-09 23:57:07 +09:00
Tatsuhiro Tsujikawa 1818f2ed55 Just preset IA to PeerConnection in receiver side.
Since initiator cannot send payload stream before reading step2 from
receiver, mseHandshake_->getBufferLength() should be 0.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa 320ca4c5a1 Throw exception if more than BtHandshakeMessage::MESSAGE_LENGTH is
buffered when receiving handshake. Detect preset buffer without
setting prevPeek_ = true.
2011-01-09 18:34:06 +09:00
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