Commit Graph

863 Commits (407d02a010730cbd13dc9f1001b8b72dfe86fdfc)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 407d02a010 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added Ukrainian, Vietnamese, Traditional Chinese translations.
	Updated French, Simplified Chinese and Japanese translations.
	Thanks to all translators.
	en@quot and en@boldquot are also added.
	* po/LINGUAS
	* po/fr.po
	* po/ja.po
	* po/uk.po
	* po/vi.po
	* po/zh_CN.po
	* po/zh_TW.po
2008-10-14 12:53:08 +00:00
Tatsuhiro Tsujikawa a0559baf8e 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Bump up version number to 0.16.1.
	* configure.ac
2008-10-13 14:05:54 +00:00
Tatsuhiro Tsujikawa 6b33475cc0 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated README.
	* README
2008-10-13 14:02:03 +00:00
Tatsuhiro Tsujikawa 9352cb37a6 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated man page. Changed doctype of aria2c.1.html to manpage in 
order
	not to replace '--' with em dash character.
	* doc/aria2c.1.txt
	* doc/makeman
2008-10-13 13:59:59 +00:00
Tatsuhiro Tsujikawa 3779b4cf3e 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added --auto-save-interval=SEC option. A control file(*.aria2) 
is saved
	every SEC seconds.
	* src/DownloadEngineFactory.cc
	* src/OptionHandlerFactory.cc
	* src/option_processing.cc
	* src/usage_text.h
2008-10-13 13:07:53 +00:00
Tatsuhiro Tsujikawa 6ef72a14a2 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compile warning on linux-amd64
	* src/FtpConnection.cc
	* src/IteratableChunkChecksumValidator.cc
	* src/MultiDiskAdaptor.cc

	Fixed the bug that unit test fails on linux-amd64
	* test/UtilTest.cc
2008-10-12 16:09:12 +00:00
Tatsuhiro Tsujikawa d12e69f0eb 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added --dht-file-path option to change the path to dht.dat, 
which is a
	serialized DHT routing table.
	* src/OptionHandlerFactory.cc
	* src/option_processing.cc
	* src/usage_text.h
2008-10-10 11:35:32 +00:00
Tatsuhiro Tsujikawa 1311ac1a47 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed possible underflow.
	* src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
2008-10-08 16:21:55 +00:00
Tatsuhiro Tsujikawa 1605b39a10 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that last character in URI is not encoded.
	* src/Request.cc
	* test/RequestTest.cc
2008-10-08 16:06:27 +00:00
Tatsuhiro Tsujikawa 22af8b4b22 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that referer header field contains fragment.
	Now Request class removes fragment part of URI and encodes it
	in Request::setUri() and setReferer().
	* src/Request.h
	* src/Request.cc
	* test/RequestTest.cc
2008-10-08 15:35:52 +00:00
Tatsuhiro Tsujikawa a7018cb595 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added missing m4 macros.
	* m4/cppunit.m4
	* m4/libgcrypt.m4
	* m4/libgnutls-extra.m4
	* m4/libgnutls.m4
	* m4/libxml2.m4
2008-10-08 14:18:01 +00:00
Tatsuhiro Tsujikawa b598c9f2a3 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compile error with gcc-4.4(snapshot)
	* src/File.cc
	* src/FtpConnection.cc
	* src/OptionHandlerImpl.h
	* src/Util.cc
2008-10-07 13:40:12 +00:00
Tatsuhiro Tsujikawa f40443bba6 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed assert()
	* src/SocketBuffer.cc (SocketBuffer::send)
2008-10-06 15:10:27 +00:00
Tatsuhiro Tsujikawa 1b0ce6e765 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Changed the type of _numNewConnection to unsigned int.
	* src/ActivePeerConnectionCommand.cc
	* src/ActivePeerConnectionCommand.h
2008-10-06 14:01:40 +00:00
Tatsuhiro Tsujikawa 7f288acbe0 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Release 0.16.0
2008-10-06 13:58:54 +00:00
Tatsuhiro Tsujikawa 6640a3b303 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated doc
	* README
2008-10-06 08:35:52 +00:00
Tatsuhiro Tsujikawa 1950e231cc 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated French, Simplified Chinese, German, Bulgarian and 
Japanese
	translations. Thanks to all translators.
	* po/bg.po
	* po/de.po
	* po/fr.po
	* po/ja.po
	* po/zh_CN.po
2008-10-06 08:29:10 +00:00
Tatsuhiro Tsujikawa 529477ccda 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Bump up version number to 0.16.0.
	* configure.ac
2008-10-06 08:13:42 +00:00
Tatsuhiro Tsujikawa f4e27634e7 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Casted entry->maxConnections to int32_t for std::min<T> with T =
	int32_t.
	Changed the type of count to int32_t.
	* src/Metalink2RequestGroup.cc
2008-10-05 16:52:18 +00:00
Tatsuhiro Tsujikawa bb1ee91509 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added test for Time::elapsed(time_t).
	* test/TimeTest.cc
2008-10-05 15:24:17 +00:00
Tatsuhiro Tsujikawa 4305a51dd0 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
	Util::difftv() should be used instead.
	* src/TimeA2.cc
	* src/TimeA2.h
2008-10-05 14:03:08 +00:00
Tatsuhiro Tsujikawa 389f770008 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Made socket for dht connections non-blocking
	* src/DHTAbstractMessage.cc
	* src/DHTAbstractMessage.h
	* src/DHTConnection.h
	* src/DHTConnectionImpl.cc
	* src/DHTConnectionImpl.h
	* src/DHTMessage.h
	* src/DHTMessageDispatcherImpl.cc
	* src/DHTMessageDispatcherImpl.h
	* src/DHTUnknownMessage.cc
	* src/DHTUnknownMessage.h
	* src/SocketCore.cc
	* src/SocketCore.h
	* test/MockDHTMessage.h
2008-10-05 13:21:14 +00:00
Tatsuhiro Tsujikawa 04a2bd3818 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Changed the type of offset to int.
	* src/ParameterizedStringParser.cc
2008-10-05 02:47:09 +00:00
Tatsuhiro Tsujikawa 3da45c763b 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Made getAsInt() return int32_t
	* src/Option.h
2008-10-04 14:26:35 +00:00
Tatsuhiro Tsujikawa 60b37d3367 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Check the availability of winsock2.h and ws2tcpip.h only for 
mingw32
	build.
	* configure.ac
2008-10-04 03:19:22 +00:00
Tatsuhiro Tsujikawa a00c9ca392 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Use sqlite3_open if sqlite3_open_v2 is not available.
	* src/Sqlite3MozCookieParser.cc
	* src/Sqlite3MozCookieParser.h
	* m4/sqlite3.m4
	* test/Sqlite3MozCookieParserTest.cc
2008-10-04 03:02:35 +00:00
Tatsuhiro Tsujikawa 9c946467c9 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
	* src/BtPieceMessage.cc
	* src/DHTPeerAnnounceStorage.cc
	* src/DefaultPieceStorage.cc
	* src/DownloadCommand.cc
	* src/DownloadEngine.cc
	* src/FtpConnection.cc
	* src/PeerConnection.cc
	* src/PeerMessageUtil.cc
	* src/RequestGroup.cc
	* src/RequestGroupMan.cc
	* src/SimpleBtMessage.cc
2008-10-01 15:16:36 +00:00
Tatsuhiro Tsujikawa 859193c50b 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Use seek() and SetEndOfFile() for mingw32 build instead of 
ftruncate(),
	because mingw32's ftruncate() cannot handle more than 2GB-size 
file.
	* src/AbstractDiskWriter.cc
2008-10-01 14:48:53 +00:00
Tatsuhiro Tsujikawa c682371a58 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Don't set Request::supportsPersistentConnection() in 
HttpConnection
	since this code is also used in AbstractProxyResponseCommand.
	Moved those code to HttpResponse.
	* src/HttpResponse.cc
	* src/HttpResponse.h
	* src/HttpConnection.cc
	* src/HttpConnection.h
	* src/HttpResponseCommand.cc
	* test/HttpResponseTest.cc
2008-09-30 15:54:50 +00:00
Tatsuhiro Tsujikawa b513331407 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compile error with debian mingw32 cross compiler(4.2.1).
	The configuration is minimum: no torrent, no metalink, so there 
may be
	other compile error on their code.
	* src/a2netcompat.h
	* src/File.cc
	* src/File.h
	* src/SocketCore.cc
	* src/SocketCore.h
2008-09-30 15:16:37 +00:00
Tatsuhiro Tsujikawa c1dd780b95 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Made a socket of incoming peer non-blocking.
	* src/PeerListenCommand.cc
2008-09-28 11:13:20 +00:00
Tatsuhiro Tsujikawa 4f280af10b 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that aria2 may send duplicate data to BitTorrent 
peer if
	whole message data is not sent in one send() call.
	* src/BtPieceMessage.cc
	* src/BtPieceMessage.h
	* src/PeerConnection.cc
	* src/PeerConnection.h
	* src/SimpleBtMessage.cc
	* src/SimpleBtMessage.h
2008-09-28 10:55:17 +00:00
Tatsuhiro Tsujikawa db5944b29b 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that aria2 downloads faster than 
max-download-limit when
	downloading file using both HTTP(or FTP) and BitTorrent, because 
aria2
	evaluates speed separatly(HTTP and BiTorrent) against 
max-download-limit
	, instead of sum of them.
	* src/ActivePeerConnectionCommand.cc
	* src/DefaultBtInteractive.cc
	* src/DownloadCommand.cc
	* src/PeerInteractionCommand.cc
	* src/PeerReceiveHandshakeCommand.cc
2008-09-28 05:07:52 +00:00
Tatsuhiro Tsujikawa e9e215dc1f 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that HTTPS download fails.
	* src/AbstractCommand.cc
	* src/AbstractCommand.h
	* src/DownloadCommand.cc
	* src/FtpConnection.cc
	* src/HttpConnection.cc
	* src/HttpRequestCommand.cc
	* src/HttpResponseCommand.cc
	* src/HttpSkipResponseCommand.cc
	* src/MSEHandshake.cc
	* src/PeerConnection.cc
	* src/SocketCore.cc
	* src/SocketCore.h

	Fixed the bug that aria2 doesn't download whole content body and 
cannot
	reuse connection if chunked transfer encoding and gzip content 
encoding
	are set.
	* src/DownloadCommand.cc
	* src/HttpSkipResponseCommand.cc
2008-09-27 16:06:34 +00:00
Tatsuhiro Tsujikawa 080fcd5fb8 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated man page.
	* doc/aria2c.1.txt
2008-09-27 05:33:05 +00:00
Tatsuhiro Tsujikawa 16d725b96d 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
When error occurred while aria2 was parsing an .aria2.conf file, 
print
	the usage of the option that caused error.
	* src/option_processing.cc
2008-09-27 04:54:15 +00:00
Tatsuhiro Tsujikawa e51e7207cf 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Moved message of the error to OptionHandlerException.h
	* src/NameMatchOptionHandler.h
	* src/OptionHandlerException.h
2008-09-27 04:35:36 +00:00
Tatsuhiro Tsujikawa 54bb630077 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
When error occurs while aria2 is parsing an command-line option, 
print
	the usage of the option.
	* src/Makefile.am
	* src/NameMatchOptionHandler.h
	* src/OptionHandlerException.h
	* src/option_processing.cc
2008-09-26 16:05:45 +00:00
Tatsuhiro Tsujikawa 87a5bb50c2 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Reverted previous change.
	Insert username+'@' to URI(after ftp://) when URI is FTP scheme 
and
	username is not in URI.
	* src/HttpRequest.cc
	* src/Request.cc
	* test/HttpRequestTest.cc
	* test/RequestTest.cc
2008-09-25 16:06:29 +00:00
Tatsuhiro Tsujikawa 789e1926cb 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Now colon is required for username and password in FTP URL, 
like:
	ftp://username:password@host.
	If colon is not there, aria2 don't parse it as a username. For 
example,
	aria2 don't retrieve username from ftp://username@host.
	This fix was made in order to login FTP server via 
non-transparent ftp
	proxy.
	* src/Request.cc
	* test/RequestTest.cc
2008-09-25 14:48:38 +00:00
Tatsuhiro Tsujikawa 92d702fa53 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Use netrc for HTTP.
	Now FTP user/password is sent in Authorization header when
	--ftp-via-http-proxy=get is given.
	* src/AuthConfigFactory.cc
	* src/HttpRequest.cc
	* src/HttpRequest.h
	* src/NetrcAuthResolver.cc
	* src/NetrcAuthResolver.h
	* src/OptionHandlerFactory.cc
	* src/option_processing.cc
	* src/prefs.cc
	* src/prefs.h
	* test/AuthConfigFactoryTest.cc
	* test/HttpRequestTest.cc
	* test/NetrcAuthResolverTest.cc
2008-09-25 14:37:28 +00:00
Tatsuhiro Tsujikawa 6bc233f414 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Issue PWD command first and get working directory and use it as 
a prefix
	for CWD command.
	* src/DownloadEngine.cc
	* src/DownloadEngine.h
	* src/FtpConnection.cc
	* src/FtpConnection.h
	* src/FtpFinishDownloadCommand.cc
	* src/FtpInitiateConnectionCommand.cc
	* src/FtpNegotiationCommand.cc
	* src/FtpNegotiationCommand.h
	* test/FtpConnectionTest.cc
2008-09-24 17:01:57 +00:00
Tatsuhiro Tsujikawa d717ffb1d0 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed default user/pass for FTP user/pass, since it should not 
have
	precedence over netrc configuration by default.
	* src/OptionHandlerFactory.cc
2008-09-24 17:00:01 +00:00
Tatsuhiro Tsujikawa dc6ef187b6 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added debug log for socket event.
	* src/AbstractCommand.cc
	* src/PeerAbstractCommand.cc
2008-09-23 10:50:00 +00:00
Tatsuhiro Tsujikawa 2522175ff1 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Log microseconds.
	* src/SimpleLogger.cc (SimpleLogger::writeLog)
2008-09-23 10:44:43 +00:00
Tatsuhiro Tsujikawa 2c6d2cd562 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Replaced HelpItem.cc with OptionHandler.cc.
	* po/POTFILES.in
	
	Updated po files with 'make update-po'
	* po/aria2c.pot
	* po/*.po
2008-09-22 10:35:53 +00:00
Tatsuhiro Tsujikawa 7cceaa9340 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed possible values from the text.
	* src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
2008-09-22 10:31:00 +00:00
Tatsuhiro Tsujikawa 77e095300b 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed unused preferences:
	PREF_NO_PREALLOCATION
	PREF_STDOUT_LOG
	PREF_TRACKER_MAX_TRIES
	PREF_DIRECT_DOWNLOAD_TIMEOUT
	PREF_MIN_SEGMENT_SIZE
	* src/option_processing.cc
	* src/prefs.cc
	* src/prefs.h
2008-09-22 10:12:44 +00:00
Tatsuhiro Tsujikawa f66ed483fa 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Integrated HelpItem into OptionParser to ease the workload for 
adding
	new options. Removed default value from usage text.
	* src/HelpItem.cc: Removed.
	* src/HelpItem.h: Removed.
	* src/HelpItemFactory.cc: Removed.
	* src/HelpItemFactory.h: Removed.
	* src/Makefile.am
	* src/Makefile.in
	* src/NameMatchOptionHandler.h
	* src/OptionHandler.cc
	* src/OptionHandler.h
	* src/OptionHandlerFactory.cc
	* src/OptionHandlerImpl.h
	* src/OptionParser.cc
	* src/OptionParser.h
	* src/TagContainer.cc: Removed.
	* src/TagContainer.h: Removed.
	* src/TaggedItem.cc: Removed.
	* src/TaggedItem.h: Removed.
	* src/main.cc
	* src/option_processing.cc
	* src/usage_text.h
	* src/version_usage.cc
	* test/HelpItemTest.cc: Removed.
	* test/Makefile.am
	* test/Makefile.in
	* test/OptionHandlerTest.cc
	* test/OptionParserTest.cc
	* test/TagContainerTest.cc: Removed.
2008-09-22 09:26:57 +00:00
Tatsuhiro Tsujikawa f6aaa094a8 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Moved `TransferStat stat = ...' to inside the `if' clause.
	* src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
2008-09-19 14:15:06 +00:00