ChangeLog 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  1. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. * src/main.cc (main): Fixed typo.
  3. * src/message.h: Fixed typo.
  4. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  5. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6. To add --select-file command-line option:
  7. * src/Util.cc
  8. (unfoldRange): New function.
  9. (getNum): New function.
  10. (unfoldSubRange): New function
  11. * src/main.cc
  12. (showUsage): Added help message.
  13. (main): Added --select-file command-line option. Updated the layout of
  14. file listing.
  15. * src/common.h
  16. (Integers): New definition.
  17. * src/SocketCore.cc
  18. (writeData): Removed timeout argument.
  19. (readData): Removed timeout argument.
  20. (peekData): Removed timeout argument.
  21. * src/Socket.cc
  22. (writeData): Removed timeout argument.
  23. (readData): Removed timeout argument.
  24. (peekData): Removed timeout argument.
  25. * Release 0.4.1
  26. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  27. To deploy upload rate based choking algorithm:
  28. * src/PeerInteractionCommand.cc
  29. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  30. peer currently used.
  31. (decideChoking): Deleted the choke/unchoke decision algorithm when
  32. download completes. Simplified.
  33. (receiveMessage): Updated.
  34. * src/TorrentMan.h
  35. (activePeers): New variable.
  36. (addActivePeer): New function.
  37. (getActivePeers): New function.
  38. (deleteActivePeer): New function.
  39. * src/TorrentMan.cc
  40. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  41. * src/PeerAbstractCommand.cc
  42. (onAbort): Use peer->resetStatus().
  43. * src/main.cc
  44. (PeerChokeCommand.h): Included.
  45. (main): Added the instance of ChokingCommand to the command queue.
  46. * src/Peer.h
  47. (amChoking): Renamed from amChocking
  48. (chokingRequired): New variable.
  49. (optUnchoking): New variable.
  50. (deltaUpload): New variable.
  51. (deltaDownload): New variable.
  52. (addDeltaUpload): New function.
  53. (resetDeltaUpload): New function.
  54. (addDeltaDownload): New function.
  55. (resetDeltaDownload): New function.
  56. (addPeerUpload): Added a call to addDeltaUpload.
  57. (addPeerDownload): Added a call to addDeltaDownload.
  58. * src/Peer.cc
  59. (shouldBeChoking): Renamed from shouldChoke.
  60. (resetStatus): New function.
  61. * src/PeerChokeCommand.h: New class.
  62. * src/PeerChokeCommand.cc: New class.
  63. To add lazy upload speed limiter:
  64. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  65. statistics calculation to TorrentDownloadEngine.
  66. * src/TorrentConsoleDownloadEngine.cc
  67. (sendStatistics): Renamed from printStatistics.
  68. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  69. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  70. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  71. * src/TorrentDownloadEngine.h: Added the variables for statistics
  72. calculation.
  73. (sendStatistics): New function as pure virtual function.
  74. (getUploadSpeed): New function.
  75. * src/TorrentDownloadEngine.cc
  76. (initStatistics): New function.
  77. (calculateSpeed): New function.
  78. (calculateStatistics): New function.
  79. * src/SendMessageQueue.h
  80. (uploadLength): New variable.
  81. (send): Added an argument.
  82. (setUploadLimit): New function.
  83. (getUploadLimit): New function.
  84. * src/SendMessageQueue.cc
  85. (send): Added upload speed limiter.
  86. * src/prefs.h
  87. (PREF_UPLOAD_LIMIT): New definition.
  88. * src/PeerInteractionCommand.cc
  89. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  90. * src/main.cc
  91. (main): Added --upload-limit option
  92. For bug fixes:
  93. * src/main.cc
  94. (showUsage): Corrected --listen-port help
  95. Other changes:
  96. * src/TorrentMan.cc
  97. (getPeer): Return nullPeer if connection is grather than
  98. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  99. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  100. To add some useful information to the exception message:
  101. * src/SocketCore.cc : Updated messages.
  102. * src/SegmentMan.cc :
  103. * src/TorrentMan.cc : Updated messages.
  104. * src/MultiDiskWriter.cc : Updated messages.
  105. * src/Util.cc : Updated messages.
  106. * src/AbstractDiskWriter.cc : Updated messages.
  107. * src/PreAllocationDiskWriter.cc : Updated messages.
  108. * src/message.cc : Added new messages. Updated some messages.
  109. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  110. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  111. Updated threshold from 30 to 15.
  112. * src/AbstractDiskWriter.h (filename): New variable.
  113. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  114. (createFile): Assigned filename.
  115. * src/main.cc: Updated the help message for http-auth-scheme.
  116. * Release 0.4.0
  117. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  118. To add TrackerUpdateCommand with which replaces
  119. CompactTrackerResponseProcessor:
  120. * src/TrackerWatcherCommand.h (req): Removed.
  121. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  122. if the number of peer connections are less than 30.
  123. * src/ByteArrayDiskWriter.h (readData): Implemented.
  124. * src/SegmentMan.h (diskWriter): New function.
  125. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  126. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  127. (main): Use TrackerUpdateCommand.
  128. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  129. (req): New variable.
  130. (setTrackerResponseProcessor): Removed.
  131. (getTrackerResponseProcessor): Removed.
  132. (processTrackerResponse): Removed.
  133. * src/DownloadEngine.h (diskWriter): Removed.
  134. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  135. to torrentMan->processTrackerResponse().
  136. To add Util::expandBuffer:
  137. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  138. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  139. * src/Util.h (expandBuffer): New function.
  140. To fix the bug that causes segmentation fault when "-l ." is specified
  141. in command-line option:
  142. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  143. (openFile): New function.
  144. (closeFile): New function.
  145. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  146. (~SimpleLogger): Call closeFile();
  147. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  148. * src/main.cc (main): Added a check to see logger is configured
  149. properly.
  150. To enable HTTP authentication without specifying "--http-auth-scheme"
  151. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  152. * src/HttpConnection.cc (createRequest): Send Authorization header
  153. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  154. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  155. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  156. * src/Peer.cc (shouldChoke): Updated algorithm.
  157. * src/message.h (EX_AUTH_FAILED): New definition.
  158. (EX_FILE_OPEN): New definition.
  159. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  160. if status == 401.
  161. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  162. if req->isTorrent == true.
  163. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  164. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  165. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  166. (createFile): Updated message.
  167. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  168. To add a readout of estimated remaining time to normal HTTP/FTP
  169. downloads:
  170. * src/ConsoleDownloadEngine.h (startup): New variable.
  171. (startupLength): New variable.
  172. (isStartupLengthSet): New variable.
  173. (avgSpeed): New variable.
  174. (eta): New variable.
  175. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  176. estimated remaining time.
  177. (initStatistics): Initialized newly added variables.
  178. (calculateStatistics): Calculate average speed and estimated remaining
  179. time.
  180. To decouple TorrentDownloadEngine from HttpResponseCommand:
  181. * src/TrackerDownloadCommand.h: Removed.
  182. * src/TrackerDownloadCommand.cc: Removed.
  183. * src/TrackerInitCommand.h: Removed.
  184. * src/TrackerInitCommand.cc: Removed.
  185. * src/TrackerUpdateCommand.h: Removed.
  186. * src/TrackerUpdateCommand.cc: Removed.
  187. * src/TrackerWatcherCommand.cc (execute): The construction of request
  188. url written in TrackerInitCommand was moved here. Do not create
  189. tracker request command if torretnMan->trackers != 0.
  190. * src/CompactTrackerResponseProcessor.h: New class.
  191. * src/CompactTrackerResponseProcessor.cc: New class.
  192. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  193. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  194. Decoupled TorrentDownloadEngine from this.
  195. * src/SegmentMan.h (init): New function.
  196. * src/SegmentMan.cc (init): New function.
  197. * src/TorrentMan.h (responseProcessor): New variable.
  198. (trackers): New variable.
  199. (setTrackerResponseProcessor): New function.
  200. (getTrackerResponseProcessor): New function.
  201. (processTrackerResponse): New function.
  202. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  203. (processTrackerResponse): New function.
  204. * src/main.cc (main): Use ByteArrayDiskWriter and
  205. CompactTrackerResponseProcessor.
  206. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  207. processTrackerResponse().
  208. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  209. readout.
  210. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  211. which indicates download has completed.
  212. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  213. (closeFile): fd >= 0, not fd > 0
  214. * src/main.cc (main): Added short cut for show-files.
  215. Added short cut for torrent-file.
  216. Added new command-line option listen-port.
  217. Updated i18n messages.
  218. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  219. To add LogFactory which creates singleton logger:
  220. * src/LogFactory.h: New class.
  221. * src/LogFactory.cc: New class.
  222. * src/Command.h (logger): New variable.
  223. (Constructor): Use LogFactory.
  224. * src/AbstractCommand.cc: Use Command::logger
  225. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  226. Use LogFactory.
  227. * src/SegmentSplitter.h : Made logger protected.
  228. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  229. * src/SegmentMan.cc (Constructor): Use LogFactory.
  230. * src/DownloadEngine.h : Made logger protected.
  231. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  232. * src/PeerInteractionCommand.cc : Use Command::logger.
  233. * src/HttpResponseCommand.cc : Use Command::logger.
  234. * src/SegmentMan.h : Made logger private.
  235. * src/TorrentMan.h : Made logger private.
  236. * src/TorrentMan.cc : Use LogFactory.
  237. * src/FtpNegotiateCommand.cc : Use Command::logger.
  238. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  239. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  240. Use LogFactory.
  241. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  242. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  243. Use LogFactory.
  244. * src/DownloadCommand.cc : Use Command::logger.
  245. * src/PeerAbstractCommand.cc : Use Command::logger.
  246. * src/PeerListenCommand.cc : Use Command::logger.
  247. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  248. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  249. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  250. * src/TrackerWatcherCommand.cc : Use Command::logger.
  251. * src/TrackerUpdateCommand.cc : Use Command::logger.
  252. * src/TrackerDownloadCommand.cc : Use Command::logger.
  253. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  254. Use LogFactory.
  255. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  256. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  257. Use LogFactory.
  258. * src/main.cc (main): Use LogFactory.
  259. * src/DiskAdaptor.h (logger): New variable.
  260. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  261. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  262. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  263. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  264. parameter to a tracker request.
  265. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  266. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  267. * src/main.cc (setSignalHander): New function.
  268. (main): Added a handler for SIGTERM.
  269. (handler): Updated message.
  270. (torrentHandler): Updated message.
  271. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  272. * src/TorrentConsoleDownloadEngine.cc
  273. (onPartialDownloadingCompletes): Renamed as
  274. onSelectiveDownloadingCompletes.
  275. (onSelectiveDownloadingCompletes): Updated message.
  276. To add DiskAdaptor which abstract DiskWriter family:
  277. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  278. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  279. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  280. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  281. MultiDiskAdaptor.h.
  282. (readFileEntry): Changed its arguments.
  283. (setup): setupDiskWriter is merged into this function.
  284. (setupDiskWriter): Removed.
  285. (setFileFilter): New function.
  286. (readFileEntryFromMetaInfoFile): Updated according to the changes
  287. made in readFileEntry.
  288. (getFilePath): Removed.
  289. (getTempFilePath): Removed.
  290. (getSegmentFilePath): Updated due to the removal of getFilePath.
  291. (fixFilename): Removed.
  292. (copySingleFile): Removed.
  293. (splitMultiFile): Removed.
  294. (deleteTempFile): Removed.
  295. (setFileEntriesToDownload): Removed.
  296. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  297. (isSelectiveDownloadingMode): New function.
  298. (setAllMultiFileRequestedState): Removed.
  299. (finishPartialDownloadingMode): Renamed as
  300. finishSelectiveDownloadingMode.
  301. (finishSelectiveDownloadingMode): New function.
  302. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  303. (getSelectedTotalLength): New function.
  304. (onDownloadComplete): Use diskAdaptor.
  305. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  306. (Range): Removed.
  307. (setMultiFileEntries): Renamed as setFileEntries.
  308. (setFileEntries): New function.
  309. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  310. (pieceLength): New variable.
  311. * src/main.cc (printDownloadCompeleteMessage): New function.
  312. (torrentHandler): Use diskAdaptor instead of diskWriter.
  313. (main): Renamed torrent-show-files to show-files.
  314. Rewritten file contents listing.
  315. * src/TorrentMan.h (FileEntry): Removed.
  316. (multiFileTopDir): Removed.
  317. (multiFileEntries): Removed.
  318. (diskWriter): Removed.
  319. (diskAdaptor): New variable.
  320. * src/DefaultDiskWriter.h (totalLength): New variable.
  321. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  322. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  323. diskWriter.
  324. * src/TorrentConsoleDownloadEngine.h
  325. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  326. (partialTotalLength): Renamed as selectedTotalLength.
  327. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  328. openExistingFile, otherwise call initAndOpenFile.
  329. (closeFile): fd > 0, not fd != 0.
  330. * src/DirectDiskAdaptor.h: New class.
  331. * src/DirectDiskAdaptor.cc: New class.
  332. * src/MultiDiskAdaptor.h: New class.
  333. * src/MultiDiskAdaptor.cc: New class.
  334. * src/CopyDiskAdaptor.h: New class.
  335. * src/CopyDiskAdaptor.cc: New class.
  336. * src/DiskAdaptor.h: New class.
  337. * src/DiskAdaptor.cc: New class.
  338. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  339. (PREF_SHOW_FILES): New definition.
  340. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  341. To add the ability to download multi torrent into respective files
  342. directly:
  343. * src/DiskWriter.h (openFile): New function.
  344. (seek): Removed.
  345. * src/MultiDiskWriter.h: New class.
  346. * src/MultiDiskWriter.cc: New class.
  347. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  348. protected.
  349. (openFile): New function.
  350. * src/AbstractDiskWriter.cc (openFile): New function.
  351. * src/prefs.h (V_FALSE): New definition.
  352. (PREF_DIRECT_FILE_MAPPING): New definition.
  353. * src/TorrentMan.h (setupDiskWriter): New function.
  354. (setAllMultiFileRequestedState): New function.
  355. (onDownloadComplete): New function.
  356. * src/TorrentMan.cc : Included MultiDiskWriter.h
  357. (setupDiskWriter): New function.
  358. (getFilePath): Updated.
  359. (getTempFilePath): Updated.
  360. (getSegmentFilePath): Updated.
  361. (fixFilename): Updated.
  362. (deleteTempFile): Updated.
  363. (setAllMultiFileRequestedState): New function.
  364. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  365. (finishPartialDownloadingMode): Reset requested flags.
  366. (onDownloadComplete): New function.
  367. * src/main.cc: Added --direct-file-mapping option.
  368. Use TorretMan::setupDiskWriter().
  369. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  370. onDownloadComplete().
  371. To fix ETA bug:
  372. * src/Util.h (difftvsec): New function.
  373. * src/Util.cc (difftvsec): New function.
  374. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  375. type of "elapsed" instead of long long int.
  376. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  377. The updates of statistics takes place every 1 seconds.
  378. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  379. (calculateSpeed): Changed its argument signature.
  380. * src/PeerMessage.cc (toString): Fixed message.
  381. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  382. To print ETA:
  383. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  384. completion handling when dealing with
  385. TorrentMan::isPartialDownloadingMode() == true.
  386. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  387. New function.
  388. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  389. (sessionDownloadLength): New variable.
  390. (avgSpeed): New variable.
  391. (eta): New variable.
  392. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  393. new variables: eta, avgSpeed, startup.
  394. (calculateSpeed): Calculate average speed and ETA.
  395. (printStatistics): Added ETA.
  396. * src/Util.h (secfmt): New function.
  397. * src/Util.cc (secfmt): New function.
  398. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  399. To detect "keep alive" flooding:
  400. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  401. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  402. variable: keepAliveCount.
  403. (detectMessageFlooding): Added "keep alive" flooding detection.
  404. (receiveMessage): Increase keepAliveCount when "keep alive" message
  405. received.
  406. To add the ability to download only specified files in multi-file
  407. torrent:
  408. * src/BitfieldMan.h (filterBitfield): New variable.
  409. (filterEnabled): New variable.
  410. (setFilterBit): New function.
  411. (enableFilter): New function.
  412. (disableFilter): New function.
  413. (isFilterEnabled): New function.
  414. (getFilteredTotalLength): New function.
  415. (getCompletedLength): New function.
  416. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  417. filterBitfield, filterEnabled.
  418. (CopyConstructor): Added filterBitfield and filterEnabled.
  419. (operator==): Added filterBitfield and filterEnabled.
  420. (Destructor): Added filterBitfield.
  421. (getMissingIndex): Use filterBitfield.
  422. (getMissingUnusedIndex): Use filterBitfield.
  423. (getFirstMissingUnusedIndex): Use filterBitfield.
  424. (getFirstMissingUnusedIndex): Use filterBitfield.
  425. (getAllMissingIndexes): Use filterBitfield.
  426. (countMissingBlock): Use filterBitfield.
  427. (countBlock): Use filterBitfield.
  428. (setBitInternal): Added new argument on.
  429. (setUseBit): Use setBitInternal.
  430. (unsetUseBit): Use setBitInternal.
  431. (setBit): Use setBitInternal.
  432. (unsetBit): Use setBitInternal.
  433. (isAllBitSet): Use filterBitfield.
  434. (setFilterBit): New function.
  435. (addFilter): New function.
  436. (enableFilter): New function.
  437. (disableFilter): New function.
  438. (clearFilter): New function.
  439. (isFilterEnabled): New function.
  440. (getFilteredTotalLength): New function.
  441. (getCompletedLength): New function.
  442. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  443. Initalized newly added variables.
  444. [FileEntry](offset): New variable.
  445. [FileEntry](extracted): New variable.
  446. [FileEntry](requested): New variable.
  447. (readFileEntry): New function.
  448. (option): New variable.
  449. (splitMultiFile): Removed const qualifier.
  450. (fixFilename): Removed const qualifier.
  451. (readFileEntryFromMetaInfoFile): New function.
  452. (finishPartialDownloadingMode): New function.
  453. (isPartialDownloadingMode): New function.
  454. (setFileEntriesToDownload): New function.
  455. (getCompletedLength): New function.
  456. (getPartialTotalLength): New function.
  457. * src/TorrentMan.cc (readFileEntry): New function.
  458. (setup): Use readFileEntry. If no-preallocation option is specified,
  459. use DefaultDiskWriter.
  460. (readFileEntryFromMetaInfoFile): New function.
  461. (fixFilename): Removed const qualifier.
  462. (splitMultiFile): Removed const qualifier.
  463. (setFileEntriesToDownload): New function.
  464. (isPartialDownloadingMode): New function.
  465. (finishPartialDownloadingMode): New function.
  466. (getCompletedLength): New function.
  467. (getPartialTotalLength): New function.
  468. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  469. New variable.
  470. (partialTotalLength): New variable.
  471. (downloadLength): New variable.
  472. (totalLength): New variable.
  473. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  474. Added log.
  475. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  476. partialTotalLength, downloadLength, totalLength.
  477. (calculate): Calculate downloadLength and totalLength.
  478. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  479. * src/main.cc (addCommand): Changed argument signature.
  480. (main): Added new variable: args. Added new option "torrent-show-files"
  481. "no-preallocation". Usage is not updated yet.
  482. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  483. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  484. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  485. Attempt to add the ability to listing file entries in a .torrent file.
  486. This feature is not yet complete.
  487. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  488. * src/TorrentMan.cc (getMultiFileEntries): New function.
  489. (getName): New function.
  490. * src/TorrentMan.h (getMultiFileEntries): New function.
  491. (getName): New function.
  492. * src/main.cc (main): Use above 2 funtion.
  493. * Release 0.3.2
  494. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  495. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  496. (detectMessageFlooding): Updated threshold value.
  497. (checkLongTimePeerChoking): Updated timeout value.
  498. (getNewPieceAndSendInterest): Added debug log.
  499. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  500. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  501. (getPeer): Updated.
  502. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  503. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  504. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  505. is localhost.
  506. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  507. * src/PendingMessage.cc (processMessage): Not to send piece message
  508. if peer is not interested in the pieces localhost has.
  509. * src/Peer.cc (shouldChoke): Updated.
  510. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  511. * src/Util.cc (isPowerOf): New function.
  512. * src/Util.h (isPowerOf): New function.
  513. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  514. whether or not it is power of 2.
  515. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  516. Added new class SendMessageQueue that includes PendingMessages and
  517. RequestSlotMan.
  518. * src/SendMessageQueue.h: New class.
  519. * src/SendMessageQueue.cc: New class.
  520. * src/PendingMessage.h: Added new member variable blockIndex and its
  521. accessors.
  522. (createRequestMessage): Updated.
  523. * src/PendingMessage.cc (createRequestMessage): Updated.
  524. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  525. SendMessageQueue.
  526. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  527. (receiveMessage): Updated with SendMessageQueue.
  528. (deletePendingPieceMessage): Removed.
  529. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  530. (sendInterest): Updated with SendMessageQueue.
  531. (createRequestPendingMessage): Updated with SendMessageQueue.
  532. (sendMessages): Updated with SendMessageQueue.
  533. (onAbort): Updated with SendMessageQueue.
  534. (keepAlive): Updated with SendMessageQueue.
  535. (beforeSocketCheck): Updated SendMessageQueue.
  536. * src/PeerInteractionCommand (sendMessages): Shuffle
  537. missingBLockIndexes before using it.
  538. Added its own timeout for peer connection.
  539. * src/PeerAbstractCommand.h: Added member variable timeout and its
  540. setter.
  541. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  542. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  543. Added setTimeout() call.
  544. (executeInternal): Added setTimeout() call.
  545. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  546. Added timeout.
  547. (isTimeoutDetected): Updated.
  548. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  549. option.
  550. Added *simple* message flooding checker.
  551. * src/PeerInteractionCommand.cc (executeInternal):
  552. Added detectMessageFlooding() call.
  553. (detectMessageFlooding): New function.
  554. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  555. (beforeSocketCheck): Added detectMessageFlooding() call.
  556. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  557. chokeUnchokeCount, haveCount, detectMessageFlooding().
  558. Removed deletePendingPieceMessage(), getRequestSlot(),
  559. deleteRequestSlot(), deleteAllRequestSlot().
  560. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  561. Added checkLongTimePeerChoking() call.
  562. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  563. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  564. if duplicate == false.
  565. The parameter "uploaded" and "downloaded" in the tracker request are
  566. the size since the client sent the "started" event to the tracker.
  567. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  568. uploaded size to preDownloadedSize, preUploadedSize respectively.
  569. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  570. getSessionDownloadedSize(), getSessionUploadedSize().
  571. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  572. getSessionUploadedSize() instead of getDownloadedSize(),
  573. getUploadedSize().
  574. * src/PendingMessage.cc (processMessage): Do not send request message
  575. if the peer is choking the client.
  576. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  577. less than interval.
  578. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  579. * configure.in: Added gnutls support. Added several CPP macros.
  580. * m4/openssl.m4: Added.
  581. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  582. readData(), peekData(). Added gnutls support.
  583. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  584. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  585. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  586. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  587. Instead, added a check for whether setup method has executed
  588. successfully.
  589. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  590. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  591. * src/Makefile.am: Updated.
  592. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  593. using whether OpenSSL or gcrypt, depending on the result of configure
  594. script.
  595. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  596. messageDigest.h.
  597. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  598. * src/PeerListenCommand.cc: Added log about port binded successfully.
  599. Fixed memory leak.
  600. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  601. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  602. Removed instantiation of TrackerInitCommand. Instead,
  603. TrackerWatcherCommand is instantiated and pushed to the command queue.
  604. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  605. ENABLE_SSL.
  606. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  607. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  608. If a piece is already acquired by another command, delete the request
  609. slots for the piece.
  610. * src/TrackerUpdateCommand.cc (execute):
  611. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  612. Added a check whether peer list is null.
  613. Fixed the bug that causes sending completed event to the tracker
  614. several times.
  615. * src/TrackerInitCommand.cc (execute):
  616. Fixed the bug that causes sending completed event to the tracker
  617. several times.
  618. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  619. by using messageDigest.h.
  620. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  621. * PeerConnection.cc: Replaced log message "keep-alive" with
  622. "keep alive".
  623. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  624. localhost long time.
  625. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  626. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  627. at most 100 failure entry from the list. If with duplicate = false,
  628. MAX_PEER_LIST is not checked.
  629. * PeerListenCommand.cc: Fixed the argument order of log message.
  630. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  631. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  632. Added warn().
  633. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  634. Implemented warn().
  635. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  636. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  637. * Request.h: Added AFTER_COMPLETED event.
  638. * TorrentDownloadEngine.cc: Prints "Download complete" message
  639. instead of downloaded size and progress(%) after download completes.
  640. * PeerInteractionCommand.cc: After download completes, sends unchoke
  641. message to the peer if it is interested in what localhost has
  642. downloaded.
  643. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  644. destination instead of just renaming it.
  645. * TorrentMan.cc: Added deleteTempFile().
  646. * PeerAbstractCommand.cc: do not stop execution after download
  647. completes. This makes localhost a seeder.
  648. * Util.{h,cc}: Added fileCopy().
  649. * PeerListenCommand.cc: do not stop execution after download completes.
  650. This makes localhost a seeder.
  651. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  652. Added TorrentMan::deleteTempFile() to torrentHandler.
  653. Initialized the variable dir as ".".
  654. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  655. Deleted renameSingleFile().
  656. Added copySingleFile(), deleteTempFile().
  657. * DownloadEngine.h: Added virtual function afterEachIteration().
  658. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  659. in onEndOfRun() to afterEachIteration().
  660. In onEndOfRun(), changed if condition to check whether filenameFixed is
  661. true.
  662. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  663. In rangedFileCopy(), added try-catch block to properly close file
  664. descriptors.
  665. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  666. Added afterEachIteration(), isFilenameFixed().
  667. * Peer.cc: Changed choking strategy.
  668. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  669. * TrackerInitCommand.cc: Send completed event only once.
  670. * DownloadEngine.cc: Added a call to afterEachIteration().
  671. * TrackerUpdateCommand.cc: Do not stop execution after download
  672. completes.
  673. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  674. connect the peers at most MAX_PEER_UPDATE when a peer list is
  675. received from a tracker.
  676. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  677. Decreased the number of failure peers to delete to 0(just comment out
  678. the line).
  679. * Release 0.3.1
  680. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  681. * PeerInteractionCommand.cc: added a call to
  682. TorrentMan::unadvertisePiece in Destructor.
  683. * PeerInteractionCommand.cc: make have message sent immediately
  684. if the size of pending message queue is zero.
  685. * TorrentMan.cc: set the maximum size of peer list to 250.
  686. * TorrentMan.h: changed the container type of Peers and UsedPieces
  687. to deque.
  688. * Util.cc: fixed rangedFileCopy.
  689. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  690. to Constructor. Also, moved digest cleanup to Destructor.
  691. * MetaFileUtil.cc: fixed memory leak
  692. * replaced std::vector with std::deque.
  693. * AbstractCommand.cc: casted timeout value to long long int.
  694. * ChunkedEncoding.cc: fixed memory leak.
  695. * PeerInteractionCommand.cc: casted timeout value to long long int.
  696. * SleepCommand.cc: casted timeout value to long long int.
  697. * Data.cc: fixed memory leak.
  698. * Data.cc: fixed toLLInt().
  699. * BitfieldMan.cc: fixed memory leak.
  700. * TorrentMan.cc: initialized storeDir to ".".
  701. * TorrentMan.cc: fixed memory leak.
  702. * TorrentMan.cc: corrected file paths of splitted files.
  703. * PeerAbstractCommand.cc: casted timeout to long long int.
  704. * main.cc: added delete(req) and delete(te->diskWriter).
  705. * RequestSlot.cc: casted timeout value to long long int.
  706. * Request.cc: fixed memory leak.
  707. * PendingMessage.cc: make HAVE messages sent only when peer does not
  708. have the piece.
  709. * Peer.{h,cc}: added hasPiece(int index).
  710. * main.cc: corrected addCommand.
  711. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  712. * BitTorrent protocol support added.
  713. * Release 0.3.0
  714. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  715. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  716. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  717. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  718. decoding did not work properly.
  719. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  720. * DownloadEngine.h: included sys/time.h
  721. * DownloadEngine.cc: remove sys/time.h
  722. * Makefile.am (SUBDIRS): Add intl.
  723. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  724. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  725. * main.cc: correct help message for --http-auth-scheme.
  726. * main.cc: changed e-mail address for bug reports.
  727. * ja.po: added japanese translation.
  728. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  729. * SimpleLogger.cc: flush log file instead of stdout.
  730. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  731. * main.cc: Fixed command-line option: max-tries
  732. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  733. does not equal to seg.sp.
  734. * DownloadCommand.cc: If EOF is got from the server and the total size
  735. of file is not zero, then throw DlRetryEx.
  736. * main.cc: Set the minium value of min-segment-size to 1024.
  737. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  738. fails because of a regression since 0.2.0 release.
  739. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  740. * HttpConnection.cc:
  741. * common.h: defined the user agent name as macro
  742. * DownloadEngine.{h, cc}:
  743. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  744. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  745. * main.cc: Download complete/abort message is now generated by main.
  746. * Makefile.am (SUBDIRS): Add m4.
  747. (ACLOCAL_AMFLAGS): New variable.
  748. (EXTRA_DIST): New variable.
  749. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  750. * gettext: added gettext functionality
  751. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  752. * AbstractCommand.cc:
  753. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  754. unregister its cuid from SegmentMan.
  755. * DownloadEngine.cc: .aria2 file was written when a downloading
  756. failed with errors.
  757. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  758. Added "User-Agent" header to CONNECT proxy request.
  759. Fixed "Proxy-Authorization" header. Now proxy authorization works
  760. properly.
  761. * Logger.h:
  762. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  763. * ChunkedEncoding.cc: Added #include directive for strings.h
  764. * Release 0.2.1
  765. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  766. * Util.{h,cc}: added startsWith().
  767. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  768. Util::endsWith().
  769. * SocketCore.cc: struct addrinfo is now zero-initialized.
  770. * common.h: added #include directive of limit.h.
  771. * DownloadEngine.cc: added #include directive of sys/time.h and
  772. algorithm.
  773. * Exception.h: added #include directive of stdio.h.
  774. * AbstractCommand.h: added #include directive of sys/time.h.
  775. * DownloadCommand.h: added #include directive of sys/time.h.
  776. * *.h: added #include directive of common.h to all base classes.
  777. subclasses' one was removed.
  778. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  779. does not define these macros.
  780. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  781. * Release 0.2.0
  782. * main.cc:
  783. * HttpInitiateConnectionCommand.{h,cc}:
  784. * prefs.h:
  785. * HttpConnection.{h,cc}: added --http-proxy-method option.
  786. We can now use GET command in http proxy.
  787. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  788. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  789. that splits slowest segment of SegmentMan::commands vector.
  790. This is the default split algorithm of aria2.
  791. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  792. that splits first segment of SegmentMan::commands vector.
  793. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  794. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  795. * Segment.h:
  796. * SegmentMan.cc: Added speed field to Segment.h
  797. * main.cc: -s option now affects all URLs in command-line arguemtns.
  798. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  799. * message.h: Change file size related %d to %lld.
  800. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  801. * FtpInitiateConnectionCommand.{h,cc}:
  802. * FtpNegotiationCommand.{h,cc}:
  803. * FtpDownloadCommand.{h,cc}:
  804. * FtpConnection.{h,cc}: Added FTP support
  805. * SimpleLogger.cc: Log message now includes time information.
  806. * main.cc: The value of --http-auth-scheme option is chagned from
  807. 'BASIC' to 'basic'
  808. * main.cc: Added --timeout command-line option.
  809. * main.cc: Added --min-segment-size command-line option.
  810. * main.cc: Added --max-retries command-line option.
  811. * prefs.h: option string constants are now defined in prefs.h
  812. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  813. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  814. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  815. with version 0.1.0's one.
  816. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  817. * configure.in: Added --enable-ssl option to configure script.
  818. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  819. cannot permit absoluteURI as Request-URI.
  820. * HttpConnection.cc: Added Referer support.
  821. * main.cc: Added referer command-line option.
  822. * main.cc: Added rety-wait command-line option.
  823. * Exception.h: Fixed formating bug in Exception::setMsg()
  824. * SocketCore.{h,cc}:
  825. * Socket.{h, cc}:
  826. * Request.cc:
  827. * InitiateConnectionCommandFactory.cc:
  828. * HttpRequestCommand.cc: Added HTTPS support.
  829. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  830. for SocketCore.
  831. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  832. size is wrong
  833. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  834. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  835. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  836. * Release 0.1.0