ChangeLog 26 KB

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