Tatsuhiro Tsujikawa
bf42505b7b
MinGW32: Use CryptGenRandom() to generate random number.
...
MinGW32 lacks random(), so we use CryptGenRandom() as a replacement.
In the implementation, SimpleRandomizer::getRandomNumber() returns the
random number in range [0, INT32_MAX]. Thus,
simpleRandomizer::getMaxRandomNumber() returns INT32_MAX.
2011-08-18 18:03:06 +09:00
Tatsuhiro Tsujikawa
dce0667c0b
MinGW32 build: Replace all '\' in path with '/' in util::applyDir()
...
In MinGW32 build, replace all '\' in path with '/' in
util::applyDir(). Take into account '\' in File::getBasename() and
File::getDirname().
2011-08-18 17:27:41 +09:00
Cristian Rodríguez
e6f3c78103
- Disable SSLv2 and enable all workarounds for buggy servers
...
- Keep memory usage low when openSSL supports SSL_MODE_RELEASE_BUFFERS
2011-08-15 17:55:58 -03:00
Tatsuhiro Tsujikawa
fd3e7671a5
Use random() instead of rand().
2011-08-11 02:34:04 +09:00
Tatsuhiro Tsujikawa
e76dc28f7f
Added libnettle and libgmp support.
...
libnettle and libgmp is used by default. Old implementation uses
libgcrypt as default. If more and more Linux distributions offer
libnettle linked GnuTLS, then this change decrease library dependency
against libgcrypt and libgpg-error. The current library detection for
libnettle and libgmp is very simple, just use AC_SEARCH_LIBS.
util::generateRandomData() was written using SimpleRandomizer, thus no
external library dependency from this function.
2011-08-11 02:29:14 +09:00
Tatsuhiro Tsujikawa
11ac2c4a88
Added DHKeyExchange implementation using GMP.
2011-08-11 00:08:29 +09:00
Tatsuhiro Tsujikawa
6edfa4e430
Limit maximum length of ByteArrayWriter.
...
aria2 downloads meta files such as .torrent and .metalink file in
memory using ByteArrayWriter. To prevent accidentally download big
file, we set the maximum length that ByteArrayWriter can hold. The
default is 5MiB and it is reasonable because most .torrent and
.metalink file are much smaller than that.
2011-08-10 23:58:49 +09:00
Tatsuhiro Tsujikawa
2d9323651b
Don't use sorted std::deque for requestSlots_.
...
Don't use sorted deque for requestSlots_. For the most time, first
data requested is sent back first. So using std::deque, we find
received RequestSlot by O(1), while sorted std::deque requires
O(logN).
2011-08-10 23:18:23 +09:00
Tatsuhiro Tsujikawa
6ee913b0bc
Simplified PieceStatMan and RarestPieceSelector.
...
Simplified PieceStatMan and RarestPieceSelector, but computation order
to select piece index is still O(N) and unchanged. Updating piece
stat is improved to O(N) for bitfield update and O(1) for single
index update, while old implementation needs O(NlogN) and O(N)
respectively.
2011-08-10 21:29:01 +09:00
Tatsuhiro Tsujikawa
37016c6587
global cout and cerr is now retrieved using global::cout() and global::cerr()
...
This is necessary to avoid global variable initialization order
problem.
2011-08-10 01:28:20 +09:00
Tatsuhiro Tsujikawa
e8e3a6f259
wallclock is now retrieved using global::wallclock() call.
...
This is necessary to avoid global variable initialization order
problem.
2011-08-10 01:17:28 +09:00
Tatsuhiro Tsujikawa
97f34ab668
Added global::cerr. windows.h now included from common.h
...
We replaced most of std::cerr with global::cerr. windows.h is now
included from common.h. Before including it, we define WINVER. We
renamed some variable name because some macros in windows.h collide
with them.
2011-08-10 00:38:48 +09:00
Tatsuhiro Tsujikawa
a10cda2f17
Use global::cout to output string to stdout.
...
In MinGW32 build, global::cout is WinConsoleFile. When outputing to
console, it uses WriteConsoleW, so Unicode characters are written.
Fixed memory leak in WChar<->MultiByte conversion functions. The
portion of code which uses std::cout is rewritten to use global::cout.
2011-08-09 23:33:55 +09:00
Tatsuhiro Tsujikawa
02307cee0a
Removed utf8ToNative from log message and exception message.
2011-08-08 21:46:10 +09:00
Tatsuhiro Tsujikawa
7368c9c9d8
Percent-encode non-printable ASCII and non-ASCII chars in FileEntry.
...
Percent-encode non-printable ASCII and non-ASCII chars in URI using
util::percentEncodeMini() when URI is added to FileEntry. Removed
percent-encode from Request. Also do percent-encoding when setting
referer and redirected URI.
2011-08-07 20:46:04 +09:00
Tatsuhiro Tsujikawa
491e8bc519
Call utf8ToNative to log filename and URI in Metalink2RequestGroup.
2011-08-07 18:48:40 +09:00
Tatsuhiro Tsujikawa
e9d16306df
Made getRedirectURI and getTransferEncoding return const reference.
...
Made getRedirectURI and getTransferEncoding in HttpResponse return
const reference.
2011-08-07 18:45:29 +09:00
Tatsuhiro Tsujikawa
272d81b7a1
Rewritten ExpatMetalinkProcessor using BufferedFile.
2011-08-07 18:08:16 +09:00
Tatsuhiro Tsujikawa
32d413c6de
Use BufferedFile::printf in SessionSerializer
2011-08-07 17:30:21 +09:00
Tatsuhiro Tsujikawa
fd5f9127cd
Rewritten Logger using BufferedFile.
2011-08-07 17:06:07 +09:00
Tatsuhiro Tsujikawa
b6b8cb005d
Added printf and flush method to BufferedFile.
2011-08-07 17:05:50 +09:00
Tatsuhiro Tsujikawa
e2d682e0c6
bencode2::decodeFromFile is now first read torrent metainfo file into
...
memory before parsing it.
2011-08-07 01:43:24 +09:00
Tatsuhiro Tsujikawa
4220c2aadc
Read aria2.conf using BufferedFile
...
Read aria2.conf using BufferedFile. Added BufferedFile::transfer().
2011-08-07 01:43:02 +09:00
Tatsuhiro Tsujikawa
b3b67f440b
Removed unused function declaration.
2011-08-07 01:11:28 +09:00
Tatsuhiro Tsujikawa
0f349773f5
Rewritten saveAs using BufferedFile
2011-08-07 01:10:17 +09:00
Tatsuhiro Tsujikawa
a6c2ad53bf
Rewritten UriListParser using BufferedFile
2011-08-07 01:05:02 +09:00
Tatsuhiro Tsujikawa
945012a32f
Removed unused header
2011-08-07 00:37:54 +09:00
Tatsuhiro Tsujikawa
1f710d29c1
Rewritten SessionSerializer using BufferedFile
2011-08-07 00:36:44 +09:00
Tatsuhiro Tsujikawa
6034474550
Don't allow copying BufferedFile
2011-08-07 00:36:31 +09:00
Tatsuhiro Tsujikawa
190d170076
Rewritten ServerStatMan using BufferedFile.
2011-08-07 00:10:53 +09:00
Tatsuhiro Tsujikawa
7f3d027b83
Removed feof from operator unspecified_bool_type. Added eof().
...
In BufferedFile, removed feof from operator unspecified_bool_type. EOF
can be queried separately using newly added eof().
2011-08-07 00:06:32 +09:00
Tatsuhiro Tsujikawa
f6472abae8
Compare 16bytes of header text.
2011-08-06 23:04:06 +09:00
Tatsuhiro Tsujikawa
8f93855bbd
Rewritten ProtocolDetector using BufferedFile
2011-08-06 22:43:24 +09:00
Tatsuhiro Tsujikawa
c553d92f45
Rewritten NsCookieParser using BufferedFile
2011-08-06 21:59:06 +09:00
Tatsuhiro Tsujikawa
f38c2d2012
Rewritten Netrc using BufferedFile.
2011-08-06 21:57:38 +09:00
Tatsuhiro Tsujikawa
c9f8cf75bf
Rewritten CookieStorage using BufferedFile
2011-08-06 21:53:59 +09:00
Tatsuhiro Tsujikawa
410d88710b
Rewritten DHTRoutingTable I/O using BufferedFile.
2011-08-06 21:35:39 +09:00
Tatsuhiro Tsujikawa
ef27370243
Use BufferedFile in DefaultBtProgressInfoFile
2011-08-06 21:27:17 +09:00
Tatsuhiro Tsujikawa
6cb91cae88
Added fopen/fread/fwrite/fgets wrapper class.
2011-08-06 21:17:36 +09:00
Tatsuhiro Tsujikawa
733ff2c05a
Rewritten NsCookieParser using stdio instead of stream.
2011-08-05 23:35:00 +09:00
Tatsuhiro Tsujikawa
07874696c5
Rewritten Netrc using stdio instead of stream.
2011-08-05 23:33:30 +09:00
Tatsuhiro Tsujikawa
13158de0d3
Removed unused header fstream from DHTSetup
2011-08-05 22:45:34 +09:00
Tatsuhiro Tsujikawa
168094560d
Rewritten CookieStorage using stdio instead of stream
2011-08-05 22:44:54 +09:00
Tatsuhiro Tsujikawa
292bbb3679
Added log messages to DHTRoutingTable IO routines.
2011-08-05 22:23:53 +09:00
Tatsuhiro Tsujikawa
dea7a7969c
Rewritten DHTRoutingTableSerializer using stdio instead of stream.
2011-08-05 22:15:55 +09:00
Tatsuhiro Tsujikawa
f141cd4228
Rewritten DHTRoutingTableDeserializer using stdio instead of stream.
2011-08-05 21:50:11 +09:00
Tatsuhiro Tsujikawa
5eb338ad87
Rewritten DefaultBtProgressInfoFile using stdio instead of stream.
2011-08-05 18:34:07 +09:00
Tatsuhiro Tsujikawa
3879da592d
In MinGW32, open file with UNICODE filename and print them in ANSI.
2011-08-04 21:43:02 +09:00
Tatsuhiro Tsujikawa
6e1e481be5
Make --metalink-location option available with --disable-metalink
2011-07-31 21:46:07 +09:00
Tatsuhiro Tsujikawa
afdbda8f10
Initialize libgcrypt.
...
We relied initialization of libgcrypt on gnutls_global_init(), but
recent change in gnutls, which changes default crypto backend from
libgcrypt to libnettle, leaves libgcrypt uninitialized if it uses
libnettle as backend(and this is likely because libnettle is chosen by
default). To fix this issue, we simply initialize libgcrypt on our
own.
2011-07-30 17:36:39 +09:00
Tatsuhiro Tsujikawa
70eeebfae9
Retry DHT get_peers task if the number of peers in PeerStorage is less
...
than max peers.
Added virtual size_t countPeer() const to PeerStorage.
2011-07-29 23:49:25 +09:00
Tatsuhiro Tsujikawa
aa13ff5f51
Throw exception with error message if gnutls_global_init() failed.
2011-07-29 22:06:02 +09:00
Tatsuhiro Tsujikawa
932c258755
Added log message when checksum validation failed.
2011-07-28 00:00:01 +09:00
Tatsuhiro Tsujikawa
4ea28cb837
Don't send basic auth header to service operated on differenct port.
...
When --http-auth-challenge=true, aria2 only sends basic auth header
when requested. Old implementation sends basic auth header to service
operated in different port in successive request. This change avoid
this bug.
2011-07-27 23:28:31 +09:00
Tatsuhiro Tsujikawa
02292feaba
Consistent naming scheme for hash type and digest for Piece.
2011-07-27 22:50:10 +09:00
Tatsuhiro Tsujikawa
03f0774482
Consistent naming scheme for hash type and digest for DownloadContext.
2011-07-27 22:44:30 +09:00
Tatsuhiro Tsujikawa
7b86b294c9
Consistent naming scheme for hash type and digest.
2011-07-27 21:44:54 +09:00
Tatsuhiro Tsujikawa
ce101f5ad2
Use HttpHeader::getIterator() instead of HttpHeader::get()
2011-07-27 21:15:54 +09:00
Tatsuhiro Tsujikawa
c536e460aa
Merge branch 'rfc6249'
2011-07-27 21:02:53 +09:00
Tatsuhiro Tsujikawa
a533437be6
Implemented Metalink/HTTP in HTTP download.
...
Link header fields from first Metalink server is utilized as described
in rfc6249. We only set digest from Digest header field to
DownloadContext only when PieceStorage is not initialized(in other
words, before file size is known). After PieceStorage is initialized,
Digest header field is used to check the value is the same in digest
in DownloadContext. Current implementation only handles
rel=duplicate.
2011-07-27 20:54:21 +09:00
Tatsuhiro Tsujikawa
67e91c3431
HttpResponse::getDigest() now returns all Digest.
...
In addition, HttpResponse::getMetalinkHttpEntries() does not check
validity of URI. It is checked when we add it to FileEntry.
2011-07-27 19:32:35 +09:00
Tatsuhiro Tsujikawa
7c317de4e7
Added Metalink/HTTP Link and Digest header field parser.
2011-07-26 23:41:21 +09:00
Tatsuhiro Tsujikawa
9ff60ac477
Added struct for Metalink/HTTP
2011-07-26 23:19:54 +09:00
Tatsuhiro Tsujikawa
3b9a751757
Lowcase PREF_METALINK_LOCATION before split.
2011-07-25 23:58:38 +09:00
Tatsuhiro Tsujikawa
5a4a627d72
Remove Metalink content-type after first server response.
...
We don't accept Metalink content-type after first server response.
2011-07-25 00:03:13 +09:00
Tatsuhiro Tsujikawa
a6b7ef5f07
Eliminated static variable from LpdReceiveMessageCommand.
...
BtRegistry now holds LpdMessageReceiver.
2011-07-22 00:41:45 +09:00
Tatsuhiro Tsujikawa
97f76b7cf4
Fixed the bug due to dangling pointers in RequestGroup.
...
RequestGroup holds a poitner to btRuntime_ and peerStorage_. After
removing them from BtRegistry, we failed to set 0 to them. When
program access them, it goes undefined world, such as random crash.
We found this bug when pasuing download and valgrind warned memory
corruption.
2011-07-21 23:59:44 +09:00
Tatsuhiro Tsujikawa
c58f736bb9
BtRegistry now holds BitTorrent TCP server port.
...
Because BitTorrent TCP server port is global configuration, it is not
preferable that per download resource BtRuntime holds it. We also
refactored and eliminated ugly static variable in PeerListenCommand.
If TCP port is necessary, we inject it to them directly.
2011-07-21 23:42:41 +09:00
Tatsuhiro Tsujikawa
f0cd83f809
Added log message to clarify error for BitTorrent server socket.
2011-07-21 21:59:26 +09:00
Tatsuhiro Tsujikawa
e15f4edf8b
Loosen the condition where maxOutstandingRequest_ is increased.
2011-07-18 23:31:25 +09:00
Tatsuhiro Tsujikawa
a454a97c4e
Set UB_MAX_OUTSTANDING_REQUEST 256
2011-07-16 16:19:38 +09:00
Tatsuhiro Tsujikawa
af0daa3caa
Set NO_DEFAULT_VALUE as the default value of --enable-direct-io.
2011-07-16 16:15:16 +09:00
Tatsuhiro Tsujikawa
0eda667605
Added #deprecated help tag.
2011-07-16 16:14:57 +09:00
Tatsuhiro Tsujikawa
4933428261
Removed ENABLE_DIRECT_IO macro.
2011-07-16 16:06:15 +09:00
Tatsuhiro Tsujikawa
dbf4f553ca
Deprecated --enable-direct-io option.
...
Modified DeprecatedOptionHandler so that it can have replacing
OptionHandler.
2011-07-16 16:03:28 +09:00
Tatsuhiro Tsujikawa
b96df117d6
Removed deprecated options.
...
Removed --enable-xml-rpc, --xml-rpc-listen-all, --xml-rpc-listen-port,
--xml-rpc-max-request-size, --xml-rpc-user, --xml-rpc-passwd.
2011-07-16 15:52:35 +09:00
Tatsuhiro Tsujikawa
5bbfa742fc
Removed use of O_DIRECT because it performs bad.
2011-07-16 13:57:31 +09:00
Tatsuhiro Tsujikawa
5c4a52ad74
Managed user cuid in Piece.
...
Previous implementation does not store information which Command cuid
uses which Piece. Mark Piece acquired by SegmentMan by setting
Piece::setUsedBySegment(true).
2011-07-16 00:58:41 +09:00
Tatsuhiro Tsujikawa
ba710a7cb4
Define SHUT_WR as SD_SEND for MinGW32
2011-07-16 00:58:13 +09:00
Tatsuhiro Tsujikawa
ad4065ca12
Increased max # of in-flight request in BitTorrent.
2011-07-16 00:24:29 +09:00
Tatsuhiro Tsujikawa
44c379eaa8
Do nothing if block has already acquired.
...
This happens in end-game mode.
2011-07-16 00:23:45 +09:00
Tatsuhiro Tsujikawa
5703835784
Use GNUTLS_SHUT_WR instead of GNUTLS_SHUT_RDWR
...
We don't read the response from peer about this.
2011-07-06 22:52:15 +09:00
Tatsuhiro Tsujikawa
6f602e2809
Call shutdown() with SHUT_WR before close to avoid TCP RST.
2011-07-06 22:51:20 +09:00
Tatsuhiro Tsujikawa
d2e76eca47
Don't search faster server using ServerStatMan if req_ is null or
...
total length is unknown.
2011-06-29 21:30:32 +09:00
Tatsuhiro Tsujikawa
45430983d8
Move URI to spendUris_ when it is selected in
...
FileEntry::findFasterRequest().
2011-06-28 22:38:31 +09:00
Tatsuhiro Tsujikawa
bd4d3a27b3
Assign global::wallclock instead of calling Timer::reset().
2011-06-28 22:30:40 +09:00
Tatsuhiro Tsujikawa
5d498cb1ab
Take into account PREF_MAX_CONNECTION_PER_SERVER in
...
findFasterRequest(...,serverStatMan).
2011-06-28 21:27:31 +09:00
Tatsuhiro Tsujikawa
2906484345
Use ServerStat to find faster server.
2011-06-28 00:21:29 +09:00
Tatsuhiro Tsujikawa
0f0d4b9a48
Documented that falloc can be used against NTFS(MinGW build only).
2011-06-20 23:28:19 +09:00
Tatsuhiro Tsujikawa
cc7bc0aad3
Added aria2.getGlobalStat RPC method.
...
It returns overall download/upload speed and the number of
active/stopped/waiting downloads.
2011-06-17 22:45:42 +09:00
Tatsuhiro Tsujikawa
bb7e2e69db
Call requestQueueCheck() even if reservedGroups_ is not empty.
2011-06-16 22:36:20 +09:00
Tatsuhiro Tsujikawa
58b9655ad4
Call requestQueueCheck() even if reservedGroups_ is not empty.
...
This is because if all downloads in reservedGroups_ are in paused
state, we have to call requestQueueCheck() for each new added
download.
2011-06-16 22:01:14 +09:00
Tatsuhiro Tsujikawa
bea21e0afa
Added --stream-piece-selector option to -i list option.
2011-06-16 21:45:47 +09:00
Tatsuhiro Tsujikawa
d5c2ef4ce9
Added --pause option.
...
This option pauses download after added. This option is effective only
when --enable-rpc=true is given. When --save-session option is used
and there are paused downloads, they are saved with --pause=true so
that it will become paused state when the session is recovered.
2011-06-16 21:37:15 +09:00
Tatsuhiro Tsujikawa
c0d1e98133
Abort aria2 if it could not setup any RPC server.
2011-06-15 22:19:09 +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
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
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
c6b71eac8f
Updated doc for --save-session option.
2011-05-19 19:01:17 +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
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
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
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
Tatsuhiro Tsujikawa
33b9b3b27d
Added uri::construct()
2011-04-30 00:14:49 +09:00
Tatsuhiro Tsujikawa
2c0476e6d9
Erase user and password specified in command-line from argv.
...
The user and password is masked with '*'.
2011-04-22 23:38:59 +09:00
Tatsuhiro Tsujikawa
211c4ea9f4
If no data type tag is used in XML-RPC, treat the data as string.
2011-04-22 23:02:28 +09:00
Tatsuhiro Tsujikawa
aabb1f963e
Removed condition always evaluated to true.
2011-03-29 23:22:36 +09:00
Tatsuhiro Tsujikawa
891c9e60ac
Use A2_DELTA_MILLIS for timing critical code.
2011-03-27 20:54:51 +09:00
Tatsuhiro Tsujikawa
a4ddec44d1
Fixed typo
2011-03-27 19:19:33 +09:00
Tatsuhiro Tsujikawa
6e3f512c61
Added --show-console-readout option.
...
This option toggles appearance of console readout.
2011-03-27 19:16:54 +09:00
Tatsuhiro Tsujikawa
60a21e672c
Fixed compile error
2011-03-21 11:34:35 +09:00
Tatsuhiro Tsujikawa
87ca37ea48
Log error when event polling function failed.
2011-03-20 15:22:42 +09:00
Tatsuhiro Tsujikawa
e95b8efc6b
Fixed the bug that microsecond part of timeval overwlows in waitData().
2011-03-20 15:00:13 +09:00
Tatsuhiro Tsujikawa
d8585fd6eb
Updated doc
2011-03-18 22:45:25 +09:00
Tatsuhiro Tsujikawa
c1c3f2d77a
Return text/javascript as Content-Type if jsoncallback is given.
2011-03-18 22:43:01 +09:00
Tatsuhiro Tsujikawa
3d2fa5954e
Rewritten SocketBuffer::BufEntry and SocketBuffer::send()
2011-03-18 17:20:37 +09:00
Tatsuhiro Tsujikawa
18d51a3e20
Removed logging RPC request.
2011-03-17 16:09:22 +09:00
Tatsuhiro Tsujikawa
46eced8ada
Fixed compile error and unit test error without SSL library.
2011-03-17 16:08:39 +09:00
Tatsuhiro Tsujikawa
821dbbff1f
Fixed compile error with --disable-bittorrent
2011-03-17 16:02:35 +09:00
Tatsuhiro Tsujikawa
6e818a06dc
Replaced gid_t with a2_gid_t cause gid_t is commonly used as group ID.
2011-03-17 12:17:46 +09:00
Tatsuhiro Tsujikawa
b9a37f48cf
Updated doc.
2011-03-16 16:56:33 +09:00
Tatsuhiro Tsujikawa
73572712d8
Use .meta4 instead of .metalink as suffix when saving metalink XML
...
uploaded by RPC.
2011-03-16 16:55:38 +09:00
Tatsuhiro Tsujikawa
046bee87a2
Code cleanup
2011-03-16 12:56:03 +09:00
Tatsuhiro Tsujikawa
15730aa560
Fixed the bug that JSONP callback function name is not encoded
...
properly.
2011-03-16 12:55:12 +09:00
Tatsuhiro Tsujikawa
dfdf98d2f7
Fixed segmentation fault when JSON-RPC request cannot be parsed or is
...
invalid.
2011-03-16 12:53:40 +09:00
Tatsuhiro Tsujikawa
bb9ad97c5c
Allow empty params in GET request.
2011-03-16 12:50:39 +09:00
Tatsuhiro Tsujikawa
da0ab67324
Delegate jsonRpc_ to child method in system.multicall.
2011-03-16 00:29:39 +09:00
Tatsuhiro Tsujikawa
3ddb68f340
Deprecated --enable-xml-rpc and --xml-rpc-* option. Introduced
...
--enable-rpc and --rpc-* option instead.
--enable-xml-rpc and --xml-rpc-* option can be used but warning
message will be shown. The help tag #xml-rpc was replaced with #rpc.
2011-03-14 21:02:25 +09:00
Tatsuhiro Tsujikawa
f0cfbb21c1
Renamed classes in abstract layer of RPC service from XmlRpc* to Rpc*.
...
Now JSON-RPC is available by default regardless of XML library.
XML-RPC becomes available when XML library is available.
2011-03-14 16:38:54 +09:00
Tatsuhiro Tsujikawa
5a1fb3875f
Added XmlRpcResponseTest. Set null as id if id is not sent.
...
Removed unused XmlRpcResponse::toJsonBatch(). Set default value false
to gzip argument of xmlrpc::toJsonBatch().
2011-03-14 15:31:26 +09:00
Tatsuhiro Tsujikawa
bf01bb84b6
Added JSONP support. Callback query parameter is "jsoncallback".
2011-03-14 00:57:05 +09:00
Tatsuhiro Tsujikawa
feb4e2e53a
Hide operator<<(char c);
2011-03-14 00:54:14 +09:00
Tatsuhiro Tsujikawa
b46e7a953b
encodeJsonAll: Fixed stream error when gzip=true.
2011-03-14 00:53:16 +09:00
Tatsuhiro Tsujikawa
8a9fa9a692
Added JSON-RPC 2.0 batch call.
2011-03-10 00:56:37 +09:00
Tatsuhiro Tsujikawa
bc7ac15d7e
Fixed error message in json::decode()
2011-03-10 00:54:07 +09:00
Tatsuhiro Tsujikawa
7338a25035
Added initial JSON-RPC support.
...
JSON-RPC is enabled using --enable-xml-rpc. We are implementing
JSON-RPC based on JSON-RPC 2.0 draft spec.
2011-03-09 23:07:27 +09:00
Tatsuhiro Tsujikawa
d541b350d2
Set DEFAULT_REFRESH_INTERVAL 1000 to update console readout more
...
smoothly.
2011-02-26 23:16:48 +09:00
Tatsuhiro Tsujikawa
59f251ba14
Fixed rounding error in DownloadEngine::run().
...
This fixes the bug that executeCommand() with Command::STATUS_ALL is
not called in every interval correctly because of rounding error in
timer.
2011-02-25 22:58:51 +09:00
Tatsuhiro Tsujikawa
f8f651e8db
Refresh buckets at DHT initialization without checking serialized
...
time.
Checking serialized time does not work if you stop aria2 as soon as it
started DHT. The serialized time in dht.dat will be updated, but
buckets are not updated and still old. When you restart aria2 again,
it does not refresh buckets because serialized time is recent.
2011-02-25 22:39:14 +09:00
Tatsuhiro Tsujikawa
655b59e350
Retry get_peers if connection is low.
...
To eliminate unresponsive node, we have to contact them 5
times. Therefore the maximum number of retry is 10. It is very
annoying when it takes some time to get first peer, so retry quickly
(5 seconds delay).
2011-02-25 00:34:50 +09:00
Tatsuhiro Tsujikawa
f16aef227d
Fixed compile error with c-ares 1.7.0
2011-02-19 01:57:16 +09:00
Tatsuhiro Tsujikawa
b21cce0002
Use pkg-config for libcares. Dropped c-ares pre-1.5 support.
2011-02-18 23:36:39 +09:00
Tatsuhiro Tsujikawa
395212f47f
Replaced HAVE_LIBSSL with HAVE_OPENSSL
2011-02-18 22:43:50 +09:00
Tatsuhiro Tsujikawa
7230fbd2f7
Replaced HAVE_LIBZ with HAVE_ZLIB
2011-02-18 22:34:38 +09:00
Tatsuhiro Tsujikawa
3f125dce21
Use LIBS and CPPFLAGS instead of substituting them individually per
...
library.
2011-02-18 18:53:53 +09:00
Tatsuhiro Tsujikawa
d3d1293974
Check the availability of ares_set_servers and ares_addr_node.
2011-02-18 01:04:11 +09:00
Tatsuhiro Tsujikawa
1698b2c7b1
Save downloads added by aria2.addTorrent or aria2.addMetalink in
...
--save-session file.
Uploaded data are saved as file named hex string of sha1 hash of
uploaded data plus extension(".torrent" for torrent and ".metalink"
for metalink). For example,
0a3893293e27ac0490424c06de4d09242215f0a6.torrent. The directory where
these files are saved is specified by --dir option. These file paths
are written in --save-session file.
2011-02-16 00:44:23 +09:00
Tatsuhiro Tsujikawa
a21fb350a0
Fixed the bug that causes segmentation fault when unpause RequestGroup
...
which has resolved BtDependency.
2011-02-14 00:36:52 +09:00
Tatsuhiro Tsujikawa
eb6a811279
Look for USERPROFILE and the combination of HOMEDRIVE and HOMEPATH to
...
get user's home directory in MinGW32 build.
Usually HOME environment variable is defined in *nix like OSes, but
not in Windows. So in MinGW32 build, if HOME is not defined, we also
look for USERPROFILE and the combination of HOMEDRIVE and HOMEPATH.
2011-02-12 18:38:13 +09:00
Tatsuhiro Tsujikawa
22a6ec6a15
Fixed the bug that DownloadContext::basePath_ is not
...
escaped. Percent-encode non UTF-8 strings in torrent file and Magnet
URI.
2011-02-12 00:15:33 +09:00
Tatsuhiro Tsujikawa
1a9d3b7711
Added Date, Expires and Cache-Control response header field to XML-RPC response headers.
2011-02-09 23:01:01 +09:00
Tatsuhiro Tsujikawa
ffce1848ca
Don't retry peer lookup.
...
We can handle shortage of peer by short interval.
2011-02-08 23:39:44 +09:00
Tatsuhiro Tsujikawa
aa4232ca8b
Use rp instead of res.
2011-02-08 23:14:13 +09:00
Tatsuhiro Tsujikawa
297858280b
Moved PREF_ASYNC_DNS_SERVER to the next to PREF_ASYNC_DNS.
2011-02-08 23:08:44 +09:00
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
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
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
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
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
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
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
bc798ae4e6
Use Exception::getErrorCode() in main() instead of error_code::UNKNOWN_ERROR
...
unconditionally.
2010-12-05 15:13:32 +09:00
Tatsuhiro Tsujikawa
0271ec0352
Updated usage of --on-download-* options.
2010-12-04 22:42:24 +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
0a2b1660fa
Removed DownloadContext::dir_. Use PREF_DIR value instead.
2010-12-03 13:08:22 +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
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
Tatsuhiro Tsujikawa
378ba26ed3
Updated doc
2010-11-29 21:06:00 +09:00
Tatsuhiro Tsujikawa
a0139e3e08
Call RequestGroup::setLastError in
...
PeerInteractionCommand::onFailure().
Added const Exception& argument to virtual
AbstractCommand::onFailure().
2010-11-29 01:37:32 +09:00
Tatsuhiro Tsujikawa
d5b6ec8621
Call RequestGroup::setLastError when exception is caught while
...
creating initial commands.
2010-11-29 01:32:25 +09:00
Tatsuhiro Tsujikawa
f5a9448cf1
Moved setLastError call before if(req_) {...
2010-11-29 01:30:24 +09:00
Tatsuhiro Tsujikawa
ce6eb592da
Added Exception ctor which takes both errNum and errorCode.
...
Also added DlAbortEx ctor which has same signature with new Exception
dtor. Added DL_ABORT_EX3 macro to use added ctor.
2010-11-28 22:30:06 +09:00
Tatsuhiro Tsujikawa
e8f3592314
Removed include of cerrno from Exception.h
2010-11-28 21:42:03 +09:00
Tatsuhiro Tsujikawa
476ba70a9f
Moved errorCode_ from RecoverableException to Exception and added errorCode to
...
stackTrace.
Also changed errno to errNum in stackTrace.
2010-11-28 21:36:01 +09:00
Tatsuhiro Tsujikawa
45fde1adaf
Cleaned up Exception constructors.
...
Removed Exception(const char*, int, const Exception&) ctor. Also
removed FatalException() copy ctor.
2010-11-28 21:03:11 +09:00
Tatsuhiro Tsujikawa
50122f0ab3
Renamed Exception::errno_ as Exception::errNum_.
2010-11-28 19:06:56 +09:00
Tatsuhiro Tsujikawa
ecbc05012c
Added additional error_code::Values(9 through 14).
2010-11-28 17:29:32 +09:00
Tatsuhiro Tsujikawa
d316a00ade
Replaced RequestGroup::lastUriResult_ with
...
RequestGroup::lastErrorCode_.
2010-11-28 17:00:30 +09:00
Tatsuhiro Tsujikawa
947967fc63
Renamed DownloadErrorCode.h as error_code.h. Renamed
...
downloaderrorcode::Value as error_code::Value.
2010-11-28 16:52:02 +09:00
Tatsuhiro Tsujikawa
f4e008f886
Moved include of gettext.h to the outside of #ifdef ENABLE_NLS since
...
gettext.h has it inside itself.
2010-11-28 00:05:56 +09:00
Tatsuhiro Tsujikawa
e39dd96171
Removed autogenerated files by automake/autoconf.
...
To generate these files, run 'autoreconf -i'.
Since libgnutls.m4 is no longer distributed, we removed
AM_PATH_LIBGNUTLS from configure.ac.
2010-11-27 23:31:17 +09:00
Tatsuhiro Tsujikawa
ba026adb5e
2010-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
For MINGW32 build, percent-encode non-ASCII characters in
filename.
* src/util.cc
2010-11-26 13:07:28 +00:00
Tatsuhiro Tsujikawa
721f53ea97
2010-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Include last '/' to directory name to create. This will avoid to
create directory 'C:' in Windows.
* src/File.cc
2010-11-26 12:34:02 +00:00
Tatsuhiro Tsujikawa
0455cde2a8
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused FileEntry::setupDir()
* src/FileEntry.cc
* src/FileEntry.h
* test/FileEntryTest.cc
2010-11-25 12:42:07 +00:00
Tatsuhiro Tsujikawa
94c4a71d63
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed MultiDiskAdaptor::mkdir() because directory structure is
created at AbstractDiskWriter::createFile().
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
2010-11-25 12:38:57 +00:00
Tatsuhiro Tsujikawa
ea49e9c297
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made strings which are only used in comparison plain C strings.
* src/HttpHeader.cc
* src/HttpHeader.h
* src/Netrc.cc
* src/Netrc.h
* test/HttpHeaderTest.cc
2010-11-25 12:13:33 +00:00
Tatsuhiro Tsujikawa
3a897a4f32
2010-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added white space after ',' when enumerating valid parameters.
* src/OptionHandlerImpl.cc
2010-11-24 11:42:08 +00:00
Tatsuhiro Tsujikawa
06cd151c4b
2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Cleaned up Possible Values in usage help. More than 2 values are
delimited by ", ".
* src/NameMatchOptionHandler.h
* src/OptionHandler.cc
* src/OptionHandler.h
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.cc
* test/OptionHandlerTest.cc
2010-11-23 14:47:58 +00:00
Tatsuhiro Tsujikawa
b8055f259b
2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made --allow-overwrite, --allow-piece-length-change,
--realtime-chunk-checksum and --bt-require-crypto take optional
argument. Fixed usage doc for --metalink-enable-unique-protocol.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/usage_text.h
2010-11-23 14:11:45 +00:00
Tatsuhiro Tsujikawa
b2fbe2c896
2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made --continue, --daemon, --no-conf, --no-netrc and --show-files
option take optional argument.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/usage_text.h
2010-11-23 13:59:03 +00:00
Tatsuhiro Tsujikawa
752234ae66
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added BtSeederStateChoke::PeerEntry::swap(). Also added
non-member swap for it, which is friend function for
BtSeederStateChoke because PeerEntry is private.
* src/BtSeederStateChoke.cc
* src/BtSeederStateChoke.h
2010-11-20 15:01:24 +00:00
Tatsuhiro Tsujikawa
8f46dbc0ab
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added BtLeecherStateChoke::PeerEntry::swap(). Also added
non-member swap for it, which is friend function for
BtLeecherStateChoke because PeerEntry is private.
* src/BtLeecherStateChoke.cc
* src/BtLeecherStateChoke.h
2010-11-20 14:52:52 +00:00
Tatsuhiro Tsujikawa
4ed364d772
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added CookieStorage::DomainEntry::swap(). Also added non-member
swap for it.
* src/CookieStorage.cc
* src/CookieStorage.h
2010-11-20 14:05:58 +00:00
Tatsuhiro Tsujikawa
c552842505
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made LogFactory::logger_ as SharedHandle<Logger> to make dtor of
Logger called at the program exit. Rewritten A2_LOG_* macro and
moved them to LogFactory.h
* src/LogFactory.cc
* src/LogFactory.h
* src/Logger.cc
* src/Logger.h
2010-11-20 12:33:12 +00:00
Tatsuhiro Tsujikawa
9a67929d8c
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed cuid as cuid_t in DefaultBtMessageDispatcher.
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtMessageDispatcher.h
2010-11-20 12:14:23 +00:00
Tatsuhiro Tsujikawa
03417e94b4
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use format specifier %lld for cuid_t. Defined cuid_t as long long
int instead of int64_t, since g++ complains int64_t is not
suitable for %lld.
2010-11-20 12:12:06 +00:00
Tatsuhiro Tsujikawa
694fb307aa
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced StringFormat with fmt
2010-11-20 09:36:14 +00:00
Tatsuhiro Tsujikawa
580098eb49
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Logger interface. Logger now writes source file name and
line number in log file.
2010-11-20 08:21:36 +00:00
Tatsuhiro Tsujikawa
3940da7562
2010-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made DHTBucketTreeNode non-copyable.
* src/DHTBucketTree.h
2010-11-18 12:13:59 +00:00
Tatsuhiro Tsujikawa
698876e2eb
2010-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Enter 'end game' mode from the beginning when getting torrent
metadata for quick data retrieval.
* src/HandshakeExtensionMessage.cc
2010-11-18 12:10:15 +00:00
Tatsuhiro Tsujikawa
1eef862cc3
2010-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced BNode with DHTBucketTreeNode which is 2 times efficient.
* src/BNode.cc: Removed
* src/BNode.h: Removed
* src/DHTBucketTree.cc
* src/DHTBucketTree.h
* src/DHTRoutingTable.cc
* src/DHTRoutingTable.h
* src/Makefile.am
* test/BNodeTest.cc: Removed
* test/DHTBucketTreeTest.cc
* test/Makefile.am
2010-11-17 15:42:23 +00:00
Tatsuhiro Tsujikawa
8a1578d741
2010-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added non-member swap() for SharedHandle.
* src/SharedHandle.h
2010-11-15 13:45:13 +00:00
Tatsuhiro Tsujikawa
d8d159ccd8
2010-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced HttpHeader::responseStatus_ with HttpHeader::statusCode_.
statusCode_ is of type int.
* src/AbstractProxyResponseCommand.cc
* src/FtpNegotiationCommand.cc
* src/HttpHeader.cc
* src/HttpHeader.h
* src/HttpHeaderProcessor.cc
* src/HttpResponse.cc
* src/HttpResponse.h
* src/HttpResponseCommand.cc
* src/HttpSkipResponseCommand.cc
* src/util.cc
* src/util.h
* test/HttpHeaderProcessorTest.cc
* test/HttpHeaderTest.cc
* test/HttpResponseTest.cc
* test/UtilTest.cc
2010-11-15 12:52:03 +00:00
Tatsuhiro Tsujikawa
6a1fe66975
2010-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use SharedHandle::swap() in some places.
* src/RequestGroup.cc
2010-11-15 12:02:54 +00:00
Tatsuhiro Tsujikawa
de8598b63a
2010-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added SharedHandle::swap
* src/SharedHandle.h
2010-11-15 12:02:10 +00:00
Tatsuhiro Tsujikawa
e16844cc8f
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use --max-connection-per-server option value for Metalink.
* src/Metalink2RequestGroup.cc
2010-11-14 08:36:41 +00:00
Tatsuhiro Tsujikawa
ba540085a6
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error on opensolaris
* src/util.cc
2010-11-14 08:19:53 +00:00
Tatsuhiro Tsujikawa
af33f67fee
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't catch Exception.
* src/RealtimeCommand.cc
2010-11-14 08:13:59 +00:00
Tatsuhiro Tsujikawa
1d77c67f1b
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused includes.
2010-11-14 08:12:38 +00:00
Tatsuhiro Tsujikawa
1372ac51ad
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added .cc file for classes/structs that only provided by header
file. Defined non-POD classes' ctor, dtor in .cc file. Moved
implementation code in header file to .cc file for major
classes/strucsts.
2010-11-14 07:17:55 +00:00
Tatsuhiro Tsujikawa
93e5dbed32
2010-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed SharedHandle::isNull(). Instead we added operator* and
operator unspecified_bool_type. Removed use of WeakHandle and
replaced with raw pointer.
2010-11-12 12:48:48 +00:00
Tatsuhiro Tsujikawa
f6f5a7e5ee
2010-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed memory leak
* src/ExpatMetalinkProcessor.cc
2010-11-11 13:38:34 +00:00
Tatsuhiro Tsujikawa
bc98e39fe5
2010-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
To match the behavior of friend operator functions in
SharedHandle.h to std::tr1::shared_ptr, we intentionally broke
these functions and modified code so that our code does not depend
on old behavior.
* src/AbstractCommand.cc
* src/DHTAbstractNodeLookupTask.h
* src/DHTBucket.cc
* src/DHTMessageReceiver.cc
* src/DHTNodeLookupEntry.cc
* src/DHTRoutingTable.cc
* src/DefaultBtRequestFactory.cc
* src/DefaultPeerStorage.cc
* src/DefaultPieceStorage.cc
* src/DownloadContext.cc
* src/EpollEventPoll.cc
* src/Event.h
* src/HttpConnection.cc
* src/KqueueEventPoll.cc
* src/MultiDiskAdaptor.cc
* src/PeerAbstractCommand.cc
* src/PieceStatMan.cc
* src/PollEventPoll.cc
* src/PortEventPoll.cc
* src/SegmentMan.cc
* src/SelectEventPoll.cc
* src/SelectEventPoll.h
* src/ServerStatMan.cc
* src/SharedHandle.h
* src/UnknownLengthPieceStorage.cc
* src/a2functional.h
* src/option_processing.cc
* src/version_usage.cc
* test/BNodeTest.cc
* test/DHTAnnouncePeerMessageTest.cc
* test/DHTBucketTest.cc
* test/DHTFindNodeMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/DHTIDCloserTest.cc
* test/DHTMessageFactoryImplTest.cc
* test/DHTPingMessageTest.cc
* test/DefaultBtRequestFactoryTest.cc
* test/DefaultPeerStorageTest.cc
* test/SequentialPickerTest.cc
* test/SingletonHolderTest.cc
2010-11-11 07:33:43 +00:00
Tatsuhiro Tsujikawa
bcf4593bda
2010-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Create SharedHandle outside of function call to avoid unexpected
memory leak.
* src/AnnounceList.cc
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/UTMetadataPostDownloadHandler.cc
* src/download_helper.cc
2010-11-11 05:12:37 +00:00
Tatsuhiro Tsujikawa
1946b3341f
2010-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added sha-224, sha-384, sha-512 hash function support.
* m4/openssl.m4
* src/MessageDigest.cc
* src/LibgcryptMessageDigestImpl.cc
* src/LibsslMessageDigestImpl.cc
2010-11-11 03:23:08 +00:00
Tatsuhiro Tsujikawa
89f997ec0d
2010-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced MessageDigestContext with MessageDigest. Cleaned up
unnecessary functions in MessageDigestHelper.
* src/BtPieceMessage.cc
* src/Checksum.h
* src/DHTTokenTracker.cc
* src/DownloadCommand.cc
* src/DownloadCommand.h
* src/HashFuncEntry.h
* src/IteratableChecksumValidator.cc
* src/IteratableChecksumValidator.h
* src/IteratableChunkChecksumValidator.cc
* src/IteratableChunkChecksumValidator.h
* src/LibgcryptMessageDigestImpl.cc
* src/LibgcryptMessageDigestImpl.h
* src/LibsslMessageDigestImpl.cc
* src/LibsslMessageDigestImpl.h
* src/MSEHandshake.cc
* src/MSEHandshake.h
* src/Makefile.am
* src/MessageDigest.cc
* src/MessageDigest.h
* src/MessageDigestHelper.cc
* src/MessageDigestHelper.h
* src/MessageDigestImpl.h
* src/MetalinkParserController.cc
* src/Piece.cc
* src/Piece.h
* src/UTMetadataDataExtensionMessage.cc
* src/bittorrent_helper.cc
* src/messageDigest.cc: Removed
* src/messageDigest.h: Removed
* src/util.cc
* src/version_usage.cc
* test/BittorrentHelperTest.cc
* test/GZipDecoderTest.cc
* test/GZipDecodingStreamFilterTest.cc
* test/IteratableChecksumValidatorTest.cc
* test/IteratableChunkChecksumValidatorTest.cc
* test/Makefile.am
* test/MessageDigestHelperTest.cc
* test/MessageDigestTest.cc
* test/Metalink2RequestGroupTest.cc
* test/MetalinkProcessorTest.cc
* test/PieceTest.cc
* test/TestUtil.cc
* test/TestUtil.h
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataPostDownloadHandlerTest.cc
2010-11-11 02:56:24 +00:00
Tatsuhiro Tsujikawa
513e8a7917
2010-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print IP protocol version when setting up XML-RPC server failed.
* src/HttpListenCommand.cc
2010-11-09 15:22:50 +00:00
Tatsuhiro Tsujikawa
f1af13567f
2010-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Retry open(2) and fallocate(2) when they are interrupted by
signal.
* src/AbstractDiskWriter.cc
2010-11-09 15:18:25 +00:00
Tatsuhiro Tsujikawa
228b4c50d7
2010-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Capture errno right after system/library call to avoid it to get
overwritten. Use util::safeStrerror instead of strerror directly
because strerror might return NULL. We don't check errno for
std::fstream anymore.
* src/AbstractDiskWriter.cc
* src/CookieStorage.cc
* src/DHTAutoSaveCommand.cc
* src/DHTRoutingTableDeserializer.cc
* src/DHTRoutingTableSerializer.cc
* src/DefaultBtProgressInfoFile.cc
* src/EpollEventPoll.cc
* src/IteratableChunkChecksumValidator.cc
* src/KqueueEventPoll.cc
* src/Logger.cc
* src/MessageDigestHelper.cc
* src/PortEventPoll.cc
* src/SelectEventPoll.cc
* src/SocketCore.cc
* src/message.h
* src/util.cc
* src/util.h
2010-11-09 14:43:47 +00:00
Tatsuhiro Tsujikawa
02f725cab5
2010-11-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use const reference
* src/UnionSeedCriteria.h
2010-11-06 15:33:19 +00:00
Tatsuhiro Tsujikawa
35cc4ed1e7
2010-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Return empty range if byte-range-resp-spec or instance-length is
"*" in Content-Range header to prevent aria2 from emitting error
failing to convert "*" to a integer.
* src/HttpHeader.cc
* test/HttpHeaderTest.cc
2010-10-31 07:56:01 +00:00
Tatsuhiro Tsujikawa
2b458da480
2010-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made #include guard consistent for c++ header files.
2010-10-31 07:23:53 +00:00
Tatsuhiro Tsujikawa
6e88cae02b
2010-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that downloading > 4GB file fails on 32bit systems.
* src/HttpRequest.cc
* src/HttpRequestCommand.cc
2010-10-31 04:36:38 +00:00
Tatsuhiro Tsujikawa
236e64cb25
2010-10-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use unnamed namespace instead of static keyword.
* src/AbstractCommand.cc
* src/AdaptiveURISelector.cc
* src/Base64.cc
* src/BitfieldMan.cc
* src/BtDependency.cc
* src/ConsoleStatCalc.cc
* src/ContentTypeRequestGroupCriteria.cc
* src/CookieStorage.cc
* src/DHTMessageFactoryImpl.cc
* src/DHTRoutingTableDeserializer.cc
* src/DefaultBtAnnounce.cc
* src/DefaultBtProgressInfoFile.cc
* src/DefaultPeerStorage.cc
* src/DefaultPieceStorage.cc
* src/DownloadCommand.cc
* src/DownloadEngine.cc
* src/EpollEventPoll.cc
* src/ExpatMetalinkProcessor.cc
* src/ExpatXmlRpcRequestProcessor.cc
* src/FileEntry.cc
* src/HttpRequest.cc
* src/HttpRequestCommand.cc
* src/HttpResponseCommand.cc
* src/KqueueEventPoll.cc
* src/LongestSequencePieceSelector.cc
* src/MetalinkParserStateV3Impl.cc
* src/MetalinkParserStateV4Impl.cc
* src/MultiDiskAdaptor.cc
* src/MultiUrlRequestInfo.cc
* src/OptionParser.cc
* src/PeerSessionResource.cc
* src/PortEventPoll.cc
* src/Request.cc
* src/RequestGroupMan.cc
* src/SelectEventPoll.cc
* src/SessionSerializer.cc
* src/SimpleLogFormatter.cc
* src/Sqlite3CookieParser.cc
* src/TrackerWatcherCommand.cc
* src/XML2SAXMetalinkProcessor.cc
* src/Xml2XmlRpcRequestProcessor.cc
* src/XmlRpcMethod.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcResponse.cc
* src/base32.cc
* src/bencode2.cc
* src/bittorrent_helper.cc
* src/download_helper.cc
* src/main.cc
* src/messageDigest.cc
* src/option_processing.cc
* src/util.cc
* test/AnnounceListTest.cc
* test/BtRegistryTest.cc
* test/DHTBucketTest.cc
* test/DHTRoutingTableTest.cc
* test/DefaultBtAnnounceTest.cc
* test/FileEntryTest.cc
* test/FtpConnectionTest.cc
* test/MSEHandshakeTest.cc
* test/MagnetTest.cc
* test/XmlRpcMethodTest.cc
* test/array_funTest.cc
2010-10-30 16:02:15 +00:00
Tatsuhiro Tsujikawa
6ecfa4aad1
2010-10-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added '// namespace' after end of unnamed namespace.
* src/AbstractCommand.cc
* src/AnnounceList.cc
* src/BtSeederStateChoke.cc
* src/ConsoleStatCalc.cc
* src/CookieStorage.cc
* src/DHTBucket.cc
* src/DHTPeerAnnounceEntry.cc
* src/DHTPeerAnnounceStorage.cc
* src/DHTTaskQueueImpl.cc
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtRequestFactory.cc
* src/DefaultPeerStorage.cc
* src/DefaultPieceStorage.cc
* src/ExpatMetalinkProcessor.cc
* src/ExpatXmlRpcRequestProcessor.cc
* src/FeedbackURISelector.cc
* src/FileEntry.cc
* src/GZipEncoder.cc
* src/Metalink2RequestGroup.cc
* src/MetalinkEntry.cc
* src/MetalinkParserStateV3Impl.cc
* src/MetalinkParserStateV4Impl.cc
* src/Metalinker.cc
* src/MultiDiskAdaptor.cc
* src/Netrc.cc
* src/NsCookieParser.cc
* src/OptionParser.cc
* src/PieceStatMan.cc
* src/RarestPieceSelector.cc
* src/RequestGroupMan.cc
* src/SegmentMan.cc
* src/ServerStatMan.cc
* src/SocketCore.cc
* src/XML2SAXMetalinkProcessor.cc
* src/Xml2XmlRpcRequestProcessor.cc
* src/XmlRpcMethodImpl.cc
* src/cookie_helper.cc
* src/download_helper.cc
* src/messageDigest.cc
* src/util.cc
2010-10-30 14:53:40 +00:00
Tatsuhiro Tsujikawa
e5d1b812c8
2010-10-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unnecessary unnamed namespace
* src/a2functional.h
2010-10-30 12:31:53 +00:00
Tatsuhiro Tsujikawa
df5db9b84f
2010-10-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Tagged -x and -k option as #basic
* src/OptionHandlerFactory.cc
2010-10-30 08:26:35 +00:00
Tatsuhiro Tsujikawa
e032014466
2010-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning with --disable-bittorrent and
--disable-metalink.
* src/download_helper.cc
2010-10-28 15:04:57 +00:00
Tatsuhiro Tsujikawa
b7df39b7ae
2010-10-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning about printf format.
* src/AdaptiveURISelector.cc
* src/BtPieceMessage.cc
* src/DHTAbstractNodeLookupTask.h
* src/DHTMessageFactoryImpl.cc
* src/DHTPeerLookupTask.cc
* src/DHTReplaceNodeTask.cc
* src/DefaultBtAnnounce.cc
* src/DefaultBtInteractive.cc
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtProgressInfoFile.cc
* src/DefaultBtRequestFactory.cc
* src/DefaultExtensionMessageFactory.cc
* src/DefaultPieceStorage.cc
* src/DownloadCommand.cc
* src/FileAllocationCommand.cc
* src/FileEntry.cc
* src/HandshakeExtensionMessage.cc
* src/IteratableChunkChecksumValidator.cc
* src/LibgcryptDHKeyExchange.h
* src/LibsslDHKeyExchange.h
* src/LpdDispatchMessageCommand.cc
* src/MSEHandshake.cc
* src/MessageDigestHelper.cc
* src/MultiDiskAdaptor.cc
* src/PeerConnection.cc
* src/SegmentMan.cc
* src/TimedHaltCommand.cc
* src/UTMetadataRequestExtensionMessage.cc
* src/UTPexExtensionMessage.cc
* src/bencode2.cc
* src/bittorrent_helper.cc
* src/message.h
2010-10-28 14:19:29 +00:00
Tatsuhiro Tsujikawa
17a0a5baad
2010-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused variable r.
* src/StringFormat.cc
2010-10-27 14:58:47 +00:00
Tatsuhiro Tsujikawa
9ff8e55d04
2010-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added printf format check attribute.
* src/Logger.h
* src/StringFormat.h
2010-10-27 14:57:46 +00:00
Tatsuhiro Tsujikawa
423ec26fe4
2010-10-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use std::numeric_limits<time_t> instead of checking of
sizeof(time_t).
* src/NsCookieParser.cc
* src/Sqlite3CookieParser.cc
* src/cookie_helper.cc
* test/CookieHelperTest.cc
* test/CookieStorageTest.cc
* test/NsCookieParserTest.cc
2010-10-27 14:54:25 +00:00
Tatsuhiro Tsujikawa
5eec87df03
2010-10-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed improper use of vsnprintf
* src/StringFormat.cc
2010-10-26 11:46:19 +00:00
Tatsuhiro Tsujikawa
831bac1471
2010-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that dht.dat file could not be saved. This is
because a directory denoting temporary file path is wrongly
created and thus aria2 fails to open the file as regular file.
* src/DHTAutoSaveCommand.cc
2010-10-23 13:43:32 +00:00
Tatsuhiro Tsujikawa
51308002d3
2010-10-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't reuse socket which is readable because we assume that if
socket is readable it means peer shutdowns connection and the
socket will receive EOF. Added default timeout value to
DownloadEngine::poolSocket().
* src/DownloadEngine.cc
* src/DownloadEngine.h
2010-10-19 14:02:47 +00:00
Tatsuhiro Tsujikawa
6b74a27586
2010-10-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that file allocation is enabled in HTTP even if
--file-allocation=none is specified.
* src/HttpResponseCommand.cc
2010-10-19 13:46:51 +00:00
Tatsuhiro Tsujikawa
942f4c00a9
2010-10-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten AbstractDiskWriter::openFile() without File::exists().
* src/AbstractCommand.cc
2010-10-11 15:15:13 +00:00
Tatsuhiro Tsujikawa
4ddc6eac58
2010-10-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added errno member variable to Exception.
* src/DlAbortEx.cc
* src/DlAbortEx.h
* src/Exception.cc
* src/Exception.h
* src/RecoverableException.cc
* src/RecoverableException.h
2010-10-11 15:13:53 +00:00
Tatsuhiro Tsujikawa
8bfe35d3f2
2010-10-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Simplified directory creation.
* src/DHTAutoSaveCommand.cc
2010-10-11 15:10:28 +00:00
Tatsuhiro Tsujikawa
b3036d5840
2010-10-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Skip ";" after name value pair.
* src/cookie_helper.cc
2010-10-11 15:09:06 +00:00
Tatsuhiro Tsujikawa
b56a0a6d79
2010-10-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten util::mkdirs()
* src/util.cc
2010-10-11 15:08:09 +00:00
Tatsuhiro Tsujikawa
1a13d35406
2010-10-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten File::mkdirs()
* src/File.cc
2010-10-11 15:07:26 +00:00
Tatsuhiro Tsujikawa
119b9a8448
2010-10-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use RFC1123 date format in debug log of MDTM response and
last-modified time and creation date of .torrent file printed
using -S.
* src/FtpNegotiationCommand.cc
* src/RequestGroup.cc
* src/bittorrent_helper.cc
2010-10-11 12:40:20 +00:00
Tatsuhiro Tsujikawa
f6dbba5427
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Retrieve last access time from sqlite3 cookie database.
* src/CookieStorage.cc
* src/Sqlite3CookieParser.cc
* src/Sqlite3CookieParser.h
* src/Sqlite3CookieParserImpl.cc
* test/Sqlite3CookieParserTest.cc
* test/chromium_cookies.sqlite
* test/cookies.sqlite
2010-10-10 09:53:30 +00:00
Tatsuhiro Tsujikawa
bcddb4cfa3
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Remove expired cookies first when cookies_ is full.
* src/CookieStorage.cc
2010-10-10 09:22:04 +00:00
Tatsuhiro Tsujikawa
0abd4a2f7b
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten util::split()
* src/util.h
* test/UtilTest.cc
2010-10-10 06:58:31 +00:00
Tatsuhiro Tsujikawa
8f173868dc
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/cookie_helper.cc
2010-10-10 03:43:20 +00:00
Tatsuhiro Tsujikawa
1875d7382f
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced util::split(a,b,c) and util::split(a,b) with
util::divide()
* src/ExpatMetalinkProcessor.cc
* src/FtpConnection.cc
* src/HttpHeader.cc
* src/HttpResponse.cc
* src/HttpServer.cc
* src/OptionParser.cc
* src/ParameterizedStringParser.cc
* src/ServerStatMan.cc
* src/magnet.cc
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-10-10 03:39:00 +00:00
Tatsuhiro Tsujikawa
983b6006fd
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Append 'u' to hex mask.
* src/Base64.cc
* src/BitfieldMan.cc
* src/BtHandshakeMessage.cc
* src/BtHandshakeMessage.h
* src/DHTBucket.cc
* src/DHTRoutingTableDeserializer.cc
* src/DHTRoutingTableSerializer.cc
* src/DefaultBtProgressInfoFile.cc
* src/MSEHandshake.h
* src/MultiUrlRequestInfo.cc
* src/Platform.cc
* src/SpeedCalc.cc
* src/UTPexExtensionMessage.cc
* src/a2netcompat.h
* src/base32.cc
* src/bitfield.h
* src/bittorrent_helper.cc
* src/cookie_helper.cc
* src/util.h
2010-10-10 03:08:30 +00:00
Tatsuhiro Tsujikawa
8e059b66fa
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added util::lowercase() and util::uppercase().
* src/cookie_helper.cc
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-10-10 02:51:38 +00:00
Tatsuhiro Tsujikawa
1505671e7b
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use util::strip() instead of util::trim()
* src/ExpatXmlRpcRequestProcessor.cc
* src/FeatureConfig.cc
* src/HttpHeader.cc
* src/MetalinkParserStateV3Impl.cc
* src/OptionHandlerImpl.h
* src/ServerStatMan.cc
* src/UriListParser.cc
* src/Xml2XmlRpcRequestProcessor.cc
* src/bittorrent_helper.cc
* src/cookie_helper.cc
* src/messageDigest.cc
* src/util.cc
* src/util.h
* test/FeatureConfigTest.cc
* test/HttpRequestTest.cc
* test/UriListParserTest.cc
* test/UtilTest.cc
2010-10-09 16:49:02 +00:00
Tatsuhiro Tsujikawa
dbea00fa9d
2010-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added util::strip()
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-10-09 16:22:56 +00:00
Tatsuhiro Tsujikawa
b8f8a14937
2010-10-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't append slash in CookieStorage::criteriaFind(). Append file
part of URI to request-uri in HttpRequest::createRequest(). This
change reverts the part of the previous change:"The
request-path must be ends with '/' so that request-path '/foo/'
path-matches cookie-path '/foo' and '/foo/' in the proposed
algorithm."
* src/CookieStorage.cc
* src/HttpRequest.cc
2010-10-09 14:38:47 +00:00
Tatsuhiro Tsujikawa
8b17d4b276
2010-10-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Cookie class and Cookie parser based on
http://tools.ietf.org/html/draft-ietf-httpstate-cookie-14 with
some modifications. When parsing cookie date, match time first so
that it parses asctime() format. The request-path must be ends
with '/' so that request-path '/foo/' path-matches cookie-path
'/foo' and '/foo/' in the proposed algorithm.
* src/Cookie.cc
* src/Cookie.h
* src/CookieParser.cc: Removed
* src/CookieParser.h: Removed
* src/CookieStorage.cc
* src/CookieStorage.h
* src/HttpResponse.cc
* src/Makefile.am
* src/Makefile.in
* src/MultiUrlRequestInfo.cc
* src/NsCookieParser.cc
* src/NsCookieParser.h
* src/Sqlite3CookieParser.cc
* src/Sqlite3CookieParser.h
* src/a2functional.h
* src/cookie_helper.cc
* src/cookie_helper.h
* src/util.cc
* src/util.h
* test/CookieBoxFactoryTest.cc: Removed
* test/CookieHelperTest.cc
* test/CookieParserTest.cc: Removed
* test/CookieStorageTest.cc
* test/CookieTest.cc
* test/HttpRequestTest.cc
* test/Makefile.am
* test/Makefile.in
* test/NsCookieParserTest.cc
* test/Sqlite3CookieParserTest.cc
* test/TestUtil.cc
* test/TestUtil.h
* test/a2functionalTest.cc
* test/chromium_cookies.sqlite
* test/cookies.sqlite
* test/nscookietest.txt
2010-10-09 14:22:49 +00:00
Tatsuhiro Tsujikawa
9b1280f7a3
2010-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Supported ANSI C's asctime() format in Time::parseHTTPDate().
Added Time::parseAsctime(). Changed order of application of parse
functions. I could not remember why parseRFC850() was tried first.
* src/TimeA2.cc
* src/TimeA2.h
* test/TimeTest.cc
2010-10-04 15:12:27 +00:00
Tatsuhiro Tsujikawa
5db7b123b5
2010-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use inet_ntoa if inet_ntop is not available. Since inet_ntoa does
not handle IPv6 address, IPv6 support is limited in this
case. Fixed unit test error under mingw32.
* configure.ac
* src/AsyncNameResolver.cc
* src/SocketCore.cc
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
* test/DHTMessageFactoryImplTest.cc
* test/DHTRoutingTableDeserializerTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/DefaultBtAnnounceTest.cc
* test/Metalink2RequestGroupTest.cc
* test/UTPexExtensionMessageTest.cc
2010-10-04 14:33:49 +00:00
Tatsuhiro Tsujikawa
329de2a9b5
2010-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reverted the previous change in src/MultiUrlRequestInfo.cc.
Change log level of warning message about CA certificates to info.
* src/MultiUrlRequestInfo.cc
2010-10-03 14:13:03 +00:00
Tatsuhiro Tsujikawa
be2cd51e1b
2010-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed warning message when CA certificates are not imported.
--ca-certificate and --check-certificate option were added to the
error message displayed when certificate verification failed.
* src/MultiUrlRequestInfo.cc
* src/message.h
2010-10-03 14:07:57 +00:00
Tatsuhiro Tsujikawa
af207e6cd8
2010-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print message when performing slow file allocation at first time.
* src/SingleFileAllocationIterator.cc
* src/SingleFileAllocationIterator.h
2010-10-03 13:31:58 +00:00
Tatsuhiro Tsujikawa
32d4ffa8ee
2010-10-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error on OpenBSD4.7(i386). In openssl.m4, we first
search libcrypto and then libssl because libssl depends on
libcrypto on OpenBSD.
* src/Netrc.cc
* src/Netrc.h
* src/Triplet.h
* src/openssl.m4
2010-10-03 09:19:33 +00:00
Tatsuhiro Tsujikawa
584af68e19
2010-10-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Execute 5 DHT tasks concurrently in each task queue.
* src/DHTTaskExecutor.cc
* src/DHTTaskExecutor.h
* src/DHTTaskQueueImpl.cc
* src/DHTTaskQueueImpl.h
* src/Makefile.am
* test/DHTTaskExecutorTest.cc
* test/Makefile.am
* test/MockDHTTask.h
2010-10-02 14:38:37 +00:00
Tatsuhiro Tsujikawa
7375a778c4
2010-10-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that FtpFinishDownloadCommand does not handle
timeout. This means it waits for the remote server to send "226
Transfer Complete" message *without* its own timeout until the
remote server shutdowns connection(we can detect EOF in this
case).
* src/AbstractCommand.h
* src/FtpFinishDownloadCommand.cc
2010-10-02 10:12:10 +00:00
Tatsuhiro Tsujikawa
86d4d1963a
2010-10-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup util::percentEncode()
* src/util.cc
2010-10-02 08:31:28 +00:00
Tatsuhiro Tsujikawa
29d40a666f
2010-10-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made string literal static std::string in
util::detectDirTraversal().
* src/util.cc
2010-10-02 08:29:15 +00:00
Tatsuhiro Tsujikawa
d5e0046f29
2010-10-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten util::escapePath(). Now it does not replace bad chars:it
performs percent-encode against them. util::fixTaintedBasename()
now replaces "/" with "%2F". Added 0x7f as bad chars in
util::detectDirTraversal().
* src/util.cc
* test/UtilTest.cc
2010-10-02 08:20:10 +00:00
Tatsuhiro Tsujikawa
d956ea0b70
2010-10-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Non-UTF8 filenames are now percent-encoded. For example, filename
for http://example.org/%90%A2%8AE will be %90%A2%8AE because it is
Shift_JIS. The comments and name in .torrent file in XML-RPC
response are percent-encoded if they are not UTF-8.
* src/FtpNegotiationCommand.cc
* src/HttpRequestCommand.cc
* src/HttpResponseCommand.cc
* src/XmlRpcMethodImpl.cc
* src/bittorrent_helper.cc
* src/util.cc
* src/util.h
* test/BittorrentHelperTest.cc
* test/UtilTest.cc
2010-10-02 07:54:43 +00:00
Tatsuhiro Tsujikawa
6c348f0493
2010-09-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed TripletGet as TupleGet. Renamed TripletNthType as
TupleNthType. Renamed Triplet2Pair as Tuple2Pair.
* src/RequestGroupMan.cc
* src/Triplet.h
* test/TripletTest.cc
2010-09-26 07:23:00 +00:00
Tatsuhiro Tsujikawa
6a07182b0d
2010-09-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use class instead of typename for Triplet template parameter.
* src/Triplet.h
2010-09-26 06:56:26 +00:00
Tatsuhiro Tsujikawa
41a096035c
2010-09-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten TripletGet.
* src/Triplet.h
2010-09-26 06:54:25 +00:00
Tatsuhiro Tsujikawa
e07f7207fa
2010-09-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten TripletNthType.
* src/Triplet.h
* test/TripletTest.cc
2010-09-26 06:46:12 +00:00
Tatsuhiro Tsujikawa
aabd7b75f9
2010-09-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Sort usedHosts by least used and faster download speed.
* src/Makefile.am
* src/RequestGroupMan.cc
* src/Triplet.h
* test/Makefile.am
* test/TripletTest.cc
2010-09-26 05:47:12 +00:00
Tatsuhiro Tsujikawa
ac7d8dc483
2010-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made small optimization.
* src/DownloadCommand.cc
2010-09-23 11:49:37 +00:00
Tatsuhiro Tsujikawa
aea9199b40
2010-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reset download start time of PeerStat because it is started before
file allocation begins. Without reset, we have incorrect download
time and aria2 wrongly determines that download speed is too low
if --lowest-speed-limit is used.
* src/StreamFileAllocationEntry.cc
2010-09-23 10:10:16 +00:00
Tatsuhiro Tsujikawa
c56a9bc669
2010-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added keys parameter to aria2.tellStatus, aria2.tellActive,
aria2.tellWaiting and aria2.tellStopped XML-RPC method. 'keys' is
array of string. If it is specified, the response contains only
keys in 'keys' array. If 'keys' is empty or not specified, the
response contains all keys. This is useful when you just want
specific keys and avoid unnecessary transfers. For example,
*aria2.tellStatus*("1", ["gid", "status"]) returns 'gid' and
'status' key. Made get*Param() functions XmlRpcRequest's
methods and changed portions of the code that were affected by
this change.
* doc/aria2c.1.txt
* src/Makefile.am
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* src/XmlRpcRequest.cc
* src/XmlRpcRequest.h
* test/XmlRpcMethodTest.cc
2010-09-19 09:49:11 +00:00
Tatsuhiro Tsujikawa
50a89e2592
2010-09-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print a message in console when download is not complete.
* src/RequestGroupMan.cc
2010-09-15 12:37:02 +00:00
Tatsuhiro Tsujikawa
1d2080361d
2010-09-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't set error in ServerStat just because resource is not
there. We can still use the server for other resources.
* src/AbstractCommand.cc
2010-09-15 12:22:31 +00:00
Tatsuhiro Tsujikawa
2c3411f709
2010-09-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Disabled --dry-run in multi-file download for now.
* src/RequestGroup.cc
2010-09-15 12:15:54 +00:00
Tatsuhiro Tsujikawa
a27968beda
2010-09-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that a file gets overwritten if -V is given and no
hash is provided. Fixed the bug that --dry-run leads download
error. Added RequestGroup::createCheckIntegrityEntry() which
correctly creates CheckIntegrityEntry objects and open files based
on -V option and the existence of control file.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/ChecksumCheckIntegrityEntry.cc
* src/DownloadContext.cc
* src/DownloadContext.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/PieceHashCheckIntegrityEntry.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupEntry.cc
* src/RequestGroupEntry.h
2010-09-15 11:46:25 +00:00
Tatsuhiro Tsujikawa
1906832f43
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without zlib
* src/HttpResponseCommand.cc
2010-09-13 13:31:09 +00:00
Tatsuhiro Tsujikawa
6b6e6bc495
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed ChunkedDecoder. Moved GZipDecodingStreamFilter to under
'if HAVE_LIBZ'.
* src/ChunkedDecoder.cc
* src/ChunkedDecoder.h
* src/Makefile.am
* test/ChunkedDecoderTest.cc
* test/Makefile.am
2010-09-13 12:14:07 +00:00
Tatsuhiro Tsujikawa
7f9e70e5c8
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/RequestGroup.cc
2010-09-13 11:53:38 +00:00
Tatsuhiro Tsujikawa
97953dd1ae
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that error occurs when downloading zero-length file.
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
2010-09-13 11:47:04 +00:00
Tatsuhiro Tsujikawa
5bf8a53b3f
2010-09-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without OpenSSL/GnuTLS.
* src/DownloadCommand.cc
2010-09-11 15:57:41 +00:00
Tatsuhiro Tsujikawa
70ebb788b2
2010-09-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without BitTorrent support and OpenSSL/GnuTLS.
* src/DownloadCommand.cc
* src/DownloadCommand.h
* src/RequestGroup.cc
2010-09-11 15:54:53 +00:00
Tatsuhiro Tsujikawa
9eaf3ccb0f
2010-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced V_TRUE with A2_V_TRUE. Replaced V_FALSE with A2_V_FALSE.
* src/AbstractCommand.cc
* src/HttpResponseCommand.cc
* src/Option.cc
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/TrackerWatcherCommand.cc
* src/download_helper.cc
* src/main.cc
* src/prefs.cc
* src/prefs.h
* test/AuthConfigFactoryTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/DownloadHelperTest.cc
* test/HttpRequestTest.cc
* test/OptionHandlerTest.cc
* test/UTMetadataPostDownloadHandlerTest.cc
* test/XmlRpcMethodTest.cc
2010-09-11 12:48:03 +00:00
Tatsuhiro Tsujikawa
f82ffef460
2010-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added short option -k for --min-split-size option and -x for
--max-connection-per-server option. Raised maximum value of
--max-connection-per-server up to 16.
* src/OptionHandlerFactory.cc
* src/usage_text.h
2010-09-11 12:15:41 +00:00
Tatsuhiro Tsujikawa
80edde0205
2010-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use uri::parse instead of Request::setUri() where just URI parser
is needed.
* src/AbstractCommand.cc
* src/AdaptiveURISelector.cc
* src/DefaultBtAnnounce.cc
* src/FeedbackURISelector.cc
* src/FileEntry.cc
* src/HttpResponseCommand.cc
* src/ProtocolDetector.cc
* src/Request.cc
* src/RequestGroupMan.cc
2010-09-11 12:09:19 +00:00
Tatsuhiro Tsujikawa
ec3bd81486
2010-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved URI parser code to uri.h, uri.cc to provide fast URI parser
without Request object initialization.
* src/Makefile.am
* src/Request.cc
* src/uri.cc
* src/uri.h
* test/Makefile.am
* test/RequestTest.cc
* test/UriTest.cc
2010-09-11 09:11:57 +00:00
Tatsuhiro Tsujikawa
cb796432ec
2010-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Store last error of removed download result so that it can be used
as exit status.
* src/RequestGroupMan.cc
2010-09-10 15:03:40 +00:00
Tatsuhiro Tsujikawa
f26685ded1
2010-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --max-download-result=NUM option. This option sets maximum
number of download result kept in memory. The download results are
completed/error/ removed downloads. The download results are
stored in FIFO queue and it can store at most NUM download
results. When queue is full and new download result is created,
oldest download result is removed from the front of the queue and
new one is pushed to the back. Setting big number in this option
may result high memory consumption after thousands of
downloads. Specifying 0 means no download result is kept. Default
value is 1000.
* src/OptionHandlerFactory.cc
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2010-09-10 14:13:50 +00:00
Tatsuhiro Tsujikawa
32e3ebf112
2010-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Check hash(hash for entire file, not piece hash) if
--check-integrity option is given and file is
downloaded(determined by file length). If it fails, re-download
file.
* src/AbstractCommand.cc
* src/ChecksumCheckIntegrityEntry.cc
* src/ChecksumCheckIntegrityEntry.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/RequestGroup.cc
2010-09-10 11:52:16 +00:00
Tatsuhiro Tsujikawa
6e7dd1650e
2010-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Make finished() return true only when offset == totalLength.
* src/AdaptiveFileAllocationIterator.cc
* src/SingleFileAllocationIterator.cc
2010-09-10 11:46:43 +00:00
Tatsuhiro Tsujikawa
d687886c24
2010-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved connectedHostname, connectedAddr and connectedPort to
Request object. Mark cached IP address bad on timeout to allow
aria2 to renew IP address cache.
* src/AbstractCommand.cc
* src/AbstractProxyRequestCommand.cc
* src/AbstractProxyRequestCommand.h
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* src/HttpInitiateConnectionCommand.cc
* src/HttpRequestCommand.cc
* src/HttpRequestCommand.h
* src/InitiateConnectionCommand.cc
* src/InitiateConnectionCommand.h
* src/Request.cc
* src/Request.h
2010-09-09 12:00:42 +00:00
Tatsuhiro Tsujikawa
420500f6bf
2010-09-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call RequestGroupMan::fillRequestGroupFromReserver() repeatedly
while RequestGroupMan::requestQueueCheck() is true.
* src/FillRequestGroupCommand.cc
2010-09-08 14:42:03 +00:00
Tatsuhiro Tsujikawa
c51815dd52
2010-09-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use const ref
* src/MultiUrlRequestInfo.cc
2010-09-08 14:39:34 +00:00
Tatsuhiro Tsujikawa
32e1aa1b59
2010-09-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that aria2 reports error and exits with non-zero
status when file is already downloaded.
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/RequestGroup.cc
2010-09-08 14:38:32 +00:00
Tatsuhiro Tsujikawa
bf9fd473bb
2010-09-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Allow '@' in username and password embedded in URI. It should be
percent-encoded but many people use their mail address as an
username and forget about PE.
* src/Request.cc
* test/RequestTest.cc
2010-09-08 14:35:30 +00:00
Tatsuhiro Tsujikawa
f5b3a820ef
2010-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Parse original URI when removing same host.
* src/HttpResponseCommand.cc
2010-09-06 14:52:19 +00:00
Tatsuhiro Tsujikawa
efbfe4c006
2010-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Data from remote server in HTTP/FTP download are now written to
the disk(or memory) through StreamFilter. Decoding chunked and
gziped streams are done cascading StreamFilter.
Removed inefficient 1byte read code.
* src/ChunkedDecodingStreamFilter.cc
* src/ChunkedDecodingStreamFilter.h
* src/DownloadCommand.cc
* src/DownloadCommand.h
* src/GZipDecodingStreamFilter.cc
* src/GZipDecodingStreamFilter.h
* src/HttpConnection.cc
* src/HttpDownloadCommand.cc
* src/HttpResponse.cc
* src/HttpResponse.h
* src/HttpResponseCommand.cc
* src/HttpResponseCommand.h
* src/HttpSkipResponseCommand.cc
* src/HttpSkipResponseCommand.h
* src/Makefile.am
* src/NullSinkStreamFilter.cc
* src/NullSinkStreamFilter.h
* src/RequestGroup.cc
* src/SinkStreamFilter.cc
* src/SinkStreamFilter.h
* src/StreamFilter.cc
* src/StreamFilter.h
* test/ChunkedDecodingStreamFilterTest.cc
* test/GZipDecodingStreamFilterTest.cc
* test/HttpResponseTest.cc
* test/Makefile.am
* test/MockSegment.h
2010-09-06 14:29:36 +00:00
Tatsuhiro Tsujikawa
94482144f2
2010-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Enclosed classes and structs declared in *.cc files unnamed
namespace. Added static keyword for function template in *.cc
files(TODO we should use unnamed namespace instead of static).
* src/AbstractCommand.cc
* src/AnnounceList.cc
* src/BtLeecherStateChoke.cc
* src/BtLeecherStateChoke.h
* src/BtSeederStateChoke.cc
* src/BtSeederStateChoke.h
* src/ConsoleStatCalc.cc
* src/ContentTypeRequestGroupCriteria.cc
* src/CookieStorage.cc
* src/DHTBucket.cc
* src/DHTPeerAnnounceEntry.cc
* src/DHTPeerAnnounceStorage.cc
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtRequestFactory.cc
* src/DefaultPeerStorage.cc
* src/DefaultPieceStorage.cc
* src/ExpatMetalinkProcessor.cc
* src/ExpatXmlRpcRequestProcessor.cc
* src/FeedbackURISelector.cc
* src/FileEntry.cc
* src/Metalink2RequestGroup.cc
* src/MetalinkEntry.cc
* src/Metalinker.cc
* src/MultiDiskAdaptor.cc
* src/Netrc.cc
* src/OptionParser.cc
* src/PieceStatMan.cc
* src/RarestPieceSelector.cc
* src/RequestGroupMan.cc
* src/SegmentMan.cc
* src/ServerStatMan.cc
* src/XML2SAXMetalinkProcessor.cc
* src/Xml2XmlRpcRequestProcessor.cc
* src/XmlRpcResponse.cc
* src/a2algo.h
* src/download_helper.cc
2010-08-31 13:33:05 +00:00
Tatsuhiro Tsujikawa
f9d68a4ecf
2010-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In .netrc file, if machine name starts ".", aria2 performs domain
match instead of exact match. This is an extension of aria2.
* src/Netrc.h
2010-08-31 11:53:48 +00:00
Tatsuhiro Tsujikawa
5cb09dabf5
2010-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug which prevents HTTP redirection from working when
downloading multiple files from same host.
* src/AbstractCommand.cc
* src/FileEntry.cc
2010-08-31 11:17:38 +00:00
Tatsuhiro Tsujikawa
98c5a86684
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added a note about the number of connections to help message.
* src/version_usage.cc
2010-08-29 13:46:21 +00:00
Tatsuhiro Tsujikawa
9d58a5cefb
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Run PeerLookupTask more frequently when the number of peer is low.
* src/DHTGetPeersCommand.cc
* src/DHTGetPeersCommand.h
2010-08-29 12:43:40 +00:00
Tatsuhiro Tsujikawa
c0b0e4f761
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Drop connection when bad ut_metadata is received..
* src/UTMetadataDataExtensionMessage.cc
2010-08-29 12:40:56 +00:00
Tatsuhiro Tsujikawa
2b93562528
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Drop connection when BtRuntime::isHalt() is true.
* src/PeerReceiveHandshakeCommand.cc
2010-08-29 12:39:30 +00:00
Tatsuhiro Tsujikawa
0968d4fedd
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed getMissingFastPiece(piece) and getMissingFastPiece(piece,
excludedIndexes) from PieceStorage. Done some code cleanup.
* src/DefaultPieceStorage.h
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.cc
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
2010-08-29 09:24:17 +00:00
Tatsuhiro Tsujikawa
4b2d1deff6
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Pass excludedIndexes when getting metadata piece.
* src/UTMetadataRequestFactory.cc
* test/UTMetadataRequestFactoryTest.cc
2010-08-29 09:22:06 +00:00
Tatsuhiro Tsujikawa
e997903e5d
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added a sets of overloaded functions for
PieceStorage::getMissingPiece() and getMissingFastPiece() to get
multiple pieces more efficiently.
* src/DefaultBtInteractive.cc
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.cc
* src/UnknownLengthPieceStorage.h
* test/DefaultPieceStorageTest.cc
* test/MockPieceStorage.h
2010-08-29 08:53:19 +00:00
Tatsuhiro Tsujikawa
b49081340d
2010-08-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed signature of util::executeHook().
* src/RequestGroupMan.cc
* src/util.cc
* src/util.h
2010-08-28 08:47:21 +00:00
Tatsuhiro Tsujikawa
33da745070
2010-08-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bt-tracker and bt-exclude-tracker to -i list option.
* doc/aria2c.1.txt
* doc/xmlrpc/aria2rpc
* src/download_helper.cc
2010-08-27 11:58:10 +00:00
Tatsuhiro Tsujikawa
b9522dea25
2010-08-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't listen on IPv6 socket for BitTorrent, DHT, XML-RPC if
--disable-ipv6 is true.
* src/BtSetup.cc
* src/DownloadEngineFactory.cc
* src/RequestGroup.cc
2010-08-27 11:48:09 +00:00
Tatsuhiro Tsujikawa
5bcc0ba60a
2010-08-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused debug log.
* src/DefaultBtInteractive.cc
2010-08-27 11:46:49 +00:00
Tatsuhiro Tsujikawa
835de071f2
2010-08-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Enter end game mode as soon as all pieces are assigned to peer to
avoid substantial slow down at the very last stage of download.
* src/DefaultBtInteractive.cc
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
2010-08-26 14:49:40 +00:00
Tatsuhiro Tsujikawa
7633410ebf
2010-08-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set max outstanding request size to 100. Set stepping to 6.
* src/BtConstants.h
* src/DefaultBtInteractive.cc
2010-08-25 13:52:37 +00:00
Tatsuhiro Tsujikawa
065cde0aa5
2010-08-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Bump up DHT version to 2.
* src/DHTConstants.h
2010-08-25 12:35:18 +00:00
Tatsuhiro Tsujikawa
bfed6e5e31
2010-08-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added error message when given address and resolved address do not
match in SocketCore::bind().
* src/SocketCore.cc
2010-08-25 12:32:29 +00:00
Tatsuhiro Tsujikawa
26bf5ab5e2
2010-08-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-tracker and --bt-exclude-tracker option. In
--bt-tracker option, you can specify comma separated list of
additional BitTorrent tracker's announce URI. These URIs are not
affected by --bt-exclude-tracker option because they are added
after URIs in --bt-exclude-tracker option are removed. In
--bt-exclude-tracker option, you can specify comma separated list
of BitTorrent tracker's announce URI to remove. You can use
special value '*' which matches all URIs, thus removes all
announce URIs. When specifying '*' in shell command-line, don't
forget to escape or quote it.
* src/BtDependency.cc
* src/OptionHandlerFactory.cc
* src/UTMetadataPostDownloadHandler.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/download_helper.cc
* src/download_helper.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/BittorrentHelperTest.cc
* test/DownloadHelperTest.cc
2010-08-24 14:21:12 +00:00
Tatsuhiro Tsujikawa
a977bffbf5
2010-08-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/DefaultPeerStorage.cc
2010-08-24 11:40:23 +00:00
Tatsuhiro Tsujikawa
f5bd49598b
2010-08-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated usage.
* src/usage_text.h
2010-08-22 11:34:53 +00:00
Tatsuhiro Tsujikawa
9b9f3a6c63
2010-08-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed uitos(). Use util::uitos() instead.
* src/SocketCore.cc
2010-08-22 11:16:08 +00:00
Tatsuhiro Tsujikawa
d7902f0ed7
2010-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't try to send empty string.
* src/SocketBuffer.cc
* src/SocketBuffer.h
2010-08-21 13:57:57 +00:00
Tatsuhiro Tsujikawa
8958b92d91
2010-08-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Listen both IPv4 and IPv6 for BitTorrent protocol.
* src/BtSetup.cc
* src/PeerListenCommand.cc
* src/PeerListenCommand.h
2010-08-14 06:52:35 +00:00
Tatsuhiro Tsujikawa
3d9bae9170
2010-08-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added debug log
* src/DHTPeerLookupTask.cc
2010-08-14 06:50:08 +00:00
Tatsuhiro Tsujikawa
3032d6ed40
2010-08-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Initialized cur_ with values_.end()
* src/Sequence.h
2010-08-14 03:15:13 +00:00
Tatsuhiro Tsujikawa
ef393dba74
2010-08-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Listen both IPv4 and IPv6 for xml-rpc request.
* src/DownloadEngineFactory.cc
* src/HttpListenCommand.cc
* src/HttpListenCommand.h
2010-08-07 15:04:21 +00:00
Tatsuhiro Tsujikawa
15b29bed15
2010-08-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated malformed message handling.
* src/DHTMessageTracker.cc
* src/DHTMessageTracker.h
2010-08-07 14:46:22 +00:00
Tatsuhiro Tsujikawa
d8e83b3f72
2010-08-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Evaluate callback is non-null.
* src/DHTMessageTracker.cc
2010-08-07 14:22:33 +00:00
Tatsuhiro Tsujikawa
26d6692376
2010-08-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added IPv6 DHT. Added --dht-entry-porint6, --dht-file-path6,
--dht-listen-addr6 and --enable-dht6 option. IPv6 DHT is disabled
by default. To use IPv6 DHT, you need to use --enable-dht6 and
specify a global unicast address to --dht-listen-addr6. IPv6 DHT
is highly experimental.
* src/BtSetup.cc
* src/DHTAutoSaveCommand.cc
* src/DHTAutoSaveCommand.h
* src/DHTConnectionImpl.cc
* src/DHTConnectionImpl.h
* src/DHTEntryPointNameResolveCommand.cc
* src/DHTFindNodeReplyMessage.cc
* src/DHTFindNodeReplyMessage.h
* src/DHTGetPeersMessage.cc
* src/DHTGetPeersReplyMessage.cc
* src/DHTGetPeersReplyMessage.h
* src/DHTMessageFactory.h
* src/DHTMessageFactoryImpl.cc
* src/DHTMessageFactoryImpl.h
* src/DHTMessageTracker.cc
* src/DHTRegistry.cc
* src/DHTRegistry.h
* src/DHTRoutingTableDeserializer.cc
* src/DHTRoutingTableDeserializer.h
* src/DHTRoutingTableSerializer.cc
* src/DHTRoutingTableSerializer.h
* src/DHTSetup.cc
* src/DHTSetup.h
* src/FtpConnection.cc
* src/LpdMessageReceiver.cc
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/PeerInteractionCommand.cc
* src/RequestGroup.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DHTConnectionImplTest.cc
* test/DHTFindNodeReplyMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/DHTMessageFactoryImplTest.cc
* test/DHTRoutingTableDeserializerTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/LpdMessageDispatcherTest.cc
* test/MockDHTMessageFactory.h
2010-08-07 14:15:21 +00:00
Tatsuhiro Tsujikawa
be7012272d
2010-08-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed AI_V4MAPPED from DEFAULT_AI_FLAGS
* src/a2netcompat.h
2010-08-07 14:10:17 +00:00
Tatsuhiro Tsujikawa
c685ea9de9
2010-08-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added support for peers6 key in tracker response. Added added6,
added6.f and dropped6 in ut_pex.
* src/BtAnnounce.cc
* src/BtAnnounce.h
* src/DefaultBtAnnounce.cc
* src/UTPexExtensionMessage.cc
* src/UTPexExtensionMessage.h
* test/DefaultBtAnnounceTest.cc
* test/UTPexExtensionMessageTest.cc
2010-08-05 11:54:44 +00:00
Tatsuhiro Tsujikawa
cba1283aae
2010-08-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added AI_V4MAPPED to DEFAULT_AI_FLAGS
* src/a2netcompat.h
2010-08-05 11:50:46 +00:00
Tatsuhiro Tsujikawa
785a27f6e8
2010-08-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Add only gracefully disconnected peer to ut_pex dropped list. Add
incoming dropped list to PeerStorage.
* src/DefaultBtInteractive.cc
* src/DefaultPeerStorage.cc
* src/InitiatorMSEHandshakeCommand.cc
* src/Peer.cc
* src/Peer.h
* src/PeerConnection.cc
* src/PeerConnection.h
* src/PeerInteractionCommand.cc
* src/PeerReceiveHandshakeCommand.cc
* src/ReceiverMSEHandshakeCommand.cc
* src/UTPexExtensionMessage.cc
* test/DefaultPeerStorageTest.cc
* test/UTPexExtensionMessageTest.cc
2010-08-04 15:00:38 +00:00
Tatsuhiro Tsujikawa
dfdf2d8e56
2010-08-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't use pre-calculate hash value when end-game mode. Throw
exception if bad piece is received.
* src/BtPieceMessage.cc
* src/DownloadCommand.cc
2010-08-04 14:15:29 +00:00
Tatsuhiro Tsujikawa
2176b68116
2010-08-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten ut_pex peer selection.
* src/DefaultBtInteractive.cc
* src/DefaultPeerStorage.cc
* src/DefaultPeerStorage.h
* src/PeerStorage.h
* src/UTPexExtensionMessage.h
* test/DefaultPeerStorageTest.cc
* test/MockPeerStorage.h
* test/UTPexExtensionMessageTest.cc
2010-08-04 12:25:46 +00:00
Tatsuhiro Tsujikawa
2bd5020f81
2010-08-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bittorrent::packcompact() which replaces
bittorrent::createcompact() and supports IPv6 addresses. Rewritten
bittorrent::unpackcompact() and bittorrent::extractPeer() to
support IPv6 addresses. Fixed added.f flags in ut_pex.
* src/BtConstants.h
* src/DHTFindNodeReplyMessage.cc
* src/DHTGetPeersReplyMessage.cc
* src/DHTMessageFactoryImpl.cc
* src/DHTRoutingTableDeserializer.cc
* src/DHTRoutingTableSerializer.cc
* src/DHTTokenTracker.cc
* src/DefaultBtAnnounce.cc
* src/UTPexExtensionMessage.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
* test/DHTFindNodeReplyMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/DHTMessageFactoryImplTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/DefaultExtensionMessageFactoryTest.cc
* test/UTPexExtensionMessageTest.cc
2010-08-03 11:44:24 +00:00
Tatsuhiro Tsujikawa
939a372727
2010-08-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --enable-async-dns6 option. This option enables IPv6 name
resolution in asynchronous DNS resolver. This option will be
ignored when --async-dns=false.
* doc/aria2c.1.txt
* src/AbstractCommand.cc
* src/AsyncNameResolver.cc
* src/AsyncNameResolver.h
* src/DHTEntryPointNameResolveCommand.cc
* src/OptionHandlerFactory.cc
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2010-08-01 05:59:35 +00:00
Tatsuhiro Tsujikawa
3a0f45ec8d
2010-07-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use hostname of original URI when counting hostname in
inFlightRequest.
* src/FileEntry.cc
2010-07-31 14:02:24 +00:00
Tatsuhiro Tsujikawa
4280650e29
2010-07-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that
AdaptiveFileAllocationIterator::getCurrentLength() does not return
updated allocated bytes.
* src/AdaptiveFileAllocationIterator.h
2010-07-31 13:58:25 +00:00
Tatsuhiro Tsujikawa
7958ce4366
2010-07-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added FTP EPSV and EPRT command support. aria2 issues these
commands when address family of local socket is AF_INET6.
* src/FtpConnection.cc
* src/FtpConnection.h
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* src/SocketCore.cc
* src/SocketCore.h
* test/FtpConnectionTest.cc
2010-07-30 14:45:35 +00:00
Tatsuhiro Tsujikawa
20b7c8cd0e
2010-07-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that if hostname is numeric,
AbstractCommand::resolveHostname() does not add its address to
given addrs. This makes pooled socket is not used for that
address.
* src/AbstractCommand.cc
2010-07-30 14:38:31 +00:00
Tatsuhiro Tsujikawa
a21e375baa
2010-07-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set milliseconds in DownloadEngine::refreshInterval_. Because
there is difference in accuracy between epoll and clock_gettime(),
we set DEFAULT_REFRESH_INTERVAL 900ms just lower than default
timeout 1 sec for epoll. Also set update interval of
ConsoleStatCalc to 900ms by the same reason.
* src/ConsoleStatCalc.cc
* src/DownloadEngine.cc
* src/DownloadEngine.h
2010-07-28 12:31:55 +00:00
Tatsuhiro Tsujikawa
27e96877b7
2010-07-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten check for fallocate using AC_COMPILE_IFELSE.
* configure.ac
* m4/fallocate.m4
2010-07-27 14:37:25 +00:00
Tatsuhiro Tsujikawa
da668763a6
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added hidden select-least-used-host option.
* src/CreateRequestCommand.cc
* src/OptionHandlerFactory.cc
* src/TrackerWatcherCommand.cc
* src/prefs.cc
* src/prefs.h
2010-07-19 05:37:40 +00:00
Tatsuhiro Tsujikawa
a6a18e9ffe
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc for --split option.
* src/usage_text.h
2010-07-19 05:02:52 +00:00
Tatsuhiro Tsujikawa
f0f986077b
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc for --min-split-size option.
* doc/aria2c.1.txt
* src/usage_text.h
2010-07-19 04:50:00 +00:00
Tatsuhiro Tsujikawa
d8ce5db577
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added max-connection-per-server, min-split-size and
conditional-get option to -i list option and aria2rpc.
* doc/aria2c.1.txt
* doc/xmlrpc/aria2rpc
* src/download_helper.cc
2010-07-19 04:46:04 +00:00
Tatsuhiro Tsujikawa
78601d277e
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed double free bug
* src/Sqlite3CookieParserImpl.cc
2010-07-18 16:20:42 +00:00
Tatsuhiro Tsujikawa
07f91a28de
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error with OSX g++ 4.0.1
* src/FileEntry.h
* test/FileEntryTest.cc
2010-07-18 15:49:53 +00:00
Tatsuhiro Tsujikawa
5e532638c7
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reverted default value of -j from 2 to 5.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
2010-07-18 15:16:31 +00:00
Tatsuhiro Tsujikawa
21887ddb7c
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Metadata download may take very long time. If URIs are
available, give up metadata download in at most 30 seconds.
* src/Metalink2RequestGroup.cc
2010-07-18 15:14:50 +00:00
Tatsuhiro Tsujikawa
05d8f8ffdb
2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call RequestGroup::setForceHaltRequested(true) from
BtStopDownloadCommand to avoid long delay of tracker request.
* src/BtStopDownloadCommand.cc
2010-07-18 15:13:43 +00:00
Tatsuhiro Tsujikawa
cd13647abe
2010-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Pass maxSplitSize as an argument, instead of member variable of
DefaultPieceStorage. SegmentMan::getSegment(cuid_t,size_t index)
was renamed to SegmentMan::getSegmentWithIndex(...)
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/DownloadCommand.cc
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/PieceStorage.h
* src/RequestGroup.cc
* src/SegmentMan.cc
* src/SegmentMan.h
* src/UnknownLengthPieceStorage.cc
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
* test/SegmentManTest.cc
2010-07-17 14:36:18 +00:00
Tatsuhiro Tsujikawa
27d5c2badc
2010-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed prepareForRetry from CreateRequestCommand
* src/CreateRequestCommand.cc
* src/CreateRequestCommand.h
2010-07-17 14:33:50 +00:00
Tatsuhiro Tsujikawa
100cd1afd6
2010-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set PREF_REUSE_URI=V_FALSE for tracker request.
* src/TrackerWatcherCommand.cc
2010-07-17 14:31:21 +00:00
Tatsuhiro Tsujikawa
d0b727f6dc
2010-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Count the number of command used in HTTP(S)/FTP and the number of
connections in HTTP(S)/FTP independently. The former is used to
determin whether additional command is needed. The latter is used
to report user to how many connections are used in a download.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/CreateRequestCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
2010-07-17 03:23:56 +00:00
Tatsuhiro Tsujikawa
036abeee11
2010-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Check status values: 200 and 206.
* src/HttpResponse.cc
2010-07-16 16:21:45 +00:00
Tatsuhiro Tsujikawa
332a5bd4a1
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reverted previous change and fixed it in a right way.
* src/HttpDownloadCommand.cc
2010-07-16 16:19:45 +00:00
Tatsuhiro Tsujikawa
3886919101
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Make sure that all decoders are finished to pool socket
* src/HttpDownloadCommand.cc
2010-07-16 15:19:46 +00:00
Tatsuhiro Tsujikawa
9d5f19d5b1
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed indent of --conditional-get option.
* src/usage_text.h
2010-07-16 15:06:57 +00:00
Tatsuhiro Tsujikawa
34036e58af
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --on-bt-download-complete=COMMAND option. For BitTorrent, a
command specified in --on-download-complete is called when
download completes and seeding is over. On the other hand, this
option set the command to be executed when download completes but
before seeding.
* doc/aria2c.1.txt
* src/DefaultPieceStorage.cc
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* src/util.cc
* src/util.h
2010-07-16 15:00:35 +00:00
Tatsuhiro Tsujikawa
b7e4018e45
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved executeHook and executeHookByOptName to util.
* src/RequestGroupMan.cc
* src/util.cc
* src/util.h
2010-07-16 14:22:57 +00:00
Tatsuhiro Tsujikawa
906215317a
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --conditional-get option. Download file only when the local
file is older than remote file. This function only works with
HTTP(S) downloads only. It does not work if file size is specified
in Metalink. It also ignores Content-Disposition header. If a
control file exists, this option will be ignored. This function
uses If-Modified-Since header to get only newer file
conditionally. When getting modification time of local file, it
uses user supplied filename(see --out option) or filename part in
URI if --out is not specified.
* doc/aria2c.1.txt
* src/HttpHeader.cc
* src/HttpHeader.h
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/HttpResponse.cc
* src/HttpResponseCommand.cc
* src/OptionHandlerFactory.cc
* src/TimeA2.cc
* src/TimeA2.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/HttpResponseTest.cc
* test/TimeTest.cc
2010-07-16 14:13:04 +00:00
Tatsuhiro Tsujikawa
55d98cff0b
2010-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
FeedbackURISelector now tries to select URI whose host is least
used in aria2 globally. Reverted the previous change.
* src/AdaptiveURISelector.cc
* src/AdaptiveURISelector.h
* src/CreateRequestCommand.cc
* src/FeedbackURISelector.cc
* src/FeedbackURISelector.h
* src/FileEntry.cc
* src/FileEntry.h
* src/InOrderURISelector.cc
* src/InOrderURISelector.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/URISelector.h
* src/a2algo.h
* test/FeedbackURISelectorTest.cc
* test/InOrderURISelectorTest.cc
2010-07-15 13:49:02 +00:00
Tatsuhiro Tsujikawa
1984c2a542
2010-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Prefer untested server in FeedbackURISelector
* src/FeedbackURISelector.cc
2010-07-15 11:48:32 +00:00
Tatsuhiro Tsujikawa
1ddaaf7614
2010-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --min-split-size=SIZE option. aria2 does not split less
than 2*SIZE byte range. For example, let's consider downloading
20MiB file. If SIZE is 10M, aria2 can split file into 2 range
[0-10MiB) and [10MiB-20MiB) and download it using 2 sources(if
--split >= 2, of course). If SIZE is 15M, since 2*15M > 20MiB,
aria2 does not split file and download it using 1 source.
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/BitfieldManTest.cc
* test/SegmentManTest.cc
2010-07-15 11:39:21 +00:00
Tatsuhiro Tsujikawa
55748de726
2010-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
FeedbackURISelector now tries to chooses URI which is not used in
aria2 globally. If it is possible, it may return used URI.
* src/AdaptiveURISelector.cc
* src/AdaptiveURISelector.h
* src/CreateRequestCommand.cc
* src/FeedbackURISelector.cc
* src/FeedbackURISelector.h
* src/FileEntry.cc
* src/FileEntry.h
* src/InOrderURISelector.cc
* src/InOrderURISelector.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/URISelector.h
* test/FeedbackURISelectorTest.cc
* test/InOrderURISelectorTest.cc
2010-07-14 14:10:33 +00:00
Tatsuhiro Tsujikawa
c99960aa33
2010-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --max-connection-per-server=NUM option. The default value of
NUM is 1. This option limits the number of connections allowed to
one server for each download. This means when NUM is 2 and 1 URI
is provided, even if you specified -s 5, aria2 establishes 2
connections. Default value of -j option is changed from 5 to 2.
* src/BtDependency.cc
* src/CreateRequestCommand.cc
* src/FileEntry.cc
* src/FileEntry.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/Metalink2RequestGroup.cc
* src/OptionHandlerFactory.cc
* src/TrackerWatcherCommand.cc
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DownloadHelperTest.cc
* test/FileEntryTest.cc
2010-07-14 11:39:05 +00:00
Tatsuhiro Tsujikawa
8274432f14
2010-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set end byte in Range header if start byte > 0 to get more chance
to pool socket.
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/DownloadCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.h
* test/DefaultPieceStorageTest.cc
* test/HttpRequestTest.cc
* test/MockPieceStorage.h
2010-07-12 11:55:23 +00:00
Tatsuhiro Tsujikawa
bd73c20c4d
2010-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved segment empty check before socket check.
* src/AbstractCommand.cc
2010-07-11 14:28:18 +00:00
Tatsuhiro Tsujikawa
f3b097b5af
2010-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that segments are not filled to
Request::getMaxPipelinedRequest().
Make sure that trailing data of transfer encoding is read propery,
after file data is received.
* src/AbstractCommand.cc
* src/DownloadCommand.cc
* src/DownloadCommand.h
* src/FtpDownloadCommand.cc
* src/FtpDownloadCommand.h
* src/HttpDownloadCommand.cc
* src/HttpDownloadCommand.h
2010-07-11 14:21:17 +00:00
Tatsuhiro Tsujikawa
f98a180323
2010-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
After change request to faster one, wait at least 10 seconds.
* src/FileEntry.cc
* src/FileEntry.h
2010-07-11 14:17:05 +00:00
Tatsuhiro Tsujikawa
20cea7f693
2010-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed ChunkedDecoder. It does not read trailer and final CRLF.
* src/ChunkedDecoder.cc
* src/ChunkedDecoder.h
* test/ChunkedDecoderTest.cc
2010-07-11 14:15:36 +00:00
Tatsuhiro Tsujikawa
eecb81dc60
2010-07-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unusable typedefs
* src/FileAllocationIterator.h
* src/MultiDiskAdaptor.cc
* src/MultiFileAllocationIterator.h
* src/SingleFileAllocationIterator.h
2010-07-10 08:13:01 +00:00
Tatsuhiro Tsujikawa
8d2ca8e03c
2010-07-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that DownloadContext::resetDownloadStartTime() never
be called in downloads whose total length is unknown. This causes
avg speed in Download Results is always 0 for these downloads.
* src/RequestGroup.cc
* src/BtFileAllocationEntry.cc
* src/StreamFileAllocationEntry.cc
2010-07-10 07:34:20 +00:00
Tatsuhiro Tsujikawa
53c4de7ffd
2010-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that AdaptiveFileAllocationIterator::finished()
returns false even if offset_ >= totalLength_. This causes
ftruncate error for seeding torrents.
* src/AdaptiveFileAllocationIterator.cc
2010-07-09 13:45:43 +00:00
Tatsuhiro Tsujikawa
f285f66ac8
2010-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Send each CWD component of FTP URI in separate CWD command as
described in RFC1738.
* src/FtpConnection.cc
* src/FtpConnection.h
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* test/FtpConnectionTest.cc
2010-07-09 11:48:59 +00:00
Tatsuhiro Tsujikawa
52a6ea008e
2010-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that aria2 cannot handle %2F in FTP URI properly.
If directory component starts with %2F which percent-encode of
'/', client should issue CWD to absolute path, but aria2 does not
do that. It just issues relative path and download fails.
* src/FtpConnection.cc
* test/FtpConnectionTest.cc
2010-07-08 16:40:21 +00:00
Tatsuhiro Tsujikawa
880af94348
2010-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Increased DOMAIN_EVICTION_TRIGGER to 2000
* src/CookieStorage.cc
* test/CookieStorageTest.cc
2010-07-08 15:20:21 +00:00
Tatsuhiro Tsujikawa
95af338895
2010-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added Chromium/Google Chrome Cookies file support. Thanks to
gotrunks for original patch.
* src/CookieStorage.cc
* src/Makefile.am
* src/Sqlite3CookieParser.cc
* src/Sqlite3CookieParser.h
* src/Sqlite3CookieParserImpl.cc
* src/Sqlite3CookieParserImpl.h
* src/Sqlite3MozCookieParser.cc: Removed
* src/Sqlite3MozCookieParser.h: Removed
* test/Makefile.am
* test/Sqlite3CookieParserTest.cc
* test/Sqlite3MozCookieParserTest.cc: Removed
* test/chromium_cookies.sqlite
2010-07-08 15:18:15 +00:00
Tatsuhiro Tsujikawa
20d009aa0a
Re-generated
2010-07-05 11:15:11 +00:00
Tatsuhiro Tsujikawa
a5cc350dcf
2010-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
When allocating disk space, for Linux system with fallocate()
system call, first check file system supports fallocate. This
just run fallocate with small chunk and see it succeeds or fails.
If it succeeds, use fallocate() to allocate entire file otherwise
fall back to traditional slower method: writing zeros. This
behavior is enabled in --file-allocation=prealloc, so this is
enabled by default for most modern Linux.
* configure.ac
* src/AbstractDiskWriter.cc
* src/AbstractDiskWriter.h
* src/AbstractSingleDiskAdaptor.cc
* src/AdaptiveFileAllocationIterator.cc
* src/AdaptiveFileAllocationIterator.h
* src/DefaultPieceStorage.cc
* src/DiskAdaptor.cc
* src/DiskAdaptor.h
* src/FallocFileAllocationIterator.cc
* src/Makefile.am
* src/MultiFileAllocationIterator.cc
* src/OptionHandlerFactory.cc
* test/FallocFileAllocationIteratorTest.cc
* test/Makefile.am
2010-07-04 15:03:35 +00:00
Tatsuhiro Tsujikawa
f649221377
2010-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning without ssl library.
* src/DownloadEngineFactory.cc
2010-06-28 12:45:12 +00:00
Tatsuhiro Tsujikawa
985bc37c00
2010-06-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't set previousUri_ to "" on redirect.
* src/Request.cc: redirectUri()
2010-06-27 14:36:25 +00:00
Tatsuhiro Tsujikawa
d16c70803b
2010-06-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Return given hostname if hostname is numeric host.
* src/AbstractCommand.cc: resolveHostname()
2010-06-27 14:23:31 +00:00
Tatsuhiro Tsujikawa
11096df698
2010-06-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed Peer::updateSeeder() to reflect current bitfield.
* src/Peer.cc
2010-06-27 14:20:18 +00:00
Tatsuhiro Tsujikawa
2deed225e4
2010-06-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/util.cc
2010-06-26 14:03:14 +00:00
Tatsuhiro Tsujikawa
9d0eb8c08b
2010-06-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused getOverflow(). Added assertion in
PiecedSegment::updateWrittenLength() to check updated written
length does not exceed piece length.
* src/GrowSegment.h
* src/PiecedSegment.cc
* src/PiecedSegment.h
* src/Segment.h
* test/SegmentTest.cc
2010-06-26 13:01:52 +00:00
Tatsuhiro Tsujikawa
8a619ab9b9
2010-06-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Return null if written length > 0 even if SegmentEntry->cuid
equals given cuid.
* src/SegmentMan.cc
2010-06-26 12:41:07 +00:00
Tatsuhiro Tsujikawa
6a26097987
2010-06-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning without bittorrent support
* src/RequestGroup.cc
2010-06-26 12:39:24 +00:00
Tatsuhiro Tsujikawa
3a3511ee28
2010-06-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Run whole checksum check when download file name and size are
determined and download is already completed. Related to r2221.
Guarded ENABLE_MESSAGE_DIGEST where necessary.
* src/AbstractCommand.cc
* src/RequestGroup.cc
* src/message.h
2010-06-23 14:45:25 +00:00
Tatsuhiro Tsujikawa
66660d10c2
2010-06-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made log and log-level option modifiable using
aria2.changeGlobalOption. This means you can dynamically start or
stop logging and change log file and log level.
* doc/aria2c.1.txt
* src/LogFactory.cc
* src/LogFactory.h
* src/LogFormatter.h
* src/Logger.cc
* src/Logger.h
* src/Makefile.am
* src/Makefile.in
* src/SimpleLogFormatter.cc
* src/SimpleLogFormatter.h
* src/SimpleLogger.cc: Removed
* src/SimpleLogger.h: Removed
* src/XmlRpcMethod.cc
* src/XmlRpcMethodImpl.cc
* src/main.cc
2010-06-23 14:15:35 +00:00
Tatsuhiro Tsujikawa
4736e77acf
2010-06-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Request ut_metadata in end-game mode(in other words, more
aggresively)
* src/HandshakeExtensionMessage.cc
* src/Peer.cc
* src/Peer.h
* src/PeerSessionResource.cc
* src/PeerSessionResource.h
* src/UTMetadataRequestFactory.cc
* test/UTMetadataRequestFactoryTest.cc
2010-06-23 11:55:23 +00:00
Tatsuhiro Tsujikawa
3e98f05533
2010-06-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing parameter to log message.
* src/UTMetadataRequestFactory.cc
2010-06-22 13:54:52 +00:00
Tatsuhiro Tsujikawa
d787906b34
2010-06-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed that bug that when aria2 is stopped before whole hash
check(not piece hash check) is done, aria2 reports its file is
downloaded successfully. It should report the download is
in-progress and next invocation of aria2 should check hash.
* src/ChecksumCheckIntegrityEntry.cc
* src/DownloadCommand.cc
* src/DownloadContext.cc
* src/DownloadContext.h
* src/RequestGroup.cc
* src/RequestGroupMan.cc
2010-06-22 11:57:31 +00:00
Tatsuhiro Tsujikawa
5c1611c702
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/PiecedSegment.cc
2010-06-21 14:04:30 +00:00
Tatsuhiro Tsujikawa
427577eed4
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that corrups file if segment returned from
SegmetnMan::getCleanSegmentIfOwnerIsIdle() has writtenLength > 0.
* src/DownloadCommand.cc
* src/SegmentMan.cc
* src/SegmentMan.h
* test/SegmentManTest.cc
2010-06-21 14:02:51 +00:00
Tatsuhiro Tsujikawa
ca4940622c
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed naming standards for class member variable: now it looks
like var_ instead of _var.
2010-06-21 13:51:56 +00:00
Tatsuhiro Tsujikawa
ae957baa98
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
When wrong type DHT reply message is received for a transaction
ID, assume the message timed out.
* src/DHTNodeLookupTaskCallback.cc
* src/DHTNodeLookupTaskCallback.h
* src/DHTPeerLookupTaskCallback.cc
* src/DHTPeerLookupTaskCallback.h
* src/DHTPingReplyMessageCallback.h
2010-06-20 12:28:11 +00:00
Tatsuhiro Tsujikawa
9e9fb885d9
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed PeerListProcessor. Its functionality is now moved to
bittorrent_helper.h
* src/DefaultBtAnnounce.cc
* src/Makefile.am
* src/PeerListProcessor.h: Removed
* src/UTPexExtensionMessage.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
* test/Makefile.am
* test/PeerListProcessorTest.cc: Removed
2010-06-20 12:12:18 +00:00
Tatsuhiro Tsujikawa
ad37c0672c
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Included util.h
* src/LpdReceiveMessageCommand.cc
2010-06-20 12:09:24 +00:00
Tatsuhiro Tsujikawa
cb134cc426
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved non-trivial functions to *.cc file
* src/Logger.cc
* src/Logger.h
2010-06-20 12:00:51 +00:00
Tatsuhiro Tsujikawa
c7795c63ce
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added separete *.cc files for exception classes.
* src/DlAbortEx.cc
* src/DlAbortEx.h
* src/DlRetryEx.cc
* src/DlRetryEx.h
* src/DownloadFailureException.cc
* src/DownloadFailureException.h
* src/FatalException.cc
* src/FatalException.h
* src/Makefile.am
* src/RecoverableException.cc
* src/RecoverableException.h
2010-06-20 11:56:33 +00:00
Tatsuhiro Tsujikawa
237f15b491
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved non-trivial functions to *.cc file
* src/DownloadContext.cc
* src/DownloadContext.h
* src/FileEntry.cc
* src/FileEntry.h
2010-06-20 11:42:33 +00:00
Tatsuhiro Tsujikawa
b352b97bc6
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused contants
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
2010-06-20 11:40:09 +00:00
Tatsuhiro Tsujikawa
0f0fc5f198
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use auto_delete_container to delete created Command when exception
is thrown rather than deleting them in catch block.
* src/AbstractCommand.cc
* src/CheckIntegrityCommand.cc
* src/DHTSetup.cc
* src/FileAllocationCommand.cc
* src/TrackerWatcherCommand.cc
* src/a2functional.h
2010-06-20 11:37:47 +00:00
Tatsuhiro Tsujikawa
cb4e25e4b4
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed BDE and bencode
2010-06-19 17:54:54 +00:00
Tatsuhiro Tsujikawa
8ba97188ce
2010-06-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Introduced ValueBase class, which is a replacement of BDE. In
this change ValueBase is used instead of BDE except DHT messages,
UTMetadata messages and XML-RPC. They'll be replaced in the later
commits. DownloadContext::_attrs is now ContextAttribute rather
than BDE.
* src/ActivePeerConnectionCommand.cc
* src/AnnounceList.cc
* src/AnnounceList.h
* src/BtDependency.cc
* src/BtRegistry.cc
* src/BtSetup.cc
* src/ConsoleStatCalc.cc
* src/ContextAttribute.h
* src/DefaultBtAnnounce.cc
* src/DefaultBtInteractive.cc
* src/DownloadContext.cc
* src/DownloadContext.h
* src/HandshakeExtensionMessage.cc
* src/InitiateConnectionCommand.cc
* src/LpdReceiveMessageCommand.cc
* src/MSEHandshake.cc
* src/Makefile.am
* src/Makefile.in
* src/PeerInteractionCommand.cc
* src/PeerListProcessor.h
* src/ProtocolDetector.cc
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/TorrentAttribute.h
* src/TrackerWatcherCommand.cc
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataPostDownloadHandler.cc
* src/UTMetadataRequestExtensionMessage.cc
* src/ValueBase.cc
* src/ValueBase.h
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* src/bencode2.cc
* src/bencode2.h
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/download_helper.cc
* src/magnet.cc
* src/magnet.h
* test/AnnounceListTest.cc
* test/Bencode2Test.cc
* test/BencodeTest.cc
* test/BittorrentHelperTest.cc
* test/BtDependencyTest.cc
* test/BtRegistryTest.cc
* test/DefaultBtAnnounceTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/HandshakeExtensionMessageTest.cc
* test/MSEHandshakeTest.cc
* test/MagnetTest.cc
* test/Makefile.am
* test/Makefile.in
* test/RequestGroupManTest.cc
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataPostDownloadHandlerTest.cc
* test/UTMetadataRequestExtensionMessageTest.cc
* test/ValueBaseTest.cc
* test/XmlRpcMethodTest.cc
2010-06-18 14:47:09 +00:00
Tatsuhiro Tsujikawa
98dc02192d
2010-06-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed assertion error if updateTransferStatFor is called with peer
X before calculateStat() after peer X is added.
* src/DefaultPeerStorage.cc
2010-06-15 11:42:46 +00:00
Tatsuhiro Tsujikawa
3dfbec0f9f
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten DHTMessageCallback using Visitor pattern. Eliminated
dynamic_pointer_cast.
* src/DHTMessageCallbackImpl.cc: Removed
* src/DHTMessageReceiver.cc
* src/DHTAbstractNodeLookupTask.h
* src/DHTAnnouncePeerReplyMessage.h
* src/DHTReplaceNodeTask.h
* src/DHTFindNodeReplyMessage.cc
* src/DHTGetPeersReplyMessage.h
* src/DHTPeerLookupTask.h
* src/DHTMessageCallbackImpl.h: Removed
* src/DHTMessageFactory.h
* src/DHTNodeLookupTaskCallback.h
* src/DHTMessageTracker.h
* src/DHTMessageCallbackListener.h: Removed
* src/DHTGetPeersReplyMessage.cc
* src/DHTMessageCallback.h
* src/DHTAnnouncePeerReplyMessage.cc
* src/DHTNodeLookupTask.h
* src/DHTReplaceNodeTask.cc
* src/DHTPeerLookupTaskCallback.cc
* src/DHTMessageTracker.cc
* src/DHTPingReplyMessage.cc
* src/DHTPingTask.cc
* src/DHTMessageFactoryImpl.h
* src/Makefile.am
* src/DHTNodeLookupTask.cc
* src/DHTPeerLookupTaskCallback.h
* src/DHTPeerLookupTask.cc
* src/DHTMessageReceiver.h
* src/DHTMessageFactoryImpl.cc
* src/DHTResponseMessage.h
* src/DHTFindNodeReplyMessage.h
* src/DHTPingReplyMessageCallback.h
* src/Makefile.in
* src/DHTBucketRefreshTask.cc
* src/DHTNodeLookupTaskCallback.cc
* src/DHTPingTask.h
* src/DHTPingReplyMessage.h
* src/DHTAbstractNodeLookupTask.cc: Removed
* test/DHTMessageTrackerTest.cc
* test/DHTPingMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/MockDHTMessage.h
* test/MockDHTMessageFactory.h
* test/DHTFindNodeMessageTest.cc
* test/MockDHTMessageCallback.h
* test/DHTAnnouncePeerMessageTest.cc
2010-06-13 11:25:21 +00:00
Tatsuhiro Tsujikawa
532fc3724d
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced dynamic_pointer_cast with static_pointer_cast
* src/DHTSetup.cc
* src/DefaultBtMessageReceiver.cc
* src/SharedHandle.h
2010-06-13 11:19:21 +00:00
Tatsuhiro Tsujikawa
6ae473e77f
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reverted changes which deleted peerConnection from
DefaultBtInteractive.
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
* src/PeerInteractionCommand.cc
2010-06-13 11:00:43 +00:00
Tatsuhiro Tsujikawa
7584ad1437
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten DHTRegistry
* src/BtSetup.cc
* src/DHTRegistry.cc
* src/DHTRegistry.h
* src/DHTSetup.cc
* src/PeerInteractionCommand.cc
* src/RequestGroup.cc
2010-06-13 02:53:11 +00:00
Tatsuhiro Tsujikawa
1dcf842ff4
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables of XmlRpcResponse
* src/XmlRpcMethodImpl.cc
* src/XmlRpcResponse.cc
* src/XmlRpcResponse.h
* test/XmlRpcMethodTest.cc
2010-06-13 02:30:32 +00:00
Tatsuhiro Tsujikawa
6fdabb6f9c
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/HttpServerBodyCommand.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* src/XmlRpcRequest.h
* test/XmlRpcMethodTest.cc
* test/XmlRpcRequestProcessorTest.cc
2010-06-13 02:26:34 +00:00
Tatsuhiro Tsujikawa
5018fdbe46
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made DownloadResult struct
* src/DownloadResult.h
* src/RequestGroup.h
* src/RequestGroupMan.h
* src/XmlRpcMethodImpl.h
2010-06-13 02:21:40 +00:00
Tatsuhiro Tsujikawa
411f818032
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made DHTMessageEntry struct
* src/DHTMessageDispatcherImpl.cc
* src/DHTMessageDispatcherImpl.h
* src/DHTMessageEntry.cc
* src/DHTMessageEntry.h
2010-06-13 02:18:17 +00:00
Tatsuhiro Tsujikawa
6127307c54
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made DHTNodeLookupEntry struct
* src/DHTAbstractNodeLookupTask.cc
* src/DHTIDCloser.h
* src/DHTNodeLookupEntry.cc
* src/DHTNodeLookupEntry.h
* src/DHTPeerLookupTask.cc
* test/DHTIDCloserTest.cc
2010-06-13 02:13:43 +00:00
Tatsuhiro Tsujikawa
55258bc019
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/ActivePeerConnectionCommand.cc
* src/BtLeecherStateChoke.cc
* src/BtPieceMessage.cc
* src/BtPortMessage.cc
* src/BtSeederStateChoke.cc
* src/DHTGetPeersReplyMessage.cc
* src/DefaultBtInteractive.cc
* src/DefaultPeerStorage.cc
* src/HandshakeExtensionMessage.cc
* src/LpdReceiveMessageCommand.cc
* src/Peer.cc
* src/Peer.h
* src/PeerAbstractCommand.cc
* src/PeerInitiateConnectionCommand.cc
* src/PeerListenCommand.cc
* src/SimpleBtMessage.cc
* src/UTPexExtensionMessage.cc
* src/XmlRpcMethodImpl.cc
* test/DHTAnnouncePeerMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/DHTMessageFactoryImplTest.cc
* test/DHTPeerAnnounceEntryTest.cc
* test/DHTPeerAnnounceStorageTest.cc
* test/DefaultPeerStorageTest.cc
* test/HandshakeExtensionMessageTest.cc
* test/LpdMessageReceiverTest.cc
* test/PeerListProcessorTest.cc
* test/PeerTest.cc
* test/UTPexExtensionMessageTest.cc
2010-06-13 01:53:49 +00:00
Tatsuhiro Tsujikawa
32031a4f01
2010-06-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made DHTNode::getIPAddress() return const reference.
* src/DHTNode.h
2010-06-13 01:51:35 +00:00
Tatsuhiro Tsujikawa
6b2eeaa9e1
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/SocketCore.cc
* src/SocketCore.h
2010-06-12 14:57:38 +00:00
Tatsuhiro Tsujikawa
8d1da8bd3e
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made public member variable in Metalinker private
* src/MetalinkParserController.cc
* src/Metalinker.cc
* src/Metalinker.h
* test/MetalinkParserControllerTest.cc
* test/MetalinkProcessorTest.cc
* test/MetalinkerTest.cc
2010-06-12 14:39:26 +00:00
Tatsuhiro Tsujikawa
95b3beb23d
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/SharedHandle.h
2010-06-12 14:29:13 +00:00
Tatsuhiro Tsujikawa
e91fbed8ca
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/messageDigest.cc
* src/messageDigest.h
2010-06-12 14:22:11 +00:00
Tatsuhiro Tsujikawa
e81c207caf
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private.
* src/XmlRpcMethod.h
* src/XmlRpcMethodImpl.cc
2010-06-12 14:14:47 +00:00
Tatsuhiro Tsujikawa
fd129ba6f4
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private.
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataExtensionMessage.h
* src/UTMetadataRejectExtensionMessage.cc
* src/UTMetadataRequestExtensionMessage.cc
2010-06-12 14:11:46 +00:00
Tatsuhiro Tsujikawa
706230c21f
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/TimeSeedCriteria.h
2010-06-12 14:03:54 +00:00
Tatsuhiro Tsujikawa
c47eaa5ce3
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/TimeA2.cc
* src/TimeA2.h
2010-06-12 14:01:46 +00:00
Tatsuhiro Tsujikawa
8b5bb34a26
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/SpeedCalc.cc
* src/SpeedCalc.h
2010-06-12 13:58:09 +00:00
Tatsuhiro Tsujikawa
8d6378b675
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables in SegmentMan
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/SegmentMan.cc
* src/SegmentMan.h
* src/XmlRpcMethodImpl.cc
* test/BtDependencyTest.cc
2010-06-12 13:49:39 +00:00
Tatsuhiro Tsujikawa
95f5c58903
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/RequestSlot.cc
* src/RequestSlot.h
2010-06-12 13:39:33 +00:00
Tatsuhiro Tsujikawa
c087255984
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/Range.cc
* src/Range.h
2010-06-12 13:32:39 +00:00
Tatsuhiro Tsujikawa
1baf8688ee
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/Piece.cc
* src/Piece.h
2010-06-12 13:29:40 +00:00
Tatsuhiro Tsujikawa
5daa77b7f9
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/PeerStat.h
2010-06-12 12:39:12 +00:00
Tatsuhiro Tsujikawa
b3b955b0c4
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/PeerConnection.cc
* src/PeerConnection.h
2010-06-12 12:29:11 +00:00
Tatsuhiro Tsujikawa
26faa70b3b
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/Option.cc
* src/Option.h
2010-06-12 10:09:43 +00:00
Tatsuhiro Tsujikawa
6f89b0287a
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/Netrc.cc
* src/Netrc.h
2010-06-12 10:07:29 +00:00
Tatsuhiro Tsujikawa
cc95c788b1
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/LogFactory.cc
* src/LogFactory.h
2010-06-12 10:01:27 +00:00
Tatsuhiro Tsujikawa
60995f1c5d
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/HttpResponse.cc
* src/HttpResponse.h
2010-06-12 09:57:16 +00:00
Tatsuhiro Tsujikawa
f9c77a25ec
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/HttpRequest.cc
* src/HttpRequest.h
2010-06-12 09:52:24 +00:00
Tatsuhiro Tsujikawa
c7c0ec87bf
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/HttpHeader.cc
* src/HttpHeader.h
2010-06-12 09:46:41 +00:00
Tatsuhiro Tsujikawa
f8590aa5b9
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables. Removed unused member variable.
* src/AbstractProxyRequestCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/HttpConnection.cc
* src/HttpConnection.h
* src/HttpInitiateConnectionCommand.cc
2010-06-12 09:44:10 +00:00
Tatsuhiro Tsujikawa
8742959320
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed HandleRegistry
* src/HandleRegistry.h
* src/Makefile.am
2010-06-12 09:35:27 +00:00
Tatsuhiro Tsujikawa
a615d761c3
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/FtpConnection.cc
* src/FtpConnection.h
2010-06-12 09:30:18 +00:00
Tatsuhiro Tsujikawa
3ff5218872
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/FileEntry.cc
* src/FileEntry.h
2010-06-12 09:23:19 +00:00
Tatsuhiro Tsujikawa
0bdd20e6fc
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/File.cc
* src/File.h
2010-06-12 09:17:48 +00:00
Tatsuhiro Tsujikawa
09e2a7d39c
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/BtPostDownloadHandler.cc
* src/DownloadHandler.h
* src/MetalinkPostDownloadHandler.cc
2010-06-12 09:12:39 +00:00
Tatsuhiro Tsujikawa
6d8d84e0f4
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/DownloadEngine.cc
* src/DownloadEngine.h
2010-06-12 09:09:10 +00:00
Tatsuhiro Tsujikawa
e1d0911020
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables.
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
2010-06-12 09:05:26 +00:00
Tatsuhiro Tsujikawa
4f7746a89c
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables. Removed unused member variable.
* src/DefaultPeerStorage.cc
* src/DefaultPeerStorage.h
* src/RequestGroup.cc
* test/DefaultPeerStorageTest.cc
2010-06-12 08:50:50 +00:00
Tatsuhiro Tsujikawa
c6def0cbd7
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables. Removed unused member variable.
* src/DefaultBtRequestFactory.cc
* src/DefaultBtRequestFactory.h
* src/PeerInteractionCommand.cc
2010-06-12 08:39:11 +00:00
Tatsuhiro Tsujikawa
d4eebc843a
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables. Removed unused member variables.
* src/DefaultBtMessageReceiver.cc
* src/DefaultBtMessageReceiver.h
* src/PeerInteractionCommand.cc
2010-06-12 08:31:36 +00:00
Tatsuhiro Tsujikawa
4e071bfb62
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/DefaultBtMessageFactory.cc
* src/DefaultBtMessageFactory.h
2010-06-12 08:23:49 +00:00
Tatsuhiro Tsujikawa
ee08678566
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtMessageDispatcher.h
2010-06-12 08:16:49 +00:00
Tatsuhiro Tsujikawa
d8d141e5f7
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables. Removed member variable peerConnection.
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
* src/PeerInteractionCommand.cc
2010-06-12 03:30:56 +00:00
Tatsuhiro Tsujikawa
465502299b
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/DefaultBtAnnounce.cc
* src/DefaultBtAnnounce.h
2010-06-12 03:13:16 +00:00
Tatsuhiro Tsujikawa
ded040666e
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/DHTAbstractNodeLookupTask.cc
* src/DHTAbstractNodeLookupTask.h
* src/DHTAbstractTask.h
* src/DHTBucketRefreshTask.cc
* src/DHTNodeLookupTask.cc
* src/DHTNodeLookupTask.h
* src/DHTPeerLookupTask.cc
* src/DHTPeerLookupTask.h
* src/DHTPingTask.cc
* src/DHTPingTask.h
* src/DHTReplaceNodeTask.cc
* src/DHTReplaceNodeTask.h
2010-06-12 02:54:39 +00:00
Tatsuhiro Tsujikawa
f7001132bc
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/DHTAbstractMessage.cc
* src/DHTAbstractMessage.h
* src/DHTAnnouncePeerMessage.cc
* src/DHTAnnouncePeerMessage.h
* src/DHTAnnouncePeerReplyMessage.cc
* src/DHTAnnouncePeerReplyMessage.h
* src/DHTFindNodeMessage.cc
* src/DHTFindNodeMessage.h
* src/DHTFindNodeReplyMessage.cc
* src/DHTFindNodeReplyMessage.h
* src/DHTGetPeersMessage.cc
* src/DHTGetPeersMessage.h
* src/DHTGetPeersReplyMessage.cc
* src/DHTGetPeersReplyMessage.h
* src/DHTMessage.h
* src/DHTPingMessage.cc
* src/DHTPingMessage.h
* src/DHTPingReplyMessage.cc
* src/DHTPingReplyMessage.h
* src/DHTQueryMessage.cc
* src/DHTQueryMessage.h
* src/DHTResponseMessage.cc
* src/DHTResponseMessage.h
* src/DHTUnknownMessage.cc
* src/DHTUnknownMessage.h
* test/MockDHTMessage.h
2010-06-12 02:27:14 +00:00
Tatsuhiro Tsujikawa
6fef76979e
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused member variable uuid and uuidGen
* src/Command.cc
* src/Command.h
2010-06-11 14:48:01 +00:00
Tatsuhiro Tsujikawa
cfad3a2f19
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/ByteArrayDiskWriter.cc
* src/ByteArrayDiskWriter.h
2010-06-11 14:43:41 +00:00
Tatsuhiro Tsujikawa
158d779141
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/BtRuntime.h
2010-06-11 14:40:33 +00:00
Tatsuhiro Tsujikawa
b33d679618
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/BtHandshakeMessage.cc
* src/BtHandshakeMessage.h
2010-06-11 14:35:16 +00:00
Tatsuhiro Tsujikawa
0901dfcfc1
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/BtBitfieldMessageValidator.h
* src/BtHandshakeMessageValidator.h
* src/BtPieceMessageValidator.h
2010-06-11 14:27:09 +00:00
Tatsuhiro Tsujikawa
9ebf141fb6
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variables
* src/BtAbortOutstandingRequestEvent.h
* src/BtCancelSendingPieceEvent.h
2010-06-11 14:19:14 +00:00
Tatsuhiro Tsujikawa
75de9168bd
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variable
* src/BitfieldMan.cc
* src/BitfieldMan.h
2010-06-11 14:15:27 +00:00
Tatsuhiro Tsujikawa
8046476dfc
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variable
* src/AsyncNameResolver.cc
* src/AsyncNameResolver.h
2010-06-11 13:35:28 +00:00
Tatsuhiro Tsujikawa
cd48873d41
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed member variable
* src/AnnounceList.cc
* src/AnnounceList.h
2010-06-11 13:30:45 +00:00
Tatsuhiro Tsujikawa
b914f6d810
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/AbstractSingleDiskAdaptor.cc
* src/AbstractSingleDiskAdaptor.h
* src/DirectDiskAdaptor.cc
* src/DirectDiskAdaptor.h
* src/DiskAdaptor.cc
* src/DiskAdaptor.h
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
* src/MultiFileAllocationIterator.cc
* src/MultiFileAllocationIterator.h
* test/BtBitfieldMessageTest.cc
* test/BtHaveAllMessageTest.cc
* test/BtHaveMessageTest.cc
2010-06-11 12:49:14 +00:00
Tatsuhiro Tsujikawa
56ea539975
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/AbstractDiskWriter.cc
* src/AbstractDiskWriter.h
2010-06-11 12:08:11 +00:00
Tatsuhiro Tsujikawa
4c719530d9
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/AbstractAuthResolver.h
* src/DefaultAuthResolver.cc
* src/DefaultAuthResolver.h
* src/NetrcAuthResolver.cc
* src/NetrcAuthResolver.h
2010-06-11 12:01:37 +00:00
Tatsuhiro Tsujikawa
812563bb6d
2010-06-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/AbstractBtMessage.cc
* src/AbstractBtMessage.h
* src/BtAllowedFastMessage.cc
* src/BtAllowedFastMessage.h
* src/BtBitfieldMessage.cc
* src/BtBitfieldMessage.h
* src/BtCancelMessage.cc
* src/BtCancelMessage.h
* src/BtChokeMessage.cc
* src/BtChokeMessage.h
* src/BtExtendedMessage.cc
* src/BtHaveAllMessage.cc
* src/BtHaveAllMessage.h
* src/BtHaveMessage.cc
* src/BtHaveMessage.h
* src/BtHaveNoneMessage.cc
* src/BtHaveNoneMessage.h
* src/BtInterestedMessage.cc
* src/BtInterestedMessage.h
* src/BtNotInterestedMessage.cc
* src/BtNotInterestedMessage.h
* src/BtPieceMessage.cc
* src/BtPieceMessage.h
* src/BtPortMessage.cc
* src/BtPortMessage.h
* src/BtRejectMessage.cc
* src/BtRejectMessage.h
* src/BtRequestMessage.cc
* src/BtRequestMessage.h
* src/BtUnchokeMessage.cc
* src/BtUnchokeMessage.h
* src/SimpleBtMessage.cc
* src/SimpleBtMessage.h
2010-06-11 11:48:22 +00:00
Tatsuhiro Tsujikawa
a68b29a31a
2010-06-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/BtCheckIntegrityEntry.cc
* src/BtFileAllocationEntry.cc
* src/CheckIntegrityEntry.cc
* src/CheckIntegrityEntry.h
* src/ChecksumCheckIntegrityEntry.cc
* src/FileAllocationEntry.cc
* src/PieceHashCheckIntegrityEntry.cc
* src/RequestGroupEntry.h
* src/StreamCheckIntegrityEntry.cc
* src/StreamFileAllocationEntry.cc
2010-06-09 15:04:01 +00:00
Tatsuhiro Tsujikawa
f114c89096
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/ActivePeerConnectionCommand.cc
* src/ActivePeerConnectionCommand.h
* src/CheckIntegrityDispatcherCommand.cc
* src/DHTEntryPointNameResolveCommand.h
* src/DHTInteractionCommand.h
* src/FileAllocationDispatcherCommand.cc
* src/LpdReceiveMessageCommand.h
* src/PeerChokeCommand.cc
* src/PeerChokeCommand.h
* src/PeerListenCommand.cc
* src/PeerListenCommand.h
* src/SeedCheckCommand.cc
* src/SeedCheckCommand.h
* src/SequentialDispatcherCommand.h
* src/SleepCommand.cc
* src/SleepCommand.h
* src/TrackerWatcherCommand.cc
* src/TrackerWatcherCommand.h
2010-06-09 14:47:13 +00:00
Tatsuhiro Tsujikawa
d4dfb6c4a8
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/CheckIntegrityCommand.cc
* src/FileAllocationCommand.cc
* src/RealtimeCommand.h
2010-06-09 14:21:10 +00:00
Tatsuhiro Tsujikawa
b357fd39fc
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/AutoSaveCommand.cc
* src/BtStopDownloadCommand.cc
* src/DHTAutoSaveCommand.cc
* src/DHTBucketRefreshCommand.cc
* src/DHTPeerAnnounceCommand.cc
* src/DHTTokenUpdateCommand.cc
* src/HaveEraseCommand.cc
* src/TimeBasedCommand.h
* src/TimedHaltCommand.cc
2010-06-09 14:15:10 +00:00
Tatsuhiro Tsujikawa
43460a347f
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/InitiatorMSEHandshakeCommand.cc
* src/PeerAbstractCommand.cc
* src/PeerAbstractCommand.h
* src/PeerInitiateConnectionCommand.cc
* src/PeerInteractionCommand.cc
* src/PeerInteractionCommand.h
* src/PeerReceiveHandshakeCommand.cc
* src/ReceiverMSEHandshakeCommand.cc
2010-06-09 14:02:09 +00:00
Tatsuhiro Tsujikawa
bc50b5eea2
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/AbstractCommand.cc
2010-06-09 14:01:18 +00:00
Tatsuhiro Tsujikawa
970e7f95a6
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variable private. Added accessor funcs.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/AbstractProxyRequestCommand.cc
* src/AbstractProxyRequestCommand.h
* src/AbstractProxyResponseCommand.cc
* src/AbstractProxyResponseCommand.h
* src/CreateRequestCommand.cc
* src/DownloadCommand.cc
* src/DownloadCommand.h
* src/FtpDownloadCommand.cc
* src/FtpDownloadCommand.h
* src/FtpFinishDownloadCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* src/FtpTunnelRequestCommand.cc
* src/FtpTunnelResponseCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpProxyRequestCommand.cc
* src/HttpProxyResponseCommand.cc
* src/HttpRequestCommand.cc
* src/HttpResponseCommand.cc
* src/HttpResponseCommand.h
* src/HttpSkipResponseCommand.cc
* src/InitiateConnectionCommand.cc
2010-06-09 12:43:44 +00:00
Tatsuhiro Tsujikawa
9afc36152a
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made protected member variables of Command private. Added accessor
funcs.
2010-06-08 15:02:20 +00:00
Tatsuhiro Tsujikawa
7cd9b21937
2010-06-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made public member variables of DownloadEngine private. Added
accessor funcs.
2010-06-08 14:11:36 +00:00
Tatsuhiro Tsujikawa
7d0ba588fc
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that reading Metalink from pipe fails on older
libxml2. It only accepts "-" as a special keyword to read stdin.
* src/XML2SAXMetalinkProcessor.cc
2010-06-03 14:10:44 +00:00
Tatsuhiro Tsujikawa
5d80399624
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added log message when cookies are loaded. Added filename to log
message when serializing session.
* src/MultiUrlRequestInfo.cc
2010-06-03 12:13:21 +00:00
Tatsuhiro Tsujikawa
bf5e76a9a2
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Treat SIGHUP and SIGTERM signal as emergency shutdown because they
are usually issued by system or other process.
* src/MultiUrlRequestInfo.cc
2010-06-03 11:52:44 +00:00
Tatsuhiro Tsujikawa
1986f45d4a
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use downloadresultcode::IN_PROGRESS for
RequestGroup::SHUTDOWN_SIGNAL.
* src/RequestGroup.cc
2010-06-03 11:51:06 +00:00
Tatsuhiro Tsujikawa
1c8b61cad4
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call requestForceHalt() instead of _requestGroupMan->forceHalt().
* src/DownloadEngine.cc
2010-06-03 11:49:48 +00:00
Tatsuhiro Tsujikawa
fdf5c0109b
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Bump up version number to 1.9.4
* configure.ac
* doc/aria2c.1.txt
2010-06-01 12:56:21 +00:00
Tatsuhiro Tsujikawa
5e053b62ab
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't throw exception when Metalink document is empty(no file
element). It is a valid Metalink document anyway.
* src/MetalinkHelper.cc
* src/download_helper.cc
2010-06-01 12:49:47 +00:00
Tatsuhiro Tsujikawa
22ada0cf32
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed double memory free when Exception raised from
AbstractCommand::prepareForNextAction() called by
HttpResponseCommand::handleDefaultEncoding().
* src/AbstractCommand.cc
* src/HttpResponseCommand.cc
2010-06-01 12:40:57 +00:00
Tatsuhiro Tsujikawa
9be631e007
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added _logger->info() guard
* src/IteratableChunkChecksumValidator.cc
2010-06-01 11:45:53 +00:00
Tatsuhiro Tsujikawa
974ad351a1
2010-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that feeding Metalink XML via pipe (-M- option) does
not work when aria2 is built with expat. Fixed the bug that when
Metalink XML is fed via pipe and --save-session is used, entry
"/dev/stdin" is saved in session file.
* src/ExpatMetalinkProcessor.cc
* src/ExpatMetalinkProcessor.h
* src/Metalink2RequestGroup.cc
2010-05-26 12:36:23 +00:00
Tatsuhiro Tsujikawa
1a29132b91
2010-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added totalLength, completedLength, uploadLength, bitfield,
downloadSpeed, uploadSpeed, infoHash, numSeeders, pieceLength,
numPieces, connections and dir to the response of
aria2.tellStopped XML-RPC method. aria2.tellWaiting now always
returns numSeeders for BitTorrent download.
* src/DownloadResult.h
* src/RequestGroup.cc
* src/RequestGroup.h
* src/XmlRpcMethodImpl.cc
* test/XmlRpcMethodTest.cc
2010-05-22 11:50:47 +00:00
Tatsuhiro Tsujikawa
92f84f71f5
2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that connection pooling does not take into account
proxy. This means that when connection A via proxy X is pooled,
it will be wrongly reused in the download using proxy Y.
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/FtpFinishDownloadCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpResponseCommand.cc
* src/HttpSkipResponseCommand.cc
2010-05-21 13:54:50 +00:00
Tatsuhiro Tsujikawa
47adbe618c
2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that FTP download may fail when control connection
is reused. This happens because FTP server can offer different
root directory for different account. If pooled connections has
different root directory, then download will fail.
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/FtpConnection.cc
* src/FtpConnection.h
* src/FtpFinishDownloadCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
2010-05-21 12:22:04 +00:00
Tatsuhiro Tsujikawa
8f3cdfb2de
2010-05-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed DownloadResult's ctor because it has many args.
* src/DownloadResult.h
* src/RequestGroup.cc
* test/XmlRpcMethodTest.cc
2010-05-20 12:16:50 +00:00
Tatsuhiro Tsujikawa
2284c0a837
2010-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup.
* src/RequestGroupMan.cc
* src/UTMetadataPostDownloadHandler.cc
* src/XmlRpcMethodImpl.cc
2010-05-19 14:16:04 +00:00
Tatsuhiro Tsujikawa
83465ff83d
2010-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Store both whole checksum and piece hash in metalink file.
Dispatch whole checksum verification only when piece hash is not
set.
* src/DownloadCommand.cc
* src/Metalink2RequestGroup.cc
* test/Metalink2RequestGroupTest.cc
2010-05-14 15:18:59 +00:00
Tatsuhiro Tsujikawa
b305edd7c5
2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Left only IANA hash function textual name in messageDigest.cc.
Assign only IANA hash function textual name to Checksum and
ChunkChecksum. Fixed the value of MessageDigestContext::MD5.
* src/Checksum.h
* src/MetalinkParserController.cc
* src/messageDigest.cc
* src/messageDigest.h
* test/IteratableChecksumValidatorTest.cc
* test/IteratableChunkChecksumValidatorTest.cc
* test/MessageDigestHelperTest.cc
* test/Metalink2RequestGroupTest.cc
* test/MetalinkProcessorTest.cc
2010-05-14 14:11:56 +00:00
Tatsuhiro Tsujikawa
88475a6aa0
2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo in log message
* src/AbstractCommand.cc
2010-05-14 13:30:46 +00:00
Tatsuhiro Tsujikawa
7fc6c36370
2010-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Return const reference.
* src/DefaultPieceStorage.h
* src/DownloadContext.h
* src/FeatureConfig.cc
* src/FeatureConfig.h
* src/OptionParser.cc
* src/OptionParser.h
* src/SimpleRandomizer.cc
* src/SimpleRandomizer.h
2010-05-08 12:25:28 +00:00
Tatsuhiro Tsujikawa
6d9947c36b
2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Return const reference.
* src/LpdMessageReceiver.h
* src/LpdReceiveMessageCommand.h
2010-05-06 14:28:17 +00:00
Tatsuhiro Tsujikawa
0bc298df00
2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed useless pathJoin
* src/MetalinkParserController.cc
2010-05-06 14:25:51 +00:00
Tatsuhiro Tsujikawa
460ee92644
2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that name attribute of file element in Metalink file
is not properly sanitized.
* src/Metalink2RequestGroup.cc
* src/MetalinkParserController.cc
* test/Makefile.am
* test/Metalink2RequestGroupTest.cc
* test/metalink4-dosdirtraversal.xml
2010-05-06 14:18:29 +00:00
Tatsuhiro Tsujikawa
2bcf648102
2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that if filename in Content-Disposition header
includes ';', aria2 cuts filename after ';'.
* src/util.cc
* test/UtilTest.cc
2010-05-06 12:49:50 +00:00
Tatsuhiro Tsujikawa
504d25bf1f
2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning on opensolaris.
* src/StringFormat.h
* src/XORCloser.h
2010-04-27 14:58:59 +00:00
Tatsuhiro Tsujikawa
2141656346
2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed segmentation fault when running unit tests on opensolaris.
* src/SocketCore.cc
* src/bittorrent_helper.cc
2010-04-26 15:10:39 +00:00
Tatsuhiro Tsujikawa
a53ee58746
2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print warning when trying to add file descriptor >= FD_SET or < 0
to fd_set for other than MinGW32 build. For MinGW32 build, print
warning when trying to add file descriptor to fd_set when it
already contains FD_SET file descriptors.
* src/SelectEventPoll.cc
* src/SocketCore.cc
2010-04-25 13:49:31 +00:00
Tatsuhiro Tsujikawa
abc4abc914
2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined FD_SETSIZE 1024 for MinGW32.
* src/a2netcompat.h
2010-04-25 10:13:00 +00:00
Tatsuhiro Tsujikawa
6f6fc38205
2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error on the system which lacks poll()
* src/DownloadEngineFactory.cc
2010-04-25 10:12:33 +00:00
Tatsuhiro Tsujikawa
5635190927
2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In SocketCore::isReadable()/isWritable(), use poll() if it is
available otherwise use select(). Removed epoll/port from there
because poll() does the good enough job for single socket event
notification.
* src/SocketCore.cc
* src/SocketCore.h
* src/main.cc
2010-04-24 14:08:10 +00:00
Tatsuhiro Tsujikawa
5d636df361
2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added kqueue support. We use poll() for
SocketCore::isReadable()/isWritable() when kqueue is used.
* configure.ac
* src/DownloadEngineFactory.cc
* src/KqueueEventPoll.cc
* src/KqueueEventPoll.h
* src/Makefile.am
* src/Makefile.in
* src/OptionHandlerFactory.cc
* src/main.cc
* src/prefs.cc
* src/prefs.h
2010-04-24 13:07:35 +00:00
Tatsuhiro Tsujikawa
571759fc27
2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing timespec.h to SRCS
* src/Makefile.am
2010-04-23 14:48:03 +00:00
Tatsuhiro Tsujikawa
86a4b5d15c
2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that aria2.unpause fails with -s1.
* src/FileEntry.cc
* src/XmlRpcMethodImpl.cc
2010-04-23 14:43:56 +00:00
Tatsuhiro Tsujikawa
2082a3b8df
2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing #ifdef HAVE_PORT_ASSOCIATE
* src/DownloadEngineFactory.cc
2010-04-21 15:54:39 +00:00
Tatsuhiro Tsujikawa
9cf05b7115
2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added opensolaris port_associate() support.
* src/DownloadEngineFactory.cc
* src/Makefile.am
* src/OptionHandlerFactory.cc
* src/PortEventPoll.cc
* src/PortEventPoll.h
* src/SocketCore.cc
* src/SocketCore.h
* src/configure.ac
* src/main.cc
* src/prefs.cc
* src/prefs.h
2010-04-21 14:31:44 +00:00
Tatsuhiro Tsujikawa
c1047561b6
2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that _e is passed where e should be passed.
* src/HttpListenCommand.cc
2010-04-21 13:59:15 +00:00
Tatsuhiro Tsujikawa
ced238d098
2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Increased _epEvents size if necessary.
* src/EpollEventPoll.cc
* src/EpollEventPoll.h
2010-04-20 13:54:23 +00:00
Tatsuhiro Tsujikawa
1d652cd0ad
2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed EventRType template parameter
* src/EpollEventPoll.cc
* src/EpollEventPoll.h
* src/Event.h
* src/PollEventPoll.cc
* src/PollEventPoll.h
2010-04-20 13:19:36 +00:00
Tatsuhiro Tsujikawa
3b8c54108c
2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use Event in EpollEventPoll
* src/EpollEventPoll.cc
* src/EpollEventPoll.h
2010-04-20 13:15:29 +00:00
Tatsuhiro Tsujikawa
e9ef6f3af9
2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
AsyncNameResolverEntry class.
* src/Event.h
* src/Makefile.am
* src/PollEventPoll.cc
* src/PollEventPoll.h
2010-04-19 15:04:38 +00:00
Tatsuhiro Tsujikawa
0ec50a8d50
2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Supported poll() for socket event notification. --event-poll can
take value "poll". Fixed the bug that timeout for
SocketCore::isReadable()/isWritable() is ignored when epoll is
used.
* src/OptionHandlerFactory.cc
* src/a2io.h
* src/prefs.h
* src/SocketCore.h
* src/Makefile.am
* src/main.cc
* src/PollEventPoll.h
* src/SocketCore.cc
* src/DownloadEngineFactory.cc
* src/PollEventPoll.cc
* src/prefs.cc
* configure.ac
2010-04-19 12:53:58 +00:00
Tatsuhiro Tsujikawa
756592bf4d
2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reverted previous change to DownloadCommand.cc with additional
commentary.
* src/DownloadCommand.cc
2010-04-19 12:47:50 +00:00
Tatsuhiro Tsujikawa
5b5a3be7e2
2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error with openssl 1.1.0 and mingw32.
* src/AsyncNameResolver.cc
* src/LogFactory.cc
* src/Logger.cc
* src/Logger.h
* src/SocketCore.cc
* src/SocketCore.h
* src/a2netcompat.h
2010-04-16 09:25:59 +00:00
Tatsuhiro Tsujikawa
a71148b702
2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use elapsed time between two mach_absolute_time() calls.
Fixed compile error in Mac OS X.
* src/clock_gettime_osx.cc
* src/timespec.h
2010-04-13 16:53:38 +00:00
Tatsuhiro Tsujikawa
91e7127396
2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Implemented clock_gettime() using mach_absolute_time in Mac OS X.
* configure.ac
* src/Makefile.am
* src/a2time.h
* src/clock_gettime_osx.cc
* src/clock_gettime_osx.h
2010-04-13 16:06:59 +00:00
Tatsuhiro Tsujikawa
7e22cc38bb
2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Implemented clock_gettime() using timeGetTime in mingw.
* configure.ac
* src/Makefile.am
* src/a2time.h
* src/clock_gettime_mingw.cc
* src/clock_gettime_mingw.h
* src/timespec.h
* test/Makefile.am
2010-04-13 15:36:56 +00:00
Tatsuhiro Tsujikawa
aa08af9928
2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Ensure that std::ofstream is destroyed before renaming.
* src/SessionSerializer.cc
* src/util.cc
2010-04-13 15:23:31 +00:00
Tatsuhiro Tsujikawa
c415eb081e
2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that user specified path is escaped using
util::escapePath() where it should not.
* src/DownloadContext.cc
* src/DownloadContext.h
2010-04-13 12:51:52 +00:00
Tatsuhiro Tsujikawa
1f02b65460
2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Hold reference to PieceStorage when paused in order to provide
progress information via XML-RPC.
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
2010-04-13 12:39:09 +00:00
Tatsuhiro Tsujikawa
a605048900
2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined struct timespec if it is not available.
* src/a2time.h
2010-04-12 15:59:42 +00:00
Tatsuhiro Tsujikawa
8d272f5d19
2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without BitTorrent support.
* src/Metalink2RequestGroup.cc
2010-04-12 14:41:56 +00:00
Tatsuhiro Tsujikawa
6a0c23b44d
2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error on Mac OS X
* src/TimerA2.h
2010-04-12 14:33:26 +00:00
Tatsuhiro Tsujikawa
473d1ff6b5
2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added warning for the system which lacks clock_gettime with
CLOCK_MONOTONIC.
* src/MultiUrlRequestInfo.cc
* src/TimerA2.cc
* src/TimerA2.h
2010-04-12 13:05:41 +00:00
Tatsuhiro Tsujikawa
b2c03934a8
2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed redundant method call for DownloadEngine.
* src/DownloadCommand.cc
2010-04-12 12:57:54 +00:00
Tatsuhiro Tsujikawa
70664af0ad
2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that hash check hangs when aria2.pause is issued
while aria2 is checking piece hashes. Fixed the bug that the
download is paused after file allocation completion even if
aria2.pause is issued during file allocation.
* src/CheckIntegrityCommand.cc
* src/FileAllocationCommand.cc
2010-04-11 16:17:16 +00:00
Tatsuhiro Tsujikawa
f2697552ae
2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error on opensolaris
* configure.ac
* src/Logger.h
* src/GZipEncoder.h
2010-04-11 15:44:37 +00:00
Tatsuhiro Tsujikawa
15bb26cac8
2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
XML-RPC method.
* doc/aria2c.1.txt
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2010-04-11 14:46:07 +00:00
Tatsuhiro Tsujikawa
2e6a517aaa
2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added aria2.forcePause XML-RPC command.
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2010-04-11 09:39:46 +00:00
Tatsuhiro Tsujikawa
f02e08629e
2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use global::wallclock
* src/DHTBucket.cc
* src/DHTMessageTrackerEntry.cc
* src/DHTMessageTrackerEntry.h
* src/DefaultBtInteractive.cc
* src/Peer.cc
* src/PeerAbstractCommand.cc
* src/PeerStat.h
* src/RequestSlot.h
* src/TimeBasedCommand.cc
2010-04-11 08:57:16 +00:00
Tatsuhiro Tsujikawa
0529e78187
2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
usable to prevent from aria2 from being affected by system time
change.
2010-04-11 08:28:22 +00:00
Tatsuhiro Tsujikawa
bf0cf1f5d9
2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
pauses the download denoted by gid. gid is of type string. The
status of paused download becomes "paused" and the download is
placed on the first position of waiting queue. As long as the
status is "paused", the download is not started. To change status
to "waiting", use aria2.unpause method. This method returns GID of
paused download. aria2.unpause changes the status of the download
denoted by gid from "paused" to "waiting". This makes the download
eligible to restart. gid is of type string. This method returns
GID of unpaused download.
* doc/aria2c.1.txt
* src/DownloadContext.cc
* src/FileEntry.cc
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2010-04-08 16:02:22 +00:00
Tatsuhiro Tsujikawa
5cd0108f93
2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --save-session=FILE option. This option saves
error/unfinished downloads to FILE on exit. You can pass this
output file to aria2c with -i option on restart. Please note that
downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
method are not saved.
* src/BtPostDownloadHandler.cc
* src/DownloadResult.h
* src/Makefile.am
* src/MetadataInfo.cc
* src/MetadataInfo.h
* src/Metalink2RequestGroup.cc
* src/MetalinkPostDownloadHandler.cc
* src/MultiUrlRequestInfo.cc
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/SessionSerializer.cc
* src/SessionSerializer.h
* src/UTMetadataPostDownloadHandler.cc
* src/download_helper.cc
* src/download_helper.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/Makefile.am
* test/SessionSerializerTest.cc
* test/XmlRpcMethodTest.cc
* test/serialize_session.meta4
2010-04-08 12:54:14 +00:00
Tatsuhiro Tsujikawa
dd7590f927
2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that FTP data connection is not established via
proxy when --ftp-proxy is defined and --ftp-pasv=true and
--proxy-method=tunnel.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* src/InitiateConnectionCommand.cc
2010-04-06 16:09:24 +00:00
Tatsuhiro Tsujikawa
a49c853297
2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed error message.
* src/XmlRpcMethod.cc
2010-04-03 04:31:37 +00:00
Tatsuhiro Tsujikawa
3139b5fe48
2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bt-tracker-timeout, bt-tracker-connect-timeout,
always-resume, max-resume-failure-tries and http-accept-gzip to -i
list options.
* doc/aria2c.1.txt
* doc/xmlrpc/aria2rpc
* src/download_helper.cc
2010-04-03 04:25:29 +00:00
Tatsuhiro Tsujikawa
0e060f0e8b
2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that web-seed URI is not percent-encoded.
* src/a2functional.h
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
* test/url-list-multiFile.torrent
* test/url-list-singleFileEndsWithSlash.torrent
2010-04-03 04:02:14 +00:00
Tatsuhiro Tsujikawa
919255b4db
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
These methods, as their name implies, shutdown aria2. These
methods are useful for Windows because it lacks signal mechanism.
* doc/aria2c.1.txt
* src/TimedHaltCommand.cc
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2010-04-02 14:50:33 +00:00
Tatsuhiro Tsujikawa
730f7449ae
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added forceHalt argument to TimedHaltCommand.
Added requestForceHalt() to DownloadEngine.
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/TimedHaltCommand.cc
* src/TimedHaltCommand.h
2010-04-02 14:23:59 +00:00
Tatsuhiro Tsujikawa
4c694b9585
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Possible fix for chunked encoding with Content-Length.
* src/HttpResponseCommand.cc
2010-04-02 14:19:11 +00:00
Tatsuhiro Tsujikawa
6996f07f5f
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't send "Accept: default, gzip" by default. This is because
some server responds with "Content-Encoding: gzip" for files which
itself is gzipped file and aria2 inflates them. This is a problem
if user don't want to inflate the file. Apparently this is server
configuration error, but I cannot do anything about this. So turn
this off. Added --http-accept-gzip option. If true is given to
this option, aria2 sends 'Accept: deflate, gzip' request header
and inflates response if remote server responds with
'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
indicates we removed extension tgz hack in order not to inflate
files with tgz extensions.
* doc/aria2c.1.txt
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/HttpResponseCommand.cc
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/HttpRequestTest.cc
2010-04-02 14:16:10 +00:00
Tatsuhiro Tsujikawa
5cc28b2d80
2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made aria2 not send
"application/metalink4+xml,application/metalink+xml" in Accept
header for web-seeding URIs and tracker request.
* src/Metalink2RequestGroup.cc
* src/TrackerWatcherCommand.cc
* src/download_helper.cc
* src/util.cc
* src/util.h
2010-04-01 15:41:53 +00:00
Tatsuhiro Tsujikawa
d67f4cefac
2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added download_helper.{cc,h} to SRCS
* src/Makefile.am
* test/Makefile.am
2010-04-01 09:13:10 +00:00
Tatsuhiro Tsujikawa
e7e214fef2
2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --dht-message-timeout option.
* doc/aria2c.1.txt
* src/DHTConstants.h
* src/DHTMessageDispatcherImpl.cc
* src/DHTMessageDispatcherImpl.h
* src/DHTMessageTracker.cc
* src/DHTMessageTracker.h
* src/DHTReplaceNodeTask.h
* src/DHTSetup.cc
* src/DHTTaskFactoryImpl.cc
* src/DHTTaskFactoryImpl.h
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DHTMessageTrackerTest.cc
2010-03-30 14:46:26 +00:00
Tatsuhiro Tsujikawa
68156ef258
2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-tracker-connect-timeout and --bt-tracker-timeout
option.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/TrackerWatcherCommand.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2010-03-30 14:17:16 +00:00
Tatsuhiro Tsujikawa
613e832dac
2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/BtSetup.cc
2010-03-30 13:08:10 +00:00
Tatsuhiro Tsujikawa
9a922f8b02
2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Drop connection if same Peer ID has been already seen.
* src/DefaultBtInteractive.cc
2010-03-30 13:05:53 +00:00
Tatsuhiro Tsujikawa
f9c852c475
2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that waiting download unintentionally starts when
URIs are added to it using aria2.changeUri XML-RPC method. This
also fixes the bug that causes segmentation fault when adding URIs
to waiting download, which is a regression introduced by the
previous change made to src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.cc
2010-03-29 14:43:50 +00:00
Tatsuhiro Tsujikawa
feedb92ed7
2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error with g++-4.4 on FreeBSD.
* src/util.h
2010-03-29 14:39:09 +00:00
Tatsuhiro Tsujikawa
d88f7cd0a4
2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that added URI using aria2.changeUri XML-RPC method
is not used immediately if there is no URIs remaining before
calling aria2.changeUri and the number of connection is less than
the value in -s(or -C for Metalink downloads).
* src/XmlRpcMethodImpl.cc
2010-03-28 15:02:36 +00:00
Tatsuhiro Tsujikawa
65389139c6
2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Documented --always-resume and --max-resume-failure-tries option
and exit status 8 in man page. Fixed typo.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
2010-03-28 07:38:41 +00:00
Tatsuhiro Tsujikawa
abe1e9843c
2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --always-resume and --max-resume-failure-tries option. If
--always-resume=false is given, when all given URIs does not
support resume or aria2 encounters N URIs which does not support
resume
(N is the value specified using --max-resume-failure-tries
option), aria2 download file from scratch. The default behavior
is --always-resume=true, which means if all URIs do not support
resume, download fails. I think this is OK because user normally
don't like to see that partially downloaded file is
overwritten(this is particularly true if file size is big). This
option is useful when aria2 is used as download backend and
graceful falling back to overwritten behavior is preferable.
Added exit status value 8, which means download failed because
server did not support resume.
* src/AbstractCommand.cc
* src/DefaultPieceStorage.cc
* src/DownloadCommand.cc
* src/DownloadResultCode.h
* src/FileEntry.h
* src/FtpNegotiationCommand.cc
* src/HttpResponse.cc
* src/HttpResponseCommand.cc
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/SegmentMan.cc
* src/SegmentMan.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DefaultPieceStorageTest.cc
* test/SegmentManTest.cc
2010-03-28 07:23:33 +00:00
Tatsuhiro Tsujikawa
90bc2ccffc
2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --remove-control-file option to -i list options.
* doc/aria2c.1.txt
* doc/xmlrpc/aria2rpc
* src/download_helper.cc
2010-03-25 14:51:41 +00:00
Tatsuhiro Tsujikawa
8507b5bde4
2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --remove-control-file option. This option removes control
file(*.aria2 file) before download. Using with
--allow-overwrite=true, download always starts from scratch. This
will be useful for users behind proxy server which disables
resume. For such proxy user, -C1 is also recommended for Metalink
downloads to avoid establishing unnecessary connections.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2010-03-25 14:44:16 +00:00
Tatsuhiro Tsujikawa
886f8ee58e
2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
size of array at compile time.
* src/array_fun.h
* test/BitfieldManTest.cc
* test/BtPortMessageTest.cc
* test/DHTRoutingTableDeserializerTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/DownloadHelperTest.cc
* test/LongestSequencePieceSelectorTest.cc
* test/MultiDiskAdaptorTest.cc
* test/OptionParserTest.cc
* test/PriorityPieceSelectorTest.cc
* test/array_funTest.cc
2010-03-25 14:22:43 +00:00
Tatsuhiro Tsujikawa
f15d22b619
2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added vbegin() and vend() for fixed sized array.
* src/DownloadHandlerConstants.cc
* src/FeatureConfig.cc
* src/OptionHandlerFactory.cc
* src/ServerStat.cc
* src/TimeA2.cc
* src/XmlRpcMethod.cc
* src/array_fun.h
* src/download_helper.cc
* src/messageDigest.cc
* src/util.cc
* test/BittorrentHelperTest.cc
* test/DHTRoutingTableDeserializerTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/DefaultBtAnnounceTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/DownloadContextTest.cc
* test/DownloadHelperTest.cc
* test/FeatureConfigTest.cc
* test/FeedbackURISelectorTest.cc
* test/HttpRequestTest.cc
* test/InOrderURISelectorTest.cc
* test/MSEHandshakeTest.cc
* test/MultiDiskAdaptorTest.cc
* test/MultiFileAllocationIteratorTest.cc
* test/PriorityPieceSelectorTest.cc
* test/RequestGroupManTest.cc
* test/UtilTest.cc
* test/XmlRpcMethodTest.cc
* test/a2algoTest.cc
* test/array_funTest.cc
2010-03-25 13:51:10 +00:00
Tatsuhiro Tsujikawa
8477e463e9
2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Simplified code using lastByteMask
* src/BitfieldMan.cc
* src/PieceStatMan.cc
2010-03-24 14:25:18 +00:00
Tatsuhiro Tsujikawa
6301084ea8
2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten lastByteMask
* src/bitfield.h
2010-03-24 14:17:08 +00:00
Tatsuhiro Tsujikawa
522ab21ebf
2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Redefined the maximum length of buffer used for HTTP header.
* src/HttpHeaderProcessor.cc
2010-03-23 13:02:09 +00:00
Tatsuhiro Tsujikawa
bd3098faf4
2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/SleepCommand.cc
2010-03-22 14:59:58 +00:00
Tatsuhiro Tsujikawa
f2c97658c1
2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Do exact match if IP address is specified in --no-proxy.
* src/AbstractCommand.cc
2010-03-22 12:27:11 +00:00
Tatsuhiro Tsujikawa
ef4e564b70
2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that socket is added to EventPoll object twice. This
is because derived class FtpFinishDownloadCommand adds socket to
EventPoll object while base class AbstractCommand does that
already.
* src/FtpFinishDownloadCommand.cc
* src/FtpFinishDownloadCommand.h
2010-03-22 12:21:40 +00:00
Tatsuhiro Tsujikawa
a0d13a7fee
2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined gid_t as int64_t.
* src/BtDependency.cc
* src/BtStopDownloadCommand.cc
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/TrackerWatcherCommand.cc
* src/XmlRpcMethodImpl.cc
* src/message.h
* test/XmlRpcMethodTest.cc
2010-03-21 14:04:05 +00:00
Tatsuhiro Tsujikawa
de8fef01f3
2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
translatable texts because it is used in log and debugging
purpose.
2010-03-21 07:05:49 +00:00
Tatsuhiro Tsujikawa
322a0d1ad7
2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use gid_t type for gid.
* src/BtRegistry.cc
* src/BtRegistry.h
* src/DownloadResult.h
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/XmlRpcMethodImpl.cc
2010-03-20 15:01:56 +00:00
Tatsuhiro Tsujikawa
bf5f559c5c
2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use cuid_t type for cuid.
2010-03-20 14:30:36 +00:00
Tatsuhiro Tsujikawa
10edc156ea
2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added v key in DHT message. aria2's DHT version is independent of
the package version and we defined it as 1 at the moment. It is
defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
scheme is "A2"+2bytes DHT version number in network byte order.
* src/DHTAbstractMessage.cc
* src/DHTConstants.h
* src/DHTMessage.cc
* src/DHTMessage.h
* src/DHTMessageFactoryImpl.cc
* src/DHTQueryMessage.cc
* src/DHTResponseMessage.cc
* src/util.h
* test/DHTAnnouncePeerMessageTest.cc
* test/DHTAnnouncePeerReplyMessageTest.cc
* test/DHTFindNodeMessageTest.cc
* test/DHTFindNodeReplyMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/DHTPingMessageTest.cc
* test/DHTPingReplyMessageTest.cc
2010-03-20 09:10:23 +00:00
Tatsuhiro Tsujikawa
d6860e11bf
2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
method response is integer, while manual says it is string. When
peer's port is not listening port, set '0' to port in
aria2.getPeers response.
* src/XmlRpcMethodImpl.cc
2010-03-19 14:22:17 +00:00
Tatsuhiro Tsujikawa
e0335dcd4f
2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Lines starting "#" in -i list are treated as comments.
Example:
# this is comment
http://example.org/file
http://example.org/file2
dir=/tmp
# another comment
out=myfile
* doc/aria2c.1.txt
* src/UriListParser.cc
* test/filelist1.txt
2010-03-19 09:16:53 +00:00
Tatsuhiro Tsujikawa
4951142346
2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Accept IPv4 network address with CIDR block in --no-proxy option
and no_proxy environment variable. Current implementation does
not resolve hostname in URI to compare network address. So it is
only effecive if URI has numeric IP addresses.
* doc/aria2c.1.txt
* src/AbstractCommand.cc
* src/OptionHandlerFactory.cc
* src/bitfield.h
* src/usage_text.h
* src/util.cc
* src/util.h
* test/UtilTest.cc
* test/bitfieldTest.cc
2010-03-19 08:56:17 +00:00
Tatsuhiro Tsujikawa
55d7c99638
2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reduced interval for metadatagetmode to quickly gather metadata.
* src/BtSetup.cc
2010-03-19 05:57:47 +00:00
Tatsuhiro Tsujikawa
4e637779a5
2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Few adjustment for timeouts in DHT. DHT message timeout is changed
from 15 to 10. The interval of PeerLookup is first 5 seconds and
it adds another 5 seconds in each retry.
* src/DHTConstants.h
* src/DHTGetPeersCommand.cc
* src/DHTGetPeersCommand.h
2010-03-12 15:05:53 +00:00
Tatsuhiro Tsujikawa
7d8044ef10
2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed log level from error to info for DHT message send error.
* src/DHTMessageDispatcherImpl.cc
2010-03-12 15:01:57 +00:00
Tatsuhiro Tsujikawa
7bbc5769a5
2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Inspect all xt in magnet to find urn:btih.
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
2010-03-12 15:00:28 +00:00
Tatsuhiro Tsujikawa
542a06de6d
2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use global option for DHTSetup.
* src/DHTSetup.cc
* src/DHTSetup.h
* src/RequestGroup.cc
2010-03-11 16:04:50 +00:00
Tatsuhiro Tsujikawa
dc059bfc29
2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bt-enable-lpt, reuse-uri
and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
options.
* doc/aria2c.1.txt
* doc/xmlrpc/aria2rpc
* src/download_helper.cc
2010-03-11 15:32:36 +00:00
Tatsuhiro Tsujikawa
f16a1d0e30
2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
* src/BtSetup.cc
2010-03-11 15:15:06 +00:00
Tatsuhiro Tsujikawa
ca2b33c3da
2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Resurrected --http-proxy-user and --http-proxy-passwd option.
Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
--ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/OptionHandlerTest.cc
2010-03-11 15:09:34 +00:00
Tatsuhiro Tsujikawa
91b7b721ea
2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
For LPD sockets, bind IN_ADDRANY because binding multicast address
fails under Windows.
* src/LpdMessageReceiver.cc
* test/LpdMessageDispatcherTest.cc
2010-03-09 14:19:25 +00:00
Tatsuhiro Tsujikawa
22308b3ac9
2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that error message is not propagated to Exception.
* src/SocketCore.cc
2010-03-09 14:15:37 +00:00
Tatsuhiro Tsujikawa
587be5119c
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that FillRequestGroupCommand is not invoked when
RequestGroupMan::createInitialCommand() creates no Command object.
* src/FillRequestGroupCommand.cc
* src/RequestGroupMan.cc
2010-03-08 15:01:45 +00:00
Tatsuhiro Tsujikawa
2c2d19d5d5
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added debug logs.
* src/FileEntry.cc
* src/SegmentMan.cc
2010-03-08 14:34:32 +00:00
Tatsuhiro Tsujikawa
4c1ca715f6
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated automake-1.11.1
2010-03-08 12:39:16 +00:00
Tatsuhiro Tsujikawa
ab6644c3de
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error and unit test error without openssl and
gnutls.
* src/MetalinkParserController.cc
* test/MetalinkProcessorTest.cc
2010-03-08 12:17:26 +00:00
Tatsuhiro Tsujikawa
c4a35932cb
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed unitest fails if openssl doesn't support sha-256.
* src/MetalinkParserStateV4Impl.cc
* test/MetalinkProcessorTest.cc
2010-03-08 12:01:08 +00:00
Tatsuhiro Tsujikawa
b6778acd5e
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing wallclock.h to SRCS.
* src/Makefile.am
2010-03-08 11:19:44 +00:00
Tatsuhiro Tsujikawa
49169c93ba
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --reuse-uri option. This option has existed quite long, but
been hidden.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/usage_text.h
2010-03-07 15:26:58 +00:00
Tatsuhiro Tsujikawa
3ecf6e4b6f
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Ignore filename parameter if it contains directory traversal
directives.
* src/util.cc
* test/UtilTest.cc
2010-03-07 15:06:48 +00:00
Tatsuhiro Tsujikawa
41b7b9428f
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
urldecode -> percentDecode
* src/FtpConnection.cc
* src/FtpNegotiationCommand.cc
* src/HttpResponse.cc
* src/Request.cc
* src/magnet.cc
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-03-07 14:29:40 +00:00
Tatsuhiro Tsujikawa
10b52bd9ac
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
urlencode -> percentEncode,
torrentUrlencode -> torrentPercentEncode
* src/BtHandshakeMessage.cc
* src/BtHandshakeMessageValidator.h
* src/DHTMessageFactoryImpl.cc
* src/DefaultBtAnnounce.cc
* src/HandshakeExtensionMessage.cc
* src/HttpRequest.cc
* src/XmlRpcMethodImpl.cc
* src/bittorrent_helper.cc
* src/util.cc
* src/util.h
* test/DHTAnnouncePeerMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/UTPexExtensionMessageTest.cc
* test/UtilTest.cc
2010-03-07 14:24:21 +00:00
Tatsuhiro Tsujikawa
4785b7190c
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that filename is percent encoded where it must be
percent decoded in sendMdtm().
* src/FtpConnection.cc
* test/FtpConnectionTest.cc
2010-03-07 14:17:53 +00:00
Tatsuhiro Tsujikawa
b0f180c99c
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
url -> uri in Request class.
* src/AbstractCommand.cc
* src/AdaptiveURISelector.cc
* src/DefaultBtAnnounce.cc
* src/FeedbackURISelector.cc
* src/FileEntry.cc
* src/FileEntry.h
* src/HttpRequest.h
* src/HttpResponse.cc
* src/InitiateConnectionCommandFactory.cc
* src/Metalink2RequestGroup.cc
* src/OptionHandlerImpl.h
* src/ProtocolDetector.cc
* src/Request.cc
* src/Request.h
* src/XmlRpcMethodImpl.cc
* test/AuthConfigFactoryTest.cc
* test/FtpConnectionTest.cc
* test/HttpRequestTest.cc
* test/HttpResponseTest.cc
* test/RequestTest.cc
2010-03-07 10:36:42 +00:00
Tatsuhiro Tsujikawa
6ce44b001d
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added getServers XML-RPC method.
* doc/aria2c.1.txt
* src/FileEntry.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2010-03-07 08:30:19 +00:00
Tatsuhiro Tsujikawa
5fb7197a08
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Pool request when download finished.
* src/DownloadCommand.cc
2010-03-07 08:06:52 +00:00
Tatsuhiro Tsujikawa
2cb0c8e69d
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
1-based.
* doc/aria2c.1.txt
* src/XmlRpcMethodImpl.cc
* test/XmlRpcMethodTest.cc
2010-03-07 07:24:19 +00:00
Tatsuhiro Tsujikawa
e5e561afba
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call RequestGroupMan::requestQueueCheck() when
max-concurrent-downloads option is changed or new downloads are
added/inserted into reserved list.
* src/RequestGroupMan.cc
* src/XmlRpcMethodImpl.cc
2010-03-07 06:46:33 +00:00
Tatsuhiro Tsujikawa
41e203bf84
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added aria2.forceRemove XML-RPC method.
* doc/aria2c.1.txt
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2010-03-07 06:04:15 +00:00
Tatsuhiro Tsujikawa
7f593c3ff8
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added debug log.
* src/AbstractCommand.cc
2010-03-07 03:11:14 +00:00
Tatsuhiro Tsujikawa
f3973e5a12
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Create CreateRequestCommand to the number of -s/-C when URIs are
added by XML-RPC.
* src/RequestGroup.cc
* src/RequestGroup.h
* src/XmlRpcMethodImpl.cc
2010-03-07 03:10:19 +00:00
Tatsuhiro Tsujikawa
7923125382
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added 'status' key to the response of getUri XML-RPC method.
* doc/aria2c.1.txt
* src/XmlRpcMethodImpl.cc
2010-03-06 15:09:11 +00:00
Tatsuhiro Tsujikawa
e3b5d60893
2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced Time::reset() call with assigning of global::wallclock.
* src/BtLeecherStateChoke.cc
* src/BtSeederStateChoke.cc
* src/PeerSessionResource.cc
* src/RequestSlot.cc
* src/ServerStat.cc
* src/SpeedCalc.cc
2010-03-06 14:30:05 +00:00
Tatsuhiro Tsujikawa
b1713e6373
2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added changeUri XML-RPC method. This method removes/adds URIs
dynamically.
* doc/aria2c.1.txt
* src/AbstractCommand.cc
* src/DownloadContext.cc
* src/DownloadContext.h
* src/FileEntry.cc
* src/FileEntry.h
* src/Request.cc
* src/Request.h
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/FileEntryTest.cc
* test/XmlRpcMethodTest.cc
2010-03-06 14:21:43 +00:00
Tatsuhiro Tsujikawa
61b2b88c29
2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten copy ctor of RequestSlot to use initialization list.
* src/RequestSlot.h
2010-03-06 08:45:12 +00:00
Tatsuhiro Tsujikawa
8d09b069e2
2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added Time global::wallclock to cache "current time" to reduce the
call gettimeofday(). Global variables are now in namespace global.
* src/AbstractCommand.cc
* src/ActivePeerConnectionCommand.cc
* src/AdaptiveURISelector.cc
* src/BtLeecherStateChoke.cc
* src/BtLeecherStateChoke.h
* src/BtSeederStateChoke.cc
* src/BtSeederStateChoke.h
* src/BtStopDownloadCommand.cc
* src/ConsoleStatCalc.cc
* src/DHTBucket.cc
* src/DHTGetPeersCommand.cc
* src/DHTMessageTrackerEntry.cc
* src/DHTNode.cc
* src/DHTPeerAnnounceEntry.cc
* src/DHTPeerAnnounceStorage.cc
* src/DHTSetup.cc
* src/DefaultBtAnnounce.cc
* src/DefaultBtInteractive.cc
* src/DefaultBtMessageDispatcher.cc
* src/DefaultPeerStorage.cc
* src/DefaultPieceStorage.cc
* src/DownloadCommand.cc
* src/DownloadEngine.cc
* src/FileEntry.cc
* src/HttpServerBodyCommand.cc
* src/HttpServerCommand.cc
* src/HttpServerResponseCommand.cc
* src/LpdMessageDispatcher.cc
* src/MultiUrlRequestInfo.cc
* src/Peer.cc
* src/Peer.h
* src/PeerAbstractCommand.cc
* src/PeerStat.h
* src/RequestSlot.cc
* src/RequestSlot.h
* src/SegmentMan.cc
* src/ServerStatMan.cc
* src/SleepCommand.cc
* src/SpeedCalc.cc
* src/SpeedCalc.h
* src/TimeA2.cc
* src/TimeA2.h
* src/TimeBasedCommand.cc
* src/TimeSeedCriteria.h
* src/UTMetadataRequestTracker.h
* src/UTPexExtensionMessage.cc
* src/wallclock.h
2010-03-06 08:29:53 +00:00
Tatsuhiro Tsujikawa
7637fd76a2
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that util::itos(INT64_MIN) fails.
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-03-05 14:38:49 +00:00
Tatsuhiro Tsujikawa
f0938cf1d6
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed memory leak in SocketBuffer when _bufq is not empty when
SocketBuffer is deleted. Added BufEntry constructor and deleted
static factory functions.
* src/SocketBuffer.cc
* src/SocketBuffer.h
2010-03-05 14:11:00 +00:00
Tatsuhiro Tsujikawa
fe8fea56ca
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Only execute RequestGroupMan::fillRequestGroupFromReserver() when
queue maintenance is requested by RequestGroup to avoid to call
the function unnecessarily.
* src/FillRequestGroupCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
2010-03-05 14:02:23 +00:00
Tatsuhiro Tsujikawa
db4ed87f7a
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't use hash for Peer::id. Simple concatenation of ip address
and port is enough.
* src/Peer.cc
* test/PeerTest.cc
2010-03-05 12:54:20 +00:00
Tatsuhiro Tsujikawa
b55f2de8e6
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Enclosed log of DHTMessage::toString() with Logger::info().
* src/DHTMessageDispatcherImpl.cc
* src/DHTMessageReceiver.cc
2010-03-04 17:07:07 +00:00
Tatsuhiro Tsujikawa
ca54ff894e
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten util::toHex().
* src/util.cc
2010-03-04 17:01:29 +00:00
Tatsuhiro Tsujikawa
65b9af6e09
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed SocketBuffer::feedAndSend(). Renamed
SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
* src/FtpConnection.cc
* src/HttpConnection.cc
* src/HttpServer.cc
* src/MSEHandshake.cc
* src/PeerConnection.cc
* src/SocketBuffer.cc
* src/SocketBuffer.h
2010-03-04 16:36:03 +00:00
Tatsuhiro Tsujikawa
74cf8aa980
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused PeerConnection::sendMessage(). Updated doc.
* src/PeerConnection.cc
* src/PeerConnection.h
2010-03-04 16:27:42 +00:00
Tatsuhiro Tsujikawa
8b73c2843f
2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reduced copying/std::string instantiation in sending/receiving
BitTorrent messages.
* src/BtBitfieldMessage.cc
* src/BtBitfieldMessage.h
* src/BtExtendedMessage.cc
* src/BtExtendedMessage.h
* src/BtHandshakeMessage.cc
* src/BtHandshakeMessage.h
* src/BtKeepAliveMessage.cc
* src/BtKeepAliveMessage.h
* src/BtPieceMessage.cc
* src/BtPieceMessage.h
* src/BtPortMessage.cc
* src/BtPortMessage.h
* src/BtUnchokeMessage.h
* src/DefaultBtMessageReceiver.cc
* src/IndexBtMessage.cc
* src/IndexBtMessage.h
* src/PeerConnection.cc
* src/PeerConnection.h
* src/RangeBtMessage.cc
* src/RangeBtMessage.h
* src/SimpleBtMessage.cc
* src/SimpleBtMessage.h
* src/SocketBuffer.cc
* src/SocketBuffer.h
* src/ZeroBtMessage.cc
* src/ZeroBtMessage.h
* test/BtAllowedFastMessageTest.cc
* test/BtBitfieldMessageTest.cc
* test/BtCancelMessageTest.cc
* test/BtChokeMessageTest.cc
* test/BtExtendedMessageTest.cc
* test/BtHandshakeMessageTest.cc
* test/BtHaveAllMessageTest.cc
* test/BtHaveMessageTest.cc
* test/BtHaveNoneMessageTest.cc
* test/BtInterestedMessageTest.cc
* test/BtKeepAliveMessageTest.cc
* test/BtNotInterestedMessageTest.cc
* test/BtPieceMessageTest.cc
* test/BtPortMessageTest.cc
* test/BtRejectMessageTest.cc
* test/BtRequestMessageTest.cc
* test/BtSuggestPieceMessageTest.cc
* test/BtUnchokeMessageTest.cc
2010-03-04 16:24:03 +00:00
Tatsuhiro Tsujikawa
5d05ef0e75
2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten SocketBuffer. Old implementation uses single std::string
to store data and erase sent data, which is costly. New
implementation uses deque to hold each data to avoid to mutate
string.
* src/SocketBuffer.cc
* src/SocketBuffer.h
2010-03-03 14:29:40 +00:00
Tatsuhiro Tsujikawa
48c809d441
2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused FileEntry::extracted
* src/FileEntry.cc
* src/FileEntry.h
2010-03-02 16:09:03 +00:00
Tatsuhiro Tsujikawa
3bb7855a56
2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In Metalink4, if size element contains invalid size, discard whole
document. Added strict hash value check for metalink3/4.
* src/MetalinkParserController.cc
* src/MetalinkParserStateMachine.cc
* src/MetalinkParserStateMachine.h
* src/MetalinkParserStateV3Impl.cc
* src/MetalinkParserStateV4Impl.cc
* src/util.cc
* src/util.h
* test/MetalinkParserControllerTest.cc
* test/MetalinkProcessorTest.cc
* test/metalink4.xml
2010-03-02 15:14:39 +00:00
Tatsuhiro Tsujikawa
ba78b6f167
2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added strict attribute validation for metalink4. When
specification violation is found, discard the whole document.
* src/ExpatMetalinkProcessor.cc
* src/MetalinkParserStateMachine.cc
* src/MetalinkParserStateMachine.h
* src/MetalinkParserStateV4Impl.cc
* src/XML2SAXMetalinkProcessor.cc
* test/Makefile.am
* test/MetalinkProcessorTest.cc
* test/metalink4-attrs.xml: Removed
* test/metalink4-dirtraversal.xml: Removed
2010-03-02 14:07:30 +00:00
Tatsuhiro Tsujikawa
eb32f56479
2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added test for Metaurl transaction.
* src/MetalinkParserController.cc
* test/MetalinkParserControllerTest.cc
2010-03-01 17:20:41 +00:00
Tatsuhiro Tsujikawa
94e306cec4
2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid costly BtMessage::toString() if info level log is not
required.
* src/DefaultBtInteractive.cc
* src/Logger.h
* src/SimpleBtMessage.cc
2010-03-01 17:03:24 +00:00
Tatsuhiro Tsujikawa
18ea756a74
2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reserved vector elements based on profiler results.
* src/DefaultBtInteractive.cc
* src/DefaultBtProgressInfoFile.cc
2010-03-01 16:13:42 +00:00
Tatsuhiro Tsujikawa
72e475dfde
2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid to calculate end() iterator in each loop. std::deque is
particularly slow. Make sure that recalculate end iterator if
element is erased during loop.
2010-02-28 16:04:52 +00:00
Tatsuhiro Tsujikawa
c342bde962
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use vector instead of deque for containers which is used for
mostly read-only purpose.
2010-02-28 12:30:11 +00:00
Tatsuhiro Tsujikawa
96761a2572
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Small optimization: In updateTransferStatFor(), don't search peer
ID twice.
* src/DefaultPeerStorage.cc
2010-02-27 15:21:29 +00:00
Tatsuhiro Tsujikawa
88656eb14e
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use vector instead of deque for MetalinkEntry and MetalinkResource
objects.
* src/Metalink2RequestGroup.cc
* src/Metalink2RequestGroup.h
* src/MetalinkEntry.cc
* src/MetalinkEntry.h
* src/MetalinkHelper.cc
* src/MetalinkHelper.h
* src/Metalinker.cc
* src/Metalinker.h
* src/main.cc
* test/MetalinkEntryTest.cc
* test/MetalinkHelperTest.cc
* test/MetalinkProcessorTest.cc
* test/MetalinkerTest.cc
2010-02-27 15:14:40 +00:00
Tatsuhiro Tsujikawa
0c62e90730
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that grouped FileEntry objects are not used but
instead all FileEntry objects are used for each metaurl group.
* src/Metalink2RequestGroup.cc
* test/Metalink2RequestGroupTest.cc
* test/metalink4-groupbymetaurl.xml
2010-02-27 15:04:48 +00:00
Tatsuhiro Tsujikawa
4bef54c8e9
2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use vector instead of deque for ChunkChecksum.
* src/ChunkChecksum.h
* src/MetalinkParserController.cc
* src/MetalinkParserController.h
2010-02-27 14:32:02 +00:00
Tatsuhiro Tsujikawa
18d7eb5b77
2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added MessageDigest::isStronger(). Now aria2 selects stronger hash
algorithm in Metalink properly
* src/MetalinkParserController.cc
* src/MetalinkParserController.h
* src/messageDigest.cc
* src/messageDigest.h
* test/MetalinkProcessorTest.cc
* test/metalink4.xml
2010-02-27 14:24:15 +00:00
Tatsuhiro Tsujikawa
e8d091af18
2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced null or control characters in file path with '_'. For
MinGW32 build, additional characters which is not allowed in
Windows kernel are also replaced. util::detectDirTraversal() now
returns true if given string contains null or control characters.
* src/DownloadContext.cc
* src/DownloadContext.h
* src/Metalink2RequestGroup.cc
* src/MetalinkParserController.cc
* src/bittorrent_helper.cc
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-02-27 10:06:40 +00:00
Tatsuhiro Tsujikawa
20d78285a8
2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Discard metalink:file if its name attribute is empty string.
Removed FileEntry instantiation in
MetalinkParserController::setFileLengthOfEntry()
* src/MetalinkParserController.cc
* src/MetalinkParserStateV3Impl.cc
* src/MetalinkParserStateV4Impl.cc
2010-02-27 08:42:13 +00:00
Tatsuhiro Tsujikawa
dc2a51b54a
2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Discard torrent file if path data in it contains directory
traversal directives. Discard metalink:file element in Metalink3
format if its name attribute contains directory traversal
directives. Ignore name attribute of metalink:signature element
in Metalink3 format if it contains directory traversal directives.
* src/MetalinkParserStateV3Impl.cc
* src/bittorrent_helper.cc
* src/message.h
* test/BittorrentHelperTest.cc
* test/Makefile.am
* test/MetalinkProcessorTest.cc
* test/metalink3-dirtraversal.xml
* test/test.xml
2010-02-27 08:22:58 +00:00
Tatsuhiro Tsujikawa
513a6bd12d
2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed useless comment
* src/MetalinkParserStateV4Impl.cc
2010-02-27 07:46:12 +00:00
Tatsuhiro Tsujikawa
2a6775e80b
2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Supported name attribute of metalink::metaurl element and
multi-file torrent with Metalink4. Files with same metaurl are
grouped and downloaded in one RequestGroup.
* src/BtDependency.cc
* src/FileEntry.h
* src/Metalink2RequestGroup.cc
* src/Metalink2RequestGroup.h
* src/MetalinkEntry.cc
* src/MetalinkEntry.h
* src/MetalinkHelper.cc
* src/MetalinkHelper.h
* src/MetalinkMetaurl.cc
* src/MetalinkMetaurl.h
* src/MetalinkParserController.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
* test/BtDependencyTest.cc
* test/MetalinkHelperTest.cc
2010-02-26 15:37:08 +00:00
Tatsuhiro Tsujikawa
5032394c6a
2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Store name attribute of metalink:metaurl element in MetalinkMetaurl.
* src/MetalinkMetaurl.h
* src/MetalinkParserController.cc
* src/MetalinkParserController.h
* src/MetalinkParserStateMachine.cc
* src/MetalinkParserStateMachine.h
* src/MetalinkParserStateV4Impl.cc
* test/MetalinkProcessorTest.cc
* test/metalink4-dirtraversal.xml
2010-02-26 08:55:10 +00:00
Tatsuhiro Tsujikawa
15c1f64023
2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added MetalinkMetaurl class. It corresponds to metalink:metaurl
element.
* src/Makefile.am
* src/Metalink2RequestGroup.cc
* src/MetalinkEntry.cc
* src/MetalinkEntry.h
* src/MetalinkMetaurl.cc
* src/MetalinkMetaurl.h
* src/MetalinkParserController.cc
* src/MetalinkParserController.h
* src/MetalinkParserStateMachine.cc
* src/MetalinkParserStateMachine.h
* src/MetalinkParserStateV4Impl.cc
* src/MetalinkParserStateV4Impl.h
* test/MetalinkProcessorTest.cc
2010-02-25 16:00:24 +00:00
Tatsuhiro Tsujikawa
3880a5f71b
2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added Metalink4 support. Currently, name attribute of
metalink::metaurl is ignored and multi-file torrent cannot be used
with Metalink4.
* doc/aria2c.1.txt
* src/DownloadHandlerConstants.cc
* src/ExpatMetalinkProcessor.cc
* src/Makefile.am
* src/Metalink2RequestGroup.cc
* src/MetalinkEntry.cc
* src/MetalinkEntry.h
* src/MetalinkParserController.cc
* src/MetalinkParserController.h
* src/MetalinkParserState.h
* src/MetalinkParserStateImpl.cc
* src/MetalinkParserStateImpl.h
* src/MetalinkParserStateMachine.cc
* src/MetalinkParserStateMachine.h
* src/MetalinkParserStateV3Impl.cc
* src/MetalinkParserStateV3Impl.h
* src/MetalinkParserStateV4Impl.cc
* src/MetalinkParserStateV4Impl.h
* src/MetalinkResource.cc
* src/MetalinkResource.h
* src/Metalinker.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/XML2SAXMetalinkProcessor.cc
* src/messageDigest.cc
* src/util.cc
* src/util.h
* test/Makefile.am
* test/MetalinkEntryTest.cc
* test/MetalinkParserControllerTest.cc
* test/MetalinkProcessorTest.cc
* test/MetalinkerTest.cc
* test/UtilTest.cc
* test/metalink4-attrs.xml
* test/metalink4-dirtraversal.xml
* test/metalink4.xml
2010-02-25 14:40:18 +00:00
Tatsuhiro Tsujikawa
fa6fd758af
2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added aiFlags argument to getInterfaceAddress(). Use
AI_NUMERICHOST to find interface specified using
--bt-lpd-interface option to avoid time-consuming address lookup.
* src/BtSetup.cc
* src/SocketCore.cc
* src/SocketCore.h
2010-02-23 13:50:35 +00:00
Tatsuhiro Tsujikawa
232deb47b5
2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
is bad in LpdMessageReceiver.
* src/LpdMessage.h
* src/LpdMessageReceiver.cc
* src/LpdMessageReceiver.h
* src/LpdReceiveMessageCommand.cc
* test/LpdMessageReceiverTest.cc
2010-02-22 16:11:33 +00:00
Tatsuhiro Tsujikawa
6ae5882f3c
2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-lpd-interface option to specify the interface to use
for Local Peer Discovery. LpdMessageDispatcher object now has its
own socket. LpdMessageReceiver's socket is binded to multicast
address to only receive multicast packets.
* src/BtSetup.cc
* src/LpdMessageDispatcher.cc
* src/LpdMessageDispatcher.h
* src/LpdMessageReceiver.cc
* src/LpdMessageReceiver.h
* src/LpdReceiveMessageCommand.cc
* src/LpdReceiveMessageCommand.h
* src/OptionHandlerFactory.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/LpdMessageDispatcherTest.cc
* test/LpdMessageReceiverTest.cc
2010-02-22 15:58:05 +00:00
Tatsuhiro Tsujikawa
6f0fff2a5f
2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Put the portion of code to get interface addresses in
SocketCore::bindAddress() into newly added getInterfaceAddress().
* src/SocketCore.cc
* src/SocketCore.h
2010-02-21 15:21:21 +00:00
Tatsuhiro Tsujikawa
8f9af67b99
2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten util::parseInt() and parseUInt()
* src/util.cc
2010-02-21 15:04:14 +00:00
Tatsuhiro Tsujikawa
aa2036a70d
2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error with mingw32 cross compiler. Defined
a2_sockopt_t as void* for the target systems other than mingw32.
* src/SocketCore.cc
* src/a2netcompat.h
2010-02-21 12:50:32 +00:00
Tatsuhiro Tsujikawa
ab0662e580
2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed 'always true' condition
* src/util.cc
2010-02-20 14:36:57 +00:00
Tatsuhiro Tsujikawa
9281f11264
2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added Local Peer Discovery. It is disabled by default. Use
--bt-enable-lpd to enable the function.
* src/BtConstants.h
* src/BtSetup.cc
* src/LpdDispatchMessageCommand.cc
* src/LpdDispatchMessageCommand.h
* src/LpdMessage.h
* src/LpdMessageDispatcher.cc
* src/LpdMessageDispatcher.h
* src/LpdMessageReceiver.cc
* src/LpdMessageReceiver.h
* src/LpdReceiveMessageCommand.cc
* src/LpdReceiveMessageCommand.h
* src/Makefile.am
* src/OptionHandlerFactory.cc
* src/Peer.cc
* src/Peer.h
* src/PeerInteractionCommand.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* src/util.cc
* src/util.h
* test/LpdMessageDispatcherTest.cc
* test/LpdMessageReceiverTest.cc
* test/Makefile.am
2010-02-20 14:23:25 +00:00
Tatsuhiro Tsujikawa
aee471e52c
2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
User-defined custom request headers specified by --header option
now override builtin headers if they have same name.
* src/HttpRequest.cc
* src/HttpRequest.h
* test/HttpRequestTest.cc
2010-02-20 12:55:23 +00:00
Tatsuhiro Tsujikawa
f1ee4045c2
2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewirtten util::isNumber()
* src/util.cc
2010-02-19 14:33:39 +00:00
Tatsuhiro Tsujikawa
f77ea4721c
2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
because without it localized error messages are not printed
correctly.
* src/Platform.cc
2010-02-19 11:28:27 +00:00
Tatsuhiro Tsujikawa
780aaf9c80
2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added unit tests for util::getContentDispositionFilename() from
http://greenbytes.de/tech/tc2231/ Fixed the function so that added
tests are passed.
* src/util.cc
* test/UtilTest.cc
2010-02-19 10:54:40 +00:00
Tatsuhiro Tsujikawa
cc056289e7
2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed setlocale() for LC_CTYPE. It may affect isxdigit in
util.cc
* src/Platform.cc
2010-02-18 13:55:08 +00:00
Tatsuhiro Tsujikawa
2da32876a2
2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Support RFC2231 "Parameter Value Character Set and Language
Information" in Content-Disposition header.
* src/HttpResponse.cc
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-02-17 16:09:19 +00:00
Tatsuhiro Tsujikawa
dfb40cb729
2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Small optimization for A2_WOULDBLOCK(e)
* src/SocketCore.cc
2010-02-16 14:53:11 +00:00
Tatsuhiro Tsujikawa
71d7a162d6
2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Check both EAGAIN and EWOULDBLOCK
* src/SocketCore.cc
2010-02-15 13:57:51 +00:00
Tatsuhiro Tsujikawa
3842161f9b
2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed ret == 0 checking for SSL_read(), SSL_write() and
SSL_peek() because the checks are done in the caller. In
SocketBuffer::send(), throw exception if nothing could be written
and socket error was not EWOULDBLOCK
* src/SocketBuffer.cc
* src/SocketCore.cc
2010-02-15 13:02:14 +00:00
Tatsuhiro Tsujikawa
a6a174a0b2
2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed error code handling so that it can handle Winsock2 error
code.
* src/SocketCore.cc
* src/SocketCore.h
2010-02-15 12:47:10 +00:00
Tatsuhiro Tsujikawa
2097b5e29a
2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that aria2 doesn't handle return value if error
occurred before download begins.
* src/MultiUrlRequestInfo.cc
* src/main.cc
2010-02-12 13:53:52 +00:00
Tatsuhiro Tsujikawa
1a04d2913e
2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed SegmentManFactory class.
* src/AbstractSegmentManFactory.h
* src/DefaultSegmentManFactory.cc
* src/DefaultSegmentManFactory.h
* src/Makefile.am
* src/RequestGroup.cc
* src/RequestGroup.h
* src/SegmentManFactory.h
2010-02-11 11:42:20 +00:00
Tatsuhiro Tsujikawa
4354c674ab
2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Destroyed digest context after getting calculated hash.
* src/Piece.cc
* src/Piece.h
2010-02-11 08:33:58 +00:00
Tatsuhiro Tsujikawa
91127ed864
2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed BitfieldManFactory class.
* src/BitfieldManFactory.cc
* src/BitfieldManFactory.h
* src/DefaultPieceStorage.cc
* src/Makefile.am
* src/PeerSessionResource.cc
* src/Piece.cc
* src/main.cc
* test/DefaultPieceStorageTest.cc
2010-02-11 08:28:41 +00:00
Tatsuhiro Tsujikawa
b89e306599
2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused methods from BitfieldMan class. Moved
getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
class.
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/BitfieldManFactory.cc
* src/BitfieldManFactory.h
* src/bitfield.h
* src/main.cc
* test/BitfieldManTest.cc
* test/DefaultPieceStorageTest.cc
2010-02-11 08:22:37 +00:00
Tatsuhiro Tsujikawa
e3e3f0438d
2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved getFirstNMissingIndex to bitfield.h and made it return the
number of appended indexes.
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/Piece.cc
* src/Piece.h
* src/bitfield.h
* test/BitfieldManTest.cc
2010-02-11 07:24:06 +00:00
Tatsuhiro Tsujikawa
ccc552cec9
2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
unused block indexes at once instead of calling
getFirstMissingUnusedIndex() multiple times. Made use of it in
Piece class and DefaultBtRequestFactory class via Piece class.
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/DefaultBtRequestFactory.cc
* src/Piece.cc
* src/Piece.h
* test/BitfieldManTest.cc
2010-02-10 15:07:06 +00:00
Tatsuhiro Tsujikawa
762580ba8c
2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use std::make_pair(...)
* src/DHTMessageTracker.cc
2010-02-10 13:08:28 +00:00
Tatsuhiro Tsujikawa
aff9978220
2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use std::make_pair(...)
* src/bittorrent_helper.cc
2010-02-10 13:07:32 +00:00
Tatsuhiro Tsujikawa
43cd16b4ff
2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
urlencode(removeFragment(...)) in parseUrl(...)
* src/Request.cc
2010-02-10 13:04:42 +00:00
Tatsuhiro Tsujikawa
e227e53d7b
2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Wrapped logger->debug(...) with if(logger->debug()) { ... }
* src/AbstractCommand.cc
* src/AdaptiveURISelector.cc
* src/BtPieceMessage.cc
* src/BtPortMessage.cc
* src/CreateRequestCommand.cc
* src/DHTAbstractNodeLookupTask.cc
* src/DHTBucket.cc
* src/DHTGetPeersCommand.cc
* src/DHTMessageDispatcherImpl.cc
* src/DHTMessageFactoryImpl.cc
* src/DHTMessageTracker.cc
* src/DHTPeerAnnounceStorage.cc
* src/DHTRoutingTable.cc
* src/DHTSetup.cc
* src/DefaultBtAnnounce.cc
* src/DefaultBtInteractive.cc
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtMessageReceiver.cc
* src/DefaultBtProgressInfoFile.cc
* src/DefaultBtRequestFactory.cc
* src/DefaultPeerStorage.cc
* src/DefaultPieceStorage.cc
* src/DownloadCommand.cc
* src/DownloadEngine.cc
* src/EpollEventPoll.cc
* src/FileAllocationCommand.cc
* src/FileEntry.cc
* src/FtpNegotiationCommand.cc
* src/HandshakeExtensionMessage.cc
* src/HttpListenCommand.cc
* src/HttpServer.cc
* src/HttpSkipResponseCommand.cc
* src/IteratableChunkChecksumValidator.cc
* src/Logger.h
* src/MSEHandshake.cc
* src/MetalinkPostDownloadHandler.cc
* src/MultiDiskAdaptor.cc
* src/PeerAbstractCommand.cc
* src/PeerConnection.cc
* src/PeerListenCommand.cc
* src/PeerReceiveHandshakeCommand.cc
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/SegmentMan.cc
* src/SelectEventPoll.cc
* src/ServerStat.cc
* src/SimpleBtMessage.cc
* src/SocketCore.cc
* src/TrackerWatcherCommand.cc
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataRequestFactory.cc
* src/UTMetadataRequestTracker.cc
* src/XmlRpcMethod.cc
2010-02-09 12:20:20 +00:00
Tatsuhiro Tsujikawa
ce2b9ed15a
2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed log level from debug to info
* src/BtDependency.cc
* src/BtPostDownloadHandler.cc
2010-02-08 14:24:20 +00:00
Tatsuhiro Tsujikawa
da682bd6bd
2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused PeerSessionResource::_latency.
* src/BtConstants.h
* src/BtPieceMessage.cc
* src/Peer.cc
* src/Peer.h
* src/PeerSessionResource.cc
* src/PeerSessionResource.h
* test/PeerSessionResourceTest.cc
2010-02-08 12:31:13 +00:00
Tatsuhiro Tsujikawa
978258d2a4
2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that --file-allocation=falloc doesn't work with
single file download.
* src/AbstractSingleDiskAdaptor.cc
2010-02-06 15:55:31 +00:00
Tatsuhiro Tsujikawa
01fc3204f2
2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Remove fragment from redirected URI.
* src/Request.cc
* test/RequestTest.cc
2010-02-03 13:49:22 +00:00
Tatsuhiro Tsujikawa
76aad1de2b
2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Drop legacy ifdef for ares support and code cleanup.
* src/AsyncNameResolver.cc
* src/AsyncNameResolver.h
2010-02-02 13:49:51 +00:00
Tatsuhiro Tsujikawa
abcc014675
2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call ares_library_init and ares_library_cleanup if they are
available. Some code cleanups.
* src/Platform.cc
2010-02-02 13:48:16 +00:00
Tatsuhiro Tsujikawa
3f7df00d98
2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call ares_process_fd() each time after epoll to handle timeout.
* src/EpollEventPoll.cc
* src/EpollEventPoll.h
2010-02-01 15:21:41 +00:00
Tatsuhiro Tsujikawa
ace04f4c80
2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Suppressed type-cast compiler warning
* src/CookieStorage.cc
2010-01-31 14:04:44 +00:00
Tatsuhiro Tsujikawa
c0f642df52
2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error on Mac OS X.
* src/CookieStorage.h
2010-01-31 12:36:18 +00:00
Tatsuhiro Tsujikawa
cdfbae327b
2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten help message for --allow-overwrite option.
* doc/aria2c.1.txt
* src/usage_text.h
2010-01-31 08:14:40 +00:00
Tatsuhiro Tsujikawa
a4870cacb4
2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bittorrent key to the response of tellStatus XML-RPC method.
The associated value of the key is a struct and contains data
retrieved from .torrent file, such as name, announce-list,
comment, etc.
* doc/aria2c.1.txt
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2010-01-31 08:05:21 +00:00
Tatsuhiro Tsujikawa
100ad4e18a
2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed parse(std::istream&) and parse(const std::string&) from
CookieParser.
* src/CookieParser.cc
* src/CookieParser.h
* test/CookieParserTest.cc
* test/cookietest.txt: Removed
2010-01-29 12:12:21 +00:00
Tatsuhiro Tsujikawa
58f51205c6
2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that cookie for domain a.b.c is not sent to the host
a.b.c if no other cookies are stored. Fixed the bug that
Cookie::markOriginServerOnly() is not called when cookies are
loaded from file/sqlite3 database.
* src/Cookie.h
* src/CookieStorage.cc
* src/NsCookieParser.cc
* src/Sqlite3MozCookieParser.cc
* test/CookieStorageTest.cc
* test/NsCookieParserTest.cc
* test/Sqlite3MozCookieParserTest.cc
* test/cookies.sqlite
* test/nscookietest.txt
2010-01-29 12:04:36 +00:00
Tatsuhiro Tsujikawa
6645df820e
2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed RequestGroup::initSegmentMan(). Guaranteed that either
both _pieceStorage and _segmentMan are initialized or they are
not.
* src/RequestGroup.cc
* src/RequestGroup.h
* test/BtDependencyTest.cc
2010-01-29 11:03:14 +00:00
Tatsuhiro Tsujikawa
0bf9c31afc
2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced "." with A2STR::DOT_C
* src/AbstractCommand.cc
* src/Cookie.cc
* src/DownloadContext.cc
* src/FtpConnection.cc
* src/RequestGroup.cc
* src/util.cc
2010-01-28 14:33:23 +00:00
Tatsuhiro Tsujikawa
eb4116ae57
2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced isNumberAndDotsNotation() with isNumericHost().
isNumericHost() can handle IPv6 address.
* src/Cookie.cc
* src/CookieStorage.cc
* src/util.cc
* src/util.h
* test/CookieTest.cc
* test/UtilTest.cc
2010-01-28 14:25:16 +00:00
Tatsuhiro Tsujikawa
994d58a4a4
2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Included A2STR.h
* src/CookieStorage.cc
2010-01-28 14:05:42 +00:00
Tatsuhiro Tsujikawa
4043b6ccae
2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Cookie storage.
* src/Cookie.cc
* src/Cookie.h
* src/CookieParser.cc
* src/CookieStorage.cc
* src/CookieStorage.h
* src/a2functional.h
* test/CookieParserTest.cc
* test/CookieStorageTest.cc
* test/CookieTest.cc
* test/HttpResponseTest.cc
* test/TestUtil.h
* test/a2functionalTest.cc
2010-01-28 14:01:50 +00:00
Tatsuhiro Tsujikawa
60c16887e6
2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Handle redirected URI which is not properly percent encoded.
* src/Request.cc
* test/RequestTest.cc
2010-01-26 12:39:22 +00:00
Tatsuhiro Tsujikawa
69850ada49
2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that causes segmentaiton fault when aria2 sees '404
not found' in the N times(N is where --max-file-not-found=N, N>0)
in a row without single '200 OK' response.
* src/RequestGroup.cc.
2010-01-25 12:48:47 +00:00
Tatsuhiro Tsujikawa
b39ede01a7
2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error with i586-mingw32msvc-g++. Always Cut console
readout by 80 characters in mingw32 build. Catch exception in
DHTMessageReceiver::receiveMessage().
* src/AbstractDiskWriter.cc
* src/ConsoleStatCalc.cc
* src/DHTMessageReceiver.cc
* src/File.cc
* src/RequestGroupMan.cc
* src/a2io.h
* test/FileTest.cc
2010-01-24 13:49:07 +00:00
Tatsuhiro Tsujikawa
46605f66c3
2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error with intel compiler
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2010-01-24 12:49:58 +00:00
Tatsuhiro Tsujikawa
89982bb10f
2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed broken OptionParser::findByName().
* src/OptionParser.cc
* test/OptionParserTest.cc
2010-01-23 12:10:43 +00:00
Tatsuhiro Tsujikawa
226160f84f
2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without GNUTLS/OpenSSL.
* src/util.cc
2010-01-23 10:02:56 +00:00
Tatsuhiro Tsujikawa
2eb26c2513
2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed compression level to Z_DEFAULT_COMPRESSION.
* src/GZipEncoder.cc
2010-01-23 09:24:56 +00:00
Tatsuhiro Tsujikawa
06a52cad02
2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
aria2 now returns gzip compressed XML-RPC response if XML-RPC
client accepts gzip content encoding.
* src/A2STR.cc
* src/A2STR.h
* src/GZipEncoder.cc
* src/GZipEncoder.h
* src/HttpHeader.cc
* src/HttpHeader.h
* src/HttpServer.cc
* src/HttpServer.h
* src/HttpServerBodyCommand.cc
* src/HttpServerCommand.cc
* src/Makefile.am
* src/XmlRpcResponse.cc
* src/XmlRpcResponse.h
* test/GZipEncoderTest.cc
* test/Makefile.am
2010-01-22 14:09:39 +00:00
Tatsuhiro Tsujikawa
b5ee1b5071
2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten toTagString
* src/NameMatchOptionHandler.cc
* test/OptionHandlerTest.cc
2010-01-17 13:58:42 +00:00
Tatsuhiro Tsujikawa
2d74b16583
2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added dir and files key to the response struct of aria2.tellStatus
XML-RPC method. The value associated with files key is the list
of files. Its element is the same struct used in aria2.getFiles
XML-RPC method. Added uris key to the response struct of
aria2.getFiles XML-RPC method. The value associated with uris key
is the list of URIs. Its element is the same struct used in
aria2.getUris XML-RPC method.
* doc/aria2c.1.txt
* src/XmlRpcMethodImpl.cc
* test/XmlRpcMethodTest.cc
2010-01-17 13:54:42 +00:00
Tatsuhiro Tsujikawa
f2722cb870
2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added aria2.getSessionInfo XML-RPC method. This method returns a
struct containing Session ID, which is generated each time when
aria2 is invoked.
* doc/aria2c.1.txt
* doc/xmlrpc/aria2rpc
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2010-01-17 11:55:22 +00:00
Tatsuhiro Tsujikawa
87b18019b4
2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved generateRandomKey() from bittorrent_helper to util.
* src/DHTBucket.cc
* src/DHTNode.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/util.cc
* src/util.h
2010-01-17 10:05:53 +00:00
Tatsuhiro Tsujikawa
f9c6c0ccd8
2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Now offset argument in aria2.tellWaiting and aria2.tellStopped
accepts a negative integer. 'offset' == -1 points last download
in the waiting queue and 'offset' == -2 points the download before
the last download, and so on. The downloads in the response are in
reversed order.
* doc/aria2c.1.txt
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2010-01-17 09:50:38 +00:00
Tatsuhiro Tsujikawa
c0308e1ea4
2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --human-readable option. This option, when true is given,
prints sizes and speed in human readable format(e.g., 1.2Ki,
3.4Mi) in the console readout. The default value is true and it
looks exactly the same as aria2-1.8.0. So the 'new feature'
appears when false is given. In this case, sizes and speed are
printed without in bytes. No Ki, Mi units conversion is used.
This may be useful for a program to parse the output of aria2.
* doc/aria2c.1.txt
* src/ConsoleStatCalc.cc
* src/ConsoleStatCalc.h
* src/OptionHandlerFactory.cc
* src/main.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2010-01-17 07:23:53 +00:00
Tatsuhiro Tsujikawa
c022939c8f
2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
option accepts empty string "". When "" is given, it erases
previously defined proxy.
* doc/aria2c.1.txt
* src/OptionHandlerImpl.h
* src/usage_text.h
* test/OptionHandlerTest.cc
2010-01-15 09:04:47 +00:00
Tatsuhiro Tsujikawa
c16b346bb9
2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup for proxy URI handling.
* src/AbstractCommand.cc
2010-01-15 08:47:00 +00:00
Tatsuhiro Tsujikawa
a77d96e2cf
2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-metadata-only option. If true is given to this option,
aria2 downloads metadata only. The file(s) described in metadata
will not be downloaded. This option has effect only when
BitTorrent Magnet URI is used. See also --bt-save-metadata option.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/UTMetadataPostDownloadHandler.cc
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2010-01-12 14:30:47 +00:00
Tatsuhiro Tsujikawa
f3b1defc97
2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed memory leak. Commands stored in std::deque<Command*> are not
deleted when exception is thrown. Make sure that when passing
std::deque<Command*> to function to store Commands, handle
exception and delete these Commands.
* src/AbstractCommand.cc
* src/CheckIntegrityCommand.cc
* src/FileAllocationCommand.cc
* src/RequestGroup.cc
* src/TrackerWatcherCommand.cc
2010-01-11 15:35:12 +00:00
Tatsuhiro Tsujikawa
768f78f771
2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced '/' and '_' with '_' in HTTP/FTP filename.
* src/A2STR.cc
* src/A2STR.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-01-11 14:32:20 +00:00
Tatsuhiro Tsujikawa
4c89170488
2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Treat --dir="" as --dir="."
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/Metalink2RequestGroup.cc
* src/UTMetadataPostDownloadHandler.cc
* src/bittorrent_helper.cc
* src/download_helper.cc
* src/util.cc
* src/util.h
* test/UtilTest.cc
2010-01-11 14:01:20 +00:00
Tatsuhiro Tsujikawa
2b62660e49
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code clean up.
* src/main.cc
2010-01-10 07:57:39 +00:00
Tatsuhiro Tsujikawa
558541ec48
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reset GID to 1 when they reach maximum value. Rewritten
CUIDCounter::newID()
* src/CUIDCounter.h
* src/RequestGroup.cc
* src/RequestGroup.h
2010-01-10 07:51:45 +00:00
Tatsuhiro Tsujikawa
658442b762
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --http-no-cache option. When true is given, aria2 sends
Cache-Control: no-cache and Pragma: no-cache header to avoid
cached content. If false is given , these headers are not sent
and you can add Cache-Control header with a directive you like
using --header option.
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/OptionHandlerFactory.cc
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2010-01-10 07:33:20 +00:00
Tatsuhiro Tsujikawa
84389aefe2
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed Logger from OptionParser. When OptionParser is used to
parse options at bootstrap, LogFactory is not configured yet
properly. When LogFactory is used in OptionParser, it initializes
itself to return a logger which has no ability to write log to the
disk.
* src/OptionParser.cc
* src/OptionParser.h
2010-01-10 07:19:53 +00:00
Tatsuhiro Tsujikawa
ea86dbb245
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added following sentance to the help message of --out option:
--out option is ignored when -Z is used.
* doc/aria2c.1.txt
* src/usage_text.h
2010-01-10 06:55:35 +00:00
Tatsuhiro Tsujikawa
d94c6b0c9c
2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-save-metadata option to -i list options.
* doc/aria2c.1.txt
* src/download_helper.cc
2010-01-10 06:48:34 +00:00
Tatsuhiro Tsujikawa
be20b46c19
2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
additional libraries.
* src/MultiUrlRequestInfo.cc
* src/NameResolver.cc
* src/SelectEventPoll.cc
* src/SelectEventPoll.h
* src/SocketCore.cc
* src/SocketCore.h
* src/a2netcompat.h
* src/daemon.cc
* src/main.cc
2010-01-09 13:06:45 +00:00
Tatsuhiro Tsujikawa
b950da1841
2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo.
* src/DHTMessageReceiver.cc
2010-01-09 09:43:04 +00:00
Tatsuhiro Tsujikawa
d56459bb88
2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that causes segmentation fault if unknown option is
put in aria2.conf file. BUG#2928303
* src/OptionParser.cc
* src/OptionParser.h
* src/option_processing.cc
* test/OptionParserTest.cc
2010-01-09 09:35:18 +00:00
Tatsuhiro Tsujikawa
e56f2afbbf
2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Ignore port message with port=0.
* src/BtPortMessage.cc
2010-01-07 12:49:51 +00:00
Tatsuhiro Tsujikawa
4c64d3629d
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused function.
* src/SharedHandle.h
2010-01-06 14:32:50 +00:00
Tatsuhiro Tsujikawa
e3a61f0fd8
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Find pooled socket using all cached addresses.
* src/DNSCache.h
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/InitiateConnectionCommand.cc
2010-01-06 14:31:41 +00:00
Tatsuhiro Tsujikawa
ffdf21b87b
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated copyright year.
* src/version_usage.cc
2010-01-06 13:08:05 +00:00
Tatsuhiro Tsujikawa
e237a6ebda
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Pool connection if _contentEncodingDecoder is used and server
supports persistent connection.
* src/HttpDownloadCommand.cc
2010-01-06 13:02:10 +00:00
Tatsuhiro Tsujikawa
f6a3ca0b1e
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc.
* src/DownloadCommand.cc
2010-01-06 12:52:14 +00:00
Tatsuhiro Tsujikawa
4db349c1f3
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Untabify. Fixed one line in copyright which is longer than 80
columns.
* src
* test
2010-01-05 16:01:46 +00:00
Tatsuhiro Tsujikawa
9f5ad4dc00
2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed usage of --bt-save-metadata option.
* src/usage_text.h
2009-12-27 05:41:05 +00:00
Tatsuhiro Tsujikawa
c92975aefb
2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
causes name resolution error when none of network interface has
IPv4 address.
* src/main.cc
2009-12-27 03:40:38 +00:00
Tatsuhiro Tsujikawa
606360779f
2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use info hash as a filename when saving BitTorrent metadata.
* src/UTMetadataPostDownloadHandler.cc
* test/UTMetadataPostDownloadHandlerTest.cc
2009-12-27 02:42:43 +00:00
Tatsuhiro Tsujikawa
63c6a16d40
2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added signal handler for SIGHUP to save .aria2 file when terminal
is closed. The handler is the same one for SIGINT and SIGTERM.
* src/MultiUrlRequestInfo.cc
2009-12-26 13:18:23 +00:00
Tatsuhiro Tsujikawa
1c331e901a
2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined method name in XmlRpcMethod subclasses.
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-12-26 13:07:27 +00:00
Tatsuhiro Tsujikawa
af20aea88c
2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added system.multicall XML-RPC method.
* src/XmlRpcMethod.cc
* src/XmlRpcMethod.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-12-26 10:16:56 +00:00
Tatsuhiro Tsujikawa
838fcbbecd
2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Check structure depth when decoding.
* src/bencode.cc
* src/bencode.h
* test/BencodeTest.cc
2009-12-25 14:53:11 +00:00
Tatsuhiro Tsujikawa
4e294c7129
2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added tellStopped XML-RPC method. This method returns stopped
download in the specified range. It takes same parameters with
tellWaiting XML-RPC method. offset = 0 means the oldest download.
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-12-25 14:46:22 +00:00
Tatsuhiro Tsujikawa
88bcc6e681
2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use AI_ADDRCONFIG flag if it is available. Refactored so that
getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
when conducting unit tests because they fail if networking
interface is not configured with IPv4 address.
* src/NameResolver.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/a2netcompat.h
* test/AllTest.cc
2009-12-24 14:59:47 +00:00
Tatsuhiro Tsujikawa
1da1665c24
2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined static string constants for efficiency.
* src/XmlRpcMethodImpl.cc
2009-12-24 13:39:36 +00:00
Tatsuhiro Tsujikawa
2745d85597
2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-save-metadata option. When true is given, it saves
metadata as .torrent file. This option has effect only when
BitTorrent Magnet URI is used. The filename is name in metadata
with suffix .torrent. The directory to be saved is the same
directory where download file is saved. If the same file already
exists, metdata is not saved.
* src/OptionHandlerFactory.cc
* src/UTMetadataPostDownloadHandler.cc
* src/UTMetadataPostDownloadHandler.h
* src/message.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/UTMetadataDataExtensionMessageTest.cc
2009-12-23 13:21:12 +00:00
Tatsuhiro Tsujikawa
9b933ca406
2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added util::saveAs() function. Use it in Signature::save().
* src/Signature.cc
* src/util.cc
* src/util.h
2009-12-23 13:16:57 +00:00
Tatsuhiro Tsujikawa
ace9f30d49
2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refactored RequestGroupMan::changeReservedGroupPosition()
* src/RequestGroupMan.cc
2009-12-23 04:19:49 +00:00
Tatsuhiro Tsujikawa
dd98c64161
2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added changePosition XML-RPC method. It takes 3 parameters: gid,
pos and how. This method changes the position of download denoted
by gid. If how is POS_SET, it moves the download to a position
relative to the beginning of the queue. If how is POS_CUR, it
moves the download to a position relative to the current
position. If how is POS_END, it moves the download to a position
relative to the end of the queue. If the destination position is
less than 0 or beyond the end of the queue, it moves the download
to the beginning or the end of the queue respectively. Returns
the destination position.
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/RequestGroupManTest.cc
* test/XmlRpcMethodTest.cc
2009-12-21 15:17:34 +00:00
Tatsuhiro Tsujikawa
26e319df43
2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added getOption and getGlobalOption XML-RPC method. getOption
takes GID as a parameter and returns its options as struct.
getGlobalOption takes no parameter and returns global
options. Because global option is used as a template for the
option of newly added downloads, it includes options returned by
getOption.
* src/Option.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-12-20 14:33:42 +00:00
Tatsuhiro Tsujikawa
e77e1ec24d
2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Sort _optionHandlers in OptionParser by name in ascending order.
Use vector instead of deque for efficiency.
* src/OptionHandler.h
* src/OptionHandlerFactory.h
* src/OptionParser.cc
* src/OptionParser.h
* src/version_usage.cc
* test/OptionParserTest.cc
2009-12-20 14:25:51 +00:00
Tatsuhiro Tsujikawa
6c6e7f2c51
2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/XmlRpcMethod.cc
2009-12-20 14:17:32 +00:00
Tatsuhiro Tsujikawa
2952abf064
2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added following 2 keys, followedBy and belongsTo, to the response
of tellStatus.
followedBy: List of GIDs which are generated by the consequence of
this download. For example, when aria2 downloaded Metalink file,
it generates downloads described in it(see *--follow-metalink*
option). This value is useful to track these auto generated
downloads. If there is no such downloads, this key will not be
included in the response.
belongsTo: GID of a parent download. Some downloads are a part of
another download. For example, if a file in Metalink has
BitTorrent resource, the download of .torrent is a part of that
file. If this download has no parent, this key will not be
included in the response.
* src/BtPostDownloadHandler.cc
* src/DownloadResult.h
* src/Metalink2RequestGroup.cc
* src/MetalinkPostDownloadHandler.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/UTMetadataPostDownloadHandler.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-12-20 09:49:43 +00:00
Tatsuhiro Tsujikawa
7c12d43a42
2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Assigned BObject in BDE() to avoid segmentation fault when calling
methods of BDE::none().
* src/BDE.cc
2009-12-20 09:38:39 +00:00
Tatsuhiro Tsujikawa
0734dfa770
2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Show info hash in Magnet URI in upper case letters in -S output.
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
2009-12-18 06:32:14 +00:00
Tatsuhiro Tsujikawa
4171e7cadf
2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed old useless comment
* src/MultiUrlRequestInfo.cc
2009-12-18 06:30:42 +00:00
Tatsuhiro Tsujikawa
15c5d12737
2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that RequestGroupMan::downloadFinished() returns
true even if all downloads haven't finished, especially when
PostDownloadHandler is involved. Changed the condition so that it
only returns true if both _requestGroups and _reservedGroups are
empty.
* src/RequestGroupMan.cc
2009-12-13 07:45:22 +00:00
Tatsuhiro Tsujikawa
cd3552fbbb
2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Log listening port for BitTorrent/DHT in notice level.
* src/DHTConnectionImpl.cc
* src/PeerListenCommand.cc
2009-12-13 07:39:22 +00:00
Tatsuhiro Tsujikawa
d59cd9b74e
2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Enabled DHT by default because of Magnet URI support. To disable
DHT, use --enable-dht=false
* src/OptionHandlerFactory.cc
2009-12-11 13:06:26 +00:00
Tatsuhiro Tsujikawa
6c3a3fefa2
2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print Magnet URI in -S output.
* src/AnnounceList.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
2009-12-10 12:52:59 +00:00
Tatsuhiro Tsujikawa
ff10065699
2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refer Magnet URI in --help. Made some cosmetic changes.
* src/version_usage.cc
2009-12-10 12:32:47 +00:00
Tatsuhiro Tsujikawa
e296c00e33
2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated usage text for --metalink-file option.
* src/usage_text.h
2009-12-09 14:39:08 +00:00
Tatsuhiro Tsujikawa
74c6599906
2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
If '-' is given as an argument to --metalink-file option, aria2
reads Metalink file from stdin.
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/a2io.h
2009-12-09 14:32:12 +00:00
Tatsuhiro Tsujikawa
cc4a14a1bc
2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that aria2 listens wrong port if --interface option
is used.
* src/SocketCore.cc
2009-12-07 15:04:33 +00:00
Tatsuhiro Tsujikawa
8cd1d845f2
2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that query parameter in magnet URI is not decoded.
* src/magnet.cc
* test/MagnetTest.cc
2009-12-07 13:01:25 +00:00
Tatsuhiro Tsujikawa
58bb1fa266
2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Specified defaultSize as an argument for easy testing.
* src/util.cc
* src/util.h
* test/UtilTest.cc
2009-12-07 12:49:19 +00:00
Tatsuhiro Tsujikawa
151c0348d7
2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug --bt-prioritize-piece=tail is not working.
* src/util.cc
2009-12-06 12:44:08 +00:00
Tatsuhiro Tsujikawa
a41b927a57
2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set default value for SIZE in --bt-prioritize-piece to 1MiB.
* src/usage_text.h
* src/util.cc
* test/UtilTest.cc
2009-12-06 11:35:45 +00:00
Tatsuhiro Tsujikawa
45f681b9dc
2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Store all addresses found by getifaddrs() and getaddrinfo(). In
bind, try all addresses until success
* src/SocketCore.cc
* src/SocketCore.h
2009-12-06 08:25:41 +00:00
Tatsuhiro Tsujikawa
9a6a73dd96
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error if ENABLE_BITTORRENT is undefined.
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.cc
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
* test/ProtocolDetectorTest.cc
* test/XmlRpcMethodTest.cc
2009-12-05 11:35:18 +00:00
Tatsuhiro Tsujikawa
3a1a8868d5
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use last 8 bytes of peer ID as 'key' parameter for tracker request.
* src/DefaultBtAnnounce.cc
* src/DefaultBtAnnounce.h
* test/DefaultBtAnnounceTest.cc
2009-12-05 07:56:30 +00:00
Tatsuhiro Tsujikawa
c44cf31df7
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that connection is always dropped if handshake
message in extension protocol don't have metadata_size.
src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.cc
2009-12-05 07:51:04 +00:00
Tatsuhiro Tsujikawa
7bc6fc54a1
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that DHT is always enabled when BitTorrent Magnet
URI is supplied. Notify user that they should consider enabling
DHT if they use Magnet URI.
* src/RequestGroup.cc
2009-12-05 07:43:49 +00:00
Tatsuhiro Tsujikawa
4100ba77c3
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --disable-ipv6 option to disable IPv6.
* doc/aria2c.1.txt
* src/InitiateConnectionCommand.cc
* src/NameResolver.cc
* src/NameResolver.h
* src/OptionHandlerFactory.cc
* src/main.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-12-05 07:10:23 +00:00
Tatsuhiro Tsujikawa
a7709947f2
2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated usage text for --bt-prioritize-piece option.
* doc/aria2c.1.txt
* src/usage_text.h
2009-12-05 06:44:40 +00:00
Tatsuhiro Tsujikawa
625a102d1b
2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Halt metadata download immediately when metadata download is done.
Don't wait unresponsive tracker.
* src/ByteArrayDiskWriter.h
* src/DefaultBtInteractive.cc
* src/DefaultExtensionMessageFactory.cc
* src/DefaultExtensionMessageFactory.h
* src/PeerInteractionCommand.cc
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataDataExtensionMessage.h
* src/UTMetadataRequestExtensionMessage.cc
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataRequestExtensionMessageTest.cc
2009-12-04 12:48:54 +00:00
Tatsuhiro Tsujikawa
958c48abf9
2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Try resolved address in the order received from the resolver.
* src/DNSCache.h
2009-12-04 07:39:50 +00:00
Tatsuhiro Tsujikawa
6a546813ba
2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added debug logs.
* src/SocketCore.cc
2009-12-04 07:37:16 +00:00
Tatsuhiro Tsujikawa
5bb9eaec17
2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed type of tail to uint64_t
* src/util.cc
2009-12-03 14:51:17 +00:00
Tatsuhiro Tsujikawa
4156debe5c
2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --interface option. This feature binds sockets to given
interface. You can specify interface name, IP address and
hostname.
* configure.ac
* src/OptionHandlerFactory.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/main.cc
* src/message.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-12-03 14:41:08 +00:00
Tatsuhiro Tsujikawa
33579a8b24
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bt-prioritize-piece option to -i list.
* src/download_helper.cc
2009-11-29 12:39:17 +00:00
Tatsuhiro Tsujikawa
ddaad36680
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed --http-auth-scheme option since it doesn't do nothing.
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-11-29 10:28:24 +00:00
Tatsuhiro Tsujikawa
8f00669d7b
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Adjusted the number of peer info which get_peers reply message can
carry.
* src/DHTGetPeersReplyMessage.cc
2009-11-29 10:17:03 +00:00
Tatsuhiro Tsujikawa
e208302947
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added option --bt-prioritize-piece. This option instruct aria2 to
try to download first and last pieces of each file first. The
argument can contain 2 keywords:head and tail. To include both
keywords, they must be separated by comma. These keywords can take
one parameter, SIZE. For example , if head=SIZE is specified,
pieces in the range of first SIZE bytes of each file get higher
priority. tail=SIZE means the range of last SIZE bytes of each
file. SIZE can include K or M(1K = 1024, 1M = 1024K).
* src/DefaultPieceStorage.h
* src/Makefile.am
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/PriorityPieceSelector.cc
* src/PriorityPieceSelector.h
* src/RequestGroup.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* src/util.cc
* src/util.h
* test/Makefile.am
* test/MockPieceSelector.h
* test/PriorityPieceSelectorTest.cc
* test/UtilTest.cc
2009-11-29 06:43:38 +00:00
Tatsuhiro Tsujikawa
30ba476e9d
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* src/HttpRequest.h
2009-11-29 06:31:18 +00:00
Tatsuhiro Tsujikawa
5f082a9ff4
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In Magnet URI with tr parameter, put each announce URI in separate
tier.
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
2009-11-28 12:39:08 +00:00
Tatsuhiro Tsujikawa
6939be2765
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed ExtensionMessage::getBencodedData() as
ExtensionMessage::getPayload()
* src/BtExtendedMessage.cc
* src/ExtensionMessage.h
* src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.h
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataDataExtensionMessage.h
* src/UTMetadataRejectExtensionMessage.cc
* src/UTMetadataRejectExtensionMessage.h
* src/UTMetadataRequestExtensionMessage.cc
* src/UTMetadataRequestExtensionMessage.h
* src/UTPexExtensionMessage.cc
* src/UTPexExtensionMessage.h
* test/HandshakeExtensionMessageTest.cc
* test/MockExtensionMessage.h
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataRejectExtensionMessageTest.cc
* test/UTMetadataRequestExtensionMessageTest.cc
* test/UTPexExtensionMessageTest.cc
2009-11-28 12:32:07 +00:00
Tatsuhiro Tsujikawa
88bfe8b084
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call DownloadContext::setOwnerRequestGroup() in
RequestGroup::setDownloadContext().
* src/BtDependency.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/download_helper.cc
* test/DefaultBtMessageDispatcherTest.cc
* test/DefaultExtensionMessageFactoryTest.cc
* test/HandshakeExtensionMessageTest.cc
2009-11-28 10:12:04 +00:00
Tatsuhiro Tsujikawa
339795311b
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
Rewritten UTMetadataPostDownloadHandler. To create torrent data
from metadata, use new metadata2Torrent() function.
* src/BtDependency.cc
* src/UTMetadataPostDownloadHandler.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
* test/BtDependencyTest.cc
2009-11-28 09:58:49 +00:00
Tatsuhiro Tsujikawa
96205abc67
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use createRequestGroupForUri to create the download for torrent
file.
* src/Metalink2RequestGroup.cc
* test/Metalink2RequestGroupTest.cc
2009-11-28 09:21:12 +00:00
Tatsuhiro Tsujikawa
0390fae213
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* src/DownloadContext.h
2009-11-28 09:11:23 +00:00
Tatsuhiro Tsujikawa
591e9fa843
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use createRequestGroupForBitTorrent()
* src/BtPostDownloadHandler.cc
2009-11-28 09:10:20 +00:00
Tatsuhiro Tsujikawa
12145ef4c6
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added remove().
* src/Option.cc
* src/Option.h
2009-11-28 09:08:25 +00:00
Tatsuhiro Tsujikawa
b80de5e010
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed options which is only valid for URIs specified in
command-line. If they are left, because op is used as a template
for new RequestGroup(such as created in XML-RPC command,
BtPostDownloadHandler etc), they causes unintentional effect.
* src/main.cc
2009-11-28 09:07:21 +00:00
Tatsuhiro Tsujikawa
9f6c187be4
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refer to option value of PREF_OUT only in download_helper.
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
2009-11-28 09:05:50 +00:00
Tatsuhiro Tsujikawa
d33c7c7db1
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Now addUri XML-RPC method accepts BitTorrent Magnet URI.
* src/download_helper.cc
* src/download_helper.h
* src/XmlRpcMethodImpl.cc
2009-11-27 14:04:29 +00:00
Tatsuhiro Tsujikawa
a8d4fbad51
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-max-peers option to changeOption XML-RPC method.
* src/XmlRpcMethod.cc
* src/XmlRpcMethodImpl.cc
* test/XmlRpcMethodTest.cc
2009-11-27 13:07:08 +00:00
Tatsuhiro Tsujikawa
52f11b5a21
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed redundant DownloadContext::hasAttribute(...) calls.
* src/ConsoleStatCalc.cc
* src/RequestGroup.cc
* src/XmlRpcMethodImpl.cc
2009-11-26 13:16:02 +00:00
Tatsuhiro Tsujikawa
8ab55abf11
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the number of tracker request attempt from 5 to 2.
* src/TrackerWatcherCommand.cc
2009-11-26 13:14:19 +00:00
Tatsuhiro Tsujikawa
cb6604c88e
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use host and protocol in original URI, because URI selector
selects URI based on original URI, not redirected one.
* src/Request.cc
2009-11-26 13:09:15 +00:00
Tatsuhiro Tsujikawa
46d9f2de63
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug which causes segmentation fault with tellWaiting
XML-RPC method when BitTorrent download is waiting. The key of
BtRegistry is changed from info hash to GID, because it is
registered per RequestGroup, not info hash.
* src/BtRegistry.cc
* src/BtRegistry.h
* src/BtSetup.cc
* src/ConsoleStatCalc.cc
* src/InitiatorMSEHandshakeCommand.cc
* src/PeerInitiateConnectionCommand.cc
* src/PeerInteractionCommand.cc
* src/PeerInteractionCommand.h
* src/PeerReceiveHandshakeCommand.cc
* src/RequestGroup.cc
* src/XmlRpcMethodImpl.cc
* test/BtRegistryTest.cc
* test/XmlRpcMethodTest.cc
2009-11-25 15:49:20 +00:00
Tatsuhiro Tsujikawa
d0e0db1eb1
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-request-peer-speed-limit option to changeOption XML-RPC
method.
* src/XmlRpcMethod.cc
2009-11-25 12:47:09 +00:00
Tatsuhiro Tsujikawa
3fa6ce55f4
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that trackers in BitTorrent Magnet URI are not
inherited to generated RequestGroup.
* src/UTMetadataPostDownloadHandler.cc
* test/UTMetadataPostDownloadHandlerTest.cc
2009-11-24 16:42:55 +00:00
Tatsuhiro Tsujikawa
656cbd16a0
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Prepended "[METADATA]" before dn.
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
2009-11-24 16:39:52 +00:00
Tatsuhiro Tsujikawa
512be58217
2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Magnet URI parser.
* src/Makefile.am
* src/ProtocolDetector.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/download_helper.cc
* src/magnet.cc
* src/magnet.h
* test/BittorrentHelperTest.cc
* test/MagnetTest.cc
* test/Makefile.am
* test/ProtocolDetectorTest.cc
2009-11-24 14:47:42 +00:00
Tatsuhiro Tsujikawa
d2cefd8613
2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use hton64
* src/base32.cc
2009-11-24 13:08:51 +00:00
Tatsuhiro Tsujikawa
894165171c
2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added Base32 encoded BitTorrent Magnet Link support.
* src/Makefile.am
* src/base32.cc
* src/base32.h
* src/bittorrent_helper.cc
* test/Base32Test.cc
* test/BittorrentHelperTest.cc
* test/Makefile.am
2009-11-23 15:59:31 +00:00
Tatsuhiro Tsujikawa
6e8074c087
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added BitTorrent Magnet Link support. Base32 encoded link is not
supported yet. Fixed typo in method name in RequestGroup. In
metadataGetMode, don't show "Your share ratio was ..." message.
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
* src/DownloadHandlerFactory.cc
* src/DownloadHandlerFactory.h
* src/HandshakeExtensionMessage.cc
* src/Makefile.am
* src/Metalink2RequestGroup.cc
* src/PeerInteractionCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/UTMetadataPostDownloadHandler.cc
* src/UTMetadataPostDownloadHandler.h
* src/download_helper.cc
* test/HandshakeExtensionMessageTest.cc
* test/Makefile.am
* test/UTMetadataPostDownloadHandlerTest.cc
* test/UTMetadataRejectExtensionMessageTest.cc
2009-11-23 13:17:48 +00:00
Tatsuhiro Tsujikawa
95370fc11f
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In metadataGetMode, don't show SEEDING.
* src/ConsoleStatCalc.cc
2009-11-23 11:28:22 +00:00
Tatsuhiro Tsujikawa
c1730aeea9
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed ut_metadata data handling. Implemented
UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
metadata_size is received.
* src/DefaultExtensionMessageFactory.cc
* src/DefaultExtensionMessageFactory.h
* src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.h
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataDataExtensionMessage.h
* src/UTMetadataRequestExtensionMessage.cc
* src/UTMetadataRequestFactory.cc
* src/UTMetadataRequestFactory.h
* src/UTMetadataRequestTracker.cc
* src/UTMetadataRequestTracker.h
* test/DefaultExtensionMessageFactoryTest.cc
* test/HandshakeExtensionMessageTest.cc
* test/MockBtMessage.h
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataRequestExtensionMessageTest.cc
* test/UTMetadataRequestFactoryTest.cc
* test/UTMetadataRequestTrackerTest.cc
* test/extension_message_test_helper.h
2009-11-22 15:31:47 +00:00
Tatsuhiro Tsujikawa
b563621dd1
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Drop connection if ut_metadata reject message is received.
* src/UTMetadataRejectExtensionMessage.cc
2009-11-22 15:19:16 +00:00
Tatsuhiro Tsujikawa
9d2199acbb
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
get high enough in that mode.
* src/ActivePeerConnectionCommand.cc
2009-11-22 15:16:12 +00:00
Tatsuhiro Tsujikawa
c73d235ab8
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added BitTorrent magnet link support to ProtocolDetector.
* src/ProtocolDetector.cc
* src/ProtocolDetector.h
* test/ProtocolDetectorTest.cc
2009-11-22 14:54:51 +00:00
Tatsuhiro Tsujikawa
c1f9032441
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't inject validator into BtMessage in metadataGetMode because
most of the checks depends on the total length of download but it
is unknown. Delegate metadataGetMode to BtMessage.
* src/DefaultBtMessageFactory.cc
* src/DefaultBtMessageFactory.h
2009-11-22 14:52:17 +00:00
Tatsuhiro Tsujikawa
03b281f604
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added setEndGamePieceNum() pure virtual function to PieceStorage.
* src/DefaultPieceStorage.h
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
2009-11-22 14:42:59 +00:00
Tatsuhiro Tsujikawa
9423f0d29a
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added markTotalLengthIsKnown().
* src/DownloadContext.h
2009-11-22 14:39:20 +00:00
Tatsuhiro Tsujikawa
5013e96b3b
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't add PeerChokeCommand and SeedCheckCommand if metadata is
missing. If metadata is missing, always use DHT when it is ready.
* src/BtSetup.cc
2009-11-22 14:37:05 +00:00
Tatsuhiro Tsujikawa
66e6191d10
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added parseMagnetLink(). Hex encoded info hash is supported.
Base32 encoded info hash is not supported yet.
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
2009-11-22 14:35:35 +00:00
Tatsuhiro Tsujikawa
e0d9798b94
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added FromHex()
* src/util.cc
* src/util.h
* test/UtilTest.cc
2009-11-22 14:30:51 +00:00
Tatsuhiro Tsujikawa
d9e29e5c7d
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added _metadataGetMode member variable. It toggles the action when
messages are received: usually they almost do nothing if
_metadataGetMode is true.
* src/AbstractBtMessage.cc
* src/AbstractBtMessage.h
* src/BtAllowedFastMessage.cc
* src/BtBitfieldMessage.cc
* src/BtCancelMessage.cc
* src/BtChokeMessage.cc
* src/BtHaveAllMessage.cc
* src/BtHaveMessage.cc
* src/BtInterestedMessage.cc
* src/BtNotInterestedMessage.cc
* src/BtPieceMessage.cc
* src/BtRejectMessage.cc
* src/BtRequestMessage.cc
* src/BtUnchokeMessage.cc
2009-11-22 13:33:35 +00:00
Tatsuhiro Tsujikawa
5130b5c1e0
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bencode::decode overload functions. They have extra argument
'end', passed by reference. 'end' points to the beyond the last
position of data used in decoding process.
* src/bencode.cc
* src/bencode.h
* test/BencodeTest.cc
2009-11-22 13:26:32 +00:00
Tatsuhiro Tsujikawa
93968c4fa5
2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Initial support of Extension for Peers to Send Metadata
Files(BEP9). Currently aria2 only serves metadata and cannot get
metadata from swarm.
* src/BtConstants.h
* src/DefaultBtInteractive.cc
* src/DefaultExtensionMessageFactory.cc
* src/DefaultExtensionMessageFactory.h
* src/ExtensionMessage.h
* src/ExtensionMessageRegistry.h
* src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.h
* src/Makefile.am
* src/PeerConnection.h
* src/PeerInteractionCommand.cc
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataDataExtensionMessage.h
* src/UTMetadataExtensionMessage.cc
* src/UTMetadataExtensionMessage.h
* src/UTMetadataRejectExtensionMessage.cc
* src/UTMetadataRejectExtensionMessage.h
* src/UTMetadataRequestExtensionMessage.cc
* src/UTMetadataRequestExtensionMessage.h
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
* test/DefaultExtensionMessageFactoryTest.cc
* test/HandshakeExtensionMessageTest.cc
* test/Makefile.am
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataRejectExtensionMessageTest.cc
* test/UTMetadataRequestExtensionMessageTest.cc
2009-11-20 15:42:25 +00:00
Tatsuhiro Tsujikawa
2764b6739d
2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Cancel segment in prepareForRetry() because there is a chance that
the command has segments.
* src/CreateRequestCommand.cc
2009-11-20 15:27:10 +00:00
Tatsuhiro Tsujikawa
60e3e46c52
2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that slow server is not knocked down in favor of
faster one.
* src/AbstractCommand.cc
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.cc
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
2009-11-20 07:47:42 +00:00
Tatsuhiro Tsujikawa
39c2b57842
2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that Request object is not added to
_inFlightRequests in findFasterRequest().
* src/FileEntry.cc
2009-11-20 07:44:42 +00:00
Tatsuhiro Tsujikawa
6d73ca229f
2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the strategry of how to increase the number of outstanding
requests. Now the number is doubled if there are no outstanding
requests after receiving messages.
* src/BtConstants.h
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
2009-11-18 12:22:03 +00:00
Tatsuhiro Tsujikawa
2f6e22f1aa
2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Check socket for reading if there are outstanding requests.
* src/PeerInteractionCommand.cc
2009-11-18 12:19:00 +00:00
Tatsuhiro Tsujikawa
20e734fa15
2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved frequently called methods to header file so they get
inlined.
* src/RequestSlot.cc
* src/RequestSlot.h
2009-11-17 14:29:55 +00:00
Tatsuhiro Tsujikawa
928de09345
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Copied in_addr instead of just casting from char* which might
violate strict aliasing rules.
* src/AsyncNameResolver.cc
2009-11-15 13:27:46 +00:00
Tatsuhiro Tsujikawa
1e740c6087
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/bittorrent_helper.cc
2009-11-15 12:59:44 +00:00
Tatsuhiro Tsujikawa
309d292831
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use C++ style cast
* src/AsyncNameResolver.cc
* src/Base64.h
* src/BtBitfieldMessage.cc
* src/BtHandshakeMessage.cc
* src/DefaultBtMessageFactory.cc
* src/DefaultBtProgressInfoFile.cc
* src/EpollEventPoll.cc
* src/ExpatMetalinkProcessor.cc
* src/IteratableChecksumValidator.cc
* src/IteratableChunkChecksumValidator.cc
* src/MessageDigestHelper.cc
* src/Platform.cc
* src/RequestGroupMan.cc
* src/SingleFileAllocationIterator.cc
* src/Sqlite3MozCookieParser.cc
* src/XML2SAXMetalinkProcessor.cc
* src/Xml2XmlRpcRequestProcessor.cc
* src/util.cc
* src/util.h
2009-11-15 12:55:50 +00:00
Tatsuhiro Tsujikawa
2923682aa6
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed integer potential alignment problem.
* src/bitfield.h
2009-11-15 11:29:24 +00:00
Tatsuhiro Tsujikawa
548585cccc
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Applied a patch from tizianomueller to fix sigbus errors on Linux
sparc. I modified the patch to eliminate a cast to uint32_t* and
include file ordering.
* src/PeerListProcessor.h
* src/bittorrent_helper.cc
2009-11-15 11:20:55 +00:00
Tatsuhiro Tsujikawa
9cdf102850
2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
* src/Request.cc
* src/util.cc
* src/util.h
* test/RequestTest.cc
2009-11-12 15:34:55 +00:00
Tatsuhiro Tsujikawa
8865b9e8e6
2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten util::uitos()
* src/util.h
2009-11-12 15:17:28 +00:00
Tatsuhiro Tsujikawa
48175dcb3a
2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/Request.cc
* src/Request.h
2009-11-12 15:07:18 +00:00
Tatsuhiro Tsujikawa
7a94ae6af2
2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Request::parseUrl()
* src/Request.cc
* test/RequestTest.cc
2009-11-12 14:50:23 +00:00
Tatsuhiro Tsujikawa
37a50cf468
2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused macro SAFE_CHARS
* src/Request.cc
2009-11-11 13:11:39 +00:00
Tatsuhiro Tsujikawa
ff3702463a
2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/DHTRoutingTableDeserializer.cc
2009-11-11 13:06:19 +00:00
Tatsuhiro Tsujikawa
0894a7592c
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Only decrement cols if cols > 0
* src/ConsoleStatCalc.cc
2009-11-02 14:30:26 +00:00
Tatsuhiro Tsujikawa
fb3e69db3b
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without ssl library.
* src/util.cc
2009-11-02 14:04:28 +00:00
Tatsuhiro Tsujikawa
f794df7d9b
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Logged received nodes in get_peers reply message.
* src/DHTAbstractNodeLookupTask.cc
* src/DHTAbstractNodeLookupTask.h
2009-11-02 13:16:22 +00:00
Tatsuhiro Tsujikawa
f1043306f0
2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that DHTAbstractNodeLookupTask never finishes if
error occurred in DHTMessageDispatcherImpl::sendMessage().
* src/DHTMessageDispatcherImpl.cc
2009-11-01 14:14:28 +00:00
Tatsuhiro Tsujikawa
489cfe3d0e
2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't reuse URI if Request pool is not empty.
* src/CreateRequestCommand.cc
2009-11-01 09:42:34 +00:00
Tatsuhiro Tsujikawa
20c8ce4128
2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
receive get_peers request for torrent which the client is now
downloading.
* src/BtSetup.cc
* src/DHTPeerAnnounceEntry.cc
* src/DHTPeerAnnounceEntry.h
* src/DHTPeerAnnounceStorage.cc
* src/DHTPeerAnnounceStorage.h
* src/RequestGroup.cc
* test/DHTPeerAnnounceEntryTest.cc
* test/DHTPeerAnnounceStorageTest.cc
2009-10-31 11:54:54 +00:00
Tatsuhiro Tsujikawa
0dcb41da49
2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that in Windows environment new blank line is
inserted when console readout is updated.
* src/ConsoleStatCalc.cc
2009-10-31 10:15:59 +00:00
Tatsuhiro Tsujikawa
07dc5bdfee
2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Throw exception if binding listening port is failed. Removed
RequestGroupMan::getInitialCommand(). Use
fillRequestGroupFromReserver() instead. Delete commands for
RequestGroup which has errors when it is being added.
* src/BtSetup.cc
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/DownloadEngineFactory.cc
* src/MultiUrlRequestInfo.cc
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* test/RequestGroupManTest.cc
2009-10-31 09:53:23 +00:00
Tatsuhiro Tsujikawa
a71b642db1
2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that when downloading more than one torrent,
listening port is not reported properly to tracker for 2nd or
later torrents.
* src/BtSetup.cc
* src/PeerListenCommand.cc
* src/PeerListenCommand.h
* src/RequestGroup.cc
2009-10-31 08:47:19 +00:00
Tatsuhiro Tsujikawa
14a47f43f8
2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
If user name is embedded but password is missing in URI, first
resolve password using .netrc. If password is found in .netrc,
then use it as password. If not, use the password specified in
--ftp-passwd.
* src/AuthConfigFactory.cc
* src/Request.cc
* src/Request.h
* test/AuthConfigFactoryTest.cc
2009-10-27 12:58:46 +00:00
Tatsuhiro Tsujikawa
8e7311a2de
2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* src/usage_text.h
2009-10-25 14:43:15 +00:00
Tatsuhiro Tsujikawa
9b49e45e96
2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing bitfield.cc
* src/bitfield.cc
2009-10-25 14:15:22 +00:00
Tatsuhiro Tsujikawa
e976b23728
2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed Util.{cc,h} as util.{cc,h}
* src/Util.cc
* src/Util.h
* src/util.cc
* src/util.h
2009-10-22 15:35:33 +00:00
Tatsuhiro Tsujikawa
c6035b2e24
2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved static functions in Util class to namespace util.
* src
* test
2009-10-22 15:09:00 +00:00
Tatsuhiro Tsujikawa
3349fe0811
2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
Moved generateRandomKey to bittorrent_helper.cc.
* src/DHTBucket.cc
* src/DHTGetPeersMessage.cc
* src/DHTGetPeersReplyMessage.cc
* src/DHTMessage.cc
* src/DHTNode.cc
* src/DHTTokenTracker.cc
* src/DHTUtil.cc: Removed.
* src/DHTUtil.h: Removed.
* src/Makefile.am
* src/Util.cc
* src/Util.h
* src/bitfield.h
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/ARC4Test.cc
* test/BNodeTest.cc
* test/DHTAnnouncePeerMessageTest.cc
* test/DHTAnnouncePeerReplyMessageTest.cc
* test/DHTFindNodeMessageTest.cc
* test/DHTFindNodeReplyMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/DHTPingMessageTest.cc
* test/DHTPingReplyMessageTest.cc
* test/DHTTokenTrackerTest.cc
* test/DHTUtilTest.cc: Removed.
* test/Makefile.am
* test/UtilTest.cc
2009-10-22 14:43:42 +00:00
Tatsuhiro Tsujikawa
7e694d38cb
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed the call to trim() because trim() is called for each
element in split().
* src/CookieParser.cc
2009-10-18 12:33:45 +00:00
Tatsuhiro Tsujikawa
c8d34a46be
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced Util::slice() with split()
* src/AbstractCommand.cc
* src/CookieParser.cc
* src/File.cc
* src/HttpHeaderProcessor.cc
* src/HttpRequest.cc
* src/Metalink2RequestGroup.cc
* src/MetalinkParserController.cc
* src/Netrc.cc
* src/NsCookieParser.cc
* src/ParameterizedStringParser.cc
* src/ServerStatMan.cc
* src/UriListParser.cc
* src/Util.cc
* src/Util.h
* src/bittorrent_helper.cc
* test/UtilTest.cc
2009-10-18 12:31:07 +00:00
Tatsuhiro Tsujikawa
1a7064f6f6
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use request->getDir() instead of "/" for embedded user/pass in
URI.
* src/AuthConfigFactory.cc
2009-10-18 12:23:11 +00:00
Tatsuhiro Tsujikawa
947effdf1c
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed wrong insertion point for BasicCred.
* src/AuthConfigFactory.cc
2009-10-18 09:10:26 +00:00
Tatsuhiro Tsujikawa
4536bd7211
2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Allowed non-regular file in LocalFilePathOptionHandler
* src/OptionHandlerImpl.h
* src/message.h
2009-10-17 13:13:32 +00:00
Tatsuhiro Tsujikawa
10e371c25a
2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that Netrc::parse() cannot recognize comment line.
* src/Netrc.cc
* src/Util.h
* test/NetrcTest.cc
* test/sample.netrc
2009-10-17 13:11:03 +00:00
Tatsuhiro Tsujikawa
ac63a32c48
2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* src/BtDependency.cc
* src/BtRejectMessage.cc
* src/FtpConnection.cc
* src/HttpHeaderProcessor.h
2009-10-13 08:48:58 +00:00
Tatsuhiro Tsujikawa
509a98dde4
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated licence message in -v output.
* src/version_usage.cc
2009-10-10 08:35:06 +00:00
Tatsuhiro Tsujikawa
8c807347bd
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced aria2 with aria2c in help message.
* src/version_usage.cc
2009-10-10 08:32:43 +00:00
Tatsuhiro Tsujikawa
3ccaca2b39
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use PACKAGE_BUGREPORT and PACKAGE_URL.
* src/version_usage.cc
2009-10-10 08:30:52 +00:00
Tatsuhiro Tsujikawa
02c7e833d1
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Quoted localedir
* src/Makefile.am
2009-10-10 08:29:21 +00:00
Tatsuhiro Tsujikawa
fb70a0e69c
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
utime. Check header for utime.h.
* configure.ac
2009-10-10 08:16:44 +00:00
Tatsuhiro Tsujikawa
1af73e306c
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
* configure.ac
* src/daemon.cc
2009-10-10 08:09:16 +00:00
Tatsuhiro Tsujikawa
cb69cca675
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't set localedir manually. Leave it to autoconf.
* configure.ac
* src/Makefile.am
2009-10-10 08:03:27 +00:00
Tatsuhiro Tsujikawa
f31fa015bb
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --install to ACLOCAL_AMFLAGS.
Removed m4 from SUBDIRS.
Updated automake 1.11 and autoconf 2.64.
Replaced some obsolute macros with new one.
* Makefile.am
* configure.ac
* m4/aria2_arg.m4
2009-10-10 07:54:39 +00:00
Tatsuhiro Tsujikawa
53bdc4918a
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that causes segmentation fault if
req->getCurrentUrl() contains printf formatting characters such as
%d. The statement that causes this bug is useless and removed.
* src/AbstractCommand.cc
2009-10-09 17:20:40 +00:00
Tatsuhiro Tsujikawa
9c23aa5aeb
2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed interval from 120 to 60 for dropping inactive peer.
* src/DefaultBtInteractive.cc
2009-10-06 12:56:15 +00:00
Tatsuhiro Tsujikawa
967dade8b2
2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code clean up
* src/BtPostDownloadHandler.cc
* src/ContentTypeRequestGroupCriteria.cc
* src/ContentTypeRequestGroupCriteria.h
* src/DownloadHandlerConstants.cc
* src/DownloadHandlerConstants.h
* src/DownloadHandlerFactory.cc
* src/MetalinkPostDownloadHandler.cc
2009-10-05 14:51:05 +00:00
Tatsuhiro Tsujikawa
5f1d8c7897
2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't save control file when aria2 exists while checking piece
hash(behavior of -V option). If control file doesn't exist when
aria2 launched, the completed length in saved control file will be
0 byte and this confuses user. disableSaveControlFile() is called
in RequestGroup::processCheckIntegrityEntry().
enableSaveControlFile() will be called after hash checking is
done. See CheckIntegrityCommand.
* src/CheckIntegrityCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
2009-10-05 13:35:09 +00:00
Tatsuhiro Tsujikawa
436448dd8a
2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Included version number in Peer ID and client version. Peer ID
now starts with "aria2/VERSION-", where VERSION is
MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
* src/DefaultBtInteractive.cc
* src/OptionHandlerFactory.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/main.cc
* src/usage_text.h
* test/BittorrentHelperTest.cc
2009-10-05 13:04:06 +00:00
Tatsuhiro Tsujikawa
51ba780c76
2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed memory leak.
* src/DownloadCommand.cc
2009-10-04 15:18:21 +00:00
Tatsuhiro Tsujikawa
41ac8fe45d
2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Included version number in user-agent string.
* src/OptionHandlerFactory.cc
2009-10-04 12:57:35 +00:00
Tatsuhiro Tsujikawa
c0595d17ff
2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that the option values changed by XML-RPC
method(changeOption and changeGlobalOption) are overwritten to the
previous value by the next these request which doesn't contain
that option value. Supporse max-download-limit is initially 0. You
changed this value to 100K by changeOption. Then you issue
changeOption request to change max-upload-limit to 50K. This
second request doesn't contain xml-download-limit, so it is back
to initial value, 0. Another improvement is that exception is
thrown when changeOption and changeGlobalOption request contains
option name which doesn't allowed in each request.
* src/DownloadEngine.h
* src/XmlRpcMethod.cc
* src/XmlRpcMethod.h
* src/XmlRpcMethodImpl.cc
* src/download_helper.cc
* src/download_helper.h
* test/XmlRpcMethodTest.cc
2009-10-04 09:01:11 +00:00
Tatsuhiro Tsujikawa
ce3de835b4
2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing MetalinkParserStateImpl.{cc,h}
* src/MetalinkParserStateImpl.cc
* src/MetalinkParserStateImpl.h
2009-10-04 04:00:44 +00:00
Tatsuhiro Tsujikawa
c55d2e5512
2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Put all MetalinkParserState subclasses into
MetalinkParserStateImpl.cc. Use stack to track element structure.
2009-10-03 12:52:16 +00:00
Tatsuhiro Tsujikawa
99654e4160
2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Move all functions in PeerMessageUtil to bittorrent_helper.
* src/BtBitfieldMessage.cc
* src/BtBitfieldMessageValidator.h
* src/BtExtendedMessage.cc
* src/BtHandshakeMessage.cc
* src/BtHandshakeMessageValidator.h
* src/BtPieceMessage.cc
* src/BtPieceMessageValidator.h
* src/BtPortMessage.cc
* src/DHTFindNodeReplyMessage.cc
* src/DHTGetPeersReplyMessage.cc
* src/DHTMessageFactoryImpl.cc
* src/DHTRoutingTableDeserializer.cc
* src/DHTRoutingTableSerializer.cc
* src/DHTTokenTracker.cc
* src/DefaultBtMessageFactory.cc
* src/IndexBtMessage.cc
* src/IndexBtMessage.h
* src/IndexBtMessageValidator.h
* src/Makefile.am
* src/PeerMessageUtil.cc: Removed.
* src/PeerMessageUtil.h: Removed.
* src/RangeBtMessage.cc
* src/RangeBtMessage.h
* src/RangeBtMessageValidator.h
* src/UTPexExtensionMessage.cc
* src/ZeroBtMessage.cc
* src/ZeroBtMessage.h
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
* test/BtAllowedFastMessageTest.cc
* test/BtBitfieldMessageTest.cc
* test/BtCancelMessageTest.cc
* test/BtChokeMessageTest.cc
* test/BtExtendedMessageTest.cc
* test/BtHandshakeMessageTest.cc
* test/BtHaveAllMessageTest.cc
* test/BtHaveMessageTest.cc
* test/BtHaveNoneMessageTest.cc
* test/BtInterestedMessageTest.cc
* test/BtNotInterestedMessageTest.cc
* test/BtPieceMessageTest.cc
* test/BtPortMessageTest.cc
* test/BtRejectMessageTest.cc
* test/BtRequestMessageTest.cc
* test/BtSuggestPieceMessageTest.cc
* test/BtUnchokeMessageTest.cc
* test/DHTFindNodeReplyMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/DHTMessageFactoryImplTest.cc
* test/DHTRoutingTableDeserializerTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/DefaultBtMessageFactoryTest.cc
* test/DefaultExtensionMessageFactoryTest.cc
* test/Makefile.am
* test/PeerListProcessorTest.cc
* test/PeerMessageUtilTest.cc: Removed.
* test/UTPexExtensionMessageTest.cc
2009-09-29 14:52:42 +00:00
Tatsuhiro Tsujikawa
2e8b0d785e
2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Limit the size of values list when sending get_peers reply.
* src/DHTGetPeersReplyMessage.cc
2009-09-28 16:05:08 +00:00
Ross Smith II
263aebc558
Add check for fork(), which is missing on MinGW
...
* src/daemon.cc
* configure.ac
2009-09-23 21:35:10 +00:00
Tatsuhiro Tsujikawa
909b126180
2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
Util::httpGMT().
* src/Util.cc
* src/Util.h
* test/UtilTest.cc
2009-09-23 06:47:56 +00:00
Tatsuhiro Tsujikawa
7cce6c46a8
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added XML-RPC in -v Configuration output.
* src/FeatureConfig.cc
* src/FeatureConfig.h
* test/FeatureConfigTest.cc
2009-09-20 09:31:42 +00:00
Tatsuhiro Tsujikawa
fe2bb7e233
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed --retry-wait option since the current architecture doesn't
allow sleep for particular URI.
* src/AbstractCommand.cc
* src/OptionHandlerFactory.cc
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
2009-09-20 09:03:57 +00:00
Tatsuhiro Tsujikawa
e8bda3f593
2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed Retry-After header support. Since the current architecture
doesn't allow sleep for particular URI.
* src/HttpSkipResponseCommand.cc
2009-09-20 09:00:32 +00:00
Tatsuhiro Tsujikawa
45090adb07
2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated the help message for --daemon option.
* doc/aria2c.1.txt
* src/usage_text.h
2009-09-19 09:12:51 +00:00
Tatsuhiro Tsujikawa
6293908a9d
2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added our own daemon() function for systems which desn't have
daemon(3).
* configure.ac
* src/Makefile.am
* src/daemon.cc
* src/daemon.h
* src/option_processing.cc
2009-09-19 09:05:20 +00:00
Tatsuhiro Tsujikawa
f0d2be6120
2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Simplified File::getCurrentDir()
* src/File.cc
2009-09-19 09:02:58 +00:00
Tatsuhiro Tsujikawa
554749b3dc
2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use exit() instead of _exit
* src/RequestGroupMan.cc
2009-09-19 08:54:39 +00:00
Tatsuhiro Tsujikawa
568226617c
2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced "CATEGORY" with "TAGS".
* src/usage_text.h
* doc/aria2c.1.txt
2009-09-18 12:55:34 +00:00
Tatsuhiro Tsujikawa
33e04e5014
2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated the help message for --help option.
* src/usage_text.h
* doc/aria2c.1.txt
2009-09-18 12:51:34 +00:00
Tatsuhiro Tsujikawa
da78e52a22
2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added help category #file. Added #file tag to the options related
to downloaded file.
* src/OptionHandlerFactory.cc
* src/help_tags.h
2009-09-17 14:43:13 +00:00
Tatsuhiro Tsujikawa
a481548954
2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added help categories: #cookie and #hook. Added #https tag to
--https-proxy and --https-proxy, --all-proxy and --no-proxy.
* src/OptionHandlerFactory.cc
* src/help_tags
2009-09-17 14:37:36 +00:00
Tatsuhiro Tsujikawa
dbaf521756
2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made MSG_NOT_FILE translatable.
* src/message.h
2009-09-16 14:40:22 +00:00
Tatsuhiro Tsujikawa
0cde950b6f
2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc.
* src/XmlRpcMethod.h
2009-09-14 12:54:14 +00:00
Tatsuhiro Tsujikawa
aefb035bb1
2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Help category now starts with "#" to distinguish a category from
keyword search. For example, "http" categroy is now "#http". You
can type "--help=#http" to get explanation of options related to
http. If '#' is omitted, then the argument is treated as a keyword
and aria2 searches options whose name includes the keyword and
print matched ones. For example, "--help=http" will show options
whose name includes "http".
* src/OptionHandlerFactory.cc
* src/help_tags.h
* src/usage_text.h
* src/version_usage.cc
2009-09-14 12:43:32 +00:00
Tatsuhiro Tsujikawa
bf2b6d85fa
2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added xml-rpc help tag. Tagged xml-rpc related options with
xml-rpc tag.
* src/OptionHandlerFactory.cc
* src/help_tags.h
2009-09-11 13:10:40 +00:00
Tatsuhiro Tsujikawa
81de583a63
2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated message when a path is not a file. Updated common message
for wrong option.
* src/OptionHandlerException.cc
* src/message.h
2009-09-11 12:59:43 +00:00
Tatsuhiro Tsujikawa
97ffdf3eb2
2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use File::isFile() instead of File::exists(). Updated message when
a path is not a file.
* src/OptionHandlerImpl.cc
* src/message.h
2009-09-10 12:14:57 +00:00
Tatsuhiro Tsujikawa
870989f868
2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that server performence profile is not updated when
aria2c was terminated by emergency shutdown.
* src/TrackerWatcherCommand.cc
2009-09-09 13:28:52 +00:00
Tatsuhiro Tsujikawa
66b5950115
2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use LocalFilePathOptionHandler for -T and -M option.
Updated message of MSG_FILE_NOT_EXIST.
* src/OptionHandlerFactory.cc
* src/message.h
2009-09-09 12:58:23 +00:00
Tatsuhiro Tsujikawa
9f54011349
2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added LocalFilePathOptionHandler which check whether the specified
file path does exist or not.
* src/OptionHandlerImpl.cc
* src/message.h
2009-09-09 12:50:42 +00:00
Tatsuhiro Tsujikawa
ce25b54cfe
2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added support for IPv6 literal address in URI. Now aria2 can
handle URI such as http://[::1]/
* src/HttpRequest.cc
* src/HttpRequest.h
* src/Request.cc
* src/Request.h
* test/HttpRequestTest.cc
* test/OptionHandlerTest.cc
* test/RequestTest.cc
2009-08-30 15:05:30 +00:00
Tatsuhiro Tsujikawa
19ae8f9d07
2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that HTTP request header for XML-RPC request is not
parsed properly.
* src/HttpHeader.cc
* src/HttpHeaderProcessor.cc
2009-08-30 13:18:57 +00:00
Tatsuhiro Tsujikawa
01af9a5df0
2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that XML-RPC authorization might be done before HTTP
request header is fully received.
* src/HttpServerCommand.cc
2009-08-30 13:15:22 +00:00
Tatsuhiro Tsujikawa
d182b380c2
2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --xml-rpc-listen-all option. If true is given to this
option, aria2 listens incoming XML-RPC requests on all network
interfaces. If false is given, listens only on local loopback
interface. The default value is false.
* src/HttpListenCommand.cc
* src/OptionHandlerFactory.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-08-30 12:25:04 +00:00
Tatsuhiro Tsujikawa
9077d5a985
2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Get comment, comment.utf-8, created by and creation date from
.torrent file and print them in -S output.
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
* test/test.torrent
* test/utf8.torrent
2009-08-19 14:09:19 +00:00
Tatsuhiro Tsujikawa
376e39a1f4
2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Show exact file size along in -S option output.
* src/Util.h
* src/bittorrent_helper.cc
* test/UtilTest.cc
2009-08-18 14:36:52 +00:00
Tatsuhiro Tsujikawa
c1f4af537a
2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoided unnecessary memory allocation in
BitfieldMan::getCompletedLength().
* src/BitfieldMan.cc
2009-08-18 14:21:02 +00:00
Tatsuhiro Tsujikawa
a4d5134f80
2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that download fails if
SocketCore::establishConnection() throws exception and aria2
doesn't try another address.
* src/AbstractCommand.cc
* src/InitiateConnectionCommand.cc
* src/message.h
2009-08-18 14:09:56 +00:00
Tatsuhiro Tsujikawa
611eadf85d
2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
because it causes compile error if PARAMS macro is defined.
* src/XmlRpcElements.cc
* src/XmlRpcElements.h
* src/XmlRpcRequestParserStateImpl.cc
2009-08-08 16:08:56 +00:00
Tatsuhiro Tsujikawa
1fe4932201
2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without BitTorrent support
* src/DefaultBtProgressInfoFile.cc
* src/DownloadEngine.cc
* src/DownloadEngine.h
2009-07-25 14:07:46 +00:00
Tatsuhiro Tsujikawa
6191e909d2
2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing '=' in Download Results
* src/RequestGroupMan.cc
2009-07-23 15:17:50 +00:00
Tatsuhiro Tsujikawa
a01a3605c7
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning
* src/DefaultBtProgressInfoFile.cc
2009-07-22 13:20:47 +00:00
Tatsuhiro Tsujikawa
df8938d51e
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning on 32bit systems.
* src/DownloadCommand.cc
2009-07-22 13:11:58 +00:00
Tatsuhiro Tsujikawa
8d2b9f0aa1
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten RequestGroupMan::saveServerStat()
* src/RequestGroupMan.cc
2009-07-22 13:09:50 +00:00
Tatsuhiro Tsujikawa
1c6a0962a1
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call flush from ServerStatMan::save()
* src/ServerStatMan.cc
2009-07-22 13:08:53 +00:00
Tatsuhiro Tsujikawa
2e9c39d6ba
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Check stream status after file is opened.
* src/CookieStorage.cc
2009-07-22 13:01:14 +00:00
Tatsuhiro Tsujikawa
f4a533846d
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Signature::save()
* src/Signature.cc
2009-07-22 12:58:49 +00:00
Tatsuhiro Tsujikawa
65906c07fe
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten stream error handling
* src/DHTAutoSaveCommand.cc
* src/DHTRoutingTableDeserializer.cc
* src/DHTRoutingTableSerializer.cc
* src/DHTSetup.cc
2009-07-22 12:54:35 +00:00
Tatsuhiro Tsujikawa
0d101d47c9
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Check stream status after file is opened.
* src/DefaultBtProgressInfoFile.cc
2009-07-22 12:51:51 +00:00
Tatsuhiro Tsujikawa
cec451951d
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten stream error handling
* src/DefaultBtProgressInfoFile.cc
2009-07-22 12:44:24 +00:00
Tatsuhiro Tsujikawa
0d1d88257c
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Make sure that stream is closed before renaming file. Unit test
fails on mingw32 in the previous implementation.
* src/CookieStorage.cc
2009-07-21 15:19:43 +00:00
Tatsuhiro Tsujikawa
083d907104
2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing src/Logger.cc
* src/Logger.cc
2009-07-18 08:32:57 +00:00
Tatsuhiro Tsujikawa
21170e804d
2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Logger to avoiding constly virtual call.
* src/LogFactory.cc
* src/LogFactory.h
* src/Logger.h
* src/Makefile.am
* src/Makefile.in
* src/NullLogger.h: Removed.
* src/SimpleLogger.cc
* src/SimpleLogger.h
2009-07-18 08:30:37 +00:00
Tatsuhiro Tsujikawa
e6422f82eb
2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/main.cc
2009-07-17 10:33:33 +00:00
Tatsuhiro Tsujikawa
85cec59174
2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated debug log message
* src/AbstractCommand.cc
* src/message.h
2009-07-17 10:27:45 +00:00
Tatsuhiro Tsujikawa
757e758fa1
2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid to create zombie process when commands specified in
--on-download-* options are executed. Tested on Linux 2.6, Mac OS
X and NetBSD.
* src/main.cc
2009-07-16 13:07:29 +00:00
Tatsuhiro Tsujikawa
9c62df8038
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* src/usage_text.h
* doc/aria2c.1.txt
2009-07-15 13:12:21 +00:00
Tatsuhiro Tsujikawa
d17d7631e1
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added 'errorCode' to the reponse of tellStatus xml-rpc method.
This key is only available for stopped/completed downloads and its
value is the error code defined in EXIT STATUS in man page.
* src/XmlRpcMethodImpl.cc
2009-07-15 12:39:52 +00:00
Tatsuhiro Tsujikawa
de23f72818
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that session download length is not updated when
PeerStat is not fastest one.
* src/SegmentMan.cc
2009-07-15 12:36:58 +00:00
Tatsuhiro Tsujikawa
a4c7c6ae02
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc.
* src/AbstractCommand.cc
2009-07-15 11:58:27 +00:00
Tatsuhiro Tsujikawa
08fb20d076
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Handle the case when DownloadContext has no FileEntry.
* src/XmlRpcMethodImpl.cc
2009-07-15 11:57:20 +00:00
Tatsuhiro Tsujikawa
55a35ad2a2
2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Handle the situation where struct option.name is char *.
* configure.ac
* src/OptionParser.cc
2009-07-14 13:22:26 +00:00
Tatsuhiro Tsujikawa
8eee188999
2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/AbstractCommand.cc
* src/DownloadCommand.cc
2009-07-14 13:11:13 +00:00
Tatsuhiro Tsujikawa
682bafae0a
2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use option of each download to create AuthConfig instead of global
option.
* src/AuthConfigFactory.cc
* src/AuthConfigFactory.h
* src/FtpNegotiationCommand.cc
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/HttpSkipResponseCommand.cc
* src/MultiUrlRequestInfo.cc
* test/AuthConfigFactoryTest.cc
* test/FtpConnectionTest.cc
* test/HttpRequestTest.cc
2009-07-14 12:37:34 +00:00
Tatsuhiro Tsujikawa
894641dfdb
2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't call prepareForRetry(1) if all segments are ignored in
SegmentMan.
* src/AbstractCommand.cc
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/SegmentMan.cc
* src/SegmentMan.h
2009-07-13 15:02:32 +00:00
Tatsuhiro Tsujikawa
19913203b7
2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed FileEntry::getAssociatedUris()
* src/FileEntry.h
2009-07-11 16:00:50 +00:00
Tatsuhiro Tsujikawa
8661bc049a
2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc: TODO1.5 -> TODO
* src/FileEntry.cc
* src/HttpResponseCommand.cc
2009-07-11 15:57:06 +00:00
Tatsuhiro Tsujikawa
eafa19748e
2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added assertion fileEntries.size() == 1 if BitTorrent is not
involved.
* src/RequestGroup.cc
2009-07-11 15:50:21 +00:00
Tatsuhiro Tsujikawa
67a23f615a
2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Eliminated duplicated filterBitfield initialization code.
* src/BitfieldMan.cc
* src/BitfieldMan.h
2009-07-11 10:34:08 +00:00
Tatsuhiro Tsujikawa
b29fbb9af5
2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added assert(!req.isNull()) when DlRetryEx is caught(this is
relatively naive approach, though). For DownloadFailureException,
we handle the case when req is null properly.
* src/AbstractCommand.cc
2009-07-11 10:25:45 +00:00
Tatsuhiro Tsujikawa
d99ec1534f
2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added function returning suffix of control file to
DefaultBtProgressInfoFile.
* src/DefaultBtProgressInfoFile.cc
* src/DefaultBtProgressInfoFile.h
* src/RequestGroup.cc
2009-07-11 10:19:10 +00:00
Tatsuhiro Tsujikawa
d6a8fa5b10
2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Implemented getVersion xml-rpc method. This method returns struct
which has 2 key-value pairs: "version" key is associated to the
version of aria2, such as "1.5.0". "enabledFeatures" key is
associated to the list of enabled features, such as "Async DNS",
"BitTorrent".
* src/FeatureConfig.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-07-10 15:55:42 +00:00
Tatsuhiro Tsujikawa
53d2a64cc5
2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed TLS1.1 protocol support when aria2 is built with gnutls
for compatibility issue.
* src/SocketCore.cc
2009-07-08 15:38:40 +00:00
Tatsuhiro Tsujikawa
96113c0745
2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error with openSSL
* src/bittorrent_helper.cc
* src/messageDigest.h
2009-07-08 15:12:40 +00:00
Tatsuhiro Tsujikawa
2fe11c1343
2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed bad code: setting certificate type priority to key
exchange priority.
* src/SocketCore.cc
2009-07-07 15:01:55 +00:00
Tatsuhiro Tsujikawa
5f966f6327
2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Disconnect seeder if client is also in seed state.
* src/BtBitfieldMessage.cc
* src/BtHaveAllMessage.cc
* src/BtHaveMessage.cc
* src/message.h
* test/BtBitfieldMessageTest.cc
* test/BtHaveAllMessageTest.cc
* test/BtHaveMessageTest.cc
* test/MockPieceStorage.h
2009-07-06 15:22:06 +00:00
Tatsuhiro Tsujikawa
db84b1b652
2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Keep CreateRequestCommand in queue when no segment is available so
that they can pick up pieces which slow BitTorrent peers are
downloading.
* src/AbstractCommand.cc
* src/CreateRequestCommand.cc
* src/CreateRequestCommand.h
2009-07-06 14:35:42 +00:00
Tatsuhiro Tsujikawa
69c3dfded4
2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
--bt-stop-timeout now only checks download speed.
* src/BtStopDownloadCommand.cc
* src/BtStopDownloadCommand.h
* src/BtSetup.cc
* src/usage_text.h
* doc/aria2c.1.txt
2009-07-06 13:36:16 +00:00
Tatsuhiro Tsujikawa
a94215654d
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error regarding BUFSIZE.
* src/DownloadCommand.cc
* src/DownloadCommand.h
2009-07-05 09:52:15 +00:00
Tatsuhiro Tsujikawa
d28a3081f3
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed resolved TODO1.5
* src/AbstractCommand.cc
* src/DownloadCommand.cc
* src/RequestGroup.cc
2009-07-05 09:15:33 +00:00
Tatsuhiro Tsujikawa
e40d6b7c0f
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Release pooled and in-flight Request objectsand URIResult objects
in FileEntry after download completed.
* src/DownloadContext.cc
* src/DownloadContext.h
* src/FileEntry.cc
* src/FileEntry.h
* src/RequestGroup.cc
2009-07-05 09:10:08 +00:00
Tatsuhiro Tsujikawa
3354f9d2d1
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bt-stop-timeout option to -i list.
* doc/aria2c.1.txt
* src/download_helper.cc
2009-07-05 05:42:36 +00:00
Tatsuhiro Tsujikawa
faa4668bbb
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* doc/aria2c.1.txt
* src/usage_text.h
2009-07-05 05:40:26 +00:00
Tatsuhiro Tsujikawa
6388bb52fb
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed peer-id-prefix option from -i list.
* doc/aria2c.1.txt
* src/download_helper.cc
2009-07-05 05:37:06 +00:00
Tatsuhiro Tsujikawa
dd3a3434be
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* doc/aria2.1.txt
* src/usage_text.h
2009-07-05 05:34:29 +00:00
Tatsuhiro Tsujikawa
f58c2e33bb
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/version_usage.cc
2009-07-05 05:17:19 +00:00
Tatsuhiro Tsujikawa
276d77ee9d
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Winsock select() doesn't work if no socket is in FD_SET. To
overcome this problem, a dummy socket is added to FD_SET and it is
given to select().
* src/SelectEventPoll.cc
* src/SelectEventPoll.h
2009-07-05 03:46:07 +00:00
Tatsuhiro Tsujikawa
9e3fb89077
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Disabled --use-head option by default because --use-head=true
causes problems on some web sites.
* src/OptionHandlerFactory.cc
2009-07-05 03:39:10 +00:00
Tatsuhiro Tsujikawa
5da696fb29
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print URL List in -S option for torrent.
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
2009-07-05 03:37:07 +00:00
Tatsuhiro Tsujikawa
9263894689
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Allocate buffer in ctor of DownloadCommand.
* src/DownloadCommand.cc
* src/DownloadCommand.h
2009-07-05 03:24:31 +00:00
Tatsuhiro Tsujikawa
6bd4447d23
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed DiskAdaptor::onDownloadComplete()
* src/DirectDiskAdaptor.cc
* src/DirectDiskAdaptor.h
* src/DiskAdaptor.h
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
2009-07-05 03:17:55 +00:00
Tatsuhiro Tsujikawa
25c1bc5bb0
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Committed missing BtStopDownloadCommand.{cc,h}
* src/BtStopDownloadCommand.cc
* src/BtStopDownloadCommand.h
2009-07-05 03:17:04 +00:00
Tatsuhiro Tsujikawa
b2f0577225
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-stop-timeout=SEC option. This function stops BitTorrent
download if the download speed is 0 and the number of seeder is 0
in consecutive SEC seconds. By default, this function is disabled.
* src/BtSetup.cc
* src/Makefile.am
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-07-05 03:11:51 +00:00
Tatsuhiro Tsujikawa
051052e9e2
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed the call to DiskAdaptor::onDownloadComplete() from
BtCheckIntegrityEntry and DefaultPieceStorage.
* src/BtCheckIntegrityEntry.cc
* src/DefaultPieceStorage.cc
2009-07-05 03:08:18 +00:00
Tatsuhiro Tsujikawa
cafd23a068
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Commented out throw statements when number of piece is 0 to
download 0 length torrent.
* src/bittorrent_helper.cc
2009-07-04 15:39:20 +00:00
Tatsuhiro Tsujikawa
24d258cf66
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call RequestGroup::createNextCommandWithAdj() from
BtFileAllocationEntry if at least one FileEntry has URI. The
static function hasAssociatedUri in RequestGroup.cc is renamed as
isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
* src/BtFileAllocationEntry.cc
* src/FileEntry.h
* src/RequestGroup.cc
2009-07-04 15:26:00 +00:00
Tatsuhiro Tsujikawa
f8fd518229
2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Generate peer ID after SimpleRandomizer is initialized.
* src/main.cc
* src/option_processing.cc
2009-07-04 15:20:18 +00:00
Tatsuhiro Tsujikawa
3f3e9c0ff0
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused method argument.
* src/CreateRequestCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/TrackerWatcherCommand.cc
2009-07-04 14:32:53 +00:00
Tatsuhiro Tsujikawa
a7c222b8ab
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made URI reusing function work.
* src/CreateRequestCommand.cc
* src/FileEntry.cc
* src/FileEntry.h
* test/FileEntryTest.cc
2009-07-04 13:36:56 +00:00
Tatsuhiro Tsujikawa
3a655a5d1a
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Add formerly fastest PeerStat's sessionDownloadLength to new
fastest PeerStat and use _fastestPeerStats to calcuate downloaded
bytes in a session.
* src/PeerStat.cc
* src/SegmentMan.cc
2009-07-04 13:10:40 +00:00
Tatsuhiro Tsujikawa
2a2c8c5da0
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
If pipelining is enabled, we can always pool socket.
* src/HttpDownloadCommand.cc
2009-07-04 10:22:44 +00:00
Tatsuhiro Tsujikawa
1052600862
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In a single file download, file size becomes known just after
downloading, set total length to FileEntry object when download
completed.
* src/DownloadCommand.cc
2009-07-03 16:13:43 +00:00
Tatsuhiro Tsujikawa
e1d63f3aea
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use std::vector::reserve() for fileEntries and pieceHashes in
bittorrent_helper
* src/bittorrent_helper.cc
2009-07-03 15:53:37 +00:00
Tatsuhiro Tsujikawa
e45a0e7e5f
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed calls to Request::resetUrl() in AbstractCommand.cc.
Removed hidden option PREF_RESET_URI.
* src/AbstractCommand.cc
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
2009-07-03 15:38:29 +00:00
Tatsuhiro Tsujikawa
b46cf94601
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused variable/function.
* src/PeerStat.h
2009-07-03 14:36:05 +00:00
Tatsuhiro Tsujikawa
e72c67a7ec
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Show first URL in Download Results if file path is not available.
* src/FileEntry.h
2009-07-03 14:33:16 +00:00
Tatsuhiro Tsujikawa
130f830091
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Throw exception if file path doesn't exist in FTP URL.
* src/InitiateConnectionCommandFactory.cc
2009-07-03 14:14:08 +00:00
Tatsuhiro Tsujikawa
63735eab8e
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refactored BitfieldMan::getSparseMissingUnusedIndex()
* src/BitfieldMan.cc
2009-07-02 16:44:31 +00:00
Tatsuhiro Tsujikawa
ffaeb271f9
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
of PeerStat in SegmentMan. peerStats is used for calculating
download speed. Therefore all active PeerStats should be in
there. Another one is _fastestPeerStats and it only contains
fastest PeerStat for each hostname/protocol pair. They are used
for updating ServerStat.
* src/DownloadCommand.cc
* src/Request.h
* src/RequestGroupMan.cc
* src/SegmentMan.cc
* src/SegmentMan.h
* test/SegmentManTest.cc
2009-07-02 16:26:04 +00:00
Tatsuhiro Tsujikawa
01fdb2aaeb
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Try all available addresses returned by DNS until it gets
connected in HTTP(S)/FTP download
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/AbstractProxyRequestCommand.cc
* src/AbstractProxyRequestCommand.h
* src/DNSCache.h
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/FtpInitiateConnectionCommand.cc
* src/FtpInitiateConnectionCommand.h
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* src/HttpInitiateConnectionCommand.cc
* src/HttpInitiateConnectionCommand.h
* src/HttpRequestCommand.cc
* src/HttpRequestCommand.h
* src/InitiateConnectionCommand.cc
* src/InitiateConnectionCommand.h
* test/DNSCacheTest.cc
* test/Makefile.am
* test/SimpleDNSCacheTest.cc
2009-07-02 15:18:13 +00:00
Tatsuhiro Tsujikawa
8796993c71
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/download_helper.cc
2009-07-01 14:54:42 +00:00
Tatsuhiro Tsujikawa
cf294a4162
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refactored fieldMan ctor.
* src/BitfieldMan.cc
* src/BitfieldMan.h
2009-07-01 14:52:02 +00:00
Tatsuhiro Tsujikawa
ebf8ff90d5
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't print "No files to download." message if -S is given.
* src/main.cc
2009-07-01 14:40:42 +00:00
Tatsuhiro Tsujikawa
47309df04d
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set referer and method to newly created Request object.
* src/CreateRequestCommand.cc
* src/FileEntry.cc
* src/FileEntry.h
2009-07-01 14:11:04 +00:00
Tatsuhiro Tsujikawa
1812142da5
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed ctor of AbstractCommand which doesn't take FileEntry.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/CreateRequestCommand.cc
2009-07-01 13:48:10 +00:00
Tatsuhiro Tsujikawa
e6a7c952d1
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Get proxy download working
* src/AbstractProxyRequestCommand.cc
* src/AbstractProxyRequestCommand.h
* src/AbstractProxyResponseCommand.cc
* src/AbstractProxyResponseCommand.h
* src/FtpInitiateConnectionCommand.cc
* src/FtpTunnelRequestCommand.cc
* src/FtpTunnelRequestCommand.h
* src/FtpTunnelResponseCommand.cc
* src/FtpTunnelResponseCommand.h
* src/HttpInitiateConnectionCommand.cc
* src/HttpProxyRequestCommand.cc
* src/HttpProxyRequestCommand.h
* src/HttpProxyResponseCommand.cc
* src/HttpProxyResponseCommand.h
2009-07-01 13:45:28 +00:00
Tatsuhiro Tsujikawa
c3934add2e
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use SegmentMan::getSegment(cuid) for single file download.
* src/AbstractCommand.cc
2009-07-01 13:26:58 +00:00
Tatsuhiro Tsujikawa
5562636c99
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed bufSize calculation
* src/DownloadCommand.cc
2009-07-01 13:23:22 +00:00
Tatsuhiro Tsujikawa
30b65f79e7
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't append "/" if base URI ends with "/".
* src/bittorrent_helper.cc
* test/url-list-multiFile.torrent
2009-06-30 17:20:34 +00:00
Tatsuhiro Tsujikawa
cf19dce855
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
HTTP pipelining is now working. Fixed Segmention fault in
BitfieldMan's copy ctor.
* src/AbstractCommand.cc
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/DownloadCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpRequest.cc
* src/SegmentMan.cc
* src/SegmentMan.h
* test/BitfieldManTest.cc
* test/SegmentManTest.cc
2009-06-30 17:03:57 +00:00
Tatsuhiro Tsujikawa
cece2bc896
2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed ServerHost. Same functionality is implemented using
FileEntry's in-flight Request objects.
* src/AbstractCommand.cc
* src/BtDependency.cc
* src/CreateRequestCommand.cc
* src/FileEntry.cc
* src/FileEntry.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/Makefile.am
* src/Metalink2RequestGroup.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/ServerHost.cc: Removed
* src/ServerHost.h: Removed
* test/BtDependencyTest.cc
* test/FileEntryTest.cc
* test/RequestGroupTest.cc
2009-06-29 16:43:41 +00:00
Tatsuhiro Tsujikawa
c4d79d7160
2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten PeerStat handling. In the previous implementation,
faster command tries to find slower command. In this new
implementation, slower command tries to find faster command.
PeerStat is now created in each HTTP/FTP request to get download
rate correctly. If the download range is small, the download rate
tends to small and this will occur at the later stage of download.
* src/AbstractCommand.cc
* src/DownloadCommand.cc
* src/FileEntry.cc
* src/FileEntry.h
* src/Request.cc
* src/Request.h
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/SegmentMan.cc
* src/SegmentMan.h
* test/SegmentManTest.cc
2009-06-29 15:18:21 +00:00
Tatsuhiro Tsujikawa
e82f870fdc
2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed _uris from RequestGroup. All functions that refer to _uris
were moved to FileEntry. Exit status code are now defined in
DownloadResultCode.h.
* src/AbstractCommand.cc
* src/AdaptiveURISelector.cc
* src/AdaptiveURISelector.h
* src/AutoSaveCommand.cc
* src/BtPostDownloadHandler.cc
* src/CheckIntegrityDispatcherCommand.cc
* src/CookieStorage.cc
* src/DHTAutoSaveCommand.cc
* src/DHTBucketRefreshCommand.cc
* src/DHTEntryPointNameResolveCommand.cc
* src/DHTInteractionCommand.cc
* src/DHTPeerAnnounceCommand.cc
* src/DHTTokenUpdateCommand.cc
* src/DlAbortEx.h
* src/DlRetryEx.h
* src/DownloadCommand.cc
* src/DownloadContext.h
* src/DownloadFailureException.h
* src/DownloadResult.h
* src/DownloadResultCode.h
* src/FeedbackURISelector.cc
* src/FeedbackURISelector.h
* src/FileEntry.cc
* src/FileEntry.h
* src/FtpNegotiationCommand.cc
* src/HttpListenCommand.cc
* src/HttpResponseCommand.cc
* src/HttpServerResponseCommand.cc
* src/HttpSkipResponseCommand.cc
* src/InOrderURISelector.cc
* src/InOrderURISelector.h
* src/Makefile.am
* src/Makefile.in
* src/Metalink2RequestGroup.cc
* src/MultiUrlRequestInfo.cc
* src/MultiUrlRequestInfo.h
* src/OptionHandlerFactory.cc
* src/PeerListenCommand.cc
* src/RecoverableException.h
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/TimedHaltCommand.cc
* src/TrackerWatcherCommand.cc
* src/URIResult.cc
* src/URIResult.h
* src/URISelector.h
* src/XmlRpcMethodImpl.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/download_helper.cc
* src/main.cc
* src/option_processing.cc
* test/BtDependencyTest.cc
* test/BtPostDownloadHandlerTest.cc
* test/CookieStorageTest.cc
* test/DefaultBtMessageDispatcherTest.cc
* test/DownloadHandlerFactoryTest.cc
* test/DownloadHelperTest.cc
* test/FeedbackURISelectorTest.cc
* test/FileEntryTest.cc
* test/InOrderURISelectorTest.cc
* test/Metalink2RequestGroupTest.cc
* test/MetalinkPostDownloadHandlerTest.cc
* test/RequestGroupManTest.cc
* test/RequestGroupTest.cc
* test/XmlRpcMethodTest.cc
2009-06-29 08:42:58 +00:00
Tatsuhiro Tsujikawa
d2afc0ca8e
2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed _currentRequest from StreamCheckIntegrityEntry and
StreamFileAllocationEntry.
* src/AbstractCommand.cc
* src/HttpResponseCommand.cc
* src/RequestGroup.cc
* src/StreamCheckIntegrityEntry.cc
* src/StreamCheckIntegrityEntry.h
* src/StreamFileAllocationEntry.cc
* src/StreamFileAllocationEntry.h
2009-06-28 10:48:26 +00:00
Tatsuhiro Tsujikawa
5699b67526
2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten DownloadContext and removed SingleFileDownloadContext
and BtContext and its derived classes. BitTorrent specific
attributes are now set by DownloadContext::setAttribute() with key
bittorrent::BITTORRENT.
* src/AbstractBtMessage.cc
* src/AbstractBtMessage.h
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/AbstractProxyRequestCommand.cc
* src/AbstractProxyResponseCommand.cc
* src/ActivePeerConnectionCommand.cc
* src/ActivePeerConnectionCommand.h
* src/AnnounceList.cc
* src/BtCheckIntegrityEntry.cc
* src/BtConstants.h
* src/BtContext.h: Removed
* src/BtDependency.cc
* src/BtExtendedMessage.cc
* src/BtPieceMessage.cc
* src/BtPieceMessage.h
* src/BtPostDownloadHandler.cc
* src/BtRegistry.cc
* src/BtRegistry.h
* src/BtSetup.cc
* src/CheckIntegrityCommand.cc
* src/CheckIntegrityEntry.cc
* src/ChecksumCheckIntegrityEntry.cc
* src/ConsoleStatCalc.cc
* src/ContentTypeRequestGroupCriteria.cc
* src/DHTGetPeersCommand.cc
* src/DHTGetPeersCommand.h
* src/DHTPeerLookupTask.cc
* src/DHTPeerLookupTask.h
* src/DHTTaskFactory.h
* src/DHTTaskFactoryImpl.cc
* src/DHTTaskFactoryImpl.h
* src/DefaultBtAnnounce.cc
* src/DefaultBtAnnounce.h
* src/DefaultBtContext.cc: Removed
* src/DefaultBtContext.h: Removed
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtMessageDispatcher.h
* src/DefaultBtMessageFactory.cc
* src/DefaultBtMessageFactory.h
* src/DefaultBtMessageReceiver.cc
* src/DefaultBtMessageReceiver.h
* src/DefaultBtProgressInfoFile.cc
* src/DefaultBtRequestFactory.cc
* src/DefaultBtRequestFactory.h
* src/DefaultExtensionMessageFactory.cc
* src/DefaultExtensionMessageFactory.h
* src/DefaultPeerStorage.cc
* src/DefaultPeerStorage.h
* src/DefaultPieceStorage.cc
* src/DefaultSegmentManFactory.cc
* src/DiskAdaptor.cc
* src/DiskAdaptor.h
* src/DownloadContext.cc
* src/DownloadContext.h
* src/DownloadEngine.cc
* src/DownloadEngineFactory.cc
* src/DownloadHandler.cc
* src/DownloadResult.h
* src/FileAllocationCommand.cc
* src/FileAllocationDispatcherCommand.cc
* src/FileAllocationEntry.cc
* src/FileEntry.h
* src/FillRequestGroupCommand.cc
* src/FtpDownloadCommand.cc
* src/FtpFinishDownloadCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/FtpTunnelRequestCommand.cc
* src/FtpTunnelResponseCommand.cc
* src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.h
* src/HaveEraseCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpProxyRequestCommand.cc
* src/HttpProxyResponseCommand.cc
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/HttpResponseCommand.cc
* src/HttpServerBodyCommand.cc
* src/HttpServerCommand.cc
* src/HttpSkipResponseCommand.cc
* src/InitiateConnectionCommandFactory.cc
* src/InitiatorMSEHandshakeCommand.cc
* src/InitiatorMSEHandshakeCommand.h
* src/IteratableChecksumValidator.cc
* src/IteratableChecksumValidator.h
* src/IteratableChunkChecksumValidator.cc
* src/MSEHandshake.cc
* src/MSEHandshake.h
* src/Makefile.am
* src/Makefile.in
* src/Metalink2RequestGroup.cc
* src/MetalinkPostDownloadHandler.cc
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
* src/MultiFileAllocationIterator.cc
* src/MultiUrlRequestInfo.cc
* src/PeerChokeCommand.cc
* src/PeerChokeCommand.h
* src/PeerInitiateConnectionCommand.cc
* src/PeerInitiateConnectionCommand.h
* src/PeerInteractionCommand.cc
* src/PeerInteractionCommand.h
* src/PeerReceiveHandshakeCommand.cc
* src/PieceHashCheckIntegrityEntry.cc
* src/RealtimeCommand.cc
* src/ReceiverMSEHandshakeCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupEntry.cc
* src/RequestGroupMan.cc
* src/SeedCheckCommand.cc
* src/SeedCheckCommand.h
* src/SegmentMan.cc
* src/ShareRatioSeedCriteria.h
* src/SingleFileDownloadContext.cc: Removed
* src/SingleFileDownloadContext.h: Removed
* src/SleepCommand.cc
* src/StreamCheckIntegrityEntry.cc
* src/TrackerWatcherCommand.cc
* src/TrackerWatcherCommand.h
* src/UnknownLengthPieceStorage.cc
* src/Util.cc
* src/Util.h
* src/XmlRpcMethodImpl.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/download_helper.cc
* src/main.cc
* src/option_processing.cc
* test/BitfieldManTest.cc
* test/BittorrentHelperTest.cc
* test/BtCancelMessageTest.cc
* test/BtChokeMessageTest.cc
* test/BtDependencyTest.cc
* test/BtPieceMessageTest.cc
* test/BtPostDownloadHandlerTest.cc
* test/BtRegistryTest.cc
* test/BtRejectMessageTest.cc
* test/BtRequestMessageTest.cc
* test/DHTPeerAnnounceStorageTest.cc
* test/DefaultBtAnnounceTest.cc
* test/DefaultBtContextTest.cc: Removed
* test/DefaultBtMessageDispatcherTest.cc
* test/DefaultBtMessageFactoryTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/DefaultBtRequestFactoryTest.cc
* test/DefaultExtensionMessageFactoryTest.cc
* test/DefaultPeerStorageTest.cc
* test/DefaultPieceStorageTest.cc
* test/DirectDiskAdaptorTest.cc
* test/DownloadContextTest.cc
* test/DownloadHandlerFactoryTest.cc
* test/DownloadHelperTest.cc
* test/HandshakeExtensionMessageTest.cc
* test/HttpRequestTest.cc
* test/HttpResponseTest.cc
* test/IteratableChecksumValidatorTest.cc
* test/IteratableChunkChecksumValidatorTest.cc
* test/MSEHandshakeTest.cc
* test/Makefile.am
* test/Makefile.in
* test/Metalink2RequestGroupTest.cc
* test/MetalinkPostDownloadHandlerTest.cc
* test/MockBtContext.h: Removed
* test/MockDHTTaskFactory.h
* test/MockDownloadContext.h: Removed
* test/MockPieceStorage.h
* test/MultiDiskAdaptorTest.cc
* test/MultiFileAllocationIteratorTest.cc
* test/RequestGroupManTest.cc
* test/RequestGroupTest.cc
* test/SegmentManTest.cc
* test/ShareRatioSeedCriteriaTest.cc
* test/SingleFileDownloadContextTest.cc: Removed
* test/UtilTest.cc
* test/XmlRpcMethodTest.cc
2009-06-28 10:37:15 +00:00
Tatsuhiro Tsujikawa
90471d6805
2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added experimental support of WEB-Seeding for multi-file torrent.
Due to fundamental changes in file handling in HTTP/FTP code, many
functions are not working: PeerStat, ServerHost, proxy..etc
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/CreateRequestCommand.cc
* src/CreateRequestCommand.h
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/DownloadCommand.cc
* src/DownloadCommand.h
* src/DownloadContext.cc
* src/DownloadContext.h
* src/FileEntry.cc
* src/FileEntry.h
* src/FtpDownloadCommand.cc
* src/FtpDownloadCommand.h
* src/FtpFinishDownloadCommand.cc
* src/FtpFinishDownloadCommand.h
* src/FtpInitiateConnectionCommand.cc
* src/FtpInitiateConnectionCommand.h
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* src/FtpTunnelResponseCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpDownloadCommand.h
* src/HttpInitiateConnectionCommand.cc
* src/HttpInitiateConnectionCommand.h
* src/HttpProxyResponseCommand.cc
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/HttpRequestCommand.h
* src/HttpResponseCommand.cc
* src/HttpResponseCommand.h
* src/HttpSkipResponseCommand.cc
* src/HttpSkipResponseCommand.h
* src/InitiateConnectionCommand.cc
* src/InitiateConnectionCommand.h
* src/InitiateConnectionCommandFactory.cc
* src/InitiateConnectionCommandFactory.h
* src/Makefile.am
* src/PieceStorage.h
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/SegmentMan.cc
* src/SegmentMan.h
* src/SingleFileDownloadContext.h
* src/StreamFileAllocationEntry.cc
* src/TrackerWatcherCommand.cc
* src/UnknownLengthPieceStorage.cc
* src/UnknownLengthPieceStorage.h
* src/array_fun.h
* src/bitfield.h
* src/download_helper.cc
* test/DownloadContextTest.cc
* test/Makefile.am
* test/MockDownloadContext.h
2009-06-23 15:35:45 +00:00
Tatsuhiro Tsujikawa
6b2ab3ffc0
2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added tellWaiting XML-RPC method.
* src/SingleFileDownloadContext.cc
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-06-23 15:14:24 +00:00
Tatsuhiro Tsujikawa
4cfe156aa7
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
handle excepion inside these functions.
* src/LibgnutlsTLSContext.cc
* src/LibgnutlsTLSContext.h
* src/LibsslTLSContext.cc
* src/LibsslTLSContext.h
* src/MultiUrlRequestInfo.cc
2009-06-21 10:41:50 +00:00
Tatsuhiro Tsujikawa
a60ba71f1e
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added comment
* src/RequestGroup.cc
2009-06-21 10:36:59 +00:00
Tatsuhiro Tsujikawa
f3c79ebf05
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In CookieStorage::load() and saveNsFormat(), handle exception
inside the functions. When saving Cookies, first write temporary
file and after successful writes, then renames it to final
destination.
* src/CookieStorage.cc
* src/CookieStorage.h
* src/MultiUrlRequestInfo.cc
2009-06-21 10:26:14 +00:00
Tatsuhiro Tsujikawa
8d4f29d302
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
The default value of --dir option is the absolute path to the
current directory. If getcwd() is failed, then it is ".", which is
the same value with old implementation. This change is necessary
because after daemon() call, the current working directory is
changed to /.
* src/File.cc
* src/File.h
* src/OptionHandlerFactory.cc
* src/option_processing.cc
2009-06-20 16:47:54 +00:00
Tatsuhiro Tsujikawa
3636345a25
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call daemon() with arguments(0,0), which means daemon() changes
current working directory to / and redirects stdin, stdout and
stderr to /dev/null.
* src/option_processing.cc
2009-06-20 16:17:00 +00:00
Tatsuhiro Tsujikawa
3177b0aa1c
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Small performance optimizations.
* src/RequestGroupMan.cc
2009-06-20 16:09:04 +00:00
Tatsuhiro Tsujikawa
0b9c5a9165
2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added _xmlRpc member variable to RequestGroupMan to reduce the
number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
2009-06-20 03:19:23 +00:00
Tatsuhiro Tsujikawa
572f10af72
2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
setNoWiat(true) if newly created command calls
setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
* src/HttpListenCommand.cc
* src/HttpServerBodyCommand.cc
* src/HttpServerCommand.cc
* src/HttpServerResponseCommand.cc
* src/InitiateConnectionCommand.cc
* src/RequestGroup.cc
* src/StreamFileAllocationEntry.cc
2009-06-20 02:33:42 +00:00
Tatsuhiro Tsujikawa
34b3d88795
2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed include vector
* src/BtRegistry.h
2009-06-17 12:04:03 +00:00
Tatsuhiro Tsujikawa
eaf5217de7
2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten BtRegistry
* src/BtRegistry.cc
* src/BtRegistry.h
* src/BtSetup.cc
* src/ConsoleStatCalc.cc
* src/PeerInteractionCommand.cc
* src/PeerReceiveHandshakeCommand.cc
* src/ReceiverMSEHandshakeCommand.cc
* src/RequestGroup.cc
* src/XmlRpcMethodImpl.cc
* test/BtRegistryTest.cc
2009-06-17 11:51:44 +00:00
Tatsuhiro Tsujikawa
5e835ae885
2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
* src/DefaultBtProgressInfoFile.cc
2009-06-14 12:19:52 +00:00
Tatsuhiro Tsujikawa
a28f19befb
2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Throw an exception if position is less than 0.
* src/XmlRpcMethodImpl.cc
* test/XmlRpcMethodTest.cc
2009-06-14 11:29:46 +00:00
Tatsuhiro Tsujikawa
daf0c5ee73
2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use writeFilePath() in ConsoleStatCalc.cc
* src/ConsoleStatCalc.cc
2009-06-14 11:22:51 +00:00
Tatsuhiro Tsujikawa
85db426de5
2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Receive the return value as const reference from
DownloadContext::getFileEntries().
* src/DefaultPieceStorage.cc
* src/RequestGroupMan.cc
* src/XmlRpcMethodImpl.cc
2009-06-14 11:17:20 +00:00
Tatsuhiro Tsujikawa
39472a64eb
2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
DownloadContext now has _fileEntries so that
DownloadContext::getFileEntries() can returns its const reference.
* src/DefaultBtContext.cc
* src/DefaultBtContext.h
* src/DownloadContext.cc
* src/DownloadContext.h
* src/SingleFileDownloadContext.cc
* src/SingleFileDownloadContext.h
2009-06-14 11:12:20 +00:00
Tatsuhiro Tsujikawa
9120e79ff1
2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
writeFilePath() function template from RequestGroupMan.cc to
FileEntry.h
* src/FileEntry.h
* src/RequestGroupMan.cc
2009-06-14 09:45:44 +00:00
Tatsuhiro Tsujikawa
d98e740dac
2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc.
* src/MSEHandshake.cc
2009-06-12 14:40:21 +00:00
Tatsuhiro Tsujikawa
3300aec6ff
2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed _acceptFeatures and its accessor functions from
RequestGroup since they are not used practically.
* src/HttpRequestCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
2009-06-12 14:20:37 +00:00
Tatsuhiro Tsujikawa
5fe5c37897
2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed member _maxTries from RequestGroup class to avoid
duplicate option value. Those classes who refer this variable
should use option value of PREF_MAX_TRIES directly.
* src/AbstractCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/TrackerWatcherCommand.cc
2009-06-12 14:12:54 +00:00
Tatsuhiro Tsujikawa
8adb77dc29
2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warnings on netbsd
* src/DHTConnectionImpl.cc
* src/PeerListenCommand.cc
* src/PeerSessionResource.cc
* src/SegmentMan.cc
2009-06-07 12:36:27 +00:00
Tatsuhiro Tsujikawa
9be97eebb5
2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten strconcat and strappend using operator+ instead of
append().
* src/a2functional.h
2009-06-07 07:49:39 +00:00
Tatsuhiro Tsujikawa
c42cea4bcd
2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Compile bencode.cc and BencodeTest.cc only if BitTorrent support
is enabled.
* src/Makefile.am
* test/Makefile.am
2009-06-07 05:36:44 +00:00
Tatsuhiro Tsujikawa
b922020985
2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added countSeeder() function which counts seeder in the given
iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
* src/ConsoleStatCalc.cc
* src/Peer.h
* src/XmlRpcMethodImpl.cc
* test/PeerTest.cc
2009-06-07 05:34:10 +00:00
Tatsuhiro Tsujikawa
9d910c47c2
2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added uploadLength and numSeeders to the response of tellStatus
xml-rpc method. Assert that PeerStorage instance is not null
instead of checking if statement. It should be non-null in this
context.
* src/XmlRpcMethodImpl.cc
2009-06-06 14:40:32 +00:00
Tatsuhiro Tsujikawa
f36ef2d26d
2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
* src/XmlRpcResponse.cc
2009-06-06 13:39:36 +00:00
Tatsuhiro Tsujikawa
c7275bd978
2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid intermediate object during string concatenation.
* src/HttpRequest.cc
2009-06-06 13:34:48 +00:00
Tatsuhiro Tsujikawa
a8c278d026
2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added strjoin function template. Use it in pathJoin()
* src/Util.h
* src/a2functional.h
2009-06-06 12:48:05 +00:00
Tatsuhiro Tsujikawa
3bb2e3b07e
2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid intermediate object during string concatenation. Replaced
post-increment unary operator with pre-increment one in for loop.
* src/AdaptiveURISelector.cc
* src/AnnounceList.cc
* src/AuthConfig.h
* src/BtBitfieldMessage.cc
* src/BtExtendedMessage.cc
* src/BtHandshakeMessage.cc
* src/BtPieceMessage.cc
* src/BtPortMessage.cc
* src/Cookie.cc
* src/DHTAnnouncePeerMessage.cc
* src/DHTAutoSaveCommand.cc
* src/DHTGetPeersReplyMessage.cc
* src/DHTNode.cc
* src/DHTQueryMessage.cc
* src/DHTResponseMessage.cc
* src/DHTUnknownMessage.cc
* src/DefaultBtAnnounce.cc
* src/DefaultBtContext.cc
* src/DefaultBtInteractive.cc
* src/DefaultBtProgressInfoFile.cc
* src/DefaultPeerStorage.cc
* src/DownloadEngine.cc
* src/FeatureConfig.cc
* src/File.cc
* src/FtpConnection.cc
* src/FtpNegotiationCommand.cc
* src/HandshakeExtensionMessage.cc
* src/HttpConnection.cc
* src/HttpRequest.cc
* src/HttpResponseCommand.cc
* src/HttpServer.cc
* src/IndexBtMessage.cc
* src/Metalink2RequestGroup.cc
* src/OptionHandlerImpl.h
* src/PStringBuildVisitor.cc
* src/Peer.cc
* src/PeerListenCommand.cc
* src/Piece.cc
* src/RangeBtMessage.cc
* src/Request.cc
* src/Request.h
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/ServerStat.cc
* src/ServerStatMan.cc
* src/UTPexExtensionMessage.cc
* src/Util.cc
* src/a2functional.h
* src/download_helper.cc
* src/messageDigest.cc
2009-06-06 12:33:07 +00:00
Tatsuhiro Tsujikawa
997f96d864
2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Unchoke a peer randomly at first and second choke round in seed
state.
* src/BtSeederStateChoke.cc
2009-06-04 12:07:27 +00:00
Ross Smith II
2e34ea1e42
Added (sock_t) to quiet compiler warnings in MinGW
2009-06-02 03:18:07 +00:00
Tatsuhiro Tsujikawa
3455fca9ca
2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing #ifdef ENABLE_ASYNC_DNS guard.
* src/EpollEventPoll.h
2009-06-01 15:49:29 +00:00
Ross Smith II
e69889803a
Added fork() emulation using CreateProcess() in MinGW
2009-06-01 02:30:28 +00:00
Tatsuhiro Tsujikawa
a9189ee7d9
2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added max-concurrent-downloads option to changeGlobalOption
xml-rpc method. Rewritten loop conditional in
RequestGroupMan::fillRequestGroupFromReserver().
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/XmlRpcMethod.cc
* src/XmlRpcMethodImpl.cc
2009-05-30 14:28:18 +00:00
Tatsuhiro Tsujikawa
960bab86c7
2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added 'position' parameter to addUri, addTorrent and addMetalink
xml-rpc method.
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/XmlRpcMethodImpl.cc
* test/XmlRpcMethodTest.cc
2009-05-30 13:55:14 +00:00
Tatsuhiro Tsujikawa
918c6bf38d
2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed Peer.cc from compile source list when --disable-bittorrent
is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
takes Peer.
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/Makefile.am
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.cc
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
2009-05-29 12:32:17 +00:00
Tatsuhiro Tsujikawa
8b6da1ee36
2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Implemented getter methods in header files to give them more
chance of optimization.
Return const reference for SharadHandle if possible.
* src/AbstractAuthResolver.cc
* src/AbstractAuthResolver.h
* src/AbstractBtMessage.cc
* src/AbstractBtMessage.h
* src/AbstractSingleDiskAdaptor.cc
* src/AbstractSingleDiskAdaptor.h
* src/AsyncNameResolver.cc
* src/AsyncNameResolver.h
* src/BNode.cc
* src/BNode.h
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/BtAbortOutstandingRequestEvent.h
* src/BtExtendedMessage.cc
* src/BtExtendedMessage.h
* src/BtSeederStateChoke.cc
* src/BtSeederStateChoke.h
* src/Cookie.cc
* src/Cookie.h
* src/DHTBucket.cc
* src/DHTBucket.h
* src/DHTConnectionImpl.cc
* src/DHTConnectionImpl.h
* src/DHTFindNodeReplyMessage.cc
* src/DHTFindNodeReplyMessage.h
* src/DHTGetPeersReplyMessage.cc
* src/DHTGetPeersReplyMessage.h
* src/DHTInteractionCommand.cc
* src/DHTMessage.cc
* src/DHTMessage.h
* src/DHTMessageDispatcherImpl.cc
* src/DHTMessageEntry.cc
* src/DHTMessageReceiver.cc
* src/DHTMessageReceiver.h
* src/DHTMessageTrackerEntry.cc
* src/DHTMessageTrackerEntry.h
* src/DHTPeerAnnounceEntry.cc
* src/DHTPeerAnnounceEntry.h
* src/DHTPeerLookupTask.cc
* src/DHTPeerLookupTask.h
* src/DHTRoutingTableDeserializer.cc
* src/DHTRoutingTableDeserializer.h
* src/DefaultBtAnnounce.cc
* src/DefaultBtAnnounce.h
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtMessageDispatcher.h
* src/DefaultBtRequestFactory.cc
* src/DefaultBtRequestFactory.h
* src/DiskAdaptor.cc
* src/DiskAdaptor.h
* src/DownloadContext.cc
* src/DownloadContext.h
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/EpollEventPoll.cc
* src/EpollEventPoll.h
* src/FtpConnection.cc
* src/FtpConnection.h
* src/HttpConnection.cc
* src/HttpConnection.h
* src/HttpHeader.cc
* src/HttpHeader.h
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpResponse.cc
* src/HttpResponse.h
* src/LibsslTLSContext.cc
* src/LibsslTLSContext.h
* src/MSEHandshake.cc
* src/MSEHandshake.h
* src/MetalinkEntry.cc
* src/MetalinkEntry.h
* src/MetalinkParserController.cc
* src/MetalinkParserController.h
* src/MetalinkParserStateMachine.cc
* src/MetalinkParserStateMachine.h
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
* src/NetrcAuthResolver.cc
* src/NetrcAuthResolver.h
* src/Peer.cc
* src/Peer.h
* src/PeerSessionResource.cc
* src/PeerSessionResource.h
* src/Piece.cc
* src/Piece.h
* src/PieceStatMan.cc
* src/PieceStatMan.h
* src/Request.cc
* src/Request.h
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/RequestSlot.cc
* src/RequestSlot.h
* src/SegmentMan.cc
* src/SegmentMan.h
* src/SelectEventPoll.cc
* src/SelectEventPoll.h
* src/ServerStat.cc
* src/ServerStat.h
* src/Signature.cc
* src/Signature.h
* src/URIResult.cc
* src/URIResult.h
* src/UTPexExtensionMessage.cc
* src/UTPexExtensionMessage.h
2009-05-29 12:12:22 +00:00
Tatsuhiro Tsujikawa
30f362319e
2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without BitTorrent and Metalink support.
* src/XmlRpcMethod.cc
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-05-27 17:27:05 +00:00
Tatsuhiro Tsujikawa
7a8e2fdadb
2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten the help message for --allow-overwrite option.
* doc/aria2c.1.txt
* src/usage_text.h
2009-05-27 12:58:33 +00:00
Tatsuhiro Tsujikawa
afe1d551e8
2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* doc/aria2c.1.txt
* src/usage_text.h
2009-05-27 12:51:12 +00:00
Tatsuhiro Tsujikawa
fcf183cc84
2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved C_* constants from BtContext to DefaultBtContext.
* src/BtContext.cc: Removed.
* src/BtContext.h
* src/DefaultBtContext.cc
* src/DefaultBtContext.h
* src/Makefile.am
2009-05-26 15:36:57 +00:00
Tatsuhiro Tsujikawa
41df4b5e28
2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use name.utf-8 and path.utf-8 key in higher priority than name and
path key respectively when persing .torrent file.
* src/BtContext.cc
* src/BtContext.h
* src/DefaultBtContext.cc
* test/DefaultBtContextTest.cc
* test/utf8.torrent
2009-05-26 15:28:48 +00:00
Tatsuhiro Tsujikawa
544732b124
2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --xml-rpc-max-request-size option to limit the size of
XML-RPC request.
2009-05-26 14:38:11 +00:00
Tatsuhiro Tsujikawa
a933438401
2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
will break strict-aliasing rules
* src/PeerConnection.cc
* test/DHTRoutingTableSerializerTest.cc
2009-05-23 15:48:20 +00:00
Tatsuhiro Tsujikawa
50060985c3
2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
PKG_CHECK_MODULES macro uses latter name.
* m4/sqlite3.m4
* src/Makefile.am
* test/Makefile.am
2009-05-23 06:20:29 +00:00
Tatsuhiro Tsujikawa
aafbe6f74b
2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
presence of libgnutls using pkg-config first. If it fails, fall
back to old macro libgnutls.m4.
* configure.ac
2009-05-23 05:20:21 +00:00
Tatsuhiro Tsujikawa
d99ca899ef
2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use s itself instead of !s.bad()
* src/CookieStorage.cc
2009-05-22 16:09:37 +00:00
Tatsuhiro Tsujikawa
e1775040b6
2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set possible values for --load-cookie option to "/path/to/file".
* src/OptionHandlerFactory.cc
2009-05-22 15:02:16 +00:00
Tatsuhiro Tsujikawa
383b12d7f1
2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --save-cookies option.
* src/Cookie.cc
* src/Cookie.h
* src/CookieStorage.cc
* src/CookieStorage.h
* src/MultiUrlRequestInfo.cc
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/CookieStorageTest.cc
* test/CookieTest.cc
2009-05-22 14:51:57 +00:00
Tatsuhiro Tsujikawa
5bad3a1c91
2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed tellAll XML-RPC command because its reponse tends to be
big if stopped/waiting downloads pile up.
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-22 13:48:52 +00:00
Tatsuhiro Tsujikawa
48a7e5868f
2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added the ability to execute command when download starts and
stops. You can also specify command for particular cases such as
complete/error download. Added --on-download-start,
--on-download-stop, --on-download-complete and --on-download-error
option.
* src/OptionHandlerFactory.cc
* src/RequestGroupMan.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-05-22 13:43:07 +00:00
Tatsuhiro Tsujikawa
4259514395
2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made exception message more verbose.
* src/bencode.cc
2009-05-22 12:27:17 +00:00
Tatsuhiro Tsujikawa
a839b42747
2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
space in console readout. Also they are now shown in MiB/s if
speed > 1024KiB/s.
* src/ConsoleStatCalc.cc
2009-05-19 12:08:13 +00:00
Tatsuhiro Tsujikawa
579457eae0
2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added SEED to console output, which represents the number of
seeders currently the client is connecting to.
* src/ConsoleStatCalc.cc
* src/ConsoleStatCalc.h
* src/DownloadEngine.cc
* src/NullStatCalc.h
* src/StatCalc.h
2009-05-19 11:29:23 +00:00
Tatsuhiro Tsujikawa
20e215047c
2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added source filename(__FILE__) and line number(__LINE__) to
exception message.
* src/AbstractCommand.cc
* src/AbstractDiskWriter.cc
* src/AbstractProxyResponseCommand.cc
* src/BDE.h
* src/BtAllowedFastMessage.cc
* src/BtHandshakeMessageValidator.h
* src/BtHaveAllMessage.cc
* src/BtHaveNoneMessage.cc
* src/BtPieceMessage.cc
* src/BtRejectMessage.cc
* src/ChunkedDecoder.cc
* src/CookieStorage.cc
* src/DHTAnnouncePeerMessage.cc
* src/DHTEntryPointNameResolveCommand.cc
* src/DHTMessageFactoryImpl.cc
* src/DHTMessageTracker.cc
* src/DHTRoutingTableDeserializer.cc
* src/DHTRoutingTableSerializer.cc
* src/DHTSetup.cc
* src/DHTTokenTracker.cc
* src/DefaultBtAnnounce.cc
* src/DefaultBtContext.cc
* src/DefaultBtInteractive.cc
* src/DefaultBtMessageFactory.cc
* src/DefaultBtProgressInfoFile.cc
* src/DefaultExtensionMessageFactory.cc
* src/DlAbortEx.h
* src/DlRetryEx.h
* src/DownloadCommand.cc
* src/DownloadEngineFactory.cc
* src/DownloadFailureException.h
* src/Exception.cc
* src/Exception.h
* src/ExpatMetalinkProcessor.cc
* src/ExpatXmlRpcRequestProcessor.cc
* src/FallocFileAllocationIterator.cc
* src/FatalException.h
* src/FtpConnection.cc
* src/FtpFinishDownloadCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/GZipDecoder.cc
* src/HandshakeExtensionMessage.cc
* src/HttpConnection.cc
* src/HttpHeaderProcessor.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpResponse.cc
* src/HttpResponseCommand.cc
* src/HttpServer.cc
* src/HttpSkipResponseCommand.cc
* src/InitiateConnectionCommandFactory.cc
* src/IteratableChunkChecksumValidator.cc
* src/LibgcryptARC4Context.h
* src/LibgcryptARC4Decryptor.h
* src/LibgcryptARC4Encryptor.h
* src/LibgcryptDHKeyExchange.h
* src/LibgnutlsTLSContext.cc
* src/LibsslARC4Context.h
* src/LibsslARC4Decryptor.h
* src/LibsslARC4Encryptor.h
* src/LibsslDHKeyExchange.h
* src/LibsslTLSContext.cc
* src/MSEHandshake.cc
* src/MessageDigestHelper.cc
* src/MetalinkHelper.cc
* src/MultiDiskAdaptor.cc
* src/NameMatchOptionHandler.h
* src/NameResolver.cc
* src/Netrc.cc
* src/NsCookieParser.cc
* src/OptionHandlerException.cc
* src/OptionHandlerException.h
* src/OptionHandlerImpl.h
* src/OptionParser.cc
* src/ParameterizedStringParser.cc
* src/PeerAbstractCommand.cc
* src/PeerConnection.cc
* src/PeerMessageUtil.cc
* src/PeerReceiveHandshakeCommand.cc
* src/Platform.cc
* src/ReceiverMSEHandshakeCommand.cc
* src/RecoverableException.h
* src/RequestGroup.cc
* src/SimpleLogger.cc
* src/SocketCore.cc
* src/Sqlite3MozCookieParser.cc
* src/UTPexExtensionMessage.cc
* src/Util.cc
* src/XML2SAXMetalinkProcessor.cc
* src/Xml2XmlRpcRequestProcessor.cc
* src/XmlRpcMethodImpl.cc
* src/bencode.cc
* src/download_helper.cc
* src/messageDigest.h
* test/ExceptionTest.cc
* test/TestUtil.cc
2009-05-18 15:07:15 +00:00
Tatsuhiro Tsujikawa
86f27fed57
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Show "[MEMORY]" prefix before filename in download summary if it
is downloaded into memory.
* src/DownloadResult.h
* src/RequestGroup.cc
* src/RequestGroupMan.cc
2009-05-15 09:15:07 +00:00
Tatsuhiro Tsujikawa
ee75995198
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
* src/ExpatXmlRpcRequestProcessor.cc
* src/Xml2XmlRpcRequestProcessor.cc
* src/message.h
2009-05-15 08:56:34 +00:00
Tatsuhiro Tsujikawa
389866621f
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined const BDEs to avoid duplicate instantiation.
Defined MSG_GID_NOT_PROVIDED.
* src/XmlRpcMethodImpl.cc
* src/message.h
2009-05-15 08:53:05 +00:00
Tatsuhiro Tsujikawa
409aa477ee
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/Xml2XmlRpcRequestProcessor.cc
* src/Xml2XmlRpcRequestProcessor.h
2009-05-15 08:39:28 +00:00
Tatsuhiro Tsujikawa
549864bc1c
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added ExpatXmlRpcRequestProcessor
* src/ExpatXmlRpcRequestProcessor.cc
* src/ExpatXmlRpcRequestProcessor.h
* src/Makefile.am
2009-05-15 08:21:55 +00:00
Tatsuhiro Tsujikawa
ddb5d4a8cb
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added tellAll command.
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-14 16:00:55 +00:00
Tatsuhiro Tsujikawa
1312c535be
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use gatherProgress() in TellActiveXmlRpcMethod::process().
* src/XmlRpcMethodImpl.cc
2009-05-14 15:49:46 +00:00
Tatsuhiro Tsujikawa
3e2ccbf359
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added changeGlobalOption command. Currently,
max-overall-download-limit and max-overall-upload-limit option are
available.
* src/RequestGroupMan.h
* src/XmlRpcMethod.cc
* src/XmlRpcMethod.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-05-14 15:44:59 +00:00
Tatsuhiro Tsujikawa
850458f7b1
2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added changeOption command. Currently, max-download-limit,
max-upload-limit option are available in this command.
* src/RequestGroup.h
* src/XmlRpcMethod.cc
* src/XmlRpcMethod.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-05-14 15:23:50 +00:00
Tatsuhiro Tsujikawa
692c4eaf3e
2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added purgeDownloadResult command.
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-14 13:48:26 +00:00
Tatsuhiro Tsujikawa
e332ef3e1c
2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refactored.
* src/XmlRpcMethod.cc
2009-05-14 13:29:17 +00:00
Tatsuhiro Tsujikawa
92b3f57ac9
2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
XmlRpcResponse.
* src/HttpServerBodyCommand.cc
* src/Makefile.am
* src/XmlRpcMethod.cc
* src/XmlRpcMethod.h
* src/XmlRpcMethodImpl.cc
* src/XmlRpcResponse.cc
* src/XmlRpcResponse.h
* test/XmlRpcMethodTest.cc
2009-05-14 12:59:52 +00:00
Tatsuhiro Tsujikawa
dd6d098ccb
2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In XML-RPC option struct, header and index-out option can take
array as value.
* src/XmlRpcMethod.cc
2009-05-13 15:23:01 +00:00
Tatsuhiro Tsujikawa
cdd65e8cca
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused option member from PeerConnection.
* src/InitiatorMSEHandshakeCommand.cc
* src/PeerConnection.cc
* src/PeerConnection.h
* src/PeerInteractionCommand.cc
* src/PeerReceiveHandshakeCommand.cc
* src/ReceiverMSEHandshakeCommand.cc
2009-05-13 14:50:48 +00:00
Tatsuhiro Tsujikawa
d9fe4fb845
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added "seeder" key to getPeers response.
* src/XmlRpcMethodImpl.cc
2009-05-13 14:49:15 +00:00
Tatsuhiro Tsujikawa
cbaf0619d9
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added addMetalink XML-RPC command.
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* src/download_helper.cc
* src/download_helper.h
2009-05-13 14:13:36 +00:00
Tatsuhiro Tsujikawa
eb0cb42c72
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that POU peers are never choked in seeding.
* src/BtSeederStateChoke.cc
* src/BtSeederStateChoke.h
2009-05-13 14:10:20 +00:00
Tatsuhiro Tsujikawa
9b9295ce4a
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added web-seeding URI handling in addTorrent command.
* src/XmlRpcMethodImpl.cc
2009-05-13 12:42:34 +00:00
Tatsuhiro Tsujikawa
98666d33b9
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added "length" key to getFiles response.
* src/XmlRpcMethodImpl.cc
2009-05-13 12:31:43 +00:00
Tatsuhiro Tsujikawa
bab4b09a36
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved --no-netrc option from ftp option section to http/ftp option
section.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
2009-05-13 12:30:38 +00:00
Tatsuhiro Tsujikawa
5983e3e9d9
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added "downloadSpeed" and uploadSpeed" key in getPeers response.
* src/DefaultPeerStorage.cc
* src/DefaultPeerStorage.h
* src/PeerStorage.h
* src/XmlRpcMethodImpl.cc
* test/MockPeerStorage.h
2009-05-12 16:16:13 +00:00
Tatsuhiro Tsujikawa
64945c1f03
2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Put a call to Socket::isReadable() in try block.
* src/HttpServerBodyCommand.cc
* src/HttpServerCommand.cc
2009-05-12 16:08:23 +00:00
Tatsuhiro Tsujikawa
55c5cccf09
2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
exception , so it is now in try block.
* src/HttpServerResponseCommand.cc
2009-05-12 16:06:14 +00:00
Tatsuhiro Tsujikawa
626fa15c5e
2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added "amChoking" and "peerChoking" key in getPeers response.
* src/XmlRpcMethodImpl.cc
2009-05-12 15:29:51 +00:00
Tatsuhiro Tsujikawa
d3ae337ace
2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
getFiles command now returns file data for finished/stopped
downloads.
* src/XmlRpcMethodImpl.cc
2009-05-12 15:17:18 +00:00
Tatsuhiro Tsujikawa
8bbbc9c33b
2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
DownloadResult now has the list of FileEntry. The download
summary displays the path of first selected file and the number of
remaining files for multi-file torrent.
* src/DownloadResult.h
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* test/RequestGroupTest.cc
2009-05-12 15:16:11 +00:00
Tatsuhiro Tsujikawa
d38b21acb0
2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed segmentation fault error when no file is selected in
multi-file torrent.
* src/BitfieldMan.cc
2009-05-12 15:12:45 +00:00
Tatsuhiro Tsujikawa
bf65ccc802
2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Escaped <,>,& character in XML-RPC response.
* src/XmlRpcMethod.cc
2009-05-12 14:06:11 +00:00
Tatsuhiro Tsujikawa
62165b9ed1
2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Throw DlAbortEx instead of FatalException during parsing options
because we don't want for aria2 to quit when bad option is passed
via XML-RPC.
* src/OptionHandlerException.cc
* src/OptionHandlerException.h
* src/OptionHandlerImpl.h
* src/OptionParser.cc
* src/OptionParser.h
* src/PStringSegment.cc
* src/ParameterizedStringParser.cc
* src/download_helper.cc
* test/ParameterizedStringParserTest.cc
2009-05-12 13:51:12 +00:00
Tatsuhiro Tsujikawa
2758562eb0
2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Selecting files are now done in
DefaultBtContext::setFileFileter().
PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
functions are removed because they are no longer used. Creating
filter in BitfieldMan is done in new funtion
PieceStorage::setupFileFilter()
* src/BtContext.cc
* src/BtContext.h
* src/DefaultBtContext.cc
* src/DefaultBtContext.h
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/DiskAdaptor.cc
* src/DiskAdaptor.h
* src/PieceStorage.h
* src/RequestGroup.cc
* src/UnknownLengthPieceStorage.h
* src/XmlRpcMethodImpl.cc
* test/DefaultBtContextTest.cc
* test/MockBtContext.h
* test/MockPieceStorage.h
2009-05-12 13:31:04 +00:00
Tatsuhiro Tsujikawa
c3129fd4a4
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error on Mac OS X
* src/HttpServer.cc
* src/XmlRpcMethod.h
* src/XmlRpcMethodImpl.cc
2009-05-10 16:37:34 +00:00
Tatsuhiro Tsujikawa
52312c7a31
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use std::binary_search instead of std::find
* src/DefaultPieceStorage.cc
2009-05-10 15:09:49 +00:00
Tatsuhiro Tsujikawa
1d2cfd93d7
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unnecessary BDE() call; leave them to implicit conversion.
* src/XmlRpcMethodImpl.cc
2009-05-10 15:03:39 +00:00
Tatsuhiro Tsujikawa
7c24aa3b97
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Return connections and gid in string
* src/XmlRpcMethodImpl.cc
2009-05-10 14:59:21 +00:00
Tatsuhiro Tsujikawa
81b19074f8
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed addURI as addUri
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-05-10 14:51:20 +00:00
Tatsuhiro Tsujikawa
dac269f658
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed addTorrentFile as addTorrent
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-10 14:44:45 +00:00
Tatsuhiro Tsujikawa
bb56bd5bd1
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
The information for files, URIs, peers are removed from the
reponse of TellaActive, TellStatus command because they tend to be
large. Instead they can be retrieved by the dedicated commands:
getFiles, getUris and getPeers respectively.
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-10 14:35:51 +00:00
Tatsuhiro Tsujikawa
efe294320e
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed --max-overall-upload-limit and
--max-overall-download-limit option from listRequestOptions.
* src/download_helper.cc
2009-05-09 17:10:34 +00:00
Tatsuhiro Tsujikawa
02de210544
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Log incoming host in HttpListenCommand.
* src/HttpListenCommand.cc
2009-05-09 15:55:52 +00:00
Tatsuhiro Tsujikawa
7aefbb7338
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
--xml-rpc-passwd option.
* src/HttpServer.cc
* src/HttpServer.h
* src/HttpServerCommand.cc
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-05-09 15:38:23 +00:00
Tatsuhiro Tsujikawa
d237c5e442
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that SocketCore::isReadable() prevents aria2 from
processing 0 length request.
* src/HttpServerBodyCommand.cc
2009-05-09 15:36:15 +00:00
Tatsuhiro Tsujikawa
9f0a602ce3
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed --enable-http-server and --http-server-listen-port
options. Added --enable-xml-rpc and --xml-rpc-listen-port
instead. The original feature for --enable-http-server that
reports download progress in HTML was officially removed. Persist
XML-RPC connection if client supports keep-alive.
* src/DownloadEngineFactory.cc
* src/HttpServerCommand.cc
* src/HttpServerResponseCommand.cc
* src/Makefile.am
* src/Makefile.in
* src/OptionHandlerFactory.cc
* src/RequestGroupMan.cc
* src/main.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-05-09 14:01:35 +00:00
Tatsuhiro Tsujikawa
45249392fd
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added "uris" key to the response of tellStatus command. Added
"connections" key to the response of tellStatus and tellActive
command.
* src/XmlRpcMethodImpl.cc
2009-05-09 13:00:47 +00:00
Tatsuhiro Tsujikawa
b2605588b7
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
Added TellStatusXmlRpcMethod. Remove command can now remove
waiting RequestGroup.
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-09 12:41:37 +00:00
Tatsuhiro Tsujikawa
e8c53abe6c
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Initialized _peerId
* src/Peer.cc
2009-05-09 07:50:08 +00:00
Tatsuhiro Tsujikawa
4e18c92371
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Return fault structure for error. FailXmlRpcMethod is renamed as
NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
in non-torrent download. Return single param value.
* src/XmlRpcMethod.cc
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* test/XmlRpcMethodTest.cc
2009-05-09 04:55:53 +00:00
Tatsuhiro Tsujikawa
7e7f809339
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
command.
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/XmlRpcMethodImpl.cc
* test/RequestGroupTest.cc
2009-05-09 04:11:31 +00:00
Tatsuhiro Tsujikawa
933866e315
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added more options that can be specified in -i list and xml-rpc
add* command.
* src/download_helper.h
2009-05-09 03:43:38 +00:00
Tatsuhiro Tsujikawa
b7664e8d6e
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
The available options in -i list should be listed in
listRequestOptions().
* src/download_helper.cc
2009-05-08 16:58:44 +00:00
Tatsuhiro Tsujikawa
606c11810b
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added infoHash, pieceLength, numPieces value for tellActiveStatus
command.
* src/XmlRpcMethodImpl.cc
2009-05-08 16:49:20 +00:00
Tatsuhiro Tsujikawa
4cb5468662
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Now RequestGroup has its own copy of Option object. This will help
to give custom option for each RequestGroup.
addTorrentFile command now takes options.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/AbstractProxyRequestCommand.cc
* src/ActivePeerConnectionCommand.cc
* src/ActivePeerConnectionCommand.h
* src/AdaptiveURISelector.cc
* src/BtCheckIntegrityEntry.cc
* src/BtDependency.cc
* src/BtDependency.h
* src/BtFileAllocationEntry.cc
* src/BtPostDownloadHandler.cc
* src/CheckIntegrityEntry.cc
* src/DownloadCommand.cc
* src/FtpDownloadCommand.cc
* src/FtpFinishDownloadCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpRequestCommand.cc
* src/HttpResponseCommand.cc
* src/HttpSkipResponseCommand.cc
* src/InitiateConnectionCommand.cc
* src/InitiateConnectionCommandFactory.cc
* src/InitiatorMSEHandshakeCommand.cc
* src/InitiatorMSEHandshakeCommand.h
* src/Metalink2RequestGroup.cc
* src/Metalink2RequestGroup.h
* src/MetalinkPostDownloadHandler.cc
* src/MultiUrlRequestInfo.cc
* src/MultiUrlRequestInfo.h
* src/PeerAbstractCommand.cc
* src/PeerInteractionCommand.cc
* src/PeerInteractionCommand.h
* src/PeerReceiveHandshakeCommand.cc
* src/PeerReceiveHandshakeCommand.h
* src/RequestGroup.cc
* src/RequestGroup.h
* src/TrackerWatcherCommand.cc
* src/TrackerWatcherCommand.h
* src/XmlRpcMethod.cc
* src/XmlRpcMethod.h
* src/XmlRpcMethodImpl.cc
* src/download_helper.cc
* src/download_helper.h
* src/main.cc
* test/BtDependencyTest.cc
* test/BtPostDownloadHandlerTest.cc
* test/DefaultBtMessageDispatcherTest.cc
* test/DownloadHandlerFactoryTest.cc
* test/DownloadHelperTest.cc
* test/Metalink2RequestGroupTest.cc
* test/MetalinkPostDownloadHandlerTest.cc
* test/RequestGroupManTest.cc
* test/RequestGroupTest.cc
2009-05-08 16:41:21 +00:00
Tatsuhiro Tsujikawa
08856691b3
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added tellActiveStatus xml-rpc command which reports download
status of active downloads.
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-08 13:47:33 +00:00
Tatsuhiro Tsujikawa
c45ff588d1
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added addTorrentFile xml-rpc command which receives uploaded
torrent file and add download for it.
* src/RequestGroupMan.cc
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* src/download_helper.cc
* src/download_helper.h
2009-05-08 12:23:04 +00:00
Tatsuhiro Tsujikawa
c659b07b86
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added remove xml-rpc command which removes specified download.
There is a known issue: the removed unfinished downloads are
reported ERR when aria2 exits. They should be reported as INPR.
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-08 08:36:52 +00:00
Tatsuhiro Tsujikawa
7f7ea34a4a
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
If --enable-http-server is enabled, don't stop aria2 when all
download finished and don't quit when no files to download at
start up.
* src/RequestGroupMan.cc
* src/main.cc
* src/option_processing.cc
2009-05-08 08:18:23 +00:00
Tatsuhiro Tsujikawa
b57b75f98d
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added xml-rpc functionality. Currently only addURI commad is
supported. To enable xml-rpc, run aria2 with
--enable-http-server. This option name is temporal and will be
changed. The feature that reports download progress in html format
is temporarily disabled.
* src/HttpServer.cc
* src/HttpServer.h
* src/HttpServerBodyCommand.cc
* src/HttpServerBodyCommand.h
* src/HttpServerCommand.cc
* src/HttpServerResponseCommand.cc
* src/Makefile.am
* src/OptionParser.cc
* src/OptionParser.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/XmlRpcMethod.cc
* src/XmlRpcMethod.h
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodFactory.h
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
* src/download_helper.cc
* src/download_helper.h
* test/Makefile.am
* test/XmlRpcMethodTest.cc
2009-05-08 07:58:50 +00:00
Tatsuhiro Tsujikawa
3a81b3c3d7
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added xml-rpc request parser. The supported value types are:
i4/int, string, double, struct, array, base64. Currently only
libxml2 version is provided.
* src/Xml2XmlRpcRequestProcessor.cc
* src/Xml2XmlRpcRequestProcessor.h
* src/XmlRpcElements.cc
* src/XmlRpcElements.h
* src/XmlRpcRequest.h
* src/XmlRpcRequestParserController.cc
* src/XmlRpcRequestParserController.h
* src/XmlRpcRequestParserState.h
* src/XmlRpcRequestParserStateImpl.cc
* src/XmlRpcRequestParserStateImpl.h
* src/XmlRpcRequestParserStateMachine.cc
* src/XmlRpcRequestParserStateMachine.h
* src/XmlRpcRequestProcessor.h
* test/XmlRpcRequestParserControllerTest.cc
* test/XmlRpcRequestProcessorTest.cc
2009-05-08 03:24:24 +00:00
Tatsuhiro Tsujikawa
ff298b3cbc
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error since r1202.
* src/ExpatMetalinkProcessor.cc
2009-05-08 02:06:24 +00:00
Tatsuhiro Tsujikawa
ce9c79a2f3
2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Pass reference of Option object instead of pointer.
* src/download_helper.cc
* src/download_helper.h
* src/main.cc
* test/DownloadHelperTest.cc
2009-05-07 08:52:38 +00:00
Tatsuhiro Tsujikawa
40d5c1e763
2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
from option directly. Instead, get them from RequestGroup.
* src/ActivePeerConnectionCommand.cc
* src/ActivePeerConnectionCommand.h
* src/PeerReceiveHandshakeCommand.cc
* src/RequestGroup.h
2009-05-07 08:40:45 +00:00
Tatsuhiro Tsujikawa
22ab845df5
2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused uploadLimitCheck and uploadLimit from
PeerAbstractCommand. Removed unused maxDownloadLimit from
PeerInteractionCommand.
* src/PeerAbstractCommand.cc
* src/PeerAbstractCommand.h
* src/PeerInteractionCommand.cc
* src/PeerInteractionCommand.h
2009-05-07 08:38:31 +00:00
Tatsuhiro Tsujikawa
030bc08287
2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed broken file renaming feature since r1202.
* src/FtpNegotiationCommand.cc
* src/FtpNegotiationCommand.h
* src/HttpResponseCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
2009-05-07 03:49:27 +00:00
Tatsuhiro Tsujikawa
4432b68d24
2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused debug log
* src/SocketCore.cc
2009-05-06 08:09:26 +00:00
Tatsuhiro Tsujikawa
4da631bef6
2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved piece statistics stuff to new PieceStatMan class.
Refactored PieceSelector interface.
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/LongestSequencePieceSelector.cc
* src/LongestSequencePieceSelector.h
* src/Makefile.am
* src/PieceSelector.h
* src/PieceStatMan.cc
* src/PieceStatMan.h
* src/RarestPieceSelector.cc
* src/RarestPieceSelector.h
* src/RequestGroup.cc
* test/DefaultPieceStorageTest.cc
* test/InOrderPieceSelector.h
* test/Makefile.am
* test/PieceStatManTest.cc
* test/RarestPieceSelectorTest.cc
2009-05-06 07:49:22 +00:00
Tatsuhiro Tsujikawa
d05d8bbddc
2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added static member _protocolFamily to SocketCore. By default,
SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
address. Sometime SocketCore::bind() and
SocketCore::establishConnection() use difference protocl family
and latter cannot connect to former. To avoid this situation, we
limit protocol family to AF_INET for unit tests.
* src/SocketCore.cc
* src/SocketCore.h
* test/AllTest.cc
2009-05-06 07:42:59 +00:00
Tatsuhiro Tsujikawa
47b08786eb
2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid std::bad_alloc for negative bencode string length.
* src/bencode.cc
2009-05-06 07:38:08 +00:00
Tatsuhiro Tsujikawa
3c877a9df4
2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Supported segmented downloading with chunked transfer encoding and
content-length.
* src/DownloadCommand.cc
* src/HttpResponseCommand.cc
2009-05-05 15:19:02 +00:00
Tatsuhiro Tsujikawa
3511aad188
2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
from 4096 to 65536 (for insanely large ftp login banners)
* src/FtpConnection.h
* test/FtpConnectionTest.cc
2009-05-05 03:27:45 +00:00
Tatsuhiro Tsujikawa
8fe80169b3
2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In DefaultBtContext::getActualBasePath(), return first
FileEntry::getPath() for single file torrent.
* src/DefaultBtContext.cc
* test/DefaultBtContextTest.cc
2009-05-05 03:20:56 +00:00
Tatsuhiro Tsujikawa
e1f32b6b66
2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed directIOAllowed() from BinaryStream, DiskWriter,
DiskAdaptor. setDirectIOAllowed() was renamed as
allowDirectIO().
Removed _directIOAllowed member from DiskWriter.
* src/AbstractDiskWriter.cc
* src/AbstractDiskWriter.h
* src/AbstractSingleDiskAdaptor.cc
* src/AbstractSingleDiskAdaptor.h
* src/BinaryStream.h
* src/ByteArrayDiskWriter.h
* src/DefaultPieceStorage.cc
* src/DiskWriter.h
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
2009-05-04 08:11:40 +00:00
Tatsuhiro Tsujikawa
c1aef8e2d1
2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Now the constructor of AbstractDiskWriter takes filename as an
argument and filename argument is removed from openFile(),
initAndOpenFile(), openExistingFile() interface. storeDir
member and its accessor functions are removed from DiskAdaptor
because it is not used anymore. size() member function of
DefaultDiskWriter, DirectDiskAdaptor and MultiDiskAdaptor now
can be called without opening file.
* src/AbstractDiskWriter.cc
* src/AbstractDiskWriter.h
* src/AbstractSingleDiskAdaptor.cc
* src/AbstractSingleDiskAdaptor.h
* src/ByteArrayDiskWriter.cc
* src/ByteArrayDiskWriter.h
* src/ByteArrayDiskWriterFactory.cc
* src/ByteArrayDiskWriterFactory.h
* src/DefaultDiskWriter.cc
* src/DefaultDiskWriter.h
* src/DefaultDiskWriterFactory.cc
* src/DefaultDiskWriterFactory.h
* src/DefaultPieceStorage.cc
* src/DirectDiskAdaptor.cc
* src/DirectDiskAdaptor.h
* src/DiskAdaptor.h
* src/DiskWriter.h
* src/DiskWriterFactory.h
* src/MessageDigestHelper.cc
* src/MultiDiskAdaptor.cc
* src/RequestGroup.cc
* src/UnknownLengthPieceStorage.cc
* src/Util.cc
* test/DefaultDiskWriterTest.cc
* test/DirectDiskAdaptorTest.cc
* test/FallocFileAllocationIteratorTest.cc
* test/MessageDigestHelperTest.cc
* test/MetalinkProcessorTest.cc
* test/MultiDiskAdaptorTest.cc
* test/MultiFileAllocationIteratorTest.cc
* test/SingleFileAllocationIteratorTest.cc
* test/UtilTest.cc
2009-05-04 07:50:38 +00:00
Tatsuhiro Tsujikawa
5c8f48dc77
2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that aria2 aborts when --select-file is used.
This bug was introduced in r1199.
* src/MultiDiskAdaptor.cc
2009-05-03 16:03:21 +00:00
Tatsuhiro Tsujikawa
eeece05063
2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that read-only file with wrong file size will
cause error because it cannot be truncated to the correct size.
Now if file size is different than the expected one, re-open
file in writable mode.
* src/AbstractSingleDiskAdaptor.cc
* src/AbstractSingleDiskAdaptor.h
* src/BtCheckIntegrityEntry.cc
* src/DiskAdaptor.h
* src/MultiDiskAdaptor.h
* src/RequestGroup.cc
2009-05-03 11:00:39 +00:00
Tatsuhiro Tsujikawa
ee229c6f00
2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that with --check-integrity option aria2 reports
downloaded file size is 0 even if some parts of file is
correctly downloaded. This bug is reproducible for the download
that a file includes last piece is missing. This bug doesn't
reveal for single-torrent with file allocation on.
* src/IteratableChecksumValidator.cc
* test/IteratableChecksumValidatorTest.cc
2009-05-03 06:26:44 +00:00
Tatsuhiro Tsujikawa
d0b485cba0
2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid circular reference between RequestGroup and
AdaptiveURISelector
* src/RequestGroupMan.cc
* src/AdaptiveURISelector.cc
* src/AdaptiveURISelector.h
2009-05-01 14:01:32 +00:00
Tatsuhiro Tsujikawa
eaca0b7a08
2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/MetalinkParserStateMachine.cc
* src/MetalinkParserStateMachine.h
2009-04-28 12:18:08 +00:00
Tatsuhiro Tsujikawa
16f5ebcfcd
2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed MetalinkProcessorFactory. Since we don't use both
libxml2 and expat simultaneously, MetalinkProcessor is now not
base class and it is directly implemented in
XML2SAXMetalinkProcessor and ExpatMetalinkProcessor.
* src/ExpatMetalinkProcessor.cc
* src/ExpatMetalinkProcessor.h
* src/Makefile.am
* src/MetalinkHelper.cc
* src/MetalinkProcessor.h
* src/MetalinkProcessorFactory.cc: Removed.
* src/MetalinkProcessorFactory.h: Removed
* src/XML2SAXMetalinkProcessor.cc
* src/XML2SAXMetalinkProcessor.h
* test/MetalinkProcessorTest.cc
2009-04-28 09:22:43 +00:00
Tatsuhiro Tsujikawa
49b4cfbfcd
2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Put BDE in aria2 namespace. BDE will also be used to store
xml-rpc request.
* src/AnnounceList.cc
* src/AnnounceList.h
* src/BDE.cc: Added
* src/BDE.h: Added
* src/DHTAbstractMessage.cc
* src/DHTAbstractMessage.h
* src/DHTAnnouncePeerMessage.cc
* src/DHTAnnouncePeerMessage.h
* src/DHTAnnouncePeerReplyMessage.cc
* src/DHTAnnouncePeerReplyMessage.h
* src/DHTFindNodeMessage.cc
* src/DHTFindNodeMessage.h
* src/DHTFindNodeReplyMessage.cc
* src/DHTFindNodeReplyMessage.h
* src/DHTGetPeersMessage.cc
* src/DHTGetPeersMessage.h
* src/DHTGetPeersReplyMessage.cc
* src/DHTGetPeersReplyMessage.h
* src/DHTMessageFactory.h
* src/DHTMessageFactoryImpl.cc
* src/DHTMessageFactoryImpl.h
* src/DHTMessageReceiver.cc
* src/DHTMessageTracker.cc
* src/DHTMessageTracker.h
* src/DHTPingMessage.cc
* src/DHTPingMessage.h
* src/DHTPingReplyMessage.cc
* src/DHTPingReplyMessage.h
* src/DHTQueryMessage.cc
* src/DHTQueryMessage.h
* src/DHTResponseMessage.cc
* src/DHTResponseMessage.h
* src/DefaultBtAnnounce.cc
* src/DefaultBtContext.cc
* src/DefaultBtContext.h
* src/HandshakeExtensionMessage.cc
* src/Makefile.am
* src/PeerListProcessor.h
* src/UTPexExtensionMessage.cc
* src/bencode.cc
* src/bencode.h
* test/AnnounceListTest.cc
* test/BDETest.cc: Added
* test/BencodeTest.cc
* test/DHTAnnouncePeerMessageTest.cc
* test/DHTAnnouncePeerReplyMessageTest.cc
* test/DHTFindNodeMessageTest.cc
* test/DHTFindNodeReplyMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/DHTMessageFactoryImplTest.cc
* test/DHTMessageTrackerTest.cc
* test/DHTPingMessageTest.cc
* test/DHTPingReplyMessageTest.cc
* test/Makefile.am
* test/MockDHTMessageFactory.h
* test/PeerListProcessorTest.cc
2009-04-27 11:45:22 +00:00
Tatsuhiro Tsujikawa
d58742ad21
2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use url-list (web-seeding) only for single-file torrent. This
is basically the same behavior with Metalink file with torrent
and URIs.
* src/RequestGroup.cc
* src/DefaultBtContext.cc
* test/DefaultBtContextTest.cc
2009-04-27 06:55:10 +00:00
Tatsuhiro Tsujikawa
1ea7fca02b
2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten expr
* src/array_fun.h
* test/array_funTest.cc
2009-04-25 17:04:32 +00:00
Tatsuhiro Tsujikawa
8a1d530336
2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
* src/DefaultBtMessageDispatcher.cc
* src/a2algo.h
2009-04-25 17:01:29 +00:00
Tatsuhiro Tsujikawa
e385c68f52
2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed ExtendedMessagingAware. Instead of using inheritance,
added ExtensionMessageRegistry and it is passed to
DefaultExtensionMessageFactory.
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
* src/DefaultExtensionMessageFactory.cc
* src/DefaultExtensionMessageFactory.h
* src/ExtendedMessagingAware.h: Removed.
* src/ExtensionMessageFactory.h
* src/ExtensionMessageRegistry.h: Added.
* src/Makefile.am
* src/PeerInteractionCommand.cc
* test/DefaultExtensionMessageFactoryTest.cc
2009-04-25 10:48:00 +00:00
Tatsuhiro Tsujikawa
3908d86213
2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo in log messages
* src/MSEHandshake.cc
2009-04-25 10:32:03 +00:00
Tatsuhiro Tsujikawa
35763a2ae0
2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that prevents torrent download from finishing.
The bug doesn't reveal for all torrents. The torrents affected
this bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the
number of pieces.
* src/bitfield.h
* test/bitfieldTest.cc
2009-04-25 10:30:25 +00:00
Tatsuhiro Tsujikawa
ea8668d80f
2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/PeerListProcessor.h
2009-04-23 16:10:54 +00:00
Tatsuhiro Tsujikawa
3955054837
2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed RequestGroupAware
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/ActivePeerConnectionCommand.cc
* src/ActivePeerConnectionCommand.h
* src/DHTGetPeersCommand.cc
* src/DHTGetPeersCommand.h
* src/InitiatorMSEHandshakeCommand.cc
* src/InitiatorMSEHandshakeCommand.h
* src/Makefile.am
* src/PeerInitiateConnectionCommand.cc
* src/PeerInitiateConnectionCommand.h
* src/PeerInteractionCommand.cc
* src/PeerInteractionCommand.h
* src/RealtimeCommand.cc
* src/RealtimeCommand.h
* src/RequestGroupAware.cc: Removed
* src/RequestGroupAware.h: Removed
* src/SeedCheckCommand.cc
* src/SeedCheckCommand.h
* src/SleepCommand.cc
* src/TrackerWatcherCommand.cc
* src/TrackerWatcherCommand.h
2009-04-23 15:00:09 +00:00
Tatsuhiro Tsujikawa
6703097652
2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten PeerListProcessor
* src/PeerListProcessor.h
* src/CompactPeerListProcessor.h: Removed
* src/CompactPeerListProcessor.cc: Removed
* src/DelegatingPeerListProcessor.cc: Removed.
* src/DefaultBtAnnounce.cc
* src/Makefile.am
* src/UTPexExtensionMessage.cc
* src/DefaultPeerListProcessor.h: Removed.
* src/DefaultPeerListProcessor.cc: Removed.
* src/DelegatingPeerListProcessor.h: Removed.
* test/Makefile.am
* test/PeerListProcessorTest.cc
* test/DefaultPeerListProcessorTest.cc: Removed.
2009-04-23 13:39:53 +00:00
Tatsuhiro Tsujikawa
82a38a7e3c
2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten RequestGroupMan::calculateStat()
* src/RequestGroupMan.cc
2009-04-23 12:06:26 +00:00
Tatsuhiro Tsujikawa
23415927e9
2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unnecessary virtual destructor for Request class.
* src/Request.cc
* src/Request.h
2009-04-23 12:00:53 +00:00
Tatsuhiro Tsujikawa
0414c71956
2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid dynamic_pointer_cast.
* src/DHTGetPeersCommand.cc
* src/DHTGetPeersCommand.h
2009-04-21 15:15:10 +00:00
Tatsuhiro Tsujikawa
afdd61f9d1
2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten event dispatch in BtMessage. Removed BtEventListener,
BtEvent.
* src/AbstractBtEventListener.h: Removed.
* src/AbstractBtMessage.cc
* src/AbstractBtMessage.h
* src/BtAbortOutstandingRequestEvent.h
* src/BtCancelSendingPieceEvent.h
* src/BtChokedEvent.h: Removed.
* src/BtChokingEvent.h
* src/BtEvent.h: Removed
* src/BtEventListener.h: Removed.
* src/BtMessage.h
* src/BtPieceMessage.cc
* src/BtPieceMessage.h
* src/BtRequestMessage.cc
* src/BtRequestMessage.h
* src/DefaultBtMessageDispatcher.cc
* src/Makefile.am
* src/a2functional.h
* test/BtPieceMessageTest.cc
* test/BtRequestMessageTest.cc
* test/DefaultBtMessageDispatcherTest.cc
* test/MockBtMessage.h
2009-04-21 14:52:04 +00:00
Tatsuhiro Tsujikawa
82b0d66505
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/RequestGroupMan.cc
2009-04-17 14:56:13 +00:00
Tatsuhiro Tsujikawa
a883a4aecc
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/DownloadCommand.cc
2009-04-17 14:55:18 +00:00
Tatsuhiro Tsujikawa
65a358c68b
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed segmentation fault when GZipDecoder::decode() returns 0
byte.
* src/DownloadCommand.cc
* src/bitfield.h
* test/bitfieldTest.cc
Fixed the bug that causes infinite loop if broken web server
returns chunked response without last "0" chunk-size marker and
closes connection.
* src/DownloadCommand.cc
Instantiate properly configured HttpDownloadCommand for
non-resumable downlaods.
* src/HttpResponseCommand.cc
2009-04-17 13:19:17 +00:00
Tatsuhiro Tsujikawa
d2d4f67bbe
2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten array operation functions.
* src/BitfieldMan.cc
* src/array_fun.h
* test/array_funTest.cc
2009-04-16 13:43:23 +00:00
Tatsuhiro Tsujikawa
e19447a54b
2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused variable 'query'
* src/Request.cc
2009-04-14 12:38:45 +00:00
Tatsuhiro Tsujikawa
decd3b883b
2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/BNode.cc
2009-04-13 12:49:18 +00:00
Tatsuhiro Tsujikawa
0e70ba46a9
2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Increase prefixLength for the bucket which doesn't own local
node ID when splitting bucket.
* src/DHTBucket.cc
* test/DHTBucketTest.cc
2009-04-13 12:47:50 +00:00
Tatsuhiro Tsujikawa
4c7122ebeb
2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused variable checkPoint. Also removed include
directive for TimeA2.h.
* src/SeedCheckCommand.h
2009-04-07 15:55:21 +00:00
Tatsuhiro Tsujikawa
bf94abba7b
2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that upload limit exceeds the value specified in
--seed-ratio option depending on the timing of the execution of
SeedCheckCommand.
* src/SeedCheckCommand.cc
2009-04-07 14:24:44 +00:00
Tatsuhiro Tsujikawa
becd34bcb9
2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that removed peer's session upload/download length
are counted twice in _cachedTransferStat before it is
re-calculated. This affected the calculation of shara ratio,
resulting aria2 wrongly determines that specified share ratio is
reached. Also fixed the typo in calculateStatFor function name.
* src/BtSetup.cc
* src/DefaultPeerStorage.cc
* src/ShareRatioSeedCriteria.h
* test/ShareRatioSeedCriteriaTest.cc
2009-04-05 10:38:15 +00:00
Tatsuhiro Tsujikawa
5541477dce
2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten isInRange()
* src/DHTBucket.cc
* test/DHTBucketTest.cc
2009-04-01 12:28:39 +00:00
Tatsuhiro Tsujikawa
a6b02840fa
2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
BitfieldMan::getMissingIndexes family functions now takes
unsigned char* bitfield instead of stl container for efficiency.
PieceSelector::select now takes this
bitfield. RarestPieceSelector::select now also performs
efficiently for this change. bitfield namespace is introduced
and it has several helper functions to handle basic bitfield
operations such as test, count set bits, etc.
* src/BitfieldMan.cc
* src/BitfieldMan.h
* src/DefaultBtRequestFactory.cc
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/LongestSequencePieceSelector.cc
* src/LongestSequencePieceSelector.h
* src/Makefile.am
* src/Piece.cc
* src/Piece.h
* src/PieceSelector.h
* src/RarestPieceSelector.cc
* src/RarestPieceSelector.h
* src/Util.cc
* src/Util.h
* src/bitfield.h
* test/BitfieldManTest.cc
* test/LongestSequencePieceSelectorTest.cc
* test/Makefile.am
* test/RarestPieceSelectorTest.cc
* test/UtilTest.cc
* test/bitfieldTest.cc
2009-03-28 13:29:38 +00:00
Tatsuhiro Tsujikawa
3531d57d37
2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made accepted socket non-block.
* src/FtpNegotiationCommand.cc
* src/HttpListenCommand.cc
2009-03-28 13:19:47 +00:00
Tatsuhiro Tsujikawa
6cbb6d2850
2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Guarded #ifdef HAVE_POSIX_FALLOCATE
* src/AbstractSingleDiskAdaptor.cc
* src/DefaultPieceStorage.cc
* src/DiskAdaptor.h
* src/DiskAdaptor.h
* src/MultiFileAllocationIterator.cc
2009-03-28 12:46:13 +00:00
Tatsuhiro Tsujikawa
a69f499ccf
2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Run DefaultBtMessageDispatcher::
checkRequestSlotAndDoNecessaryThing()
in every 1 sec. The timeout of RequestSlot is 60s by default and
it doesn't need to be called every time when
DefaultBtInteractive::doInteractionProcessing() is called.
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
2009-03-27 16:12:09 +00:00
Tatsuhiro Tsujikawa
bfd7950b82
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/usage_text.h
2009-03-25 06:05:59 +00:00
Tatsuhiro Tsujikawa
29c5ef9215
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added 'falloc' parameter for --file-allocation option. 'falloc'
allocation mode uses posix_fallocate() system call to allocate
file on disk. If you are using newer file systems such as ext4
(with extents support), btrfs or xfs, 'falloc' is your best
choice. It allocates large(few GiB) files almost instantly.
Don't use 'falloc' with legacy file systems such as ext3 because
it takes almost same time as 'prealloc' and it blocks aria2
entirely until allocation finishes. 'falloc' may not be
available if your system doesn't have posix_fallocate() system
call.
* configure.ac
* src/AbstractDiskWriter.cc
* src/AbstractDiskWriter.h
* src/AbstractSingleDiskAdaptor.cc
* src/BinaryStream.h
* src/BtCheckIntegrityEntry.cc
* src/ByteArrayDiskWriter.h
* src/CheckIntegrityEntry.cc
* src/CheckIntegrityEntry.h
* src/DefaultPieceStorage.cc
* src/DiskAdaptor.cc
* src/DiskAdaptor.h
* src/DiskWriter.h
* src/FallocFileAllocationIterator.cc
* src/FallocFileAllocationIterator.h
* src/FileAllocationEntry.cc
* src/FileAllocationEntry.h
* src/Makefile.am
* src/MultiFileAllocationIterator.cc
* src/MultiFileAllocationIterator.h
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/StreamCheckIntegrityEntry.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/FallocFileAllocationIteratorTest.cc
* test/Makefile.am
2009-03-25 05:43:07 +00:00
Tatsuhiro Tsujikawa
fe614395d6
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed duplicate enableDirectIO() call.
* src/MultiFileAllocationIterator.cc
2009-03-24 15:31:46 +00:00
Tatsuhiro Tsujikawa
289ae1b635
2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
with std::vector<size_t> _sortedPieceStatIndexes to reduce the
cost of std::rotate().
* src/RarestPieceSelector.cc
* src/RarestPieceSelector.h
* test/RarestPieceSelectorTest.cc
2009-03-24 15:24:30 +00:00
Tatsuhiro Tsujikawa
1e17795a84
2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated usage doc for --bt-tracker-interval option.
* src/usage_text.h
* doc/aria2c.1.txt
2009-03-22 07:27:52 +00:00
Tatsuhiro Tsujikawa
2170a850a8
2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added an option to specify the interval between tracker
requests.
If non-zero value is specified, aria2 uses it and ignores the
interval value in the response of tracker. If zero is specified,
aria2 determines the inteval value based on the tarcker response
and download progress.
* src/DefaultBtAnnounce.cc
* src/DefaultBtAnnounce.h
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-03-20 13:44:03 +00:00
Tatsuhiro Tsujikawa
948b13ad52
2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added operator+=, operator-=, operator-
* src/TransferStat.cc
* src/TransferStat.h
2009-03-20 13:39:08 +00:00
Tatsuhiro Tsujikawa
662a90ce9b
2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refactored RarestPieceSelector to reduce CPU load, especially
for addPieceStats.
* src/RarestPieceSelector.cc
* src/RarestPieceSelector.h
2009-03-20 13:37:53 +00:00
Tatsuhiro Tsujikawa
3644682511
2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refactored getMissingIndexRandomly, getFirstMissingIndex,
getAllMissingBlockIndexes to reduce a call to
array_function_base::operator[].
* src/BitfieldMan.cc
2009-03-20 13:35:40 +00:00
Tatsuhiro Tsujikawa
ef927009b7
2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Cached TransferStat/download speed to avoid to sum them up in
each call.
* src/DefaultPeerStorage.cc
* src/DefaultPeerStorage.h
* src/SegmentMan.cc
* src/SegmentMan.h
2009-03-20 13:29:33 +00:00
Tatsuhiro Tsujikawa
9233a6258f
2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Typedefed cuid_t as int32_t in Command.h
* src/CUIDCounter.h
* src/Command.cc
* src/Command.h
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/PeerStat.h
* src/SegmentMan.cc
* src/SegmentMan.h
2009-03-19 13:54:09 +00:00
Tatsuhiro Tsujikawa
e3ed6adf91
2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reduced the number of calls to PeerStorage::calculateStat() and
SegmentMan::calculateDownloadSpeed() to lower CPU usage on
higher transfer rate.
* src/DefaultBtInteractive.cc
* src/DefaultBtMessageDispatcher.cc
* src/DefaultPeerStorage.cc
* src/DefaultPeerStorage.h
* src/DownloadCommand.cc
* src/DownloadEngine.cc
* src/PeerStorage.h
* src/SegmentMan.cc
* src/SegmentMan.h
* test/MockPeerStorage.h
2009-03-19 13:42:10 +00:00
Tatsuhiro Tsujikawa
75a525b031
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Prepended _dir+"/" after joining path elements in torrent file.
* src/DefaultBtContext.cc
* test/DefaultBtContextTest.cc
2009-03-13 16:10:28 +00:00
Tatsuhiro Tsujikawa
49fea7585b
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing IndexBtMessageValidator.h
* src/Makefile.am
2009-03-13 14:40:10 +00:00
Tatsuhiro Tsujikawa
e3fc396450
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/DefaultBtContext.h
2009-03-13 13:44:30 +00:00
Tatsuhiro Tsujikawa
c211a2aa4c
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Slice/joinPath for name of single torrent.
* src/DefaultBtContext.cc
* test/DefaultBtContextTest.cc
2009-03-13 13:42:19 +00:00
Tatsuhiro Tsujikawa
570df02268
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated TEXT_DRY_RUN
* src/usage_text.h
2009-03-13 13:29:13 +00:00
Tatsuhiro Tsujikawa
2586ca52ad
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the default value of --uri-selector option from
'inorder' to 'feedback'
* src/OptionHandlerFactory.cc
2009-03-13 13:01:12 +00:00
Tatsuhiro Tsujikawa
a499e1b7bd
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Included current URI in exception message.
* src/AbstractCommand.cc
2009-03-13 12:58:58 +00:00
Tatsuhiro Tsujikawa
87f4fda22f
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed ServerStatURISelector as FeedbackURISelector.
* src/FeedbackURISelector.cc
* src/FeedbackURISelector.h
* src/Makefile.am
* src/RequestGroupMan.cc
* src/ServerStatURISelector.cc
* src/ServerStatURISelector.h
* test/FeedbackURISelectorTest.cc
* test/Makefile.am
* test/ServerStatURISelectorTest.cc
2009-03-13 12:44:58 +00:00
Tatsuhiro Tsujikawa
5c63e74e80
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that AdaptiveURISelector doesn't select any URI
when all URIs are tested and their timeout is not reached.
* src/AdaptiveURISelector.cc
* src/AdaptiveURISelector.h
2009-03-13 12:36:18 +00:00
Tatsuhiro Tsujikawa
ff20576d01
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the default value of --http-auth-challenge option to
false.
* src/OptionHandlerFactory.cc
2009-03-13 12:31:22 +00:00
Tatsuhiro Tsujikawa
d8678a8dd0
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reuse URIs when all unused URIs run out.
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/prefs.cc
* src/prefs.h
2009-03-13 12:27:40 +00:00
Tatsuhiro Tsujikawa
15582ed8cd
2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refactored BtMessage subclasses. BtCancelMessage,
BtRequestMessage and BtRejectMessage are derived from
RangeBtMessage class.
BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage
are derived from IndexBtMessage class. BtChokeMessage,
BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
BtNotInterestedMessage and BtUnchokeMessage are derived from
ZeroBtMessage class.
* src/AbstractBtMessage.cc
* src/AbstractBtMessage.h
* src/BtAllowedFastMessage.cc
* src/BtAllowedFastMessage.h
* src/BtAllowedFastMessageValidator.h: Removed
* src/BtBitfieldMessage.cc
* src/BtBitfieldMessage.h
* src/BtCancelMessage.cc
* src/BtCancelMessage.h
* src/BtCancelMessageValidator.h: Removed
* src/BtChokeMessage.cc
* src/BtChokeMessage.h
* src/BtExtendedMessage.cc
* src/BtExtendedMessage.h
* src/BtHandshakeMessage.cc
* src/BtHandshakeMessage.h
* src/BtHaveAllMessage.cc
* src/BtHaveAllMessage.h
* src/BtHaveMessage.cc
* src/BtHaveMessage.h
* src/BtHaveMessageValidator.h: Removed
* src/BtHaveNoneMessage.cc
* src/BtHaveNoneMessage.h
* src/BtInterestedMessage.cc
* src/BtInterestedMessage.h
* src/BtKeepAliveMessage.cc
* src/BtKeepAliveMessage.h
* src/BtNotInterestedMessage.cc
* src/BtNotInterestedMessage.h
* src/BtPieceMessage.cc
* src/BtPieceMessage.h
* src/BtPortMessage.cc
* src/BtPortMessage.h
* src/BtRejectMessage.cc
* src/BtRejectMessage.h
* src/BtRejectMessageValidator.h: Removed
* src/BtRequestMessage.cc
* src/BtRequestMessage.h
* src/BtRequestMessageValidator.h: Removed
* src/BtSuggestPieceMessage.cc
* src/BtSuggestPieceMessage.h
* src/BtSuggestPieceMessageValidator.h: Removed
* src/BtUnchokeMessage.cc
* src/BtUnchokeMessage.h
* src/DefaultBtMessageFactory.cc
* src/IndexBtMessage.cc
* src/IndexBtMessage.h
* src/IndexBtMessageValidator.h
* src/Makefile.am
* src/PeerMessageUtil.cc
* src/PeerMessageUtil.h
* src/RangeBtMessage.cc
* src/RangeBtMessage.h
* src/RangeBtMessageValidator.h
* src/SimpleBtMessage.cc
* src/SimpleBtMessage.h
* src/ZeroBtMessage.cc
* src/ZeroBtMessage.h
* test/BtRequestMessageTest.cc
2009-03-12 15:54:43 +00:00
Tatsuhiro Tsujikawa
371ef954d5
2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Reverted usage_text.h to r1093 to avoid to lose translated
messages.
* src/usage_text.h
2009-03-11 15:49:31 +00:00
Tatsuhiro Tsujikawa
4e0c03500c
2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
BtMessage now holds _id attribute. MESSAGE_LENGTH that is
declared as non-const previously is now const and defined in
class definition.
* src/AbstractBtMessage.cc
* src/AbstractBtMessage.h
* src/BtAllowedFastMessage.cc
* src/BtAllowedFastMessage.h
* src/BtBitfieldMessage.h
* src/BtCancelMessage.cc
* src/BtCancelMessage.h
* src/BtChokeMessage.cc
* src/BtChokeMessage.h
* src/BtExtendedMessage.cc
* src/BtExtendedMessage.h
* src/BtHandshakeMessage.cc
* src/BtHandshakeMessage.h
* src/BtHaveAllMessage.cc
* src/BtHaveAllMessage.h
* src/BtHaveMessage.cc
* src/BtHaveMessage.h
* src/BtHaveNoneMessage.cc
* src/BtHaveNoneMessage.h
* src/BtInterestedMessage.cc
* src/BtInterestedMessage.h
* src/BtKeepAliveMessage.cc
* src/BtKeepAliveMessage.h
* src/BtMessage.h
* src/BtNotInterestedMessage.cc
* src/BtNotInterestedMessage.h
* src/BtPieceMessage.h
* src/BtPortMessage.cc
* src/BtPortMessage.h
* src/BtRejectMessage.cc
* src/BtRejectMessage.h
* src/BtRequestMessage.cc
* src/BtRequestMessage.h
* src/BtSuggestPieceMessage.cc
* src/BtSuggestPieceMessage.h
* src/BtUnchokeMessage.cc
* src/BtUnchokeMessage.h
* src/SimpleBtMessage.cc
* src/SimpleBtMessage.h
* test/MockBtMessage.h
2009-03-11 15:44:04 +00:00
Tatsuhiro Tsujikawa
aecd8bbfeb
2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use FileEntry::exists()
* src/MultiDiskAdaptor.cc
2009-03-11 15:38:25 +00:00
Tatsuhiro Tsujikawa
3a814ddf5b
2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added exists()
* src/FileEntry.cc
* src/FileEntry.h
2009-03-11 15:37:40 +00:00
Tatsuhiro Tsujikawa
90ca1be5fe
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing prefix dir.
* src/download_helper.cc
2009-03-10 13:15:14 +00:00
Tatsuhiro Tsujikawa
176c9d2002
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed --direct-file-mapping option and CopyDiskAdaptor.
* src/CopyDiskAdaptor.cc: Removed
* src/CopyDiskAdaptor.h: Removed
* src/DefaultPieceStorage.cc
* src/Makefile.am
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/CopyDiskAdaptorTest.cc: Removed
* test/Makefile.am
2009-03-10 13:08:07 +00:00
Tatsuhiro Tsujikawa
173a86febc
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten isSameFileBeingDownloaded()
* src/RequestGroupMan.cc
2009-03-10 12:58:38 +00:00
Tatsuhiro Tsujikawa
849a533d61
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed getName() from DownloadContext. getName() is declared in
BtContext.
* src/BtContext.h
* src/DownloadContext.h
* src/SingleFileDownloadContext.cc
* src/SingleFileDownloadContext.h
Removed getFilePath() from DiskAdaptor. getFilePath() is
declared in AbstractSingleDiskAdaptor.
* src/AbstractSingleDiskAdaptor.h
* src/DiskAdaptor.h
* src/MultiDiskAdaptor.h
* src/RequestGroup.cc
Removed setTopDir() and getTopDir() and getTopDirPath() from
MultiDiskAdaptor.
* src/DefaultPieceStorage.cc
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
* test/MultiDiskAdaptorTest.cc
2009-03-10 12:24:29 +00:00
Tatsuhiro Tsujikawa
e2704bd823
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
FileEntry::getPath() contains store(top level) directory to
simplify path handling operation. In the previous
implementation, store directory is concatenated to
FileEntry::getPath() in DownloadContext.
* src/BtDependency.cc
* src/BtPostDownloadHandler.cc
* src/CopyDiskAdaptor.cc
* src/DefaultBtContext.cc
* src/DirectDiskAdaptor.cc
* src/FileEntry.cc
* src/FileEntry.h
* src/FtpNegotiationCommand.cc
* src/HttpResponse.cc
* src/HttpResponseCommand.cc
* src/Metalink2RequestGroup.cc
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
* src/MultiFileAllocationIterator.cc
* src/RequestGroup.cc
* src/SingleFileDownloadContext.cc
* src/SingleFileDownloadContext.h
* src/download_helper.cc
* test/BtDependencyTest.cc
* test/CopyDiskAdaptorTest.cc
* test/DefaultBtContextTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/DirectDiskAdaptorTest.cc
* test/DownloadHelperTest.cc
* test/FileEntryTest.cc
* test/MultiDiskAdaptorTest.cc
* test/MultiFileAllocationIteratorTest.cc
* test/RequestGroupTest.cc
* test/SingleFileDownloadContextTest.cc
2009-03-09 15:10:26 +00:00
Tatsuhiro Tsujikawa
ed6851636f
2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning
* src/download_helper.cc
2009-03-09 11:33:03 +00:00
Tatsuhiro Tsujikawa
bb3a55d080
2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Throw exception if same infohash torrent is now downloading.
* src/RequestGroup.cc
2009-03-08 12:47:33 +00:00
Tatsuhiro Tsujikawa
6187d6e506
2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --dry-run option. In this mode, aria2 just checks whether
the remote file is available and doesn't download data. This
option has effect on HTTP/FTP downloads and BitTorrent downloads
are canceled in this mode.
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/HttpResponseCommand.h
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-03-08 10:20:42 +00:00
Tatsuhiro Tsujikawa
f4da71fc6d
2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Parse options in -i list using OptionParser.
* src/UriListParser.cc
* src/UriListParser.h
2009-03-08 08:49:17 +00:00
Tatsuhiro Tsujikawa
c2447e3094
2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't reset URI in retry to avoid additional round trips because
of redirects.
* src/AbstractCommand.cc
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
2009-03-08 08:22:00 +00:00
Tatsuhiro Tsujikawa
1c4e7d39d4
2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Declared hide() in OptionHandler.
* src/NameMatchOptionHandler.h
* src/OptionHandler.h
* src/OptionHandlerImpl.h
2009-03-08 08:19:50 +00:00
Tatsuhiro Tsujikawa
75a9884fd6
2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/Peer.h
2009-03-08 08:02:58 +00:00
Tatsuhiro Tsujikawa
93b7ffc4f7
2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added log message in setStatusInternal()
* src/ServerStat.cc
2009-03-07 14:25:38 +00:00
Tatsuhiro Tsujikawa
91f15c4213
2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call ServerStat::setError() in AbstractCommand::onAbort() to
effectively exclude failed server.
* src/AbstractCommand.cc
2009-03-07 14:24:50 +00:00
Tatsuhiro Tsujikawa
f44554a634
2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --index-out option to specify each file path for torrent.
Here index shown in --show-files option is used to specify which
file path should be altered. For example, to change the file
path with index=2, use --index-out=2=aria2.tar.bz2. You can use
this option multiple times: --index-out=1=aria2.tar.bz2
--index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
available. This option can be specified in -i list.
* src/DefaultBtContext.cc
* src/DefaultBtContext.h
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
* src/MultiFileAllocationIterator.cc
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/Util.cc
* src/Util.h
* src/download_helper.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DefaultBtContextTest.cc
* test/MultiDiskAdaptorTest.cc
* test/MultiFileAllocationIteratorTest.cc
* test/UtilTest.cc
2009-03-07 03:10:53 +00:00
Tatsuhiro Tsujikawa
4aae48c9b2
2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use Util::pathJoin()
* src/MetalinkParserController.cc
* test/test.xml
2009-03-04 15:56:56 +00:00
Tatsuhiro Tsujikawa
27ff58c06e
2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use Util::pathJoin()
* src/DefaultBtContext.cc
2009-03-04 15:55:16 +00:00
Tatsuhiro Tsujikawa
70a8403575
2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added Util::pathJoin()
* src/Util.h
* test/UtilTest.cc
2009-03-04 15:53:56 +00:00
Tatsuhiro Tsujikawa
6f0bd778ee
2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Applied basename function to remove directory element in
content-disposition value.
Return empty string if content-disposition value is ".." or ".".
* src/Util.cc
* test/UtilTest.cc
2009-03-04 14:49:10 +00:00
Tatsuhiro Tsujikawa
0b29a6e2cf
2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --max-overall-download-limit option. Now
--max-upload-limit option is not ignored when
--max-overall-upload-limit option has non-zero value. aria2
checks download(upload) speed in the order:
first checks overall speed limit and if it is not exceeded, then
checks speed limit per download. Thus you can specify both
value. For example, set --max-overall-download-limit=1M and
--max-download-limit=500K to prevent from one download from
eating all overall speed limit.
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtMessageDispatcher.h
* src/DownloadCommand.cc
* src/DownloadCommand.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/OptionHandlerFactory.cc
* src/PeerInteractionCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DefaultBtMessageDispatcherTest.cc
2009-02-28 11:48:26 +00:00
Tatsuhiro Tsujikawa
dbc8d549c7
2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Now select-file can be specified in the uri list(-i list).
* src/BtContext.cc
* src/BtContext.h
* src/RequestGroup.cc
* src/Sequence.h
* src/download_helper.cc
2009-02-28 09:52:09 +00:00
Tatsuhiro Tsujikawa
cffb6be91a
2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made the upper value of --max-concurrent-downloads options
unlimited.
* src/OptionHandlerFactory.cc
2009-02-28 09:36:48 +00:00
Tatsuhiro Tsujikawa
1c15b5373c
2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that disk writer is not created even if it shares
same piece with the preceding file if the length of previous
file is 0.
* src/MultiDiskAdaptor.cc
* test/MultiDiskAdaptorTest.cc
2009-02-27 15:33:07 +00:00
Tatsuhiro Tsujikawa
2dfee3dc49
2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In BitTorrent, Open files in read-only mode for hash check.
After that, re-open file in read/write mode only when the
download is not finished.
* src/AbstractDiskWriter.cc
* src/AbstractDiskWriter.h
* src/AbstractSingleDiskAdaptor.cc
* src/AbstractSingleDiskAdaptor.h
* src/BtCheckIntegrityEntry.cc
* src/DiskAdaptor.h
* src/DiskWriter.h
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
* src/RequestGroup.cc
2009-02-23 13:27:08 +00:00
Tatsuhiro Tsujikawa
120e2de096
2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --http-auth-challenge option. If it is set to true(by
default), aria2 sends HTTP authorization header only when it is
requested by the server. If false is set, then authorization
header is always sent to the server. This is useful for servers
that don't respond 401 code when authentication is required.
There is an exception: if username and password are embedded in
URI, authorization header is always sent to the server
regardless of this option.
* src/AuthConfigFactory.cc
* src/HttpSkipResponseCommand.cc
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/AuthConfigFactoryTest.cc
* test/HttpRequestTest.cc
2009-02-19 12:02:22 +00:00
Tatsuhiro Tsujikawa
55c3fb1ca0
2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call deleteSocketForReadCheck() before socket is closed.
* src/HttpListenCommand.cc
2009-02-15 14:09:01 +00:00
Tatsuhiro Tsujikawa
a82897bbaf
2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined virtual destructor for BObject.
* src/bencode.h
2009-02-15 13:00:05 +00:00
Tatsuhiro Tsujikawa
3ae7633f32
2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten BDE to make it efficient.
* src/bencode.cc
* src/bencode.h
2009-02-15 12:57:47 +00:00
Tatsuhiro Tsujikawa
eafb1bc615
2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed function throw list.
* src/bencode.cc
* src/bencode.h
* test/BencodeTest.cc
2009-02-15 11:20:21 +00:00
Tatsuhiro Tsujikawa
7007a7386f
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the segmentation fault during execution of choking
algorithm in leecher state because of broken compare operator
implementation.
* src/BtLeecherStateChoke.cc
* src/BtLeecherStateChoke.h
2009-02-13 14:10:55 +00:00
Tatsuhiro Tsujikawa
34d7cd7a70
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Open file in binary mode.
* src/CookieStorage.cc
* src/DHTSetup.cc
* src/DHTUtil.cc
* src/Netrc.cc
* src/NsCookieParser.cc
* src/ProtocolDetector.cc
* src/RequestGroupMan.cc
* src/Signature.cc
* src/bencode.cc
* src/download_helper.cc
* src/option_processing.cc
* test/CookieParserTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/FileTest.cc
* test/GZipDecoderTest.cc
* test/RequestGroupManTest.cc
* test/SignatureTest.cc
* test/SingleFileAllocationIteratorTest.cc
* test/UriListParserTest.cc
2009-02-13 11:28:42 +00:00
Tatsuhiro Tsujikawa
9d27eb53f5
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed operator[] because it is ambiguous with built-in []
operator.
* src/array_fun.h
2009-02-12 15:42:10 +00:00
Tatsuhiro Tsujikawa
fff02b6012
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error
* src/OptionParser.cc
2009-02-12 15:40:33 +00:00
Tatsuhiro Tsujikawa
83caf2903b
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use array_wrapper instead of array_ptr.
* src/DHTRoutingTableDeserializer.cc
2009-02-12 14:17:13 +00:00
Tatsuhiro Tsujikawa
b521bd5752
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed template<typename S> array_ptr(const array_ptr<S>& s)
* src/array_fun.h
2009-02-12 13:45:46 +00:00
Tatsuhiro Tsujikawa
b8b6b5c568
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added array_wrapper template.
* src/array_fun.h
* test/array_funTest.cc
2009-02-12 13:44:34 +00:00
Tatsuhiro Tsujikawa
a73ef15904
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use operator T* of array_ptr.
* src/OptionParser.cc
2009-02-12 13:12:54 +00:00
Tatsuhiro Tsujikawa
1c46a26ae6
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added operator T*
* src/array_fun.h
* test/array_funTest.cc
2009-02-12 13:10:38 +00:00
Tatsuhiro Tsujikawa
5547b3a5ed
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use dynamically allocated char array to detect memory access
violation.
* src/DHTRoutingTableDeserializer.cc
2009-02-11 16:33:45 +00:00
Tatsuhiro Tsujikawa
509c13c173
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
defined.
* src/PeerMessageUtil.cc
2009-02-11 16:15:30 +00:00
Tatsuhiro Tsujikawa
8f596468eb
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed buffer overrun.
* src/DHTRoutingTableDeserializer.cc
2009-02-11 16:09:20 +00:00
Tatsuhiro Tsujikawa
1982ebaf1f
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Casted to unsigned int to suppress compiler warning on netbsd.
* src/BtRuntime.h
2009-02-11 16:07:00 +00:00
Tatsuhiro Tsujikawa
43796accda
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Assign the value of tv.tv_sec to time_t timesec instead of
giving tv.tv_sec to localtime_r directly because tv.tv_sec may
not be of type time_t.
* src/SimpleLogger.cc
2009-02-11 16:05:33 +00:00
Tatsuhiro Tsujikawa
cf20e207d4
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fix epoll error on the old kernel 2.6.8 or ealier.
* src/EpollEventPoll.cc
2009-02-11 10:34:43 +00:00
Tatsuhiro Tsujikawa
56366759fc
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use Util::parseLLInt instead of sscanf for portability. The
conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
* src/FtpConnection.cc
2009-02-11 10:32:10 +00:00
Tatsuhiro Tsujikawa
0fc900c0ac
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that adding 0 length filter to BitfieldMan filters
1 block. It should not filter anything.
* src/BitfieldMan.cc
* src/ConsoleStatCalc.cc
* test/BitfieldManTest.cc
2009-02-11 07:54:03 +00:00
Tatsuhiro Tsujikawa
a8376a5c4b
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that the boolean options that don't take arguments
don't work.
* src/OptionHandlerImpl.h
2009-02-11 07:46:15 +00:00
Tatsuhiro Tsujikawa
b5af788a00
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed broken selected file BitTorrent download.
* src/MultiDiskWriter.cc
* test/MultiDiskWriterTest.cc
* test/MultiFileAllocationIteratorTest.cc
2009-02-11 07:41:15 +00:00
Tatsuhiro Tsujikawa
4570a4242e
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed #define guard for EpollEventPoll
* src/EpollEventPoll.h
2009-02-10 17:00:43 +00:00
Tatsuhiro Tsujikawa
fb8848d415
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Suppressed compiler warning.
* src/AdaptiveURISelector.cc
* src/DefaultPieceStorage.cc
2009-02-10 14:50:54 +00:00
Tatsuhiro Tsujikawa
145799abc5
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined virtual destructor.
* src/MetalinkParserState.h
2009-02-10 14:49:35 +00:00
Tatsuhiro Tsujikawa
15b2d2f53b
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Give NULL for second argument of getaddrinfo instead of "0".
* src/NameResolver.cc
2009-02-10 14:48:36 +00:00
Tatsuhiro Tsujikawa
fe267b43d5
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
included strptime doesn't parse data for this format.
* src/FtpConnection.cc
* test/FtpConnectionTest.cc
2009-02-10 14:47:07 +00:00
Tatsuhiro Tsujikawa
01b3968f92
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without libcares when epoll is available.
* src/EpollEventPoll.cc
2009-02-10 14:26:11 +00:00
Tatsuhiro Tsujikawa
9bb57720cf
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
using RequestGroup::extractURIResult().
* src/AdaptiveURISelector.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* test/RequestGroupTest.cc
2009-02-08 14:17:55 +00:00
Tatsuhiro Tsujikawa
9a7eee5cfa
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't send ip parameter to a tracker if ip parameter is empty
string.
* src/DefaultBtAnnounce.cc
2009-02-07 15:02:32 +00:00
Tatsuhiro Tsujikawa
064754396e
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Adjusted line feed.
* src/version_usage.cc
2009-02-07 14:24:56 +00:00
Tatsuhiro Tsujikawa
9dd04b7aaa
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print tags, possible values when OptionHandlerException is
caught.
* src/option_processing.cc
2009-02-07 14:24:11 +00:00
Tatsuhiro Tsujikawa
d71f434f61
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the message for FatalException.
* src/OptionParser.cc
2009-02-07 14:22:17 +00:00
Tatsuhiro Tsujikawa
0fcdb7eee3
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use GET method for FTP via HTTP proxy.
* src/FtpInitiateConnectionCommand.cc
2009-02-07 13:52:41 +00:00
Tatsuhiro Tsujikawa
997a0c29d1
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the default value of --proxy-method option from 'tunnel'
to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
option.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/FtpInitiateConnectionCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpInitiateConnectionCommand.h
* src/OptionHandlerFactory.cc
2009-02-07 13:46:08 +00:00
Tatsuhiro Tsujikawa
1b854afe44
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Initialized _logger
* src/SelectEventPoll.cc
2009-02-07 13:38:13 +00:00
Tatsuhiro Tsujikawa
0185a9d5a5
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined a copy constructor for the same type.
* src/SharedHandle.h
2009-02-07 11:02:21 +00:00
Tatsuhiro Tsujikawa
2881dbe025
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added OptionParser::parseArg() which internally uses getopt_long
to parse command-line options. All command-line options are now
configured by OptionHandler. No manual editing of struct option*
is required any more.
* src/NameMatchOptionHandler.h
* src/OptionHandler.h
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/OptionParser.cc
* src/OptionParser.h
* src/array_fun.h
* src/main.cc
* src/option_processing.cc
* test/OptionHandlerTest.cc
* test/OptionParserTest.cc
2009-02-07 11:00:34 +00:00
Tatsuhiro Tsujikawa
5f0f8e68b2
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error when HAVE_EPOLL is not defined.
Fixed linker error on bigendian systems.
* src/SocketCore.cc
* src/SocketCore.h
* test/DefaultBtProgressInfoFileTest.cc
2009-02-06 16:49:24 +00:00
Tatsuhiro Tsujikawa
0640ea6254
2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-external-ip option. You can specify the external IP
address to report to a BitTorrent tracker. Although this
function is named 'external', it can accept any kind of IP
addresses.
* src/DefaultBtAnnounce.cc
* src/OptionHandlerFactory.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DefaultBtAnnounceTest.cc
2009-02-04 14:11:30 +00:00
Tatsuhiro Tsujikawa
23a6eff88e
2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Extracted the algorithm to find the longest incremental sequence
as max_sequence template.
* src/LongestSequencePieceSelector.cc
* src/a2algo.h
* test/Makefile.am
* test/a2algoTest.cc
2009-02-03 14:46:33 +00:00
Tatsuhiro Tsujikawa
c41fec3a22
2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
* src/usage_text.h
2009-02-02 15:25:45 +00:00
Tatsuhiro Tsujikawa
746c00d400
2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc for --enable-http-server.
* src/usage_text.h
2009-02-02 14:20:41 +00:00
Tatsuhiro Tsujikawa
388b64df04
2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
BtContext::getAnnounceTiers() now returns const reference.
* src/BtContext.h
* src/DefaultBtContext.cc
* src/DefaultBtContext.h
* test/MockBtContext.h
2009-02-01 03:29:04 +00:00
Tatsuhiro Tsujikawa
746c187ae8
2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Change the number of retries for tracker request based on the
number of available tracker in a torrent file.
* src/TrackerWatcherCommand.cc
2009-02-01 03:24:02 +00:00
Tatsuhiro Tsujikawa
1b26827851
2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added _maxTries property to RequestGroup and assign the option
value of PREF_MAX_TRIES to it. AbstractCommand now looks up
RequestGroup::getMaxTries() instead of
Option::getAsInt(PREF_MAX_TRIES).
* src/AbstractCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
2009-02-01 03:03:17 +00:00
Tatsuhiro Tsujikawa
f16fb1c890
2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
Mandriva. I modified the patch: make RequestGroup have the
timeout value and AdaptiveURISelector directly modifies that
value.
* src/AbstractCommand.cc
* src/AdaptiveURISelector.cc
* src/AdaptiveURISelector.h
* src/FtpNegotiationCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
2009-02-01 02:55:44 +00:00
Tatsuhiro Tsujikawa
660c480cca
2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
integrated downloads. This PieceSelector subclass finds the
longest continuous sequence in the available missing pieces and
selects the last index of such sequence. This makes HTTP/FTP
connections less interrupted by the pieces obtained by
BitTorrent peers.
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/LongestSequencePieceSelector.cc
* src/LongestSequencePieceSelector.h
* src/Makefile.am
* src/PieceSelector.h
* src/RarestPieceSelector.h
* src/RequestGroup.cc
* test/BtDependencyTest.cc
* test/DefaultPieceStorageTest.cc
* test/IteratableChecksumValidatorTest.cc
* test/LongestSequencePieceSelectorTest.cc
* test/Makefile.am
* test/SegmentManTest.cc
2009-01-31 14:34:29 +00:00
Tatsuhiro Tsujikawa
84f02e7dd0
2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that the average speed is wrong in
http/ftp/BitTorrent integrated download. Only the download bytes
in BitTorrent were considered.
* src/RequestGroup.cc
2009-01-31 13:01:25 +00:00
Tatsuhiro Tsujikawa
dbc8f687c1
2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Choose port for BitTorrent/DHT randomly from the specified
range.
* src/DHTConnectionImpl.cc
* src/PeerListenCommand.cc
2009-01-30 16:24:35 +00:00
Tatsuhiro Tsujikawa
e5c4b24454
2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Send HTTP Authorization header only if it is requested by the
server(response 401). There are some exceptions. The
authorization header for proxy is always sent if it is available
without request by the server. If username/password is specified
in the URI, it is immediately sent to the server without
request by the server.
AbstractAuthResolver::_defaultAuthConfig is now initialized as
SharedHandle<AuthConfig>().
NetrcAuthResolver::resolveAuthConfig() returns
SharedHandle<AuthConfig>() if no AuthConfig is available.
* src/AbstractAuthResolver.cc
* src/AbstractProxyRequestCommand.cc
* src/AuthConfigFactory.cc
* src/AuthConfigFactory.h
* src/HttpConnection.cc
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpResponse.cc
* src/HttpResponseCommand.cc
* src/HttpSkipResponseCommand.cc
* test/AuthConfigFactoryTest.cc
* test/HttpRequestTest.cc
* test/HttpResponseTest.cc
2009-01-30 16:12:41 +00:00
Tatsuhiro Tsujikawa
120ea4c609
2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Remove leading "--" from help keyword and a substring after "="
from help keyword, so that one can query options by '-h--max-'
or '-hmax-peers=10'.
* src/option_processing.cc
2009-01-27 12:40:44 +00:00
Tatsuhiro Tsujikawa
873231fe1e
2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten PStringVisitor and its implementation.
* src/PStringBuildVisitor.cc
* src/PStringBuildVisitor.h
* src/PStringDatum.h
* src/PStringNumLoop.h
* src/PStringSegment.cc
* src/PStringSegment.h
* src/PStringSelect.h
* src/PStringVisitor.h
* src/download_helper.cc
* test/PStringBuildVisitorTest.cc
* test/ParameterizedStringParserTest.cc
2009-01-25 14:19:27 +00:00
Tatsuhiro Tsujikawa
5def96906f
2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Persist connection between the built-in HTTP server and a client
if a client supports keep-alive. Fixed the bug that aria2 exits
when the HTTP server receives EOF from a client.
* src/HttpServer.cc
* src/HttpServer.h
* src/HttpServerCommand.cc
* src/HttpServerCommand.h
* src/HttpServerResponseCommand.cc
2009-01-25 10:55:27 +00:00
Tatsuhiro Tsujikawa
0742e3921f
2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added experimental built-in HTTP server. Currently, when a
client accesses to the server, it responds with the current
download progress. By default, it is disabled. To enable the
server, give --enable-http-server option. To change the default
port number for the server to listen to, use
--http-server-listen-port option.
The response HTML is very simple and refreshes it self each 1
second. Because of this refresh, you see flicker in normal web
browser such as Firefox. I recommend to use console-based
browser such as elinks, w3m. To connect to the server, run
'elinks http://localhost:6800/ ' while running aria2. Please
replace port number '6800'(which is default) with your
preference.
* src/DownloadEngineFactory.cc
* src/HttpHeader.cc
* src/HttpHeader.h
* src/HttpHeaderProcessor.cc
* src/HttpHeaderProcessor.h
* src/HttpListenCommand.cc
* src/HttpListenCommand.h
* src/HttpServer.cc
* src/HttpServer.h
* src/HttpServerCommand.cc
* src/HttpServerCommand.h
* src/HttpServerResponseCommand.cc
* src/HttpServerResponseCommand.h
* src/Makefile.am
* src/OptionHandlerFactory.cc
* src/Util.cc
* src/Util.h
* src/help_tags.h
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/HttpHeaderProcessorTest.cc
* test/UtilTest.cc
2009-01-25 09:58:40 +00:00
Tatsuhiro Tsujikawa
9505df51ef
2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed.
* src/CheckIntegrityMan.cc
* src/FileAllocationMan.cc
2009-01-24 10:54:52 +00:00
Tatsuhiro Tsujikawa
adf91f656b
2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made (piece) hash check sequential for each RequestGroup because
simultaneous hash check is slower than sequential execution.
* src/CheckIntegrityCommand.cc
* src/CheckIntegrityDispatcherCommand.cc
* src/CheckIntegrityDispatcherCommand.h
* src/CheckIntegrityMan.h
* src/ConsoleStatCalc.cc
* src/DownloadCommand.cc
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/DownloadEngineFactory.cc
* src/Makefile.am
* src/Makefile.in
* src/RequestGroup.cc
* src/StatCalc.h
2009-01-24 10:40:42 +00:00
Tatsuhiro Tsujikawa
5da58fe01d
2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved setStatusRealtime() from FileAllocationDispatcherCommand
to SequentialDispatcherCommand.
* src/FileAllocationDispatcherCommand.cc
* src/SequentialDispatcherCommand.h
2009-01-24 10:29:36 +00:00
Tatsuhiro Tsujikawa
a20aa3c7e5
2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten FileAllocationDispatcherCommand using brand new
SequentialDispatcherCommand.
* src/DownloadEngineFactory.cc
* src/FileAllocationCommand.cc
* src/FileAllocationDispatcherCommand.cc
* src/FileAllocationDispatcherCommand.h
* src/Makefile.am
* src/SequentialDispatcherCommand.h
2009-01-24 09:49:37 +00:00
Tatsuhiro Tsujikawa
8ca9db9f3e
2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Replaced FileAllocationMan with
SequentialPicker<FileAllocationEntry>.
* src/BtCheckIntegrityEntry.cc
* src/ConsoleStatCalc.cc
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/DownloadEngineFactory.cc
* src/FileAllocationCommand.cc
* src/FileAllocationDispatcherCommand.cc
* src/FileAllocationMan.h
* src/Makefile.am
* src/SequentialPicker.h
* src/StatCalc.h
* src/StreamCheckIntegrityEntry.cc
* test/Makefile.am
* test/SequentialPickerTest.cc
2009-01-24 09:00:36 +00:00
Tatsuhiro Tsujikawa
ddd050f65f
2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added doc for adaptive URI selector.
* src/usage_text.h
2009-01-19 14:11:04 +00:00
Tatsuhiro Tsujikawa
ca2567f2a2
2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-max-peers option to specify the maximum number of
peers per torrent. 0 means unlimited number of peers.
* src/ActivePeerConnectionCommand.cc
* src/BtRuntime.h
* src/DefaultPeerStorage.cc
* src/DefaultPeerStorage.h
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DefaultPeerStorageTest.cc
2009-01-18 10:11:08 +00:00
Tatsuhiro Tsujikawa
809a28fbae
2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-hash-check-seed option. If true is given to this
option, after hash check using --check-integrity option and file
is complete, continue to seed file. If you want to check file
and download it only when it is damaged or incomplete, set this
option to false. This option has effect only on BitTorrent
download. The default value is true(This is the same behavior
with the previous release).
* src/BtCheckIntegrityEntry.cc
* src/OptionHandlerFactory.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-01-18 09:04:46 +00:00
Tatsuhiro Tsujikawa
b7feed9ba7
2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated copyright year.
* src/version_usage.cc
2009-01-18 05:34:02 +00:00
Tatsuhiro Tsujikawa
b9d4caeee9
2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten the usage text for --bt-request-peer-speed-limit
option.
* doc/aria2c.1.txt
* src/usage_text.h
2009-01-15 15:57:48 +00:00
Tatsuhiro Tsujikawa
55df3c78a3
2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made the max value of split option unlimited.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
2009-01-15 15:41:15 +00:00
Tatsuhiro Tsujikawa
c34ac25683
2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile warning/error.
* src/DownloadResult.h
* src/HttpDownloadCommand.cc
* src/ServerStat.cc
* test/RequestGroupTest.cc
2009-01-15 15:39:05 +00:00
Tatsuhiro Tsujikawa
1ab8ade5d1
2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --event-poll option to select the method for polling
events.
The available methods are "select" and "epoll". "epoll" is
available on Linux only. The earlier release has the compile
option to choose from these methods.
* configure.ac
* src/RequestGroupMan.cc
* src/OptionHandlerFactory.cc
* src/EpollEventPoll.h
* src/StreamFileAllocationEntry.cc
* src/a2io.h
* src/SelectEventPoll.h
* src/option_processing.cc
* src/prefs.h
* src/EpollEventPoll.cc
* src/EventPoll.h
* src/SocketCore.h
* src/Makefile.am
* src/main.cc
* src/DownloadEngine.h
* src/SelectEventPoll.cc
* src/DownloadEngine.cc
* src/SocketCore.cc
* src/DownloadEngineFactory.cc
* src/Makefile.in
* src/prefs.cc
* src/usage_text.h
2009-01-15 15:23:16 +00:00
Tatsuhiro Tsujikawa
5fbd997784
2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Included RecoverableException.h from main.cc
* src/main.cc
2009-01-12 12:29:41 +00:00
Tatsuhiro Tsujikawa
8a9d921465
2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
now returns last error encountered in the HTTP/FTP downloads as
a exit status value. If all downloads finished successfully,
aria2 returns 0. The error code is defined in
src/DownloadResult.h.
The error occurred in the download currently in progress is not
reported as a last error. If no error has encountered but there
are in progress or waiting downloads, aria2 returns 7.
* src/AbstractCommand.cc
* src/DlAbortEx.h
* src/DlRetryEx.h
* src/DownloadCommand.cc
* src/DownloadFailureException.h
* src/DownloadResult.h
* src/FtpNegotiationCommand.cc
* src/HttpSkipResponseCommand.cc
* src/Makefile.am
* src/MultiUrlRequestInfo.cc
* src/MultiUrlRequestInfo.h
* src/RecoverableException.h
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/URIResult.cc
* src/URIResult.h
* src/main.cc
* src/option_processing.cc
* test/RequestGroupTest.cc
2009-01-12 12:27:34 +00:00
Tatsuhiro Tsujikawa
0a4f43d0ed
2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
patch adds AdaptiveURISelector, which selects one of the bests
mirrors for first and reserved connections. For supplementary
ones, it returns mirrors which has not been tested yet, and if
each of them already tested, returns mirrors which has to be
tested again. Otherwise, it doesn't return anymore mirrors.
* src/AdaptiveURISelector.cc
* src/AdaptiveURISelector.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/Makefile.am
* src/Makefile.in
* src/OptionHandlerFactory.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/RequestGroupMan.cc
* src/ServerStat.cc
* src/ServerStat.h
* src/ServerStatMan.cc
* src/SpeedCalc.cc
* src/URISelector.h
* src/prefs.cc
* src/prefs.h
* test/RequestGroupManTest.cc
* test/ServerStatManTest.cc
* test/ServerStatTest.cc
2009-01-06 13:13:42 +00:00
Tatsuhiro Tsujikawa
5db28b5a03
2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --use-head option to toggle whether HEAD method should be
used in the first HTTP request. By default aria2 uses HEAD
method as the first request. When the server doesn't recognize
HEAD, then give aria2 --use-head=false to force aria2 to use GET
method instead.
* src/OptionHandlerFactory.cc
* src/RequestGroupMan.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2008-12-29 14:05:39 +00:00
Tatsuhiro Tsujikawa
992f82eb5a
2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that BitTorrent download doesn't finish when
REJECT message is received before CHOKE message. The old
implementation doen't clear the use-bit of the piece when
recieved REJECT message.
* src/DefaultBtMessageDispatcher.cc
* test/DefaultBtMessageDispatcherTest.cc
2008-12-29 13:58:21 +00:00
Tatsuhiro Tsujikawa
3b06e49b48
2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that --summary-interval=0 doesn't work. The
summary is printed repeatedly.
* src/ConsoleStatCalc.cc
2008-12-24 10:51:48 +00:00
Tatsuhiro Tsujikawa
f07b0cbec5
2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added ifdef clause for conditional compilation.
* src/main.cc
2008-12-23 14:14:59 +00:00
Tatsuhiro Tsujikawa
e1a399d419
2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added the preceding ">>> " before the message "Printing the
contents of file..." to make the output more readable.
* src/main.cc
2008-12-23 02:44:11 +00:00
Tatsuhiro Tsujikawa
3a7edb7680
2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added try-catch block in the loop in showFiles() to continue the
operation even if the exception occurred in one file.
* src/main.cc (showFiles)
2008-12-23 02:41:43 +00:00
Tatsuhiro Tsujikawa
a84cc7621d
2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made messages in showFiles() translatable.
* po/aria2.pot
* src/main.cc
* src/message.h
2008-12-20 11:09:05 +00:00
Tatsuhiro Tsujikawa
65ebe6918a
2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print the contents of Torrent/Metalink files are printed without
-T/-M options.
* src/main.cc
2008-12-20 10:59:16 +00:00
Tatsuhiro Tsujikawa
e08b6a4fc7
2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Update doc for --realtime-chunk-checksum option.
* src/usage_text.h
2008-12-16 16:10:42 +00:00
Tatsuhiro Tsujikawa
33f6f4e2e8
2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed MetaEntry.h
* src/Makefile.am
2008-12-16 15:22:24 +00:00
Tatsuhiro Tsujikawa
e9d648cb7b
2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rename file by appending digits if a local file exists and its
file size is larger than that of remote file with --continue
option. The old implementation just throws exception in such
case.
* src/RequestGroup.cc
2008-12-16 15:13:47 +00:00
Tatsuhiro Tsujikawa
22d91f1729
2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that download progress summary is not printed in
the interval specified by the option.
* src/ConsoleStatCalc.cc
* src/ConsoleStatCalc.h
2008-12-16 14:24:45 +00:00
Tatsuhiro Tsujikawa
53151f7e91
2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compiler warning
* src/Cookie.cc
2008-12-15 15:59:25 +00:00
Tatsuhiro Tsujikawa
d046c89ea7
2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the cookie implementation based on RFC2965.
Now if a value in domain field is not started with dot, then
prepend dot. That means a cookie with domain=sf.net is sent to
wiki.sf.net.
* src/Cookie.cc
* test/CookieParserTest.cc
* test/CookieStorageTest.cc
* test/CookieTest.cc
* test/NsCookieParserTest.cc
* test/Sqlite3MozCookieParserTest.cc
2008-12-15 15:48:48 +00:00
Tatsuhiro Tsujikawa
5a639a3d1e
2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that causes corrupted downloads if HTTP pipelining
is enabled and the server doesn't support keep-alive.
* src/AbstractCommand.cc
* src/DownloadCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpDownloadCommand.h
* src/HttpResponseCommand.cc
* src/Request.cc
* src/Request.h
* test/RequestTest.cc
2008-12-15 15:38:07 +00:00
Tatsuhiro Tsujikawa
110749df84
2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed Dictionary/List/Data and its related classes.
* src/BencodeVisitor.cc: Removed.
* src/BencodeVisitor.h: Removed.
* src/Data.cc: Removed.
* src/Data.h: Removed.
* src/Dictionary.cc: Removed.
* src/Dictionary.h: Removed.
* src/List.cc: Removed.
* src/List.h: Removed.
* src/Makefile.am
* src/MetaEntry.h: Removed.
* src/MetaEntryVisitor.h: Removed.
* src/MetaFileUtil.cc: Removed.
* src/MetaFileUtil.h: Removed.
* test/BencodeVisitorTest.cc: Removed.
* test/DataTest.cc: Removed.
* test/DictionaryTest.cc: Removed.
* test/ListTest.cc: Removed.
* test/Makefile.am
* test/MetaFileUtilTest.cc: Removed.
2008-12-14 10:21:05 +00:00
Tatsuhiro Tsujikawa
9614ee2fef
2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use BDE instead of Dictionary/List/Data.
* src/AnnounceList.cc
* src/AnnounceList.h
* test/AnnounceListTest.cc
2008-12-14 10:07:40 +00:00
Tatsuhiro Tsujikawa
9202fe23c8
2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use BDE instead of Dictionary/List/Data.
* src/DHTAbstractMessage.cc
* src/DHTAbstractMessage.h
* src/DHTAnnouncePeerMessage.cc
* src/DHTAnnouncePeerMessage.h
* src/DHTAnnouncePeerReplyMessage.cc
* src/DHTAnnouncePeerReplyMessage.h
* src/DHTFindNodeMessage.cc
* src/DHTFindNodeMessage.h
* src/DHTFindNodeReplyMessage.cc
* src/DHTFindNodeReplyMessage.h
* src/DHTGetPeersMessage.cc
* src/DHTGetPeersMessage.h
* src/DHTGetPeersReplyMessage.cc
* src/DHTGetPeersReplyMessage.h
* src/DHTMessageFactory.h
* src/DHTMessageFactoryImpl.cc
* src/DHTMessageFactoryImpl.h
* src/DHTMessageReceiver.cc
* src/DHTMessageTracker.cc
* src/DHTMessageTracker.h
* src/DHTPingMessage.cc
* src/DHTPingMessage.h
* src/DHTPingReplyMessage.cc
* src/DHTPingReplyMessage.h
* src/DHTQueryMessage.cc
* src/DHTQueryMessage.h
* src/DHTResponseMessage.cc
* src/DHTResponseMessage.h
* test/DHTAnnouncePeerMessageTest.cc
* test/DHTAnnouncePeerReplyMessageTest.cc
* test/DHTFindNodeMessageTest.cc
* test/DHTFindNodeReplyMessageTest.cc
* test/DHTGetPeersMessageTest.cc
* test/DHTGetPeersReplyMessageTest.cc
* test/DHTMessageFactoryImplTest.cc
* test/DHTMessageTrackerTest.cc
* test/DHTPingMessageTest.cc
* test/DHTPingReplyMessageTest.cc
* test/MockDHTMessageFactory.h
2008-12-14 05:46:45 +00:00
Tatsuhiro Tsujikawa
9b197e97d3
2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed memory leak in decoderawstring()
* src/bencode.cc
2008-12-14 05:42:32 +00:00
Tatsuhiro Tsujikawa
b618ada28a
2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing #ifdef guard. Added uc() function for String and
removeKey() for Dict.
* src/bencode.cc
* src/bencode.h
* test/BencodeTest.cc
2008-12-14 03:59:24 +00:00
Tatsuhiro Tsujikawa
a67ed743a2
2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use BDE instead of Dictionary/List/Data.
* src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.h
* test/HandshakeExtensionMessageTest.cc
2008-12-10 14:25:42 +00:00
Tatsuhiro Tsujikawa
8c1894720f
2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --max-overall-upload-limit option. This option limits the
overall upload speed. Stated in help message that the existing
--max-upload-limit option limits the upload speed per each
torrent. Man page is also updated.
* doc/aria2c.1.txt
* src/DefaultBtMessageDispatcher.cc
* src/DefaultBtMessageDispatcher.h
* src/OptionHandlerFactory.cc
* src/PeerInteractionCommand.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2008-12-10 14:14:11 +00:00
Tatsuhiro Tsujikawa
8129042a3a
2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use BDE instead of Dictionary/List/Data classes.
* src/CompactPeerListProcessor.cc
* src/CompactPeerListProcessor.h
* src/DefaultBtAnnounce.cc
* src/DefaultBtContext.cc
* src/DefaultBtContext.h
* src/DefaultPeerListProcessor.cc
* src/DefaultPeerListProcessor.h
* src/DelegatingPeerListProcessor.cc
* src/DelegatingPeerListProcessor.h
* src/PeerListProcessor.h
* src/UTPexExtensionMessage.cc
* src/Util.h
* src/message.h
* test/DefaultBtContextTest.cc
* test/DefaultPeerListProcessorTest.cc
2008-12-09 15:03:29 +00:00
Tatsuhiro Tsujikawa
1b54e64d34
2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bencode helper functions and BDE class.
They will replace MetaFileUtil and Dictionary/List/Data classes.
* src/Makefile.am
* src/bencode.cc
* src/bencode.h
* test/BencodeTest.cc
* test/Makefile.am
2008-12-09 14:43:11 +00:00
Tatsuhiro Tsujikawa
bd8645262d
2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that bad URI is sent to the tracker when the
announe URI in torrent file includes query.
* src/DefaultBtAnnounce.cc
* test/DefaultBtAnnounceTest.cc
2008-12-09 11:51:07 +00:00
Tatsuhiro Tsujikawa
1e6a579258
2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added Option::blank().
Use !Option::blank(name) instead of Option::defined(name) for
the options that take filename.
* src/MultiUrlRequestInfo.cc
* src/Option.cc
* src/Option.h
* src/main.cc
* src/option_processing.cc
* test/OptionTest.cc
2008-12-04 13:05:05 +00:00
Tatsuhiro Tsujikawa
63ddc1f147
2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Enabled --check-certificate by default. Added compile
time(configure) option --with-ca-bundle to specify CA bundle.
Warn if --check-certificate=true and --ca-certificate is not
specified or loading CA certificate is failed.
* configure.ac
* src/MultiUrlRequestInfo.cc
* src/OptionHandlerFactory.cc
* src/message.h
2008-12-03 16:07:14 +00:00
Tatsuhiro Tsujikawa
fa882f3240
2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added `https' tag to help option category. Added https tag to
--ca-certificate, --certificate, --check-certificate and
--private-key option.
* src/OptionHandlerFactory.cc
* src/help_tags.h
* src/option_processing.cc
2008-12-02 15:53:27 +00:00
Tatsuhiro Tsujikawa
cec431a1a5
2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typos
* src/usage_text.h
2008-12-02 10:54:21 +00:00
Tatsuhiro Tsujikawa
084da2c7e4
2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typos
* src/usage_text.h
2008-12-01 16:44:23 +00:00
Tatsuhiro Tsujikawa
15586812c5
2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print a message when no files to download.
* src/download_helper.cc
* src/main.cc
* src/message.h
2008-11-30 09:35:27 +00:00
Tatsuhiro Tsujikawa
b3aa7cef1d
2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
RFC3986 complied Percent-Encoding(urlencode).
Use uppercase hexadecimal digits for encoded text instead of
lowercase ones.
* src/Request.cc
* src/Util.cc
* src/Util.h
* test/BtHandshakeMessageTest.cc
* test/DefaultBtAnnounceTest.cc
* test/DefaultBtContextTest.cc
* test/RequestTest.cc
* test/UtilTest.cc
2008-11-27 15:29:15 +00:00
Tatsuhiro Tsujikawa
b1edad42ff
2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that prevents aria2 from downloading 0-length
files via HTTP/FTP.
* src/DefaultBtContext.cc
* src/DefaultBtContext.h
* src/DownloadContext.h
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/HttpResponseCommand.h
* src/RequestGroup.cc
* src/SingleFileDownloadContext.cc
* src/SingleFileDownloadContext.h
* test/BtPostDownloadHandlerTest.cc
* test/MetalinkPostDownloadHandlerTest.cc
* test/MockBtContext.h
2008-11-26 15:22:54 +00:00
Tatsuhiro Tsujikawa
b1eee48ee3
2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that -pfalse and -ptrue are not recognized
properly.
* src/option_processing.cc
2008-11-26 12:54:22 +00:00
Tatsuhiro Tsujikawa
72d523b990
2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Applied aria2-1.0.1-mingw.patch.
Use SOCKET_ERRNO instead of errno if the code is used both linux
and mingw.
Collected 4th and 5th argument types for getsockopt and
setsockopt.
* src/SocketCore.cc
* src/a2netcompat.h
* test/SocketCoreTest.cc
2008-11-26 12:50:07 +00:00
Tatsuhiro Tsujikawa
95f726a4ca
2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't show download result when -S option is used.
* src/main.cc
2008-11-24 13:38:56 +00:00
Tatsuhiro Tsujikawa
62105714ef
2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use HEAD method to get file size from HTTP server for segmented
downloading.
The request to the BitTorrent Tracker always uses GET method
because the response of the tracker is small and it doesn't need
segmented download.
* src/FtpNegotiationCommand.cc
* src/HttpRequest.cc
* src/HttpResponseCommand.cc
* src/HttpSkipResponseCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/TrackerWatcherCommand.cc
* test/HttpRequestTest.cc
2008-11-23 15:00:44 +00:00
Tatsuhiro Tsujikawa
c104ac8319
2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that causes floating exception when -T option is
used and no URIs are given.
* src/download_helper.cc
* test/DownloadHelperTest.cc
2008-11-23 12:13:53 +00:00
Ross Smith II
67d5d6d55e
Applied aria2-1.0.0-mingw-r5.patch
2008-11-22 20:28:50 +00:00
Tatsuhiro Tsujikawa
5a5d901228
2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added '~' to reserved characters.
* src/Util.cc
2008-11-18 15:12:57 +00:00
Tatsuhiro Tsujikawa
931bd985db
2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Do not urlencode Request::url in setUrl() because we want
unmodified URL using Request::getUrl()
* src/Request.cc
* src/Request.h
* test/RequestTest.cc
2008-11-18 15:10:47 +00:00
Tatsuhiro Tsujikawa
091dad70cc
2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Dropped ares support.
* README
* configure.ac
* m4/libares.m4: Removed.
* src/AsyncNameResolver.cc
* src/Makefile.am
* test/Makefile.am
2008-11-18 11:20:53 +00:00
Tatsuhiro Tsujikawa
b0029fa4bf
2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
Removed const qualifier from DiskWriter::size().
* src/AbstractDiskWriter.cc
* src/AbstractDiskWriter.h
* src/ByteArrayDiskWriter.cc
* src/ByteArrayDiskWriter.h
* src/DiskWriter.h
* test/ByteArrayDiskWriterTest.cc
2008-11-17 12:07:24 +00:00
Tatsuhiro Tsujikawa
644f707519
2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that causes segmentation fault/bus error during
executing choking algorithm while seeding. This is caused by
improper implementation of compare function which returns
inconsistent results depending on the timing of last unchoke.
* src/BtSeederStateChoke.cc
* src/BtSeederStateChoke.h
* src/DefaultPeerStorage.cc
2008-11-17 11:07:04 +00:00
Tatsuhiro Tsujikawa
03f91ba35a
2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added -u for the short form of --max-upload-limit option.
* doc/aria2c.1.txt
* src/option_processing.cc
* src/usage_text.h
2008-11-16 08:13:51 +00:00
Tatsuhiro Tsujikawa
3c15414420
2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added -V for the short form of --check-integrity option.
Now the argument of --check-integrity option is optional:
if it is omitted, it is evaluated as true.
* doc/aria2c.1.txt
* src/option_processing.cc
* src/usage_text.h
2008-11-16 08:06:56 +00:00
Tatsuhiro Tsujikawa
adb4ef2168
2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Made the default value of --ftp-pasv option set to true and it
can take true/false values.
* src/OptionHandlerFactory.cc
* src/option_processing.cc
* src/usage_text.h
* doc/aria2c.1.txt
2008-11-16 04:41:07 +00:00
Tatsuhiro Tsujikawa
9b71a5d0b5
2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Given custom random number generator to std::random_shuffle.
* src/AnnounceList.cc
* src/BtLeecherStateChoke.cc
* src/BtSeederStateChoke.cc
* src/DefaultBtRequestFactory.cc
* src/MetalinkEntry.cc
* src/RarestPieceSelector.cc
* src/SimpleRandomizer.cc
* src/SimpleRandomizer.h
2008-11-16 04:25:24 +00:00
Tatsuhiro Tsujikawa
a3bfe5c504
2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Now the default value of --enable-direct-io is true.
* src/OptionHandlerFactory.cc
* doc/aria2c.1.txt
2008-11-15 14:47:26 +00:00
Tatsuhiro Tsujikawa
c1a3bba6f8
2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Erase peer before executing onReturningPeer and onErasingPeer
because choking algorithm called from onReturningPeer doesn't
like erasing peer in the active peer list.
* src/DefaultPeerStorage.cc
2008-11-15 13:39:29 +00:00
Tatsuhiro Tsujikawa
7bcf0f48b2
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Instead of creating special filename in createDownloadResult()
if inMemoryDownload() is true, now it is done in getFilePath().
* src/RequestGroup.cc
* test/RequestGroupTest.cc
2008-11-14 12:32:54 +00:00
Tatsuhiro Tsujikawa
690340ef02
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print "[MEMORY]" and filename if a file is not saved in disk and
just processed in memory. This is the fix for previous comment
out.
* src/MemoryBufferPreDownloadHandler.cc
* src/RequestGroup.cc
* src/RequestGroup.h
2008-11-14 12:02:16 +00:00
Tatsuhiro Tsujikawa
6c397fe7ba
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Commented out the code which sets virtual directory path
"[MEMORY]" propagate directory to store to following
RequestGroup.
* src/MemoryBufferPreDownloadHandler.cc
2008-11-13 16:52:44 +00:00
Tatsuhiro Tsujikawa
ad05b8ff30
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed PeerObject.h from Makefile.am
* src/Makefile.am
2008-11-13 16:07:44 +00:00
Tatsuhiro Tsujikawa
c0197f1040
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Avoid slow seeding
* src/PeerInteractionCommand.cc
2008-11-13 15:39:22 +00:00
Tatsuhiro Tsujikawa
586b63fdbd
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated usage for -i option.
* src/usage_text.h (TEXT_INPUT_FILE)
2008-11-13 15:36:36 +00:00
Tatsuhiro Tsujikawa
86478c49dd
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without SSL/XML library.
* src/DefaultBtProgressInfoFile.cc
* src/DefaultBtProgressInfoFile.h
* src/FileMetalinkParserState.cc
* src/RequestGroup.h
* src/SocketCore.cc
* src/SocketCore.h
* src/VerificationMetalinkParserState.cc
* src/download_helper.h
* src/main.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/DownloadHelperTest.cc
2008-11-13 15:08:52 +00:00
Tatsuhiro Tsujikawa
eed0406484
2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten URI handling functions. They are now provided as a
testable functions.
* src/Makefile.am
* src/RequestGroup.cc
* src/RequestGroup.h
* src/download_helper.cc
* src/download_helper.h
* src/main.cc
* test/DownloadHelperTest.cc
* test/Makefile.am
* test/input_uris.txt
2008-11-13 13:40:40 +00:00
Tatsuhiro Tsujikawa
8b3a21eb10
2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Quickly terminate commands when ctrl-c is pressed.
* src/DownloadEngine.cc
2008-11-11 16:18:23 +00:00
Tatsuhiro Tsujikawa
ec2354f3a1
2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Quickly terminate idle commands when download finished.
* src/AbstractCommand.cc
* src/DownloadCommand.cc
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/SleepCommand.cc
* src/SleepCommand.h
2008-11-11 16:05:42 +00:00
Tatsuhiro Tsujikawa
05a9313e19
2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added the ability to specify output filename and directory in
input file.
Additional parameters are added in the following line of URIs
with proceeding white space(s), 1 parameter in 1 line.
The parameter names are the same with the command-line option
name without proceeding "--". Not all the options are available
here: at the moment, 'dir' and 'out' options are avialable.
Please note that out option has no effect against Metalink or
BitTorrentdownloads.
Example input file:
http://host/foo-1.1.tar.bz2
out=foo.tar.bz2
dir=/tmp/downloads
http://host/thundermonkey-2.0.tar.bz2
And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
thundermonkey-2.0.tar.bz2 is saved as
~/mydownloads/thundermonkey-2.0.tar.bz2.
* src/BtPostDownloadHandler.cc
* src/Metalink2RequestGroup.cc
* src/Metalink2RequestGroup.h
* src/MetalinkPostDownloadHandler.cc
* src/UriListParser.cc
* src/UriListParser.h
* src/main.cc
* test/Metalink2RequestGroupTest.cc
* test/UriListParserTest.cc
* test/filelist1.txt
2008-11-11 14:56:46 +00:00
Tatsuhiro Tsujikawa
eb27476c6e
2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Cross referenced among -s, -C and -j options.
Updated usage of -C and -s options.
* src/usage_text.h
* doc/aria2c.1.txt
2008-11-11 11:55:23 +00:00
Tatsuhiro Tsujikawa
bdff264d2c
2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Show an average download speed in Download results.
* src/BtFileAllocationEntry.cc
* src/DefaultPieceStorage.cc
* src/DownloadContext.cc
* src/DownloadContext.h
* src/DownloadResult.h
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/StreamFileAllocationEntry.cc
2008-11-10 16:10:31 +00:00
Tatsuhiro Tsujikawa
82b80c33d8
2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that metalink file is not processed if
Content-Type field has a paramter.
* src/HttpResponse.cc
* src/HttpResponse.h
* test/HttpResponseTest.cc
2008-11-10 16:08:22 +00:00
Tatsuhiro Tsujikawa
bb8481e752
2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused code.
* src/DefaultBtAnnounce.cc
2008-11-10 13:22:14 +00:00
Tatsuhiro Tsujikawa
e5e19ddeb9
2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that DefaultPieceStorage::getCompletedLength()
returns the value larger than DefaultPieceStorage::getTotalLength()
when in flight pieces are involved.
* src/DefaultPieceStorage.cc
* test/DefaultPieceStorageTest.cc
2008-11-10 13:21:08 +00:00
Tatsuhiro Tsujikawa
0308785bd8
2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --no-proxy option. It receives comman separated hostname
or domains to which proxy should not be used.
aria2 honors the environment variable no_proxy to override
no-proxy value in configuration file. The user can override the
environment variable no_proxy with --no-proxy command-line
option.
* src/AbstractCommand.cc
* src/OptionHandlerFactory.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2008-11-09 08:23:11 +00:00
Tatsuhiro Tsujikawa
ce4186b4c3
2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added the ability to verify peer in SSL/TLS using given CA
certificates.
The CA certificates are specified in --ca-certificate option.
By default, the verification is disabled. Use --check-certificate
option to enable it.
* src/HttpRequestCommand.cc
* src/LibgnutlsTLSContext.cc
* src/LibgnutlsTLSContext.h
* src/LibsslTLSContext.cc
* src/LibsslTLSContext.h
* src/MultiUrlRequestInfo.cc
* src/OptionHandlerFactory.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/a2functional.h
* src/message.h
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2008-11-09 07:36:44 +00:00
Tatsuhiro Tsujikawa
79d463fae2
2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added client certificate authentication for SSL/TLS.
Currently a private key must be decrypted for use with aria2.
If a user accidentally gives encrypted file to aria2 then
following thing happens:
If encrypted private key is given to aria2, it behaves
differently depending on the ssl library it uses. If aria2 built
with openssl then openssl prompts the user for password.
If aria2 build with gnutls then aria2 exists with error at start up.
* src/DownloadEngineFactory.cc
* src/MultiUrlRequestInfo.cc
* src/OptionHandlerFactory.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2008-11-08 13:21:32 +00:00
Tatsuhiro Tsujikawa
52316b0972
2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Introduced TLSContext that holds TLS related data that can be
shared with multiple SSL connections.
* src/DownloadEngineFactory.cc
* src/LibgnutlsTLSContext.cc
* src/LibgnutlsTLSContext.h
* src/LibsslTLSContext.cc
* src/LibsslTLSContext.h
* src/Makefile.am
* src/SocketCore.cc
* src/SocketCore.h
* src/TLSContext.h
* src/message.h
2008-11-08 10:48:02 +00:00
Tatsuhiro Tsujikawa
5c4910f71e
2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that the DiskWriter of the first FileEntry whose
`needsFileAllocation' property is false is not created
even if it shares a piece with next FileEntry which `requested'
property is true.
Fixed the bug that zero-length file is not created if pre file
allocation is not done.
* src/MultiDiskAdaptor.cc
* src/MultiDiskAdaptor.h
* test/MultiDiskAdaptorTest.cc
2008-11-08 08:36:40 +00:00
Tatsuhiro Tsujikawa
93a49e4840
2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Added the ability to pool proxy connection.
The conneciton in FTP with proxy-method=GET is not pooled.
Proxy-Connection header will not be sent when sending CONNECT
method.
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/FtpFinishDownloadCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpNegotiationCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpResponse.cc
* src/HttpSkipResponseCommand.cc
* test/HttpRequestTest.cc
* test/HttpResponseTest.cc
2008-11-05 12:30:22 +00:00
Tatsuhiro Tsujikawa
4797b0e72d
2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Handle date before epoch.
To create *bad* Time object, call Time::null().
* src/CookieParser.cc
* src/FtpConnection.cc
* src/FtpConnection.h
* src/FtpNegotiationCommand.cc
* src/RequestGroup.cc
* src/TimeA2.cc
* src/TimeA2.h
* test/CookieParserTest.cc
* test/FtpConnectionTest.cc
* test/TimeTest.cc
2008-11-05 10:30:43 +00:00
Tatsuhiro Tsujikawa
7513095042
2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Added support for following envrionment variables: http_proxy,
https_proxy, ftp_proxy and all_proxy.
Each variable is equivalent to the aria2 option whose name is
the variable name with '_' replaced with '-'.
They overrides options specified in aria2.conf file.
The envrionment variables can be overrode using command-line
option.
* src/option_processing.cc
2008-11-04 14:57:05 +00:00
Tatsuhiro Tsujikawa
bd2ead4763
2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Renamed --http-proxy-method as --proxy-method.
* src/AbstractCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/OptionHandlerFactory.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2008-11-04 14:20:12 +00:00
Tatsuhiro Tsujikawa
c7fb678e6e
2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Deprecated --http-proxy-user and --http-proxy-passwd options.
Added --https-proxy, --ftp-proxy and --all-proxy options.
Above 3 options and --http-proxy option can handle proxy in URL
format like: http://user:passwd@host:port .
If a proxy requires user/password, they must be specified in a
URL.
Deprecated --ftp-via-http-proxy option. Use --http-proxy-method
option instead.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/AbstractProxyRequestCommand.cc
* src/AbstractProxyRequestCommand.h
* src/AuthConfigFactory.cc
* src/AuthConfigFactory.h
* src/FtpFinishDownloadCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/FtpInitiateConnectionCommand.h
* src/FtpNegotiationCommand.cc
* src/FtpTunnelRequestCommand.cc
* src/FtpTunnelRequestCommand.h
* src/HttpDownloadCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpInitiateConnectionCommand.h
* src/HttpProxyRequestCommand.cc
* src/HttpProxyRequestCommand.h
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/HttpRequestCommand.h
* src/HttpSkipResponseCommand.cc
* src/InitiateConnectionCommand.cc
* src/InitiateConnectionCommand.h
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/Request.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/AuthConfigFactoryTest.cc
* test/HttpRequestTest.cc
* test/OptionHandlerTest.cc
2008-11-04 14:08:26 +00:00
Tatsuhiro Tsujikawa
223621b5bc
2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Execute choking algorithm when unchoked and interested peer is
disconected.
* src/DefaultPeerStorage.cc
2008-11-03 12:07:52 +00:00
Tatsuhiro Tsujikawa
6d01f8f94f
2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Execute choking algorithm when BtInterestedMessage arrives from
unchoked peer.
* src/BtInterestedMessage.cc
* src/BtInterestedMessage.h
* src/DefaultBtMessageFactory.cc
* test/BtInterestedMessageTest.cc
* test/MockPeerStorage.h
2008-11-03 12:04:57 +00:00
Tatsuhiro Tsujikawa
8fab0ff216
2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
AuthConfigFactory is now part of DownloadEngine.
* src/AbstractProxyRequestCommand.cc
* src/AuthConfigFactory.h
* src/DownloadEngine.cc
* src/DownloadEngine.h
* src/FtpConnection.cc
* src/FtpConnection.h
* src/FtpNegotiationCommand.cc
* src/HttpConnection.cc
* src/HttpRequest.cc
* src/HttpRequest.h
* src/HttpRequestCommand.cc
* src/HttpResponse.cc
* src/HttpResponseCommand.cc
* src/HttpSkipResponseCommand.cc
* src/MultiUrlRequestInfo.cc
* src/main.cc
* test/FtpConnectionTest.cc
* test/HttpRequestTest.cc
* test/HttpResponseTest.cc
2008-11-03 10:06:25 +00:00