ChangeLog 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. * configure.in: Added gnutls support. Added several CPP macros.
  3. * m4/openssl.m4: Added.
  4. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  5. readData(), peekData(). Added gnutls support.
  6. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  7. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  8. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  9. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10. Instead, added a check for whether setup method has executed
  11. successfully.
  12. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14. * src/Makefile.am: Updated.
  15. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16. using whether OpenSSL or gcrypt, depending on the result of configure
  17. script.
  18. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19. messageDigest.h.
  20. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  21. * src/PeerListenCommand.cc: Added log about port binded successfully.
  22. Fixed memory leak.
  23. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  24. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  25. Removed instantiation of TrackerInitCommand. Instead,
  26. TrackerWatcherCommand is instantiated and pushed to the command queue.
  27. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  28. ENABLE_SSL.
  29. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  30. * src/RequestSlotMan.cc:
  31. (deleteCompletedRequestSlot)
  32. If a piece is already acquired by another command, delete the request
  33. slots for the piece.
  34. * src/TrackerUpdateCommand.cc:
  35. (execute)
  36. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  37. Added a check whether peer list is null.
  38. Fixed the bug that causes sending completed event to the tracker
  39. several times.
  40. * src/TrackerInitCommand.cc:
  41. (execute)
  42. Fixed the bug that causes sending completed event to the tracker
  43. several times.
  44. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  45. by using messageDigest.h.
  46. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  47. * PeerConnection.cc: Replaced log message "keep-alive" with
  48. "keep alive".
  49. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  50. localhost long time.
  51. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  52. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  53. at most 100 failure entry from the list. If with duplicate = false,
  54. MAX_PEER_LIST is not checked.
  55. * PeerListenCommand.cc: Fixed the argument order of log message.
  56. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  57. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  58. Added warn().
  59. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  60. Implemented warn().
  61. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  62. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  63. * Request.h: Added AFTER_COMPLETED event.
  64. * TorrentDownloadEngine.cc: Prints "Download complete" message
  65. instead of downloaded size and progress(%) after download completes.
  66. * PeerInteractionCommand.cc: After download completes, sends unchoke
  67. message to the peer if it is interested in what localhost has
  68. downloaded.
  69. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  70. destination instead of just renaming it.
  71. * TorrentMan.cc: Added deleteTempFile().
  72. * PeerAbstractCommand.cc: do not stop execution after download
  73. completes. This makes localhost a seeder.
  74. * Util.{h,cc}: Added fileCopy().
  75. * PeerListenCommand.cc: do not stop execution after download completes.
  76. This makes localhost a seeder.
  77. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  78. Added TorrentMan::deleteTempFile() to torrentHandler.
  79. Initialized the variable dir as ".".
  80. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  81. Deleted renameSingleFile().
  82. Added copySingleFile(), deleteTempFile().
  83. * DownloadEngine.h: Added virtual function afterEachIteration().
  84. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  85. in onEndOfRun() to afterEachIteration().
  86. In onEndOfRun(), changed if condition to check whether filenameFixed is
  87. true.
  88. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  89. In rangedFileCopy(), added try-catch block to properly close file
  90. descriptors.
  91. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  92. Added afterEachIteration(), isFilenameFixed().
  93. * Peer.cc: Changed choking strategy.
  94. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  95. * TrackerInitCommand.cc: Send completed event only once.
  96. * DownloadEngine.cc: Added a call to afterEachIteration().
  97. * TrackerUpdateCommand.cc: Do not stop execution after download
  98. completes.
  99. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  100. connect the peers at most MAX_PEER_UPDATE when a peer list is
  101. received from a tracker.
  102. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  103. Decreased the number of failure peers to delete to 0(just comment out
  104. the line).
  105. * Release 0.3.1
  106. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  107. * PeerInteractionCommand.cc: added a call to
  108. TorrentMan::unadvertisePiece in Destructor.
  109. * PeerInteractionCommand.cc: make have message sent immediately
  110. if the size of pending message queue is zero.
  111. * TorrentMan.cc: set the maximum size of peer list to 250.
  112. * TorrentMan.h: changed the container type of Peers and UsedPieces
  113. to deque.
  114. * Util.cc: fixed rangedFileCopy.
  115. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  116. to Constructor. Also, moved digest cleanup to Destructor.
  117. * MetaFileUtil.cc: fixed memory leak
  118. * replaced std::vector with std::deque.
  119. * AbstractCommand.cc: casted timeout value to long long int.
  120. * ChunkedEncoding.cc: fixed memory leak.
  121. * PeerInteractionCommand.cc: casted timeout value to long long int.
  122. * SleepCommand.cc: casted timeout value to long long int.
  123. * Data.cc: fixed memory leak.
  124. * Data.cc: fixed toLLInt().
  125. * BitfieldMan.cc: fixed memory leak.
  126. * TorrentMan.cc: initialized storeDir to ".".
  127. * TorrentMan.cc: fixed memory leak.
  128. * TorrentMan.cc: corrected file paths of splitted files.
  129. * PeerAbstractCommand.cc: casted timeout to long long int.
  130. * main.cc: added delete(req) and delete(te->diskWriter).
  131. * RequestSlot.cc: casted timeout value to long long int.
  132. * Request.cc: fixed memory leak.
  133. * PendingMessage.cc: make HAVE messages sent only when peer does not
  134. have the piece.
  135. * Peer.{h,cc}: added hasPiece(int index).
  136. * main.cc: corrected addCommand.
  137. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  138. * BitTorrent protocol support added.
  139. * Release 0.3.0
  140. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  141. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  142. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  143. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  144. decoding did not work properly.
  145. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  146. * DownloadEngine.h: included sys/time.h
  147. * DownloadEngine.cc: remove sys/time.h
  148. * Makefile.am (SUBDIRS): Add intl.
  149. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  150. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  151. * main.cc: correct help message for --http-auth-scheme.
  152. * main.cc: changed e-mail address for bug reports.
  153. * ja.po: added japanese translation.
  154. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  155. * SimpleLogger.cc: flush log file instead of stdout.
  156. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  157. * main.cc: Fixed command-line option: max-tries
  158. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  159. does not equal to seg.sp.
  160. * DownloadCommand.cc: If EOF is got from the server and the total size
  161. of file is not zero, then throw DlRetryEx.
  162. * main.cc: Set the minium value of min-segment-size to 1024.
  163. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  164. fails because of a regression since 0.2.0 release.
  165. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  166. * HttpConnection.cc:
  167. * common.h: defined the user agent name as macro
  168. * DownloadEngine.{h, cc}:
  169. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  170. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  171. * main.cc: Download complete/abort message is now generated by main.
  172. * Makefile.am (SUBDIRS): Add m4.
  173. (ACLOCAL_AMFLAGS): New variable.
  174. (EXTRA_DIST): New variable.
  175. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  176. * gettext: added gettext functionality
  177. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  178. * AbstractCommand.cc:
  179. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  180. unregister its cuid from SegmentMan.
  181. * DownloadEngine.cc: .aria2 file was written when a downloading
  182. failed with errors.
  183. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  184. Added "User-Agent" header to CONNECT proxy request.
  185. Fixed "Proxy-Authorization" header. Now proxy authorization works
  186. properly.
  187. * Logger.h:
  188. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  189. * ChunkedEncoding.cc: Added #include directive for strings.h
  190. * Release 0.2.1
  191. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  192. * Util.{h,cc}: added startsWith().
  193. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  194. Util::endsWith().
  195. * SocketCore.cc: struct addrinfo is now zero-initialized.
  196. * common.h: added #include directive of limit.h.
  197. * DownloadEngine.cc: added #include directive of sys/time.h and
  198. algorithm.
  199. * Exception.h: added #include directive of stdio.h.
  200. * AbstractCommand.h: added #include directive of sys/time.h.
  201. * DownloadCommand.h: added #include directive of sys/time.h.
  202. * *.h: added #include directive of common.h to all base classes.
  203. subclasses' one was removed.
  204. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  205. does not define these macros.
  206. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  207. * Release 0.2.0
  208. * main.cc:
  209. * HttpInitiateConnectionCommand.{h,cc}:
  210. * prefs.h:
  211. * HttpConnection.{h,cc}: added --http-proxy-method option.
  212. We can now use GET command in http proxy.
  213. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  214. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  215. that splits slowest segment of SegmentMan::commands vector.
  216. This is the default split algorithm of aria2.
  217. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  218. that splits first segment of SegmentMan::commands vector.
  219. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  220. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  221. * Segment.h:
  222. * SegmentMan.cc: Added speed field to Segment.h
  223. * main.cc: -s option now affects all URLs in command-line arguemtns.
  224. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  225. * message.h: Change file size related %d to %lld.
  226. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  227. * FtpInitiateConnectionCommand.{h,cc}:
  228. * FtpNegotiationCommand.{h,cc}:
  229. * FtpDownloadCommand.{h,cc}:
  230. * FtpConnection.{h,cc}: Added FTP support
  231. * SimpleLogger.cc: Log message now includes time information.
  232. * main.cc: The value of --http-auth-scheme option is chagned from
  233. 'BASIC' to 'basic'
  234. * main.cc: Added --timeout command-line option.
  235. * main.cc: Added --min-segment-size command-line option.
  236. * main.cc: Added --max-retries command-line option.
  237. * prefs.h: option string constants are now defined in prefs.h
  238. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  239. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  240. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  241. with version 0.1.0's one.
  242. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  243. * configure.in: Added --enable-ssl option to configure script.
  244. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  245. cannot permit absoluteURI as Request-URI.
  246. * HttpConnection.cc: Added Referer support.
  247. * main.cc: Added referer command-line option.
  248. * main.cc: Added rety-wait command-line option.
  249. * Exception.h: Fixed formating bug in Exception::setMsg()
  250. * SocketCore.{h,cc}:
  251. * Socket.{h, cc}:
  252. * Request.cc:
  253. * InitiateConnectionCommandFactory.cc:
  254. * HttpRequestCommand.cc: Added HTTPS support.
  255. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  256. for SocketCore.
  257. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  258. size is wrong
  259. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  260. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  261. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  262. * Release 0.1.0