Commit Graph

759 Commits (d9668e2c23bacaf8494c77f64a9e6330a50799dd)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 335a0fb36f 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Bump up version number of .aria2 control file to 0001.
	New aria2 can still load version 0000 file but it saves the file 
in
	version 0001 format. It means that new aria2 can resume download
	started by old aria2 but the opposite is not true.
	* src/DefaultBtProgressInfoFile.cc
	* src/DefaultBtProgressInfoFile.h
	* test/DefaultBtProgressInfoFileTest.cc
2008-08-24 09:43:45 +00:00
Tatsuhiro Tsujikawa 02dde388b8 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added ntoh64 and hton64 as inline functions.
	* src/Util.cc
	* test/UtilTest.cc
2008-08-24 07:55:34 +00:00
Tatsuhiro Tsujikawa ed25d2e245 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added sqlite3 depenency and Firefox3 cookie support.
	* README
2008-08-23 16:14:17 +00:00
Tatsuhiro Tsujikawa bf072626c8 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
State that firefox3 cookie is supported explicitly in the usage.
	* src/usage_text.h
2008-08-23 16:09:43 +00:00
Tatsuhiro Tsujikawa 33ad8505cd 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Externalized message.
	* src/RequestGroupMan.cc
	* src/message.h
2008-08-23 15:59:15 +00:00
Tatsuhiro Tsujikawa ef2478b246 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Save temporary file first and rename to the destination on 
success.
	Added test cases.
	* src/RequestGroupMan.cc
	* test/RequestGroupManTest.cc
2008-08-23 15:42:06 +00:00
Tatsuhiro Tsujikawa a12be22ecb 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that the number of connected peer is exceeding the 
limit
	(55 by default) in seeding mode.
	Multiplied 0.8 to _maxUploadSpeedLimit.
	* src/ActivePeerConnectionCommand.cc
2008-08-23 15:17:32 +00:00
Tatsuhiro Tsujikawa df9d042d25 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Clear table item.
	* src/Dictionary.cc
2008-08-23 15:09:29 +00:00
Tatsuhiro Tsujikawa 8503419ae3 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed error handling of lseek.
	* src/AbstractDiskWriter.cc
2008-08-23 14:59:04 +00:00
Tatsuhiro Tsujikawa 7e8565f82e 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load 
Firefox3
	style cookie file.
	* src/usage_text.h
2008-08-17 14:13:04 +00:00
Tatsuhiro Tsujikawa 4e806b1bb0 Fixed typo. 2008-08-17 14:09:27 +00:00
Tatsuhiro Tsujikawa 0e6c0498a3 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
If a cookie whose expire date is later than 2038-01-19 03:14:07 
GMT is
	sent from server, its expire date is assumed to 2038-01-19 
03:14:07 GMT.
	If Util::httpGMT is failed, then Cookie::onetime is set to true.
	* src/Util.cc
	* src/Util.h
	* src/CookieParser.cc
	* test/UtilTest.cc
	* test/CookieParserTest.cc
2008-08-17 14:09:03 +00:00
Tatsuhiro Tsujikawa adfcf57e32 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Seprate the implementation to load old mozilla format of cookie 
to
	NsCookieParser class.
	* src/CookieBoxFactory.cc
	* src/CookieBoxFactory.h
	* src/NsCookieParser.cc
	* src/NsCookieParser.h
	* test/NsCookieParserTest.cc
2008-08-17 12:58:56 +00:00
Tatsuhiro Tsujikawa aabb6bb2d9 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Made parse() const
	* src/Sqlite3MozCookieParser.cc
	* src/Sqlite3MozCookieParser.h
2008-08-17 12:56:23 +00:00
Tatsuhiro Tsujikawa 0cac0dabde 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added firefox3 cookie support based on the patch submitted by
	tizianomueller.
	firefox3 cookie is SQLite3 database. libsqlite3 is required to 
enable
	this functionality.
	* configure.ac
	* m4/sqlite3.m4
	* src/CookieBoxFactory.cc
	* src/CookieBoxFactory.h
	* src/Makefile.am
	* src/Makefile.in
	* src/Sqlite3MozCookieParser.cc
	* src/Sqlite3MozCookieParser.h
	* src/main.cc
	* test/CookieBoxFactoryTest.cc
	* test/Makefile.am
	* test/Makefile.in
	* test/Sqlite3MozCookieParserTest.cc
	* test/badcookies.sqlite
	* test/cookies.sqlite
2008-08-17 10:44:12 +00:00
Tatsuhiro Tsujikawa 72d21885d1 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added Danish and Greek translations.
	Updated Spanish, Catalan, Norwegian Nynorsk translations.
	Great thanks to all translators.
	* po/LINGUAS
	* po/el.po
	* po/da.po
	* po/es.po
	* po/ca.po
	* po/nn.po
2008-08-15 15:06:24 +00:00
Tatsuhiro Tsujikawa a49523ce99 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed man page: --follow-bittorrent should be --follow-torrent
	* doc/aria2c.1.txt
2008-08-14 14:02:18 +00:00
Tatsuhiro Tsujikawa 2283c5ee14 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed: numCommand is less than the value specified in -C option.
	* src/RequestGroup.cc
2008-08-13 16:15:31 +00:00
Tatsuhiro Tsujikawa 326d11bc46 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed occasional assertion failure in PieceSegment.
	Calling PieceStorage::getMissingPiece(size_t) was missing after
	canceling segments in SegmentMan::getSegment(int32_t). This 
resulted in
	creation of duplicate segments and one of the segment was 
finished then
	assertion failure was caused.
	* src/SegmentMan.cc
	* test/SegmentManTest.cc
2008-08-13 16:13:54 +00:00
Tatsuhiro Tsujikawa db46bab38b 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added options to load/save the server's performance/status to a	
file
	and the timeout to drop their data.
	--server-stat-of=FILE specifies the file to which performance 
data
	is saved.
	--server-stat-if=FILE specifies the file to read previously 
saved
	by --server-stat-of option. Might be used with 
--uri-selector=feedback.
	--server-stat-timeout=TIMEOUT specifies timeout to invalidate 
the data.
	TIMEOUT is specified in seconds and the default value is 
24hours.
	* src/MultiUrlRequestInfo.cc
	* src/OptionHandlerFactory.cc
	* src/RequestGroupMan.cc
	* src/RequestGroupMan.h
	* src/ServerStatMan.cc
	* src/ServerStatMan.h
	* src/option_processing.cc
	* src/prefs.cc
	* src/prefs.h
	* test/ServerStatManTest.cc
2008-08-10 15:22:55 +00:00
Tatsuhiro Tsujikawa 6aba376430 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented ServerStatMan::removeStaleServerStat() and its test 
case.
	* src/ServerStatMan.cc
	* src/ServerStatMan.h
	* test/ServerStatManTest.cc
2008-08-09 13:30:40 +00:00
Tatsuhiro Tsujikawa d85014b937 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented ServerStatMan::load(...) function and its test case.
	* src/ServerStat.cc
	* src/ServerStat.h
	* src/ServerStatMan.cc
	* test/ServerStatManTest.cc
	* test/ServerStatTest.cc
2008-08-09 11:29:27 +00:00
Tatsuhiro Tsujikawa 8208e538ba 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Use time_t instead of int32_t. Use int64_t where milli second is
	expected.
	* src/TimeA2.cc
	* src/TimeA2.h
2008-08-09 10:31:29 +00:00
Tatsuhiro Tsujikawa 26690f692b 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented ServerStatMan::save(...) function and its test case.
	* src/ServerStat.cc
	* src/ServerStat.h
	* src/ServerStatMan.cc
	* src/ServerStatMan.h
	* test/ServerStatManTest.cc
2008-08-09 09:59:56 +00:00
Tatsuhiro Tsujikawa 70b457da01 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Now aria2 uses name attribute in Metalink as local filename in
	BitTorrent downloads. BUG#2033999
	* src/BtContext.h
	* src/BtDependency.cc
	* src/DefaultBtContext.cc
	* src/DefaultBtContext.h
	* src/SingleFileDownloadContext.cc
	* src/SingleFileDownloadContext.h
	* test/BtDependencyTest.cc
	* test/DefaultBtContextTest.cc
	* test/MockBtContext.h
2008-08-08 16:44:59 +00:00
Tatsuhiro Tsujikawa 057516d1bc 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added AC_C_BIGENDIAN
	* src/configure.ac
2008-08-07 15:33:29 +00:00
Tatsuhiro Tsujikawa a699a46858 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Limited numCommand less than or equal to the number of piece.
	* src/RequestGroup.cc
2008-08-07 15:24:13 +00:00
Tatsuhiro Tsujikawa 4baee78941 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Eliminated randomness from the test case. Removed #ifdef 
__MINGW32
	directive.
	* test/DefaultPieceStorageTest.cc
2008-08-07 14:25:52 +00:00
Tatsuhiro Tsujikawa fcb7254bf5 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed memory leak in test code
	* test/AnnounceListTest.cc
	* test/DefaultPeerListProcessorTest.cc
	* test/DefaultPeerStorageTest.cc
	* test/MetaFileUtilTest.cc
2008-08-07 14:21:50 +00:00
Tatsuhiro Tsujikawa 817aee5dc8 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed wrong argument passing to BitfieldMan::isBitSet()
	* src/DefaultPieceStorage.cc
2008-08-07 14:19:40 +00:00
Tatsuhiro Tsujikawa 8af9c60ebf 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Initialized _directIOAllowed
	* src/MultiDiskAdaptor.cc
2008-08-07 14:16:49 +00:00
Tatsuhiro Tsujikawa f8b4d0d1bd 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed memory leak
	* src/GZipDecoder.cc
2008-08-07 14:15:39 +00:00
Tatsuhiro Tsujikawa 747e9a0b23 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed memory leak
	* src/MetalinkParserStateMachine.cc
2008-08-07 14:14:49 +00:00
Tatsuhiro Tsujikawa 4eacf0436a 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed memory leak
	* src/Dictionary.cc
2008-08-07 14:13:21 +00:00
Tatsuhiro Tsujikawa 52f4cbbc20 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed memory leak
	* src/IteratableChunkChecksumValidator.h
2008-08-07 14:12:28 +00:00
Tatsuhiro Tsujikawa ef5c01ad33 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed unmatched malloc/free.
	* src/IteratableChunkChecksumValidator.cc
	* src/IteratableChecksumValidator.cc
2008-08-07 14:11:16 +00:00
Tatsuhiro Tsujikawa 09417a0636 Logged previous change 2008-08-07 14:10:29 +00:00
Tatsuhiro Tsujikawa d64c8e75f6 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented download speed based URI selection algorithm.
	Introduced new option --uri-selector.
	If --uri-selector=feedback is given, aria2 uses download speed 
observed
	in the previous downloads and chooses fastest server in the URI 
list.
	Currently at most 10 URIs are considered to introduce 
randomeness for
	finding better servers. The speed is average download speed in 
the
	downloads.
	On the other hand, if --uri-selector=inorder is given, which is 
default,
	URI is tried in order in URI list.
	The usage text for the new option has not been written yet.
	* src/AbstractCommand.cc
	* src/DownloadCommand.cc
	* src/DownloadEngine.cc
	* src/DownloadEngineFactory.cc
	* src/InOrderURISelector.cc
	* src/InOrderURISelector.h
	* src/OptionHandlerFactory.cc
	* src/PeerStat.h
	* src/RequestGroup.cc
	* src/RequestGroup.h
	* src/RequestGroupMan.cc
	* src/RequestGroupMan.h
	* src/SegmentMan.cc
	* src/SegmentMan.h
	* src/ServerStat.cc
	* src/ServerStat.h
	* src/ServerStatMan.cc
	* src/ServerStatMan.h
	* src/ServerStatURISelector.cc
	* src/ServerStatURISelector.h
	* src/URISelector.h
	* src/option_processing.cc
	* src/prefs.cc
	* src/prefs.h
	* test/InOrderURISelectorTest.cc
	* test/RequestGroupManTest.cc
	* test/ServerStatManTest.cc
	* test/ServerStatURISelectorTest.cc
2008-08-04 17:06:47 +00:00
Tatsuhiro Tsujikawa 7449aba847 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Release 0.15.1+2
2008-08-04 15:51:15 +00:00
Tatsuhiro Tsujikawa 37f9607189 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Bump up version number to 0.15.1+2
	* configure.ac
2008-08-04 15:25:54 +00:00
Tatsuhiro Tsujikawa 01238a1579 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that configure --enable-FEATURE actually disables 
FEATURE.
	* m4/aria2_arg.m4
2008-08-04 14:34:19 +00:00
Tatsuhiro Tsujikawa 2849301b2c 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Release 0.15.1+1
2008-08-03 14:05:02 +00:00
Tatsuhiro Tsujikawa 919f775110 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Bump up version number to 0.15.1+1
	* configure.ac
2008-08-03 13:42:09 +00:00
Tatsuhiro Tsujikawa e5730839cc 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that causes segmentaion fault when resuming 
download
	using metalink without size tag. Reproducible only using HTTP 
URI.
	* src/HttpResponseCommand.cc
	* src/FtpNegotiationCommand.cc
2008-08-03 11:16:15 +00:00
Tatsuhiro Tsujikawa 374083fb08 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Release 0.15.1
2008-07-31 15:55:49 +00:00
Tatsuhiro Tsujikawa bca974746a 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated Bulgarian and French translations, thanks to all 
translators.
	* po/bg.po
	* po/fr.po
2008-07-31 15:36:46 +00:00
Tatsuhiro Tsujikawa b6538b9c7a 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Bump up version number to 0.15.1
	* configure.ac
2008-07-31 15:29:26 +00:00
Tatsuhiro Tsujikawa 6ccefc2dbc 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Avoid repeated call of gettimeofday() when calculating speed.
	* src/SpeedCalc.cc
	* src/SpeedCalc.h
2008-07-31 15:27:39 +00:00
Tatsuhiro Tsujikawa dfe3b9bf15 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed writable check when socket's send buffer is full in 
BitTorrent
	downloads to lower CPU usage.
	* src/PeerInteractionCommand.cc
2008-07-31 15:25:23 +00:00
Tatsuhiro Tsujikawa d3f05f44b7 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed broken gzip inflation.
	Turn off segmented downloading if gzip content is smaller than 
or equal
	to 1MiB and inflate the data on the fly, because HTTP response 
header
	doesn't contain the length of inflated file we can't determin 
where
	the chunk of data should be written.
	On the other hand, if gzip content is larger than 1MB, then turn 
off
	on the fly inflation, because some servers returns 
"content-type: gzip"
	for *.tgz, *.gz files.
	* src/DownloadCommand.cc
	* src/HttpResponseCommand.cc
	* src/HttpResponseCommand.h
2008-07-31 12:42:28 +00:00