ChangeLog 413 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762
  1. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Use non-blocking socket for TCP communication to avoid possible
  3. blocking due to buffer full.
  4. * src/AbstractProxyRequestCommand.cc
  5. * src/FtpConnection.cc
  6. * src/FtpConnection.h
  7. * src/FtpNegotiationCommand.cc
  8. * src/FtpNegotiationCommand.h
  9. * src/HttpConnection.cc
  10. * src/HttpConnection.h
  11. * src/HttpRequestCommand.cc
  12. * src/InitiatorMSEHandshakeCommand.cc
  13. * src/InitiatorMSEHandshakeCommand.h
  14. * src/MSEHandshake.cc
  15. * src/MSEHandshake.h
  16. * src/Makefile.am
  17. * src/PeerConnection.cc
  18. * src/PeerConnection.h
  19. * src/PeerInteractionCommand.cc
  20. * src/PeerListenCommand.cc
  21. * src/ReceiverMSEHandshakeCommand.cc
  22. * src/ReceiverMSEHandshakeCommand.h
  23. * src/SocketBuffer.cc
  24. * src/SocketBuffer.h
  25. * src/SocketCore.cc
  26. * src/SocketCore.h
  27. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  28. Call setStatusRealtime() in constructor.
  29. * src/RealtimeCommand.cc
  30. * src/RealtimeCommand.h
  31. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  32. Call Download::setNoWait(true) to execute newly created command without
  33. a pause.
  34. * src/AbstractCommand.cc
  35. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  36. Added --max-file-not-found=NUM option. If aria2 receives `file not
  37. found' error from HTTP/FTP server NUM times without getting single
  38. bytes of data, then force the download to fail.
  39. Basically aria2 tris all URIs available. So if long list of URIs are
  40. specified in Metalink, then aria2 will take a long time to fail
  41. eventually if all URIs are outdated. This option eases this situation
  42. to limit the number of servers to try.
  43. * src/FtpNegotiationCommand.cc
  44. * src/HelpItemFactory.cc
  45. * src/HttpResponseCommand.cc
  46. * src/OptionHandlerFactory.cc
  47. * src/PeerStat.h
  48. * src/RequestGroup.cc
  49. * src/RequestGroup.h
  50. * src/SegmentMan.cc
  51. * src/SegmentMan.h
  52. * src/option_processing.cc
  53. * src/prefs.cc
  54. * src/prefs.h
  55. * src/usage_text.h
  56. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  57. Fixed the bug that bulkReceiveResponse() reads all received data as a
  58. response even if more than one response is in it.
  59. * src/FtpConnection.cc
  60. * src/FtpConnection.h
  61. * test/FtpConnectionTest.cc
  62. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  63. Merged from stable-0.15
  64. * m4/libcares.m4
  65. Use pkg-config
  66. * m4/sqlite3.m4
  67. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  68. Removed unnecessary if statement.
  69. * src/DefaultPieceStorage.cc (initPieceStorage)
  70. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  71. Added --connect-timeout option to specify connect timeout in seconds.
  72. This option is in effect for HTTP/FTP/proxy server. The timeout for
  73. connecting to BitTorrent peer is not controlled by this option.
  74. * src/AbstractProxyRequestCommand.cc
  75. * src/FtpNegotiationCommand.cc
  76. * src/HelpItemFactory.cc
  77. * src/HttpRequestCommand.cc
  78. * src/OptionHandlerFactory.cc
  79. * src/option_processing.cc
  80. * src/prefs.cc
  81. * src/prefs.h
  82. * src/usage_text.h
  83. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  84. Added help message for -R option.
  85. * src/HelpItemFactory.cc
  86. * src/usage_text.h
  87. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  88. Added the message that the time is in local time zone.
  89. * src/RequestGroup.cc
  90. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  91. Implemented the ability to get timestamp from remote FTP server using
  92. MDTM command described in RFC3659.
  93. * src/FtpConnection.cc
  94. * src/FtpConnection.h
  95. * src/FtpNegotiationCommand.cc
  96. * src/FtpNegotiationCommand.h
  97. * test/FtpConnectionTest.cc
  98. * test/Makefile.am
  99. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  100. Implemented the ability to get timestamp from remote HTTP server and
  101. apply it to local file. To enable this feature, --remote-time option
  102. is added. No usage text has been written yet.
  103. If several servers returns difference timestamp, then aria2 uses latest
  104. one.
  105. * src/CopyDiskAdaptor.cc
  106. * src/CopyDiskAdaptor.h
  107. * src/DirectDiskAdaptor.cc
  108. * src/DirectDiskAdaptor.h
  109. * src/DiskAdaptor.h
  110. * src/File.cc
  111. * src/File.h
  112. * src/HttpHeader.cc
  113. * src/HttpHeader.h
  114. * src/HttpResponse.cc
  115. * src/HttpResponse.h
  116. * src/HttpResponseCommand.cc
  117. * src/HttpResponseCommand.h
  118. * src/MultiDiskAdaptor.cc
  119. * src/MultiDiskAdaptor.h
  120. * src/OptionHandlerFactory.cc
  121. * src/RequestGroup.cc
  122. * src/RequestGroup.h
  123. * src/RequestGroupMan.cc
  124. * src/option_processing.cc
  125. * src/prefs.cc
  126. * src/prefs.h
  127. * test/CopyDiskAdaptorTest.cc
  128. * test/FileTest.cc
  129. * test/Makefile.am
  130. * test/Makefile.in
  131. * test/MultiDiskAdaptorTest.cc
  132. * test/TestUtil.cc
  133. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  134. Fixed the bug that DiskWriterEntry is not created when its
  135. FileEntry.isRequested() is false and it doesn't share a piece with
  136. other FileEntries that are requested. This bug causes segmentation fault
  137. in the end.
  138. * src/MultiDiskAdaptor.cc
  139. * src/MultiDiskAdaptor.h
  140. * src/MultiFileAllocationIterator.cc
  141. * test/MultiDiskAdaptorTest.cc
  142. * test/MultiFileAllocationIteratorTest.cc
  143. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  144. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  145. called if the number of file entries are greater than max open files.
  146. * src/AbstractSingleDiskAdaptor.cc
  147. * src/AbstractSingleDiskAdaptor.h
  148. * src/DiskAdaptor.h
  149. * src/MultiDiskAdaptor.cc
  150. * src/MultiDiskAdaptor.h
  151. * test/MultiDiskAdaptorTest.cc
  152. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  153. Added a constuctor that receives struct timeval.
  154. Added operator<.
  155. * src/TimeA2.cc
  156. * src/TimeA2.h
  157. * test/TimeTest.cc
  158. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  159. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  160. * src/CookieParser.cc
  161. * test/CookieParserTest.cc
  162. * test/HttpResponseTest.cc
  163. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  164. Implmented the functions to parse date.
  165. * src/TimeA2.cc
  166. * src/TimeA2.h
  167. * test/TimeTest.cc
  168. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  169. Added "Firefox3 Cookie" feature to FeatureConfig
  170. * src/FeatureConfig.cc
  171. * src/FeatureConfig.h
  172. * test/FeatureConfigTest.cc
  173. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  174. Bump up version number to 0.16.0b
  175. * configure.ac
  176. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  177. Use pkg-config if is is available.
  178. * m4/openssl.m4
  179. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  180. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  181. * src/BtAnnounce.h
  182. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  183. If an error occurred with a URI, remove identical URI from remaining
  184. URI list because it is likely that same error occurred in the end and it
  185. is waste of time.
  186. * src/AbstractCommand.cc
  187. * src/RequestGroup.cc
  188. * src/RequestGroup.h
  189. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  190. Removed wrong comment.
  191. * src/DefaultPeerStorage.cc
  192. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  193. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  194. Added return value of getpid() to argument of srand() to achieve more
  195. randomized value.
  196. * src/SimpleRandomizer.cc
  197. * src/SimpleRandomizer.h
  198. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  199. Contact tracker frequently when the number of connections are 0 and
  200. download is not finished yet.
  201. * src/ActivePeerConnectionCommand.cc
  202. * src/BtAnnounce.h
  203. * src/DefaultBtAnnounce.cc
  204. * src/DefaultBtAnnounce.h
  205. * test/MockBtAnnounce.h
  206. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  207. Moved threshold values to UTPexExtensionMessage.
  208. * src/DefaultBtInteractive.cc
  209. * src/Peer.cc
  210. * src/Peer.h
  211. * src/UTPexExtensionMessage.cc
  212. * src/UTPexExtensionMessage.h
  213. * test/UTPexExtensionMessageTest.cc
  214. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  215. Added _incoming member to Peer class and made it true if the peer
  216. initiated connection. Don't add those peer to UTPex message.
  217. If extended handshake is received, assign _incoming to false.
  218. * src/DefaultBtInteractive.cc
  219. * src/HandshakeExtensionMessage.cc
  220. * src/Peer.cc
  221. * src/Peer.h
  222. * src/PeerListenCommand.cc
  223. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  224. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  225. Encoding Decoder. Removed size threshold for turning off on the fly
  226. inflation because resulting file may or may not be inflated depending
  227. on the file size and I think it is not expected by users.
  228. This change fixes segmentation fault when Metalink file contains gzipped
  229. file and its filesize is provided.
  230. * src/HttpResponseCommand.cc
  231. * src/HttpResponseCommand.h
  232. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  233. Made Cookie immutable.
  234. * src/Cookie.cc
  235. * src/Cookie.h
  236. * src/CookieParser.cc
  237. * src/CookieParser.h
  238. * src/CookieStorage.cc
  239. * test/CookieParserTest.cc
  240. * test/CookieStorageTest.cc
  241. * test/NsCookieParserTest.cc
  242. * test/Sqlite3MozCookieParserTest.cc
  243. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  244. Removed CookieBox, CookieBoxFactory.
  245. * src/CookieBox.cc
  246. * src/CookieBox.h
  247. * src/CookieBoxFactory.cc
  248. * src/CookieBoxFactory.h
  249. * src/Makefile.am
  250. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  251. Use CookieStorage class instead of CookieBox class.
  252. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  253. * src/AbstractProxyRequestCommand.cc
  254. * src/CookieStorage.cc
  255. * src/DownloadEngine.cc
  256. * src/DownloadEngine.h
  257. * src/HttpConnection.cc
  258. * src/HttpConnection.h
  259. * src/HttpRequest.cc
  260. * src/HttpRequest.h
  261. * src/HttpRequestCommand.cc
  262. * src/HttpResponse.cc
  263. * src/HttpResponseCommand.cc
  264. * src/HttpSkipResponseCommand.cc
  265. * src/Makefile.am
  266. * src/MultiUrlRequestInfo.cc
  267. * src/Request.cc
  268. * src/Request.h
  269. * src/main.cc
  270. * test/AllTest.cc
  271. * test/CookieStorageTest.cc
  272. * test/CookieTest.cc
  273. * test/HttpRequestTest.cc
  274. * test/HttpResponseTest.cc
  275. * test/Makefile.am
  276. * test/NsCookieParserTest.cc
  277. * test/Sqlite3MozCookieParserTest.cc
  278. * test/nscookietest.txt
  279. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  280. Updated
  281. * test/Cookies.sqlite
  282. * test/nscookietest.txt
  283. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  284. Added tests for CookieStorage::load()
  285. * test/CookieStorageTest.cc
  286. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  287. Added CookieStorage class which is based on RFC2109 and manages cookies
  288. more strictly than CookieBox and CookieBoxFactory class.
  289. * src/CookieStorage.cc
  290. * src/CookieStorage.h
  291. * src/Cookie.cc
  292. * src/Cookie.h
  293. * test/CookieStorageTest.cc
  294. * test/CookieTest.cc
  295. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  296. Fixed the bug that commands are created more than the number of pieces.
  297. * src/RequestGroup.cc
  298. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  299. Fixed infinite loop bug in FTP when SIZE command failed.
  300. * src/FtpNegotiationCommand.cc
  301. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  302. Removed DirectDiskAdaptorTest.h
  303. * test/Makefile.am
  304. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  305. Fixed chunk checksum validation cannot detect trailing garbage data.
  306. BUG#2074141
  307. * src/AbstractSingleDiskAdaptor.cc
  308. * src/AbstractSingleDiskAdaptor.h
  309. * src/CheckIntegrityEntry.cc
  310. * src/CheckIntegrityEntry.h
  311. * src/DiskAdaptor.h
  312. * src/MultiDiskAdaptor.cc
  313. * src/MultiDiskAdaptor.h
  314. * src/RequestGroup.cc
  315. * test/DirectDiskAdaptorTest.cc
  316. * test/MultiDiskAdaptorTest.cc
  317. * test/TestUtil.cc
  318. * test/TestUtil.h
  319. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  320. Bump up version number of dht.dat file to 3. In version 3 format, time
  321. is stored in 64bit, network byte order.
  322. New build can load old format(version 2) but it saves the file in new
  323. format. It means once you used new build, your dht.dat becomes
  324. incompatible with older build.
  325. * src/DHTRoutingTableDeserializer.cc
  326. * src/DHTRoutingTableSerializer.cc
  327. * test/DHTRoutingTableSerializerTest.cc
  328. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  329. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  330. * test/Makefile.am
  331. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  332. Bump up version number of .aria2 control file to 0001.
  333. New aria2 can still load version 0000 file but it saves the file in
  334. version 0001 format. It means that new aria2 can resume download
  335. started by old aria2 but the opposite is not true.
  336. * src/DefaultBtProgressInfoFile.cc
  337. * src/DefaultBtProgressInfoFile.h
  338. * test/DefaultBtProgressInfoFileTest.cc
  339. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  340. Added ntoh64 and hton64 as inline functions.
  341. * src/Util.cc
  342. * test/UtilTest.cc
  343. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  344. Added sqlite3 depenency and Firefox3 cookie support.
  345. * README
  346. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  347. State that firefox3 cookie is supported explicitly in the usage.
  348. * src/usage_text.h
  349. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  350. Externalized message.
  351. * src/RequestGroupMan.cc
  352. * src/message.h
  353. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  354. Save temporary file first and rename to the destination on success.
  355. Added test cases.
  356. * src/RequestGroupMan.cc
  357. * test/RequestGroupManTest.cc
  358. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  359. Fixed the bug that the number of connected peer is exceeding the limit
  360. (55 by default) in seeding mode.
  361. Multiplied 0.8 to _maxUploadSpeedLimit.
  362. * src/ActivePeerConnectionCommand.cc
  363. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  364. Clear table item.
  365. * src/Dictionary.cc
  366. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  367. Fixed error handling of lseek.
  368. * src/AbstractDiskWriter.cc
  369. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  370. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  371. style cookie file.
  372. * src/usage_text.h
  373. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  374. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  375. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  376. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  377. * src/Util.cc
  378. * src/Util.h
  379. * src/CookieParser.cc
  380. * test/UtilTest.cc
  381. * test/CookieParserTest.cc
  382. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  383. Separate the implementation to load old mozilla format of cookie to
  384. NsCookieParser class.
  385. * src/CookieBoxFactory.cc
  386. * src/CookieBoxFactory.h
  387. * src/NsCookieParser.cc
  388. * src/NsCookieParser.h
  389. * test/NsCookieParserTest.cc
  390. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  391. Made parse() const
  392. * src/Sqlite3MozCookieParser.cc
  393. * src/Sqlite3MozCookieParser.h
  394. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  395. Added firefox3 cookie support based on the patch submitted by
  396. tizianomueller.
  397. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  398. this functionality.
  399. * configure.ac
  400. * m4/sqlite3.m4
  401. * src/CookieBoxFactory.cc
  402. * src/CookieBoxFactory.h
  403. * src/Makefile.am
  404. * src/Makefile.in
  405. * src/Sqlite3MozCookieParser.cc
  406. * src/Sqlite3MozCookieParser.h
  407. * src/main.cc
  408. * test/CookieBoxFactoryTest.cc
  409. * test/Makefile.am
  410. * test/Makefile.in
  411. * test/Sqlite3MozCookieParserTest.cc
  412. * test/badcookies.sqlite
  413. * test/cookies.sqlite
  414. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  415. Added Danish and Greek translations.
  416. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  417. Great thanks to all translators.
  418. * po/LINGUAS
  419. * po/el.po
  420. * po/da.po
  421. * po/es.po
  422. * po/ca.po
  423. * po/nn.po
  424. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  425. Fixed man page: --follow-bittorrent should be --follow-torrent
  426. * doc/aria2c.1.txt
  427. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  428. Fixed: numCommand is less than the value specified in -C option.
  429. * src/RequestGroup.cc
  430. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  431. Fixed occasional assertion failure in PieceSegment.
  432. Calling PieceStorage::getMissingPiece(size_t) was missing after
  433. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  434. creation of duplicate segments and one of the segment was finished then
  435. assertion failure was caused.
  436. * src/SegmentMan.cc
  437. * test/SegmentManTest.cc
  438. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  439. Added options to load/save the server's performance/status to a file
  440. and the timeout to drop their data.
  441. --server-stat-of=FILE specifies the file to which performance data
  442. is saved.
  443. --server-stat-if=FILE specifies the file to read previously saved
  444. by --server-stat-of option. Might be used with --uri-selector=feedback.
  445. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  446. TIMEOUT is specified in seconds and the default value is 24hours.
  447. * src/MultiUrlRequestInfo.cc
  448. * src/OptionHandlerFactory.cc
  449. * src/RequestGroupMan.cc
  450. * src/RequestGroupMan.h
  451. * src/ServerStatMan.cc
  452. * src/ServerStatMan.h
  453. * src/option_processing.cc
  454. * src/prefs.cc
  455. * src/prefs.h
  456. * test/ServerStatManTest.cc
  457. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  458. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  459. * src/ServerStatMan.cc
  460. * src/ServerStatMan.h
  461. * test/ServerStatManTest.cc
  462. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  463. Implemented ServerStatMan::load(...) function and its test case.
  464. * src/ServerStat.cc
  465. * src/ServerStat.h
  466. * src/ServerStatMan.cc
  467. * test/ServerStatManTest.cc
  468. * test/ServerStatTest.cc
  469. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  470. Use time_t instead of int32_t. Use int64_t where milli second is
  471. expected.
  472. * src/TimeA2.cc
  473. * src/TimeA2.h
  474. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  475. Implemented ServerStatMan::save(...) function and its test case.
  476. * src/ServerStat.cc
  477. * src/ServerStat.h
  478. * src/ServerStatMan.cc
  479. * src/ServerStatMan.h
  480. * test/ServerStatManTest.cc
  481. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  482. Now aria2 uses name attribute in Metalink as local filename in
  483. BitTorrent downloads. BUG#2033999
  484. * src/BtContext.h
  485. * src/BtDependency.cc
  486. * src/DefaultBtContext.cc
  487. * src/DefaultBtContext.h
  488. * src/SingleFileDownloadContext.cc
  489. * src/SingleFileDownloadContext.h
  490. * test/BtDependencyTest.cc
  491. * test/DefaultBtContextTest.cc
  492. * test/MockBtContext.h
  493. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  494. Added AC_C_BIGENDIAN
  495. * src/configure.ac
  496. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  497. Limited numCommand less than or equal to the number of piece.
  498. * src/RequestGroup.cc
  499. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  500. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  501. directive.
  502. * test/DefaultPieceStorageTest.cc
  503. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  504. Fixed memory leak in test code
  505. * test/AnnounceListTest.cc
  506. * test/DefaultPeerListProcessorTest.cc
  507. * test/DefaultPeerStorageTest.cc
  508. * test/MetaFileUtilTest.cc
  509. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  510. Fixed wrong argument passing to BitfieldMan::isBitSet()
  511. * src/DefaultPieceStorage.cc
  512. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  513. Initialized _directIOAllowed
  514. * src/MultiDiskAdaptor.cc
  515. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  516. Fixed memory leak
  517. * src/GZipDecoder.cc
  518. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  519. Fixed memory leak
  520. * src/MetalinkParserStateMachine.cc
  521. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  522. Fixed memory leak
  523. * src/Dictionary.cc
  524. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  525. Fixed memory leak
  526. * src/IteratableChunkChecksumValidator.h
  527. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  528. Fixed unmatched malloc/free.
  529. * src/IteratableChunkChecksumValidator.cc
  530. * src/IteratableChecksumValidator.cc
  531. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  532. Removed max chunk size check. This change fixes BUG#2040169
  533. * src/ChunkedDecoder.cc
  534. * src/ChunkedDecoder.h
  535. * test/ChunkedDecoderTest.cc
  536. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  537. Implemented download speed based URI selection algorithm.
  538. Introduced new option --uri-selector.
  539. If --uri-selector=feedback is given, aria2 uses download speed observed
  540. in the previous downloads and chooses fastest server in the URI list.
  541. Currently at most 10 URIs are considered to introduce randomeness for
  542. finding better servers. The speed is average download speed in the
  543. downloads.
  544. On the other hand, if --uri-selector=inorder is given, which is default,
  545. URI is tried in order in URI list.
  546. The usage text for the new option has not been written yet.
  547. * src/AbstractCommand.cc
  548. * src/DownloadCommand.cc
  549. * src/DownloadEngine.cc
  550. * src/DownloadEngineFactory.cc
  551. * src/InOrderURISelector.cc
  552. * src/InOrderURISelector.h
  553. * src/OptionHandlerFactory.cc
  554. * src/PeerStat.h
  555. * src/RequestGroup.cc
  556. * src/RequestGroup.h
  557. * src/RequestGroupMan.cc
  558. * src/RequestGroupMan.h
  559. * src/SegmentMan.cc
  560. * src/SegmentMan.h
  561. * src/ServerStat.cc
  562. * src/ServerStat.h
  563. * src/ServerStatMan.cc
  564. * src/ServerStatMan.h
  565. * src/ServerStatURISelector.cc
  566. * src/ServerStatURISelector.h
  567. * src/URISelector.h
  568. * src/option_processing.cc
  569. * src/prefs.cc
  570. * src/prefs.h
  571. * test/InOrderURISelectorTest.cc
  572. * test/RequestGroupManTest.cc
  573. * test/ServerStatManTest.cc
  574. * test/ServerStatURISelectorTest.cc
  575. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  576. * Release 0.15.1+2
  577. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  578. Bump up version number to 0.15.1+2
  579. * configure.ac
  580. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  581. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  582. * m4/aria2_arg.m4
  583. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  584. * Release 0.15.1+1
  585. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  586. Bump up version number to 0.15.1+1
  587. * configure.ac
  588. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  589. Fixed the bug that causes segmentaion fault when resuming download
  590. using metalink without size tag. Reproducible only using HTTP URI.
  591. * src/HttpResponseCommand.cc
  592. * src/FtpNegotiationCommand.cc
  593. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  594. * Release 0.15.1
  595. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  596. Updated Bulgarian and French translations, thanks to all translators.
  597. * po/bg.po
  598. * po/fr.po
  599. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  600. Bump up version number to 0.15.1
  601. * configure.ac
  602. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  603. Avoid repeated call of gettimeofday() when calculating speed.
  604. * src/SpeedCalc.cc
  605. * src/SpeedCalc.h
  606. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  607. Removed writable check when socket's send buffer is full in BitTorrent
  608. downloads to lower CPU usage.
  609. * src/PeerInteractionCommand.cc
  610. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  611. Fixed broken gzip inflation.
  612. Turn off segmented downloading if gzip content is smaller than or equal
  613. to 1MiB and inflate the data on the fly, because HTTP response header
  614. doesn't contain the length of inflated file we can't determin where
  615. the chunk of data should be written.
  616. On the other hand, if gzip content is larger than 1MB, then turn off
  617. on the fly inflation, because some servers returns "content-type: gzip"
  618. for *.tgz, *.gz files.
  619. * src/DownloadCommand.cc
  620. * src/HttpResponseCommand.cc
  621. * src/HttpResponseCommand.h
  622. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  623. Applied tizianomueller's patch to fix compile error.
  624. * test/BitfieldManTest.cc
  625. * test/BtRequestMessageTest.cc
  626. * test/DefaultBtContextTest.cc
  627. * test/DefaultDiskWriterTest.cc
  628. * test/DefaultPieceStorageTest.cc
  629. * test/HttpHeaderProcessorTest.cc
  630. * test/HttpResponseTest.cc
  631. * test/Metalink2RequestGroupTest.cc
  632. * test/MetalinkParserControllerTest.cc
  633. * test/MetalinkProcessorTest.cc
  634. * test/PeerSessionResourceTest.cc
  635. * test/UtilTest.cc
  636. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  637. * Release 0.15.0
  638. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  639. Reordered src files in POTFILES.in so that usage text appears first.
  640. * po/POTFILES.in
  641. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  642. Bump up version number to 0.15.0
  643. * configure.ac
  644. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  645. Added Bulgarian translation.
  646. Updated Catalan, Spanish, French and Japanese translations.
  647. Thanks to all translators.
  648. * po/LINGUAS
  649. * po/bg.po
  650. * po/ca.po
  651. * po/es.po
  652. * po/fr.po
  653. * po/ja.po
  654. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  655. Updated feature list. Added libz for dependency section.
  656. Added a description about unit testing using CppUnit.
  657. * README
  658. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  659. Added a test for libz. Quoted where it is necessary.
  660. * build_test.sh
  661. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  662. Added GZip to `Enabled Features' list.
  663. * src/FeatureConfig.cc
  664. * src/FeatureConfig.h
  665. * test/FeatureConfigTest.cc
  666. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  667. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  668. the transfer has not yet started.
  669. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  670. * src/SegmentMan.cc
  671. * src/SegmentMan.h
  672. * test/SegmentManTest.cc
  673. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  674. Cache last calculated average download/upload speed.
  675. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  676. cached value.
  677. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  678. * src/PeerStat.h
  679. * src/SpeedCalc.cc
  680. * src/SpeedCalc.h
  681. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  682. Call parseUrl directly.
  683. * src/Request.cc (resetUrl)
  684. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  685. Supported absolute/relative path in Location header field.
  686. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  687. * src/HttpHeader.cc
  688. * src/HttpHeader.h
  689. * src/HttpResponse.cc
  690. * src/HttpSkipResponseCommand.cc
  691. * src/Request.cc
  692. * test/HttpHeaderTest.cc
  693. * test/HttpResponseTest.cc
  694. * test/RequestTest.cc
  695. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  696. Changed help text for --load-cookie option.
  697. * doc/aria2c.1.txt
  698. * src/usage_text.h
  699. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  700. Regenerated test/Makefile.in to remove stale ChangeLog.
  701. * test/Makefile.in
  702. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  703. Updated po files.
  704. * po/aria2c.pot
  705. * po/*.po
  706. * po/*.gmo
  707. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  708. Bump up version number to 0.15.0b
  709. * configure.ac
  710. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  711. Externalize messages.
  712. * src/RequestGroupMan.cc
  713. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  714. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  715. Use File::exists() instead of File::isFile() to allow non-regular file
  716. such as block special files.
  717. * src/AbstractDiskWriter.cc
  718. * src/MultiDiskWriter.cc
  719. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  720. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  721. * src/gai_strerror.h
  722. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  723. Fixed compile error. Thanks gknauf for the patch.
  724. * src/asctime_r.c
  725. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  726. Included asctime_r.h from a2time.h.
  727. * src/a2time.h
  728. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  729. Added a message "aria2 doesn't verify signature" to log message when
  730. signature file is saved.
  731. * src/RequestGroupMan.cc
  732. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  733. Added the ability to save signature when download is completed if
  734. signature is available. The filename of signature file is the path to
  735. download file followed by ".sig". If it already exists, then signature
  736. will not be saved.
  737. * src/RequestGroupMan.cc
  738. * src/Signature.cc
  739. * test/SignatureTest.cc
  740. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  741. Updated the descriptions for --bt-seed-unverified.
  742. * doc/aria2c.1
  743. * doc/aria2c.1.html
  744. * doc/aria2c.1.txt
  745. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  746. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  747. that this is not going to verify files using piece hashes.
  748. * src/HelpItemFactory.cc
  749. * src/OptionHandlerFactory.cc
  750. * src/RequestGroup.cc
  751. * src/option_processing.cc
  752. * src/prefs.cc
  753. * src/prefs.h
  754. * src/usage_text.h
  755. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  756. Added the ability to retrieve signature from Metalink file.
  757. A retrieved signature is stored in Signature class and it is held by
  758. DownloadContext class. Note that aria2 doesn't verify signature.
  759. * src/DownloadContext.cc
  760. * src/DownloadContext.h
  761. * src/Makefile.am
  762. * src/Makefile.in
  763. * src/Metalink2RequestGroup.cc
  764. * src/MetalinkEntry.cc
  765. * src/MetalinkEntry.h
  766. * src/MetalinkParserController.cc
  767. * src/MetalinkParserController.h
  768. * src/MetalinkParserStateMachine.cc
  769. * src/MetalinkParserStateMachine.h
  770. * src/Signature.cc
  771. * src/Signature.h
  772. * src/SignatureMetalinkParserState.cc
  773. * src/SignatureMetalinkParserState.h
  774. * src/VerificationMetalinkParserState.cc
  775. * src/VerificationMetalinkParserState.h
  776. * test/Metalink2RequestGroupTest.cc
  777. * test/MetalinkParserControllerTest.cc
  778. * test/MetalinkProcessorTest.cc
  779. * test/test.xml
  780. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  781. Close DiskAdaptor after renaming file.
  782. * src/RequestGroup.cc
  783. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  784. Corrected indentation
  785. * src/DefaultBtProgressInfoFile.cc
  786. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  787. Moved the calls of std::ios::exceptions() inside of try-catch block
  788. because if an error occurred in constructor of std::fstream, then
  789. exception is thrown immediately when std::ios::exceptions() is called
  790. which results unhandled exception and aria2c aborts.
  791. * src/DefaultBtProgressInfoFile.cc
  792. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  793. Added the test for the previous change in DefaultBtContext.cc
  794. * test/DefaultBtContextTest.cc
  795. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  796. Fixed the bug that causes infinite loop when the number of pieces are
  797. fewer than allowed fast set size which is 10 by default.
  798. * src/DefaultBtContext.cc
  799. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  800. Updated the descriptions for -j, -s. Added --bt-seed.
  801. * doc/aria2c.1
  802. * doc/aria2c.1.html
  803. * doc/aria2c.1.txt
  804. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  805. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  806. aria2 seeds previously downloaded files without validating piece hashs.
  807. * src/HelpItemFactory.cc
  808. * src/OptionHandlerFactory.cc
  809. * src/RequestGroup.cc
  810. * src/option_processing.cc
  811. * src/prefs.cc
  812. * src/prefs.h
  813. * src/usage_text.h
  814. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  815. Updated DESCRIPTION of man page.
  816. * doc/aria2c.1
  817. * doc/aria2c.1.html
  818. * doc/aria2c.1.txt
  819. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  820. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  821. Don't define `struct addrinfo' when __sun is defined.
  822. * src/getaddrinfo.h
  823. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  824. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  825. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  826. second argument is of type `struct _stati64'. Otherwise it is defined as
  827. `struct stat'.
  828. * src/AbstractDiskWriter.cc
  829. * src/File.cc
  830. * src/File.h
  831. * src/a2io.h
  832. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  833. Fixed the compile error in hurd-i386
  834. See the original bug report:
  835. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  836. * src/a2io.h
  837. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  838. Code cleanup.
  839. * src/PeerAbstractCommand.cc
  840. * src/PeerAbstractCommand.h
  841. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  842. Removed TransferEncoding.
  843. * src/DownloadCommand.cc
  844. * src/DownloadCommand.h
  845. * src/HttpResponseCommand.cc
  846. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  847. Updated po files.
  848. * po/aria2c.pot
  849. * po/*.po
  850. * po/*.gmo
  851. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  852. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  853. * src/A2STR.cc
  854. * src/A2STR.h
  855. * src/ChunkedDecoder.cc
  856. * src/ChunkedDecoder.h
  857. * src/ChunkedEncoding.cc: Removed
  858. * src/ChunkedEncoding.h: Removed
  859. * src/DownloadCommand.cc
  860. * src/DownloadCommand.h
  861. * src/HttpDownloadCommand.cc
  862. * src/HttpResponse.cc
  863. * src/HttpResponse.h
  864. * src/HttpResponseCommand.cc
  865. * src/HttpSkipResponseCommand.cc
  866. * src/HttpSkipResponseCommand.h
  867. * src/Makefile.am
  868. * src/TransferEncoding.h: Removed
  869. * test/ChunkedDecoderTest.cc
  870. * test/ChunkedEncodingTest.cc: Removed
  871. * test/HttpResponseTest.cc
  872. * test/Makefile.am
  873. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  874. Use append instead of insert.
  875. * src/GZipDecoder.cc
  876. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  877. Updated doc
  878. * src/Decoder.h
  879. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  880. Updated usage text for -s option.
  881. * src/usage_text.h
  882. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  883. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  884. * src/Request.cc
  885. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  886. Cleaned up configure.ac.
  887. * configure.ac
  888. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  889. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  890. AC_ARG_ENABLE.
  891. * configure.ac
  892. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  893. Added gzip, deflate decoding support in HTTP using libz. If compiled
  894. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  895. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  896. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  897. fly and writes decoded data to a local disk.
  898. * README
  899. * README.html
  900. * configure.ac
  901. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  902. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  903. * m4/libz.m4
  904. * src/Decoder.h
  905. * src/DownloadCommand.cc
  906. * src/DownloadCommand.h
  907. * src/Exception.h
  908. * src/GZipDecoder.cc
  909. * src/GZipDecoder.h
  910. * src/HttpHeader.cc
  911. * src/HttpHeader.h
  912. * src/HttpRequest.cc
  913. * src/HttpRequest.h
  914. * src/HttpResponse.cc
  915. * src/HttpResponse.h
  916. * src/HttpResponseCommand.cc
  917. * src/Makefile.am
  918. * test/GZipDecoderTest.cc
  919. * test/HttpRequestTest.cc
  920. * test/HttpResponseTest.cc
  921. * test/Makefile.am
  922. * test/Makefile.in
  923. * test/gzip_decode_test.gz
  924. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  925. Clarified usage of -j option.
  926. * src/usage_text.h
  927. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Disabled getting size from the response of RETR.
  929. If SIZE command failed, then disable resuming and segmented downloading.
  930. * src/FtpConnection.cc
  931. * src/FtpConnection.h
  932. * src/FtpNegotiationCommand.cc
  933. * src/FtpNegotiationCommand.h
  934. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  935. Use digits to find first byte of file size, which makes the intention
  936. of the code clearer.
  937. * src/FtpConnection.cc
  938. Don't call validateTotalLength() when size is 0.
  939. * src/FtpNegotiationCommand.cc
  940. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  941. Updated po files.
  942. * po/aria2c.pot
  943. * po/*.gmo
  944. * po/*.po
  945. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  946. Clarified usage text for --split option.
  947. * src/usage_text.h
  948. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  949. Bump up version number to 0.15.0dev. "dev" means "development"
  950. version, which means I started the development of the next release!
  951. * src/configure.ac
  952. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  953. If FTP server returns negative response with REST raw command and
  954. requested range is not 0, throw exception. If requested range is 0,
  955. continue download a file from 0 byte.
  956. * src/FtpNegotiationCommand.cc
  957. * src/FtpNegotiationCommand.h
  958. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  959. Supported FTP server which don't recognize SIZE raw command.
  960. If SIZE raw command is failed, aria2 will try to get file size
  961. from the response of RETR raw command. If both attempts are failed,
  962. then resuming and segmented downloading are disabled.
  963. * src/FtpConnection.cc
  964. * src/FtpConnection.h
  965. * src/FtpNegotiationCommand.cc
  966. * src/FtpNegotiationCommand.h
  967. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  968. * Release 0.14.0+1
  969. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  970. Bump up version number to 0.14.0+1
  971. * src/configure.ac
  972. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  973. Fixed the code that refers static member variable from non-static
  974. context.
  975. * src/DefaultPeerStorage.cc
  976. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  977. * Release 0.14.0
  978. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  979. Added build test script
  980. * build_test.sh
  981. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  982. Updated ja.po
  983. * src/ja.po
  984. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  985. Bump up version number to 0.14.0
  986. * src/configure.ac
  987. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  988. Updated ja.po and fr.po. Great thanks for french translators and
  989. Sebastien WILLEMIJNS.
  990. * po/fr.po
  991. * po/ja.po
  992. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  993. Added configure option to enable/disable epoll support.
  994. * configure.ac
  995. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  996. Updated man page.
  997. * doc/aria2c.1.txt
  998. * doc/aria2c.1
  999. * doc/aria2c.1.html
  1000. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1001. Added missing default value '5' to the usage of --split option.
  1002. * src/HelpItemFactory.cc
  1003. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1004. Filled up pieces based on the number of missing blocks, rather than
  1005. simplay the number of piece * block length.
  1006. * src/BtRequestFactory.h
  1007. * src/DefaultBtInteractive.cc
  1008. * src/DefaultBtInteractive.h
  1009. * src/DefaultBtRequestFactory.cc
  1010. * src/DefaultBtRequestFactory.h
  1011. * src/Piece.cc
  1012. * src/Piece.h
  1013. * test/BitfieldManTest.cc
  1014. * test/DefaultBtRequestFactoryTest.cc
  1015. * test/MockBtRequestFactory.h
  1016. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1017. Made _epEvents a member variable.
  1018. * src/DownloadEngine.cc
  1019. * src/DownloadEngine.h
  1020. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1021. Cancel download if http redirect is bounded more than 20 times.
  1022. * src/AbstractCommand.cc
  1023. * src/HttpSkipResponseCommand.cc
  1024. * src/Request.cc
  1025. * src/Request.h
  1026. * test/RequestTest.cc
  1027. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1028. Fixed unhandled exception(removed keyword `new').
  1029. * src/SocketCore.cc (initEPOLL)
  1030. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1031. Removed visit(const MetaEntry*)
  1032. * src/MetaEntryVisitor.h:
  1033. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1034. and made them virtual.
  1035. * src/BencodeVisitor.h
  1036. * src/BencodeVisitor.cc
  1037. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1038. Updated po files.
  1039. * po/aria2c.pot
  1040. * po/*.po
  1041. * po/*.gmo
  1042. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1043. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1044. the number of socket to watch out.
  1045. * src/PeerInteractionCommand.cc
  1046. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1047. When there is not enough space in disk when writing a chunk of data,
  1048. aria2 now prints the message to the console to warn user and aborts
  1049. its download. Not all downloads are canceled because some downloads
  1050. may use another disk or partition. BUG#1640332
  1051. * src/AbstractDiskWriter.cc
  1052. * src/PeerAbstractCommand.cc
  1053. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1054. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1055. setHaltRequested(true) to cancel download.
  1056. * src/PeerInteractionCommand.h
  1057. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1058. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1059. socket from int to sock_t as sockets are unsigned in Windows.
  1060. For AsyncNameResolver, DownloadEngine, I did additional modification
  1061. for the portion of the code changed according to epoll support.
  1062. I defined sock_t in a2netcompat.h to use sock_t without including
  1063. SocketCore.h.
  1064. * src/AsyncNameResolver.cc
  1065. * src/AsyncNameResolver.h
  1066. * src/DownloadEngine.cc
  1067. * src/DownloadEngine.h
  1068. * src/SocketCore.cc
  1069. * src/SocketCore.h
  1070. * src/a2netcompat.h
  1071. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1072. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1073. changes in the patch were applied.
  1074. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1075. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1076. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1077. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1078. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1079. a2io.h and common.h were modified.
  1080. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1081. MinGW.
  1082. * src/common.h: Changed off_t to 64 bit in MinGW.
  1083. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1084. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1085. only a2netcompat.h is modified.
  1086. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1087. directives.
  1088. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1089. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1090. only gai_strerror.h is modified.
  1091. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1092. winsock errors in MinGW.
  1093. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1094. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1095. follow sources are applied.
  1096. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1097. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1098. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1099. I included locale.h from Platform.cc.
  1100. * src/main.cc: Moved common setup/teardown code to Platform class.
  1101. * test/AllTest.cc: Use Platform class.
  1102. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1103. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1104. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1105. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1106. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1107. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1108. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1109. aria2-0.13.2+1-mingw-2.patch.
  1110. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1111. systems which don't have termious.h. I moved the directive inside of
  1112. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1113. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1114. anyway.
  1115. * src/asctime_r.h
  1116. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1117. I added 2nd argument to the prototype declaration.
  1118. * src/StringFormat.cc: Get rid of vasprintf.
  1119. * src/getaddrinfo.h: Fixed constants.
  1120. * configure.ac: Added the check for asctime_r function.
  1121. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1122. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1123. Added writable test for Socket when the sending message is in progress.
  1124. Usually the sending message is piece message. Without wriable check,
  1125. upload latency is dropped to more than 1sec.
  1126. * src/PeerInteractionCommand.cc
  1127. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1128. Create only requested files and files which shares a piece with
  1129. requested file in multi-torrent downloads. Directory structures are
  1130. also created in the same rule.
  1131. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1132. DiskWriterEntry as in the previous implementation.
  1133. * src/MultiDiskWriter.cc
  1134. * src/MultiFileAllocationIterator.cc
  1135. * src/MultiFileAllocationIterator.h
  1136. * test/MultiFileAllocationIteratorTest.cc
  1137. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1138. Commented out -lprofiler
  1139. * src/Makefile.am
  1140. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1141. Bump up version number to 0.14.0b.
  1142. * src/configure.ac
  1143. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1144. Actively establish connection to peers in seeding, when peer cache
  1145. is not full and max upload speed limit is not reached.
  1146. * src/ActivePeerConnectionCommand.cc
  1147. * src/ActivePeerConnectionCommand.h
  1148. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1149. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1150. to make room more fleshy, recently found peers.
  1151. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1152. it.
  1153. * src/DefaultPeerStorage.cc
  1154. * test/DefaultPeerStorageTest.cc
  1155. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1156. Returns cached data only when the previous receiveHandshake() is called
  1157. with peek = true.
  1158. * src/PeerConnection.cc (receiveHandshake)
  1159. * src/PeerConnection.h (receiveHandshake)
  1160. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1161. Changed default value of -s option from 1 to 5.
  1162. Also max value of -s option is changed from 5 to 16.
  1163. * src/HelpItemFactory.cc
  1164. * src/OptionHandlerFactory.cc
  1165. * src/option_processing.cc
  1166. * src/usage_text.h
  1167. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1168. Changed -s options behavior. Now it means the number of connections
  1169. made simultaneously in each http/ftp download.
  1170. If 1 URL is specified, the behavior is the same with old implementation.
  1171. If -s N is given and more than N URLs are specified, first N URLs are
  1172. used and remaining URLs are used for backup. If less than N URLs are
  1173. specified, some of URLs are used more than once so that totally N
  1174. connections are made simultaneously.
  1175. * src/main.cc
  1176. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1177. Included missing iosfwd or ostream header.
  1178. * src/RequestGroupMan.cc
  1179. * src/TaggedItem.cc
  1180. * src/TaggedItem.h
  1181. * src/Util.cc
  1182. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1183. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  1184. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  1185. * src/HttpConnection.cc: Included missing sstream.
  1186. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1187. Added --bt-max-open-files option.
  1188. * src/DefaultPieceStorage.cc
  1189. * src/HelpItemFactory.cc
  1190. * src/MultiDiskAdaptor.cc
  1191. * src/MultiDiskAdaptor.h
  1192. * src/OptionHandlerFactory.cc
  1193. * src/option_processing.cc
  1194. * src/prefs.cc
  1195. * src/prefs.h
  1196. * src/usage_text.h
  1197. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1198. Fixed the bug that aria2 aborts when a path to a directory is given
  1199. in command-line.
  1200. * src/ProtocolDetector.cc
  1201. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1202. Limited the number files opened in each BitTorrent download. The default
  1203. value is 100. The option to change this value will be added.
  1204. * src/MultiDiskAdaptor.cc
  1205. * src/MultiDiskAdaptor.h
  1206. * src/MultiFileAllocationIterator.cc
  1207. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1208. Fixed the bug that HTTP downloads don't start with old libraries.
  1209. * src/HttpHeaderProcessor.cc
  1210. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1211. Use empty() instead of size() > 0.
  1212. * src/HttpConnection.cc
  1213. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1214. Drop connection if the incoming peer ID is the same with localhost's
  1215. one. The previous implementation drops connection when incoming peer's
  1216. IP address is the same with localhost's one.
  1217. * src/PeerListenCommand.cc
  1218. * src/DefaultBtInteractive.cc
  1219. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1220. Returns cached data without checking whether socket is readable
  1221. if the cache is available.
  1222. * src/PeerConnection.cc (receiveHandshake)
  1223. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1224. Included stdint.h
  1225. * src/common.h
  1226. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1227. Removed duplicate HAVE_GETTIMEOFDAY
  1228. * src/Makefile.am
  1229. * src/Makefile.in
  1230. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1231. Use interval as a minInterval when minInterval is not supplied.
  1232. * src/DefaultBtAnnounce.cc
  1233. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1234. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  1235. attempt is failed, then 2nd attempt get kicked out more quickly.
  1236. And it is now static const member of DefaultBtAnnounce.
  1237. * src/DefaultBtAnnounce.h
  1238. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1239. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  1240. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  1241. * src/ActivePeerConnectionCommand.cc
  1242. * src/BtConstants.h
  1243. * src/BtRuntime.h
  1244. * src/DHTGetPeersCommand.cc
  1245. * src/DefaultBtAnnounce.cc
  1246. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  1247. BtRuntime::MAX_PEERS.
  1248. * src/DefaultPeerStorage.h
  1249. * src/InitiatorMSEHandshakeCommand.cc
  1250. * src/PeerInitiateConnectionCommand.cc
  1251. * src/PeerInteractionCommand.cc
  1252. * src/PeerReceiveHandshakeCommand.cc
  1253. * src/TrackerWatcherCommand.cc
  1254. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1255. Always Connect to _numNewConnection
  1256. * src/ActivePeerConnectionCommand.cc
  1257. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1258. Made `begin' unsigned int.
  1259. * src/GrowSegment.h
  1260. * src/Piece.cc
  1261. * src/Piece.h
  1262. * src/PiecedSegment.cc
  1263. * src/PiecedSegment.h
  1264. * src/Segment.h
  1265. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1266. Calculate piece hash when data is arrived if the data is arrived in
  1267. order. This removes additional read operation for hash calculation.
  1268. If the data is arrived in out of order, the hash is calucated when the
  1269. piece is completed. This is the same behavior as the old implementation.
  1270. * src/BtPieceMessage.cc
  1271. * src/DefaultBtProgressInfoFile.cc
  1272. * src/DefaultPieceStorage.cc
  1273. * src/DownloadCommand.cc
  1274. * src/DownloadCommand.h
  1275. * src/DownloadEngine.cc
  1276. * src/GrowSegment.cc
  1277. * src/GrowSegment.h
  1278. * src/Piece.cc
  1279. * src/Piece.h
  1280. * src/PiecedSegment.cc
  1281. * src/PiecedSegment.h
  1282. * src/Segment.h
  1283. * test/PieceTest.cc
  1284. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1285. Try to keep the ordering of outgoing piece message.
  1286. * src/DefaultBtMessageDispatcher.cc
  1287. (DefaultBtMessageDispatcher::sendMessages)
  1288. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1289. Fixed busy loop when error/hup epoll events occur.
  1290. * src/AbstractCommand.cc
  1291. * src/PeerAbstractCommand.cc
  1292. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1293. Added --bt-request-peer-speed-limit option, which was a constant
  1294. SLOW_SPEED_THRESHOLD.
  1295. * src/ActivePeerConnectionCommand.cc
  1296. * src/ActivePeerConnectionCommand.h
  1297. * src/BtConstants.h
  1298. * src/HelpItemFactory.cc
  1299. * src/OptionHandlerFactory.cc
  1300. * src/PeerReceiveHandshakeCommand.cc
  1301. * src/option_processing.cc
  1302. * src/prefs.cc
  1303. * src/prefs.h
  1304. * src/usage_text.h
  1305. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1306. Removed repeated call of getTopDirPath(). Instead, call it once and
  1307. cache the result.
  1308. * src/MultiDiskAdaptor.cc
  1309. * src/MultiDiskAdaptor.h
  1310. (mkdir, openFile, initAndOpenFile, openExistingFile)
  1311. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1312. Fixed compile error on debian etch.
  1313. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  1314. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  1315. it is undefined.
  1316. * src/Util.cc (ULLONG_MAX)
  1317. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1318. Added epoll support. Use epoll if it is available. If not, use select.
  1319. When async dns is enabled in compile time, epoll support is enabled
  1320. only when aria2 is built with c-ares. This condition statement is
  1321. defined in a2io.h.
  1322. Currently aria2 supports both c-ares and ares, but ares is maintained
  1323. for quite a while and debian already has c-ares package, ares support
  1324. will be dropped in the future version.
  1325. * configure.ac
  1326. * src/AbstractCommand.cc
  1327. * src/AsyncNameResolver.cc
  1328. * src/AsyncNameResolver.h
  1329. * src/Command.cc
  1330. * src/Command.h
  1331. * src/DownloadEngine.cc
  1332. * src/DownloadEngine.h
  1333. * src/PeerAbstractCommand.cc
  1334. * src/SocketCore.cc
  1335. * src/SocketCore.h
  1336. * src/a2io.h
  1337. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1338. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  1339. directive.
  1340. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1341. Do not do write operation to /dev/null file.
  1342. * src/LogFactory.cc
  1343. * src/SimpleLogger.cc
  1344. Replaced vasprintf with vsnprintf
  1345. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1346. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1347. * src/BtRequestMessage.cc
  1348. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  1349. for segmentation fault caused by previous commit.
  1350. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1351. Reduced the usage of gettimeofday().
  1352. * src/DefaultBtMessageDispatcher.cc
  1353. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  1354. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1355. * src/RequestSlot.cc
  1356. * src/RequestSlot.h
  1357. (RequestSlot::isTimeout)
  1358. Made RequestSlot have a reference to Piece object to avoid find
  1359. Piece repeatedly.
  1360. * src/DefaultBtMessageDispatcher.cc
  1361. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1362. * src/RequestSlot.cc
  1363. * src/RequestSlot.h
  1364. (RequestSlot::getPiece)
  1365. * test/DefaultBtMessageDispatcherTest.cc
  1366. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1367. * src/TimeA2.cc
  1368. * src/TimeA2.h
  1369. (Time::difference): New function.
  1370. (Time::elapsed): Done optimization.
  1371. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1372. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  1373. directive.
  1374. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1375. * src/option_processing.cc: Added missing `defined' keyword to #if
  1376. directive.
  1377. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1378. Bump up version number to 0.13.2+1
  1379. * src/configure.ac
  1380. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1381. Refactored broken outstanding piece handling.
  1382. * src/DefaultPieceStorage.cc
  1383. * src/DefaultPieceStorage.h
  1384. * src/Piece.cc
  1385. * src/Piece.h
  1386. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1387. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  1388. name collision of static variable and predefined macro.
  1389. * src/BtContext.cc
  1390. * src/BtContext.h
  1391. * src/CookieBoxFactory.cc
  1392. * src/CookieBoxFactory.h
  1393. * src/CookieParser.cc
  1394. * src/CookieParser.h
  1395. * src/DefaultBtContext.cc
  1396. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1397. * src/RequestGroup.cc
  1398. (RequestGroup::createInitialCommand): Use empty() instead of size().
  1399. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1400. * Release 0.13.2
  1401. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1402. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  1403. * po/fr.po
  1404. * po/ja.po
  1405. * po/aria2c.pot
  1406. * po/*.po
  1407. * po/*.gmo
  1408. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1409. Bump up version number to 0.13.2
  1410. * src/configure.ac
  1411. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1412. Refactord.
  1413. * src/RequestGroupMan.cc
  1414. (removeStoppedGroup)
  1415. (fillRequestGroupFromReserver)
  1416. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1417. Fixed compile error on Ubuntu.
  1418. * src/BtPieceMessage.cc
  1419. * src/MessageDigestHelper.cc
  1420. * src/Util.cc
  1421. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1422. Fixed compile error when configured with --disable-bittorrent
  1423. * test/DownloadHandlerFactoryTest.cc
  1424. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1425. Done make update-po
  1426. * po/aria2c.pot
  1427. * po/*.po
  1428. * po/*.gmo
  1429. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1430. Bump up version number to 0.13.2rc.
  1431. * src/configure.ac
  1432. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1433. Made option name bold. Updated SYNOPSIS to make it more readable.
  1434. * doc/aria2c.1.txt
  1435. * doc/aria2c.1
  1436. * doc/aria2c.1.html
  1437. * src/version_usage.cc
  1438. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1439. Refactored. Use std::string instead of size and char*.
  1440. * Data.cc
  1441. * Data.h
  1442. * test/Data.cc
  1443. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1444. Added trimSelf(). Rewritten trim() to use trimSelf().
  1445. * Util.cc
  1446. * Util.h
  1447. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1448. * src/ChunkChecksum.h (getChecksum): Return const reference.
  1449. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1450. Fixed compile error when configured with --disable-metalink.
  1451. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  1452. * test/FeatureConfigTest.cc
  1453. * test/DownloadHandlerFactoryTest.cc
  1454. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1455. Fixed compile error when configured with --without-gnutls
  1456. --without-openssl
  1457. * src/main.cc
  1458. * test/DefaultBtProgressInfoFileTest.cc
  1459. * test/SegmentManTest.cc
  1460. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1461. Fixed compile error with OpenSSL.
  1462. * src/IteratableChunkChecksumValidator.cc
  1463. * src/LibsslDHKeyExchange.h
  1464. * src/MessageDigestHelper.cc
  1465. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1466. Revert the default value of --max-concurrent-downloads to 5.
  1467. Revert the default value of --metalink-servers to 5.
  1468. Man pages was also updated.
  1469. * src/option_processing.cc
  1470. * doc/aria2c.1.txt
  1471. * doc/aria2c.1.html
  1472. * doc/aria2c.1
  1473. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1474. Returns const reference:
  1475. DownloadContext::getPieceHash, DownloadContext::getName,
  1476. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  1477. BtContext::getInfoHashAsString,
  1478. * src/BtContext.h
  1479. * src/DefaultBtContext.cc
  1480. * src/DefaultBtContext.h
  1481. * src/DownloadContext.h
  1482. * src/SingleFileDownloadContext.h
  1483. * test/MockBtContext.h
  1484. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1485. * src/RequestGroup.h (getDir): Removed.
  1486. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1487. Returns const reference. The internal urlencode function was optimized
  1488. a little bit.
  1489. * src/Request.cc
  1490. * src/Request.h
  1491. * src/HttpRequest.cc
  1492. * src/HttpRequest.h
  1493. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1494. Defined option name and possible values as std::string to reduce
  1495. temporary string object creation in runtime.
  1496. * src/HelpItemFactory.cc
  1497. * src/LogFactory.cc
  1498. * src/Option.cc
  1499. * src/OptionHandlerFactory.cc
  1500. * src/option_processing.cc
  1501. * src/prefs.cc
  1502. * src/prefs.h
  1503. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1504. Return const reference.
  1505. * src/DownloadHandlerConstants.cc
  1506. * src/DownloadHandlerConstants.h
  1507. (getMetalinkExtensions)
  1508. (getMetalinkContentTypes)
  1509. (getBtExtensions)
  1510. (getBtContentTypes)
  1511. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1512. * src/HttpHeader.cc (get): Rewritten.
  1513. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1514. Make HttpHeader::getFirst(...) return const reference.
  1515. * src/HttpHeader.cc
  1516. * src/HttpHeader.h
  1517. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1518. Use Option::getAsBool(...) instead of Option::get(...) and compare
  1519. it with V_TRUE.
  1520. * src/DefaultPieceStorage.cc
  1521. * src/DownloadCommand.cc
  1522. * src/FtpNegotiationCommand.cc
  1523. * src/HttpRequest.cc
  1524. * src/InitiateConnectionCommand.cc
  1525. * src/RequestGroup.cc
  1526. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1527. Made Option::get(...) return const reference of std::string.
  1528. * src/Option.cc
  1529. * src/Option.h
  1530. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1531. Replaced std:copy with insert.
  1532. * src/DefaultBtMessageDispatcher.cc
  1533. * src/DefaultPieceStorage.cc
  1534. * src/DownloadEngineFactory.cc
  1535. * src/RequestGroup.cc
  1536. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1537. Included SocketCore.h to fix compiler warning.
  1538. * src/InitiateConnectionCommand.cc
  1539. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1540. Put piece selection strategy algorithm to RarestPieceSelector class,
  1541. Added a switch to choose whether randomized selection so that unit
  1542. tests emit same results in, possibly, win32.
  1543. * src/DefaultPieceStorage.cc
  1544. * src/DefaultPieceStorage.h
  1545. * src/RarestPieceSelector.cc
  1546. * src/RarestPieceSelector.h
  1547. * test/DefaultPieceStorageTest.cc
  1548. * test/RarestPieceSelectorTest.cc
  1549. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1550. Don't pool connection if HTTP proxy is enabled.
  1551. * src/FtpFinishDownloadCommand.cc
  1552. * src/FtpNegotiationCommand.cc
  1553. * src/HttpSkipResponseCommand.cc
  1554. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1555. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  1556. * src/AbstractCommand.cc
  1557. * src/AbstractCommand.h
  1558. * src/ActivePeerConnectionCommand.cc
  1559. * src/FtpInitiateConnectionCommand.cc
  1560. * src/HttpInitiateConnectionCommand.cc
  1561. * src/InitiateConnectionCommandFactory.cc
  1562. * src/PeerAbstractCommand.cc
  1563. * src/PeerAbstractCommand.h
  1564. * src/PeerInitiateConnectionCommand.cc
  1565. * src/TrackerWatcherCommand.cc
  1566. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1567. Sort RequestSlot in ascending order and manipulate them using
  1568. lower_bound.
  1569. * src/DefaultBtMessageDispatcher.cc
  1570. * src/DefaultBtMessageDispatcher.h
  1571. (getMessageQueue): Added const qualifier.
  1572. (getRequestSlots): Added const qualifier.
  1573. (sendMessages): Use empty() instead of size().
  1574. (doCancelSendingPieceAction): Use HandleEvent object.
  1575. (doAbortOutstandingRequestAction): Rewritten.
  1576. (doChokedAction): Rewritten.
  1577. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  1578. (isOutstandingRequest): Rewritten.
  1579. (getOutstandingRequest): Rewritten.
  1580. (removeOutstandingRequest): Rewritten.
  1581. (addOutstandingRequest): Rewritten.
  1582. * src/RequestSlot.cc
  1583. * src/RequestSlot.h
  1584. (operator=): Rewritten.
  1585. (operator!=): New function.
  1586. (operator<): New function.
  1587. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1588. * src/DefaultBtRequestFactory.cc
  1589. (doChokedAction): Rewritten.
  1590. (removeCompletedPiece): Rewritten.
  1591. (removeTargetPiece): Rewritten.
  1592. (createRequestMessages): Added the debug log.
  1593. (createRequestMessagesOnEndGame: Added the debug log.
  1594. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1595. Added the debug log message.
  1596. * src/BtPieceMessage.cc (doReceivedAction)
  1597. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  1599. used lower_bound to process them rather than linear search.
  1600. * src/DHTPeerAnnounceStorage.cc
  1601. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1602. Call subtractPieceStats from ~PeerInteractionCommand only when the
  1603. peer has at least one completed piece.
  1604. * src/Peer.cc
  1605. * src/Peer.h
  1606. * src/PeerInteractionCommand.cc
  1607. * src/PeerSessionResource.cc
  1608. * src/PeerSessionResource.h
  1609. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1610. Removed unnecessary sorting
  1611. * src/DefaultPieceStorage (DefaultPieceStorage)
  1612. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1613. Rewritten the portion of the code that mangaes allowed fast indexes.
  1614. * src/PeerSessionResource.cc
  1615. * src/PeerSessionResource.h
  1616. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1617. Removed the invalid string including '\r' from ru.po and
  1618. did make update-po.
  1619. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1620. Added --log-level and --summary-interval to man page.
  1621. * doc/aria2c.1.txt
  1622. * doc/aria2c.1.html
  1623. * doc/aria2c.1
  1624. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1625. Added --log-level option to specify log level. Log messages under
  1626. the specified level are not output. Default value is `debug'.
  1627. * src/HelpItemFactory.cc
  1628. * src/LogFactory.cc
  1629. * src/LogFactory.h
  1630. * src/Logger.h
  1631. * src/OptionHandlerFactory.cc
  1632. * src/SimpleLogger.cc
  1633. * src/SimpleLogger.h
  1634. * src/main.cc
  1635. * src/option_processing.cc
  1636. * src/prefs.h
  1637. * src/usage_text.h
  1638. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1639. Print download progress summary of all parallel downloads in specified
  1640. interval, default 60 secs. While aria2 could download several files
  1641. in parallel (see -j option), it displayed just first download progress,
  1642. and the other downloads are hidden from the users. This new feature
  1643. prints all downloads currently in-progress to the console so that you
  1644. can check the status of all downloads. The interval can be adjusted
  1645. by --summary-interval option.
  1646. The progress readout is now cut so that all fits in the one line of
  1647. console.
  1648. * src/ConsoleStatCalc.cc
  1649. * src/ConsoleStatCalc.h
  1650. * src/HelpItemFactory.cc
  1651. * src/OptionHandlerFactory.cc
  1652. * src/RequestGroupMan.cc
  1653. * src/RequestGroupMan.h
  1654. * src/main.cc
  1655. * src/option_processing.cc
  1656. * src/prefs.h
  1657. * src/usage_text.h
  1658. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1659. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  1660. * src/DownloadEngine.cc (DownloadEngine)
  1661. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1662. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  1663. defined.
  1664. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  1665. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1666. Use erase+lower_bound+insert instead of sort.
  1667. * src/DefaultPieceStorage.cc (addPieceStats)
  1668. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1669. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  1670. * src/A2STR.cc
  1671. * src/A2STR.h
  1672. * src/OptionParser.cc (parse)
  1673. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1674. Defined fake filename `[tracker.announce]' as static const std::string.
  1675. * src/TrackerWatcherCommand.cc (createRequestGroup)
  1676. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1677. Defined default filename `index.html' as static const std::string
  1678. * src/SingleFileDownloadContext.cc
  1679. * src/SingleFileDownloadContext.h
  1680. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1681. Defined "[MEMORY]" as static const std::string.
  1682. * src/MemoryBufferPreDownloadHandler.cc (execute)
  1683. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1684. Defined control file's version number as static const std::string.
  1685. * src/DefaultBtProgressInfoFile.cc
  1686. * src/DefaultBtProgressInfoFile.h
  1687. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1688. Use Request::METHOD_GET
  1689. * src/RequestGroup.cc (createNextCommandWithAdj)
  1690. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1691. Defined "OK", "ERR", "INPR" as static const std::string
  1692. * src/RequestGroupMan.cc (showDownloadResults)
  1693. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1694. Defined default client used in extended handshake as static const
  1695. std::string
  1696. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  1697. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1698. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  1699. * src/HttpConnection.cc (eraseConfidentialInfo)
  1700. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1701. Defined default ftp user and password as static const std::string
  1702. * src/AuthConfigFactory.cc
  1703. * src/AuthConfigFactory.h
  1704. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1705. Defined strings used in netrc as static const std::string
  1706. * src/Netrc.cc
  1707. * src/Netrc.h
  1708. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1709. Defined HTTP status as static const std::string
  1710. * src/AbstractProxyResponseCommand.cc
  1711. * src/HttpHeader.cc
  1712. * src/HttpHeader.h
  1713. * src/HttpResponse.cc
  1714. * src/HttpResponseCommand.cc
  1715. * src/HttpSkipResponseCommand.cc
  1716. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1717. Defined "\r\n", "A", "I" as static const std::string
  1718. * src/A2STR.cc
  1719. * src/A2STR.h
  1720. * src/FtpConnection.cc
  1721. * src/FtpConnection.h
  1722. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1723. Added COLON_C(".") and used it in Request::parseUrl()
  1724. * src/A2STR.cc
  1725. * src/A2STR.h
  1726. * src/Request.cc (parseUrl)
  1727. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1728. Changed the type of padName from `const std::string&' to `const char*'.
  1729. * src/MSEHandshake.cc (verifyPadLength)
  1730. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1731. Defined "sha1" as static const std::string.
  1732. * src/MetalinkParserController.cc
  1733. * src/MetalinkParserController.h
  1734. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1735. Defined message digest algorithm name as static const std::string
  1736. * src/DHTTokenTracker.cc
  1737. * src/DHTUtil.cc
  1738. * src/DefaultBtContext.cc
  1739. * src/MSEHandshake.cc
  1740. * src/MessageDigestHelper.cc
  1741. * src/Peer.cc
  1742. * src/messageDigest.cc
  1743. * src/messageDigest.h
  1744. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1745. Made string literals used in SAX parser static const std::string.
  1746. * src/FileMetalinkParserState.cc
  1747. * src/FileMetalinkParserState.h
  1748. * src/FilesMetalinkParserState.cc
  1749. * src/FilesMetalinkParserState.h
  1750. * src/InitialMetalinkParserState.cc
  1751. * src/InitialMetalinkParserState.h
  1752. * src/MetalinkMetalinkParserState.cc
  1753. * src/MetalinkMetalinkParserState.h
  1754. * src/PiecesMetalinkParserState.cc
  1755. * src/PiecesMetalinkParserState.h
  1756. * src/ResourcesMetalinkParserState.cc
  1757. * src/ResourcesMetalinkParserState.h
  1758. * src/VerificationMetalinkParserState.cc
  1759. * src/VerificationMetalinkParserState.h
  1760. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1761. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  1762. * src/A2STR.cc
  1763. * src/A2STR.h
  1764. * src/File.cc
  1765. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1766. Defined static const std::string IP("ip"), PORT("port") and use them
  1767. instead of string literals.
  1768. * src/DefaultPeerListProcessor.cc
  1769. * src/DefaultPeerListProcessor.h
  1770. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1771. Made string literals for torrent file processing static const
  1772. std::string.
  1773. * src/BtContext.cc
  1774. * src/BtContext.h
  1775. * src/DefaultBtContext.cc
  1776. * src/DefaultBtContext.h
  1777. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1778. Made string literal for tracker response static const std::string
  1779. * src/BtAnnounce.cc
  1780. * src/BtAnnounce.h
  1781. * src/DefaultBtAnnounce.cc
  1782. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1783. Use DHTMessage::T instead of "t".
  1784. * src/DHTMessageTracker.cc (messageArrived)
  1785. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1786. Made keyName static const. Made trimmed charset static const
  1787. std::string.
  1788. * src/Util.cc (getContentDispositionFilename)
  1789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1790. Made USER_AGENT const. Made "/" static const std::string.
  1791. * src/A2STR.cc
  1792. * src/A2STR.h
  1793. * src/HttpRequest.cc
  1794. * src/HttpRequest.h
  1795. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1796. Made string listeral to static const std::string:
  1797. "Content-Range", "Content-Length"
  1798. * src/HttpHeader.cc
  1799. * src/HttpHeader.h
  1800. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1801. Made string listeral to static const std::string.
  1802. * src/HttpConnection.cc
  1803. * src/HttpHeader.cc
  1804. * src/HttpHeader.h
  1805. * src/HttpResponse.cc
  1806. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1807. Made string listeral to static const std::string.
  1808. * src/A2STR.cc
  1809. * src/A2STR.h
  1810. * src/SimpleLogger.cc
  1811. * src/SimpleLogger.h
  1812. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1813. Made string literal to static const std::string.
  1814. Rewritten CookieParser::setField.
  1815. * src/A2STR.cc
  1816. * src/A2STR.h
  1817. * src/CookieBoxFactory.cc
  1818. * src/CookieBoxFactory.h
  1819. * src/CookieParser.cc
  1820. * src/CookieParser.h
  1821. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1822. Made string literal to static const std::string
  1823. * src/DHTAbstractMessage.cc
  1824. * src/DHTAnnouncePeerMessage.cc
  1825. * src/DHTAnnouncePeerMessage.h
  1826. * src/DHTAnnouncePeerReplyMessage.cc
  1827. * src/DHTAnnouncePeerReplyMessage.h
  1828. * src/DHTFindNodeMessage.cc
  1829. * src/DHTFindNodeMessage.h
  1830. * src/DHTFindNodeReplyMessage.cc
  1831. * src/DHTFindNodeReplyMessage.h
  1832. * src/DHTGetPeersMessage.cc
  1833. * src/DHTGetPeersMessage.h
  1834. * src/DHTGetPeersReplyMessage.cc
  1835. * src/DHTGetPeersReplyMessage.h
  1836. * src/DHTMessage.cc
  1837. * src/DHTMessage.h
  1838. * src/DHTMessageFactoryImpl.cc
  1839. * src/DHTMessageReceiver.cc
  1840. * src/DHTPingMessage.cc
  1841. * src/DHTPingMessage.h
  1842. * src/DHTPingReplyMessage.cc
  1843. * src/DHTPingReplyMessage.h
  1844. * src/DHTQueryMessage.cc
  1845. * src/DHTQueryMessage.h
  1846. * src/DHTResponseMessage.cc
  1847. * src/DHTResponseMessage.h
  1848. * src/DHTUnknownMessage.cc
  1849. * src/DHTUnknownMessage.h
  1850. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1851. Made string literal to static const std::string
  1852. * src/BtChokeMessage.cc (toString)
  1853. * src/BtHaveAllMessage.cc (toString)
  1854. * src/BtHaveNoneMessage.cc (toString)
  1855. * src/BtInterestedMessage.cc (toString)
  1856. * src/BtNotInterestedMessage.cc (toString)
  1857. * src/BtUnchokeMessage.cc (toString)
  1858. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1859. Replaced "" with static const variable A2STR::NIL.
  1860. Replaced string comparison against "" with std::string::empty().
  1861. Added PROTO_* to Request class and use them as a protocol string
  1862. constant.
  1863. Made "started", "stopped", "completed" static const variable in
  1864. AnnounceList class.
  1865. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1866. Updated translations. Great thanks to translators.
  1867. * po/ca.po
  1868. * po/de.po
  1869. * po/fr.po
  1870. * po/it.po
  1871. * po/ja.po
  1872. * po/ru.po
  1873. * po/zh_CN.po
  1874. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Updated man page; categorized options and fixed typo.
  1876. * doc/aria2c.1.txt
  1877. * doc/aria2c.1.html
  1878. * doc/aria2c.1
  1879. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1880. Removed const ref
  1881. * src/MetalinkEntry.cc (AddProtocolPreference)
  1882. * src/RequestGroup.cc (FindServerHostByHostname)
  1883. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1884. Rewritten Accept-Features handling.
  1885. * src/HttpRequestCommand.cc (createHttpRequest)
  1886. * src/a2functional.h
  1887. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1888. Changed method signature:
  1889. DHTAbstractNodeLookupTask::toEntries
  1890. * src/DHTAbstractNodeLookupTask.cc
  1891. * src/DHTAbstractNodeLookupTask.h
  1892. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1893. Changed method signature:
  1894. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  1895. * src/BtContext.h
  1896. * src/DefaultBtContext.cc
  1897. * src/DefaultBtContext.h
  1898. * src/DefaultBtInteractive.cc
  1899. * test/DefaultBtContextTest.cc
  1900. * test/MockBtContext.h
  1901. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1902. Changed method signature:
  1903. MultiFileAllocationIterator::makeDiskWriterEntries
  1904. * src/MultiFileAllocationIterator.cc
  1905. * src/MultiFileAllocationIterator.h
  1906. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1907. Changed method sinature:
  1908. MetalinkEntry::toFileEntry,
  1909. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  1910. Metalinker::queryEntry
  1911. * src/Metalink2RequestGroup.cc
  1912. * src/MetalinkEntry.cc
  1913. * src/MetalinkEntry.h
  1914. * src/MetalinkHelper.cc
  1915. * src/MetalinkHelper.h
  1916. * src/Metalinker.cc
  1917. * src/Metalinker.h
  1918. * src/main.cc
  1919. * test/MetalinkHelperTest.cc
  1920. * test/MetalinkerTest.cc
  1921. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Changed method sinature:
  1923. RequestGroup::getURIs
  1924. * src/RequestGroup.cc
  1925. * src/RequestGroup.h
  1926. * test/Metalink2RequestGroupTest.cc
  1927. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1928. Changed method signature:
  1929. PeerListProcessor::extractPeer
  1930. * src/CompactPeerListProcessor.cc
  1931. * src/CompactPeerListProcessor.h
  1932. * src/DefaultBtAnnounce.cc
  1933. * src/DefaultPeerListProcessor.cc
  1934. * src/DefaultPeerListProcessor.h
  1935. * src/DelegatingPeerListProcessor.cc
  1936. * src/DelegatingPeerListProcessor.h
  1937. * src/PeerListProcessor.h
  1938. * src/UTPexExtensionMessage.cc
  1939. * test/DefaultPeerListProcessorTest.cc
  1940. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1941. Changed method signature:
  1942. BtRequestFactory::createRequestMessages,
  1943. BtRequestFactory::createRequestMessagesOnEndGame
  1944. * src/BtRequestFactory.h
  1945. * src/DefaultBtInteractive.cc
  1946. * src/DefaultBtRequestFactory.cc
  1947. * src/DefaultBtRequestFactory.h
  1948. * test/DefaultBtRequestFactoryTest.cc
  1949. * test/MockBtRequestFactory.h
  1950. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1951. Changed method signature:
  1952. PieceStorage::getInFlightPieces
  1953. * src/DefaultBtProgressInfoFile.cc
  1954. * src/DefaultPieceStorage.cc
  1955. * src/DefaultPieceStorage.h
  1956. * src/PieceStorage.h
  1957. * src/UnknownLengthPieceStorage.cc
  1958. * src/UnknownLengthPieceStorage.h
  1959. * test/DefaultBtProgressInfoFileTest.cc
  1960. * test/MockPieceStorage.h
  1961. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1962. Changed method signature:
  1963. PostDownloadHandler::getNextRequestGroups
  1964. Metalink2RequestGroup::generate
  1965. RequestGroup::postDownloadProcessing
  1966. * src/BtPostDownloadHandler.cc
  1967. * src/BtPostDownloadHandler.h
  1968. * src/Metalink2RequestGroup.cc
  1969. * src/Metalink2RequestGroup.h
  1970. * src/MetalinkPostDownloadHandler.cc
  1971. * src/MetalinkPostDownloadHandler.h
  1972. * src/PostDownloadHandler.h
  1973. * src/RequestGroup.cc
  1974. * src/RequestGroup.h
  1975. * src/RequestGroupMan.cc
  1976. * src/main.cc
  1977. * test/BtPostDownloadHandlerTest.cc
  1978. * test/Metalink2RequestGroupTest.cc
  1979. * test/MetalinkPostDownloadHandlerTest.cc
  1980. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1981. Rewritten AccRequestGroup
  1982. * src/main.cc
  1983. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1984. Rewritten.
  1985. * src/TaggedItem.cc (toTagString)
  1986. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1987. Rewritten Accept-Features handling.
  1988. * src/HttpRequestCommand.cc (createHttpRequest)
  1989. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1990. Rewritten accept types handling.
  1991. * HttpRequest.cc (createRequest)
  1992. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1993. Rewritten
  1994. * src/FeatureConfig.cc (featureSummary)
  1995. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1996. Changed method signature:
  1997. PeerStorage::getActivePeers
  1998. * src/DHTPeerAnnounceEntry.cc
  1999. * src/DefaultPeerStorage.cc
  2000. * src/DefaultPeerStorage.h
  2001. * src/PeerStorage.h
  2002. * test/DefaultPeerStorageTest.cc
  2003. * test/MockPeerStorage.h
  2004. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2005. Changed method signature:
  2006. DHTPeerAnnounceStorage::getPeers,
  2007. DHTPeerAnnounceEntry::getPeers
  2008. * src/DHTGetPeersMessage.cc
  2009. * src/DHTPeerAnnounceEntry.cc
  2010. * src/DHTPeerAnnounceEntry.h
  2011. * src/DHTPeerAnnounceStorage.cc
  2012. * src/DHTPeerAnnounceStorage.h
  2013. * test/DHTAnnouncePeerMessageTest.cc
  2014. * test/DHTPeerAnnounceEntryTest.cc
  2015. * test/DHTPeerAnnounceStorageTest.cc
  2016. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2017. Changed method signature:
  2018. NameResolver::resolve
  2019. * src/DHTEntryPointNameResolveCommand.cc
  2020. * src/InitiateConnectionCommand.cc
  2021. * src/NameResolver.cc
  2022. * src/NameResolver.h
  2023. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2024. Changed method signature:
  2025. PieceStorage::getAdvertisedPieceIndexes
  2026. * src/DefaultBtInteractive.cc
  2027. * src/DefaultPieceStorage.cc
  2028. * src/DefaultPieceStorage.h
  2029. * src/PieceStorage.h
  2030. * src/UnknownLengthPieceStorage.h
  2031. * test/MockPieceStorage.h
  2032. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2033. Changed method signature:
  2034. SegmentMan::getInFlightSegment
  2035. * src/AbstractCommand.cc
  2036. * src/SegmentMan.cc
  2037. * src/SegmentMan.h
  2038. * test/SegmentManTest.cc
  2039. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2040. Changed method signature:
  2041. DHTAbstractNodeLookupTask::getNodesFromMessage
  2042. * src/DHTAbstractNodeLookupTask.cc
  2043. * src/DHTAbstractNodeLookupTask.h
  2044. * src/DHTNodeLookupTask.cc
  2045. * src/DHTNodeLookupTask.h
  2046. * src/DHTPeerLookupTask.cc
  2047. * src/DHTPeerLookupTask.h
  2048. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2049. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2050. * src/AbstractCommand.cc
  2051. * src/BtCheckIntegrityEntry.cc
  2052. * src/BtCheckIntegrityEntry.h
  2053. * src/BtFileAllocationEntry.cc
  2054. * src/BtFileAllocationEntry.h
  2055. * src/BtSetup.cc
  2056. * src/BtSetup.h
  2057. * src/CheckIntegrityCommand.cc
  2058. * src/CheckIntegrityEntry.h
  2059. * src/ChecksumCheckIntegrityEntry.cc
  2060. * src/ChecksumCheckIntegrityEntry.h
  2061. * src/DHTSetup.cc
  2062. * src/DHTSetup.h
  2063. * src/DownloadEngine.cc
  2064. * src/FileAllocationCommand.cc
  2065. * src/FileAllocationEntry.h
  2066. * src/RequestGroup.cc
  2067. * src/RequestGroup.h
  2068. * src/RequestGroupMan.cc
  2069. * src/RequestGroupMan.h
  2070. * src/StreamCheckIntegrityEntry.cc
  2071. * src/StreamCheckIntegrityEntry.h
  2072. * src/StreamFileAllocationEntry.cc
  2073. * src/StreamFileAllocationEntry.h
  2074. * src/TrackerWatcherCommand.cc
  2075. * src/a2functional.h
  2076. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Changed method signature:
  2078. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2079. DHTBucket::getGoodNodes,
  2080. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2081. * src/BNode.cc
  2082. * src/BNode.h
  2083. * src/DHTAbstractNodeLookupTask.cc
  2084. * src/DHTAutoSaveCommand.cc
  2085. * src/DHTBucket.cc
  2086. * src/DHTBucket.h
  2087. * src/DHTBucketRefreshTask.cc
  2088. * src/DHTFindNodeMessage.cc
  2089. * src/DHTGetPeersMessage.cc
  2090. * src/DHTRoutingTable.cc
  2091. * src/DHTRoutingTable.h
  2092. * test/BNodeTest.cc
  2093. * test/DHTBucketTest.cc
  2094. * test/DHTRoutingTableTest.cc
  2095. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2096. In piece selection functions, Pass std::deque<...> by reference rather
  2097. than returning it.
  2098. * src/BitfieldMan.cc
  2099. * src/BitfieldMan.h
  2100. * src/DefaultBtRequestFactory.cc
  2101. * src/DefaultPieceStorage.cc
  2102. * src/Piece.cc
  2103. * src/Piece.h
  2104. * test/BitfieldManTest.cc
  2105. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2106. Implemented rarest piece first piece selection strategy.
  2107. * src/AbstractBtMessage.cc
  2108. * src/AbstractBtMessage.h
  2109. * src/BitfieldMan.cc
  2110. * src/BitfieldMan.h
  2111. * src/BtBitfieldMessage.cc
  2112. * src/BtHaveAllMessage.cc
  2113. * src/BtHaveMessage.cc
  2114. * src/DefaultPieceStorage.cc
  2115. * src/DefaultPieceStorage.h
  2116. * src/PeerInteractionCommand.cc
  2117. * src/PieceStorage.h
  2118. * src/UnknownLengthPieceStorage.h
  2119. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2120. Rewritten readData and writeData.
  2121. * src/MultiDiskAdaptor.cc
  2122. * src/MultiDiskAdaptor.h
  2123. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2124. Move \n out of the message "Usage: ...".
  2125. * src/version_usage.cc
  2126. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2127. Bump up version number to 0.13.2b.
  2128. * configure.ac
  2129. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2130. Added const qualifier to argument Exception& e.
  2131. * src/Logger.h
  2132. * src/SimpleLogger.cc
  2133. * src/SimpleLogger.h
  2134. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2135. Pool connection when CWD, SIZE command fails.
  2136. * src/FtpNegotiationCommand.cc
  2137. * src/FtpNegotiationCommand.h
  2138. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2139. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2140. * src/HttpResponseCommand.cc
  2141. * src/HttpSkipResponseCommand.cc
  2142. * src/HttpSkipResponseCommand.h
  2143. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2144. Pool connection when a server returns 4xx, 5xx responses.
  2145. * src/HttpNullDownloadCommand.cc
  2146. * src/HttpNullDownloadCommand.h
  2147. * src/HttpResponse.cc
  2148. * src/HttpResponse.h
  2149. * src/HttpResponseCommand.cc
  2150. * src/HttpResponseCommand.h
  2151. * test/HttpResponseTest.cc
  2152. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2153. Print usage when no URL is specifed or bad command-line option is
  2154. specified.
  2155. * src/HelpItemFactory.cc
  2156. * src/help_tags.h
  2157. * src/option_processing.cc
  2158. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2159. Removed duplicate log message.
  2160. * src/AbstractCommand.cc (asyncResolveHostname)
  2161. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2162. Updated man page: --async-dns and --ftp-reuse-connection were added.
  2163. Changed -j option's default value from 5 to 1.
  2164. Added new examples using protocol auto detection feature.
  2165. Removed -T, -M usage where it can be omitted.
  2166. * doc/aria2c.1.txt
  2167. * doc/aria2c.1.html
  2168. * doc/aria2c.1.txt
  2169. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2170. Updated command-line usage text, so that it tells users that they
  2171. can specify any number of torrent files and metalink files in
  2172. command-line.
  2173. * src/version_usage.cc
  2174. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2175. Changed the default value of -j option to 1.
  2176. * src/HelpItemFactory.cc
  2177. * src/option_processing.cc
  2178. * src/usage_text.h
  2179. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2180. Added the ability to reuse connection in FTP and it is enabled by
  2181. default. It can be disabled by --ftp-reuse-connection=false option.
  2182. * src/Command.cc
  2183. * src/DownloadCommand.cc
  2184. * src/FtpDownloadCommand.cc
  2185. * src/FtpDownloadCommand.h
  2186. * src/FtpFinishDownloadCommand.cc
  2187. * src/FtpFinishDownloadCommand.h
  2188. * src/FtpInitiateConnectionCommand.cc
  2189. * src/FtpNegotiationCommand.cc
  2190. * src/FtpNegotiationCommand.h
  2191. * src/HelpItemFactory.cc
  2192. * src/Makefile.am
  2193. * src/Makefile.in
  2194. * src/OptionHandlerFactory.cc
  2195. * src/option_processing.cc
  2196. * src/prefs.h
  2197. * src/usage_text.h
  2198. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2199. Call Command::transitStatus() before calling Command::execute(),
  2200. so that the status change made in execute() is not cleared.
  2201. * src/DownloadEngine.cc
  2202. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2203. Removed forward declaration of SocketCore class.
  2204. * src/HttpDownloadCommand.h
  2205. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2206. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  2207. in InitiateConnectionCommandFactory. They should be set only when
  2208. the protocol is HTTP or HTTPS.
  2209. * src/InitiateConnectionCommandFactory.cc
  2210. * src/RequestGroup.cc
  2211. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2212. Fixed infinite loop in checksum checking.
  2213. * src/IteratableChecksumValidator.cc
  2214. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2215. Set _supportsPersistentConnection to true by default.
  2216. * src/Request.cc
  2217. * src/RequestGroup.cc
  2218. * test/HttpRequestTest.cc
  2219. * test/RequestTest.cc
  2220. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2221. Added timeout to socket pool. The default timeout is 15 seconds,
  2222. which is the same value Apache uses.
  2223. * src/DownloadEngine.cc
  2224. * src/DownloadEngine.h
  2225. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2226. Fixed misuse of multimap::find()
  2227. * src/HttpHeader.cc
  2228. * test/HttpHeaderTest.cc
  2229. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2230. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  2231. option.
  2232. The asynchronous DNS is not capable of IPv6 yet.
  2233. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  2234. least for HTTP download.
  2235. * src/AbstractCommand.cc
  2236. * src/AbstractCommand.h
  2237. * src/AsyncNameResolver.cc
  2238. * src/AsyncNameResolver.h
  2239. * src/DHTEntryPointNameResolveCommand.cc
  2240. * src/DHTEntryPointNameResolveCommand.h
  2241. * src/DownloadEngine.cc
  2242. * src/DownloadEngine.h
  2243. * src/FtpInitiateConnectionCommand.cc
  2244. * src/FtpInitiateConnectionCommand.h
  2245. * src/HelpItemFactory.cc
  2246. * src/HttpInitiateConnectionCommand.cc
  2247. * src/HttpInitiateConnectionCommand.h
  2248. * src/InitiateConnectionCommand.cc
  2249. * src/InitiateConnectionCommand.h
  2250. * src/Makefile.am
  2251. * src/Makefile.in
  2252. * src/NameResolver.cc
  2253. * src/NameResolver.h
  2254. * src/OptionHandlerFactory.cc
  2255. * src/SocketCore.cc
  2256. * src/SocketCore.h
  2257. * src/Util.cc
  2258. * src/Util.h
  2259. * src/option_processing.cc
  2260. * src/prefs.h
  2261. * src/usage_text.h
  2262. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2263. Updated man page: --quiet, --header were added.
  2264. --metalink-servers and --enable-http-keep-alive option were updated.
  2265. * doc/aria2c.1
  2266. * doc/aria2c.1.html
  2267. * doc/aria2c.1.txt
  2268. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2269. Enable HTTP keep-alive by default.
  2270. * src/HelpItemFactory.cc
  2271. * src/option_processing.cc
  2272. * src/usage_text.h
  2273. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2274. Disable http keep-alive if the remote server is not HTTP/1.1.
  2275. * src/HttpConnection.cc
  2276. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2277. Receive content body of 302 response so that the connection can be
  2278. reused later when http keep-alive is enabled.
  2279. * src/HttpNullDownloadCommand.cc
  2280. * src/HttpNullDownloadCommand.h
  2281. * src/HttpResponseCommand.cc
  2282. * src/HttpResponseCommand.h
  2283. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2284. const SharedHandle<Request> -> const SharedHandle<Request>&
  2285. * src/FtpDowndloadCommand.cc
  2286. * src/FtpDowndloadCommand.h
  2287. * src/HttpDownloadCommand.cc
  2288. * src/HttpDownloadCommand.h
  2289. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2290. Fixed the bug that the control file(.aria2 file) is not renamed
  2291. according to tryAutoFileRenaming().
  2292. tryAutoFileRenaming() was rewritten so that if both renamed file and
  2293. its control file exist, use them and continue download.
  2294. The old implementation didn't take into account of control file's
  2295. existence, so basically you couldn't continue download of renamed file.
  2296. * src/BtProgressInfoFile.h
  2297. * src/DefaultBtProgressInfoFile.cc
  2298. * src/DefaultBtProgressInfoFile.h
  2299. * src/NullProgressInfoFile.h
  2300. * src/RequestGroup.cc
  2301. * test/DefaultBtProgressInfoFileTest.cc
  2302. * test/MockBtProgressInfoFile.h
  2303. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2304. Change the default value of --metalink-servers option from `5' to `1'.
  2305. * src/HelpItemFactory.cc
  2306. * src/option_processing.cc
  2307. * src/usage_text.h
  2308. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2309. Reimplemented transparent metalink using Accept request header.
  2310. * src/HttpRequest.cc
  2311. * src/HttpRequest.h
  2312. * src/HttpRequestCommand.cc
  2313. * src/Metalink2RequestGroup.cc
  2314. * src/RequestGroup.cc
  2315. * src/RequestGroup.h
  2316. * test/HttpRequestTest.cc
  2317. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2318. Bump up version number to 0.13.2a
  2319. * configure.ac
  2320. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2321. Updated configure.ac using the result of autoscan.
  2322. * configure.ac
  2323. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2324. Fixed compilation error without gcrypt/openssl.
  2325. * src/DownloadCommand.cc
  2326. * src/DownloadCommand.h
  2327. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Reorganized version information so that it can be displayed in a
  2329. standard terminal screen without scrolling.
  2330. Removed http, ftp from Configuration section, because they are always
  2331. enabled.
  2332. * src/FeatureConfig.cc
  2333. * src/FeatureConfig.h
  2334. * src/main.cc
  2335. * src/messageDigest.cc
  2336. * src/messageDigest.h
  2337. * src/version_usage.cc
  2338. * test/FeatureConfigTest.cc
  2339. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2340. Masked user ID in log.
  2341. * src/FtpConnection.cc (sendUser)
  2342. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2343. Removed query part from filename in HTTP download. The query part means
  2344. the substring after "?" in URL. Firefox seems do the same thing.
  2345. A query part is sometimes very long and not suitable to filename,
  2346. so I think it is better to remove it from filename.
  2347. * src/HttpRequest.cc
  2348. * src/HttpRequest.h
  2349. * src/Request.cc
  2350. * src/Request.h
  2351. * test/HttpRequestTest.cc
  2352. * test/RequestTest.cc
  2353. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. Rewritten Exception class. Throw exception object, not its pointer and
  2355. catch by reference, so that remove problematic delete operator for
  2356. catched exception.
  2357. * src/Exception.cc
  2358. * src/Exception.h
  2359. * test/ExceptionTest.cc
  2360. * src/*: All files throwing/catching exception.
  2361. * test/*: All files throwing/catching exception.
  2362. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2363. Now auto protocol detection is enabled without -Z option.
  2364. But there is a important difference between with/without -Z optoin.
  2365. For example, if you type:
  2366. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  2367. then, aria2 interprets there are 3 request groups:
  2368. (1) http://host/file, http://mirror/file <-- multi-source download
  2369. (2) file1.torrent
  2370. (3) file2.metalink
  2371. On the other hand, if you invoke above command with -Z option, it is
  2372. interpreted as 4 request groups:
  2373. (1) http://host/file
  2374. (2) file1.torrent
  2375. (3) file2.metalink
  2376. (4) http://mirror/file
  2377. I think usually user don't mix multi-source URLs and torrent files, so
  2378. there is no big problem here.
  2379. * src/main.cc
  2380. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2381. Fixed the bug that causes segmentaion fault when reading XML containing
  2382. unescapsed character like '&'.
  2383. Also a modification was made which avoids adding unnecessary
  2384. characters stack and appending unused string.
  2385. * src/ExpatMetalinkProcessor.cc
  2386. * src/FileMetalinkParserState.h
  2387. * src/FilesMetalinkParserState.h
  2388. * src/FinMetalinkParserState.h
  2389. * src/HashMetalinkParserState.h
  2390. * src/InitialMetalinkParserState.h
  2391. * src/LanguageMetalinkParserState.h
  2392. * src/MetalinkMetalinkParserState.h
  2393. * src/MetalinkParserState.h
  2394. * src/MetalinkParserStateMachine.cc
  2395. * src/MetalinkParserStateMachine.h
  2396. * src/OSMetalinkParserState.h
  2397. * src/PieceHashMetalinkParserState.h
  2398. * src/PiecesMetalinkParserState.h
  2399. * src/ResourcesMetalinkParserState.h
  2400. * src/SizeMetalinkParserState.h
  2401. * src/SkipTagMetalinkParserState.h
  2402. * src/URLMetalinkParserState.h
  2403. * src/VerificationMetalinkParserState.h
  2404. * src/VersionMetalinkParserState.h
  2405. * src/XML2SAXMetalinkProcessor.cc
  2406. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Added StringFormat class, which internally calls vasprintf.
  2408. operator<< is defined for this class, so it can be used with iostream
  2409. classes nicely. SimpleLogger and following functions are rewritten
  2410. using StringFormat class.
  2411. Besides, now Logger class's methods are non-const, many classes
  2412. that has a const Logger* as a member variable are modified to remove
  2413. const qualifier from the variable declaration.
  2414. * src/HelpItemFactory.cc
  2415. * src/Request.cc
  2416. * src/SimpleLogger.cc
  2417. * src/StringFormat.cc
  2418. * src/StringFormat.h
  2419. * src/Util.cc
  2420. * src/option_processing.cc
  2421. * src/version_usage.cc
  2422. * test/StringFormatTest.cc
  2423. * src/*.h: The classes that has const Logger* as a member variable.
  2424. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  2426. failed. Also fixed memory link when exception is thrown there.
  2427. * src/main.cc (AccRequestGroup)
  2428. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2429. Added build-in "Accept-Features" support. For now only "metalink" is
  2430. used in this header field.
  2431. This "metalink" value is removed from the list when connecting URLs
  2432. fed by metalink file to avoid loop in "transparent" metlaink.
  2433. * src/HttpRequest.cc
  2434. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  2435. header is also held in this variable. Also renamed setUserHeaders as
  2436. addHeader and it was rewritten to add header not just to clear the old
  2437. value.
  2438. * src/HttpRequestCommand.cc
  2439. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  2440. from "Accept-Features" list.
  2441. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  2442. default.
  2443. * src/RequestGroup.h
  2444. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  2445. * src/a2functional.h: Included <string> because Concat class depends on
  2446. it.
  2447. * test/HttpRequestTest.cc
  2448. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2449. Added comment
  2450. * src/RequestGroup.cc (createNextCommand)
  2451. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2452. Capitalized METHOD_GET and METHOD_HEAD
  2453. * src/Request.cc
  2454. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2455. Added getDownloadResults() method
  2456. * src/RequestGroupMan.cc
  2457. * src/RequestGroupMan.h
  2458. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2459. Fixed the bug that aria2 exits when commands is empty() but
  2460. _routineCommands are not.
  2461. * src/DownloadEngine.cc
  2462. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2463. Use the default value pulled from Option object in HelpItemFactory.
  2464. except options whose defualt value is embedded in a usage text.
  2465. * src/HelpItemFactory.cc
  2466. * src/HelpItemFactory.h
  2467. * src/option_processing.cc
  2468. * src/version_usage.cc
  2469. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2470. Added --quiet option to make aria2 quiet (no console output).
  2471. --quiet option is tagged with ADVANCED.
  2472. * src/HelpItemFactory.cc
  2473. * src/LogFactory.cc
  2474. * src/LogFactory.h
  2475. * src/MultiUrlRequestInfo.cc
  2476. * src/MultiUrlRequestInfo.h
  2477. * src/NullStatCalc.h: New class. This class prints nothing.
  2478. * src/OptionHandlerFactory.cc
  2479. * src/main.cc
  2480. * src/option_processing.cc
  2481. * src/prefs.h
  2482. * src/usage_text.h
  2483. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2484. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  2485. * src/HelpItemFactory.cc (createHelpItems):
  2486. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2487. Fixed compilation error in ExpatMetalinkProcessor.cc
  2488. * src/ExpatMetalinkProcessor.cc
  2489. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2490. Reuse socket if the origin server supports HTTP keep-alive and
  2491. --enable-http-keep-alive or --enable-http-pipelining is given.
  2492. The current implementation doesn't reuse the connections established
  2493. against proxy server.
  2494. * src/AbstractCommand.cc
  2495. * src/DownloadEngine.cc
  2496. * src/DownloadEngine.h
  2497. * src/HttpDownloadCommand.cc
  2498. * src/HttpInitiateConnectionCommand.cc
  2499. * src/HttpResponseCommand.cc
  2500. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2501. Rewritten HTTP keep-alive and pipelining routine.
  2502. * src/AbstractCommand.cc
  2503. * src/HttpConnection.cc
  2504. * src/HttpDownloadCommand.cc
  2505. * src/HttpRequest.cc
  2506. * src/HttpRequestCommand.cc
  2507. * src/HttpResponseCommand.cc
  2508. * src/Request.cc
  2509. * src/Request.h
  2510. * src/RequestGroup.cc
  2511. * test/HttpRequestTest.cc
  2512. * test/HttpResponseTest.cc
  2513. * test/RequestTest.cc
  2514. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2515. Added missing setUserHeaders call
  2516. * src/HttpRequestCommand.cc
  2517. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2518. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  2519. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  2520. waste of time because it is more likey false.
  2521. * src/FileAllocationDispatcherCommand.cc (execute)
  2522. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2523. Now HTTP status and version are a member variable of HttpHeader.
  2524. HTTP status is processed as a string, not integer.
  2525. * src/AbstractProxyResponseCommand.cc
  2526. * src/HttpConnection.cc
  2527. * src/HttpHeader.cc
  2528. * src/HttpHeader.h
  2529. * src/HttpHeaderProcessor.cc
  2530. * src/HttpHeaderProcessor.h
  2531. * src/HttpResponse.cc
  2532. * src/HttpResponse.h
  2533. * test/HttpHeaderProcessorTest.cc
  2534. * test/HttpResponseTest.cc
  2535. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2536. Added --header option. You can specify any number of additional HTTP headers
  2537. like:
  2538. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  2539. Unlike other commad-line option, you can use --header option multiple times.
  2540. * src/HelpItemFactory.cc
  2541. * src/HttpRequest.{cc, h}
  2542. * src/HttpRequestCommand.cc
  2543. * src/OptionHandlerFactory.cc
  2544. * src/OptionHandlerImpl.h
  2545. * src/option_processing.cc
  2546. * src/prefs.h
  2547. * src/usage_text.h
  2548. * test/HttpRequestTest.cc (testUserHeaders)
  2549. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2550. Eliminates the time lag between sequential downloads and commands in
  2551. the same RequestGroup.
  2552. In old implementation, aria2 occasionally waits 1 seconds before
  2553. executing next command or RequestGroup.
  2554. This is really a waste of time, and new implementation eliminates
  2555. this unnecessary time lag.
  2556. * src/AbstractCommand.cc
  2557. * src/AutoSaveCommand.cc
  2558. * src/CheckIntegrityCommand.cc
  2559. * src/Command.{cc, h}
  2560. * src/DownloadEngine.{cc, h}
  2561. * src/DownloadEngineFactory.cc
  2562. * src/FileAllocationCommand.cc
  2563. * src/FileAllocationDispatcherCommand.cc
  2564. * src/FillRequestGroupCommand.cc
  2565. * src/FtpInitiateConnectionCommand.cc
  2566. * src/HaveEraseCommand.cc
  2567. * src/HttpInitiateConnectionCommand.cc
  2568. * src/HttpResponseCommand.cc
  2569. * src/RealtimeCommand.cc
  2570. * src/RequestGroup.cc
  2571. * src/RequestGroupMan.cc
  2572. * src/StreamFileAllocationEntry.cc
  2573. * src/TimeBasedCommand.{cc, h}
  2574. * src/TimedHaltCommand.cc
  2575. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2576. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  2577. keyword explicit and SharedHandle's default constructor initializes
  2578. its internal obj to null, old implementation initializes it using
  2579. obj's default constructor.
  2580. To assign null, write SharedHandle<T> x(...); x.reset();
  2581. TODO: test/SharedHandleTest.cc needs more tests.
  2582. * src/SharedHandle.h
  2583. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2584. Fixed type in man page.
  2585. * doc/aria2c.1.txt
  2586. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2587. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  2588. * src/SimpleLogger.{cc, h}
  2589. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2590. Implemented auto protocol detection.
  2591. Now you can do:
  2592. aria2c -Z http://host/file file1.torrent file2.metalink
  2593. (Note: -Z option is required for auto protcol detection.)
  2594. Then aria2c downloads 3 files simultaneously:
  2595. 1. http://host/file
  2596. 2. file1.torrent <-- read local torrent file
  2597. 3. file2.metalink <-- read local Metalink file.
  2598. Same thing goes with -i option. Assume your uris.txt contans:
  2599. http://host/file
  2600. file1.torrent
  2601. file2.metalink
  2602. Then you can do: aria2c -i uris.txt
  2603. (Note: -Z option is not needed if -i option is given.)
  2604. * src/main.cc
  2605. * src/ProtocolDetector.{cc, h}
  2606. * test/ProtocolDetectorTest.cc
  2607. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2608. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  2609. installed
  2610. * src/ARC4Encryptor.h
  2611. * src/ARC4Decryptor.h
  2612. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2613. Renamed argument from 'errno' to 'err', since errno is confused with
  2614. errno defined in errno.h.
  2615. * src/LibgcryptARC4Decryptor.h
  2616. * src/LibgcryptARC4Context.h
  2617. * src/LibgcryptDHKeyExchange.h
  2618. * src/LibgcryptARC4Encryptor.h
  2619. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Rewritten choking algorithm.
  2621. * src/PeerChokeCommand.{cc, h}
  2622. * src/BtInterestedMessage.cc
  2623. * src/PeerSessionResource.{cc, h}
  2624. * src/DefaultPeerStorage.{cc, h}
  2625. * src/BtNotInterestedMessage.cc
  2626. * src/DefaultBtMessageDispatcher.{cc, h}
  2627. * src/BtMessageDispatcher.h
  2628. * src/Peer.{cc, h}
  2629. * src/BtLeecherStateChoke.{cc, h}
  2630. * src/BtSetup.cc
  2631. * src/BtSeederStateChoke.{cc, h}
  2632. * src/PeerStorage.h
  2633. * test/MockPeerStorage.h
  2634. * test/MockBtMessageDispatcher.h
  2635. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2636. Fixed compilation error on x84-64 platform.
  2637. * src/AuthConfig.cc: Included ostream.
  2638. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2639. Rewritten getBasename() and getDirname(), without standard library
  2640. basename(), dirname().
  2641. * src/File.cc
  2642. * test/FileTest.cc
  2643. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Added Simplified Chinese translation. Also updated the following
  2645. translations: Polish, Dutch, German. Great thanks to all translators.
  2646. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2647. Suppress content-range error when 'Content-Range' response header
  2648. doesn't contains bytes-unit specifier 'bytes'
  2649. * src/HttpHeader.cc (getRange)
  2650. * test/HttpHeaderTest.cc
  2651. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2652. Fixed compilation error with g++-4.3
  2653. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2654. Added missing include files for MinGW
  2655. * test/HttpHeaderProcessorTest.cc
  2656. * test/DHTRoutingTableSerializerTest.cc
  2657. * test/DHTRoutingTableDeserializerTest.cc
  2658. * test/UriListParserTest.cc
  2659. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2660. Now download line is printed nicely with no garbage at the end of
  2661. line. I use ioctl to get the columns of terminal.
  2662. If stdout is redirected to another device, instead of carriage return,
  2663. end of line '\n' character is used. This is feature request#1909659
  2664. * src/ConsoleStatCalc.cc (calculateStat)
  2665. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2666. Included a2time.h
  2667. * src/DHTMessageDispatcher.h
  2668. * src/DHTMessageEntry.h
  2669. * src/DHTReplaceNodeTask.h
  2670. * src/DHTMessageTracker.h
  2671. * src/Util.h
  2672. * src/CookieBox.h
  2673. * src/SocketCore.h
  2674. * src/DefaultBtMessageDispatcher.h
  2675. * src/SocketCore.cc
  2676. * src/Util.cc
  2677. * src/DHTPingTask.h
  2678. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. Fixed high memory footprint when DHT is enabled.
  2680. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  2681. queued than it is processed and the queue is getting longer. As a
  2682. consequence, momory usage is increased.
  2683. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  2684. replacement cache in DHTBucket which is described in Kademlia paper.
  2685. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  2686. DHTReplaceNodeTask.
  2687. * src/DHTBucket.{h, cc}
  2688. (cacheNode): New function.
  2689. (getCachedNodes): New function.
  2690. (dropNode): Push back cached node to _nodes.
  2691. * test/DHTBucketTest.cc
  2692. (testCacheNode): New test
  2693. (testDropNode): New test
  2694. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2695. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  2696. the unused 4KB memory when ssl is not used.
  2697. * src/SocketCore.cc
  2698. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. Added summary log for peer announce storage.
  2700. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  2701. Removed cast
  2702. * src/DefaultPeerStorage.cc (addPeer)
  2703. Log exception message
  2704. * src/DHTMessageTracker.cc (handleTimeout)
  2705. Fixed casting
  2706. * test/HttpRequestTest.cc
  2707. * test/MetalinkProcessorTest.cc
  2708. * test/PieceTest.cc
  2709. * test/MetalinkEntryTest.cc
  2710. * test/SequenceTest.cc
  2711. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2712. * src/ParameterizedStringParser.cc (createLoop):
  2713. Removed unused variable sstep.
  2714. * src/AlphaNumberDecorator.h (decode): Rewritten.
  2715. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2716. * src/Util.{h, cc}
  2717. (parseUInt): New function.
  2718. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  2719. The actual range is uint32_t.
  2720. * test/UtilTest.cc
  2721. * src/ParameterizedStringParser.cc:
  2722. Use Util::parseUInt() for loop variables.
  2723. * test/ParameterizedStringParserTest.cc
  2724. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  2725. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2726. Rewritten the functions for binding port.
  2727. * src/DHTConnectionImpl.{h, cc}
  2728. * src/PeerListenCommand.{h, cc}
  2729. * src/DHTSetup.cc
  2730. * src/BtSetup.cc
  2731. * test/DHTConnectionImplTest.cc
  2732. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. type cleanup for allmost all remaining files.
  2734. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2735. Type clarification
  2736. * src/PeerSessionResource.{h, cc}
  2737. * src/DefaultPieceStorage.{h, cc}
  2738. * src/Peer.{h, cc}
  2739. * test/PeerSessionResourceTest.cc
  2740. Use div function
  2741. * src/BtPieceMessage.cc (erasePieceOnDisk)
  2742. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2743. Type clarification
  2744. * src/DefaultPeerStorage.{h, cc}
  2745. * test/DefaultPeerStorageTest.cc
  2746. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2747. Type clarification: size_t for length or size, uint64_t for file
  2748. length, off_t for file offset.
  2749. * src/DefaultBtProgressInfoFile.cc
  2750. * src/DefaultBtContext.{h, cc}
  2751. * src/DefaultBtInteractive.cc
  2752. * src/DownloadCommand.{h, cc}
  2753. * src/IteratableChunkChecksumValidator.{h, cc}
  2754. * src/SegmentMan.{h, cc}
  2755. * src/SingleFileDownloadContext.{h, cc}
  2756. * src/IteratableChecksumValidator.{h, cc}
  2757. * src/BtContext.h
  2758. * src/IteratableValidator.h
  2759. * src/DownloadContext.h
  2760. * test/SingleFileDownloadContextTest.cc
  2761. * test/DefaultBtContextTest.cc
  2762. * test/MockBtContext.h
  2763. * test/Metalink2RequestGroupTest.cc
  2764. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2765. Type clarification: size_t for length or size, uint64_t for file
  2766. length, off_t for file offset.
  2767. * src/PiecedSegment.cc
  2768. * src/GrowSegment.h
  2769. * src/DefaultBtRequestFactory.h
  2770. * src/DefaultBtProgressInfoFile.cc
  2771. * src/UnknownLengthPieceStorage.h
  2772. * src/DefaultPieceStorage.cc
  2773. * src/UnknownLengthPieceStorage.cc
  2774. * src/DefaultBtInteractive.cc
  2775. * src/GrowSegment.cc
  2776. * src/BitfieldMan.h
  2777. * src/DownloadCommand.cc
  2778. * src/BtRequestFactory.h
  2779. * src/PiecedSegment.h
  2780. * src/DefaultPieceStorage.h
  2781. * src/Piece.cc
  2782. * src/DefaultBtRequestFactory.cc
  2783. * src/PieceStorage.h
  2784. * src/Segment.h
  2785. * src/Piece.h
  2786. * src/BitfieldMan.cc
  2787. * src/Util.cc
  2788. * test/DefaultBtProgressInfoFileTest.cc
  2789. * test/DefaultPieceStorageTest.cc
  2790. * test/MockPieceStorage.h
  2791. * test/BtRequestMessageTest.cc
  2792. * test/DefaultBtMessageDispatcherTest.cc
  2793. * test/BitfieldManTest.cc
  2794. * test/GrowSegmentTest.cc
  2795. * test/PieceTest.cc
  2796. * test/SegmentTest.cc
  2797. * test/SegmentManTest.cc
  2798. * test/DefaultBtRequestFactoryTest.cc
  2799. * test/MockBtRequestFactory.h
  2800. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2801. Fixed compilation error with --disable-nls
  2802. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  2803. in gettext.h causes the problem.
  2804. * src/common.h
  2805. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2806. Removed subPiece related functions.
  2807. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  2808. * src/DefaultPieceStorage.{h, cc}
  2809. * test/PieceTest.cc
  2810. * test/DefaultPieceStorageTest.cc
  2811. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2812. Use unsigned char for data store.
  2813. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2814. Bump up version number to 0.13.0+1
  2815. * configure.ac
  2816. * Release 0.13.0+1
  2817. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2818. Changed inactive connection timeout to 120.
  2819. To accept more mulually interested peers, disconnect peer when there
  2820. is no interest between us after certain time passed.
  2821. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  2822. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2823. Fixed the bug that aria2 only uses first dns server in resolv.conf
  2824. when compiled with async DNS support.
  2825. * src/DownloadEngine.cc
  2826. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  2827. value '10' will be a little bit short when some DNS servers are
  2828. offline and several DNS servers are tried. It should be configured
  2829. by command-line option.
  2830. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2831. Merged Ross's mingw patch.
  2832. * src/DHTRoutingTableDeserializer.cc
  2833. * src/DHTRoutingTableSerializer.cc
  2834. * src/Platform.{h, cc}
  2835. * src/timegm.h
  2836. * src/gettimeofday.h
  2837. * src/getaddrinfo.h
  2838. * src/SocketCore.h
  2839. * src/common.h
  2840. * src/inet_aton.h
  2841. * src/DownloadEngine.h
  2842. * src/gai_strerror.h
  2843. * src/a2netcompat.h
  2844. * configure.ac
  2845. * configure
  2846. * aclocal.m4
  2847. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2848. Included missing iostream.
  2849. * test/AllTest.cc
  2850. * test/BtDependencyTest.cc
  2851. * test/BtExtendedMessageTest.cc
  2852. * test/DHTConnectionImplTest.cc
  2853. * test/DHTMessageFactoryImplTest.cc
  2854. * test/DHTMessageTrackerEntryTest.cc
  2855. * test/DHTNodeTest.cc
  2856. * test/DHTRoutingTableSerializerTest.cc
  2857. * test/DefaultBtAnnounceTest.cc
  2858. * test/DefaultBtContextTest.cc
  2859. * test/DefaultBtMessageFactoryTest.cc
  2860. * test/DefaultExtensionMessageFactoryTest.cc
  2861. * test/HandshakeExtensionMessageTest.cc
  2862. * test/HttpResponseTest.cc
  2863. * test/MetalinkProcessorTest.cc
  2864. * test/MultiFileAllocationIteratorTest.cc
  2865. * test/SocketCoreTest.cc
  2866. * test/UTPexExtensionMessageTest.cc
  2867. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2868. Reorganized includes.
  2869. * src/NameResolver.cc
  2870. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2871. Fixed compilation error without ares/c-ares
  2872. * src/NameResolver.h:
  2873. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2874. Added a test for large file.
  2875. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  2876. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2877. Fixed the bug that file size is ignored if size > INT32_MAX
  2878. * src/SizeMetalinkParserState.cc (endElement):
  2879. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2880. Bump up version number to 0.13.0
  2881. * configure.ac
  2882. * Release 0.13.0
  2883. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Updated Makfefile.am to make 'make dist' work.
  2885. Now packaged filename is aria2c-VERSION.tar.bz2.
  2886. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  2887. Added LICENSE.OpenSSL to dist_noinst_DATA.
  2888. Large file support is now configured by configure script.
  2889. * configure.ac
  2890. Removed unsused source files
  2891. * src/
  2892. * test/
  2893. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  2894. Peer.h and BtContext.h respectively.
  2895. * src/Peer.h
  2896. * src/BtContext.h
  2897. Updated translations.
  2898. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  2899. translations. Great thanks to all translators!;)
  2900. * po/*.{po, gmo}
  2901. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2902. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  2903. statically declared sha1 MessageDigestContext.
  2904. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  2905. initialization of short-lived MessageDigestContext.
  2906. * src/MessageDigestHelper.{h, cc}
  2907. * src/main.cc
  2908. Now DownloadCommand has a reference to MessageDigestContext to avoid
  2909. the initialization of MessageDigestContext every time in validating
  2910. chunk checksum.
  2911. * src/DownloadCommand.{h, cc}
  2912. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2913. Add a file descriptor which connected to fast peer(latency<1500) to
  2914. select(). This change reduced CPU load.
  2915. * src/PeerInteractionCommand.cc
  2916. * src/DefaultBtInteractive.{h, cc}
  2917. * src/BtInteractive.h
  2918. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2919. Fixed the previous insufficient fix for possible busy loop.
  2920. * src/MSEHandshake.cc (identifyHandshakeType)
  2921. Removed unused functions.
  2922. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  2923. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2924. Fixed possible busy loop if first 20 bytes are not received for a few
  2925. minutes.
  2926. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  2927. * src/ReceiverMSEHandshakeCommand.cc
  2928. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. Fixed compilation error
  2930. * src/ExpatMetalinkProcessor.cc
  2931. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2932. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  2933. * src/DHTBucket.cc
  2934. Removed unnecessary cast.
  2935. * src/HandshakeExtensionMessage.cc
  2936. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2937. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  2938. is missing.
  2939. * src/OptionHandlerFactory.cc
  2940. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2941. Fixed the bug that HAVE message is not sent for a piece they are
  2942. downloaded fom http/ftp server before any BitTorrent handshake is done
  2943. with peers.
  2944. * src/DefaultBtInteractive.cc
  2945. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  2947. * src/Makefile.am
  2948. * src/Makefile.in
  2949. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2950. Updated README. Added html version of README and man page.
  2951. * README
  2952. * README.html
  2953. * readme2html: Shell script to generate README.html from README using
  2954. asciidoc.
  2955. * doc/aria2c.1.html
  2956. * doc/makeman: Added the line to generate aria2c.1.html
  2957. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Fixed offset calculation.
  2959. * src/LibgcryptDHKeyExchange.h (computeSecret)
  2960. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2961. Rewritten itos and uitos using template. llitos and ullitos are
  2962. replaced with itos and uitos respectively.
  2963. * src/Util.{h, cc}
  2964. * test/UtilTest.cc
  2965. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2966. Fixed the bug that DH key exchange sometimes fails due to bad handling
  2967. of the number of bytes required for storing public key and shared
  2968. secret.
  2969. * src/LibgcryptDHKeyExchange.h
  2970. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  2971. * src/MSEHandshake.cc
  2972. * test/DHKeyExchangeTest.cc
  2973. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2974. Removed since they are not used.
  2975. * src/Xml2MetalinkProcessor.{h, cc}
  2976. * src/Socket.cc
  2977. * src/SegmentSplitter.{h, cc}
  2978. * test/Xml2MetalinkProcessorTest.cc
  2979. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2980. Fixed the bug that prevents aria2 from stopping other than by pressing
  2981. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  2982. option. aria2 doesn't stop even after --seed-time is satisfied and
  2983. continues to output blank lines in the console.
  2984. * src/ReceiverMSEHandshakeCommand.cc
  2985. * src/PeerReceiveHandshakeCommand.cc
  2986. * src/PeerListenCommand.cc
  2987. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Bump up version number to 0.13.0rc
  2989. * configure.ac
  2990. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2991. Updated man page and some usage text.
  2992. * doc/aria2c.1.txt
  2993. * src/usage_text.h
  2994. * po/*.{po, gmo}
  2995. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. Updated translations. Added Finnish and Hebrew translations.
  2997. Great thanks to all translators!
  2998. * po/*.{po, gmo}
  2999. * po/LINGUAS
  3000. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. Log more detailed information about each message.
  3002. * src/DHTQueryMessage.{h, cc}
  3003. * src/DHTGetPeersMessage.{h, cc}
  3004. * src/DHTFindNodeReplyMessage.{h, cc}
  3005. * src/DHTGetPeersReplyMessage.{h, cc}
  3006. * src/DHTAnnouncePeerMessage.{h, cc}
  3007. * src/DHTResponseMessage.{h, cc}
  3008. * src/DHTFindNodeMessage.{h, cc}
  3009. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3010. Use constants defined in prefs.h
  3011. * src/option_processing.cc
  3012. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3014. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3015. Make room for future enchancements for IPv6 addresses.
  3016. Bump up version number of dht.dat file format to 2.
  3017. Not compatible with previous version.
  3018. * src/DHTRoutingTableSerializer.cc
  3019. * src/DHTRoutingTableDeserializer.cc
  3020. * test/DHTRoutingTableSerializerTest.cc
  3021. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3022. Added handling for the return values from
  3023. PeerMessageUtil::createcompact().
  3024. * src/DefaultBtContext.cc (computeFastSet):
  3025. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3026. Fixed abort when peer's ip address is IPv4-mapped address.
  3027. * src/DefaultBtContext.cc (computeFastSet)
  3028. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3029. cannot handle IPv4-mapped addresses.
  3030. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3031. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3032. Proper return value handling for OpenSSL functions.
  3033. * src/LibsslDHKeyExchange.h
  3034. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3035. Random bytes generation using libgcrypt and OpenSSL.
  3036. * src/DHTUtil.{h, cc}
  3037. * test/DHTUtilTest.cc
  3038. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3039. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3040. received.
  3041. * src/DHTMessageReceiver.cc (receiveMessage)
  3042. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3043. Fixed the bug that a return code is always 0. BUG#1897704
  3044. If error occurred during the download or there exist unfinished
  3045. downloads, aria2 returns with code 1.
  3046. * src/RequestGroupMan.{h, cc}
  3047. * src/MultiUrlRequestInfo.{h, cc}
  3048. * src/main.cc
  3049. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3050. IPv6 support for SocketCore class.
  3051. TODO: In SocketCore::establishConnection(), this is insufficient to
  3052. determin the failure of connect() here because the socket is
  3053. non-blocking state. The next addresses should be tried after select().
  3054. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3055. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3056. instead which address family independent.
  3057. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3058. information in a compact peer format which is for IPv4 only.
  3059. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3060. this is a spec of BitTorrent protocol.
  3061. * src/SocketCore.{h, cc}
  3062. * src/PeerMessageUtil.cc
  3063. * test/SocketCoreTest.cc
  3064. * test/PeerMessageUtilTest.cc
  3065. * test/DHTConnectionImplTest.cc
  3066. Handle IPv4-mapped addresses.
  3067. * src/DHTNode.cc: Now identity is determined by node id.
  3068. * src/DHTMessageTrackerEntry.cc
  3069. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3070. should handle it.
  3071. * src/DHTRoutingTableDeserializer.cc
  3072. * src/DHTMessageFactoryImpl.cc
  3073. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3074. Change the unit of --stop option from a minute to a second.
  3075. * src/usage_text.h
  3076. * src/DownloadEngineFactory.cc
  3077. * src/OptionHandlerFactory.cc
  3078. * src/message.h
  3079. * src/TimedHaltCommand.cc
  3080. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3081. Make listening socket non-block mode.
  3082. * src/FtpConnection.cc
  3083. * src/FtpNegotiationCommand.{h, cc}
  3084. * src/PeerListenCommand.cc
  3085. Fixed the bug that cause slow ftp negotiation.
  3086. * src/FtpNegotiationCommand.{h, cc}
  3087. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. Added basic tag to --enable-dht, --dht-listen-port option.
  3089. * src/HelpItemFactory.cc (createHelpItems)
  3090. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Updated text.
  3092. * src/usage_text.h
  3093. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3094. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3095. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3096. Determin _threadtholdSpeed in each constructor for
  3097. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3098. * src/ActivePeerConnectionCommand.{h, cc}
  3099. * src/PeerReceiveHandshakeCommand.{h, cc}
  3100. * src/BtSetup.cc
  3101. * src/BtConstants.h
  3102. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3103. Added --bt-min-crypto-level and --bt-require-crypto options.
  3104. * src/OptionHandlerFactory.cc
  3105. * src/MSEHandshake.cc
  3106. * src/HelpItemFactory.cc
  3107. * src/option_processing.cc
  3108. * src/ReceiverMSEHandshakeCommand.cc
  3109. * src/prefs.h
  3110. * src/DefaultBtAnnounce.cc
  3111. * src/InitiatorMSEHandshakeCommand.cc
  3112. * src/usage_text.h
  3113. * test/MSEHandshakeTest.cc
  3114. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3115. Bump version number to 0.13.0b
  3116. * configure.ac
  3117. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3118. Updated doc.
  3119. * src/MessageDigestHelper.h:
  3120. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3121. Use raw message digest as a token instead of its hexadecimal
  3122. representation.
  3123. * src/DHTTokenTracker.cc (generateToken)
  3124. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3125. Added Message Stream Encryption(MSE) support.
  3126. Currently, aria2 accepts incoming connections with Obfuscation Header
  3127. and legacy BitTorrent Header and establishes connections with
  3128. Obfuscation Header first and if failed then retry with legacy
  3129. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3130. choose ARC4. The new option to change the default behavior is planned.
  3131. For tracker extension, "supportcrypto=1" is added statically.
  3132. * src/PeerInitiateConnectionCommand.{h, cc}
  3133. * src/PeerConnection.{h, cc}
  3134. * src/HandleRegistry.h
  3135. * src/SocketCore.h
  3136. * src/PeerReceiveHandshakeCommand.{h, cc}
  3137. * src/BtRegistry.{h, cc}
  3138. * src/PeerListenCommand.cc
  3139. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3140. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3141. * src/MSEHandshake.{h, cc}
  3142. * src/ARC4Encryptor.h
  3143. * src/ARC4Decryptor.h
  3144. * src/LibgcryptARC4Encryptor.h
  3145. * src/LibgcryptARC4Decryptor.h
  3146. * src/LibgcryptARC4Context.h
  3147. * src/LibsslARC4Encryptor.h
  3148. * src/LibsslARC4Decryptor.h
  3149. * src/LibsslARC4Context.h
  3150. * src/DHKeyExchange.h
  3151. * src/LibgcryptDHKeyExchange.h
  3152. * src/LibsslDHKeyExchange.h
  3153. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3154. * test/DefaultBtAnnounceTest.cc
  3155. * test/ARC4Test.cc
  3156. * test/DHKeyExchangeTest.cc
  3157. Removed prepareForRetry() because it is not used.
  3158. * src/PeerAbstractCommand.{h, cc}
  3159. * src/PeerInteractionCommand.{h, cc}
  3160. * src/PeerInitiateConnectionCommand.{h, cc}
  3161. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3162. Added the ability to load nodes from torrent file. These nodes are
  3163. added to the routing table when downloading that torrent.
  3164. * src/BtContext.h
  3165. * src/DefaultBtContext.{h, cc}
  3166. * src/DHTSetup.cc
  3167. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  3168. hostname and port pair, and resolves all of them.
  3169. * src/NameResolver.{h, cc}: Added reset().
  3170. * src/RequestGroup.cc
  3171. * test/DefaultBtContextTest.cc
  3172. * test/MockBtContext.h
  3173. Removed assert() from DefaultBtContext and throw exception instead.
  3174. * src/DefaultBtContext.cc
  3175. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Fixed segmentation fault bug when exiting if dht is disabled.
  3177. * src/RequestGroup.cc
  3178. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Fixed typo in log message and define the message in message.h
  3180. * src/TimedHaltCommand.cc
  3181. * src/message.h
  3182. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3183. Included RecoverableException.h to fix compilation error.
  3184. * test/DHTMessageFactoryImplTest.cc
  3185. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  3187. * test/DHTPingMessageTest.cc
  3188. * test/DHTGetPeersMessageTest.cc
  3189. * test/DHTFindNodeMessageTest.cc
  3190. * test/DHTAnnouncePeerMessageTest.cc
  3191. * test/MockDHTMessage.h
  3192. * test/MockDHTMessageFactory.h
  3193. * test/MockDHTMessageDispatcher.h: New class.
  3194. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  3196. virtual.
  3197. * src/DHTMessageDispatcher.h
  3198. * src/DHTMessageDispatcherImpl.{h, cc}
  3199. * src/DHTSetup.cc
  3200. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3201. Adding handling of DHT error message. Just log error message and
  3202. throw exception.
  3203. * src/DHTMessageFactoryImpl.cc
  3204. * test/DHTMessageFactoryImplTest.cc
  3205. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Added handling of dynamic cast failure.
  3207. * src/DHTNodeLookupTask.cc
  3208. * src/DHTPeerLookupTask.cc
  3209. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Added the ability to stop aria2 itself when given time has passed
  3211. from start. Use --stop option to specify time in minutes.
  3212. When 0 is given, this feature is disabled.
  3213. * src/OptionHandlerFactory.cc
  3214. * src/TimeBasedCommand.h: Make _interval protected scope.
  3215. * src/HelpItemFactory.cc
  3216. * src/option_processing.cc
  3217. * src/prefs.h
  3218. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  3219. before calling RequestGroupMan::fillRequestGroupFromReserver().
  3220. Without this modification, the result list shows "ERR" when aria2 is
  3221. stopped by --stop option. It should be "INPR".
  3222. * src/DownloadEngine.{h, cc}
  3223. * src/DownloadEngineFactory.cc
  3224. * src/usage_text.h
  3225. * src/TimedHaltCommand.{h, cc}: New class.
  3226. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Bootstrap through node added by port message.
  3228. Currently bootstrap is executed if the number of buckets in routing
  3229. table is 1.
  3230. * src/BtPortMessage.{h, cc}
  3231. * src/DefaultBtMessageFactory.{h, cc}
  3232. * src/PeerInteractionCommand.cc
  3233. * test/BtPortMessageTest.cc
  3234. * test/MockDHTTask.h
  3235. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Extract the Peer class's member variables, which are only needed after
  3237. PeerInteractionCommand, into PeerSessionResource class.
  3238. This class is instantiated in PeerInteractionCommand class's ctor and
  3239. released in its dtor.
  3240. This will make Peer class lightweight and uses less memory for peers
  3241. which are not connected and wait in the queue.
  3242. * src/PeerChokeCommand.cc
  3243. * src/PeerSessionResource.{h, cc}
  3244. * src/PeerInteractionCommand.cc
  3245. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  3246. * src/DefaultBtInteractive.cc
  3247. * src/BtPieceMessage.cc
  3248. * src/BtInterestedMessage.cc
  3249. * src/BtUnchokeMessage.cc
  3250. * src/DefaultPeerStorage.{h, cc}
  3251. * src/PeerInitiateConnectionCommand.cc
  3252. * src/ActivePeerConnectionCommand.cc
  3253. * src/BtNotInterestedMessage.cc
  3254. * src/DefaultBtMessageDispatcher.cc
  3255. * src/BtChokeMessage.cc
  3256. * src/BtRequestMessage.cc
  3257. * src/Peer.{h, cc}
  3258. * src/BtRegistry.h
  3259. * src/TrackerWatcherCommand.cc
  3260. * src/PeerReceiveHandshakeCommand.cc
  3261. * test/BtExtendedMessageTest.cc
  3262. * test/BtAllowedFastMessageTest.cc
  3263. * test/BtCancelMessageTest.cc
  3264. * test/DefaultPieceStorageTest.cc
  3265. * test/BtBitfieldMessageTest.cc
  3266. * test/BtHaveMessageTest.cc
  3267. * test/BtNotInterestedMessageTest.cc
  3268. * test/BtRequestMessageTest.cc
  3269. * test/PeerSessionResourceTest.cc
  3270. * test/DefaultBtMessageDispatcherTest.cc
  3271. * test/PeerTest.cc
  3272. * test/BtInterestedMessageTest.cc
  3273. * test/BtRejectMessageTest.cc
  3274. * test/BtChokeMessageTest.cc
  3275. * test/DefaultPeerStorageTest.cc
  3276. * test/BtHaveNoneMessageTest.cc
  3277. * test/BtHaveAllMessageTest.cc
  3278. * test/DefaultExtensionMessageFactoryTest.cc
  3279. * test/BtUnchokeMessageTest.cc
  3280. * test/DefaultBtMessageFactoryTest.cc
  3281. * test/HandshakeExtensionMessageTest.cc
  3282. * test/UTPexExtensionMessageTest.cc
  3283. * test/DefaultBtRequestFactoryTest.cc
  3284. * test/BtPieceMessageTest.cc
  3285. Removed typedef PeerStats.
  3286. * src/PeerStat.h
  3287. * src/SegmentMan.cc
  3288. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3289. Added std namespace to copy, remove_copy, back_inserter,
  3290. front_inserter.
  3291. * src/RequestGroupMan.cc
  3292. * src/DefaultPieceStorage.cc
  3293. * src/StreamFileAllocationEntry.cc
  3294. * src/BtFileAllocationEntry.cc
  3295. * src/RequestGroup.cc
  3296. * src/MetalinkEntry.cc
  3297. * src/DelegatingPeerListProcessor.cc
  3298. * src/DefaultBtRequestFactory.cc
  3299. * src/DefaultBtMessageDispatcher.cc
  3300. * src/version_usage.cc: Included <algorithm>
  3301. * src/main.cc
  3302. * src/MetalinkParserController.cc
  3303. * src/DefaultBtContext.cc
  3304. * src/DownloadEngineFactory.cc
  3305. * src/a2algo.h
  3306. Removed.
  3307. * test/StreamUriListParserTest.cc
  3308. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3309. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  3310. ActivePeerConnectionCommand when it is given and
  3311. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  3312. * src/ActivePeerConnectionCommand.{h, cc}
  3313. * src/BtSetup.cc
  3314. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3315. Only add socket to DownloadEngine's select routine when peer or
  3316. localhost is unchoked and interested. This lowers CPU usage a
  3317. little bit.
  3318. * src/PeerInteractionCommand.cc
  3319. * src/PeerAbstractCommand.{h, cc}
  3320. * src/BtInteractive.h
  3321. * src/DefaultBtInteractive.{h, cc}
  3322. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. Revert previous change because get_peers message is needed for
  3324. announce_peer anyway.
  3325. * src/DHTGetPeersCommand.cc
  3326. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Request peers thought DHT only when download hasn't finished.
  3328. * src/DHTGetPeersCommand.cc
  3329. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3330. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  3331. * src/DHTBucketRefreshTask.{h, cc}
  3332. * src/DHTSetup.cc
  3333. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  3335. standard classes.
  3336. Included string.h where mem* function are used.
  3337. Added namespace aria2.
  3338. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3339. Create directory before saving DHT routing table.
  3340. Now ios::failure is now handled properly.
  3341. * src/DHTAutoSaveCommand.cc
  3342. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3343. Removed unnecessary cerr.
  3344. * src/DownloadEngine.cc
  3345. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3346. Catch exception inside DHTMessageReceiver::receiveMessage().
  3347. Log unknown message.
  3348. * src/DHTMessageReceiver.{h, cc}
  3349. * src/DHTMessageFactory.h
  3350. * src/DHTMessageFactoryImpl.{h, cc}
  3351. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  3352. * src/DHTInteractionCommand.cc
  3353. * src/DHTUnknownMessage.{h, cc}
  3354. * test/DHTUnknownMessageTest.cc
  3355. * test/MockDHTMessageFactory.h
  3356. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3357. Commented out ip address comparison because a host can have multiple
  3358. ip addresses and it is hard to predict the hostname is resolved into
  3359. which one.
  3360. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  3361. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3362. * po/Makefile.in: Removed since this is generated by configure.
  3363. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Fixed compiler warning about redefinition of SIZE_MAX.
  3365. Use common.h instead of config.h directly here.
  3366. * src/Platform.{h, cc}
  3367. The check of ENABLE_NLS is made in gettext.h, so it is not required
  3368. here.
  3369. * common.h
  3370. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  3371. Updated gettext related files.
  3372. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  3373. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  3374. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3375. Added DHT functionality, compatible with mainline.
  3376. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  3377. You may need to specify entry point to DHT network using
  3378. --dht-entry-point. DHT uses UDP port to listen incoming message.
  3379. Use --dht-listen-port to specify port number. Make sure that your
  3380. firewall configuration can pass through UDP traffic to the port.
  3381. The routing table is saved in $HOME/.aria2/dht.dat.
  3382. * src/DHT*
  3383. * src/BNode.{h, cc}
  3384. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  3385. particular torrent.
  3386. * src/Data.cc: Rewritten ctor.
  3387. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  3388. --dht-entry-point.
  3389. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  3390. * src/RequestGroup.cc: Initialize DHT functionality. When download
  3391. ends, remove BtContext from DHTPeerAnnounceStorage.
  3392. * src/BtPortMessage.{h, cc}: Rewritten.
  3393. * src/message.h
  3394. * src/OptionHandlerImpl.cc
  3395. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  3396. --dht-entry-point.
  3397. * src/Dictionary.{h, cc} (remove): New function.
  3398. * src/prefs.h
  3399. * src/DefaultBtMessageFactory.h
  3400. * src/BtHandshakeMessage.cc
  3401. * src/ActivePeerConnectionCommand.cc
  3402. * src/SocketCore.{h, cc}: Added datagram socket support.
  3403. * src/DefaultBtMessageFactory.cc
  3404. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  3405. Create DHT commands.
  3406. * src/BtMessageFactory.h
  3407. * src/PeerMessageUtil.{h, cc}
  3408. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Fixed the bug that log file is not written when configuration file doesn't exist.
  3410. This is caused by using Logger class before LogFactory is not configured.
  3411. BUG #1875079
  3412. * src/option_processing.cc
  3413. Warning message "configuration doesn't exist" is only printed when --conf is
  3414. given.
  3415. * src/option_processing.cc
  3416. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3417. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  3418. ShaVisitor is now deprecated and slated to be removed.
  3419. * src/DefaultBtContext.cc
  3420. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3421. Externalize message to message.h
  3422. * src/Platform.cc
  3423. * src/message.h
  3424. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Set default domain and default path to cookie.
  3426. * src/HttpResponse.cc
  3427. * src/CookieBox.{h, cc}
  3428. * src/CookieParser.{h, cc}
  3429. * test/CookieParserTest.cc
  3430. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. Added --no-conf and --conf-path command-line option.
  3432. --no-conf option disables loading aria2.conf file.
  3433. --conf-path option changes the configuration file path. The default
  3434. file path is $HOME/.aria2/aria2.conf
  3435. Added a warning message when the configuration file is not found.
  3436. * src/HelpItemFactory.cc
  3437. * src/option_processing.cc
  3438. * src/prefs.h
  3439. * src/usage_text.h
  3440. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3441. Added the message to inform users that other help categories are
  3442. available in -h option.
  3443. * src/version_usage.cc
  3444. * src/TagContainer.{h, cc}
  3445. * test/TagContainerTest.cc
  3446. * src/TaggedItem.{h, cc}
  3447. * test/TaggedItemTest.cc
  3448. * src/HelpItem.h
  3449. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3450. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  3451. from PiecedSegment's ctor.
  3452. Previously Piece::getAllMissingBlockIndexes() is called from
  3453. PiecedSegment() but it is rather expensive since only first element is
  3454. used.
  3455. * src/PiecedSegment.cc
  3456. * src/Piece.{h, cc}
  3457. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Rewritten get*Missing*Index functions. Now no need to allocate memory
  3459. each time these functions are called.
  3460. * src/BitfieldMan.{h, cc}
  3461. * test/BitfieldManTest.cc
  3462. * src/array_fun.h
  3463. * test/array_funTest.cc
  3464. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  3465. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  3466. filtered. Removed unnecessary cast to int32_t.
  3467. * src/BitfieldMan.{h, cc}
  3468. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3469. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  3470. payload length(4bytes) are received. This happens because lenbufLength
  3471. is not updated in this particular case and successive call of
  3472. receiveMessage() overwrites payload length with bytes recieved which
  3473. are payload body.
  3474. * src/PeerConnection.{h, cc}
  3475. * src/message.h
  3476. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3477. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  3478. peer if there are peers that have same ipaddr and port.
  3479. I've experiened segmentation fault and "pure virtual function was
  3480. called" error.
  3481. * src/Peer.h
  3482. * test/PeerTest.cc
  3483. * src/DefaultPeerStorage.cc
  3484. * test/DefaultPeerStorageTest.cc
  3485. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3486. Removed a call to isPowerOf() because it is no longer necessary here
  3487. and a request block is not always power of 2.
  3488. BUG#1866924
  3489. * src/PeerMessageUtil.cc (checkLength)
  3490. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Fixed the bug that always first found Segment is removed from
  3492. usedSegmentEntries. Removed unused functions.
  3493. * src/SegmentMan.{h, cc}
  3494. * test/SegmentManTest.cc
  3495. Fixed the bug that ServerHost is not removed.
  3496. * src/RequestGroup.cc
  3497. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Fixed the bug that SegmentMan::completeSegment() is not called
  3499. even if Segment is complete when --lowest-speed-limit is enabled.
  3500. BUG#1864525
  3501. * src/DownloadCommand.{h, cc}
  3502. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Fixed: hash algorithm 'sha1' is always used.
  3504. * src/DownloadCommand.cc (validatePieceHash)
  3505. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3506. Added --enable-peer-exchange command-line option.
  3507. * src/OptionHandlerFactory.cc
  3508. * src/HelpItemFactory.cc
  3509. * src/option_processing.cc
  3510. * src/usage_text.h
  3511. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Move extension from BtRuntime to ExtensionMessageFactory, because
  3513. extension can be specified per peer, not per torrent.
  3514. * src/DefaultBtInteractive.cc
  3515. * src/BtRuntime.h
  3516. * src/ExtendedMessagingAware.h
  3517. * src/ExtensionMessageFactory.h
  3518. * src/DefaultExtensionMessageFactory.cc
  3519. * test/DefaultExtensionMessageFactoryTest.cc
  3520. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Added categorized option help. Specify category using --help option.
  3522. Also added the ability to search options in forward match.
  3523. * src/HelpItem.{h, cc}
  3524. * test/HelpItemTest.cc
  3525. * src/HelpItemFactory.{h, cc}
  3526. * src/TagContainer.{h, cc}
  3527. * test/TagContainerTest.cc
  3528. * src/option_processing.cc
  3529. * src/prefs.h
  3530. * src/TaggedItem.{h, cc}
  3531. * test/TaggedItemTest.cc
  3532. * src/version_usage.cc
  3533. * src/help_tags.h
  3534. * src/usage_text.h
  3535. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Fixed segmentation fault when bad torrent metainfo is parsed.
  3537. Added dynamic_cast properly to detect the misconfiguration of metainfo
  3538. and then throw exception or skip it.
  3539. * src/DefaultBtContext.{h, cc}
  3540. * test/DefaultBtContextTest.cc
  3541. * src/AnnounceList.cc
  3542. * src/CompactPeerListProcessor.cc
  3543. * src/message.h
  3544. * src/DefaultBtAnnounce.{h, cc}
  3545. * test/DefaultBtAnnounceTest.cc
  3546. * src/BencodeVisitor.cc
  3547. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3548. Added missing "B"(=Byte). So now the message looks like this:
  3549. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  3550. * src/message.h (MSG_SHARE_RATIO_REPORT)
  3551. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Show the seed ratio after torrent downloads.
  3553. For example, after torrent download completed and --seed-time and
  3554. --seed-ratio conditions are fulfilled, following message is printed
  3555. right after "Download complete: .....":
  3556. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  3557. * src/RequestGroupMan.cc
  3558. * src/RequestGroup.{h, cc}
  3559. * src/message.h
  3560. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3561. Remove a defunct control file. A defunct control file means that while
  3562. it exists, but the corresponding download file is missing.
  3563. After its removal, a download restarts from the beginning.
  3564. * src/RequestGroup.cc
  3565. * src/message.h
  3566. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Allocate bitfield in Peer when it is really used. More specifically,
  3568. bitfield in Peer is allocated after the connection is established and
  3569. deallocated when the connection is dropped.
  3570. Since 2 parameters(piece length and total length) was removed from the
  3571. constructor of Peer class, many test classes were modified accordingly.
  3572. See svn log for more detailed information.
  3573. * src/PeerInteractionCommand.cc
  3574. * src/CompactPeerListProcessor.cc
  3575. * src/Peer.cc
  3576. * src/DefaultPeerListProcessor.cc
  3577. * src/PeerListenCommand.cc
  3578. * src/PeerReceiveHandshakeCommand.cc
  3579. Fixed memory leak
  3580. * src/Piece.cc
  3581. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3582. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  3583. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  3584. command-line options.
  3585. * src/option_processing.cc
  3586. * src/ActivePeerConnectionCommand.cc
  3587. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. Send have message to peer if it already has the piece.
  3589. * src/BtHaveMessage.{h, cc}
  3590. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3591. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  3592. port.
  3593. * src/DefaultPeerStorage.{h, cc}
  3594. * test/DefaultPeerStorageTest.cc
  3595. * src/HandshakeExtensionMessage.cc
  3596. * test/HandshakeExtensionMessageTest.cc
  3597. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  3598. * src/PeerStorage.h
  3599. * test/MockPeerStorage.h
  3600. * src/PeerListenCommand.cc
  3601. * src/PeerReceiveHandshakeCommand.cc
  3602. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Added --metalink-enable-unique-protocol option.
  3604. * src/Metalink2RequestGroup.cc
  3605. * src/option_processing.cc
  3606. * src/prefs.h
  3607. * src/version_usage.cc
  3608. * doc/aria2c.1.txt
  3609. * doc/aria2c.1
  3610. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Allow a peer in incomingPeer to be added peers.
  3612. * src/DefaultPeerStorage.cc
  3613. * test/DefaultPeerStorageTest.cc
  3614. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3615. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  3616. I could reproduce this bug in following procedure:
  3617. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  3618. 2. Restart aria2.
  3619. 3. You see the download stopped around 99%.
  3620. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  3621. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  3622. If timeout is reached, then _nextCommand is unused and it may contains
  3623. segments and they won't be canceled. Actually, timeout is not needed
  3624. here because if the server dropped connection, then retry is made.
  3625. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3626. Added uTorrent compatible Peer Exchange.
  3627. * src/BencodeVisitor.{h, cc}
  3628. * test/BencodeVisitorTest.cc
  3629. * src/BtConstants.h
  3630. * src/BtContext.h: Added 'private' flag.
  3631. * src/BtExtendedMessage.{h, cc}
  3632. * test/BtExtendedMessageTest.cc
  3633. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  3634. reserved field.
  3635. * test/BtHandshakeMessageTest.cc
  3636. * src/BtMessageFactory.h
  3637. * src/BtRegistry.h
  3638. * src/BtRuntime.h: This class holds default extension message IDs for
  3639. aria2. By default, aria2 uses ID 8 for ut_pex.
  3640. * src/DefaultBtContext.cc
  3641. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  3642. When it is true, aria2 enables ut_pex. This value is set by
  3643. PeerInteractionCommand.
  3644. * src/DefaultBtMessageFactory.{h, cc}
  3645. * test/DefaultBtMessageFactoryTest.cc
  3646. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  3647. handling to DefaultBtInteractive class.
  3648. * src/DefaultExtensionMessageFactory.{h, cc}
  3649. * test/DefaultExtensionMessageFactoryTest.cc
  3650. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  3651. the container(peers and incomingPeers. The equality is determined by
  3652. Peer::id).
  3653. * test/DefaultPeerStorageTest.cc
  3654. * src/ExtensionMessage.h
  3655. * test/MockExtensionMessage.h
  3656. * src/ExtensionMessageFactory.h
  3657. * test/MockExtensionMessageFactory.h
  3658. * src/HandshakeExtensionMessage.{h, cc}
  3659. * test/HandshakeExtensionMessageTest.cc
  3660. * src/MetaEntry.h
  3661. * src/Peer.{h, cc}
  3662. * src/PeerInteractionCommand.cc
  3663. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  3664. addIncomingPeer.
  3665. * src/PeerMessageUtil.{h, cc}
  3666. * src/PeerObject.h
  3667. * src/UTPexExtensionMessage.{h, cc}
  3668. * test/UTPexExtensionMessageTest.cc
  3669. * src/message.h
  3670. * src/prefs.h
  3671. Fixed the bug that returns incomplete data when it contains null
  3672. character. A convenient constructor was also added.
  3673. * src/Data.{h, cc}
  3674. Rewritten.
  3675. * src/CompactPeerListProcessor.cc
  3676. Fixed typos.
  3677. * src/message.h
  3678. * src/MetaFileUtil.cc
  3679. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3680. Added "Status Legend" label to the explanation text of 'stat' in
  3681. download result and moved it to the last. BUG#1848214
  3682. * src/RequestGroupMan.cc
  3683. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  3685. * src/Makefie.am
  3686. * test/Makefile.am
  3687. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Fixed the bug that prevents aria2 from loading cookie file when expire
  3689. value is greater than 2^31-1. BUG#1851066
  3690. * src/CookieBoxFactory.cc
  3691. * test/CookieBoxFactoryTest.cc
  3692. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Fixed possible memory leak when an exception is thrown.
  3694. * src/XML2SAXMetalinkProcessor.cc
  3695. Added Expat support. If both libxml2 and Expat are installed, then
  3696. libxml2 is used by default.
  3697. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  3698. ExpatMetalinkProcessor according to the configuration.
  3699. * src/ExpatMetalinkProcessor.{h, cc}
  3700. * src/main.cc: Removed libxml2 specific header and init/free function.
  3701. * src/MetalinkProcessorFactory.{h, cc}
  3702. * src/MetalinkHelper.cc
  3703. * src/Metalinker.h: Removed unnecessary libxml2 header.
  3704. * src/MetalinkProcessor.h
  3705. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  3706. MetalinkProcessorTest is used instead.
  3707. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  3708. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  3709. MetalinkProcessorFactory::newInstance().
  3710. * m4/libexpat.m4
  3711. * configure.ac: Added configuration options for libexpat.
  3712. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. Disabled -s option in metalink download.
  3714. * src/Metalink2RequestGroup.cc
  3715. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3716. If several protocols are available for a mirror in metalink file,
  3717. aria2 now use one of them. --metalink-preferred-protocol option was
  3718. added to specify the preference of protocol.
  3719. * src/AbstractCommand.cc
  3720. * src/OptionHandlerFactory.cc
  3721. * src/ServerHost.{h, cc}
  3722. * src/Metalink2RequestGroup.cc
  3723. * src/RequestGroup.{h, cc}
  3724. * test/RequestGroupTest.cc
  3725. * src/option_processing.cc
  3726. * src/prefs.h
  3727. * src/HttpResponseCommand.cc
  3728. * src/MetalinkResource.{h, cc}
  3729. * src/FtpNegotiationCommand.cc
  3730. * src/MetalinkEntry.{h, cc}
  3731. * src/MetalinkEntryTest.cc
  3732. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3733. Code cleanup and added debug log.
  3734. * src/PeerConnection.cc
  3735. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. Compiler error fix: applied the patch by Tiziano Mueller
  3737. * src/RequestGroup.cc
  3738. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3739. Fixed the bug: only first announce URL is tried in AnnounceTier,
  3740. in stopped and completed event.
  3741. * src/AnnounceList.{h, cc}
  3742. * test/AnnounceListTest.cc
  3743. * src/DefaultBtAnnounce.cc
  3744. * test/DefaultBtAnnounceTest.cc
  3745. Sorted URLs.
  3746. * test/Metalink2RequestGroupTest.cc
  3747. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3748. Removed unnecessary string copy. Updated doc and corrected indentation.
  3749. * src/Base64.cc
  3750. Fixed compilation warnings
  3751. * test/DataTest.cc
  3752. * test/HttpRequestTest.cc
  3753. * test/MetaFileUtilTest.cc
  3754. * test/RequestTest.cc
  3755. * Release 0.12.0
  3756. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Updated translations
  3758. * po/{de,fr,ja,nl,ru}.po
  3759. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  3760. translations. Many thanks to translators.
  3761. * po/{ca,es,it,pt_BR,sv}.po
  3762. * po/LINGUAS
  3763. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3764. Added a notice about URL
  3765. * src/version_usage.cc
  3766. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  3767. Fixed the bug#1845750; CTRL+C does not stop torrent.
  3768. aria2 repeatedly sends stopped request when tracker returns error code.
  3769. * src/AnnounceList.cc
  3770. * test/AnnounceListTest.cc
  3771. * src/AnnounceTier.h
  3772. Added a message when ctrl-c is hit.
  3773. Now second ctrl-c is also handled in signal handler.
  3774. * src/RequestGroupMan.{h, cc}
  3775. * src/RequestGroup.{h, cc}
  3776. * src/MultiUrlRequestInfo.cc
  3777. * src/DownloadEngine.cc
  3778. * src/TrackerWatcherCommand.cc
  3779. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. Code cleanup
  3781. * src/Base64.cc (encode)
  3782. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Changed Direct/IO enable/disable procesure in file allocation routine.
  3784. * src/SingleFileAllocationIterator.cc
  3785. (SingleFileAllocationIterator):
  3786. Disable directIO if offset is not multiple of 512.
  3787. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  3788. * src/MultiFileAllocationIterator.cc (allocateChunk):
  3789. Enable created SingleFileAllocationIterator's directIO.
  3790. * src/FileAllocationEntry.cc
  3791. (FileAllocationEntry): Enable directIO here.
  3792. (~FileAllocationEntry): Disable directIO here.
  3793. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3794. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  3795. * src/Peer.{h, cc}
  3796. * src/DefaultPieceStorage.cc
  3797. * test/DefaultPieceStorageTest.cc
  3798. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. Rewritten direct I/O support routine
  3800. * src/SingleFileAllocationIterator.cc
  3801. * src/MultiDiskAdaptor.{h, cc}
  3802. * src/ByteArrayDiskWriter.h
  3803. * src/AbstractSingleDiskAdaptor.h
  3804. * src/AbstractDiskWriter.cc
  3805. * src/DefaultPieceStorage.cc
  3806. * src/DiskWriter.h
  3807. * src/BinaryStream.h
  3808. * src/IteratableChunkChecksumValidator.cc
  3809. * src/IteratableChecksumValidator.cc
  3810. * src/CheckIntegrityEntry.cc
  3811. * src/FileAllocationEntry.cc
  3812. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3813. Fixed typo
  3814. * src/version_usage.cc
  3815. Updated doc
  3816. * doc/aria2c.1.txt
  3817. * doc/aria2c.1
  3818. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Fixed compile error without message digest support.
  3820. * src/FileMetalinkParserState.cc
  3821. * src/MetalinkParserController.{h, cc}
  3822. * test/XML2SAXMetalinkProcessorTest.cc
  3823. * test/MetalinkParserControllerTest.cc
  3824. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Enable direct I/O support in checksum checking.
  3826. * src/IteratableChunkChecksumValidator.{h, cc}
  3827. * test/IteratableChunkChecksumValidatorTest.cc
  3828. * src/CheckIntegrityEntry.cc
  3829. * src/PieceHashCheckIntegrityEntry.cc
  3830. * src/IteratableChecksumValidator.{h, cc}
  3831. * src/BtCheckIntegrityEntry.cc: Added doc.
  3832. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Added --allow-piece-length-change option.
  3834. * src/DefaultBtProgressInfoFile.cc
  3835. * test/DefaultBtProgressInfoFileTest.cc
  3836. * src/OptionHandlerFactory.cc
  3837. * src/option_processing.cc
  3838. * src/prefs.h
  3839. * src/version_usage.cc
  3840. * doc/aria2c.1.txt
  3841. * doc/aria2c.1
  3842. Fixed: duplicated result entry appears when exception is thrown in
  3843. RequestGroup::createInitiateConnectionCommand().
  3844. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  3845. Add RequestGroup to _requestGroup after RequetGroup::
  3846. createInitiateConnectionCommand() succeeds.
  3847. Externalized message
  3848. * src/XML2SAXMetalinkProcessor.cc
  3849. * src/message.h
  3850. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3851. Forced download abort when received negative response from http/ftp
  3852. server.
  3853. * src/HttpResponseCommand.cc
  3854. * src/FtpNegotiationCommand.cc
  3855. * src/HttpResponse.cc
  3856. * src/FtpConnection.cc
  3857. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3858. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  3859. the predecessor, Xml2MetalinkParser class.
  3860. I tested them against 94KB metalink file with 1234 chunk checksums.
  3861. The new one parsed it in 22msec, while it took 6000msec with old one.
  3862. * src/XML2SAXMetalinkProcessor.{h, cc}
  3863. * test/XML2SAXMetalinkProcessorTest.cc
  3864. * src/MetalinkParserController.{h, cc}
  3865. * test/MetalinkParserControllerTest.cc
  3866. * src/MetalinkParserState.h: Also added 16 subclasses.
  3867. * src/main.cc
  3868. * src/Metalink2RequestGroup.cc
  3869. * src/MetalinkHelper.cc
  3870. * src/MetalinkEntry.cc
  3871. * src/ChunkChecksum.h
  3872. Rewritten Base64 class for better performance.
  3873. * src/Base64.{h, cc}
  3874. * test/Base64Test.cc
  3875. * src/HttpRequest.cc
  3876. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. Fixed the bug#1841757: aria2 will connect to server to only get
  3878. file size.
  3879. * src/StreamFileAllocationEntry.cc
  3880. * src/option_processing.cc
  3881. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  3882. downloads.
  3883. * src/FtpNegotiationCommand.cc
  3884. Suppressed wrong message when finding PreDownloadHandler
  3885. * src/RequestGroup.cc
  3886. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Updated usage
  3888. * src/version_usage.cc
  3889. Updated man page
  3890. * doc/aria2c.1.txt
  3891. * doc/aria2c.1
  3892. Updated po files
  3893. * po/aria2c.pot
  3894. * po/*.po
  3895. * po/*.gmo
  3896. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3897. Eliminated g++-4.2 warning
  3898. * src/DownloadHandlerConstants.{h, cc}
  3899. * src/Util.cc
  3900. * test/MetaFileUtilTest.cc
  3901. * test/PStringBuildVisitorTest.cc
  3902. Fixed bug: --check-integrity doesn't work for multi file torrent.
  3903. * src/RequestGroup.cc
  3904. * src/BtCheckIntegrityEntry.cc
  3905. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Fixed a2io.h
  3907. * src/a2io.h
  3908. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3909. Added direct I/O support. The current implementation uses O_DIRECT,
  3910. which is not posix standard and is tested on linux 2.6.21.
  3911. Currently only file allocation uses direct I/O.
  3912. * src/SingleFileAllocationIterator.{h, cc}
  3913. * test/SingleFileAllocationIteratorTest.cc
  3914. * src/MultiFileAllocationIterator.{h, cc}
  3915. * test/MultiFileAllocationIteratorTest.cc
  3916. * src/BinaryStream.h
  3917. * src/DiskWriter.h
  3918. * src/AbstractDiskWriter.{h, cc}
  3919. * src/ByteArrayDiskWriter.h
  3920. * src/DiskAdaptor.h
  3921. * src/AbstractSingleDiskAdaptor.{h, cc}
  3922. * src/MultiDiskAdaptor.{h, cc}
  3923. * src/FileAllocationEntry.cc
  3924. * src/Util.{h, cc}
  3925. * src/OptionHandlerFactory.cc
  3926. * src/prefs.h
  3927. * src/version_usage.cc
  3928. * src/option_processing.cc
  3929. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  3930. handleException.
  3931. * src/MultiFileAllocationIterator.cc
  3932. Added EINTR handling
  3933. * src/SocketCore.cc
  3934. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3935. Updated usage
  3936. * src/version_usage.cc
  3937. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3938. Applied Ross's patch for MinGW port.
  3939. * src/DownloadEngine.h
  3940. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3941. Set Content-Type to SingleFileDownloadContext when http response is
  3942. received.
  3943. * src/HttpResponseCommand.cc
  3944. * src/HttpResponse.{h, cc}
  3945. * test/HttpResponseTest.cc
  3946. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. Rewritten to add content-type support.
  3948. * src/DownloadHandler.{h, cc}
  3949. * src/BtPostDownloadHandler.{h, cc}
  3950. * test/BtPostDownloadHandlerTest.cc
  3951. * src/MetalinkPostDownloadHandler.{h, cc}
  3952. * test/MetalinkPostDownloadHandlerTest.cc
  3953. * src/PostDownloadHandler.{h, cc}
  3954. * src/DownloadHandlerConstants.{h, cc}
  3955. * src/RequestGroup.cc
  3956. * src/HttpResponseCommand.cc
  3957. * src/FtpNegotiationCommand.cc
  3958. * src/SingleFileDownloadContext.{h, cc}
  3959. * src/RequestGroup.h
  3960. * src/RequestGroupCriteria.h
  3961. * src/ContentTypeRequestGroupCriteria.h
  3962. Added 'mem' option value for --follow-metalink, --follow-torrent.
  3963. If it is give, metalink/torrent file is not written to the disk, but
  3964. just is kept in memory. Parsing is occurred on memory.
  3965. * src/MetalinkHelper.{h, cc}
  3966. * src/MetalinkProcessor.h
  3967. * src/Xml2MetalinkProcessor.{h, cc}
  3968. * test/Xml2MetalinkProcessorTest.cc
  3969. * src/DownloadHandlerFactory.{h, cc}
  3970. * test/DownloadHandlerFactoryTest.cc
  3971. * src/PreDownloadHandler.{h, cc}
  3972. * src/OptionHandlerFactory.cc
  3973. * src/DefaultBtContext.{h, cc}
  3974. * test/DefaultBtContextTest.cc
  3975. * src/version_usage.cc
  3976. * src/Metalink2RequestGroup.{h, cc}
  3977. * src/RequestGroup.{h, cc}
  3978. * src/a2functional.h
  3979. * test/a2functionalTest.cc
  3980. * src/MemoryBufferPreDownloadHandler.{h, cc}
  3981. * src/OptionHandlerImpl.h
  3982. * src/prefs.h
  3983. * src/Util.{h, cc}
  3984. * test/UtilTest.cc
  3985. Keep DownloadResult rather than RequestGroup after downloads to reduce
  3986. memory usage.
  3987. * src/RequestGroupMan.{h, cc}
  3988. * src/DownloadEngine.cc
  3989. * src/BtDependency.{h, cc}: Changed the type of dependee from
  3990. WeakHandle to SharedHandle because WeakHandle could be null.
  3991. * src/RequestGroup.{h, cc}
  3992. * src/DownloadEngineFactory.cc
  3993. * src/DownloadResult.h
  3994. Set totalLength after download finished
  3995. * src/UnknownLengthPieceStorage.{h, cc}
  3996. Keep torrent file specified in metalink in memory.
  3997. * src/Metalink2RequestGroup.cc
  3998. * src/BtDependency.cc
  3999. * src/TrueRequestGroupCriteria.h
  4000. Fixed the bug: seekg is used where seekp should be used.
  4001. * src/ByteArrayDiskWriter.cc
  4002. * test/ByteArraydiskWriterTest.cc
  4003. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Fixed syntax error
  4005. * test/SequenceTest.cc
  4006. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4008. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4009. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4010. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4011. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4012. Added the check to see whether ares_host_callback accepts timeouts
  4013. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4014. * src/NameResolver.{h, cc}
  4015. * m4/libcares.m4
  4016. * configure.ac: Set C++ for language choice.
  4017. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Fixed: compilation fails without c-ares/ares
  4019. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4020. Generate http/ftp commands only when download is incomplete.
  4021. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4022. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Corrected typo. Examples are removed since they are available in man
  4024. page.
  4025. * src/version_usage.cc
  4026. Updated man page.
  4027. * doc/aria2c.1
  4028. * doc/aria2c.1.txt
  4029. * doc/makeman: Commented out sed command.
  4030. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4031. Throw DlAbortEx when a remote file is not found.
  4032. * src/HttpResponse.cc
  4033. * src/FtpNegotiationCommand.cc
  4034. * src/message.h
  4035. Overwrite an existing file if --allow-overwrite=true is given.
  4036. * src/RequestGroup.cc
  4037. Removed unused functions
  4038. * src/AbstractCommand.h
  4039. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4040. Removed 'extern' from 'extern typedef ...' in src/*.h
  4041. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4042. Updated usage
  4043. * src/version_usage.cc
  4044. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4045. Trim announce URL
  4046. * src/DefaultBtContext.cc
  4047. * test/ShaVisitorTest.cc
  4048. Trim argument s. Give trimed s to exception constructor.
  4049. * src/Util.cc (parseInt)(parseLLInt)
  4050. * test/UtilTest.cc
  4051. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Set precision back to 1.
  4053. * src/ConsoleStatCalc.cc (calculateStat)
  4054. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4055. Replaced strtol with Util::parseInt
  4056. * src/ChunkedEncoding.cc
  4057. * src/HttpConnection.cc
  4058. * src/CookieBoxFactory.cc
  4059. * src/ParameterizedStringParser.cc
  4060. * src/Util.cc
  4061. * test/UtilTest.cc
  4062. * test/OptionHandlerTest.cc
  4063. * src/Request.cc
  4064. Throw exception when empty string is given. The message for exception
  4065. changed.
  4066. * src/Util.cc (parseInt)(parseLLInt)
  4067. * src/message.h
  4068. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4069. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4070. set to 1.
  4071. * src/ConsoleStatCalc.cc (calculateStat)
  4072. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Preallocate non-requested file which is adjacent forward to requested
  4074. file('requested' files means the files given in --select-file option)
  4075. if they share a same piece.
  4076. This fixes long pause in the file system which doesn't support sparse
  4077. files like FAT32 while downloading.
  4078. * src/MultiFileAllocationIterator.{h, cc}
  4079. * test/MultiFileAllocationIteratorTest.cc
  4080. * src/FileEntry.{h, cc}
  4081. Removed unused _option.
  4082. * src/MultiDiskAdaptor.h
  4083. * test/MultiDiskAdaptorTest.cc
  4084. * src/DefaultPieceStorage.cc
  4085. Set the default value of --seed-ratio to 1.0.
  4086. If 0.0 is given, then seeding continues regardless of share ratio.
  4087. * src/version_usage.cc
  4088. * src/option_processing.cc
  4089. * src/BtSetup.cc
  4090. * doc/aria2c.1.txt
  4091. * doc/aria2c.1
  4092. Fixed: Selective download is not working in BitTorrent
  4093. * src/RequestGroup.cc
  4094. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4095. * src/PieceStorage.h
  4096. * test/MockPieceStorage.h
  4097. * src/UnknownLengthPieceStorage.h
  4098. * src/DefaultPieceStorage.{h, cc}
  4099. * src/Metalink2RequestGroup.cc
  4100. * src/RequestGroup.cc
  4101. * src/Sequence.h
  4102. * test/SequenceTest.cc
  4103. * src/IntSequence.h
  4104. * src/message.h
  4105. * src/Util.{h, cc}
  4106. * test/UtilTest.cc
  4107. Added new function 'parse' to catch exception thrown by subclass's
  4108. parseArg
  4109. * src/OptionHandler.h
  4110. * src/OptionParser.cc
  4111. * src/NameMatchOptionHandler.h
  4112. * src/OptionHandlerImpl.h
  4113. * test/OptionHandlerTest.cc
  4114. Added IntegerRangeOptionHandler. Used for --listen-port and
  4115. --select-file. Now --listen-port accepts range of port.
  4116. * src/OptionHandlerFactory.cc
  4117. * src/version_usage.cc
  4118. * src/OptionHandlerImpl.h
  4119. * src/option_processing.cc
  4120. * src/BtSetup.cc
  4121. * src/PeerListenCommand.{h, cc}
  4122. * doc/aria2c.1.txt
  4123. * doc/aria2c.1
  4124. Implemented operator< for Exception class to provide easy way to print
  4125. exception stack trace.
  4126. * src/Exception.{h, cc}
  4127. * src/main.cc
  4128. * src/option_processing.cc
  4129. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. * src/version_usage.cc
  4131. (showVersion): Reworked.
  4132. (showUsage): Added examples.
  4133. Removed Hint for total length and file name.
  4134. * src/Metalink2RequestGroup.cc
  4135. * src/RequestGroup.{h, cc}
  4136. * src/HttpResponseCommand.cc
  4137. * src/FtpNegotiationCommand.cc
  4138. Now --follow-torrent and --follow-metalink option work properly.
  4139. * src/RequestGroup.cc
  4140. Updated man page
  4141. * doc/aria2c.1.txt
  4142. * doc/aria2c.1
  4143. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Removed.
  4145. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4146. Use Segment::operator==()
  4147. * src/HttpConnection.cc
  4148. * src/Segment.h
  4149. Updated usage
  4150. * src/version_usage.cc
  4151. Added EINTR treatment.
  4152. * src/SocketCore.cc
  4153. * src/AbstractDiskWriter.cc
  4154. Rewritten.
  4155. * src/Util.cc (rangedFileCopy)
  4156. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4157. Fixed typo.
  4158. * src/version_usage.cc
  4159. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4160. Implemented. Now -c option works fine.
  4161. * src/DefaultPieceStorage.cc (markPiecesDone)
  4162. * test/DefaultPieceStorageTest.cc
  4163. Removed.
  4164. * src/SegmentMan.{h, cc}
  4165. (markAllPiecesDone)
  4166. (markPieceDone)
  4167. Synchronized po files with
  4168. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  4169. * src/fr.po
  4170. * src/ru.po
  4171. * src/de.po
  4172. * src/ja.po
  4173. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4174. Added ifdef and some modifications to compile without BitTorrent,
  4175. Metalink, MessageDigest
  4176. support.
  4177. * src/PieceHashCheckIntegrityEntry.cc
  4178. * src/MetalinkEntry.h
  4179. * src/version_usage.cc
  4180. * src/main.cc
  4181. * src/DownloadEngine.{h, cc}
  4182. * src/Metalink2RequestGroup.cc
  4183. * src/Peer.cc
  4184. * src/RequestGroup.cc
  4185. * src/MetalinkHelper.cc
  4186. * test/DefaultPieceStorageTest.cc
  4187. * test/MetalinkPostDownloadHandlerTest.cc
  4188. * test/Metalink2RequestGroupTest.cc
  4189. Hide TOTAL SPD when all downloads complete.
  4190. * src/ConsoleStatCalc.cc
  4191. Log target system information.
  4192. * src/main.cc
  4193. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4194. Now --metalink-location accepts a comma-deliminated list of locations.
  4195. * src/MetalinkEntry.{h, cc}
  4196. * test/MetalinkEntryTest.cc
  4197. * src/version_usage.cc
  4198. * src/Metalink2RequestGroup.cc
  4199. * src/Xml2MetalinkProcessor.cc
  4200. * test/Xml2MetalinkProcessorTest.cc
  4201. * doc/aria2c.1.txt
  4202. * doc/aria2c.1
  4203. * src/Util.cc (toUpper)(toLower): Rewritten.
  4204. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4205. Added the ability to detect duplicate download entry which is about to
  4206. download the same file other RequestGroup is downloading.
  4207. * src/RequestGroup.cc
  4208. * src/HttpResponseCommand.cc
  4209. * src/FtpNegotiationCommand.cc
  4210. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4211. Recalculates download progress when loading a control file,
  4212. if the piece length of DownloadContext is different from the one saved
  4213. in the control file. Currently in-flight pieces are ignored.
  4214. * src/DefaultBtProgressInfoFile.cc
  4215. * test/DefaultBtProgressInfoFileTest.cc
  4216. * src/Util.{h, cc}
  4217. * test/UtilTest.cc
  4218. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Do not rotate tiers in announce-list.
  4220. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  4221. AnnounceList::allTiersFailed() used instead to detect whether all
  4222. tiers are tried and failed.
  4223. * test/DefaultBtAnnounceTest.cc
  4224. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  4225. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  4226. * test/AnnounceListTest.cc
  4227. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  4228. clause. Catch RecoverableException instead of DlRetryEx instead.
  4229. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4230. Implemented checksum validation feature(1 checksum for each file)
  4231. The validation takes place after the download.
  4232. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  4233. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  4234. * src/CheckIntegrityCommand.cc: Changed log message.
  4235. * src/Metalink2RequestGroup.cc: Set checksum to
  4236. SingleFileDownloadContext.
  4237. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  4238. PieceHashCheckIntegrity class.
  4239. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  4240. PieceHashCheckIntegrity class.
  4241. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  4242. * src/IteratableValidator.h: New class.
  4243. * src/message.h
  4244. * src/CheckIntegrityEntry.{h, cc}
  4245. * src/IteratableChunkChecksumValidator.{h, cc}
  4246. * src/SingleFileDownloadContext.h
  4247. * src/DownloadCommand.cc
  4248. --allow-overwrite=true is no longer needed to check file integrity
  4249. before download in BitTorrent download.
  4250. * src/RequestGroup.cc (getInitialCommand)
  4251. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  4252. throws exception.
  4253. * src/RequestGroupMan.cc (getInitialCommands)
  4254. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. urlencode the given url inside Request::parseUrl(...)
  4256. * src/Request.{h, cc}
  4257. * src/Util.{h, cc}
  4258. * test/RequestTest.cc
  4259. Removed #!metalink3! notation support because it is deleted from
  4260. the metalink specification.
  4261. * src/Request.{h, cc}
  4262. * test/RequestTest.cc
  4263. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4264. Don't connect server before checking file integrity at startup, if
  4265. filesize and output file path are known.
  4266. * src/AbstractCommand.cc
  4267. * src/StreamFileAllocationEntry.cc
  4268. * src/Metalink2RequestGroup.cc
  4269. * src/RequestGroup.{h, cc}
  4270. * src/HttpResponseCommand.cc
  4271. * src/FtpNegotiationCommand.cc
  4272. Added DownloadFailureException. If it is thrown, RequestGroup should
  4273. halt.
  4274. * src/AbstractCommand.cc
  4275. * src/DownloadFailureException.h
  4276. * src/RequestGroup.cc
  4277. Catch RecoverableException, instead of DlAbortEx.
  4278. * src/RequestGroupMan.cc
  4279. * src/FillRequestGroupCommand.cc
  4280. * src/MetaFileUtil.cc
  4281. * src/IteratableChunkChecksumValidator.cc
  4282. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  4283. getGID())
  4284. * src/CheckIntegrityCommand.cc
  4285. * src/message.h
  4286. Print gid instead of idx.
  4287. * src/RequestGroupMan.cc
  4288. Removed exception throwers declaration.
  4289. * src/DirectDiskAdaptor.{h, cc}
  4290. * src/SocketCore.{h, cc}
  4291. * src/MultiDiskAdaptor.{h, cc}
  4292. * src/HttpConnection.{h, cc}
  4293. * src/HttpResponse.{h, cc}
  4294. * src/DiskAdaptor.{h, cc}
  4295. * src/CopyDiskAdaptor.{h, cc}
  4296. * src/MultiDiskAdaptor.{h, cc}
  4297. * src/HttpHeaderProcessor.{h, cc}
  4298. * src/AbstractSingleDiskAdaptor.{h, cc}
  4299. * src/Util.{h, cc}
  4300. * test/UtilTest.cc
  4301. * src/DefaultDiskWriter.{h, cc}
  4302. * src/FtpConnection.{h, cc}
  4303. * src/AbstractDiskWriter.{h, cc}
  4304. Removed duplicate code.
  4305. * src/StreamCheckIntegrityEntry.cc
  4306. Removed unnecessary include.
  4307. * src/DiskWriter.h
  4308. Included Exception.h
  4309. * src/option_processing.cc
  4310. Included 2 files and added doc
  4311. * src/TrackerWatcherCommand.cc
  4312. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  4313. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Changed CheckIntegrityEntry interface so that it can define
  4315. the action when all the chunk checksums are valid.
  4316. * src/CheckIntegrityEntry.h
  4317. * src/StreamCheckIntegrityEntry.{h, cc}
  4318. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  4319. are valid, then aira2 goes to seeding mode. Sometimes it is better
  4320. to exit rather than doing seeding. So, it would be good to toggle this
  4321. behavior.
  4322. * src/CheckIntegrityCommand.cc
  4323. * src/AbstractCommand.cc
  4324. * src/RequestGroup.cc
  4325. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4326. Reflect the download length of in-flight pieces.
  4327. It makes the download length readout more precise.
  4328. * src/DefaultPieceStorage.{h, cc}
  4329. * test/DefaultPieceStorageTest.cc
  4330. * src/a2functional.h
  4331. * test/a2functionalTest.cc
  4332. Lower CPU load when --max-download-limit is used.
  4333. There is up and down in speed indicator when enabling
  4334. http-pipelining but a download goes well. I think the problem is that
  4335. because http-pipelining is enabled, DownloadCommand is created for
  4336. each segment and in its constructor, PeerStat::downloadStart() is
  4337. called. In PeerStat::downloadStart(), speed calculation object is
  4338. reseted, which makes download speed zero.
  4339. * src/DownloadCommand.cc
  4340. Rewritten using accumulate.
  4341. * src/RequestGroupMan.cc (calculateStat)
  4342. Code clearnup.
  4343. * src/FtpNegotiationCommand.cc
  4344. * src/HttpResponseCommand.cc
  4345. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4346. Fixed: Can not resume: aria2 reports download already finished.
  4347. * src/AbstractCommand.{h, cc}
  4348. * src/HttpResponseCommand.cc
  4349. * src/FtpNegotiateCommand.cc
  4350. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4351. Now a file is stored in the directory specified in .metalnk file
  4352. (file[@name]).
  4353. * src/Metalink2RequestGroup.cc
  4354. Create the directory structure when opening the file if it doesn't
  4355. exist.
  4356. * src/AbstractDiskWriter.cc
  4357. * src/Util.{h, cc}
  4358. * src/File.h
  4359. * test/UtilTest.cc
  4360. Removed file name comparison
  4361. * src/Metalink2RequestGroup.cc
  4362. * src/HttpResponseCommand.cc
  4363. Rewritten using Util::mkdirs()
  4364. * src/FileEntry.cc (setupDir)
  4365. * test/FileEntryTest.cc
  4366. Updated doc
  4367. * src/SingleFileDownloadContext.h
  4368. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Now SleepCommand dispatches nextCommand when halt is requested.
  4370. It avoids a possible long wait after hitting CTRL-C.
  4371. * src/SleepCommand.{h, cc}
  4372. * src/RequestGroupAware.{h, cc}
  4373. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4374. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  4375. to open listen port, then remove the port number from the tracker
  4376. request.
  4377. * src/DefaultBtAnnounce.cc
  4378. * test/DefaultBtAnnounceTest.cc
  4379. * test/MockPieceStorage.h
  4380. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  4381. them more testable.
  4382. * src/DefaultBtAnnounce.{h, cc}
  4383. * src/DefaultBtContext.{h, cc}
  4384. * src/Util.{h, cc}
  4385. * test/DefaultBtAnnounceTest.cc
  4386. * test/DefaultBtContextTest.cc
  4387. * test/UtilTest.cc
  4388. Added 'B' to upload bytes readout.
  4389. * src/ConsoleStatCalc.cc
  4390. Now the listen port for BitTorrent download is opened when it is
  4391. needed.
  4392. * src/DownloadEngineFactory.cc
  4393. * src/BtSetup.{h, cc}
  4394. * src/PeerListenCommand.{h, cc}
  4395. Now an exception thrown while parsing tracker response is now logged.
  4396. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  4397. called, which means no retry is made in this case, assuming a tracker
  4398. has a problem.
  4399. * src/TrackerWatcherCommand.cc
  4400. Fixed: downloading a file whose length is unkown fails.
  4401. * src/DownloadCommand.cc
  4402. Simplified prepareForNextSegment()
  4403. * src/DownloadCommand.cc
  4404. Updated
  4405. * po/POTFILES.in
  4406. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4407. Re-implemented a file listing for Metalink, which was dropped while
  4408. http/ftp/torrent integration was being implemented.
  4409. * src/MetalinkHelper.{h, cc}: New class.
  4410. * test/MetalinkHelperTest.cc
  4411. * src/main.cc
  4412. * src/Metalink2RequestGroup.cc
  4413. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Added the ability to display the detailed torrent file information.
  4415. Now -S option gives not only a file listing, but also total download
  4416. length, info hash, announce URI, piece length, the number of pieces,
  4417. and mode(single or multi-torrent).
  4418. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  4419. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  4420. KiB)
  4421. * test/UtilTest.cc
  4422. * src/main.cc
  4423. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4424. Added ftp://USER:PASSWD@Servername automatic parsing.
  4425. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  4426. _password. Recognize username and password in URI.
  4427. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  4428. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  4429. * src/RequestFactory.{h, cc}: Removed.
  4430. * src/AuthConfigFactory.{h, cc}: New class.
  4431. * src/FtpConnection.cc: Use AuthConfigFactory.
  4432. * src/HttpRequest.cc: Use AuthConfigFactory.
  4433. * test/HttpRequestTest.cc: Updated.
  4434. * test/RequestTest.cc: Updated.
  4435. * test/AuthConfigFactoryTest.cc: New class.
  4436. * test/RequestFactoryTest.cc: Removed.
  4437. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Use RequestGroup::allDownloadFinished() to decide whether the control
  4439. file should be removed or saved.
  4440. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  4441. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  4442. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Use File::renameTo()
  4444. * src/DefaultBtProgressInfoFile.cc
  4445. Added --no-file-allocation-limit command-line option.
  4446. * src/version_usage.cc
  4447. * src/option_processing.cc
  4448. * src/OptionHandlerFactory.cc
  4449. * src/RequestGroup.{h, cc}
  4450. * src/BtCheckIntegrityEntry.cc
  4451. * src/StreamCheckIntegrityEntry.cc
  4452. * src/prefs.h
  4453. * doc/aria2c.1.txt
  4454. * doc/aria2c.1
  4455. Now prealloc is the default value for --file-allocation option.
  4456. * src/version_usage.cc
  4457. * src/option_processing.cc
  4458. * doc/aria2c.1.txt
  4459. * doc/aria2c.1
  4460. Don't URL-encode user-agent.
  4461. * src/HttpRequest.cc
  4462. Updated translations
  4463. * po/LINGUAS: Added nl for Dutch translation.
  4464. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  4465. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  4466. * po/POTFILES.in: Updated.
  4467. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4468. Added the ability to recognize url-list in a torrent file.
  4469. The retrieved URLs are attached to the corresponding FileEntry.
  4470. * src/DefaultBtContext.{h, cc}
  4471. * src/FileEntry.{h, cc}
  4472. * test/DefaultBtContextTest.cc
  4473. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  4475. after the download finishes.
  4476. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  4478. the data smaller than block length.
  4479. A block length can be specified by constructor's argument.
  4480. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  4481. Get a missing piece in the range of given FileEntry. This function is
  4482. not used in the program yet.
  4483. * src/Util.h: Added some macros.
  4484. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Added HTTP/1.1 keep alive and pipelining support.
  4486. See --enable-http-keep-alive and --enable-http-pipelining option.
  4487. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  4488. Segment.
  4489. * src/HttpDownloadCommand.{h, cc}
  4490. * src/OptionHandlerFactory.cc
  4491. * src/HttpConnection.{h, cc}
  4492. * src/version_usage.cc
  4493. * src/HttpInitiateConnectionCommand.cc
  4494. * src/FtpInitiateConnectionCommand.cc
  4495. * src/Segment.h
  4496. * src/HttpRequestCommand.{h, cc}
  4497. * src/option_processing.cc
  4498. * src/prefs.h
  4499. * src/HttpResponseCommand.cc
  4500. * src/SegmentMan.{h, cc}
  4501. * src/FtpNegotiateCommand.cc
  4502. * src/HttpProxyResponseCommand.cc
  4503. * src/Request.cc
  4504. * src/HttpRequest.cc
  4505. * src/DownloadCommand.cc
  4506. * test/HttpRequestTest.cc
  4507. * test/RequestTest.cc
  4508. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  4510. finished.
  4511. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  4513. catching it inside the method.
  4514. When no file entry is found in a metalink without querying user
  4515. preferences, throw the exception with the error message that suggests
  4516. metalink file is probably broken.
  4517. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  4518. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4519. Fixed the bug that prevents remote Metalink/Torrent file from begin
  4520. processed.
  4521. * src/RequestGroupMan.cc (removeStoppedGroup)
  4522. Added debug message.
  4523. * src/BtPostDownloadHandler.cc
  4524. * src/MetalinkPostDownloadHandler.cc
  4525. * src/PostDownloadHandler.{h, cc}
  4526. * src/RequestGroup.cc
  4527. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4528. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  4529. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  4531. stops and there are any unfinished or in-progress downloads.
  4532. Added the legend of "stat".
  4533. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Throw exception when chunck checksum verification fails.
  4535. * src/DownloadCommand.cc (validatePieceHash): New function.
  4536. * src/PiecedSegment.{h, cc} (clear): New function.
  4537. * src/GrowSegment.{h, cc} (clear): New function.
  4538. * src/Segment.h (clear): New function.
  4539. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  4540. * test/SegmentTest.cc
  4541. * test/GrowSegmentTest.cc
  4542. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. Do not send referer when redirected.
  4544. * src/Request.cc (redirectUrl)
  4545. * test/RequestTest.cc
  4546. * test/HttpRequestTest.cc
  4547. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4548. Implemented BitTorrent/http/ftp integrated download.
  4549. I've rewritten lots of files and now some headers have forward
  4550. class declarations to reduce compile time.
  4551. The implementation is extremely alpha stage, I recommend to use this
  4552. for testing purpose only.
  4553. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Fixed the compilation error on 64bit platform.
  4555. * test/HttpHeaderProcessorTest.cc
  4556. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Merged Ross's patch that fixes compilation problem in MinGW
  4558. * test/DefaultBtProgressInfoFileTest.cc
  4559. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Updated fr.po by sebone
  4561. * po/fr.po
  4562. Updated man page.
  4563. * doc/aria2c.1.txt
  4564. * Release 0.11.3
  4565. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  4567. failure in Metalink.
  4568. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. Automatically save *.aria2 control file of http/ftp download in every
  4570. 60 seconds.
  4571. * src/AutoSaveCommand.{h, cc}: New class.
  4572. * src/TimeBasedCommand.{h, cc}: New class.
  4573. * src/DownloadEngineFactory.cc (newConsoleEngine)
  4574. Disable parameterized URI support by default. Added -P option to
  4575. enable the feature.
  4576. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  4577. * src/OptionHandlerFactory.cc
  4578. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  4579. Updated Japanese translation.
  4580. * po/ja.po
  4581. Updated man page.
  4582. * doc/aria2c.1.txt
  4583. * Release 0.11.3-rc
  4584. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  4586. it is successful, then renamed to *.aria2.
  4587. This prevents *.aria2 file from being truncated or corrupted when
  4588. file system becomes out of space.
  4589. * src/DefaultBtProgressInfoFile.cc (save)
  4590. * src/SegmentMan.cc (save)
  4591. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  4592. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Reduced the fragmentation of bitfield in http/ftp download.
  4594. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  4595. * test/BitfieldManTest.cc
  4596. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4597. Added the ability to disable segmented download in .metalink.
  4598. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  4599. 'url' tag.
  4600. * src/MetalinkEntry.{h, cc}
  4601. * src/RequestResource.{h, cc}
  4602. * src/MetalinkRequestInfo.cc
  4603. * src/Xml2MetalinkProcessor.cc
  4604. * test/Xml2MetalinkProcessorTest.cc
  4605. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4606. Added parameterized URI support.
  4607. * src/main.cc: -Z option added.
  4608. * src/OptionHandlerFactory.cc
  4609. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  4610. * src/PStringDatum.h: New class.
  4611. * src/PStringSegment.{h,cc}: New class.
  4612. * src/PStringNumLoop.h: New class.
  4613. * src/PStringSelect.h: New class.
  4614. * src/NumberDecorator.h: New class.
  4615. * src/FixedWidthNumberDecorator.h: New class.
  4616. * src/AlphaNumberDecorator.h: New class.
  4617. * src/PStringVisitor.h: New class.
  4618. * src/PStringBuildVisitor.{h,cc}: New class.
  4619. * src/ParameterizedStringParser.{h,cc}: New class.
  4620. * src/Util.{h,cc}
  4621. (isNumber): New function.
  4622. (isLowercase): New function.
  4623. (isUppercase): New function.
  4624. (alphaToNum): New function.
  4625. * test/ParameterizedStringParserTest.cc: New class.
  4626. * test/AlphaNumberDecoratorTest.cc: New class.
  4627. * test/PStringBuildVisitorTest.cc: New class.
  4628. * test/UtilTest.cc
  4629. (testIsNumber): New function.
  4630. (testIsLowercase): New function.
  4631. (testIsUppercase): New function.
  4632. (testAlphaToNum): New function.
  4633. Added '\n' after the error message
  4634. * src/RequestInfo.h (printDownloadAbortMessage)
  4635. Added auto file renaming feature in http(s)/ftp download.
  4636. * src/main.cc: Added --auto-file-renaming command-line option.
  4637. * src/OptionHandlerFactory.cc
  4638. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  4639. * src/RequestGroup.{h, cc}
  4640. (shouldCancelDownloadForSafety): Rewritten
  4641. (tryAutoFileRenaming): New function.
  4642. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  4643. * src/HttpResponseCommand.cc
  4644. (executeInternal): Removed the call to RequestGroupMan::
  4645. isSameFileBeingDownloaded()
  4646. * src/FtpNegotiateCommand.cc
  4647. (recvSize): Removed the call to RequestGroupMan::
  4648. isSameFileBeingDownloaded()
  4649. * test/RequestGroupTest.cc: New class.
  4650. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  4652. IO.
  4653. * src/DefaultBtProgressInfoFile.cc
  4654. * src/MetaFileUtil.cc
  4655. * src/SimpleLogger.cc
  4656. * src/SegmentMan.cc
  4657. * src/Util.cc
  4658. * src/Platform.cc
  4659. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4660. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  4661. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4662. Avoid sparse files if possible, because VFAT32 doesn't support it.
  4663. * src/DefaultDiskWriter.cc (initAndOpenFile)
  4664. Fixed the bug that prevents file allocation is not done when
  4665. dowloading multi-torrent file.
  4666. * src/AbstractDiskWriter.cc (openFile)
  4667. Increase the maximum number of -j option from 15 to 45.
  4668. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4669. Added fr.po, thanks to Charles Landemaine.
  4670. * po/fr.po
  4671. * po/LINGUAS
  4672. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4673. gcc 3.4.4 support:
  4674. * src/DefaultBtContext.cc: int32_t -> int
  4675. * src/main.cc: int -> int32_t, int32_t -> int
  4676. * src/messageDigest.h: uint32_t -> unsigned int
  4677. * src/NameResolver.h: int32_t -> int
  4678. * src/PeerConnection.cc: int -> int32_t
  4679. * src/SpeedCalc.cc: int32_t -> int
  4680. * src/TrackerUpdateCommand.h: int -> int32_t
  4681. * src/Util.cc: int32_t -> int
  4682. * src/Util.h: int32_t -> int
  4683. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  4684. * test/AnnounceListTest.cc: int -> int32_t
  4685. * test/ChunkedEncodingTest.cc: int -> int32_t
  4686. * test/DataTest.cc: int -> int32_t
  4687. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  4688. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  4689. * test/DefaultPieceStorageTest.cc: int -> int32_t
  4690. * test/FeatureConfigTest.cc: int -> int32_t
  4691. * test/MetalinkEntryTest.cc: int -> int32_t
  4692. * test/MockBtRequestFactory.h: int -> int32_t
  4693. * test/MockPieceStorage.h: int -> int32_t
  4694. * test/OptionTest.cc: int -> int32_t
  4695. * test/RequestTest.cc: int -> int32_t
  4696. * test/SegmentManTest.cc: int -> int32_t
  4697. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  4698. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4699. Move sleep functions to Util class:
  4700. * src/Util.cc
  4701. (sleep): New function.
  4702. (usleep): New function.
  4703. * src/DownloadCommand.cc: sleep -> Util::sleep
  4704. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  4705. MinGW build enhancements. The following files are added:
  4706. * src/timegm.{c,h}
  4707. Changes to support the above new files:
  4708. * configure.ac
  4709. * src/Makefile.am
  4710. * src/a2time.h
  4711. * src/Util.cc:
  4712. * src/strptime.c: Added support for %Z option.
  4713. Fixed MinGW non-blocking bug.
  4714. * src/SocketCore.cc
  4715. * src/HttpRequestCommand.cc
  4716. Miscellenous build fixes/enhancements.
  4717. * configure.ac: Added summary report.
  4718. * src/Platform.h: Tweaked #include's.
  4719. * src/a2netcompat.h: Tweaked #include's.
  4720. * src/strptime.h: Tweaked #include's.
  4721. * src/gai_strerror.c: Tweaked #include's.
  4722. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  4723. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  4724. * src/gettimeofday.h: Added HAVE_CONFIG_H
  4725. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4726. Increased the initial connection size in BitTorrent download to 40.
  4727. * src/BtRuntime.h
  4728. Added the usage message of --peer-id-prefix option.
  4729. * src/main.cc
  4730. * Release 0.11.2
  4731. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4732. MessageDigestHelper is introduced in order to simplify the use
  4733. of message digest. Removed repeated code.
  4734. The message digest algorithm is now specified by string, like "sha1",
  4735. "md5".
  4736. * src/messageDigest.{h, cc}
  4737. * src/MessageDigestHelper.{h, cc}: New class.
  4738. * src/DefaultPieceStorage.cc
  4739. * src/DefaultBtContext.{h, cc}
  4740. (computeFastSet): New function.
  4741. (setInfoHash): Added for unit testing.
  4742. (setNumPieces): Added for unit testing.
  4743. * src/DefaultBtInteractive.cc
  4744. * src/BtPieceMessage.cc
  4745. * src/Peer.cc
  4746. * src/Checksum.h
  4747. * src/message.h
  4748. * src/IteratableChecksumValidator.h
  4749. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  4750. inside it.
  4751. * src/SegmentMan.{h, cc}
  4752. (checkIntegrity): Removed.
  4753. * src/IteratableChunkChecksumValidator.{h, cc}
  4754. * src/Util.h
  4755. (sha1Sum): Removed.
  4756. (simpleMessageDigest): Removed.
  4757. (fileChecksum): Removed.
  4758. (computeFastSet): Removed.
  4759. * src/ShaVisitor.cc
  4760. * src/ChunkChecksum.h
  4761. * src/DownloadCommand.cc
  4762. Removed messageDigest virtual functions.
  4763. * src/MultiDiskAdaptor.{h, cc}
  4764. * src/DiskAdaptor.h
  4765. * src/ByteArrayDiskWriter.h
  4766. * src/DiskWriter.h
  4767. * src/DiskAdaptorWriter.h
  4768. * src/AbstractSingleDiskAdaptor.{h, cc}
  4769. * src/AbstractDiskWriter.{h, cc}
  4770. Fixed comilation error when message digest is disabled.
  4771. * src/MetalinkEntry.{h, cc}
  4772. * src/MetalinkRequestInfo.cc
  4773. Removed srandom and random.
  4774. * src/SimpleRandomizer.h
  4775. Added size() virtual function to DiskAdaptor
  4776. * src/MultiDiskAdaptor.h
  4777. Fixed the bug that causes that files are not opened correctly in
  4778. multi-file torrent.
  4779. * src/TorrentRequestInfo.cc
  4780. * src/MultiDiskAdaptor.cc
  4781. Added SHA256 support
  4782. * src/messageDigest.cc
  4783. * src/Xml2MetalinkProcessor.cc
  4784. Show supported message digest algorithms
  4785. * src/main.cc
  4786. Updated contact info.
  4787. * src/main.cc
  4788. Applied Ross's patch
  4789. * src/a2netcompat.h
  4790. * src/main.cc
  4791. Fixed the bug that prevents a remote metalink from not being processed
  4792. even if '-o foo.metalink' is specified.
  4793. * src/MetalinkRequestInfo.cc
  4794. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Merged Dan's patch:
  4796. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  4797. Use va_copy to avoid core dump on amd64:
  4798. * src/SimpleLogger.cc
  4799. Updated contact info.
  4800. * src/main.cc
  4801. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  4802. digest is not available.
  4803. * src/MetalinkEntry.h
  4804. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. Make a2netcompat.h include a2io.h to fix compilation error:
  4806. * src/a2netcompat.h
  4807. * src/SocketCore.cc: Removed include of a2io.h
  4808. * src/Util.cc: Removed include of a2io.h
  4809. Gather time related functions to a2time.h:
  4810. * src/a2time.h: New file.
  4811. * src/DefaultPeerStorage.cc
  4812. * src/SimpleLogger.cc
  4813. * src/Util.{h, cc}
  4814. * src/SimpleRandomizer.h
  4815. * src/TimeA2.{h,cc}
  4816. * src/DownloadCommand.cc
  4817. * src/main.cc
  4818. Removed #ifdef __MINGW32__ since gai_strerror is included in
  4819. a2netcompat.h:
  4820. * src/NameResolver.cc
  4821. Fixed compilation error without openssl:
  4822. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  4823. Added default block to suppress compiler warnings:
  4824. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  4825. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  4826. MinGW build enhancements. The following files are added:
  4827. * src/gai_strerror.{c,h}
  4828. * src/gettimeofday.{c,h}
  4829. Changes to support the above new files:
  4830. * configure.ac
  4831. * src/Makefile.am
  4832. * src/a2netcompat.h
  4833. * src/TimeA2.cc
  4834. * src/DefaultPeerStorage.cc
  4835. * src/NameResolver.cc: removed mingw_strerror() function.
  4836. * src/SocketCore.cc: removed mingw_strerror() function.
  4837. Miscellaneous MinGW build fixes.
  4838. * src/a2io.h: Use _lseeki64() instead of lseek()
  4839. * src/common.h
  4840. * src/DefaultFileAllocator.cc
  4841. * src/GlowFileAllocator.cc
  4842. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  4843. * src/NameResolver.cc
  4844. (callback): Changed int32_t to int.
  4845. (resolve): Changed int32_t to int.
  4846. * src/Platform.cc
  4847. * src/Platform.h
  4848. * test/MultiDiskWriterTest.cc
  4849. * test/PeerMessageUtilTest.cc
  4850. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  4851. Other enhancements and fixes.
  4852. * src/HttpRequestCommand.cc
  4853. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  4854. * src/SocketCore.cc:
  4855. (error): New function to abstract errno/WSAGetLastError().
  4856. (errorMsg): New function to abstract errno/WSAGetLastError().
  4857. (initiateSecureConnection): Added more detailed error reporting.
  4858. * src/SocketCore.h: Added private variable blocking, to allow
  4859. proper handling of OpenSSL psuedo-errors.
  4860. * src/message.h
  4861. (EX_SSL_INIT_FAILURE)
  4862. (EX_SSL_IO_ERROR)
  4863. (EX_SSL_PROTOCOL_ERROR)
  4864. (EX_SSL_UNKNOWN_ERROR)
  4865. (EX_SSL_CONNECT_ERROR)
  4866. (EX_SOCKET_BLOCKING)
  4867. (EX_SOCKET_NONBLOCKING)
  4868. (EX_SOCKET_UNKNOWN_ERROR)
  4869. * src/Util.cc
  4870. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  4871. reserved name.
  4872. (httpGMT): Fixed typo.
  4873. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Merged Ross's win32 patch(manually)
  4875. In the course of merging, following files are added.
  4876. * src/strptime.{h,c}
  4877. * src/libgen.{h,c}
  4878. * src/inet_aton.{h,c}
  4879. * src/Platform.{h,cc}
  4880. * src/localtime_r.{h,c}
  4881. * src/getaddrinfo.{h,c}
  4882. I've gethered network related things, and put them to following file:
  4883. * src/a2netcompat.h
  4884. Also io related things are put to following file:
  4885. * src/a2io.h
  4886. Changed %lld to %s because mingw32 doesn't recognize %lld.
  4887. * src/message.h
  4888. (MSG_ALLOCATION_COMPLETED)
  4889. (EX_TOO_LARGE_FILE)
  4890. (EX_SIZE_MISMATCH)
  4891. (EX_FILE_OFFSET_OUT_OF_RANGE)
  4892. (EX_INVALID_CHUNK_CHECKSUM)
  4893. (EX_INVALID_RANGE_HEADER)
  4894. * src/FileAllocationCommand.cc
  4895. * src/HttpResponse.cc
  4896. * src/RequestGroup.cc
  4897. * src/MultiDiskAdaptor.cc
  4898. * src/OptionHandlerImpl.h
  4899. * src/HttpResponseCommand.cc
  4900. * src/FtpNegotiateCommand.cc
  4901. * src/IteratableChecksumValidator.cc
  4902. * src/SegmentMan.cc
  4903. * src/ChunkChecksumValidator.cc
  4904. Added Randomizer::getRandomNumber(long int)
  4905. * src/Randomizer.h (getRandomNumber)
  4906. * src/SimpleRandomizer.h (getRandomNumber)
  4907. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  4908. * src/Util.cc (randomAlpha): Use this new function.
  4909. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4910. Converted int's to in32_t. long long int's are also converted to
  4911. int64_t
  4912. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4913. Fixed the bug that prevents cookies from being sent to the server
  4914. if the domain of cookie is FQDN and starts with ".".
  4915. * src/Cookie.cc (match)
  4916. To add the ability to change peer id.
  4917. * src/DefaultBtContext.h
  4918. (_peerIdPrefix): New variable
  4919. (setPeerIdPrefix): New function.
  4920. * src/torrentRequestInfo.cc
  4921. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  4922. DefaultBtContext.
  4923. * src/main.cc (main): Added peer-id-prefix command-line option.
  4924. The usage message is not added yet.
  4925. * src/DefaultBtContext.cc
  4926. (generatePeerId): Use _peerIdPrefix.
  4927. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  4928. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Fixed the bug that prevents filename in content-disposition from
  4930. being retrieved when filename is not quoted.
  4931. * src/Util.cc (getContentDispositionFilename)
  4932. Fixed the bug that causes infinate loop and memory leak when file open
  4933. operation failed.
  4934. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4935. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4936. Fixed the bug that causes segfault when all URIs specified are
  4937. unsupported.
  4938. * src/RequestGroupMan.cc (getInitialCommands)
  4939. Check if RequestGroup::createNextCommand() returns empty list of
  4940. commands.
  4941. * src/RequestGroup.cc (createNextCommand)
  4942. Change log level from info to error so that users can notice that
  4943. an error occurred.
  4944. Fixed the bug that causes segfault when a zero-sized file is
  4945. downloaded.
  4946. * src/BitfieldMan.cc (isAllBitSet)
  4947. Return true if bitfieldLength is 0.
  4948. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. * src/main.cc
  4950. (showUsage): Added 3 usage examples for metalink download.
  4951. Replace MetalinkChunkChecksum with ChunkChecksum.
  4952. * src/MetalinkChunkChecksum.h: Removed.
  4953. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  4954. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  4955. * src/Xml2MetalinkProcessor.cc
  4956. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  4957. * src/MetalinkRequestInfo.cc (execute)
  4958. * Release 0.11.1
  4959. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Reads URIs from stdin when "-i -" is specified.
  4961. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  4962. * src/UriListParser.h, src/UriListParser.cc: New class.
  4963. * src/StreamUriListParser.h: New class.
  4964. * src/FileUriListParser.h: New class.
  4965. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  4966. instead of UriFileListParser.
  4967. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Made console readout more readable.
  4969. * src/ConsoleDownloadEngine.cc (sendStatistics)
  4970. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4971. Fix the bug that causes -s option not to work.
  4972. * src/main.cc (main)
  4973. * src/a2algo.h: New file.
  4974. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Create directory structure specified in metalink file.
  4976. * src/RequestGroup.h, src/RequestGroup.cc
  4977. (initAndOpenFile): Create a directory to store files if it does not
  4978. exist.
  4979. (getDir): New function.
  4980. Added ETA and download speed for an individual file to readout.
  4981. * src/ConsoleDownloadEngine.cc (sendStatistics)
  4982. * src/RequestGroup.h
  4983. (calculateDownloadSpeed): New function.
  4984. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Made -S option work with metalink file and provided selective download
  4986. to metalink.
  4987. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  4988. (filename): Removed.
  4989. (file): New variable.
  4990. (size): Removed.
  4991. (operator=): Updated.
  4992. (getPath): New function.
  4993. (getLength): New function.
  4994. (toFileEntry): New function.
  4995. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  4996. (execute): Use toStream.
  4997. (showFileEntry): Removed.
  4998. * src/MetalinkRequestInfo.h
  4999. (targetFiles): New variable.
  5000. (setTargetFiles): New variable.
  5001. * src/MetalinkRequestInfo.cc
  5002. (execute): Added the ability to print file information included in
  5003. a metalink file.
  5004. Added selective download mode to metalink.
  5005. * src/main.cc
  5006. (showUsage): Updated to denote that -S and --select-file options are
  5007. applicable to metalink.
  5008. * src/FileEntry.h
  5009. (operator=): New function.
  5010. (getBasename): New function.
  5011. (getDirname): New function.
  5012. * src/Util.h, src/Util.cc
  5013. (toStream): New function.
  5014. * src/Xml2MetalinkProcessor.cc: Updated.
  5015. Made aria2 work with metalink with directory structure.
  5016. * src/File.h, src/File.cc
  5017. (getBasename): New function.
  5018. (getDirname): New function.
  5019. * src/RequestGroup.h, src/RequestGroup.cc
  5020. (_topDir): New variable.
  5021. (setTopDir): New function.
  5022. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5023. Rewrote HTTP header parsing with stringstream.
  5024. * src/HttpConnection.h, src/HttpConnection.cc
  5025. (HttpRequestEntry): New class.
  5026. (headerBuf): Removed.
  5027. (headerBufLength): Removed.
  5028. (outstandingHttpRequests): Now its element type is
  5029. HttpRequestEntryHandle.
  5030. (findEndOfHeader): Removed.
  5031. (receiveResponse): Rewritten.
  5032. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5033. Updated doc for -j option to notice that it should be used with -i
  5034. option.
  5035. * src/main.cc (showUsage)
  5036. Removed unused classes.
  5037. * src/RequestInfo.h
  5038. (FileInfo): Removed.
  5039. (checksum): Removed.
  5040. (fileInfo): Removed.
  5041. (setChecksum): Removed.
  5042. (getChecksum): Removed.
  5043. (getFileInfo): Removed.
  5044. Use ISO units.
  5045. * src/ConsoleDownloadEngine.cc
  5046. * src/TorrentConsoleDownloadEngine.cc
  5047. * src/Util.cc (abbrevSize)
  5048. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Added the default listening ports to the help message.
  5050. * src/main.cc (showUsage)
  5051. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5052. Reduce the number of calls to gettimeofday to lower CPU load.
  5053. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5054. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5055. * src/Peer.h (calculateUploadSpeed): New function.
  5056. (calculateDownloadSpeed): New function.
  5057. * src/DefaultPeerStorage.cc
  5058. (CalculateStat): Added _now variable.
  5059. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5060. and Peer::calculateUploadSpeed(const struct timeval&)
  5061. Drop connection if no request or piece message is exchanged in
  5062. a certain interval.
  5063. * src/DefaultBtInteractive.h
  5064. (btRuntime): New variable.
  5065. (inactiveCheckPoint): New variable.
  5066. (checkActiveInteraction): New function.
  5067. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5068. request or piece message is received.
  5069. (checkActiveInteraction): New function.
  5070. (doInteractionProcessing): Call checkActiveInteraction.
  5071. Fixed the bug that causes remote Metalink and Torrent files are not
  5072. processed.
  5073. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5074. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Changed format of log file.
  5076. * src/SimpleLogger.cc
  5077. * Release 0.11.0
  5078. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. * src/AbstractCommand.cc
  5080. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5081. MSG_MAX_TRY from error to info.
  5082. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5083. * src/message.h
  5084. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5085. (MSG_DOWNLOAD_ABORTED): Added %s.
  5086. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5087. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5088. * src/PeerAbstractCommand.cc
  5089. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5090. * src/Request.h
  5091. (cookieBox): Made ShardHandle.
  5092. * src/RequestGroup.h, src/RequestGroup.cc
  5093. (createNextCommandWithAdj): New function.
  5094. * src/FileAllocationCommand.cc
  5095. (executeInternal): Use createNextCommandWithAdj().
  5096. * src/CheckIntegrityCommand.cc
  5097. (executeInternal): Use createNextCommandWithAdj().
  5098. Added --load-cookies command-option.
  5099. * src/OptionHandlerFactory.cc
  5100. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5101. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5102. Now aria2 can handle cookie's expiration date.
  5103. * src/Cookie.h (expires): Changed its type to time_t.
  5104. * src/main.cc: Added --load-cookies command-line option.
  5105. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5106. * src/Util.h, src/Util.cc (httpGMT): New function.
  5107. * src/Request.cc (Request): Initialize cookieBox using
  5108. CookieBoxFactory.
  5109. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5110. * src/CookieParser.h, src/CookieParser.cc: New class.
  5111. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5112. * src/HttpResponseCommand.cc
  5113. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5114. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5115. download.
  5116. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Added -j command-line option.
  5118. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5119. * src/main.cc
  5120. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5121. Rewritten using stringstream.
  5122. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5123. Rewritten using stringstream.
  5124. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5125. Make download size shown in MB, KB.
  5126. * src/ConsoleDownloadEngine.h (sendStatistics)
  5127. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5128. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5129. Accept incoming connections if download rate is low.
  5130. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5131. (_lowestSpeedLimit): New variable.
  5132. (setLowestSpeedLimit): New function.
  5133. (execute): Accept incoming connections if download rate is low.
  5134. MAX_PEERS is ignored in this case.
  5135. Disable PREF_OUT in multiple concurrent download:
  5136. * src/RequestGroup.h, src/RequestGroup.cc
  5137. (setUserDefinedFilename): New function.
  5138. * src/DownloadEngineFactory.cc
  5139. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5140. concurrent download.
  5141. * src/DefaultSegmentManFactory.cc
  5142. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5143. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5145. Added its overloaded method.
  5146. * src/RequestGroup.h
  5147. (_numConcurrentCommand): New variable.
  5148. (setNumConcurrentCommand): New function.
  5149. * src/RequestGroup.cc
  5150. Abort download if same file is being downloaded concurrently.
  5151. * src/RequestGroup.h, src/RequestGroupMan.cc
  5152. (isSameFileBeingDownloaded): New function.
  5153. * src/HttpResponseCommand.cc (executeInternal)
  5154. * src/FtpNegotiateCommand.cc (recvSize)
  5155. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  5156. * main.cc: Added help message for -i option.
  5157. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  5159. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  5160. * src/MetalinkEntry.h
  5161. (checksum): Changed to ChecksumHandle
  5162. * src/MetalinkRequestInfo.cc
  5163. (checksum): Changed to ChecksumHandle
  5164. * src/File.cc
  5165. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  5166. * src/common.h
  5167. (DIR_OPEN_MODE): New definition
  5168. * src/RequestGroup.cc
  5169. (prepareForNextAction): Added an argument.
  5170. * src/message.h
  5171. (MSG_GOOD_CHECKSUM): New definition
  5172. (MSG_BAD_CHECKSUM): New definition
  5173. * src/HttpResponseCommand.cc
  5174. (handleDefaultEncoding): Continue download sequence in new
  5175. non-segmented download.
  5176. * src/FileAllocationEntry.h
  5177. (_nextDownloadCommand): New variable.
  5178. * src/DownloadCommand.cc
  5179. (prepareForNextSegment): Create ChecksumCommand if checksum is
  5180. available.
  5181. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  5182. * src/IteratableChecksumValidator.h,
  5183. src/IteratableChecksumValidator.cc: New class.
  5184. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  5185. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Change file mode to 666:
  5187. * src/common.h (OPEN_MODE): New definition.
  5188. * src/File.cc
  5189. * src/Util.cc
  5190. * src/Directry.cc
  5191. * src/AbstractDiskWriter.cc
  5192. Change the level of log message "download aborted" to debug:
  5193. * src/PeerAbstractCommand.cc (execute)
  5194. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  5195. * src/TrackerWatcherCommand.cc
  5196. (createCommand): Sleep some seconds after request failed.
  5197. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  5198. then abort tracker request.
  5199. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. * Added the simultaneous download feature.
  5201. * src/main.cc: Print "Exception caught: " when exception is caught.
  5202. Use CUIDCounter instead of BtRuntime::getNewCuid():
  5203. * src/ActivePeerConnectionCommand.cc
  5204. * src/PeerInteractionCommand.cc
  5205. * src/BtRuntime.h
  5206. (cuidCounter): Removed.
  5207. (getNewCuid): Removed.
  5208. * src/DownloadEngineFactory.cc
  5209. * src/PeerListenCommand.cc
  5210. * src/TrackerUpdateCommand.cc
  5211. * src/PeerInitiateConnectionCommand.cc
  5212. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. * src/PeerAbstractCommand.cc
  5214. (onAbort): Call PeerStorage::returnPeer()
  5215. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  5216. (incomingPeers): New variable.
  5217. (addIncomingPeer): New function.
  5218. (returnPeer): New function.
  5219. (onErasingPeer): New function.
  5220. (addPeer): push_back -> push_front
  5221. (getActivePeers): Rewritten.
  5222. (calculateStat): Rewritten.
  5223. * src/PeerStorage.h
  5224. (TransferStat::copy): New function.
  5225. (TransferStat::TransferStat): New function.
  5226. (TransferStat::operator=): New function.
  5227. (addIncomingPeer): New function.
  5228. (returnPeer): New function.
  5229. * src/PeerListenCommand.cc
  5230. (execute): Use PeerStorage::addIncomingPeer() instead of
  5231. Peer::addPeer().
  5232. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Connect to a peer actively when download speed is lower than specified
  5234. speed in torrent download:
  5235. * src/ActivePeerConnectionCommand.h: New class.
  5236. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. * src/HttpRequest.cc (createRequest): url-encode user-agent
  5238. * src/main.cc: Fixed the bug that prevents download if .netrc
  5239. doesn't exist.
  5240. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. To cache resolved hostname:
  5242. * src/AbstractCommand.h, src/AbstractCommand.cc
  5243. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  5244. Added dns cache.
  5245. * src/FtpInitiateConnectionCommand.cc
  5246. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  5247. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  5248. NameResolver working without ares.
  5249. * src/TorrentRequestInfo.cc
  5250. (execute): Don't cache dns in torrent download.
  5251. * src/HttpInitiateConnectionCommand.cc
  5252. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  5253. * src/DNSCache.h: New class.
  5254. * src/UrlRequestInfo.cc
  5255. (execute): Use dns cache.
  5256. In http request, suppress port number in http request header if port
  5257. is 80 or 443:
  5258. * src/HttpRequest.cc (getHostText): Suppress port number in http
  5259. request header if port is 80 or 443.
  5260. (createProxyRequest): Allways send port number.
  5261. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. To add the command-line option which disables netrc support:
  5263. * src/OptionHandlerFactory.cc
  5264. (createOptionHandlers): Added PREF_NO_NETRC.
  5265. * src/main.cc: Added -n option.
  5266. * src/prefs.h (PREF_NO_NETRC): New definition.
  5267. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  5268. V_TRUE.
  5269. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  5270. is V_FALSE. This may get configurable in the future release.
  5271. To clear peer's error status by time basis:
  5272. * src/PeerAbstractCommand.cc
  5273. (onAbort): Call Peer::startBadCondition().
  5274. * src/Peer.h, src/Peer.cc
  5275. (error): Removed.
  5276. (_badConditionStartTime): New variable.
  5277. (_badConditionInterval): New variable. Initialized to 10 seconds.
  5278. (startBadCondition): New function.
  5279. (isGood): New function.
  5280. * src/DefaultPeerStorage.cc
  5281. (addPeer): Use Peer::isGood().
  5282. (FindFinePeer): Use Peer::isGood().
  5283. Always include port number in http request header:
  5284. * src/HttpRequest.cc (getHostText): Always include port number in
  5285. http request header.
  5286. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. To the ability to read options from a config file:
  5288. * src/main.cc: Command-line parameter validation is delegated to
  5289. OptionHandler class.
  5290. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  5291. * src/Option.h, src/Option.cc (clear): New function.
  5292. * src/OptionParser.h, src/OptionParser.cc: New class.
  5293. * src/OptionHandler.h: New class.
  5294. * src/NameMatchOptionHandler.h: New class.
  5295. * src/OptionHandlerImpl.h: New classes.
  5296. * src/prefs.h: '_' -> '-'
  5297. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  5298. (FTP_PASV): New definition.
  5299. * src/Util.h, src/Util.cc (getRealSize): New function.
  5300. To disable netrc support if .netrc file does not have correct
  5301. permissions:
  5302. * src/File.h, src/File.cc (mode): New function.
  5303. To prevent confidential information to be logged:
  5304. * src/HttpConnection.h, src/HttpConnection.cc
  5305. (eraseConfidentialInfo): New function.
  5306. (sendRequest): Call eraseConfidentialInfo().
  5307. (sendProxyRequest): Call eraseConfidentialInfo().
  5308. * src/main.cc: Validate permissions of .netrc file.
  5309. To add --user-agent command-line option:
  5310. * src/main.cc: Added new command line option: --user-agent
  5311. * src/prefs.h (PREF_USER_AGENT): New definition.
  5312. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  5313. parameter to HttpRequest object.
  5314. * src/AbstractProxyRequestCommand.cc
  5315. (executeInternal): Set user-agent option parameter to HttpRequest
  5316. object.
  5317. Marged the patches from Dan Fandrich.
  5318. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Use filename and size from Metalink file instead of sending HEAD
  5320. request:
  5321. * src/UrlRequestInfo.h
  5322. (_filename): New variable.
  5323. (_totalLength): New variable.
  5324. (setTotalLength): New variable.
  5325. (setFilename): New variable.
  5326. * src/MetalinkRequestInfo.cc
  5327. (execute): Set filename and size to UrlRequestInfo
  5328. * src/UrlRequestInfo.cc
  5329. (execute): Use filename and size from Metalink instead of seding
  5330. HEAD request to servers.
  5331. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. To add the ability to resume downloading a partially downloaded file
  5333. which is downloaded from the beginning:
  5334. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  5335. takes this role.
  5336. * src/main.cc: Added -c option.
  5337. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  5338. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  5339. * src/prefs.h (PREF_CONTINUE): New definition.
  5340. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  5341. * src/DefaultDiskWriter.cc
  5342. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  5343. * src/AbstractDiskWriter.h
  5344. (glowFileAllocator): New variable.
  5345. * src/AbstractDiskWriter.cc
  5346. (openExistingFile): Now preallocate file space from the end of the
  5347. existing file if totalLength argument is specified and grater than 0.
  5348. * src/UrlRequestInfo.cc: If -c option is specified and the file
  5349. to download exists in local, continue the download of the file.
  5350. --allow-overwrite=true is assumed in this context.
  5351. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  5352. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  5353. Throw exception if --check-integrity=true is specified but chunk
  5354. checksums are not provided:
  5355. * src/UrlRequestInfo.cc
  5356. Do not print URLs to stdout:
  5357. * src/UrlRequestInfo.cc
  5358. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. * src/Request.h: Use AuthResolver to get authentication information.
  5360. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  5361. set to RequestFactory object.
  5362. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  5363. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  5364. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  5365. create Request object.
  5366. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  5367. To integrate Netrc into exsiting classes:
  5368. * src/Request.h
  5369. (_userDefinedAuthConfig): New variable.
  5370. (findNetrcAuthenticator): New function.
  5371. (segment): Removed.
  5372. (setUserDefinedAuthConfig): New function.
  5373. (resolveHttpAuthConfigItem): New function.
  5374. (resolveFtpAuthConfigItem): New function.
  5375. (resolveHttpProxyAuthConfigItem): New function.
  5376. * src/HttpRequest.h
  5377. (authConfig): Removed.
  5378. (proxyAuthConfig): Removed.
  5379. (setAuthConfig): Removed.
  5380. (setProxyAuthConfig): Removed.
  5381. * src/UrlRequest.h
  5382. (getHeadResult): Added a parameter: authConfigHandle
  5383. * src/common.h
  5384. (SingletonHolder.h): New include.
  5385. * src/main.cc
  5386. (Netrc.h): New include.
  5387. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  5388. Added initial value of PREF_NETRC_PATH.
  5389. Added the initialization of netrc.
  5390. * src/AuthConfig.h: New class.
  5391. * src/prefs.h
  5392. (PREF_NETRC_PATH): New definition.
  5393. * src/HttpAuthConfig.h: Removed.
  5394. * src/Netrc.cc
  5395. (getRequiredNextToken): New function.
  5396. (skipMacdef): New function.
  5397. (parse): Rewritten.
  5398. * src/Netrc.h
  5399. (getRequiredNextToken): New function.
  5400. (skipMacdef): New function.
  5401. * src/Util.h, src/Util.cc
  5402. (getHomeDir): New function.
  5403. * src/TrackerWatcherComand.cc
  5404. (createRequestCommand): Use AuthConfig.
  5405. * src/FtpConnection.cc
  5406. (sendUser): Use Request::resolveFtpAuthConfigItem().
  5407. (sendPass): Use Request::resolveFtpAuthConfigItem().
  5408. * src/Request.cc
  5409. (findNetrcAuthenticator): New function.
  5410. (resolveHttpAuthConfigItem): New function.
  5411. (resolveFtpAuthConfigItem): New function.
  5412. (resolveHttpProxyAuthConfigItem): New function.
  5413. * src/UrlRequestInfo.cc: Use AuthConfig.
  5414. * src/HttpRequest.cc
  5415. (createRequest): Use authConfig.
  5416. (getProxyAuthString): Use authConfig.
  5417. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  5418. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  5419. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. To reduce overhead to find commands whose socket is either
  5421. readable or writable in the download engine loop:
  5422. * src/Command.h, src/Command.cc
  5423. (STATUS): New enum.
  5424. (status): New variable.
  5425. (statusMatch): New function.
  5426. (setStatusActive): New function.
  5427. (setStatusInactive): New function.
  5428. * src/DownloadEngine.h, src/DownloadEngine.cc
  5429. (executeCommand): New function.
  5430. (run): Simplified.
  5431. (waitData): Call Command::setStatusActive() when command's socket is
  5432. readable or writable.
  5433. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5434. To handle Segment as SegmentHandle:
  5435. * src/AbstractCommand.cc (execute): Rewritten.
  5436. * src/SegmentMan.h: Segment -> SegmentHandle
  5437. Introducded HttpResponse class, HttpRequest class to improve code
  5438. extensiveness and make it clear:
  5439. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  5440. HttpResponse class.
  5441. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  5442. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  5443. * src/HttpConnection.cc: Contruction of http request were moved to
  5444. HttpRequest class.
  5445. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  5446. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  5447. * src/HttpAuthConfig.h: New class.
  5448. * src/Range.h: New class.
  5449. To make FtpTunnel{Request, Response}Command and
  5450. HttpProxy{Request, Response}Command derived from
  5451. AbstractProxy{Request, Response}Command:
  5452. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  5453. Derived from AbstractProxyRequestCommand class.
  5454. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  5455. Derived from AbstractProxyResponseCommand class.
  5456. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  5457. Derived from AbstractProxyRequestCommand class.
  5458. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  5459. Derived from AbstractProxyResponseCommand class.
  5460. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  5461. : New class.
  5462. * src/AbstractProxyResponseCommand.h,
  5463. src/AbstractProxyResponseCommand.cc: New class.
  5464. To add netrc support:
  5465. * src/Netrc.h, src/Netrc.cc: New class.
  5466. * src/Util.h, src/Util.cc (split): New function.
  5467. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  5468. "Content-Range" header instead of "Range" header.
  5469. * src/HttpHeader.h
  5470. (getStatus): Removed.
  5471. (setStatus): Removed.
  5472. * src/Segment.h
  5473. (getPositionToWrite): New function.
  5474. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. * src/HttpHeader.h
  5476. (Range.h): New include.
  5477. (status): New variable.
  5478. (HttpHeader): Initialized status with 0.
  5479. (getStatus): New function.
  5480. (setStatus): New function.
  5481. (getRange): New function.
  5482. (HttpHeaderHandle): New function.
  5483. * src/HttpHeader.cc
  5484. (getRange): New function.
  5485. * src/Request.h
  5486. (RequestWeakHandle): New definition.
  5487. * src/HttpConnection.h
  5488. (HttpConnectionHandle): New type definition.
  5489. * src/HttpConnection.cc
  5490. (receiveResponse): Set HTTP status to headers.
  5491. * src/main.cc
  5492. (showUsage): Fixed typo.
  5493. * src/Segment.h
  5494. (SegmentHandle): New type definition.
  5495. * src/BitfieldMan.h
  5496. (getMissingUnusedLength): New function.
  5497. * src/BitfieldMan.cc
  5498. (getMissingUnusedLength): New function.
  5499. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. To fix static initialization order problem:
  5501. * src/BitfieldManFactory.h
  5502. (defaultRandomizer): Removed.
  5503. (factory): New variable.
  5504. (getNewFactory): Removed.
  5505. (getFactoryInstance): New function.
  5506. (setDefaultRandomizer): Rewritten.
  5507. (getDefaultRandomizer): Rewritten.
  5508. * src/BitfieldManFactory.cc
  5509. (defaultRandomizer): Removed.
  5510. (factory): Initialized to 0.
  5511. (BitfieldManFactory): Initialized randomizer to 0.
  5512. * src/DefaultPieceStorage.cc
  5513. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  5514. * src/Peer.cc
  5515. (Peer): getNewFactory() -> getFactoryInstance()
  5516. * src/SegmentMan.cc
  5517. (initBitfield): getNewFactory() -> getFactoryInstance()
  5518. * src/Piece.cc
  5519. (Piece): getNewFactory() -> getFactoryInstance()
  5520. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. To fix the bug that causes crash on Max OS X:
  5522. * src/SimpleRandomizer.h
  5523. (getInstance): Create new instance if the static variable is null.
  5524. * src/SimpleRandomizer.cc
  5525. (randomizer): Initialized to 0.
  5526. * src/BitfieldManFactory.h
  5527. (getNewFactory): Removed the call to setRandomizer().
  5528. To fix the miscalculation of the range of checksum:
  5529. * src/BitfieldMan.h
  5530. (isBitSetOffsetRange): New function.
  5531. * src/BitfieldMan.cc
  5532. (isBitSetOffsetRange): New function.
  5533. * src/SegmentMan.cc
  5534. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  5535. Use bitfield->getBlockLength() instead of segment.segmentLength.
  5536. * Release 0.10.1
  5537. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. To lower CPU usage in BitTorrent download when --max-upload-limit
  5539. command-line option specified:
  5540. * src/DefaultBtMessageDispatcher.cc
  5541. (sendMessages): Calculate uploading speed only when current message
  5542. is uploading data and is not sent yet.
  5543. * src/DefaultPeerStorage.h
  5544. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  5545. * src/HttpResponseCommand.cc
  5546. (handleDefaultEncoding): Added the cast to int32_t to itos.
  5547. This fixes compile error in Soralis 10.
  5548. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5549. To fix segfault in Metalink download:
  5550. * src/UrlRequestInfo.h
  5551. (filename): Removed.
  5552. (totalLength): Removed.
  5553. (setTotalLength): Removed.
  5554. (setFilename): Removed.
  5555. * src/MetalinkRequestInfo.cc
  5556. (execute): Do not set filename and totalLength to reqInfo.
  5557. Set chunk checksum to reqInfo if it is not null.
  5558. * src/HttpResponseCommand.cc
  5559. (executeInternal): Fixed filename in log.
  5560. (handleDefaultEncoding): Removed the call to initBitfield() and
  5561. markAllPiecesDone().
  5562. (handleOtherEncoding): Added HEAD method handling.
  5563. * src/FtpNegotiateCommand.cc
  5564. (executeInternal): Added SEQ_HEAD_OK handling.
  5565. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  5566. return false.
  5567. * src/FtpNegotiateCommand.h
  5568. (SEQ_HEAD_OK): New definition.
  5569. * src/SegmentMan.cc
  5570. (initBitfield): Delete bitfield.
  5571. (isChunkChecksumValidationReady): Fixed the condition.
  5572. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  5573. works fine.
  5574. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5575. * src/Xml2MetalinkProcessor.h
  5576. (xpathExists): New function.
  5577. * src/Xml2MetalinkProcessor.cc
  5578. (xpathExists): New function.
  5579. Not to send HEAD request if filename and size are available in Metalink
  5580. file:
  5581. * src/UrlRequestInfo.h
  5582. (filename): New variable.
  5583. (totalLength): New variable.
  5584. (setTotalLength): New function.
  5585. (setFilename): New function.
  5586. * src/MetalinkRequestInfo.cc
  5587. (execute): Set filename and size to UrlRequestInfo.
  5588. * src/MetalinkEntry.cc
  5589. (MetalinkEntry): Initialize size with 0.
  5590. * src/UrlRequestInfo.cc
  5591. (execute): Set filename and size to SegmentMan.
  5592. Not to download rest of the files after selected files are downloaded
  5593. in BitTorrent:
  5594. * src/PieceStorage.h
  5595. (allDownloadFinished): New function.
  5596. * src/DefaultBtAnnounce.cc
  5597. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  5598. downloadFinished.
  5599. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  5600. * src/DefaultPieceStorage.cc
  5601. (completePiece): Use allDownloadFinished instead of downloadFinished.
  5602. Commented out the call to finishSelectiveDownloadingMode().
  5603. (downloadFinished): Call isFilteredAllBitSet() instead of
  5604. isAllBitSet().
  5605. (allDownloadFinished): New function.
  5606. * src/DefaultBtInteractive.cc
  5607. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  5608. downloadFinished().
  5609. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  5610. * src/TorrentDownloadEngine.cc
  5611. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  5612. * src/BitfieldMan.h
  5613. (isFilteredAllBitSet): New function.
  5614. * src/ShareRatioSeedCriteria.h
  5615. (PieceStorage.h): New include.
  5616. (pieceStorage): New variable.
  5617. (evaluate):
  5618. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  5619. * src/BitfieldMan.cc
  5620. (isFilteredAllBitSet): New function.
  5621. (isAllBitSet): Filter is not took into account.
  5622. Rename --force-truncate as --allow-overwrite:
  5623. * src/TorrentRequestInfo.cc
  5624. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  5625. * src/main.cc
  5626. (showUsage): --force-truncate -> --allow-overwrite
  5627. * src/message.h
  5628. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  5629. * src/prefs.h
  5630. (PREF_FORCE_TRUNCATE): Removed.
  5631. (PREF_ALLOW_OVERWRITE): New definition.
  5632. * src/SegmentMan.cc
  5633. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  5634. * src/MetalinkRequestInfo.cc
  5635. (execute): Queueing message are now logged in info level.
  5636. * src/common.h
  5637. (LONG_LONG_MAX): Removed.
  5638. (LONG_LONG_MIN): Removed.
  5639. * src/HttpResponseCommand.cc
  5640. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  5641. * src/FtpNegotiateCommand.cc
  5642. (recvSize): LONG_LONG_MAX -> INT64_MAX
  5643. * src/main.cc
  5644. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  5645. command-line option.
  5646. (main): Added --check-integriy and --realtime-chunk-checksum
  5647. command-line option.
  5648. --force-truncate -> --allow-overwrite
  5649. Set initial value of --check-integrity option to false.
  5650. Don't show usage when error occurs while persing command-line options.
  5651. Removed deprecated --upload-limit option.
  5652. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5653. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  5654. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  5655. * src/BtAllowedFastMessage.cc:
  5656. * src/BtBitfieldMessage.cc
  5657. * src/BtCancelMessage.cc
  5658. * src/BtChokeMessage.cc
  5659. * src/BtHaveAllMessage.cc
  5660. * src/BtHaveMessage.cc
  5661. * src/BtHaveNoneMessage.cc
  5662. * src/BtInterestedMessage.cc
  5663. * src/BtNotInterestedMessage.cc
  5664. * src/BtPieceMessage.cc
  5665. * src/BtPortMessage.cc
  5666. * src/BtRejectMessage.cc
  5667. * src/BtRequestMessage.cc
  5668. * src/BtSuggestPieceMessage.cc
  5669. * src/BtUnchokeMessage.cc
  5670. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  5671. files are affected.
  5672. * src/ChunkChecksumValidator.cc
  5673. * src/SegmentMan.cc
  5674. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. To add chunk checksum validation:
  5676. * src/MetalinkEntry.h
  5677. (MetalinkChunkChecksum.h): New include.
  5678. (chunkChecksum): New variable.
  5679. * src/Request.h
  5680. (method): New variable.
  5681. (setMethod): New function.
  5682. (getMethod): New function.
  5683. (METHOD_GET): New static constant.
  5684. (METHOD_HEAD): New static constant.
  5685. * src/Xml2MetalinkProcessor.h
  5686. (getPieceHash): New function.
  5687. * src/PieceStorage.h
  5688. (markAllPiecesDone): New function.
  5689. (checkIntegrity): New function.
  5690. * src/FileAllocator.h
  5691. (NullFileAllocationMonitor.h): New include.
  5692. (FileAllocator): Initialize fileAllocationMonitor with new
  5693. NullFileAllocationMonitor().
  5694. * src/MultiDiskAdaptor.h
  5695. (messageDigest.h): Remove include.
  5696. (ctx): Removed.
  5697. (hashUpdate): Added ctx.
  5698. (MultiDiskAdaptor): Removed ctx.
  5699. (sha1Sum): Renamed as messageDigest.
  5700. (messageDigest): New function.
  5701. * src/UrlRequestInfo.h
  5702. (HeadResult): New class.
  5703. (digestAlgo): New variable.
  5704. (chunkChecksumLength): New variable.
  5705. (chunkChecksums): New variable.
  5706. (getHeadResult): New function.
  5707. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  5708. (setDigestAlgo): New function.
  5709. (setChunkChecksumLength): New function.
  5710. (setChunkChecksums): New function.
  5711. * src/DefaultPieceStorage.cc
  5712. (DiskAdaptorWriter.h): New include.
  5713. (ChunkChecksumValidator.h): New include.
  5714. (markAllPiecesDone): New function.
  5715. (checkIntegrity): New function.
  5716. * src/DefaultBtContext.h
  5717. (getPieceHashes): New function.
  5718. * src/TorrentRequestInfo.cc
  5719. (execute): Try to validate chunk checksum if file already exists and
  5720. .aria2 file doesn't there and user allows aria2 to overwrite it.
  5721. * src/messageDigest.h
  5722. (~MessageDigestContext): Added digestFree().
  5723. * src/MetalinkRequestInfo.cc
  5724. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  5725. * src/DiskAdaptor.h
  5726. (messageDigest.h): New include.
  5727. (sha1Sum): Renamed as messageDigest.
  5728. (messageDigest): New function.
  5729. * src/DownloadCommand.h
  5730. (PeerStat.h): New include.
  5731. (maxDownloadSpeedLimit): New variable.
  5732. (startupIdleTime): New variable.
  5733. (lowestDownloadSpeedLimit): New variable.
  5734. (peerStat): New variable.
  5735. (setMaxDownloadSpeedLimit): New function.
  5736. (setStartupIdleTime): New function.
  5737. (setLowestDownloadSPeedLimit): New function.
  5738. * src/BtContext.h
  5739. (getPieceHashes): New function.
  5740. * src/main.cc
  5741. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  5742. option to true for testing purpose.
  5743. * src/BtPieceMessage.cc
  5744. (checkPieceHash): Use messageDigest
  5745. * src/DownloadEngine.cc
  5746. (SetDescriptor): Removed.
  5747. (AccumulateActiveCommand): Removed.
  5748. (waitData): Rewritten.
  5749. (updateFdSet): Rewritten.
  5750. * src/MultiDiskAdaptor.cc
  5751. (hashUpdate): Added ctx.
  5752. (sha1Sum): Renamed as messageDigest.
  5753. (messageDigest): New function.
  5754. * src/BitfieldMan.h
  5755. (isBitRangeSet): New function.
  5756. (unsetBitRange): New function.
  5757. * src/ByteArrayDiskWriter.h
  5758. (sha1Sum): Renamed as messageDigest.
  5759. (messageDigest): New function.
  5760. * src/ConsoleDownloadEngine.cc
  5761. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  5762. * src/DiskWriter.h
  5763. (messageDigest.h): New include.
  5764. (sha1Sum): Renamed as messageDigest.
  5765. (messageDigest): New function.
  5766. * src/ChunkChecksumValidator.h: New class.
  5767. * src/DiskAdaptorWriter.h: New class.
  5768. * src/prefs.h
  5769. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  5770. (PREF_CHECK_INTEGRITY): New definition.
  5771. * src/HttpResponseCommand.cc
  5772. (handleDefaultEncoding): Added method "HEAD" handling.
  5773. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  5774. (handleOtherEncoding):
  5775. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  5776. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  5777. startupIdleTime, lowestDownloadSpeedLimit to command.
  5778. * src/SegmentMan.h
  5779. (getSegmentEntryByIndex): New function.
  5780. (getSegmentEntryByCuid): New function.
  5781. (getSegmentEntryIteratorByCuid): New function.
  5782. (diskWriter): DiskWriter -> DiskWriterHandle
  5783. (pieceHashes): New variable.
  5784. (chunkHashLength): New variable.
  5785. (digestAlgo): New variable.
  5786. (FindPeerStat): Removed.
  5787. (getPeerStat): Rewritten.
  5788. (markAllPiecesDone): New function.
  5789. (checkIntegrity): New function.
  5790. (tryChunkChecksumValidation): New function.
  5791. (isChunkChecksumValidationReady): New function.
  5792. * src/BitfieldMan.cc
  5793. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  5794. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  5795. blocks to 0.
  5796. (isBitRangeSet): New function.
  5797. (unsetBitRange): New function.
  5798. * src/FtpNegotiateCommand.cc
  5799. (executeInternal): Set maxDownloadSpeedLimit,
  5800. startupIdleTime, lowestDownloadSpeedLimit to command.
  5801. (recvSize): Added method "HEAD" handling.
  5802. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  5803. * src/AbstractSingleDiskAdaptor.cc
  5804. (sha1Sum): Renamed as messageDigest.
  5805. (messageDigest): New function.
  5806. * src/AbstractSingleDiskAdaptor.h
  5807. (sha1Sum): Renamed as messageDigest.
  5808. (messageDigest): New function.
  5809. * src/Util.h
  5810. (indexRange): New function.
  5811. * src/MetalinkEntry.cc
  5812. (MetalinkEntry): Initialized chunkChecksum to 0.
  5813. * src/ShaVisitor.cc
  5814. (~ShaVisitor): Removed the call to ctx.digestFree().
  5815. * src/SegmentMan.cc
  5816. (ChunkChecksumValidator.h): New include.
  5817. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  5818. to DIGEST_ALGO_SHA1.
  5819. (~SegmentMan): Removed diskWriter.
  5820. (FindSegmentEntryByIndex): Removed.
  5821. (FindSegmentEntryByCuid): Removed.
  5822. (checkoutSegment): Rewritten.
  5823. (findSlowerSegmentEntry): Rewritten.
  5824. (getSegment): Rewritten.
  5825. (updateSegment): Rewritten.
  5826. (completeSegment): Rewritten.
  5827. (markAllPiecesDone): New function.
  5828. (checkIntegrity): New function.
  5829. (isChunkChecksumValidationReady): New function.
  5830. (tryChunkChecksumValidation): New function.
  5831. * src/Xml2MetalinkProcessor.cc
  5832. (getEntry): Get size and set it to entry.
  5833. Get chunk checksum and set it to entry.
  5834. (getPieceHash): New function.
  5835. * src/Util.cc
  5836. (sha1Sum): Removed ctx.digestFree()
  5837. (fileChecksum): Removed ctx.digestFree()
  5838. (indexRange): New function.
  5839. * src/Request.cc
  5840. (METHOD_GET): New variable.
  5841. (METHOD_HEAD): New variable.
  5842. (Request): Added method.
  5843. * src/UrlRequestInfo.cc
  5844. (FatalException.h): New include.
  5845. (message.h): New include.
  5846. (operator<<): Added operator<< for class HeadResult.
  5847. (getHeadResult): New function.
  5848. (execute): Get filename and size in separate download engine.
  5849. * src/ChunkChecksumValidator.cc: New class.
  5850. * src/DownloadCommand.cc:
  5851. (DownloadCommand): Added peerStat.
  5852. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  5853. the value from Option.
  5854. The buffer size is now 16KB.
  5855. Use peerStat member instead of getting it from SegmentMan.
  5856. Use startupIdleTime member instead of gettingit from Option.
  5857. Added chunk checksum validation.
  5858. * src/AbstractDiskWriter.cc
  5859. (AbstractDiskWriter): Removed ctx.
  5860. (~AbstractDiskWriter): Removed ctx.digestFree()
  5861. (writeDataInternal): Returns the return value of write.
  5862. (readDataInternal): Returns the return value of read.
  5863. (sha1Sum): Renamed as messageDigest
  5864. (messageDigest): New function.
  5865. * src/AbstractDiwkWriter.h
  5866. (messageDigest.h): Removed include.
  5867. (ctx): Removed.
  5868. (sha1Sum): Renamed as messageDigest
  5869. (messageDigest): New function.
  5870. * src/DefaultPieceStorage.h
  5871. (markAllPiecesDone): New function.
  5872. (checkIntegrity): New function.
  5873. * src/NullFileAllocationMonitor.h: New class.
  5874. * src/MetalinkChunkChecksum.h: New class.
  5875. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. To decrease CPU usage in bittorrent download, calculation results in
  5877. BitfieldMan were cached and realtime fetching PeerObject was removed
  5878. with WeakHandle introduced. Option values are set to the objects
  5879. by setter before download begins.
  5880. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  5881. * src/DefaultBtRequestFactory.h
  5882. (dispatcher): BtMessageDispatcherHandle ->
  5883. BtMessageDispatcherWeakHandle.
  5884. (messageFactory): New variable.
  5885. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  5886. BtMessageDispatcherWeakHandle.
  5887. (setBtMessageFactory): New function.
  5888. * src/DefaultBtMessageDispatcher.cc:
  5889. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  5890. from Option.
  5891. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  5892. feating the value from Option.
  5893. Use messageFactory member.
  5894. * src/PeerInteractionCommand.cc
  5895. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  5896. Add reverse dependencies to factory object.
  5897. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  5898. dispatcher.
  5899. Set messageFactory to receiver.
  5900. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  5901. btInteractive.
  5902. Set receiver to peerObject.
  5903. Set maxDownloadSpeedLimit to this.
  5904. (executeInternal): Use maxDownloadSpeedLimit member.
  5905. * src/BtChokeMessage.cc
  5906. (doReceivedAction): Use dispatcher, requestFactory member.
  5907. (onSendComplete): Use dispatcher member.
  5908. * src/PeerInteractionCommand.h
  5909. (maxDownloadSpeedLimit): New variable.
  5910. * src/DefaultBtMessageReceiver.h
  5911. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5912. (dispatcher):
  5913. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  5914. (messageFactory): New variable.
  5915. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5916. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5917. (setDispatcher):
  5918. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  5919. (setBtMessageFactory): New function.
  5920. * src/DefaultBtInteractive.cc
  5921. (initiateHandshake): Use messageFactory member.
  5922. (addBitfieldMessageToQueue): Use messageFactory member.
  5923. (addAllowedFastMessageToQueue): Use messageFactory member.
  5924. (decideChoking): Use messageFactory member.
  5925. (checkHave): Use messageFactory member.
  5926. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  5927. (receiveMessages): Use maxDownloadSpeedLimit member.
  5928. (decideInterest): Use messageFactory member.
  5929. * src/BtRequestMessage.cc
  5930. (doReceivedAction): Use messageFactory, dispatcher member.
  5931. (onQueued): Use dispatcher member.
  5932. * src/BtPieceMessage.cc
  5933. (doReceivedAction): Use dispatcher member.
  5934. (send): Use peerConnection member.
  5935. (onWrongPiece): Use requestFactory member.
  5936. (handleChokingEvent): Use messageFactory, dispatcher member.
  5937. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  5938. * src/BtMessageDispatcher.h
  5939. (BtMessageDispatcherWeakHandle): New type definition.
  5940. * src/SimpleBtMessage.cc
  5941. (send): Use peerConnection member.
  5942. * src/BtRejectMessage.cc
  5943. (doReceivedAction): Use dispatcher member.
  5944. * src/DefaultBtMessageDispatcher.h
  5945. (Option.h): Removed include.
  5946. (messageFactory): New variable.
  5947. (option): Removed.
  5948. (maxUploadSpeedLimit): New variable.
  5949. (requestTimeout): New variable.
  5950. (DefaultBtMessageDispatcher): Removed option.
  5951. Added maxUploadSpeedLimit, requestTimeout.
  5952. (setOption): Removed.
  5953. (getOption): Removed.
  5954. (setMaxUploadSpeedLimit): New function.
  5955. (setRequestTimeout): New function.
  5956. (setBtMessageFactory): New function.
  5957. * src/DefaultBtInteractive.h
  5958. (btMessageReceiver):
  5959. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  5960. (dispatcher):
  5961. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  5962. (btRequestFactory):
  5963. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  5964. (peerConnection):
  5965. PeerConnectionHandle -> PeerConnectionWeakHandle
  5966. (messageFactory): New variable.
  5967. (option): Removed.
  5968. (keepAliveInterval): New variable.
  5969. (maxDownloadSpeedLimit): New variable.
  5970. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  5971. (setBtMessageReceiver):
  5972. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  5973. (setDispatcher):
  5974. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  5975. (setBtRequestFactory):
  5976. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  5977. (setPeerConnection):
  5978. PeerConnectionHandle -> PeerConnectionWeakHandle
  5979. (setOption): Removed.
  5980. (setKeepAliveInterval): New function.
  5981. (setMaxDownloadSpeedLimit): New function.
  5982. (setBtMessageFactory): New function.
  5983. * src/BitfieldMan.h
  5984. (cachedNumMissingBlock): New variable.
  5985. (cachedNumFilteredBlock): New variable.
  5986. (cachedCompletedLength): New variable.
  5987. (cachedFilteredComletedLength): New variable.
  5988. (cachedFilteredTotalLength): New variable.
  5989. (countMissingBlockNow): New function.
  5990. (countFilteredBlockNow): New function.
  5991. (getFilteredTotalLengthNow): New function.
  5992. (getCompletedLengthNow): New function.
  5993. (getFilteredCompletedLengthNow): New function.
  5994. (updateCache): New function.
  5995. * src/AbstractBtMessage.h
  5996. (BtMessageDispatcher.h): New include.
  5997. (PeerConnection.h): New include.
  5998. (BtRequestFactory.h): New include
  5999. (BtMessageFactory.h): New include.
  6000. (dispatcher): New variable.
  6001. (messageFactory): New variable.
  6002. (peerConnection: New variable.
  6003. (setBtMessageDispatcher): New function.
  6004. (setPeerConnection): New function.
  6005. (setBtMessageFactory): New function.
  6006. (setBtRequestFactory): New function.
  6007. * src/DefaultBtMessageFactory.cc
  6008. (setCommonProperty): Set dispatcher, requestFactory, this,
  6009. peerConnection to msg.
  6010. * src/BtRegistry.h
  6011. (BT_MESSAGE_RECEIVER): New macro.
  6012. * src/PeerConnection.h
  6013. (PeerConnectionWeakHandle): New type definition.
  6014. * src/BtMessageFactory.h
  6015. (BtMessageFactoryWeakHandle): New type definition.
  6016. * src/BitfieldMan.cc
  6017. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6018. cachedCompletedLength, cachedFilteredComletedLength,
  6019. cachedFilteredTotalLength.
  6020. Call updateCache().
  6021. (countMissingBlock): Return cachedNumMissingBlock.
  6022. (countMissingBlockNow): New function.
  6023. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6024. (countFilteredBlockNow): New function.
  6025. (setBit): Call updateCache().
  6026. (unsetBit): Call updateCache().
  6027. (setBitfield): Call updateCache().
  6028. (clearAllBit): Call updateCache().
  6029. (setAllBit): Use setBitInternal instead of setBit.
  6030. Call updateCache().
  6031. (addFilter): Call updateCache().
  6032. (enableFilter): Call updateCache().
  6033. (disableFilter): Call updateCache().
  6034. (clearFilter): Call updateCache().
  6035. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6036. (getFilteredTotalLengthNow): New function.
  6037. (getCompletedLength): Return cachedCompletedLength.
  6038. (getCompletedLengthNow): New function.
  6039. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6040. (getFilteredCompletedLengthNow): New function.
  6041. (updateCache): New function.
  6042. * src/BtMessageReceiver.h
  6043. (BtMessageReceiverWeakHandle): New type definition.
  6044. * src/DefaultBtMessageReceiver.cc
  6045. (receiveHandshake): Use messageFactory member.
  6046. (sendHandshake): Use messageFactory member.
  6047. (receiveMessage): Use messageFactory member.
  6048. * src/DefaultBtMessageFactory.h
  6049. (dispatcher): New variable.
  6050. (requestFactory): New variable.
  6051. (peerConnection): New variablle.
  6052. (setBtMessageDispatcher): New function.
  6053. (setBtRequestFactory): New function.
  6054. (setPeerConnection): New function.
  6055. * src/SharedHandle.h
  6056. (RefCount): New class.
  6057. (WeakHandle): New class.
  6058. * src/PeerObject.h
  6059. (BtMessageReceiver.h): New include.
  6060. (PeerObject): Added btMessageReceiver.
  6061. (btMessageReceiver): New variable.
  6062. * src/Util.cc
  6063. (countBit): Simplified.
  6064. * src/BtCancelMessage.cc
  6065. (doReceivedAction): Use dispatcher member.
  6066. * src/BtRequestFactory.h
  6067. (BtRequestFactoryWeakHandle): New type definition.
  6068. * src/PeerStorage.h
  6069. (downloadSpeed): int -> uint32_t
  6070. (uploadSpeed): int -> uint32_t
  6071. (sessionDownloadLength): long long int -> uint64_t
  6072. (sessionUploadLength): long long int -> uint64_t
  6073. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. To add RecoverableException, FatalException:
  6075. * src/AbstractCommand.cc
  6076. (onAbort): Exception -> RecoverableException
  6077. * src/PeerAbstractCommand.h
  6078. (RecoverableException.h): New include.
  6079. (onAbort): Exception -> RecoverableException.
  6080. * src/PeerInteractionCommand.cc
  6081. (onAbort): Exception -> RecoverableException.
  6082. * src/PeerAbstractCommand.cc
  6083. (execute): Exception -> RecoverableException.
  6084. (onAbort): Exception -> RecoverableException.
  6085. * src/TorrentRequestInfo.cc
  6086. (execute): Exception -> RecoverableException.
  6087. * src/MetalinkRequestInfo.cc
  6088. (execute): Exception -> RecoverableException.
  6089. * src/MetaFileUtil.cc: RecoverableException.
  6090. * src/AbstractCommand.h
  6091. (onAbort): Exception -> RecoverableException.
  6092. * src/DlRetryEx.h: Exception -> RecoverableException.
  6093. * src/DlAbortEx.h: Exception -> RecoverableException.
  6094. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6095. * src/Util.cc: Exception -> RecoverableException.
  6096. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6097. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6098. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6099. To make ID static const int
  6100. * src/BtInterestedMessage.h
  6101. (ID_t): Removed.
  6102. (ID): New variable.
  6103. (getId): Made non-const.
  6104. * src/BtPieceMessage.h
  6105. (ID_t): Removed.
  6106. (ID): New variable.
  6107. (getId): Made non-const.
  6108. * src/BtChokeMessage.h
  6109. (ID_t): Removed.
  6110. (ID): New variable.
  6111. (getId): Made non-const.
  6112. * src/BtHaveAllMessage.h
  6113. (ID_t): Removed.
  6114. (ID): New variable.
  6115. (getId): Made non-const.
  6116. * src/BtKeepAliveMessage.h
  6117. (ID_t): Removed.
  6118. (ID): New variable.
  6119. (getId): Made non-const.
  6120. * src/BtHandshakeMessage.h
  6121. (ID): New variable.
  6122. (getId): Made non-const.
  6123. * src/BtSuggestPieceMessage.h
  6124. (ID_t): Removed.
  6125. (ID): New variable.
  6126. (getId): Made non-const.
  6127. * src/BtPortMessage.h
  6128. (ID_t): Removed.
  6129. (ID): New variable.
  6130. (getId): Made non-const.
  6131. * src/AbstractBtMessage.h
  6132. (id): Removed.
  6133. (AbstractBtMessage): Removed id.
  6134. (getId): Removed.
  6135. * src/BtHaveMessage.h
  6136. (ID_t): Removed.
  6137. (ID): New variable.
  6138. (getId): Made non-const.
  6139. * src/BtAllowedFastMessage.h
  6140. (ID_t): Removed.
  6141. (ID): New variable.
  6142. (getId): Made non-const.
  6143. * src/BtCancelMessage.h
  6144. (ID_t): Removed.
  6145. (ID): New variable.
  6146. (getId): Made non-const.
  6147. * src/BtNotInterestedMessage.h
  6148. (ID_t): Removed.
  6149. (ID): New variable.
  6150. (getId): Made non-const.
  6151. * src/BtChokeMessage.h
  6152. (ID_t): Removed.
  6153. (ID): New variable.
  6154. (getId): Made non-const.
  6155. * src/BtRejectMessage.h
  6156. (ID_t): Removed.
  6157. (ID): New variable.
  6158. (getId): Made non-const.
  6159. * src/BtBitfieldMessage.h
  6160. (ID_t): Removed.
  6161. (ID): New variable.
  6162. (getId): Made non-const.
  6163. * src/BtUnchokeMessage.h
  6164. (ID_t): Removed.
  6165. (ID): New variable.
  6166. (getId): Made non-const.
  6167. * src/BtRequestMessage.h
  6168. (ID_t): Removed.
  6169. (ID): New variable.
  6170. (getId): Made non-const.
  6171. * src/BtHaveMessage.h
  6172. (ID_t): Removed.
  6173. (ID): New variable.
  6174. (getId): Made non-const.
  6175. To add --force-truncate command-line option and a check whether
  6176. the file already exists:
  6177. * src/DirectDiskAdaptor.h
  6178. (getFilePath): Made virtual public.
  6179. * src/MultiDiskAdaptor.h
  6180. (File.h): New include.
  6181. (DiskWriterEntry::fileEntry): Made private.
  6182. (DiskWriterEntry::fileExists): New function.
  6183. (DiskWriterEntry::getFileEntry): New function.
  6184. (fileExists): New function.
  6185. (getFilePath): New function.
  6186. * src/TorrentRequestInfo.cc
  6187. (FatalException.h): New include.
  6188. (message.h): New include.
  6189. (RecoverableException.h): New include.
  6190. (execute): Added a check whether file is already exists or not.
  6191. * src/DiskAdaptor.h
  6192. (fileExists): New function.
  6193. (getFilePath): New function.
  6194. * src/main.cc
  6195. (showUsage): Added an explanation of --force-truncate command-line
  6196. option.
  6197. (main): Added --force-truncate command-line option.
  6198. * src/Exception.h
  6199. (setMsg): buf[256] -> buf[1024]
  6200. * src/CopyDiskWriter.h
  6201. (getFilePath): Made public virtual.
  6202. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  6203. (fileExists): New function.
  6204. * src/DownloadEngineFactory.cc
  6205. (newTorrentConsoleEngine): Don't open file here.
  6206. * src/message.h
  6207. (EX_FILE_ALREADY_EXISTS): New definition.
  6208. * src/prefs.h
  6209. (PREF_FOECE_TRUNCATE): New definition.
  6210. * src/HttpResponseCommand.cc
  6211. (handleDefaultEncoding): Added a check whether the file already exists.
  6212. * src/SegmentMan.h
  6213. (fileExists): New function.
  6214. (shouldCancelDownloadForSafety): New function.
  6215. * src/FtpNegotiateCommand.cc
  6216. (recvSize): Added a check whether the file already exists.
  6217. * src/AbstractSingleDiskAdaptor.cc
  6218. (File.h): New include.
  6219. (fileExists): New function.
  6220. * src/AbstractSingleDiskAdaptor.h
  6221. (getFilePath): Removed.
  6222. (fileExists): New function.
  6223. * src/SegmentMan.cc
  6224. (fileExists): New function.
  6225. (shouldCancelDownloadForSafety): New function.
  6226. To fix regression bug in torrent downloading:
  6227. * src/DefaultBtRequestFactory.cc
  6228. (doChokedAction): New function.
  6229. * src/DefaultBtRequestFactory.h
  6230. (doChokedAction): New function.
  6231. * src/DefaultBtMessageDispatcher.cc
  6232. (doChokedAction): Do not delete request if its target is in allowed
  6233. fast set.
  6234. * src/DefaultBtInteractive.cc
  6235. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  6236. (sendKeepAlive): Send keep alive message even if the outgoing message
  6237. queue is not empty.
  6238. (decideInterest): Simplified the code.
  6239. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  6240. it is already called when BtChokeMessage is received from a peer.
  6241. * src/BtRequestFactory.h
  6242. (doChokedAction): New function.
  6243. To clean up code:
  6244. * src/PeerInteractionCommand.h
  6245. (executeInternal): Added virtual keyword explicitly.
  6246. (prepareForRetry): Added virtual keyword explicitly.
  6247. (prepareForNextPeer): Added virtual keyword explicitly.
  6248. (onAbort): Added virtual keyword explicitly.
  6249. * src/RequestSlot.cc
  6250. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  6251. * src/BtPieceMessage.cc
  6252. (doReceivedAction): Added a debug log of piece's bitfield.
  6253. * src/Piece.h
  6254. (getBitfieldLength): New function.
  6255. * src/ByteArrayDiskWriter.cc
  6256. (clear): Added buf = 0 to avoid double free corruption.
  6257. * src/FileAllocator.cc
  6258. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  6259. Added cp.reset().
  6260. * src/BitfieldMan.h
  6261. (operator=): Rewritten.
  6262. * src/BitfieldMan.cc
  6263. (BitfieldMan): Initialized bitfield, useBitfield.
  6264. * src/PeerConnection.cc
  6265. (receiveMessage): Added a call to socket->readable() after getting
  6266. message length to avoid possible EOF.
  6267. * src/Util.cc
  6268. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  6269. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. To add an ability to pre-allocate file space:
  6271. * src/DirectDiskAdaptor.h: Rewritten.
  6272. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  6273. * src/MultiDiskAdaptor.h: Rewritten.
  6274. * src/DefaultPieceStorage.cc
  6275. (MultiDiskWriter.h): Removed include.
  6276. (PreAllocationDiskWriter.h): Removed include.
  6277. (FileAllocationMonitor.h): New include.
  6278. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  6279. (initStorage): Rewritten.
  6280. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6281. * src/FileAllocator.h: New class.
  6282. * src/FileAllocator.cc: New class.
  6283. * src/FileAllocationMonitor.h: New class.
  6284. * src/FileAllocationMonitor.cc: New class.
  6285. * src/ConsoleFileAllocationMonitor.h: New class.
  6286. * src/ConsoleFileAllocationMonitor.cc: New class.
  6287. * src/AbstractSingleDiskAdaptor.h: New class.
  6288. * src/AbstractSingleDiskAdaptor.cc: New class.
  6289. * src/DiskAdaptor.h
  6290. (Directory.h): Removed include.
  6291. (DiskWriter.h): Removed include.
  6292. (FileEntry.h): Removed include.
  6293. (diskWriter): Removed.
  6294. (DiskAdaptor): Removed diskWriter.
  6295. (openFile): Made pure virtual.
  6296. (closeFile): Made pure virtual.
  6297. (openExistingFile): Made pure virtual.
  6298. (initAndOpenFile): Made pure virtual.
  6299. (writeData): Made pure virtual.
  6300. (readData): Made pure virtual.
  6301. (sha1Sum): Made pure virtual.
  6302. (getStoreDir): Returns const reference of storeDir.
  6303. (DiskAdaptorHandle): New type definition.
  6304. * src/main.cc
  6305. (ConsoleFileAllocationMonitor.h): New include.
  6306. (showUsage): Added default value description of -s option.
  6307. Added the description of --file-allocation option.
  6308. (main): Set default value of --file-allocation option to 'none'.
  6309. Added --file-allocation command-line option.
  6310. Setup FileAllocationMonitorFactory.
  6311. * src/FtpInitiateConnectionCommand.cc
  6312. (executeInternal): Removed diskWriter related processing, which was
  6313. moved to FtpNegotiationCommand.cc.
  6314. * src/DirectDiskAdaptor.cc
  6315. (getFilePath): Made non-const.
  6316. * src/CopyDiskAdaptor.h
  6317. (DiskAdaptor.h): Removed include.
  6318. (DiskWriter.h): Removed include.
  6319. (AbstractSingleDiskAdaptor.h): New include.
  6320. (getFilePath): Made non-const. Added virtual keyword.
  6321. (CopyDiskAdaptor): Removed diskWriter.
  6322. (getTempFile): Returns const reference.
  6323. (CopyDiskAdaptorHandle): New type definition.
  6324. * src/ByteArrayDiskWriter.cc
  6325. (clear): Simplified.
  6326. (initAndOpenFile): Rewritten.
  6327. (openFile): Call initAndOpenFile()
  6328. * src/MultiDiskAdaptor.cc: Rewritten.
  6329. * src/DownloadEngineFactory.cc
  6330. (FileAllocator.h): New include.
  6331. (FileAllocationMonitor.h): New include.
  6332. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  6333. create DefaultDiskWriter with file allocator.
  6334. * src/DiskWriter.h
  6335. (initAndOpenFile): Added totalLength argument.
  6336. (openFile): Added totalLength argument.
  6337. * src/prefs.h
  6338. (PREF_FILE_ALLOCATION): New definition.
  6339. (V_PREALLOC): New definition.
  6340. (V_NONE): New definition.
  6341. * src/HttpResponseCommand.cc
  6342. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  6343. size.
  6344. * src/FtpNegotiateCommand.cc
  6345. (Util.h): New include.
  6346. (recvSize): Open file here.
  6347. * src/Util.h
  6348. (ullitos): New function.
  6349. * src/CopyDiskWriter.h
  6350. (getFilePath): Made non-const.
  6351. * src/DefaultDiskWriter.h
  6352. (Option.h): New include.
  6353. (totalLength): Removed.
  6354. (DefaultDiskWriter): Removed totalLength.
  6355. (initAndOpenFile): Added totalLength argument.
  6356. (DefaultDiskWriterHandle): New type definition.
  6357. (createNewDiskWriter): New function.
  6358. * src/Util.cc
  6359. (ullitos): New function.
  6360. * src/DefaultDiskWriter.cc
  6361. (message.h): New include.
  6362. (FileAllocator.h): New include.
  6363. (prefs.h): New include.
  6364. (Util.h): New include.
  6365. (DefaultDiskWriter): Removed totalLength.
  6366. (initAndOpenFile): Added file allocation.
  6367. (createNewDiskWriter): New function. Just for temporary solution.
  6368. It will be rewritten later.
  6369. * src/DiskAdaptor.cc
  6370. (DiskAdaptor): Removed diskWriter.
  6371. * src/AbstractDiskWriter.cc
  6372. (LogFactory.h): New include.
  6373. (AbstractDiskWriter): Added fileAllocator, logger.
  6374. (openFile): Added totalLength argument.
  6375. * src/AbstractDiskWriter.h
  6376. (FileAllocator.h): New include.
  6377. (Logger.h): New include.
  6378. (fileAllocator): New variable.
  6379. (logger): New variable.
  6380. (openFile): Added totalLength argument. Added virtual keyword
  6381. explicitly.
  6382. (openExistingFile): Added totalLength argument. Added virtual keyword
  6383. explicitly.
  6384. (closeFile): Added virtual keyword explicitly.
  6385. (sha1Sum): Added virtual keyword explicitly.
  6386. (writeData): Added virtual keyword explicitly.
  6387. (readData): Added virtual keyword explicitly.
  6388. (setFileAllocator): New function.
  6389. * src/DefaultPieceStorage.h
  6390. (FileAllocator.h): New include.
  6391. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6392. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6393. * src/FileProgressMonitor.h: New class.
  6394. To compile aria2 on PC-BSD:
  6395. * src/DefaultBtContext.cc
  6396. (libgen.h): New include.
  6397. To fix memory leak:
  6398. * src/Exception.h
  6399. (~Exception): Delete cause. Fixed memory leak.
  6400. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Rewritten a portion of bittorrent implementation:
  6402. * src/BtMessageValidator.h: New class.
  6403. * src/BtBitfieldMessageValidator.h: New class.
  6404. * src/BtHandshakeMessageValidator.h: New class.
  6405. * src/BtRequestMessageValidator.h: New class.
  6406. * src/BtSuggestPieceMessageValidator.h: New class.
  6407. * src/BtAllowedFastMessageValidator.h: New class.
  6408. * src/BtRejectMessageValidator.h: New class.
  6409. * src/BtCancelMessageValidator.h: New class.
  6410. * src/BtPieceMessageValidator.h: New class.
  6411. * src/BtHaveMessageValidator.h: New class.
  6412. * src/BtEventListener.h: New class.
  6413. * src/AbstractBtEventListener.h: New class.
  6414. * src/BtEvent.h: New class.
  6415. * src/BtChokingEvent.h: New class.
  6416. * src/BtChokedEvent.h: New class.
  6417. * src/BtCancelSendingPieceEvent.h: New class.
  6418. * src/BtAbortOutstandingRequestEvent.h: New class.
  6419. * src/Randomizer.h: New class.
  6420. * src/SimpleRandomizer.h: New class.
  6421. * src/BtMessage.h: New class.
  6422. * src/AbstractBtMessage.h: New class.
  6423. * src/SimpleBtMessage.h: New class.
  6424. * src/BtHaveMessage.h: New class.
  6425. * src/BtInterestedMessage.h: New class.
  6426. * src/BtAllowedFastMessage.h: New class.
  6427. * src/BtUnchokeMessage.h: New class.
  6428. * src/BtCancelMessage.h: New class.
  6429. * src/BtNotInterestedMessage.h: New class.
  6430. * src/BtChokeMessage.h: New class.
  6431. * src/BtHaveNoneMessage.h: New class.
  6432. * src/BtHandshakeMessage.h: New class.
  6433. * src/BtSuggestPieceMessage.h: New class.
  6434. * src/BtHaveMessage.h: New class.
  6435. * src/BtPieceMessage.h: New class.
  6436. * src/BtHaveAllMessage.h: New class.
  6437. * src/BtKeepAliveMessage.h: New class.
  6438. * src/BtPortMessage.h: New class.
  6439. * src/BtRejectMessage.h: New class.
  6440. * src/BtBitfieldMessage.h: New class.
  6441. * src/BtRequestMessage.h: New class.
  6442. * src/DefaultBtRequestFactory.h: New class.
  6443. * src/DefaultBtMessageReceiver.h: New class.
  6444. * src/BtInteractive.h: New class.
  6445. * src/BtMessageDispatcher.h: New class.
  6446. * src/DefaultBtMessageDispatcher.h: New class.
  6447. * src/DefaultBtInteractive.h: New class.
  6448. * src/BitfieldManFactory.h: New class.
  6449. * src/HandleRegistry.h: New class.
  6450. * src/BtMessageFactory.h: New class.
  6451. * src/BtMessageReceiver.h: New class.
  6452. * src/DefaultBtMessageFactory.h: New class.
  6453. * src/PeerObject.h: New class.
  6454. * src/BtRequestFactory.h: New class.
  6455. * src/SuggestPieceMessage.h: Removed.
  6456. * src/PortMessage.h: Removed.
  6457. * src/SuggestPieceMessage.h: Removed.
  6458. * src/KeepAliveMessage.h: Removed.
  6459. * src/HandshakeMessage.h: Removed.
  6460. * src/PeerInteraction.h: Removed.
  6461. * src/UnchokeMessage.h: Removed.
  6462. * src/PieceMessage.h: Removed.
  6463. * src/RequestMessage.h: Removed.
  6464. * src/InterestedMessage.h: Removed.
  6465. * src/HaveMessage.h: Removed.
  6466. * src/CancelMessage.h: Removed.
  6467. * src/RejectMessage.h: Removed.
  6468. * src/AllowedFastMessage.h: Removed.
  6469. * src/HaveNoneMessage.h: Removed.
  6470. * src/SimplePeerMessage.h: Removed.
  6471. * src/HaveAllMessage.h: Removed.
  6472. * src/BitfieldMessage.h: Removed.
  6473. * src/PeerMessageFactory.h: Removed.
  6474. * src/NotInterestedMessage.h: Removed.
  6475. * src/ChokeMessage.h: Removed.
  6476. * src/PeerMessage.h: Removed.
  6477. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. To know root cause of exception:
  6479. * src/Exception.h
  6480. (cause): New variable.
  6481. (Exception): Added a parameter.
  6482. (getMsg): Return const reference to msg.
  6483. (getCause): New function.
  6484. * src/DlRetryEx.h
  6485. (DlRetryEx): Added a parameter 'cause'.
  6486. Added an overloaded constructor.
  6487. (DlAbortEx): Added a parameter 'cause'.
  6488. Added an overloaded constructor.
  6489. * src/SimpleLogger.cc
  6490. (writeLog): Log nested exception messages recursively.
  6491. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. * src/DefaultBtProgressInfoFile.cc
  6493. (load): Fixed memory leak when the infohash doesn't match.
  6494. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. * src/DefaultPeerStorage.cc
  6496. (calculateStat): Simplified the code by combining 2 loops into 1.
  6497. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  6499. for BitTorrent download:
  6500. * src/PeerAbstractCommand.cc
  6501. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  6502. * src/main.cc:
  6503. (timeoutSpecified): Removed.
  6504. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  6505. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  6506. * src/TorrentRequestInfo.cc
  6507. (timeoutSpecified): Removed.
  6508. (torrentHandler): Removed timeoutSpecified and the adjustment of
  6509. timeout value.
  6510. * src/prefs.h
  6511. (PREF_BT_TIMEOUT): New definition.
  6512. Delete unused variables:
  6513. * src/TorrentRequestInfo.cc
  6514. (requestInfo): Removed.
  6515. Move setSignalHander to Util::setGlobalSignalHandler:
  6516. * src/TorrentRequestInfo.cc:
  6517. setSignalHander -> Util::setGlobalSignalHandler
  6518. * src/main.cc
  6519. (setSignalHander): Removed.
  6520. (main): setSignalHander -> Util::setGlobalSignalHandler
  6521. * src/Util.h
  6522. (setGlobalSignalHandler): New function.
  6523. * src/Util.cc
  6524. (setGlobalSignalHandler): New function.
  6525. * src/UrlRequestInfo.cc:
  6526. setSignalHander -> Util::setGlobalSignalHandler
  6527. Reset peer status in order to exit gracefully:
  6528. * src/PeerAbstractCommand.cc
  6529. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  6530. To fix the bug that causes the number of bytes uploaded is not saved
  6531. to .aria2 file:
  6532. * src/DefaultPeerStorage.h
  6533. (removedPeerSessionDownloadLength): New variable.
  6534. (removedPeerSessionUploadLength): New variable.
  6535. * src/DefaultPeerStorage.cc
  6536. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  6537. removedPeerSessionUploadLength(0).
  6538. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  6539. through all peers, and then add removedPeerSessionDownloadLength(
  6540. removedPeerSessionUploadLength) to it.
  6541. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  6542. (to) the peer to removedPeerSessionDownloadLength
  6543. (removedPeerSessionUploadLength).
  6544. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. To add Metalink location option:
  6546. * src/MetalinkRequestInfo.cc
  6547. (execute): Call MetalinkEntry::setLocationPreference()
  6548. * src/main.cc
  6549. (showUsage): Added the help message for --metalink-location option.
  6550. (main): Added --metalink-location option.
  6551. * src/prefs.h
  6552. (PREF_METALINK_LOCATION): New definition.
  6553. * src/MetalinkEntry.cc
  6554. (AddLocationPreference): New function object.
  6555. (setLocationPreference): New function.
  6556. * src/Xml2MetalinkProcessor.cc
  6557. (getResource): Set location attribute to MetalinkResource
  6558. To show URLs to download
  6559. * src/UrlRequestInfo.h
  6560. (printUrls): New function.
  6561. To add multiple <file> Metalink support:
  6562. * src/MetalinkEntry.h
  6563. (MetalinkResources): Removed.
  6564. (setLocationPreference): New function.
  6565. (MetalinkEntryHandle): New type definition.
  6566. (MetalinkEntries): New type definition.
  6567. * src/Xml2MetalinkProcessor.h
  6568. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6569. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6570. (parseFile): Metalinker* -> MetalinkerHandle
  6571. * src/UrlRequestInfo.h
  6572. (execute): RequestInfo* -> RequestInfos
  6573. * src/MetalinkRequestInfo.cc
  6574. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  6575. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  6576. (execute): RequestInfo* -> RequestInfos
  6577. Added multiple <file> support. Print filename when it is queued.
  6578. * src/MetalinkRequestInfo.h
  6579. (execute): RequestInfo* -> RequestInfos
  6580. (getDownloadEngine): Removed.
  6581. * src/RequestInfo.h
  6582. (RequestInfoHandle): New type definition.
  6583. (RequestInfos): New type definition.
  6584. (execute): RequestInfo* -> RequestInfos
  6585. (getDownloadEngine): Removed.
  6586. * src/MetalinkResource.h
  6587. (MetalinkResourceHandle): New type definition.
  6588. (MetalinkResources): New type definition.
  6589. * src/MetalinkEntry.cc
  6590. (~MetalinkEntry): Removed the deletion of the elements of resources,
  6591. because the element is now of type MetalinkResourceHandle.
  6592. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  6593. (Supported): MetalinkResource* -> MetalinkResourceHandle
  6594. (dropUnsupportedResource): Removed the deletion of the elements of
  6595. resources because the element is now of type MetalinkResourceHandle.
  6596. * src/Xml2MetalinkProcessor.cc
  6597. (parseFile): Metalinker* -> MetalinkerHandle
  6598. MetalinkEntry* -> MetalinkEntryHandle
  6599. Removed try-catch block.
  6600. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6601. MetalinkResource* -> MetalinkResourceHandle
  6602. Removed try-catch block.
  6603. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6604. Free result by using xmlXPathFreeObject()
  6605. * src/Metalinker.cc
  6606. (~Metalinker): Removed the deletion of entries.
  6607. MetalinkEntry* -> MetalinkEntryHandle
  6608. (queryEntry): Add multiple <file> Metalink support.
  6609. * src/Metalinker.h
  6610. (MetalinkEntries): Removed.
  6611. (queryEntry): MetalinkEntry* -> MetalinkEntries
  6612. * src/MetalinkProcessor.h
  6613. (parseFile): Metalinker* -> MetalinkerHandle
  6614. Bug fixes:
  6615. * src/PeerChokeCommand.cc
  6616. (execute): cat01->cat02
  6617. * src/DefaultPieceStorage.cc
  6618. (DefaultPieceStorage): Added diskAdaptor(0)
  6619. * src/TrackerWatcherComand.cc:
  6620. (execute): Use btAnnounce->noMoreAnnounce()
  6621. to determin whether the function returns true or not.
  6622. * src/TrackerUpdateCommand.cc:
  6623. (execute): Use btAnnounce->noMoreAnnounce()
  6624. to determin whether the function returns true or not.
  6625. * src/FtpConnection.cc
  6626. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  6627. This is the fix of the busy loop bug.
  6628. * src/DownloadCommand.cc
  6629. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  6630. cached PeerStat.
  6631. The value of "name" entry in torrent file is now set by
  6632. *DiskAdaptor::setTopDir(...) methods.
  6633. * src/MultiDiskAdaptor.h
  6634. (topDir): New variable.
  6635. (setTopDir): New function.
  6636. (getTopDir): New function.
  6637. * src/MultiDiskAdaptor.cc
  6638. (getFilePath): Concat storDir, "/" and topDir.
  6639. (mkdir): Use getFilePath() to get the directory path for output.
  6640. * src/DefaultPieceStorage.cc
  6641. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  6642. CopyDiskAdaptor.
  6643. * src/CopyDiskAdaptor.h
  6644. (topDir): New variable.
  6645. (setTopDir): New function.
  6646. (getTopDir): New function.
  6647. * src/CopyDiskAdaptor.cc
  6648. (fixFilename): Updated.
  6649. Misc
  6650. * src/UrlRequestInfo.h
  6651. (e): Removed.
  6652. (UrlRequestInfo): Removed e.
  6653. (getDownloadEngine): Removed.
  6654. * src/UrlRequestInfo.cc
  6655. (handler): Rewritten.
  6656. (printUrls): New function.
  6657. (execute): Call printUrls().
  6658. * src/HandshakeMessage.cc
  6659. (check): peerinteraction->getBtContext() -> btContext
  6660. * src/PeerInteraction.h
  6661. (getBtContext): Removed.
  6662. * src/TorrentRequestInfo.h
  6663. (execute): RequestInfo* -> RequestInfos
  6664. (getDownloadEngine): Removed.
  6665. * src/TorrentRequestInfo.cc
  6666. (haltRequested): Removed.
  6667. (btHaltRequested): New variable.
  6668. (torrentHandler): haltRequested -> btHaltRequested
  6669. (execute): RequestInfo* -> RequestInfos
  6670. * src/TorrentConsoleDownloadEngine.cc
  6671. (afterEachIteration): haltRequested -> btHaltRequested.
  6672. * src/ConsoleDownloadEngine.h
  6673. (initStatistics): Added virtual.
  6674. (calculateStatistics): Added virtual.
  6675. (onEndOfRun): Added virtual.
  6676. (afterEachIteration): Added virtual.
  6677. * src/ConsoleDownloadEngine.cc
  6678. (haltRequested): New variable.
  6679. (afterEachIteration): New function.
  6680. * src/main.cc
  6681. (requestInfo): Removed.
  6682. * src/SegmentMan.cc
  6683. (findSlowerSegmentEntry): Refactored.
  6684. * Release 0.9.0
  6685. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  6687. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  6688. * src/TorrentMan.h: Removed.
  6689. * src/TorrentMan.cc: Removed.
  6690. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  6691. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  6692. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  6693. * src/PeerAbstractCommand.cc: Use btRuntime.
  6694. * src/BtContextAwareCommand.h: New class.
  6695. * src/FileEntry.h: Added accessor methods for following variables.
  6696. (path): Made private.
  6697. (length): Made private.
  6698. (offset): Made private.
  6699. (extracted): Made private.
  6700. (requested): Made private.
  6701. (FileEntries): New definition.
  6702. (FileEntryHandle): New definition.
  6703. * src/FileEntry.cc: New file.
  6704. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  6705. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  6706. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  6707. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  6708. * src/PieceStorage.h: New file.
  6709. * src/PeerInteractionCommand.h: Use btContext.
  6710. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  6711. btRuntime.
  6712. * src/DefaultBtProgressInfoFile.h: New file.
  6713. * src/DefaultBtProgressInfoFile.cc: New file.
  6714. * src/File.cc
  6715. (Util.h): New include.
  6716. (mkdirs): New function.
  6717. * src/MultiDiskAdaptor.h
  6718. (mkdir): New function.
  6719. * src/PeerListProcessor.h
  6720. (Peers): Removed.
  6721. * src/PeerInteraction.h
  6722. (torrentMan): Removed.
  6723. (btContext): New variable.
  6724. (peerStorage): New variable.
  6725. (pieceStorage): New variable.
  6726. (btAnnounce): New variable.
  6727. (getTorrentMan): Removed.
  6728. (getBtContext): New function.
  6729. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  6730. btAnnounce.
  6731. * src/HandshakeMessage.h
  6732. (TorrentMan.h): Removed.
  6733. * src/HandshakeMessage.cc: Use btContext.
  6734. * src/DefaultBtAnnounce.cc: New file.
  6735. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  6736. * src/DefaultPieceStorage.cc: New file.
  6737. * src/DefaultBtContext.h: New file.
  6738. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  6739. Use the accessor methods of FileEntry.
  6740. * src/CookieBox.cc: Updated to use Util::slice().
  6741. * src/PieceMessage.cc: Use btContext, pieceStorage.
  6742. * src/common.h (SharedHandle.h): New include.
  6743. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  6744. pieceStorage.
  6745. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  6746. * src/DiskAdaptor.h
  6747. (topDir): Removed.
  6748. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  6749. (setTopDir): Removed.
  6750. (getTopDir): Removed.
  6751. * src/BtContext.h: New file.
  6752. * src/DefaultPeerStorage.h: New file.
  6753. * src/PieceMessage.h (TorrentMan.h): Removed.
  6754. * src/RequestMessage.h (TorrentMan.h): Removed.
  6755. * src/TorrentDownloadEngine.h
  6756. (uploadLength): New variable.
  6757. (btContext): New variable.
  6758. (btRuntime): New variable.
  6759. (pieceStorage): New variable.
  6760. (peerStorage): New variable.
  6761. (btAnnounce): New variable.
  6762. (btProgressInfoFile): New variable.
  6763. (torrentMan): Removed.
  6764. (setBtContext): New function.
  6765. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  6766. peerStorage, btAnnounce, btProgressInfoFile.
  6767. * src/Piece.h
  6768. (toString): New function.
  6769. (Pieces): New type definition.
  6770. * src/Peer.h
  6771. (active): New variable.
  6772. (Peer): Added active.
  6773. (activate): Set active to true.
  6774. (deactivate): Set active to false.
  6775. (isActive): New function.
  6776. (Peers): New type definition.
  6777. * src/DirectDiskAdaptor.cc
  6778. (getFilePath): Use the accessor methods of FileEntry.
  6779. * src/TorrentConsoleDownloadEngine.h
  6780. (afterEachIteration): New function.
  6781. * src/TorrentConsoleDownloadEngine.cc
  6782. (haltRequested): New variable.
  6783. (sendStatistics): Use pieceStorage, btRuntime.
  6784. (afterEachIteration): New function.
  6785. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  6786. * src/Directry.h
  6787. (Directory): New function.
  6788. (DirectoryHandle): New type definition.
  6789. * src/BtProgressInfoFile.h: New file.
  6790. * src/RequestMessage.cc: Use pieceStorage.
  6791. * src/BtRuntime.h: New file.
  6792. * src/DefaultBtContext.cc: New file.
  6793. * src/BitfieldMan.h
  6794. (getCompletedLength): New function(private).
  6795. (getCompletedLength): New function.
  6796. (getFilteredCompletedLength): New function.
  6797. * src/BitfieldMan.h
  6798. (getCompletedLength): New function(private).
  6799. (getCompletedLength): New function.
  6800. (getFilteredCompletedLength): New function.
  6801. * src/MultiDiskAdaptor.cc
  6802. (mkdir): New function.
  6803. (openFile): Call mkdir().
  6804. (initAndOpenFile): Call mkdir().
  6805. * src/CancelMessage.h
  6806. (TorrentMan.h): Removed.
  6807. * src/RejectMessage.h
  6808. (TorrentMan.h): Removed.
  6809. * src/DownloadEngineFactory.cc
  6810. (DefaultPieceStorage.h): New include.
  6811. (DefaultPeerStorage.h): New include.
  6812. (DefaultBtAnnounce.h): New include.
  6813. (DefaultBtProgressInfoFile.h): New include.
  6814. (newTorrentConsoleEngine): Rewritten.
  6815. * src/ShareRatioSeedCriteria.h
  6816. (torrentMan): Removed.
  6817. (btContext): New variable.
  6818. (peerStorage): New variable.
  6819. (btRuntime): New variable.
  6820. (evaluate): Use btContext, btRuntime, peerStorage.
  6821. * src/AnnounceTier.h: New file.
  6822. * src/BtAnnounce.h: New file.
  6823. * src/BtRegistry.h: New file.
  6824. * src/PeerInitiateConnectionCommand.h: Added btContext.
  6825. * src/PeerConnection.h (TorrentMan.h): Removed.
  6826. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  6827. * src/Util.h
  6828. (slice): Added an argument.
  6829. * src/Util.cc
  6830. (slice): Added an argument to control whether trim is made or not.
  6831. * src/PeerStorage.h: New file.
  6832. * src/BtRegistry.cc: New file.
  6833. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  6834. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  6835. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  6836. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  6837. * src/TorrentRequestInfo.h
  6838. (e): Removed.
  6839. (showFileEntry): Added an argument.
  6840. (getDownloadEngine): Return 0.
  6841. * src/DefaultBtAnnounce.h: New file.
  6842. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  6843. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  6844. * src/PeerMessageFactory.h
  6845. (btContext): New variable.
  6846. (pieceStorage): New variable.
  6847. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  6848. btAnnounce.
  6849. * src/DiskAdaptor.cc
  6850. (DiskAdaptor): Removed topDir.
  6851. (~DiskAdaptor): Removed topDir.
  6852. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  6853. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  6854. * src/File.h (mkdirs): New function.
  6855. * src/DefaultPeerStorage): New file.
  6856. * src/DownloadEngineFactory.h
  6857. (newTorrentConsoleEngine): Use btContext.
  6858. * src/BtContextAwareCommand.cc: New file.
  6859. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  6860. * src/PeerMessage.h
  6861. (btContext): New variable.
  6862. (peerStorage): New variable.
  6863. (pieceStorage): New variable.
  6864. (setBtContext): New function.
  6865. * src/Directry.cc
  6866. (Directory): New function.
  6867. (createDir): Do nothing if name.size() == 0.
  6868. * src/AnnounceList.h
  6869. (AnnounceTier): Removed.
  6870. (AnnounceTiers): Removed.
  6871. * src/DefaultPieceStorage.h: New file.
  6872. * src/Piece.cc (toString): New function.
  6873. To fix typo:
  6874. * src/main.cc (showVersion): Fixed typo.
  6875. To fix compile warning:
  6876. * src/DelegatingPeerListProcessor.cc
  6877. (canHandle): Added "return false".
  6878. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6879. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  6880. make the process of announce request testable.
  6881. * src/TrackerWatcherCommand.h
  6882. (TimeA2.h): Removed.
  6883. (interval): Removed.
  6884. (checkPoint): Removed.
  6885. (createRequestCommand): Added an argument 'url'.
  6886. (TrackerWatherCommand): Removed interval.
  6887. (createCommand): New function.
  6888. * src/DownloadEngineFactory.cc
  6889. (newTorrentConsoleEngine): Updated according to the changes in
  6890. TrackerWatherCommand.
  6891. * src/TorrentMan.cc
  6892. (DelegatingPeerListProcessor.h): New includes.
  6893. (TorrentMan): Added the initialization of announceInterval.
  6894. (isStoppedAnnounceReady): New function.
  6895. (isCompletedAnnounceReady): New function.
  6896. (isDefaultAnnounceReady): New function.
  6897. (isAnnounceReady): New function.
  6898. (getAnnounceUrl): New function.
  6899. (announceStart): New function.
  6900. (announceFailure): New function.
  6901. (announceSuccess): New function.
  6902. (isAllAnnounceFailed): New function.
  6903. (resetAnnounce): New function.
  6904. (processAnnounceResponse): New function.
  6905. (needMorePeerConnection): New function.
  6906. (noMoreAnnounce): New function.
  6907. * src/TrackerUpdateCommand.h
  6908. (getTrackerResponse): int->size_t
  6909. * src/TorrentMan.h
  6910. (isStoppedAnnounceReady): New function.
  6911. (isCompletedAnnounceReady): New function.
  6912. (isDefaultAnnounceReady): New function.
  6913. (announceInterval): New variable.
  6914. (isAnnounceReady): New function.
  6915. (getAnnounceUrl): New function.
  6916. (announceStart): New function.
  6917. (announceFailure): New function.
  6918. (announceSuccess): New function.
  6919. (isAllAnnounceFailed): New function.
  6920. (resetAnnounce): New function.
  6921. (processAnnounceResponse): New function.
  6922. (needMorePeerConnection): New function.
  6923. (noMoreAnnounce): New function.
  6924. * src/TrackerWatcherCommand.cc
  6925. (TrackerWatherCommand): Removed interval and checkPoint.
  6926. (execute): Rewritten.
  6927. (createCommand): New function.
  6928. (createRequestCommand): Rewritten.
  6929. * src/TrackerUpdateCommand.cc
  6930. (MetaFileUtil.h): Removed.
  6931. (DelegatingPeerListProcessor.h): Removed.
  6932. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  6933. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6934. Request -> RequestHandle:
  6935. * src/HttpResponseCommand.h: Request->RequestHandle
  6936. * src/AbstractCommand.cc: Request->RequestHandle
  6937. * src/HttpDownloadCommand.cc: Request->RequestHandle
  6938. * src/HttpRequestCommand.cc: Request->RequestHandle
  6939. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  6940. * src/AbstractCommand.h: Request->RequestHandle
  6941. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  6942. * src/HttpResponseCommand.cc: Request->RequestHandle
  6943. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  6944. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  6945. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  6946. * src/HttpConnection.h: Request->RequestHandle
  6947. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  6948. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  6949. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  6950. * src/DownloadCommand.h: Request->RequestHandle
  6951. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  6952. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  6953. * src/HttpRequestCommand.h: Request->RequestHandle
  6954. * src/FtpNegotiateCommand.h: Request->RequestHandle
  6955. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  6956. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  6957. * src/HttpDownloadCommand.h: Request->RequestHandle
  6958. * src/FtpConnection.cc: Request->RequestHandle
  6959. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  6960. * src/UrlRequestInfo.cc: Request->RequestHandle
  6961. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  6962. * src/HttpConnection.h: Request->RequestHandle
  6963. * src/DownloadCommand.cc: Request->RequestHandle
  6964. * src/FtpConnection.h: Request->RequestHandle
  6965. * src/FtpDowndloadCommand.h: Request->RequestHandle
  6966. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  6967. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  6968. * src/Request.h
  6969. (SharedHandle.h): New include.
  6970. (RequestHandle): New type definition.
  6971. (Requests): Redefined.
  6972. To add MULTITRACKER support:
  6973. * src/TrackerWatcherCommand.h
  6974. (createRequestCommand): New function.
  6975. * src/DownloadEngineFactory.cc
  6976. (newTorrentConsoleEngine): Removed req.
  6977. * src/prefs.h
  6978. (PREF_TRACKER_MAX_TRIES): New definition.
  6979. * src/TorrentMan.cc
  6980. (TorrentMan): Removed req. Added trackerNumTry.
  6981. (~TorrentMan): Removed req.
  6982. (setupInternal1): Added announceList.
  6983. * src/TorrentRequestInfo.cc
  6984. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  6985. announces is now specified by PREF_TRACKER_MAX_TRIES.
  6986. * src/main.cc
  6987. (main): Added PREF_TRACKER_MAX_TRIES.
  6988. * src/TorrentMan.h
  6989. (Request.h): Removed.
  6990. (AnnounceList.h): New include.
  6991. (trackerNumTry): New variable.
  6992. (req): Removed.
  6993. (announceList): New variable.
  6994. * src/TrackerWatcherCommand.cc
  6995. (execute): Rewritten.
  6996. (createRequestCommand): New function.
  6997. * src/TrackerUpdateCommand.cc
  6998. (execute): Updated with the use of AnnounceList.
  6999. * src/AnnounceList.cc: New class.
  7000. * src/AnnounceList.h: New class.
  7001. To fix typo:
  7002. * src/prefs.h
  7003. (PREF_MAX_TRIES): max_try->max_tries
  7004. To not to decode "+" as space in URL decode:
  7005. * src/Util.cc
  7006. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7007. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7008. To add timeout to async name resolution:
  7009. * src/AbstractCommand.h
  7010. (nameResolveFinished): New function. This is not elegant way. It needs
  7011. to be more refined.
  7012. (nameResolverCheck): New variable.
  7013. * src/AbstractCommand.cc
  7014. (AbstractCommand): Added nameResolverCheck.
  7015. (execute): Added the check whether the name resolution has finished.
  7016. (setNameResolverCheck): Set nameResolverCheck to true.
  7017. (disableNameResolverCheck): Set nameResolverCheck to false.
  7018. (nameResolverFinished): New function.
  7019. * src/FtpInitiateConnectionCommand.h
  7020. (nameResolverFinished): New function.
  7021. * src/FtpInitiateConnectionCommand.cc
  7022. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7023. * src/HttpInitiateConnectionCommand.h
  7024. (nameResolverFinished): New function.
  7025. * src/HttpInitiateConnectionCommand.cc
  7026. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7027. * src/prefs.h
  7028. (PREF_DNS_TIMEOUT): New definition.
  7029. * src/main.cc
  7030. (main): Added PREF_DNS_TIMEOUT.
  7031. To add the support for a non-compact response from a tracker:
  7032. * src/PeerListProcessor.h: New class.
  7033. * src/DefaultPeerListProcessor.h: New class.
  7034. * src/DefaultPeerListProcessor.cc: New class.
  7035. * src/CompactPeerListProcessor.h: New class.
  7036. * src/CompactPeerListProcessor.cc: New class.
  7037. * src/DelegatingPeerListProcessor.h: New class.
  7038. * src/DelegatingPeerListProcessor.cc: New class.
  7039. * src/TorrentMan.cc
  7040. (addPeer): New function(overload).
  7041. (addPeer): Delete unused peers only when new peer is added.
  7042. * src/TorrentMan.h
  7043. (PeerListProcessor.h): Included.
  7044. (Peers): Removed.
  7045. (addPeer): New function(overload).
  7046. * src/TrackerUpdateCommand.cc
  7047. (netinet/in.h): Removed.
  7048. (DelegatingPeerListProcessor.h): Included.
  7049. (execute): Updated to use DelegatingPeerListProcessor.
  7050. To fix the memory leak in TorrentMan::peers:
  7051. * src/PeerAbstractCommand.cc
  7052. (onAbort): Added peer->resetStatus().
  7053. * src/Peer.h
  7054. (resetStatus): Made public.
  7055. To improve the precision of the speed calculation:
  7056. * src/SpeedCalc.h
  7057. (nextInterval): New variable.
  7058. * src/SpeedCalc.cc
  7059. (reset): Added nextInterval.
  7060. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7061. (changeSw): Set nextInterval to 15 seconds relative to the current
  7062. instant time.
  7063. * src/main.cc
  7064. (showVersion): Updated.
  7065. (showUsage): Updated.
  7066. * Release 0.8.1
  7067. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. * src/main.cc
  7069. (showUsage): Commented out --min-segment-size option.
  7070. (main): Commented out --min-segment-size option.
  7071. * Release 0.8.0
  7072. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. * src/*.{h,cc}:
  7074. Added an exception to the license which allows linking with OpenSSL.
  7075. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7076. * src/AbstractCommand.cc
  7077. (execute): Check whether the download has finished before checking
  7078. socket status.
  7079. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7080. Do not exit even if no segment is available.
  7081. * src/prefs.h
  7082. (PREF_STARTUP_IDLE_TIME): New definition.
  7083. * src/PeerInteractionCommand.cc
  7084. (executeInternal): Removed max speed limit. Because it performs bad.
  7085. (receiveMessages): Added max speed limit. This was better than above,
  7086. but still a little bit to be desired. Sometimes the download speed
  7087. became much faster than I specified.
  7088. * src/SpeedCalc.h
  7089. (start): New variable.
  7090. (accumulatedLength): New variable.
  7091. (getAvgSpeed): New function.
  7092. * src/SpeedCalc.cc
  7093. (reset): Added start, accumulatedLength.
  7094. (update): Added calculation of an average speed.
  7095. (getAvgSpeed): New function.
  7096. * src/DownloadCommand.h
  7097. (sw): Removed.
  7098. * src/main.cc
  7099. (main): Added PREF_STARTUP_IDLE_TIME.
  7100. * src/PeerStat.h
  7101. (STATUS): Added REQUEST_IDLE.
  7102. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7103. (getAvgDownloadSpeed): New function
  7104. (requestIdle): New function.
  7105. * src/SegmentMan.h
  7106. (SegmentEntryHandle): New type definition.
  7107. (SegmentEntries): Now holds SegmentEntryHandle.
  7108. (findSlowerSegmentEntry): New funtion.
  7109. * src/SegmentMan.cc
  7110. (save): Updated according to the changes in SegmentEntries.
  7111. (read): Updated according to the changes in SegmentEntries.
  7112. (FindSegmentEntryByIndex): Updated according to the changes in
  7113. SegmentEntries.
  7114. (FindSegmentEntryByCuid): Updated according to the changes in
  7115. SegmentEntries.
  7116. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7117. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7118. Renamed uitr as itr.
  7119. (findSlowerSegmentEntry): New function.
  7120. (getSegment): Updated according to the changes in SegmentEntries.
  7121. Added the feature that cancels the segment with slow server and fast
  7122. one takes it over.
  7123. (cancelSegment): Updated according to the changes in SegmentEntries.
  7124. (getDownloadLength): Updated according to the changes in
  7125. SegmentEntries.
  7126. (init): Assigned 0 to bitfield after deleting it.
  7127. * src/DownloadCommand.cc
  7128. (STARTUP_IDLE_TIME): Removed.
  7129. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7130. * src/PeerChokeCommand.cc
  7131. (optUnchokingPeer): Updated according to the changes in Peer.
  7132. (ResetDelta): Removed.
  7133. (UploadFaster): Updated according to the changes in Peer.
  7134. (DownloadFaster): Updated according to the changes in Peer.
  7135. (execute): I clarify the meaning of "upload" and "download" here.
  7136. "upload" means the transfer from localhost to remote host.
  7137. "download" means the transfer from remote host to localhost.
  7138. Based on this rule, I swapped orderByUploadRate and
  7139. orderByDownloadRate.
  7140. * src/PeerInteractionCommand.cc
  7141. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7142. (executeInternal): Removed the argument of
  7143. peerInteraction->sendMessages().
  7144. (receiveMessages): Rewritten download speed limit.
  7145. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7146. * src/HttpResponseCommand.cc
  7147. (handleDefaultEncoding): If file size is unknown in torrent request,
  7148. do not call segmentMan->initBitfield() here.
  7149. Disabled persistent connection feature in torrent request.
  7150. * src/UrlRequestInfo.h
  7151. (UrlRequestInfo): Removed const qualifier from option.
  7152. * src/TorrentMan.h
  7153. (TransferStat): New class.
  7154. (deltaDownloadLength): Removed.
  7155. (deltaUploadLength): Removed.
  7156. (addDeltaDownloadLength): Removed.
  7157. (getDeltaDownloadLength): Removed.
  7158. (resetDeltaDownloadLength): Removed.
  7159. (addDeltaUploadLength): Removed.
  7160. (getDeltaUploadLength): Removed.
  7161. (resetDeltaUploadLength): Removed.
  7162. (addActivePeer): Added peer->activate().
  7163. (deleteActivePeer): Added peer->deactivate().
  7164. (calculateStat): New function.
  7165. * src/TorrentMan.cc
  7166. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  7167. (calculateStat): New function.
  7168. * src/PeerInteraction.h
  7169. (uploadLimit): Removed.
  7170. (option): New variable.
  7171. (setUploadLimit): Removed.
  7172. (getUploadSpeed): Removed.
  7173. (sendMessages): Removed the argument "currentUploadSpeed".
  7174. * src/PeerInteraction.cc
  7175. (prefs.h): Included.
  7176. (PeerInteraction): Removed uploadLimit. Added option.
  7177. (sendMessages): Rewritten upload speed limit.
  7178. (sendHandshake): Removed the argument from sendMessages().
  7179. (sendBitfield): Removed the argument from sendMessages().
  7180. * src/PeerAbstractCommand.cc
  7181. (execute): Commented out the portion of upload limit.
  7182. (onAbort): Removed peer->resetStatus().
  7183. * src/TorrentRequestInfo.cc
  7184. (timeoutSpecified): Declared extern.
  7185. (execute): Set timeout to 180 if timeout is not specified by.
  7186. command-line.
  7187. * src/PieceMessage.cc
  7188. (receivedAction): Added peer->updateDownloadLength().
  7189. Removed peer->addPeerUpload().
  7190. Removed torrentMan->addDeltaDownloadLength().
  7191. (send): Added peer->updateUploadLength().
  7192. Removed peer->addPeerDownload().
  7193. Removed torrentMan->addDeltaUploadLength().
  7194. * src/main.cc
  7195. (timeoutSpecified): New variable.
  7196. (main): Set timeoutSpecified to false.
  7197. If the command-line option "--upload-limit" is specified, then
  7198. timeoutSpecified is set to true. This option will remain in the next
  7199. release, but be deprecated in the future release.
  7200. * src/TorrentRequestInfo.h
  7201. (TorrentRequestInfo): Removed const qualifier from op.
  7202. * src/PeerStat.h
  7203. (uploadSpeed): New variable.
  7204. (PeerStat): Added default value to cuid.
  7205. (calculateUploadSpeed): New function.
  7206. (updateUploadLength): New function.
  7207. (getMaxUploadSpeed): New function.
  7208. (getAvgUploadSpeed): New function.
  7209. (reset): Added uploadSpeed. Set status to IDLE.
  7210. * src/TorrentDownloadEngine.h
  7211. (cp): Declared as Time.
  7212. (sessionDownloadLengthArray): Removed.
  7213. (sessionUploadLengthArray): Removed.
  7214. (currentCp): Removed.
  7215. (lastCalcStat): New variable
  7216. (lastElapsed): Removed.
  7217. (sessionDownloadLength): Removed.
  7218. (calculateStat): New function.
  7219. * src/TorrentDownloadEngine.cc
  7220. (initStatistics): Removed lastElapsed, cp[],
  7221. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  7222. currentCp, sessionDownloadLength.
  7223. Added cp.reset() and lastCalcStat.reset().
  7224. (calculateSpeed): Changed the name of the argument.
  7225. (calculateStatistics): Rewritten.
  7226. (calculateStat): New function.
  7227. * src/Peer.h
  7228. (PeerStat.h): Included.
  7229. (peerUpload): Removed.
  7230. (peerDownload): Removed.
  7231. (peerStat): New variable.
  7232. (sessionUploadLength): New variable.
  7233. (sessionDownloadLength): New variable.
  7234. (deltaUpload): Removed.
  7235. (deltaDownload): Removed.
  7236. (resetStatus): Made private.
  7237. (Peer): Added sessionUploadLength, sessionDownloadLength.
  7238. Removed peerUpload, peerDownload.
  7239. (updateUploadLength): New function.
  7240. (addDeltaUpload): Removed.
  7241. (updateDownloadLength): New function.
  7242. (resetDeltaUpload): Removed.
  7243. (getDeltaUpload): Removed.
  7244. (addDeltaDownload): Removed.
  7245. (calculateUploadSpeed): New function.
  7246. (resetDeltaDownload): Removed.
  7247. (getDeltaDownload): Removed.
  7248. (calculateDownloadSpeed): New function.
  7249. (getSessionUploadLength): New function.
  7250. (getSessionDownloadLength): New function.
  7251. (activate): New function.
  7252. (deactivate): New function.
  7253. (addPeerUpload): Removed.
  7254. (setPeerUpload): Removed.
  7255. (getPeerUpload): Removed.
  7256. (addPeerDownload): Removed.
  7257. (setPeerDownload): Removed.
  7258. (getPeerDownload): Removed.
  7259. * src/Peer.cc
  7260. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  7261. * src/MetalinkRequestInfo.h
  7262. (MetalinkRequestInfo): Removed const qualifier from op.
  7263. * src/RequestInfo.h
  7264. (op): Removed const qualifier.
  7265. (RequestInfo): Removed const qualifier from op.
  7266. * src/prefs.h
  7267. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  7268. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  7269. * src/PeerInteractionCommand.cc
  7270. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  7271. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  7272. * src/PeerInteraction.cc
  7273. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  7274. * src/main.cc
  7275. (showUsage): Updated the description of "--lowest-speed-limit" option.
  7276. Added the description of "--max-download-limit" option.
  7277. Removed the description of "--upload-limit" option.
  7278. Added the description of "--max-upload-limit" option.
  7279. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  7280. Added "--max-download-limit" option and "--max-upload-limit" option.
  7281. Added the warning message if "--upload-limit" option is used.
  7282. * src/DownloadCommand.cc
  7283. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  7284. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. To rewrite segment download mechanism for HTTP/FTP download.
  7286. Use BitfieldMan to manage segment download.
  7287. * src/HttpResponseCommand.h
  7288. (executeInternal): Pass the reference of segment.
  7289. * src/AbstractCommand.cc
  7290. (prepareForRetry): Call segmentMan->cancelSegment here.
  7291. (onAbort): Call segmentMan->cancelSegment here.
  7292. * src/HttpDownloadCommand.cc
  7293. (prepareForNextSegment): New function.
  7294. * src/DownloadEngineFactory.cc
  7295. (newConsoleEngine): Removed splitter.
  7296. (newTorrentConsoleEngine): Removed splitter.
  7297. * src/Request.h
  7298. (segment): Renamed from seg.
  7299. * src/FtpInitiateConnectionCommand.h
  7300. (executeInternal): Pass the reference of segment.
  7301. * src/AbstractCommand.h
  7302. (executeInternal): Pass the reference of segment.
  7303. * src/pref.h
  7304. (PREF_SEGMENT_SIZE): New definition.
  7305. * src/HttpProxyRequestCommand.h
  7306. (executeInternal): Pass the reference of segment.
  7307. * src/HttpResponseCommand.cc
  7308. (checkResponse): Allowed status 206 when a request range starts 0.
  7309. (handleDefaultEncoding): Rewritten the code related to Segment.
  7310. (handleOtherEncoding): Rewritten the code related to Segment.
  7311. * src/SegmentMan.h
  7312. (SegmentEntry): New class.
  7313. (SegmentEntries): New type definition.
  7314. (bitfield): New variable.
  7315. (usedSegmentEntries): New variable.
  7316. (onNullBitfield): New function.
  7317. (checkoutSegment): New function.
  7318. (segments): Removed.
  7319. (splitter): Removed.
  7320. (unregisterId): Removed.
  7321. (getSegment): New function(overload)
  7322. (getDownloadedSize): Removed.
  7323. (cancelSegment): New function.
  7324. (completeSegment): New function.
  7325. (initBitfield): New function.
  7326. (hasSegment): New function.
  7327. (getDownloadLength): New function.
  7328. * src/BitfieldMan.h
  7329. (getStartIndex): New function.
  7330. (getEndIndex): New function.
  7331. (getMissingUnusedIndex): New function(overload).
  7332. (getSparseMissingUnusedIndex): New function.
  7333. * src/BitfieldMan.cc
  7334. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  7335. (getMissingUnusedIndex): New function(overload).
  7336. (Range): New class.
  7337. (getStartIndex): New function.
  7338. (getEndIndex): New function.
  7339. (getSparseMissingUnusedIndex): New function.
  7340. (isBitSetInternal): Return false if the given index is less than 0.
  7341. * src/HttpInitiateConnectionCommand.h
  7342. (executeInternal): Pass the reference of segment.
  7343. * src/FtpNegotiateCommand.h
  7344. (executeInternal): Pass the reference of segment.
  7345. * src/FtpNegotiateCommand.cc
  7346. (recvSize): Initialize bitfield here.
  7347. * src/FtpTunnelResponseCommand.h
  7348. (executeInternal): Pass the reference of segment.
  7349. * src/HttpConnection.cc
  7350. (createRequest): Rewritten range header processing.
  7351. * src/DownloadCommand.h
  7352. (executeInternal): Pass the reference of segment.
  7353. (prepareForRetry): Removed.
  7354. (prepareForNextSegment): Added an argument segment. Made it a virtual
  7355. function.
  7356. * src/main.cc
  7357. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  7358. * src/SegmentMan.cc
  7359. (SegmentMan): Added bitfield. Removed splitter.
  7360. (~SegmentMan): Added bitfield. Removed splitter.
  7361. (unregisterId): Removed.
  7362. (getSegment): Rewritten.
  7363. (updateSegment): Rewritten.
  7364. (save): Rewritten.
  7365. (read): Rewritten.
  7366. (finished): Rewritten.
  7367. (getDownloadedSize): Removed.
  7368. (initBitfield): New function.
  7369. (FindSegmentEntryByIndex): New function object.
  7370. (FindSegmentEntryByCuid): New function object.
  7371. (checkoutSegment): New function.
  7372. (onNullBitfield): New function.
  7373. (getSegment): New function(overload).
  7374. (CancelSegment): New function object.
  7375. (cancelSegment): New function.
  7376. (completeSegment): New function.
  7377. (hasSegment): New function.
  7378. (getDownloadLength): New function.
  7379. * src/FtpInitiateConnectionCommand.cc
  7380. (executeInternal): Load .aria2 file after hostname resolution finishes.
  7381. * src/Segment.h: Rewritten.
  7382. * src/Segment.cc (operator<<): New function.
  7383. * src/HttpDownloadCommand.h
  7384. (prepareForNextSegment): New function.
  7385. * src/Request.cc
  7386. (resetUrl): Made segment null.
  7387. * src/DownloadEngine.cc
  7388. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  7389. * src/HttpProxyRequestCommand.h
  7390. (executeInternal): Pass the reference of segment.
  7391. * src/DownloadCommand.cc
  7392. (executeInternal): Rewritten the code related to Segment.
  7393. (prepareForRetry): Removed.
  7394. (prepareForNextSegment): Rewritten.
  7395. * src/FtpTunnelResponseCommand.h
  7396. (executeInternal): Pass the reference of segment.
  7397. To add HTTP 1.1 persistent connection support(experimental)
  7398. * src/HttpRequestCommand.cc
  7399. (executeInternal): Disable keep alive if it is disabled by
  7400. configuration.
  7401. * src/Request.h
  7402. (keepAlive): New variable.
  7403. (isKeepAlive): New function.
  7404. (setKeepAlive): New function.
  7405. * src/pref.h
  7406. (PREF_HTTP_KEEP_ALIVE): New definition.
  7407. * src/HttpResponseCommand.cc
  7408. (executeInternal): Check the remote server supports keep alive.
  7409. * src/HttpConnection.cc
  7410. (createRequest): Send "Connection: close" only if keep alive is
  7411. disabled.
  7412. * src/main.cc
  7413. (main):
  7414. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  7415. To add max download speed limit:
  7416. * src/pref.h
  7417. (PREF_MAX_SPEED_LIMIT): New definition.
  7418. * src/PeerInteractionCommand.cc
  7419. (executeInternal): Added max download speed limit. Not tested yet.
  7420. * src/SegmentMan.h
  7421. (PeerStats): New type definition.
  7422. (peerStats): New variable.
  7423. (registerPeerStat): New function.
  7424. (FindPeerStat): New function object.
  7425. (getPeerStat): New function.
  7426. (calculateDownloadSpeed): New function.
  7427. * src/SpeedCalc.h: New class.
  7428. * src/SpeedCalc.cc: New class.
  7429. * src/main.cc
  7430. (main):
  7431. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  7432. download speed is not restricted).
  7433. * src/PeerStat.h: New class.
  7434. * src/SegmentMan.cc
  7435. (registerPeerStat): New function.
  7436. (calculateDownloadSpeed): New function.
  7437. * src/DownloadCommand.cc
  7438. (STARTUP_IDLE_TIME): New definition.
  7439. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  7440. downloadStart.
  7441. (~DownloadCommand): Call peerStat->downloadStop.
  7442. (executeInternal): Added download speed limitter. Rewritten lowest
  7443. speed limitter.
  7444. * src/HttpConnection.cc
  7445. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  7446. * src/AbstractCommand.cc
  7447. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  7448. Added hostname to the error message.
  7449. * src/ConsoleDownloadEngine.cc
  7450. (calculateStatistics): Initialize psize with dlSize.
  7451. * src/PieceMessage.cc
  7452. (receivedAction): Do not call peerInteraction->abortPiece here.
  7453. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  7454. * src/BitfieldMan.h
  7455. (clearAllUseBit): New function.
  7456. (setAllUseBit): New function.
  7457. * src/BitfieldMan.cc
  7458. (clearAllBit): Do not clear useBitfield here.
  7459. (clearAllUseBit): New function.
  7460. (setAllUseBit): New function.
  7461. * src/Piece.cc
  7462. (clearAllBlock): Call bitfield->clearAllUseBit().
  7463. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7464. To make filename URL-decoded:
  7465. * src/HttpResponseCommand.h: Updated doc.
  7466. * src/HttpResponseCommand.cc
  7467. (determinFilename): Made filename URL-decoded.
  7468. * src/FtpInitiateConnectionCommand.cc
  7469. (executeInternal): Made filename URL-decoded.
  7470. * src/Util.h (urldecode): New function.
  7471. * src/Util.cc (urldecode): New function.
  7472. To fix a bug that caused assertion failure in ares_strerror:
  7473. * src/NameResolver.cc (callback): Fixed the bug.
  7474. * Release 0.7.3
  7475. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. To add --seed-time and --seed-ratio command-line option:
  7477. * src/Option.h (getAsDouble): New function.
  7478. * src/Option.cc (getAsDouble): New function.
  7479. * src/SeedCheckCommand.h: New class.
  7480. * src/SeedCheckCommand.cc: New class.
  7481. * src/DownloadEngineFactory.cc
  7482. (SeedCheckCommand.h): Included.
  7483. (UnionSeedCriteria.h): Included.
  7484. (TimeSeedCriteria.h): Included.
  7485. (ShareRatioSeedCriteria.h): Included.
  7486. (newTorrentConsoleEngine): Added the processing of seed option.
  7487. * src/SeedCriteria.h: New class.
  7488. * src/ShareRatioSeedCriteria.h: New class.
  7489. * src/TimeSeedCriteria.h: New class.
  7490. * src/UnionSeedCriteria.h: New class.
  7491. * src/prefs.h
  7492. (PREF_SEED_TIME): New definition.
  7493. (PREF_SEED_RATIO): New definition.
  7494. * src/main.cc
  7495. (showUsage): Added --seed-time and --seed-ratio option.
  7496. (main): Added --seed-time and --seed-ratio option.
  7497. Made default log file name "/dev/null".
  7498. * src/SharedHandle.h
  7499. (SharedHandle): Copy constructor. Made it assignable from the
  7500. SharedHandle of the subclasses.
  7501. (operator=): Made it assignable from the SharedHandle of the
  7502. subclasses.
  7503. (getRefCount): New function.
  7504. To add notice log level and the switch to write log to stdout. This
  7505. switch is configurable per log level.
  7506. * src/Logger.h
  7507. (notice): New function.
  7508. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  7509. constant.
  7510. * src/LogFactory.cc
  7511. (getInstance): The use of NullLogger was removed. A log message with
  7512. notice log level was made written to stdout along with log file.
  7513. * src/NullLogger.h
  7514. (notice): New function.
  7515. * src/SimpleLogger.h
  7516. (writeHeader): Added the 'file' argument.
  7517. (writeLog): Added the 'file' argument.
  7518. (writeFile): New function.
  7519. (stdoutField): New variable.
  7520. (SimpleLogger): Removed the default constructor.
  7521. (SimpleLogger): Made the default value of logfile 0.
  7522. (debug): Added 'virtual' keyword.
  7523. (info): Added 'virtual' keyword.
  7524. (warn): Added 'virtual' keyword.
  7525. (error): Added 'virtual' keyword.
  7526. (notice): New function.
  7527. (setStdout): New function.
  7528. * src/SimpleLogger.cc
  7529. (WRITE_LOG): Replaced writeLog with writeFile.
  7530. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  7531. (SimpleLogger): Removed the default constructor.
  7532. (setStdout): New function.
  7533. (writeLog): Added the handling of NOTICE log level.
  7534. (writeFile): New function.
  7535. (notice): New function.
  7536. * src/TorrentMan.h: Updated doc.
  7537. * src/BitfieldMan.h: Updated doc.
  7538. * src/TrackerWatcherCommand.cc
  7539. (execute): Return true if error occurred in the request to the tracker
  7540. and halt is requested.
  7541. * src/TrackerUpdateCommand.cc
  7542. (execute): Return true if error occurred in the request to the tracker
  7543. and halt is requested.
  7544. To call onDownloadComplete from TorrentMan::completePiece(), not from
  7545. DownloadEngine:
  7546. * src/TorrentConsoleDownloadEngine.h
  7547. (onSelectiveDownloadingCompletes): Removed.
  7548. * src/TorrentConsoleDownloadEngine.cc
  7549. (onSelectiveDownloadingCompletes): Removed.
  7550. * src/TorrentDownloadEngine.h
  7551. (onEndOfRun): Added 'virtual' keyword.
  7552. (afterEachIteration): Removed.
  7553. (onSelectiveDownloadingCompletes): Removed.
  7554. * src/TorrentDownloadEngine.cc
  7555. (onEndOfRun): Removed filenameFixed.
  7556. (afterEachIteration): Removed.
  7557. * src/TorrentMan.cc
  7558. (completePiece): Call onDownloadComplete here.
  7559. (onDownloadComplete): Added 2 log messages.
  7560. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  7562. * src/NameResolver.h: Added the prototype declaration of callback().
  7563. To support c-ares library:
  7564. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7565. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7566. * src/FtpInitiateConnectionCommand.h:
  7567. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7568. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7569. * src/HttpInitiateConnectionCommand.h:
  7570. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7571. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  7572. Added thes upport of c-ares's ares_strerror(the idea came from patch
  7573. #1542285 by tizianomueller)
  7574. * src/HttpInitiateConnectionCommand.cc:
  7575. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7576. * src/FtpInitiateConnectionCommand.cc:
  7577. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7578. * src/DownloadEngine.h:
  7579. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7580. * src/DownloadEngine.cc:
  7581. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7582. To fix the bug that causes compilation failure with metalink-support
  7583. disabled(bug#1543587):
  7584. * src/main.cc: Fixed with the patch by tizianomueller.
  7585. * Release 0.7.2
  7586. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. * src/main.cc
  7588. (main): Added a message to inform users that aria2 is starting to
  7589. verify checksum.
  7590. * src/RequestInfo.cc
  7591. (printDownloadAbortMessage): Added a message to inform users that
  7592. transfer can be resumed.
  7593. * src/FeatureConfig.cc
  7594. (FEATURE_ASYNC_DNS): New definition.
  7595. (FeatureConfig): Added aysnc DNS entry.
  7596. To replace CommandUuid with Command* in SocketEntry and
  7597. NameResolverEntry:
  7598. * src/DownloadEngine.h
  7599. (CommandUuids): Removed.
  7600. (SocketEntry::commandUuid): Removed.
  7601. (SocketEntry::command): New variable.
  7602. (SocketEntry::SocketEntry): Updated.
  7603. (SocketEntry::operator==): Updated.
  7604. (NameResolverEntry::commandUuid): Removed.
  7605. (NameResolverEntry::command): New variable.
  7606. (NameResolverEntry::NameResolverEntry): Updated.
  7607. (NameResolverEntry::operator==): Updated.
  7608. (waitData): Changed the argument type.
  7609. (addSocketForReadCheck): Changed the argument type.
  7610. (deleteSocketForReadCheck): Changed the argument type.
  7611. (addSocketForWriteCheck): Changed the argument type.
  7612. (deleteSocketForWriteCheck): Changed the argument type.
  7613. (addNameResolverCheck): Changed the argument type.
  7614. (deleteNameResolverCheck): Changed the argument type.
  7615. * src/DownloadEngine.cc
  7616. (FindCommand): Removed.
  7617. (run): Removed activeUuid. Added activeCommands instead.
  7618. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  7619. (AccumulateActiveCommand): New function object.
  7620. (waitData): Use AccumulateActiveCommand.
  7621. (addSocketForReadCheck): Use Command instead of CommandUuid.
  7622. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  7623. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  7624. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  7625. (addNameResolverCheck): Use Command instead of CommandUuid.
  7626. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  7627. * src/AbstractCommand.cc
  7628. (disableReadCheckSocket): Updated according to the changes in
  7629. DownloadEngine.
  7630. (setReadCheckSocket): Updated according to the changes in
  7631. DownloadEngine.
  7632. (disableWriteCheckSocket): Updated according to the changes in
  7633. DownloadEngine.
  7634. (setWriteCheckSocket): Updated according to the changes in
  7635. DownloadEngine.
  7636. (setNameResolverCheck): Updated according to the changes in
  7637. DownloadEngine.
  7638. (disableNameResolverCheck): Updated according to the changes in
  7639. DownloadEngine.
  7640. * src/AbstractCommand.cc
  7641. (disableReadCheckSocket): Updated according to the changes in
  7642. DownloadEngine.
  7643. (setReadCheckSocket): Updated according to the changes in
  7644. DownloadEngine.
  7645. (disableWriteCheckSocket): Updated according to the changes in
  7646. DownloadEngine.
  7647. (setWriteCheckSocket): Updated according to the changes in
  7648. DownloadEngine.
  7649. * release 0.7.1
  7650. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. To handle the case where some BitTorrent tracker requires all letters
  7652. except for [A-Za-z0-9] is URL encoded.
  7653. * src/Util.h
  7654. (torrentUrlencode): New function.
  7655. * src/Util.cc
  7656. (ctype.h): Included.
  7657. (torrentUrlencode): New function.
  7658. * src/TrackerWatcherCommand.cc
  7659. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  7660. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. To add asynchronous DNS support(libares):
  7662. * src/AbstractCommand.h
  7663. (setNameResolverCheck): New function.
  7664. (disableNameResolverCheck): New function
  7665. (resolveHostname): New function.
  7666. * src/AbstractCommand.cc
  7667. (setNameResolverCheck): New function.
  7668. (disableNameResolverCheck): New function
  7669. (resolveHostname): New function.
  7670. * src/FtpInitiateConnectionCommand.h
  7671. (nameResolver): New function.
  7672. * src/FtpInitiateConnectionCommand.cc
  7673. (Util.h): Included.
  7674. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  7675. disableWriteCheckSocket.
  7676. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  7677. (executeInternal): Added async DNS support.
  7678. * src/HttpInitiateConnectionCommand.h
  7679. (nameResolver): New function.
  7680. * src/HttpInitiateConnectionCommand.cc
  7681. (DlRetryEx.h): Included.
  7682. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  7683. disableWriteCheckSocket.
  7684. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  7685. (executeInternal): Added async DNS support.
  7686. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  7687. by extern "C" declaration.
  7688. * src/NameResolver.cc: New class.
  7689. * src/Util.h:
  7690. (isNumberAndDotsNotation): New function
  7691. * src/Util.cc
  7692. (isNumberAndDotsNotation): New function.
  7693. * src/DownloadEngine.h
  7694. (NameResolver.h): Included.
  7695. (NameResolverEntry): New class.
  7696. (NameResolverEntries): New type definition.
  7697. (addNameResolverCheck): New function.
  7698. (deleteNameResolverCheck): New function.
  7699. * src/DownloadEngine.cc
  7700. (run): Initialize cp with 0.
  7701. (SetDescriptor::operator()): Added for NameResolverEntry.
  7702. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  7703. (waitData): Check nameResolver entries.
  7704. (updateFdSet): Update fds in nameResolver entries.
  7705. (addNameResolverCheck): New function.
  7706. (deleteNameResolverCheck): new function.
  7707. * src/PeerInteractionCommand.cc
  7708. (executeInternal): Fixed wrong socket handling.
  7709. * src/main.cc
  7710. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  7711. * src/Util.cc
  7712. (fileChecksum): Removed the call to ctx.digestReset().
  7713. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. * po/ru.po: Azamat sent me Russian translation.
  7715. * src/FtpNegotiateCommand.cc
  7716. (recvGreeting): Call disableWriteCheckSocket just after
  7717. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  7718. (recvRetr): Recognized status code 125 as a acceptable response code.
  7719. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  7720. case-insesitive filesystem(BUG#1531057).
  7721. * src/Time.h: Renamed as TimeA2.h.
  7722. * src/Time.cc: Renamed as TimeA2.cc.
  7723. * src/TimeA2.h: New class.
  7724. * src/TimeA2.cc: New class.
  7725. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  7726. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  7727. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  7728. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  7729. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  7730. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7731. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  7732. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  7733. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  7734. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7735. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  7736. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  7737. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  7738. * release 0.7.0
  7739. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. * src/PeerChokeCommand.h
  7741. (PeerChokeCommand): Rearranged the arguments.
  7742. * src/PeerChokeCommand.cc
  7743. (PeerChokeCommand): Rearranged the arguments.
  7744. * src/MetalinkEntry.h
  7745. (Checksum.h): Included.
  7746. (md5): Removed.
  7747. (sha1): Removed.
  7748. (checksum): New variable.
  7749. (operator=): Updated.
  7750. (check): Removed.
  7751. * src/prefs.h
  7752. (PREF_LOWEST_SPEED_LIMIT): New definition.
  7753. (PREF_FOLLOW_TORRENT): New definition.
  7754. (PREF_SELECT_FILE): New definition.
  7755. (PREF_FOLLOW_METALINK): New definition.
  7756. * src/MetalinkResource.h
  7757. (TYPE_HTTPS): Added to enum TYPE.
  7758. * src/TorrentMan.cc
  7759. (~TorrentMan): Rewritten.
  7760. * src/MultiDiskWriter.cc
  7761. (MultiDiskAdaptor): Updated according to the changes in
  7762. MessageDigestContext.
  7763. (~MultiDiskAdaptor): Updated according to the changes in
  7764. MessageDigestContext.
  7765. (hashUpdate): Updated according to the changes in MessageDigestContext.
  7766. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7767. * src/Util.h
  7768. (fileChecksum): Updated according to the changes in
  7769. MessageDigestContext.
  7770. * src/Util.cc
  7771. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7772. (fileChecksum): Updated according to the changes in
  7773. MessageDigestContext.
  7774. * src/messageDigest.h: Rewritten.
  7775. * src/MetalinkEntry.cc
  7776. (check): Removed.
  7777. (Supported): Updated.
  7778. (dropUnsupportedResource): Fixed a memory leak.
  7779. * src/ShaVisitor.cc
  7780. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  7781. (~ShaVisitor): Updated according to the changes in
  7782. MessageDigestContext.
  7783. (visit): Updated according to the changes in MessageDigestContext.
  7784. * src/main.cc
  7785. (main): Rewritten the portion of download loop. --lowest-speed-limit
  7786. command-line option added.
  7787. * src/DownloadEngine.h
  7788. (SocketEntry): New class.
  7789. (SocketEntries): New definition.
  7790. (PairFind): Removed.
  7791. (SockCmdMap): Removed.
  7792. * src/DownloadEngine.cc
  7793. (DownloadEngine): Rewritten.
  7794. (~DownloadEngine): Rewritten.
  7795. (run): Renamed activeCommandUuids as activeUuids.
  7796. (SetDescriptor): Rewritten.
  7797. (AccumulateActiveCommandUuid): Removed.
  7798. (AccumulateActiveUuid): New function object.
  7799. (waitData): Rewritten.
  7800. (updateFdSet): Rewritten.
  7801. (addSocket): Rewritten.
  7802. (deleteSocket): Rewritten.
  7803. (addSocketForReadCheck): Rewritten.
  7804. (deleteSocketForReadCheck): Rewritten.
  7805. (addSocketForWriteCheck): Rewritten.
  7806. (deleteSocketForWriteCheck): Rewritten.
  7807. * src/Xml2MetalinkProcessor.cc
  7808. (getEntry): Rewritten the portion of MetalinkEntry creation.
  7809. * src/DownloadCommand.cc
  7810. (executeInternal): Added the check routine for lowest speed limit.
  7811. * src/AbstractDiskWriter.cc
  7812. (AbstractDiskWriter): Updated according to the changes in
  7813. MessageDigestContext.
  7814. (~AbstractDiskWriter): Updated according to the changes in
  7815. MessageDigestContext.
  7816. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7817. * src/RequestInfo.h: New class.
  7818. * src/UrlRequestInfo.h: New class.
  7819. * src/UrlRequestInfo.cc: New class.
  7820. * src/TorrentRequestInfo.h: New class.
  7821. * src/TorrentRequestInfo.cc: New class.
  7822. * src/MetalinkRequestInfo.h: New class.
  7823. * src/MetalinkRequestInfo.cc: New class.
  7824. * src/Checksum.h: New class.
  7825. * src/DownloadEngineFactory.h: New class.
  7826. * src/DownloadEngineFactory.cc: New class.
  7827. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. * src/Option.h
  7829. (getAsBool): New function.
  7830. * src/Option.cc
  7831. (prefs.h): Included.
  7832. (defined): 0-length value is now recognized as undefined.
  7833. (getAsInt): Rewritten.
  7834. (getAsLLInt): Rewritten.
  7835. (getAsBool): New function.
  7836. * src/FeatureConfig.h: Rewritten.
  7837. * src/FeatureConfig.cc: Rewritten.
  7838. * src/prefs.h
  7839. (PREF_STDOUT_LOG): New definition.
  7840. (PREF_LOG): New definition.
  7841. (PREF_DIR): New definition.
  7842. (PREF_OUT): New definition.
  7843. (PREF_SPLIT): New definition.
  7844. (PREF_DAEMON): New definition.
  7845. (PREF_REFERER): New definition.
  7846. (PREF_TORRENT_FILE): New definition.
  7847. (PREF_LISTEN_PORT): New definition.
  7848. (PREF_METALINK_FILE): New definition.
  7849. (PREF_METALINK_VERSION): New definition.
  7850. (PREF_METALINK_LANGUAGE): New definition.
  7851. (PREF_METALINK_OS): New definition.
  7852. (PREF_METALINK_SERVERS): New definition.
  7853. * src/main.cc
  7854. (main): Following command-line parameters are now put into Option
  7855. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  7856. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  7857. metalinkLanguage, metalinkOs, metalinkServers
  7858. To fix the bug that aria2 can not handle http response header properly.
  7859. * src/HttpHeader.cc
  7860. (put): Made name lowercased.
  7861. (defined): Made name lowercased.
  7862. (getFirst): Made name lowercased.
  7863. (get): Made name lowercased.
  7864. (getFirstAsInt): Rewritten.
  7865. (getFirstAsLLInt): Rewritten.
  7866. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. * src/TorrentMan.h:
  7868. (advertisePiece): Updated doc.
  7869. (getAdvertisedPieceIndexes): Updated doc.
  7870. (removeAdvertisedPiece); New function.
  7871. * src/TorrentMan.cc
  7872. (FindElapsedHave): New function object.
  7873. (removeAdvertisedPiece): New function.
  7874. * src/HaveEraseCommand.h: New class.
  7875. * src/HaveEraseCommand.cc: New class.
  7876. * src/FeatureConfig.h: New class.
  7877. * src/FeatureConfig.cc: New class.
  7878. * src/Request.h
  7879. (defaultPorts): Removed.
  7880. * src/Request.cc
  7881. (FeatureConfig.h): Included.
  7882. (Request): Removed the statements related to defaultPorts.
  7883. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  7884. A default port number is now retrieved from FeatureConfig.
  7885. * src/main.cc
  7886. (HaveEraseCommand.h): Included.
  7887. (showVersion): Added the output of feature list.
  7888. (main): Added HaveEraseCommand to command queue in BitTorrent
  7889. downloading.
  7890. * src/PeerInteractionCommand.h
  7891. (chokeCheckPoint): Commented out.
  7892. (periodicExecPoint): New variable.
  7893. * src/PeerInteractionCommand.cc
  7894. (executeInternal): Following methods are now called in at least every
  7895. 0.5 seconds to reduce CPU usage:
  7896. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  7897. checkHave(), sendKeepAlive().
  7898. (checkLongTimePeerChoking): Commented out.
  7899. * src/BitfieldMan.h
  7900. (getNthBitIndex): Changed the method signature.
  7901. (getMissingIndexRandomly): Changed the method signature.
  7902. * src/BitfieldMan.cc
  7903. (getNthBitIndex): Rewritten
  7904. (getMissingIndexRandomly): Rewritten.
  7905. (hasMissingPiece): Rewritten.
  7906. (getMissingIndex): Refactored.
  7907. (getMissingUnusedIndex); Refactored.
  7908. (getMissingIndex): Refactored.
  7909. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. * src/PeerMessage.h
  7911. (Piece.h): Included.
  7912. (SharedHandle.h): Included.
  7913. (invalidate): New variable.
  7914. (uploading): New variable.
  7915. (isInvalidate): New function.
  7916. (isUploading): New function.
  7917. (onPush): New function.
  7918. (onChoked): New function.
  7919. (onCanceled): New function.
  7920. (onAbortPiece): New function.
  7921. (PeerMessageHandle): New type definition.
  7922. * src/PeerMessage.cc
  7923. (PeerMessage): Added the initialization for invalidate and uploading.
  7924. * src/CancelMessage.h
  7925. (CancelMessage): Rewritten.
  7926. * src/RejectMessage.h
  7927. (RejectMessage): Rewritten.
  7928. * src/Metalinker.h
  7929. (operator=): Defined.
  7930. * src/MetaEntry.h
  7931. (operator=): Defined.
  7932. * src/MetalinkResource.h
  7933. (operator=): Defined.
  7934. * src/AllowedFastMessage.h
  7935. (AllowedFastMessage): Rewritten.
  7936. * src/HandshakeMessage.h
  7937. (HandshakeMessage): New function(overload).
  7938. * src/HandshakeMessage.cc
  7939. (HandshakeMessage): Rewritten.
  7940. (init): New function.
  7941. * src/HaveMessage.h
  7942. (HaveMessage): Rewritten.
  7943. * src/Time.h
  7944. (operator=): Defined the function body here.
  7945. * src/Time.cc
  7946. (operator=): Removed.
  7947. * src/SocketCore.h
  7948. (operator==): Defined here.
  7949. (operator!=): Defined here.
  7950. (operator<): Defined here.
  7951. * src/SocketCore.cc
  7952. (operator==): Removed.
  7953. (operator<): Removed.
  7954. * src/BitfieldMan.h
  7955. (operator=): Defined the function body here.
  7956. * src/BitfieldMan.cc
  7957. (operator=): Removed.
  7958. * src/TorrentMan.h
  7959. (deleteErrorPeer): Removed.
  7960. (deleteUnusedPeer); New function.
  7961. * src/TorrentMan.cc
  7962. (addPeer): Call deleteUnusedPeer.
  7963. (deleteErrorPeer): Removed.
  7964. (deleteUnusedPeer): New function.
  7965. * src/PeerAbstractCommand.h
  7966. (setNoCheck): New function.
  7967. (noCheck): New variable.
  7968. * src/PeerAbstractCommand.cc
  7969. (PeerAbstractCommand): Added the initialization of noCheck.
  7970. (execute): Added a check for noCheck.
  7971. (setNoCheck): New function.
  7972. * src/Util.h
  7973. (stdio.h): Included.
  7974. * src/Util.cc
  7975. (unistd.h): Included.
  7976. * src/DefaultDiskWriter.cc
  7977. (unistd.h): Included.
  7978. * src/Peer.h
  7979. (operator==): Defined the function body here.
  7980. (operator!=): Defined the function body here.
  7981. * src/Peer.cc
  7982. (operator==): Removed.
  7983. (operator!=): Removed.
  7984. * src/Piece.h
  7985. (Piece): Defined the function body here(copy constructor).
  7986. (operator=): Defined the function body here.
  7987. (operator==): Defined the function body here.
  7988. * src/Piece.cc
  7989. (Piece): Removed(copy constructor).
  7990. (operator=): Removed.
  7991. (operator==): Removed.
  7992. * src/PeerMessageUtil.h
  7993. (ChokeMessage.h): Removed.
  7994. (UnchokeMessage.h): Removed.
  7995. (InterestedMessage.h): Removed.
  7996. (NotInterestedMessage.h): Removed.
  7997. (HaveMessage.h): Removed.
  7998. (BitfieldMessage.h): Removed.
  7999. (RequestMessage.h): Removed.
  8000. (CancelMessage.h): Removed.
  8001. (PieceMessage.h): Removed.
  8002. (HandshakeMessage.h): Removed.
  8003. (KeepAliveMessage.h): Removed.
  8004. (PortMessage.h): Removed.
  8005. (HaveAllMessage.h): Removed.
  8006. (HaveNoneMessage.h): Removed.
  8007. (PeerConnection.h): Removed.
  8008. (HandshakeMessage.h): Included.
  8009. * src/BitfieldMessage.h
  8010. (init): New function.
  8011. (BitfieldMessage): Rewritten.
  8012. (BitfieldMessage): New function(overload).
  8013. * src/RequestSlot.h
  8014. (operator=): Defined the function body here.
  8015. (operator==): Defined the function body here.
  8016. * src/RequestSlot.cc
  8017. (operator=): Removed.
  8018. (operator==): Removed.
  8019. To remove the dependency on the PeerMessage subclass from
  8020. PeerInteraction:
  8021. * src/PeerMessageFactory.h: New class.
  8022. * src/PeerMessageFactory.cc: New class.
  8023. * src/SimplePeerMessage.cc
  8024. (send): If invalidate is true then do nothing.
  8025. * src/PeerInteractionCommand.cc
  8026. (HandshakeMessage.h): Included.
  8027. (KeepAliveMessage.h): Included.
  8028. (ChokeMessage.h): Included.
  8029. (UnchokeMessage.h): Included.
  8030. (HaveMessage.h): Included.
  8031. (executeInternal): Call setNoCheck().
  8032. Removed setWriteCheckSocket(socket).
  8033. * src/PeerInteraction.h
  8034. (ChokeMessage.h): Removed.
  8035. (UnchokeMessage.h): Removed.
  8036. (InterestedMessage.h): Removed.
  8037. (NotInterestedMessage.h): Removed.
  8038. (HaveMessage.h): Removed.
  8039. (BitfieldMessage.h): Removed.
  8040. (RequestMessage.h): Removed.
  8041. (CancelMessage.h): Removed.
  8042. (PieceMessage.h): Removed.
  8043. (HandshakeMessage.h): Removed.
  8044. (KeepAliveMessage.h): Removed.
  8045. (PortMessage.h): Removed.
  8046. (HaveAllMessage.h): Removed.
  8047. (HaveNoneMessage.h): Removed.
  8048. (RejectMessage.h): Removed.
  8049. (AllowedFastMessage.h): Removed.
  8050. (SuggestPieceMessage.h): Removed.
  8051. (PeerMessageFactory.h): Included.
  8052. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8053. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8054. (PeerMessageFactory): New variable.
  8055. (createPeerMessage): Removed.
  8056. (createHandshakeMessage): Removed.
  8057. (setPeerMessageCommonProperty): Removed.
  8058. (addRequestSlot): New function.
  8059. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8060. (getPeerMessageFactory): New function.
  8061. (createRequestMessage): Removed.
  8062. (createCancelMessage): Removed.
  8063. (createPieceMessage): Removed.
  8064. (createHaveMessage): Removed.
  8065. (createChokeMessage): Removed.
  8066. (createUnchokeMessage): Removed.
  8067. (createInterestedMessage): Removed.
  8068. (createNotInterestedMessage): Removed.
  8069. (createBitfieldMessage): Removed.
  8070. (createKeepAliveMessage): Removed.
  8071. (createHaveAllMessage): Removed.
  8072. (createHaveNoneMessage): Removed.
  8073. (createRejectMessage): Removed.
  8074. (createAllowedFastMessage): Removed.
  8075. * src/PeerInteraction.cc
  8076. (PeerInteraction): Allocate PeerMessageFactory here.
  8077. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8078. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8079. PieceMessage::ID.
  8080. (addMessage): Simplified by using PeerMessage::onPush().
  8081. (addRequestSlot): New function.
  8082. (rejectAllPieceMessageInQueue): Simplified by using
  8083. PeerMessage::onChoked().
  8084. (rejectPieceMessageInQueue): Simplified by using
  8085. PeerMessage::onCanceled().
  8086. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8087. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8088. (createHandshakeMessage): Removed.
  8089. (createPeerMessage): Removed.
  8090. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8091. (setPeerMessageCommonProperty): Removed.
  8092. (createRequestMessage): Removed.
  8093. (createCancelMessage): Removed.
  8094. (createPieceMessage): Removed.
  8095. (createHaveMessage): Removed.
  8096. (createChokeMessage): Removed.
  8097. (createUnchokeMessage): Removed.
  8098. (createInterestedMessage): Removed.
  8099. (createNotInterestedMessage): Removed.
  8100. (createBitfieldMessage): Removed.
  8101. (createKeepAliveMessage): Removed.
  8102. (createHaveAllMessage): Removed.
  8103. (createHaveNoneMessage): Removed.
  8104. (createRejectMessage): Removed.
  8105. (createAllowedFastMessage): Removed.
  8106. * src/PieceMessage.h
  8107. (createRejectMessage): New function.
  8108. (PieceMessage): Rewritten.
  8109. (onChoked): New function.
  8110. (onCanceled): New function.
  8111. * src/PieceMessage.cc
  8112. (send): If invalidate is true then do nothing, just return.
  8113. (createRejectMessage): New function.
  8114. (onChoked): New function.
  8115. (onCanceled): New function.
  8116. * src/RequestMessage.h
  8117. (RequestMessage): Rewritten.
  8118. (onPush): New function.
  8119. (onAbortPiece): New function.
  8120. * src/RequestMessage.cc
  8121. (onPush): New function.
  8122. (onAbortPiece): New function.
  8123. Update fd_set when a socket is added or deleted in order to improve
  8124. performance:
  8125. * src/DownloadEngine.h
  8126. (rfdset): New variable.
  8127. (wfdset): New variable.
  8128. (updateFdSet): New function.
  8129. * src/DownloadEngine.cc
  8130. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8131. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8132. (waitData): Copy rfdset and wfdset.
  8133. (updateFdSet): New function.
  8134. (addSocket): Call updateFdSet.
  8135. (deleteSocket): Call updateFdSet.
  8136. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. To add the support for Metalink3.0 backward compatible links:
  8138. * src/Request.h
  8139. (SAFE_CHARS): Added '#'.
  8140. (METALINK_MARK): New definition.
  8141. * src/Request.cc
  8142. (parseUrl): Added the support for Metalink3.0 backward compatible
  8143. links.
  8144. etc
  8145. * src/PeerInteraction.cc
  8146. (MsgPushBack): Removed.
  8147. (sendMessages): Use STL copy and back_inserter.
  8148. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8149. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8150. * src/TorrentMan.h
  8151. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8152. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. * src/SharedHandle.h: New class.
  8154. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8155. * src/HttpResponseCommand.h
  8156. (HttpResponseCommand): Wrapped Socket.
  8157. * src/SocketCore.h
  8158. (operator==): New function.
  8159. (operator!=): New function.
  8160. (operator<): New function.
  8161. (getSockfd): New function.
  8162. (isOpen): New function.
  8163. (writeData): New function.
  8164. * src/SocketCore.cc
  8165. (operator==): New function.
  8166. (operator!=): New function.
  8167. (operator<): New function.
  8168. * src/AbstractCommand.h
  8169. (socket): Changed its type to SocketHandle.
  8170. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8171. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8172. (disableReadCheckSocket): New function.
  8173. (disableWriteCheckSocket): New function.
  8174. (readCheckTarget): Changed its type to SocketHandle.
  8175. (writeCheckTarget): Changed its type to SocketHandle.
  8176. (AbstractCommand): Replaced Socket with SocketHandle.
  8177. * src/AbstractCommand.cc
  8178. (AbstractCommand): Replaced Socket with SocketHandle.
  8179. (~AbstractCommand): Removed the deallocation for Socket object.
  8180. (disableReadCheckSocket): New function.
  8181. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8182. (disableWriteCheckSocket): New function.
  8183. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8184. * src/HttpDownloadCommand.cc
  8185. (DownloadCommand): Replaced Socket with SocketHandle.
  8186. * src/PeerAbstractCommand.h
  8187. (socket): Changed its type to SocketHandle.
  8188. (peer): Changed its type to PeerHandle.
  8189. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8190. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8191. (disableReadCheckSocket): New function.
  8192. (disableWriteCheckSocket): New function.
  8193. (readCheckTarget): Changed its type to SocketHandle.
  8194. (writeCheckTarget): Changed its type to SocketHandle.
  8195. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8196. Replaced Peer with PeerHandle.
  8197. * src/HttpRequestCommand.cc
  8198. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8199. Use disableReadCheckSocket.
  8200. * src/PeerInitiateConnectionCommand.h
  8201. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8202. * src/PeerChokeCommand.cc
  8203. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  8204. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  8205. (execute): Use PeerHandle.
  8206. * src/PeerConnection.h
  8207. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  8208. (socket): Changed its type to SocketHandle.
  8209. (PeerConnection): Replaced Socket with SocketHandle.
  8210. * src/PeerConnection.cc
  8211. (PeerConnection): Replaced Socket with SocketHandle.
  8212. * src/PeerInteractionCommand.h
  8213. (PeerInteractionCommand): Replaced socket with SocketHandle.
  8214. Replaced Peer with PeerHandle.
  8215. * src/PeerInteractionCommand.cc
  8216. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  8217. Replaced Peer with PeerHandle.
  8218. (executeInternal): Use disableWriteCheckSocket.
  8219. Use HandshakeMessageHandle.
  8220. (receiveMessages): Use PeerMessageHandle.
  8221. (prepareForNextPeer): Use PeerHandle.
  8222. * src/HttpProxyRequestCommand.h
  8223. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8224. * src/HttpResponseCommand.cc
  8225. (HttpResponseCommand): Replaced Socket with SocketHandle.
  8226. * src/TorrentMan.cc
  8227. (nullPeer): Added external reference.
  8228. (~TorrentMan): Removed the deallocation of the elements of peers.
  8229. (addPeer): Rewritten.
  8230. (isPeerAvailable): Use nullPeer.
  8231. (deleteOldpeers): Replaced with deleteErrorPeer.
  8232. (deleteErrorPeer): New function.
  8233. (getPeer): Use PeerHandle and nullPeer.
  8234. (hasMissingPiece): Replaced Peer with PeerHandle.
  8235. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8236. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8237. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8238. (getMissingPiece): Replaced Peer with PeerHandle.
  8239. * src/FtpNegotiateCommand.cc
  8240. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  8241. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  8242. (recvGreeting): Use disableWriteCheckSocket.
  8243. (recvPasv): Removed the allocation of Socket.
  8244. Use disableReadCheckSocket.
  8245. (sendRestPasv): Use disableWriteCheckSocket.
  8246. (recvRetr): Changed assertion.
  8247. * src/PeerInteraction.h
  8248. (SharedHandle.h): Included SharedHandle.h.
  8249. (PeerMessageHandle): New type definition.
  8250. (HandshakeMessageHandle): New type definition.
  8251. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  8252. (peer): Changed its type to PeerHandle.
  8253. (createHandshakeMessage): Replaced HandshakeMessage with
  8254. HandshakeMessageHandle.
  8255. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  8256. (PeerInteraction): Replaced Peer with PeerHandle.
  8257. Replaced Socket with SocketHandle.
  8258. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8259. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8260. (receiveHandshake): Replaced HandshakeMessage with
  8261. HandshakeMessageHandle.
  8262. * src/PeerInteraction.cc
  8263. (PeerInteraction): Replaced Peer with PeerHandle.
  8264. Replaced Socket with SocketHandle.
  8265. (~PeerInteraction): Removed the deallocation of the elements of
  8266. messageQueue.
  8267. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  8268. (isSendingMessageInProgress): Replaced PeerMessage with
  8269. PeerMessageHandle.
  8270. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  8271. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8272. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  8273. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  8274. (abortPiece): Use PeerMessageHandle.
  8275. (receiveHandshake): Replaced HandshakeMessage with
  8276. HandshakeMessageHandle. Removed try-catch block.
  8277. (createHandshakeMessage): Replaced HandshakeMessage with
  8278. HandshakeMessageHandle.
  8279. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8280. Removed try-catch block.
  8281. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  8282. * src/HttpProxyResponseCommand.cc
  8283. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8284. * src/FtpTunnelResponseCommand.h
  8285. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8286. * src/HttpConnection.cc
  8287. (HttpConnection): Replaced Socket with SocketHandle.
  8288. * src/PeerAbstractCommand.cc
  8289. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8290. (~PeerAbstractCommand): Removed the deallocation of socket.
  8291. Use disableReadCheckSocket, disableWriteCheckSocket.
  8292. (disableReadCheckSocket): New function.
  8293. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8294. (disableWriteCheckSocket): New function.
  8295. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8296. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  8297. * src/FtpTunnelRequestCommand.cc
  8298. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8299. (~FtpTunnelRequestCommand): Corrected indentation.
  8300. * src/DownloadCommand.h
  8301. (DownloadCommand): Replaced Socket with SocketHandle.
  8302. * src/PeerListenCommand.cc
  8303. (PeerListenCommand): Removed the initialization of socket.
  8304. (~PeerListenCommand): Removed the deallocation of socket.
  8305. (bindPort): Use SocketHandle.
  8306. (execute): Use SocketHandle and PeerHandle.
  8307. * src/FtpDowndloadCommand.cc
  8308. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8309. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  8310. * src/main.cc
  8311. (main): Corrected indentation.
  8312. * src/HttpInitiateConnectionCommand.cc
  8313. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  8314. (executeInternal): Removed the allocation of socket.
  8315. * src/HttpRequestCommand.h
  8316. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8317. * src/FtpNegotiationCommand.h
  8318. (dataSocket): Changed its type to SocketHandle.
  8319. (serverSocket): Changed its type to SocketHandle.
  8320. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  8321. * src/TorrentMan.h
  8322. (MAX_PEER_UPDATE): Removed.
  8323. (MAX_PEERS): New definition.
  8324. (Peers): The element is now of type PeerHandle.
  8325. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  8326. (getPeer): Replaced Peer with PeerHandle.
  8327. (deleteOldErrorPeers): Removed.
  8328. (deleteErrorPeer): New function.
  8329. (hasMissingPiece): Replaced Peer with PeerHandle.
  8330. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8331. (getMissingPiece): Replaced Peer with PeerHandle.
  8332. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8333. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8334. (addActivePeer): Replaced Peer with PeerHandle.
  8335. (deleteActivePeer): Replaced Peer with PeerHandle.
  8336. Added a check for the return value of find.
  8337. * src/FtpTunnelResponseCommand.cc
  8338. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8339. * src/FtpInitiateConnectionCommand.cc
  8340. (executeInternal): Removed the allocation of socket.
  8341. * src/DownloadEngine.h
  8342. (Sockets): An element is now of type SocketHandle.
  8343. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  8344. (CommandUuids): New type definition.
  8345. (rsockets): Changed its type to SockCmdMap.
  8346. (wsockets): Changed its type to SockCmdMap.
  8347. (addSocket): Rewritten.
  8348. (deleteSocket): Rewritten.
  8349. (addSocketForReadCheck): Rewritten.
  8350. (deleteSocketForReadCheck): Rewritten.
  8351. (addSocketForWriteCheck): Rewritten.
  8352. (deleteSocketForWriteCheck): Rewritten.
  8353. (PairFind): New template class.
  8354. * src/HttpDownloadCommand.h
  8355. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  8356. * src/FtpConnection.cc
  8357. (FtpConnection): Replaced Socket with SocketHandle.
  8358. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  8359. block.
  8360. * src/InitiateConnectionCommandFactory.cc
  8361. (DlAbortEx.h): Included DlAbortEx.h.
  8362. (createInitiateConnectionCommand): Throw exception if the protocol of
  8363. requested URI is not supported.
  8364. * src/Peer.cc
  8365. (nullPeer): Changed its type to PeerHandle.
  8366. (operator==): New function.
  8367. (operator!=): New function.
  8368. * src/Peer.h
  8369. (SharedHandle.h): Included SharedHandle.h.
  8370. (operator==): New function.
  8371. (operator!=): New function.
  8372. (Peer): Added the default constructor.
  8373. Use resetStatus() to initialize member variables.
  8374. (nullPeer): Removed.
  8375. * src/TrackerUpdateCommand.cc
  8376. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  8377. with MIN_PEERS.
  8378. * src/PeerListenCommand.h
  8379. (socket): Changed its type to SocketHandle.
  8380. * src/Command.h
  8381. (CommandUuid): New type definition.
  8382. (uuid): New variable.
  8383. (uuidGen): New variable.
  8384. (Command): Added the initialization of uuid.
  8385. (getUuid): New function.
  8386. * src/Socket.h
  8387. (Socket): Removed.
  8388. (SocketHandle): New type definition.
  8389. * src/DownloadEngine.h
  8390. (FindCommand): New function object.
  8391. (run): The portion of socket check was rewritten.
  8392. (SetDescriptor): New function object.
  8393. (AccumulateActiveCommandUuid): New function object.
  8394. (waitData): Rewritten.
  8395. (addSocket): Rewritten.
  8396. (deleteSocket): Rewritten.
  8397. (addSocketForReadCheck): Rewritten.
  8398. (addSocketForWriteCheck): Rewritten.
  8399. (deleteSocketForReadCheck): Rewritten.
  8400. (deleteSocketForWriteCheck): Rewritten.
  8401. * src/HttpProxyResponseCommand.h
  8402. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  8403. * src/HttpConnection.h
  8404. (socket): Changed its type to SocketHandle.
  8405. (HttpConnection): Replaced Socket with SocketHandle.
  8406. * src/PeerInitiateConnectionCommand.cc
  8407. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8408. (executeInternal): Removed the allocation of socket.
  8409. (prepareForNextPeer): Use PeerHandle.
  8410. * src/PeerMessage.h
  8411. (peer): Changed its type to PeerHandle.
  8412. (getPeer): Replaced Peer with PeerHandle.
  8413. (setPeer): Replaced Peer with PeerHandle.
  8414. * src/DownloadCommand.cc
  8415. (DownloadCommand): Replaced Socket with SocketHandle.
  8416. * src/FtpConnection.h
  8417. (socket): Changed its type to SocketHandle.
  8418. (FtpConnection): Replaced Socket with SocketHandle.
  8419. (sendPort); Replaced Socket with SocketHandle.
  8420. * src/FtpDowndloadCommand.h
  8421. (ctrlSocket): Changed its type to SocketHandle.
  8422. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8423. * src/HttpProxyRequestCommand.cc
  8424. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8425. * src/FtpTunnelRequestCommand.h
  8426. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8427. etc
  8428. * src/PeerChokeCommand.h
  8429. (setAllPeerChoked): Removed.
  8430. (setAllPeerResetDelta): Removed.
  8431. * src/PeerChokeCommand.cc
  8432. (setAllPeerChoked): Removed.
  8433. (ChokePeer): New function object.
  8434. (setAllPeerResetDelta): Removed.
  8435. (ResetDelta): New function object.
  8436. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  8437. (execute): Show download speed when the local node is a seeder.
  8438. setAllPeerChoked and setAllPeerResetDelta were rewritten
  8439. using STL.
  8440. * src/TrackerWatcherCommand.h
  8441. (MIN_PEERS): Removed.
  8442. * src/TorrentMan.cc
  8443. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  8444. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. To fix the bug that .aria2 file is not saved if downloading is stopped
  8446. by the errors:it results that aria2 can not resume downloading:
  8447. * src/main.cc
  8448. (normalDownload): Added the call to save().
  8449. (main): Added the deletion of the elements in 'reserved'.
  8450. To fix log:
  8451. * src/PeerInteraction.cc
  8452. (receiveHandshake): Fixed log.
  8453. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. To improve download performance in BitTorrent:
  8455. * src/TorrentMan.cc
  8456. (getPeer): Check the number of connections. Return nullPeer if
  8457. it is greater than MAX_PEER_UPDATE.
  8458. This code was originally here, but was removed in 0.5.1.
  8459. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. To improve the conditional compilation:
  8461. * src/MultiDiskWriter.h:
  8462. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8463. * src/MultiDiskWriter.cc:
  8464. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8465. * src/Util.h:
  8466. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8467. Added ENABLE_BITTORRENT around computeFastSet().
  8468. * src/Util.cc:
  8469. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8470. Added ENABLE_BITTORRENT around computeFastSet().
  8471. * src/messageDigest.h:
  8472. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  8473. * src/ShaVisitor.h:
  8474. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8475. * src/ShaVisitor.cc:
  8476. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8477. * src/main.cc:
  8478. Added ENABLE_BITTORRENT around includes and blocks related to
  8479. BitTorrent.
  8480. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  8481. digest support is not available.
  8482. * src/AbstractDiskWriter.h:
  8483. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8484. * src/AbstractDiskWriter.cc:
  8485. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8486. * src/MetalinkEntry.cc
  8487. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  8488. support is not available.
  8489. To add command-line options for Metalink:
  8490. * src/main.cc:
  8491. Added metalink-version, metalink-language, metalink-os,
  8492. follow-metalink.
  8493. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  8494. * src/main.cc: Use these definition.
  8495. * Release 0.6.0
  8496. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. To add Metalink support(http/ftp only):
  8498. * src/AbstractCommand.h
  8499. (tryReserved): New function.
  8500. * src/AbstractCommand.cc
  8501. (execute): Call tryReserved().
  8502. (tryReserved): New function.
  8503. * src/Request.h
  8504. (Requests): New type definition.
  8505. * src/SegmentMan.h
  8506. (reserved): New variable.
  8507. * src/Util.h
  8508. (fileChecksum): New function.
  8509. (toUpper): New function.
  8510. (toLower): New function.
  8511. * src/Util.cc
  8512. (messageDigest.h): Included.
  8513. (trim): Trim \r\n\t.
  8514. (fileChecksum): New function.
  8515. (toUpper): New function.
  8516. (toLower): New function.
  8517. * src/main.cc
  8518. (normalDownload): New function.
  8519. (main): Added 2 command-line options: metalink-file,
  8520. metalink-connection. Their usage has not been written yet.
  8521. * src/MetalinkProcessor.h: New class.
  8522. * src/Xml2MetalinkProcessor.h: New class.
  8523. * src/Xml2MetalinkProcessor.cc: New class.
  8524. * src/MetalinkEntry.h: New class.
  8525. * src/MetalinkEntry.cc: New class.
  8526. * src/MetalinkResource.h: New class.
  8527. * src/MetalinkResource.cc: New class.
  8528. To add md5 message digest checking:
  8529. * src/messageDigest.h: Rewritten.
  8530. * src/MultiDiskWriter.cc: Updated according to the changes in
  8531. messageDigest.h.
  8532. * src/ShaVisitor.cc: Updated according to the changes in
  8533. messageDigest.h.
  8534. * src/Util.cc: Updated according to the changes in messageDigest.h.
  8535. * src/AbstractDiskWriter.cc: Updated according to the changes in
  8536. messageDigest.h.
  8537. To fix a bug that causes segfault when the payload length in peer
  8538. message is less than 0:
  8539. * src/PeerConnection.cc:
  8540. (receiveMessage): Fixed the bug.
  8541. * src/PeerMessageUtil.cc
  8542. (checkLength): Throw an exception if length is less than or equals to
  8543. 0.
  8544. To add new interfaces to Base64 encoding/decoding:
  8545. * src/Base64.h
  8546. (part_encode): Changed the method signature.
  8547. (encode): New function(overload).
  8548. (decode): New function(overload).
  8549. * src/Base64.cc
  8550. (part_encode): Rewritten.
  8551. (encode): Rewritten.
  8552. (encode): New function(overload).
  8553. To prevent a peer to download same piece if there is an error in
  8554. checksum:
  8555. * src/PieceMessage.cc
  8556. (receivedAction): Call peerInteraction->abortPiece().
  8557. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. To fix the bug that causes same have message is sent many times to
  8559. a single peer.
  8560. * src/Time.cc
  8561. (isNewer): Use Util::difftv().
  8562. * src/Util.cc
  8563. (difftv): Added a cast to (long long int).
  8564. * src/TorrentMan.cc
  8565. (advertisePiece): Use push_front.
  8566. (getAdvertisedPieceIndexes): A performance improvement was made.
  8567. To fix the bug that sends tracker requests without a sleep interval
  8568. when the number of connections is less than 15.
  8569. * src/TrackerWatcherCommand.cc
  8570. (execute): Now the number of connections is not a factor to decide
  8571. whether or not a tracker request should be sent or not.
  8572. * src/Time.h
  8573. (setTimeInSec): New function.
  8574. * src/Time.cc
  8575. (setTimeInSec): New function.
  8576. etc.
  8577. * src/ChokeMessage.cc
  8578. (receivedAction): Removed peer->snubbing = false
  8579. * src/PeerConnection.h
  8580. (receiveHandshake): Updated doc.
  8581. * src/TorrentMan.h
  8582. (getAdvertisedPieceIndexes): Updated the method signature.
  8583. * src/TorrentMan.cc
  8584. (getAdvertisedPieceIndexes): Updated the method signature.
  8585. * src/Time.h
  8586. (getTimeInMicros): Added a cast to (long long int).
  8587. (getTimeInMillis): Added a cast to (long long int).
  8588. * Release 0.5.2
  8589. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. To make a listening socket non-block:
  8591. * src/SocketCore.h
  8592. (setNonBlockingMode): New function.
  8593. * src/SocketCore.cc
  8594. (setNonBlockingMode): New function.
  8595. (beginListen): Added a call to setNonBlockingMode().
  8596. (acceptConnection): Call setNonBlockingMode().
  8597. (setBlockingMode): Updated.
  8598. To handle tracker's NAT-checking:
  8599. * src/PeerConnection.cc
  8600. (receiveHandshake): 'msg' param is filled with received data and
  8601. its length is assigned to 'length' param, even if all handshake
  8602. message is not yet received.
  8603. * src/PeerInteractionCommand.cc
  8604. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  8605. a new peer connects to localhost.
  8606. A call to peerInteraction->sendHandshake() was removed because
  8607. it is called from peerInteraction->receiveHandshake(true).
  8608. * src/PeerInteraction.h
  8609. (quickReplied): New variable.
  8610. (receiveHandshake): Added an argument.
  8611. * src/PeerInteraction.cc
  8612. (PeerInteraction): Added the initialization of quickReplied.
  8613. (receiveHandshake): Send handshake message as soon as the info hash
  8614. in a handshake message from a peer is correct.
  8615. To change the random part of peer id and key parameter:
  8616. * src/TorrentMan.h
  8617. (key): New variable.
  8618. * src/TorrentMan.cc
  8619. (setupInternal1): Use Util::randomAlpha() to generate random part
  8620. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  8621. key is also generated by Util::randomAlpha() and it is now 8 character
  8622. long.
  8623. * src/Util.h
  8624. (randomAlpha): New function.
  8625. * src/Util.cc
  8626. (randomAlpha): New function.
  8627. * src/TrackerWatcherCommand.cc
  8628. (execute): In a tracker request: Use torrentMan->key as key parameter.
  8629. Added no_peer_id=1.
  8630. Set snubbing flag to false when a choke message is received from a
  8631. snubbed peer.
  8632. * src/ChokeMessage.cc
  8633. (receivedAction): Set snubbing flag to false.
  8634. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8635. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  8636. * src/SimpleLogger.h (writeHeader): New function.
  8637. * src/SimpleLogger.cc (writeHeader): New function.
  8638. (writeLog): Fixed the bug that causes segfaults if exception message
  8639. contains an unescaped "%" character.
  8640. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  8641. when a tracker request fails.
  8642. * src/Request.cc (parseUrl): Query string is now handled properly.
  8643. * Release 0.5.1
  8644. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. To add Time class which represents a specific instant in time and
  8646. its precision is microseconds. Time checking procedures were rewritten
  8647. using this object.
  8648. * src/Time.h: New class.
  8649. * src/Time.cc: New class.
  8650. * src/AbstractCommand.h
  8651. (updateCheckPoint): Removed.
  8652. (isTimeoutDetected): Removed.
  8653. (checkPoint): Changed the type to Time.
  8654. (timeout): New variable.
  8655. (setTimeout): New function.
  8656. * src/AbstractCommand.cc
  8657. (AbstractCommand): Removed the initialization of checkPoint.
  8658. Added the initialization of timeout.
  8659. (updateCheckPoint): Removed.
  8660. (isTimeoutDetected): Removed.
  8661. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8662. * src/PeerChokeCommand.h
  8663. (checkPoint): Changed the type to Time.
  8664. * src/PeerChokeCommand.cc
  8665. (PeerChokeCommand): Removed the initialization of checkPoint.
  8666. (execute): Rewritten using Time object.
  8667. * src/TrackerWatcherCommand.h
  8668. (checkPoint): Changed the type to Time.
  8669. * src/TrackerWatcherCommand.cc
  8670. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  8671. (execute): Rewritten.
  8672. * src/ConsoleDownloadEngine.h
  8673. (cp): Changed the type to Time.
  8674. (startup): Changed the type to Time.
  8675. * src/ConsoleDownloadEngine.cc
  8676. (initStatistics): Use cp.reset(), startup.reset().
  8677. (calculateStatistics): Rewritten using Time object.
  8678. * src/PeerAbstractCommand.h
  8679. (updateCheckPoint): Removed.
  8680. (isTimeoutDetected): Removed.
  8681. (checkPoint): Changed the type to Time.
  8682. * src/PeerAbstractCommand.cc
  8683. (PeerAbstractCommand): Removed the initialization of checkPoint.
  8684. (updateCheckPoint): Removed.
  8685. (isTimeoutDetected): Removed.
  8686. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8687. * src/PeerInteractionCommand.cc
  8688. (PeerInteractionCommand): Removed the initializations of struct
  8689. timeval variables.
  8690. * src/PeerInteractionCommand.h
  8691. (keepAliveCheckPoint): Changed the type to Time.
  8692. (chokeCheckPoint): Changed the type to Time.
  8693. (freqCheckPoint): Changed the type to Time.
  8694. (haveCheckTime): Changed the type to Time.
  8695. * src/PeerInteractionCommand.cc
  8696. (executeInternal): Rewritten using Time object.
  8697. (detectMessageFlooding): Rewritten using Time object.
  8698. (checkLongTimePeerChoking): Rewritten using Time object.
  8699. (sendKeepAlive): Rewritten using Time object.
  8700. (checkHave): Rewritten using Time object.
  8701. * src/SleepCommand.h
  8702. (checkPoint): Changed the type to Time.
  8703. * src/SleepCommand.cc
  8704. (SleepCommand): Removed the initialization of checkPoint.
  8705. (execute): Rewritten using Time object.
  8706. * src/TorrentAutoSaveCommand.h
  8707. (checkPoint): Changed the type to Time.
  8708. * src/TorrentAutoSaveCommand.cc
  8709. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  8710. (execute): Rewritten.
  8711. * src/DownloadCommand.h
  8712. (sw): Changed the type to Time.
  8713. * src/DownloadCommand.cc
  8714. (DownloadCommand): Removed the initialization of sw.
  8715. (executeInternal): Rewritten.
  8716. * src/RequestSlot.h
  8717. (dispatchedTime): Changed the type to Time.
  8718. * src/RequestSlot.cc
  8719. (RequestSlot): Removed the call to setDispatchedTime().
  8720. (setDispatchedTime): Rewirtten.
  8721. (isTimeout): Rewritten.
  8722. (getLatencyInMillis): Rewritten.
  8723. * src/TorrentDownloadEngine.h
  8724. (cp): Changed the type to Time[2].
  8725. (startup): Changed the type to Time.
  8726. * src/TorrentDownloadEngine.cc
  8727. (initStatistics): Rewritten.
  8728. (calculateStatistics): Rewritten.
  8729. * src/DownloadEngine.cc
  8730. (run): Rewritten.
  8731. To detect all attempts to connect to the tracker are failed:
  8732. * src/AbstractCommand.cc
  8733. (execute): Increment e->segmentMan->errors if a command aborted.
  8734. * src/SegmentMan.h
  8735. (errors): New variable.
  8736. * src/SegmentMan.cc
  8737. (SegmentMan): Added the initialization of errors.
  8738. (init): Added the initialization of errors.
  8739. * src/TrackerWatcherCommand.cc
  8740. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  8741. request was failed.
  8742. To handle snubbed peers:
  8743. * src/PeerChokeCommand.cc
  8744. (optUnchokingPeer): Snubbed peers don't get unchoked.
  8745. (execute): Snubbed peers don't get unchoked.
  8746. * src/PeerInteraction.h
  8747. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  8748. * src/PeerInteraction.cc
  8749. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  8750. back the requested 16k block in 60 seconds.
  8751. * src/PieceMessage.cc
  8752. (receivedAction): A peer's snubbed state is cleard if it sends
  8753. the requested 16k block in 60 seconds.
  8754. * src/Peer.h
  8755. (snubbing): New variable.
  8756. * src/Peer.cc
  8757. (resetStatus): Added snubbed = false.
  8758. To fix the bug that causes have message is not sent:
  8759. * src/PeerInteractionCommand.cc
  8760. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  8761. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  8762. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  8763. * src/TorrentMan.h
  8764. (HaveEntry): New class.
  8765. (advertisePiece): Rewritten.
  8766. (getAdvertisedPieceIndexes): Rewritten.
  8767. (Haves): Changed the type.
  8768. (getAdvertisedPieceIndexes): Added an argument.
  8769. Others:
  8770. * src/TorrentMan.h
  8771. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  8772. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  8773. * src/TorrentMan.cc
  8774. (getPeer): Don't check the number of connections here.
  8775. (setupInternal1): Changed peerId.
  8776. * src/PeerInteractionCommand.h
  8777. (KEEP_ALIVE_INTERVAL): New definition.
  8778. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  8779. * src/main.cc
  8780. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  8781. * src/DownloadEngine.h: Removed unnecessary header includes.
  8782. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. To fix the bug that causes segfaults if a tracker returns a zero-length
  8784. list as "peers":
  8785. * src/TrackerUpdateCommand.cc
  8786. (execute): Added a check to see wether the type of peers is Data*.
  8787. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. * Release 0.5.0
  8789. To fix compile issue with gcc3:
  8790. * src/CancelMessage.h
  8791. (ID): Renamed as ID_t
  8792. (ID_t): New enum.
  8793. * src/RejectMessage.h
  8794. (ID): Renamed as ID_t
  8795. (ID_t): New enum.
  8796. * src/SuggestPieceMessage.h
  8797. (ID): Renamed as ID_t
  8798. (ID_t): New enum.
  8799. * src/AllowedFastMessage.h
  8800. (ID): Renamed as ID_t
  8801. (ID_t): New enum.
  8802. * src/PortMessage.h
  8803. (ID): Renamed as ID_t
  8804. (ID_t): New enum.
  8805. * src/HaveNoneMessage.h
  8806. (ID): Renamed as ID_t
  8807. (ID_t): New enum.
  8808. * src/KeepAliveMessage.h
  8809. (ID): Renamed as ID_t
  8810. (ID_t): New enum.
  8811. * src/HaveAllMessage.h
  8812. (ID): Renamed as ID_t
  8813. (ID_t): New enum.
  8814. * src/UnchokeMessage.h
  8815. (ID): Renamed as ID_t
  8816. (ID_t): New enum.
  8817. * src/BitfieldMessage.h
  8818. (ID): Renamed as ID_t
  8819. (ID_t): New enum.
  8820. * src/PieceMessage.h
  8821. (ID): Renamed as ID_t
  8822. (ID_t): New enum.
  8823. * src/RequestMessage.h
  8824. (ID): Renamed as ID_t
  8825. (ID_t): New enum.
  8826. * src/NotInterestedMessage.h
  8827. (ID): Renamed as ID_t
  8828. (ID_t): New enum.
  8829. * src/ChokeMessage.h
  8830. (ID): Renamed as ID_t
  8831. (ID_t): New enum.
  8832. * src/InterestedMessage.h
  8833. (ID): Renamed as ID_t
  8834. (ID_t): New enum.
  8835. * src/HaveMessage.h
  8836. (ID): Renamed as ID_t
  8837. (ID_t): New enum.
  8838. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. * src/PeerAbstractCommand.h
  8840. (beforeSocketCheck): Removed.
  8841. * src/PeerAbstractCommand.cc
  8842. Modified in order to call executeInternal() even if socket check
  8843. and upload limit check fail.
  8844. * src/PeerInteractionCommand.h
  8845. (keepAlive): Removed.
  8846. (sendKeepAlive): New function.
  8847. (checkHave): New function.
  8848. (beforeSocketCheck): Removed.
  8849. * src/PeerInteractionCommand.cc
  8850. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  8851. calls to checkHave() and sendKeepAlive().
  8852. (keepAlive): Renamed to sendKeepAlive().
  8853. (sendKeepAlive): New function.
  8854. (beforeSocketCheck): Removed.
  8855. (checkHave): New function.
  8856. * src/BitfieldMan.cc
  8857. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  8858. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  8859. 0.
  8860. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  8861. * src/TorrentMan.h
  8862. (UsedPieces): Removed.
  8863. (Pieces): New type definition.
  8864. * src/Piece.h: Updated doc.
  8865. * src/Peer.h
  8866. (totalLength): Removed.
  8867. * src/Peer.cc
  8868. (updateLatency): Fixed the latency calculation.
  8869. * src/TorrentMan.cc
  8870. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  8871. than or equal to MAX_PEER_LIST_SIZE.
  8872. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  8873. then return false.
  8874. (deleteOldErrorPeers): Rewritten.
  8875. (deleteUsedPiece): Fixed the miss use of STL remove.
  8876. * src/PeerInteraction.h
  8877. (Pieces): Removed.
  8878. (deleteTimeoutRequestSlot): Removed.
  8879. (deleteCompletedRequestSlot): Removed.
  8880. (checkRequestSlot): New function.
  8881. * src/PeerInteraction.cc
  8882. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  8883. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  8884. (checkRequestSlot): New function.
  8885. * src/DownloadEngine.cc
  8886. (run): Clear activeSockets before calling waitData().
  8887. (waitData): Removed a call to activeSockets.clear().
  8888. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. To attempt to handle EINTR:
  8890. * src/SocketCore.cc
  8891. (isReadable): Added EINTR handling.
  8892. (isWritable): Added EINTR handling.
  8893. To improve the performance:
  8894. * src/AbstractCommand.cc
  8895. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  8896. * src/PeerInteractionCommand.h
  8897. (receiveMessage): Renamed as receiveMessages().
  8898. (receiveMessages): New function.
  8899. * src/PeerInteractionCommand.cc
  8900. (executeInternal): receiveMessage loop is moved to new receiveMessages
  8901. () function. detectMessageFlooding() is moved here.
  8902. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  8903. (). The flooding detection for have message is comment out.
  8904. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  8905. Util::difftv().
  8906. (receiveMessage): Renamed as receiveMessages().
  8907. (receiveMessages): New function.
  8908. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  8909. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  8910. * src/SleepCommand.cc
  8911. (execute): Use Util::difftvsec() instead of Util::difftv().
  8912. * src/BitfieldMan.h
  8913. (getNthBitIndex): New function.
  8914. (hasMissingPiece): New function.
  8915. (getAllMissingIndexes): New function.
  8916. * src/BitfieldMan.cc
  8917. (countSetBit): Rewritten.
  8918. (getNthBitIndex): New function.
  8919. (getMissingIndexRandomly): Rewritten.
  8920. (hasMissingPiece): New function.
  8921. (getAllMissingIndexes): New function.
  8922. * src/TorrentMan.cc
  8923. (hasMissingPiece): New function.
  8924. (deleteUsedPiece): Rewritten using STL.
  8925. * src/PeerInteraction.cc
  8926. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  8927. is a little bit faster then TorrentMan::getMissingPieceIndex().
  8928. (addRequests): Updated the number of pending requests.
  8929. * src/PeerAbstractCommand.cc
  8930. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  8931. (execute): Returns true if TorrentMan::isHalt() is true.
  8932. Corrected the condition of upload limit checking.
  8933. * src/Util.h
  8934. (countBit): New function.
  8935. * src/Util.cc
  8936. (nbits): New variable.
  8937. (countBit): New function.
  8938. * src/DownloadEngine.h
  8939. (SockCmdMap): New type definition.
  8940. (waitData): Added an argument.
  8941. (addSocket): Added an argument.
  8942. (addSocketForReadCheck): Added an argument.
  8943. (addSocketForWriteCheck): Added an argument.
  8944. * src/DownloadEngine.cc
  8945. (run): Executes only commands whose sockets are ready to read or write.
  8946. All commands are executed in every 1 second.
  8947. (waitData): Calls select() again if it returned
  8948. EINTR.
  8949. (addSocket): Saves socket and command object pair to the map.
  8950. (deleteSocket): Deletes socket and command object pair from the map.
  8951. (addSocketForReadCheck): Added an argument.
  8952. (addSocketForWriteCheck): Added an argument.
  8953. * src/DownloadCommand.cc
  8954. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  8955. To send "event=stopped" to the tracker when the application finishes:
  8956. * src/PeerChokeCommand.h
  8957. (checkPoint): New variable.
  8958. * src/PeerChokeCommand.cc
  8959. (PeerChokeCommand): Added the initialization of checkPoint.
  8960. (execute): The interval check is now done by checkPoint, not
  8961. SleepCommand. Return true if TorrentMan::isHalt() is true.
  8962. * src/TorrentMan.h
  8963. (halt): New function.
  8964. (hasMissingPiece): New function.
  8965. (isHalt): New function.
  8966. (setHalt): New function.
  8967. * src/TorrentMan.cc
  8968. (TorrentMan): Added the initialization of halt.
  8969. * src/TorrentAutoSaveCommand.h
  8970. (checkPoint): New variable.
  8971. * src/PeerListenCommand.cc
  8972. (execute): Returns true if TorrentMan::isHalt() is true.
  8973. * src/main.cc
  8974. (setSignalHander): Added flags argument.
  8975. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  8976. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  8977. Removed printDownloadAbortMessage() after torrent downloading loop.
  8978. * src/TorrentAutoSaveCommand.cc
  8979. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  8980. (execute): Returns true if TorrentMan::isHalt() is true.
  8981. The interval check is now done by checkPoint, not SleepCommand.
  8982. * src/TrackerWatcherCommand.cc
  8983. (execute): If TorrentMan::isHalt(), then create a tracker request with
  8984. event=stopped.
  8985. * src/TrackerUpdateCommand.cc
  8986. (prepareForRetry): Do not use SleepCommand here.
  8987. (execute): Returns true if TorrentMan::isHalt() is true.
  8988. Others:
  8989. * src/TorrentMan.cc
  8990. (getMissingPieceIndex): Updated log message.
  8991. * src/PeerInteraction.cc
  8992. (createPeerMessag): Updated log message.
  8993. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. To add the ability to download several pieces in mix in a command and
  8995. increase the number of request slots according to request-cancel
  8996. latency:
  8997. * src/PeerInteractionCommand.cc
  8998. (executeInternal): The number of messages to be received at a time
  8999. is increased from 10 to 50.
  9000. * src/LogFactory
  9001. (getInstance): Added NullLogger.
  9002. * src/NullLogger.h: New class.
  9003. * src/BitfieldMan.h
  9004. (getMissingIndex): New function.
  9005. * src/BitfieldMan.cc
  9006. (getMissingIndex): New function.
  9007. * src/TorrentMan.h
  9008. (checkOutPiece): New function.
  9009. (getMissingPieceIndex): New function.
  9010. (getMissingFastPieceIndex): New function.
  9011. (getMissingFastPiece): New function.
  9012. * src/TorrentMan.cc
  9013. (updatePiece): Rewritten using STL.
  9014. (syncPiece): Rewritten using STL.
  9015. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9016. checkOutPiece().
  9017. (getMissingPieceIndex): New function.
  9018. (getMissingFastPieceIndex): New function.
  9019. (getMissingFastPiece): New function.
  9020. (checkOutPiece): New function.
  9021. * src/PeerInteraction.h
  9022. (Pieces): New type definition.
  9023. (piece): Removed.
  9024. (pieces): New variable.
  9025. (getNewPieceAndSendInterest): Added the "piece" argument.
  9026. (abortPiece): Added the "piece" argument.
  9027. (abortAllPieces): New function.
  9028. (isInRequestSlot): New function.
  9029. (hasDownloadPiece): Added the "index" argument.
  9030. (setDownloadPiece): Removed.
  9031. (getDownloadPiece): Added the "index" argument.
  9032. (updatePiece): New function.
  9033. (createRequestMessage): Added the "index" argument.
  9034. * src/PeerInteraction.cc
  9035. (onChoked): Rewritten.
  9036. (abortPiece): Rewirtten.
  9037. (abortAllPieces): New function.
  9038. (deleteTimeoutRequestSlot): Rewritten.
  9039. Clarified code a little bit.
  9040. (deleteCompletedRequestSlot): Rewritten.
  9041. (isInRequestSlot): New function.
  9042. (syncPiece): Rewritten.
  9043. (updatePiece): New function.
  9044. (getNewPieceAndSendInterest): Rewritten.
  9045. (addRequests): Rewritten.
  9046. (getDownloadPiece): Rewritten.
  9047. (hasDownloadPiece): Rewritten.
  9048. (createRequestMessage): Added the "index" argument.
  9049. * src/common.h
  9050. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9051. (DIV_FLOOR): New definition.
  9052. * src/PieceMessage.cc
  9053. (receivedAction): Update request-piece latency here.
  9054. * src/RequestSlot.h
  9055. (getLatencyInMillis): New function.
  9056. * src/RequestSlot.cc
  9057. (isTimeout): Rewritten using getLatencyInMillis.
  9058. (getLatencyInMillis): New function.
  9059. * src/Piece.h
  9060. (operator==): New function.
  9061. (getMissingBlockIndex): New function.
  9062. * src/Piece.cc
  9063. (operator==): New function.
  9064. (getMissingBlockIndex): New function.
  9065. * src/Peer.h
  9066. (DEFAULT_LATENCY): New definition.
  9067. (latency): New variable.
  9068. (updateLatency): New function.
  9069. (getLatency): New function.
  9070. * src/Peer.cc
  9071. (resetStatus): Reset latecy.
  9072. (updateLatency): New function.
  9073. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. * src/SocketCore.cc
  9075. (isReadable): Added secure to the condition.
  9076. * src/HttpConnection.cc
  9077. (receiveResponse): Fixed a bug that causes no response header
  9078. exception.
  9079. * src/Peer.h
  9080. (getFastSet): Fixed the return value type.
  9081. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. To remove a wait from download loop:
  9083. * src/DownloadEngine.cc
  9084. (run): Comment out shortSleep.
  9085. To rewrite the message handling:
  9086. * src/SimplePeerMessage.h: New class.
  9087. * src/SimplePeerMessage.cc: New class.
  9088. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9089. (msg): New variable.
  9090. (create): New function.
  9091. (send): Removed.
  9092. (getMessage): New function.
  9093. (getMessageLength): New function.
  9094. * src/CancelMessage.cc
  9095. (create): New function.
  9096. (receivedAction): Replaced deleteRequestMessageInQueue with
  9097. rejectPieceMessageInQueue.
  9098. (send): Removed.
  9099. (getMessage): New function.
  9100. (getMessageLength): New function.
  9101. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9102. (msg): New variable.
  9103. (msgLength): New variable.
  9104. (~BitfieldMessage): Deleted msg.
  9105. (send): Removed.
  9106. (getMessage): New function.
  9107. (getMessageLength): New function.
  9108. * src/BitfieldMessage.cc
  9109. (create): New function.
  9110. (send): Removed.
  9111. (getMessage): New function.
  9112. (getMessageLength): New function.
  9113. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9114. (msg): New variable.
  9115. (sendPredicate): New function.
  9116. (onSendComplete): New function.
  9117. (send): Removed.
  9118. (getMessage): New function.
  9119. (getMessageLength): New function.
  9120. (create): New function.
  9121. * src/ChokeMessage.cc
  9122. (create): New function.
  9123. (send): Removed.
  9124. (sendPredicate): New function.
  9125. (getMessage): New function.
  9126. (getMessageLength): New function.
  9127. (onSendComplete): New function.
  9128. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9129. (msg): New variable.
  9130. (send): Removed.
  9131. (getMessage): New function.
  9132. (getMessageLength): New function.
  9133. * src/KeepAliveMessage.cc
  9134. (send): Removed.
  9135. (getMessage): New function.
  9136. (getMessageLength): New function.
  9137. * src/PortMessage.h
  9138. (create): New function.
  9139. (receivedAction): Updated log message.
  9140. * src/PortMessage.cc: New file.
  9141. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9142. (msg): New variable.
  9143. (sendPredicate): New function.
  9144. (onSendComplete): New function.
  9145. (create): New function.
  9146. (send): Removed.
  9147. (getMessage): New function.
  9148. (getMessageLength): New function.
  9149. * src/UnchokeMessage.cc
  9150. (create): New function.
  9151. (send): Removed.
  9152. (sendPredicate): New function.
  9153. (getMessage): New function.
  9154. (getMessageLength): New function.
  9155. (onSendComplete): New function.
  9156. * src/PieceMessage.h
  9157. (leftPieceDataLength): Removed.
  9158. (leftDataLength): New variable.
  9159. (headerSend): New variable.
  9160. (pendingCount): New variable.
  9161. (msgHeader): New variable.
  9162. (sendPieceData): New function.
  9163. (incrementPendingCount): New function.
  9164. (isPendingCountMax): New function.
  9165. (create): New function.
  9166. (getMessageHeader): New function.
  9167. (getMessageHeaderLength): New function.
  9168. * src/PieceMessage.cc
  9169. (create): New function.
  9170. (getMessageHeader): New function.
  9171. (getMessageHeaderLength): New function.
  9172. (send): Rewritten.
  9173. (sendPieceData): New function.
  9174. * src/HaveMessage.h: Derived from SimplePeerMessage.
  9175. (msg): New variable.
  9176. (create): New function.
  9177. (getMessage): New function.
  9178. (getMessageLength): New function.
  9179. * src/HaveMessage.cc
  9180. (create): New function.
  9181. (send): Removed.
  9182. (sendPieceData): New function.
  9183. (getMessage): New function.
  9184. (getMessageLength): New function.
  9185. * src/RequestMessage.h: Derived from SimplePeerMessage.
  9186. (msg): New variable.
  9187. (create): New function.
  9188. (send): Removed.
  9189. (getMessage): New function.
  9190. (getMessageLength): New function.
  9191. * src/RequestMessage.cc
  9192. (create): New function.
  9193. (receivedAction): Added the handling of fast extension.
  9194. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  9195. (send): Removed.
  9196. (getMessage): New function.
  9197. (getMessageLength): New function.
  9198. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  9199. (msg): New variable.
  9200. (sendPredicate): New function.
  9201. (onSendComplete): New function.
  9202. (create): New function.
  9203. (getMessage): New function.
  9204. (getMessageLength): New function.
  9205. * src/InterestedMessage.cc
  9206. (create): New function.
  9207. (send): Removed.
  9208. (sendPieceData): New function.
  9209. (getMessage): New function.
  9210. (getMessageLength): New function.
  9211. (onSendComplete): New function.
  9212. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  9213. (msg): New variable.
  9214. (sendPieceData): New function.
  9215. (onSendComplete): New function.
  9216. (create): New function.
  9217. (send): Removed.
  9218. (getMessage): New function.
  9219. (getMessageLength): New function.
  9220. * src/NotInterestedMessage.cc
  9221. (create): New function.
  9222. (send): Removed.
  9223. (sendPredicate): New function.
  9224. (getMessage): New function.
  9225. (getMessageLength): New function.
  9226. (onSendComplete): New function.
  9227. * src/AllowedFastMessage.h: New class.
  9228. * src/AllowedFastMessage.cc: New class.
  9229. * src/RejectMessage.h: New class.
  9230. * src/RejectMessage.cc: New class.
  9231. * src/SuggestPieceMessage.h: New class.
  9232. * src/SuggestPieceMessage.cc: New class.
  9233. * src/HaveAllMessage.h: New class.
  9234. * src/HaveAllMessage.cc: New class.
  9235. * src/HaveNoneMessage.h: New class.
  9236. * src/HaveNoneMessage.cc: New class.
  9237. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  9238. (msg): New variable.
  9239. (reserved): New variable.
  9240. (create): New function.
  9241. (getId): New function.
  9242. (receivedAction): New function.
  9243. (getMessage): New function.
  9244. (getMessageLength): New function.
  9245. (isFastExtensionSupported): New function.
  9246. * src/HandshakeMessage.cc
  9247. (HandshakeMessage): Moved here from HandshakeMessage.h.
  9248. (create): New function.
  9249. (getMessage): New function.
  9250. (getMessageLength): New function.
  9251. (toString): Added the output of reserved field.
  9252. (check): Added const qualifier.
  9253. (isFastExtensionSupported): New function.
  9254. * src/PeerMessageUtil.h
  9255. (createChokeMessage): Removed.
  9256. (createUnchokeMessage): Removed.
  9257. (createInterestedMessage): Removed.
  9258. (createNotInterestedMessage): Removed.
  9259. (createHaveMessage): Removed.
  9260. (createBitfieldMessage): Removed.
  9261. (createRequestMessage): Removed.
  9262. (createCancelMessage): Removed.
  9263. (createPieceMessage): Removed.
  9264. (createPortMessage): Removed.
  9265. (createChokeMessage): Removed.
  9266. (createUnchokeMessage): Removed.
  9267. (createInterestedMessage): Removed.
  9268. (createNotInterestedMessage): Removed.
  9269. (createHaveMessage): Removed.
  9270. (createBitfieldMessage): Removed.
  9271. (createRequestMessage): Removed.
  9272. (createCancelMessage): Removed.
  9273. (createPieceMessage): Removed.
  9274. (createKeepAliveMessage): Removed.
  9275. (createHandshakeMessage): Removed.
  9276. (setIntParam): New function.
  9277. (createPeerMessageString): New function.
  9278. * src/PeerMessageUtil.cc
  9279. (createChokeMessage): Removed.
  9280. (createUnchokeMessage): Removed.
  9281. (createInterestedMessage): Removed.
  9282. (createNotInterestedMessage): Removed.
  9283. (createHaveMessage): Removed.
  9284. (createBitfieldMessage): Removed.
  9285. (createRequestMessage): Removed.
  9286. (createCancelMessage): Removed.
  9287. (createPieceMessage): Removed.
  9288. (createPortMessage): Removed.
  9289. (createRequestMessage): Removed.
  9290. (createCancelMessage): Removed.
  9291. (createPieceMessage): Removed.
  9292. (createHaveMessage): Removed.
  9293. (createChokeMessage): Removed.
  9294. (createUnchokeMessage): Removed.
  9295. (createInterestedMessage): Removed.
  9296. (createNotInterestedMessage): Removed.
  9297. (createBitfieldMessage): Removed.
  9298. (createKeepAliveMessage): Removed.
  9299. (createHandshakeMessage): Removed.
  9300. (setIntParam): New function.
  9301. (createPeerMessageString): New function.
  9302. * src/PeerConnection.h
  9303. (peer): Removed.
  9304. (torrentMan): Removed.
  9305. (createNLengthMessage): Removed.
  9306. (setIntParam): Removed.
  9307. (writeOutgoingMessageLog): Removed all overloaded functions.
  9308. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9309. (sendMessage): New function.
  9310. (sendHandshake): Removed.
  9311. (sendKeepAlive): Removed.
  9312. (sendChoke): Removed.
  9313. (sendUnchoke): Removed.
  9314. (sendInterested): Removed.
  9315. (sendNotInterested): Removed.
  9316. (sendHave): Removed.
  9317. (sendBitfield): Removed.
  9318. (sendRequest): Removed.
  9319. (sendPiece): Removed.
  9320. (sendPieceHeader): Removed.
  9321. (sendPieceData): Removed.
  9322. (sendCancel): Removed.
  9323. (getPeer): Removed.
  9324. * src/PeerConnection.cc
  9325. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9326. (sendHandshake): Removed.
  9327. (sendKeepAlive): Removed.
  9328. (createNLengthMessage): Removed.
  9329. (setIntParam): Removed.
  9330. (writeOutgoingMessageLog): Removed all overloaded functions.
  9331. (sendChoke): Removed.
  9332. (sendUnchoke): Removed.
  9333. (sendInterested): Removed.
  9334. (sendNotInterested): Removed.
  9335. (sendHave): Removed.
  9336. (sendBitfield): Removed.
  9337. (sendRequest): Removed.
  9338. (sendPiece): Removed.
  9339. (sendPieceHeader): Removed.
  9340. (sendPieceData): Removed.
  9341. (sendMessage): New function.
  9342. (sendCancel): Removed.
  9343. * src/PeerInteractionCommand.cc
  9344. (PeerInteractionCommand): Call setUploadLimit.
  9345. (executeInternal): Call setUploadLimit.
  9346. Added the handling of "inProgress" state of handshake message.
  9347. Call sendBitfield() or sendAllowdFast() instead of deprecated
  9348. sendNow().
  9349. (keepAlive): Call addMessage and sendMessage instead of deprecated
  9350. sendNow().
  9351. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  9352. * src/TorrentMan.h
  9353. (PEER_ID_LENGTH): New definition.
  9354. (hasAllPieces): New function.
  9355. * src/TorrentMan.cc
  9356. (getMissingPiece): Added the handling of fast extension.
  9357. (cancelPiece): Call updatePiece().
  9358. (hasAllPieces): New function.
  9359. * src/PeerInteraction.h
  9360. (fastSet): New variable.
  9361. (getNewPieceAndSendInterest): Changed the return type to void.
  9362. (send): Renamed as sendMessages.
  9363. (deleteAllRequestSlot): Removed.
  9364. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9365. (cancelAllRequest): Removed all overloaded functions.
  9366. (deleteAllRequestSlot): Removed.
  9367. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9368. (rejectPieceMessageInQueue): New function.
  9369. (rejectAllPieceMessageInQueue): New function.
  9370. (onChoked): New function.
  9371. (isSendingMessageInProgress): New function.
  9372. (getCorrespondingRequestSlot): Changed its arguments.
  9373. (isInFastSet): New function.
  9374. (addFastSetIndex): New function.
  9375. (addRequests): New function.
  9376. (sendNow): Removed.
  9377. (trySendNow): Removed.
  9378. (sendBitfield): New function.
  9379. (sendAllowdFast): New function.
  9380. (createHaveAllMessage): New function.
  9381. (createHaveNoneMessage): New function.
  9382. (createRejectMessage): New function.
  9383. (createAllowedFastMessage): New function.
  9384. * src/PeerInteraction.cc
  9385. (send): Renamed as sendMessages.
  9386. (sendMessages): New function.
  9387. (MsgPushBack): New class.
  9388. (isSendingMessageInProgress): New function.
  9389. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9390. (rejectAllPieceMessageInQueue): New function.
  9391. Added the handling of fast extension.
  9392. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9393. (rejectPieceMessageInQueue): New function.
  9394. Added the handling of fast extension.
  9395. (deleteRequestSlot): Replaced for loop with std::find.
  9396. (onChoked): New function.
  9397. (deleteAllRequestSlot): Removed.
  9398. (abortPiece): Rewirtten.
  9399. (deleteTimeoutRequestSlot): Updated log messages.
  9400. (getCorrespondingRequestSlot): Changed its arguments.
  9401. (cancelAllRequest): Removed all overloaded functions.
  9402. (receiveHandshake): Added the check to see whether an incoming peer
  9403. supports fast extension.
  9404. (createHandshakeMessage): Use HandshakeMessage::create instead of
  9405. PeerMessageUtil.
  9406. (createPeerMessage): Use create() of each message class instead of
  9407. PeerMessageUtil.
  9408. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  9409. AllowedFastMessage were added.
  9410. (getNewPieceAndSendInterest): Changed its return value type to void.
  9411. Added the handling of fast extension.
  9412. (addRequests): New function.
  9413. (sendNow): Removed.
  9414. (sendHandshake): Rewritten.
  9415. (trySendNow): Removed.
  9416. (sendBitfield): New function.
  9417. (sendAllowdFast): New function.
  9418. (isInFastSet): New function.
  9419. (addFastSetIndex): New function.
  9420. (createRequestMessage): Use RequestMessage::create instead of
  9421. PeerMessageUtil.
  9422. (createCancelMessage): Use CancelMessage::create instead of
  9423. PeerMessageUtil.
  9424. (createPieceMessage): Use PieceMessage::create instead of
  9425. PeerMessageUtil.
  9426. (createHaveMessage): Use HaveMessage::create instead of
  9427. PeerMessageUtil.
  9428. (createChokeMessage): Use ChokeMessage::create instead of
  9429. PeerMessageUtil.
  9430. (createUnchokeMessage): Use UnchokeMessage::create instead of
  9431. PeerMessageUtil.
  9432. (createInterestedMessage): Use InterestedMessage::create instead of
  9433. PeerMessageUtil.
  9434. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  9435. of PeerMessageUtil.
  9436. (createBitfieldMessage): Use BitfieldMessage::create instead of
  9437. PeerMessageUtil.
  9438. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  9439. PeerMessageUtil.
  9440. (createHaveAllMessage): New function.
  9441. (createHaveNoneMessage): New function.
  9442. (createRejectMessage): New function.
  9443. (createAllowedFastMessage: New function.
  9444. * src/Util.h
  9445. (sha1Sum): New function.
  9446. (computeFastSet): New function.
  9447. * src/Util.cc
  9448. (sha1Sum): New function.
  9449. (computeFastSet): New function.
  9450. * src/Peer.h
  9451. (fastExtensionEnabled): New variable.
  9452. (fastSet): New variable.
  9453. (setAllBitfield): New function.
  9454. (setFastExtensionEnabled): New function.
  9455. (isFastExtensionEnabled): New function.
  9456. (addFastSetIndex): New function.
  9457. (getFastSet): New function.
  9458. (isInFastSet): New function.
  9459. (countFastSet): New function.
  9460. * src/Peer.cc
  9461. (isInFastSet): New function.
  9462. (addFastSetIndex): New function.
  9463. (setAllBitfield): New function.
  9464. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  9465. sockets.
  9466. * src/PeerAbstractCommand.cc
  9467. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  9468. and uploadLimit.
  9469. (execute): Changed the procedure of checking sockets. The upload speed
  9470. checking were added.
  9471. (setUploadLimit): New function.
  9472. (setUploadLimitCheck): New function.
  9473. * src/PeerAbstractCommand.h
  9474. (setUploadLimit): New function.
  9475. (setUploadLimitCheck): New function.
  9476. (uploadLimit): New variable.
  9477. (uploadLimitCheck): New variable.
  9478. To contact a tracker regularly:
  9479. * src/TrackerWatcherCommand.h (interval): New variable.
  9480. (checkPoint): New variable.
  9481. (TrackerWatcherCommand): Added interval argument.
  9482. * src/TrackerWatcherCommand.cc
  9483. (TrackerWatcherCommand): Initialized checkPoint.
  9484. (execute): Now a tracker is contacted in every specified period.
  9485. If peer list is not needed, send request with numwant=0.
  9486. * src/TrackerUpdateCommand.cc
  9487. (execute): Updated log messages.
  9488. * src/DownloadEngine.cc
  9489. (~DownloadEngine): Removed two asserts.
  9490. (waitData): Uncommented wfds. May be a bug fix.
  9491. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. * src/PeerInteractionCommand.h
  9493. (checkInactiveConnection): Removed.
  9494. * src/PeerInteractionCommand.cc
  9495. (executeInternal): Removed following function calls:
  9496. detectMessageFlooding(), checkLongTimePeerChoking and
  9497. checkInactiveConnection().
  9498. (checkInactiveConnection): Removed.
  9499. (detectMessageFlooding): Removed function call to
  9500. checkInactiveConnection().
  9501. * src/PeerMessageUtil.h
  9502. (createChokeMessage): New function. Overload.
  9503. (createUnchokeMessage): New function. Overload.
  9504. (createInterestedMessage): New function. Overload.
  9505. (createNotInterestedMessage): New function. Overload.
  9506. (createHaveMessage): New function. Overload.
  9507. (createBitfieldMessage): New function. Overload.
  9508. (createRequestMessage): New function. Overload.
  9509. (createCancelMessage): New function. Overload.
  9510. (createPieceMessage): New function. Overload.
  9511. (createKeepAliveMessage): New function. Overload.
  9512. * src/PeerMessageUtil.cc
  9513. (createChokeMessage): New function. Overload.
  9514. (createUnchokeMessage): New function. Overload.
  9515. (createInterestedMessage): New function. Overload.
  9516. (createNotInterestedMessage): New function. Overload.
  9517. (createHaveMessage): New function. Overload.
  9518. (createBitfieldMessage): New function. Overload.
  9519. (createRequestMessage): New function. Overload.
  9520. (createCancelMessage): New function. Overload.
  9521. (createPieceMessage): New function. Overload.
  9522. (createKeepAliveMessage): New function. Overload.
  9523. * src/SendMessageQueue.cc
  9524. (createRequestMessage): Use PeerMessageUtil.
  9525. (createCancelMessage): Use PeerMessageUtil.
  9526. (createPieceMessage): Use PeerMessageUtil.
  9527. (createHaveMessage): Use PeerMessageUtil.
  9528. (createChokeMessage): Use PeerMessageUtil.
  9529. (createUnchokeMessage): Use PeerMessageUtil.
  9530. (createInterestedMessage): Use PeerMessageUtil.
  9531. (createNotInterestedMessage): Use PeerMessageUtil.
  9532. (createBitfieldMessage): Use PeerMessageUtil.
  9533. (createKeepAliveMessage): Use PeerMessageUtil.
  9534. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  9535. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  9536. * src/PeerInteraction.h: New class.
  9537. * src/PeerInteraction.cc: New class.
  9538. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Each peer message has its own class.
  9540. * src/PendingMessages.h: Removed.
  9541. * src/PendingMessages.cc: Removed. The sending process was moved to
  9542. each message class.
  9543. * src/RequestSlotMan.h: Removed.
  9544. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  9545. SendMessageQueue.
  9546. * src/RequestMessage.h: New class.
  9547. * src/RequestMessage.cc: New class.
  9548. * src/CancelMessage.h: New class.
  9549. * src/CancelMessage.cc: New class.
  9550. * src/BitfieldMessage.h: New class.
  9551. * src/BitfieldMessage.cc: New class.
  9552. * src/ChokeMessage.h: New class.
  9553. * src/ChokeMessage.cc: New class.
  9554. * src/KeepAliveMessage.h: New class.
  9555. * src/KeepAliveMessage.cc: New class.
  9556. * src/PortMessage.h: New class.
  9557. * src/UnchokeMessage.h: New class.
  9558. * src/UnchokeMessage.cc: New class.
  9559. * src/PieceMessage.h: New class.
  9560. * src/PieceMessage.cc: New class.
  9561. * src/HaveMessage.h: New class.
  9562. * src/HaveMessage.cc: New class.
  9563. * src/BitfieldMessage.h: New class.
  9564. * src/BitfieldMessage.cc: New class.
  9565. * src/NotInterestedMessage.h: New class.
  9566. * src/NotInterestedMessage.cc: New class.
  9567. * src/InterestedMessage.h: New class.
  9568. * src/InterestedMessage.cc: New class.
  9569. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  9570. (getSendMessageQueue): New function.
  9571. (setSendMessageQueue): New function.
  9572. * src/HandshakeMessage.cc: New class.
  9573. * src/PeerConnection.h (receiveMessage): Changed return value and
  9574. arguments.
  9575. (receiveHandshake): Changed return value and arguments.
  9576. * src/PeerConnection.cc (receiveMessage): Do not create message class
  9577. here.
  9578. (receiveHandshake): Do not create handshake class here.
  9579. * src/PeerInteractionCommand.h (peerConnection): Removed.
  9580. (piece): Removed.
  9581. (syncPiece): Removed.
  9582. (sendInterest): Removed.
  9583. (sendMessages): Removed.
  9584. (createRequestPendingMessage): Removed.
  9585. (checkPieceHash): Removed.
  9586. (erasePieceOnDisk): Removed.
  9587. (getNewPieceAndSendInterest): Removed.
  9588. (onGotNewPice): Removed.
  9589. (onGotWrongPiece): Removed.
  9590. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  9591. Removed peerConnection, piece.
  9592. (~PeerInteractionCommand): Removed peerConnection.
  9593. (executeInternal): Use sendMessageQueue instead of peerConnection.
  9594. (syncPiece): Moved to SendMessageQueue.
  9595. (decideChoking): Removed PendingMessage.
  9596. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  9597. The action after receiving peer message was moved to each message
  9598. class.
  9599. (onGotNewPice): Moved to SendMessageQueue.
  9600. (onGotWrongPiece): Moved to SendMessageQueue.
  9601. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  9602. (sendInterest): Moved to SendMessageQueue.
  9603. (createRequestPendingMessage): Removed.
  9604. (sendMessages): Moved to SendMessageQueue.
  9605. (onAbort): Use SendMessageQueue::abortPiece()
  9606. (keepAlive): Use sendMessageQueue instead of peerConnection.
  9607. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  9608. (checkPieceHash): Moved to SendMessageQueue.
  9609. (erasePieceOnDisk): Moved to SendMessageQueue.
  9610. * src/PeerMessageUtil.h
  9611. (createBitfieldMessage): Removed.
  9612. (createHaveMessage): Changed return value and arguments.
  9613. (createBitfieldMessage): Changed return value and arguments.
  9614. (createRequestCancelMessage): Removed.
  9615. (createPieceMessage): Changed return value and arguments.
  9616. (getShortIntParam): New function.
  9617. (checkIndex): Changed arguments.
  9618. (checkBegin): Changed arguments.
  9619. (checkLength): Changed arguments.
  9620. (checkPieceOffset): Removed.
  9621. (checkRange): New function.
  9622. (checkBitfield): Changed arguments.
  9623. (createPeerMessage): Removed.
  9624. (checkIntegrity): Removed.
  9625. (createHandshakeMessage): Changed arguments.
  9626. (createChokeMessage): New function.
  9627. (createUnchokeMessage): New function.
  9628. (createInterestedMessage): New function.
  9629. (createNotInterestedMessage): New function.
  9630. (createRequestMessage): New function.
  9631. (createCancelMessage): New function.
  9632. (createPortMessage): New function.
  9633. * src/PeerMessageUtil.cc
  9634. (createBitfieldMessage): Removed.
  9635. (createHaveMessage): Changed return value and arguments.
  9636. (createBitfieldMessage): Changed return value and arguments.
  9637. (createRequestCancelMessage): Removed.
  9638. (createPieceMessage): Changed return value and arguments.
  9639. (getShortIntParam): New function.
  9640. (checkIndex): Changed arguments.
  9641. (checkBegin): Changed arguments.
  9642. (checkLength): Changed arguments.
  9643. (checkPieceOffset): Removed.
  9644. (checkRange): New function.
  9645. (checkBitfield): Changed arguments.
  9646. (createPeerMessage): Removed.
  9647. (checkIntegrity): Removed.
  9648. (createHandshakeMessage): Changed arguments.
  9649. (createChokeMessage): New function.
  9650. (createUnchokeMessage): New function.
  9651. (createInterestedMessage): New function.
  9652. (createNotInterestedMessage): New function.
  9653. (createRequestMessage): New function.
  9654. (createCancelMessage): New function.
  9655. (createPortMessage): New function.
  9656. * src/PeerMessage.h
  9657. (id): Removed.
  9658. (index): Removed.
  9659. (begin): Removed.
  9660. (length): Removed.
  9661. (bitfield): Removed.
  9662. (bitfieldLength): Removed.
  9663. (block): Removed.
  9664. (blockLength): Removed.
  9665. (inProgress): New variable.
  9666. (cuid): New variable.
  9667. (peer): New variable.
  9668. (sendMessageQueue): New variable.
  9669. (logger): New variable.
  9670. (setBitfield): Removed.
  9671. (getBitfield): Removed.
  9672. (setBlock): Removed.
  9673. (getBlock): Removed.
  9674. (getBitfieldLength): Removed.
  9675. (getBlockLength): Removed.
  9676. (isInProgress): New function.
  9677. (toString): Made pure virtual.
  9678. (check): New function.
  9679. (send): New function.
  9680. (receivedAction): New function.
  9681. (getId): Made pure virtual.
  9682. (setId): Removed.
  9683. (getIndex): Removed.
  9684. (setIndex): Removed.
  9685. (getBegin): Removed.
  9686. (setBegin): Removed.
  9687. (getLength): Removed.
  9688. (setLength): Removed.
  9689. (getCuid): New function.
  9690. (setCuid): New function.
  9691. (getPeer): New function.
  9692. (setPeer): New function.
  9693. (getSendMessageQueue): New function.
  9694. (setSendMessageQueue): New function.
  9695. (ID): Removed.
  9696. * src/PeerMessage.cc
  9697. (setBitfield): Removed.
  9698. (setBlock): Removed.
  9699. (toString): Removed.
  9700. * src/TorrentMan.h
  9701. (getPieceLength): New function.
  9702. (getPieceLength): New function.
  9703. * src/SendMessageQueue.h
  9704. (REQUEST_TIME_OUT): New definition.
  9705. (RequestSlots): New definition.
  9706. (MessageQueue): New definition.
  9707. (requestSlotMan): Removed.
  9708. (pendingMessages): Removed.
  9709. (requestSlots): New variable.
  9710. (messageQueue): New variable.
  9711. (torrentMan): New variable.
  9712. (peerConnection): New variable.
  9713. (peer): New variable.
  9714. (piece): New variable.
  9715. (getNewPieceAndSendInterest): New function.
  9716. (createPeerMessage): New function.
  9717. (createHandshakeMessage): New function.
  9718. (send): Made private.
  9719. (setPeerMessageCommonProperty): New function.
  9720. (deleteAllRequestSlot): New function.
  9721. (deleteRequestMessageInQueue): New function.
  9722. (cancelAllRequest): Made private.
  9723. (cancelAllRequest): Made private.
  9724. (countRequestSlot): Made private.
  9725. (addPendingMessage): Removed.
  9726. (deletePendingPieceMessage): Removed.
  9727. (deletePendingRequestMessage): Removed.
  9728. (addMessage): New function.
  9729. (deletePieceMessageInQueue): New function.
  9730. (deleteTimeoutRequestSlot): Changed argument.
  9731. (deleteCompletedRequestSlot): Changed argument.
  9732. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  9733. (getCorrespondingRequestSlot): New function.
  9734. (countPendingMessage): Removed.
  9735. (countMessageInQueue): New function.
  9736. (getTorrentMan): New function.
  9737. (getPeerConnection): New function.
  9738. (hasDownloadPiece): New function.
  9739. (getDownloadPiece): New function.
  9740. (setDownloadPiece): New function.
  9741. (syncPiece): New function.
  9742. (sendMessages): New function.
  9743. (sendNow): New function.
  9744. (trySendNow): New function.
  9745. (abortPiece): New function.
  9746. (sendHandshake): New function.
  9747. (receiveMessage): New function.
  9748. (receiveHandshake): New function.
  9749. (createRequestMessage): New function.
  9750. (createCancelMessage): New function.
  9751. (createPieceMessage): New function.
  9752. (createHaveMessage): New function.
  9753. (createChokeMessage): New function.
  9754. (createUnchokeMessage): New function.
  9755. (createInterestedMessage): New function.
  9756. (createNotInterestedMessage): New function.
  9757. (createBitfieldMessage): New function.
  9758. (createKeepAliveMessage): New function.
  9759. * src/SendMessageQueue.cc
  9760. (SendMessageQueue): Removed requestSlotMan.
  9761. Instantiated peerConnection here.
  9762. (~SendMessageQueue): Removed requestSlotMan.
  9763. Added deletion of peerConnection and the contents of messageQueue.
  9764. (send): Updated according to the change of messageQueue.
  9765. (addPendingMessage): Renamed to addMessage.
  9766. (addMessage): New function.
  9767. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  9768. (deletePieceMessageInQueue): New function.
  9769. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  9770. (deleteRequestMessageInQueue): New function.
  9771. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  9772. here.
  9773. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  9774. (...) was moved here.
  9775. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  9776. moved here.
  9777. (deleteCompletedRequestSlot):
  9778. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  9779. (getCorrespondingRequestSlot):
  9780. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  9781. And renamed to getCorrespondingRequestSlot, correcting a typo.
  9782. (countPendingMessage): Renamed to countMessageInQueue.
  9783. (countMessageInQueue): New function.
  9784. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  9785. (receiveHandshake): New function.
  9786. (createHandshakeMessage): New function.
  9787. (receiveMessage): New function.
  9788. (createPeerMessage): New function.
  9789. (syncPiece): New function.
  9790. (getNewPieceAndSendInterest): New function.
  9791. (sendMessages): New function.
  9792. (sendNow): New function.
  9793. (trySendNow): New function.
  9794. (sendHandshake): New function.
  9795. (abortPiece): New function.
  9796. (getDownloadPiece): New function.
  9797. (getPeerMessageCommonProperty): New function.
  9798. (createRequestMessage): New function.
  9799. (createCancelMessage): New function.
  9800. (createPieceMessage): New function.
  9801. (createHaveMessage): New function.
  9802. (createChokeMessage): New function.
  9803. (createUnchokeMessage): New function.
  9804. (createInterestedMessage): New function.
  9805. (createNotInterestedMessage): New function.
  9806. (createBitfieldMessage): New function.
  9807. (createKeepAliveMessage): New function.
  9808. To add simple Content-Disposition support:
  9809. * src/HttpResponseCommand.h (determinFilename): New function.
  9810. * src/HttpResponseCommand.cc (executeInternal):
  9811. Use determinFilename(headers) instead of req->getFile() when comparing
  9812. filename.
  9813. (determinFilename): New function.
  9814. (handleDefaultEncoding): Use determinFilename(headers) instead of
  9815. req->getFile().
  9816. (handleOtherEncoding): Use determinFilename(headers) instead of
  9817. req->getFile().
  9818. * src/Util.h (getContentDispositionFilename): New function.
  9819. * src/Util.cc (getContentDispositionFilename): New function.
  9820. * src/LogFactory.h (release): New function.
  9821. * src/LogFactory.cc (release): New function.
  9822. To fix a bug that causes out-of-bound exception when HTTP status
  9823. line is wrong:
  9824. * src/HttpConnection.cc (receiveResponse): Added a check for header
  9825. size.
  9826. * src/common.h (Deleter): New class.
  9827. * src/SegmentMan.cc
  9828. (~SegmentMan): Added deletion of splitter and diskWriter.
  9829. * src/DownloadEngine.h
  9830. (Commands): Use deque.
  9831. (clearQueue): New function.
  9832. * src/DownloadEngine.cc
  9833. (~DownloadEngine): Added deletion of segmentMan.
  9834. (cleanQueue): New function.
  9835. * src/TorrentDownloadEngine.h
  9836. (TorrentDownloadEngine): The implementation was moved to
  9837. TorrentDownloadEngine.cc.
  9838. (~TorrentDownloadEngine): The implementation was moved to
  9839. TorrentDownloadEngine.cc.
  9840. * src/TorrentDownloadEngine.cc
  9841. (~TorrentDownloadEngine): Added deletion of torrentMan.
  9842. * src/main.cc
  9843. (clearRequest): Removed.
  9844. (handler): Added deletion of e.
  9845. (torrentHandler): Added deletion of te.
  9846. (main): Do not share splitter.
  9847. Use Deleter instead of clearRequest.
  9848. Deletion of classes were updated.
  9849. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. * src/main.cc (main): Fixed typo.
  9851. * src/message.h: Fixed typo.
  9852. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  9853. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. To add --select-file command-line option:
  9855. * src/Util.cc
  9856. (unfoldRange): New function.
  9857. (getNum): New function.
  9858. (unfoldSubRange): New function
  9859. * src/main.cc
  9860. (showUsage): Added help message.
  9861. (main): Added --select-file command-line option. Updated the layout of
  9862. file listing.
  9863. * src/common.h
  9864. (Integers): New definition.
  9865. * src/SocketCore.cc
  9866. (writeData): Removed timeout argument.
  9867. (readData): Removed timeout argument.
  9868. (peekData): Removed timeout argument.
  9869. * src/Socket.cc
  9870. (writeData): Removed timeout argument.
  9871. (readData): Removed timeout argument.
  9872. (peekData): Removed timeout argument.
  9873. * Release 0.4.1
  9874. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. To deploy upload rate based choking algorithm:
  9876. * src/PeerInteractionCommand.cc
  9877. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  9878. peer currently used.
  9879. (decideChoking): Deleted the choke/unchoke decision algorithm when
  9880. download completes. Simplified.
  9881. (receiveMessage): Updated.
  9882. * src/TorrentMan.h
  9883. (activePeers): New variable.
  9884. (addActivePeer): New function.
  9885. (getActivePeers): New function.
  9886. (deleteActivePeer): New function.
  9887. * src/TorrentMan.cc
  9888. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  9889. * src/PeerAbstractCommand.cc
  9890. (onAbort): Use peer->resetStatus().
  9891. * src/main.cc
  9892. (PeerChokeCommand.h): Included.
  9893. (main): Added the instance of ChokingCommand to the command queue.
  9894. * src/Peer.h
  9895. (amChoking): Renamed from amChocking
  9896. (chokingRequired): New variable.
  9897. (optUnchoking): New variable.
  9898. (deltaUpload): New variable.
  9899. (deltaDownload): New variable.
  9900. (addDeltaUpload): New function.
  9901. (resetDeltaUpload): New function.
  9902. (addDeltaDownload): New function.
  9903. (resetDeltaDownload): New function.
  9904. (addPeerUpload): Added a call to addDeltaUpload.
  9905. (addPeerDownload): Added a call to addDeltaDownload.
  9906. * src/Peer.cc
  9907. (shouldBeChoking): Renamed from shouldChoke.
  9908. (resetStatus): New function.
  9909. * src/PeerChokeCommand.h: New class.
  9910. * src/PeerChokeCommand.cc: New class.
  9911. To add lazy upload speed limiter:
  9912. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  9913. statistics calculation to TorrentDownloadEngine.
  9914. * src/TorrentConsoleDownloadEngine.cc
  9915. (sendStatistics): Renamed from printStatistics.
  9916. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  9917. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  9918. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  9919. * src/TorrentDownloadEngine.h: Added the variables for statistics
  9920. calculation.
  9921. (sendStatistics): New function as pure virtual function.
  9922. (getUploadSpeed): New function.
  9923. * src/TorrentDownloadEngine.cc
  9924. (initStatistics): New function.
  9925. (calculateSpeed): New function.
  9926. (calculateStatistics): New function.
  9927. * src/SendMessageQueue.h
  9928. (uploadLength): New variable.
  9929. (send): Added an argument.
  9930. (setUploadLimit): New function.
  9931. (getUploadLimit): New function.
  9932. * src/SendMessageQueue.cc
  9933. (send): Added upload speed limiter.
  9934. * src/prefs.h
  9935. (PREF_UPLOAD_LIMIT): New definition.
  9936. * src/PeerInteractionCommand.cc
  9937. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  9938. * src/main.cc
  9939. (main): Added --upload-limit option
  9940. For bug fixes:
  9941. * src/main.cc
  9942. (showUsage): Corrected --listen-port help
  9943. Other changes:
  9944. * src/TorrentMan.cc
  9945. (getPeer): Return nullPeer if connection is grather than
  9946. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  9947. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. To add some useful information to the exception message:
  9949. * src/SocketCore.cc : Updated messages.
  9950. * src/SegmentMan.cc :
  9951. * src/TorrentMan.cc : Updated messages.
  9952. * src/MultiDiskWriter.cc : Updated messages.
  9953. * src/Util.cc : Updated messages.
  9954. * src/AbstractDiskWriter.cc : Updated messages.
  9955. * src/PreAllocationDiskWriter.cc : Updated messages.
  9956. * src/message.cc : Added new messages. Updated some messages.
  9957. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  9958. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  9959. Updated threshold from 30 to 15.
  9960. * src/AbstractDiskWriter.h (filename): New variable.
  9961. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  9962. (createFile): Assigned filename.
  9963. * src/main.cc: Updated the help message for http-auth-scheme.
  9964. * Release 0.4.0
  9965. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9966. To add TrackerUpdateCommand with which replaces
  9967. CompactTrackerResponseProcessor:
  9968. * src/TrackerWatcherCommand.h (req): Removed.
  9969. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  9970. if the number of peer connections are less than 30.
  9971. * src/ByteArrayDiskWriter.h (readData): Implemented.
  9972. * src/SegmentMan.h (diskWriter): New function.
  9973. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  9974. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  9975. (main): Use TrackerUpdateCommand.
  9976. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  9977. (req): New variable.
  9978. (setTrackerResponseProcessor): Removed.
  9979. (getTrackerResponseProcessor): Removed.
  9980. (processTrackerResponse): Removed.
  9981. * src/DownloadEngine.h (diskWriter): Removed.
  9982. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  9983. to torrentMan->processTrackerResponse().
  9984. To add Util::expandBuffer:
  9985. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  9986. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  9987. * src/Util.h (expandBuffer): New function.
  9988. To fix the bug that causes segmentation fault when "-l ." is specified
  9989. in command-line option:
  9990. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  9991. (openFile): New function.
  9992. (closeFile): New function.
  9993. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  9994. (~SimpleLogger): Call closeFile();
  9995. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  9996. * src/main.cc (main): Added a check to see logger is configured
  9997. properly.
  9998. To enable HTTP authentication without specifying "--http-auth-scheme"
  9999. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10000. * src/HttpConnection.cc (createRequest): Send Authorization header
  10001. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10002. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10003. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10004. * src/Peer.cc (shouldChoke): Updated algorithm.
  10005. * src/message.h (EX_AUTH_FAILED): New definition.
  10006. (EX_FILE_OPEN): New definition.
  10007. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10008. if status == 401.
  10009. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10010. if req->isTorrent == true.
  10011. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10012. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10013. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10014. (createFile): Updated message.
  10015. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10016. To add a readout of estimated remaining time to normal HTTP/FTP
  10017. downloads:
  10018. * src/ConsoleDownloadEngine.h (startup): New variable.
  10019. (startupLength): New variable.
  10020. (isStartupLengthSet): New variable.
  10021. (avgSpeed): New variable.
  10022. (eta): New variable.
  10023. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10024. estimated remaining time.
  10025. (initStatistics): Initialized newly added variables.
  10026. (calculateStatistics): Calculate average speed and estimated remaining
  10027. time.
  10028. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10029. * src/TrackerDownloadCommand.h: Removed.
  10030. * src/TrackerDownloadCommand.cc: Removed.
  10031. * src/TrackerInitCommand.h: Removed.
  10032. * src/TrackerInitCommand.cc: Removed.
  10033. * src/TrackerUpdateCommand.h: Removed.
  10034. * src/TrackerUpdateCommand.cc: Removed.
  10035. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10036. url written in TrackerInitCommand was moved here. Do not create
  10037. tracker request command if torrentMan->trackers != 0.
  10038. * src/CompactTrackerResponseProcessor.h: New class.
  10039. * src/CompactTrackerResponseProcessor.cc: New class.
  10040. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10041. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10042. Decoupled TorrentDownloadEngine from this.
  10043. * src/SegmentMan.h (init): New function.
  10044. * src/SegmentMan.cc (init): New function.
  10045. * src/TorrentMan.h (responseProcessor): New variable.
  10046. (trackers): New variable.
  10047. (setTrackerResponseProcessor): New function.
  10048. (getTrackerResponseProcessor): New function.
  10049. (processTrackerResponse): New function.
  10050. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10051. (processTrackerResponse): New function.
  10052. * src/main.cc (main): Use ByteArrayDiskWriter and
  10053. CompactTrackerResponseProcessor.
  10054. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10055. processTrackerResponse().
  10056. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10057. readout.
  10058. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10059. which indicates download has completed.
  10060. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10061. (closeFile): fd >= 0, not fd > 0
  10062. * src/main.cc (main): Added short cut for show-files.
  10063. Added short cut for torrent-file.
  10064. Added new command-line option listen-port.
  10065. Updated i18n messages.
  10066. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. To add LogFactory which creates singleton logger:
  10068. * src/LogFactory.h: New class.
  10069. * src/LogFactory.cc: New class.
  10070. * src/Command.h (logger): New variable.
  10071. (Constructor): Use LogFactory.
  10072. * src/AbstractCommand.cc: Use Command::logger
  10073. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10074. Use LogFactory.
  10075. * src/SegmentSplitter.h : Made logger protected.
  10076. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10077. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10078. * src/DownloadEngine.h : Made logger protected.
  10079. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10080. * src/PeerInteractionCommand.cc : Use Command::logger.
  10081. * src/HttpResponseCommand.cc : Use Command::logger.
  10082. * src/SegmentMan.h : Made logger private.
  10083. * src/TorrentMan.h : Made logger private.
  10084. * src/TorrentMan.cc : Use LogFactory.
  10085. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10086. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10087. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10088. Use LogFactory.
  10089. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10090. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10091. Use LogFactory.
  10092. * src/DownloadCommand.cc : Use Command::logger.
  10093. * src/PeerAbstractCommand.cc : Use Command::logger.
  10094. * src/PeerListenCommand.cc : Use Command::logger.
  10095. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10096. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10097. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10098. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10099. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10100. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10101. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10102. Use LogFactory.
  10103. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10104. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10105. Use LogFactory.
  10106. * src/main.cc (main): Use LogFactory.
  10107. * src/DiskAdaptor.h (logger): New variable.
  10108. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10109. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10110. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10112. parameter to a tracker request.
  10113. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10114. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10115. * src/main.cc (setSignalHander): New function.
  10116. (main): Added a handler for SIGTERM.
  10117. (handler): Updated message.
  10118. (torrentHandler): Updated message.
  10119. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. * src/TorrentConsoleDownloadEngine.cc
  10121. (onPartialDownloadingCompletes): Renamed as
  10122. onSelectiveDownloadingCompletes.
  10123. (onSelectiveDownloadingCompletes): Updated message.
  10124. To add DiskAdaptor which abstract DiskWriter family:
  10125. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10126. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10127. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10128. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10129. MultiDiskAdaptor.h.
  10130. (readFileEntry): Changed its arguments.
  10131. (setup): setupDiskWriter is merged into this function.
  10132. (setupDiskWriter): Removed.
  10133. (setFileFilter): New function.
  10134. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10135. made in readFileEntry.
  10136. (getFilePath): Removed.
  10137. (getTempFilePath): Removed.
  10138. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10139. (fixFilename): Removed.
  10140. (copySingleFile): Removed.
  10141. (splitMultiFile): Removed.
  10142. (deleteTempFile): Removed.
  10143. (setFileEntriesToDownload): Removed.
  10144. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10145. (isSelectiveDownloadingMode): New function.
  10146. (setAllMultiFileRequestedState): Removed.
  10147. (finishPartialDownloadingMode): Renamed as
  10148. finishSelectiveDownloadingMode.
  10149. (finishSelectiveDownloadingMode): New function.
  10150. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10151. (getSelectedTotalLength): New function.
  10152. (onDownloadComplete): Use diskAdaptor.
  10153. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10154. (Range): Removed.
  10155. (setMultiFileEntries): Renamed as setFileEntries.
  10156. (setFileEntries): New function.
  10157. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  10158. (pieceLength): New variable.
  10159. * src/main.cc (printDownloadCompeleteMessage): New function.
  10160. (torrentHandler): Use diskAdaptor instead of diskWriter.
  10161. (main): Renamed torrent-show-files to show-files.
  10162. Rewritten file contents listing.
  10163. * src/TorrentMan.h (FileEntry): Removed.
  10164. (multiFileTopDir): Removed.
  10165. (multiFileEntries): Removed.
  10166. (diskWriter): Removed.
  10167. (diskAdaptor): New variable.
  10168. * src/DefaultDiskWriter.h (totalLength): New variable.
  10169. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  10170. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  10171. diskWriter.
  10172. * src/TorrentConsoleDownloadEngine.h
  10173. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  10174. (partialTotalLength): Renamed as selectedTotalLength.
  10175. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  10176. openExistingFile, otherwise call initAndOpenFile.
  10177. (closeFile): fd > 0, not fd != 0.
  10178. * src/DirectDiskAdaptor.h: New class.
  10179. * src/DirectDiskAdaptor.cc: New class.
  10180. * src/MultiDiskAdaptor.h: New class.
  10181. * src/MultiDiskAdaptor.cc: New class.
  10182. * src/CopyDiskAdaptor.h: New class.
  10183. * src/CopyDiskAdaptor.cc: New class.
  10184. * src/DiskAdaptor.h: New class.
  10185. * src/DiskAdaptor.cc: New class.
  10186. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  10187. (PREF_SHOW_FILES): New definition.
  10188. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. To add the ability to download multi torrent into respective files
  10190. directly:
  10191. * src/DiskWriter.h (openFile): New function.
  10192. (seek): Removed.
  10193. * src/MultiDiskWriter.h: New class.
  10194. * src/MultiDiskWriter.cc: New class.
  10195. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  10196. protected.
  10197. (openFile): New function.
  10198. * src/AbstractDiskWriter.cc (openFile): New function.
  10199. * src/prefs.h (V_FALSE): New definition.
  10200. (PREF_DIRECT_FILE_MAPPING): New definition.
  10201. * src/TorrentMan.h (setupDiskWriter): New function.
  10202. (setAllMultiFileRequestedState): New function.
  10203. (onDownloadComplete): New function.
  10204. * src/TorrentMan.cc : Included MultiDiskWriter.h
  10205. (setupDiskWriter): New function.
  10206. (getFilePath): Updated.
  10207. (getTempFilePath): Updated.
  10208. (getSegmentFilePath): Updated.
  10209. (fixFilename): Updated.
  10210. (deleteTempFile): Updated.
  10211. (setAllMultiFileRequestedState): New function.
  10212. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  10213. (finishPartialDownloadingMode): Reset requested flags.
  10214. (onDownloadComplete): New function.
  10215. * src/main.cc: Added --direct-file-mapping option.
  10216. Use TorrentMan::setupDiskWriter().
  10217. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  10218. onDownloadComplete().
  10219. To fix ETA bug:
  10220. * src/Util.h (difftvsec): New function.
  10221. * src/Util.cc (difftvsec): New function.
  10222. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  10223. type of "elapsed" instead of long long int.
  10224. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  10225. The updates of statistics takes place every 1 seconds.
  10226. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  10227. (calculateSpeed): Changed its argument signature.
  10228. * src/PeerMessage.cc (toString): Fixed message.
  10229. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10230. To print ETA:
  10231. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  10232. completion handling when dealing with
  10233. TorrentMan::isPartialDownloadingMode() == true.
  10234. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  10235. New function.
  10236. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  10237. (sessionDownloadLength): New variable.
  10238. (avgSpeed): New variable.
  10239. (eta): New variable.
  10240. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  10241. new variables: eta, avgSpeed, startup.
  10242. (calculateSpeed): Calculate average speed and ETA.
  10243. (printStatistics): Added ETA.
  10244. * src/Util.h (secfmt): New function.
  10245. * src/Util.cc (secfmt): New function.
  10246. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. To detect "keep alive" flooding:
  10248. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  10249. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  10250. variable: keepAliveCount.
  10251. (detectMessageFlooding): Added "keep alive" flooding detection.
  10252. (receiveMessage): Increase keepAliveCount when "keep alive" message
  10253. received.
  10254. To add the ability to download only specified files in multi-file
  10255. torrent:
  10256. * src/BitfieldMan.h (filterBitfield): New variable.
  10257. (filterEnabled): New variable.
  10258. (setFilterBit): New function.
  10259. (enableFilter): New function.
  10260. (disableFilter): New function.
  10261. (isFilterEnabled): New function.
  10262. (getFilteredTotalLength): New function.
  10263. (getCompletedLength): New function.
  10264. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  10265. filterBitfield, filterEnabled.
  10266. (CopyConstructor): Added filterBitfield and filterEnabled.
  10267. (operator==): Added filterBitfield and filterEnabled.
  10268. (Destructor): Added filterBitfield.
  10269. (getMissingIndex): Use filterBitfield.
  10270. (getMissingUnusedIndex): Use filterBitfield.
  10271. (getFirstMissingUnusedIndex): Use filterBitfield.
  10272. (getFirstMissingUnusedIndex): Use filterBitfield.
  10273. (getAllMissingIndexes): Use filterBitfield.
  10274. (countMissingBlock): Use filterBitfield.
  10275. (countBlock): Use filterBitfield.
  10276. (setBitInternal): Added new argument on.
  10277. (setUseBit): Use setBitInternal.
  10278. (unsetUseBit): Use setBitInternal.
  10279. (setBit): Use setBitInternal.
  10280. (unsetBit): Use setBitInternal.
  10281. (isAllBitSet): Use filterBitfield.
  10282. (setFilterBit): New function.
  10283. (addFilter): New function.
  10284. (enableFilter): New function.
  10285. (disableFilter): New function.
  10286. (clearFilter): New function.
  10287. (isFilterEnabled): New function.
  10288. (getFilteredTotalLength): New function.
  10289. (getCompletedLength): New function.
  10290. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  10291. Initalized newly added variables.
  10292. [FileEntry](offset): New variable.
  10293. [FileEntry](extracted): New variable.
  10294. [FileEntry](requested): New variable.
  10295. (readFileEntry): New function.
  10296. (option): New variable.
  10297. (splitMultiFile): Removed const qualifier.
  10298. (fixFilename): Removed const qualifier.
  10299. (readFileEntryFromMetaInfoFile): New function.
  10300. (finishPartialDownloadingMode): New function.
  10301. (isPartialDownloadingMode): New function.
  10302. (setFileEntriesToDownload): New function.
  10303. (getCompletedLength): New function.
  10304. (getPartialTotalLength): New function.
  10305. * src/TorrentMan.cc (readFileEntry): New function.
  10306. (setup): Use readFileEntry. If no-preallocation option is specified,
  10307. use DefaultDiskWriter.
  10308. (readFileEntryFromMetaInfoFile): New function.
  10309. (fixFilename): Removed const qualifier.
  10310. (splitMultiFile): Removed const qualifier.
  10311. (setFileEntriesToDownload): New function.
  10312. (isPartialDownloadingMode): New function.
  10313. (finishPartialDownloadingMode): New function.
  10314. (getCompletedLength): New function.
  10315. (getPartialTotalLength): New function.
  10316. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  10317. New variable.
  10318. (partialTotalLength): New variable.
  10319. (downloadLength): New variable.
  10320. (totalLength): New variable.
  10321. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  10322. Added log.
  10323. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  10324. partialTotalLength, downloadLength, totalLength.
  10325. (calculate): Calculate downloadLength and totalLength.
  10326. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  10327. * src/main.cc (addCommand): Changed argument signature.
  10328. (main): Added new variable: args. Added new option "torrent-show-files"
  10329. "no-preallocation". Usage is not updated yet.
  10330. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  10332. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Attempt to add the ability to listing file entries in a .torrent file.
  10334. This feature is not yet complete.
  10335. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  10336. * src/TorrentMan.cc (getMultiFileEntries): New function.
  10337. (getName): New function.
  10338. * src/TorrentMan.h (getMultiFileEntries): New function.
  10339. (getName): New function.
  10340. * src/main.cc (main): Use above 2 funtion.
  10341. * Release 0.3.2
  10342. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  10344. (detectMessageFlooding): Updated threshold value.
  10345. (checkLongTimePeerChoking): Updated timeout value.
  10346. (getNewPieceAndSendInterest): Added debug log.
  10347. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  10348. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  10349. (getPeer): Updated.
  10350. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  10351. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  10352. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  10353. is localhost.
  10354. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  10355. * src/PendingMessage.cc (processMessage): Not to send piece message
  10356. if peer is not interested in the pieces localhost has.
  10357. * src/Peer.cc (shouldChoke): Updated.
  10358. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  10359. * src/Util.cc (isPowerOf): New function.
  10360. * src/Util.h (isPowerOf): New function.
  10361. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  10362. whether or not it is power of 2.
  10363. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Added new class SendMessageQueue that includes PendingMessages and
  10365. RequestSlotMan.
  10366. * src/SendMessageQueue.h: New class.
  10367. * src/SendMessageQueue.cc: New class.
  10368. * src/PendingMessage.h: Added new member variable blockIndex and its
  10369. accessors.
  10370. (createRequestMessage): Updated.
  10371. * src/PendingMessage.cc (createRequestMessage): Updated.
  10372. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  10373. SendMessageQueue.
  10374. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  10375. (receiveMessage): Updated with SendMessageQueue.
  10376. (deletePendingPieceMessage): Removed.
  10377. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  10378. (sendInterest): Updated with SendMessageQueue.
  10379. (createRequestPendingMessage): Updated with SendMessageQueue.
  10380. (sendMessages): Updated with SendMessageQueue.
  10381. (onAbort): Updated with SendMessageQueue.
  10382. (keepAlive): Updated with SendMessageQueue.
  10383. (beforeSocketCheck): Updated SendMessageQueue.
  10384. * src/PeerInteractionCommand (sendMessages): Shuffle
  10385. missingBLockIndexes before using it.
  10386. Added its own timeout for peer connection.
  10387. * src/PeerAbstractCommand.h: Added member variable timeout and its
  10388. setter.
  10389. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  10390. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10391. Added setTimeout() call.
  10392. (executeInternal): Added setTimeout() call.
  10393. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  10394. Added timeout.
  10395. (isTimeoutDetected): Updated.
  10396. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  10397. option.
  10398. Added *simple* message flooding checker.
  10399. * src/PeerInteractionCommand.cc (executeInternal):
  10400. Added detectMessageFlooding() call.
  10401. (detectMessageFlooding): New function.
  10402. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  10403. (beforeSocketCheck): Added detectMessageFlooding() call.
  10404. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  10405. chokeUnchokeCount, haveCount, detectMessageFlooding().
  10406. Removed deletePendingPieceMessage(), getRequestSlot(),
  10407. deleteRequestSlot(), deleteAllRequestSlot().
  10408. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  10409. Added checkLongTimePeerChoking() call.
  10410. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  10411. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  10412. if duplicate == false.
  10413. The parameter "uploaded" and "downloaded" in the tracker request are
  10414. the size since the client sent the "started" event to the tracker.
  10415. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  10416. uploaded size to preDownloadedSize, preUploadedSize respectively.
  10417. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  10418. getSessionDownloadedSize(), getSessionUploadedSize().
  10419. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  10420. getSessionUploadedSize() instead of getDownloadedSize(),
  10421. getUploadedSize().
  10422. * src/PendingMessage.cc (processMessage): Do not send request message
  10423. if the peer is choking the client.
  10424. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  10425. less than interval.
  10426. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10427. * configure.in: Added gnutls support. Added several CPP macros.
  10428. * m4/openssl.m4: Added.
  10429. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  10430. readData(), peekData(). Added gnutls support.
  10431. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  10432. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  10433. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  10434. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10435. Instead, added a check for whether setup method has executed
  10436. successfully.
  10437. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  10438. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  10439. * src/Makefile.am: Updated.
  10440. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  10441. using whether OpenSSL or gcrypt, depending on the result of configure
  10442. script.
  10443. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  10444. messageDigest.h.
  10445. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  10446. * src/PeerListenCommand.cc: Added log about port binded successfully.
  10447. Fixed memory leak.
  10448. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  10449. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  10450. Removed instantiation of TrackerInitCommand. Instead,
  10451. TrackerWatcherCommand is instantiated and pushed to the command queue.
  10452. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  10453. ENABLE_SSL.
  10454. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  10455. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  10456. If a piece is already acquired by another command, delete the request
  10457. slots for the piece.
  10458. * src/TrackerUpdateCommand.cc (execute):
  10459. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  10460. Added a check whether peer list is null.
  10461. Fixed the bug that causes sending completed event to the tracker
  10462. several times.
  10463. * src/TrackerInitCommand.cc (execute):
  10464. Fixed the bug that causes sending completed event to the tracker
  10465. several times.
  10466. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  10467. by using messageDigest.h.
  10468. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10469. * PeerConnection.cc: Replaced log message "keep-alive" with
  10470. "keep alive".
  10471. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  10472. localhost long time.
  10473. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  10474. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  10475. at most 100 failure entry from the list. If with duplicate = false,
  10476. MAX_PEER_LIST is not checked.
  10477. * PeerListenCommand.cc: Fixed the argument order of log message.
  10478. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  10480. Added warn().
  10481. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  10482. Implemented warn().
  10483. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  10484. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10485. * Request.h: Added AFTER_COMPLETED event.
  10486. * TorrentDownloadEngine.cc: Prints "Download complete" message
  10487. instead of downloaded size and progress(%) after download completes.
  10488. * PeerInteractionCommand.cc: After download completes, sends unchoke
  10489. message to the peer if it is interested in what localhost has
  10490. downloaded.
  10491. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  10492. destination instead of just renaming it.
  10493. * TorrentMan.cc: Added deleteTempFile().
  10494. * PeerAbstractCommand.cc: do not stop execution after download
  10495. completes. This makes localhost a seeder.
  10496. * Util.{h,cc}: Added fileCopy().
  10497. * PeerListenCommand.cc: do not stop execution after download completes.
  10498. This makes localhost a seeder.
  10499. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  10500. Added TorrentMan::deleteTempFile() to torrentHandler.
  10501. Initialized the variable dir as ".".
  10502. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  10503. Deleted renameSingleFile().
  10504. Added copySingleFile(), deleteTempFile().
  10505. * DownloadEngine.h: Added virtual function afterEachIteration().
  10506. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  10507. in onEndOfRun() to afterEachIteration().
  10508. In onEndOfRun(), changed if condition to check whether filenameFixed is
  10509. true.
  10510. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  10511. In rangedFileCopy(), added try-catch block to properly close file
  10512. descriptors.
  10513. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  10514. Added afterEachIteration(), isFilenameFixed().
  10515. * Peer.cc: Changed choking strategy.
  10516. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  10517. * TrackerInitCommand.cc: Send completed event only once.
  10518. * DownloadEngine.cc: Added a call to afterEachIteration().
  10519. * TrackerUpdateCommand.cc: Do not stop execution after download
  10520. completes.
  10521. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  10522. connect the peers at most MAX_PEER_UPDATE when a peer list is
  10523. received from a tracker.
  10524. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  10525. Decreased the number of failure peers to delete to 0(just comment out
  10526. the line).
  10527. * Release 0.3.1
  10528. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10529. * PeerInteractionCommand.cc: added a call to
  10530. TorrentMan::unadvertisePiece in Destructor.
  10531. * PeerInteractionCommand.cc: make have message sent immediately
  10532. if the size of pending message queue is zero.
  10533. * TorrentMan.cc: set the maximum size of peer list to 250.
  10534. * TorrentMan.h: changed the container type of Peers and UsedPieces
  10535. to deque.
  10536. * Util.cc: fixed rangedFileCopy.
  10537. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  10538. to Constructor. Also, moved digest cleanup to Destructor.
  10539. * MetaFileUtil.cc: fixed memory leak
  10540. * replaced std::vector with std::deque.
  10541. * AbstractCommand.cc: casted timeout value to long long int.
  10542. * ChunkedEncoding.cc: fixed memory leak.
  10543. * PeerInteractionCommand.cc: casted timeout value to long long int.
  10544. * SleepCommand.cc: casted timeout value to long long int.
  10545. * Data.cc: fixed memory leak.
  10546. * Data.cc: fixed toLLInt().
  10547. * BitfieldMan.cc: fixed memory leak.
  10548. * TorrentMan.cc: initialized storeDir to ".".
  10549. * TorrentMan.cc: fixed memory leak.
  10550. * TorrentMan.cc: corrected file paths of splitted files.
  10551. * PeerAbstractCommand.cc: casted timeout to long long int.
  10552. * main.cc: added delete(req) and delete(te->diskWriter).
  10553. * RequestSlot.cc: casted timeout value to long long int.
  10554. * Request.cc: fixed memory leak.
  10555. * PendingMessage.cc: make HAVE messages sent only when peer does not
  10556. have the piece.
  10557. * Peer.{h,cc}: added hasPiece(int index).
  10558. * main.cc: corrected addCommand.
  10559. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10560. * BitTorrent protocol support added.
  10561. * Release 0.3.0
  10562. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10563. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  10564. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  10566. decoding did not work properly.
  10567. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. * DownloadEngine.h: included sys/time.h
  10569. * DownloadEngine.cc: remove sys/time.h
  10570. * Makefile.am (SUBDIRS): Add intl.
  10571. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  10572. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10573. * main.cc: correct help message for --http-auth-scheme.
  10574. * main.cc: changed e-mail address for bug reports.
  10575. * ja.po: added japanese translation.
  10576. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10577. * SimpleLogger.cc: flush log file instead of stdout.
  10578. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10579. * main.cc: Fixed command-line option: max-tries
  10580. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  10581. does not equal to seg.sp.
  10582. * DownloadCommand.cc: If EOF is got from the server and the total size
  10583. of file is not zero, then throw DlRetryEx.
  10584. * main.cc: Set the minium value of min-segment-size to 1024.
  10585. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  10586. fails because of a regression since 0.2.0 release.
  10587. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. * HttpConnection.cc:
  10589. * common.h: defined the user agent name as macro
  10590. * DownloadEngine.{h, cc}:
  10591. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  10592. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  10593. * main.cc: Download complete/abort message is now generated by main.
  10594. * Makefile.am (SUBDIRS): Add m4.
  10595. (ACLOCAL_AMFLAGS): New variable.
  10596. (EXTRA_DIST): New variable.
  10597. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  10598. * gettext: added gettext functionality
  10599. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. * AbstractCommand.cc:
  10601. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  10602. unregister its cuid from SegmentMan.
  10603. * DownloadEngine.cc: .aria2 file was written when a downloading
  10604. failed with errors.
  10605. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  10606. Added "User-Agent" header to CONNECT proxy request.
  10607. Fixed "Proxy-Authorization" header. Now proxy authorization works
  10608. properly.
  10609. * Logger.h:
  10610. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  10611. * ChunkedEncoding.cc: Added #include directive for strings.h
  10612. * Release 0.2.1
  10613. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. * Util.{h,cc}: added startsWith().
  10615. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  10616. Util::endsWith().
  10617. * SocketCore.cc: struct addrinfo is now zero-initialized.
  10618. * common.h: added #include directive of limit.h.
  10619. * DownloadEngine.cc: added #include directive of sys/time.h and
  10620. algorithm.
  10621. * Exception.h: added #include directive of stdio.h.
  10622. * AbstractCommand.h: added #include directive of sys/time.h.
  10623. * DownloadCommand.h: added #include directive of sys/time.h.
  10624. * *.h: added #include directive of common.h to all base classes.
  10625. subclasses' one was removed.
  10626. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  10627. does not define these macros.
  10628. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10629. * Release 0.2.0
  10630. * main.cc:
  10631. * HttpInitiateConnectionCommand.{h,cc}:
  10632. * prefs.h:
  10633. * HttpConnection.{h,cc}: added --http-proxy-method option.
  10634. We can now use GET command in http proxy.
  10635. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  10637. that splits slowest segment of SegmentMan::commands vector.
  10638. This is the default split algorithm of aria2.
  10639. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  10640. that splits first segment of SegmentMan::commands vector.
  10641. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  10642. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  10643. * Segment.h:
  10644. * SegmentMan.cc: Added speed field to Segment.h
  10645. * main.cc: -s option now affects all URLs in command-line arguemtns.
  10646. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  10647. * message.h: Change file size related %d to %lld.
  10648. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10649. * FtpInitiateConnectionCommand.{h,cc}:
  10650. * FtpNegotiationCommand.{h,cc}:
  10651. * FtpDownloadCommand.{h,cc}:
  10652. * FtpConnection.{h,cc}: Added FTP support
  10653. * SimpleLogger.cc: Log message now includes time information.
  10654. * main.cc: The value of --http-auth-scheme option is chagned from
  10655. 'BASIC' to 'basic'
  10656. * main.cc: Added --timeout command-line option.
  10657. * main.cc: Added --min-segment-size command-line option.
  10658. * main.cc: Added --max-retries command-line option.
  10659. * prefs.h: option string constants are now defined in prefs.h
  10660. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  10662. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  10663. with version 0.1.0's one.
  10664. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10665. * configure.in: Added --enable-ssl option to configure script.
  10666. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  10667. cannot permit absoluteURI as Request-URI.
  10668. * HttpConnection.cc: Added Referer support.
  10669. * main.cc: Added referer command-line option.
  10670. * main.cc: Added rety-wait command-line option.
  10671. * Exception.h: Fixed formating bug in Exception::setMsg()
  10672. * SocketCore.{h,cc}:
  10673. * Socket.{h, cc}:
  10674. * Request.cc:
  10675. * InitiateConnectionCommandFactory.cc:
  10676. * HttpRequestCommand.cc: Added HTTPS support.
  10677. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  10678. for SocketCore.
  10679. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  10680. size is wrong
  10681. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  10682. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  10683. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  10684. * Release 0.1.0