ChangeLog 26 KB

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