ChangeLog 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. To add the ability to download multi torrent into respective files
  3. directly:
  4. * src/DiskWriter.h (openFile): New function.
  5. (seek): Removed.
  6. * src/MultiDiskWriter.h: New class.
  7. * src/MultiDiskWriter.cc: New class.
  8. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  9. protected.
  10. (openFile): New function.
  11. * src/AbstractDiskWriter.cc (openFile): New function.
  12. * src/prefs.h (V_FALSE): New definition.
  13. (PREF_DIRECT_FILE_MAPPING): New definition.
  14. * src/TorrentMan.h (setupDiskWriter): New function.
  15. (setAllMultiFileRequestedState): New function.
  16. (onDownloadComplete): New function.
  17. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18. (setupDiskWriter): New function.
  19. (getFilePath): Updated.
  20. (getTempFilePath): Updated.
  21. (getSegmentFilePath): Updated.
  22. (fixFilename): Updated.
  23. (deleteTempFile): Updated.
  24. (setAllMultiFileRequestedState): New function.
  25. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  26. (finishPartialDownloadingMode): Reset requested flags.
  27. (onDownloadComplete): New function.
  28. * src/main.cc: Added --direct-file-mapping option.
  29. Use TorretMan::setupDiskWriter().
  30. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  31. onDownloadComplete().
  32. To fix ETA bug:
  33. * src/Util.h (difftvsec): New function.
  34. * src/Util.cc (difftvsec): New function.
  35. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  36. type of "elapsed" instead of long long int.
  37. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  38. The updates of statistics takes place every 1 seconds.
  39. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  40. (calculateSpeed): Changed its argument signature.
  41. * src/PeerMessage.cc (toString): Fixed message.
  42. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  43. To print ETA:
  44. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  45. completion handling when dealing with
  46. TorrentMan::isPartialDownloadingMode() == true.
  47. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  48. New function.
  49. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  50. (sessionDownloadLength): New variable.
  51. (avgSpeed): New variable.
  52. (eta): New variable.
  53. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  54. new variables: eta, avgSpeed, startup.
  55. (calculateSpeed): Calculate average speed and ETA.
  56. (printStatistics): Added ETA.
  57. * src/Util.h (secfmt): New function.
  58. * src/Util.cc (secfmt): New function.
  59. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  60. To detect "keep alive" flooding:
  61. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  62. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  63. variable: keepAliveCount.
  64. (detectMessageFlooding): Added "keep alive" flooding detection.
  65. (receiveMessage): Increase keepAliveCount when "keep alive" message
  66. received.
  67. To add the ability to download only specified files in multi-file
  68. torrent:
  69. * src/BitfieldMan.h (filterBitfield): New variable.
  70. (filterEnabled): New variable.
  71. (setFilterBit): New function.
  72. (enableFilter): New function.
  73. (disableFilter): New function.
  74. (isFilterEnabled): New function.
  75. (getFilteredTotalLength): New function.
  76. (getCompletedLength): New function.
  77. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  78. filterBitfield, filterEnabled.
  79. (CopyConstructor): Added filterBitfield and filterEnabled.
  80. (operator==): Added filterBitfield and filterEnabled.
  81. (Destructor): Added filterBitfield.
  82. (getMissingIndex): Use filterBitfield.
  83. (getMissingUnusedIndex): Use filterBitfield.
  84. (getFirstMissingUnusedIndex): Use filterBitfield.
  85. (getFirstMissingUnusedIndex): Use filterBitfield.
  86. (getAllMissingIndexes): Use filterBitfield.
  87. (countMissingBlock): Use filterBitfield.
  88. (countBlock): Use filterBitfield.
  89. (setBitInternal): Added new argument on.
  90. (setUseBit): Use setBitInternal.
  91. (unsetUseBit): Use setBitInternal.
  92. (setBit): Use setBitInternal.
  93. (unsetBit): Use setBitInternal.
  94. (isAllBitSet): Use filterBitfield.
  95. (setFilterBit): New function.
  96. (addFilter): New function.
  97. (enableFilter): New function.
  98. (disableFilter): New function.
  99. (clearFilter): New function.
  100. (isFilterEnabled): New function.
  101. (getFilteredTotalLength): New function.
  102. (getCompletedLength): New function.
  103. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  104. Initalized newly added variables.
  105. [FileEntry](offset): New variable.
  106. [FileEntry](extracted): New variable.
  107. [FileEntry](requested): New variable.
  108. (readFileEntry): New function.
  109. (option): New variable.
  110. (splitMultiFile): Removed const qualifier.
  111. (fixFilename): Removed const qualifier.
  112. (readFileEntryFromMetaInfoFile): New function.
  113. (finishPartialDownloadingMode): New function.
  114. (isPartialDownloadingMode): New function.
  115. (setFileEntriesToDownload): New function.
  116. (getCompletedLength): New function.
  117. (getPartialTotalLength): New function.
  118. * src/TorrentMan.cc (readFileEntry): New function.
  119. (setup): Use readFileEntry. If no-preallocation option is specified,
  120. use DefaultDiskWriter.
  121. (readFileEntryFromMetaInfoFile): New function.
  122. (fixFilename): Removed const qualifier.
  123. (splitMultiFile): Removed const qualifier.
  124. (setFileEntriesToDownload): New function.
  125. (isPartialDownloadingMode): New function.
  126. (finishPartialDownloadingMode): New function.
  127. (getCompletedLength): New function.
  128. (getPartialTotalLength): New function.
  129. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  130. New variable.
  131. (partialTotalLength): New variable.
  132. (downloadLength): New variable.
  133. (totalLength): New variable.
  134. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  135. Added log.
  136. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  137. partialTotalLength, downloadLength, totalLength.
  138. (calculate): Calculate downloadLength and totalLength.
  139. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  140. * src/main.cc (addCommand): Changed argument signature.
  141. (main): Added new variable: args. Added new option "torrent-show-files"
  142. "no-preallocation". Usage is not updated yet.
  143. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  144. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  145. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  146. Attempt to add the ability to listing file entries in a .torrent file.
  147. This feature is not yet complete.
  148. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  149. * src/TorrentMan.cc (getMultiFileEntries): New function.
  150. (getName): New function.
  151. * src/TorrentMan.h (getMultiFileEntries): New function.
  152. (getName): New function.
  153. * src/main.cc (main): Use above 2 funtion.
  154. * Release 0.3.2
  155. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  156. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  157. (detectMessageFlooding): Updated threshold value.
  158. (checkLongTimePeerChoking): Updated timeout value.
  159. (getNewPieceAndSendInterest): Added debug log.
  160. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  161. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  162. (getPeer): Updated.
  163. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  164. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  165. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  166. is localhost.
  167. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  168. * src/PendingMessage.cc (processMessage): Not to send piece message
  169. if peer is not interested in the pieces localhost has.
  170. * src/Peer.cc (shouldChoke): Updated.
  171. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  172. * src/Util.cc (isPowerOf): New function.
  173. * src/Util.h (isPowerOf): New function.
  174. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  175. whether or not it is power of 2.
  176. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  177. Added new class SendMessageQueue that includes PendingMessages and
  178. RequestSlotMan.
  179. * src/SendMessageQueue.h: New class.
  180. * src/SendMessageQueue.cc: New class.
  181. * src/PendingMessage.h: Added new member variable blockIndex and its
  182. accessors.
  183. (createRequestMessage): Updated.
  184. * src/PendingMessage.cc (createRequestMessage): Updated.
  185. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  186. SendMessageQueue.
  187. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  188. (receiveMessage): Updated with SendMessageQueue.
  189. (deletePendingPieceMessage): Removed.
  190. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  191. (sendInterest): Updated with SendMessageQueue.
  192. (createRequestPendingMessage): Updated with SendMessageQueue.
  193. (sendMessages): Updated with SendMessageQueue.
  194. (onAbort): Updated with SendMessageQueue.
  195. (keepAlive): Updated with SendMessageQueue.
  196. (beforeSocketCheck): Updated SendMessageQueue.
  197. * src/PeerInteractionCommand (sendMessages): Shuffle
  198. missingBLockIndexes before using it.
  199. Added its own timeout for peer connection.
  200. * src/PeerAbstractCommand.h: Added member variable timeout and its
  201. setter.
  202. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  203. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  204. Added setTimeout() call.
  205. (executeInternal): Added setTimeout() call.
  206. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  207. Added timeout.
  208. (isTimeoutDetected): Updated.
  209. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  210. option.
  211. Added *simple* message flooding checker.
  212. * src/PeerInteractionCommand.cc (executeInternal):
  213. Added detectMessageFlooding() call.
  214. (detectMessageFlooding): New function.
  215. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  216. (beforeSocketCheck): Added detectMessageFlooding() call.
  217. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  218. chokeUnchokeCount, haveCount, detectMessageFlooding().
  219. Removed deletePendingPieceMessage(), getRequestSlot(),
  220. deleteRequestSlot(), deleteAllRequestSlot().
  221. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  222. Added checkLongTimePeerChoking() call.
  223. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  224. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  225. if duplicate == false.
  226. The parameter "uploaded" and "downloaded" in the tracker request are
  227. the size since the client sent the "started" event to the tracker.
  228. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  229. uploaded size to preDownloadedSize, preUploadedSize respectively.
  230. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  231. getSessionDownloadedSize(), getSessionUploadedSize().
  232. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  233. getSessionUploadedSize() instead of getDownloadedSize(),
  234. getUploadedSize().
  235. * src/PendingMessage.cc (processMessage): Do not send request message
  236. if the peer is choking the client.
  237. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  238. less than interval.
  239. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  240. * configure.in: Added gnutls support. Added several CPP macros.
  241. * m4/openssl.m4: Added.
  242. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  243. readData(), peekData(). Added gnutls support.
  244. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  245. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  246. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  247. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  248. Instead, added a check for whether setup method has executed
  249. successfully.
  250. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  251. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  252. * src/Makefile.am: Updated.
  253. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  254. using whether OpenSSL or gcrypt, depending on the result of configure
  255. script.
  256. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  257. messageDigest.h.
  258. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  259. * src/PeerListenCommand.cc: Added log about port binded successfully.
  260. Fixed memory leak.
  261. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  262. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  263. Removed instantiation of TrackerInitCommand. Instead,
  264. TrackerWatcherCommand is instantiated and pushed to the command queue.
  265. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  266. ENABLE_SSL.
  267. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  268. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  269. If a piece is already acquired by another command, delete the request
  270. slots for the piece.
  271. * src/TrackerUpdateCommand.cc (execute):
  272. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  273. Added a check whether peer list is null.
  274. Fixed the bug that causes sending completed event to the tracker
  275. several times.
  276. * src/TrackerInitCommand.cc (execute):
  277. Fixed the bug that causes sending completed event to the tracker
  278. several times.
  279. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  280. by using messageDigest.h.
  281. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  282. * PeerConnection.cc: Replaced log message "keep-alive" with
  283. "keep alive".
  284. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  285. localhost long time.
  286. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  287. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  288. at most 100 failure entry from the list. If with duplicate = false,
  289. MAX_PEER_LIST is not checked.
  290. * PeerListenCommand.cc: Fixed the argument order of log message.
  291. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  292. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  293. Added warn().
  294. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  295. Implemented warn().
  296. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  297. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  298. * Request.h: Added AFTER_COMPLETED event.
  299. * TorrentDownloadEngine.cc: Prints "Download complete" message
  300. instead of downloaded size and progress(%) after download completes.
  301. * PeerInteractionCommand.cc: After download completes, sends unchoke
  302. message to the peer if it is interested in what localhost has
  303. downloaded.
  304. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  305. destination instead of just renaming it.
  306. * TorrentMan.cc: Added deleteTempFile().
  307. * PeerAbstractCommand.cc: do not stop execution after download
  308. completes. This makes localhost a seeder.
  309. * Util.{h,cc}: Added fileCopy().
  310. * PeerListenCommand.cc: do not stop execution after download completes.
  311. This makes localhost a seeder.
  312. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  313. Added TorrentMan::deleteTempFile() to torrentHandler.
  314. Initialized the variable dir as ".".
  315. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  316. Deleted renameSingleFile().
  317. Added copySingleFile(), deleteTempFile().
  318. * DownloadEngine.h: Added virtual function afterEachIteration().
  319. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  320. in onEndOfRun() to afterEachIteration().
  321. In onEndOfRun(), changed if condition to check whether filenameFixed is
  322. true.
  323. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  324. In rangedFileCopy(), added try-catch block to properly close file
  325. descriptors.
  326. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  327. Added afterEachIteration(), isFilenameFixed().
  328. * Peer.cc: Changed choking strategy.
  329. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  330. * TrackerInitCommand.cc: Send completed event only once.
  331. * DownloadEngine.cc: Added a call to afterEachIteration().
  332. * TrackerUpdateCommand.cc: Do not stop execution after download
  333. completes.
  334. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  335. connect the peers at most MAX_PEER_UPDATE when a peer list is
  336. received from a tracker.
  337. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  338. Decreased the number of failure peers to delete to 0(just comment out
  339. the line).
  340. * Release 0.3.1
  341. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  342. * PeerInteractionCommand.cc: added a call to
  343. TorrentMan::unadvertisePiece in Destructor.
  344. * PeerInteractionCommand.cc: make have message sent immediately
  345. if the size of pending message queue is zero.
  346. * TorrentMan.cc: set the maximum size of peer list to 250.
  347. * TorrentMan.h: changed the container type of Peers and UsedPieces
  348. to deque.
  349. * Util.cc: fixed rangedFileCopy.
  350. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  351. to Constructor. Also, moved digest cleanup to Destructor.
  352. * MetaFileUtil.cc: fixed memory leak
  353. * replaced std::vector with std::deque.
  354. * AbstractCommand.cc: casted timeout value to long long int.
  355. * ChunkedEncoding.cc: fixed memory leak.
  356. * PeerInteractionCommand.cc: casted timeout value to long long int.
  357. * SleepCommand.cc: casted timeout value to long long int.
  358. * Data.cc: fixed memory leak.
  359. * Data.cc: fixed toLLInt().
  360. * BitfieldMan.cc: fixed memory leak.
  361. * TorrentMan.cc: initialized storeDir to ".".
  362. * TorrentMan.cc: fixed memory leak.
  363. * TorrentMan.cc: corrected file paths of splitted files.
  364. * PeerAbstractCommand.cc: casted timeout to long long int.
  365. * main.cc: added delete(req) and delete(te->diskWriter).
  366. * RequestSlot.cc: casted timeout value to long long int.
  367. * Request.cc: fixed memory leak.
  368. * PendingMessage.cc: make HAVE messages sent only when peer does not
  369. have the piece.
  370. * Peer.{h,cc}: added hasPiece(int index).
  371. * main.cc: corrected addCommand.
  372. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  373. * BitTorrent protocol support added.
  374. * Release 0.3.0
  375. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  376. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  377. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  378. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  379. decoding did not work properly.
  380. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  381. * DownloadEngine.h: included sys/time.h
  382. * DownloadEngine.cc: remove sys/time.h
  383. * Makefile.am (SUBDIRS): Add intl.
  384. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  385. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  386. * main.cc: correct help message for --http-auth-scheme.
  387. * main.cc: changed e-mail address for bug reports.
  388. * ja.po: added japanese translation.
  389. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  390. * SimpleLogger.cc: flush log file instead of stdout.
  391. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  392. * main.cc: Fixed command-line option: max-tries
  393. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  394. does not equal to seg.sp.
  395. * DownloadCommand.cc: If EOF is got from the server and the total size
  396. of file is not zero, then throw DlRetryEx.
  397. * main.cc: Set the minium value of min-segment-size to 1024.
  398. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  399. fails because of a regression since 0.2.0 release.
  400. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  401. * HttpConnection.cc:
  402. * common.h: defined the user agent name as macro
  403. * DownloadEngine.{h, cc}:
  404. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  405. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  406. * main.cc: Download complete/abort message is now generated by main.
  407. * Makefile.am (SUBDIRS): Add m4.
  408. (ACLOCAL_AMFLAGS): New variable.
  409. (EXTRA_DIST): New variable.
  410. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  411. * gettext: added gettext functionality
  412. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  413. * AbstractCommand.cc:
  414. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  415. unregister its cuid from SegmentMan.
  416. * DownloadEngine.cc: .aria2 file was written when a downloading
  417. failed with errors.
  418. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  419. Added "User-Agent" header to CONNECT proxy request.
  420. Fixed "Proxy-Authorization" header. Now proxy authorization works
  421. properly.
  422. * Logger.h:
  423. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  424. * ChunkedEncoding.cc: Added #include directive for strings.h
  425. * Release 0.2.1
  426. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  427. * Util.{h,cc}: added startsWith().
  428. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  429. Util::endsWith().
  430. * SocketCore.cc: struct addrinfo is now zero-initialized.
  431. * common.h: added #include directive of limit.h.
  432. * DownloadEngine.cc: added #include directive of sys/time.h and
  433. algorithm.
  434. * Exception.h: added #include directive of stdio.h.
  435. * AbstractCommand.h: added #include directive of sys/time.h.
  436. * DownloadCommand.h: added #include directive of sys/time.h.
  437. * *.h: added #include directive of common.h to all base classes.
  438. subclasses' one was removed.
  439. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  440. does not define these macros.
  441. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  442. * Release 0.2.0
  443. * main.cc:
  444. * HttpInitiateConnectionCommand.{h,cc}:
  445. * prefs.h:
  446. * HttpConnection.{h,cc}: added --http-proxy-method option.
  447. We can now use GET command in http proxy.
  448. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  449. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  450. that splits slowest segment of SegmentMan::commands vector.
  451. This is the default split algorithm of aria2.
  452. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  453. that splits first segment of SegmentMan::commands vector.
  454. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  455. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  456. * Segment.h:
  457. * SegmentMan.cc: Added speed field to Segment.h
  458. * main.cc: -s option now affects all URLs in command-line arguemtns.
  459. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  460. * message.h: Change file size related %d to %lld.
  461. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  462. * FtpInitiateConnectionCommand.{h,cc}:
  463. * FtpNegotiationCommand.{h,cc}:
  464. * FtpDownloadCommand.{h,cc}:
  465. * FtpConnection.{h,cc}: Added FTP support
  466. * SimpleLogger.cc: Log message now includes time information.
  467. * main.cc: The value of --http-auth-scheme option is chagned from
  468. 'BASIC' to 'basic'
  469. * main.cc: Added --timeout command-line option.
  470. * main.cc: Added --min-segment-size command-line option.
  471. * main.cc: Added --max-retries command-line option.
  472. * prefs.h: option string constants are now defined in prefs.h
  473. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  474. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  475. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  476. with version 0.1.0's one.
  477. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  478. * configure.in: Added --enable-ssl option to configure script.
  479. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  480. cannot permit absoluteURI as Request-URI.
  481. * HttpConnection.cc: Added Referer support.
  482. * main.cc: Added referer command-line option.
  483. * main.cc: Added rety-wait command-line option.
  484. * Exception.h: Fixed formating bug in Exception::setMsg()
  485. * SocketCore.{h,cc}:
  486. * Socket.{h, cc}:
  487. * Request.cc:
  488. * InitiateConnectionCommandFactory.cc:
  489. * HttpRequestCommand.cc: Added HTTPS support.
  490. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  491. for SocketCore.
  492. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  493. size is wrong
  494. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  495. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  496. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  497. * Release 0.1.0