ChangeLog 38 KB

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