ChangeLog 38 KB

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