Tatsuhiro Tsujikawa
f0682a98c0
Added --async-dns-server option.
...
This option accepts comma separated list of DNS server address used in
asynchronous DNS resolver. Usually asynchronous DNS resolver reads DNS
server addresses from /etc/resolv.conf. When this option is used, it
uses DNS servers specified in this option instead of ones in
/etc/resolv.conf. You can specify both IPv4 and IPv6 address. This
option is useful when the system does not have /etc/resolv.conf and
user does not have the permission to create it.
2011-02-08 23:05:40 +09:00
Tatsuhiro Tsujikawa
cf546810e4
Don't call DownloadEngine::markBadIPAddress() when DNS query was timeout.
2011-02-08 22:46:22 +09:00
Tatsuhiro Tsujikawa
af4e47329b
Call calculateStatistics() after global::wallclock.reset().
...
Inside calculateStatistics(), global::wallclock is used and if
calculateStatistics() is called after waitData(), it may use quite old
global::wallclock value.
2011-02-08 00:16:29 +09:00
Tatsuhiro Tsujikawa
3574f6bd7d
Accept https:// and ftp:// in proxy options and environment variables.
2011-02-07 22:59:04 +09:00
Tatsuhiro Tsujikawa
954d595ee8
Code cleanup
2011-02-07 21:43:38 +09:00
Tatsuhiro Tsujikawa
97fde60f3e
Added upper limit of the number of peer added by each addPeer(vector) call.
2011-02-07 21:38:51 +09:00
Tatsuhiro Tsujikawa
656f8cf901
Don't calculate maxPeerListSize based on --bt-max-peers.
...
Always use MAX_PEER_LIST_SIZE by default.
2011-02-07 00:22:06 +09:00
Tatsuhiro Tsujikawa
6c44f6b8eb
Removed unused member variable peers_.
2011-02-07 00:19:07 +09:00
Tatsuhiro Tsujikawa
8eb1de9ef8
Get peers from DHT more frequently when the size of peer list is 0.
2011-02-07 00:17:44 +09:00
Tatsuhiro Tsujikawa
2666bc8170
Renamed MessageDigestHelper as message_digest_helper
...
Static member variables in MessageDigestHelper class are now functions
under message_digest namespace.
2011-02-05 23:38:51 +09:00
Tatsuhiro Tsujikawa
38202a5565
Renamed MetalinkHelper as metalink_helper.
...
Static member functions in MetalinkHelper class is now functions under
metalink namespace.
2011-02-05 23:21:06 +09:00
Tatsuhiro Tsujikawa
2373c62205
Moved some static member variables which are not exposed as public to unnamed namespace.
2011-02-05 23:08:03 +09:00
Tatsuhiro Tsujikawa
8902c2a839
Rewritten DefaultPeerStorage::addPeer(const std::vector<SharedHandle<Peer> >&)
2011-01-31 23:00:05 +09:00
Tatsuhiro Tsujikawa
27974108f0
Fixed overflow in the calculation of progress percentage for file
...
allocation and hash check when off_t is 32bit.
2011-01-30 23:28:10 +09:00
Tatsuhiro Tsujikawa
be1e168082
Updated usage of --conditional-get option.
2011-01-29 23:24:28 +09:00
Tatsuhiro Tsujikawa
1b9329c67c
Accept HTTP 304 reply as success when If-None-Match request-header
...
field is specified using --header option.
When --conditional-get is used, --allow-overwrite is now required to
overwrite existing file.
2011-01-29 23:19:10 +09:00
Tatsuhiro Tsujikawa
7a6ec762ef
Added cast to time_t.
2011-01-29 21:36:00 +09:00
Tatsuhiro Tsujikawa
2ba2511dd5
Check presence of ar.
...
This change allows configure to find appropriate ar at cross compile.
2011-01-29 21:33:57 +09:00
Tatsuhiro Tsujikawa
b49a558c4e
Fixed compile error on 32bit systems.
2011-01-27 21:21:37 +09:00
Tatsuhiro Tsujikawa
43dd3861a5
Updated copyright year.
2011-01-20 00:59:06 +09:00
Tatsuhiro Tsujikawa
fe40876546
Added aria2.removeDownloadResult XML-RPC method.
...
The method signature is aria2.removeDownloadResult(gid). This method
removes completed/error/removed download denoted by gid from
memory. This method returns "OK" for success.
2011-01-20 00:56:34 +09:00
Tatsuhiro Tsujikawa
1ea01e84b2
Use IP address of data connection to connect to the remote server in
...
passive mode.
2011-01-20 00:30:01 +09:00
Tatsuhiro Tsujikawa
1d71626bea
Supported multi-line HTTP header field value.
...
See http://tools.ietf.org/html/rfc2616#section-4.2
2011-01-20 00:25:01 +09:00
Tatsuhiro Tsujikawa
7a857e1913
Updated bash_completion to include --retry-wait option.
2011-01-19 00:33:36 +09:00
Tatsuhiro Tsujikawa
2873953f30
Changed the default value of --retry-wait to 0 for backward
...
compatibility.
Also updated usage doc.
2011-01-18 21:22:59 +09:00
Tatsuhiro Tsujikawa
426e57a180
Don't check permission of .netrc file in MinGW32 build.
2011-01-17 22:36:19 +09:00
Tatsuhiro Tsujikawa
6644501db7
Fixed bug that --retry-wait option does not work in aria2rpc.
2011-01-17 21:45:33 +09:00
Tatsuhiro Tsujikawa
21e4e15e83
Documented --retry-wait option.
2011-01-17 21:36:28 +09:00
Tatsuhiro Tsujikawa
79ccd42eaf
Added --retry-wait option to aria2rpc
2011-01-17 21:36:13 +09:00
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