Tatsuhiro Tsujikawa
f3f8cc593c
2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Use RequestGroup::allDownloadFinished() to decide whether the
control
file should be removed or saved.
* src/RequestGroup.{h, cc} (allDownloadFinished): New function.
* src/RequestGroupMan.cc (removeStoppedGroup) (save)
2007-10-29 14:06:59 +00:00
Tatsuhiro Tsujikawa
8b27671e58
2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Use File::renameTo()
* src/DefaultBtProgressInfoFile.cc
Added --no-file-allocation-limit command-line option.
* src/version_usage.cc
* src/option_processing.cc
* src/OptionHandlerFactory.cc
* src/RequestGroup.{h, cc}
* src/BtCheckIntegrityEntry.cc
* src/StreamCheckIntegrityEntry.cc
* src/prefs.h
* doc/aria2c.1.txt
* doc/aria2c.1
Now prealloc is the default value for --file-allocation option.
* src/version_usage.cc
* src/option_processing.cc
* doc/aria2c.1.txt
* doc/aria2c.1
Don't URL-encode user-agent.
* src/HttpRequest.cc
Updated translations
* po/LINGUAS: Added nl for Dutch translation.
* po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
* po/de.po: Updated German translation, thanks to Patrick
Ruckstuhl.
* po/POTFILES.in: Updated.
2007-10-29 12:43:45 +00:00
Tatsuhiro Tsujikawa
eecd51bcb5
Updated ChangeLog
2007-10-27 13:26:33 +00:00
Tatsuhiro Tsujikawa
368d53071a
2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Added the ability to recognize url-list in a torrent file.
The retrieved URLs are attached to the corresponding FileEntry.
* src/DefaultBtContext.{h, cc}
* src/FileEntry.{h, cc}
* test/DefaultBtContextTest.cc
2007-10-27 12:32:14 +00:00
Tatsuhiro Tsujikawa
fdb2ee28cc
2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
* src/ConsoleStatCalc.cc: Let the user know that aria2 is now
seeding
after the download finishes.
2007-10-27 11:54:57 +00:00
Tatsuhiro Tsujikawa
3ab9fe706d
2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
* src/Piece.{h, cc}: Added SubPiece infrastructure to track down
the data smaller than block length.
A block length can be specified by constructor's argument.
* src/DefaultPieceStorage.{h, cc} (getMissingPiece):
Get a missing piece in the range of given FileEntry. This
function is
not used in the program yet.
* src/Util.h: Added some macros.
2007-10-23 16:29:37 +00:00
Tatsuhiro Tsujikawa
884a139e72
2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Added HTTP/1.1 keep alive and pipelining support.
See --enable-http-keep-alive and --enable-http-pipelining
option.
* src/AbstractCommand.{h, cc}: Now it has one-to-many relation
to
Segment.
* src/HttpDownloadCommand.{h, cc}
* src/OptionHandlerFactory.cc
* src/HttpConnection.{h, cc}
* src/version_usage.cc
* src/HttpInitiateConnectionCommand.cc
* src/FtpInitiateConnectionCommand.cc
* src/Segment.h
* src/HttpRequestCommand.{h, cc}
* src/option_processing.cc
* src/prefs.h
* src/HttpResponseCommand.cc
* src/SegmentMan.{h, cc}
* src/FtpNegotiateCommand.cc
* src/HttpProxyResponseCommand.cc
* src/Request.cc
* src/HttpRequest.cc
* src/DownloadCommand.cc
* test/HttpRequestTest.cc
* test/RequestTest.cc
2007-10-17 16:26:51 +00:00
Tatsuhiro Tsujikawa
343228629a
2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
* src/ConsoleCalc.cc (calculateStat): Hide SPD after the
download
finished.
2007-10-16 11:46:39 +00:00
Tatsuhiro Tsujikawa
e8a3167596
2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
* src/Metalink2RequestGroup.cc (generate): Throw exception
instead of
catching it inside the method.
When no file entry is found in a metalink without querying user
preferences, throw the exception with the error message that
suggests
metalink file is probably broken.
* src/RequestGroup.cc (postDownloadProcessing): Catch exception
here.
2007-10-15 14:55:24 +00:00
Tatsuhiro Tsujikawa
0ead885da5
2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Fixed the bug that prevents remote Metalink/Torrent file from begin
processed.
* src/RequestGroupMan.cc (removeStoppedGroup)
Added debug message.
* src/BtPostDownloadHandler.cc
* src/MetalinkPostDownloadHandler.cc
* src/PostDownloadHandler.{h, cc}
* src/RequestGroup.cc
2007-10-15 13:22:02 +00:00
Tatsuhiro Tsujikawa
c0b467273c
2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
* src/Request.cc (parseUrl): Removed unnecessary slashes around
dir.
2007-10-14 16:29:05 +00:00
Tatsuhiro Tsujikawa
e5454000a6
2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
* src/MultiUrlRequestInfo.h: Updated the message shown when
program
stops and there are any unfinished or in-progress downloads.
Added the legend of "stat".
2007-10-13 15:47:22 +00:00
Tatsuhiro Tsujikawa
1171a2063f
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Throw exception when chunck checksum verification fails.
* src/DownloadCommand.cc (validatePieceHash): New function.
* src/PiecedSegment.{h, cc} (clear): New function.
* src/GrowSegment.{h, cc} (clear): New function.
* src/Segment.h (clear): New function.
* src/SegmentMan.{h, cc} (validatePieceHash): Removed.
* test/SegmentTest.cc
* test/GrowSegmentTest.cc
2007-10-12 15:11:37 +00:00
Tatsuhiro Tsujikawa
1d5834a6ca
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Do not send referer when redirected.
* src/Request.cc (redirectUrl)
* test/RequestTest.cc
* test/HttpRequestTest.cc
2007-10-11 17:04:53 +00:00
Tatsuhiro Tsujikawa
048a2cf597
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Implemented BitTorrent/http/ftp integrated download.
I've rewritten lots of files and now some headers have forward
class declarations to reduce compile time.
The implementation is extremely alpha stage, I recommend to use this
for testing purpose only.
2007-10-11 16:58:24 +00:00
Tatsuhiro Tsujikawa
e26bbbb9ee
Merged stable-0.11 branch changes r15 into the trunk.
2007-09-13 15:08:02 +00:00
Tatsuhiro Tsujikawa
41f82862d7
Merged stable-0.11 branch changes r13 into the trank.
2007-09-12 14:53:18 +00:00
Tatsuhiro Tsujikawa
295c36c767
2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Updated man page.
* doc/aria2c.1.txt
* Release 0.11.3
2007-09-09 16:17:35 +00:00
Tatsuhiro Tsujikawa
2ea9ef9f1e
2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Updated fr.po by sebone
* po/fr.po
2007-09-09 04:49:14 +00:00
Tatsuhiro Tsujikawa
d9fab1f061
2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
* src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent
download
failure in Metalink.
2007-09-05 12:40:08 +00:00
Tatsuhiro Tsujikawa
9c1bef16c2
2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Updated man page.
* doc/aria2.1.txt
* Release 0.11.3-rc
2007-09-03 14:17:10 +00:00
Tatsuhiro Tsujikawa
6ce850e580
2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Disable parameterized URI support by default. Added -P option to
enable the feature.
* src/prefs.h: Added PREF_PARAMETERIZED_URI
* src/OptionHandlerFactory.cc
* src/main.cc: Also updated usages for -Z and
--auto-file-renaming
Updated Japanese translation.
* po/ja.po
2007-09-03 11:43:28 +00:00
Tatsuhiro Tsujikawa
cf5cb05816
2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Automatically save *.aria2 control file of http/ftp download in
every
60 seconds.
* src/AutoSaveCommand.{h, cc}: New class.
* src/TimeBasedCommand.{h, cc}: New class.
* src/DownloadEngineFactory.cc (newConsoleEngine)
2007-09-03 10:32:19 +00:00
Tatsuhiro Tsujikawa
57471aac9c
2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Now *.aria2 contorol file is first saved to *.aria2__temp and if
it is successful, then renamed to *.aria2.
This prevents *.aria2 file from being truncated or corrupted
when
file system becomes out of space.
* src/DefaultBtProgressInfoFile.cc (save)
* src/SegmentMan.cc (save)
* test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
2007-09-01 16:10:30 +00:00
Tatsuhiro Tsujikawa
2bea8759c4
2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Reduced the fragmentation of bitfield in http/ftp download.
* src/BitfieldMan.cc (getSparseMissingUnusedIndex)
* test/BitfieldManTest.cc
2007-08-31 15:18:48 +00:00
Tatsuhiro Tsujikawa
d1e7a68d68
2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Added the ability to disable segmented download in .metalink.
aria2 can now recognize 'maxconnections' attribute in
'resources' and
'url' tag.
* src/MetalinkEntry.{h, cc}
* src/RequestResource.{h, cc}
* src/MetalinkRequestInfo.cc
* src/Xml2MetalinkProcessor.cc
* test/Xml2MetalinkProcessorTest.cc
2007-08-30 14:52:46 +00:00
Tatsuhiro Tsujikawa
917e69793c
Added new testcase
2007-08-28 15:48:05 +00:00
Tatsuhiro Tsujikawa
f62a1dff8a
Update po
2007-08-28 15:47:30 +00:00
Tatsuhiro Tsujikawa
f8aab322fc
2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Added auto file renaming feature in http(s)/ftp download.
* src/main.cc: Added --auto-file-renaming command-line option.
* src/OptionHandlerFactory.cc
* src/prefs.h: Added PREF_AUTO_FILE_RENAMING
* src/RequestGroup.{h, cc}
(shouldCancelDownloadForSafety): Rewritten
(tryAutoFileRenaming): New function.
* src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety):
Removed.
* src/HttpResponseCommand.cc
(executeInternal): Removed the call to RequestGroupMan::
isSameFileBeingDownloaded()
* src/FtpNegotiateCommand.cc
(recvSize): Removed the call to RequestGroupMan::
isSameFileBeingDownloaded()
* test/RequestGroupTest.cc: New class.
2007-08-28 15:46:49 +00:00
Tatsuhiro Tsujikawa
7fb4336d5e
2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Added parameterized URI support.
* src/main.cc: -Z option added.
* src/OptionHandlerFactory.cc
* src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
* src/PStringDatum.h: New class.
* src/PStringSegment.{h,cc}: New class.
* src/PStringNumLoop.h: New class.
* src/PStringSelect.h: New class.
* src/NumberDecorator.h: New class.
* src/FixedWidthNumberDecorator.h: New class.
* src/AlphaNumberDecorator.h: New class.
* src/PStringVisitor.h: New class.
* src/PStringBuildVisitor.{h,cc}: New class.
* src/ParameterizedStringParser.{h,cc}: New class.
* src/Util.{h,cc}
(isNumber): New function.
(isLowercase): New function.
(isUppercase): New function.
(alphaToNum): New function.
* test/ParameterizedStringParserTest.cc: New class.
* test/AlphaNumberDecoratorTest.cc: New class.
* test/PStringBuildVisitorTest.cc: New class.
* test/UtilTest.cc
(testIsNumber): New function.
(testIsLowercase): New function.
(testIsUppercase): New function.
(testAlphaToNum): New function.
Added '\n' after the error message
* src/RequestInfo.h (printDownloadAbortMessage)
2007-08-28 11:51:20 +00:00
Tatsuhiro Tsujikawa
eb335ef44c
2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable
binary
IO.
* src/DefaultBtProgressInfoFile.cc
* src/MetaFileUtil.cc
* src/SimpleLogger.cc
* src/SegmentMan.cc
* src/Util.cc
* src/Platform.cc
2007-08-26 03:10:09 +00:00
Tatsuhiro Tsujikawa
674a077bff
2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
* src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing
.c_str().
2007-08-24 10:11:45 +00:00
Tatsuhiro Tsujikawa
834625364f
Fixed MinGW non-blocking bug.
...
* src/SocketCore.cc
* src/HttpRequestCommand.cc
Added src/timegm,{h,c}
2007-08-18 10:26:20 +00:00
Tatsuhiro Tsujikawa
657a40935e
2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Avoid sparse files if possible, because VFAT32 doesn't support
it.
* src/DefaultDiskWriter.cc (initAndOpenFile)
Fixed the bug that prevents file allocation is not done when
dowloading multi-torrent file.
* src/AbstractDiskWriter.cc (openFile)
Increase the maximum number of -j option from 15 to 45.
* src/OptionHandlerFactory.cc (createOptionHandlers)
Added fr.po, thanks to Charles Landemaine.
* po/fr.po
* po/LINGUAS
2007-08-18 10:08:47 +00:00
Tatsuhiro Tsujikawa
3cc1ed5e09
2007-08-10 Ross Smith II <aria2spam at smithii dot com>
...
gcc 3.4.4 support:
* src/DefaultBtContext.cc: int32_t -> int
* src/main.cc: int -> int32_t, int32_t -> int
* src/messageDigest.h: uint32_t -> unsigned int
* src/NameResolver.h: int32_t -> int
* src/PeerConnection.cc: int -> int32_t
* src/SpeedCalc.cc: int32_t -> int
* src/TrackerUpdateCommand.h: int -> int32_t
* src/Util.cc: int32_t -> int
* src/Util.h: int32_t -> int
* src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t ->
uint64_t
* test/AnnounceListTest.cc: int -> int32_t
* test/ChunkedEncodingTest.cc: int -> int32_t
* test/DataTest.cc: int -> int32_t
* test/DefaultBtRequestFactoryTest.cc: int -> int32_t
* test/DefaultPeerListProcessorTest.cc: int -> int32_t
* test/DefaultPieceStorageTest.cc: int -> int32_t
* test/FeatureConfigTest.cc: int -> int32_t
* test/MetalinkEntryTest.cc: int -> int32_t
* test/MockBtRequestFactory.h: int -> int32_t
* test/MockPieceStorage.h: int -> int32_t
* test/OptionTest.cc: int -> int32_t
* test/RequestTest.cc: int -> int32_t
* test/SegmentManTest.cc: int -> int32_t
* test/Xml2MetalinkProcessorTest.cc: int -> int32_t
2007-08-15 15:11:01 +00:00
Tatsuhiro Tsujikawa
6aa98f9b9f
2007-08-10 Ross Smith II <aria2spam at smithii dot com>
...
Move sleep functions to Util class:
* src/Util.cc
(sleep): New function.
(usleep): New function.
* src/DownloadCommand.cc: sleep -> Util::sleep
* test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
MinGW build enhancements. The following files are added:
* src/timegm.{c,h}
Changes to support the above new files:
* configure.ac
* src/Makefile.am
* src/a2time.h
* src/Util.cc:
* src/strptime.c: Added support for %Z option.
Miscellenous build fixes/enhancements.
* configure.ac: Added summary report.
* src/Platform.h: Tweaked #include's.
* src/a2netcompat.h: Tweaked #include's.
* src/strptime.h: Tweaked #include's.
* src/gai_strerror.c: Tweaked #include's.
* src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
* src/getaddrinfo.h: Moved #ifndef __MINGW32__
* src/gettimeofday.h: Added HAVE_CONFIG_H
2007-08-14 14:51:08 +00:00
Tatsuhiro Tsujikawa
c14c80276a
Updated TODO
2007-08-09 16:08:17 +00:00
Tatsuhiro Tsujikawa
0ac4dc1e08
2007-08-09 16:04:31 +00:00
Tatsuhiro Tsujikawa
1232c9fc7f
Marked 0.11.2 release
...
Updated man page
2007-08-09 15:34:03 +00:00
Tatsuhiro Tsujikawa
49ddebd684
Updated ja.po
2007-08-09 15:09:50 +00:00
Tatsuhiro Tsujikawa
729d566678
Fixed typo: threw -> thrown
2007-08-09 14:54:36 +00:00
Tatsuhiro Tsujikawa
645e66ea11
2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Increased the initial connection size in BitTorrent download to
40.
* src/BtRuntime.h
Added the usage message of --peer-id-prefix option.
* src/main.cc
2007-08-09 14:50:08 +00:00
Tatsuhiro Tsujikawa
62e2056d09
Make initial connection size of bittorrent 40
2007-08-09 14:47:47 +00:00
Tatsuhiro Tsujikawa
a405d0238e
Fixed the bug that a remote metalink is not processed even if
...
'-o foo.metalink' is specified.
* src/MetalinkRequestInfo.cc
2007-08-08 16:01:58 +00:00
Tatsuhiro Tsujikawa
a3afa89941
Applied Ross's patch
...
* src/a2netcompat.h
* src/main.cc
Updated man page
2007-08-08 15:26:19 +00:00
Tatsuhiro Tsujikawa
958faeac06
Added unit test
2007-08-08 14:40:28 +00:00
Tatsuhiro Tsujikawa
e85f9ccfd6
2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
MessageDigestHelper is introduced in order to simplify the use
of message digest. Removed repeated code.
The message digest algorithm is now specified by string, like
"sha1",
"md5".
* src/messageDigest.{h, cc}
* src/MessageDigestHelper.{h, cc}: New class.
* src/DefaultPieceStorage.cc
* src/DefaultBtContext.{h, cc}
(computeFastSet): New function.
(setInfoHash): Added for unit testing.
(setNumPieces): Added for unit testing.
* src/DefaultBtInteractive.cc
* src/BtPieceMessage.cc
* src/Peer.cc
* src/Checksum.h
* src/message.h
* src/IteratableChecksumValidator.h
* src/ChunkChecksumValidator.{h, cc}: Use
IteratableChecksumValidator
inside it.
* src/SegmentMan.{h, cc}
(checkIntegrity): Removed.
* src/IteratableChunkChecksumValidator.{h, cc}
* src/Util.h
(sha1Sum): Removed.
(simpleMessageDigest): Removed.
(fileChecksum): Removed.
(computeFastSet): Removed.
* src/ShaVisitor.cc
* src/ChunkChecksum.h
* src/DownloadCommand.cc
Removed messageDigest virtual functions.
* src/MultiDiskAdaptor.{h, cc}
* src/DiskAdaptor.h
* src/ByteArrayDiskWriter.h
* src/DiskWriter.h
* src/DiskAdaptorWriter.h
* src/AbstractSingleDiskAdaptor.{h, cc}
* src/AbstractDiskWriter.{h, cc}
Fixed comilation error when message digest is disabled.
* src/MetalinkEntry.{h, cc}
* src/MetalinkRequestInfo.cc
Removed srandom and random.
* src/SimpleRandomizer.h
Added size() virtual function to DiskAdaptor
* src/MultiDiskAdaptor.h
Fixed the bug that causes that files are not opened correctly in
multi-file torrent.
* src/TorrentRequestInfo.cc
* src/MultiDiskAdaptor.cc
Added SHA256 support
* src/messageDigest.cc
* src/Xml2MetalinkProcessor.cc
Show supported message digest algorithms
* src/main.cc
Updated contact info.
* src/main.cc
2007-08-08 14:40:11 +00:00
Tatsuhiro Tsujikawa
45f949c713
Updated po files
2007-08-04 15:17:21 +00:00
Tatsuhiro Tsujikawa
05c3cb373c
Updated TODO
2007-08-03 12:12:54 +00:00
Tatsuhiro Tsujikawa
b9859d2709
2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
...
Updated contact info.
* src/main.cc
2007-08-03 12:12:23 +00:00