ChangeLog 402 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351
  1. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Bump up version number of .aria2 control file to 0001.
  3. New aria2 can still load version 0000 file but it saves the file in
  4. version 0001 format. It means that new aria2 can resume download
  5. started by old aria2 but the opposite is not true.
  6. * src/DefaultBtProgressInfoFile.cc
  7. * src/DefaultBtProgressInfoFile.h
  8. * test/DefaultBtProgressInfoFileTest.cc
  9. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10. Added ntoh64 and hton64 as inline functions.
  11. * src/Util.cc
  12. * test/UtilTest.cc
  13. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14. Added sqlite3 depenency and Firefox3 cookie support.
  15. * README
  16. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17. State that firefox3 cookie is supported explicitly in the usage.
  18. * src/usage_text.h
  19. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20. Externalized message.
  21. * src/RequestGroupMan.cc
  22. * src/message.h
  23. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  24. Save temporary file first and rename to the destination on success.
  25. Added test cases.
  26. * src/RequestGroupMan.cc
  27. * test/RequestGroupManTest.cc
  28. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  29. Fixed the bug that the number of connected peer is exceeding the limit
  30. (55 by default) in seeding mode.
  31. Multiplied 0.8 to _maxUploadSpeedLimit.
  32. * src/ActivePeerConnectionCommand.cc
  33. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  34. Clear table item.
  35. * src/Dictionary.cc
  36. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  37. Fixed error handling of lseek.
  38. * src/AbstractDiskWriter.cc
  39. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  40. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  41. style cookie file.
  42. * src/usage_text.h
  43. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  44. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  45. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  46. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  47. * src/Util.cc
  48. * src/Util.h
  49. * src/CookieParser.cc
  50. * test/UtilTest.cc
  51. * test/CookieParserTest.cc
  52. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  53. Separate the implementation to load old mozilla format of cookie to
  54. NsCookieParser class.
  55. * src/CookieBoxFactory.cc
  56. * src/CookieBoxFactory.h
  57. * src/NsCookieParser.cc
  58. * src/NsCookieParser.h
  59. * test/NsCookieParserTest.cc
  60. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  61. Made parse() const
  62. * src/Sqlite3MozCookieParser.cc
  63. * src/Sqlite3MozCookieParser.h
  64. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  65. Added firefox3 cookie support based on the patch submitted by
  66. tizianomueller.
  67. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  68. this functionality.
  69. * configure.ac
  70. * m4/sqlite3.m4
  71. * src/CookieBoxFactory.cc
  72. * src/CookieBoxFactory.h
  73. * src/Makefile.am
  74. * src/Makefile.in
  75. * src/Sqlite3MozCookieParser.cc
  76. * src/Sqlite3MozCookieParser.h
  77. * src/main.cc
  78. * test/CookieBoxFactoryTest.cc
  79. * test/Makefile.am
  80. * test/Makefile.in
  81. * test/Sqlite3MozCookieParserTest.cc
  82. * test/badcookies.sqlite
  83. * test/cookies.sqlite
  84. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  85. Added Danish and Greek translations.
  86. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  87. Great thanks to all translators.
  88. * po/LINGUAS
  89. * po/el.po
  90. * po/da.po
  91. * po/es.po
  92. * po/ca.po
  93. * po/nn.po
  94. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  95. Fixed man page: --follow-bittorrent should be --follow-torrent
  96. * doc/aria2c.1.txt
  97. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  98. Fixed: numCommand is less than the value specified in -C option.
  99. * src/RequestGroup.cc
  100. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  101. Fixed occasional assertion failure in PieceSegment.
  102. Calling PieceStorage::getMissingPiece(size_t) was missing after
  103. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  104. creation of duplicate segments and one of the segment was finished then
  105. assertion failure was caused.
  106. * src/SegmentMan.cc
  107. * test/SegmentManTest.cc
  108. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  109. Added options to load/save the server's performance/status to a file
  110. and the timeout to drop their data.
  111. --server-stat-of=FILE specifies the file to which performance data
  112. is saved.
  113. --server-stat-if=FILE specifies the file to read previously saved
  114. by --server-stat-of option. Might be used with --uri-selector=feedback.
  115. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  116. TIMEOUT is specified in seconds and the default value is 24hours.
  117. * src/MultiUrlRequestInfo.cc
  118. * src/OptionHandlerFactory.cc
  119. * src/RequestGroupMan.cc
  120. * src/RequestGroupMan.h
  121. * src/ServerStatMan.cc
  122. * src/ServerStatMan.h
  123. * src/option_processing.cc
  124. * src/prefs.cc
  125. * src/prefs.h
  126. * test/ServerStatManTest.cc
  127. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  128. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  129. * src/ServerStatMan.cc
  130. * src/ServerStatMan.h
  131. * test/ServerStatManTest.cc
  132. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  133. Implemented ServerStatMan::load(...) function and its test case.
  134. * src/ServerStat.cc
  135. * src/ServerStat.h
  136. * src/ServerStatMan.cc
  137. * test/ServerStatManTest.cc
  138. * test/ServerStatTest.cc
  139. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  140. Use time_t instead of int32_t. Use int64_t where milli second is
  141. expected.
  142. * src/TimeA2.cc
  143. * src/TimeA2.h
  144. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  145. Implemented ServerStatMan::save(...) function and its test case.
  146. * src/ServerStat.cc
  147. * src/ServerStat.h
  148. * src/ServerStatMan.cc
  149. * src/ServerStatMan.h
  150. * test/ServerStatManTest.cc
  151. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  152. Now aria2 uses name attribute in Metalink as local filename in
  153. BitTorrent downloads. BUG#2033999
  154. * src/BtContext.h
  155. * src/BtDependency.cc
  156. * src/DefaultBtContext.cc
  157. * src/DefaultBtContext.h
  158. * src/SingleFileDownloadContext.cc
  159. * src/SingleFileDownloadContext.h
  160. * test/BtDependencyTest.cc
  161. * test/DefaultBtContextTest.cc
  162. * test/MockBtContext.h
  163. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  164. Added AC_C_BIGENDIAN
  165. * src/configure.ac
  166. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  167. Limited numCommand less than or equal to the number of piece.
  168. * src/RequestGroup.cc
  169. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  170. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  171. directive.
  172. * test/DefaultPieceStorageTest.cc
  173. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  174. Fixed memory leak in test code
  175. * test/AnnounceListTest.cc
  176. * test/DefaultPeerListProcessorTest.cc
  177. * test/DefaultPeerStorageTest.cc
  178. * test/MetaFileUtilTest.cc
  179. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  180. Fixed wrong argument passing to BitfieldMan::isBitSet()
  181. * src/DefaultPieceStorage.cc
  182. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  183. Initialized _directIOAllowed
  184. * src/MultiDiskAdaptor.cc
  185. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  186. Fixed memory leak
  187. * src/GZipDecoder.cc
  188. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  189. Fixed memory leak
  190. * src/MetalinkParserStateMachine.cc
  191. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  192. Fixed memory leak
  193. * src/Dictionary.cc
  194. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  195. Fixed memory leak
  196. * src/IteratableChunkChecksumValidator.h
  197. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  198. Fixed unmatched malloc/free.
  199. * src/IteratableChunkChecksumValidator.cc
  200. * src/IteratableChecksumValidator.cc
  201. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  202. Removed max chunk size check. This change fixes BUG#2040169
  203. * src/ChunkedDecoder.cc
  204. * src/ChunkedDecoder.h
  205. * test/ChunkedDecoderTest.cc
  206. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  207. Implemented download speed based URI selection algorithm.
  208. Introduced new option --uri-selector.
  209. If --uri-selector=feedback is given, aria2 uses download speed observed
  210. in the previous downloads and chooses fastest server in the URI list.
  211. Currently at most 10 URIs are considered to introduce randomeness for
  212. finding better servers. The speed is average download speed in the
  213. downloads.
  214. On the other hand, if --uri-selector=inorder is given, which is default,
  215. URI is tried in order in URI list.
  216. The usage text for the new option has not been written yet.
  217. * src/AbstractCommand.cc
  218. * src/DownloadCommand.cc
  219. * src/DownloadEngine.cc
  220. * src/DownloadEngineFactory.cc
  221. * src/InOrderURISelector.cc
  222. * src/InOrderURISelector.h
  223. * src/OptionHandlerFactory.cc
  224. * src/PeerStat.h
  225. * src/RequestGroup.cc
  226. * src/RequestGroup.h
  227. * src/RequestGroupMan.cc
  228. * src/RequestGroupMan.h
  229. * src/SegmentMan.cc
  230. * src/SegmentMan.h
  231. * src/ServerStat.cc
  232. * src/ServerStat.h
  233. * src/ServerStatMan.cc
  234. * src/ServerStatMan.h
  235. * src/ServerStatURISelector.cc
  236. * src/ServerStatURISelector.h
  237. * src/URISelector.h
  238. * src/option_processing.cc
  239. * src/prefs.cc
  240. * src/prefs.h
  241. * test/InOrderURISelectorTest.cc
  242. * test/RequestGroupManTest.cc
  243. * test/ServerStatManTest.cc
  244. * test/ServerStatURISelectorTest.cc
  245. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  246. * Release 0.15.1+2
  247. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  248. Bump up version number to 0.15.1+2
  249. * configure.ac
  250. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  251. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  252. * m4/aria2_arg.m4
  253. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  254. * Release 0.15.1+1
  255. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  256. Bump up version number to 0.15.1+1
  257. * configure.ac
  258. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  259. Fixed the bug that causes segmentaion fault when resuming download
  260. using metalink without size tag. Reproducible only using HTTP URI.
  261. * src/HttpResponseCommand.cc
  262. * src/FtpNegotiationCommand.cc
  263. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  264. * Release 0.15.1
  265. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  266. Updated Bulgarian and French translations, thanks to all translators.
  267. * po/bg.po
  268. * po/fr.po
  269. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  270. Bump up version number to 0.15.1
  271. * configure.ac
  272. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  273. Avoid repeated call of gettimeofday() when calculating speed.
  274. * src/SpeedCalc.cc
  275. * src/SpeedCalc.h
  276. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  277. Removed writable check when socket's send buffer is full in BitTorrent
  278. downloads to lower CPU usage.
  279. * src/PeerInteractionCommand.cc
  280. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  281. Fixed broken gzip inflation.
  282. Turn off segmented downloading if gzip content is smaller than or equal
  283. to 1MiB and inflate the data on the fly, because HTTP response header
  284. doesn't contain the length of inflated file we can't determin where
  285. the chunk of data should be written.
  286. On the other hand, if gzip content is larger than 1MB, then turn off
  287. on the fly inflation, because some servers returns "content-type: gzip"
  288. for *.tgz, *.gz files.
  289. * src/DownloadCommand.cc
  290. * src/HttpResponseCommand.cc
  291. * src/HttpResponseCommand.h
  292. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  293. Applied tizianomueller's patch to fix compile error.
  294. * test/BitfieldManTest.cc
  295. * test/BtRequestMessageTest.cc
  296. * test/DefaultBtContextTest.cc
  297. * test/DefaultDiskWriterTest.cc
  298. * test/DefaultPieceStorageTest.cc
  299. * test/HttpHeaderProcessorTest.cc
  300. * test/HttpResponseTest.cc
  301. * test/Metalink2RequestGroupTest.cc
  302. * test/MetalinkParserControllerTest.cc
  303. * test/MetalinkProcessorTest.cc
  304. * test/PeerSessionResourceTest.cc
  305. * test/UtilTest.cc
  306. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  307. * Release 0.15.0
  308. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  309. Reordered src files in POTFILES.in so that usage text appears first.
  310. * po/POTFILES.in
  311. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  312. Bump up version number to 0.15.0
  313. * configure.ac
  314. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  315. Added Bulgarian translation.
  316. Updated Catalan, Spanish, French and Japanese translations.
  317. Thanks to all translators.
  318. * po/LINGUAS
  319. * po/bg.po
  320. * po/ca.po
  321. * po/es.po
  322. * po/fr.po
  323. * po/ja.po
  324. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  325. Updated feature list. Added libz for dependency section.
  326. Added a description about unit testing using CppUnit.
  327. * README
  328. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  329. Added a test for libz. Quoted where it is necessary.
  330. * build_test.sh
  331. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  332. Added GZip to `Enabled Features' list.
  333. * src/FeatureConfig.cc
  334. * src/FeatureConfig.h
  335. * test/FeatureConfigTest.cc
  336. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  337. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  338. the transfer has not yet started.
  339. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  340. * src/SegmentMan.cc
  341. * src/SegmentMan.h
  342. * test/SegmentManTest.cc
  343. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  344. Cache last calculated average download/upload speed.
  345. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  346. cached value.
  347. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  348. * src/PeerStat.h
  349. * src/SpeedCalc.cc
  350. * src/SpeedCalc.h
  351. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  352. Call parseUrl directly.
  353. * src/Request.cc (resetUrl)
  354. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  355. Supported absolute/relative path in Location header field.
  356. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  357. * src/HttpHeader.cc
  358. * src/HttpHeader.h
  359. * src/HttpResponse.cc
  360. * src/HttpSkipResponseCommand.cc
  361. * src/Request.cc
  362. * test/HttpHeaderTest.cc
  363. * test/HttpResponseTest.cc
  364. * test/RequestTest.cc
  365. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  366. Changed help text for --load-cookie option.
  367. * doc/aria2c.1.txt
  368. * src/usage_text.h
  369. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  370. Regenerated test/Makefile.in to remove stale ChangeLog.
  371. * test/Makefile.in
  372. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  373. Updated po files.
  374. * po/aria2c.pot
  375. * po/*.po
  376. * po/*.gmo
  377. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  378. Bump up version number to 0.15.0b
  379. * configure.ac
  380. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  381. Externalize messages.
  382. * src/RequestGroupMan.cc
  383. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  384. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  385. Use File::exists() instead of File::isFile() to allow non-regular file
  386. such as block special files.
  387. * src/AbstractDiskWriter.cc
  388. * src/MultiDiskWriter.cc
  389. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  390. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  391. * src/gai_strerror.h
  392. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  393. Fixed compile error. Thanks gknauf for the patch.
  394. * src/asctime_r.c
  395. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  396. Included asctime_r.h from a2time.h.
  397. * src/a2time.h
  398. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  399. Added a message "aria2 doesn't verify signature" to log message when
  400. signature file is saved.
  401. * src/RequestGroupMan.cc
  402. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  403. Added the ability to save signature when download is completed if
  404. signature is available. The filename of signature file is the path to
  405. download file followed by ".sig". If it already exists, then signature
  406. will not be saved.
  407. * src/RequestGroupMan.cc
  408. * src/Signature.cc
  409. * test/SignatureTest.cc
  410. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  411. Updated the descriptions for --bt-seed-unverified.
  412. * doc/aria2c.1
  413. * doc/aria2c.1.html
  414. * doc/aria2c.1.txt
  415. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  416. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  417. that this is not going to verify files using piece hashes.
  418. * src/HelpItemFactory.cc
  419. * src/OptionHandlerFactory.cc
  420. * src/RequestGroup.cc
  421. * src/option_processing.cc
  422. * src/prefs.cc
  423. * src/prefs.h
  424. * src/usage_text.h
  425. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  426. Added the ability to retrieve signature from Metalink file.
  427. A retrieved signature is stored in Signature class and it is held by
  428. DownloadContext class. Note that aria2 doesn't verify signature.
  429. * src/DownloadContext.cc
  430. * src/DownloadContext.h
  431. * src/Makefile.am
  432. * src/Makefile.in
  433. * src/Metalink2RequestGroup.cc
  434. * src/MetalinkEntry.cc
  435. * src/MetalinkEntry.h
  436. * src/MetalinkParserController.cc
  437. * src/MetalinkParserController.h
  438. * src/MetalinkParserStateMachine.cc
  439. * src/MetalinkParserStateMachine.h
  440. * src/Signature.cc
  441. * src/Signature.h
  442. * src/SignatureMetalinkParserState.cc
  443. * src/SignatureMetalinkParserState.h
  444. * src/VerificationMetalinkParserState.cc
  445. * src/VerificationMetalinkParserState.h
  446. * test/Metalink2RequestGroupTest.cc
  447. * test/MetalinkParserControllerTest.cc
  448. * test/MetalinkProcessorTest.cc
  449. * test/test.xml
  450. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  451. Close DiskAdaptor after renaming file.
  452. * src/RequestGroup.cc
  453. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  454. Corrected indentation
  455. * src/DefaultBtProgressInfoFile.cc
  456. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  457. Moved the calls of std::ios::exceptions() inside of try-catch block
  458. because if an error occurred in constructor of std::fstream, then
  459. exception is thrown immediately when std::ios::exceptions() is called
  460. which results unhandled exception and aria2c aborts.
  461. * src/DefaultBtProgressInfoFile.cc
  462. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  463. Added the test for the previous change in DefaultBtContext.cc
  464. * test/DefaultBtContextTest.cc
  465. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  466. Fixed the bug that causes infinite loop when the number of pieces are
  467. fewer than allowed fast set size which is 10 by default.
  468. * src/DefaultBtContext.cc
  469. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  470. Updated the descriptions for -j, -s. Added --bt-seed.
  471. * doc/aria2c.1
  472. * doc/aria2c.1.html
  473. * doc/aria2c.1.txt
  474. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  475. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  476. aria2 seeds previously downloaded files without validating piece hashs.
  477. * src/HelpItemFactory.cc
  478. * src/OptionHandlerFactory.cc
  479. * src/RequestGroup.cc
  480. * src/option_processing.cc
  481. * src/prefs.cc
  482. * src/prefs.h
  483. * src/usage_text.h
  484. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  485. Updated DESCRIPTION of man page.
  486. * doc/aria2c.1
  487. * doc/aria2c.1.html
  488. * doc/aria2c.1.txt
  489. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  490. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  491. Don't define `struct addrinfo' when __sun is defined.
  492. * src/getaddrinfo.h
  493. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  494. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  495. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  496. second argument is of type `struct _stati64'. Otherwise it is defined as
  497. `struct stat'.
  498. * src/AbstractDiskWriter.cc
  499. * src/File.cc
  500. * src/File.h
  501. * src/a2io.h
  502. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  503. Fixed the compile error in hurd-i386
  504. See the original bug report:
  505. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  506. * src/a2io.h
  507. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  508. Code cleanup.
  509. * src/PeerAbstractCommand.cc
  510. * src/PeerAbstractCommand.h
  511. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  512. Removed TransferEncoding.
  513. * src/DownloadCommand.cc
  514. * src/DownloadCommand.h
  515. * src/HttpResponseCommand.cc
  516. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  517. Updated po files.
  518. * po/aria2c.pot
  519. * po/*.po
  520. * po/*.gmo
  521. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  522. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  523. * src/A2STR.cc
  524. * src/A2STR.h
  525. * src/ChunkedDecoder.cc
  526. * src/ChunkedDecoder.h
  527. * src/ChunkedEncoding.cc: Removed
  528. * src/ChunkedEncoding.h: Removed
  529. * src/DownloadCommand.cc
  530. * src/DownloadCommand.h
  531. * src/HttpDownloadCommand.cc
  532. * src/HttpResponse.cc
  533. * src/HttpResponse.h
  534. * src/HttpResponseCommand.cc
  535. * src/HttpSkipResponseCommand.cc
  536. * src/HttpSkipResponseCommand.h
  537. * src/Makefile.am
  538. * src/TransferEncoding.h: Removed
  539. * test/ChunkedDecoderTest.cc
  540. * test/ChunkedEncodingTest.cc: Removed
  541. * test/HttpResponseTest.cc
  542. * test/Makefile.am
  543. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  544. Use append instead of insert.
  545. * src/GZipDecoder.cc
  546. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  547. Updated doc
  548. * src/Decoder.h
  549. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  550. Updated usage text for -s option.
  551. * src/usage_text.h
  552. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  553. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  554. * src/Request.cc
  555. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  556. Cleaned up configure.ac.
  557. * configure.ac
  558. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  559. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  560. AC_ARG_ENABLE.
  561. * configure.ac
  562. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  563. Added gzip, deflate decoding support in HTTP using libz. If compiled
  564. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  565. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  566. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  567. fly and writes decoded data to a local disk.
  568. * README
  569. * README.html
  570. * configure.ac
  571. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  572. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  573. * m4/libz.m4
  574. * src/Decoder.h
  575. * src/DownloadCommand.cc
  576. * src/DownloadCommand.h
  577. * src/Exception.h
  578. * src/GZipDecoder.cc
  579. * src/GZipDecoder.h
  580. * src/HttpHeader.cc
  581. * src/HttpHeader.h
  582. * src/HttpRequest.cc
  583. * src/HttpRequest.h
  584. * src/HttpResponse.cc
  585. * src/HttpResponse.h
  586. * src/HttpResponseCommand.cc
  587. * src/Makefile.am
  588. * test/GZipDecoderTest.cc
  589. * test/HttpRequestTest.cc
  590. * test/HttpResponseTest.cc
  591. * test/Makefile.am
  592. * test/Makefile.in
  593. * test/gzip_decode_test.gz
  594. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  595. Clarified usage of -j option.
  596. * src/usage_text.h
  597. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  598. Disabled getting size from the response of RETR.
  599. If SIZE command failed, then disable resuming and segmented downloading.
  600. * src/FtpConnection.cc
  601. * src/FtpConnection.h
  602. * src/FtpNegotiationCommand.cc
  603. * src/FtpNegotiationCommand.h
  604. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  605. Use digits to find first byte of file size, which makes the intention
  606. of the code clearer.
  607. * src/FtpConnection.cc
  608. Don't call validateTotalLength() when size is 0.
  609. * src/FtpNegotiationCommand.cc
  610. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  611. Updated po files.
  612. * po/aria2c.pot
  613. * po/*.gmo
  614. * po/*.po
  615. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  616. Clarified usage text for --split option.
  617. * src/usage_text.h
  618. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  619. Bump up version number to 0.15.0dev. "dev" means "development"
  620. version, which means I started the development of the next release!
  621. * src/configure.ac
  622. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  623. If FTP server returns negative response with REST raw command and
  624. requested range is not 0, throw exception. If requested range is 0,
  625. continue download a file from 0 byte.
  626. * src/FtpNegotiationCommand.cc
  627. * src/FtpNegotiationCommand.h
  628. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  629. Supported FTP server which don't recognize SIZE raw command.
  630. If SIZE raw command is failed, aria2 will try to get file size
  631. from the response of RETR raw command. If both attempts are failed,
  632. then resuming and segmented downloading are disabled.
  633. * src/FtpConnection.cc
  634. * src/FtpConnection.h
  635. * src/FtpNegotiationCommand.cc
  636. * src/FtpNegotiationCommand.h
  637. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  638. * Release 0.14.0+1
  639. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  640. Bump up version number to 0.14.0+1
  641. * src/configure.ac
  642. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  643. Fixed the code that refers static member variable from non-static
  644. context.
  645. * src/DefaultPeerStorage.cc
  646. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  647. * Release 0.14.0
  648. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  649. Added build test script
  650. * build_test.sh
  651. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  652. Updated ja.po
  653. * src/ja.po
  654. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  655. Bump up version number to 0.14.0
  656. * src/configure.ac
  657. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  658. Updated ja.po and fr.po. Great thanks for french translators and
  659. Sebastien WILLEMIJNS.
  660. * po/fr.po
  661. * po/ja.po
  662. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  663. Added configure option to enable/disable epoll support.
  664. * configure.ac
  665. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  666. Updated man page.
  667. * doc/aria2c.1.txt
  668. * doc/aria2c.1
  669. * doc/aria2c.1.html
  670. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  671. Added missing default value '5' to the usage of --split option.
  672. * src/HelpItemFactory.cc
  673. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  674. Filled up pieces based on the number of missing blocks, rather than
  675. simplay the number of piece * block length.
  676. * src/BtRequestFactory.h
  677. * src/DefaultBtInteractive.cc
  678. * src/DefaultBtInteractive.h
  679. * src/DefaultBtRequestFactory.cc
  680. * src/DefaultBtRequestFactory.h
  681. * src/Piece.cc
  682. * src/Piece.h
  683. * test/BitfieldManTest.cc
  684. * test/DefaultBtRequestFactoryTest.cc
  685. * test/MockBtRequestFactory.h
  686. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  687. Made _epEvents a member variable.
  688. * src/DownloadEngine.cc
  689. * src/DownloadEngine.h
  690. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  691. Cancel download if http redirect is bounded more than 20 times.
  692. * src/AbstractCommand.cc
  693. * src/HttpSkipResponseCommand.cc
  694. * src/Request.cc
  695. * src/Request.h
  696. * test/RequestTest.cc
  697. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  698. Fixed unhandled exception(removed keyword `new').
  699. * src/SocketCore.cc (initEPOLL)
  700. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  701. Removed visit(const MetaEntry*)
  702. * src/MetaEntryVisitor.h:
  703. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  704. and made them virtual.
  705. * src/BencodeVisitor.h
  706. * src/BencodeVisitor.cc
  707. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  708. Updated po files.
  709. * po/aria2c.pot
  710. * po/*.po
  711. * po/*.gmo
  712. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  713. Moved the call setWriteCheckSocket inside the previous clause to reduce
  714. the number of socket to watch out.
  715. * src/PeerInteractionCommand.cc
  716. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  717. When there is not enough space in disk when writing a chunk of data,
  718. aria2 now prints the message to the console to warn user and aborts
  719. its download. Not all downloads are canceled because some downloads
  720. may use another disk or partition. BUG#1640332
  721. * src/AbstractDiskWriter.cc
  722. * src/PeerAbstractCommand.cc
  723. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  724. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  725. setHaltRequested(true) to cancel download.
  726. * src/PeerInteractionCommand.h
  727. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  728. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  729. socket from int to sock_t as sockets are unsigned in Windows.
  730. For AsyncNameResolver, DownloadEngine, I did additional modification
  731. for the portion of the code changed according to epoll support.
  732. I defined sock_t in a2netcompat.h to use sock_t without including
  733. SocketCore.h.
  734. * src/AsyncNameResolver.cc
  735. * src/AsyncNameResolver.h
  736. * src/DownloadEngine.cc
  737. * src/DownloadEngine.h
  738. * src/SocketCore.cc
  739. * src/SocketCore.h
  740. * src/a2netcompat.h
  741. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  742. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  743. changes in the patch were applied.
  744. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  745. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  746. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  747. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  748. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  749. a2io.h and common.h were modified.
  750. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  751. MinGW.
  752. * src/common.h: Changed off_t to 64 bit in MinGW.
  753. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  754. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  755. only a2netcompat.h is modified.
  756. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  757. directives.
  758. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  759. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  760. only gai_strerror.h is modified.
  761. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  762. winsock errors in MinGW.
  763. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  764. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  765. follow sources are applied.
  766. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  767. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  768. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  769. I included locale.h from Platform.cc.
  770. * src/main.cc: Moved common setup/teardown code to Platform class.
  771. * test/AllTest.cc: Use Platform class.
  772. Set locale to C in AllTest.cc to prevent the messages to be localized.
  773. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  774. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  775. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  776. * test/HttpRequestTest.cc: Casted to off_t where it should.
  777. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  778. Applied Ross's aria2-0.13.2+1-mingw.patch and
  779. aria2-0.13.2+1-mingw-2.patch.
  780. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  781. systems which don't have termious.h. I moved the directive inside of
  782. if(isTTY) { ... clause so that line is wiped out without termious.h.
  783. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  784. anyway.
  785. * src/asctime_r.h
  786. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  787. I added 2nd argument to the prototype declaration.
  788. * src/StringFormat.cc: Get rid of vasprintf.
  789. * src/getaddrinfo.h: Fixed constants.
  790. * configure.ac: Added the check for asctime_r function.
  791. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  792. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  793. Added writable test for Socket when the sending message is in progress.
  794. Usually the sending message is piece message. Without wriable check,
  795. upload latency is dropped to more than 1sec.
  796. * src/PeerInteractionCommand.cc
  797. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  798. Create only requested files and files which shares a piece with
  799. requested file in multi-torrent downloads. Directory structures are
  800. also created in the same rule.
  801. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  802. DiskWriterEntry as in the previous implementation.
  803. * src/MultiDiskWriter.cc
  804. * src/MultiFileAllocationIterator.cc
  805. * src/MultiFileAllocationIterator.h
  806. * test/MultiFileAllocationIteratorTest.cc
  807. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  808. Commented out -lprofiler
  809. * src/Makefile.am
  810. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  811. Bump up version number to 0.14.0b.
  812. * src/configure.ac
  813. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  814. Actively establish connection to peers in seeding, when peer cache
  815. is not full and max upload speed limit is not reached.
  816. * src/ActivePeerConnectionCommand.cc
  817. * src/ActivePeerConnectionCommand.h
  818. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  819. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  820. to make room more fleshy, recently found peers.
  821. Peer::_badConditionStartTime is not used anymore. Consider to remove
  822. it.
  823. * src/DefaultPeerStorage.cc
  824. * test/DefaultPeerStorageTest.cc
  825. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  826. Returns cached data only when the previous receiveHandshake() is called
  827. with peek = true.
  828. * src/PeerConnection.cc (receiveHandshake)
  829. * src/PeerConnection.h (receiveHandshake)
  830. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  831. Changed default value of -s option from 1 to 5.
  832. Also max value of -s option is changed from 5 to 16.
  833. * src/HelpItemFactory.cc
  834. * src/OptionHandlerFactory.cc
  835. * src/option_processing.cc
  836. * src/usage_text.h
  837. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  838. Changed -s options behavior. Now it means the number of connections
  839. made simultaneously in each http/ftp download.
  840. If 1 URL is specified, the behavior is the same with old implementation.
  841. If -s N is given and more than N URLs are specified, first N URLs are
  842. used and remaining URLs are used for backup. If less than N URLs are
  843. specified, some of URLs are used more than once so that totally N
  844. connections are made simultaneously.
  845. * src/main.cc
  846. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  847. Included missing iosfwd or ostream header.
  848. * src/RequestGroupMan.cc
  849. * src/TaggedItem.cc
  850. * src/TaggedItem.h
  851. * src/Util.cc
  852. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  853. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  854. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  855. * src/HttpConnection.cc: Included missing sstream.
  856. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  857. Added --bt-max-open-files option.
  858. * src/DefaultPieceStorage.cc
  859. * src/HelpItemFactory.cc
  860. * src/MultiDiskAdaptor.cc
  861. * src/MultiDiskAdaptor.h
  862. * src/OptionHandlerFactory.cc
  863. * src/option_processing.cc
  864. * src/prefs.cc
  865. * src/prefs.h
  866. * src/usage_text.h
  867. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  868. Fixed the bug that aria2 aborts when a path to a directory is given
  869. in command-line.
  870. * src/ProtocolDetector.cc
  871. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  872. Limited the number files opened in each BitTorrent download. The default
  873. value is 100. The option to change this value will be added.
  874. * src/MultiDiskAdaptor.cc
  875. * src/MultiDiskAdaptor.h
  876. * src/MultiFileAllocationIterator.cc
  877. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  878. Fixed the bug that HTTP downloads don't start with old libraries.
  879. * src/HttpHeaderProcessor.cc
  880. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  881. Use empty() instead of size() > 0.
  882. * src/HttpConnection.cc
  883. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  884. Drop connection if the incoming peer ID is the same with localhost's
  885. one. The previous implementation drops connection when incoming peer's
  886. IP address is the same with localhost's one.
  887. * src/PeerListenCommand.cc
  888. * src/DefaultBtInteractive.cc
  889. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  890. Returns cached data without checking whether socket is readable
  891. if the cache is available.
  892. * src/PeerConnection.cc (receiveHandshake)
  893. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  894. Included stdint.h
  895. * src/common.h
  896. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  897. Removed duplicate HAVE_GETTIMEOFDAY
  898. * src/Makefile.am
  899. * src/Makefile.in
  900. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  901. Use interval as a minInterval when minInterval is not supplied.
  902. * src/DefaultBtAnnounce.cc
  903. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  904. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  905. attempt is failed, then 2nd attempt get kicked out more quickly.
  906. And it is now static const member of DefaultBtAnnounce.
  907. * src/DefaultBtAnnounce.h
  908. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  909. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  910. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  911. * src/ActivePeerConnectionCommand.cc
  912. * src/BtConstants.h
  913. * src/BtRuntime.h
  914. * src/DHTGetPeersCommand.cc
  915. * src/DefaultBtAnnounce.cc
  916. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  917. BtRuntime::MAX_PEERS.
  918. * src/DefaultPeerStorage.h
  919. * src/InitiatorMSEHandshakeCommand.cc
  920. * src/PeerInitiateConnectionCommand.cc
  921. * src/PeerInteractionCommand.cc
  922. * src/PeerReceiveHandshakeCommand.cc
  923. * src/TrackerWatcherCommand.cc
  924. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  925. Always Connect to _numNewConnection
  926. * src/ActivePeerConnectionCommand.cc
  927. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Made `begin' unsigned int.
  929. * src/GrowSegment.h
  930. * src/Piece.cc
  931. * src/Piece.h
  932. * src/PiecedSegment.cc
  933. * src/PiecedSegment.h
  934. * src/Segment.h
  935. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  936. Calculate piece hash when data is arrived if the data is arrived in
  937. order. This removes additional read operation for hash calculation.
  938. If the data is arrived in out of order, the hash is calucated when the
  939. piece is completed. This is the same behavior as the old implementation.
  940. * src/BtPieceMessage.cc
  941. * src/DefaultBtProgressInfoFile.cc
  942. * src/DefaultPieceStorage.cc
  943. * src/DownloadCommand.cc
  944. * src/DownloadCommand.h
  945. * src/DownloadEngine.cc
  946. * src/GrowSegment.cc
  947. * src/GrowSegment.h
  948. * src/Piece.cc
  949. * src/Piece.h
  950. * src/PiecedSegment.cc
  951. * src/PiecedSegment.h
  952. * src/Segment.h
  953. * test/PieceTest.cc
  954. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  955. Try to keep the ordering of outgoing piece message.
  956. * src/DefaultBtMessageDispatcher.cc
  957. (DefaultBtMessageDispatcher::sendMessages)
  958. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  959. Fixed busy loop when error/hup epoll events occur.
  960. * src/AbstractCommand.cc
  961. * src/PeerAbstractCommand.cc
  962. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  963. Added --bt-request-peer-speed-limit option, which was a constant
  964. SLOW_SPEED_THRESHOLD.
  965. * src/ActivePeerConnectionCommand.cc
  966. * src/ActivePeerConnectionCommand.h
  967. * src/BtConstants.h
  968. * src/HelpItemFactory.cc
  969. * src/OptionHandlerFactory.cc
  970. * src/PeerReceiveHandshakeCommand.cc
  971. * src/option_processing.cc
  972. * src/prefs.cc
  973. * src/prefs.h
  974. * src/usage_text.h
  975. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  976. Removed repeated call of getTopDirPath(). Instead, call it once and
  977. cache the result.
  978. * src/MultiDiskAdaptor.cc
  979. * src/MultiDiskAdaptor.h
  980. (mkdir, openFile, initAndOpenFile, openExistingFile)
  981. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  982. Fixed compile error on debian etch.
  983. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  984. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  985. it is undefined.
  986. * src/Util.cc (ULLONG_MAX)
  987. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  988. Added epoll support. Use epoll if it is available. If not, use select.
  989. When async dns is enabled in compile time, epoll support is enabled
  990. only when aria2 is built with c-ares. This condition statement is
  991. defined in a2io.h.
  992. Currently aria2 supports both c-ares and ares, but ares is maintained
  993. for quite a while and debian already has c-ares package, ares support
  994. will be dropped in the future version.
  995. * configure.ac
  996. * src/AbstractCommand.cc
  997. * src/AsyncNameResolver.cc
  998. * src/AsyncNameResolver.h
  999. * src/Command.cc
  1000. * src/Command.h
  1001. * src/DownloadEngine.cc
  1002. * src/DownloadEngine.h
  1003. * src/PeerAbstractCommand.cc
  1004. * src/SocketCore.cc
  1005. * src/SocketCore.h
  1006. * src/a2io.h
  1007. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1008. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  1009. directive.
  1010. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1011. Do not do write operation to /dev/null file.
  1012. * src/LogFactory.cc
  1013. * src/SimpleLogger.cc
  1014. Replaced vasprintf with vsnprintf
  1015. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1016. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1017. * src/BtRequestMessage.cc
  1018. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  1019. for segmentation fault caused by previous commit.
  1020. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1021. Reduced the usage of gettimeofday().
  1022. * src/DefaultBtMessageDispatcher.cc
  1023. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  1024. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1025. * src/RequestSlot.cc
  1026. * src/RequestSlot.h
  1027. (RequestSlot::isTimeout)
  1028. Made RequestSlot have a reference to Piece object to avoid find
  1029. Piece repeatedly.
  1030. * src/DefaultBtMessageDispatcher.cc
  1031. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1032. * src/RequestSlot.cc
  1033. * src/RequestSlot.h
  1034. (RequestSlot::getPiece)
  1035. * test/DefaultBtMessageDispatcherTest.cc
  1036. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1037. * src/TimeA2.cc
  1038. * src/TimeA2.h
  1039. (Time::difference): New function.
  1040. (Time::elapsed): Done optimization.
  1041. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1042. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  1043. directive.
  1044. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1045. * src/option_processing.cc: Added missing `defined' keyword to #if
  1046. directive.
  1047. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1048. Bump up version number to 0.13.2+1
  1049. * src/configure.ac
  1050. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1051. Refactored broken outstanding piece handling.
  1052. * src/DefaultPieceStorage.cc
  1053. * src/DefaultPieceStorage.h
  1054. * src/Piece.cc
  1055. * src/Piece.h
  1056. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1057. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  1058. name collision of static variable and predefined macro.
  1059. * src/BtContext.cc
  1060. * src/BtContext.h
  1061. * src/CookieBoxFactory.cc
  1062. * src/CookieBoxFactory.h
  1063. * src/CookieParser.cc
  1064. * src/CookieParser.h
  1065. * src/DefaultBtContext.cc
  1066. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1067. * src/RequestGroup.cc
  1068. (RequestGroup::createInitialCommand): Use empty() instead of size().
  1069. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1070. * Release 0.13.2
  1071. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1072. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  1073. * po/fr.po
  1074. * po/ja.po
  1075. * po/aria2c.pot
  1076. * po/*.po
  1077. * po/*.gmo
  1078. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1079. Bump up version number to 0.13.2
  1080. * src/configure.ac
  1081. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1082. Refactord.
  1083. * src/RequestGroupMan.cc
  1084. (removeStoppedGroup)
  1085. (fillRequestGroupFromReserver)
  1086. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1087. Fixed compile error on Ubuntu.
  1088. * src/BtPieceMessage.cc
  1089. * src/MessageDigestHelper.cc
  1090. * src/Util.cc
  1091. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1092. Fixed compile error when configured with --disable-bittorrent
  1093. * test/DownloadHandlerFactoryTest.cc
  1094. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1095. Done make update-po
  1096. * po/aria2c.pot
  1097. * po/*.po
  1098. * po/*.gmo
  1099. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1100. Bump up version number to 0.13.2rc.
  1101. * src/configure.ac
  1102. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1103. Made option name bold. Updated SYNOPSIS to make it more readable.
  1104. * doc/aria2c.1.txt
  1105. * doc/aria2c.1
  1106. * doc/aria2c.1.html
  1107. * src/version_usage.cc
  1108. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1109. Refactored. Use std::string instead of size and char*.
  1110. * Data.cc
  1111. * Data.h
  1112. * test/Data.cc
  1113. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1114. Added trimSelf(). Rewritten trim() to use trimSelf().
  1115. * Util.cc
  1116. * Util.h
  1117. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1118. * src/ChunkChecksum.h (getChecksum): Return const reference.
  1119. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1120. Fixed compile error when configured with --disable-metalink.
  1121. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  1122. * test/FeatureConfigTest.cc
  1123. * test/DownloadHandlerFactoryTest.cc
  1124. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1125. Fixed compile error when configured with --without-gnutls
  1126. --without-openssl
  1127. * src/main.cc
  1128. * test/DefaultBtProgressInfoFileTest.cc
  1129. * test/SegmentManTest.cc
  1130. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1131. Fixed compile error with OpenSSL.
  1132. * src/IteratableChunkChecksumValidator.cc
  1133. * src/LibsslDHKeyExchange.h
  1134. * src/MessageDigestHelper.cc
  1135. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1136. Revert the default value of --max-concurrent-downloads to 5.
  1137. Revert the default value of --metalink-servers to 5.
  1138. Man pages was also updated.
  1139. * src/option_processing.cc
  1140. * doc/aria2c.1.txt
  1141. * doc/aria2c.1.html
  1142. * doc/aria2c.1
  1143. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1144. Returns const reference:
  1145. DownloadContext::getPieceHash, DownloadContext::getName,
  1146. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  1147. BtContext::getInfoHashAsString,
  1148. * src/BtContext.h
  1149. * src/DefaultBtContext.cc
  1150. * src/DefaultBtContext.h
  1151. * src/DownloadContext.h
  1152. * src/SingleFileDownloadContext.h
  1153. * test/MockBtContext.h
  1154. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1155. * src/RequestGroup.h (getDir): Removed.
  1156. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1157. Returns const reference. The internal urlencode function was optimized
  1158. a little bit.
  1159. * src/Request.cc
  1160. * src/Request.h
  1161. * src/HttpRequest.cc
  1162. * src/HttpRequest.h
  1163. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1164. Defined option name and possible values as std::string to reduce
  1165. temporary string object creation in runtime.
  1166. * src/HelpItemFactory.cc
  1167. * src/LogFactory.cc
  1168. * src/Option.cc
  1169. * src/OptionHandlerFactory.cc
  1170. * src/option_processing.cc
  1171. * src/prefs.cc
  1172. * src/prefs.h
  1173. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1174. Return const reference.
  1175. * src/DownloadHandlerConstants.cc
  1176. * src/DownloadHandlerConstants.h
  1177. (getMetalinkExtensions)
  1178. (getMetalinkContentTypes)
  1179. (getBtExtensions)
  1180. (getBtContentTypes)
  1181. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1182. * src/HttpHeader.cc (get): Rewritten.
  1183. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1184. Make HttpHeader::getFirst(...) return const reference.
  1185. * src/HttpHeader.cc
  1186. * src/HttpHeader.h
  1187. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1188. Use Option::getAsBool(...) instead of Option::get(...) and compare
  1189. it with V_TRUE.
  1190. * src/DefaultPieceStorage.cc
  1191. * src/DownloadCommand.cc
  1192. * src/FtpNegotiationCommand.cc
  1193. * src/HttpRequest.cc
  1194. * src/InitiateConnectionCommand.cc
  1195. * src/RequestGroup.cc
  1196. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1197. Made Option::get(...) return const reference of std::string.
  1198. * src/Option.cc
  1199. * src/Option.h
  1200. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1201. Replaced std:copy with insert.
  1202. * src/DefaultBtMessageDispatcher.cc
  1203. * src/DefaultPieceStorage.cc
  1204. * src/DownloadEngineFactory.cc
  1205. * src/RequestGroup.cc
  1206. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1207. Included SocketCore.h to fix compiler warning.
  1208. * src/InitiateConnectionCommand.cc
  1209. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1210. Put piece selection strategy algorithm to RarestPieceSelector class,
  1211. Added a switch to choose whether randomized selection so that unit
  1212. tests emit same results in, possibly, win32.
  1213. * src/DefaultPieceStorage.cc
  1214. * src/DefaultPieceStorage.h
  1215. * src/RarestPieceSelector.cc
  1216. * src/RarestPieceSelector.h
  1217. * test/DefaultPieceStorageTest.cc
  1218. * test/RarestPieceSelectorTest.cc
  1219. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1220. Don't pool connection if HTTP proxy is enabled.
  1221. * src/FtpFinishDownloadCommand.cc
  1222. * src/FtpNegotiationCommand.cc
  1223. * src/HttpSkipResponseCommand.cc
  1224. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1225. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  1226. * src/AbstractCommand.cc
  1227. * src/AbstractCommand.h
  1228. * src/ActivePeerConnectionCommand.cc
  1229. * src/FtpInitiateConnectionCommand.cc
  1230. * src/HttpInitiateConnectionCommand.cc
  1231. * src/InitiateConnectionCommandFactory.cc
  1232. * src/PeerAbstractCommand.cc
  1233. * src/PeerAbstractCommand.h
  1234. * src/PeerInitiateConnectionCommand.cc
  1235. * src/TrackerWatcherCommand.cc
  1236. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1237. Sort RequestSlot in ascending order and manipulate them using
  1238. lower_bound.
  1239. * src/DefaultBtMessageDispatcher.cc
  1240. * src/DefaultBtMessageDispatcher.h
  1241. (getMessageQueue): Added const qualifier.
  1242. (getRequestSlots): Added const qualifier.
  1243. (sendMessages): Use empty() instead of size().
  1244. (doCancelSendingPieceAction): Use HandleEvent object.
  1245. (doAbortOutstandingRequestAction): Rewritten.
  1246. (doChokedAction): Rewritten.
  1247. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  1248. (isOutstandingRequest): Rewritten.
  1249. (getOutstandingRequest): Rewritten.
  1250. (removeOutstandingRequest): Rewritten.
  1251. (addOutstandingRequest): Rewritten.
  1252. * src/RequestSlot.cc
  1253. * src/RequestSlot.h
  1254. (operator=): Rewritten.
  1255. (operator!=): New function.
  1256. (operator<): New function.
  1257. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1258. * src/DefaultBtRequestFactory.cc
  1259. (doChokedAction): Rewritten.
  1260. (removeCompletedPiece): Rewritten.
  1261. (removeTargetPiece): Rewritten.
  1262. (createRequestMessages): Added the debug log.
  1263. (createRequestMessagesOnEndGame: Added the debug log.
  1264. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1265. Added the debug log message.
  1266. * src/BtPieceMessage.cc (doReceivedAction)
  1267. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1268. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  1269. used lower_bound to process them rather than linear search.
  1270. * src/DHTPeerAnnounceStorage.cc
  1271. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1272. Call subtractPieceStats from ~PeerInteractionCommand only when the
  1273. peer has at least one completed piece.
  1274. * src/Peer.cc
  1275. * src/Peer.h
  1276. * src/PeerInteractionCommand.cc
  1277. * src/PeerSessionResource.cc
  1278. * src/PeerSessionResource.h
  1279. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1280. Removed unnecessary sorting
  1281. * src/DefaultPieceStorage (DefaultPieceStorage)
  1282. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1283. Rewritten the portion of the code that mangaes allowed fast indexes.
  1284. * src/PeerSessionResource.cc
  1285. * src/PeerSessionResource.h
  1286. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1287. Removed the invalid string including '\r' from ru.po and
  1288. did make update-po.
  1289. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1290. Added --log-level and --summary-interval to man page.
  1291. * doc/aria2c.1.txt
  1292. * doc/aria2c.1.html
  1293. * doc/aria2c.1
  1294. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1295. Added --log-level option to specify log level. Log messages under
  1296. the specified level are not output. Default value is `debug'.
  1297. * src/HelpItemFactory.cc
  1298. * src/LogFactory.cc
  1299. * src/LogFactory.h
  1300. * src/Logger.h
  1301. * src/OptionHandlerFactory.cc
  1302. * src/SimpleLogger.cc
  1303. * src/SimpleLogger.h
  1304. * src/main.cc
  1305. * src/option_processing.cc
  1306. * src/prefs.h
  1307. * src/usage_text.h
  1308. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1309. Print download progress summary of all parallel downloads in specified
  1310. interval, default 60 secs. While aria2 could download several files
  1311. in parallel (see -j option), it displayed just first download progress,
  1312. and the other downloads are hidden from the users. This new feature
  1313. prints all downloads currently in-progress to the console so that you
  1314. can check the status of all downloads. The interval can be adjusted
  1315. by --summary-interval option.
  1316. The progress readout is now cut so that all fits in the one line of
  1317. console.
  1318. * src/ConsoleStatCalc.cc
  1319. * src/ConsoleStatCalc.h
  1320. * src/HelpItemFactory.cc
  1321. * src/OptionHandlerFactory.cc
  1322. * src/RequestGroupMan.cc
  1323. * src/RequestGroupMan.h
  1324. * src/main.cc
  1325. * src/option_processing.cc
  1326. * src/prefs.h
  1327. * src/usage_text.h
  1328. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1329. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  1330. * src/DownloadEngine.cc (DownloadEngine)
  1331. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1332. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  1333. defined.
  1334. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  1335. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1336. Use erase+lower_bound+insert instead of sort.
  1337. * src/DefaultPieceStorage.cc (addPieceStats)
  1338. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1339. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  1340. * src/A2STR.cc
  1341. * src/A2STR.h
  1342. * src/OptionParser.cc (parse)
  1343. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1344. Defined fake filename `[tracker.announce]' as static const std::string.
  1345. * src/TrackerWatcherCommand.cc (createRequestGroup)
  1346. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1347. Defined default filename `index.html' as static const std::string
  1348. * src/SingleFileDownloadContext.cc
  1349. * src/SingleFileDownloadContext.h
  1350. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1351. Defined "[MEMORY]" as static const std::string.
  1352. * src/MemoryBufferPreDownloadHandler.cc (execute)
  1353. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1354. Defined control file's version number as static const std::string.
  1355. * src/DefaultBtProgressInfoFile.cc
  1356. * src/DefaultBtProgressInfoFile.h
  1357. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1358. Use Request::METHOD_GET
  1359. * src/RequestGroup.cc (createNextCommandWithAdj)
  1360. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1361. Defined "OK", "ERR", "INPR" as static const std::string
  1362. * src/RequestGroupMan.cc (showDownloadResults)
  1363. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1364. Defined default client used in extended handshake as static const
  1365. std::string
  1366. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  1367. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1368. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  1369. * src/HttpConnection.cc (eraseConfidentialInfo)
  1370. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1371. Defined default ftp user and password as static const std::string
  1372. * src/AuthConfigFactory.cc
  1373. * src/AuthConfigFactory.h
  1374. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1375. Defined strings used in netrc as static const std::string
  1376. * src/Netrc.cc
  1377. * src/Netrc.h
  1378. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1379. Defined HTTP status as static const std::string
  1380. * src/AbstractProxyResponseCommand.cc
  1381. * src/HttpHeader.cc
  1382. * src/HttpHeader.h
  1383. * src/HttpResponse.cc
  1384. * src/HttpResponseCommand.cc
  1385. * src/HttpSkipResponseCommand.cc
  1386. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1387. Defined "\r\n", "A", "I" as static const std::string
  1388. * src/A2STR.cc
  1389. * src/A2STR.h
  1390. * src/FtpConnection.cc
  1391. * src/FtpConnection.h
  1392. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1393. Added COLON_C(".") and used it in Request::parseUrl()
  1394. * src/A2STR.cc
  1395. * src/A2STR.h
  1396. * src/Request.cc (parseUrl)
  1397. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1398. Changed the type of padName from `const std::string&' to `const char*'.
  1399. * src/MSEHandshake.cc (verifyPadLength)
  1400. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1401. Defined "sha1" as static const std::string.
  1402. * src/MetalinkParserController.cc
  1403. * src/MetalinkParserController.h
  1404. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1405. Defined message digest algorithm name as static const std::string
  1406. * src/DHTTokenTracker.cc
  1407. * src/DHTUtil.cc
  1408. * src/DefaultBtContext.cc
  1409. * src/MSEHandshake.cc
  1410. * src/MessageDigestHelper.cc
  1411. * src/Peer.cc
  1412. * src/messageDigest.cc
  1413. * src/messageDigest.h
  1414. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1415. Made string literals used in SAX parser static const std::string.
  1416. * src/FileMetalinkParserState.cc
  1417. * src/FileMetalinkParserState.h
  1418. * src/FilesMetalinkParserState.cc
  1419. * src/FilesMetalinkParserState.h
  1420. * src/InitialMetalinkParserState.cc
  1421. * src/InitialMetalinkParserState.h
  1422. * src/MetalinkMetalinkParserState.cc
  1423. * src/MetalinkMetalinkParserState.h
  1424. * src/PiecesMetalinkParserState.cc
  1425. * src/PiecesMetalinkParserState.h
  1426. * src/ResourcesMetalinkParserState.cc
  1427. * src/ResourcesMetalinkParserState.h
  1428. * src/VerificationMetalinkParserState.cc
  1429. * src/VerificationMetalinkParserState.h
  1430. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1431. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  1432. * src/A2STR.cc
  1433. * src/A2STR.h
  1434. * src/File.cc
  1435. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1436. Defined static const std::string IP("ip"), PORT("port") and use them
  1437. instead of string literals.
  1438. * src/DefaultPeerListProcessor.cc
  1439. * src/DefaultPeerListProcessor.h
  1440. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1441. Made string literals for torrent file processing static const
  1442. std::string.
  1443. * src/BtContext.cc
  1444. * src/BtContext.h
  1445. * src/DefaultBtContext.cc
  1446. * src/DefaultBtContext.h
  1447. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1448. Made string literal for tracker response static const std::string
  1449. * src/BtAnnounce.cc
  1450. * src/BtAnnounce.h
  1451. * src/DefaultBtAnnounce.cc
  1452. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1453. Use DHTMessage::T instead of "t".
  1454. * src/DHTMessageTracker.cc (messageArrived)
  1455. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1456. Made keyName static const. Made trimmed charset static const
  1457. std::string.
  1458. * src/Util.cc (getContentDispositionFilename)
  1459. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1460. Made USER_AGENT const. Made "/" static const std::string.
  1461. * src/A2STR.cc
  1462. * src/A2STR.h
  1463. * src/HttpRequest.cc
  1464. * src/HttpRequest.h
  1465. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1466. Made string listeral to static const std::string:
  1467. "Content-Range", "Content-Length"
  1468. * src/HttpHeader.cc
  1469. * src/HttpHeader.h
  1470. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1471. Made string listeral to static const std::string.
  1472. * src/HttpConnection.cc
  1473. * src/HttpHeader.cc
  1474. * src/HttpHeader.h
  1475. * src/HttpResponse.cc
  1476. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1477. Made string listeral to static const std::string.
  1478. * src/A2STR.cc
  1479. * src/A2STR.h
  1480. * src/SimpleLogger.cc
  1481. * src/SimpleLogger.h
  1482. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1483. Made string literal to static const std::string.
  1484. Rewritten CookieParser::setField.
  1485. * src/A2STR.cc
  1486. * src/A2STR.h
  1487. * src/CookieBoxFactory.cc
  1488. * src/CookieBoxFactory.h
  1489. * src/CookieParser.cc
  1490. * src/CookieParser.h
  1491. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1492. Made string literal to static const std::string
  1493. * src/DHTAbstractMessage.cc
  1494. * src/DHTAnnouncePeerMessage.cc
  1495. * src/DHTAnnouncePeerMessage.h
  1496. * src/DHTAnnouncePeerReplyMessage.cc
  1497. * src/DHTAnnouncePeerReplyMessage.h
  1498. * src/DHTFindNodeMessage.cc
  1499. * src/DHTFindNodeMessage.h
  1500. * src/DHTFindNodeReplyMessage.cc
  1501. * src/DHTFindNodeReplyMessage.h
  1502. * src/DHTGetPeersMessage.cc
  1503. * src/DHTGetPeersMessage.h
  1504. * src/DHTGetPeersReplyMessage.cc
  1505. * src/DHTGetPeersReplyMessage.h
  1506. * src/DHTMessage.cc
  1507. * src/DHTMessage.h
  1508. * src/DHTMessageFactoryImpl.cc
  1509. * src/DHTMessageReceiver.cc
  1510. * src/DHTPingMessage.cc
  1511. * src/DHTPingMessage.h
  1512. * src/DHTPingReplyMessage.cc
  1513. * src/DHTPingReplyMessage.h
  1514. * src/DHTQueryMessage.cc
  1515. * src/DHTQueryMessage.h
  1516. * src/DHTResponseMessage.cc
  1517. * src/DHTResponseMessage.h
  1518. * src/DHTUnknownMessage.cc
  1519. * src/DHTUnknownMessage.h
  1520. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1521. Made string literal to static const std::string
  1522. * src/BtChokeMessage.cc (toString)
  1523. * src/BtHaveAllMessage.cc (toString)
  1524. * src/BtHaveNoneMessage.cc (toString)
  1525. * src/BtInterestedMessage.cc (toString)
  1526. * src/BtNotInterestedMessage.cc (toString)
  1527. * src/BtUnchokeMessage.cc (toString)
  1528. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1529. Replaced "" with static const variable A2STR::NIL.
  1530. Replaced string comparison against "" with std::string::empty().
  1531. Added PROTO_* to Request class and use them as a protocol string
  1532. constant.
  1533. Made "started", "stopped", "completed" static const variable in
  1534. AnnounceList class.
  1535. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1536. Updated translations. Great thanks to translators.
  1537. * po/ca.po
  1538. * po/de.po
  1539. * po/fr.po
  1540. * po/it.po
  1541. * po/ja.po
  1542. * po/ru.po
  1543. * po/zh_CN.po
  1544. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1545. Updated man page; categorized options and fixed typo.
  1546. * doc/aria2c.1.txt
  1547. * doc/aria2c.1.html
  1548. * doc/aria2c.1
  1549. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1550. Removed const ref
  1551. * src/MetalinkEntry.cc (AddProtocolPreference)
  1552. * src/RequestGroup.cc (FindServerHostByHostname)
  1553. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1554. Rewritten Accept-Features handling.
  1555. * src/HttpRequestCommand.cc (createHttpRequest)
  1556. * src/a2functional.h
  1557. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1558. Changed method signature:
  1559. DHTAbstractNodeLookupTask::toEntries
  1560. * src/DHTAbstractNodeLookupTask.cc
  1561. * src/DHTAbstractNodeLookupTask.h
  1562. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1563. Changed method signature:
  1564. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  1565. * src/BtContext.h
  1566. * src/DefaultBtContext.cc
  1567. * src/DefaultBtContext.h
  1568. * src/DefaultBtInteractive.cc
  1569. * test/DefaultBtContextTest.cc
  1570. * test/MockBtContext.h
  1571. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1572. Changed method signature:
  1573. MultiFileAllocationIterator::makeDiskWriterEntries
  1574. * src/MultiFileAllocationIterator.cc
  1575. * src/MultiFileAllocationIterator.h
  1576. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1577. Changed method sinature:
  1578. MetalinkEntry::toFileEntry,
  1579. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  1580. Metalinker::queryEntry
  1581. * src/Metalink2RequestGroup.cc
  1582. * src/MetalinkEntry.cc
  1583. * src/MetalinkEntry.h
  1584. * src/MetalinkHelper.cc
  1585. * src/MetalinkHelper.h
  1586. * src/Metalinker.cc
  1587. * src/Metalinker.h
  1588. * src/main.cc
  1589. * test/MetalinkHelperTest.cc
  1590. * test/MetalinkerTest.cc
  1591. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1592. Changed method sinature:
  1593. RequestGroup::getURIs
  1594. * src/RequestGroup.cc
  1595. * src/RequestGroup.h
  1596. * test/Metalink2RequestGroupTest.cc
  1597. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Changed method signature:
  1599. PeerListProcessor::extractPeer
  1600. * src/CompactPeerListProcessor.cc
  1601. * src/CompactPeerListProcessor.h
  1602. * src/DefaultBtAnnounce.cc
  1603. * src/DefaultPeerListProcessor.cc
  1604. * src/DefaultPeerListProcessor.h
  1605. * src/DelegatingPeerListProcessor.cc
  1606. * src/DelegatingPeerListProcessor.h
  1607. * src/PeerListProcessor.h
  1608. * src/UTPexExtensionMessage.cc
  1609. * test/DefaultPeerListProcessorTest.cc
  1610. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1611. Changed method signature:
  1612. BtRequestFactory::createRequestMessages,
  1613. BtRequestFactory::createRequestMessagesOnEndGame
  1614. * src/BtRequestFactory.h
  1615. * src/DefaultBtInteractive.cc
  1616. * src/DefaultBtRequestFactory.cc
  1617. * src/DefaultBtRequestFactory.h
  1618. * test/DefaultBtRequestFactoryTest.cc
  1619. * test/MockBtRequestFactory.h
  1620. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1621. Changed method signature:
  1622. PieceStorage::getInFlightPieces
  1623. * src/DefaultBtProgressInfoFile.cc
  1624. * src/DefaultPieceStorage.cc
  1625. * src/DefaultPieceStorage.h
  1626. * src/PieceStorage.h
  1627. * src/UnknownLengthPieceStorage.cc
  1628. * src/UnknownLengthPieceStorage.h
  1629. * test/DefaultBtProgressInfoFileTest.cc
  1630. * test/MockPieceStorage.h
  1631. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1632. Changed method signature:
  1633. PostDownloadHandler::getNextRequestGroups
  1634. Metalink2RequestGroup::generate
  1635. RequestGroup::postDownloadProcessing
  1636. * src/BtPostDownloadHandler.cc
  1637. * src/BtPostDownloadHandler.h
  1638. * src/Metalink2RequestGroup.cc
  1639. * src/Metalink2RequestGroup.h
  1640. * src/MetalinkPostDownloadHandler.cc
  1641. * src/MetalinkPostDownloadHandler.h
  1642. * src/PostDownloadHandler.h
  1643. * src/RequestGroup.cc
  1644. * src/RequestGroup.h
  1645. * src/RequestGroupMan.cc
  1646. * src/main.cc
  1647. * test/BtPostDownloadHandlerTest.cc
  1648. * test/Metalink2RequestGroupTest.cc
  1649. * test/MetalinkPostDownloadHandlerTest.cc
  1650. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1651. Rewritten AccRequestGroup
  1652. * src/main.cc
  1653. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1654. Rewritten.
  1655. * src/TaggedItem.cc (toTagString)
  1656. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1657. Rewritten Accept-Features handling.
  1658. * src/HttpRequestCommand.cc (createHttpRequest)
  1659. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1660. Rewritten accept types handling.
  1661. * HttpRequest.cc (createRequest)
  1662. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1663. Rewritten
  1664. * src/FeatureConfig.cc (featureSummary)
  1665. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1666. Changed method signature:
  1667. PeerStorage::getActivePeers
  1668. * src/DHTPeerAnnounceEntry.cc
  1669. * src/DefaultPeerStorage.cc
  1670. * src/DefaultPeerStorage.h
  1671. * src/PeerStorage.h
  1672. * test/DefaultPeerStorageTest.cc
  1673. * test/MockPeerStorage.h
  1674. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1675. Changed method signature:
  1676. DHTPeerAnnounceStorage::getPeers,
  1677. DHTPeerAnnounceEntry::getPeers
  1678. * src/DHTGetPeersMessage.cc
  1679. * src/DHTPeerAnnounceEntry.cc
  1680. * src/DHTPeerAnnounceEntry.h
  1681. * src/DHTPeerAnnounceStorage.cc
  1682. * src/DHTPeerAnnounceStorage.h
  1683. * test/DHTAnnouncePeerMessageTest.cc
  1684. * test/DHTPeerAnnounceEntryTest.cc
  1685. * test/DHTPeerAnnounceStorageTest.cc
  1686. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1687. Changed method signature:
  1688. NameResolver::resolve
  1689. * src/DHTEntryPointNameResolveCommand.cc
  1690. * src/InitiateConnectionCommand.cc
  1691. * src/NameResolver.cc
  1692. * src/NameResolver.h
  1693. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1694. Changed method signature:
  1695. PieceStorage::getAdvertisedPieceIndexes
  1696. * src/DefaultBtInteractive.cc
  1697. * src/DefaultPieceStorage.cc
  1698. * src/DefaultPieceStorage.h
  1699. * src/PieceStorage.h
  1700. * src/UnknownLengthPieceStorage.h
  1701. * test/MockPieceStorage.h
  1702. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1703. Changed method signature:
  1704. SegmentMan::getInFlightSegment
  1705. * src/AbstractCommand.cc
  1706. * src/SegmentMan.cc
  1707. * src/SegmentMan.h
  1708. * test/SegmentManTest.cc
  1709. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1710. Changed method signature:
  1711. DHTAbstractNodeLookupTask::getNodesFromMessage
  1712. * src/DHTAbstractNodeLookupTask.cc
  1713. * src/DHTAbstractNodeLookupTask.h
  1714. * src/DHTNodeLookupTask.cc
  1715. * src/DHTNodeLookupTask.h
  1716. * src/DHTPeerLookupTask.cc
  1717. * src/DHTPeerLookupTask.h
  1718. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1719. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  1720. * src/AbstractCommand.cc
  1721. * src/BtCheckIntegrityEntry.cc
  1722. * src/BtCheckIntegrityEntry.h
  1723. * src/BtFileAllocationEntry.cc
  1724. * src/BtFileAllocationEntry.h
  1725. * src/BtSetup.cc
  1726. * src/BtSetup.h
  1727. * src/CheckIntegrityCommand.cc
  1728. * src/CheckIntegrityEntry.h
  1729. * src/ChecksumCheckIntegrityEntry.cc
  1730. * src/ChecksumCheckIntegrityEntry.h
  1731. * src/DHTSetup.cc
  1732. * src/DHTSetup.h
  1733. * src/DownloadEngine.cc
  1734. * src/FileAllocationCommand.cc
  1735. * src/FileAllocationEntry.h
  1736. * src/RequestGroup.cc
  1737. * src/RequestGroup.h
  1738. * src/RequestGroupMan.cc
  1739. * src/RequestGroupMan.h
  1740. * src/StreamCheckIntegrityEntry.cc
  1741. * src/StreamCheckIntegrityEntry.h
  1742. * src/StreamFileAllocationEntry.cc
  1743. * src/StreamFileAllocationEntry.h
  1744. * src/TrackerWatcherCommand.cc
  1745. * src/a2functional.h
  1746. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1747. Changed method signature:
  1748. BNode::findClosestKNodes, BNode:: enumerateBucket,
  1749. DHTBucket::getGoodNodes,
  1750. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  1751. * src/BNode.cc
  1752. * src/BNode.h
  1753. * src/DHTAbstractNodeLookupTask.cc
  1754. * src/DHTAutoSaveCommand.cc
  1755. * src/DHTBucket.cc
  1756. * src/DHTBucket.h
  1757. * src/DHTBucketRefreshTask.cc
  1758. * src/DHTFindNodeMessage.cc
  1759. * src/DHTGetPeersMessage.cc
  1760. * src/DHTRoutingTable.cc
  1761. * src/DHTRoutingTable.h
  1762. * test/BNodeTest.cc
  1763. * test/DHTBucketTest.cc
  1764. * test/DHTRoutingTableTest.cc
  1765. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1766. In piece selection functions, Pass std::deque<...> by reference rather
  1767. than returning it.
  1768. * src/BitfieldMan.cc
  1769. * src/BitfieldMan.h
  1770. * src/DefaultBtRequestFactory.cc
  1771. * src/DefaultPieceStorage.cc
  1772. * src/Piece.cc
  1773. * src/Piece.h
  1774. * test/BitfieldManTest.cc
  1775. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1776. Implemented rarest piece first piece selection strategy.
  1777. * src/AbstractBtMessage.cc
  1778. * src/AbstractBtMessage.h
  1779. * src/BitfieldMan.cc
  1780. * src/BitfieldMan.h
  1781. * src/BtBitfieldMessage.cc
  1782. * src/BtHaveAllMessage.cc
  1783. * src/BtHaveMessage.cc
  1784. * src/DefaultPieceStorage.cc
  1785. * src/DefaultPieceStorage.h
  1786. * src/PeerInteractionCommand.cc
  1787. * src/PieceStorage.h
  1788. * src/UnknownLengthPieceStorage.h
  1789. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1790. Rewritten readData and writeData.
  1791. * src/MultiDiskAdaptor.cc
  1792. * src/MultiDiskAdaptor.h
  1793. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1794. Move \n out of the message "Usage: ...".
  1795. * src/version_usage.cc
  1796. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1797. Bump up version number to 0.13.2b.
  1798. * configure.ac
  1799. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1800. Added const qualifier to argument Exception& e.
  1801. * src/Logger.h
  1802. * src/SimpleLogger.cc
  1803. * src/SimpleLogger.h
  1804. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1805. Pool connection when CWD, SIZE command fails.
  1806. * src/FtpNegotiationCommand.cc
  1807. * src/FtpNegotiationCommand.h
  1808. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1809. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  1810. * src/HttpResponseCommand.cc
  1811. * src/HttpSkipResponseCommand.cc
  1812. * src/HttpSkipResponseCommand.h
  1813. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1814. Pool connection when a server returns 4xx, 5xx responses.
  1815. * src/HttpNullDownloadCommand.cc
  1816. * src/HttpNullDownloadCommand.h
  1817. * src/HttpResponse.cc
  1818. * src/HttpResponse.h
  1819. * src/HttpResponseCommand.cc
  1820. * src/HttpResponseCommand.h
  1821. * test/HttpResponseTest.cc
  1822. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1823. Print usage when no URL is specifed or bad command-line option is
  1824. specified.
  1825. * src/HelpItemFactory.cc
  1826. * src/help_tags.h
  1827. * src/option_processing.cc
  1828. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1829. Removed duplicate log message.
  1830. * src/AbstractCommand.cc (asyncResolveHostname)
  1831. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1832. Updated man page: --async-dns and --ftp-reuse-connection were added.
  1833. Changed -j option's default value from 5 to 1.
  1834. Added new examples using protocol auto detection feature.
  1835. Removed -T, -M usage where it can be omitted.
  1836. * doc/aria2c.1.txt
  1837. * doc/aria2c.1.html
  1838. * doc/aria2c.1.txt
  1839. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1840. Updated command-line usage text, so that it tells users that they
  1841. can specify any number of torrent files and metalink files in
  1842. command-line.
  1843. * src/version_usage.cc
  1844. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1845. Changed the default value of -j option to 1.
  1846. * src/HelpItemFactory.cc
  1847. * src/option_processing.cc
  1848. * src/usage_text.h
  1849. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1850. Added the ability to reuse connection in FTP and it is enabled by
  1851. default. It can be disabled by --ftp-reuse-connection=false option.
  1852. * src/Command.cc
  1853. * src/DownloadCommand.cc
  1854. * src/FtpDownloadCommand.cc
  1855. * src/FtpDownloadCommand.h
  1856. * src/FtpFinishDownloadCommand.cc
  1857. * src/FtpFinishDownloadCommand.h
  1858. * src/FtpInitiateConnectionCommand.cc
  1859. * src/FtpNegotiationCommand.cc
  1860. * src/FtpNegotiationCommand.h
  1861. * src/HelpItemFactory.cc
  1862. * src/Makefile.am
  1863. * src/Makefile.in
  1864. * src/OptionHandlerFactory.cc
  1865. * src/option_processing.cc
  1866. * src/prefs.h
  1867. * src/usage_text.h
  1868. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1869. Call Command::transitStatus() before calling Command::execute(),
  1870. so that the status change made in execute() is not cleared.
  1871. * src/DownloadEngine.cc
  1872. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1873. Removed forward declaration of SocketCore class.
  1874. * src/HttpDownloadCommand.h
  1875. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1876. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  1877. in InitiateConnectionCommandFactory. They should be set only when
  1878. the protocol is HTTP or HTTPS.
  1879. * src/InitiateConnectionCommandFactory.cc
  1880. * src/RequestGroup.cc
  1881. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Fixed infinite loop in checksum checking.
  1883. * src/IteratableChecksumValidator.cc
  1884. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1885. Set _supportsPersistentConnection to true by default.
  1886. * src/Request.cc
  1887. * src/RequestGroup.cc
  1888. * test/HttpRequestTest.cc
  1889. * test/RequestTest.cc
  1890. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1891. Added timeout to socket pool. The default timeout is 15 seconds,
  1892. which is the same value Apache uses.
  1893. * src/DownloadEngine.cc
  1894. * src/DownloadEngine.h
  1895. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1896. Fixed misuse of multimap::find()
  1897. * src/HttpHeader.cc
  1898. * test/HttpHeaderTest.cc
  1899. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1900. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  1901. option.
  1902. The asynchronous DNS is not capable of IPv6 yet.
  1903. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  1904. least for HTTP download.
  1905. * src/AbstractCommand.cc
  1906. * src/AbstractCommand.h
  1907. * src/AsyncNameResolver.cc
  1908. * src/AsyncNameResolver.h
  1909. * src/DHTEntryPointNameResolveCommand.cc
  1910. * src/DHTEntryPointNameResolveCommand.h
  1911. * src/DownloadEngine.cc
  1912. * src/DownloadEngine.h
  1913. * src/FtpInitiateConnectionCommand.cc
  1914. * src/FtpInitiateConnectionCommand.h
  1915. * src/HelpItemFactory.cc
  1916. * src/HttpInitiateConnectionCommand.cc
  1917. * src/HttpInitiateConnectionCommand.h
  1918. * src/InitiateConnectionCommand.cc
  1919. * src/InitiateConnectionCommand.h
  1920. * src/Makefile.am
  1921. * src/Makefile.in
  1922. * src/NameResolver.cc
  1923. * src/NameResolver.h
  1924. * src/OptionHandlerFactory.cc
  1925. * src/SocketCore.cc
  1926. * src/SocketCore.h
  1927. * src/Util.cc
  1928. * src/Util.h
  1929. * src/option_processing.cc
  1930. * src/prefs.h
  1931. * src/usage_text.h
  1932. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1933. Updated man page: --quiet, --header were added.
  1934. --metalink-servers and --enable-http-keep-alive option were updated.
  1935. * doc/aria2c.1
  1936. * doc/aria2c.1.html
  1937. * doc/aria2c.1.txt
  1938. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1939. Enable HTTP keep-alive by default.
  1940. * src/HelpItemFactory.cc
  1941. * src/option_processing.cc
  1942. * src/usage_text.h
  1943. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1944. Disable http keep-alive if the remote server is not HTTP/1.1.
  1945. * src/HttpConnection.cc
  1946. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1947. Receive content body of 302 response so that the connection can be
  1948. reused later when http keep-alive is enabled.
  1949. * src/HttpNullDownloadCommand.cc
  1950. * src/HttpNullDownloadCommand.h
  1951. * src/HttpResponseCommand.cc
  1952. * src/HttpResponseCommand.h
  1953. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1954. const SharedHandle<Request> -> const SharedHandle<Request>&
  1955. * src/FtpDowndloadCommand.cc
  1956. * src/FtpDowndloadCommand.h
  1957. * src/HttpDownloadCommand.cc
  1958. * src/HttpDownloadCommand.h
  1959. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1960. Fixed the bug that the control file(.aria2 file) is not renamed
  1961. according to tryAutoFileRenaming().
  1962. tryAutoFileRenaming() was rewritten so that if both renamed file and
  1963. its control file exist, use them and continue download.
  1964. The old implementation didn't take into account of control file's
  1965. existence, so basically you couldn't continue download of renamed file.
  1966. * src/BtProgressInfoFile.h
  1967. * src/DefaultBtProgressInfoFile.cc
  1968. * src/DefaultBtProgressInfoFile.h
  1969. * src/NullProgressInfoFile.h
  1970. * src/RequestGroup.cc
  1971. * test/DefaultBtProgressInfoFileTest.cc
  1972. * test/MockBtProgressInfoFile.h
  1973. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1974. Change the default value of --metalink-servers option from `5' to `1'.
  1975. * src/HelpItemFactory.cc
  1976. * src/option_processing.cc
  1977. * src/usage_text.h
  1978. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1979. Reimplemented transparent metalink using Accept request header.
  1980. * src/HttpRequest.cc
  1981. * src/HttpRequest.h
  1982. * src/HttpRequestCommand.cc
  1983. * src/Metalink2RequestGroup.cc
  1984. * src/RequestGroup.cc
  1985. * src/RequestGroup.h
  1986. * test/HttpRequestTest.cc
  1987. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1988. Bump up version number to 0.13.2a
  1989. * configure.ac
  1990. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1991. Updated configure.ac using the result of autoscan.
  1992. * configure.ac
  1993. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1994. Fixed compilation error without gcrypt/openssl.
  1995. * src/DownloadCommand.cc
  1996. * src/DownloadCommand.h
  1997. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1998. Reorganized version information so that it can be displayed in a
  1999. standard terminal screen without scrolling.
  2000. Removed http, ftp from Configuration section, because they are always
  2001. enabled.
  2002. * src/FeatureConfig.cc
  2003. * src/FeatureConfig.h
  2004. * src/main.cc
  2005. * src/messageDigest.cc
  2006. * src/messageDigest.h
  2007. * src/version_usage.cc
  2008. * test/FeatureConfigTest.cc
  2009. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2010. Masked user ID in log.
  2011. * src/FtpConnection.cc (sendUser)
  2012. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2013. Removed query part from filename in HTTP download. The query part means
  2014. the substring after "?" in URL. Firefox seems do the same thing.
  2015. A query part is sometimes very long and not suitable to filename,
  2016. so I think it is better to remove it from filename.
  2017. * src/HttpRequest.cc
  2018. * src/HttpRequest.h
  2019. * src/Request.cc
  2020. * src/Request.h
  2021. * test/HttpRequestTest.cc
  2022. * test/RequestTest.cc
  2023. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2024. Rewritten Exception class. Throw exception object, not its pointer and
  2025. catch by reference, so that remove problematic delete operator for
  2026. catched exception.
  2027. * src/Exception.cc
  2028. * src/Exception.h
  2029. * test/ExceptionTest.cc
  2030. * src/*: All files throwing/catching exception.
  2031. * test/*: All files throwing/catching exception.
  2032. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2033. Now auto protocol detection is enabled without -Z option.
  2034. But there is a important difference between with/without -Z optoin.
  2035. For example, if you type:
  2036. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  2037. then, aria2 interprets there are 3 request groups:
  2038. (1) http://host/file, http://mirror/file <-- multi-source download
  2039. (2) file1.torrent
  2040. (3) file2.metalink
  2041. On the other hand, if you invoke above command with -Z option, it is
  2042. interpreted as 4 request groups:
  2043. (1) http://host/file
  2044. (2) file1.torrent
  2045. (3) file2.metalink
  2046. (4) http://mirror/file
  2047. I think usually user don't mix multi-source URLs and torrent files, so
  2048. there is no big problem here.
  2049. * src/main.cc
  2050. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2051. Fixed the bug that causes segmentaion fault when reading XML containing
  2052. unescapsed character like '&'.
  2053. Also a modification was made which avoids adding unnecessary
  2054. characters stack and appending unused string.
  2055. * src/ExpatMetalinkProcessor.cc
  2056. * src/FileMetalinkParserState.h
  2057. * src/FilesMetalinkParserState.h
  2058. * src/FinMetalinkParserState.h
  2059. * src/HashMetalinkParserState.h
  2060. * src/InitialMetalinkParserState.h
  2061. * src/LanguageMetalinkParserState.h
  2062. * src/MetalinkMetalinkParserState.h
  2063. * src/MetalinkParserState.h
  2064. * src/MetalinkParserStateMachine.cc
  2065. * src/MetalinkParserStateMachine.h
  2066. * src/OSMetalinkParserState.h
  2067. * src/PieceHashMetalinkParserState.h
  2068. * src/PiecesMetalinkParserState.h
  2069. * src/ResourcesMetalinkParserState.h
  2070. * src/SizeMetalinkParserState.h
  2071. * src/SkipTagMetalinkParserState.h
  2072. * src/URLMetalinkParserState.h
  2073. * src/VerificationMetalinkParserState.h
  2074. * src/VersionMetalinkParserState.h
  2075. * src/XML2SAXMetalinkProcessor.cc
  2076. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Added StringFormat class, which internally calls vasprintf.
  2078. operator<< is defined for this class, so it can be used with iostream
  2079. classes nicely. SimpleLogger and following functions are rewritten
  2080. using StringFormat class.
  2081. Besides, now Logger class's methods are non-const, many classes
  2082. that has a const Logger* as a member variable are modified to remove
  2083. const qualifier from the variable declaration.
  2084. * src/HelpItemFactory.cc
  2085. * src/Request.cc
  2086. * src/SimpleLogger.cc
  2087. * src/StringFormat.cc
  2088. * src/StringFormat.h
  2089. * src/Util.cc
  2090. * src/option_processing.cc
  2091. * src/version_usage.cc
  2092. * test/StringFormatTest.cc
  2093. * src/*.h: The classes that has const Logger* as a member variable.
  2094. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2095. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  2096. failed. Also fixed memory link when exception is thrown there.
  2097. * src/main.cc (AccRequestGroup)
  2098. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2099. Added build-in "Accept-Features" support. For now only "metalink" is
  2100. used in this header field.
  2101. This "metalink" value is removed from the list when connecting URLs
  2102. fed by metalink file to avoid loop in "transparent" metlaink.
  2103. * src/HttpRequest.cc
  2104. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  2105. header is also held in this variable. Also renamed setUserHeaders as
  2106. addHeader and it was rewritten to add header not just to clear the old
  2107. value.
  2108. * src/HttpRequestCommand.cc
  2109. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  2110. from "Accept-Features" list.
  2111. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  2112. default.
  2113. * src/RequestGroup.h
  2114. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  2115. * src/a2functional.h: Included <string> because Concat class depends on
  2116. it.
  2117. * test/HttpRequestTest.cc
  2118. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2119. Added comment
  2120. * src/RequestGroup.cc (createNextCommand)
  2121. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2122. Capitalized METHOD_GET and METHOD_HEAD
  2123. * src/Request.cc
  2124. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2125. Added getDownloadResults() method
  2126. * src/RequestGroupMan.cc
  2127. * src/RequestGroupMan.h
  2128. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2129. Fixed the bug that aria2 exits when commands is empty() but
  2130. _routineCommands are not.
  2131. * src/DownloadEngine.cc
  2132. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2133. Use the default value pulled from Option object in HelpItemFactory.
  2134. except options whose defualt value is embedded in a usage text.
  2135. * src/HelpItemFactory.cc
  2136. * src/HelpItemFactory.h
  2137. * src/option_processing.cc
  2138. * src/version_usage.cc
  2139. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2140. Added --quiet option to make aria2 quiet (no console output).
  2141. --quiet option is tagged with ADVANCED.
  2142. * src/HelpItemFactory.cc
  2143. * src/LogFactory.cc
  2144. * src/LogFactory.h
  2145. * src/MultiUrlRequestInfo.cc
  2146. * src/MultiUrlRequestInfo.h
  2147. * src/NullStatCalc.h: New class. This class prints nothing.
  2148. * src/OptionHandlerFactory.cc
  2149. * src/main.cc
  2150. * src/option_processing.cc
  2151. * src/prefs.h
  2152. * src/usage_text.h
  2153. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2154. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  2155. * src/HelpItemFactory.cc (createHelpItems):
  2156. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2157. Fixed compilation error in ExpatMetalinkProcessor.cc
  2158. * src/ExpatMetalinkProcessor.cc
  2159. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2160. Reuse socket if the origin server supports HTTP keep-alive and
  2161. --enable-http-keep-alive or --enable-http-pipelining is given.
  2162. The current implementation doesn't reuse the connections established
  2163. against proxy server.
  2164. * src/AbstractCommand.cc
  2165. * src/DownloadEngine.cc
  2166. * src/DownloadEngine.h
  2167. * src/HttpDownloadCommand.cc
  2168. * src/HttpInitiateConnectionCommand.cc
  2169. * src/HttpResponseCommand.cc
  2170. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2171. Rewritten HTTP keep-alive and pipelining routine.
  2172. * src/AbstractCommand.cc
  2173. * src/HttpConnection.cc
  2174. * src/HttpDownloadCommand.cc
  2175. * src/HttpRequest.cc
  2176. * src/HttpRequestCommand.cc
  2177. * src/HttpResponseCommand.cc
  2178. * src/Request.cc
  2179. * src/Request.h
  2180. * src/RequestGroup.cc
  2181. * test/HttpRequestTest.cc
  2182. * test/HttpResponseTest.cc
  2183. * test/RequestTest.cc
  2184. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2185. Added missing setUserHeaders call
  2186. * src/HttpRequestCommand.cc
  2187. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2188. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  2189. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  2190. waste of time because it is more likey false.
  2191. * src/FileAllocationDispatcherCommand.cc (execute)
  2192. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2193. Now HTTP status and version are a member variable of HttpHeader.
  2194. HTTP status is processed as a string, not integer.
  2195. * src/AbstractProxyResponseCommand.cc
  2196. * src/HttpConnection.cc
  2197. * src/HttpHeader.cc
  2198. * src/HttpHeader.h
  2199. * src/HttpHeaderProcessor.cc
  2200. * src/HttpHeaderProcessor.h
  2201. * src/HttpResponse.cc
  2202. * src/HttpResponse.h
  2203. * test/HttpHeaderProcessorTest.cc
  2204. * test/HttpResponseTest.cc
  2205. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2206. Added --header option. You can specify any number of additional HTTP headers
  2207. like:
  2208. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  2209. Unlike other commad-line option, you can use --header option multiple times.
  2210. * src/HelpItemFactory.cc
  2211. * src/HttpRequest.{cc, h}
  2212. * src/HttpRequestCommand.cc
  2213. * src/OptionHandlerFactory.cc
  2214. * src/OptionHandlerImpl.h
  2215. * src/option_processing.cc
  2216. * src/prefs.h
  2217. * src/usage_text.h
  2218. * test/HttpRequestTest.cc (testUserHeaders)
  2219. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2220. Eliminates the time lag between sequential downloads and commands in
  2221. the same RequestGroup.
  2222. In old implementation, aria2 occasionally waits 1 seconds before
  2223. executing next command or RequestGroup.
  2224. This is really a waste of time, and new implementation eliminates
  2225. this unnecessary time lag.
  2226. * src/AbstractCommand.cc
  2227. * src/AutoSaveCommand.cc
  2228. * src/CheckIntegrityCommand.cc
  2229. * src/Command.{cc, h}
  2230. * src/DownloadEngine.{cc, h}
  2231. * src/DownloadEngineFactory.cc
  2232. * src/FileAllocationCommand.cc
  2233. * src/FileAllocationDispatcherCommand.cc
  2234. * src/FillRequestGroupCommand.cc
  2235. * src/FtpInitiateConnectionCommand.cc
  2236. * src/HaveEraseCommand.cc
  2237. * src/HttpInitiateConnectionCommand.cc
  2238. * src/HttpResponseCommand.cc
  2239. * src/RealtimeCommand.cc
  2240. * src/RequestGroup.cc
  2241. * src/RequestGroupMan.cc
  2242. * src/StreamFileAllocationEntry.cc
  2243. * src/TimeBasedCommand.{cc, h}
  2244. * src/TimedHaltCommand.cc
  2245. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2246. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  2247. keyword explicit and SharedHandle's default constructor initializes
  2248. its internal obj to null, old implementation initializes it using
  2249. obj's default constructor.
  2250. To assign null, write SharedHandle<T> x(...); x.reset();
  2251. TODO: test/SharedHandleTest.cc needs more tests.
  2252. * src/SharedHandle.h
  2253. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2254. Fixed type in man page.
  2255. * doc/aria2c.1.txt
  2256. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2257. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  2258. * src/SimpleLogger.{cc, h}
  2259. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2260. Implemented auto protocol detection.
  2261. Now you can do:
  2262. aria2c -Z http://host/file file1.torrent file2.metalink
  2263. (Note: -Z option is required for auto protcol detection.)
  2264. Then aria2c downloads 3 files simultaneously:
  2265. 1. http://host/file
  2266. 2. file1.torrent <-- read local torrent file
  2267. 3. file2.metalink <-- read local Metalink file.
  2268. Same thing goes with -i option. Assume your uris.txt contans:
  2269. http://host/file
  2270. file1.torrent
  2271. file2.metalink
  2272. Then you can do: aria2c -i uris.txt
  2273. (Note: -Z option is not needed if -i option is given.)
  2274. * src/main.cc
  2275. * src/ProtocolDetector.{cc, h}
  2276. * test/ProtocolDetectorTest.cc
  2277. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2278. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  2279. installed
  2280. * src/ARC4Encryptor.h
  2281. * src/ARC4Decryptor.h
  2282. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2283. Renamed argument from 'errno' to 'err', since errno is confused with
  2284. errno defined in errno.h.
  2285. * src/LibgcryptARC4Decryptor.h
  2286. * src/LibgcryptARC4Context.h
  2287. * src/LibgcryptDHKeyExchange.h
  2288. * src/LibgcryptARC4Encryptor.h
  2289. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2290. Rewritten choking algorithm.
  2291. * src/PeerChokeCommand.{cc, h}
  2292. * src/BtInterestedMessage.cc
  2293. * src/PeerSessionResource.{cc, h}
  2294. * src/DefaultPeerStorage.{cc, h}
  2295. * src/BtNotInterestedMessage.cc
  2296. * src/DefaultBtMessageDispatcher.{cc, h}
  2297. * src/BtMessageDispatcher.h
  2298. * src/Peer.{cc, h}
  2299. * src/BtLeecherStateChoke.{cc, h}
  2300. * src/BtSetup.cc
  2301. * src/BtSeederStateChoke.{cc, h}
  2302. * src/PeerStorage.h
  2303. * test/MockPeerStorage.h
  2304. * test/MockBtMessageDispatcher.h
  2305. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2306. Fixed compilation error on x84-64 platform.
  2307. * src/AuthConfig.cc: Included ostream.
  2308. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2309. Rewritten getBasename() and getDirname(), without standard library
  2310. basename(), dirname().
  2311. * src/File.cc
  2312. * test/FileTest.cc
  2313. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2314. Added Simplified Chinese translation. Also updated the following
  2315. translations: Polish, Dutch, German. Great thanks to all translators.
  2316. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2317. Suppress content-range error when 'Content-Range' response header
  2318. doesn't contains bytes-unit specifier 'bytes'
  2319. * src/HttpHeader.cc (getRange)
  2320. * test/HttpHeaderTest.cc
  2321. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2322. Fixed compilation error with g++-4.3
  2323. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2324. Added missing include files for MinGW
  2325. * test/HttpHeaderProcessorTest.cc
  2326. * test/DHTRoutingTableSerializerTest.cc
  2327. * test/DHTRoutingTableDeserializerTest.cc
  2328. * test/UriListParserTest.cc
  2329. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2330. Now download line is printed nicely with no garbage at the end of
  2331. line. I use ioctl to get the columns of terminal.
  2332. If stdout is redirected to another device, instead of carriage return,
  2333. end of line '\n' character is used. This is feature request#1909659
  2334. * src/ConsoleStatCalc.cc (calculateStat)
  2335. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2336. Included a2time.h
  2337. * src/DHTMessageDispatcher.h
  2338. * src/DHTMessageEntry.h
  2339. * src/DHTReplaceNodeTask.h
  2340. * src/DHTMessageTracker.h
  2341. * src/Util.h
  2342. * src/CookieBox.h
  2343. * src/SocketCore.h
  2344. * src/DefaultBtMessageDispatcher.h
  2345. * src/SocketCore.cc
  2346. * src/Util.cc
  2347. * src/DHTPingTask.h
  2348. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2349. Fixed high memory footprint when DHT is enabled.
  2350. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  2351. queued than it is processed and the queue is getting longer. As a
  2352. consequence, momory usage is increased.
  2353. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  2354. replacement cache in DHTBucket which is described in Kademlia paper.
  2355. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  2356. DHTReplaceNodeTask.
  2357. * src/DHTBucket.{h, cc}
  2358. (cacheNode): New function.
  2359. (getCachedNodes): New function.
  2360. (dropNode): Push back cached node to _nodes.
  2361. * test/DHTBucketTest.cc
  2362. (testCacheNode): New test
  2363. (testDropNode): New test
  2364. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2365. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  2366. the unused 4KB memory when ssl is not used.
  2367. * src/SocketCore.cc
  2368. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2369. Added summary log for peer announce storage.
  2370. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  2371. Removed cast
  2372. * src/DefaultPeerStorage.cc (addPeer)
  2373. Log exception message
  2374. * src/DHTMessageTracker.cc (handleTimeout)
  2375. Fixed casting
  2376. * test/HttpRequestTest.cc
  2377. * test/MetalinkProcessorTest.cc
  2378. * test/PieceTest.cc
  2379. * test/MetalinkEntryTest.cc
  2380. * test/SequenceTest.cc
  2381. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2382. * src/ParameterizedStringParser.cc (createLoop):
  2383. Removed unused variable sstep.
  2384. * src/AlphaNumberDecorator.h (decode): Rewritten.
  2385. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2386. * src/Util.{h, cc}
  2387. (parseUInt): New function.
  2388. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  2389. The actual range is uint32_t.
  2390. * test/UtilTest.cc
  2391. * src/ParameterizedStringParser.cc:
  2392. Use Util::parseUInt() for loop variables.
  2393. * test/ParameterizedStringParserTest.cc
  2394. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  2395. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2396. Rewritten the functions for binding port.
  2397. * src/DHTConnectionImpl.{h, cc}
  2398. * src/PeerListenCommand.{h, cc}
  2399. * src/DHTSetup.cc
  2400. * src/BtSetup.cc
  2401. * test/DHTConnectionImplTest.cc
  2402. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2403. type cleanup for allmost all remaining files.
  2404. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2405. Type clarification
  2406. * src/PeerSessionResource.{h, cc}
  2407. * src/DefaultPieceStorage.{h, cc}
  2408. * src/Peer.{h, cc}
  2409. * test/PeerSessionResourceTest.cc
  2410. Use div function
  2411. * src/BtPieceMessage.cc (erasePieceOnDisk)
  2412. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2413. Type clarification
  2414. * src/DefaultPeerStorage.{h, cc}
  2415. * test/DefaultPeerStorageTest.cc
  2416. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2417. Type clarification: size_t for length or size, uint64_t for file
  2418. length, off_t for file offset.
  2419. * src/DefaultBtProgressInfoFile.cc
  2420. * src/DefaultBtContext.{h, cc}
  2421. * src/DefaultBtInteractive.cc
  2422. * src/DownloadCommand.{h, cc}
  2423. * src/IteratableChunkChecksumValidator.{h, cc}
  2424. * src/SegmentMan.{h, cc}
  2425. * src/SingleFileDownloadContext.{h, cc}
  2426. * src/IteratableChecksumValidator.{h, cc}
  2427. * src/BtContext.h
  2428. * src/IteratableValidator.h
  2429. * src/DownloadContext.h
  2430. * test/SingleFileDownloadContextTest.cc
  2431. * test/DefaultBtContextTest.cc
  2432. * test/MockBtContext.h
  2433. * test/Metalink2RequestGroupTest.cc
  2434. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2435. Type clarification: size_t for length or size, uint64_t for file
  2436. length, off_t for file offset.
  2437. * src/PiecedSegment.cc
  2438. * src/GrowSegment.h
  2439. * src/DefaultBtRequestFactory.h
  2440. * src/DefaultBtProgressInfoFile.cc
  2441. * src/UnknownLengthPieceStorage.h
  2442. * src/DefaultPieceStorage.cc
  2443. * src/UnknownLengthPieceStorage.cc
  2444. * src/DefaultBtInteractive.cc
  2445. * src/GrowSegment.cc
  2446. * src/BitfieldMan.h
  2447. * src/DownloadCommand.cc
  2448. * src/BtRequestFactory.h
  2449. * src/PiecedSegment.h
  2450. * src/DefaultPieceStorage.h
  2451. * src/Piece.cc
  2452. * src/DefaultBtRequestFactory.cc
  2453. * src/PieceStorage.h
  2454. * src/Segment.h
  2455. * src/Piece.h
  2456. * src/BitfieldMan.cc
  2457. * src/Util.cc
  2458. * test/DefaultBtProgressInfoFileTest.cc
  2459. * test/DefaultPieceStorageTest.cc
  2460. * test/MockPieceStorage.h
  2461. * test/BtRequestMessageTest.cc
  2462. * test/DefaultBtMessageDispatcherTest.cc
  2463. * test/BitfieldManTest.cc
  2464. * test/GrowSegmentTest.cc
  2465. * test/PieceTest.cc
  2466. * test/SegmentTest.cc
  2467. * test/SegmentManTest.cc
  2468. * test/DefaultBtRequestFactoryTest.cc
  2469. * test/MockBtRequestFactory.h
  2470. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2471. Fixed compilation error with --disable-nls
  2472. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  2473. in gettext.h causes the problem.
  2474. * src/common.h
  2475. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2476. Removed subPiece related functions.
  2477. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  2478. * src/DefaultPieceStorage.{h, cc}
  2479. * test/PieceTest.cc
  2480. * test/DefaultPieceStorageTest.cc
  2481. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2482. Use unsigned char for data store.
  2483. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2484. Bump up version number to 0.13.0+1
  2485. * configure.ac
  2486. * Release 0.13.0+1
  2487. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2488. Changed inactive connection timeout to 120.
  2489. To accept more mulually interested peers, disconnect peer when there
  2490. is no interest between us after certain time passed.
  2491. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  2492. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Fixed the bug that aria2 only uses first dns server in resolv.conf
  2494. when compiled with async DNS support.
  2495. * src/DownloadEngine.cc
  2496. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  2497. value '10' will be a little bit short when some DNS servers are
  2498. offline and several DNS servers are tried. It should be configured
  2499. by command-line option.
  2500. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2501. Merged Ross's mingw patch.
  2502. * src/DHTRoutingTableDeserializer.cc
  2503. * src/DHTRoutingTableSerializer.cc
  2504. * src/Platform.{h, cc}
  2505. * src/timegm.h
  2506. * src/gettimeofday.h
  2507. * src/getaddrinfo.h
  2508. * src/SocketCore.h
  2509. * src/common.h
  2510. * src/inet_aton.h
  2511. * src/DownloadEngine.h
  2512. * src/gai_strerror.h
  2513. * src/a2netcompat.h
  2514. * configure.ac
  2515. * configure
  2516. * aclocal.m4
  2517. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2518. Included missing iostream.
  2519. * test/AllTest.cc
  2520. * test/BtDependencyTest.cc
  2521. * test/BtExtendedMessageTest.cc
  2522. * test/DHTConnectionImplTest.cc
  2523. * test/DHTMessageFactoryImplTest.cc
  2524. * test/DHTMessageTrackerEntryTest.cc
  2525. * test/DHTNodeTest.cc
  2526. * test/DHTRoutingTableSerializerTest.cc
  2527. * test/DefaultBtAnnounceTest.cc
  2528. * test/DefaultBtContextTest.cc
  2529. * test/DefaultBtMessageFactoryTest.cc
  2530. * test/DefaultExtensionMessageFactoryTest.cc
  2531. * test/HandshakeExtensionMessageTest.cc
  2532. * test/HttpResponseTest.cc
  2533. * test/MetalinkProcessorTest.cc
  2534. * test/MultiFileAllocationIteratorTest.cc
  2535. * test/SocketCoreTest.cc
  2536. * test/UTPexExtensionMessageTest.cc
  2537. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2538. Reorganized includes.
  2539. * src/NameResolver.cc
  2540. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2541. Fixed compilation error without ares/c-ares
  2542. * src/NameResolver.h:
  2543. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2544. Added a test for large file.
  2545. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  2546. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2547. Fixed the bug that file size is ignored if size > INT32_MAX
  2548. * src/SizeMetalinkParserState.cc (endElement):
  2549. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2550. Bump up version number to 0.13.0
  2551. * configure.ac
  2552. * Release 0.13.0
  2553. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. Updated Makfefile.am to make 'make dist' work.
  2555. Now packaged filename is aria2c-VERSION.tar.bz2.
  2556. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  2557. Added LICENSE.OpenSSL to dist_noinst_DATA.
  2558. Large file support is now configured by configure script.
  2559. * configure.ac
  2560. Removed unsused source files
  2561. * src/
  2562. * test/
  2563. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  2564. Peer.h and BtContext.h respectively.
  2565. * src/Peer.h
  2566. * src/BtContext.h
  2567. Updated translations.
  2568. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  2569. translations. Great thanks to all translators!;)
  2570. * po/*.{po, gmo}
  2571. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2572. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  2573. statically declared sha1 MessageDigestContext.
  2574. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  2575. initialization of short-lived MessageDigestContext.
  2576. * src/MessageDigestHelper.{h, cc}
  2577. * src/main.cc
  2578. Now DownloadCommand has a reference to MessageDigestContext to avoid
  2579. the initialization of MessageDigestContext every time in validating
  2580. chunk checksum.
  2581. * src/DownloadCommand.{h, cc}
  2582. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2583. Add a file descriptor which connected to fast peer(latency<1500) to
  2584. select(). This change reduced CPU load.
  2585. * src/PeerInteractionCommand.cc
  2586. * src/DefaultBtInteractive.{h, cc}
  2587. * src/BtInteractive.h
  2588. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Fixed the previous insufficient fix for possible busy loop.
  2590. * src/MSEHandshake.cc (identifyHandshakeType)
  2591. Removed unused functions.
  2592. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  2593. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2594. Fixed possible busy loop if first 20 bytes are not received for a few
  2595. minutes.
  2596. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  2597. * src/ReceiverMSEHandshakeCommand.cc
  2598. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2599. Fixed compilation error
  2600. * src/ExpatMetalinkProcessor.cc
  2601. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2602. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  2603. * src/DHTBucket.cc
  2604. Removed unnecessary cast.
  2605. * src/HandshakeExtensionMessage.cc
  2606. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2607. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  2608. is missing.
  2609. * src/OptionHandlerFactory.cc
  2610. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2611. Fixed the bug that HAVE message is not sent for a piece they are
  2612. downloaded fom http/ftp server before any BitTorrent handshake is done
  2613. with peers.
  2614. * src/DefaultBtInteractive.cc
  2615. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2616. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  2617. * src/Makefile.am
  2618. * src/Makefile.in
  2619. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Updated README. Added html version of README and man page.
  2621. * README
  2622. * README.html
  2623. * readme2html: Shell script to generate README.html from README using
  2624. asciidoc.
  2625. * doc/aria2c.1.html
  2626. * doc/makeman: Added the line to generate aria2c.1.html
  2627. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2628. Fixed offset calculation.
  2629. * src/LibgcryptDHKeyExchange.h (computeSecret)
  2630. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2631. Rewritten itos and uitos using template. llitos and ullitos are
  2632. replaced with itos and uitos respectively.
  2633. * src/Util.{h, cc}
  2634. * test/UtilTest.cc
  2635. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2636. Fixed the bug that DH key exchange sometimes fails due to bad handling
  2637. of the number of bytes required for storing public key and shared
  2638. secret.
  2639. * src/LibgcryptDHKeyExchange.h
  2640. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  2641. * src/MSEHandshake.cc
  2642. * test/DHKeyExchangeTest.cc
  2643. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Removed since they are not used.
  2645. * src/Xml2MetalinkProcessor.{h, cc}
  2646. * src/Socket.cc
  2647. * src/SegmentSplitter.{h, cc}
  2648. * test/Xml2MetalinkProcessorTest.cc
  2649. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2650. Fixed the bug that prevents aria2 from stopping other than by pressing
  2651. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  2652. option. aria2 doesn't stop even after --seed-time is satisfied and
  2653. continues to output blank lines in the console.
  2654. * src/ReceiverMSEHandshakeCommand.cc
  2655. * src/PeerReceiveHandshakeCommand.cc
  2656. * src/PeerListenCommand.cc
  2657. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2658. Bump up version number to 0.13.0rc
  2659. * configure.ac
  2660. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2661. Updated man page and some usage text.
  2662. * doc/aria2c.1.txt
  2663. * src/usage_text.h
  2664. * po/*.{po, gmo}
  2665. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2666. Updated translations. Added Finnish and Hebrew translations.
  2667. Great thanks to all translators!
  2668. * po/*.{po, gmo}
  2669. * po/LINGUAS
  2670. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2671. Log more detailed information about each message.
  2672. * src/DHTQueryMessage.{h, cc}
  2673. * src/DHTGetPeersMessage.{h, cc}
  2674. * src/DHTFindNodeReplyMessage.{h, cc}
  2675. * src/DHTGetPeersReplyMessage.{h, cc}
  2676. * src/DHTAnnouncePeerMessage.{h, cc}
  2677. * src/DHTResponseMessage.{h, cc}
  2678. * src/DHTFindNodeMessage.{h, cc}
  2679. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2680. Use constants defined in prefs.h
  2681. * src/option_processing.cc
  2682. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2683. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  2684. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. Make room for future enchancements for IPv6 addresses.
  2686. Bump up version number of dht.dat file format to 2.
  2687. Not compatible with previous version.
  2688. * src/DHTRoutingTableSerializer.cc
  2689. * src/DHTRoutingTableDeserializer.cc
  2690. * test/DHTRoutingTableSerializerTest.cc
  2691. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2692. Added handling for the return values from
  2693. PeerMessageUtil::createcompact().
  2694. * src/DefaultBtContext.cc (computeFastSet):
  2695. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2696. Fixed abort when peer's ip address is IPv4-mapped address.
  2697. * src/DefaultBtContext.cc (computeFastSet)
  2698. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  2699. cannot handle IPv4-mapped addresses.
  2700. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  2701. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2702. Proper return value handling for OpenSSL functions.
  2703. * src/LibsslDHKeyExchange.h
  2704. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2705. Random bytes generation using libgcrypt and OpenSSL.
  2706. * src/DHTUtil.{h, cc}
  2707. * test/DHTUtilTest.cc
  2708. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  2710. received.
  2711. * src/DHTMessageReceiver.cc (receiveMessage)
  2712. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2713. Fixed the bug that a return code is always 0. BUG#1897704
  2714. If error occurred during the download or there exist unfinished
  2715. downloads, aria2 returns with code 1.
  2716. * src/RequestGroupMan.{h, cc}
  2717. * src/MultiUrlRequestInfo.{h, cc}
  2718. * src/main.cc
  2719. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2720. IPv6 support for SocketCore class.
  2721. TODO: In SocketCore::establishConnection(), this is insufficient to
  2722. determin the failure of connect() here because the socket is
  2723. non-blocking state. The next addresses should be tried after select().
  2724. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  2725. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  2726. instead which address family independent.
  2727. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  2728. information in a compact peer format which is for IPv4 only.
  2729. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  2730. this is a spec of BitTorrent protocol.
  2731. * src/SocketCore.{h, cc}
  2732. * src/PeerMessageUtil.cc
  2733. * test/SocketCoreTest.cc
  2734. * test/PeerMessageUtilTest.cc
  2735. * test/DHTConnectionImplTest.cc
  2736. Handle IPv4-mapped addresses.
  2737. * src/DHTNode.cc: Now identity is determined by node id.
  2738. * src/DHTMessageTrackerEntry.cc
  2739. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  2740. should handle it.
  2741. * src/DHTRoutingTableDeserializer.cc
  2742. * src/DHTMessageFactoryImpl.cc
  2743. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2744. Change the unit of --stop option from a minute to a second.
  2745. * src/usage_text.h
  2746. * src/DownloadEngineFactory.cc
  2747. * src/OptionHandlerFactory.cc
  2748. * src/message.h
  2749. * src/TimedHaltCommand.cc
  2750. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2751. Make listening socket non-block mode.
  2752. * src/FtpConnection.cc
  2753. * src/FtpNegotiationCommand.{h, cc}
  2754. * src/PeerListenCommand.cc
  2755. Fixed the bug that cause slow ftp negotiation.
  2756. * src/FtpNegotiationCommand.{h, cc}
  2757. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2758. Added basic tag to --enable-dht, --dht-listen-port option.
  2759. * src/HelpItemFactory.cc (createHelpItems)
  2760. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2761. Updated text.
  2762. * src/usage_text.h
  2763. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2764. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  2765. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Determin _threadtholdSpeed in each constructor for
  2767. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  2768. * src/ActivePeerConnectionCommand.{h, cc}
  2769. * src/PeerReceiveHandshakeCommand.{h, cc}
  2770. * src/BtSetup.cc
  2771. * src/BtConstants.h
  2772. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Added --bt-min-crypto-level and --bt-require-crypto options.
  2774. * src/OptionHandlerFactory.cc
  2775. * src/MSEHandshake.cc
  2776. * src/HelpItemFactory.cc
  2777. * src/option_processing.cc
  2778. * src/ReceiverMSEHandshakeCommand.cc
  2779. * src/prefs.h
  2780. * src/DefaultBtAnnounce.cc
  2781. * src/InitiatorMSEHandshakeCommand.cc
  2782. * src/usage_text.h
  2783. * test/MSEHandshakeTest.cc
  2784. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2785. Bump version number to 0.13.0b
  2786. * configure.ac
  2787. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. Updated doc.
  2789. * src/MessageDigestHelper.h:
  2790. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2791. Use raw message digest as a token instead of its hexadecimal
  2792. representation.
  2793. * src/DHTTokenTracker.cc (generateToken)
  2794. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2795. Added Message Stream Encryption(MSE) support.
  2796. Currently, aria2 accepts incoming connections with Obfuscation Header
  2797. and legacy BitTorrent Header and establishes connections with
  2798. Obfuscation Header first and if failed then retry with legacy
  2799. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  2800. choose ARC4. The new option to change the default behavior is planned.
  2801. For tracker extension, "supportcrypto=1" is added statically.
  2802. * src/PeerInitiateConnectionCommand.{h, cc}
  2803. * src/PeerConnection.{h, cc}
  2804. * src/HandleRegistry.h
  2805. * src/SocketCore.h
  2806. * src/PeerReceiveHandshakeCommand.{h, cc}
  2807. * src/BtRegistry.{h, cc}
  2808. * src/PeerListenCommand.cc
  2809. * src/InitiatorMSEHandshakeCommand.{h, cc}
  2810. * src/ReceiverMSEHandshakeCommand.{h, cc}
  2811. * src/MSEHandshake.{h, cc}
  2812. * src/ARC4Encryptor.h
  2813. * src/ARC4Decryptor.h
  2814. * src/LibgcryptARC4Encryptor.h
  2815. * src/LibgcryptARC4Decryptor.h
  2816. * src/LibgcryptARC4Context.h
  2817. * src/LibsslARC4Encryptor.h
  2818. * src/LibsslARC4Decryptor.h
  2819. * src/LibsslARC4Context.h
  2820. * src/DHKeyExchange.h
  2821. * src/LibgcryptDHKeyExchange.h
  2822. * src/LibsslDHKeyExchange.h
  2823. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  2824. * test/DefaultBtAnnounceTest.cc
  2825. * test/ARC4Test.cc
  2826. * test/DHKeyExchangeTest.cc
  2827. Removed prepareForRetry() because it is not used.
  2828. * src/PeerAbstractCommand.{h, cc}
  2829. * src/PeerInteractionCommand.{h, cc}
  2830. * src/PeerInitiateConnectionCommand.{h, cc}
  2831. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2832. Added the ability to load nodes from torrent file. These nodes are
  2833. added to the routing table when downloading that torrent.
  2834. * src/BtContext.h
  2835. * src/DefaultBtContext.{h, cc}
  2836. * src/DHTSetup.cc
  2837. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  2838. hostname and port pair, and resolves all of them.
  2839. * src/NameResolver.{h, cc}: Added reset().
  2840. * src/RequestGroup.cc
  2841. * test/DefaultBtContextTest.cc
  2842. * test/MockBtContext.h
  2843. Removed assert() from DefaultBtContext and throw exception instead.
  2844. * src/DefaultBtContext.cc
  2845. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2846. Fixed segmentation fault bug when exiting if dht is disabled.
  2847. * src/RequestGroup.cc
  2848. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2849. Fixed typo in log message and define the message in message.h
  2850. * src/TimedHaltCommand.cc
  2851. * src/message.h
  2852. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. Included RecoverableException.h to fix compilation error.
  2854. * test/DHTMessageFactoryImplTest.cc
  2855. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  2857. * test/DHTPingMessageTest.cc
  2858. * test/DHTGetPeersMessageTest.cc
  2859. * test/DHTFindNodeMessageTest.cc
  2860. * test/DHTAnnouncePeerMessageTest.cc
  2861. * test/MockDHTMessage.h
  2862. * test/MockDHTMessageFactory.h
  2863. * test/MockDHTMessageDispatcher.h: New class.
  2864. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2865. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  2866. virtual.
  2867. * src/DHTMessageDispatcher.h
  2868. * src/DHTMessageDispatcherImpl.{h, cc}
  2869. * src/DHTSetup.cc
  2870. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2871. Adding handling of DHT error message. Just log error message and
  2872. throw exception.
  2873. * src/DHTMessageFactoryImpl.cc
  2874. * test/DHTMessageFactoryImplTest.cc
  2875. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. Added handling of dynamic cast failure.
  2877. * src/DHTNodeLookupTask.cc
  2878. * src/DHTPeerLookupTask.cc
  2879. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2880. Added the ability to stop aria2 itself when given time has passed
  2881. from start. Use --stop option to specify time in minutes.
  2882. When 0 is given, this feature is disabled.
  2883. * src/OptionHandlerFactory.cc
  2884. * src/TimeBasedCommand.h: Make _interval protected scope.
  2885. * src/HelpItemFactory.cc
  2886. * src/option_processing.cc
  2887. * src/prefs.h
  2888. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  2889. before calling RequestGroupMan::fillRequestGroupFromReserver().
  2890. Without this modification, the result list shows "ERR" when aria2 is
  2891. stopped by --stop option. It should be "INPR".
  2892. * src/DownloadEngine.{h, cc}
  2893. * src/DownloadEngineFactory.cc
  2894. * src/usage_text.h
  2895. * src/TimedHaltCommand.{h, cc}: New class.
  2896. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2897. Bootstrap through node added by port message.
  2898. Currently bootstrap is executed if the number of buckets in routing
  2899. table is 1.
  2900. * src/BtPortMessage.{h, cc}
  2901. * src/DefaultBtMessageFactory.{h, cc}
  2902. * src/PeerInteractionCommand.cc
  2903. * test/BtPortMessageTest.cc
  2904. * test/MockDHTTask.h
  2905. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2906. Extract the Peer class's member variables, which are only needed after
  2907. PeerInteractionCommand, into PeerSessionResource class.
  2908. This class is instantiated in PeerInteractionCommand class's ctor and
  2909. released in its dtor.
  2910. This will make Peer class lightweight and uses less memory for peers
  2911. which are not connected and wait in the queue.
  2912. * src/PeerChokeCommand.cc
  2913. * src/PeerSessionResource.{h, cc}
  2914. * src/PeerInteractionCommand.cc
  2915. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  2916. * src/DefaultBtInteractive.cc
  2917. * src/BtPieceMessage.cc
  2918. * src/BtInterestedMessage.cc
  2919. * src/BtUnchokeMessage.cc
  2920. * src/DefaultPeerStorage.{h, cc}
  2921. * src/PeerInitiateConnectionCommand.cc
  2922. * src/ActivePeerConnectionCommand.cc
  2923. * src/BtNotInterestedMessage.cc
  2924. * src/DefaultBtMessageDispatcher.cc
  2925. * src/BtChokeMessage.cc
  2926. * src/BtRequestMessage.cc
  2927. * src/Peer.{h, cc}
  2928. * src/BtRegistry.h
  2929. * src/TrackerWatcherCommand.cc
  2930. * src/PeerReceiveHandshakeCommand.cc
  2931. * test/BtExtendedMessageTest.cc
  2932. * test/BtAllowedFastMessageTest.cc
  2933. * test/BtCancelMessageTest.cc
  2934. * test/DefaultPieceStorageTest.cc
  2935. * test/BtBitfieldMessageTest.cc
  2936. * test/BtHaveMessageTest.cc
  2937. * test/BtNotInterestedMessageTest.cc
  2938. * test/BtRequestMessageTest.cc
  2939. * test/PeerSessionResourceTest.cc
  2940. * test/DefaultBtMessageDispatcherTest.cc
  2941. * test/PeerTest.cc
  2942. * test/BtInterestedMessageTest.cc
  2943. * test/BtRejectMessageTest.cc
  2944. * test/BtChokeMessageTest.cc
  2945. * test/DefaultPeerStorageTest.cc
  2946. * test/BtHaveNoneMessageTest.cc
  2947. * test/BtHaveAllMessageTest.cc
  2948. * test/DefaultExtensionMessageFactoryTest.cc
  2949. * test/BtUnchokeMessageTest.cc
  2950. * test/DefaultBtMessageFactoryTest.cc
  2951. * test/HandshakeExtensionMessageTest.cc
  2952. * test/UTPexExtensionMessageTest.cc
  2953. * test/DefaultBtRequestFactoryTest.cc
  2954. * test/BtPieceMessageTest.cc
  2955. Removed typedef PeerStats.
  2956. * src/PeerStat.h
  2957. * src/SegmentMan.cc
  2958. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2959. Added std namespace to copy, remove_copy, back_inserter,
  2960. front_inserter.
  2961. * src/RequestGroupMan.cc
  2962. * src/DefaultPieceStorage.cc
  2963. * src/StreamFileAllocationEntry.cc
  2964. * src/BtFileAllocationEntry.cc
  2965. * src/RequestGroup.cc
  2966. * src/MetalinkEntry.cc
  2967. * src/DelegatingPeerListProcessor.cc
  2968. * src/DefaultBtRequestFactory.cc
  2969. * src/DefaultBtMessageDispatcher.cc
  2970. * src/version_usage.cc: Included <algorithm>
  2971. * src/main.cc
  2972. * src/MetalinkParserController.cc
  2973. * src/DefaultBtContext.cc
  2974. * src/DownloadEngineFactory.cc
  2975. * src/a2algo.h
  2976. Removed.
  2977. * test/StreamUriListParserTest.cc
  2978. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  2980. ActivePeerConnectionCommand when it is given and
  2981. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  2982. * src/ActivePeerConnectionCommand.{h, cc}
  2983. * src/BtSetup.cc
  2984. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2985. Only add socket to DownloadEngine's select routine when peer or
  2986. localhost is unchoked and interested. This lowers CPU usage a
  2987. little bit.
  2988. * src/PeerInteractionCommand.cc
  2989. * src/PeerAbstractCommand.{h, cc}
  2990. * src/BtInteractive.h
  2991. * src/DefaultBtInteractive.{h, cc}
  2992. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2993. Revert previous change because get_peers message is needed for
  2994. announce_peer anyway.
  2995. * src/DHTGetPeersCommand.cc
  2996. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2997. Request peers thought DHT only when download hasn't finished.
  2998. * src/DHTGetPeersCommand.cc
  2999. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3000. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  3001. * src/DHTBucketRefreshTask.{h, cc}
  3002. * src/DHTSetup.cc
  3003. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  3005. standard classes.
  3006. Included string.h where mem* function are used.
  3007. Added namespace aria2.
  3008. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3009. Create directory before saving DHT routing table.
  3010. Now ios::failure is now handled properly.
  3011. * src/DHTAutoSaveCommand.cc
  3012. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. Removed unnecessary cerr.
  3014. * src/DownloadEngine.cc
  3015. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3016. Catch exception inside DHTMessageReceiver::receiveMessage().
  3017. Log unknown message.
  3018. * src/DHTMessageReceiver.{h, cc}
  3019. * src/DHTMessageFactory.h
  3020. * src/DHTMessageFactoryImpl.{h, cc}
  3021. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  3022. * src/DHTInteractionCommand.cc
  3023. * src/DHTUnknownMessage.{h, cc}
  3024. * test/DHTUnknownMessageTest.cc
  3025. * test/MockDHTMessageFactory.h
  3026. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Commented out ip address comparison because a host can have multiple
  3028. ip addresses and it is hard to predict the hostname is resolved into
  3029. which one.
  3030. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  3031. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3032. * po/Makefile.in: Removed since this is generated by configure.
  3033. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3034. Fixed compiler warning about redefinition of SIZE_MAX.
  3035. Use common.h instead of config.h directly here.
  3036. * src/Platform.{h, cc}
  3037. The check of ENABLE_NLS is made in gettext.h, so it is not required
  3038. here.
  3039. * common.h
  3040. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  3041. Updated gettext related files.
  3042. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  3043. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  3044. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3045. Added DHT functionality, compatible with mainline.
  3046. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  3047. You may need to specify entry point to DHT network using
  3048. --dht-entry-point. DHT uses UDP port to listen incoming message.
  3049. Use --dht-listen-port to specify port number. Make sure that your
  3050. firewall configuration can pass through UDP traffic to the port.
  3051. The routing table is saved in $HOME/.aria2/dht.dat.
  3052. * src/DHT*
  3053. * src/BNode.{h, cc}
  3054. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  3055. particular torrent.
  3056. * src/Data.cc: Rewritten ctor.
  3057. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  3058. --dht-entry-point.
  3059. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  3060. * src/RequestGroup.cc: Initialize DHT functionality. When download
  3061. ends, remove BtContext from DHTPeerAnnounceStorage.
  3062. * src/BtPortMessage.{h, cc}: Rewritten.
  3063. * src/message.h
  3064. * src/OptionHandlerImpl.cc
  3065. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  3066. --dht-entry-point.
  3067. * src/Dictionary.{h, cc} (remove): New function.
  3068. * src/prefs.h
  3069. * src/DefaultBtMessageFactory.h
  3070. * src/BtHandshakeMessage.cc
  3071. * src/ActivePeerConnectionCommand.cc
  3072. * src/SocketCore.{h, cc}: Added datagram socket support.
  3073. * src/DefaultBtMessageFactory.cc
  3074. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  3075. Create DHT commands.
  3076. * src/BtMessageFactory.h
  3077. * src/PeerMessageUtil.{h, cc}
  3078. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Fixed the bug that log file is not written when configuration file doesn't exist.
  3080. This is caused by using Logger class before LogFactory is not configured.
  3081. BUG #1875079
  3082. * src/option_processing.cc
  3083. Warning message "configuration doesn't exist" is only printed when --conf is
  3084. given.
  3085. * src/option_processing.cc
  3086. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3087. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  3088. ShaVisitor is now deprecated and slated to be removed.
  3089. * src/DefaultBtContext.cc
  3090. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Externalize message to message.h
  3092. * src/Platform.cc
  3093. * src/message.h
  3094. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3095. Set default domain and default path to cookie.
  3096. * src/HttpResponse.cc
  3097. * src/CookieBox.{h, cc}
  3098. * src/CookieParser.{h, cc}
  3099. * test/CookieParserTest.cc
  3100. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3101. Added --no-conf and --conf-path command-line option.
  3102. --no-conf option disables loading aria2.conf file.
  3103. --conf-path option changes the configuration file path. The default
  3104. file path is $HOME/.aria2/aria2.conf
  3105. Added a warning message when the configuration file is not found.
  3106. * src/HelpItemFactory.cc
  3107. * src/option_processing.cc
  3108. * src/prefs.h
  3109. * src/usage_text.h
  3110. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3111. Added the message to inform users that other help categories are
  3112. available in -h option.
  3113. * src/version_usage.cc
  3114. * src/TagContainer.{h, cc}
  3115. * test/TagContainerTest.cc
  3116. * src/TaggedItem.{h, cc}
  3117. * test/TaggedItemTest.cc
  3118. * src/HelpItem.h
  3119. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3120. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  3121. from PiecedSegment's ctor.
  3122. Previously Piece::getAllMissingBlockIndexes() is called from
  3123. PiecedSegment() but it is rather expensive since only first element is
  3124. used.
  3125. * src/PiecedSegment.cc
  3126. * src/Piece.{h, cc}
  3127. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Rewritten get*Missing*Index functions. Now no need to allocate memory
  3129. each time these functions are called.
  3130. * src/BitfieldMan.{h, cc}
  3131. * test/BitfieldManTest.cc
  3132. * src/array_fun.h
  3133. * test/array_funTest.cc
  3134. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  3135. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  3136. filtered. Removed unnecessary cast to int32_t.
  3137. * src/BitfieldMan.{h, cc}
  3138. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  3140. payload length(4bytes) are received. This happens because lenbufLength
  3141. is not updated in this particular case and successive call of
  3142. receiveMessage() overwrites payload length with bytes recieved which
  3143. are payload body.
  3144. * src/PeerConnection.{h, cc}
  3145. * src/message.h
  3146. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3147. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  3148. peer if there are peers that have same ipaddr and port.
  3149. I've experiened segmentation fault and "pure virtual function was
  3150. called" error.
  3151. * src/Peer.h
  3152. * test/PeerTest.cc
  3153. * src/DefaultPeerStorage.cc
  3154. * test/DefaultPeerStorageTest.cc
  3155. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. Removed a call to isPowerOf() because it is no longer necessary here
  3157. and a request block is not always power of 2.
  3158. BUG#1866924
  3159. * src/PeerMessageUtil.cc (checkLength)
  3160. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Fixed the bug that always first found Segment is removed from
  3162. usedSegmentEntries. Removed unused functions.
  3163. * src/SegmentMan.{h, cc}
  3164. * test/SegmentManTest.cc
  3165. Fixed the bug that ServerHost is not removed.
  3166. * src/RequestGroup.cc
  3167. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. Fixed the bug that SegmentMan::completeSegment() is not called
  3169. even if Segment is complete when --lowest-speed-limit is enabled.
  3170. BUG#1864525
  3171. * src/DownloadCommand.{h, cc}
  3172. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. Fixed: hash algorithm 'sha1' is always used.
  3174. * src/DownloadCommand.cc (validatePieceHash)
  3175. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Added --enable-peer-exchange command-line option.
  3177. * src/OptionHandlerFactory.cc
  3178. * src/HelpItemFactory.cc
  3179. * src/option_processing.cc
  3180. * src/usage_text.h
  3181. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3182. Move extension from BtRuntime to ExtensionMessageFactory, because
  3183. extension can be specified per peer, not per torrent.
  3184. * src/DefaultBtInteractive.cc
  3185. * src/BtRuntime.h
  3186. * src/ExtendedMessagingAware.h
  3187. * src/ExtensionMessageFactory.h
  3188. * src/DefaultExtensionMessageFactory.cc
  3189. * test/DefaultExtensionMessageFactoryTest.cc
  3190. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3191. Added categorized option help. Specify category using --help option.
  3192. Also added the ability to search options in forward match.
  3193. * src/HelpItem.{h, cc}
  3194. * test/HelpItemTest.cc
  3195. * src/HelpItemFactory.{h, cc}
  3196. * src/TagContainer.{h, cc}
  3197. * test/TagContainerTest.cc
  3198. * src/option_processing.cc
  3199. * src/prefs.h
  3200. * src/TaggedItem.{h, cc}
  3201. * test/TaggedItemTest.cc
  3202. * src/version_usage.cc
  3203. * src/help_tags.h
  3204. * src/usage_text.h
  3205. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Fixed segmentation fault when bad torrent metainfo is parsed.
  3207. Added dynamic_cast properly to detect the misconfiguration of metainfo
  3208. and then throw exception or skip it.
  3209. * src/DefaultBtContext.{h, cc}
  3210. * test/DefaultBtContextTest.cc
  3211. * src/AnnounceList.cc
  3212. * src/CompactPeerListProcessor.cc
  3213. * src/message.h
  3214. * src/DefaultBtAnnounce.{h, cc}
  3215. * test/DefaultBtAnnounceTest.cc
  3216. * src/BencodeVisitor.cc
  3217. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Added missing "B"(=Byte). So now the message looks like this:
  3219. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  3220. * src/message.h (MSG_SHARE_RATIO_REPORT)
  3221. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3222. Show the seed ratio after torrent downloads.
  3223. For example, after torrent download completed and --seed-time and
  3224. --seed-ratio conditions are fulfilled, following message is printed
  3225. right after "Download complete: .....":
  3226. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  3227. * src/RequestGroupMan.cc
  3228. * src/RequestGroup.{h, cc}
  3229. * src/message.h
  3230. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3231. Remove a defunct control file. A defunct control file means that while
  3232. it exists, but the corresponding download file is missing.
  3233. After its removal, a download restarts from the beginning.
  3234. * src/RequestGroup.cc
  3235. * src/message.h
  3236. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Allocate bitfield in Peer when it is really used. More specifically,
  3238. bitfield in Peer is allocated after the connection is established and
  3239. deallocated when the connection is dropped.
  3240. Since 2 parameters(piece length and total length) was removed from the
  3241. constructor of Peer class, many test classes were modified accordingly.
  3242. See svn log for more detailed information.
  3243. * src/PeerInteractionCommand.cc
  3244. * src/CompactPeerListProcessor.cc
  3245. * src/Peer.cc
  3246. * src/DefaultPeerListProcessor.cc
  3247. * src/PeerListenCommand.cc
  3248. * src/PeerReceiveHandshakeCommand.cc
  3249. Fixed memory leak
  3250. * src/Piece.cc
  3251. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  3253. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  3254. command-line options.
  3255. * src/option_processing.cc
  3256. * src/ActivePeerConnectionCommand.cc
  3257. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3258. Send have message to peer if it already has the piece.
  3259. * src/BtHaveMessage.{h, cc}
  3260. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3261. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  3262. port.
  3263. * src/DefaultPeerStorage.{h, cc}
  3264. * test/DefaultPeerStorageTest.cc
  3265. * src/HandshakeExtensionMessage.cc
  3266. * test/HandshakeExtensionMessageTest.cc
  3267. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  3268. * src/PeerStorage.h
  3269. * test/MockPeerStorage.h
  3270. * src/PeerListenCommand.cc
  3271. * src/PeerReceiveHandshakeCommand.cc
  3272. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3273. Added --metalink-enable-unique-protocol option.
  3274. * src/Metalink2RequestGroup.cc
  3275. * src/option_processing.cc
  3276. * src/prefs.h
  3277. * src/version_usage.cc
  3278. * doc/aria2c.1.txt
  3279. * doc/aria2c.1
  3280. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3281. Allow a peer in incomingPeer to be added peers.
  3282. * src/DefaultPeerStorage.cc
  3283. * test/DefaultPeerStorageTest.cc
  3284. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3285. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  3286. I could reproduce this bug in following procedure:
  3287. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  3288. 2. Restart aria2.
  3289. 3. You see the download stopped around 99%.
  3290. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  3291. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  3292. If timeout is reached, then _nextCommand is unused and it may contains
  3293. segments and they won't be canceled. Actually, timeout is not needed
  3294. here because if the server dropped connection, then retry is made.
  3295. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Added uTorrent compatible Peer Exchange.
  3297. * src/BencodeVisitor.{h, cc}
  3298. * test/BencodeVisitorTest.cc
  3299. * src/BtConstants.h
  3300. * src/BtContext.h: Added 'private' flag.
  3301. * src/BtExtendedMessage.{h, cc}
  3302. * test/BtExtendedMessageTest.cc
  3303. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  3304. reserved field.
  3305. * test/BtHandshakeMessageTest.cc
  3306. * src/BtMessageFactory.h
  3307. * src/BtRegistry.h
  3308. * src/BtRuntime.h: This class holds default extension message IDs for
  3309. aria2. By default, aria2 uses ID 8 for ut_pex.
  3310. * src/DefaultBtContext.cc
  3311. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  3312. When it is true, aria2 enables ut_pex. This value is set by
  3313. PeerInteractionCommand.
  3314. * src/DefaultBtMessageFactory.{h, cc}
  3315. * test/DefaultBtMessageFactoryTest.cc
  3316. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  3317. handling to DefaultBtInteractive class.
  3318. * src/DefaultExtensionMessageFactory.{h, cc}
  3319. * test/DefaultExtensionMessageFactoryTest.cc
  3320. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  3321. the container(peers and incomingPeers. The equality is determined by
  3322. Peer::id).
  3323. * test/DefaultPeerStorageTest.cc
  3324. * src/ExtensionMessage.h
  3325. * test/MockExtensionMessage.h
  3326. * src/ExtensionMessageFactory.h
  3327. * test/MockExtensionMessageFactory.h
  3328. * src/HandshakeExtensionMessage.{h, cc}
  3329. * test/HandshakeExtensionMessageTest.cc
  3330. * src/MetaEntry.h
  3331. * src/Peer.{h, cc}
  3332. * src/PeerInteractionCommand.cc
  3333. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  3334. addIncomingPeer.
  3335. * src/PeerMessageUtil.{h, cc}
  3336. * src/PeerObject.h
  3337. * src/UTPexExtensionMessage.{h, cc}
  3338. * test/UTPexExtensionMessageTest.cc
  3339. * src/message.h
  3340. * src/prefs.h
  3341. Fixed the bug that returns incomplete data when it contains null
  3342. character. A convenient constructor was also added.
  3343. * src/Data.{h, cc}
  3344. Rewritten.
  3345. * src/CompactPeerListProcessor.cc
  3346. Fixed typos.
  3347. * src/message.h
  3348. * src/MetaFileUtil.cc
  3349. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. Added "Status Legend" label to the explanation text of 'stat' in
  3351. download result and moved it to the last. BUG#1848214
  3352. * src/RequestGroupMan.cc
  3353. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3354. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  3355. * src/Makefie.am
  3356. * test/Makefile.am
  3357. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3358. Fixed the bug that prevents aria2 from loading cookie file when expire
  3359. value is greater than 2^31-1. BUG#1851066
  3360. * src/CookieBoxFactory.cc
  3361. * test/CookieBoxFactoryTest.cc
  3362. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3363. Fixed possible memory leak when an exception is thrown.
  3364. * src/XML2SAXMetalinkProcessor.cc
  3365. Added Expat support. If both libxml2 and Expat are installed, then
  3366. libxml2 is used by default.
  3367. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  3368. ExpatMetalinkProcessor according to the configuration.
  3369. * src/ExpatMetalinkProcessor.{h, cc}
  3370. * src/main.cc: Removed libxml2 specific header and init/free function.
  3371. * src/MetalinkProcessorFactory.{h, cc}
  3372. * src/MetalinkHelper.cc
  3373. * src/Metalinker.h: Removed unnecessary libxml2 header.
  3374. * src/MetalinkProcessor.h
  3375. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  3376. MetalinkProcessorTest is used instead.
  3377. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  3378. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  3379. MetalinkProcessorFactory::newInstance().
  3380. * m4/libexpat.m4
  3381. * configure.ac: Added configuration options for libexpat.
  3382. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Disabled -s option in metalink download.
  3384. * src/Metalink2RequestGroup.cc
  3385. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3386. If several protocols are available for a mirror in metalink file,
  3387. aria2 now use one of them. --metalink-preferred-protocol option was
  3388. added to specify the preference of protocol.
  3389. * src/AbstractCommand.cc
  3390. * src/OptionHandlerFactory.cc
  3391. * src/ServerHost.{h, cc}
  3392. * src/Metalink2RequestGroup.cc
  3393. * src/RequestGroup.{h, cc}
  3394. * test/RequestGroupTest.cc
  3395. * src/option_processing.cc
  3396. * src/prefs.h
  3397. * src/HttpResponseCommand.cc
  3398. * src/MetalinkResource.{h, cc}
  3399. * src/FtpNegotiationCommand.cc
  3400. * src/MetalinkEntry.{h, cc}
  3401. * src/MetalinkEntryTest.cc
  3402. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. Code cleanup and added debug log.
  3404. * src/PeerConnection.cc
  3405. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. Compiler error fix: applied the patch by Tiziano Mueller
  3407. * src/RequestGroup.cc
  3408. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Fixed the bug: only first announce URL is tried in AnnounceTier,
  3410. in stopped and completed event.
  3411. * src/AnnounceList.{h, cc}
  3412. * test/AnnounceListTest.cc
  3413. * src/DefaultBtAnnounce.cc
  3414. * test/DefaultBtAnnounceTest.cc
  3415. Sorted URLs.
  3416. * test/Metalink2RequestGroupTest.cc
  3417. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3418. Removed unnecessary string copy. Updated doc and corrected indentation.
  3419. * src/Base64.cc
  3420. Fixed compilation warnings
  3421. * test/DataTest.cc
  3422. * test/HttpRequestTest.cc
  3423. * test/MetaFileUtilTest.cc
  3424. * test/RequestTest.cc
  3425. * Release 0.12.0
  3426. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3427. Updated translations
  3428. * po/{de,fr,ja,nl,ru}.po
  3429. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  3430. translations. Many thanks to translators.
  3431. * po/{ca,es,it,pt_BR,sv}.po
  3432. * po/LINGUAS
  3433. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3434. Added a notice about URL
  3435. * src/version_usage.cc
  3436. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  3437. Fixed the bug#1845750; CTRL+C does not stop torrent.
  3438. aria2 repeatedly sends stopped request when tracker returns error code.
  3439. * src/AnnounceList.cc
  3440. * test/AnnounceListTest.cc
  3441. * src/AnnounceTier.h
  3442. Added a message when ctrl-c is hit.
  3443. Now second ctrl-c is also handled in signal handler.
  3444. * src/RequestGroupMan.{h, cc}
  3445. * src/RequestGroup.{h, cc}
  3446. * src/MultiUrlRequestInfo.cc
  3447. * src/DownloadEngine.cc
  3448. * src/TrackerWatcherCommand.cc
  3449. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3450. Code cleanup
  3451. * src/Base64.cc (encode)
  3452. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3453. Changed Direct/IO enable/disable procesure in file allocation routine.
  3454. * src/SingleFileAllocationIterator.cc
  3455. (SingleFileAllocationIterator):
  3456. Disable directIO if offset is not multiple of 512.
  3457. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  3458. * src/MultiFileAllocationIterator.cc (allocateChunk):
  3459. Enable created SingleFileAllocationIterator's directIO.
  3460. * src/FileAllocationEntry.cc
  3461. (FileAllocationEntry): Enable directIO here.
  3462. (~FileAllocationEntry): Disable directIO here.
  3463. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3464. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  3465. * src/Peer.{h, cc}
  3466. * src/DefaultPieceStorage.cc
  3467. * test/DefaultPieceStorageTest.cc
  3468. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3469. Rewritten direct I/O support routine
  3470. * src/SingleFileAllocationIterator.cc
  3471. * src/MultiDiskAdaptor.{h, cc}
  3472. * src/ByteArrayDiskWriter.h
  3473. * src/AbstractSingleDiskAdaptor.h
  3474. * src/AbstractDiskWriter.cc
  3475. * src/DefaultPieceStorage.cc
  3476. * src/DiskWriter.h
  3477. * src/BinaryStream.h
  3478. * src/IteratableChunkChecksumValidator.cc
  3479. * src/IteratableChecksumValidator.cc
  3480. * src/CheckIntegrityEntry.cc
  3481. * src/FileAllocationEntry.cc
  3482. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3483. Fixed typo
  3484. * src/version_usage.cc
  3485. Updated doc
  3486. * doc/aria2c.1.txt
  3487. * doc/aria2c.1
  3488. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3489. Fixed compile error without message digest support.
  3490. * src/FileMetalinkParserState.cc
  3491. * src/MetalinkParserController.{h, cc}
  3492. * test/XML2SAXMetalinkProcessorTest.cc
  3493. * test/MetalinkParserControllerTest.cc
  3494. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3495. Enable direct I/O support in checksum checking.
  3496. * src/IteratableChunkChecksumValidator.{h, cc}
  3497. * test/IteratableChunkChecksumValidatorTest.cc
  3498. * src/CheckIntegrityEntry.cc
  3499. * src/PieceHashCheckIntegrityEntry.cc
  3500. * src/IteratableChecksumValidator.{h, cc}
  3501. * src/BtCheckIntegrityEntry.cc: Added doc.
  3502. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Added --allow-piece-length-change option.
  3504. * src/DefaultBtProgressInfoFile.cc
  3505. * test/DefaultBtProgressInfoFileTest.cc
  3506. * src/OptionHandlerFactory.cc
  3507. * src/option_processing.cc
  3508. * src/prefs.h
  3509. * src/version_usage.cc
  3510. * doc/aria2c.1.txt
  3511. * doc/aria2c.1
  3512. Fixed: duplicated result entry appears when exception is thrown in
  3513. RequestGroup::createInitiateConnectionCommand().
  3514. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  3515. Add RequestGroup to _requestGroup after RequetGroup::
  3516. createInitiateConnectionCommand() succeeds.
  3517. Externalized message
  3518. * src/XML2SAXMetalinkProcessor.cc
  3519. * src/message.h
  3520. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Forced download abort when received negative response from http/ftp
  3522. server.
  3523. * src/HttpResponseCommand.cc
  3524. * src/FtpNegotiationCommand.cc
  3525. * src/HttpResponse.cc
  3526. * src/FtpConnection.cc
  3527. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3528. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  3529. the predecessor, Xml2MetalinkParser class.
  3530. I tested them against 94KB metalink file with 1234 chunk checksums.
  3531. The new one parsed it in 22msec, while it took 6000msec with old one.
  3532. * src/XML2SAXMetalinkProcessor.{h, cc}
  3533. * test/XML2SAXMetalinkProcessorTest.cc
  3534. * src/MetalinkParserController.{h, cc}
  3535. * test/MetalinkParserControllerTest.cc
  3536. * src/MetalinkParserState.h: Also added 16 subclasses.
  3537. * src/main.cc
  3538. * src/Metalink2RequestGroup.cc
  3539. * src/MetalinkHelper.cc
  3540. * src/MetalinkEntry.cc
  3541. * src/ChunkChecksum.h
  3542. Rewritten Base64 class for better performance.
  3543. * src/Base64.{h, cc}
  3544. * test/Base64Test.cc
  3545. * src/HttpRequest.cc
  3546. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3547. Fixed the bug#1841757: aria2 will connect to server to only get
  3548. file size.
  3549. * src/StreamFileAllocationEntry.cc
  3550. * src/option_processing.cc
  3551. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  3552. downloads.
  3553. * src/FtpNegotiationCommand.cc
  3554. Suppressed wrong message when finding PreDownloadHandler
  3555. * src/RequestGroup.cc
  3556. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3557. Updated usage
  3558. * src/version_usage.cc
  3559. Updated man page
  3560. * doc/aria2c.1.txt
  3561. * doc/aria2c.1
  3562. Updated po files
  3563. * po/aria2c.pot
  3564. * po/*.po
  3565. * po/*.gmo
  3566. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Eliminated g++-4.2 warning
  3568. * src/DownloadHandlerConstants.{h, cc}
  3569. * src/Util.cc
  3570. * test/MetaFileUtilTest.cc
  3571. * test/PStringBuildVisitorTest.cc
  3572. Fixed bug: --check-integrity doesn't work for multi file torrent.
  3573. * src/RequestGroup.cc
  3574. * src/BtCheckIntegrityEntry.cc
  3575. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3576. Fixed a2io.h
  3577. * src/a2io.h
  3578. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Added direct I/O support. The current implementation uses O_DIRECT,
  3580. which is not posix standard and is tested on linux 2.6.21.
  3581. Currently only file allocation uses direct I/O.
  3582. * src/SingleFileAllocationIterator.{h, cc}
  3583. * test/SingleFileAllocationIteratorTest.cc
  3584. * src/MultiFileAllocationIterator.{h, cc}
  3585. * test/MultiFileAllocationIteratorTest.cc
  3586. * src/BinaryStream.h
  3587. * src/DiskWriter.h
  3588. * src/AbstractDiskWriter.{h, cc}
  3589. * src/ByteArrayDiskWriter.h
  3590. * src/DiskAdaptor.h
  3591. * src/AbstractSingleDiskAdaptor.{h, cc}
  3592. * src/MultiDiskAdaptor.{h, cc}
  3593. * src/FileAllocationEntry.cc
  3594. * src/Util.{h, cc}
  3595. * src/OptionHandlerFactory.cc
  3596. * src/prefs.h
  3597. * src/version_usage.cc
  3598. * src/option_processing.cc
  3599. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  3600. handleException.
  3601. * src/MultiFileAllocationIterator.cc
  3602. Added EINTR handling
  3603. * src/SocketCore.cc
  3604. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3605. Updated usage
  3606. * src/version_usage.cc
  3607. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Applied Ross's patch for MinGW port.
  3609. * src/DownloadEngine.h
  3610. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Set Content-Type to SingleFileDownloadContext when http response is
  3612. received.
  3613. * src/HttpResponseCommand.cc
  3614. * src/HttpResponse.{h, cc}
  3615. * test/HttpResponseTest.cc
  3616. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3617. Rewritten to add content-type support.
  3618. * src/DownloadHandler.{h, cc}
  3619. * src/BtPostDownloadHandler.{h, cc}
  3620. * test/BtPostDownloadHandlerTest.cc
  3621. * src/MetalinkPostDownloadHandler.{h, cc}
  3622. * test/MetalinkPostDownloadHandlerTest.cc
  3623. * src/PostDownloadHandler.{h, cc}
  3624. * src/DownloadHandlerConstants.{h, cc}
  3625. * src/RequestGroup.cc
  3626. * src/HttpResponseCommand.cc
  3627. * src/FtpNegotiationCommand.cc
  3628. * src/SingleFileDownloadContext.{h, cc}
  3629. * src/RequestGroup.h
  3630. * src/RequestGroupCriteria.h
  3631. * src/ContentTypeRequestGroupCriteria.h
  3632. Added 'mem' option value for --follow-metalink, --follow-torrent.
  3633. If it is give, metalink/torrent file is not written to the disk, but
  3634. just is kept in memory. Parsing is occurred on memory.
  3635. * src/MetalinkHelper.{h, cc}
  3636. * src/MetalinkProcessor.h
  3637. * src/Xml2MetalinkProcessor.{h, cc}
  3638. * test/Xml2MetalinkProcessorTest.cc
  3639. * src/DownloadHandlerFactory.{h, cc}
  3640. * test/DownloadHandlerFactoryTest.cc
  3641. * src/PreDownloadHandler.{h, cc}
  3642. * src/OptionHandlerFactory.cc
  3643. * src/DefaultBtContext.{h, cc}
  3644. * test/DefaultBtContextTest.cc
  3645. * src/version_usage.cc
  3646. * src/Metalink2RequestGroup.{h, cc}
  3647. * src/RequestGroup.{h, cc}
  3648. * src/a2functional.h
  3649. * test/a2functionalTest.cc
  3650. * src/MemoryBufferPreDownloadHandler.{h, cc}
  3651. * src/OptionHandlerImpl.h
  3652. * src/prefs.h
  3653. * src/Util.{h, cc}
  3654. * test/UtilTest.cc
  3655. Keep DownloadResult rather than RequestGroup after downloads to reduce
  3656. memory usage.
  3657. * src/RequestGroupMan.{h, cc}
  3658. * src/DownloadEngine.cc
  3659. * src/BtDependency.{h, cc}: Changed the type of dependee from
  3660. WeakHandle to SharedHandle because WeakHandle could be null.
  3661. * src/RequestGroup.{h, cc}
  3662. * src/DownloadEngineFactory.cc
  3663. * src/DownloadResult.h
  3664. Set totalLength after download finished
  3665. * src/UnknownLengthPieceStorage.{h, cc}
  3666. Keep torrent file specified in metalink in memory.
  3667. * src/Metalink2RequestGroup.cc
  3668. * src/BtDependency.cc
  3669. * src/TrueRequestGroupCriteria.h
  3670. Fixed the bug: seekg is used where seekp should be used.
  3671. * src/ByteArrayDiskWriter.cc
  3672. * test/ByteArraydiskWriterTest.cc
  3673. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Fixed syntax error
  3675. * test/SequenceTest.cc
  3676. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3677. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  3678. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  3679. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  3680. * src/RequestGroup.cc (downloadFinishedByFileLength)
  3681. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Added the check to see whether ares_host_callback accepts timeouts
  3683. with c-ares; only c-ares 1.5.0 or newer accepts it.
  3684. * src/NameResolver.{h, cc}
  3685. * m4/libcares.m4
  3686. * configure.ac: Set C++ for language choice.
  3687. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Fixed: compilation fails without c-ares/ares
  3689. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  3690. Generate http/ftp commands only when download is incomplete.
  3691. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  3692. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Corrected typo. Examples are removed since they are available in man
  3694. page.
  3695. * src/version_usage.cc
  3696. Updated man page.
  3697. * doc/aria2c.1
  3698. * doc/aria2c.1.txt
  3699. * doc/makeman: Commented out sed command.
  3700. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Throw DlAbortEx when a remote file is not found.
  3702. * src/HttpResponse.cc
  3703. * src/FtpNegotiationCommand.cc
  3704. * src/message.h
  3705. Overwrite an existing file if --allow-overwrite=true is given.
  3706. * src/RequestGroup.cc
  3707. Removed unused functions
  3708. * src/AbstractCommand.h
  3709. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Removed 'extern' from 'extern typedef ...' in src/*.h
  3711. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3712. Updated usage
  3713. * src/version_usage.cc
  3714. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Trim announce URL
  3716. * src/DefaultBtContext.cc
  3717. * test/ShaVisitorTest.cc
  3718. Trim argument s. Give trimed s to exception constructor.
  3719. * src/Util.cc (parseInt)(parseLLInt)
  3720. * test/UtilTest.cc
  3721. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Set precision back to 1.
  3723. * src/ConsoleStatCalc.cc (calculateStat)
  3724. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Replaced strtol with Util::parseInt
  3726. * src/ChunkedEncoding.cc
  3727. * src/HttpConnection.cc
  3728. * src/CookieBoxFactory.cc
  3729. * src/ParameterizedStringParser.cc
  3730. * src/Util.cc
  3731. * test/UtilTest.cc
  3732. * test/OptionHandlerTest.cc
  3733. * src/Request.cc
  3734. Throw exception when empty string is given. The message for exception
  3735. changed.
  3736. * src/Util.cc (parseInt)(parseLLInt)
  3737. * src/message.h
  3738. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3739. Set precision to 2 because share ratio is rounded into 1.0 if precision
  3740. set to 1.
  3741. * src/ConsoleStatCalc.cc (calculateStat)
  3742. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3743. Preallocate non-requested file which is adjacent forward to requested
  3744. file('requested' files means the files given in --select-file option)
  3745. if they share a same piece.
  3746. This fixes long pause in the file system which doesn't support sparse
  3747. files like FAT32 while downloading.
  3748. * src/MultiFileAllocationIterator.{h, cc}
  3749. * test/MultiFileAllocationIteratorTest.cc
  3750. * src/FileEntry.{h, cc}
  3751. Removed unused _option.
  3752. * src/MultiDiskAdaptor.h
  3753. * test/MultiDiskAdaptorTest.cc
  3754. * src/DefaultPieceStorage.cc
  3755. Set the default value of --seed-ratio to 1.0.
  3756. If 0.0 is given, then seeding continues regardless of share ratio.
  3757. * src/version_usage.cc
  3758. * src/option_processing.cc
  3759. * src/BtSetup.cc
  3760. * doc/aria2c.1.txt
  3761. * doc/aria2c.1
  3762. Fixed: Selective download is not working in BitTorrent
  3763. * src/RequestGroup.cc
  3764. Introduced Sequence class. Use this instead of Util::unfoldRange()
  3765. * src/PieceStorage.h
  3766. * test/MockPieceStorage.h
  3767. * src/UnknownLengthPieceStorage.h
  3768. * src/DefaultPieceStorage.{h, cc}
  3769. * src/Metalink2RequestGroup.cc
  3770. * src/RequestGroup.cc
  3771. * src/Sequence.h
  3772. * test/SequenceTest.cc
  3773. * src/IntSequence.h
  3774. * src/message.h
  3775. * src/Util.{h, cc}
  3776. * test/UtilTest.cc
  3777. Added new function 'parse' to catch exception thrown by subclass's
  3778. parseArg
  3779. * src/OptionHandler.h
  3780. * src/OptionParser.cc
  3781. * src/NameMatchOptionHandler.h
  3782. * src/OptionHandlerImpl.h
  3783. * test/OptionHandlerTest.cc
  3784. Added IntegerRangeOptionHandler. Used for --listen-port and
  3785. --select-file. Now --listen-port accepts range of port.
  3786. * src/OptionHandlerFactory.cc
  3787. * src/version_usage.cc
  3788. * src/OptionHandlerImpl.h
  3789. * src/option_processing.cc
  3790. * src/BtSetup.cc
  3791. * src/PeerListenCommand.{h, cc}
  3792. * doc/aria2c.1.txt
  3793. * doc/aria2c.1
  3794. Implemented operator< for Exception class to provide easy way to print
  3795. exception stack trace.
  3796. * src/Exception.{h, cc}
  3797. * src/main.cc
  3798. * src/option_processing.cc
  3799. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. * src/version_usage.cc
  3801. (showVersion): Reworked.
  3802. (showUsage): Added examples.
  3803. Removed Hint for total length and file name.
  3804. * src/Metalink2RequestGroup.cc
  3805. * src/RequestGroup.{h, cc}
  3806. * src/HttpResponseCommand.cc
  3807. * src/FtpNegotiationCommand.cc
  3808. Now --follow-torrent and --follow-metalink option work properly.
  3809. * src/RequestGroup.cc
  3810. Updated man page
  3811. * doc/aria2c.1.txt
  3812. * doc/aria2c.1
  3813. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Removed.
  3815. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  3816. Use Segment::operator==()
  3817. * src/HttpConnection.cc
  3818. * src/Segment.h
  3819. Updated usage
  3820. * src/version_usage.cc
  3821. Added EINTR treatment.
  3822. * src/SocketCore.cc
  3823. * src/AbstractDiskWriter.cc
  3824. Rewritten.
  3825. * src/Util.cc (rangedFileCopy)
  3826. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Fixed typo.
  3828. * src/version_usage.cc
  3829. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3830. Implemented. Now -c option works fine.
  3831. * src/DefaultPieceStorage.cc (markPiecesDone)
  3832. * test/DefaultPieceStorageTest.cc
  3833. Removed.
  3834. * src/SegmentMan.{h, cc}
  3835. (markAllPiecesDone)
  3836. (markPieceDone)
  3837. Synchronized po files with
  3838. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  3839. * src/fr.po
  3840. * src/ru.po
  3841. * src/de.po
  3842. * src/ja.po
  3843. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Added ifdef and some modifications to compile without BitTorrent,
  3845. Metalink, MessageDigest
  3846. support.
  3847. * src/PieceHashCheckIntegrityEntry.cc
  3848. * src/MetalinkEntry.h
  3849. * src/version_usage.cc
  3850. * src/main.cc
  3851. * src/DownloadEngine.{h, cc}
  3852. * src/Metalink2RequestGroup.cc
  3853. * src/Peer.cc
  3854. * src/RequestGroup.cc
  3855. * src/MetalinkHelper.cc
  3856. * test/DefaultPieceStorageTest.cc
  3857. * test/MetalinkPostDownloadHandlerTest.cc
  3858. * test/Metalink2RequestGroupTest.cc
  3859. Hide TOTAL SPD when all downloads complete.
  3860. * src/ConsoleStatCalc.cc
  3861. Log target system information.
  3862. * src/main.cc
  3863. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3864. Now --metalink-location accepts a comma-deliminated list of locations.
  3865. * src/MetalinkEntry.{h, cc}
  3866. * test/MetalinkEntryTest.cc
  3867. * src/version_usage.cc
  3868. * src/Metalink2RequestGroup.cc
  3869. * src/Xml2MetalinkProcessor.cc
  3870. * test/Xml2MetalinkProcessorTest.cc
  3871. * doc/aria2c.1.txt
  3872. * doc/aria2c.1
  3873. * src/Util.cc (toUpper)(toLower): Rewritten.
  3874. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3875. Added the ability to detect duplicate download entry which is about to
  3876. download the same file other RequestGroup is downloading.
  3877. * src/RequestGroup.cc
  3878. * src/HttpResponseCommand.cc
  3879. * src/FtpNegotiationCommand.cc
  3880. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Recalculates download progress when loading a control file,
  3882. if the piece length of DownloadContext is different from the one saved
  3883. in the control file. Currently in-flight pieces are ignored.
  3884. * src/DefaultBtProgressInfoFile.cc
  3885. * test/DefaultBtProgressInfoFileTest.cc
  3886. * src/Util.{h, cc}
  3887. * test/UtilTest.cc
  3888. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3889. Do not rotate tiers in announce-list.
  3890. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  3891. AnnounceList::allTiersFailed() used instead to detect whether all
  3892. tiers are tried and failed.
  3893. * test/DefaultBtAnnounceTest.cc
  3894. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  3895. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  3896. * test/AnnounceListTest.cc
  3897. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  3898. clause. Catch RecoverableException instead of DlRetryEx instead.
  3899. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3900. Implemented checksum validation feature(1 checksum for each file)
  3901. The validation takes place after the download.
  3902. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  3903. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  3904. * src/CheckIntegrityCommand.cc: Changed log message.
  3905. * src/Metalink2RequestGroup.cc: Set checksum to
  3906. SingleFileDownloadContext.
  3907. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  3908. PieceHashCheckIntegrity class.
  3909. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  3910. PieceHashCheckIntegrity class.
  3911. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  3912. * src/IteratableValidator.h: New class.
  3913. * src/message.h
  3914. * src/CheckIntegrityEntry.{h, cc}
  3915. * src/IteratableChunkChecksumValidator.{h, cc}
  3916. * src/SingleFileDownloadContext.h
  3917. * src/DownloadCommand.cc
  3918. --allow-overwrite=true is no longer needed to check file integrity
  3919. before download in BitTorrent download.
  3920. * src/RequestGroup.cc (getInitialCommand)
  3921. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  3922. throws exception.
  3923. * src/RequestGroupMan.cc (getInitialCommands)
  3924. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. urlencode the given url inside Request::parseUrl(...)
  3926. * src/Request.{h, cc}
  3927. * src/Util.{h, cc}
  3928. * test/RequestTest.cc
  3929. Removed #!metalink3! notation support because it is deleted from
  3930. the metalink specification.
  3931. * src/Request.{h, cc}
  3932. * test/RequestTest.cc
  3933. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3934. Don't connect server before checking file integrity at startup, if
  3935. filesize and output file path are known.
  3936. * src/AbstractCommand.cc
  3937. * src/StreamFileAllocationEntry.cc
  3938. * src/Metalink2RequestGroup.cc
  3939. * src/RequestGroup.{h, cc}
  3940. * src/HttpResponseCommand.cc
  3941. * src/FtpNegotiationCommand.cc
  3942. Added DownloadFailureException. If it is thrown, RequestGroup should
  3943. halt.
  3944. * src/AbstractCommand.cc
  3945. * src/DownloadFailureException.h
  3946. * src/RequestGroup.cc
  3947. Catch RecoverableException, instead of DlAbortEx.
  3948. * src/RequestGroupMan.cc
  3949. * src/FillRequestGroupCommand.cc
  3950. * src/MetaFileUtil.cc
  3951. * src/IteratableChunkChecksumValidator.cc
  3952. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  3953. getGID())
  3954. * src/CheckIntegrityCommand.cc
  3955. * src/message.h
  3956. Print gid instead of idx.
  3957. * src/RequestGroupMan.cc
  3958. Removed exception throwers declaration.
  3959. * src/DirectDiskAdaptor.{h, cc}
  3960. * src/SocketCore.{h, cc}
  3961. * src/MultiDiskAdaptor.{h, cc}
  3962. * src/HttpConnection.{h, cc}
  3963. * src/HttpResponse.{h, cc}
  3964. * src/DiskAdaptor.{h, cc}
  3965. * src/CopyDiskAdaptor.{h, cc}
  3966. * src/MultiDiskAdaptor.{h, cc}
  3967. * src/HttpHeaderProcessor.{h, cc}
  3968. * src/AbstractSingleDiskAdaptor.{h, cc}
  3969. * src/Util.{h, cc}
  3970. * test/UtilTest.cc
  3971. * src/DefaultDiskWriter.{h, cc}
  3972. * src/FtpConnection.{h, cc}
  3973. * src/AbstractDiskWriter.{h, cc}
  3974. Removed duplicate code.
  3975. * src/StreamCheckIntegrityEntry.cc
  3976. Removed unnecessary include.
  3977. * src/DiskWriter.h
  3978. Included Exception.h
  3979. * src/option_processing.cc
  3980. Included 2 files and added doc
  3981. * src/TrackerWatcherCommand.cc
  3982. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  3983. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Changed CheckIntegrityEntry interface so that it can define
  3985. the action when all the chunk checksums are valid.
  3986. * src/CheckIntegrityEntry.h
  3987. * src/StreamCheckIntegrityEntry.{h, cc}
  3988. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  3989. are valid, then aira2 goes to seeding mode. Sometimes it is better
  3990. to exit rather than doing seeding. So, it would be good to toggle this
  3991. behavior.
  3992. * src/CheckIntegrityCommand.cc
  3993. * src/AbstractCommand.cc
  3994. * src/RequestGroup.cc
  3995. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Reflect the download length of in-flight pieces.
  3997. It makes the download length readout more precise.
  3998. * src/DefaultPieceStorage.{h, cc}
  3999. * test/DefaultPieceStorageTest.cc
  4000. * src/a2functional.h
  4001. * test/a2functionalTest.cc
  4002. Lower CPU load when --max-download-limit is used.
  4003. There is up and down in speed indicator when enabling
  4004. http-pipelining but a download goes well. I think the problem is that
  4005. because http-pipelining is enabled, DownloadCommand is created for
  4006. each segment and in its constructor, PeerStat::downloadStart() is
  4007. called. In PeerStat::downloadStart(), speed calculation object is
  4008. reseted, which makes download speed zero.
  4009. * src/DownloadCommand.cc
  4010. Rewritten using accumulate.
  4011. * src/RequestGroupMan.cc (calculateStat)
  4012. Code clearnup.
  4013. * src/FtpNegotiationCommand.cc
  4014. * src/HttpResponseCommand.cc
  4015. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Fixed: Can not resume: aria2 reports download already finished.
  4017. * src/AbstractCommand.{h, cc}
  4018. * src/HttpResponseCommand.cc
  4019. * src/FtpNegotiateCommand.cc
  4020. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4021. Now a file is stored in the directory specified in .metalnk file
  4022. (file[@name]).
  4023. * src/Metalink2RequestGroup.cc
  4024. Create the directory structure when opening the file if it doesn't
  4025. exist.
  4026. * src/AbstractDiskWriter.cc
  4027. * src/Util.{h, cc}
  4028. * src/File.h
  4029. * test/UtilTest.cc
  4030. Removed file name comparison
  4031. * src/Metalink2RequestGroup.cc
  4032. * src/HttpResponseCommand.cc
  4033. Rewritten using Util::mkdirs()
  4034. * src/FileEntry.cc (setupDir)
  4035. * test/FileEntryTest.cc
  4036. Updated doc
  4037. * src/SingleFileDownloadContext.h
  4038. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4039. Now SleepCommand dispatches nextCommand when halt is requested.
  4040. It avoids a possible long wait after hitting CTRL-C.
  4041. * src/SleepCommand.{h, cc}
  4042. * src/RequestGroupAware.{h, cc}
  4043. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4044. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  4045. to open listen port, then remove the port number from the tracker
  4046. request.
  4047. * src/DefaultBtAnnounce.cc
  4048. * test/DefaultBtAnnounceTest.cc
  4049. * test/MockPieceStorage.h
  4050. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  4051. them more testable.
  4052. * src/DefaultBtAnnounce.{h, cc}
  4053. * src/DefaultBtContext.{h, cc}
  4054. * src/Util.{h, cc}
  4055. * test/DefaultBtAnnounceTest.cc
  4056. * test/DefaultBtContextTest.cc
  4057. * test/UtilTest.cc
  4058. Added 'B' to upload bytes readout.
  4059. * src/ConsoleStatCalc.cc
  4060. Now the listen port for BitTorrent download is opened when it is
  4061. needed.
  4062. * src/DownloadEngineFactory.cc
  4063. * src/BtSetup.{h, cc}
  4064. * src/PeerListenCommand.{h, cc}
  4065. Now an exception thrown while parsing tracker response is now logged.
  4066. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  4067. called, which means no retry is made in this case, assuming a tracker
  4068. has a problem.
  4069. * src/TrackerWatcherCommand.cc
  4070. Fixed: downloading a file whose length is unkown fails.
  4071. * src/DownloadCommand.cc
  4072. Simplified prepareForNextSegment()
  4073. * src/DownloadCommand.cc
  4074. Updated
  4075. * po/POTFILES.in
  4076. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Re-implemented a file listing for Metalink, which was dropped while
  4078. http/ftp/torrent integration was being implemented.
  4079. * src/MetalinkHelper.{h, cc}: New class.
  4080. * test/MetalinkHelperTest.cc
  4081. * src/main.cc
  4082. * src/Metalink2RequestGroup.cc
  4083. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Added the ability to display the detailed torrent file information.
  4085. Now -S option gives not only a file listing, but also total download
  4086. length, info hash, announce URI, piece length, the number of pieces,
  4087. and mode(single or multi-torrent).
  4088. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  4089. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  4090. KiB)
  4091. * test/UtilTest.cc
  4092. * src/main.cc
  4093. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Added ftp://USER:PASSWD@Servername automatic parsing.
  4095. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  4096. _password. Recognize username and password in URI.
  4097. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  4098. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  4099. * src/RequestFactory.{h, cc}: Removed.
  4100. * src/AuthConfigFactory.{h, cc}: New class.
  4101. * src/FtpConnection.cc: Use AuthConfigFactory.
  4102. * src/HttpRequest.cc: Use AuthConfigFactory.
  4103. * test/HttpRequestTest.cc: Updated.
  4104. * test/RequestTest.cc: Updated.
  4105. * test/AuthConfigFactoryTest.cc: New class.
  4106. * test/RequestFactoryTest.cc: Removed.
  4107. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4108. Use RequestGroup::allDownloadFinished() to decide whether the control
  4109. file should be removed or saved.
  4110. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  4111. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  4112. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Use File::renameTo()
  4114. * src/DefaultBtProgressInfoFile.cc
  4115. Added --no-file-allocation-limit command-line option.
  4116. * src/version_usage.cc
  4117. * src/option_processing.cc
  4118. * src/OptionHandlerFactory.cc
  4119. * src/RequestGroup.{h, cc}
  4120. * src/BtCheckIntegrityEntry.cc
  4121. * src/StreamCheckIntegrityEntry.cc
  4122. * src/prefs.h
  4123. * doc/aria2c.1.txt
  4124. * doc/aria2c.1
  4125. Now prealloc is the default value for --file-allocation option.
  4126. * src/version_usage.cc
  4127. * src/option_processing.cc
  4128. * doc/aria2c.1.txt
  4129. * doc/aria2c.1
  4130. Don't URL-encode user-agent.
  4131. * src/HttpRequest.cc
  4132. Updated translations
  4133. * po/LINGUAS: Added nl for Dutch translation.
  4134. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  4135. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  4136. * po/POTFILES.in: Updated.
  4137. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Added the ability to recognize url-list in a torrent file.
  4139. The retrieved URLs are attached to the corresponding FileEntry.
  4140. * src/DefaultBtContext.{h, cc}
  4141. * src/FileEntry.{h, cc}
  4142. * test/DefaultBtContextTest.cc
  4143. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  4145. after the download finishes.
  4146. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  4148. the data smaller than block length.
  4149. A block length can be specified by constructor's argument.
  4150. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  4151. Get a missing piece in the range of given FileEntry. This function is
  4152. not used in the program yet.
  4153. * src/Util.h: Added some macros.
  4154. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4155. Added HTTP/1.1 keep alive and pipelining support.
  4156. See --enable-http-keep-alive and --enable-http-pipelining option.
  4157. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  4158. Segment.
  4159. * src/HttpDownloadCommand.{h, cc}
  4160. * src/OptionHandlerFactory.cc
  4161. * src/HttpConnection.{h, cc}
  4162. * src/version_usage.cc
  4163. * src/HttpInitiateConnectionCommand.cc
  4164. * src/FtpInitiateConnectionCommand.cc
  4165. * src/Segment.h
  4166. * src/HttpRequestCommand.{h, cc}
  4167. * src/option_processing.cc
  4168. * src/prefs.h
  4169. * src/HttpResponseCommand.cc
  4170. * src/SegmentMan.{h, cc}
  4171. * src/FtpNegotiateCommand.cc
  4172. * src/HttpProxyResponseCommand.cc
  4173. * src/Request.cc
  4174. * src/HttpRequest.cc
  4175. * src/DownloadCommand.cc
  4176. * test/HttpRequestTest.cc
  4177. * test/RequestTest.cc
  4178. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  4180. finished.
  4181. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  4183. catching it inside the method.
  4184. When no file entry is found in a metalink without querying user
  4185. preferences, throw the exception with the error message that suggests
  4186. metalink file is probably broken.
  4187. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  4188. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Fixed the bug that prevents remote Metalink/Torrent file from begin
  4190. processed.
  4191. * src/RequestGroupMan.cc (removeStoppedGroup)
  4192. Added debug message.
  4193. * src/BtPostDownloadHandler.cc
  4194. * src/MetalinkPostDownloadHandler.cc
  4195. * src/PostDownloadHandler.{h, cc}
  4196. * src/RequestGroup.cc
  4197. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  4199. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4200. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  4201. stops and there are any unfinished or in-progress downloads.
  4202. Added the legend of "stat".
  4203. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Throw exception when chunck checksum verification fails.
  4205. * src/DownloadCommand.cc (validatePieceHash): New function.
  4206. * src/PiecedSegment.{h, cc} (clear): New function.
  4207. * src/GrowSegment.{h, cc} (clear): New function.
  4208. * src/Segment.h (clear): New function.
  4209. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  4210. * test/SegmentTest.cc
  4211. * test/GrowSegmentTest.cc
  4212. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4213. Do not send referer when redirected.
  4214. * src/Request.cc (redirectUrl)
  4215. * test/RequestTest.cc
  4216. * test/HttpRequestTest.cc
  4217. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Implemented BitTorrent/http/ftp integrated download.
  4219. I've rewritten lots of files and now some headers have forward
  4220. class declarations to reduce compile time.
  4221. The implementation is extremely alpha stage, I recommend to use this
  4222. for testing purpose only.
  4223. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4224. Fixed the compilation error on 64bit platform.
  4225. * test/HttpHeaderProcessorTest.cc
  4226. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Merged Ross's patch that fixes compilation problem in MinGW
  4228. * test/DefaultBtProgressInfoFileTest.cc
  4229. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4230. Updated fr.po by sebone
  4231. * po/fr.po
  4232. Updated man page.
  4233. * doc/aria2c.1.txt
  4234. * Release 0.11.3
  4235. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  4237. failure in Metalink.
  4238. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4239. Automatically save *.aria2 control file of http/ftp download in every
  4240. 60 seconds.
  4241. * src/AutoSaveCommand.{h, cc}: New class.
  4242. * src/TimeBasedCommand.{h, cc}: New class.
  4243. * src/DownloadEngineFactory.cc (newConsoleEngine)
  4244. Disable parameterized URI support by default. Added -P option to
  4245. enable the feature.
  4246. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  4247. * src/OptionHandlerFactory.cc
  4248. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  4249. Updated Japanese translation.
  4250. * po/ja.po
  4251. Updated man page.
  4252. * doc/aria2c.1.txt
  4253. * Release 0.11.3-rc
  4254. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  4256. it is successful, then renamed to *.aria2.
  4257. This prevents *.aria2 file from being truncated or corrupted when
  4258. file system becomes out of space.
  4259. * src/DefaultBtProgressInfoFile.cc (save)
  4260. * src/SegmentMan.cc (save)
  4261. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  4262. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Reduced the fragmentation of bitfield in http/ftp download.
  4264. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  4265. * test/BitfieldManTest.cc
  4266. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Added the ability to disable segmented download in .metalink.
  4268. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  4269. 'url' tag.
  4270. * src/MetalinkEntry.{h, cc}
  4271. * src/RequestResource.{h, cc}
  4272. * src/MetalinkRequestInfo.cc
  4273. * src/Xml2MetalinkProcessor.cc
  4274. * test/Xml2MetalinkProcessorTest.cc
  4275. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4276. Added parameterized URI support.
  4277. * src/main.cc: -Z option added.
  4278. * src/OptionHandlerFactory.cc
  4279. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  4280. * src/PStringDatum.h: New class.
  4281. * src/PStringSegment.{h,cc}: New class.
  4282. * src/PStringNumLoop.h: New class.
  4283. * src/PStringSelect.h: New class.
  4284. * src/NumberDecorator.h: New class.
  4285. * src/FixedWidthNumberDecorator.h: New class.
  4286. * src/AlphaNumberDecorator.h: New class.
  4287. * src/PStringVisitor.h: New class.
  4288. * src/PStringBuildVisitor.{h,cc}: New class.
  4289. * src/ParameterizedStringParser.{h,cc}: New class.
  4290. * src/Util.{h,cc}
  4291. (isNumber): New function.
  4292. (isLowercase): New function.
  4293. (isUppercase): New function.
  4294. (alphaToNum): New function.
  4295. * test/ParameterizedStringParserTest.cc: New class.
  4296. * test/AlphaNumberDecoratorTest.cc: New class.
  4297. * test/PStringBuildVisitorTest.cc: New class.
  4298. * test/UtilTest.cc
  4299. (testIsNumber): New function.
  4300. (testIsLowercase): New function.
  4301. (testIsUppercase): New function.
  4302. (testAlphaToNum): New function.
  4303. Added '\n' after the error message
  4304. * src/RequestInfo.h (printDownloadAbortMessage)
  4305. Added auto file renaming feature in http(s)/ftp download.
  4306. * src/main.cc: Added --auto-file-renaming command-line option.
  4307. * src/OptionHandlerFactory.cc
  4308. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  4309. * src/RequestGroup.{h, cc}
  4310. (shouldCancelDownloadForSafety): Rewritten
  4311. (tryAutoFileRenaming): New function.
  4312. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  4313. * src/HttpResponseCommand.cc
  4314. (executeInternal): Removed the call to RequestGroupMan::
  4315. isSameFileBeingDownloaded()
  4316. * src/FtpNegotiateCommand.cc
  4317. (recvSize): Removed the call to RequestGroupMan::
  4318. isSameFileBeingDownloaded()
  4319. * test/RequestGroupTest.cc: New class.
  4320. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  4322. IO.
  4323. * src/DefaultBtProgressInfoFile.cc
  4324. * src/MetaFileUtil.cc
  4325. * src/SimpleLogger.cc
  4326. * src/SegmentMan.cc
  4327. * src/Util.cc
  4328. * src/Platform.cc
  4329. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  4331. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4332. Avoid sparse files if possible, because VFAT32 doesn't support it.
  4333. * src/DefaultDiskWriter.cc (initAndOpenFile)
  4334. Fixed the bug that prevents file allocation is not done when
  4335. dowloading multi-torrent file.
  4336. * src/AbstractDiskWriter.cc (openFile)
  4337. Increase the maximum number of -j option from 15 to 45.
  4338. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4339. Added fr.po, thanks to Charles Landemaine.
  4340. * po/fr.po
  4341. * po/LINGUAS
  4342. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4343. gcc 3.4.4 support:
  4344. * src/DefaultBtContext.cc: int32_t -> int
  4345. * src/main.cc: int -> int32_t, int32_t -> int
  4346. * src/messageDigest.h: uint32_t -> unsigned int
  4347. * src/NameResolver.h: int32_t -> int
  4348. * src/PeerConnection.cc: int -> int32_t
  4349. * src/SpeedCalc.cc: int32_t -> int
  4350. * src/TrackerUpdateCommand.h: int -> int32_t
  4351. * src/Util.cc: int32_t -> int
  4352. * src/Util.h: int32_t -> int
  4353. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  4354. * test/AnnounceListTest.cc: int -> int32_t
  4355. * test/ChunkedEncodingTest.cc: int -> int32_t
  4356. * test/DataTest.cc: int -> int32_t
  4357. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  4358. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  4359. * test/DefaultPieceStorageTest.cc: int -> int32_t
  4360. * test/FeatureConfigTest.cc: int -> int32_t
  4361. * test/MetalinkEntryTest.cc: int -> int32_t
  4362. * test/MockBtRequestFactory.h: int -> int32_t
  4363. * test/MockPieceStorage.h: int -> int32_t
  4364. * test/OptionTest.cc: int -> int32_t
  4365. * test/RequestTest.cc: int -> int32_t
  4366. * test/SegmentManTest.cc: int -> int32_t
  4367. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  4368. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4369. Move sleep functions to Util class:
  4370. * src/Util.cc
  4371. (sleep): New function.
  4372. (usleep): New function.
  4373. * src/DownloadCommand.cc: sleep -> Util::sleep
  4374. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  4375. MinGW build enhancements. The following files are added:
  4376. * src/timegm.{c,h}
  4377. Changes to support the above new files:
  4378. * configure.ac
  4379. * src/Makefile.am
  4380. * src/a2time.h
  4381. * src/Util.cc:
  4382. * src/strptime.c: Added support for %Z option.
  4383. Fixed MinGW non-blocking bug.
  4384. * src/SocketCore.cc
  4385. * src/HttpRequestCommand.cc
  4386. Miscellenous build fixes/enhancements.
  4387. * configure.ac: Added summary report.
  4388. * src/Platform.h: Tweaked #include's.
  4389. * src/a2netcompat.h: Tweaked #include's.
  4390. * src/strptime.h: Tweaked #include's.
  4391. * src/gai_strerror.c: Tweaked #include's.
  4392. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  4393. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  4394. * src/gettimeofday.h: Added HAVE_CONFIG_H
  4395. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4396. Increased the initial connection size in BitTorrent download to 40.
  4397. * src/BtRuntime.h
  4398. Added the usage message of --peer-id-prefix option.
  4399. * src/main.cc
  4400. * Release 0.11.2
  4401. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4402. MessageDigestHelper is introduced in order to simplify the use
  4403. of message digest. Removed repeated code.
  4404. The message digest algorithm is now specified by string, like "sha1",
  4405. "md5".
  4406. * src/messageDigest.{h, cc}
  4407. * src/MessageDigestHelper.{h, cc}: New class.
  4408. * src/DefaultPieceStorage.cc
  4409. * src/DefaultBtContext.{h, cc}
  4410. (computeFastSet): New function.
  4411. (setInfoHash): Added for unit testing.
  4412. (setNumPieces): Added for unit testing.
  4413. * src/DefaultBtInteractive.cc
  4414. * src/BtPieceMessage.cc
  4415. * src/Peer.cc
  4416. * src/Checksum.h
  4417. * src/message.h
  4418. * src/IteratableChecksumValidator.h
  4419. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  4420. inside it.
  4421. * src/SegmentMan.{h, cc}
  4422. (checkIntegrity): Removed.
  4423. * src/IteratableChunkChecksumValidator.{h, cc}
  4424. * src/Util.h
  4425. (sha1Sum): Removed.
  4426. (simpleMessageDigest): Removed.
  4427. (fileChecksum): Removed.
  4428. (computeFastSet): Removed.
  4429. * src/ShaVisitor.cc
  4430. * src/ChunkChecksum.h
  4431. * src/DownloadCommand.cc
  4432. Removed messageDigest virtual functions.
  4433. * src/MultiDiskAdaptor.{h, cc}
  4434. * src/DiskAdaptor.h
  4435. * src/ByteArrayDiskWriter.h
  4436. * src/DiskWriter.h
  4437. * src/DiskAdaptorWriter.h
  4438. * src/AbstractSingleDiskAdaptor.{h, cc}
  4439. * src/AbstractDiskWriter.{h, cc}
  4440. Fixed comilation error when message digest is disabled.
  4441. * src/MetalinkEntry.{h, cc}
  4442. * src/MetalinkRequestInfo.cc
  4443. Removed srandom and random.
  4444. * src/SimpleRandomizer.h
  4445. Added size() virtual function to DiskAdaptor
  4446. * src/MultiDiskAdaptor.h
  4447. Fixed the bug that causes that files are not opened correctly in
  4448. multi-file torrent.
  4449. * src/TorrentRequestInfo.cc
  4450. * src/MultiDiskAdaptor.cc
  4451. Added SHA256 support
  4452. * src/messageDigest.cc
  4453. * src/Xml2MetalinkProcessor.cc
  4454. Show supported message digest algorithms
  4455. * src/main.cc
  4456. Updated contact info.
  4457. * src/main.cc
  4458. Applied Ross's patch
  4459. * src/a2netcompat.h
  4460. * src/main.cc
  4461. Fixed the bug that prevents a remote metalink from not being processed
  4462. even if '-o foo.metalink' is specified.
  4463. * src/MetalinkRequestInfo.cc
  4464. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Merged Dan's patch:
  4466. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  4467. Use va_copy to avoid core dump on amd64:
  4468. * src/SimpleLogger.cc
  4469. Updated contact info.
  4470. * src/main.cc
  4471. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  4472. digest is not available.
  4473. * src/MetalinkEntry.h
  4474. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Make a2netcompat.h include a2io.h to fix compilation error:
  4476. * src/a2netcompat.h
  4477. * src/SocketCore.cc: Removed include of a2io.h
  4478. * src/Util.cc: Removed include of a2io.h
  4479. Gather time related functions to a2time.h:
  4480. * src/a2time.h: New file.
  4481. * src/DefaultPeerStorage.cc
  4482. * src/SimpleLogger.cc
  4483. * src/Util.{h, cc}
  4484. * src/SimpleRandomizer.h
  4485. * src/TimeA2.{h,cc}
  4486. * src/DownloadCommand.cc
  4487. * src/main.cc
  4488. Removed #ifdef __MINGW32__ since gai_strerror is included in
  4489. a2netcompat.h:
  4490. * src/NameResolver.cc
  4491. Fixed compilation error without openssl:
  4492. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  4493. Added default block to suppress compiler warnings:
  4494. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  4495. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  4496. MinGW build enhancements. The following files are added:
  4497. * src/gai_strerror.{c,h}
  4498. * src/gettimeofday.{c,h}
  4499. Changes to support the above new files:
  4500. * configure.ac
  4501. * src/Makefile.am
  4502. * src/a2netcompat.h
  4503. * src/TimeA2.cc
  4504. * src/DefaultPeerStorage.cc
  4505. * src/NameResolver.cc: removed mingw_strerror() function.
  4506. * src/SocketCore.cc: removed mingw_strerror() function.
  4507. Miscellaneous MinGW build fixes.
  4508. * src/a2io.h: Use _lseeki64() instead of lseek()
  4509. * src/common.h
  4510. * src/DefaultFileAllocator.cc
  4511. * src/GlowFileAllocator.cc
  4512. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  4513. * src/NameResolver.cc
  4514. (callback): Changed int32_t to int.
  4515. (resolve): Changed int32_t to int.
  4516. * src/Platform.cc
  4517. * src/Platform.h
  4518. * test/MultiDiskWriterTest.cc
  4519. * test/PeerMessageUtilTest.cc
  4520. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  4521. Other enhancements and fixes.
  4522. * src/HttpRequestCommand.cc
  4523. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  4524. * src/SocketCore.cc:
  4525. (error): New function to abstract errno/WSAGetLastError().
  4526. (errorMsg): New function to abstract errno/WSAGetLastError().
  4527. (initiateSecureConnection): Added more detailed error reporting.
  4528. * src/SocketCore.h: Added private variable blocking, to allow
  4529. proper handling of OpenSSL psuedo-errors.
  4530. * src/message.h
  4531. (EX_SSL_INIT_FAILURE)
  4532. (EX_SSL_IO_ERROR)
  4533. (EX_SSL_PROTOCOL_ERROR)
  4534. (EX_SSL_UNKNOWN_ERROR)
  4535. (EX_SSL_CONNECT_ERROR)
  4536. (EX_SOCKET_BLOCKING)
  4537. (EX_SOCKET_NONBLOCKING)
  4538. (EX_SOCKET_UNKNOWN_ERROR)
  4539. * src/Util.cc
  4540. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  4541. reserved name.
  4542. (httpGMT): Fixed typo.
  4543. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4544. Merged Ross's win32 patch(manually)
  4545. In the course of merging, following files are added.
  4546. * src/strptime.{h,c}
  4547. * src/libgen.{h,c}
  4548. * src/inet_aton.{h,c}
  4549. * src/Platform.{h,cc}
  4550. * src/localtime_r.{h,c}
  4551. * src/getaddrinfo.{h,c}
  4552. I've gethered network related things, and put them to following file:
  4553. * src/a2netcompat.h
  4554. Also io related things are put to following file:
  4555. * src/a2io.h
  4556. Changed %lld to %s because mingw32 doesn't recognize %lld.
  4557. * src/message.h
  4558. (MSG_ALLOCATION_COMPLETED)
  4559. (EX_TOO_LARGE_FILE)
  4560. (EX_SIZE_MISMATCH)
  4561. (EX_FILE_OFFSET_OUT_OF_RANGE)
  4562. (EX_INVALID_CHUNK_CHECKSUM)
  4563. (EX_INVALID_RANGE_HEADER)
  4564. * src/FileAllocationCommand.cc
  4565. * src/HttpResponse.cc
  4566. * src/RequestGroup.cc
  4567. * src/MultiDiskAdaptor.cc
  4568. * src/OptionHandlerImpl.h
  4569. * src/HttpResponseCommand.cc
  4570. * src/FtpNegotiateCommand.cc
  4571. * src/IteratableChecksumValidator.cc
  4572. * src/SegmentMan.cc
  4573. * src/ChunkChecksumValidator.cc
  4574. Added Randomizer::getRandomNumber(long int)
  4575. * src/Randomizer.h (getRandomNumber)
  4576. * src/SimpleRandomizer.h (getRandomNumber)
  4577. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  4578. * src/Util.cc (randomAlpha): Use this new function.
  4579. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Converted int's to in32_t. long long int's are also converted to
  4581. int64_t
  4582. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Fixed the bug that prevents cookies from being sent to the server
  4584. if the domain of cookie is FQDN and starts with ".".
  4585. * src/Cookie.cc (match)
  4586. To add the ability to change peer id.
  4587. * src/DefaultBtContext.h
  4588. (_peerIdPrefix): New variable
  4589. (setPeerIdPrefix): New function.
  4590. * src/torrentRequestInfo.cc
  4591. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  4592. DefaultBtContext.
  4593. * src/main.cc (main): Added peer-id-prefix command-line option.
  4594. The usage message is not added yet.
  4595. * src/DefaultBtContext.cc
  4596. (generatePeerId): Use _peerIdPrefix.
  4597. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  4598. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4599. Fixed the bug that prevents filename in content-disposition from
  4600. being retrieved when filename is not quoted.
  4601. * src/Util.cc (getContentDispositionFilename)
  4602. Fixed the bug that causes infinate loop and memory leak when file open
  4603. operation failed.
  4604. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4605. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4606. Fixed the bug that causes segfault when all URIs specified are
  4607. unsupported.
  4608. * src/RequestGroupMan.cc (getInitialCommands)
  4609. Check if RequestGroup::createNextCommand() returns empty list of
  4610. commands.
  4611. * src/RequestGroup.cc (createNextCommand)
  4612. Change log level from info to error so that users can notice that
  4613. an error occurred.
  4614. Fixed the bug that causes segfault when a zero-sized file is
  4615. downloaded.
  4616. * src/BitfieldMan.cc (isAllBitSet)
  4617. Return true if bitfieldLength is 0.
  4618. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. * src/main.cc
  4620. (showUsage): Added 3 usage examples for metalink download.
  4621. Replace MetalinkChunkChecksum with ChunkChecksum.
  4622. * src/MetalinkChunkChecksum.h: Removed.
  4623. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  4624. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  4625. * src/Xml2MetalinkProcessor.cc
  4626. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  4627. * src/MetalinkRequestInfo.cc (execute)
  4628. * Release 0.11.1
  4629. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Reads URIs from stdin when "-i -" is specified.
  4631. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  4632. * src/UriListParser.h, src/UriListParser.cc: New class.
  4633. * src/StreamUriListParser.h: New class.
  4634. * src/FileUriListParser.h: New class.
  4635. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  4636. instead of UriFileListParser.
  4637. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Made console readout more readable.
  4639. * src/ConsoleDownloadEngine.cc (sendStatistics)
  4640. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Fix the bug that causes -s option not to work.
  4642. * src/main.cc (main)
  4643. * src/a2algo.h: New file.
  4644. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Create directory structure specified in metalink file.
  4646. * src/RequestGroup.h, src/RequestGroup.cc
  4647. (initAndOpenFile): Create a directory to store files if it does not
  4648. exist.
  4649. (getDir): New function.
  4650. Added ETA and download speed for an individual file to readout.
  4651. * src/ConsoleDownloadEngine.cc (sendStatistics)
  4652. * src/RequestGroup.h
  4653. (calculateDownloadSpeed): New function.
  4654. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. Made -S option work with metalink file and provided selective download
  4656. to metalink.
  4657. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  4658. (filename): Removed.
  4659. (file): New variable.
  4660. (size): Removed.
  4661. (operator=): Updated.
  4662. (getPath): New function.
  4663. (getLength): New function.
  4664. (toFileEntry): New function.
  4665. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  4666. (execute): Use toStream.
  4667. (showFileEntry): Removed.
  4668. * src/MetalinkRequestInfo.h
  4669. (targetFiles): New variable.
  4670. (setTargetFiles): New variable.
  4671. * src/MetalinkRequestInfo.cc
  4672. (execute): Added the ability to print file information included in
  4673. a metalink file.
  4674. Added selective download mode to metalink.
  4675. * src/main.cc
  4676. (showUsage): Updated to denote that -S and --select-file options are
  4677. applicable to metalink.
  4678. * src/FileEntry.h
  4679. (operator=): New function.
  4680. (getBasename): New function.
  4681. (getDirname): New function.
  4682. * src/Util.h, src/Util.cc
  4683. (toStream): New function.
  4684. * src/Xml2MetalinkProcessor.cc: Updated.
  4685. Made aria2 work with metalink with directory structure.
  4686. * src/File.h, src/File.cc
  4687. (getBasename): New function.
  4688. (getDirname): New function.
  4689. * src/RequestGroup.h, src/RequestGroup.cc
  4690. (_topDir): New variable.
  4691. (setTopDir): New function.
  4692. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  4693. Rewrote HTTP header parsing with stringstream.
  4694. * src/HttpConnection.h, src/HttpConnection.cc
  4695. (HttpRequestEntry): New class.
  4696. (headerBuf): Removed.
  4697. (headerBufLength): Removed.
  4698. (outstandingHttpRequests): Now its element type is
  4699. HttpRequestEntryHandle.
  4700. (findEndOfHeader): Removed.
  4701. (receiveResponse): Rewritten.
  4702. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  4703. Updated doc for -j option to notice that it should be used with -i
  4704. option.
  4705. * src/main.cc (showUsage)
  4706. Removed unused classes.
  4707. * src/RequestInfo.h
  4708. (FileInfo): Removed.
  4709. (checksum): Removed.
  4710. (fileInfo): Removed.
  4711. (setChecksum): Removed.
  4712. (getChecksum): Removed.
  4713. (getFileInfo): Removed.
  4714. Use ISO units.
  4715. * src/ConsoleDownloadEngine.cc
  4716. * src/TorrentConsoleDownloadEngine.cc
  4717. * src/Util.cc (abbrevSize)
  4718. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. Added the default listening ports to the help message.
  4720. * src/main.cc (showUsage)
  4721. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4722. Reduce the number of calls to gettimeofday to lower CPU load.
  4723. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  4724. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  4725. * src/Peer.h (calculateUploadSpeed): New function.
  4726. (calculateDownloadSpeed): New function.
  4727. * src/DefaultPeerStorage.cc
  4728. (CalculateStat): Added _now variable.
  4729. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  4730. and Peer::calculateUploadSpeed(const struct timeval&)
  4731. Drop connection if no request or piece message is exchanged in
  4732. a certain interval.
  4733. * src/DefaultBtInteractive.h
  4734. (btRuntime): New variable.
  4735. (inactiveCheckPoint): New variable.
  4736. (checkActiveInteraction): New function.
  4737. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  4738. request or piece message is received.
  4739. (checkActiveInteraction): New function.
  4740. (doInteractionProcessing): Call checkActiveInteraction.
  4741. Fixed the bug that causes remote Metalink and Torrent files are not
  4742. processed.
  4743. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  4744. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4745. Changed format of log file.
  4746. * src/SimpleLogger.cc
  4747. * Release 0.11.0
  4748. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. * src/AbstractCommand.cc
  4750. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  4751. MSG_MAX_TRY from error to info.
  4752. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  4753. * src/message.h
  4754. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  4755. (MSG_DOWNLOAD_ABORTED): Added %s.
  4756. (MSG_RESTARTING_DOWNLOAD): Added %s.
  4757. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  4758. * src/PeerAbstractCommand.cc
  4759. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  4760. * src/Request.h
  4761. (cookieBox): Made ShardHandle.
  4762. * src/RequestGroup.h, src/RequestGroup.cc
  4763. (createNextCommandWithAdj): New function.
  4764. * src/FileAllocationCommand.cc
  4765. (executeInternal): Use createNextCommandWithAdj().
  4766. * src/CheckIntegrityCommand.cc
  4767. (executeInternal): Use createNextCommandWithAdj().
  4768. Added --load-cookies command-option.
  4769. * src/OptionHandlerFactory.cc
  4770. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  4771. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  4772. Now aria2 can handle cookie's expiration date.
  4773. * src/Cookie.h (expires): Changed its type to time_t.
  4774. * src/main.cc: Added --load-cookies command-line option.
  4775. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  4776. * src/Util.h, src/Util.cc (httpGMT): New function.
  4777. * src/Request.cc (Request): Initialize cookieBox using
  4778. CookieBoxFactory.
  4779. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  4780. * src/CookieParser.h, src/CookieParser.cc: New class.
  4781. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  4782. * src/HttpResponseCommand.cc
  4783. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  4784. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  4785. download.
  4786. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Added -j command-line option.
  4788. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4789. * src/main.cc
  4790. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  4791. Rewritten using stringstream.
  4792. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  4793. Rewritten using stringstream.
  4794. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Make download size shown in MB, KB.
  4796. * src/ConsoleDownloadEngine.h (sendStatistics)
  4797. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  4798. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Accept incoming connections if download rate is low.
  4800. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  4801. (_lowestSpeedLimit): New variable.
  4802. (setLowestSpeedLimit): New function.
  4803. (execute): Accept incoming connections if download rate is low.
  4804. MAX_PEERS is ignored in this case.
  4805. Disable PREF_OUT in multiple concurrent download:
  4806. * src/RequestGroup.h, src/RequestGroup.cc
  4807. (setUserDefinedFilename): New function.
  4808. * src/DownloadEngineFactory.cc
  4809. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  4810. concurrent download.
  4811. * src/DefaultSegmentManFactory.cc
  4812. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  4813. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. RequestGroup::getNextCommand() was renamed to createNextCommand().
  4815. Added its overloaded method.
  4816. * src/RequestGroup.h
  4817. (_numConcurrentCommand): New variable.
  4818. (setNumConcurrentCommand): New function.
  4819. * src/RequestGroup.cc
  4820. Abort download if same file is being downloaded concurrently.
  4821. * src/RequestGroup.h, src/RequestGroupMan.cc
  4822. (isSameFileBeingDownloaded): New function.
  4823. * src/HttpResponseCommand.cc (executeInternal)
  4824. * src/FtpNegotiateCommand.cc (recvSize)
  4825. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  4826. * main.cc: Added help message for -i option.
  4827. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  4829. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  4830. * src/MetalinkEntry.h
  4831. (checksum): Changed to ChecksumHandle
  4832. * src/MetalinkRequestInfo.cc
  4833. (checksum): Changed to ChecksumHandle
  4834. * src/File.cc
  4835. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  4836. * src/common.h
  4837. (DIR_OPEN_MODE): New definition
  4838. * src/RequestGroup.cc
  4839. (prepareForNextAction): Added an argument.
  4840. * src/message.h
  4841. (MSG_GOOD_CHECKSUM): New definition
  4842. (MSG_BAD_CHECKSUM): New definition
  4843. * src/HttpResponseCommand.cc
  4844. (handleDefaultEncoding): Continue download sequence in new
  4845. non-segmented download.
  4846. * src/FileAllocationEntry.h
  4847. (_nextDownloadCommand): New variable.
  4848. * src/DownloadCommand.cc
  4849. (prepareForNextSegment): Create ChecksumCommand if checksum is
  4850. available.
  4851. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  4852. * src/IteratableChecksumValidator.h,
  4853. src/IteratableChecksumValidator.cc: New class.
  4854. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  4855. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4856. Change file mode to 666:
  4857. * src/common.h (OPEN_MODE): New definition.
  4858. * src/File.cc
  4859. * src/Util.cc
  4860. * src/Directry.cc
  4861. * src/AbstractDiskWriter.cc
  4862. Change the level of log message "download aborted" to debug:
  4863. * src/PeerAbstractCommand.cc (execute)
  4864. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  4865. * src/TrackerWatcherCommand.cc
  4866. (createCommand): Sleep some seconds after request failed.
  4867. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  4868. then abort tracker request.
  4869. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. * Added the simultaneous download feature.
  4871. * src/main.cc: Print "Exception caught: " when exception is caught.
  4872. Use CUIDCounter instead of BtRuntime::getNewCuid():
  4873. * src/ActivePeerConnectionCommand.cc
  4874. * src/PeerInteractionCommand.cc
  4875. * src/BtRuntime.h
  4876. (cuidCounter): Removed.
  4877. (getNewCuid): Removed.
  4878. * src/DownloadEngineFactory.cc
  4879. * src/PeerListenCommand.cc
  4880. * src/TrackerUpdateCommand.cc
  4881. * src/PeerInitiateConnectionCommand.cc
  4882. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4883. * src/PeerAbstractCommand.cc
  4884. (onAbort): Call PeerStorage::returnPeer()
  4885. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  4886. (incomingPeers): New variable.
  4887. (addIncomingPeer): New function.
  4888. (returnPeer): New function.
  4889. (onErasingPeer): New function.
  4890. (addPeer): push_back -> push_front
  4891. (getActivePeers): Rewritten.
  4892. (calculateStat): Rewritten.
  4893. * src/PeerStorage.h
  4894. (TransferStat::copy): New function.
  4895. (TransferStat::TransferStat): New function.
  4896. (TransferStat::operator=): New function.
  4897. (addIncomingPeer): New function.
  4898. (returnPeer): New function.
  4899. * src/PeerListenCommand.cc
  4900. (execute): Use PeerStorage::addIncomingPeer() instead of
  4901. Peer::addPeer().
  4902. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4903. Connect to a peer actively when download speed is lower than specified
  4904. speed in torrent download:
  4905. * src/ActivePeerConnectionCommand.h: New class.
  4906. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. * src/HttpRequest.cc (createRequest): url-encode user-agent
  4908. * src/main.cc: Fixed the bug that prevents download if .netrc
  4909. doesn't exist.
  4910. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. To cache resolved hostname:
  4912. * src/AbstractCommand.h, src/AbstractCommand.cc
  4913. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  4914. Added dns cache.
  4915. * src/FtpInitiateConnectionCommand.cc
  4916. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  4917. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  4918. NameResolver working without ares.
  4919. * src/TorrentRequestInfo.cc
  4920. (execute): Don't cache dns in torrent download.
  4921. * src/HttpInitiateConnectionCommand.cc
  4922. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  4923. * src/DNSCache.h: New class.
  4924. * src/UrlRequestInfo.cc
  4925. (execute): Use dns cache.
  4926. In http request, suppress port number in http request header if port
  4927. is 80 or 443:
  4928. * src/HttpRequest.cc (getHostText): Suppress port number in http
  4929. request header if port is 80 or 443.
  4930. (createProxyRequest): Allways send port number.
  4931. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. To add the command-line option which disables netrc support:
  4933. * src/OptionHandlerFactory.cc
  4934. (createOptionHandlers): Added PREF_NO_NETRC.
  4935. * src/main.cc: Added -n option.
  4936. * src/prefs.h (PREF_NO_NETRC): New definition.
  4937. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  4938. V_TRUE.
  4939. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  4940. is V_FALSE. This may get configurable in the future release.
  4941. To clear peer's error status by time basis:
  4942. * src/PeerAbstractCommand.cc
  4943. (onAbort): Call Peer::startBadCondition().
  4944. * src/Peer.h, src/Peer.cc
  4945. (error): Removed.
  4946. (_badConditionStartTime): New variable.
  4947. (_badConditionInterval): New variable. Initialized to 10 seconds.
  4948. (startBadCondition): New function.
  4949. (isGood): New function.
  4950. * src/DefaultPeerStorage.cc
  4951. (addPeer): Use Peer::isGood().
  4952. (FindFinePeer): Use Peer::isGood().
  4953. Always include port number in http request header:
  4954. * src/HttpRequest.cc (getHostText): Always include port number in
  4955. http request header.
  4956. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. To the ability to read options from a config file:
  4958. * src/main.cc: Command-line parameter validation is delegated to
  4959. OptionHandler class.
  4960. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  4961. * src/Option.h, src/Option.cc (clear): New function.
  4962. * src/OptionParser.h, src/OptionParser.cc: New class.
  4963. * src/OptionHandler.h: New class.
  4964. * src/NameMatchOptionHandler.h: New class.
  4965. * src/OptionHandlerImpl.h: New classes.
  4966. * src/prefs.h: '_' -> '-'
  4967. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  4968. (FTP_PASV): New definition.
  4969. * src/Util.h, src/Util.cc (getRealSize): New function.
  4970. To disable netrc support if .netrc file does not have correct
  4971. permissions:
  4972. * src/File.h, src/File.cc (mode): New function.
  4973. To prevent confidential information to be logged:
  4974. * src/HttpConnection.h, src/HttpConnection.cc
  4975. (eraseConfidentialInfo): New function.
  4976. (sendRequest): Call eraseConfidentialInfo().
  4977. (sendProxyRequest): Call eraseConfidentialInfo().
  4978. * src/main.cc: Validate permissions of .netrc file.
  4979. To add --user-agent command-line option:
  4980. * src/main.cc: Added new command line option: --user-agent
  4981. * src/prefs.h (PREF_USER_AGENT): New definition.
  4982. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  4983. parameter to HttpRequest object.
  4984. * src/AbstractProxyRequestCommand.cc
  4985. (executeInternal): Set user-agent option parameter to HttpRequest
  4986. object.
  4987. Marged the patches from Dan Fandrich.
  4988. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4989. Use filename and size from Metalink file instead of sending HEAD
  4990. request:
  4991. * src/UrlRequestInfo.h
  4992. (_filename): New variable.
  4993. (_totalLength): New variable.
  4994. (setTotalLength): New variable.
  4995. (setFilename): New variable.
  4996. * src/MetalinkRequestInfo.cc
  4997. (execute): Set filename and size to UrlRequestInfo
  4998. * src/UrlRequestInfo.cc
  4999. (execute): Use filename and size from Metalink instead of seding
  5000. HEAD request to servers.
  5001. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5002. To add the ability to resume downloading a partially downloaded file
  5003. which is downloaded from the beginning:
  5004. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  5005. takes this role.
  5006. * src/main.cc: Added -c option.
  5007. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  5008. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  5009. * src/prefs.h (PREF_CONTINUE): New definition.
  5010. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  5011. * src/DefaultDiskWriter.cc
  5012. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  5013. * src/AbstractDiskWriter.h
  5014. (glowFileAllocator): New variable.
  5015. * src/AbstractDiskWriter.cc
  5016. (openExistingFile): Now preallocate file space from the end of the
  5017. existing file if totalLength argument is specified and grater than 0.
  5018. * src/UrlRequestInfo.cc: If -c option is specified and the file
  5019. to download exists in local, continue the download of the file.
  5020. --allow-overwrite=true is assumed in this context.
  5021. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  5022. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  5023. Throw exception if --check-integrity=true is specified but chunk
  5024. checksums are not provided:
  5025. * src/UrlRequestInfo.cc
  5026. Do not print URLs to stdout:
  5027. * src/UrlRequestInfo.cc
  5028. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. * src/Request.h: Use AuthResolver to get authentication information.
  5030. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  5031. set to RequestFactory object.
  5032. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  5033. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  5034. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  5035. create Request object.
  5036. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  5037. To integrate Netrc into exsiting classes:
  5038. * src/Request.h
  5039. (_userDefinedAuthConfig): New variable.
  5040. (findNetrcAuthenticator): New function.
  5041. (segment): Removed.
  5042. (setUserDefinedAuthConfig): New function.
  5043. (resolveHttpAuthConfigItem): New function.
  5044. (resolveFtpAuthConfigItem): New function.
  5045. (resolveHttpProxyAuthConfigItem): New function.
  5046. * src/HttpRequest.h
  5047. (authConfig): Removed.
  5048. (proxyAuthConfig): Removed.
  5049. (setAuthConfig): Removed.
  5050. (setProxyAuthConfig): Removed.
  5051. * src/UrlRequest.h
  5052. (getHeadResult): Added a parameter: authConfigHandle
  5053. * src/common.h
  5054. (SingletonHolder.h): New include.
  5055. * src/main.cc
  5056. (Netrc.h): New include.
  5057. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  5058. Added initial value of PREF_NETRC_PATH.
  5059. Added the initialization of netrc.
  5060. * src/AuthConfig.h: New class.
  5061. * src/prefs.h
  5062. (PREF_NETRC_PATH): New definition.
  5063. * src/HttpAuthConfig.h: Removed.
  5064. * src/Netrc.cc
  5065. (getRequiredNextToken): New function.
  5066. (skipMacdef): New function.
  5067. (parse): Rewritten.
  5068. * src/Netrc.h
  5069. (getRequiredNextToken): New function.
  5070. (skipMacdef): New function.
  5071. * src/Util.h, src/Util.cc
  5072. (getHomeDir): New function.
  5073. * src/TrackerWatcherComand.cc
  5074. (createRequestCommand): Use AuthConfig.
  5075. * src/FtpConnection.cc
  5076. (sendUser): Use Request::resolveFtpAuthConfigItem().
  5077. (sendPass): Use Request::resolveFtpAuthConfigItem().
  5078. * src/Request.cc
  5079. (findNetrcAuthenticator): New function.
  5080. (resolveHttpAuthConfigItem): New function.
  5081. (resolveFtpAuthConfigItem): New function.
  5082. (resolveHttpProxyAuthConfigItem): New function.
  5083. * src/UrlRequestInfo.cc: Use AuthConfig.
  5084. * src/HttpRequest.cc
  5085. (createRequest): Use authConfig.
  5086. (getProxyAuthString): Use authConfig.
  5087. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  5088. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  5089. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. To reduce overhead to find commands whose socket is either
  5091. readable or writable in the download engine loop:
  5092. * src/Command.h, src/Command.cc
  5093. (STATUS): New enum.
  5094. (status): New variable.
  5095. (statusMatch): New function.
  5096. (setStatusActive): New function.
  5097. (setStatusInactive): New function.
  5098. * src/DownloadEngine.h, src/DownloadEngine.cc
  5099. (executeCommand): New function.
  5100. (run): Simplified.
  5101. (waitData): Call Command::setStatusActive() when command's socket is
  5102. readable or writable.
  5103. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5104. To handle Segment as SegmentHandle:
  5105. * src/AbstractCommand.cc (execute): Rewritten.
  5106. * src/SegmentMan.h: Segment -> SegmentHandle
  5107. Introducded HttpResponse class, HttpRequest class to improve code
  5108. extensiveness and make it clear:
  5109. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  5110. HttpResponse class.
  5111. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  5112. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  5113. * src/HttpConnection.cc: Contruction of http request were moved to
  5114. HttpRequest class.
  5115. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  5116. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  5117. * src/HttpAuthConfig.h: New class.
  5118. * src/Range.h: New class.
  5119. To make FtpTunnel{Request, Response}Command and
  5120. HttpProxy{Request, Response}Command derived from
  5121. AbstractProxy{Request, Response}Command:
  5122. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  5123. Derived from AbstractProxyRequestCommand class.
  5124. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  5125. Derived from AbstractProxyResponseCommand class.
  5126. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  5127. Derived from AbstractProxyRequestCommand class.
  5128. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  5129. Derived from AbstractProxyResponseCommand class.
  5130. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  5131. : New class.
  5132. * src/AbstractProxyResponseCommand.h,
  5133. src/AbstractProxyResponseCommand.cc: New class.
  5134. To add netrc support:
  5135. * src/Netrc.h, src/Netrc.cc: New class.
  5136. * src/Util.h, src/Util.cc (split): New function.
  5137. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  5138. "Content-Range" header instead of "Range" header.
  5139. * src/HttpHeader.h
  5140. (getStatus): Removed.
  5141. (setStatus): Removed.
  5142. * src/Segment.h
  5143. (getPositionToWrite): New function.
  5144. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. * src/HttpHeader.h
  5146. (Range.h): New include.
  5147. (status): New variable.
  5148. (HttpHeader): Initialized status with 0.
  5149. (getStatus): New function.
  5150. (setStatus): New function.
  5151. (getRange): New function.
  5152. (HttpHeaderHandle): New function.
  5153. * src/HttpHeader.cc
  5154. (getRange): New function.
  5155. * src/Request.h
  5156. (RequestWeakHandle): New definition.
  5157. * src/HttpConnection.h
  5158. (HttpConnectionHandle): New type definition.
  5159. * src/HttpConnection.cc
  5160. (receiveResponse): Set HTTP status to headers.
  5161. * src/main.cc
  5162. (showUsage): Fixed typo.
  5163. * src/Segment.h
  5164. (SegmentHandle): New type definition.
  5165. * src/BitfieldMan.h
  5166. (getMissingUnusedLength): New function.
  5167. * src/BitfieldMan.cc
  5168. (getMissingUnusedLength): New function.
  5169. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5170. To fix static initialization order problem:
  5171. * src/BitfieldManFactory.h
  5172. (defaultRandomizer): Removed.
  5173. (factory): New variable.
  5174. (getNewFactory): Removed.
  5175. (getFactoryInstance): New function.
  5176. (setDefaultRandomizer): Rewritten.
  5177. (getDefaultRandomizer): Rewritten.
  5178. * src/BitfieldManFactory.cc
  5179. (defaultRandomizer): Removed.
  5180. (factory): Initialized to 0.
  5181. (BitfieldManFactory): Initialized randomizer to 0.
  5182. * src/DefaultPieceStorage.cc
  5183. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  5184. * src/Peer.cc
  5185. (Peer): getNewFactory() -> getFactoryInstance()
  5186. * src/SegmentMan.cc
  5187. (initBitfield): getNewFactory() -> getFactoryInstance()
  5188. * src/Piece.cc
  5189. (Piece): getNewFactory() -> getFactoryInstance()
  5190. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. To fix the bug that causes crash on Max OS X:
  5192. * src/SimpleRandomizer.h
  5193. (getInstance): Create new instance if the static variable is null.
  5194. * src/SimpleRandomizer.cc
  5195. (randomizer): Initialized to 0.
  5196. * src/BitfieldManFactory.h
  5197. (getNewFactory): Removed the call to setRandomizer().
  5198. To fix the miscalculation of the range of checksum:
  5199. * src/BitfieldMan.h
  5200. (isBitSetOffsetRange): New function.
  5201. * src/BitfieldMan.cc
  5202. (isBitSetOffsetRange): New function.
  5203. * src/SegmentMan.cc
  5204. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  5205. Use bitfield->getBlockLength() instead of segment.segmentLength.
  5206. * Release 0.10.1
  5207. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. To lower CPU usage in BitTorrent download when --max-upload-limit
  5209. command-line option specified:
  5210. * src/DefaultBtMessageDispatcher.cc
  5211. (sendMessages): Calculate uploading speed only when current message
  5212. is uploading data and is not sent yet.
  5213. * src/DefaultPeerStorage.h
  5214. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  5215. * src/HttpResponseCommand.cc
  5216. (handleDefaultEncoding): Added the cast to int32_t to itos.
  5217. This fixes compile error in Soralis 10.
  5218. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. To fix segfault in Metalink download:
  5220. * src/UrlRequestInfo.h
  5221. (filename): Removed.
  5222. (totalLength): Removed.
  5223. (setTotalLength): Removed.
  5224. (setFilename): Removed.
  5225. * src/MetalinkRequestInfo.cc
  5226. (execute): Do not set filename and totalLength to reqInfo.
  5227. Set chunk checksum to reqInfo if it is not null.
  5228. * src/HttpResponseCommand.cc
  5229. (executeInternal): Fixed filename in log.
  5230. (handleDefaultEncoding): Removed the call to initBitfield() and
  5231. markAllPiecesDone().
  5232. (handleOtherEncoding): Added HEAD method handling.
  5233. * src/FtpNegotiateCommand.cc
  5234. (executeInternal): Added SEQ_HEAD_OK handling.
  5235. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  5236. return false.
  5237. * src/FtpNegotiateCommand.h
  5238. (SEQ_HEAD_OK): New definition.
  5239. * src/SegmentMan.cc
  5240. (initBitfield): Delete bitfield.
  5241. (isChunkChecksumValidationReady): Fixed the condition.
  5242. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  5243. works fine.
  5244. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5245. * src/Xml2MetalinkProcessor.h
  5246. (xpathExists): New function.
  5247. * src/Xml2MetalinkProcessor.cc
  5248. (xpathExists): New function.
  5249. Not to send HEAD request if filename and size are available in Metalink
  5250. file:
  5251. * src/UrlRequestInfo.h
  5252. (filename): New variable.
  5253. (totalLength): New variable.
  5254. (setTotalLength): New function.
  5255. (setFilename): New function.
  5256. * src/MetalinkRequestInfo.cc
  5257. (execute): Set filename and size to UrlRequestInfo.
  5258. * src/MetalinkEntry.cc
  5259. (MetalinkEntry): Initialize size with 0.
  5260. * src/UrlRequestInfo.cc
  5261. (execute): Set filename and size to SegmentMan.
  5262. Not to download rest of the files after selected files are downloaded
  5263. in BitTorrent:
  5264. * src/PieceStorage.h
  5265. (allDownloadFinished): New function.
  5266. * src/DefaultBtAnnounce.cc
  5267. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  5268. downloadFinished.
  5269. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  5270. * src/DefaultPieceStorage.cc
  5271. (completePiece): Use allDownloadFinished instead of downloadFinished.
  5272. Commented out the call to finishSelectiveDownloadingMode().
  5273. (downloadFinished): Call isFilteredAllBitSet() instead of
  5274. isAllBitSet().
  5275. (allDownloadFinished): New function.
  5276. * src/DefaultBtInteractive.cc
  5277. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  5278. downloadFinished().
  5279. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  5280. * src/TorrentDownloadEngine.cc
  5281. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  5282. * src/BitfieldMan.h
  5283. (isFilteredAllBitSet): New function.
  5284. * src/ShareRatioSeedCriteria.h
  5285. (PieceStorage.h): New include.
  5286. (pieceStorage): New variable.
  5287. (evaluate):
  5288. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  5289. * src/BitfieldMan.cc
  5290. (isFilteredAllBitSet): New function.
  5291. (isAllBitSet): Filter is not took into account.
  5292. Rename --force-truncate as --allow-overwrite:
  5293. * src/TorrentRequestInfo.cc
  5294. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  5295. * src/main.cc
  5296. (showUsage): --force-truncate -> --allow-overwrite
  5297. * src/message.h
  5298. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  5299. * src/prefs.h
  5300. (PREF_FORCE_TRUNCATE): Removed.
  5301. (PREF_ALLOW_OVERWRITE): New definition.
  5302. * src/SegmentMan.cc
  5303. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  5304. * src/MetalinkRequestInfo.cc
  5305. (execute): Queueing message are now logged in info level.
  5306. * src/common.h
  5307. (LONG_LONG_MAX): Removed.
  5308. (LONG_LONG_MIN): Removed.
  5309. * src/HttpResponseCommand.cc
  5310. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  5311. * src/FtpNegotiateCommand.cc
  5312. (recvSize): LONG_LONG_MAX -> INT64_MAX
  5313. * src/main.cc
  5314. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  5315. command-line option.
  5316. (main): Added --check-integriy and --realtime-chunk-checksum
  5317. command-line option.
  5318. --force-truncate -> --allow-overwrite
  5319. Set initial value of --check-integrity option to false.
  5320. Don't show usage when error occurs while persing command-line options.
  5321. Removed deprecated --upload-limit option.
  5322. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  5324. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  5325. * src/BtAllowedFastMessage.cc:
  5326. * src/BtBitfieldMessage.cc
  5327. * src/BtCancelMessage.cc
  5328. * src/BtChokeMessage.cc
  5329. * src/BtHaveAllMessage.cc
  5330. * src/BtHaveMessage.cc
  5331. * src/BtHaveNoneMessage.cc
  5332. * src/BtInterestedMessage.cc
  5333. * src/BtNotInterestedMessage.cc
  5334. * src/BtPieceMessage.cc
  5335. * src/BtPortMessage.cc
  5336. * src/BtRejectMessage.cc
  5337. * src/BtRequestMessage.cc
  5338. * src/BtSuggestPieceMessage.cc
  5339. * src/BtUnchokeMessage.cc
  5340. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  5341. files are affected.
  5342. * src/ChunkChecksumValidator.cc
  5343. * src/SegmentMan.cc
  5344. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5345. To add chunk checksum validation:
  5346. * src/MetalinkEntry.h
  5347. (MetalinkChunkChecksum.h): New include.
  5348. (chunkChecksum): New variable.
  5349. * src/Request.h
  5350. (method): New variable.
  5351. (setMethod): New function.
  5352. (getMethod): New function.
  5353. (METHOD_GET): New static constant.
  5354. (METHOD_HEAD): New static constant.
  5355. * src/Xml2MetalinkProcessor.h
  5356. (getPieceHash): New function.
  5357. * src/PieceStorage.h
  5358. (markAllPiecesDone): New function.
  5359. (checkIntegrity): New function.
  5360. * src/FileAllocator.h
  5361. (NullFileAllocationMonitor.h): New include.
  5362. (FileAllocator): Initialize fileAllocationMonitor with new
  5363. NullFileAllocationMonitor().
  5364. * src/MultiDiskAdaptor.h
  5365. (messageDigest.h): Remove include.
  5366. (ctx): Removed.
  5367. (hashUpdate): Added ctx.
  5368. (MultiDiskAdaptor): Removed ctx.
  5369. (sha1Sum): Renamed as messageDigest.
  5370. (messageDigest): New function.
  5371. * src/UrlRequestInfo.h
  5372. (HeadResult): New class.
  5373. (digestAlgo): New variable.
  5374. (chunkChecksumLength): New variable.
  5375. (chunkChecksums): New variable.
  5376. (getHeadResult): New function.
  5377. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  5378. (setDigestAlgo): New function.
  5379. (setChunkChecksumLength): New function.
  5380. (setChunkChecksums): New function.
  5381. * src/DefaultPieceStorage.cc
  5382. (DiskAdaptorWriter.h): New include.
  5383. (ChunkChecksumValidator.h): New include.
  5384. (markAllPiecesDone): New function.
  5385. (checkIntegrity): New function.
  5386. * src/DefaultBtContext.h
  5387. (getPieceHashes): New function.
  5388. * src/TorrentRequestInfo.cc
  5389. (execute): Try to validate chunk checksum if file already exists and
  5390. .aria2 file doesn't there and user allows aria2 to overwrite it.
  5391. * src/messageDigest.h
  5392. (~MessageDigestContext): Added digestFree().
  5393. * src/MetalinkRequestInfo.cc
  5394. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  5395. * src/DiskAdaptor.h
  5396. (messageDigest.h): New include.
  5397. (sha1Sum): Renamed as messageDigest.
  5398. (messageDigest): New function.
  5399. * src/DownloadCommand.h
  5400. (PeerStat.h): New include.
  5401. (maxDownloadSpeedLimit): New variable.
  5402. (startupIdleTime): New variable.
  5403. (lowestDownloadSpeedLimit): New variable.
  5404. (peerStat): New variable.
  5405. (setMaxDownloadSpeedLimit): New function.
  5406. (setStartupIdleTime): New function.
  5407. (setLowestDownloadSPeedLimit): New function.
  5408. * src/BtContext.h
  5409. (getPieceHashes): New function.
  5410. * src/main.cc
  5411. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  5412. option to true for testing purpose.
  5413. * src/BtPieceMessage.cc
  5414. (checkPieceHash): Use messageDigest
  5415. * src/DownloadEngine.cc
  5416. (SetDescriptor): Removed.
  5417. (AccumulateActiveCommand): Removed.
  5418. (waitData): Rewritten.
  5419. (updateFdSet): Rewritten.
  5420. * src/MultiDiskAdaptor.cc
  5421. (hashUpdate): Added ctx.
  5422. (sha1Sum): Renamed as messageDigest.
  5423. (messageDigest): New function.
  5424. * src/BitfieldMan.h
  5425. (isBitRangeSet): New function.
  5426. (unsetBitRange): New function.
  5427. * src/ByteArrayDiskWriter.h
  5428. (sha1Sum): Renamed as messageDigest.
  5429. (messageDigest): New function.
  5430. * src/ConsoleDownloadEngine.cc
  5431. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  5432. * src/DiskWriter.h
  5433. (messageDigest.h): New include.
  5434. (sha1Sum): Renamed as messageDigest.
  5435. (messageDigest): New function.
  5436. * src/ChunkChecksumValidator.h: New class.
  5437. * src/DiskAdaptorWriter.h: New class.
  5438. * src/prefs.h
  5439. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  5440. (PREF_CHECK_INTEGRITY): New definition.
  5441. * src/HttpResponseCommand.cc
  5442. (handleDefaultEncoding): Added method "HEAD" handling.
  5443. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  5444. (handleOtherEncoding):
  5445. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  5446. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  5447. startupIdleTime, lowestDownloadSpeedLimit to command.
  5448. * src/SegmentMan.h
  5449. (getSegmentEntryByIndex): New function.
  5450. (getSegmentEntryByCuid): New function.
  5451. (getSegmentEntryIteratorByCuid): New function.
  5452. (diskWriter): DiskWriter -> DiskWriterHandle
  5453. (pieceHashes): New variable.
  5454. (chunkHashLength): New variable.
  5455. (digestAlgo): New variable.
  5456. (FindPeerStat): Removed.
  5457. (getPeerStat): Rewritten.
  5458. (markAllPiecesDone): New function.
  5459. (checkIntegrity): New function.
  5460. (tryChunkChecksumValidation): New function.
  5461. (isChunkChecksumValidationReady): New function.
  5462. * src/BitfieldMan.cc
  5463. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  5464. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  5465. blocks to 0.
  5466. (isBitRangeSet): New function.
  5467. (unsetBitRange): New function.
  5468. * src/FtpNegotiateCommand.cc
  5469. (executeInternal): Set maxDownloadSpeedLimit,
  5470. startupIdleTime, lowestDownloadSpeedLimit to command.
  5471. (recvSize): Added method "HEAD" handling.
  5472. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  5473. * src/AbstractSingleDiskAdaptor.cc
  5474. (sha1Sum): Renamed as messageDigest.
  5475. (messageDigest): New function.
  5476. * src/AbstractSingleDiskAdaptor.h
  5477. (sha1Sum): Renamed as messageDigest.
  5478. (messageDigest): New function.
  5479. * src/Util.h
  5480. (indexRange): New function.
  5481. * src/MetalinkEntry.cc
  5482. (MetalinkEntry): Initialized chunkChecksum to 0.
  5483. * src/ShaVisitor.cc
  5484. (~ShaVisitor): Removed the call to ctx.digestFree().
  5485. * src/SegmentMan.cc
  5486. (ChunkChecksumValidator.h): New include.
  5487. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  5488. to DIGEST_ALGO_SHA1.
  5489. (~SegmentMan): Removed diskWriter.
  5490. (FindSegmentEntryByIndex): Removed.
  5491. (FindSegmentEntryByCuid): Removed.
  5492. (checkoutSegment): Rewritten.
  5493. (findSlowerSegmentEntry): Rewritten.
  5494. (getSegment): Rewritten.
  5495. (updateSegment): Rewritten.
  5496. (completeSegment): Rewritten.
  5497. (markAllPiecesDone): New function.
  5498. (checkIntegrity): New function.
  5499. (isChunkChecksumValidationReady): New function.
  5500. (tryChunkChecksumValidation): New function.
  5501. * src/Xml2MetalinkProcessor.cc
  5502. (getEntry): Get size and set it to entry.
  5503. Get chunk checksum and set it to entry.
  5504. (getPieceHash): New function.
  5505. * src/Util.cc
  5506. (sha1Sum): Removed ctx.digestFree()
  5507. (fileChecksum): Removed ctx.digestFree()
  5508. (indexRange): New function.
  5509. * src/Request.cc
  5510. (METHOD_GET): New variable.
  5511. (METHOD_HEAD): New variable.
  5512. (Request): Added method.
  5513. * src/UrlRequestInfo.cc
  5514. (FatalException.h): New include.
  5515. (message.h): New include.
  5516. (operator<<): Added operator<< for class HeadResult.
  5517. (getHeadResult): New function.
  5518. (execute): Get filename and size in separate download engine.
  5519. * src/ChunkChecksumValidator.cc: New class.
  5520. * src/DownloadCommand.cc:
  5521. (DownloadCommand): Added peerStat.
  5522. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  5523. the value from Option.
  5524. The buffer size is now 16KB.
  5525. Use peerStat member instead of getting it from SegmentMan.
  5526. Use startupIdleTime member instead of gettingit from Option.
  5527. Added chunk checksum validation.
  5528. * src/AbstractDiskWriter.cc
  5529. (AbstractDiskWriter): Removed ctx.
  5530. (~AbstractDiskWriter): Removed ctx.digestFree()
  5531. (writeDataInternal): Returns the return value of write.
  5532. (readDataInternal): Returns the return value of read.
  5533. (sha1Sum): Renamed as messageDigest
  5534. (messageDigest): New function.
  5535. * src/AbstractDiwkWriter.h
  5536. (messageDigest.h): Removed include.
  5537. (ctx): Removed.
  5538. (sha1Sum): Renamed as messageDigest
  5539. (messageDigest): New function.
  5540. * src/DefaultPieceStorage.h
  5541. (markAllPiecesDone): New function.
  5542. (checkIntegrity): New function.
  5543. * src/NullFileAllocationMonitor.h: New class.
  5544. * src/MetalinkChunkChecksum.h: New class.
  5545. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. To decrease CPU usage in bittorrent download, calculation results in
  5547. BitfieldMan were cached and realtime fetching PeerObject was removed
  5548. with WeakHandle introduced. Option values are set to the objects
  5549. by setter before download begins.
  5550. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  5551. * src/DefaultBtRequestFactory.h
  5552. (dispatcher): BtMessageDispatcherHandle ->
  5553. BtMessageDispatcherWeakHandle.
  5554. (messageFactory): New variable.
  5555. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  5556. BtMessageDispatcherWeakHandle.
  5557. (setBtMessageFactory): New function.
  5558. * src/DefaultBtMessageDispatcher.cc:
  5559. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  5560. from Option.
  5561. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  5562. feating the value from Option.
  5563. Use messageFactory member.
  5564. * src/PeerInteractionCommand.cc
  5565. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  5566. Add reverse dependencies to factory object.
  5567. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  5568. dispatcher.
  5569. Set messageFactory to receiver.
  5570. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  5571. btInteractive.
  5572. Set receiver to peerObject.
  5573. Set maxDownloadSpeedLimit to this.
  5574. (executeInternal): Use maxDownloadSpeedLimit member.
  5575. * src/BtChokeMessage.cc
  5576. (doReceivedAction): Use dispatcher, requestFactory member.
  5577. (onSendComplete): Use dispatcher member.
  5578. * src/PeerInteractionCommand.h
  5579. (maxDownloadSpeedLimit): New variable.
  5580. * src/DefaultBtMessageReceiver.h
  5581. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5582. (dispatcher):
  5583. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  5584. (messageFactory): New variable.
  5585. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5586. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5587. (setDispatcher):
  5588. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  5589. (setBtMessageFactory): New function.
  5590. * src/DefaultBtInteractive.cc
  5591. (initiateHandshake): Use messageFactory member.
  5592. (addBitfieldMessageToQueue): Use messageFactory member.
  5593. (addAllowedFastMessageToQueue): Use messageFactory member.
  5594. (decideChoking): Use messageFactory member.
  5595. (checkHave): Use messageFactory member.
  5596. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  5597. (receiveMessages): Use maxDownloadSpeedLimit member.
  5598. (decideInterest): Use messageFactory member.
  5599. * src/BtRequestMessage.cc
  5600. (doReceivedAction): Use messageFactory, dispatcher member.
  5601. (onQueued): Use dispatcher member.
  5602. * src/BtPieceMessage.cc
  5603. (doReceivedAction): Use dispatcher member.
  5604. (send): Use peerConnection member.
  5605. (onWrongPiece): Use requestFactory member.
  5606. (handleChokingEvent): Use messageFactory, dispatcher member.
  5607. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  5608. * src/BtMessageDispatcher.h
  5609. (BtMessageDispatcherWeakHandle): New type definition.
  5610. * src/SimpleBtMessage.cc
  5611. (send): Use peerConnection member.
  5612. * src/BtRejectMessage.cc
  5613. (doReceivedAction): Use dispatcher member.
  5614. * src/DefaultBtMessageDispatcher.h
  5615. (Option.h): Removed include.
  5616. (messageFactory): New variable.
  5617. (option): Removed.
  5618. (maxUploadSpeedLimit): New variable.
  5619. (requestTimeout): New variable.
  5620. (DefaultBtMessageDispatcher): Removed option.
  5621. Added maxUploadSpeedLimit, requestTimeout.
  5622. (setOption): Removed.
  5623. (getOption): Removed.
  5624. (setMaxUploadSpeedLimit): New function.
  5625. (setRequestTimeout): New function.
  5626. (setBtMessageFactory): New function.
  5627. * src/DefaultBtInteractive.h
  5628. (btMessageReceiver):
  5629. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  5630. (dispatcher):
  5631. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  5632. (btRequestFactory):
  5633. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  5634. (peerConnection):
  5635. PeerConnectionHandle -> PeerConnectionWeakHandle
  5636. (messageFactory): New variable.
  5637. (option): Removed.
  5638. (keepAliveInterval): New variable.
  5639. (maxDownloadSpeedLimit): New variable.
  5640. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  5641. (setBtMessageReceiver):
  5642. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  5643. (setDispatcher):
  5644. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  5645. (setBtRequestFactory):
  5646. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  5647. (setPeerConnection):
  5648. PeerConnectionHandle -> PeerConnectionWeakHandle
  5649. (setOption): Removed.
  5650. (setKeepAliveInterval): New function.
  5651. (setMaxDownloadSpeedLimit): New function.
  5652. (setBtMessageFactory): New function.
  5653. * src/BitfieldMan.h
  5654. (cachedNumMissingBlock): New variable.
  5655. (cachedNumFilteredBlock): New variable.
  5656. (cachedCompletedLength): New variable.
  5657. (cachedFilteredComletedLength): New variable.
  5658. (cachedFilteredTotalLength): New variable.
  5659. (countMissingBlockNow): New function.
  5660. (countFilteredBlockNow): New function.
  5661. (getFilteredTotalLengthNow): New function.
  5662. (getCompletedLengthNow): New function.
  5663. (getFilteredCompletedLengthNow): New function.
  5664. (updateCache): New function.
  5665. * src/AbstractBtMessage.h
  5666. (BtMessageDispatcher.h): New include.
  5667. (PeerConnection.h): New include.
  5668. (BtRequestFactory.h): New include
  5669. (BtMessageFactory.h): New include.
  5670. (dispatcher): New variable.
  5671. (messageFactory): New variable.
  5672. (peerConnection: New variable.
  5673. (setBtMessageDispatcher): New function.
  5674. (setPeerConnection): New function.
  5675. (setBtMessageFactory): New function.
  5676. (setBtRequestFactory): New function.
  5677. * src/DefaultBtMessageFactory.cc
  5678. (setCommonProperty): Set dispatcher, requestFactory, this,
  5679. peerConnection to msg.
  5680. * src/BtRegistry.h
  5681. (BT_MESSAGE_RECEIVER): New macro.
  5682. * src/PeerConnection.h
  5683. (PeerConnectionWeakHandle): New type definition.
  5684. * src/BtMessageFactory.h
  5685. (BtMessageFactoryWeakHandle): New type definition.
  5686. * src/BitfieldMan.cc
  5687. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  5688. cachedCompletedLength, cachedFilteredComletedLength,
  5689. cachedFilteredTotalLength.
  5690. Call updateCache().
  5691. (countMissingBlock): Return cachedNumMissingBlock.
  5692. (countMissingBlockNow): New function.
  5693. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  5694. (countFilteredBlockNow): New function.
  5695. (setBit): Call updateCache().
  5696. (unsetBit): Call updateCache().
  5697. (setBitfield): Call updateCache().
  5698. (clearAllBit): Call updateCache().
  5699. (setAllBit): Use setBitInternal instead of setBit.
  5700. Call updateCache().
  5701. (addFilter): Call updateCache().
  5702. (enableFilter): Call updateCache().
  5703. (disableFilter): Call updateCache().
  5704. (clearFilter): Call updateCache().
  5705. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  5706. (getFilteredTotalLengthNow): New function.
  5707. (getCompletedLength): Return cachedCompletedLength.
  5708. (getCompletedLengthNow): New function.
  5709. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  5710. (getFilteredCompletedLengthNow): New function.
  5711. (updateCache): New function.
  5712. * src/BtMessageReceiver.h
  5713. (BtMessageReceiverWeakHandle): New type definition.
  5714. * src/DefaultBtMessageReceiver.cc
  5715. (receiveHandshake): Use messageFactory member.
  5716. (sendHandshake): Use messageFactory member.
  5717. (receiveMessage): Use messageFactory member.
  5718. * src/DefaultBtMessageFactory.h
  5719. (dispatcher): New variable.
  5720. (requestFactory): New variable.
  5721. (peerConnection): New variablle.
  5722. (setBtMessageDispatcher): New function.
  5723. (setBtRequestFactory): New function.
  5724. (setPeerConnection): New function.
  5725. * src/SharedHandle.h
  5726. (RefCount): New class.
  5727. (WeakHandle): New class.
  5728. * src/PeerObject.h
  5729. (BtMessageReceiver.h): New include.
  5730. (PeerObject): Added btMessageReceiver.
  5731. (btMessageReceiver): New variable.
  5732. * src/Util.cc
  5733. (countBit): Simplified.
  5734. * src/BtCancelMessage.cc
  5735. (doReceivedAction): Use dispatcher member.
  5736. * src/BtRequestFactory.h
  5737. (BtRequestFactoryWeakHandle): New type definition.
  5738. * src/PeerStorage.h
  5739. (downloadSpeed): int -> uint32_t
  5740. (uploadSpeed): int -> uint32_t
  5741. (sessionDownloadLength): long long int -> uint64_t
  5742. (sessionUploadLength): long long int -> uint64_t
  5743. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. To add RecoverableException, FatalException:
  5745. * src/AbstractCommand.cc
  5746. (onAbort): Exception -> RecoverableException
  5747. * src/PeerAbstractCommand.h
  5748. (RecoverableException.h): New include.
  5749. (onAbort): Exception -> RecoverableException.
  5750. * src/PeerInteractionCommand.cc
  5751. (onAbort): Exception -> RecoverableException.
  5752. * src/PeerAbstractCommand.cc
  5753. (execute): Exception -> RecoverableException.
  5754. (onAbort): Exception -> RecoverableException.
  5755. * src/TorrentRequestInfo.cc
  5756. (execute): Exception -> RecoverableException.
  5757. * src/MetalinkRequestInfo.cc
  5758. (execute): Exception -> RecoverableException.
  5759. * src/MetaFileUtil.cc: RecoverableException.
  5760. * src/AbstractCommand.h
  5761. (onAbort): Exception -> RecoverableException.
  5762. * src/DlRetryEx.h: Exception -> RecoverableException.
  5763. * src/DlAbortEx.h: Exception -> RecoverableException.
  5764. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  5765. * src/Util.cc: Exception -> RecoverableException.
  5766. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  5767. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  5768. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  5769. To make ID static const int
  5770. * src/BtInterestedMessage.h
  5771. (ID_t): Removed.
  5772. (ID): New variable.
  5773. (getId): Made non-const.
  5774. * src/BtPieceMessage.h
  5775. (ID_t): Removed.
  5776. (ID): New variable.
  5777. (getId): Made non-const.
  5778. * src/BtChokeMessage.h
  5779. (ID_t): Removed.
  5780. (ID): New variable.
  5781. (getId): Made non-const.
  5782. * src/BtHaveAllMessage.h
  5783. (ID_t): Removed.
  5784. (ID): New variable.
  5785. (getId): Made non-const.
  5786. * src/BtKeepAliveMessage.h
  5787. (ID_t): Removed.
  5788. (ID): New variable.
  5789. (getId): Made non-const.
  5790. * src/BtHandshakeMessage.h
  5791. (ID): New variable.
  5792. (getId): Made non-const.
  5793. * src/BtSuggestPieceMessage.h
  5794. (ID_t): Removed.
  5795. (ID): New variable.
  5796. (getId): Made non-const.
  5797. * src/BtPortMessage.h
  5798. (ID_t): Removed.
  5799. (ID): New variable.
  5800. (getId): Made non-const.
  5801. * src/AbstractBtMessage.h
  5802. (id): Removed.
  5803. (AbstractBtMessage): Removed id.
  5804. (getId): Removed.
  5805. * src/BtHaveMessage.h
  5806. (ID_t): Removed.
  5807. (ID): New variable.
  5808. (getId): Made non-const.
  5809. * src/BtAllowedFastMessage.h
  5810. (ID_t): Removed.
  5811. (ID): New variable.
  5812. (getId): Made non-const.
  5813. * src/BtCancelMessage.h
  5814. (ID_t): Removed.
  5815. (ID): New variable.
  5816. (getId): Made non-const.
  5817. * src/BtNotInterestedMessage.h
  5818. (ID_t): Removed.
  5819. (ID): New variable.
  5820. (getId): Made non-const.
  5821. * src/BtChokeMessage.h
  5822. (ID_t): Removed.
  5823. (ID): New variable.
  5824. (getId): Made non-const.
  5825. * src/BtRejectMessage.h
  5826. (ID_t): Removed.
  5827. (ID): New variable.
  5828. (getId): Made non-const.
  5829. * src/BtBitfieldMessage.h
  5830. (ID_t): Removed.
  5831. (ID): New variable.
  5832. (getId): Made non-const.
  5833. * src/BtUnchokeMessage.h
  5834. (ID_t): Removed.
  5835. (ID): New variable.
  5836. (getId): Made non-const.
  5837. * src/BtRequestMessage.h
  5838. (ID_t): Removed.
  5839. (ID): New variable.
  5840. (getId): Made non-const.
  5841. * src/BtHaveMessage.h
  5842. (ID_t): Removed.
  5843. (ID): New variable.
  5844. (getId): Made non-const.
  5845. To add --force-truncate command-line option and a check whether
  5846. the file already exists:
  5847. * src/DirectDiskAdaptor.h
  5848. (getFilePath): Made virtual public.
  5849. * src/MultiDiskAdaptor.h
  5850. (File.h): New include.
  5851. (DiskWriterEntry::fileEntry): Made private.
  5852. (DiskWriterEntry::fileExists): New function.
  5853. (DiskWriterEntry::getFileEntry): New function.
  5854. (fileExists): New function.
  5855. (getFilePath): New function.
  5856. * src/TorrentRequestInfo.cc
  5857. (FatalException.h): New include.
  5858. (message.h): New include.
  5859. (RecoverableException.h): New include.
  5860. (execute): Added a check whether file is already exists or not.
  5861. * src/DiskAdaptor.h
  5862. (fileExists): New function.
  5863. (getFilePath): New function.
  5864. * src/main.cc
  5865. (showUsage): Added an explanation of --force-truncate command-line
  5866. option.
  5867. (main): Added --force-truncate command-line option.
  5868. * src/Exception.h
  5869. (setMsg): buf[256] -> buf[1024]
  5870. * src/CopyDiskWriter.h
  5871. (getFilePath): Made public virtual.
  5872. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  5873. (fileExists): New function.
  5874. * src/DownloadEngineFactory.cc
  5875. (newTorrentConsoleEngine): Don't open file here.
  5876. * src/message.h
  5877. (EX_FILE_ALREADY_EXISTS): New definition.
  5878. * src/prefs.h
  5879. (PREF_FOECE_TRUNCATE): New definition.
  5880. * src/HttpResponseCommand.cc
  5881. (handleDefaultEncoding): Added a check whether the file already exists.
  5882. * src/SegmentMan.h
  5883. (fileExists): New function.
  5884. (shouldCancelDownloadForSafety): New function.
  5885. * src/FtpNegotiateCommand.cc
  5886. (recvSize): Added a check whether the file already exists.
  5887. * src/AbstractSingleDiskAdaptor.cc
  5888. (File.h): New include.
  5889. (fileExists): New function.
  5890. * src/AbstractSingleDiskAdaptor.h
  5891. (getFilePath): Removed.
  5892. (fileExists): New function.
  5893. * src/SegmentMan.cc
  5894. (fileExists): New function.
  5895. (shouldCancelDownloadForSafety): New function.
  5896. To fix regression bug in torrent downloading:
  5897. * src/DefaultBtRequestFactory.cc
  5898. (doChokedAction): New function.
  5899. * src/DefaultBtRequestFactory.h
  5900. (doChokedAction): New function.
  5901. * src/DefaultBtMessageDispatcher.cc
  5902. (doChokedAction): Do not delete request if its target is in allowed
  5903. fast set.
  5904. * src/DefaultBtInteractive.cc
  5905. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  5906. (sendKeepAlive): Send keep alive message even if the outgoing message
  5907. queue is not empty.
  5908. (decideInterest): Simplified the code.
  5909. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  5910. it is already called when BtChokeMessage is received from a peer.
  5911. * src/BtRequestFactory.h
  5912. (doChokedAction): New function.
  5913. To clean up code:
  5914. * src/PeerInteractionCommand.h
  5915. (executeInternal): Added virtual keyword explicitly.
  5916. (prepareForRetry): Added virtual keyword explicitly.
  5917. (prepareForNextPeer): Added virtual keyword explicitly.
  5918. (onAbort): Added virtual keyword explicitly.
  5919. * src/RequestSlot.cc
  5920. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  5921. * src/BtPieceMessage.cc
  5922. (doReceivedAction): Added a debug log of piece's bitfield.
  5923. * src/Piece.h
  5924. (getBitfieldLength): New function.
  5925. * src/ByteArrayDiskWriter.cc
  5926. (clear): Added buf = 0 to avoid double free corruption.
  5927. * src/FileAllocator.cc
  5928. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  5929. Added cp.reset().
  5930. * src/BitfieldMan.h
  5931. (operator=): Rewritten.
  5932. * src/BitfieldMan.cc
  5933. (BitfieldMan): Initialized bitfield, useBitfield.
  5934. * src/PeerConnection.cc
  5935. (receiveMessage): Added a call to socket->readable() after getting
  5936. message length to avoid possible EOF.
  5937. * src/Util.cc
  5938. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  5939. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. To add an ability to pre-allocate file space:
  5941. * src/DirectDiskAdaptor.h: Rewritten.
  5942. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  5943. * src/MultiDiskAdaptor.h: Rewritten.
  5944. * src/DefaultPieceStorage.cc
  5945. (MultiDiskWriter.h): Removed include.
  5946. (PreAllocationDiskWriter.h): Removed include.
  5947. (FileAllocationMonitor.h): New include.
  5948. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  5949. (initStorage): Rewritten.
  5950. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  5951. * src/FileAllocator.h: New class.
  5952. * src/FileAllocator.cc: New class.
  5953. * src/FileAllocationMonitor.h: New class.
  5954. * src/FileAllocationMonitor.cc: New class.
  5955. * src/ConsoleFileAllocationMonitor.h: New class.
  5956. * src/ConsoleFileAllocationMonitor.cc: New class.
  5957. * src/AbstractSingleDiskAdaptor.h: New class.
  5958. * src/AbstractSingleDiskAdaptor.cc: New class.
  5959. * src/DiskAdaptor.h
  5960. (Directory.h): Removed include.
  5961. (DiskWriter.h): Removed include.
  5962. (FileEntry.h): Removed include.
  5963. (diskWriter): Removed.
  5964. (DiskAdaptor): Removed diskWriter.
  5965. (openFile): Made pure virtual.
  5966. (closeFile): Made pure virtual.
  5967. (openExistingFile): Made pure virtual.
  5968. (initAndOpenFile): Made pure virtual.
  5969. (writeData): Made pure virtual.
  5970. (readData): Made pure virtual.
  5971. (sha1Sum): Made pure virtual.
  5972. (getStoreDir): Returns const reference of storeDir.
  5973. (DiskAdaptorHandle): New type definition.
  5974. * src/main.cc
  5975. (ConsoleFileAllocationMonitor.h): New include.
  5976. (showUsage): Added default value description of -s option.
  5977. Added the description of --file-allocation option.
  5978. (main): Set default value of --file-allocation option to 'none'.
  5979. Added --file-allocation command-line option.
  5980. Setup FileAllocationMonitorFactory.
  5981. * src/FtpInitiateConnectionCommand.cc
  5982. (executeInternal): Removed diskWriter related processing, which was
  5983. moved to FtpNegotiationCommand.cc.
  5984. * src/DirectDiskAdaptor.cc
  5985. (getFilePath): Made non-const.
  5986. * src/CopyDiskAdaptor.h
  5987. (DiskAdaptor.h): Removed include.
  5988. (DiskWriter.h): Removed include.
  5989. (AbstractSingleDiskAdaptor.h): New include.
  5990. (getFilePath): Made non-const. Added virtual keyword.
  5991. (CopyDiskAdaptor): Removed diskWriter.
  5992. (getTempFile): Returns const reference.
  5993. (CopyDiskAdaptorHandle): New type definition.
  5994. * src/ByteArrayDiskWriter.cc
  5995. (clear): Simplified.
  5996. (initAndOpenFile): Rewritten.
  5997. (openFile): Call initAndOpenFile()
  5998. * src/MultiDiskAdaptor.cc: Rewritten.
  5999. * src/DownloadEngineFactory.cc
  6000. (FileAllocator.h): New include.
  6001. (FileAllocationMonitor.h): New include.
  6002. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  6003. create DefaultDiskWriter with file allocator.
  6004. * src/DiskWriter.h
  6005. (initAndOpenFile): Added totalLength argument.
  6006. (openFile): Added totalLength argument.
  6007. * src/prefs.h
  6008. (PREF_FILE_ALLOCATION): New definition.
  6009. (V_PREALLOC): New definition.
  6010. (V_NONE): New definition.
  6011. * src/HttpResponseCommand.cc
  6012. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  6013. size.
  6014. * src/FtpNegotiateCommand.cc
  6015. (Util.h): New include.
  6016. (recvSize): Open file here.
  6017. * src/Util.h
  6018. (ullitos): New function.
  6019. * src/CopyDiskWriter.h
  6020. (getFilePath): Made non-const.
  6021. * src/DefaultDiskWriter.h
  6022. (Option.h): New include.
  6023. (totalLength): Removed.
  6024. (DefaultDiskWriter): Removed totalLength.
  6025. (initAndOpenFile): Added totalLength argument.
  6026. (DefaultDiskWriterHandle): New type definition.
  6027. (createNewDiskWriter): New function.
  6028. * src/Util.cc
  6029. (ullitos): New function.
  6030. * src/DefaultDiskWriter.cc
  6031. (message.h): New include.
  6032. (FileAllocator.h): New include.
  6033. (prefs.h): New include.
  6034. (Util.h): New include.
  6035. (DefaultDiskWriter): Removed totalLength.
  6036. (initAndOpenFile): Added file allocation.
  6037. (createNewDiskWriter): New function. Just for temporary solution.
  6038. It will be rewritten later.
  6039. * src/DiskAdaptor.cc
  6040. (DiskAdaptor): Removed diskWriter.
  6041. * src/AbstractDiskWriter.cc
  6042. (LogFactory.h): New include.
  6043. (AbstractDiskWriter): Added fileAllocator, logger.
  6044. (openFile): Added totalLength argument.
  6045. * src/AbstractDiskWriter.h
  6046. (FileAllocator.h): New include.
  6047. (Logger.h): New include.
  6048. (fileAllocator): New variable.
  6049. (logger): New variable.
  6050. (openFile): Added totalLength argument. Added virtual keyword
  6051. explicitly.
  6052. (openExistingFile): Added totalLength argument. Added virtual keyword
  6053. explicitly.
  6054. (closeFile): Added virtual keyword explicitly.
  6055. (sha1Sum): Added virtual keyword explicitly.
  6056. (writeData): Added virtual keyword explicitly.
  6057. (readData): Added virtual keyword explicitly.
  6058. (setFileAllocator): New function.
  6059. * src/DefaultPieceStorage.h
  6060. (FileAllocator.h): New include.
  6061. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6062. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6063. * src/FileProgressMonitor.h: New class.
  6064. To compile aria2 on PC-BSD:
  6065. * src/DefaultBtContext.cc
  6066. (libgen.h): New include.
  6067. To fix memory leak:
  6068. * src/Exception.h
  6069. (~Exception): Delete cause. Fixed memory leak.
  6070. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Rewritten a portion of bittorrent implementation:
  6072. * src/BtMessageValidator.h: New class.
  6073. * src/BtBitfieldMessageValidator.h: New class.
  6074. * src/BtHandshakeMessageValidator.h: New class.
  6075. * src/BtRequestMessageValidator.h: New class.
  6076. * src/BtSuggestPieceMessageValidator.h: New class.
  6077. * src/BtAllowedFastMessageValidator.h: New class.
  6078. * src/BtRejectMessageValidator.h: New class.
  6079. * src/BtCancelMessageValidator.h: New class.
  6080. * src/BtPieceMessageValidator.h: New class.
  6081. * src/BtHaveMessageValidator.h: New class.
  6082. * src/BtEventListener.h: New class.
  6083. * src/AbstractBtEventListener.h: New class.
  6084. * src/BtEvent.h: New class.
  6085. * src/BtChokingEvent.h: New class.
  6086. * src/BtChokedEvent.h: New class.
  6087. * src/BtCancelSendingPieceEvent.h: New class.
  6088. * src/BtAbortOutstandingRequestEvent.h: New class.
  6089. * src/Randomizer.h: New class.
  6090. * src/SimpleRandomizer.h: New class.
  6091. * src/BtMessage.h: New class.
  6092. * src/AbstractBtMessage.h: New class.
  6093. * src/SimpleBtMessage.h: New class.
  6094. * src/BtHaveMessage.h: New class.
  6095. * src/BtInterestedMessage.h: New class.
  6096. * src/BtAllowedFastMessage.h: New class.
  6097. * src/BtUnchokeMessage.h: New class.
  6098. * src/BtCancelMessage.h: New class.
  6099. * src/BtNotInterestedMessage.h: New class.
  6100. * src/BtChokeMessage.h: New class.
  6101. * src/BtHaveNoneMessage.h: New class.
  6102. * src/BtHandshakeMessage.h: New class.
  6103. * src/BtSuggestPieceMessage.h: New class.
  6104. * src/BtHaveMessage.h: New class.
  6105. * src/BtPieceMessage.h: New class.
  6106. * src/BtHaveAllMessage.h: New class.
  6107. * src/BtKeepAliveMessage.h: New class.
  6108. * src/BtPortMessage.h: New class.
  6109. * src/BtRejectMessage.h: New class.
  6110. * src/BtBitfieldMessage.h: New class.
  6111. * src/BtRequestMessage.h: New class.
  6112. * src/DefaultBtRequestFactory.h: New class.
  6113. * src/DefaultBtMessageReceiver.h: New class.
  6114. * src/BtInteractive.h: New class.
  6115. * src/BtMessageDispatcher.h: New class.
  6116. * src/DefaultBtMessageDispatcher.h: New class.
  6117. * src/DefaultBtInteractive.h: New class.
  6118. * src/BitfieldManFactory.h: New class.
  6119. * src/HandleRegistry.h: New class.
  6120. * src/BtMessageFactory.h: New class.
  6121. * src/BtMessageReceiver.h: New class.
  6122. * src/DefaultBtMessageFactory.h: New class.
  6123. * src/PeerObject.h: New class.
  6124. * src/BtRequestFactory.h: New class.
  6125. * src/SuggestPieceMessage.h: Removed.
  6126. * src/PortMessage.h: Removed.
  6127. * src/SuggestPieceMessage.h: Removed.
  6128. * src/KeepAliveMessage.h: Removed.
  6129. * src/HandshakeMessage.h: Removed.
  6130. * src/PeerInteraction.h: Removed.
  6131. * src/UnchokeMessage.h: Removed.
  6132. * src/PieceMessage.h: Removed.
  6133. * src/RequestMessage.h: Removed.
  6134. * src/InterestedMessage.h: Removed.
  6135. * src/HaveMessage.h: Removed.
  6136. * src/CancelMessage.h: Removed.
  6137. * src/RejectMessage.h: Removed.
  6138. * src/AllowedFastMessage.h: Removed.
  6139. * src/HaveNoneMessage.h: Removed.
  6140. * src/SimplePeerMessage.h: Removed.
  6141. * src/HaveAllMessage.h: Removed.
  6142. * src/BitfieldMessage.h: Removed.
  6143. * src/PeerMessageFactory.h: Removed.
  6144. * src/NotInterestedMessage.h: Removed.
  6145. * src/ChokeMessage.h: Removed.
  6146. * src/PeerMessage.h: Removed.
  6147. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. To know root cause of exception:
  6149. * src/Exception.h
  6150. (cause): New variable.
  6151. (Exception): Added a parameter.
  6152. (getMsg): Return const reference to msg.
  6153. (getCause): New function.
  6154. * src/DlRetryEx.h
  6155. (DlRetryEx): Added a parameter 'cause'.
  6156. Added an overloaded constructor.
  6157. (DlAbortEx): Added a parameter 'cause'.
  6158. Added an overloaded constructor.
  6159. * src/SimpleLogger.cc
  6160. (writeLog): Log nested exception messages recursively.
  6161. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. * src/DefaultBtProgressInfoFile.cc
  6163. (load): Fixed memory leak when the infohash doesn't match.
  6164. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. * src/DefaultPeerStorage.cc
  6166. (calculateStat): Simplified the code by combining 2 loops into 1.
  6167. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  6169. for BitTorrent download:
  6170. * src/PeerAbstractCommand.cc
  6171. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  6172. * src/main.cc:
  6173. (timeoutSpecified): Removed.
  6174. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  6175. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  6176. * src/TorrentRequestInfo.cc
  6177. (timeoutSpecified): Removed.
  6178. (torrentHandler): Removed timeoutSpecified and the adjustment of
  6179. timeout value.
  6180. * src/prefs.h
  6181. (PREF_BT_TIMEOUT): New definition.
  6182. Delete unused variables:
  6183. * src/TorrentRequestInfo.cc
  6184. (requestInfo): Removed.
  6185. Move setSignalHander to Util::setGlobalSignalHandler:
  6186. * src/TorrentRequestInfo.cc:
  6187. setSignalHander -> Util::setGlobalSignalHandler
  6188. * src/main.cc
  6189. (setSignalHander): Removed.
  6190. (main): setSignalHander -> Util::setGlobalSignalHandler
  6191. * src/Util.h
  6192. (setGlobalSignalHandler): New function.
  6193. * src/Util.cc
  6194. (setGlobalSignalHandler): New function.
  6195. * src/UrlRequestInfo.cc:
  6196. setSignalHander -> Util::setGlobalSignalHandler
  6197. Reset peer status in order to exit gracefully:
  6198. * src/PeerAbstractCommand.cc
  6199. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  6200. To fix the bug that causes the number of bytes uploaded is not saved
  6201. to .aria2 file:
  6202. * src/DefaultPeerStorage.h
  6203. (removedPeerSessionDownloadLength): New variable.
  6204. (removedPeerSessionUploadLength): New variable.
  6205. * src/DefaultPeerStorage.cc
  6206. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  6207. removedPeerSessionUploadLength(0).
  6208. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  6209. through all peers, and then add removedPeerSessionDownloadLength(
  6210. removedPeerSessionUploadLength) to it.
  6211. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  6212. (to) the peer to removedPeerSessionDownloadLength
  6213. (removedPeerSessionUploadLength).
  6214. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6215. To add Metalink location option:
  6216. * src/MetalinkRequestInfo.cc
  6217. (execute): Call MetalinkEntry::setLocationPreference()
  6218. * src/main.cc
  6219. (showUsage): Added the help message for --metalink-location option.
  6220. (main): Added --metalink-location option.
  6221. * src/prefs.h
  6222. (PREF_METALINK_LOCATION): New definition.
  6223. * src/MetalinkEntry.cc
  6224. (AddLocationPreference): New function object.
  6225. (setLocationPreference): New function.
  6226. * src/Xml2MetalinkProcessor.cc
  6227. (getResource): Set location attribute to MetalinkResource
  6228. To show URLs to download
  6229. * src/UrlRequestInfo.h
  6230. (printUrls): New function.
  6231. To add multiple <file> Metalink support:
  6232. * src/MetalinkEntry.h
  6233. (MetalinkResources): Removed.
  6234. (setLocationPreference): New function.
  6235. (MetalinkEntryHandle): New type definition.
  6236. (MetalinkEntries): New type definition.
  6237. * src/Xml2MetalinkProcessor.h
  6238. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6239. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6240. (parseFile): Metalinker* -> MetalinkerHandle
  6241. * src/UrlRequestInfo.h
  6242. (execute): RequestInfo* -> RequestInfos
  6243. * src/MetalinkRequestInfo.cc
  6244. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  6245. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  6246. (execute): RequestInfo* -> RequestInfos
  6247. Added multiple <file> support. Print filename when it is queued.
  6248. * src/MetalinkRequestInfo.h
  6249. (execute): RequestInfo* -> RequestInfos
  6250. (getDownloadEngine): Removed.
  6251. * src/RequestInfo.h
  6252. (RequestInfoHandle): New type definition.
  6253. (RequestInfos): New type definition.
  6254. (execute): RequestInfo* -> RequestInfos
  6255. (getDownloadEngine): Removed.
  6256. * src/MetalinkResource.h
  6257. (MetalinkResourceHandle): New type definition.
  6258. (MetalinkResources): New type definition.
  6259. * src/MetalinkEntry.cc
  6260. (~MetalinkEntry): Removed the deletion of the elements of resources,
  6261. because the element is now of type MetalinkResourceHandle.
  6262. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  6263. (Supported): MetalinkResource* -> MetalinkResourceHandle
  6264. (dropUnsupportedResource): Removed the deletion of the elements of
  6265. resources because the element is now of type MetalinkResourceHandle.
  6266. * src/Xml2MetalinkProcessor.cc
  6267. (parseFile): Metalinker* -> MetalinkerHandle
  6268. MetalinkEntry* -> MetalinkEntryHandle
  6269. Removed try-catch block.
  6270. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6271. MetalinkResource* -> MetalinkResourceHandle
  6272. Removed try-catch block.
  6273. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6274. Free result by using xmlXPathFreeObject()
  6275. * src/Metalinker.cc
  6276. (~Metalinker): Removed the deletion of entries.
  6277. MetalinkEntry* -> MetalinkEntryHandle
  6278. (queryEntry): Add multiple <file> Metalink support.
  6279. * src/Metalinker.h
  6280. (MetalinkEntries): Removed.
  6281. (queryEntry): MetalinkEntry* -> MetalinkEntries
  6282. * src/MetalinkProcessor.h
  6283. (parseFile): Metalinker* -> MetalinkerHandle
  6284. Bug fixes:
  6285. * src/PeerChokeCommand.cc
  6286. (execute): cat01->cat02
  6287. * src/DefaultPieceStorage.cc
  6288. (DefaultPieceStorage): Added diskAdaptor(0)
  6289. * src/TrackerWatcherComand.cc:
  6290. (execute): Use btAnnounce->noMoreAnnounce()
  6291. to determin whether the function returns true or not.
  6292. * src/TrackerUpdateCommand.cc:
  6293. (execute): Use btAnnounce->noMoreAnnounce()
  6294. to determin whether the function returns true or not.
  6295. * src/FtpConnection.cc
  6296. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  6297. This is the fix of the busy loop bug.
  6298. * src/DownloadCommand.cc
  6299. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  6300. cached PeerStat.
  6301. The value of "name" entry in torrent file is now set by
  6302. *DiskAdaptor::setTopDir(...) methods.
  6303. * src/MultiDiskAdaptor.h
  6304. (topDir): New variable.
  6305. (setTopDir): New function.
  6306. (getTopDir): New function.
  6307. * src/MultiDiskAdaptor.cc
  6308. (getFilePath): Concat storDir, "/" and topDir.
  6309. (mkdir): Use getFilePath() to get the directory path for output.
  6310. * src/DefaultPieceStorage.cc
  6311. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  6312. CopyDiskAdaptor.
  6313. * src/CopyDiskAdaptor.h
  6314. (topDir): New variable.
  6315. (setTopDir): New function.
  6316. (getTopDir): New function.
  6317. * src/CopyDiskAdaptor.cc
  6318. (fixFilename): Updated.
  6319. Misc
  6320. * src/UrlRequestInfo.h
  6321. (e): Removed.
  6322. (UrlRequestInfo): Removed e.
  6323. (getDownloadEngine): Removed.
  6324. * src/UrlRequestInfo.cc
  6325. (handler): Rewritten.
  6326. (printUrls): New function.
  6327. (execute): Call printUrls().
  6328. * src/HandshakeMessage.cc
  6329. (check): peerinteraction->getBtContext() -> btContext
  6330. * src/PeerInteraction.h
  6331. (getBtContext): Removed.
  6332. * src/TorrentRequestInfo.h
  6333. (execute): RequestInfo* -> RequestInfos
  6334. (getDownloadEngine): Removed.
  6335. * src/TorrentRequestInfo.cc
  6336. (haltRequested): Removed.
  6337. (btHaltRequested): New variable.
  6338. (torrentHandler): haltRequested -> btHaltRequested
  6339. (execute): RequestInfo* -> RequestInfos
  6340. * src/TorrentConsoleDownloadEngine.cc
  6341. (afterEachIteration): haltRequested -> btHaltRequested.
  6342. * src/ConsoleDownloadEngine.h
  6343. (initStatistics): Added virtual.
  6344. (calculateStatistics): Added virtual.
  6345. (onEndOfRun): Added virtual.
  6346. (afterEachIteration): Added virtual.
  6347. * src/ConsoleDownloadEngine.cc
  6348. (haltRequested): New variable.
  6349. (afterEachIteration): New function.
  6350. * src/main.cc
  6351. (requestInfo): Removed.
  6352. * src/SegmentMan.cc
  6353. (findSlowerSegmentEntry): Refactored.
  6354. * Release 0.9.0
  6355. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  6357. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  6358. * src/TorrentMan.h: Removed.
  6359. * src/TorrentMan.cc: Removed.
  6360. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  6361. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  6362. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  6363. * src/PeerAbstractCommand.cc: Use btRuntime.
  6364. * src/BtContextAwareCommand.h: New class.
  6365. * src/FileEntry.h: Added accessor methods for following variables.
  6366. (path): Made private.
  6367. (length): Made private.
  6368. (offset): Made private.
  6369. (extracted): Made private.
  6370. (requested): Made private.
  6371. (FileEntries): New definition.
  6372. (FileEntryHandle): New definition.
  6373. * src/FileEntry.cc: New file.
  6374. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  6375. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  6376. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  6377. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  6378. * src/PieceStorage.h: New file.
  6379. * src/PeerInteractionCommand.h: Use btContext.
  6380. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  6381. btRuntime.
  6382. * src/DefaultBtProgressInfoFile.h: New file.
  6383. * src/DefaultBtProgressInfoFile.cc: New file.
  6384. * src/File.cc
  6385. (Util.h): New include.
  6386. (mkdirs): New function.
  6387. * src/MultiDiskAdaptor.h
  6388. (mkdir): New function.
  6389. * src/PeerListProcessor.h
  6390. (Peers): Removed.
  6391. * src/PeerInteraction.h
  6392. (torrentMan): Removed.
  6393. (btContext): New variable.
  6394. (peerStorage): New variable.
  6395. (pieceStorage): New variable.
  6396. (btAnnounce): New variable.
  6397. (getTorrentMan): Removed.
  6398. (getBtContext): New function.
  6399. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  6400. btAnnounce.
  6401. * src/HandshakeMessage.h
  6402. (TorrentMan.h): Removed.
  6403. * src/HandshakeMessage.cc: Use btContext.
  6404. * src/DefaultBtAnnounce.cc: New file.
  6405. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  6406. * src/DefaultPieceStorage.cc: New file.
  6407. * src/DefaultBtContext.h: New file.
  6408. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  6409. Use the accessor methods of FileEntry.
  6410. * src/CookieBox.cc: Updated to use Util::slice().
  6411. * src/PieceMessage.cc: Use btContext, pieceStorage.
  6412. * src/common.h (SharedHandle.h): New include.
  6413. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  6414. pieceStorage.
  6415. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  6416. * src/DiskAdaptor.h
  6417. (topDir): Removed.
  6418. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  6419. (setTopDir): Removed.
  6420. (getTopDir): Removed.
  6421. * src/BtContext.h: New file.
  6422. * src/DefaultPeerStorage.h: New file.
  6423. * src/PieceMessage.h (TorrentMan.h): Removed.
  6424. * src/RequestMessage.h (TorrentMan.h): Removed.
  6425. * src/TorrentDownloadEngine.h
  6426. (uploadLength): New variable.
  6427. (btContext): New variable.
  6428. (btRuntime): New variable.
  6429. (pieceStorage): New variable.
  6430. (peerStorage): New variable.
  6431. (btAnnounce): New variable.
  6432. (btProgressInfoFile): New variable.
  6433. (torrentMan): Removed.
  6434. (setBtContext): New function.
  6435. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  6436. peerStorage, btAnnounce, btProgressInfoFile.
  6437. * src/Piece.h
  6438. (toString): New function.
  6439. (Pieces): New type definition.
  6440. * src/Peer.h
  6441. (active): New variable.
  6442. (Peer): Added active.
  6443. (activate): Set active to true.
  6444. (deactivate): Set active to false.
  6445. (isActive): New function.
  6446. (Peers): New type definition.
  6447. * src/DirectDiskAdaptor.cc
  6448. (getFilePath): Use the accessor methods of FileEntry.
  6449. * src/TorrentConsoleDownloadEngine.h
  6450. (afterEachIteration): New function.
  6451. * src/TorrentConsoleDownloadEngine.cc
  6452. (haltRequested): New variable.
  6453. (sendStatistics): Use pieceStorage, btRuntime.
  6454. (afterEachIteration): New function.
  6455. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  6456. * src/Directry.h
  6457. (Directory): New function.
  6458. (DirectoryHandle): New type definition.
  6459. * src/BtProgressInfoFile.h: New file.
  6460. * src/RequestMessage.cc: Use pieceStorage.
  6461. * src/BtRuntime.h: New file.
  6462. * src/DefaultBtContext.cc: New file.
  6463. * src/BitfieldMan.h
  6464. (getCompletedLength): New function(private).
  6465. (getCompletedLength): New function.
  6466. (getFilteredCompletedLength): New function.
  6467. * src/BitfieldMan.h
  6468. (getCompletedLength): New function(private).
  6469. (getCompletedLength): New function.
  6470. (getFilteredCompletedLength): New function.
  6471. * src/MultiDiskAdaptor.cc
  6472. (mkdir): New function.
  6473. (openFile): Call mkdir().
  6474. (initAndOpenFile): Call mkdir().
  6475. * src/CancelMessage.h
  6476. (TorrentMan.h): Removed.
  6477. * src/RejectMessage.h
  6478. (TorrentMan.h): Removed.
  6479. * src/DownloadEngineFactory.cc
  6480. (DefaultPieceStorage.h): New include.
  6481. (DefaultPeerStorage.h): New include.
  6482. (DefaultBtAnnounce.h): New include.
  6483. (DefaultBtProgressInfoFile.h): New include.
  6484. (newTorrentConsoleEngine): Rewritten.
  6485. * src/ShareRatioSeedCriteria.h
  6486. (torrentMan): Removed.
  6487. (btContext): New variable.
  6488. (peerStorage): New variable.
  6489. (btRuntime): New variable.
  6490. (evaluate): Use btContext, btRuntime, peerStorage.
  6491. * src/AnnounceTier.h: New file.
  6492. * src/BtAnnounce.h: New file.
  6493. * src/BtRegistry.h: New file.
  6494. * src/PeerInitiateConnectionCommand.h: Added btContext.
  6495. * src/PeerConnection.h (TorrentMan.h): Removed.
  6496. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  6497. * src/Util.h
  6498. (slice): Added an argument.
  6499. * src/Util.cc
  6500. (slice): Added an argument to control whether trim is made or not.
  6501. * src/PeerStorage.h: New file.
  6502. * src/BtRegistry.cc: New file.
  6503. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  6504. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  6505. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  6506. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  6507. * src/TorrentRequestInfo.h
  6508. (e): Removed.
  6509. (showFileEntry): Added an argument.
  6510. (getDownloadEngine): Return 0.
  6511. * src/DefaultBtAnnounce.h: New file.
  6512. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  6513. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  6514. * src/PeerMessageFactory.h
  6515. (btContext): New variable.
  6516. (pieceStorage): New variable.
  6517. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  6518. btAnnounce.
  6519. * src/DiskAdaptor.cc
  6520. (DiskAdaptor): Removed topDir.
  6521. (~DiskAdaptor): Removed topDir.
  6522. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  6523. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  6524. * src/File.h (mkdirs): New function.
  6525. * src/DefaultPeerStorage): New file.
  6526. * src/DownloadEngineFactory.h
  6527. (newTorrentConsoleEngine): Use btContext.
  6528. * src/BtContextAwareCommand.cc: New file.
  6529. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  6530. * src/PeerMessage.h
  6531. (btContext): New variable.
  6532. (peerStorage): New variable.
  6533. (pieceStorage): New variable.
  6534. (setBtContext): New function.
  6535. * src/Directry.cc
  6536. (Directory): New function.
  6537. (createDir): Do nothing if name.size() == 0.
  6538. * src/AnnounceList.h
  6539. (AnnounceTier): Removed.
  6540. (AnnounceTiers): Removed.
  6541. * src/DefaultPieceStorage.h: New file.
  6542. * src/Piece.cc (toString): New function.
  6543. To fix typo:
  6544. * src/main.cc (showVersion): Fixed typo.
  6545. To fix compile warning:
  6546. * src/DelegatingPeerListProcessor.cc
  6547. (canHandle): Added "return false".
  6548. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  6550. make the process of announce request testable.
  6551. * src/TrackerWatcherCommand.h
  6552. (TimeA2.h): Removed.
  6553. (interval): Removed.
  6554. (checkPoint): Removed.
  6555. (createRequestCommand): Added an argument 'url'.
  6556. (TrackerWatherCommand): Removed interval.
  6557. (createCommand): New function.
  6558. * src/DownloadEngineFactory.cc
  6559. (newTorrentConsoleEngine): Updated according to the changes in
  6560. TrackerWatherCommand.
  6561. * src/TorrentMan.cc
  6562. (DelegatingPeerListProcessor.h): New includes.
  6563. (TorrentMan): Added the initialization of announceInterval.
  6564. (isStoppedAnnounceReady): New function.
  6565. (isCompletedAnnounceReady): New function.
  6566. (isDefaultAnnounceReady): New function.
  6567. (isAnnounceReady): New function.
  6568. (getAnnounceUrl): New function.
  6569. (announceStart): New function.
  6570. (announceFailure): New function.
  6571. (announceSuccess): New function.
  6572. (isAllAnnounceFailed): New function.
  6573. (resetAnnounce): New function.
  6574. (processAnnounceResponse): New function.
  6575. (needMorePeerConnection): New function.
  6576. (noMoreAnnounce): New function.
  6577. * src/TrackerUpdateCommand.h
  6578. (getTrackerResponse): int->size_t
  6579. * src/TorrentMan.h
  6580. (isStoppedAnnounceReady): New function.
  6581. (isCompletedAnnounceReady): New function.
  6582. (isDefaultAnnounceReady): New function.
  6583. (announceInterval): New variable.
  6584. (isAnnounceReady): New function.
  6585. (getAnnounceUrl): New function.
  6586. (announceStart): New function.
  6587. (announceFailure): New function.
  6588. (announceSuccess): New function.
  6589. (isAllAnnounceFailed): New function.
  6590. (resetAnnounce): New function.
  6591. (processAnnounceResponse): New function.
  6592. (needMorePeerConnection): New function.
  6593. (noMoreAnnounce): New function.
  6594. * src/TrackerWatcherCommand.cc
  6595. (TrackerWatherCommand): Removed interval and checkPoint.
  6596. (execute): Rewritten.
  6597. (createCommand): New function.
  6598. (createRequestCommand): Rewritten.
  6599. * src/TrackerUpdateCommand.cc
  6600. (MetaFileUtil.h): Removed.
  6601. (DelegatingPeerListProcessor.h): Removed.
  6602. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  6603. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Request -> RequestHandle:
  6605. * src/HttpResponseCommand.h: Request->RequestHandle
  6606. * src/AbstractCommand.cc: Request->RequestHandle
  6607. * src/HttpDownloadCommand.cc: Request->RequestHandle
  6608. * src/HttpRequestCommand.cc: Request->RequestHandle
  6609. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  6610. * src/AbstractCommand.h: Request->RequestHandle
  6611. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  6612. * src/HttpResponseCommand.cc: Request->RequestHandle
  6613. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  6614. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  6615. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  6616. * src/HttpConnection.h: Request->RequestHandle
  6617. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  6618. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  6619. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  6620. * src/DownloadCommand.h: Request->RequestHandle
  6621. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  6622. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  6623. * src/HttpRequestCommand.h: Request->RequestHandle
  6624. * src/FtpNegotiateCommand.h: Request->RequestHandle
  6625. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  6626. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  6627. * src/HttpDownloadCommand.h: Request->RequestHandle
  6628. * src/FtpConnection.cc: Request->RequestHandle
  6629. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  6630. * src/UrlRequestInfo.cc: Request->RequestHandle
  6631. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  6632. * src/HttpConnection.h: Request->RequestHandle
  6633. * src/DownloadCommand.cc: Request->RequestHandle
  6634. * src/FtpConnection.h: Request->RequestHandle
  6635. * src/FtpDowndloadCommand.h: Request->RequestHandle
  6636. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  6637. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  6638. * src/Request.h
  6639. (SharedHandle.h): New include.
  6640. (RequestHandle): New type definition.
  6641. (Requests): Redefined.
  6642. To add MULTITRACKER support:
  6643. * src/TrackerWatcherCommand.h
  6644. (createRequestCommand): New function.
  6645. * src/DownloadEngineFactory.cc
  6646. (newTorrentConsoleEngine): Removed req.
  6647. * src/prefs.h
  6648. (PREF_TRACKER_MAX_TRIES): New definition.
  6649. * src/TorrentMan.cc
  6650. (TorrentMan): Removed req. Added trackerNumTry.
  6651. (~TorrentMan): Removed req.
  6652. (setupInternal1): Added announceList.
  6653. * src/TorrentRequestInfo.cc
  6654. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  6655. announces is now specified by PREF_TRACKER_MAX_TRIES.
  6656. * src/main.cc
  6657. (main): Added PREF_TRACKER_MAX_TRIES.
  6658. * src/TorrentMan.h
  6659. (Request.h): Removed.
  6660. (AnnounceList.h): New include.
  6661. (trackerNumTry): New variable.
  6662. (req): Removed.
  6663. (announceList): New variable.
  6664. * src/TrackerWatcherCommand.cc
  6665. (execute): Rewritten.
  6666. (createRequestCommand): New function.
  6667. * src/TrackerUpdateCommand.cc
  6668. (execute): Updated with the use of AnnounceList.
  6669. * src/AnnounceList.cc: New class.
  6670. * src/AnnounceList.h: New class.
  6671. To fix typo:
  6672. * src/prefs.h
  6673. (PREF_MAX_TRIES): max_try->max_tries
  6674. To not to decode "+" as space in URL decode:
  6675. * src/Util.cc
  6676. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  6677. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. To add timeout to async name resolution:
  6679. * src/AbstractCommand.h
  6680. (nameResolveFinished): New function. This is not elegant way. It needs
  6681. to be more refined.
  6682. (nameResolverCheck): New variable.
  6683. * src/AbstractCommand.cc
  6684. (AbstractCommand): Added nameResolverCheck.
  6685. (execute): Added the check whether the name resolution has finished.
  6686. (setNameResolverCheck): Set nameResolverCheck to true.
  6687. (disableNameResolverCheck): Set nameResolverCheck to false.
  6688. (nameResolverFinished): New function.
  6689. * src/FtpInitiateConnectionCommand.h
  6690. (nameResolverFinished): New function.
  6691. * src/FtpInitiateConnectionCommand.cc
  6692. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  6693. * src/HttpInitiateConnectionCommand.h
  6694. (nameResolverFinished): New function.
  6695. * src/HttpInitiateConnectionCommand.cc
  6696. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  6697. * src/prefs.h
  6698. (PREF_DNS_TIMEOUT): New definition.
  6699. * src/main.cc
  6700. (main): Added PREF_DNS_TIMEOUT.
  6701. To add the support for a non-compact response from a tracker:
  6702. * src/PeerListProcessor.h: New class.
  6703. * src/DefaultPeerListProcessor.h: New class.
  6704. * src/DefaultPeerListProcessor.cc: New class.
  6705. * src/CompactPeerListProcessor.h: New class.
  6706. * src/CompactPeerListProcessor.cc: New class.
  6707. * src/DelegatingPeerListProcessor.h: New class.
  6708. * src/DelegatingPeerListProcessor.cc: New class.
  6709. * src/TorrentMan.cc
  6710. (addPeer): New function(overload).
  6711. (addPeer): Delete unused peers only when new peer is added.
  6712. * src/TorrentMan.h
  6713. (PeerListProcessor.h): Included.
  6714. (Peers): Removed.
  6715. (addPeer): New function(overload).
  6716. * src/TrackerUpdateCommand.cc
  6717. (netinet/in.h): Removed.
  6718. (DelegatingPeerListProcessor.h): Included.
  6719. (execute): Updated to use DelegatingPeerListProcessor.
  6720. To fix the memory leak in TorrentMan::peers:
  6721. * src/PeerAbstractCommand.cc
  6722. (onAbort): Added peer->resetStatus().
  6723. * src/Peer.h
  6724. (resetStatus): Made public.
  6725. To improve the precision of the speed calculation:
  6726. * src/SpeedCalc.h
  6727. (nextInterval): New variable.
  6728. * src/SpeedCalc.cc
  6729. (reset): Added nextInterval.
  6730. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  6731. (changeSw): Set nextInterval to 15 seconds relative to the current
  6732. instant time.
  6733. * src/main.cc
  6734. (showVersion): Updated.
  6735. (showUsage): Updated.
  6736. * Release 0.8.1
  6737. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. * src/main.cc
  6739. (showUsage): Commented out --min-segment-size option.
  6740. (main): Commented out --min-segment-size option.
  6741. * Release 0.8.0
  6742. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. * src/*.{h,cc}:
  6744. Added an exception to the license which allows linking with OpenSSL.
  6745. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. * src/AbstractCommand.cc
  6747. (execute): Check whether the download has finished before checking
  6748. socket status.
  6749. Return true if peerStat->getStatus() == REQUEST_IDLE.
  6750. Do not exit even if no segment is available.
  6751. * src/prefs.h
  6752. (PREF_STARTUP_IDLE_TIME): New definition.
  6753. * src/PeerInteractionCommand.cc
  6754. (executeInternal): Removed max speed limit. Because it performs bad.
  6755. (receiveMessages): Added max speed limit. This was better than above,
  6756. but still a little bit to be desired. Sometimes the download speed
  6757. became much faster than I specified.
  6758. * src/SpeedCalc.h
  6759. (start): New variable.
  6760. (accumulatedLength): New variable.
  6761. (getAvgSpeed): New function.
  6762. * src/SpeedCalc.cc
  6763. (reset): Added start, accumulatedLength.
  6764. (update): Added calculation of an average speed.
  6765. (getAvgSpeed): New function.
  6766. * src/DownloadCommand.h
  6767. (sw): Removed.
  6768. * src/main.cc
  6769. (main): Added PREF_STARTUP_IDLE_TIME.
  6770. * src/PeerStat.h
  6771. (STATUS): Added REQUEST_IDLE.
  6772. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  6773. (getAvgDownloadSpeed): New function
  6774. (requestIdle): New function.
  6775. * src/SegmentMan.h
  6776. (SegmentEntryHandle): New type definition.
  6777. (SegmentEntries): Now holds SegmentEntryHandle.
  6778. (findSlowerSegmentEntry): New funtion.
  6779. * src/SegmentMan.cc
  6780. (save): Updated according to the changes in SegmentEntries.
  6781. (read): Updated according to the changes in SegmentEntries.
  6782. (FindSegmentEntryByIndex): Updated according to the changes in
  6783. SegmentEntries.
  6784. (FindSegmentEntryByCuid): Updated according to the changes in
  6785. SegmentEntries.
  6786. (checkoutSegment): Updated according to the changes in SegmentEntries.
  6787. (onNullBitfield): Updated according to the changes in SegmentEntries.
  6788. Renamed uitr as itr.
  6789. (findSlowerSegmentEntry): New function.
  6790. (getSegment): Updated according to the changes in SegmentEntries.
  6791. Added the feature that cancels the segment with slow server and fast
  6792. one takes it over.
  6793. (cancelSegment): Updated according to the changes in SegmentEntries.
  6794. (getDownloadLength): Updated according to the changes in
  6795. SegmentEntries.
  6796. (init): Assigned 0 to bitfield after deleting it.
  6797. * src/DownloadCommand.cc
  6798. (STARTUP_IDLE_TIME): Removed.
  6799. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  6800. * src/PeerChokeCommand.cc
  6801. (optUnchokingPeer): Updated according to the changes in Peer.
  6802. (ResetDelta): Removed.
  6803. (UploadFaster): Updated according to the changes in Peer.
  6804. (DownloadFaster): Updated according to the changes in Peer.
  6805. (execute): I clarify the meaning of "upload" and "download" here.
  6806. "upload" means the transfer from localhost to remote host.
  6807. "download" means the transfer from remote host to localhost.
  6808. Based on this rule, I swapped orderByUploadRate and
  6809. orderByDownloadRate.
  6810. * src/PeerInteractionCommand.cc
  6811. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  6812. (executeInternal): Removed the argument of
  6813. peerInteraction->sendMessages().
  6814. (receiveMessages): Rewritten download speed limit.
  6815. (sendKeepAlive): Removed peerInteraction->sendMessages().
  6816. * src/HttpResponseCommand.cc
  6817. (handleDefaultEncoding): If file size is unknown in torrent request,
  6818. do not call segmentMan->initBitfield() here.
  6819. Disabled persistent connection feature in torrent request.
  6820. * src/UrlRequestInfo.h
  6821. (UrlRequestInfo): Removed const qualifier from option.
  6822. * src/TorrentMan.h
  6823. (TransferStat): New class.
  6824. (deltaDownloadLength): Removed.
  6825. (deltaUploadLength): Removed.
  6826. (addDeltaDownloadLength): Removed.
  6827. (getDeltaDownloadLength): Removed.
  6828. (resetDeltaDownloadLength): Removed.
  6829. (addDeltaUploadLength): Removed.
  6830. (getDeltaUploadLength): Removed.
  6831. (resetDeltaUploadLength): Removed.
  6832. (addActivePeer): Added peer->activate().
  6833. (deleteActivePeer): Added peer->deactivate().
  6834. (calculateStat): New function.
  6835. * src/TorrentMan.cc
  6836. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  6837. (calculateStat): New function.
  6838. * src/PeerInteraction.h
  6839. (uploadLimit): Removed.
  6840. (option): New variable.
  6841. (setUploadLimit): Removed.
  6842. (getUploadSpeed): Removed.
  6843. (sendMessages): Removed the argument "currentUploadSpeed".
  6844. * src/PeerInteraction.cc
  6845. (prefs.h): Included.
  6846. (PeerInteraction): Removed uploadLimit. Added option.
  6847. (sendMessages): Rewritten upload speed limit.
  6848. (sendHandshake): Removed the argument from sendMessages().
  6849. (sendBitfield): Removed the argument from sendMessages().
  6850. * src/PeerAbstractCommand.cc
  6851. (execute): Commented out the portion of upload limit.
  6852. (onAbort): Removed peer->resetStatus().
  6853. * src/TorrentRequestInfo.cc
  6854. (timeoutSpecified): Declared extern.
  6855. (execute): Set timeout to 180 if timeout is not specified by.
  6856. command-line.
  6857. * src/PieceMessage.cc
  6858. (receivedAction): Added peer->updateDownloadLength().
  6859. Removed peer->addPeerUpload().
  6860. Removed torrentMan->addDeltaDownloadLength().
  6861. (send): Added peer->updateUploadLength().
  6862. Removed peer->addPeerDownload().
  6863. Removed torrentMan->addDeltaUploadLength().
  6864. * src/main.cc
  6865. (timeoutSpecified): New variable.
  6866. (main): Set timeoutSpecified to false.
  6867. If the command-line option "--upload-limit" is specified, then
  6868. timeoutSpecified is set to true. This option will remain in the next
  6869. release, but be deprecated in the future release.
  6870. * src/TorrentRequestInfo.h
  6871. (TorrentRequestInfo): Removed const qualifier from op.
  6872. * src/PeerStat.h
  6873. (uploadSpeed): New variable.
  6874. (PeerStat): Added default value to cuid.
  6875. (calculateUploadSpeed): New function.
  6876. (updateUploadLength): New function.
  6877. (getMaxUploadSpeed): New function.
  6878. (getAvgUploadSpeed): New function.
  6879. (reset): Added uploadSpeed. Set status to IDLE.
  6880. * src/TorrentDownloadEngine.h
  6881. (cp): Declared as Time.
  6882. (sessionDownloadLengthArray): Removed.
  6883. (sessionUploadLengthArray): Removed.
  6884. (currentCp): Removed.
  6885. (lastCalcStat): New variable
  6886. (lastElapsed): Removed.
  6887. (sessionDownloadLength): Removed.
  6888. (calculateStat): New function.
  6889. * src/TorrentDownloadEngine.cc
  6890. (initStatistics): Removed lastElapsed, cp[],
  6891. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  6892. currentCp, sessionDownloadLength.
  6893. Added cp.reset() and lastCalcStat.reset().
  6894. (calculateSpeed): Changed the name of the argument.
  6895. (calculateStatistics): Rewritten.
  6896. (calculateStat): New function.
  6897. * src/Peer.h
  6898. (PeerStat.h): Included.
  6899. (peerUpload): Removed.
  6900. (peerDownload): Removed.
  6901. (peerStat): New variable.
  6902. (sessionUploadLength): New variable.
  6903. (sessionDownloadLength): New variable.
  6904. (deltaUpload): Removed.
  6905. (deltaDownload): Removed.
  6906. (resetStatus): Made private.
  6907. (Peer): Added sessionUploadLength, sessionDownloadLength.
  6908. Removed peerUpload, peerDownload.
  6909. (updateUploadLength): New function.
  6910. (addDeltaUpload): Removed.
  6911. (updateDownloadLength): New function.
  6912. (resetDeltaUpload): Removed.
  6913. (getDeltaUpload): Removed.
  6914. (addDeltaDownload): Removed.
  6915. (calculateUploadSpeed): New function.
  6916. (resetDeltaDownload): Removed.
  6917. (getDeltaDownload): Removed.
  6918. (calculateDownloadSpeed): New function.
  6919. (getSessionUploadLength): New function.
  6920. (getSessionDownloadLength): New function.
  6921. (activate): New function.
  6922. (deactivate): New function.
  6923. (addPeerUpload): Removed.
  6924. (setPeerUpload): Removed.
  6925. (getPeerUpload): Removed.
  6926. (addPeerDownload): Removed.
  6927. (setPeerDownload): Removed.
  6928. (getPeerDownload): Removed.
  6929. * src/Peer.cc
  6930. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  6931. * src/MetalinkRequestInfo.h
  6932. (MetalinkRequestInfo): Removed const qualifier from op.
  6933. * src/RequestInfo.h
  6934. (op): Removed const qualifier.
  6935. (RequestInfo): Removed const qualifier from op.
  6936. * src/prefs.h
  6937. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  6938. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  6939. * src/PeerInteractionCommand.cc
  6940. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  6941. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  6942. * src/PeerInteraction.cc
  6943. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  6944. * src/main.cc
  6945. (showUsage): Updated the description of "--lowest-speed-limit" option.
  6946. Added the description of "--max-download-limit" option.
  6947. Removed the description of "--upload-limit" option.
  6948. Added the description of "--max-upload-limit" option.
  6949. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  6950. Added "--max-download-limit" option and "--max-upload-limit" option.
  6951. Added the warning message if "--upload-limit" option is used.
  6952. * src/DownloadCommand.cc
  6953. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  6954. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. To rewrite segment download mechanism for HTTP/FTP download.
  6956. Use BitfieldMan to manage segment download.
  6957. * src/HttpResponseCommand.h
  6958. (executeInternal): Pass the reference of segment.
  6959. * src/AbstractCommand.cc
  6960. (prepareForRetry): Call segmentMan->cancelSegment here.
  6961. (onAbort): Call segmentMan->cancelSegment here.
  6962. * src/HttpDownloadCommand.cc
  6963. (prepareForNextSegment): New function.
  6964. * src/DownloadEngineFactory.cc
  6965. (newConsoleEngine): Removed splitter.
  6966. (newTorrentConsoleEngine): Removed splitter.
  6967. * src/Request.h
  6968. (segment): Renamed from seg.
  6969. * src/FtpInitiateConnectionCommand.h
  6970. (executeInternal): Pass the reference of segment.
  6971. * src/AbstractCommand.h
  6972. (executeInternal): Pass the reference of segment.
  6973. * src/pref.h
  6974. (PREF_SEGMENT_SIZE): New definition.
  6975. * src/HttpProxyRequestCommand.h
  6976. (executeInternal): Pass the reference of segment.
  6977. * src/HttpResponseCommand.cc
  6978. (checkResponse): Allowed status 206 when a request range starts 0.
  6979. (handleDefaultEncoding): Rewritten the code related to Segment.
  6980. (handleOtherEncoding): Rewritten the code related to Segment.
  6981. * src/SegmentMan.h
  6982. (SegmentEntry): New class.
  6983. (SegmentEntries): New type definition.
  6984. (bitfield): New variable.
  6985. (usedSegmentEntries): New variable.
  6986. (onNullBitfield): New function.
  6987. (checkoutSegment): New function.
  6988. (segments): Removed.
  6989. (splitter): Removed.
  6990. (unregisterId): Removed.
  6991. (getSegment): New function(overload)
  6992. (getDownloadedSize): Removed.
  6993. (cancelSegment): New function.
  6994. (completeSegment): New function.
  6995. (initBitfield): New function.
  6996. (hasSegment): New function.
  6997. (getDownloadLength): New function.
  6998. * src/BitfieldMan.h
  6999. (getStartIndex): New function.
  7000. (getEndIndex): New function.
  7001. (getMissingUnusedIndex): New function(overload).
  7002. (getSparseMissingUnusedIndex): New function.
  7003. * src/BitfieldMan.cc
  7004. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  7005. (getMissingUnusedIndex): New function(overload).
  7006. (Range): New class.
  7007. (getStartIndex): New function.
  7008. (getEndIndex): New function.
  7009. (getSparseMissingUnusedIndex): New function.
  7010. (isBitSetInternal): Return false if the given index is less than 0.
  7011. * src/HttpInitiateConnectionCommand.h
  7012. (executeInternal): Pass the reference of segment.
  7013. * src/FtpNegotiateCommand.h
  7014. (executeInternal): Pass the reference of segment.
  7015. * src/FtpNegotiateCommand.cc
  7016. (recvSize): Initialize bitfield here.
  7017. * src/FtpTunnelResponseCommand.h
  7018. (executeInternal): Pass the reference of segment.
  7019. * src/HttpConnection.cc
  7020. (createRequest): Rewritten range header processing.
  7021. * src/DownloadCommand.h
  7022. (executeInternal): Pass the reference of segment.
  7023. (prepareForRetry): Removed.
  7024. (prepareForNextSegment): Added an argument segment. Made it a virtual
  7025. function.
  7026. * src/main.cc
  7027. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  7028. * src/SegmentMan.cc
  7029. (SegmentMan): Added bitfield. Removed splitter.
  7030. (~SegmentMan): Added bitfield. Removed splitter.
  7031. (unregisterId): Removed.
  7032. (getSegment): Rewritten.
  7033. (updateSegment): Rewritten.
  7034. (save): Rewritten.
  7035. (read): Rewritten.
  7036. (finished): Rewritten.
  7037. (getDownloadedSize): Removed.
  7038. (initBitfield): New function.
  7039. (FindSegmentEntryByIndex): New function object.
  7040. (FindSegmentEntryByCuid): New function object.
  7041. (checkoutSegment): New function.
  7042. (onNullBitfield): New function.
  7043. (getSegment): New function(overload).
  7044. (CancelSegment): New function object.
  7045. (cancelSegment): New function.
  7046. (completeSegment): New function.
  7047. (hasSegment): New function.
  7048. (getDownloadLength): New function.
  7049. * src/FtpInitiateConnectionCommand.cc
  7050. (executeInternal): Load .aria2 file after hostname resolution finishes.
  7051. * src/Segment.h: Rewritten.
  7052. * src/Segment.cc (operator<<): New function.
  7053. * src/HttpDownloadCommand.h
  7054. (prepareForNextSegment): New function.
  7055. * src/Request.cc
  7056. (resetUrl): Made segment null.
  7057. * src/DownloadEngine.cc
  7058. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  7059. * src/HttpProxyRequestCommand.h
  7060. (executeInternal): Pass the reference of segment.
  7061. * src/DownloadCommand.cc
  7062. (executeInternal): Rewritten the code related to Segment.
  7063. (prepareForRetry): Removed.
  7064. (prepareForNextSegment): Rewritten.
  7065. * src/FtpTunnelResponseCommand.h
  7066. (executeInternal): Pass the reference of segment.
  7067. To add HTTP 1.1 persistent connection support(experimental)
  7068. * src/HttpRequestCommand.cc
  7069. (executeInternal): Disable keep alive if it is disabled by
  7070. configuration.
  7071. * src/Request.h
  7072. (keepAlive): New variable.
  7073. (isKeepAlive): New function.
  7074. (setKeepAlive): New function.
  7075. * src/pref.h
  7076. (PREF_HTTP_KEEP_ALIVE): New definition.
  7077. * src/HttpResponseCommand.cc
  7078. (executeInternal): Check the remote server supports keep alive.
  7079. * src/HttpConnection.cc
  7080. (createRequest): Send "Connection: close" only if keep alive is
  7081. disabled.
  7082. * src/main.cc
  7083. (main):
  7084. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  7085. To add max download speed limit:
  7086. * src/pref.h
  7087. (PREF_MAX_SPEED_LIMIT): New definition.
  7088. * src/PeerInteractionCommand.cc
  7089. (executeInternal): Added max download speed limit. Not tested yet.
  7090. * src/SegmentMan.h
  7091. (PeerStats): New type definition.
  7092. (peerStats): New variable.
  7093. (registerPeerStat): New function.
  7094. (FindPeerStat): New function object.
  7095. (getPeerStat): New function.
  7096. (calculateDownloadSpeed): New function.
  7097. * src/SpeedCalc.h: New class.
  7098. * src/SpeedCalc.cc: New class.
  7099. * src/main.cc
  7100. (main):
  7101. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  7102. download speed is not restricted).
  7103. * src/PeerStat.h: New class.
  7104. * src/SegmentMan.cc
  7105. (registerPeerStat): New function.
  7106. (calculateDownloadSpeed): New function.
  7107. * src/DownloadCommand.cc
  7108. (STARTUP_IDLE_TIME): New definition.
  7109. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  7110. downloadStart.
  7111. (~DownloadCommand): Call peerStat->downloadStop.
  7112. (executeInternal): Added download speed limitter. Rewritten lowest
  7113. speed limitter.
  7114. * src/HttpConnection.cc
  7115. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  7116. * src/AbstractCommand.cc
  7117. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  7118. Added hostname to the error message.
  7119. * src/ConsoleDownloadEngine.cc
  7120. (calculateStatistics): Initialize psize with dlSize.
  7121. * src/PieceMessage.cc
  7122. (receivedAction): Do not call peerInteraction->abortPiece here.
  7123. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  7124. * src/BitfieldMan.h
  7125. (clearAllUseBit): New function.
  7126. (setAllUseBit): New function.
  7127. * src/BitfieldMan.cc
  7128. (clearAllBit): Do not clear useBitfield here.
  7129. (clearAllUseBit): New function.
  7130. (setAllUseBit): New function.
  7131. * src/Piece.cc
  7132. (clearAllBlock): Call bitfield->clearAllUseBit().
  7133. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. To make filename URL-decoded:
  7135. * src/HttpResponseCommand.h: Updated doc.
  7136. * src/HttpResponseCommand.cc
  7137. (determinFilename): Made filename URL-decoded.
  7138. * src/FtpInitiateConnectionCommand.cc
  7139. (executeInternal): Made filename URL-decoded.
  7140. * src/Util.h (urldecode): New function.
  7141. * src/Util.cc (urldecode): New function.
  7142. To fix a bug that caused assertion failure in ares_strerror:
  7143. * src/NameResolver.cc (callback): Fixed the bug.
  7144. * Release 0.7.3
  7145. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. To add --seed-time and --seed-ratio command-line option:
  7147. * src/Option.h (getAsDouble): New function.
  7148. * src/Option.cc (getAsDouble): New function.
  7149. * src/SeedCheckCommand.h: New class.
  7150. * src/SeedCheckCommand.cc: New class.
  7151. * src/DownloadEngineFactory.cc
  7152. (SeedCheckCommand.h): Included.
  7153. (UnionSeedCriteria.h): Included.
  7154. (TimeSeedCriteria.h): Included.
  7155. (ShareRatioSeedCriteria.h): Included.
  7156. (newTorrentConsoleEngine): Added the processing of seed option.
  7157. * src/SeedCriteria.h: New class.
  7158. * src/ShareRatioSeedCriteria.h: New class.
  7159. * src/TimeSeedCriteria.h: New class.
  7160. * src/UnionSeedCriteria.h: New class.
  7161. * src/prefs.h
  7162. (PREF_SEED_TIME): New definition.
  7163. (PREF_SEED_RATIO): New definition.
  7164. * src/main.cc
  7165. (showUsage): Added --seed-time and --seed-ratio option.
  7166. (main): Added --seed-time and --seed-ratio option.
  7167. Made default log file name "/dev/null".
  7168. * src/SharedHandle.h
  7169. (SharedHandle): Copy constructor. Made it assignable from the
  7170. SharedHandle of the subclasses.
  7171. (operator=): Made it assignable from the SharedHandle of the
  7172. subclasses.
  7173. (getRefCount): New function.
  7174. To add notice log level and the switch to write log to stdout. This
  7175. switch is configurable per log level.
  7176. * src/Logger.h
  7177. (notice): New function.
  7178. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  7179. constant.
  7180. * src/LogFactory.cc
  7181. (getInstance): The use of NullLogger was removed. A log message with
  7182. notice log level was made written to stdout along with log file.
  7183. * src/NullLogger.h
  7184. (notice): New function.
  7185. * src/SimpleLogger.h
  7186. (writeHeader): Added the 'file' argument.
  7187. (writeLog): Added the 'file' argument.
  7188. (writeFile): New function.
  7189. (stdoutField): New variable.
  7190. (SimpleLogger): Removed the default constructor.
  7191. (SimpleLogger): Made the default value of logfile 0.
  7192. (debug): Added 'virtual' keyword.
  7193. (info): Added 'virtual' keyword.
  7194. (warn): Added 'virtual' keyword.
  7195. (error): Added 'virtual' keyword.
  7196. (notice): New function.
  7197. (setStdout): New function.
  7198. * src/SimpleLogger.cc
  7199. (WRITE_LOG): Replaced writeLog with writeFile.
  7200. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  7201. (SimpleLogger): Removed the default constructor.
  7202. (setStdout): New function.
  7203. (writeLog): Added the handling of NOTICE log level.
  7204. (writeFile): New function.
  7205. (notice): New function.
  7206. * src/TorrentMan.h: Updated doc.
  7207. * src/BitfieldMan.h: Updated doc.
  7208. * src/TrackerWatcherCommand.cc
  7209. (execute): Return true if error occurred in the request to the tracker
  7210. and halt is requested.
  7211. * src/TrackerUpdateCommand.cc
  7212. (execute): Return true if error occurred in the request to the tracker
  7213. and halt is requested.
  7214. To call onDownloadComplete from TorrentMan::completePiece(), not from
  7215. DownloadEngine:
  7216. * src/TorrentConsoleDownloadEngine.h
  7217. (onSelectiveDownloadingCompletes): Removed.
  7218. * src/TorrentConsoleDownloadEngine.cc
  7219. (onSelectiveDownloadingCompletes): Removed.
  7220. * src/TorrentDownloadEngine.h
  7221. (onEndOfRun): Added 'virtual' keyword.
  7222. (afterEachIteration): Removed.
  7223. (onSelectiveDownloadingCompletes): Removed.
  7224. * src/TorrentDownloadEngine.cc
  7225. (onEndOfRun): Removed filenameFixed.
  7226. (afterEachIteration): Removed.
  7227. * src/TorrentMan.cc
  7228. (completePiece): Call onDownloadComplete here.
  7229. (onDownloadComplete): Added 2 log messages.
  7230. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  7232. * src/NameResolver.h: Added the prototype declaration of callback().
  7233. To support c-ares library:
  7234. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7235. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7236. * src/FtpInitiateConnectionCommand.h:
  7237. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7238. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7239. * src/HttpInitiateConnectionCommand.h:
  7240. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7241. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  7242. Added thes upport of c-ares's ares_strerror(the idea came from patch
  7243. #1542285 by tizianomueller)
  7244. * src/HttpInitiateConnectionCommand.cc:
  7245. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7246. * src/FtpInitiateConnectionCommand.cc:
  7247. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7248. * src/DownloadEngine.h:
  7249. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7250. * src/DownloadEngine.cc:
  7251. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7252. To fix the bug that causes compilation failure with metalink-support
  7253. disabled(bug#1543587):
  7254. * src/main.cc: Fixed with the patch by tizianomueller.
  7255. * Release 0.7.2
  7256. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. * src/main.cc
  7258. (main): Added a message to inform users that aria2 is starting to
  7259. verify checksum.
  7260. * src/RequestInfo.cc
  7261. (printDownloadAbortMessage): Added a message to inform users that
  7262. transfer can be resumed.
  7263. * src/FeatureConfig.cc
  7264. (FEATURE_ASYNC_DNS): New definition.
  7265. (FeatureConfig): Added aysnc DNS entry.
  7266. To replace CommandUuid with Command* in SocketEntry and
  7267. NameResolverEntry:
  7268. * src/DownloadEngine.h
  7269. (CommandUuids): Removed.
  7270. (SocketEntry::commandUuid): Removed.
  7271. (SocketEntry::command): New variable.
  7272. (SocketEntry::SocketEntry): Updated.
  7273. (SocketEntry::operator==): Updated.
  7274. (NameResolverEntry::commandUuid): Removed.
  7275. (NameResolverEntry::command): New variable.
  7276. (NameResolverEntry::NameResolverEntry): Updated.
  7277. (NameResolverEntry::operator==): Updated.
  7278. (waitData): Changed the argument type.
  7279. (addSocketForReadCheck): Changed the argument type.
  7280. (deleteSocketForReadCheck): Changed the argument type.
  7281. (addSocketForWriteCheck): Changed the argument type.
  7282. (deleteSocketForWriteCheck): Changed the argument type.
  7283. (addNameResolverCheck): Changed the argument type.
  7284. (deleteNameResolverCheck): Changed the argument type.
  7285. * src/DownloadEngine.cc
  7286. (FindCommand): Removed.
  7287. (run): Removed activeUuid. Added activeCommands instead.
  7288. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  7289. (AccumulateActiveCommand): New function object.
  7290. (waitData): Use AccumulateActiveCommand.
  7291. (addSocketForReadCheck): Use Command instead of CommandUuid.
  7292. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  7293. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  7294. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  7295. (addNameResolverCheck): Use Command instead of CommandUuid.
  7296. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  7297. * src/AbstractCommand.cc
  7298. (disableReadCheckSocket): Updated according to the changes in
  7299. DownloadEngine.
  7300. (setReadCheckSocket): Updated according to the changes in
  7301. DownloadEngine.
  7302. (disableWriteCheckSocket): Updated according to the changes in
  7303. DownloadEngine.
  7304. (setWriteCheckSocket): Updated according to the changes in
  7305. DownloadEngine.
  7306. (setNameResolverCheck): Updated according to the changes in
  7307. DownloadEngine.
  7308. (disableNameResolverCheck): Updated according to the changes in
  7309. DownloadEngine.
  7310. * src/AbstractCommand.cc
  7311. (disableReadCheckSocket): Updated according to the changes in
  7312. DownloadEngine.
  7313. (setReadCheckSocket): Updated according to the changes in
  7314. DownloadEngine.
  7315. (disableWriteCheckSocket): Updated according to the changes in
  7316. DownloadEngine.
  7317. (setWriteCheckSocket): Updated according to the changes in
  7318. DownloadEngine.
  7319. * release 0.7.1
  7320. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. To handle the case where some BitTorrent tracker requires all letters
  7322. except for [A-Za-z0-9] is URL encoded.
  7323. * src/Util.h
  7324. (torrentUrlencode): New function.
  7325. * src/Util.cc
  7326. (ctype.h): Included.
  7327. (torrentUrlencode): New function.
  7328. * src/TrackerWatcherCommand.cc
  7329. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  7330. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. To add asynchronous DNS support(libares):
  7332. * src/AbstractCommand.h
  7333. (setNameResolverCheck): New function.
  7334. (disableNameResolverCheck): New function
  7335. (resolveHostname): New function.
  7336. * src/AbstractCommand.cc
  7337. (setNameResolverCheck): New function.
  7338. (disableNameResolverCheck): New function
  7339. (resolveHostname): New function.
  7340. * src/FtpInitiateConnectionCommand.h
  7341. (nameResolver): New function.
  7342. * src/FtpInitiateConnectionCommand.cc
  7343. (Util.h): Included.
  7344. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  7345. disableWriteCheckSocket.
  7346. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  7347. (executeInternal): Added async DNS support.
  7348. * src/HttpInitiateConnectionCommand.h
  7349. (nameResolver): New function.
  7350. * src/HttpInitiateConnectionCommand.cc
  7351. (DlRetryEx.h): Included.
  7352. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  7353. disableWriteCheckSocket.
  7354. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  7355. (executeInternal): Added async DNS support.
  7356. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  7357. by extern "C" declaration.
  7358. * src/NameResolver.cc: New class.
  7359. * src/Util.h:
  7360. (isNumberAndDotsNotation): New function
  7361. * src/Util.cc
  7362. (isNumberAndDotsNotation): New function.
  7363. * src/DownloadEngine.h
  7364. (NameResolver.h): Included.
  7365. (NameResolverEntry): New class.
  7366. (NameResolverEntries): New type definition.
  7367. (addNameResolverCheck): New function.
  7368. (deleteNameResolverCheck): New function.
  7369. * src/DownloadEngine.cc
  7370. (run): Initialize cp with 0.
  7371. (SetDescriptor::operator()): Added for NameResolverEntry.
  7372. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  7373. (waitData): Check nameResolver entries.
  7374. (updateFdSet): Update fds in nameResolver entries.
  7375. (addNameResolverCheck): New function.
  7376. (deleteNameResolverCheck): new function.
  7377. * src/PeerInteractionCommand.cc
  7378. (executeInternal): Fixed wrong socket handling.
  7379. * src/main.cc
  7380. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  7381. * src/Util.cc
  7382. (fileChecksum): Removed the call to ctx.digestReset().
  7383. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. * po/ru.po: Azamat sent me Russian translation.
  7385. * src/FtpNegotiateCommand.cc
  7386. (recvGreeting): Call disableWriteCheckSocket just after
  7387. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  7388. (recvRetr): Recognized status code 125 as a acceptable response code.
  7389. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  7390. case-insesitive filesystem(BUG#1531057).
  7391. * src/Time.h: Renamed as TimeA2.h.
  7392. * src/Time.cc: Renamed as TimeA2.cc.
  7393. * src/TimeA2.h: New class.
  7394. * src/TimeA2.cc: New class.
  7395. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  7396. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  7397. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  7398. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  7399. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  7400. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7401. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  7402. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  7403. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  7404. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7405. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  7406. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  7407. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  7408. * release 0.7.0
  7409. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. * src/PeerChokeCommand.h
  7411. (PeerChokeCommand): Rearranged the arguments.
  7412. * src/PeerChokeCommand.cc
  7413. (PeerChokeCommand): Rearranged the arguments.
  7414. * src/MetalinkEntry.h
  7415. (Checksum.h): Included.
  7416. (md5): Removed.
  7417. (sha1): Removed.
  7418. (checksum): New variable.
  7419. (operator=): Updated.
  7420. (check): Removed.
  7421. * src/prefs.h
  7422. (PREF_LOWEST_SPEED_LIMIT): New definition.
  7423. (PREF_FOLLOW_TORRENT): New definition.
  7424. (PREF_SELECT_FILE): New definition.
  7425. (PREF_FOLLOW_METALINK): New definition.
  7426. * src/MetalinkResource.h
  7427. (TYPE_HTTPS): Added to enum TYPE.
  7428. * src/TorrentMan.cc
  7429. (~TorrentMan): Rewritten.
  7430. * src/MultiDiskWriter.cc
  7431. (MultiDiskAdaptor): Updated according to the changes in
  7432. MessageDigestContext.
  7433. (~MultiDiskAdaptor): Updated according to the changes in
  7434. MessageDigestContext.
  7435. (hashUpdate): Updated according to the changes in MessageDigestContext.
  7436. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7437. * src/Util.h
  7438. (fileChecksum): Updated according to the changes in
  7439. MessageDigestContext.
  7440. * src/Util.cc
  7441. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7442. (fileChecksum): Updated according to the changes in
  7443. MessageDigestContext.
  7444. * src/messageDigest.h: Rewritten.
  7445. * src/MetalinkEntry.cc
  7446. (check): Removed.
  7447. (Supported): Updated.
  7448. (dropUnsupportedResource): Fixed a memory leak.
  7449. * src/ShaVisitor.cc
  7450. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  7451. (~ShaVisitor): Updated according to the changes in
  7452. MessageDigestContext.
  7453. (visit): Updated according to the changes in MessageDigestContext.
  7454. * src/main.cc
  7455. (main): Rewritten the portion of download loop. --lowest-speed-limit
  7456. command-line option added.
  7457. * src/DownloadEngine.h
  7458. (SocketEntry): New class.
  7459. (SocketEntries): New definition.
  7460. (PairFind): Removed.
  7461. (SockCmdMap): Removed.
  7462. * src/DownloadEngine.cc
  7463. (DownloadEngine): Rewritten.
  7464. (~DownloadEngine): Rewritten.
  7465. (run): Renamed activeCommandUuids as activeUuids.
  7466. (SetDescriptor): Rewritten.
  7467. (AccumulateActiveCommandUuid): Removed.
  7468. (AccumulateActiveUuid): New function object.
  7469. (waitData): Rewritten.
  7470. (updateFdSet): Rewritten.
  7471. (addSocket): Rewritten.
  7472. (deleteSocket): Rewritten.
  7473. (addSocketForReadCheck): Rewritten.
  7474. (deleteSocketForReadCheck): Rewritten.
  7475. (addSocketForWriteCheck): Rewritten.
  7476. (deleteSocketForWriteCheck): Rewritten.
  7477. * src/Xml2MetalinkProcessor.cc
  7478. (getEntry): Rewritten the portion of MetalinkEntry creation.
  7479. * src/DownloadCommand.cc
  7480. (executeInternal): Added the check routine for lowest speed limit.
  7481. * src/AbstractDiskWriter.cc
  7482. (AbstractDiskWriter): Updated according to the changes in
  7483. MessageDigestContext.
  7484. (~AbstractDiskWriter): Updated according to the changes in
  7485. MessageDigestContext.
  7486. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7487. * src/RequestInfo.h: New class.
  7488. * src/UrlRequestInfo.h: New class.
  7489. * src/UrlRequestInfo.cc: New class.
  7490. * src/TorrentRequestInfo.h: New class.
  7491. * src/TorrentRequestInfo.cc: New class.
  7492. * src/MetalinkRequestInfo.h: New class.
  7493. * src/MetalinkRequestInfo.cc: New class.
  7494. * src/Checksum.h: New class.
  7495. * src/DownloadEngineFactory.h: New class.
  7496. * src/DownloadEngineFactory.cc: New class.
  7497. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. * src/Option.h
  7499. (getAsBool): New function.
  7500. * src/Option.cc
  7501. (prefs.h): Included.
  7502. (defined): 0-length value is now recognized as undefined.
  7503. (getAsInt): Rewritten.
  7504. (getAsLLInt): Rewritten.
  7505. (getAsBool): New function.
  7506. * src/FeatureConfig.h: Rewritten.
  7507. * src/FeatureConfig.cc: Rewritten.
  7508. * src/prefs.h
  7509. (PREF_STDOUT_LOG): New definition.
  7510. (PREF_LOG): New definition.
  7511. (PREF_DIR): New definition.
  7512. (PREF_OUT): New definition.
  7513. (PREF_SPLIT): New definition.
  7514. (PREF_DAEMON): New definition.
  7515. (PREF_REFERER): New definition.
  7516. (PREF_TORRENT_FILE): New definition.
  7517. (PREF_LISTEN_PORT): New definition.
  7518. (PREF_METALINK_FILE): New definition.
  7519. (PREF_METALINK_VERSION): New definition.
  7520. (PREF_METALINK_LANGUAGE): New definition.
  7521. (PREF_METALINK_OS): New definition.
  7522. (PREF_METALINK_SERVERS): New definition.
  7523. * src/main.cc
  7524. (main): Following command-line parameters are now put into Option
  7525. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  7526. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  7527. metalinkLanguage, metalinkOs, metalinkServers
  7528. To fix the bug that aria2 can not handle http response header properly.
  7529. * src/HttpHeader.cc
  7530. (put): Made name lowercased.
  7531. (defined): Made name lowercased.
  7532. (getFirst): Made name lowercased.
  7533. (get): Made name lowercased.
  7534. (getFirstAsInt): Rewritten.
  7535. (getFirstAsLLInt): Rewritten.
  7536. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. * src/TorrentMan.h:
  7538. (advertisePiece): Updated doc.
  7539. (getAdvertisedPieceIndexes): Updated doc.
  7540. (removeAdvertisedPiece); New function.
  7541. * src/TorrentMan.cc
  7542. (FindElapsedHave): New function object.
  7543. (removeAdvertisedPiece): New function.
  7544. * src/HaveEraseCommand.h: New class.
  7545. * src/HaveEraseCommand.cc: New class.
  7546. * src/FeatureConfig.h: New class.
  7547. * src/FeatureConfig.cc: New class.
  7548. * src/Request.h
  7549. (defaultPorts): Removed.
  7550. * src/Request.cc
  7551. (FeatureConfig.h): Included.
  7552. (Request): Removed the statements related to defaultPorts.
  7553. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  7554. A default port number is now retrieved from FeatureConfig.
  7555. * src/main.cc
  7556. (HaveEraseCommand.h): Included.
  7557. (showVersion): Added the output of feature list.
  7558. (main): Added HaveEraseCommand to command queue in BitTorrent
  7559. downloading.
  7560. * src/PeerInteractionCommand.h
  7561. (chokeCheckPoint): Commented out.
  7562. (periodicExecPoint): New variable.
  7563. * src/PeerInteractionCommand.cc
  7564. (executeInternal): Following methods are now called in at least every
  7565. 0.5 seconds to reduce CPU usage:
  7566. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  7567. checkHave(), sendKeepAlive().
  7568. (checkLongTimePeerChoking): Commented out.
  7569. * src/BitfieldMan.h
  7570. (getNthBitIndex): Changed the method signature.
  7571. (getMissingIndexRandomly): Changed the method signature.
  7572. * src/BitfieldMan.cc
  7573. (getNthBitIndex): Rewritten
  7574. (getMissingIndexRandomly): Rewritten.
  7575. (hasMissingPiece): Rewritten.
  7576. (getMissingIndex): Refactored.
  7577. (getMissingUnusedIndex); Refactored.
  7578. (getMissingIndex): Refactored.
  7579. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. * src/PeerMessage.h
  7581. (Piece.h): Included.
  7582. (SharedHandle.h): Included.
  7583. (invalidate): New variable.
  7584. (uploading): New variable.
  7585. (isInvalidate): New function.
  7586. (isUploading): New function.
  7587. (onPush): New function.
  7588. (onChoked): New function.
  7589. (onCanceled): New function.
  7590. (onAbortPiece): New function.
  7591. (PeerMessageHandle): New type definition.
  7592. * src/PeerMessage.cc
  7593. (PeerMessage): Added the initialization for invalidate and uploading.
  7594. * src/CancelMessage.h
  7595. (CancelMessage): Rewritten.
  7596. * src/RejectMessage.h
  7597. (RejectMessage): Rewritten.
  7598. * src/Metalinker.h
  7599. (operator=): Defined.
  7600. * src/MetaEntry.h
  7601. (operator=): Defined.
  7602. * src/MetalinkResource.h
  7603. (operator=): Defined.
  7604. * src/AllowedFastMessage.h
  7605. (AllowedFastMessage): Rewritten.
  7606. * src/HandshakeMessage.h
  7607. (HandshakeMessage): New function(overload).
  7608. * src/HandshakeMessage.cc
  7609. (HandshakeMessage): Rewritten.
  7610. (init): New function.
  7611. * src/HaveMessage.h
  7612. (HaveMessage): Rewritten.
  7613. * src/Time.h
  7614. (operator=): Defined the function body here.
  7615. * src/Time.cc
  7616. (operator=): Removed.
  7617. * src/SocketCore.h
  7618. (operator==): Defined here.
  7619. (operator!=): Defined here.
  7620. (operator<): Defined here.
  7621. * src/SocketCore.cc
  7622. (operator==): Removed.
  7623. (operator<): Removed.
  7624. * src/BitfieldMan.h
  7625. (operator=): Defined the function body here.
  7626. * src/BitfieldMan.cc
  7627. (operator=): Removed.
  7628. * src/TorrentMan.h
  7629. (deleteErrorPeer): Removed.
  7630. (deleteUnusedPeer); New function.
  7631. * src/TorrentMan.cc
  7632. (addPeer): Call deleteUnusedPeer.
  7633. (deleteErrorPeer): Removed.
  7634. (deleteUnusedPeer): New function.
  7635. * src/PeerAbstractCommand.h
  7636. (setNoCheck): New function.
  7637. (noCheck): New variable.
  7638. * src/PeerAbstractCommand.cc
  7639. (PeerAbstractCommand): Added the initialization of noCheck.
  7640. (execute): Added a check for noCheck.
  7641. (setNoCheck): New function.
  7642. * src/Util.h
  7643. (stdio.h): Included.
  7644. * src/Util.cc
  7645. (unistd.h): Included.
  7646. * src/DefaultDiskWriter.cc
  7647. (unistd.h): Included.
  7648. * src/Peer.h
  7649. (operator==): Defined the function body here.
  7650. (operator!=): Defined the function body here.
  7651. * src/Peer.cc
  7652. (operator==): Removed.
  7653. (operator!=): Removed.
  7654. * src/Piece.h
  7655. (Piece): Defined the function body here(copy constructor).
  7656. (operator=): Defined the function body here.
  7657. (operator==): Defined the function body here.
  7658. * src/Piece.cc
  7659. (Piece): Removed(copy constructor).
  7660. (operator=): Removed.
  7661. (operator==): Removed.
  7662. * src/PeerMessageUtil.h
  7663. (ChokeMessage.h): Removed.
  7664. (UnchokeMessage.h): Removed.
  7665. (InterestedMessage.h): Removed.
  7666. (NotInterestedMessage.h): Removed.
  7667. (HaveMessage.h): Removed.
  7668. (BitfieldMessage.h): Removed.
  7669. (RequestMessage.h): Removed.
  7670. (CancelMessage.h): Removed.
  7671. (PieceMessage.h): Removed.
  7672. (HandshakeMessage.h): Removed.
  7673. (KeepAliveMessage.h): Removed.
  7674. (PortMessage.h): Removed.
  7675. (HaveAllMessage.h): Removed.
  7676. (HaveNoneMessage.h): Removed.
  7677. (PeerConnection.h): Removed.
  7678. (HandshakeMessage.h): Included.
  7679. * src/BitfieldMessage.h
  7680. (init): New function.
  7681. (BitfieldMessage): Rewritten.
  7682. (BitfieldMessage): New function(overload).
  7683. * src/RequestSlot.h
  7684. (operator=): Defined the function body here.
  7685. (operator==): Defined the function body here.
  7686. * src/RequestSlot.cc
  7687. (operator=): Removed.
  7688. (operator==): Removed.
  7689. To remove the dependency on the PeerMessage subclass from
  7690. PeerInteraction:
  7691. * src/PeerMessageFactory.h: New class.
  7692. * src/PeerMessageFactory.cc: New class.
  7693. * src/SimplePeerMessage.cc
  7694. (send): If invalidate is true then do nothing.
  7695. * src/PeerInteractionCommand.cc
  7696. (HandshakeMessage.h): Included.
  7697. (KeepAliveMessage.h): Included.
  7698. (ChokeMessage.h): Included.
  7699. (UnchokeMessage.h): Included.
  7700. (HaveMessage.h): Included.
  7701. (executeInternal): Call setNoCheck().
  7702. Removed setWriteCheckSocket(socket).
  7703. * src/PeerInteraction.h
  7704. (ChokeMessage.h): Removed.
  7705. (UnchokeMessage.h): Removed.
  7706. (InterestedMessage.h): Removed.
  7707. (NotInterestedMessage.h): Removed.
  7708. (HaveMessage.h): Removed.
  7709. (BitfieldMessage.h): Removed.
  7710. (RequestMessage.h): Removed.
  7711. (CancelMessage.h): Removed.
  7712. (PieceMessage.h): Removed.
  7713. (HandshakeMessage.h): Removed.
  7714. (KeepAliveMessage.h): Removed.
  7715. (PortMessage.h): Removed.
  7716. (HaveAllMessage.h): Removed.
  7717. (HaveNoneMessage.h): Removed.
  7718. (RejectMessage.h): Removed.
  7719. (AllowedFastMessage.h): Removed.
  7720. (SuggestPieceMessage.h): Removed.
  7721. (PeerMessageFactory.h): Included.
  7722. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  7723. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  7724. (PeerMessageFactory): New variable.
  7725. (createPeerMessage): Removed.
  7726. (createHandshakeMessage): Removed.
  7727. (setPeerMessageCommonProperty): Removed.
  7728. (addRequestSlot): New function.
  7729. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  7730. (getPeerMessageFactory): New function.
  7731. (createRequestMessage): Removed.
  7732. (createCancelMessage): Removed.
  7733. (createPieceMessage): Removed.
  7734. (createHaveMessage): Removed.
  7735. (createChokeMessage): Removed.
  7736. (createUnchokeMessage): Removed.
  7737. (createInterestedMessage): Removed.
  7738. (createNotInterestedMessage): Removed.
  7739. (createBitfieldMessage): Removed.
  7740. (createKeepAliveMessage): Removed.
  7741. (createHaveAllMessage): Removed.
  7742. (createHaveNoneMessage): Removed.
  7743. (createRejectMessage): Removed.
  7744. (createAllowedFastMessage): Removed.
  7745. * src/PeerInteraction.cc
  7746. (PeerInteraction): Allocate PeerMessageFactory here.
  7747. (~PeerInteraction): Deallocate PeerMessageFactory here.
  7748. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  7749. PieceMessage::ID.
  7750. (addMessage): Simplified by using PeerMessage::onPush().
  7751. (addRequestSlot): New function.
  7752. (rejectAllPieceMessageInQueue): Simplified by using
  7753. PeerMessage::onChoked().
  7754. (rejectPieceMessageInQueue): Simplified by using
  7755. PeerMessage::onCanceled().
  7756. (abortPiece): Simplified by using PeerMessage::abortPiece().
  7757. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  7758. (createHandshakeMessage): Removed.
  7759. (createPeerMessage): Removed.
  7760. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  7761. (setPeerMessageCommonProperty): Removed.
  7762. (createRequestMessage): Removed.
  7763. (createCancelMessage): Removed.
  7764. (createPieceMessage): Removed.
  7765. (createHaveMessage): Removed.
  7766. (createChokeMessage): Removed.
  7767. (createUnchokeMessage): Removed.
  7768. (createInterestedMessage): Removed.
  7769. (createNotInterestedMessage): Removed.
  7770. (createBitfieldMessage): Removed.
  7771. (createKeepAliveMessage): Removed.
  7772. (createHaveAllMessage): Removed.
  7773. (createHaveNoneMessage): Removed.
  7774. (createRejectMessage): Removed.
  7775. (createAllowedFastMessage): Removed.
  7776. * src/PieceMessage.h
  7777. (createRejectMessage): New function.
  7778. (PieceMessage): Rewritten.
  7779. (onChoked): New function.
  7780. (onCanceled): New function.
  7781. * src/PieceMessage.cc
  7782. (send): If invalidate is true then do nothing, just return.
  7783. (createRejectMessage): New function.
  7784. (onChoked): New function.
  7785. (onCanceled): New function.
  7786. * src/RequestMessage.h
  7787. (RequestMessage): Rewritten.
  7788. (onPush): New function.
  7789. (onAbortPiece): New function.
  7790. * src/RequestMessage.cc
  7791. (onPush): New function.
  7792. (onAbortPiece): New function.
  7793. Update fd_set when a socket is added or deleted in order to improve
  7794. performance:
  7795. * src/DownloadEngine.h
  7796. (rfdset): New variable.
  7797. (wfdset): New variable.
  7798. (updateFdSet): New function.
  7799. * src/DownloadEngine.cc
  7800. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  7801. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  7802. (waitData): Copy rfdset and wfdset.
  7803. (updateFdSet): New function.
  7804. (addSocket): Call updateFdSet.
  7805. (deleteSocket): Call updateFdSet.
  7806. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. To add the support for Metalink3.0 backward compatible links:
  7808. * src/Request.h
  7809. (SAFE_CHARS): Added '#'.
  7810. (METALINK_MARK): New definition.
  7811. * src/Request.cc
  7812. (parseUrl): Added the support for Metalink3.0 backward compatible
  7813. links.
  7814. etc
  7815. * src/PeerInteraction.cc
  7816. (MsgPushBack): Removed.
  7817. (sendMessages): Use STL copy and back_inserter.
  7818. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  7819. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  7820. * src/TorrentMan.h
  7821. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  7822. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. * src/SharedHandle.h: New class.
  7824. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  7825. * src/HttpResponseCommand.h
  7826. (HttpResponseCommand): Wrapped Socket.
  7827. * src/SocketCore.h
  7828. (operator==): New function.
  7829. (operator!=): New function.
  7830. (operator<): New function.
  7831. (getSockfd): New function.
  7832. (isOpen): New function.
  7833. (writeData): New function.
  7834. * src/SocketCore.cc
  7835. (operator==): New function.
  7836. (operator!=): New function.
  7837. (operator<): New function.
  7838. * src/AbstractCommand.h
  7839. (socket): Changed its type to SocketHandle.
  7840. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7841. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7842. (disableReadCheckSocket): New function.
  7843. (disableWriteCheckSocket): New function.
  7844. (readCheckTarget): Changed its type to SocketHandle.
  7845. (writeCheckTarget): Changed its type to SocketHandle.
  7846. (AbstractCommand): Replaced Socket with SocketHandle.
  7847. * src/AbstractCommand.cc
  7848. (AbstractCommand): Replaced Socket with SocketHandle.
  7849. (~AbstractCommand): Removed the deallocation for Socket object.
  7850. (disableReadCheckSocket): New function.
  7851. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7852. (disableWriteCheckSocket): New function.
  7853. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7854. * src/HttpDownloadCommand.cc
  7855. (DownloadCommand): Replaced Socket with SocketHandle.
  7856. * src/PeerAbstractCommand.h
  7857. (socket): Changed its type to SocketHandle.
  7858. (peer): Changed its type to PeerHandle.
  7859. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7860. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7861. (disableReadCheckSocket): New function.
  7862. (disableWriteCheckSocket): New function.
  7863. (readCheckTarget): Changed its type to SocketHandle.
  7864. (writeCheckTarget): Changed its type to SocketHandle.
  7865. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  7866. Replaced Peer with PeerHandle.
  7867. * src/HttpRequestCommand.cc
  7868. (HttpRequestCommand): Replaced Socket with SocketHandle.
  7869. Use disableReadCheckSocket.
  7870. * src/PeerInitiateConnectionCommand.h
  7871. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  7872. * src/PeerChokeCommand.cc
  7873. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  7874. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  7875. (execute): Use PeerHandle.
  7876. * src/PeerConnection.h
  7877. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  7878. (socket): Changed its type to SocketHandle.
  7879. (PeerConnection): Replaced Socket with SocketHandle.
  7880. * src/PeerConnection.cc
  7881. (PeerConnection): Replaced Socket with SocketHandle.
  7882. * src/PeerInteractionCommand.h
  7883. (PeerInteractionCommand): Replaced socket with SocketHandle.
  7884. Replaced Peer with PeerHandle.
  7885. * src/PeerInteractionCommand.cc
  7886. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  7887. Replaced Peer with PeerHandle.
  7888. (executeInternal): Use disableWriteCheckSocket.
  7889. Use HandshakeMessageHandle.
  7890. (receiveMessages): Use PeerMessageHandle.
  7891. (prepareForNextPeer): Use PeerHandle.
  7892. * src/HttpProxyRequestCommand.h
  7893. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  7894. * src/HttpResponseCommand.cc
  7895. (HttpResponseCommand): Replaced Socket with SocketHandle.
  7896. * src/TorrentMan.cc
  7897. (nullPeer): Added external reference.
  7898. (~TorrentMan): Removed the deallocation of the elements of peers.
  7899. (addPeer): Rewritten.
  7900. (isPeerAvailable): Use nullPeer.
  7901. (deleteOldpeers): Replaced with deleteErrorPeer.
  7902. (deleteErrorPeer): New function.
  7903. (getPeer): Use PeerHandle and nullPeer.
  7904. (hasMissingPiece): Replaced Peer with PeerHandle.
  7905. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  7906. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  7907. (getMissingFastPiece): Replaced Peer with PeerHandle.
  7908. (getMissingPiece): Replaced Peer with PeerHandle.
  7909. * src/FtpNegotiateCommand.cc
  7910. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  7911. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  7912. (recvGreeting): Use disableWriteCheckSocket.
  7913. (recvPasv): Removed the allocation of Socket.
  7914. Use disableReadCheckSocket.
  7915. (sendRestPasv): Use disableWriteCheckSocket.
  7916. (recvRetr): Changed assertion.
  7917. * src/PeerInteraction.h
  7918. (SharedHandle.h): Included SharedHandle.h.
  7919. (PeerMessageHandle): New type definition.
  7920. (HandshakeMessageHandle): New type definition.
  7921. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  7922. (peer): Changed its type to PeerHandle.
  7923. (createHandshakeMessage): Replaced HandshakeMessage with
  7924. HandshakeMessageHandle.
  7925. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  7926. (PeerInteraction): Replaced Peer with PeerHandle.
  7927. Replaced Socket with SocketHandle.
  7928. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  7929. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  7930. (receiveHandshake): Replaced HandshakeMessage with
  7931. HandshakeMessageHandle.
  7932. * src/PeerInteraction.cc
  7933. (PeerInteraction): Replaced Peer with PeerHandle.
  7934. Replaced Socket with SocketHandle.
  7935. (~PeerInteraction): Removed the deallocation of the elements of
  7936. messageQueue.
  7937. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  7938. (isSendingMessageInProgress): Replaced PeerMessage with
  7939. PeerMessageHandle.
  7940. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  7941. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  7942. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  7943. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  7944. (abortPiece): Use PeerMessageHandle.
  7945. (receiveHandshake): Replaced HandshakeMessage with
  7946. HandshakeMessageHandle. Removed try-catch block.
  7947. (createHandshakeMessage): Replaced HandshakeMessage with
  7948. HandshakeMessageHandle.
  7949. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  7950. Removed try-catch block.
  7951. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  7952. * src/HttpProxyResponseCommand.cc
  7953. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  7954. * src/FtpTunnelResponseCommand.h
  7955. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  7956. * src/HttpConnection.cc
  7957. (HttpConnection): Replaced Socket with SocketHandle.
  7958. * src/PeerAbstractCommand.cc
  7959. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  7960. (~PeerAbstractCommand): Removed the deallocation of socket.
  7961. Use disableReadCheckSocket, disableWriteCheckSocket.
  7962. (disableReadCheckSocket): New function.
  7963. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7964. (disableWriteCheckSocket): New function.
  7965. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7966. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  7967. * src/FtpTunnelRequestCommand.cc
  7968. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  7969. (~FtpTunnelRequestCommand): Corrected indentation.
  7970. * src/DownloadCommand.h
  7971. (DownloadCommand): Replaced Socket with SocketHandle.
  7972. * src/PeerListenCommand.cc
  7973. (PeerListenCommand): Removed the initialization of socket.
  7974. (~PeerListenCommand): Removed the deallocation of socket.
  7975. (bindPort): Use SocketHandle.
  7976. (execute): Use SocketHandle and PeerHandle.
  7977. * src/FtpDowndloadCommand.cc
  7978. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  7979. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  7980. * src/main.cc
  7981. (main): Corrected indentation.
  7982. * src/HttpInitiateConnectionCommand.cc
  7983. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  7984. (executeInternal): Removed the allocation of socket.
  7985. * src/HttpRequestCommand.h
  7986. (HttpRequestCommand): Replaced Socket with SocketHandle.
  7987. * src/FtpNegotiationCommand.h
  7988. (dataSocket): Changed its type to SocketHandle.
  7989. (serverSocket): Changed its type to SocketHandle.
  7990. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  7991. * src/TorrentMan.h
  7992. (MAX_PEER_UPDATE): Removed.
  7993. (MAX_PEERS): New definition.
  7994. (Peers): The element is now of type PeerHandle.
  7995. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  7996. (getPeer): Replaced Peer with PeerHandle.
  7997. (deleteOldErrorPeers): Removed.
  7998. (deleteErrorPeer): New function.
  7999. (hasMissingPiece): Replaced Peer with PeerHandle.
  8000. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8001. (getMissingPiece): Replaced Peer with PeerHandle.
  8002. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8003. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8004. (addActivePeer): Replaced Peer with PeerHandle.
  8005. (deleteActivePeer): Replaced Peer with PeerHandle.
  8006. Added a check for the return value of find.
  8007. * src/FtpTunnelResponseCommand.cc
  8008. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8009. * src/FtpInitiateConnectionCommand.cc
  8010. (executeInternal): Removed the allocation of socket.
  8011. * src/DownloadEngine.h
  8012. (Sockets): An element is now of type SocketHandle.
  8013. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  8014. (CommandUuids): New type definition.
  8015. (rsockets): Changed its type to SockCmdMap.
  8016. (wsockets): Changed its type to SockCmdMap.
  8017. (addSocket): Rewritten.
  8018. (deleteSocket): Rewritten.
  8019. (addSocketForReadCheck): Rewritten.
  8020. (deleteSocketForReadCheck): Rewritten.
  8021. (addSocketForWriteCheck): Rewritten.
  8022. (deleteSocketForWriteCheck): Rewritten.
  8023. (PairFind): New template class.
  8024. * src/HttpDownloadCommand.h
  8025. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  8026. * src/FtpConnection.cc
  8027. (FtpConnection): Replaced Socket with SocketHandle.
  8028. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  8029. block.
  8030. * src/InitiateConnectionCommandFactory.cc
  8031. (DlAbortEx.h): Included DlAbortEx.h.
  8032. (createInitiateConnectionCommand): Throw exception if the protocol of
  8033. requested URI is not supported.
  8034. * src/Peer.cc
  8035. (nullPeer): Changed its type to PeerHandle.
  8036. (operator==): New function.
  8037. (operator!=): New function.
  8038. * src/Peer.h
  8039. (SharedHandle.h): Included SharedHandle.h.
  8040. (operator==): New function.
  8041. (operator!=): New function.
  8042. (Peer): Added the default constructor.
  8043. Use resetStatus() to initialize member variables.
  8044. (nullPeer): Removed.
  8045. * src/TrackerUpdateCommand.cc
  8046. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  8047. with MIN_PEERS.
  8048. * src/PeerListenCommand.h
  8049. (socket): Changed its type to SocketHandle.
  8050. * src/Command.h
  8051. (CommandUuid): New type definition.
  8052. (uuid): New variable.
  8053. (uuidGen): New variable.
  8054. (Command): Added the initialization of uuid.
  8055. (getUuid): New function.
  8056. * src/Socket.h
  8057. (Socket): Removed.
  8058. (SocketHandle): New type definition.
  8059. * src/DownloadEngine.h
  8060. (FindCommand): New function object.
  8061. (run): The portion of socket check was rewritten.
  8062. (SetDescriptor): New function object.
  8063. (AccumulateActiveCommandUuid): New function object.
  8064. (waitData): Rewritten.
  8065. (addSocket): Rewritten.
  8066. (deleteSocket): Rewritten.
  8067. (addSocketForReadCheck): Rewritten.
  8068. (addSocketForWriteCheck): Rewritten.
  8069. (deleteSocketForReadCheck): Rewritten.
  8070. (deleteSocketForWriteCheck): Rewritten.
  8071. * src/HttpProxyResponseCommand.h
  8072. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  8073. * src/HttpConnection.h
  8074. (socket): Changed its type to SocketHandle.
  8075. (HttpConnection): Replaced Socket with SocketHandle.
  8076. * src/PeerInitiateConnectionCommand.cc
  8077. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8078. (executeInternal): Removed the allocation of socket.
  8079. (prepareForNextPeer): Use PeerHandle.
  8080. * src/PeerMessage.h
  8081. (peer): Changed its type to PeerHandle.
  8082. (getPeer): Replaced Peer with PeerHandle.
  8083. (setPeer): Replaced Peer with PeerHandle.
  8084. * src/DownloadCommand.cc
  8085. (DownloadCommand): Replaced Socket with SocketHandle.
  8086. * src/FtpConnection.h
  8087. (socket): Changed its type to SocketHandle.
  8088. (FtpConnection): Replaced Socket with SocketHandle.
  8089. (sendPort); Replaced Socket with SocketHandle.
  8090. * src/FtpDowndloadCommand.h
  8091. (ctrlSocket): Changed its type to SocketHandle.
  8092. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8093. * src/HttpProxyRequestCommand.cc
  8094. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8095. * src/FtpTunnelRequestCommand.h
  8096. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8097. etc
  8098. * src/PeerChokeCommand.h
  8099. (setAllPeerChoked): Removed.
  8100. (setAllPeerResetDelta): Removed.
  8101. * src/PeerChokeCommand.cc
  8102. (setAllPeerChoked): Removed.
  8103. (ChokePeer): New function object.
  8104. (setAllPeerResetDelta): Removed.
  8105. (ResetDelta): New function object.
  8106. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  8107. (execute): Show download speed when the local node is a seeder.
  8108. setAllPeerChoked and setAllPeerResetDelta were rewritten
  8109. using STL.
  8110. * src/TrackerWatcherCommand.h
  8111. (MIN_PEERS): Removed.
  8112. * src/TorrentMan.cc
  8113. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  8114. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. To fix the bug that .aria2 file is not saved if downloading is stopped
  8116. by the errors:it results that aria2 can not resume downloading:
  8117. * src/main.cc
  8118. (normalDownload): Added the call to save().
  8119. (main): Added the deletion of the elements in 'reserved'.
  8120. To fix log:
  8121. * src/PeerInteraction.cc
  8122. (receiveHandshake): Fixed log.
  8123. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. To improve download performance in BitTorrent:
  8125. * src/TorrentMan.cc
  8126. (getPeer): Check the number of connections. Return nullPeer if
  8127. it is greater than MAX_PEER_UPDATE.
  8128. This code was originally here, but was removed in 0.5.1.
  8129. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. To improve the conditional compilation:
  8131. * src/MultiDiskWriter.h:
  8132. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8133. * src/MultiDiskWriter.cc:
  8134. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8135. * src/Util.h:
  8136. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8137. Added ENABLE_BITTORRENT around computeFastSet().
  8138. * src/Util.cc:
  8139. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8140. Added ENABLE_BITTORRENT around computeFastSet().
  8141. * src/messageDigest.h:
  8142. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  8143. * src/ShaVisitor.h:
  8144. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8145. * src/ShaVisitor.cc:
  8146. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8147. * src/main.cc:
  8148. Added ENABLE_BITTORRENT around includes and blocks related to
  8149. BitTorrent.
  8150. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  8151. digest support is not available.
  8152. * src/AbstractDiskWriter.h:
  8153. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8154. * src/AbstractDiskWriter.cc:
  8155. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8156. * src/MetalinkEntry.cc
  8157. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  8158. support is not available.
  8159. To add command-line options for Metalink:
  8160. * src/main.cc:
  8161. Added metalink-version, metalink-language, metalink-os,
  8162. follow-metalink.
  8163. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  8164. * src/main.cc: Use these definition.
  8165. * Release 0.6.0
  8166. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. To add Metalink support(http/ftp only):
  8168. * src/AbstractCommand.h
  8169. (tryReserved): New function.
  8170. * src/AbstractCommand.cc
  8171. (execute): Call tryReserved().
  8172. (tryReserved): New function.
  8173. * src/Request.h
  8174. (Requests): New type definition.
  8175. * src/SegmentMan.h
  8176. (reserved): New variable.
  8177. * src/Util.h
  8178. (fileChecksum): New function.
  8179. (toUpper): New function.
  8180. (toLower): New function.
  8181. * src/Util.cc
  8182. (messageDigest.h): Included.
  8183. (trim): Trim \r\n\t.
  8184. (fileChecksum): New function.
  8185. (toUpper): New function.
  8186. (toLower): New function.
  8187. * src/main.cc
  8188. (normalDownload): New function.
  8189. (main): Added 2 command-line options: metalink-file,
  8190. metalink-connection. Their usage has not been written yet.
  8191. * src/MetalinkProcessor.h: New class.
  8192. * src/Xml2MetalinkProcessor.h: New class.
  8193. * src/Xml2MetalinkProcessor.cc: New class.
  8194. * src/MetalinkEntry.h: New class.
  8195. * src/MetalinkEntry.cc: New class.
  8196. * src/MetalinkResource.h: New class.
  8197. * src/MetalinkResource.cc: New class.
  8198. To add md5 message digest checking:
  8199. * src/messageDigest.h: Rewritten.
  8200. * src/MultiDiskWriter.cc: Updated according to the changes in
  8201. messageDigest.h.
  8202. * src/ShaVisitor.cc: Updated according to the changes in
  8203. messageDigest.h.
  8204. * src/Util.cc: Updated according to the changes in messageDigest.h.
  8205. * src/AbstractDiskWriter.cc: Updated according to the changes in
  8206. messageDigest.h.
  8207. To fix a bug that causes segfault when the payload length in peer
  8208. message is less than 0:
  8209. * src/PeerConnection.cc:
  8210. (receiveMessage): Fixed the bug.
  8211. * src/PeerMessageUtil.cc
  8212. (checkLength): Throw an exception if length is less than or equals to
  8213. 0.
  8214. To add new interfaces to Base64 encoding/decoding:
  8215. * src/Base64.h
  8216. (part_encode): Changed the method signature.
  8217. (encode): New function(overload).
  8218. (decode): New function(overload).
  8219. * src/Base64.cc
  8220. (part_encode): Rewritten.
  8221. (encode): Rewritten.
  8222. (encode): New function(overload).
  8223. To prevent a peer to download same piece if there is an error in
  8224. checksum:
  8225. * src/PieceMessage.cc
  8226. (receivedAction): Call peerInteraction->abortPiece().
  8227. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. To fix the bug that causes same have message is sent many times to
  8229. a single peer.
  8230. * src/Time.cc
  8231. (isNewer): Use Util::difftv().
  8232. * src/Util.cc
  8233. (difftv): Added a cast to (long long int).
  8234. * src/TorrentMan.cc
  8235. (advertisePiece): Use push_front.
  8236. (getAdvertisedPieceIndexes): A performance improvement was made.
  8237. To fix the bug that sends tracker requests without a sleep interval
  8238. when the number of connections is less than 15.
  8239. * src/TrackerWatcherCommand.cc
  8240. (execute): Now the number of connections is not a factor to decide
  8241. whether or not a tracker request should be sent or not.
  8242. * src/Time.h
  8243. (setTimeInSec): New function.
  8244. * src/Time.cc
  8245. (setTimeInSec): New function.
  8246. etc.
  8247. * src/ChokeMessage.cc
  8248. (receivedAction): Removed peer->snubbing = false
  8249. * src/PeerConnection.h
  8250. (receiveHandshake): Updated doc.
  8251. * src/TorrentMan.h
  8252. (getAdvertisedPieceIndexes): Updated the method signature.
  8253. * src/TorrentMan.cc
  8254. (getAdvertisedPieceIndexes): Updated the method signature.
  8255. * src/Time.h
  8256. (getTimeInMicros): Added a cast to (long long int).
  8257. (getTimeInMillis): Added a cast to (long long int).
  8258. * Release 0.5.2
  8259. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. To make a listening socket non-block:
  8261. * src/SocketCore.h
  8262. (setNonBlockingMode): New function.
  8263. * src/SocketCore.cc
  8264. (setNonBlockingMode): New function.
  8265. (beginListen): Added a call to setNonBlockingMode().
  8266. (acceptConnection): Call setNonBlockingMode().
  8267. (setBlockingMode): Updated.
  8268. To handle tracker's NAT-checking:
  8269. * src/PeerConnection.cc
  8270. (receiveHandshake): 'msg' param is filled with received data and
  8271. its length is assigned to 'length' param, even if all handshake
  8272. message is not yet received.
  8273. * src/PeerInteractionCommand.cc
  8274. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  8275. a new peer connects to localhost.
  8276. A call to peerInteraction->sendHandshake() was removed because
  8277. it is called from peerInteraction->receiveHandshake(true).
  8278. * src/PeerInteraction.h
  8279. (quickReplied): New variable.
  8280. (receiveHandshake): Added an argument.
  8281. * src/PeerInteraction.cc
  8282. (PeerInteraction): Added the initialization of quickReplied.
  8283. (receiveHandshake): Send handshake message as soon as the info hash
  8284. in a handshake message from a peer is correct.
  8285. To change the random part of peer id and key parameter:
  8286. * src/TorrentMan.h
  8287. (key): New variable.
  8288. * src/TorrentMan.cc
  8289. (setupInternal1): Use Util::randomAlpha() to generate random part
  8290. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  8291. key is also generated by Util::randomAlpha() and it is now 8 character
  8292. long.
  8293. * src/Util.h
  8294. (randomAlpha): New function.
  8295. * src/Util.cc
  8296. (randomAlpha): New function.
  8297. * src/TrackerWatcherCommand.cc
  8298. (execute): In a tracker request: Use torrentMan->key as key parameter.
  8299. Added no_peer_id=1.
  8300. Set snubbing flag to false when a choke message is received from a
  8301. snubbed peer.
  8302. * src/ChokeMessage.cc
  8303. (receivedAction): Set snubbing flag to false.
  8304. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8305. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  8306. * src/SimpleLogger.h (writeHeader): New function.
  8307. * src/SimpleLogger.cc (writeHeader): New function.
  8308. (writeLog): Fixed the bug that causes segfaults if exception message
  8309. contains an unescaped "%" character.
  8310. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  8311. when a tracker request fails.
  8312. * src/Request.cc (parseUrl): Query string is now handled properly.
  8313. * Release 0.5.1
  8314. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. To add Time class which represents a specific instant in time and
  8316. its precision is microseconds. Time checking procedures were rewritten
  8317. using this object.
  8318. * src/Time.h: New class.
  8319. * src/Time.cc: New class.
  8320. * src/AbstractCommand.h
  8321. (updateCheckPoint): Removed.
  8322. (isTimeoutDetected): Removed.
  8323. (checkPoint): Changed the type to Time.
  8324. (timeout): New variable.
  8325. (setTimeout): New function.
  8326. * src/AbstractCommand.cc
  8327. (AbstractCommand): Removed the initialization of checkPoint.
  8328. Added the initialization of timeout.
  8329. (updateCheckPoint): Removed.
  8330. (isTimeoutDetected): Removed.
  8331. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8332. * src/PeerChokeCommand.h
  8333. (checkPoint): Changed the type to Time.
  8334. * src/PeerChokeCommand.cc
  8335. (PeerChokeCommand): Removed the initialization of checkPoint.
  8336. (execute): Rewritten using Time object.
  8337. * src/TrackerWatcherCommand.h
  8338. (checkPoint): Changed the type to Time.
  8339. * src/TrackerWatcherCommand.cc
  8340. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  8341. (execute): Rewritten.
  8342. * src/ConsoleDownloadEngine.h
  8343. (cp): Changed the type to Time.
  8344. (startup): Changed the type to Time.
  8345. * src/ConsoleDownloadEngine.cc
  8346. (initStatistics): Use cp.reset(), startup.reset().
  8347. (calculateStatistics): Rewritten using Time object.
  8348. * src/PeerAbstractCommand.h
  8349. (updateCheckPoint): Removed.
  8350. (isTimeoutDetected): Removed.
  8351. (checkPoint): Changed the type to Time.
  8352. * src/PeerAbstractCommand.cc
  8353. (PeerAbstractCommand): Removed the initialization of checkPoint.
  8354. (updateCheckPoint): Removed.
  8355. (isTimeoutDetected): Removed.
  8356. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8357. * src/PeerInteractionCommand.cc
  8358. (PeerInteractionCommand): Removed the initializations of struct
  8359. timeval variables.
  8360. * src/PeerInteractionCommand.h
  8361. (keepAliveCheckPoint): Changed the type to Time.
  8362. (chokeCheckPoint): Changed the type to Time.
  8363. (freqCheckPoint): Changed the type to Time.
  8364. (haveCheckTime): Changed the type to Time.
  8365. * src/PeerInteractionCommand.cc
  8366. (executeInternal): Rewritten using Time object.
  8367. (detectMessageFlooding): Rewritten using Time object.
  8368. (checkLongTimePeerChoking): Rewritten using Time object.
  8369. (sendKeepAlive): Rewritten using Time object.
  8370. (checkHave): Rewritten using Time object.
  8371. * src/SleepCommand.h
  8372. (checkPoint): Changed the type to Time.
  8373. * src/SleepCommand.cc
  8374. (SleepCommand): Removed the initialization of checkPoint.
  8375. (execute): Rewritten using Time object.
  8376. * src/TorrentAutoSaveCommand.h
  8377. (checkPoint): Changed the type to Time.
  8378. * src/TorrentAutoSaveCommand.cc
  8379. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  8380. (execute): Rewritten.
  8381. * src/DownloadCommand.h
  8382. (sw): Changed the type to Time.
  8383. * src/DownloadCommand.cc
  8384. (DownloadCommand): Removed the initialization of sw.
  8385. (executeInternal): Rewritten.
  8386. * src/RequestSlot.h
  8387. (dispatchedTime): Changed the type to Time.
  8388. * src/RequestSlot.cc
  8389. (RequestSlot): Removed the call to setDispatchedTime().
  8390. (setDispatchedTime): Rewirtten.
  8391. (isTimeout): Rewritten.
  8392. (getLatencyInMillis): Rewritten.
  8393. * src/TorrentDownloadEngine.h
  8394. (cp): Changed the type to Time[2].
  8395. (startup): Changed the type to Time.
  8396. * src/TorrentDownloadEngine.cc
  8397. (initStatistics): Rewritten.
  8398. (calculateStatistics): Rewritten.
  8399. * src/DownloadEngine.cc
  8400. (run): Rewritten.
  8401. To detect all attempts to connect to the tracker are failed:
  8402. * src/AbstractCommand.cc
  8403. (execute): Increment e->segmentMan->errors if a command aborted.
  8404. * src/SegmentMan.h
  8405. (errors): New variable.
  8406. * src/SegmentMan.cc
  8407. (SegmentMan): Added the initialization of errors.
  8408. (init): Added the initialization of errors.
  8409. * src/TrackerWatcherCommand.cc
  8410. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  8411. request was failed.
  8412. To handle snubbed peers:
  8413. * src/PeerChokeCommand.cc
  8414. (optUnchokingPeer): Snubbed peers don't get unchoked.
  8415. (execute): Snubbed peers don't get unchoked.
  8416. * src/PeerInteraction.h
  8417. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  8418. * src/PeerInteraction.cc
  8419. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  8420. back the requested 16k block in 60 seconds.
  8421. * src/PieceMessage.cc
  8422. (receivedAction): A peer's snubbed state is cleard if it sends
  8423. the requested 16k block in 60 seconds.
  8424. * src/Peer.h
  8425. (snubbing): New variable.
  8426. * src/Peer.cc
  8427. (resetStatus): Added snubbed = false.
  8428. To fix the bug that causes have message is not sent:
  8429. * src/PeerInteractionCommand.cc
  8430. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  8431. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  8432. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  8433. * src/TorrentMan.h
  8434. (HaveEntry): New class.
  8435. (advertisePiece): Rewritten.
  8436. (getAdvertisedPieceIndexes): Rewritten.
  8437. (Haves): Changed the type.
  8438. (getAdvertisedPieceIndexes): Added an argument.
  8439. Others:
  8440. * src/TorrentMan.h
  8441. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  8442. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  8443. * src/TorrentMan.cc
  8444. (getPeer): Don't check the number of connections here.
  8445. (setupInternal1): Changed peerId.
  8446. * src/PeerInteractionCommand.h
  8447. (KEEP_ALIVE_INTERVAL): New definition.
  8448. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  8449. * src/main.cc
  8450. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  8451. * src/DownloadEngine.h: Removed unnecessary header includes.
  8452. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. To fix the bug that causes segfaults if a tracker returns a zero-length
  8454. list as "peers":
  8455. * src/TrackerUpdateCommand.cc
  8456. (execute): Added a check to see wether the type of peers is Data*.
  8457. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8458. * Release 0.5.0
  8459. To fix compile issue with gcc3:
  8460. * src/CancelMessage.h
  8461. (ID): Renamed as ID_t
  8462. (ID_t): New enum.
  8463. * src/RejectMessage.h
  8464. (ID): Renamed as ID_t
  8465. (ID_t): New enum.
  8466. * src/SuggestPieceMessage.h
  8467. (ID): Renamed as ID_t
  8468. (ID_t): New enum.
  8469. * src/AllowedFastMessage.h
  8470. (ID): Renamed as ID_t
  8471. (ID_t): New enum.
  8472. * src/PortMessage.h
  8473. (ID): Renamed as ID_t
  8474. (ID_t): New enum.
  8475. * src/HaveNoneMessage.h
  8476. (ID): Renamed as ID_t
  8477. (ID_t): New enum.
  8478. * src/KeepAliveMessage.h
  8479. (ID): Renamed as ID_t
  8480. (ID_t): New enum.
  8481. * src/HaveAllMessage.h
  8482. (ID): Renamed as ID_t
  8483. (ID_t): New enum.
  8484. * src/UnchokeMessage.h
  8485. (ID): Renamed as ID_t
  8486. (ID_t): New enum.
  8487. * src/BitfieldMessage.h
  8488. (ID): Renamed as ID_t
  8489. (ID_t): New enum.
  8490. * src/PieceMessage.h
  8491. (ID): Renamed as ID_t
  8492. (ID_t): New enum.
  8493. * src/RequestMessage.h
  8494. (ID): Renamed as ID_t
  8495. (ID_t): New enum.
  8496. * src/NotInterestedMessage.h
  8497. (ID): Renamed as ID_t
  8498. (ID_t): New enum.
  8499. * src/ChokeMessage.h
  8500. (ID): Renamed as ID_t
  8501. (ID_t): New enum.
  8502. * src/InterestedMessage.h
  8503. (ID): Renamed as ID_t
  8504. (ID_t): New enum.
  8505. * src/HaveMessage.h
  8506. (ID): Renamed as ID_t
  8507. (ID_t): New enum.
  8508. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. * src/PeerAbstractCommand.h
  8510. (beforeSocketCheck): Removed.
  8511. * src/PeerAbstractCommand.cc
  8512. Modified in order to call executeInternal() even if socket check
  8513. and upload limit check fail.
  8514. * src/PeerInteractionCommand.h
  8515. (keepAlive): Removed.
  8516. (sendKeepAlive): New function.
  8517. (checkHave): New function.
  8518. (beforeSocketCheck): Removed.
  8519. * src/PeerInteractionCommand.cc
  8520. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  8521. calls to checkHave() and sendKeepAlive().
  8522. (keepAlive): Renamed to sendKeepAlive().
  8523. (sendKeepAlive): New function.
  8524. (beforeSocketCheck): Removed.
  8525. (checkHave): New function.
  8526. * src/BitfieldMan.cc
  8527. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  8528. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  8529. 0.
  8530. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  8531. * src/TorrentMan.h
  8532. (UsedPieces): Removed.
  8533. (Pieces): New type definition.
  8534. * src/Piece.h: Updated doc.
  8535. * src/Peer.h
  8536. (totalLength): Removed.
  8537. * src/Peer.cc
  8538. (updateLatency): Fixed the latency calculation.
  8539. * src/TorrentMan.cc
  8540. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  8541. than or equal to MAX_PEER_LIST_SIZE.
  8542. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  8543. then return false.
  8544. (deleteOldErrorPeers): Rewritten.
  8545. (deleteUsedPiece): Fixed the miss use of STL remove.
  8546. * src/PeerInteraction.h
  8547. (Pieces): Removed.
  8548. (deleteTimeoutRequestSlot): Removed.
  8549. (deleteCompletedRequestSlot): Removed.
  8550. (checkRequestSlot): New function.
  8551. * src/PeerInteraction.cc
  8552. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  8553. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  8554. (checkRequestSlot): New function.
  8555. * src/DownloadEngine.cc
  8556. (run): Clear activeSockets before calling waitData().
  8557. (waitData): Removed a call to activeSockets.clear().
  8558. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. To attempt to handle EINTR:
  8560. * src/SocketCore.cc
  8561. (isReadable): Added EINTR handling.
  8562. (isWritable): Added EINTR handling.
  8563. To improve the performance:
  8564. * src/AbstractCommand.cc
  8565. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  8566. * src/PeerInteractionCommand.h
  8567. (receiveMessage): Renamed as receiveMessages().
  8568. (receiveMessages): New function.
  8569. * src/PeerInteractionCommand.cc
  8570. (executeInternal): receiveMessage loop is moved to new receiveMessages
  8571. () function. detectMessageFlooding() is moved here.
  8572. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  8573. (). The flooding detection for have message is comment out.
  8574. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  8575. Util::difftv().
  8576. (receiveMessage): Renamed as receiveMessages().
  8577. (receiveMessages): New function.
  8578. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  8579. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  8580. * src/SleepCommand.cc
  8581. (execute): Use Util::difftvsec() instead of Util::difftv().
  8582. * src/BitfieldMan.h
  8583. (getNthBitIndex): New function.
  8584. (hasMissingPiece): New function.
  8585. (getAllMissingIndexes): New function.
  8586. * src/BitfieldMan.cc
  8587. (countSetBit): Rewritten.
  8588. (getNthBitIndex): New function.
  8589. (getMissingIndexRandomly): Rewritten.
  8590. (hasMissingPiece): New function.
  8591. (getAllMissingIndexes): New function.
  8592. * src/TorrentMan.cc
  8593. (hasMissingPiece): New function.
  8594. (deleteUsedPiece): Rewritten using STL.
  8595. * src/PeerInteraction.cc
  8596. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  8597. is a little bit faster then TorrentMan::getMissingPieceIndex().
  8598. (addRequests): Updated the number of pending requests.
  8599. * src/PeerAbstractCommand.cc
  8600. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  8601. (execute): Returns true if TorrentMan::isHalt() is true.
  8602. Corrected the condition of upload limit checking.
  8603. * src/Util.h
  8604. (countBit): New function.
  8605. * src/Util.cc
  8606. (nbits): New variable.
  8607. (countBit): New function.
  8608. * src/DownloadEngine.h
  8609. (SockCmdMap): New type definition.
  8610. (waitData): Added an argument.
  8611. (addSocket): Added an argument.
  8612. (addSocketForReadCheck): Added an argument.
  8613. (addSocketForWriteCheck): Added an argument.
  8614. * src/DownloadEngine.cc
  8615. (run): Executes only commands whose sockets are ready to read or write.
  8616. All commands are executed in every 1 second.
  8617. (waitData): Calls select() again if it returned
  8618. EINTR.
  8619. (addSocket): Saves socket and command object pair to the map.
  8620. (deleteSocket): Deletes socket and command object pair from the map.
  8621. (addSocketForReadCheck): Added an argument.
  8622. (addSocketForWriteCheck): Added an argument.
  8623. * src/DownloadCommand.cc
  8624. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  8625. To send "event=stopped" to the tracker when the application finishes:
  8626. * src/PeerChokeCommand.h
  8627. (checkPoint): New variable.
  8628. * src/PeerChokeCommand.cc
  8629. (PeerChokeCommand): Added the initialization of checkPoint.
  8630. (execute): The interval check is now done by checkPoint, not
  8631. SleepCommand. Return true if TorrentMan::isHalt() is true.
  8632. * src/TorrentMan.h
  8633. (halt): New function.
  8634. (hasMissingPiece): New function.
  8635. (isHalt): New function.
  8636. (setHalt): New function.
  8637. * src/TorrentMan.cc
  8638. (TorrentMan): Added the initialization of halt.
  8639. * src/TorrentAutoSaveCommand.h
  8640. (checkPoint): New variable.
  8641. * src/PeerListenCommand.cc
  8642. (execute): Returns true if TorrentMan::isHalt() is true.
  8643. * src/main.cc
  8644. (setSignalHander): Added flags argument.
  8645. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  8646. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  8647. Removed printDownloadAbortMessage() after torrent downloading loop.
  8648. * src/TorrentAutoSaveCommand.cc
  8649. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  8650. (execute): Returns true if TorrentMan::isHalt() is true.
  8651. The interval check is now done by checkPoint, not SleepCommand.
  8652. * src/TrackerWatcherCommand.cc
  8653. (execute): If TorrentMan::isHalt(), then create a tracker request with
  8654. event=stopped.
  8655. * src/TrackerUpdateCommand.cc
  8656. (prepareForRetry): Do not use SleepCommand here.
  8657. (execute): Returns true if TorrentMan::isHalt() is true.
  8658. Others:
  8659. * src/TorrentMan.cc
  8660. (getMissingPieceIndex): Updated log message.
  8661. * src/PeerInteraction.cc
  8662. (createPeerMessag): Updated log message.
  8663. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. To add the ability to download several pieces in mix in a command and
  8665. increase the number of request slots according to request-cancel
  8666. latency:
  8667. * src/PeerInteractionCommand.cc
  8668. (executeInternal): The number of messages to be received at a time
  8669. is increased from 10 to 50.
  8670. * src/LogFactory
  8671. (getInstance): Added NullLogger.
  8672. * src/NullLogger.h: New class.
  8673. * src/BitfieldMan.h
  8674. (getMissingIndex): New function.
  8675. * src/BitfieldMan.cc
  8676. (getMissingIndex): New function.
  8677. * src/TorrentMan.h
  8678. (checkOutPiece): New function.
  8679. (getMissingPieceIndex): New function.
  8680. (getMissingFastPieceIndex): New function.
  8681. (getMissingFastPiece): New function.
  8682. * src/TorrentMan.cc
  8683. (updatePiece): Rewritten using STL.
  8684. (syncPiece): Rewritten using STL.
  8685. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  8686. checkOutPiece().
  8687. (getMissingPieceIndex): New function.
  8688. (getMissingFastPieceIndex): New function.
  8689. (getMissingFastPiece): New function.
  8690. (checkOutPiece): New function.
  8691. * src/PeerInteraction.h
  8692. (Pieces): New type definition.
  8693. (piece): Removed.
  8694. (pieces): New variable.
  8695. (getNewPieceAndSendInterest): Added the "piece" argument.
  8696. (abortPiece): Added the "piece" argument.
  8697. (abortAllPieces): New function.
  8698. (isInRequestSlot): New function.
  8699. (hasDownloadPiece): Added the "index" argument.
  8700. (setDownloadPiece): Removed.
  8701. (getDownloadPiece): Added the "index" argument.
  8702. (updatePiece): New function.
  8703. (createRequestMessage): Added the "index" argument.
  8704. * src/PeerInteraction.cc
  8705. (onChoked): Rewritten.
  8706. (abortPiece): Rewirtten.
  8707. (abortAllPieces): New function.
  8708. (deleteTimeoutRequestSlot): Rewritten.
  8709. Clarified code a little bit.
  8710. (deleteCompletedRequestSlot): Rewritten.
  8711. (isInRequestSlot): New function.
  8712. (syncPiece): Rewritten.
  8713. (updatePiece): New function.
  8714. (getNewPieceAndSendInterest): Rewritten.
  8715. (addRequests): Rewritten.
  8716. (getDownloadPiece): Rewritten.
  8717. (hasDownloadPiece): Rewritten.
  8718. (createRequestMessage): Added the "index" argument.
  8719. * src/common.h
  8720. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  8721. (DIV_FLOOR): New definition.
  8722. * src/PieceMessage.cc
  8723. (receivedAction): Update request-piece latency here.
  8724. * src/RequestSlot.h
  8725. (getLatencyInMillis): New function.
  8726. * src/RequestSlot.cc
  8727. (isTimeout): Rewritten using getLatencyInMillis.
  8728. (getLatencyInMillis): New function.
  8729. * src/Piece.h
  8730. (operator==): New function.
  8731. (getMissingBlockIndex): New function.
  8732. * src/Piece.cc
  8733. (operator==): New function.
  8734. (getMissingBlockIndex): New function.
  8735. * src/Peer.h
  8736. (DEFAULT_LATENCY): New definition.
  8737. (latency): New variable.
  8738. (updateLatency): New function.
  8739. (getLatency): New function.
  8740. * src/Peer.cc
  8741. (resetStatus): Reset latecy.
  8742. (updateLatency): New function.
  8743. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. * src/SocketCore.cc
  8745. (isReadable): Added secure to the condition.
  8746. * src/HttpConnection.cc
  8747. (receiveResponse): Fixed a bug that causes no response header
  8748. exception.
  8749. * src/Peer.h
  8750. (getFastSet): Fixed the return value type.
  8751. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. To remove a wait from download loop:
  8753. * src/DownloadEngine.cc
  8754. (run): Comment out shortSleep.
  8755. To rewrite the message handling:
  8756. * src/SimplePeerMessage.h: New class.
  8757. * src/SimplePeerMessage.cc: New class.
  8758. * src/CancelMessage.h: Derived from SimplePeerMessage.
  8759. (msg): New variable.
  8760. (create): New function.
  8761. (send): Removed.
  8762. (getMessage): New function.
  8763. (getMessageLength): New function.
  8764. * src/CancelMessage.cc
  8765. (create): New function.
  8766. (receivedAction): Replaced deleteRequestMessageInQueue with
  8767. rejectPieceMessageInQueue.
  8768. (send): Removed.
  8769. (getMessage): New function.
  8770. (getMessageLength): New function.
  8771. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  8772. (msg): New variable.
  8773. (msgLength): New variable.
  8774. (~BitfieldMessage): Deleted msg.
  8775. (send): Removed.
  8776. (getMessage): New function.
  8777. (getMessageLength): New function.
  8778. * src/BitfieldMessage.cc
  8779. (create): New function.
  8780. (send): Removed.
  8781. (getMessage): New function.
  8782. (getMessageLength): New function.
  8783. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  8784. (msg): New variable.
  8785. (sendPredicate): New function.
  8786. (onSendComplete): New function.
  8787. (send): Removed.
  8788. (getMessage): New function.
  8789. (getMessageLength): New function.
  8790. (create): New function.
  8791. * src/ChokeMessage.cc
  8792. (create): New function.
  8793. (send): Removed.
  8794. (sendPredicate): New function.
  8795. (getMessage): New function.
  8796. (getMessageLength): New function.
  8797. (onSendComplete): New function.
  8798. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  8799. (msg): New variable.
  8800. (send): Removed.
  8801. (getMessage): New function.
  8802. (getMessageLength): New function.
  8803. * src/KeepAliveMessage.cc
  8804. (send): Removed.
  8805. (getMessage): New function.
  8806. (getMessageLength): New function.
  8807. * src/PortMessage.h
  8808. (create): New function.
  8809. (receivedAction): Updated log message.
  8810. * src/PortMessage.cc: New file.
  8811. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  8812. (msg): New variable.
  8813. (sendPredicate): New function.
  8814. (onSendComplete): New function.
  8815. (create): New function.
  8816. (send): Removed.
  8817. (getMessage): New function.
  8818. (getMessageLength): New function.
  8819. * src/UnchokeMessage.cc
  8820. (create): New function.
  8821. (send): Removed.
  8822. (sendPredicate): New function.
  8823. (getMessage): New function.
  8824. (getMessageLength): New function.
  8825. (onSendComplete): New function.
  8826. * src/PieceMessage.h
  8827. (leftPieceDataLength): Removed.
  8828. (leftDataLength): New variable.
  8829. (headerSend): New variable.
  8830. (pendingCount): New variable.
  8831. (msgHeader): New variable.
  8832. (sendPieceData): New function.
  8833. (incrementPendingCount): New function.
  8834. (isPendingCountMax): New function.
  8835. (create): New function.
  8836. (getMessageHeader): New function.
  8837. (getMessageHeaderLength): New function.
  8838. * src/PieceMessage.cc
  8839. (create): New function.
  8840. (getMessageHeader): New function.
  8841. (getMessageHeaderLength): New function.
  8842. (send): Rewritten.
  8843. (sendPieceData): New function.
  8844. * src/HaveMessage.h: Derived from SimplePeerMessage.
  8845. (msg): New variable.
  8846. (create): New function.
  8847. (getMessage): New function.
  8848. (getMessageLength): New function.
  8849. * src/HaveMessage.cc
  8850. (create): New function.
  8851. (send): Removed.
  8852. (sendPieceData): New function.
  8853. (getMessage): New function.
  8854. (getMessageLength): New function.
  8855. * src/RequestMessage.h: Derived from SimplePeerMessage.
  8856. (msg): New variable.
  8857. (create): New function.
  8858. (send): Removed.
  8859. (getMessage): New function.
  8860. (getMessageLength): New function.
  8861. * src/RequestMessage.cc
  8862. (create): New function.
  8863. (receivedAction): Added the handling of fast extension.
  8864. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  8865. (send): Removed.
  8866. (getMessage): New function.
  8867. (getMessageLength): New function.
  8868. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  8869. (msg): New variable.
  8870. (sendPredicate): New function.
  8871. (onSendComplete): New function.
  8872. (create): New function.
  8873. (getMessage): New function.
  8874. (getMessageLength): New function.
  8875. * src/InterestedMessage.cc
  8876. (create): New function.
  8877. (send): Removed.
  8878. (sendPieceData): New function.
  8879. (getMessage): New function.
  8880. (getMessageLength): New function.
  8881. (onSendComplete): New function.
  8882. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  8883. (msg): New variable.
  8884. (sendPieceData): New function.
  8885. (onSendComplete): New function.
  8886. (create): New function.
  8887. (send): Removed.
  8888. (getMessage): New function.
  8889. (getMessageLength): New function.
  8890. * src/NotInterestedMessage.cc
  8891. (create): New function.
  8892. (send): Removed.
  8893. (sendPredicate): New function.
  8894. (getMessage): New function.
  8895. (getMessageLength): New function.
  8896. (onSendComplete): New function.
  8897. * src/AllowedFastMessage.h: New class.
  8898. * src/AllowedFastMessage.cc: New class.
  8899. * src/RejectMessage.h: New class.
  8900. * src/RejectMessage.cc: New class.
  8901. * src/SuggestPieceMessage.h: New class.
  8902. * src/SuggestPieceMessage.cc: New class.
  8903. * src/HaveAllMessage.h: New class.
  8904. * src/HaveAllMessage.cc: New class.
  8905. * src/HaveNoneMessage.h: New class.
  8906. * src/HaveNoneMessage.cc: New class.
  8907. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  8908. (msg): New variable.
  8909. (reserved): New variable.
  8910. (create): New function.
  8911. (getId): New function.
  8912. (receivedAction): New function.
  8913. (getMessage): New function.
  8914. (getMessageLength): New function.
  8915. (isFastExtensionSupported): New function.
  8916. * src/HandshakeMessage.cc
  8917. (HandshakeMessage): Moved here from HandshakeMessage.h.
  8918. (create): New function.
  8919. (getMessage): New function.
  8920. (getMessageLength): New function.
  8921. (toString): Added the output of reserved field.
  8922. (check): Added const qualifier.
  8923. (isFastExtensionSupported): New function.
  8924. * src/PeerMessageUtil.h
  8925. (createChokeMessage): Removed.
  8926. (createUnchokeMessage): Removed.
  8927. (createInterestedMessage): Removed.
  8928. (createNotInterestedMessage): Removed.
  8929. (createHaveMessage): Removed.
  8930. (createBitfieldMessage): Removed.
  8931. (createRequestMessage): Removed.
  8932. (createCancelMessage): Removed.
  8933. (createPieceMessage): Removed.
  8934. (createPortMessage): Removed.
  8935. (createChokeMessage): Removed.
  8936. (createUnchokeMessage): Removed.
  8937. (createInterestedMessage): Removed.
  8938. (createNotInterestedMessage): Removed.
  8939. (createHaveMessage): Removed.
  8940. (createBitfieldMessage): Removed.
  8941. (createRequestMessage): Removed.
  8942. (createCancelMessage): Removed.
  8943. (createPieceMessage): Removed.
  8944. (createKeepAliveMessage): Removed.
  8945. (createHandshakeMessage): Removed.
  8946. (setIntParam): New function.
  8947. (createPeerMessageString): New function.
  8948. * src/PeerMessageUtil.cc
  8949. (createChokeMessage): Removed.
  8950. (createUnchokeMessage): Removed.
  8951. (createInterestedMessage): Removed.
  8952. (createNotInterestedMessage): Removed.
  8953. (createHaveMessage): Removed.
  8954. (createBitfieldMessage): Removed.
  8955. (createRequestMessage): Removed.
  8956. (createCancelMessage): Removed.
  8957. (createPieceMessage): Removed.
  8958. (createPortMessage): Removed.
  8959. (createRequestMessage): Removed.
  8960. (createCancelMessage): Removed.
  8961. (createPieceMessage): Removed.
  8962. (createHaveMessage): Removed.
  8963. (createChokeMessage): Removed.
  8964. (createUnchokeMessage): Removed.
  8965. (createInterestedMessage): Removed.
  8966. (createNotInterestedMessage): Removed.
  8967. (createBitfieldMessage): Removed.
  8968. (createKeepAliveMessage): Removed.
  8969. (createHandshakeMessage): Removed.
  8970. (setIntParam): New function.
  8971. (createPeerMessageString): New function.
  8972. * src/PeerConnection.h
  8973. (peer): Removed.
  8974. (torrentMan): Removed.
  8975. (createNLengthMessage): Removed.
  8976. (setIntParam): Removed.
  8977. (writeOutgoingMessageLog): Removed all overloaded functions.
  8978. (PeerConnection): Deleted peer and torrentMan from its arguments.
  8979. (sendMessage): New function.
  8980. (sendHandshake): Removed.
  8981. (sendKeepAlive): Removed.
  8982. (sendChoke): Removed.
  8983. (sendUnchoke): Removed.
  8984. (sendInterested): Removed.
  8985. (sendNotInterested): Removed.
  8986. (sendHave): Removed.
  8987. (sendBitfield): Removed.
  8988. (sendRequest): Removed.
  8989. (sendPiece): Removed.
  8990. (sendPieceHeader): Removed.
  8991. (sendPieceData): Removed.
  8992. (sendCancel): Removed.
  8993. (getPeer): Removed.
  8994. * src/PeerConnection.cc
  8995. (PeerConnection): Deleted peer and torrentMan from its arguments.
  8996. (sendHandshake): Removed.
  8997. (sendKeepAlive): Removed.
  8998. (createNLengthMessage): Removed.
  8999. (setIntParam): Removed.
  9000. (writeOutgoingMessageLog): Removed all overloaded functions.
  9001. (sendChoke): Removed.
  9002. (sendUnchoke): Removed.
  9003. (sendInterested): Removed.
  9004. (sendNotInterested): Removed.
  9005. (sendHave): Removed.
  9006. (sendBitfield): Removed.
  9007. (sendRequest): Removed.
  9008. (sendPiece): Removed.
  9009. (sendPieceHeader): Removed.
  9010. (sendPieceData): Removed.
  9011. (sendMessage): New function.
  9012. (sendCancel): Removed.
  9013. * src/PeerInteractionCommand.cc
  9014. (PeerInteractionCommand): Call setUploadLimit.
  9015. (executeInternal): Call setUploadLimit.
  9016. Added the handling of "inProgress" state of handshake message.
  9017. Call sendBitfield() or sendAllowdFast() instead of deprecated
  9018. sendNow().
  9019. (keepAlive): Call addMessage and sendMessage instead of deprecated
  9020. sendNow().
  9021. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  9022. * src/TorrentMan.h
  9023. (PEER_ID_LENGTH): New definition.
  9024. (hasAllPieces): New function.
  9025. * src/TorrentMan.cc
  9026. (getMissingPiece): Added the handling of fast extension.
  9027. (cancelPiece): Call updatePiece().
  9028. (hasAllPieces): New function.
  9029. * src/PeerInteraction.h
  9030. (fastSet): New variable.
  9031. (getNewPieceAndSendInterest): Changed the return type to void.
  9032. (send): Renamed as sendMessages.
  9033. (deleteAllRequestSlot): Removed.
  9034. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9035. (cancelAllRequest): Removed all overloaded functions.
  9036. (deleteAllRequestSlot): Removed.
  9037. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9038. (rejectPieceMessageInQueue): New function.
  9039. (rejectAllPieceMessageInQueue): New function.
  9040. (onChoked): New function.
  9041. (isSendingMessageInProgress): New function.
  9042. (getCorrespondingRequestSlot): Changed its arguments.
  9043. (isInFastSet): New function.
  9044. (addFastSetIndex): New function.
  9045. (addRequests): New function.
  9046. (sendNow): Removed.
  9047. (trySendNow): Removed.
  9048. (sendBitfield): New function.
  9049. (sendAllowdFast): New function.
  9050. (createHaveAllMessage): New function.
  9051. (createHaveNoneMessage): New function.
  9052. (createRejectMessage): New function.
  9053. (createAllowedFastMessage): New function.
  9054. * src/PeerInteraction.cc
  9055. (send): Renamed as sendMessages.
  9056. (sendMessages): New function.
  9057. (MsgPushBack): New class.
  9058. (isSendingMessageInProgress): New function.
  9059. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9060. (rejectAllPieceMessageInQueue): New function.
  9061. Added the handling of fast extension.
  9062. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9063. (rejectPieceMessageInQueue): New function.
  9064. Added the handling of fast extension.
  9065. (deleteRequestSlot): Replaced for loop with std::find.
  9066. (onChoked): New function.
  9067. (deleteAllRequestSlot): Removed.
  9068. (abortPiece): Rewirtten.
  9069. (deleteTimeoutRequestSlot): Updated log messages.
  9070. (getCorrespondingRequestSlot): Changed its arguments.
  9071. (cancelAllRequest): Removed all overloaded functions.
  9072. (receiveHandshake): Added the check to see whether an incoming peer
  9073. supports fast extension.
  9074. (createHandshakeMessage): Use HandshakeMessage::create instead of
  9075. PeerMessageUtil.
  9076. (createPeerMessage): Use create() of each message class instead of
  9077. PeerMessageUtil.
  9078. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  9079. AllowedFastMessage were added.
  9080. (getNewPieceAndSendInterest): Changed its return value type to void.
  9081. Added the handling of fast extension.
  9082. (addRequests): New function.
  9083. (sendNow): Removed.
  9084. (sendHandshake): Rewritten.
  9085. (trySendNow): Removed.
  9086. (sendBitfield): New function.
  9087. (sendAllowdFast): New function.
  9088. (isInFastSet): New function.
  9089. (addFastSetIndex): New function.
  9090. (createRequestMessage): Use RequestMessage::create instead of
  9091. PeerMessageUtil.
  9092. (createCancelMessage): Use CancelMessage::create instead of
  9093. PeerMessageUtil.
  9094. (createPieceMessage): Use PieceMessage::create instead of
  9095. PeerMessageUtil.
  9096. (createHaveMessage): Use HaveMessage::create instead of
  9097. PeerMessageUtil.
  9098. (createChokeMessage): Use ChokeMessage::create instead of
  9099. PeerMessageUtil.
  9100. (createUnchokeMessage): Use UnchokeMessage::create instead of
  9101. PeerMessageUtil.
  9102. (createInterestedMessage): Use InterestedMessage::create instead of
  9103. PeerMessageUtil.
  9104. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  9105. of PeerMessageUtil.
  9106. (createBitfieldMessage): Use BitfieldMessage::create instead of
  9107. PeerMessageUtil.
  9108. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  9109. PeerMessageUtil.
  9110. (createHaveAllMessage): New function.
  9111. (createHaveNoneMessage): New function.
  9112. (createRejectMessage): New function.
  9113. (createAllowedFastMessage: New function.
  9114. * src/Util.h
  9115. (sha1Sum): New function.
  9116. (computeFastSet): New function.
  9117. * src/Util.cc
  9118. (sha1Sum): New function.
  9119. (computeFastSet): New function.
  9120. * src/Peer.h
  9121. (fastExtensionEnabled): New variable.
  9122. (fastSet): New variable.
  9123. (setAllBitfield): New function.
  9124. (setFastExtensionEnabled): New function.
  9125. (isFastExtensionEnabled): New function.
  9126. (addFastSetIndex): New function.
  9127. (getFastSet): New function.
  9128. (isInFastSet): New function.
  9129. (countFastSet): New function.
  9130. * src/Peer.cc
  9131. (isInFastSet): New function.
  9132. (addFastSetIndex): New function.
  9133. (setAllBitfield): New function.
  9134. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  9135. sockets.
  9136. * src/PeerAbstractCommand.cc
  9137. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  9138. and uploadLimit.
  9139. (execute): Changed the procedure of checking sockets. The upload speed
  9140. checking were added.
  9141. (setUploadLimit): New function.
  9142. (setUploadLimitCheck): New function.
  9143. * src/PeerAbstractCommand.h
  9144. (setUploadLimit): New function.
  9145. (setUploadLimitCheck): New function.
  9146. (uploadLimit): New variable.
  9147. (uploadLimitCheck): New variable.
  9148. To contact a tracker regularly:
  9149. * src/TrackerWatcherCommand.h (interval): New variable.
  9150. (checkPoint): New variable.
  9151. (TrackerWatcherCommand): Added interval argument.
  9152. * src/TrackerWatcherCommand.cc
  9153. (TrackerWatcherCommand): Initialized checkPoint.
  9154. (execute): Now a tracker is contacted in every specified period.
  9155. If peer list is not needed, send request with numwant=0.
  9156. * src/TrackerUpdateCommand.cc
  9157. (execute): Updated log messages.
  9158. * src/DownloadEngine.cc
  9159. (~DownloadEngine): Removed two asserts.
  9160. (waitData): Uncommented wfds. May be a bug fix.
  9161. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. * src/PeerInteractionCommand.h
  9163. (checkInactiveConnection): Removed.
  9164. * src/PeerInteractionCommand.cc
  9165. (executeInternal): Removed following function calls:
  9166. detectMessageFlooding(), checkLongTimePeerChoking and
  9167. checkInactiveConnection().
  9168. (checkInactiveConnection): Removed.
  9169. (detectMessageFlooding): Removed function call to
  9170. checkInactiveConnection().
  9171. * src/PeerMessageUtil.h
  9172. (createChokeMessage): New function. Overload.
  9173. (createUnchokeMessage): New function. Overload.
  9174. (createInterestedMessage): New function. Overload.
  9175. (createNotInterestedMessage): New function. Overload.
  9176. (createHaveMessage): New function. Overload.
  9177. (createBitfieldMessage): New function. Overload.
  9178. (createRequestMessage): New function. Overload.
  9179. (createCancelMessage): New function. Overload.
  9180. (createPieceMessage): New function. Overload.
  9181. (createKeepAliveMessage): New function. Overload.
  9182. * src/PeerMessageUtil.cc
  9183. (createChokeMessage): New function. Overload.
  9184. (createUnchokeMessage): New function. Overload.
  9185. (createInterestedMessage): New function. Overload.
  9186. (createNotInterestedMessage): New function. Overload.
  9187. (createHaveMessage): New function. Overload.
  9188. (createBitfieldMessage): New function. Overload.
  9189. (createRequestMessage): New function. Overload.
  9190. (createCancelMessage): New function. Overload.
  9191. (createPieceMessage): New function. Overload.
  9192. (createKeepAliveMessage): New function. Overload.
  9193. * src/SendMessageQueue.cc
  9194. (createRequestMessage): Use PeerMessageUtil.
  9195. (createCancelMessage): Use PeerMessageUtil.
  9196. (createPieceMessage): Use PeerMessageUtil.
  9197. (createHaveMessage): Use PeerMessageUtil.
  9198. (createChokeMessage): Use PeerMessageUtil.
  9199. (createUnchokeMessage): Use PeerMessageUtil.
  9200. (createInterestedMessage): Use PeerMessageUtil.
  9201. (createNotInterestedMessage): Use PeerMessageUtil.
  9202. (createBitfieldMessage): Use PeerMessageUtil.
  9203. (createKeepAliveMessage): Use PeerMessageUtil.
  9204. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  9205. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  9206. * src/PeerInteraction.h: New class.
  9207. * src/PeerInteraction.cc: New class.
  9208. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Each peer message has its own class.
  9210. * src/PendingMessages.h: Removed.
  9211. * src/PendingMessages.cc: Removed. The sending process was moved to
  9212. each message class.
  9213. * src/RequestSlotMan.h: Removed.
  9214. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  9215. SendMessageQueue.
  9216. * src/RequestMessage.h: New class.
  9217. * src/RequestMessage.cc: New class.
  9218. * src/CancelMessage.h: New class.
  9219. * src/CancelMessage.cc: New class.
  9220. * src/BitfieldMessage.h: New class.
  9221. * src/BitfieldMessage.cc: New class.
  9222. * src/ChokeMessage.h: New class.
  9223. * src/ChokeMessage.cc: New class.
  9224. * src/KeepAliveMessage.h: New class.
  9225. * src/KeepAliveMessage.cc: New class.
  9226. * src/PortMessage.h: New class.
  9227. * src/UnchokeMessage.h: New class.
  9228. * src/UnchokeMessage.cc: New class.
  9229. * src/PieceMessage.h: New class.
  9230. * src/PieceMessage.cc: New class.
  9231. * src/HaveMessage.h: New class.
  9232. * src/HaveMessage.cc: New class.
  9233. * src/BitfieldMessage.h: New class.
  9234. * src/BitfieldMessage.cc: New class.
  9235. * src/NotInterestedMessage.h: New class.
  9236. * src/NotInterestedMessage.cc: New class.
  9237. * src/InterestedMessage.h: New class.
  9238. * src/InterestedMessage.cc: New class.
  9239. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  9240. (getSendMessageQueue): New function.
  9241. (setSendMessageQueue): New function.
  9242. * src/HandshakeMessage.cc: New class.
  9243. * src/PeerConnection.h (receiveMessage): Changed return value and
  9244. arguments.
  9245. (receiveHandshake): Changed return value and arguments.
  9246. * src/PeerConnection.cc (receiveMessage): Do not create message class
  9247. here.
  9248. (receiveHandshake): Do not create handshake class here.
  9249. * src/PeerInteractionCommand.h (peerConnection): Removed.
  9250. (piece): Removed.
  9251. (syncPiece): Removed.
  9252. (sendInterest): Removed.
  9253. (sendMessages): Removed.
  9254. (createRequestPendingMessage): Removed.
  9255. (checkPieceHash): Removed.
  9256. (erasePieceOnDisk): Removed.
  9257. (getNewPieceAndSendInterest): Removed.
  9258. (onGotNewPice): Removed.
  9259. (onGotWrongPiece): Removed.
  9260. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  9261. Removed peerConnection, piece.
  9262. (~PeerInteractionCommand): Removed peerConnection.
  9263. (executeInternal): Use sendMessageQueue instead of peerConnection.
  9264. (syncPiece): Moved to SendMessageQueue.
  9265. (decideChoking): Removed PendingMessage.
  9266. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  9267. The action after receiving peer message was moved to each message
  9268. class.
  9269. (onGotNewPice): Moved to SendMessageQueue.
  9270. (onGotWrongPiece): Moved to SendMessageQueue.
  9271. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  9272. (sendInterest): Moved to SendMessageQueue.
  9273. (createRequestPendingMessage): Removed.
  9274. (sendMessages): Moved to SendMessageQueue.
  9275. (onAbort): Use SendMessageQueue::abortPiece()
  9276. (keepAlive): Use sendMessageQueue instead of peerConnection.
  9277. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  9278. (checkPieceHash): Moved to SendMessageQueue.
  9279. (erasePieceOnDisk): Moved to SendMessageQueue.
  9280. * src/PeerMessageUtil.h
  9281. (createBitfieldMessage): Removed.
  9282. (createHaveMessage): Changed return value and arguments.
  9283. (createBitfieldMessage): Changed return value and arguments.
  9284. (createRequestCancelMessage): Removed.
  9285. (createPieceMessage): Changed return value and arguments.
  9286. (getShortIntParam): New function.
  9287. (checkIndex): Changed arguments.
  9288. (checkBegin): Changed arguments.
  9289. (checkLength): Changed arguments.
  9290. (checkPieceOffset): Removed.
  9291. (checkRange): New function.
  9292. (checkBitfield): Changed arguments.
  9293. (createPeerMessage): Removed.
  9294. (checkIntegrity): Removed.
  9295. (createHandshakeMessage): Changed arguments.
  9296. (createChokeMessage): New function.
  9297. (createUnchokeMessage): New function.
  9298. (createInterestedMessage): New function.
  9299. (createNotInterestedMessage): New function.
  9300. (createRequestMessage): New function.
  9301. (createCancelMessage): New function.
  9302. (createPortMessage): New function.
  9303. * src/PeerMessageUtil.cc
  9304. (createBitfieldMessage): Removed.
  9305. (createHaveMessage): Changed return value and arguments.
  9306. (createBitfieldMessage): Changed return value and arguments.
  9307. (createRequestCancelMessage): Removed.
  9308. (createPieceMessage): Changed return value and arguments.
  9309. (getShortIntParam): New function.
  9310. (checkIndex): Changed arguments.
  9311. (checkBegin): Changed arguments.
  9312. (checkLength): Changed arguments.
  9313. (checkPieceOffset): Removed.
  9314. (checkRange): New function.
  9315. (checkBitfield): Changed arguments.
  9316. (createPeerMessage): Removed.
  9317. (checkIntegrity): Removed.
  9318. (createHandshakeMessage): Changed arguments.
  9319. (createChokeMessage): New function.
  9320. (createUnchokeMessage): New function.
  9321. (createInterestedMessage): New function.
  9322. (createNotInterestedMessage): New function.
  9323. (createRequestMessage): New function.
  9324. (createCancelMessage): New function.
  9325. (createPortMessage): New function.
  9326. * src/PeerMessage.h
  9327. (id): Removed.
  9328. (index): Removed.
  9329. (begin): Removed.
  9330. (length): Removed.
  9331. (bitfield): Removed.
  9332. (bitfieldLength): Removed.
  9333. (block): Removed.
  9334. (blockLength): Removed.
  9335. (inProgress): New variable.
  9336. (cuid): New variable.
  9337. (peer): New variable.
  9338. (sendMessageQueue): New variable.
  9339. (logger): New variable.
  9340. (setBitfield): Removed.
  9341. (getBitfield): Removed.
  9342. (setBlock): Removed.
  9343. (getBlock): Removed.
  9344. (getBitfieldLength): Removed.
  9345. (getBlockLength): Removed.
  9346. (isInProgress): New function.
  9347. (toString): Made pure virtual.
  9348. (check): New function.
  9349. (send): New function.
  9350. (receivedAction): New function.
  9351. (getId): Made pure virtual.
  9352. (setId): Removed.
  9353. (getIndex): Removed.
  9354. (setIndex): Removed.
  9355. (getBegin): Removed.
  9356. (setBegin): Removed.
  9357. (getLength): Removed.
  9358. (setLength): Removed.
  9359. (getCuid): New function.
  9360. (setCuid): New function.
  9361. (getPeer): New function.
  9362. (setPeer): New function.
  9363. (getSendMessageQueue): New function.
  9364. (setSendMessageQueue): New function.
  9365. (ID): Removed.
  9366. * src/PeerMessage.cc
  9367. (setBitfield): Removed.
  9368. (setBlock): Removed.
  9369. (toString): Removed.
  9370. * src/TorrentMan.h
  9371. (getPieceLength): New function.
  9372. (getPieceLength): New function.
  9373. * src/SendMessageQueue.h
  9374. (REQUEST_TIME_OUT): New definition.
  9375. (RequestSlots): New definition.
  9376. (MessageQueue): New definition.
  9377. (requestSlotMan): Removed.
  9378. (pendingMessages): Removed.
  9379. (requestSlots): New variable.
  9380. (messageQueue): New variable.
  9381. (torrentMan): New variable.
  9382. (peerConnection): New variable.
  9383. (peer): New variable.
  9384. (piece): New variable.
  9385. (getNewPieceAndSendInterest): New function.
  9386. (createPeerMessage): New function.
  9387. (createHandshakeMessage): New function.
  9388. (send): Made private.
  9389. (setPeerMessageCommonProperty): New function.
  9390. (deleteAllRequestSlot): New function.
  9391. (deleteRequestMessageInQueue): New function.
  9392. (cancelAllRequest): Made private.
  9393. (cancelAllRequest): Made private.
  9394. (countRequestSlot): Made private.
  9395. (addPendingMessage): Removed.
  9396. (deletePendingPieceMessage): Removed.
  9397. (deletePendingRequestMessage): Removed.
  9398. (addMessage): New function.
  9399. (deletePieceMessageInQueue): New function.
  9400. (deleteTimeoutRequestSlot): Changed argument.
  9401. (deleteCompletedRequestSlot): Changed argument.
  9402. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  9403. (getCorrespondingRequestSlot): New function.
  9404. (countPendingMessage): Removed.
  9405. (countMessageInQueue): New function.
  9406. (getTorrentMan): New function.
  9407. (getPeerConnection): New function.
  9408. (hasDownloadPiece): New function.
  9409. (getDownloadPiece): New function.
  9410. (setDownloadPiece): New function.
  9411. (syncPiece): New function.
  9412. (sendMessages): New function.
  9413. (sendNow): New function.
  9414. (trySendNow): New function.
  9415. (abortPiece): New function.
  9416. (sendHandshake): New function.
  9417. (receiveMessage): New function.
  9418. (receiveHandshake): New function.
  9419. (createRequestMessage): New function.
  9420. (createCancelMessage): New function.
  9421. (createPieceMessage): New function.
  9422. (createHaveMessage): New function.
  9423. (createChokeMessage): New function.
  9424. (createUnchokeMessage): New function.
  9425. (createInterestedMessage): New function.
  9426. (createNotInterestedMessage): New function.
  9427. (createBitfieldMessage): New function.
  9428. (createKeepAliveMessage): New function.
  9429. * src/SendMessageQueue.cc
  9430. (SendMessageQueue): Removed requestSlotMan.
  9431. Instantiated peerConnection here.
  9432. (~SendMessageQueue): Removed requestSlotMan.
  9433. Added deletion of peerConnection and the contents of messageQueue.
  9434. (send): Updated according to the change of messageQueue.
  9435. (addPendingMessage): Renamed to addMessage.
  9436. (addMessage): New function.
  9437. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  9438. (deletePieceMessageInQueue): New function.
  9439. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  9440. (deleteRequestMessageInQueue): New function.
  9441. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  9442. here.
  9443. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  9444. (...) was moved here.
  9445. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  9446. moved here.
  9447. (deleteCompletedRequestSlot):
  9448. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  9449. (getCorrespondingRequestSlot):
  9450. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  9451. And renamed to getCorrespondingRequestSlot, correcting a typo.
  9452. (countPendingMessage): Renamed to countMessageInQueue.
  9453. (countMessageInQueue): New function.
  9454. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  9455. (receiveHandshake): New function.
  9456. (createHandshakeMessage): New function.
  9457. (receiveMessage): New function.
  9458. (createPeerMessage): New function.
  9459. (syncPiece): New function.
  9460. (getNewPieceAndSendInterest): New function.
  9461. (sendMessages): New function.
  9462. (sendNow): New function.
  9463. (trySendNow): New function.
  9464. (sendHandshake): New function.
  9465. (abortPiece): New function.
  9466. (getDownloadPiece): New function.
  9467. (getPeerMessageCommonProperty): New function.
  9468. (createRequestMessage): New function.
  9469. (createCancelMessage): New function.
  9470. (createPieceMessage): New function.
  9471. (createHaveMessage): New function.
  9472. (createChokeMessage): New function.
  9473. (createUnchokeMessage): New function.
  9474. (createInterestedMessage): New function.
  9475. (createNotInterestedMessage): New function.
  9476. (createBitfieldMessage): New function.
  9477. (createKeepAliveMessage): New function.
  9478. To add simple Content-Disposition support:
  9479. * src/HttpResponseCommand.h (determinFilename): New function.
  9480. * src/HttpResponseCommand.cc (executeInternal):
  9481. Use determinFilename(headers) instead of req->getFile() when comparing
  9482. filename.
  9483. (determinFilename): New function.
  9484. (handleDefaultEncoding): Use determinFilename(headers) instead of
  9485. req->getFile().
  9486. (handleOtherEncoding): Use determinFilename(headers) instead of
  9487. req->getFile().
  9488. * src/Util.h (getContentDispositionFilename): New function.
  9489. * src/Util.cc (getContentDispositionFilename): New function.
  9490. * src/LogFactory.h (release): New function.
  9491. * src/LogFactory.cc (release): New function.
  9492. To fix a bug that causes out-of-bound exception when HTTP status
  9493. line is wrong:
  9494. * src/HttpConnection.cc (receiveResponse): Added a check for header
  9495. size.
  9496. * src/common.h (Deleter): New class.
  9497. * src/SegmentMan.cc
  9498. (~SegmentMan): Added deletion of splitter and diskWriter.
  9499. * src/DownloadEngine.h
  9500. (Commands): Use deque.
  9501. (clearQueue): New function.
  9502. * src/DownloadEngine.cc
  9503. (~DownloadEngine): Added deletion of segmentMan.
  9504. (cleanQueue): New function.
  9505. * src/TorrentDownloadEngine.h
  9506. (TorrentDownloadEngine): The implementation was moved to
  9507. TorrentDownloadEngine.cc.
  9508. (~TorrentDownloadEngine): The implementation was moved to
  9509. TorrentDownloadEngine.cc.
  9510. * src/TorrentDownloadEngine.cc
  9511. (~TorrentDownloadEngine): Added deletion of torrentMan.
  9512. * src/main.cc
  9513. (clearRequest): Removed.
  9514. (handler): Added deletion of e.
  9515. (torrentHandler): Added deletion of te.
  9516. (main): Do not share splitter.
  9517. Use Deleter instead of clearRequest.
  9518. Deletion of classes were updated.
  9519. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. * src/main.cc (main): Fixed typo.
  9521. * src/message.h: Fixed typo.
  9522. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  9523. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. To add --select-file command-line option:
  9525. * src/Util.cc
  9526. (unfoldRange): New function.
  9527. (getNum): New function.
  9528. (unfoldSubRange): New function
  9529. * src/main.cc
  9530. (showUsage): Added help message.
  9531. (main): Added --select-file command-line option. Updated the layout of
  9532. file listing.
  9533. * src/common.h
  9534. (Integers): New definition.
  9535. * src/SocketCore.cc
  9536. (writeData): Removed timeout argument.
  9537. (readData): Removed timeout argument.
  9538. (peekData): Removed timeout argument.
  9539. * src/Socket.cc
  9540. (writeData): Removed timeout argument.
  9541. (readData): Removed timeout argument.
  9542. (peekData): Removed timeout argument.
  9543. * Release 0.4.1
  9544. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. To deploy upload rate based choking algorithm:
  9546. * src/PeerInteractionCommand.cc
  9547. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  9548. peer currently used.
  9549. (decideChoking): Deleted the choke/unchoke decision algorithm when
  9550. download completes. Simplified.
  9551. (receiveMessage): Updated.
  9552. * src/TorrentMan.h
  9553. (activePeers): New variable.
  9554. (addActivePeer): New function.
  9555. (getActivePeers): New function.
  9556. (deleteActivePeer): New function.
  9557. * src/TorrentMan.cc
  9558. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  9559. * src/PeerAbstractCommand.cc
  9560. (onAbort): Use peer->resetStatus().
  9561. * src/main.cc
  9562. (PeerChokeCommand.h): Included.
  9563. (main): Added the instance of ChokingCommand to the command queue.
  9564. * src/Peer.h
  9565. (amChoking): Renamed from amChocking
  9566. (chokingRequired): New variable.
  9567. (optUnchoking): New variable.
  9568. (deltaUpload): New variable.
  9569. (deltaDownload): New variable.
  9570. (addDeltaUpload): New function.
  9571. (resetDeltaUpload): New function.
  9572. (addDeltaDownload): New function.
  9573. (resetDeltaDownload): New function.
  9574. (addPeerUpload): Added a call to addDeltaUpload.
  9575. (addPeerDownload): Added a call to addDeltaDownload.
  9576. * src/Peer.cc
  9577. (shouldBeChoking): Renamed from shouldChoke.
  9578. (resetStatus): New function.
  9579. * src/PeerChokeCommand.h: New class.
  9580. * src/PeerChokeCommand.cc: New class.
  9581. To add lazy upload speed limiter:
  9582. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  9583. statistics calculation to TorrentDownloadEngine.
  9584. * src/TorrentConsoleDownloadEngine.cc
  9585. (sendStatistics): Renamed from printStatistics.
  9586. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  9587. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  9588. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  9589. * src/TorrentDownloadEngine.h: Added the variables for statistics
  9590. calculation.
  9591. (sendStatistics): New function as pure virtual function.
  9592. (getUploadSpeed): New function.
  9593. * src/TorrentDownloadEngine.cc
  9594. (initStatistics): New function.
  9595. (calculateSpeed): New function.
  9596. (calculateStatistics): New function.
  9597. * src/SendMessageQueue.h
  9598. (uploadLength): New variable.
  9599. (send): Added an argument.
  9600. (setUploadLimit): New function.
  9601. (getUploadLimit): New function.
  9602. * src/SendMessageQueue.cc
  9603. (send): Added upload speed limiter.
  9604. * src/prefs.h
  9605. (PREF_UPLOAD_LIMIT): New definition.
  9606. * src/PeerInteractionCommand.cc
  9607. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  9608. * src/main.cc
  9609. (main): Added --upload-limit option
  9610. For bug fixes:
  9611. * src/main.cc
  9612. (showUsage): Corrected --listen-port help
  9613. Other changes:
  9614. * src/TorrentMan.cc
  9615. (getPeer): Return nullPeer if connection is grather than
  9616. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  9617. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. To add some useful information to the exception message:
  9619. * src/SocketCore.cc : Updated messages.
  9620. * src/SegmentMan.cc :
  9621. * src/TorrentMan.cc : Updated messages.
  9622. * src/MultiDiskWriter.cc : Updated messages.
  9623. * src/Util.cc : Updated messages.
  9624. * src/AbstractDiskWriter.cc : Updated messages.
  9625. * src/PreAllocationDiskWriter.cc : Updated messages.
  9626. * src/message.cc : Added new messages. Updated some messages.
  9627. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  9628. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  9629. Updated threshold from 30 to 15.
  9630. * src/AbstractDiskWriter.h (filename): New variable.
  9631. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  9632. (createFile): Assigned filename.
  9633. * src/main.cc: Updated the help message for http-auth-scheme.
  9634. * Release 0.4.0
  9635. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. To add TrackerUpdateCommand with which replaces
  9637. CompactTrackerResponseProcessor:
  9638. * src/TrackerWatcherCommand.h (req): Removed.
  9639. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  9640. if the number of peer connections are less than 30.
  9641. * src/ByteArrayDiskWriter.h (readData): Implemented.
  9642. * src/SegmentMan.h (diskWriter): New function.
  9643. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  9644. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  9645. (main): Use TrackerUpdateCommand.
  9646. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  9647. (req): New variable.
  9648. (setTrackerResponseProcessor): Removed.
  9649. (getTrackerResponseProcessor): Removed.
  9650. (processTrackerResponse): Removed.
  9651. * src/DownloadEngine.h (diskWriter): Removed.
  9652. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  9653. to torrentMan->processTrackerResponse().
  9654. To add Util::expandBuffer:
  9655. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  9656. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  9657. * src/Util.h (expandBuffer): New function.
  9658. To fix the bug that causes segmentation fault when "-l ." is specified
  9659. in command-line option:
  9660. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  9661. (openFile): New function.
  9662. (closeFile): New function.
  9663. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  9664. (~SimpleLogger): Call closeFile();
  9665. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  9666. * src/main.cc (main): Added a check to see logger is configured
  9667. properly.
  9668. To enable HTTP authentication without specifying "--http-auth-scheme"
  9669. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  9670. * src/HttpConnection.cc (createRequest): Send Authorization header
  9671. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  9672. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  9673. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  9674. * src/Peer.cc (shouldChoke): Updated algorithm.
  9675. * src/message.h (EX_AUTH_FAILED): New definition.
  9676. (EX_FILE_OPEN): New definition.
  9677. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  9678. if status == 401.
  9679. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  9680. if req->isTorrent == true.
  9681. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  9682. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  9683. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  9684. (createFile): Updated message.
  9685. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. To add a readout of estimated remaining time to normal HTTP/FTP
  9687. downloads:
  9688. * src/ConsoleDownloadEngine.h (startup): New variable.
  9689. (startupLength): New variable.
  9690. (isStartupLengthSet): New variable.
  9691. (avgSpeed): New variable.
  9692. (eta): New variable.
  9693. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  9694. estimated remaining time.
  9695. (initStatistics): Initialized newly added variables.
  9696. (calculateStatistics): Calculate average speed and estimated remaining
  9697. time.
  9698. To decouple TorrentDownloadEngine from HttpResponseCommand:
  9699. * src/TrackerDownloadCommand.h: Removed.
  9700. * src/TrackerDownloadCommand.cc: Removed.
  9701. * src/TrackerInitCommand.h: Removed.
  9702. * src/TrackerInitCommand.cc: Removed.
  9703. * src/TrackerUpdateCommand.h: Removed.
  9704. * src/TrackerUpdateCommand.cc: Removed.
  9705. * src/TrackerWatcherCommand.cc (execute): The construction of request
  9706. url written in TrackerInitCommand was moved here. Do not create
  9707. tracker request command if torrentMan->trackers != 0.
  9708. * src/CompactTrackerResponseProcessor.h: New class.
  9709. * src/CompactTrackerResponseProcessor.cc: New class.
  9710. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  9711. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  9712. Decoupled TorrentDownloadEngine from this.
  9713. * src/SegmentMan.h (init): New function.
  9714. * src/SegmentMan.cc (init): New function.
  9715. * src/TorrentMan.h (responseProcessor): New variable.
  9716. (trackers): New variable.
  9717. (setTrackerResponseProcessor): New function.
  9718. (getTrackerResponseProcessor): New function.
  9719. (processTrackerResponse): New function.
  9720. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  9721. (processTrackerResponse): New function.
  9722. * src/main.cc (main): Use ByteArrayDiskWriter and
  9723. CompactTrackerResponseProcessor.
  9724. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  9725. processTrackerResponse().
  9726. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  9727. readout.
  9728. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  9729. which indicates download has completed.
  9730. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  9731. (closeFile): fd >= 0, not fd > 0
  9732. * src/main.cc (main): Added short cut for show-files.
  9733. Added short cut for torrent-file.
  9734. Added new command-line option listen-port.
  9735. Updated i18n messages.
  9736. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. To add LogFactory which creates singleton logger:
  9738. * src/LogFactory.h: New class.
  9739. * src/LogFactory.cc: New class.
  9740. * src/Command.h (logger): New variable.
  9741. (Constructor): Use LogFactory.
  9742. * src/AbstractCommand.cc: Use Command::logger
  9743. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  9744. Use LogFactory.
  9745. * src/SegmentSplitter.h : Made logger protected.
  9746. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  9747. * src/SegmentMan.cc (Constructor): Use LogFactory.
  9748. * src/DownloadEngine.h : Made logger protected.
  9749. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  9750. * src/PeerInteractionCommand.cc : Use Command::logger.
  9751. * src/HttpResponseCommand.cc : Use Command::logger.
  9752. * src/SegmentMan.h : Made logger private.
  9753. * src/TorrentMan.h : Made logger private.
  9754. * src/TorrentMan.cc : Use LogFactory.
  9755. * src/FtpNegotiateCommand.cc : Use Command::logger.
  9756. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  9757. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  9758. Use LogFactory.
  9759. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  9760. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  9761. Use LogFactory.
  9762. * src/DownloadCommand.cc : Use Command::logger.
  9763. * src/PeerAbstractCommand.cc : Use Command::logger.
  9764. * src/PeerListenCommand.cc : Use Command::logger.
  9765. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  9766. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  9767. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  9768. * src/TrackerWatcherCommand.cc : Use Command::logger.
  9769. * src/TrackerUpdateCommand.cc : Use Command::logger.
  9770. * src/TrackerDownloadCommand.cc : Use Command::logger.
  9771. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  9772. Use LogFactory.
  9773. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  9774. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  9775. Use LogFactory.
  9776. * src/main.cc (main): Use LogFactory.
  9777. * src/DiskAdaptor.h (logger): New variable.
  9778. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  9779. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  9780. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9781. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  9782. parameter to a tracker request.
  9783. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  9784. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  9785. * src/main.cc (setSignalHander): New function.
  9786. (main): Added a handler for SIGTERM.
  9787. (handler): Updated message.
  9788. (torrentHandler): Updated message.
  9789. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. * src/TorrentConsoleDownloadEngine.cc
  9791. (onPartialDownloadingCompletes): Renamed as
  9792. onSelectiveDownloadingCompletes.
  9793. (onSelectiveDownloadingCompletes): Updated message.
  9794. To add DiskAdaptor which abstract DiskWriter family:
  9795. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  9796. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  9797. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  9798. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  9799. MultiDiskAdaptor.h.
  9800. (readFileEntry): Changed its arguments.
  9801. (setup): setupDiskWriter is merged into this function.
  9802. (setupDiskWriter): Removed.
  9803. (setFileFilter): New function.
  9804. (readFileEntryFromMetaInfoFile): Updated according to the changes
  9805. made in readFileEntry.
  9806. (getFilePath): Removed.
  9807. (getTempFilePath): Removed.
  9808. (getSegmentFilePath): Updated due to the removal of getFilePath.
  9809. (fixFilename): Removed.
  9810. (copySingleFile): Removed.
  9811. (splitMultiFile): Removed.
  9812. (deleteTempFile): Removed.
  9813. (setFileEntriesToDownload): Removed.
  9814. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  9815. (isSelectiveDownloadingMode): New function.
  9816. (setAllMultiFileRequestedState): Removed.
  9817. (finishPartialDownloadingMode): Renamed as
  9818. finishSelectiveDownloadingMode.
  9819. (finishSelectiveDownloadingMode): New function.
  9820. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  9821. (getSelectedTotalLength): New function.
  9822. (onDownloadComplete): Use diskAdaptor.
  9823. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  9824. (Range): Removed.
  9825. (setMultiFileEntries): Renamed as setFileEntries.
  9826. (setFileEntries): New function.
  9827. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  9828. (pieceLength): New variable.
  9829. * src/main.cc (printDownloadCompeleteMessage): New function.
  9830. (torrentHandler): Use diskAdaptor instead of diskWriter.
  9831. (main): Renamed torrent-show-files to show-files.
  9832. Rewritten file contents listing.
  9833. * src/TorrentMan.h (FileEntry): Removed.
  9834. (multiFileTopDir): Removed.
  9835. (multiFileEntries): Removed.
  9836. (diskWriter): Removed.
  9837. (diskAdaptor): New variable.
  9838. * src/DefaultDiskWriter.h (totalLength): New variable.
  9839. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  9840. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  9841. diskWriter.
  9842. * src/TorrentConsoleDownloadEngine.h
  9843. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  9844. (partialTotalLength): Renamed as selectedTotalLength.
  9845. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  9846. openExistingFile, otherwise call initAndOpenFile.
  9847. (closeFile): fd > 0, not fd != 0.
  9848. * src/DirectDiskAdaptor.h: New class.
  9849. * src/DirectDiskAdaptor.cc: New class.
  9850. * src/MultiDiskAdaptor.h: New class.
  9851. * src/MultiDiskAdaptor.cc: New class.
  9852. * src/CopyDiskAdaptor.h: New class.
  9853. * src/CopyDiskAdaptor.cc: New class.
  9854. * src/DiskAdaptor.h: New class.
  9855. * src/DiskAdaptor.cc: New class.
  9856. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  9857. (PREF_SHOW_FILES): New definition.
  9858. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. To add the ability to download multi torrent into respective files
  9860. directly:
  9861. * src/DiskWriter.h (openFile): New function.
  9862. (seek): Removed.
  9863. * src/MultiDiskWriter.h: New class.
  9864. * src/MultiDiskWriter.cc: New class.
  9865. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  9866. protected.
  9867. (openFile): New function.
  9868. * src/AbstractDiskWriter.cc (openFile): New function.
  9869. * src/prefs.h (V_FALSE): New definition.
  9870. (PREF_DIRECT_FILE_MAPPING): New definition.
  9871. * src/TorrentMan.h (setupDiskWriter): New function.
  9872. (setAllMultiFileRequestedState): New function.
  9873. (onDownloadComplete): New function.
  9874. * src/TorrentMan.cc : Included MultiDiskWriter.h
  9875. (setupDiskWriter): New function.
  9876. (getFilePath): Updated.
  9877. (getTempFilePath): Updated.
  9878. (getSegmentFilePath): Updated.
  9879. (fixFilename): Updated.
  9880. (deleteTempFile): Updated.
  9881. (setAllMultiFileRequestedState): New function.
  9882. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  9883. (finishPartialDownloadingMode): Reset requested flags.
  9884. (onDownloadComplete): New function.
  9885. * src/main.cc: Added --direct-file-mapping option.
  9886. Use TorrentMan::setupDiskWriter().
  9887. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  9888. onDownloadComplete().
  9889. To fix ETA bug:
  9890. * src/Util.h (difftvsec): New function.
  9891. * src/Util.cc (difftvsec): New function.
  9892. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  9893. type of "elapsed" instead of long long int.
  9894. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  9895. The updates of statistics takes place every 1 seconds.
  9896. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  9897. (calculateSpeed): Changed its argument signature.
  9898. * src/PeerMessage.cc (toString): Fixed message.
  9899. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. To print ETA:
  9901. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  9902. completion handling when dealing with
  9903. TorrentMan::isPartialDownloadingMode() == true.
  9904. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  9905. New function.
  9906. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  9907. (sessionDownloadLength): New variable.
  9908. (avgSpeed): New variable.
  9909. (eta): New variable.
  9910. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  9911. new variables: eta, avgSpeed, startup.
  9912. (calculateSpeed): Calculate average speed and ETA.
  9913. (printStatistics): Added ETA.
  9914. * src/Util.h (secfmt): New function.
  9915. * src/Util.cc (secfmt): New function.
  9916. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9917. To detect "keep alive" flooding:
  9918. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  9919. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  9920. variable: keepAliveCount.
  9921. (detectMessageFlooding): Added "keep alive" flooding detection.
  9922. (receiveMessage): Increase keepAliveCount when "keep alive" message
  9923. received.
  9924. To add the ability to download only specified files in multi-file
  9925. torrent:
  9926. * src/BitfieldMan.h (filterBitfield): New variable.
  9927. (filterEnabled): New variable.
  9928. (setFilterBit): New function.
  9929. (enableFilter): New function.
  9930. (disableFilter): New function.
  9931. (isFilterEnabled): New function.
  9932. (getFilteredTotalLength): New function.
  9933. (getCompletedLength): New function.
  9934. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  9935. filterBitfield, filterEnabled.
  9936. (CopyConstructor): Added filterBitfield and filterEnabled.
  9937. (operator==): Added filterBitfield and filterEnabled.
  9938. (Destructor): Added filterBitfield.
  9939. (getMissingIndex): Use filterBitfield.
  9940. (getMissingUnusedIndex): Use filterBitfield.
  9941. (getFirstMissingUnusedIndex): Use filterBitfield.
  9942. (getFirstMissingUnusedIndex): Use filterBitfield.
  9943. (getAllMissingIndexes): Use filterBitfield.
  9944. (countMissingBlock): Use filterBitfield.
  9945. (countBlock): Use filterBitfield.
  9946. (setBitInternal): Added new argument on.
  9947. (setUseBit): Use setBitInternal.
  9948. (unsetUseBit): Use setBitInternal.
  9949. (setBit): Use setBitInternal.
  9950. (unsetBit): Use setBitInternal.
  9951. (isAllBitSet): Use filterBitfield.
  9952. (setFilterBit): New function.
  9953. (addFilter): New function.
  9954. (enableFilter): New function.
  9955. (disableFilter): New function.
  9956. (clearFilter): New function.
  9957. (isFilterEnabled): New function.
  9958. (getFilteredTotalLength): New function.
  9959. (getCompletedLength): New function.
  9960. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  9961. Initalized newly added variables.
  9962. [FileEntry](offset): New variable.
  9963. [FileEntry](extracted): New variable.
  9964. [FileEntry](requested): New variable.
  9965. (readFileEntry): New function.
  9966. (option): New variable.
  9967. (splitMultiFile): Removed const qualifier.
  9968. (fixFilename): Removed const qualifier.
  9969. (readFileEntryFromMetaInfoFile): New function.
  9970. (finishPartialDownloadingMode): New function.
  9971. (isPartialDownloadingMode): New function.
  9972. (setFileEntriesToDownload): New function.
  9973. (getCompletedLength): New function.
  9974. (getPartialTotalLength): New function.
  9975. * src/TorrentMan.cc (readFileEntry): New function.
  9976. (setup): Use readFileEntry. If no-preallocation option is specified,
  9977. use DefaultDiskWriter.
  9978. (readFileEntryFromMetaInfoFile): New function.
  9979. (fixFilename): Removed const qualifier.
  9980. (splitMultiFile): Removed const qualifier.
  9981. (setFileEntriesToDownload): New function.
  9982. (isPartialDownloadingMode): New function.
  9983. (finishPartialDownloadingMode): New function.
  9984. (getCompletedLength): New function.
  9985. (getPartialTotalLength): New function.
  9986. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  9987. New variable.
  9988. (partialTotalLength): New variable.
  9989. (downloadLength): New variable.
  9990. (totalLength): New variable.
  9991. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  9992. Added log.
  9993. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  9994. partialTotalLength, downloadLength, totalLength.
  9995. (calculate): Calculate downloadLength and totalLength.
  9996. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  9997. * src/main.cc (addCommand): Changed argument signature.
  9998. (main): Added new variable: args. Added new option "torrent-show-files"
  9999. "no-preallocation". Usage is not updated yet.
  10000. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10001. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  10002. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10003. Attempt to add the ability to listing file entries in a .torrent file.
  10004. This feature is not yet complete.
  10005. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  10006. * src/TorrentMan.cc (getMultiFileEntries): New function.
  10007. (getName): New function.
  10008. * src/TorrentMan.h (getMultiFileEntries): New function.
  10009. (getName): New function.
  10010. * src/main.cc (main): Use above 2 funtion.
  10011. * Release 0.3.2
  10012. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  10014. (detectMessageFlooding): Updated threshold value.
  10015. (checkLongTimePeerChoking): Updated timeout value.
  10016. (getNewPieceAndSendInterest): Added debug log.
  10017. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  10018. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  10019. (getPeer): Updated.
  10020. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  10021. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  10022. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  10023. is localhost.
  10024. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  10025. * src/PendingMessage.cc (processMessage): Not to send piece message
  10026. if peer is not interested in the pieces localhost has.
  10027. * src/Peer.cc (shouldChoke): Updated.
  10028. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  10029. * src/Util.cc (isPowerOf): New function.
  10030. * src/Util.h (isPowerOf): New function.
  10031. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  10032. whether or not it is power of 2.
  10033. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10034. Added new class SendMessageQueue that includes PendingMessages and
  10035. RequestSlotMan.
  10036. * src/SendMessageQueue.h: New class.
  10037. * src/SendMessageQueue.cc: New class.
  10038. * src/PendingMessage.h: Added new member variable blockIndex and its
  10039. accessors.
  10040. (createRequestMessage): Updated.
  10041. * src/PendingMessage.cc (createRequestMessage): Updated.
  10042. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  10043. SendMessageQueue.
  10044. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  10045. (receiveMessage): Updated with SendMessageQueue.
  10046. (deletePendingPieceMessage): Removed.
  10047. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  10048. (sendInterest): Updated with SendMessageQueue.
  10049. (createRequestPendingMessage): Updated with SendMessageQueue.
  10050. (sendMessages): Updated with SendMessageQueue.
  10051. (onAbort): Updated with SendMessageQueue.
  10052. (keepAlive): Updated with SendMessageQueue.
  10053. (beforeSocketCheck): Updated SendMessageQueue.
  10054. * src/PeerInteractionCommand (sendMessages): Shuffle
  10055. missingBLockIndexes before using it.
  10056. Added its own timeout for peer connection.
  10057. * src/PeerAbstractCommand.h: Added member variable timeout and its
  10058. setter.
  10059. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  10060. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10061. Added setTimeout() call.
  10062. (executeInternal): Added setTimeout() call.
  10063. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  10064. Added timeout.
  10065. (isTimeoutDetected): Updated.
  10066. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  10067. option.
  10068. Added *simple* message flooding checker.
  10069. * src/PeerInteractionCommand.cc (executeInternal):
  10070. Added detectMessageFlooding() call.
  10071. (detectMessageFlooding): New function.
  10072. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  10073. (beforeSocketCheck): Added detectMessageFlooding() call.
  10074. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  10075. chokeUnchokeCount, haveCount, detectMessageFlooding().
  10076. Removed deletePendingPieceMessage(), getRequestSlot(),
  10077. deleteRequestSlot(), deleteAllRequestSlot().
  10078. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  10079. Added checkLongTimePeerChoking() call.
  10080. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  10081. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  10082. if duplicate == false.
  10083. The parameter "uploaded" and "downloaded" in the tracker request are
  10084. the size since the client sent the "started" event to the tracker.
  10085. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  10086. uploaded size to preDownloadedSize, preUploadedSize respectively.
  10087. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  10088. getSessionDownloadedSize(), getSessionUploadedSize().
  10089. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  10090. getSessionUploadedSize() instead of getDownloadedSize(),
  10091. getUploadedSize().
  10092. * src/PendingMessage.cc (processMessage): Do not send request message
  10093. if the peer is choking the client.
  10094. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  10095. less than interval.
  10096. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10097. * configure.in: Added gnutls support. Added several CPP macros.
  10098. * m4/openssl.m4: Added.
  10099. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  10100. readData(), peekData(). Added gnutls support.
  10101. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  10102. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  10103. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  10104. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10105. Instead, added a check for whether setup method has executed
  10106. successfully.
  10107. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  10108. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  10109. * src/Makefile.am: Updated.
  10110. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  10111. using whether OpenSSL or gcrypt, depending on the result of configure
  10112. script.
  10113. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  10114. messageDigest.h.
  10115. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  10116. * src/PeerListenCommand.cc: Added log about port binded successfully.
  10117. Fixed memory leak.
  10118. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  10119. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  10120. Removed instantiation of TrackerInitCommand. Instead,
  10121. TrackerWatcherCommand is instantiated and pushed to the command queue.
  10122. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  10123. ENABLE_SSL.
  10124. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  10125. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  10126. If a piece is already acquired by another command, delete the request
  10127. slots for the piece.
  10128. * src/TrackerUpdateCommand.cc (execute):
  10129. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  10130. Added a check whether peer list is null.
  10131. Fixed the bug that causes sending completed event to the tracker
  10132. several times.
  10133. * src/TrackerInitCommand.cc (execute):
  10134. Fixed the bug that causes sending completed event to the tracker
  10135. several times.
  10136. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  10137. by using messageDigest.h.
  10138. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. * PeerConnection.cc: Replaced log message "keep-alive" with
  10140. "keep alive".
  10141. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  10142. localhost long time.
  10143. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  10144. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  10145. at most 100 failure entry from the list. If with duplicate = false,
  10146. MAX_PEER_LIST is not checked.
  10147. * PeerListenCommand.cc: Fixed the argument order of log message.
  10148. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  10150. Added warn().
  10151. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  10152. Implemented warn().
  10153. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  10154. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. * Request.h: Added AFTER_COMPLETED event.
  10156. * TorrentDownloadEngine.cc: Prints "Download complete" message
  10157. instead of downloaded size and progress(%) after download completes.
  10158. * PeerInteractionCommand.cc: After download completes, sends unchoke
  10159. message to the peer if it is interested in what localhost has
  10160. downloaded.
  10161. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  10162. destination instead of just renaming it.
  10163. * TorrentMan.cc: Added deleteTempFile().
  10164. * PeerAbstractCommand.cc: do not stop execution after download
  10165. completes. This makes localhost a seeder.
  10166. * Util.{h,cc}: Added fileCopy().
  10167. * PeerListenCommand.cc: do not stop execution after download completes.
  10168. This makes localhost a seeder.
  10169. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  10170. Added TorrentMan::deleteTempFile() to torrentHandler.
  10171. Initialized the variable dir as ".".
  10172. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  10173. Deleted renameSingleFile().
  10174. Added copySingleFile(), deleteTempFile().
  10175. * DownloadEngine.h: Added virtual function afterEachIteration().
  10176. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  10177. in onEndOfRun() to afterEachIteration().
  10178. In onEndOfRun(), changed if condition to check whether filenameFixed is
  10179. true.
  10180. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  10181. In rangedFileCopy(), added try-catch block to properly close file
  10182. descriptors.
  10183. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  10184. Added afterEachIteration(), isFilenameFixed().
  10185. * Peer.cc: Changed choking strategy.
  10186. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  10187. * TrackerInitCommand.cc: Send completed event only once.
  10188. * DownloadEngine.cc: Added a call to afterEachIteration().
  10189. * TrackerUpdateCommand.cc: Do not stop execution after download
  10190. completes.
  10191. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  10192. connect the peers at most MAX_PEER_UPDATE when a peer list is
  10193. received from a tracker.
  10194. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  10195. Decreased the number of failure peers to delete to 0(just comment out
  10196. the line).
  10197. * Release 0.3.1
  10198. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. * PeerInteractionCommand.cc: added a call to
  10200. TorrentMan::unadvertisePiece in Destructor.
  10201. * PeerInteractionCommand.cc: make have message sent immediately
  10202. if the size of pending message queue is zero.
  10203. * TorrentMan.cc: set the maximum size of peer list to 250.
  10204. * TorrentMan.h: changed the container type of Peers and UsedPieces
  10205. to deque.
  10206. * Util.cc: fixed rangedFileCopy.
  10207. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  10208. to Constructor. Also, moved digest cleanup to Destructor.
  10209. * MetaFileUtil.cc: fixed memory leak
  10210. * replaced std::vector with std::deque.
  10211. * AbstractCommand.cc: casted timeout value to long long int.
  10212. * ChunkedEncoding.cc: fixed memory leak.
  10213. * PeerInteractionCommand.cc: casted timeout value to long long int.
  10214. * SleepCommand.cc: casted timeout value to long long int.
  10215. * Data.cc: fixed memory leak.
  10216. * Data.cc: fixed toLLInt().
  10217. * BitfieldMan.cc: fixed memory leak.
  10218. * TorrentMan.cc: initialized storeDir to ".".
  10219. * TorrentMan.cc: fixed memory leak.
  10220. * TorrentMan.cc: corrected file paths of splitted files.
  10221. * PeerAbstractCommand.cc: casted timeout to long long int.
  10222. * main.cc: added delete(req) and delete(te->diskWriter).
  10223. * RequestSlot.cc: casted timeout value to long long int.
  10224. * Request.cc: fixed memory leak.
  10225. * PendingMessage.cc: make HAVE messages sent only when peer does not
  10226. have the piece.
  10227. * Peer.{h,cc}: added hasPiece(int index).
  10228. * main.cc: corrected addCommand.
  10229. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10230. * BitTorrent protocol support added.
  10231. * Release 0.3.0
  10232. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10233. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  10234. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  10236. decoding did not work properly.
  10237. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10238. * DownloadEngine.h: included sys/time.h
  10239. * DownloadEngine.cc: remove sys/time.h
  10240. * Makefile.am (SUBDIRS): Add intl.
  10241. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  10242. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10243. * main.cc: correct help message for --http-auth-scheme.
  10244. * main.cc: changed e-mail address for bug reports.
  10245. * ja.po: added japanese translation.
  10246. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. * SimpleLogger.cc: flush log file instead of stdout.
  10248. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. * main.cc: Fixed command-line option: max-tries
  10250. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  10251. does not equal to seg.sp.
  10252. * DownloadCommand.cc: If EOF is got from the server and the total size
  10253. of file is not zero, then throw DlRetryEx.
  10254. * main.cc: Set the minium value of min-segment-size to 1024.
  10255. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  10256. fails because of a regression since 0.2.0 release.
  10257. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10258. * HttpConnection.cc:
  10259. * common.h: defined the user agent name as macro
  10260. * DownloadEngine.{h, cc}:
  10261. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  10262. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  10263. * main.cc: Download complete/abort message is now generated by main.
  10264. * Makefile.am (SUBDIRS): Add m4.
  10265. (ACLOCAL_AMFLAGS): New variable.
  10266. (EXTRA_DIST): New variable.
  10267. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  10268. * gettext: added gettext functionality
  10269. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10270. * AbstractCommand.cc:
  10271. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  10272. unregister its cuid from SegmentMan.
  10273. * DownloadEngine.cc: .aria2 file was written when a downloading
  10274. failed with errors.
  10275. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  10276. Added "User-Agent" header to CONNECT proxy request.
  10277. Fixed "Proxy-Authorization" header. Now proxy authorization works
  10278. properly.
  10279. * Logger.h:
  10280. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  10281. * ChunkedEncoding.cc: Added #include directive for strings.h
  10282. * Release 0.2.1
  10283. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. * Util.{h,cc}: added startsWith().
  10285. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  10286. Util::endsWith().
  10287. * SocketCore.cc: struct addrinfo is now zero-initialized.
  10288. * common.h: added #include directive of limit.h.
  10289. * DownloadEngine.cc: added #include directive of sys/time.h and
  10290. algorithm.
  10291. * Exception.h: added #include directive of stdio.h.
  10292. * AbstractCommand.h: added #include directive of sys/time.h.
  10293. * DownloadCommand.h: added #include directive of sys/time.h.
  10294. * *.h: added #include directive of common.h to all base classes.
  10295. subclasses' one was removed.
  10296. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  10297. does not define these macros.
  10298. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10299. * Release 0.2.0
  10300. * main.cc:
  10301. * HttpInitiateConnectionCommand.{h,cc}:
  10302. * prefs.h:
  10303. * HttpConnection.{h,cc}: added --http-proxy-method option.
  10304. We can now use GET command in http proxy.
  10305. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  10307. that splits slowest segment of SegmentMan::commands vector.
  10308. This is the default split algorithm of aria2.
  10309. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  10310. that splits first segment of SegmentMan::commands vector.
  10311. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  10312. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  10313. * Segment.h:
  10314. * SegmentMan.cc: Added speed field to Segment.h
  10315. * main.cc: -s option now affects all URLs in command-line arguemtns.
  10316. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  10317. * message.h: Change file size related %d to %lld.
  10318. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. * FtpInitiateConnectionCommand.{h,cc}:
  10320. * FtpNegotiationCommand.{h,cc}:
  10321. * FtpDownloadCommand.{h,cc}:
  10322. * FtpConnection.{h,cc}: Added FTP support
  10323. * SimpleLogger.cc: Log message now includes time information.
  10324. * main.cc: The value of --http-auth-scheme option is chagned from
  10325. 'BASIC' to 'basic'
  10326. * main.cc: Added --timeout command-line option.
  10327. * main.cc: Added --min-segment-size command-line option.
  10328. * main.cc: Added --max-retries command-line option.
  10329. * prefs.h: option string constants are now defined in prefs.h
  10330. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  10332. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  10333. with version 0.1.0's one.
  10334. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. * configure.in: Added --enable-ssl option to configure script.
  10336. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  10337. cannot permit absoluteURI as Request-URI.
  10338. * HttpConnection.cc: Added Referer support.
  10339. * main.cc: Added referer command-line option.
  10340. * main.cc: Added rety-wait command-line option.
  10341. * Exception.h: Fixed formating bug in Exception::setMsg()
  10342. * SocketCore.{h,cc}:
  10343. * Socket.{h, cc}:
  10344. * Request.cc:
  10345. * InitiateConnectionCommandFactory.cc:
  10346. * HttpRequestCommand.cc: Added HTTPS support.
  10347. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  10348. for SocketCore.
  10349. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  10350. size is wrong
  10351. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  10352. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  10353. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  10354. * Release 0.1.0