ChangeLog 38 KB

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