ChangeLog 416 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855
  1. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Removed _uploadLength and _downloadLength from PeerSessionResource
  3. and use PeerStat::_sessionUploadLength and
  4. PeerStat::_sessionDownloadLength.
  5. * src/PeerSessionResource.cc
  6. * src/PeerSessionResource.h
  7. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8. Fixed the bug that prefixLength of split bucket which doesn't include
  9. local node ID is incremented.
  10. * src/DHTBucket.cc
  11. * src/DHTBucket.h
  12. * test/DHTBucketTest.cc
  13. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14. Added cookies.sqlite to EXTRA_DIST
  15. * test/Makefile.am
  16. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17. Added Turkish translation. Updated French, German, Russian and
  18. Simplified Chinese translations. Thanks to all translators.
  19. * po/LINGUAS
  20. * po/de.po
  21. * po/fr.po
  22. * po/ru.po
  23. * po/tr.po
  24. * po/zh_CN.po
  25. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  26. Added deliminating text to the beginning of the log so that one can find
  27. where the log starts easily.
  28. * src/main.cc
  29. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  30. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  31. to fix compile error when async DNS is not enabled by configuration.
  32. * src/AbstractCommand.cc
  33. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  34. If establishing conneciton to a server is failed, then mark error on
  35. its ServerStat.
  36. Added the cause of error to log when error event occurred.
  37. Moved message string to message.h for translation.
  38. * src/AbstractCommand.cc
  39. * src/AbstractCommand.h
  40. * src/FtpNegotiationCommand.cc
  41. * src/HttpRequestCommand.cc
  42. * src/PeerAbstractCommand.cc
  43. * src/message.h
  44. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  45. Added the function to get error message from socket.
  46. * src/SocketCore.cc
  47. * src/SocketCore.h
  48. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  49. Added convenient method RequestGroupMan::getOrCreateServerStat()
  50. * src/RequestGroupMan.cc
  51. * src/RequestGroupMan.h
  52. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  53. If error event is received in epoll, then abort download immediately.
  54. * src/AbstractCommand.cc
  55. * src/Command.cc
  56. * src/Command.h
  57. * src/DownloadEngine.cc
  58. * src/PeerAbstractCommand.cc
  59. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  60. Added usage message for --uri-selector, --server-stat-of,
  61. --server-stat-in, --server-stat-timeout options.
  62. * src/HelpItemFactory.cc
  63. * src/usage_text.h
  64. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  65. Added upper limit of FTP response buffer. The current implementation
  66. uses 4096bytes as a limit.
  67. * src/FtpConnection.cc
  68. * src/FtpConnection.h
  69. * test/FtpConnectionTest.cc
  70. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  71. Use non-blocking socket for TCP communication to avoid possible
  72. blocking due to buffer full.
  73. * src/AbstractProxyRequestCommand.cc
  74. * src/FtpConnection.cc
  75. * src/FtpConnection.h
  76. * src/FtpNegotiationCommand.cc
  77. * src/FtpNegotiationCommand.h
  78. * src/HttpConnection.cc
  79. * src/HttpConnection.h
  80. * src/HttpRequestCommand.cc
  81. * src/InitiatorMSEHandshakeCommand.cc
  82. * src/InitiatorMSEHandshakeCommand.h
  83. * src/MSEHandshake.cc
  84. * src/MSEHandshake.h
  85. * src/Makefile.am
  86. * src/PeerConnection.cc
  87. * src/PeerConnection.h
  88. * src/PeerInteractionCommand.cc
  89. * src/PeerListenCommand.cc
  90. * src/ReceiverMSEHandshakeCommand.cc
  91. * src/ReceiverMSEHandshakeCommand.h
  92. * src/SocketBuffer.cc
  93. * src/SocketBuffer.h
  94. * src/SocketCore.cc
  95. * src/SocketCore.h
  96. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  97. Call setStatusRealtime() in constructor.
  98. * src/RealtimeCommand.cc
  99. * src/RealtimeCommand.h
  100. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  101. Call Download::setNoWait(true) to execute newly created command without
  102. a pause.
  103. * src/AbstractCommand.cc
  104. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  105. Added --max-file-not-found=NUM option. If aria2 receives `file not
  106. found' error from HTTP/FTP server NUM times without getting single
  107. bytes of data, then force the download to fail.
  108. Basically aria2 tris all URIs available. So if long list of URIs are
  109. specified in Metalink, then aria2 will take a long time to fail
  110. eventually if all URIs are outdated. This option eases this situation
  111. to limit the number of servers to try.
  112. * src/FtpNegotiationCommand.cc
  113. * src/HelpItemFactory.cc
  114. * src/HttpResponseCommand.cc
  115. * src/OptionHandlerFactory.cc
  116. * src/PeerStat.h
  117. * src/RequestGroup.cc
  118. * src/RequestGroup.h
  119. * src/SegmentMan.cc
  120. * src/SegmentMan.h
  121. * src/option_processing.cc
  122. * src/prefs.cc
  123. * src/prefs.h
  124. * src/usage_text.h
  125. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  126. Fixed the bug that bulkReceiveResponse() reads all received data as a
  127. response even if more than one response is in it.
  128. * src/FtpConnection.cc
  129. * src/FtpConnection.h
  130. * test/FtpConnectionTest.cc
  131. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  132. Merged from stable-0.15
  133. * m4/libcares.m4
  134. Use pkg-config
  135. * m4/sqlite3.m4
  136. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  137. Removed unnecessary if statement.
  138. * src/DefaultPieceStorage.cc (initPieceStorage)
  139. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  140. Added --connect-timeout option to specify connect timeout in seconds.
  141. This option is in effect for HTTP/FTP/proxy server. The timeout for
  142. connecting to BitTorrent peer is not controlled by this option.
  143. * src/AbstractProxyRequestCommand.cc
  144. * src/FtpNegotiationCommand.cc
  145. * src/HelpItemFactory.cc
  146. * src/HttpRequestCommand.cc
  147. * src/OptionHandlerFactory.cc
  148. * src/option_processing.cc
  149. * src/prefs.cc
  150. * src/prefs.h
  151. * src/usage_text.h
  152. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  153. Added help message for -R option.
  154. * src/HelpItemFactory.cc
  155. * src/usage_text.h
  156. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  157. Added the message that the time is in local time zone.
  158. * src/RequestGroup.cc
  159. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  160. Implemented the ability to get timestamp from remote FTP server using
  161. MDTM command described in RFC3659.
  162. * src/FtpConnection.cc
  163. * src/FtpConnection.h
  164. * src/FtpNegotiationCommand.cc
  165. * src/FtpNegotiationCommand.h
  166. * test/FtpConnectionTest.cc
  167. * test/Makefile.am
  168. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  169. Implemented the ability to get timestamp from remote HTTP server and
  170. apply it to local file. To enable this feature, --remote-time option
  171. is added. No usage text has been written yet.
  172. If several servers returns difference timestamp, then aria2 uses latest
  173. one.
  174. * src/CopyDiskAdaptor.cc
  175. * src/CopyDiskAdaptor.h
  176. * src/DirectDiskAdaptor.cc
  177. * src/DirectDiskAdaptor.h
  178. * src/DiskAdaptor.h
  179. * src/File.cc
  180. * src/File.h
  181. * src/HttpHeader.cc
  182. * src/HttpHeader.h
  183. * src/HttpResponse.cc
  184. * src/HttpResponse.h
  185. * src/HttpResponseCommand.cc
  186. * src/HttpResponseCommand.h
  187. * src/MultiDiskAdaptor.cc
  188. * src/MultiDiskAdaptor.h
  189. * src/OptionHandlerFactory.cc
  190. * src/RequestGroup.cc
  191. * src/RequestGroup.h
  192. * src/RequestGroupMan.cc
  193. * src/option_processing.cc
  194. * src/prefs.cc
  195. * src/prefs.h
  196. * test/CopyDiskAdaptorTest.cc
  197. * test/FileTest.cc
  198. * test/Makefile.am
  199. * test/Makefile.in
  200. * test/MultiDiskAdaptorTest.cc
  201. * test/TestUtil.cc
  202. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  203. Fixed the bug that DiskWriterEntry is not created when its
  204. FileEntry.isRequested() is false and it doesn't share a piece with
  205. other FileEntries that are requested. This bug causes segmentation fault
  206. in the end.
  207. * src/MultiDiskAdaptor.cc
  208. * src/MultiDiskAdaptor.h
  209. * src/MultiFileAllocationIterator.cc
  210. * test/MultiDiskAdaptorTest.cc
  211. * test/MultiFileAllocationIteratorTest.cc
  212. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  213. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  214. called if the number of file entries are greater than max open files.
  215. * src/AbstractSingleDiskAdaptor.cc
  216. * src/AbstractSingleDiskAdaptor.h
  217. * src/DiskAdaptor.h
  218. * src/MultiDiskAdaptor.cc
  219. * src/MultiDiskAdaptor.h
  220. * test/MultiDiskAdaptorTest.cc
  221. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  222. Added a constuctor that receives struct timeval.
  223. Added operator<.
  224. * src/TimeA2.cc
  225. * src/TimeA2.h
  226. * test/TimeTest.cc
  227. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  228. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  229. * src/CookieParser.cc
  230. * test/CookieParserTest.cc
  231. * test/HttpResponseTest.cc
  232. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  233. Implmented the functions to parse date.
  234. * src/TimeA2.cc
  235. * src/TimeA2.h
  236. * test/TimeTest.cc
  237. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  238. Added "Firefox3 Cookie" feature to FeatureConfig
  239. * src/FeatureConfig.cc
  240. * src/FeatureConfig.h
  241. * test/FeatureConfigTest.cc
  242. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  243. Bump up version number to 0.16.0b
  244. * configure.ac
  245. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  246. Use pkg-config if is is available.
  247. * m4/openssl.m4
  248. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  249. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  250. * src/BtAnnounce.h
  251. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  252. If an error occurred with a URI, remove identical URI from remaining
  253. URI list because it is likely that same error occurred in the end and it
  254. is waste of time.
  255. * src/AbstractCommand.cc
  256. * src/RequestGroup.cc
  257. * src/RequestGroup.h
  258. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  259. Removed wrong comment.
  260. * src/DefaultPeerStorage.cc
  261. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  262. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  263. Added return value of getpid() to argument of srand() to achieve more
  264. randomized value.
  265. * src/SimpleRandomizer.cc
  266. * src/SimpleRandomizer.h
  267. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  268. Contact tracker frequently when the number of connections are 0 and
  269. download is not finished yet.
  270. * src/ActivePeerConnectionCommand.cc
  271. * src/BtAnnounce.h
  272. * src/DefaultBtAnnounce.cc
  273. * src/DefaultBtAnnounce.h
  274. * test/MockBtAnnounce.h
  275. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  276. Moved threshold values to UTPexExtensionMessage.
  277. * src/DefaultBtInteractive.cc
  278. * src/Peer.cc
  279. * src/Peer.h
  280. * src/UTPexExtensionMessage.cc
  281. * src/UTPexExtensionMessage.h
  282. * test/UTPexExtensionMessageTest.cc
  283. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  284. Added _incoming member to Peer class and made it true if the peer
  285. initiated connection. Don't add those peer to UTPex message.
  286. If extended handshake is received, assign _incoming to false.
  287. * src/DefaultBtInteractive.cc
  288. * src/HandshakeExtensionMessage.cc
  289. * src/Peer.cc
  290. * src/Peer.h
  291. * src/PeerListenCommand.cc
  292. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  293. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  294. Encoding Decoder. Removed size threshold for turning off on the fly
  295. inflation because resulting file may or may not be inflated depending
  296. on the file size and I think it is not expected by users.
  297. This change fixes segmentation fault when Metalink file contains gzipped
  298. file and its filesize is provided.
  299. * src/HttpResponseCommand.cc
  300. * src/HttpResponseCommand.h
  301. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  302. Made Cookie immutable.
  303. * src/Cookie.cc
  304. * src/Cookie.h
  305. * src/CookieParser.cc
  306. * src/CookieParser.h
  307. * src/CookieStorage.cc
  308. * test/CookieParserTest.cc
  309. * test/CookieStorageTest.cc
  310. * test/NsCookieParserTest.cc
  311. * test/Sqlite3MozCookieParserTest.cc
  312. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  313. Removed CookieBox, CookieBoxFactory.
  314. * src/CookieBox.cc
  315. * src/CookieBox.h
  316. * src/CookieBoxFactory.cc
  317. * src/CookieBoxFactory.h
  318. * src/Makefile.am
  319. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  320. Use CookieStorage class instead of CookieBox class.
  321. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  322. * src/AbstractProxyRequestCommand.cc
  323. * src/CookieStorage.cc
  324. * src/DownloadEngine.cc
  325. * src/DownloadEngine.h
  326. * src/HttpConnection.cc
  327. * src/HttpConnection.h
  328. * src/HttpRequest.cc
  329. * src/HttpRequest.h
  330. * src/HttpRequestCommand.cc
  331. * src/HttpResponse.cc
  332. * src/HttpResponseCommand.cc
  333. * src/HttpSkipResponseCommand.cc
  334. * src/Makefile.am
  335. * src/MultiUrlRequestInfo.cc
  336. * src/Request.cc
  337. * src/Request.h
  338. * src/main.cc
  339. * test/AllTest.cc
  340. * test/CookieStorageTest.cc
  341. * test/CookieTest.cc
  342. * test/HttpRequestTest.cc
  343. * test/HttpResponseTest.cc
  344. * test/Makefile.am
  345. * test/NsCookieParserTest.cc
  346. * test/Sqlite3MozCookieParserTest.cc
  347. * test/nscookietest.txt
  348. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  349. Updated
  350. * test/Cookies.sqlite
  351. * test/nscookietest.txt
  352. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  353. Added tests for CookieStorage::load()
  354. * test/CookieStorageTest.cc
  355. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  356. Added CookieStorage class which is based on RFC2109 and manages cookies
  357. more strictly than CookieBox and CookieBoxFactory class.
  358. * src/CookieStorage.cc
  359. * src/CookieStorage.h
  360. * src/Cookie.cc
  361. * src/Cookie.h
  362. * test/CookieStorageTest.cc
  363. * test/CookieTest.cc
  364. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  365. Fixed the bug that commands are created more than the number of pieces.
  366. * src/RequestGroup.cc
  367. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  368. Fixed infinite loop bug in FTP when SIZE command failed.
  369. * src/FtpNegotiationCommand.cc
  370. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  371. Removed DirectDiskAdaptorTest.h
  372. * test/Makefile.am
  373. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  374. Fixed chunk checksum validation cannot detect trailing garbage data.
  375. BUG#2074141
  376. * src/AbstractSingleDiskAdaptor.cc
  377. * src/AbstractSingleDiskAdaptor.h
  378. * src/CheckIntegrityEntry.cc
  379. * src/CheckIntegrityEntry.h
  380. * src/DiskAdaptor.h
  381. * src/MultiDiskAdaptor.cc
  382. * src/MultiDiskAdaptor.h
  383. * src/RequestGroup.cc
  384. * test/DirectDiskAdaptorTest.cc
  385. * test/MultiDiskAdaptorTest.cc
  386. * test/TestUtil.cc
  387. * test/TestUtil.h
  388. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  389. Bump up version number of dht.dat file to 3. In version 3 format, time
  390. is stored in 64bit, network byte order.
  391. New build can load old format(version 2) but it saves the file in new
  392. format. It means once you used new build, your dht.dat becomes
  393. incompatible with older build.
  394. * src/DHTRoutingTableDeserializer.cc
  395. * src/DHTRoutingTableSerializer.cc
  396. * test/DHTRoutingTableSerializerTest.cc
  397. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  398. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  399. * test/Makefile.am
  400. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  401. Bump up version number of .aria2 control file to 0001.
  402. New aria2 can still load version 0000 file but it saves the file in
  403. version 0001 format. It means that new aria2 can resume download
  404. started by old aria2 but the opposite is not true.
  405. * src/DefaultBtProgressInfoFile.cc
  406. * src/DefaultBtProgressInfoFile.h
  407. * test/DefaultBtProgressInfoFileTest.cc
  408. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  409. Added ntoh64 and hton64 as inline functions.
  410. * src/Util.cc
  411. * test/UtilTest.cc
  412. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  413. Added sqlite3 depenency and Firefox3 cookie support.
  414. * README
  415. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  416. State that firefox3 cookie is supported explicitly in the usage.
  417. * src/usage_text.h
  418. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  419. Externalized message.
  420. * src/RequestGroupMan.cc
  421. * src/message.h
  422. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  423. Save temporary file first and rename to the destination on success.
  424. Added test cases.
  425. * src/RequestGroupMan.cc
  426. * test/RequestGroupManTest.cc
  427. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  428. Fixed the bug that the number of connected peer is exceeding the limit
  429. (55 by default) in seeding mode.
  430. Multiplied 0.8 to _maxUploadSpeedLimit.
  431. * src/ActivePeerConnectionCommand.cc
  432. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  433. Clear table item.
  434. * src/Dictionary.cc
  435. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  436. Fixed error handling of lseek.
  437. * src/AbstractDiskWriter.cc
  438. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  439. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  440. style cookie file.
  441. * src/usage_text.h
  442. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  443. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  444. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  445. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  446. * src/Util.cc
  447. * src/Util.h
  448. * src/CookieParser.cc
  449. * test/UtilTest.cc
  450. * test/CookieParserTest.cc
  451. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  452. Separate the implementation to load old mozilla format of cookie to
  453. NsCookieParser class.
  454. * src/CookieBoxFactory.cc
  455. * src/CookieBoxFactory.h
  456. * src/NsCookieParser.cc
  457. * src/NsCookieParser.h
  458. * test/NsCookieParserTest.cc
  459. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  460. Made parse() const
  461. * src/Sqlite3MozCookieParser.cc
  462. * src/Sqlite3MozCookieParser.h
  463. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  464. Added firefox3 cookie support based on the patch submitted by
  465. tizianomueller.
  466. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  467. this functionality.
  468. * configure.ac
  469. * m4/sqlite3.m4
  470. * src/CookieBoxFactory.cc
  471. * src/CookieBoxFactory.h
  472. * src/Makefile.am
  473. * src/Makefile.in
  474. * src/Sqlite3MozCookieParser.cc
  475. * src/Sqlite3MozCookieParser.h
  476. * src/main.cc
  477. * test/CookieBoxFactoryTest.cc
  478. * test/Makefile.am
  479. * test/Makefile.in
  480. * test/Sqlite3MozCookieParserTest.cc
  481. * test/badcookies.sqlite
  482. * test/cookies.sqlite
  483. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  484. Added Danish and Greek translations.
  485. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  486. Great thanks to all translators.
  487. * po/LINGUAS
  488. * po/el.po
  489. * po/da.po
  490. * po/es.po
  491. * po/ca.po
  492. * po/nn.po
  493. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  494. Fixed man page: --follow-bittorrent should be --follow-torrent
  495. * doc/aria2c.1.txt
  496. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  497. Fixed: numCommand is less than the value specified in -C option.
  498. * src/RequestGroup.cc
  499. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  500. Fixed occasional assertion failure in PieceSegment.
  501. Calling PieceStorage::getMissingPiece(size_t) was missing after
  502. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  503. creation of duplicate segments and one of the segment was finished then
  504. assertion failure was caused.
  505. * src/SegmentMan.cc
  506. * test/SegmentManTest.cc
  507. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  508. Added options to load/save the server's performance/status to a file
  509. and the timeout to drop their data.
  510. --server-stat-of=FILE specifies the file to which performance data
  511. is saved.
  512. --server-stat-if=FILE specifies the file to read previously saved
  513. by --server-stat-of option. Might be used with --uri-selector=feedback.
  514. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  515. TIMEOUT is specified in seconds and the default value is 24hours.
  516. * src/MultiUrlRequestInfo.cc
  517. * src/OptionHandlerFactory.cc
  518. * src/RequestGroupMan.cc
  519. * src/RequestGroupMan.h
  520. * src/ServerStatMan.cc
  521. * src/ServerStatMan.h
  522. * src/option_processing.cc
  523. * src/prefs.cc
  524. * src/prefs.h
  525. * test/ServerStatManTest.cc
  526. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  527. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  528. * src/ServerStatMan.cc
  529. * src/ServerStatMan.h
  530. * test/ServerStatManTest.cc
  531. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  532. Implemented ServerStatMan::load(...) function and its test case.
  533. * src/ServerStat.cc
  534. * src/ServerStat.h
  535. * src/ServerStatMan.cc
  536. * test/ServerStatManTest.cc
  537. * test/ServerStatTest.cc
  538. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  539. Use time_t instead of int32_t. Use int64_t where milli second is
  540. expected.
  541. * src/TimeA2.cc
  542. * src/TimeA2.h
  543. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  544. Implemented ServerStatMan::save(...) function and its test case.
  545. * src/ServerStat.cc
  546. * src/ServerStat.h
  547. * src/ServerStatMan.cc
  548. * src/ServerStatMan.h
  549. * test/ServerStatManTest.cc
  550. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  551. Now aria2 uses name attribute in Metalink as local filename in
  552. BitTorrent downloads. BUG#2033999
  553. * src/BtContext.h
  554. * src/BtDependency.cc
  555. * src/DefaultBtContext.cc
  556. * src/DefaultBtContext.h
  557. * src/SingleFileDownloadContext.cc
  558. * src/SingleFileDownloadContext.h
  559. * test/BtDependencyTest.cc
  560. * test/DefaultBtContextTest.cc
  561. * test/MockBtContext.h
  562. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  563. Added AC_C_BIGENDIAN
  564. * src/configure.ac
  565. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  566. Limited numCommand less than or equal to the number of piece.
  567. * src/RequestGroup.cc
  568. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  569. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  570. directive.
  571. * test/DefaultPieceStorageTest.cc
  572. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  573. Fixed memory leak in test code
  574. * test/AnnounceListTest.cc
  575. * test/DefaultPeerListProcessorTest.cc
  576. * test/DefaultPeerStorageTest.cc
  577. * test/MetaFileUtilTest.cc
  578. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  579. Fixed wrong argument passing to BitfieldMan::isBitSet()
  580. * src/DefaultPieceStorage.cc
  581. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  582. Initialized _directIOAllowed
  583. * src/MultiDiskAdaptor.cc
  584. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  585. Fixed memory leak
  586. * src/GZipDecoder.cc
  587. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  588. Fixed memory leak
  589. * src/MetalinkParserStateMachine.cc
  590. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  591. Fixed memory leak
  592. * src/Dictionary.cc
  593. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  594. Fixed memory leak
  595. * src/IteratableChunkChecksumValidator.h
  596. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  597. Fixed unmatched malloc/free.
  598. * src/IteratableChunkChecksumValidator.cc
  599. * src/IteratableChecksumValidator.cc
  600. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  601. Removed max chunk size check. This change fixes BUG#2040169
  602. * src/ChunkedDecoder.cc
  603. * src/ChunkedDecoder.h
  604. * test/ChunkedDecoderTest.cc
  605. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  606. Implemented download speed based URI selection algorithm.
  607. Introduced new option --uri-selector.
  608. If --uri-selector=feedback is given, aria2 uses download speed observed
  609. in the previous downloads and chooses fastest server in the URI list.
  610. Currently at most 10 URIs are considered to introduce randomeness for
  611. finding better servers. The speed is average download speed in the
  612. downloads.
  613. On the other hand, if --uri-selector=inorder is given, which is default,
  614. URI is tried in order in URI list.
  615. The usage text for the new option has not been written yet.
  616. * src/AbstractCommand.cc
  617. * src/DownloadCommand.cc
  618. * src/DownloadEngine.cc
  619. * src/DownloadEngineFactory.cc
  620. * src/InOrderURISelector.cc
  621. * src/InOrderURISelector.h
  622. * src/OptionHandlerFactory.cc
  623. * src/PeerStat.h
  624. * src/RequestGroup.cc
  625. * src/RequestGroup.h
  626. * src/RequestGroupMan.cc
  627. * src/RequestGroupMan.h
  628. * src/SegmentMan.cc
  629. * src/SegmentMan.h
  630. * src/ServerStat.cc
  631. * src/ServerStat.h
  632. * src/ServerStatMan.cc
  633. * src/ServerStatMan.h
  634. * src/ServerStatURISelector.cc
  635. * src/ServerStatURISelector.h
  636. * src/URISelector.h
  637. * src/option_processing.cc
  638. * src/prefs.cc
  639. * src/prefs.h
  640. * test/InOrderURISelectorTest.cc
  641. * test/RequestGroupManTest.cc
  642. * test/ServerStatManTest.cc
  643. * test/ServerStatURISelectorTest.cc
  644. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  645. * Release 0.15.1+2
  646. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  647. Bump up version number to 0.15.1+2
  648. * configure.ac
  649. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  650. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  651. * m4/aria2_arg.m4
  652. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  653. * Release 0.15.1+1
  654. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  655. Bump up version number to 0.15.1+1
  656. * configure.ac
  657. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  658. Fixed the bug that causes segmentaion fault when resuming download
  659. using metalink without size tag. Reproducible only using HTTP URI.
  660. * src/HttpResponseCommand.cc
  661. * src/FtpNegotiationCommand.cc
  662. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  663. * Release 0.15.1
  664. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  665. Updated Bulgarian and French translations, thanks to all translators.
  666. * po/bg.po
  667. * po/fr.po
  668. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  669. Bump up version number to 0.15.1
  670. * configure.ac
  671. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  672. Avoid repeated call of gettimeofday() when calculating speed.
  673. * src/SpeedCalc.cc
  674. * src/SpeedCalc.h
  675. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  676. Removed writable check when socket's send buffer is full in BitTorrent
  677. downloads to lower CPU usage.
  678. * src/PeerInteractionCommand.cc
  679. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  680. Fixed broken gzip inflation.
  681. Turn off segmented downloading if gzip content is smaller than or equal
  682. to 1MiB and inflate the data on the fly, because HTTP response header
  683. doesn't contain the length of inflated file we can't determin where
  684. the chunk of data should be written.
  685. On the other hand, if gzip content is larger than 1MB, then turn off
  686. on the fly inflation, because some servers returns "content-type: gzip"
  687. for *.tgz, *.gz files.
  688. * src/DownloadCommand.cc
  689. * src/HttpResponseCommand.cc
  690. * src/HttpResponseCommand.h
  691. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  692. Applied tizianomueller's patch to fix compile error.
  693. * test/BitfieldManTest.cc
  694. * test/BtRequestMessageTest.cc
  695. * test/DefaultBtContextTest.cc
  696. * test/DefaultDiskWriterTest.cc
  697. * test/DefaultPieceStorageTest.cc
  698. * test/HttpHeaderProcessorTest.cc
  699. * test/HttpResponseTest.cc
  700. * test/Metalink2RequestGroupTest.cc
  701. * test/MetalinkParserControllerTest.cc
  702. * test/MetalinkProcessorTest.cc
  703. * test/PeerSessionResourceTest.cc
  704. * test/UtilTest.cc
  705. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  706. * Release 0.15.0
  707. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  708. Reordered src files in POTFILES.in so that usage text appears first.
  709. * po/POTFILES.in
  710. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  711. Bump up version number to 0.15.0
  712. * configure.ac
  713. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  714. Added Bulgarian translation.
  715. Updated Catalan, Spanish, French and Japanese translations.
  716. Thanks to all translators.
  717. * po/LINGUAS
  718. * po/bg.po
  719. * po/ca.po
  720. * po/es.po
  721. * po/fr.po
  722. * po/ja.po
  723. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  724. Updated feature list. Added libz for dependency section.
  725. Added a description about unit testing using CppUnit.
  726. * README
  727. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  728. Added a test for libz. Quoted where it is necessary.
  729. * build_test.sh
  730. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  731. Added GZip to `Enabled Features' list.
  732. * src/FeatureConfig.cc
  733. * src/FeatureConfig.h
  734. * test/FeatureConfigTest.cc
  735. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  736. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  737. the transfer has not yet started.
  738. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  739. * src/SegmentMan.cc
  740. * src/SegmentMan.h
  741. * test/SegmentManTest.cc
  742. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  743. Cache last calculated average download/upload speed.
  744. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  745. cached value.
  746. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  747. * src/PeerStat.h
  748. * src/SpeedCalc.cc
  749. * src/SpeedCalc.h
  750. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  751. Call parseUrl directly.
  752. * src/Request.cc (resetUrl)
  753. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  754. Supported absolute/relative path in Location header field.
  755. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  756. * src/HttpHeader.cc
  757. * src/HttpHeader.h
  758. * src/HttpResponse.cc
  759. * src/HttpSkipResponseCommand.cc
  760. * src/Request.cc
  761. * test/HttpHeaderTest.cc
  762. * test/HttpResponseTest.cc
  763. * test/RequestTest.cc
  764. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  765. Changed help text for --load-cookie option.
  766. * doc/aria2c.1.txt
  767. * src/usage_text.h
  768. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  769. Regenerated test/Makefile.in to remove stale ChangeLog.
  770. * test/Makefile.in
  771. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  772. Updated po files.
  773. * po/aria2c.pot
  774. * po/*.po
  775. * po/*.gmo
  776. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  777. Bump up version number to 0.15.0b
  778. * configure.ac
  779. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  780. Externalize messages.
  781. * src/RequestGroupMan.cc
  782. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  783. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  784. Use File::exists() instead of File::isFile() to allow non-regular file
  785. such as block special files.
  786. * src/AbstractDiskWriter.cc
  787. * src/MultiDiskWriter.cc
  788. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  789. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  790. * src/gai_strerror.h
  791. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  792. Fixed compile error. Thanks gknauf for the patch.
  793. * src/asctime_r.c
  794. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  795. Included asctime_r.h from a2time.h.
  796. * src/a2time.h
  797. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  798. Added a message "aria2 doesn't verify signature" to log message when
  799. signature file is saved.
  800. * src/RequestGroupMan.cc
  801. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  802. Added the ability to save signature when download is completed if
  803. signature is available. The filename of signature file is the path to
  804. download file followed by ".sig". If it already exists, then signature
  805. will not be saved.
  806. * src/RequestGroupMan.cc
  807. * src/Signature.cc
  808. * test/SignatureTest.cc
  809. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  810. Updated the descriptions for --bt-seed-unverified.
  811. * doc/aria2c.1
  812. * doc/aria2c.1.html
  813. * doc/aria2c.1.txt
  814. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  815. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  816. that this is not going to verify files using piece hashes.
  817. * src/HelpItemFactory.cc
  818. * src/OptionHandlerFactory.cc
  819. * src/RequestGroup.cc
  820. * src/option_processing.cc
  821. * src/prefs.cc
  822. * src/prefs.h
  823. * src/usage_text.h
  824. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  825. Added the ability to retrieve signature from Metalink file.
  826. A retrieved signature is stored in Signature class and it is held by
  827. DownloadContext class. Note that aria2 doesn't verify signature.
  828. * src/DownloadContext.cc
  829. * src/DownloadContext.h
  830. * src/Makefile.am
  831. * src/Makefile.in
  832. * src/Metalink2RequestGroup.cc
  833. * src/MetalinkEntry.cc
  834. * src/MetalinkEntry.h
  835. * src/MetalinkParserController.cc
  836. * src/MetalinkParserController.h
  837. * src/MetalinkParserStateMachine.cc
  838. * src/MetalinkParserStateMachine.h
  839. * src/Signature.cc
  840. * src/Signature.h
  841. * src/SignatureMetalinkParserState.cc
  842. * src/SignatureMetalinkParserState.h
  843. * src/VerificationMetalinkParserState.cc
  844. * src/VerificationMetalinkParserState.h
  845. * test/Metalink2RequestGroupTest.cc
  846. * test/MetalinkParserControllerTest.cc
  847. * test/MetalinkProcessorTest.cc
  848. * test/test.xml
  849. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  850. Close DiskAdaptor after renaming file.
  851. * src/RequestGroup.cc
  852. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  853. Corrected indentation
  854. * src/DefaultBtProgressInfoFile.cc
  855. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  856. Moved the calls of std::ios::exceptions() inside of try-catch block
  857. because if an error occurred in constructor of std::fstream, then
  858. exception is thrown immediately when std::ios::exceptions() is called
  859. which results unhandled exception and aria2c aborts.
  860. * src/DefaultBtProgressInfoFile.cc
  861. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  862. Added the test for the previous change in DefaultBtContext.cc
  863. * test/DefaultBtContextTest.cc
  864. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  865. Fixed the bug that causes infinite loop when the number of pieces are
  866. fewer than allowed fast set size which is 10 by default.
  867. * src/DefaultBtContext.cc
  868. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  869. Updated the descriptions for -j, -s. Added --bt-seed.
  870. * doc/aria2c.1
  871. * doc/aria2c.1.html
  872. * doc/aria2c.1.txt
  873. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  874. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  875. aria2 seeds previously downloaded files without validating piece hashs.
  876. * src/HelpItemFactory.cc
  877. * src/OptionHandlerFactory.cc
  878. * src/RequestGroup.cc
  879. * src/option_processing.cc
  880. * src/prefs.cc
  881. * src/prefs.h
  882. * src/usage_text.h
  883. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  884. Updated DESCRIPTION of man page.
  885. * doc/aria2c.1
  886. * doc/aria2c.1.html
  887. * doc/aria2c.1.txt
  888. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  889. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  890. Don't define `struct addrinfo' when __sun is defined.
  891. * src/getaddrinfo.h
  892. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  893. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  894. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  895. second argument is of type `struct _stati64'. Otherwise it is defined as
  896. `struct stat'.
  897. * src/AbstractDiskWriter.cc
  898. * src/File.cc
  899. * src/File.h
  900. * src/a2io.h
  901. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  902. Fixed the compile error in hurd-i386
  903. See the original bug report:
  904. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  905. * src/a2io.h
  906. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  907. Code cleanup.
  908. * src/PeerAbstractCommand.cc
  909. * src/PeerAbstractCommand.h
  910. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  911. Removed TransferEncoding.
  912. * src/DownloadCommand.cc
  913. * src/DownloadCommand.h
  914. * src/HttpResponseCommand.cc
  915. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  916. Updated po files.
  917. * po/aria2c.pot
  918. * po/*.po
  919. * po/*.gmo
  920. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  921. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  922. * src/A2STR.cc
  923. * src/A2STR.h
  924. * src/ChunkedDecoder.cc
  925. * src/ChunkedDecoder.h
  926. * src/ChunkedEncoding.cc: Removed
  927. * src/ChunkedEncoding.h: Removed
  928. * src/DownloadCommand.cc
  929. * src/DownloadCommand.h
  930. * src/HttpDownloadCommand.cc
  931. * src/HttpResponse.cc
  932. * src/HttpResponse.h
  933. * src/HttpResponseCommand.cc
  934. * src/HttpSkipResponseCommand.cc
  935. * src/HttpSkipResponseCommand.h
  936. * src/Makefile.am
  937. * src/TransferEncoding.h: Removed
  938. * test/ChunkedDecoderTest.cc
  939. * test/ChunkedEncodingTest.cc: Removed
  940. * test/HttpResponseTest.cc
  941. * test/Makefile.am
  942. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  943. Use append instead of insert.
  944. * src/GZipDecoder.cc
  945. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  946. Updated doc
  947. * src/Decoder.h
  948. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  949. Updated usage text for -s option.
  950. * src/usage_text.h
  951. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  952. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  953. * src/Request.cc
  954. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  955. Cleaned up configure.ac.
  956. * configure.ac
  957. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  958. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  959. AC_ARG_ENABLE.
  960. * configure.ac
  961. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  962. Added gzip, deflate decoding support in HTTP using libz. If compiled
  963. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  964. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  965. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  966. fly and writes decoded data to a local disk.
  967. * README
  968. * README.html
  969. * configure.ac
  970. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  971. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  972. * m4/libz.m4
  973. * src/Decoder.h
  974. * src/DownloadCommand.cc
  975. * src/DownloadCommand.h
  976. * src/Exception.h
  977. * src/GZipDecoder.cc
  978. * src/GZipDecoder.h
  979. * src/HttpHeader.cc
  980. * src/HttpHeader.h
  981. * src/HttpRequest.cc
  982. * src/HttpRequest.h
  983. * src/HttpResponse.cc
  984. * src/HttpResponse.h
  985. * src/HttpResponseCommand.cc
  986. * src/Makefile.am
  987. * test/GZipDecoderTest.cc
  988. * test/HttpRequestTest.cc
  989. * test/HttpResponseTest.cc
  990. * test/Makefile.am
  991. * test/Makefile.in
  992. * test/gzip_decode_test.gz
  993. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  994. Clarified usage of -j option.
  995. * src/usage_text.h
  996. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  997. Disabled getting size from the response of RETR.
  998. If SIZE command failed, then disable resuming and segmented downloading.
  999. * src/FtpConnection.cc
  1000. * src/FtpConnection.h
  1001. * src/FtpNegotiationCommand.cc
  1002. * src/FtpNegotiationCommand.h
  1003. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1004. Use digits to find first byte of file size, which makes the intention
  1005. of the code clearer.
  1006. * src/FtpConnection.cc
  1007. Don't call validateTotalLength() when size is 0.
  1008. * src/FtpNegotiationCommand.cc
  1009. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1010. Updated po files.
  1011. * po/aria2c.pot
  1012. * po/*.gmo
  1013. * po/*.po
  1014. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1015. Clarified usage text for --split option.
  1016. * src/usage_text.h
  1017. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1018. Bump up version number to 0.15.0dev. "dev" means "development"
  1019. version, which means I started the development of the next release!
  1020. * src/configure.ac
  1021. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1022. If FTP server returns negative response with REST raw command and
  1023. requested range is not 0, throw exception. If requested range is 0,
  1024. continue download a file from 0 byte.
  1025. * src/FtpNegotiationCommand.cc
  1026. * src/FtpNegotiationCommand.h
  1027. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1028. Supported FTP server which don't recognize SIZE raw command.
  1029. If SIZE raw command is failed, aria2 will try to get file size
  1030. from the response of RETR raw command. If both attempts are failed,
  1031. then resuming and segmented downloading are disabled.
  1032. * src/FtpConnection.cc
  1033. * src/FtpConnection.h
  1034. * src/FtpNegotiationCommand.cc
  1035. * src/FtpNegotiationCommand.h
  1036. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1037. * Release 0.14.0+1
  1038. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1039. Bump up version number to 0.14.0+1
  1040. * src/configure.ac
  1041. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1042. Fixed the code that refers static member variable from non-static
  1043. context.
  1044. * src/DefaultPeerStorage.cc
  1045. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1046. * Release 0.14.0
  1047. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1048. Added build test script
  1049. * build_test.sh
  1050. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1051. Updated ja.po
  1052. * src/ja.po
  1053. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1054. Bump up version number to 0.14.0
  1055. * src/configure.ac
  1056. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1057. Updated ja.po and fr.po. Great thanks for french translators and
  1058. Sebastien WILLEMIJNS.
  1059. * po/fr.po
  1060. * po/ja.po
  1061. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1062. Added configure option to enable/disable epoll support.
  1063. * configure.ac
  1064. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1065. Updated man page.
  1066. * doc/aria2c.1.txt
  1067. * doc/aria2c.1
  1068. * doc/aria2c.1.html
  1069. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1070. Added missing default value '5' to the usage of --split option.
  1071. * src/HelpItemFactory.cc
  1072. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1073. Filled up pieces based on the number of missing blocks, rather than
  1074. simplay the number of piece * block length.
  1075. * src/BtRequestFactory.h
  1076. * src/DefaultBtInteractive.cc
  1077. * src/DefaultBtInteractive.h
  1078. * src/DefaultBtRequestFactory.cc
  1079. * src/DefaultBtRequestFactory.h
  1080. * src/Piece.cc
  1081. * src/Piece.h
  1082. * test/BitfieldManTest.cc
  1083. * test/DefaultBtRequestFactoryTest.cc
  1084. * test/MockBtRequestFactory.h
  1085. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1086. Made _epEvents a member variable.
  1087. * src/DownloadEngine.cc
  1088. * src/DownloadEngine.h
  1089. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1090. Cancel download if http redirect is bounded more than 20 times.
  1091. * src/AbstractCommand.cc
  1092. * src/HttpSkipResponseCommand.cc
  1093. * src/Request.cc
  1094. * src/Request.h
  1095. * test/RequestTest.cc
  1096. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1097. Fixed unhandled exception(removed keyword `new').
  1098. * src/SocketCore.cc (initEPOLL)
  1099. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1100. Removed visit(const MetaEntry*)
  1101. * src/MetaEntryVisitor.h:
  1102. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1103. and made them virtual.
  1104. * src/BencodeVisitor.h
  1105. * src/BencodeVisitor.cc
  1106. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1107. Updated po files.
  1108. * po/aria2c.pot
  1109. * po/*.po
  1110. * po/*.gmo
  1111. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1112. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1113. the number of socket to watch out.
  1114. * src/PeerInteractionCommand.cc
  1115. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1116. When there is not enough space in disk when writing a chunk of data,
  1117. aria2 now prints the message to the console to warn user and aborts
  1118. its download. Not all downloads are canceled because some downloads
  1119. may use another disk or partition. BUG#1640332
  1120. * src/AbstractDiskWriter.cc
  1121. * src/PeerAbstractCommand.cc
  1122. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1123. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1124. setHaltRequested(true) to cancel download.
  1125. * src/PeerInteractionCommand.h
  1126. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1127. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1128. socket from int to sock_t as sockets are unsigned in Windows.
  1129. For AsyncNameResolver, DownloadEngine, I did additional modification
  1130. for the portion of the code changed according to epoll support.
  1131. I defined sock_t in a2netcompat.h to use sock_t without including
  1132. SocketCore.h.
  1133. * src/AsyncNameResolver.cc
  1134. * src/AsyncNameResolver.h
  1135. * src/DownloadEngine.cc
  1136. * src/DownloadEngine.h
  1137. * src/SocketCore.cc
  1138. * src/SocketCore.h
  1139. * src/a2netcompat.h
  1140. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1141. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1142. changes in the patch were applied.
  1143. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1144. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1145. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1146. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1147. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1148. a2io.h and common.h were modified.
  1149. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1150. MinGW.
  1151. * src/common.h: Changed off_t to 64 bit in MinGW.
  1152. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1153. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1154. only a2netcompat.h is modified.
  1155. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1156. directives.
  1157. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1158. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1159. only gai_strerror.h is modified.
  1160. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1161. winsock errors in MinGW.
  1162. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1163. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1164. follow sources are applied.
  1165. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1166. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1167. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1168. I included locale.h from Platform.cc.
  1169. * src/main.cc: Moved common setup/teardown code to Platform class.
  1170. * test/AllTest.cc: Use Platform class.
  1171. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1172. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1173. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1174. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1175. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1176. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1177. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1178. aria2-0.13.2+1-mingw-2.patch.
  1179. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1180. systems which don't have termious.h. I moved the directive inside of
  1181. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1182. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1183. anyway.
  1184. * src/asctime_r.h
  1185. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1186. I added 2nd argument to the prototype declaration.
  1187. * src/StringFormat.cc: Get rid of vasprintf.
  1188. * src/getaddrinfo.h: Fixed constants.
  1189. * configure.ac: Added the check for asctime_r function.
  1190. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1191. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1192. Added writable test for Socket when the sending message is in progress.
  1193. Usually the sending message is piece message. Without wriable check,
  1194. upload latency is dropped to more than 1sec.
  1195. * src/PeerInteractionCommand.cc
  1196. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1197. Create only requested files and files which shares a piece with
  1198. requested file in multi-torrent downloads. Directory structures are
  1199. also created in the same rule.
  1200. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1201. DiskWriterEntry as in the previous implementation.
  1202. * src/MultiDiskWriter.cc
  1203. * src/MultiFileAllocationIterator.cc
  1204. * src/MultiFileAllocationIterator.h
  1205. * test/MultiFileAllocationIteratorTest.cc
  1206. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1207. Commented out -lprofiler
  1208. * src/Makefile.am
  1209. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1210. Bump up version number to 0.14.0b.
  1211. * src/configure.ac
  1212. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1213. Actively establish connection to peers in seeding, when peer cache
  1214. is not full and max upload speed limit is not reached.
  1215. * src/ActivePeerConnectionCommand.cc
  1216. * src/ActivePeerConnectionCommand.h
  1217. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1218. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1219. to make room more fleshy, recently found peers.
  1220. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1221. it.
  1222. * src/DefaultPeerStorage.cc
  1223. * test/DefaultPeerStorageTest.cc
  1224. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1225. Returns cached data only when the previous receiveHandshake() is called
  1226. with peek = true.
  1227. * src/PeerConnection.cc (receiveHandshake)
  1228. * src/PeerConnection.h (receiveHandshake)
  1229. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1230. Changed default value of -s option from 1 to 5.
  1231. Also max value of -s option is changed from 5 to 16.
  1232. * src/HelpItemFactory.cc
  1233. * src/OptionHandlerFactory.cc
  1234. * src/option_processing.cc
  1235. * src/usage_text.h
  1236. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1237. Changed -s options behavior. Now it means the number of connections
  1238. made simultaneously in each http/ftp download.
  1239. If 1 URL is specified, the behavior is the same with old implementation.
  1240. If -s N is given and more than N URLs are specified, first N URLs are
  1241. used and remaining URLs are used for backup. If less than N URLs are
  1242. specified, some of URLs are used more than once so that totally N
  1243. connections are made simultaneously.
  1244. * src/main.cc
  1245. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1246. Included missing iosfwd or ostream header.
  1247. * src/RequestGroupMan.cc
  1248. * src/TaggedItem.cc
  1249. * src/TaggedItem.h
  1250. * src/Util.cc
  1251. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1252. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  1253. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  1254. * src/HttpConnection.cc: Included missing sstream.
  1255. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1256. Added --bt-max-open-files option.
  1257. * src/DefaultPieceStorage.cc
  1258. * src/HelpItemFactory.cc
  1259. * src/MultiDiskAdaptor.cc
  1260. * src/MultiDiskAdaptor.h
  1261. * src/OptionHandlerFactory.cc
  1262. * src/option_processing.cc
  1263. * src/prefs.cc
  1264. * src/prefs.h
  1265. * src/usage_text.h
  1266. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1267. Fixed the bug that aria2 aborts when a path to a directory is given
  1268. in command-line.
  1269. * src/ProtocolDetector.cc
  1270. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1271. Limited the number files opened in each BitTorrent download. The default
  1272. value is 100. The option to change this value will be added.
  1273. * src/MultiDiskAdaptor.cc
  1274. * src/MultiDiskAdaptor.h
  1275. * src/MultiFileAllocationIterator.cc
  1276. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1277. Fixed the bug that HTTP downloads don't start with old libraries.
  1278. * src/HttpHeaderProcessor.cc
  1279. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1280. Use empty() instead of size() > 0.
  1281. * src/HttpConnection.cc
  1282. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1283. Drop connection if the incoming peer ID is the same with localhost's
  1284. one. The previous implementation drops connection when incoming peer's
  1285. IP address is the same with localhost's one.
  1286. * src/PeerListenCommand.cc
  1287. * src/DefaultBtInteractive.cc
  1288. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1289. Returns cached data without checking whether socket is readable
  1290. if the cache is available.
  1291. * src/PeerConnection.cc (receiveHandshake)
  1292. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1293. Included stdint.h
  1294. * src/common.h
  1295. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1296. Removed duplicate HAVE_GETTIMEOFDAY
  1297. * src/Makefile.am
  1298. * src/Makefile.in
  1299. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1300. Use interval as a minInterval when minInterval is not supplied.
  1301. * src/DefaultBtAnnounce.cc
  1302. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1303. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  1304. attempt is failed, then 2nd attempt get kicked out more quickly.
  1305. And it is now static const member of DefaultBtAnnounce.
  1306. * src/DefaultBtAnnounce.h
  1307. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1308. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  1309. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  1310. * src/ActivePeerConnectionCommand.cc
  1311. * src/BtConstants.h
  1312. * src/BtRuntime.h
  1313. * src/DHTGetPeersCommand.cc
  1314. * src/DefaultBtAnnounce.cc
  1315. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  1316. BtRuntime::MAX_PEERS.
  1317. * src/DefaultPeerStorage.h
  1318. * src/InitiatorMSEHandshakeCommand.cc
  1319. * src/PeerInitiateConnectionCommand.cc
  1320. * src/PeerInteractionCommand.cc
  1321. * src/PeerReceiveHandshakeCommand.cc
  1322. * src/TrackerWatcherCommand.cc
  1323. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1324. Always Connect to _numNewConnection
  1325. * src/ActivePeerConnectionCommand.cc
  1326. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1327. Made `begin' unsigned int.
  1328. * src/GrowSegment.h
  1329. * src/Piece.cc
  1330. * src/Piece.h
  1331. * src/PiecedSegment.cc
  1332. * src/PiecedSegment.h
  1333. * src/Segment.h
  1334. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1335. Calculate piece hash when data is arrived if the data is arrived in
  1336. order. This removes additional read operation for hash calculation.
  1337. If the data is arrived in out of order, the hash is calucated when the
  1338. piece is completed. This is the same behavior as the old implementation.
  1339. * src/BtPieceMessage.cc
  1340. * src/DefaultBtProgressInfoFile.cc
  1341. * src/DefaultPieceStorage.cc
  1342. * src/DownloadCommand.cc
  1343. * src/DownloadCommand.h
  1344. * src/DownloadEngine.cc
  1345. * src/GrowSegment.cc
  1346. * src/GrowSegment.h
  1347. * src/Piece.cc
  1348. * src/Piece.h
  1349. * src/PiecedSegment.cc
  1350. * src/PiecedSegment.h
  1351. * src/Segment.h
  1352. * test/PieceTest.cc
  1353. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1354. Try to keep the ordering of outgoing piece message.
  1355. * src/DefaultBtMessageDispatcher.cc
  1356. (DefaultBtMessageDispatcher::sendMessages)
  1357. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1358. Fixed busy loop when error/hup epoll events occur.
  1359. * src/AbstractCommand.cc
  1360. * src/PeerAbstractCommand.cc
  1361. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1362. Added --bt-request-peer-speed-limit option, which was a constant
  1363. SLOW_SPEED_THRESHOLD.
  1364. * src/ActivePeerConnectionCommand.cc
  1365. * src/ActivePeerConnectionCommand.h
  1366. * src/BtConstants.h
  1367. * src/HelpItemFactory.cc
  1368. * src/OptionHandlerFactory.cc
  1369. * src/PeerReceiveHandshakeCommand.cc
  1370. * src/option_processing.cc
  1371. * src/prefs.cc
  1372. * src/prefs.h
  1373. * src/usage_text.h
  1374. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1375. Removed repeated call of getTopDirPath(). Instead, call it once and
  1376. cache the result.
  1377. * src/MultiDiskAdaptor.cc
  1378. * src/MultiDiskAdaptor.h
  1379. (mkdir, openFile, initAndOpenFile, openExistingFile)
  1380. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1381. Fixed compile error on debian etch.
  1382. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  1383. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  1384. it is undefined.
  1385. * src/Util.cc (ULLONG_MAX)
  1386. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1387. Added epoll support. Use epoll if it is available. If not, use select.
  1388. When async dns is enabled in compile time, epoll support is enabled
  1389. only when aria2 is built with c-ares. This condition statement is
  1390. defined in a2io.h.
  1391. Currently aria2 supports both c-ares and ares, but ares is maintained
  1392. for quite a while and debian already has c-ares package, ares support
  1393. will be dropped in the future version.
  1394. * configure.ac
  1395. * src/AbstractCommand.cc
  1396. * src/AsyncNameResolver.cc
  1397. * src/AsyncNameResolver.h
  1398. * src/Command.cc
  1399. * src/Command.h
  1400. * src/DownloadEngine.cc
  1401. * src/DownloadEngine.h
  1402. * src/PeerAbstractCommand.cc
  1403. * src/SocketCore.cc
  1404. * src/SocketCore.h
  1405. * src/a2io.h
  1406. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1407. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  1408. directive.
  1409. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1410. Do not do write operation to /dev/null file.
  1411. * src/LogFactory.cc
  1412. * src/SimpleLogger.cc
  1413. Replaced vasprintf with vsnprintf
  1414. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1415. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1416. * src/BtRequestMessage.cc
  1417. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  1418. for segmentation fault caused by previous commit.
  1419. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1420. Reduced the usage of gettimeofday().
  1421. * src/DefaultBtMessageDispatcher.cc
  1422. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  1423. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1424. * src/RequestSlot.cc
  1425. * src/RequestSlot.h
  1426. (RequestSlot::isTimeout)
  1427. Made RequestSlot have a reference to Piece object to avoid find
  1428. Piece repeatedly.
  1429. * src/DefaultBtMessageDispatcher.cc
  1430. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1431. * src/RequestSlot.cc
  1432. * src/RequestSlot.h
  1433. (RequestSlot::getPiece)
  1434. * test/DefaultBtMessageDispatcherTest.cc
  1435. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1436. * src/TimeA2.cc
  1437. * src/TimeA2.h
  1438. (Time::difference): New function.
  1439. (Time::elapsed): Done optimization.
  1440. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1441. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  1442. directive.
  1443. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1444. * src/option_processing.cc: Added missing `defined' keyword to #if
  1445. directive.
  1446. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1447. Bump up version number to 0.13.2+1
  1448. * src/configure.ac
  1449. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1450. Refactored broken outstanding piece handling.
  1451. * src/DefaultPieceStorage.cc
  1452. * src/DefaultPieceStorage.h
  1453. * src/Piece.cc
  1454. * src/Piece.h
  1455. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1456. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  1457. name collision of static variable and predefined macro.
  1458. * src/BtContext.cc
  1459. * src/BtContext.h
  1460. * src/CookieBoxFactory.cc
  1461. * src/CookieBoxFactory.h
  1462. * src/CookieParser.cc
  1463. * src/CookieParser.h
  1464. * src/DefaultBtContext.cc
  1465. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1466. * src/RequestGroup.cc
  1467. (RequestGroup::createInitialCommand): Use empty() instead of size().
  1468. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1469. * Release 0.13.2
  1470. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1471. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  1472. * po/fr.po
  1473. * po/ja.po
  1474. * po/aria2c.pot
  1475. * po/*.po
  1476. * po/*.gmo
  1477. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1478. Bump up version number to 0.13.2
  1479. * src/configure.ac
  1480. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1481. Refactord.
  1482. * src/RequestGroupMan.cc
  1483. (removeStoppedGroup)
  1484. (fillRequestGroupFromReserver)
  1485. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1486. Fixed compile error on Ubuntu.
  1487. * src/BtPieceMessage.cc
  1488. * src/MessageDigestHelper.cc
  1489. * src/Util.cc
  1490. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1491. Fixed compile error when configured with --disable-bittorrent
  1492. * test/DownloadHandlerFactoryTest.cc
  1493. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1494. Done make update-po
  1495. * po/aria2c.pot
  1496. * po/*.po
  1497. * po/*.gmo
  1498. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1499. Bump up version number to 0.13.2rc.
  1500. * src/configure.ac
  1501. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1502. Made option name bold. Updated SYNOPSIS to make it more readable.
  1503. * doc/aria2c.1.txt
  1504. * doc/aria2c.1
  1505. * doc/aria2c.1.html
  1506. * src/version_usage.cc
  1507. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1508. Refactored. Use std::string instead of size and char*.
  1509. * Data.cc
  1510. * Data.h
  1511. * test/Data.cc
  1512. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1513. Added trimSelf(). Rewritten trim() to use trimSelf().
  1514. * Util.cc
  1515. * Util.h
  1516. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1517. * src/ChunkChecksum.h (getChecksum): Return const reference.
  1518. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1519. Fixed compile error when configured with --disable-metalink.
  1520. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  1521. * test/FeatureConfigTest.cc
  1522. * test/DownloadHandlerFactoryTest.cc
  1523. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1524. Fixed compile error when configured with --without-gnutls
  1525. --without-openssl
  1526. * src/main.cc
  1527. * test/DefaultBtProgressInfoFileTest.cc
  1528. * test/SegmentManTest.cc
  1529. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1530. Fixed compile error with OpenSSL.
  1531. * src/IteratableChunkChecksumValidator.cc
  1532. * src/LibsslDHKeyExchange.h
  1533. * src/MessageDigestHelper.cc
  1534. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1535. Revert the default value of --max-concurrent-downloads to 5.
  1536. Revert the default value of --metalink-servers to 5.
  1537. Man pages was also updated.
  1538. * src/option_processing.cc
  1539. * doc/aria2c.1.txt
  1540. * doc/aria2c.1.html
  1541. * doc/aria2c.1
  1542. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1543. Returns const reference:
  1544. DownloadContext::getPieceHash, DownloadContext::getName,
  1545. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  1546. BtContext::getInfoHashAsString,
  1547. * src/BtContext.h
  1548. * src/DefaultBtContext.cc
  1549. * src/DefaultBtContext.h
  1550. * src/DownloadContext.h
  1551. * src/SingleFileDownloadContext.h
  1552. * test/MockBtContext.h
  1553. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1554. * src/RequestGroup.h (getDir): Removed.
  1555. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1556. Returns const reference. The internal urlencode function was optimized
  1557. a little bit.
  1558. * src/Request.cc
  1559. * src/Request.h
  1560. * src/HttpRequest.cc
  1561. * src/HttpRequest.h
  1562. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1563. Defined option name and possible values as std::string to reduce
  1564. temporary string object creation in runtime.
  1565. * src/HelpItemFactory.cc
  1566. * src/LogFactory.cc
  1567. * src/Option.cc
  1568. * src/OptionHandlerFactory.cc
  1569. * src/option_processing.cc
  1570. * src/prefs.cc
  1571. * src/prefs.h
  1572. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1573. Return const reference.
  1574. * src/DownloadHandlerConstants.cc
  1575. * src/DownloadHandlerConstants.h
  1576. (getMetalinkExtensions)
  1577. (getMetalinkContentTypes)
  1578. (getBtExtensions)
  1579. (getBtContentTypes)
  1580. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1581. * src/HttpHeader.cc (get): Rewritten.
  1582. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1583. Make HttpHeader::getFirst(...) return const reference.
  1584. * src/HttpHeader.cc
  1585. * src/HttpHeader.h
  1586. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1587. Use Option::getAsBool(...) instead of Option::get(...) and compare
  1588. it with V_TRUE.
  1589. * src/DefaultPieceStorage.cc
  1590. * src/DownloadCommand.cc
  1591. * src/FtpNegotiationCommand.cc
  1592. * src/HttpRequest.cc
  1593. * src/InitiateConnectionCommand.cc
  1594. * src/RequestGroup.cc
  1595. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1596. Made Option::get(...) return const reference of std::string.
  1597. * src/Option.cc
  1598. * src/Option.h
  1599. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1600. Replaced std:copy with insert.
  1601. * src/DefaultBtMessageDispatcher.cc
  1602. * src/DefaultPieceStorage.cc
  1603. * src/DownloadEngineFactory.cc
  1604. * src/RequestGroup.cc
  1605. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1606. Included SocketCore.h to fix compiler warning.
  1607. * src/InitiateConnectionCommand.cc
  1608. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1609. Put piece selection strategy algorithm to RarestPieceSelector class,
  1610. Added a switch to choose whether randomized selection so that unit
  1611. tests emit same results in, possibly, win32.
  1612. * src/DefaultPieceStorage.cc
  1613. * src/DefaultPieceStorage.h
  1614. * src/RarestPieceSelector.cc
  1615. * src/RarestPieceSelector.h
  1616. * test/DefaultPieceStorageTest.cc
  1617. * test/RarestPieceSelectorTest.cc
  1618. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1619. Don't pool connection if HTTP proxy is enabled.
  1620. * src/FtpFinishDownloadCommand.cc
  1621. * src/FtpNegotiationCommand.cc
  1622. * src/HttpSkipResponseCommand.cc
  1623. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1624. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  1625. * src/AbstractCommand.cc
  1626. * src/AbstractCommand.h
  1627. * src/ActivePeerConnectionCommand.cc
  1628. * src/FtpInitiateConnectionCommand.cc
  1629. * src/HttpInitiateConnectionCommand.cc
  1630. * src/InitiateConnectionCommandFactory.cc
  1631. * src/PeerAbstractCommand.cc
  1632. * src/PeerAbstractCommand.h
  1633. * src/PeerInitiateConnectionCommand.cc
  1634. * src/TrackerWatcherCommand.cc
  1635. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1636. Sort RequestSlot in ascending order and manipulate them using
  1637. lower_bound.
  1638. * src/DefaultBtMessageDispatcher.cc
  1639. * src/DefaultBtMessageDispatcher.h
  1640. (getMessageQueue): Added const qualifier.
  1641. (getRequestSlots): Added const qualifier.
  1642. (sendMessages): Use empty() instead of size().
  1643. (doCancelSendingPieceAction): Use HandleEvent object.
  1644. (doAbortOutstandingRequestAction): Rewritten.
  1645. (doChokedAction): Rewritten.
  1646. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  1647. (isOutstandingRequest): Rewritten.
  1648. (getOutstandingRequest): Rewritten.
  1649. (removeOutstandingRequest): Rewritten.
  1650. (addOutstandingRequest): Rewritten.
  1651. * src/RequestSlot.cc
  1652. * src/RequestSlot.h
  1653. (operator=): Rewritten.
  1654. (operator!=): New function.
  1655. (operator<): New function.
  1656. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1657. * src/DefaultBtRequestFactory.cc
  1658. (doChokedAction): Rewritten.
  1659. (removeCompletedPiece): Rewritten.
  1660. (removeTargetPiece): Rewritten.
  1661. (createRequestMessages): Added the debug log.
  1662. (createRequestMessagesOnEndGame: Added the debug log.
  1663. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1664. Added the debug log message.
  1665. * src/BtPieceMessage.cc (doReceivedAction)
  1666. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1667. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  1668. used lower_bound to process them rather than linear search.
  1669. * src/DHTPeerAnnounceStorage.cc
  1670. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1671. Call subtractPieceStats from ~PeerInteractionCommand only when the
  1672. peer has at least one completed piece.
  1673. * src/Peer.cc
  1674. * src/Peer.h
  1675. * src/PeerInteractionCommand.cc
  1676. * src/PeerSessionResource.cc
  1677. * src/PeerSessionResource.h
  1678. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1679. Removed unnecessary sorting
  1680. * src/DefaultPieceStorage (DefaultPieceStorage)
  1681. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1682. Rewritten the portion of the code that mangaes allowed fast indexes.
  1683. * src/PeerSessionResource.cc
  1684. * src/PeerSessionResource.h
  1685. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1686. Removed the invalid string including '\r' from ru.po and
  1687. did make update-po.
  1688. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1689. Added --log-level and --summary-interval to man page.
  1690. * doc/aria2c.1.txt
  1691. * doc/aria2c.1.html
  1692. * doc/aria2c.1
  1693. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1694. Added --log-level option to specify log level. Log messages under
  1695. the specified level are not output. Default value is `debug'.
  1696. * src/HelpItemFactory.cc
  1697. * src/LogFactory.cc
  1698. * src/LogFactory.h
  1699. * src/Logger.h
  1700. * src/OptionHandlerFactory.cc
  1701. * src/SimpleLogger.cc
  1702. * src/SimpleLogger.h
  1703. * src/main.cc
  1704. * src/option_processing.cc
  1705. * src/prefs.h
  1706. * src/usage_text.h
  1707. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1708. Print download progress summary of all parallel downloads in specified
  1709. interval, default 60 secs. While aria2 could download several files
  1710. in parallel (see -j option), it displayed just first download progress,
  1711. and the other downloads are hidden from the users. This new feature
  1712. prints all downloads currently in-progress to the console so that you
  1713. can check the status of all downloads. The interval can be adjusted
  1714. by --summary-interval option.
  1715. The progress readout is now cut so that all fits in the one line of
  1716. console.
  1717. * src/ConsoleStatCalc.cc
  1718. * src/ConsoleStatCalc.h
  1719. * src/HelpItemFactory.cc
  1720. * src/OptionHandlerFactory.cc
  1721. * src/RequestGroupMan.cc
  1722. * src/RequestGroupMan.h
  1723. * src/main.cc
  1724. * src/option_processing.cc
  1725. * src/prefs.h
  1726. * src/usage_text.h
  1727. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1728. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  1729. * src/DownloadEngine.cc (DownloadEngine)
  1730. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1731. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  1732. defined.
  1733. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  1734. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1735. Use erase+lower_bound+insert instead of sort.
  1736. * src/DefaultPieceStorage.cc (addPieceStats)
  1737. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1738. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  1739. * src/A2STR.cc
  1740. * src/A2STR.h
  1741. * src/OptionParser.cc (parse)
  1742. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1743. Defined fake filename `[tracker.announce]' as static const std::string.
  1744. * src/TrackerWatcherCommand.cc (createRequestGroup)
  1745. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1746. Defined default filename `index.html' as static const std::string
  1747. * src/SingleFileDownloadContext.cc
  1748. * src/SingleFileDownloadContext.h
  1749. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1750. Defined "[MEMORY]" as static const std::string.
  1751. * src/MemoryBufferPreDownloadHandler.cc (execute)
  1752. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1753. Defined control file's version number as static const std::string.
  1754. * src/DefaultBtProgressInfoFile.cc
  1755. * src/DefaultBtProgressInfoFile.h
  1756. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1757. Use Request::METHOD_GET
  1758. * src/RequestGroup.cc (createNextCommandWithAdj)
  1759. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1760. Defined "OK", "ERR", "INPR" as static const std::string
  1761. * src/RequestGroupMan.cc (showDownloadResults)
  1762. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1763. Defined default client used in extended handshake as static const
  1764. std::string
  1765. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  1766. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1767. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  1768. * src/HttpConnection.cc (eraseConfidentialInfo)
  1769. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1770. Defined default ftp user and password as static const std::string
  1771. * src/AuthConfigFactory.cc
  1772. * src/AuthConfigFactory.h
  1773. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1774. Defined strings used in netrc as static const std::string
  1775. * src/Netrc.cc
  1776. * src/Netrc.h
  1777. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1778. Defined HTTP status as static const std::string
  1779. * src/AbstractProxyResponseCommand.cc
  1780. * src/HttpHeader.cc
  1781. * src/HttpHeader.h
  1782. * src/HttpResponse.cc
  1783. * src/HttpResponseCommand.cc
  1784. * src/HttpSkipResponseCommand.cc
  1785. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1786. Defined "\r\n", "A", "I" as static const std::string
  1787. * src/A2STR.cc
  1788. * src/A2STR.h
  1789. * src/FtpConnection.cc
  1790. * src/FtpConnection.h
  1791. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1792. Added COLON_C(".") and used it in Request::parseUrl()
  1793. * src/A2STR.cc
  1794. * src/A2STR.h
  1795. * src/Request.cc (parseUrl)
  1796. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1797. Changed the type of padName from `const std::string&' to `const char*'.
  1798. * src/MSEHandshake.cc (verifyPadLength)
  1799. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1800. Defined "sha1" as static const std::string.
  1801. * src/MetalinkParserController.cc
  1802. * src/MetalinkParserController.h
  1803. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1804. Defined message digest algorithm name as static const std::string
  1805. * src/DHTTokenTracker.cc
  1806. * src/DHTUtil.cc
  1807. * src/DefaultBtContext.cc
  1808. * src/MSEHandshake.cc
  1809. * src/MessageDigestHelper.cc
  1810. * src/Peer.cc
  1811. * src/messageDigest.cc
  1812. * src/messageDigest.h
  1813. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1814. Made string literals used in SAX parser static const std::string.
  1815. * src/FileMetalinkParserState.cc
  1816. * src/FileMetalinkParserState.h
  1817. * src/FilesMetalinkParserState.cc
  1818. * src/FilesMetalinkParserState.h
  1819. * src/InitialMetalinkParserState.cc
  1820. * src/InitialMetalinkParserState.h
  1821. * src/MetalinkMetalinkParserState.cc
  1822. * src/MetalinkMetalinkParserState.h
  1823. * src/PiecesMetalinkParserState.cc
  1824. * src/PiecesMetalinkParserState.h
  1825. * src/ResourcesMetalinkParserState.cc
  1826. * src/ResourcesMetalinkParserState.h
  1827. * src/VerificationMetalinkParserState.cc
  1828. * src/VerificationMetalinkParserState.h
  1829. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1830. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  1831. * src/A2STR.cc
  1832. * src/A2STR.h
  1833. * src/File.cc
  1834. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1835. Defined static const std::string IP("ip"), PORT("port") and use them
  1836. instead of string literals.
  1837. * src/DefaultPeerListProcessor.cc
  1838. * src/DefaultPeerListProcessor.h
  1839. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1840. Made string literals for torrent file processing static const
  1841. std::string.
  1842. * src/BtContext.cc
  1843. * src/BtContext.h
  1844. * src/DefaultBtContext.cc
  1845. * src/DefaultBtContext.h
  1846. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1847. Made string literal for tracker response static const std::string
  1848. * src/BtAnnounce.cc
  1849. * src/BtAnnounce.h
  1850. * src/DefaultBtAnnounce.cc
  1851. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1852. Use DHTMessage::T instead of "t".
  1853. * src/DHTMessageTracker.cc (messageArrived)
  1854. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1855. Made keyName static const. Made trimmed charset static const
  1856. std::string.
  1857. * src/Util.cc (getContentDispositionFilename)
  1858. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1859. Made USER_AGENT const. Made "/" static const std::string.
  1860. * src/A2STR.cc
  1861. * src/A2STR.h
  1862. * src/HttpRequest.cc
  1863. * src/HttpRequest.h
  1864. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1865. Made string listeral to static const std::string:
  1866. "Content-Range", "Content-Length"
  1867. * src/HttpHeader.cc
  1868. * src/HttpHeader.h
  1869. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1870. Made string listeral to static const std::string.
  1871. * src/HttpConnection.cc
  1872. * src/HttpHeader.cc
  1873. * src/HttpHeader.h
  1874. * src/HttpResponse.cc
  1875. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1876. Made string listeral to static const std::string.
  1877. * src/A2STR.cc
  1878. * src/A2STR.h
  1879. * src/SimpleLogger.cc
  1880. * src/SimpleLogger.h
  1881. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Made string literal to static const std::string.
  1883. Rewritten CookieParser::setField.
  1884. * src/A2STR.cc
  1885. * src/A2STR.h
  1886. * src/CookieBoxFactory.cc
  1887. * src/CookieBoxFactory.h
  1888. * src/CookieParser.cc
  1889. * src/CookieParser.h
  1890. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1891. Made string literal to static const std::string
  1892. * src/DHTAbstractMessage.cc
  1893. * src/DHTAnnouncePeerMessage.cc
  1894. * src/DHTAnnouncePeerMessage.h
  1895. * src/DHTAnnouncePeerReplyMessage.cc
  1896. * src/DHTAnnouncePeerReplyMessage.h
  1897. * src/DHTFindNodeMessage.cc
  1898. * src/DHTFindNodeMessage.h
  1899. * src/DHTFindNodeReplyMessage.cc
  1900. * src/DHTFindNodeReplyMessage.h
  1901. * src/DHTGetPeersMessage.cc
  1902. * src/DHTGetPeersMessage.h
  1903. * src/DHTGetPeersReplyMessage.cc
  1904. * src/DHTGetPeersReplyMessage.h
  1905. * src/DHTMessage.cc
  1906. * src/DHTMessage.h
  1907. * src/DHTMessageFactoryImpl.cc
  1908. * src/DHTMessageReceiver.cc
  1909. * src/DHTPingMessage.cc
  1910. * src/DHTPingMessage.h
  1911. * src/DHTPingReplyMessage.cc
  1912. * src/DHTPingReplyMessage.h
  1913. * src/DHTQueryMessage.cc
  1914. * src/DHTQueryMessage.h
  1915. * src/DHTResponseMessage.cc
  1916. * src/DHTResponseMessage.h
  1917. * src/DHTUnknownMessage.cc
  1918. * src/DHTUnknownMessage.h
  1919. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1920. Made string literal to static const std::string
  1921. * src/BtChokeMessage.cc (toString)
  1922. * src/BtHaveAllMessage.cc (toString)
  1923. * src/BtHaveNoneMessage.cc (toString)
  1924. * src/BtInterestedMessage.cc (toString)
  1925. * src/BtNotInterestedMessage.cc (toString)
  1926. * src/BtUnchokeMessage.cc (toString)
  1927. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1928. Replaced "" with static const variable A2STR::NIL.
  1929. Replaced string comparison against "" with std::string::empty().
  1930. Added PROTO_* to Request class and use them as a protocol string
  1931. constant.
  1932. Made "started", "stopped", "completed" static const variable in
  1933. AnnounceList class.
  1934. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1935. Updated translations. Great thanks to translators.
  1936. * po/ca.po
  1937. * po/de.po
  1938. * po/fr.po
  1939. * po/it.po
  1940. * po/ja.po
  1941. * po/ru.po
  1942. * po/zh_CN.po
  1943. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1944. Updated man page; categorized options and fixed typo.
  1945. * doc/aria2c.1.txt
  1946. * doc/aria2c.1.html
  1947. * doc/aria2c.1
  1948. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1949. Removed const ref
  1950. * src/MetalinkEntry.cc (AddProtocolPreference)
  1951. * src/RequestGroup.cc (FindServerHostByHostname)
  1952. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1953. Rewritten Accept-Features handling.
  1954. * src/HttpRequestCommand.cc (createHttpRequest)
  1955. * src/a2functional.h
  1956. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1957. Changed method signature:
  1958. DHTAbstractNodeLookupTask::toEntries
  1959. * src/DHTAbstractNodeLookupTask.cc
  1960. * src/DHTAbstractNodeLookupTask.h
  1961. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1962. Changed method signature:
  1963. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  1964. * src/BtContext.h
  1965. * src/DefaultBtContext.cc
  1966. * src/DefaultBtContext.h
  1967. * src/DefaultBtInteractive.cc
  1968. * test/DefaultBtContextTest.cc
  1969. * test/MockBtContext.h
  1970. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1971. Changed method signature:
  1972. MultiFileAllocationIterator::makeDiskWriterEntries
  1973. * src/MultiFileAllocationIterator.cc
  1974. * src/MultiFileAllocationIterator.h
  1975. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1976. Changed method sinature:
  1977. MetalinkEntry::toFileEntry,
  1978. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  1979. Metalinker::queryEntry
  1980. * src/Metalink2RequestGroup.cc
  1981. * src/MetalinkEntry.cc
  1982. * src/MetalinkEntry.h
  1983. * src/MetalinkHelper.cc
  1984. * src/MetalinkHelper.h
  1985. * src/Metalinker.cc
  1986. * src/Metalinker.h
  1987. * src/main.cc
  1988. * test/MetalinkHelperTest.cc
  1989. * test/MetalinkerTest.cc
  1990. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1991. Changed method sinature:
  1992. RequestGroup::getURIs
  1993. * src/RequestGroup.cc
  1994. * src/RequestGroup.h
  1995. * test/Metalink2RequestGroupTest.cc
  1996. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1997. Changed method signature:
  1998. PeerListProcessor::extractPeer
  1999. * src/CompactPeerListProcessor.cc
  2000. * src/CompactPeerListProcessor.h
  2001. * src/DefaultBtAnnounce.cc
  2002. * src/DefaultPeerListProcessor.cc
  2003. * src/DefaultPeerListProcessor.h
  2004. * src/DelegatingPeerListProcessor.cc
  2005. * src/DelegatingPeerListProcessor.h
  2006. * src/PeerListProcessor.h
  2007. * src/UTPexExtensionMessage.cc
  2008. * test/DefaultPeerListProcessorTest.cc
  2009. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2010. Changed method signature:
  2011. BtRequestFactory::createRequestMessages,
  2012. BtRequestFactory::createRequestMessagesOnEndGame
  2013. * src/BtRequestFactory.h
  2014. * src/DefaultBtInteractive.cc
  2015. * src/DefaultBtRequestFactory.cc
  2016. * src/DefaultBtRequestFactory.h
  2017. * test/DefaultBtRequestFactoryTest.cc
  2018. * test/MockBtRequestFactory.h
  2019. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2020. Changed method signature:
  2021. PieceStorage::getInFlightPieces
  2022. * src/DefaultBtProgressInfoFile.cc
  2023. * src/DefaultPieceStorage.cc
  2024. * src/DefaultPieceStorage.h
  2025. * src/PieceStorage.h
  2026. * src/UnknownLengthPieceStorage.cc
  2027. * src/UnknownLengthPieceStorage.h
  2028. * test/DefaultBtProgressInfoFileTest.cc
  2029. * test/MockPieceStorage.h
  2030. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2031. Changed method signature:
  2032. PostDownloadHandler::getNextRequestGroups
  2033. Metalink2RequestGroup::generate
  2034. RequestGroup::postDownloadProcessing
  2035. * src/BtPostDownloadHandler.cc
  2036. * src/BtPostDownloadHandler.h
  2037. * src/Metalink2RequestGroup.cc
  2038. * src/Metalink2RequestGroup.h
  2039. * src/MetalinkPostDownloadHandler.cc
  2040. * src/MetalinkPostDownloadHandler.h
  2041. * src/PostDownloadHandler.h
  2042. * src/RequestGroup.cc
  2043. * src/RequestGroup.h
  2044. * src/RequestGroupMan.cc
  2045. * src/main.cc
  2046. * test/BtPostDownloadHandlerTest.cc
  2047. * test/Metalink2RequestGroupTest.cc
  2048. * test/MetalinkPostDownloadHandlerTest.cc
  2049. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2050. Rewritten AccRequestGroup
  2051. * src/main.cc
  2052. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2053. Rewritten.
  2054. * src/TaggedItem.cc (toTagString)
  2055. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2056. Rewritten Accept-Features handling.
  2057. * src/HttpRequestCommand.cc (createHttpRequest)
  2058. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2059. Rewritten accept types handling.
  2060. * HttpRequest.cc (createRequest)
  2061. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2062. Rewritten
  2063. * src/FeatureConfig.cc (featureSummary)
  2064. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2065. Changed method signature:
  2066. PeerStorage::getActivePeers
  2067. * src/DHTPeerAnnounceEntry.cc
  2068. * src/DefaultPeerStorage.cc
  2069. * src/DefaultPeerStorage.h
  2070. * src/PeerStorage.h
  2071. * test/DefaultPeerStorageTest.cc
  2072. * test/MockPeerStorage.h
  2073. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2074. Changed method signature:
  2075. DHTPeerAnnounceStorage::getPeers,
  2076. DHTPeerAnnounceEntry::getPeers
  2077. * src/DHTGetPeersMessage.cc
  2078. * src/DHTPeerAnnounceEntry.cc
  2079. * src/DHTPeerAnnounceEntry.h
  2080. * src/DHTPeerAnnounceStorage.cc
  2081. * src/DHTPeerAnnounceStorage.h
  2082. * test/DHTAnnouncePeerMessageTest.cc
  2083. * test/DHTPeerAnnounceEntryTest.cc
  2084. * test/DHTPeerAnnounceStorageTest.cc
  2085. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2086. Changed method signature:
  2087. NameResolver::resolve
  2088. * src/DHTEntryPointNameResolveCommand.cc
  2089. * src/InitiateConnectionCommand.cc
  2090. * src/NameResolver.cc
  2091. * src/NameResolver.h
  2092. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2093. Changed method signature:
  2094. PieceStorage::getAdvertisedPieceIndexes
  2095. * src/DefaultBtInteractive.cc
  2096. * src/DefaultPieceStorage.cc
  2097. * src/DefaultPieceStorage.h
  2098. * src/PieceStorage.h
  2099. * src/UnknownLengthPieceStorage.h
  2100. * test/MockPieceStorage.h
  2101. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2102. Changed method signature:
  2103. SegmentMan::getInFlightSegment
  2104. * src/AbstractCommand.cc
  2105. * src/SegmentMan.cc
  2106. * src/SegmentMan.h
  2107. * test/SegmentManTest.cc
  2108. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2109. Changed method signature:
  2110. DHTAbstractNodeLookupTask::getNodesFromMessage
  2111. * src/DHTAbstractNodeLookupTask.cc
  2112. * src/DHTAbstractNodeLookupTask.h
  2113. * src/DHTNodeLookupTask.cc
  2114. * src/DHTNodeLookupTask.h
  2115. * src/DHTPeerLookupTask.cc
  2116. * src/DHTPeerLookupTask.h
  2117. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2118. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2119. * src/AbstractCommand.cc
  2120. * src/BtCheckIntegrityEntry.cc
  2121. * src/BtCheckIntegrityEntry.h
  2122. * src/BtFileAllocationEntry.cc
  2123. * src/BtFileAllocationEntry.h
  2124. * src/BtSetup.cc
  2125. * src/BtSetup.h
  2126. * src/CheckIntegrityCommand.cc
  2127. * src/CheckIntegrityEntry.h
  2128. * src/ChecksumCheckIntegrityEntry.cc
  2129. * src/ChecksumCheckIntegrityEntry.h
  2130. * src/DHTSetup.cc
  2131. * src/DHTSetup.h
  2132. * src/DownloadEngine.cc
  2133. * src/FileAllocationCommand.cc
  2134. * src/FileAllocationEntry.h
  2135. * src/RequestGroup.cc
  2136. * src/RequestGroup.h
  2137. * src/RequestGroupMan.cc
  2138. * src/RequestGroupMan.h
  2139. * src/StreamCheckIntegrityEntry.cc
  2140. * src/StreamCheckIntegrityEntry.h
  2141. * src/StreamFileAllocationEntry.cc
  2142. * src/StreamFileAllocationEntry.h
  2143. * src/TrackerWatcherCommand.cc
  2144. * src/a2functional.h
  2145. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2146. Changed method signature:
  2147. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2148. DHTBucket::getGoodNodes,
  2149. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2150. * src/BNode.cc
  2151. * src/BNode.h
  2152. * src/DHTAbstractNodeLookupTask.cc
  2153. * src/DHTAutoSaveCommand.cc
  2154. * src/DHTBucket.cc
  2155. * src/DHTBucket.h
  2156. * src/DHTBucketRefreshTask.cc
  2157. * src/DHTFindNodeMessage.cc
  2158. * src/DHTGetPeersMessage.cc
  2159. * src/DHTRoutingTable.cc
  2160. * src/DHTRoutingTable.h
  2161. * test/BNodeTest.cc
  2162. * test/DHTBucketTest.cc
  2163. * test/DHTRoutingTableTest.cc
  2164. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2165. In piece selection functions, Pass std::deque<...> by reference rather
  2166. than returning it.
  2167. * src/BitfieldMan.cc
  2168. * src/BitfieldMan.h
  2169. * src/DefaultBtRequestFactory.cc
  2170. * src/DefaultPieceStorage.cc
  2171. * src/Piece.cc
  2172. * src/Piece.h
  2173. * test/BitfieldManTest.cc
  2174. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2175. Implemented rarest piece first piece selection strategy.
  2176. * src/AbstractBtMessage.cc
  2177. * src/AbstractBtMessage.h
  2178. * src/BitfieldMan.cc
  2179. * src/BitfieldMan.h
  2180. * src/BtBitfieldMessage.cc
  2181. * src/BtHaveAllMessage.cc
  2182. * src/BtHaveMessage.cc
  2183. * src/DefaultPieceStorage.cc
  2184. * src/DefaultPieceStorage.h
  2185. * src/PeerInteractionCommand.cc
  2186. * src/PieceStorage.h
  2187. * src/UnknownLengthPieceStorage.h
  2188. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2189. Rewritten readData and writeData.
  2190. * src/MultiDiskAdaptor.cc
  2191. * src/MultiDiskAdaptor.h
  2192. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2193. Move \n out of the message "Usage: ...".
  2194. * src/version_usage.cc
  2195. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2196. Bump up version number to 0.13.2b.
  2197. * configure.ac
  2198. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2199. Added const qualifier to argument Exception& e.
  2200. * src/Logger.h
  2201. * src/SimpleLogger.cc
  2202. * src/SimpleLogger.h
  2203. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2204. Pool connection when CWD, SIZE command fails.
  2205. * src/FtpNegotiationCommand.cc
  2206. * src/FtpNegotiationCommand.h
  2207. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2208. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2209. * src/HttpResponseCommand.cc
  2210. * src/HttpSkipResponseCommand.cc
  2211. * src/HttpSkipResponseCommand.h
  2212. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2213. Pool connection when a server returns 4xx, 5xx responses.
  2214. * src/HttpNullDownloadCommand.cc
  2215. * src/HttpNullDownloadCommand.h
  2216. * src/HttpResponse.cc
  2217. * src/HttpResponse.h
  2218. * src/HttpResponseCommand.cc
  2219. * src/HttpResponseCommand.h
  2220. * test/HttpResponseTest.cc
  2221. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2222. Print usage when no URL is specifed or bad command-line option is
  2223. specified.
  2224. * src/HelpItemFactory.cc
  2225. * src/help_tags.h
  2226. * src/option_processing.cc
  2227. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2228. Removed duplicate log message.
  2229. * src/AbstractCommand.cc (asyncResolveHostname)
  2230. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2231. Updated man page: --async-dns and --ftp-reuse-connection were added.
  2232. Changed -j option's default value from 5 to 1.
  2233. Added new examples using protocol auto detection feature.
  2234. Removed -T, -M usage where it can be omitted.
  2235. * doc/aria2c.1.txt
  2236. * doc/aria2c.1.html
  2237. * doc/aria2c.1.txt
  2238. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2239. Updated command-line usage text, so that it tells users that they
  2240. can specify any number of torrent files and metalink files in
  2241. command-line.
  2242. * src/version_usage.cc
  2243. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2244. Changed the default value of -j option to 1.
  2245. * src/HelpItemFactory.cc
  2246. * src/option_processing.cc
  2247. * src/usage_text.h
  2248. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2249. Added the ability to reuse connection in FTP and it is enabled by
  2250. default. It can be disabled by --ftp-reuse-connection=false option.
  2251. * src/Command.cc
  2252. * src/DownloadCommand.cc
  2253. * src/FtpDownloadCommand.cc
  2254. * src/FtpDownloadCommand.h
  2255. * src/FtpFinishDownloadCommand.cc
  2256. * src/FtpFinishDownloadCommand.h
  2257. * src/FtpInitiateConnectionCommand.cc
  2258. * src/FtpNegotiationCommand.cc
  2259. * src/FtpNegotiationCommand.h
  2260. * src/HelpItemFactory.cc
  2261. * src/Makefile.am
  2262. * src/Makefile.in
  2263. * src/OptionHandlerFactory.cc
  2264. * src/option_processing.cc
  2265. * src/prefs.h
  2266. * src/usage_text.h
  2267. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2268. Call Command::transitStatus() before calling Command::execute(),
  2269. so that the status change made in execute() is not cleared.
  2270. * src/DownloadEngine.cc
  2271. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2272. Removed forward declaration of SocketCore class.
  2273. * src/HttpDownloadCommand.h
  2274. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2275. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  2276. in InitiateConnectionCommandFactory. They should be set only when
  2277. the protocol is HTTP or HTTPS.
  2278. * src/InitiateConnectionCommandFactory.cc
  2279. * src/RequestGroup.cc
  2280. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2281. Fixed infinite loop in checksum checking.
  2282. * src/IteratableChecksumValidator.cc
  2283. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2284. Set _supportsPersistentConnection to true by default.
  2285. * src/Request.cc
  2286. * src/RequestGroup.cc
  2287. * test/HttpRequestTest.cc
  2288. * test/RequestTest.cc
  2289. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2290. Added timeout to socket pool. The default timeout is 15 seconds,
  2291. which is the same value Apache uses.
  2292. * src/DownloadEngine.cc
  2293. * src/DownloadEngine.h
  2294. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2295. Fixed misuse of multimap::find()
  2296. * src/HttpHeader.cc
  2297. * test/HttpHeaderTest.cc
  2298. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2299. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  2300. option.
  2301. The asynchronous DNS is not capable of IPv6 yet.
  2302. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  2303. least for HTTP download.
  2304. * src/AbstractCommand.cc
  2305. * src/AbstractCommand.h
  2306. * src/AsyncNameResolver.cc
  2307. * src/AsyncNameResolver.h
  2308. * src/DHTEntryPointNameResolveCommand.cc
  2309. * src/DHTEntryPointNameResolveCommand.h
  2310. * src/DownloadEngine.cc
  2311. * src/DownloadEngine.h
  2312. * src/FtpInitiateConnectionCommand.cc
  2313. * src/FtpInitiateConnectionCommand.h
  2314. * src/HelpItemFactory.cc
  2315. * src/HttpInitiateConnectionCommand.cc
  2316. * src/HttpInitiateConnectionCommand.h
  2317. * src/InitiateConnectionCommand.cc
  2318. * src/InitiateConnectionCommand.h
  2319. * src/Makefile.am
  2320. * src/Makefile.in
  2321. * src/NameResolver.cc
  2322. * src/NameResolver.h
  2323. * src/OptionHandlerFactory.cc
  2324. * src/SocketCore.cc
  2325. * src/SocketCore.h
  2326. * src/Util.cc
  2327. * src/Util.h
  2328. * src/option_processing.cc
  2329. * src/prefs.h
  2330. * src/usage_text.h
  2331. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2332. Updated man page: --quiet, --header were added.
  2333. --metalink-servers and --enable-http-keep-alive option were updated.
  2334. * doc/aria2c.1
  2335. * doc/aria2c.1.html
  2336. * doc/aria2c.1.txt
  2337. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2338. Enable HTTP keep-alive by default.
  2339. * src/HelpItemFactory.cc
  2340. * src/option_processing.cc
  2341. * src/usage_text.h
  2342. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2343. Disable http keep-alive if the remote server is not HTTP/1.1.
  2344. * src/HttpConnection.cc
  2345. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2346. Receive content body of 302 response so that the connection can be
  2347. reused later when http keep-alive is enabled.
  2348. * src/HttpNullDownloadCommand.cc
  2349. * src/HttpNullDownloadCommand.h
  2350. * src/HttpResponseCommand.cc
  2351. * src/HttpResponseCommand.h
  2352. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2353. const SharedHandle<Request> -> const SharedHandle<Request>&
  2354. * src/FtpDowndloadCommand.cc
  2355. * src/FtpDowndloadCommand.h
  2356. * src/HttpDownloadCommand.cc
  2357. * src/HttpDownloadCommand.h
  2358. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2359. Fixed the bug that the control file(.aria2 file) is not renamed
  2360. according to tryAutoFileRenaming().
  2361. tryAutoFileRenaming() was rewritten so that if both renamed file and
  2362. its control file exist, use them and continue download.
  2363. The old implementation didn't take into account of control file's
  2364. existence, so basically you couldn't continue download of renamed file.
  2365. * src/BtProgressInfoFile.h
  2366. * src/DefaultBtProgressInfoFile.cc
  2367. * src/DefaultBtProgressInfoFile.h
  2368. * src/NullProgressInfoFile.h
  2369. * src/RequestGroup.cc
  2370. * test/DefaultBtProgressInfoFileTest.cc
  2371. * test/MockBtProgressInfoFile.h
  2372. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2373. Change the default value of --metalink-servers option from `5' to `1'.
  2374. * src/HelpItemFactory.cc
  2375. * src/option_processing.cc
  2376. * src/usage_text.h
  2377. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2378. Reimplemented transparent metalink using Accept request header.
  2379. * src/HttpRequest.cc
  2380. * src/HttpRequest.h
  2381. * src/HttpRequestCommand.cc
  2382. * src/Metalink2RequestGroup.cc
  2383. * src/RequestGroup.cc
  2384. * src/RequestGroup.h
  2385. * test/HttpRequestTest.cc
  2386. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2387. Bump up version number to 0.13.2a
  2388. * configure.ac
  2389. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2390. Updated configure.ac using the result of autoscan.
  2391. * configure.ac
  2392. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2393. Fixed compilation error without gcrypt/openssl.
  2394. * src/DownloadCommand.cc
  2395. * src/DownloadCommand.h
  2396. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2397. Reorganized version information so that it can be displayed in a
  2398. standard terminal screen without scrolling.
  2399. Removed http, ftp from Configuration section, because they are always
  2400. enabled.
  2401. * src/FeatureConfig.cc
  2402. * src/FeatureConfig.h
  2403. * src/main.cc
  2404. * src/messageDigest.cc
  2405. * src/messageDigest.h
  2406. * src/version_usage.cc
  2407. * test/FeatureConfigTest.cc
  2408. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2409. Masked user ID in log.
  2410. * src/FtpConnection.cc (sendUser)
  2411. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2412. Removed query part from filename in HTTP download. The query part means
  2413. the substring after "?" in URL. Firefox seems do the same thing.
  2414. A query part is sometimes very long and not suitable to filename,
  2415. so I think it is better to remove it from filename.
  2416. * src/HttpRequest.cc
  2417. * src/HttpRequest.h
  2418. * src/Request.cc
  2419. * src/Request.h
  2420. * test/HttpRequestTest.cc
  2421. * test/RequestTest.cc
  2422. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2423. Rewritten Exception class. Throw exception object, not its pointer and
  2424. catch by reference, so that remove problematic delete operator for
  2425. catched exception.
  2426. * src/Exception.cc
  2427. * src/Exception.h
  2428. * test/ExceptionTest.cc
  2429. * src/*: All files throwing/catching exception.
  2430. * test/*: All files throwing/catching exception.
  2431. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2432. Now auto protocol detection is enabled without -Z option.
  2433. But there is a important difference between with/without -Z optoin.
  2434. For example, if you type:
  2435. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  2436. then, aria2 interprets there are 3 request groups:
  2437. (1) http://host/file, http://mirror/file <-- multi-source download
  2438. (2) file1.torrent
  2439. (3) file2.metalink
  2440. On the other hand, if you invoke above command with -Z option, it is
  2441. interpreted as 4 request groups:
  2442. (1) http://host/file
  2443. (2) file1.torrent
  2444. (3) file2.metalink
  2445. (4) http://mirror/file
  2446. I think usually user don't mix multi-source URLs and torrent files, so
  2447. there is no big problem here.
  2448. * src/main.cc
  2449. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. Fixed the bug that causes segmentaion fault when reading XML containing
  2451. unescapsed character like '&'.
  2452. Also a modification was made which avoids adding unnecessary
  2453. characters stack and appending unused string.
  2454. * src/ExpatMetalinkProcessor.cc
  2455. * src/FileMetalinkParserState.h
  2456. * src/FilesMetalinkParserState.h
  2457. * src/FinMetalinkParserState.h
  2458. * src/HashMetalinkParserState.h
  2459. * src/InitialMetalinkParserState.h
  2460. * src/LanguageMetalinkParserState.h
  2461. * src/MetalinkMetalinkParserState.h
  2462. * src/MetalinkParserState.h
  2463. * src/MetalinkParserStateMachine.cc
  2464. * src/MetalinkParserStateMachine.h
  2465. * src/OSMetalinkParserState.h
  2466. * src/PieceHashMetalinkParserState.h
  2467. * src/PiecesMetalinkParserState.h
  2468. * src/ResourcesMetalinkParserState.h
  2469. * src/SizeMetalinkParserState.h
  2470. * src/SkipTagMetalinkParserState.h
  2471. * src/URLMetalinkParserState.h
  2472. * src/VerificationMetalinkParserState.h
  2473. * src/VersionMetalinkParserState.h
  2474. * src/XML2SAXMetalinkProcessor.cc
  2475. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2476. Added StringFormat class, which internally calls vasprintf.
  2477. operator<< is defined for this class, so it can be used with iostream
  2478. classes nicely. SimpleLogger and following functions are rewritten
  2479. using StringFormat class.
  2480. Besides, now Logger class's methods are non-const, many classes
  2481. that has a const Logger* as a member variable are modified to remove
  2482. const qualifier from the variable declaration.
  2483. * src/HelpItemFactory.cc
  2484. * src/Request.cc
  2485. * src/SimpleLogger.cc
  2486. * src/StringFormat.cc
  2487. * src/StringFormat.h
  2488. * src/Util.cc
  2489. * src/option_processing.cc
  2490. * src/version_usage.cc
  2491. * test/StringFormatTest.cc
  2492. * src/*.h: The classes that has const Logger* as a member variable.
  2493. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2494. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  2495. failed. Also fixed memory link when exception is thrown there.
  2496. * src/main.cc (AccRequestGroup)
  2497. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2498. Added build-in "Accept-Features" support. For now only "metalink" is
  2499. used in this header field.
  2500. This "metalink" value is removed from the list when connecting URLs
  2501. fed by metalink file to avoid loop in "transparent" metlaink.
  2502. * src/HttpRequest.cc
  2503. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  2504. header is also held in this variable. Also renamed setUserHeaders as
  2505. addHeader and it was rewritten to add header not just to clear the old
  2506. value.
  2507. * src/HttpRequestCommand.cc
  2508. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  2509. from "Accept-Features" list.
  2510. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  2511. default.
  2512. * src/RequestGroup.h
  2513. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  2514. * src/a2functional.h: Included <string> because Concat class depends on
  2515. it.
  2516. * test/HttpRequestTest.cc
  2517. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2518. Added comment
  2519. * src/RequestGroup.cc (createNextCommand)
  2520. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2521. Capitalized METHOD_GET and METHOD_HEAD
  2522. * src/Request.cc
  2523. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2524. Added getDownloadResults() method
  2525. * src/RequestGroupMan.cc
  2526. * src/RequestGroupMan.h
  2527. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2528. Fixed the bug that aria2 exits when commands is empty() but
  2529. _routineCommands are not.
  2530. * src/DownloadEngine.cc
  2531. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2532. Use the default value pulled from Option object in HelpItemFactory.
  2533. except options whose defualt value is embedded in a usage text.
  2534. * src/HelpItemFactory.cc
  2535. * src/HelpItemFactory.h
  2536. * src/option_processing.cc
  2537. * src/version_usage.cc
  2538. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. Added --quiet option to make aria2 quiet (no console output).
  2540. --quiet option is tagged with ADVANCED.
  2541. * src/HelpItemFactory.cc
  2542. * src/LogFactory.cc
  2543. * src/LogFactory.h
  2544. * src/MultiUrlRequestInfo.cc
  2545. * src/MultiUrlRequestInfo.h
  2546. * src/NullStatCalc.h: New class. This class prints nothing.
  2547. * src/OptionHandlerFactory.cc
  2548. * src/main.cc
  2549. * src/option_processing.cc
  2550. * src/prefs.h
  2551. * src/usage_text.h
  2552. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2553. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  2554. * src/HelpItemFactory.cc (createHelpItems):
  2555. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2556. Fixed compilation error in ExpatMetalinkProcessor.cc
  2557. * src/ExpatMetalinkProcessor.cc
  2558. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. Reuse socket if the origin server supports HTTP keep-alive and
  2560. --enable-http-keep-alive or --enable-http-pipelining is given.
  2561. The current implementation doesn't reuse the connections established
  2562. against proxy server.
  2563. * src/AbstractCommand.cc
  2564. * src/DownloadEngine.cc
  2565. * src/DownloadEngine.h
  2566. * src/HttpDownloadCommand.cc
  2567. * src/HttpInitiateConnectionCommand.cc
  2568. * src/HttpResponseCommand.cc
  2569. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Rewritten HTTP keep-alive and pipelining routine.
  2571. * src/AbstractCommand.cc
  2572. * src/HttpConnection.cc
  2573. * src/HttpDownloadCommand.cc
  2574. * src/HttpRequest.cc
  2575. * src/HttpRequestCommand.cc
  2576. * src/HttpResponseCommand.cc
  2577. * src/Request.cc
  2578. * src/Request.h
  2579. * src/RequestGroup.cc
  2580. * test/HttpRequestTest.cc
  2581. * test/HttpResponseTest.cc
  2582. * test/RequestTest.cc
  2583. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2584. Added missing setUserHeaders call
  2585. * src/HttpRequestCommand.cc
  2586. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2587. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  2588. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  2589. waste of time because it is more likey false.
  2590. * src/FileAllocationDispatcherCommand.cc (execute)
  2591. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2592. Now HTTP status and version are a member variable of HttpHeader.
  2593. HTTP status is processed as a string, not integer.
  2594. * src/AbstractProxyResponseCommand.cc
  2595. * src/HttpConnection.cc
  2596. * src/HttpHeader.cc
  2597. * src/HttpHeader.h
  2598. * src/HttpHeaderProcessor.cc
  2599. * src/HttpHeaderProcessor.h
  2600. * src/HttpResponse.cc
  2601. * src/HttpResponse.h
  2602. * test/HttpHeaderProcessorTest.cc
  2603. * test/HttpResponseTest.cc
  2604. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2605. Added --header option. You can specify any number of additional HTTP headers
  2606. like:
  2607. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  2608. Unlike other commad-line option, you can use --header option multiple times.
  2609. * src/HelpItemFactory.cc
  2610. * src/HttpRequest.{cc, h}
  2611. * src/HttpRequestCommand.cc
  2612. * src/OptionHandlerFactory.cc
  2613. * src/OptionHandlerImpl.h
  2614. * src/option_processing.cc
  2615. * src/prefs.h
  2616. * src/usage_text.h
  2617. * test/HttpRequestTest.cc (testUserHeaders)
  2618. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2619. Eliminates the time lag between sequential downloads and commands in
  2620. the same RequestGroup.
  2621. In old implementation, aria2 occasionally waits 1 seconds before
  2622. executing next command or RequestGroup.
  2623. This is really a waste of time, and new implementation eliminates
  2624. this unnecessary time lag.
  2625. * src/AbstractCommand.cc
  2626. * src/AutoSaveCommand.cc
  2627. * src/CheckIntegrityCommand.cc
  2628. * src/Command.{cc, h}
  2629. * src/DownloadEngine.{cc, h}
  2630. * src/DownloadEngineFactory.cc
  2631. * src/FileAllocationCommand.cc
  2632. * src/FileAllocationDispatcherCommand.cc
  2633. * src/FillRequestGroupCommand.cc
  2634. * src/FtpInitiateConnectionCommand.cc
  2635. * src/HaveEraseCommand.cc
  2636. * src/HttpInitiateConnectionCommand.cc
  2637. * src/HttpResponseCommand.cc
  2638. * src/RealtimeCommand.cc
  2639. * src/RequestGroup.cc
  2640. * src/RequestGroupMan.cc
  2641. * src/StreamFileAllocationEntry.cc
  2642. * src/TimeBasedCommand.{cc, h}
  2643. * src/TimedHaltCommand.cc
  2644. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2645. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  2646. keyword explicit and SharedHandle's default constructor initializes
  2647. its internal obj to null, old implementation initializes it using
  2648. obj's default constructor.
  2649. To assign null, write SharedHandle<T> x(...); x.reset();
  2650. TODO: test/SharedHandleTest.cc needs more tests.
  2651. * src/SharedHandle.h
  2652. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2653. Fixed type in man page.
  2654. * doc/aria2c.1.txt
  2655. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2656. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  2657. * src/SimpleLogger.{cc, h}
  2658. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2659. Implemented auto protocol detection.
  2660. Now you can do:
  2661. aria2c -Z http://host/file file1.torrent file2.metalink
  2662. (Note: -Z option is required for auto protcol detection.)
  2663. Then aria2c downloads 3 files simultaneously:
  2664. 1. http://host/file
  2665. 2. file1.torrent <-- read local torrent file
  2666. 3. file2.metalink <-- read local Metalink file.
  2667. Same thing goes with -i option. Assume your uris.txt contans:
  2668. http://host/file
  2669. file1.torrent
  2670. file2.metalink
  2671. Then you can do: aria2c -i uris.txt
  2672. (Note: -Z option is not needed if -i option is given.)
  2673. * src/main.cc
  2674. * src/ProtocolDetector.{cc, h}
  2675. * test/ProtocolDetectorTest.cc
  2676. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  2678. installed
  2679. * src/ARC4Encryptor.h
  2680. * src/ARC4Decryptor.h
  2681. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2682. Renamed argument from 'errno' to 'err', since errno is confused with
  2683. errno defined in errno.h.
  2684. * src/LibgcryptARC4Decryptor.h
  2685. * src/LibgcryptARC4Context.h
  2686. * src/LibgcryptDHKeyExchange.h
  2687. * src/LibgcryptARC4Encryptor.h
  2688. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2689. Rewritten choking algorithm.
  2690. * src/PeerChokeCommand.{cc, h}
  2691. * src/BtInterestedMessage.cc
  2692. * src/PeerSessionResource.{cc, h}
  2693. * src/DefaultPeerStorage.{cc, h}
  2694. * src/BtNotInterestedMessage.cc
  2695. * src/DefaultBtMessageDispatcher.{cc, h}
  2696. * src/BtMessageDispatcher.h
  2697. * src/Peer.{cc, h}
  2698. * src/BtLeecherStateChoke.{cc, h}
  2699. * src/BtSetup.cc
  2700. * src/BtSeederStateChoke.{cc, h}
  2701. * src/PeerStorage.h
  2702. * test/MockPeerStorage.h
  2703. * test/MockBtMessageDispatcher.h
  2704. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2705. Fixed compilation error on x84-64 platform.
  2706. * src/AuthConfig.cc: Included ostream.
  2707. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2708. Rewritten getBasename() and getDirname(), without standard library
  2709. basename(), dirname().
  2710. * src/File.cc
  2711. * test/FileTest.cc
  2712. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2713. Added Simplified Chinese translation. Also updated the following
  2714. translations: Polish, Dutch, German. Great thanks to all translators.
  2715. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2716. Suppress content-range error when 'Content-Range' response header
  2717. doesn't contains bytes-unit specifier 'bytes'
  2718. * src/HttpHeader.cc (getRange)
  2719. * test/HttpHeaderTest.cc
  2720. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Fixed compilation error with g++-4.3
  2722. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2723. Added missing include files for MinGW
  2724. * test/HttpHeaderProcessorTest.cc
  2725. * test/DHTRoutingTableSerializerTest.cc
  2726. * test/DHTRoutingTableDeserializerTest.cc
  2727. * test/UriListParserTest.cc
  2728. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Now download line is printed nicely with no garbage at the end of
  2730. line. I use ioctl to get the columns of terminal.
  2731. If stdout is redirected to another device, instead of carriage return,
  2732. end of line '\n' character is used. This is feature request#1909659
  2733. * src/ConsoleStatCalc.cc (calculateStat)
  2734. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2735. Included a2time.h
  2736. * src/DHTMessageDispatcher.h
  2737. * src/DHTMessageEntry.h
  2738. * src/DHTReplaceNodeTask.h
  2739. * src/DHTMessageTracker.h
  2740. * src/Util.h
  2741. * src/CookieBox.h
  2742. * src/SocketCore.h
  2743. * src/DefaultBtMessageDispatcher.h
  2744. * src/SocketCore.cc
  2745. * src/Util.cc
  2746. * src/DHTPingTask.h
  2747. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2748. Fixed high memory footprint when DHT is enabled.
  2749. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  2750. queued than it is processed and the queue is getting longer. As a
  2751. consequence, momory usage is increased.
  2752. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  2753. replacement cache in DHTBucket which is described in Kademlia paper.
  2754. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  2755. DHTReplaceNodeTask.
  2756. * src/DHTBucket.{h, cc}
  2757. (cacheNode): New function.
  2758. (getCachedNodes): New function.
  2759. (dropNode): Push back cached node to _nodes.
  2760. * test/DHTBucketTest.cc
  2761. (testCacheNode): New test
  2762. (testDropNode): New test
  2763. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2764. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  2765. the unused 4KB memory when ssl is not used.
  2766. * src/SocketCore.cc
  2767. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2768. Added summary log for peer announce storage.
  2769. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  2770. Removed cast
  2771. * src/DefaultPeerStorage.cc (addPeer)
  2772. Log exception message
  2773. * src/DHTMessageTracker.cc (handleTimeout)
  2774. Fixed casting
  2775. * test/HttpRequestTest.cc
  2776. * test/MetalinkProcessorTest.cc
  2777. * test/PieceTest.cc
  2778. * test/MetalinkEntryTest.cc
  2779. * test/SequenceTest.cc
  2780. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2781. * src/ParameterizedStringParser.cc (createLoop):
  2782. Removed unused variable sstep.
  2783. * src/AlphaNumberDecorator.h (decode): Rewritten.
  2784. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2785. * src/Util.{h, cc}
  2786. (parseUInt): New function.
  2787. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  2788. The actual range is uint32_t.
  2789. * test/UtilTest.cc
  2790. * src/ParameterizedStringParser.cc:
  2791. Use Util::parseUInt() for loop variables.
  2792. * test/ParameterizedStringParserTest.cc
  2793. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  2794. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2795. Rewritten the functions for binding port.
  2796. * src/DHTConnectionImpl.{h, cc}
  2797. * src/PeerListenCommand.{h, cc}
  2798. * src/DHTSetup.cc
  2799. * src/BtSetup.cc
  2800. * test/DHTConnectionImplTest.cc
  2801. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2802. type cleanup for allmost all remaining files.
  2803. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2804. Type clarification
  2805. * src/PeerSessionResource.{h, cc}
  2806. * src/DefaultPieceStorage.{h, cc}
  2807. * src/Peer.{h, cc}
  2808. * test/PeerSessionResourceTest.cc
  2809. Use div function
  2810. * src/BtPieceMessage.cc (erasePieceOnDisk)
  2811. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2812. Type clarification
  2813. * src/DefaultPeerStorage.{h, cc}
  2814. * test/DefaultPeerStorageTest.cc
  2815. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Type clarification: size_t for length or size, uint64_t for file
  2817. length, off_t for file offset.
  2818. * src/DefaultBtProgressInfoFile.cc
  2819. * src/DefaultBtContext.{h, cc}
  2820. * src/DefaultBtInteractive.cc
  2821. * src/DownloadCommand.{h, cc}
  2822. * src/IteratableChunkChecksumValidator.{h, cc}
  2823. * src/SegmentMan.{h, cc}
  2824. * src/SingleFileDownloadContext.{h, cc}
  2825. * src/IteratableChecksumValidator.{h, cc}
  2826. * src/BtContext.h
  2827. * src/IteratableValidator.h
  2828. * src/DownloadContext.h
  2829. * test/SingleFileDownloadContextTest.cc
  2830. * test/DefaultBtContextTest.cc
  2831. * test/MockBtContext.h
  2832. * test/Metalink2RequestGroupTest.cc
  2833. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2834. Type clarification: size_t for length or size, uint64_t for file
  2835. length, off_t for file offset.
  2836. * src/PiecedSegment.cc
  2837. * src/GrowSegment.h
  2838. * src/DefaultBtRequestFactory.h
  2839. * src/DefaultBtProgressInfoFile.cc
  2840. * src/UnknownLengthPieceStorage.h
  2841. * src/DefaultPieceStorage.cc
  2842. * src/UnknownLengthPieceStorage.cc
  2843. * src/DefaultBtInteractive.cc
  2844. * src/GrowSegment.cc
  2845. * src/BitfieldMan.h
  2846. * src/DownloadCommand.cc
  2847. * src/BtRequestFactory.h
  2848. * src/PiecedSegment.h
  2849. * src/DefaultPieceStorage.h
  2850. * src/Piece.cc
  2851. * src/DefaultBtRequestFactory.cc
  2852. * src/PieceStorage.h
  2853. * src/Segment.h
  2854. * src/Piece.h
  2855. * src/BitfieldMan.cc
  2856. * src/Util.cc
  2857. * test/DefaultBtProgressInfoFileTest.cc
  2858. * test/DefaultPieceStorageTest.cc
  2859. * test/MockPieceStorage.h
  2860. * test/BtRequestMessageTest.cc
  2861. * test/DefaultBtMessageDispatcherTest.cc
  2862. * test/BitfieldManTest.cc
  2863. * test/GrowSegmentTest.cc
  2864. * test/PieceTest.cc
  2865. * test/SegmentTest.cc
  2866. * test/SegmentManTest.cc
  2867. * test/DefaultBtRequestFactoryTest.cc
  2868. * test/MockBtRequestFactory.h
  2869. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2870. Fixed compilation error with --disable-nls
  2871. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  2872. in gettext.h causes the problem.
  2873. * src/common.h
  2874. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2875. Removed subPiece related functions.
  2876. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  2877. * src/DefaultPieceStorage.{h, cc}
  2878. * test/PieceTest.cc
  2879. * test/DefaultPieceStorageTest.cc
  2880. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2881. Use unsigned char for data store.
  2882. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2883. Bump up version number to 0.13.0+1
  2884. * configure.ac
  2885. * Release 0.13.0+1
  2886. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Changed inactive connection timeout to 120.
  2888. To accept more mulually interested peers, disconnect peer when there
  2889. is no interest between us after certain time passed.
  2890. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  2891. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2892. Fixed the bug that aria2 only uses first dns server in resolv.conf
  2893. when compiled with async DNS support.
  2894. * src/DownloadEngine.cc
  2895. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  2896. value '10' will be a little bit short when some DNS servers are
  2897. offline and several DNS servers are tried. It should be configured
  2898. by command-line option.
  2899. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2900. Merged Ross's mingw patch.
  2901. * src/DHTRoutingTableDeserializer.cc
  2902. * src/DHTRoutingTableSerializer.cc
  2903. * src/Platform.{h, cc}
  2904. * src/timegm.h
  2905. * src/gettimeofday.h
  2906. * src/getaddrinfo.h
  2907. * src/SocketCore.h
  2908. * src/common.h
  2909. * src/inet_aton.h
  2910. * src/DownloadEngine.h
  2911. * src/gai_strerror.h
  2912. * src/a2netcompat.h
  2913. * configure.ac
  2914. * configure
  2915. * aclocal.m4
  2916. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2917. Included missing iostream.
  2918. * test/AllTest.cc
  2919. * test/BtDependencyTest.cc
  2920. * test/BtExtendedMessageTest.cc
  2921. * test/DHTConnectionImplTest.cc
  2922. * test/DHTMessageFactoryImplTest.cc
  2923. * test/DHTMessageTrackerEntryTest.cc
  2924. * test/DHTNodeTest.cc
  2925. * test/DHTRoutingTableSerializerTest.cc
  2926. * test/DefaultBtAnnounceTest.cc
  2927. * test/DefaultBtContextTest.cc
  2928. * test/DefaultBtMessageFactoryTest.cc
  2929. * test/DefaultExtensionMessageFactoryTest.cc
  2930. * test/HandshakeExtensionMessageTest.cc
  2931. * test/HttpResponseTest.cc
  2932. * test/MetalinkProcessorTest.cc
  2933. * test/MultiFileAllocationIteratorTest.cc
  2934. * test/SocketCoreTest.cc
  2935. * test/UTPexExtensionMessageTest.cc
  2936. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2937. Reorganized includes.
  2938. * src/NameResolver.cc
  2939. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Fixed compilation error without ares/c-ares
  2941. * src/NameResolver.h:
  2942. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2943. Added a test for large file.
  2944. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  2945. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Fixed the bug that file size is ignored if size > INT32_MAX
  2947. * src/SizeMetalinkParserState.cc (endElement):
  2948. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2949. Bump up version number to 0.13.0
  2950. * configure.ac
  2951. * Release 0.13.0
  2952. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2953. Updated Makfefile.am to make 'make dist' work.
  2954. Now packaged filename is aria2c-VERSION.tar.bz2.
  2955. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  2956. Added LICENSE.OpenSSL to dist_noinst_DATA.
  2957. Large file support is now configured by configure script.
  2958. * configure.ac
  2959. Removed unsused source files
  2960. * src/
  2961. * test/
  2962. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  2963. Peer.h and BtContext.h respectively.
  2964. * src/Peer.h
  2965. * src/BtContext.h
  2966. Updated translations.
  2967. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  2968. translations. Great thanks to all translators!;)
  2969. * po/*.{po, gmo}
  2970. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  2972. statically declared sha1 MessageDigestContext.
  2973. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  2974. initialization of short-lived MessageDigestContext.
  2975. * src/MessageDigestHelper.{h, cc}
  2976. * src/main.cc
  2977. Now DownloadCommand has a reference to MessageDigestContext to avoid
  2978. the initialization of MessageDigestContext every time in validating
  2979. chunk checksum.
  2980. * src/DownloadCommand.{h, cc}
  2981. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2982. Add a file descriptor which connected to fast peer(latency<1500) to
  2983. select(). This change reduced CPU load.
  2984. * src/PeerInteractionCommand.cc
  2985. * src/DefaultBtInteractive.{h, cc}
  2986. * src/BtInteractive.h
  2987. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Fixed the previous insufficient fix for possible busy loop.
  2989. * src/MSEHandshake.cc (identifyHandshakeType)
  2990. Removed unused functions.
  2991. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  2992. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2993. Fixed possible busy loop if first 20 bytes are not received for a few
  2994. minutes.
  2995. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  2996. * src/ReceiverMSEHandshakeCommand.cc
  2997. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2998. Fixed compilation error
  2999. * src/ExpatMetalinkProcessor.cc
  3000. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3002. * src/DHTBucket.cc
  3003. Removed unnecessary cast.
  3004. * src/HandshakeExtensionMessage.cc
  3005. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3007. is missing.
  3008. * src/OptionHandlerFactory.cc
  3009. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3010. Fixed the bug that HAVE message is not sent for a piece they are
  3011. downloaded fom http/ftp server before any BitTorrent handshake is done
  3012. with peers.
  3013. * src/DefaultBtInteractive.cc
  3014. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3015. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3016. * src/Makefile.am
  3017. * src/Makefile.in
  3018. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Updated README. Added html version of README and man page.
  3020. * README
  3021. * README.html
  3022. * readme2html: Shell script to generate README.html from README using
  3023. asciidoc.
  3024. * doc/aria2c.1.html
  3025. * doc/makeman: Added the line to generate aria2c.1.html
  3026. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Fixed offset calculation.
  3028. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3029. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. Rewritten itos and uitos using template. llitos and ullitos are
  3031. replaced with itos and uitos respectively.
  3032. * src/Util.{h, cc}
  3033. * test/UtilTest.cc
  3034. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3035. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3036. of the number of bytes required for storing public key and shared
  3037. secret.
  3038. * src/LibgcryptDHKeyExchange.h
  3039. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3040. * src/MSEHandshake.cc
  3041. * test/DHKeyExchangeTest.cc
  3042. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3043. Removed since they are not used.
  3044. * src/Xml2MetalinkProcessor.{h, cc}
  3045. * src/Socket.cc
  3046. * src/SegmentSplitter.{h, cc}
  3047. * test/Xml2MetalinkProcessorTest.cc
  3048. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Fixed the bug that prevents aria2 from stopping other than by pressing
  3050. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3051. option. aria2 doesn't stop even after --seed-time is satisfied and
  3052. continues to output blank lines in the console.
  3053. * src/ReceiverMSEHandshakeCommand.cc
  3054. * src/PeerReceiveHandshakeCommand.cc
  3055. * src/PeerListenCommand.cc
  3056. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3057. Bump up version number to 0.13.0rc
  3058. * configure.ac
  3059. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. Updated man page and some usage text.
  3061. * doc/aria2c.1.txt
  3062. * src/usage_text.h
  3063. * po/*.{po, gmo}
  3064. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Updated translations. Added Finnish and Hebrew translations.
  3066. Great thanks to all translators!
  3067. * po/*.{po, gmo}
  3068. * po/LINGUAS
  3069. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3070. Log more detailed information about each message.
  3071. * src/DHTQueryMessage.{h, cc}
  3072. * src/DHTGetPeersMessage.{h, cc}
  3073. * src/DHTFindNodeReplyMessage.{h, cc}
  3074. * src/DHTGetPeersReplyMessage.{h, cc}
  3075. * src/DHTAnnouncePeerMessage.{h, cc}
  3076. * src/DHTResponseMessage.{h, cc}
  3077. * src/DHTFindNodeMessage.{h, cc}
  3078. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Use constants defined in prefs.h
  3080. * src/option_processing.cc
  3081. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3082. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3083. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3084. Make room for future enchancements for IPv6 addresses.
  3085. Bump up version number of dht.dat file format to 2.
  3086. Not compatible with previous version.
  3087. * src/DHTRoutingTableSerializer.cc
  3088. * src/DHTRoutingTableDeserializer.cc
  3089. * test/DHTRoutingTableSerializerTest.cc
  3090. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Added handling for the return values from
  3092. PeerMessageUtil::createcompact().
  3093. * src/DefaultBtContext.cc (computeFastSet):
  3094. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3095. Fixed abort when peer's ip address is IPv4-mapped address.
  3096. * src/DefaultBtContext.cc (computeFastSet)
  3097. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3098. cannot handle IPv4-mapped addresses.
  3099. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3100. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3101. Proper return value handling for OpenSSL functions.
  3102. * src/LibsslDHKeyExchange.h
  3103. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3104. Random bytes generation using libgcrypt and OpenSSL.
  3105. * src/DHTUtil.{h, cc}
  3106. * test/DHTUtilTest.cc
  3107. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3108. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3109. received.
  3110. * src/DHTMessageReceiver.cc (receiveMessage)
  3111. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3112. Fixed the bug that a return code is always 0. BUG#1897704
  3113. If error occurred during the download or there exist unfinished
  3114. downloads, aria2 returns with code 1.
  3115. * src/RequestGroupMan.{h, cc}
  3116. * src/MultiUrlRequestInfo.{h, cc}
  3117. * src/main.cc
  3118. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. IPv6 support for SocketCore class.
  3120. TODO: In SocketCore::establishConnection(), this is insufficient to
  3121. determin the failure of connect() here because the socket is
  3122. non-blocking state. The next addresses should be tried after select().
  3123. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3124. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3125. instead which address family independent.
  3126. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3127. information in a compact peer format which is for IPv4 only.
  3128. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3129. this is a spec of BitTorrent protocol.
  3130. * src/SocketCore.{h, cc}
  3131. * src/PeerMessageUtil.cc
  3132. * test/SocketCoreTest.cc
  3133. * test/PeerMessageUtilTest.cc
  3134. * test/DHTConnectionImplTest.cc
  3135. Handle IPv4-mapped addresses.
  3136. * src/DHTNode.cc: Now identity is determined by node id.
  3137. * src/DHTMessageTrackerEntry.cc
  3138. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3139. should handle it.
  3140. * src/DHTRoutingTableDeserializer.cc
  3141. * src/DHTMessageFactoryImpl.cc
  3142. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Change the unit of --stop option from a minute to a second.
  3144. * src/usage_text.h
  3145. * src/DownloadEngineFactory.cc
  3146. * src/OptionHandlerFactory.cc
  3147. * src/message.h
  3148. * src/TimedHaltCommand.cc
  3149. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3150. Make listening socket non-block mode.
  3151. * src/FtpConnection.cc
  3152. * src/FtpNegotiationCommand.{h, cc}
  3153. * src/PeerListenCommand.cc
  3154. Fixed the bug that cause slow ftp negotiation.
  3155. * src/FtpNegotiationCommand.{h, cc}
  3156. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3157. Added basic tag to --enable-dht, --dht-listen-port option.
  3158. * src/HelpItemFactory.cc (createHelpItems)
  3159. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3160. Updated text.
  3161. * src/usage_text.h
  3162. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3163. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3164. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Determin _threadtholdSpeed in each constructor for
  3166. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3167. * src/ActivePeerConnectionCommand.{h, cc}
  3168. * src/PeerReceiveHandshakeCommand.{h, cc}
  3169. * src/BtSetup.cc
  3170. * src/BtConstants.h
  3171. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3172. Added --bt-min-crypto-level and --bt-require-crypto options.
  3173. * src/OptionHandlerFactory.cc
  3174. * src/MSEHandshake.cc
  3175. * src/HelpItemFactory.cc
  3176. * src/option_processing.cc
  3177. * src/ReceiverMSEHandshakeCommand.cc
  3178. * src/prefs.h
  3179. * src/DefaultBtAnnounce.cc
  3180. * src/InitiatorMSEHandshakeCommand.cc
  3181. * src/usage_text.h
  3182. * test/MSEHandshakeTest.cc
  3183. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3184. Bump version number to 0.13.0b
  3185. * configure.ac
  3186. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3187. Updated doc.
  3188. * src/MessageDigestHelper.h:
  3189. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3190. Use raw message digest as a token instead of its hexadecimal
  3191. representation.
  3192. * src/DHTTokenTracker.cc (generateToken)
  3193. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3194. Added Message Stream Encryption(MSE) support.
  3195. Currently, aria2 accepts incoming connections with Obfuscation Header
  3196. and legacy BitTorrent Header and establishes connections with
  3197. Obfuscation Header first and if failed then retry with legacy
  3198. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3199. choose ARC4. The new option to change the default behavior is planned.
  3200. For tracker extension, "supportcrypto=1" is added statically.
  3201. * src/PeerInitiateConnectionCommand.{h, cc}
  3202. * src/PeerConnection.{h, cc}
  3203. * src/HandleRegistry.h
  3204. * src/SocketCore.h
  3205. * src/PeerReceiveHandshakeCommand.{h, cc}
  3206. * src/BtRegistry.{h, cc}
  3207. * src/PeerListenCommand.cc
  3208. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3209. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3210. * src/MSEHandshake.{h, cc}
  3211. * src/ARC4Encryptor.h
  3212. * src/ARC4Decryptor.h
  3213. * src/LibgcryptARC4Encryptor.h
  3214. * src/LibgcryptARC4Decryptor.h
  3215. * src/LibgcryptARC4Context.h
  3216. * src/LibsslARC4Encryptor.h
  3217. * src/LibsslARC4Decryptor.h
  3218. * src/LibsslARC4Context.h
  3219. * src/DHKeyExchange.h
  3220. * src/LibgcryptDHKeyExchange.h
  3221. * src/LibsslDHKeyExchange.h
  3222. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3223. * test/DefaultBtAnnounceTest.cc
  3224. * test/ARC4Test.cc
  3225. * test/DHKeyExchangeTest.cc
  3226. Removed prepareForRetry() because it is not used.
  3227. * src/PeerAbstractCommand.{h, cc}
  3228. * src/PeerInteractionCommand.{h, cc}
  3229. * src/PeerInitiateConnectionCommand.{h, cc}
  3230. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3231. Added the ability to load nodes from torrent file. These nodes are
  3232. added to the routing table when downloading that torrent.
  3233. * src/BtContext.h
  3234. * src/DefaultBtContext.{h, cc}
  3235. * src/DHTSetup.cc
  3236. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  3237. hostname and port pair, and resolves all of them.
  3238. * src/NameResolver.{h, cc}: Added reset().
  3239. * src/RequestGroup.cc
  3240. * test/DefaultBtContextTest.cc
  3241. * test/MockBtContext.h
  3242. Removed assert() from DefaultBtContext and throw exception instead.
  3243. * src/DefaultBtContext.cc
  3244. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3245. Fixed segmentation fault bug when exiting if dht is disabled.
  3246. * src/RequestGroup.cc
  3247. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Fixed typo in log message and define the message in message.h
  3249. * src/TimedHaltCommand.cc
  3250. * src/message.h
  3251. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Included RecoverableException.h to fix compilation error.
  3253. * test/DHTMessageFactoryImplTest.cc
  3254. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3255. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  3256. * test/DHTPingMessageTest.cc
  3257. * test/DHTGetPeersMessageTest.cc
  3258. * test/DHTFindNodeMessageTest.cc
  3259. * test/DHTAnnouncePeerMessageTest.cc
  3260. * test/MockDHTMessage.h
  3261. * test/MockDHTMessageFactory.h
  3262. * test/MockDHTMessageDispatcher.h: New class.
  3263. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3264. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  3265. virtual.
  3266. * src/DHTMessageDispatcher.h
  3267. * src/DHTMessageDispatcherImpl.{h, cc}
  3268. * src/DHTSetup.cc
  3269. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3270. Adding handling of DHT error message. Just log error message and
  3271. throw exception.
  3272. * src/DHTMessageFactoryImpl.cc
  3273. * test/DHTMessageFactoryImplTest.cc
  3274. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3275. Added handling of dynamic cast failure.
  3276. * src/DHTNodeLookupTask.cc
  3277. * src/DHTPeerLookupTask.cc
  3278. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Added the ability to stop aria2 itself when given time has passed
  3280. from start. Use --stop option to specify time in minutes.
  3281. When 0 is given, this feature is disabled.
  3282. * src/OptionHandlerFactory.cc
  3283. * src/TimeBasedCommand.h: Make _interval protected scope.
  3284. * src/HelpItemFactory.cc
  3285. * src/option_processing.cc
  3286. * src/prefs.h
  3287. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  3288. before calling RequestGroupMan::fillRequestGroupFromReserver().
  3289. Without this modification, the result list shows "ERR" when aria2 is
  3290. stopped by --stop option. It should be "INPR".
  3291. * src/DownloadEngine.{h, cc}
  3292. * src/DownloadEngineFactory.cc
  3293. * src/usage_text.h
  3294. * src/TimedHaltCommand.{h, cc}: New class.
  3295. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Bootstrap through node added by port message.
  3297. Currently bootstrap is executed if the number of buckets in routing
  3298. table is 1.
  3299. * src/BtPortMessage.{h, cc}
  3300. * src/DefaultBtMessageFactory.{h, cc}
  3301. * src/PeerInteractionCommand.cc
  3302. * test/BtPortMessageTest.cc
  3303. * test/MockDHTTask.h
  3304. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Extract the Peer class's member variables, which are only needed after
  3306. PeerInteractionCommand, into PeerSessionResource class.
  3307. This class is instantiated in PeerInteractionCommand class's ctor and
  3308. released in its dtor.
  3309. This will make Peer class lightweight and uses less memory for peers
  3310. which are not connected and wait in the queue.
  3311. * src/PeerChokeCommand.cc
  3312. * src/PeerSessionResource.{h, cc}
  3313. * src/PeerInteractionCommand.cc
  3314. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  3315. * src/DefaultBtInteractive.cc
  3316. * src/BtPieceMessage.cc
  3317. * src/BtInterestedMessage.cc
  3318. * src/BtUnchokeMessage.cc
  3319. * src/DefaultPeerStorage.{h, cc}
  3320. * src/PeerInitiateConnectionCommand.cc
  3321. * src/ActivePeerConnectionCommand.cc
  3322. * src/BtNotInterestedMessage.cc
  3323. * src/DefaultBtMessageDispatcher.cc
  3324. * src/BtChokeMessage.cc
  3325. * src/BtRequestMessage.cc
  3326. * src/Peer.{h, cc}
  3327. * src/BtRegistry.h
  3328. * src/TrackerWatcherCommand.cc
  3329. * src/PeerReceiveHandshakeCommand.cc
  3330. * test/BtExtendedMessageTest.cc
  3331. * test/BtAllowedFastMessageTest.cc
  3332. * test/BtCancelMessageTest.cc
  3333. * test/DefaultPieceStorageTest.cc
  3334. * test/BtBitfieldMessageTest.cc
  3335. * test/BtHaveMessageTest.cc
  3336. * test/BtNotInterestedMessageTest.cc
  3337. * test/BtRequestMessageTest.cc
  3338. * test/PeerSessionResourceTest.cc
  3339. * test/DefaultBtMessageDispatcherTest.cc
  3340. * test/PeerTest.cc
  3341. * test/BtInterestedMessageTest.cc
  3342. * test/BtRejectMessageTest.cc
  3343. * test/BtChokeMessageTest.cc
  3344. * test/DefaultPeerStorageTest.cc
  3345. * test/BtHaveNoneMessageTest.cc
  3346. * test/BtHaveAllMessageTest.cc
  3347. * test/DefaultExtensionMessageFactoryTest.cc
  3348. * test/BtUnchokeMessageTest.cc
  3349. * test/DefaultBtMessageFactoryTest.cc
  3350. * test/HandshakeExtensionMessageTest.cc
  3351. * test/UTPexExtensionMessageTest.cc
  3352. * test/DefaultBtRequestFactoryTest.cc
  3353. * test/BtPieceMessageTest.cc
  3354. Removed typedef PeerStats.
  3355. * src/PeerStat.h
  3356. * src/SegmentMan.cc
  3357. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3358. Added std namespace to copy, remove_copy, back_inserter,
  3359. front_inserter.
  3360. * src/RequestGroupMan.cc
  3361. * src/DefaultPieceStorage.cc
  3362. * src/StreamFileAllocationEntry.cc
  3363. * src/BtFileAllocationEntry.cc
  3364. * src/RequestGroup.cc
  3365. * src/MetalinkEntry.cc
  3366. * src/DelegatingPeerListProcessor.cc
  3367. * src/DefaultBtRequestFactory.cc
  3368. * src/DefaultBtMessageDispatcher.cc
  3369. * src/version_usage.cc: Included <algorithm>
  3370. * src/main.cc
  3371. * src/MetalinkParserController.cc
  3372. * src/DefaultBtContext.cc
  3373. * src/DownloadEngineFactory.cc
  3374. * src/a2algo.h
  3375. Removed.
  3376. * test/StreamUriListParserTest.cc
  3377. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3378. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  3379. ActivePeerConnectionCommand when it is given and
  3380. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  3381. * src/ActivePeerConnectionCommand.{h, cc}
  3382. * src/BtSetup.cc
  3383. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3384. Only add socket to DownloadEngine's select routine when peer or
  3385. localhost is unchoked and interested. This lowers CPU usage a
  3386. little bit.
  3387. * src/PeerInteractionCommand.cc
  3388. * src/PeerAbstractCommand.{h, cc}
  3389. * src/BtInteractive.h
  3390. * src/DefaultBtInteractive.{h, cc}
  3391. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3392. Revert previous change because get_peers message is needed for
  3393. announce_peer anyway.
  3394. * src/DHTGetPeersCommand.cc
  3395. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3396. Request peers thought DHT only when download hasn't finished.
  3397. * src/DHTGetPeersCommand.cc
  3398. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3399. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  3400. * src/DHTBucketRefreshTask.{h, cc}
  3401. * src/DHTSetup.cc
  3402. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  3404. standard classes.
  3405. Included string.h where mem* function are used.
  3406. Added namespace aria2.
  3407. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3408. Create directory before saving DHT routing table.
  3409. Now ios::failure is now handled properly.
  3410. * src/DHTAutoSaveCommand.cc
  3411. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3412. Removed unnecessary cerr.
  3413. * src/DownloadEngine.cc
  3414. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3415. Catch exception inside DHTMessageReceiver::receiveMessage().
  3416. Log unknown message.
  3417. * src/DHTMessageReceiver.{h, cc}
  3418. * src/DHTMessageFactory.h
  3419. * src/DHTMessageFactoryImpl.{h, cc}
  3420. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  3421. * src/DHTInteractionCommand.cc
  3422. * src/DHTUnknownMessage.{h, cc}
  3423. * test/DHTUnknownMessageTest.cc
  3424. * test/MockDHTMessageFactory.h
  3425. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3426. Commented out ip address comparison because a host can have multiple
  3427. ip addresses and it is hard to predict the hostname is resolved into
  3428. which one.
  3429. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  3430. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. * po/Makefile.in: Removed since this is generated by configure.
  3432. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3433. Fixed compiler warning about redefinition of SIZE_MAX.
  3434. Use common.h instead of config.h directly here.
  3435. * src/Platform.{h, cc}
  3436. The check of ENABLE_NLS is made in gettext.h, so it is not required
  3437. here.
  3438. * common.h
  3439. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  3440. Updated gettext related files.
  3441. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  3442. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  3443. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3444. Added DHT functionality, compatible with mainline.
  3445. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  3446. You may need to specify entry point to DHT network using
  3447. --dht-entry-point. DHT uses UDP port to listen incoming message.
  3448. Use --dht-listen-port to specify port number. Make sure that your
  3449. firewall configuration can pass through UDP traffic to the port.
  3450. The routing table is saved in $HOME/.aria2/dht.dat.
  3451. * src/DHT*
  3452. * src/BNode.{h, cc}
  3453. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  3454. particular torrent.
  3455. * src/Data.cc: Rewritten ctor.
  3456. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  3457. --dht-entry-point.
  3458. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  3459. * src/RequestGroup.cc: Initialize DHT functionality. When download
  3460. ends, remove BtContext from DHTPeerAnnounceStorage.
  3461. * src/BtPortMessage.{h, cc}: Rewritten.
  3462. * src/message.h
  3463. * src/OptionHandlerImpl.cc
  3464. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  3465. --dht-entry-point.
  3466. * src/Dictionary.{h, cc} (remove): New function.
  3467. * src/prefs.h
  3468. * src/DefaultBtMessageFactory.h
  3469. * src/BtHandshakeMessage.cc
  3470. * src/ActivePeerConnectionCommand.cc
  3471. * src/SocketCore.{h, cc}: Added datagram socket support.
  3472. * src/DefaultBtMessageFactory.cc
  3473. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  3474. Create DHT commands.
  3475. * src/BtMessageFactory.h
  3476. * src/PeerMessageUtil.{h, cc}
  3477. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Fixed the bug that log file is not written when configuration file doesn't exist.
  3479. This is caused by using Logger class before LogFactory is not configured.
  3480. BUG #1875079
  3481. * src/option_processing.cc
  3482. Warning message "configuration doesn't exist" is only printed when --conf is
  3483. given.
  3484. * src/option_processing.cc
  3485. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3486. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  3487. ShaVisitor is now deprecated and slated to be removed.
  3488. * src/DefaultBtContext.cc
  3489. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3490. Externalize message to message.h
  3491. * src/Platform.cc
  3492. * src/message.h
  3493. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3494. Set default domain and default path to cookie.
  3495. * src/HttpResponse.cc
  3496. * src/CookieBox.{h, cc}
  3497. * src/CookieParser.{h, cc}
  3498. * test/CookieParserTest.cc
  3499. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3500. Added --no-conf and --conf-path command-line option.
  3501. --no-conf option disables loading aria2.conf file.
  3502. --conf-path option changes the configuration file path. The default
  3503. file path is $HOME/.aria2/aria2.conf
  3504. Added a warning message when the configuration file is not found.
  3505. * src/HelpItemFactory.cc
  3506. * src/option_processing.cc
  3507. * src/prefs.h
  3508. * src/usage_text.h
  3509. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3510. Added the message to inform users that other help categories are
  3511. available in -h option.
  3512. * src/version_usage.cc
  3513. * src/TagContainer.{h, cc}
  3514. * test/TagContainerTest.cc
  3515. * src/TaggedItem.{h, cc}
  3516. * test/TaggedItemTest.cc
  3517. * src/HelpItem.h
  3518. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3519. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  3520. from PiecedSegment's ctor.
  3521. Previously Piece::getAllMissingBlockIndexes() is called from
  3522. PiecedSegment() but it is rather expensive since only first element is
  3523. used.
  3524. * src/PiecedSegment.cc
  3525. * src/Piece.{h, cc}
  3526. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Rewritten get*Missing*Index functions. Now no need to allocate memory
  3528. each time these functions are called.
  3529. * src/BitfieldMan.{h, cc}
  3530. * test/BitfieldManTest.cc
  3531. * src/array_fun.h
  3532. * test/array_funTest.cc
  3533. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  3534. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  3535. filtered. Removed unnecessary cast to int32_t.
  3536. * src/BitfieldMan.{h, cc}
  3537. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3538. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  3539. payload length(4bytes) are received. This happens because lenbufLength
  3540. is not updated in this particular case and successive call of
  3541. receiveMessage() overwrites payload length with bytes recieved which
  3542. are payload body.
  3543. * src/PeerConnection.{h, cc}
  3544. * src/message.h
  3545. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3546. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  3547. peer if there are peers that have same ipaddr and port.
  3548. I've experiened segmentation fault and "pure virtual function was
  3549. called" error.
  3550. * src/Peer.h
  3551. * test/PeerTest.cc
  3552. * src/DefaultPeerStorage.cc
  3553. * test/DefaultPeerStorageTest.cc
  3554. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3555. Removed a call to isPowerOf() because it is no longer necessary here
  3556. and a request block is not always power of 2.
  3557. BUG#1866924
  3558. * src/PeerMessageUtil.cc (checkLength)
  3559. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3560. Fixed the bug that always first found Segment is removed from
  3561. usedSegmentEntries. Removed unused functions.
  3562. * src/SegmentMan.{h, cc}
  3563. * test/SegmentManTest.cc
  3564. Fixed the bug that ServerHost is not removed.
  3565. * src/RequestGroup.cc
  3566. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Fixed the bug that SegmentMan::completeSegment() is not called
  3568. even if Segment is complete when --lowest-speed-limit is enabled.
  3569. BUG#1864525
  3570. * src/DownloadCommand.{h, cc}
  3571. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3572. Fixed: hash algorithm 'sha1' is always used.
  3573. * src/DownloadCommand.cc (validatePieceHash)
  3574. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Added --enable-peer-exchange command-line option.
  3576. * src/OptionHandlerFactory.cc
  3577. * src/HelpItemFactory.cc
  3578. * src/option_processing.cc
  3579. * src/usage_text.h
  3580. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3581. Move extension from BtRuntime to ExtensionMessageFactory, because
  3582. extension can be specified per peer, not per torrent.
  3583. * src/DefaultBtInteractive.cc
  3584. * src/BtRuntime.h
  3585. * src/ExtendedMessagingAware.h
  3586. * src/ExtensionMessageFactory.h
  3587. * src/DefaultExtensionMessageFactory.cc
  3588. * test/DefaultExtensionMessageFactoryTest.cc
  3589. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Added categorized option help. Specify category using --help option.
  3591. Also added the ability to search options in forward match.
  3592. * src/HelpItem.{h, cc}
  3593. * test/HelpItemTest.cc
  3594. * src/HelpItemFactory.{h, cc}
  3595. * src/TagContainer.{h, cc}
  3596. * test/TagContainerTest.cc
  3597. * src/option_processing.cc
  3598. * src/prefs.h
  3599. * src/TaggedItem.{h, cc}
  3600. * test/TaggedItemTest.cc
  3601. * src/version_usage.cc
  3602. * src/help_tags.h
  3603. * src/usage_text.h
  3604. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3605. Fixed segmentation fault when bad torrent metainfo is parsed.
  3606. Added dynamic_cast properly to detect the misconfiguration of metainfo
  3607. and then throw exception or skip it.
  3608. * src/DefaultBtContext.{h, cc}
  3609. * test/DefaultBtContextTest.cc
  3610. * src/AnnounceList.cc
  3611. * src/CompactPeerListProcessor.cc
  3612. * src/message.h
  3613. * src/DefaultBtAnnounce.{h, cc}
  3614. * test/DefaultBtAnnounceTest.cc
  3615. * src/BencodeVisitor.cc
  3616. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3617. Added missing "B"(=Byte). So now the message looks like this:
  3618. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  3619. * src/message.h (MSG_SHARE_RATIO_REPORT)
  3620. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3621. Show the seed ratio after torrent downloads.
  3622. For example, after torrent download completed and --seed-time and
  3623. --seed-ratio conditions are fulfilled, following message is printed
  3624. right after "Download complete: .....":
  3625. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  3626. * src/RequestGroupMan.cc
  3627. * src/RequestGroup.{h, cc}
  3628. * src/message.h
  3629. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3630. Remove a defunct control file. A defunct control file means that while
  3631. it exists, but the corresponding download file is missing.
  3632. After its removal, a download restarts from the beginning.
  3633. * src/RequestGroup.cc
  3634. * src/message.h
  3635. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. Allocate bitfield in Peer when it is really used. More specifically,
  3637. bitfield in Peer is allocated after the connection is established and
  3638. deallocated when the connection is dropped.
  3639. Since 2 parameters(piece length and total length) was removed from the
  3640. constructor of Peer class, many test classes were modified accordingly.
  3641. See svn log for more detailed information.
  3642. * src/PeerInteractionCommand.cc
  3643. * src/CompactPeerListProcessor.cc
  3644. * src/Peer.cc
  3645. * src/DefaultPeerListProcessor.cc
  3646. * src/PeerListenCommand.cc
  3647. * src/PeerReceiveHandshakeCommand.cc
  3648. Fixed memory leak
  3649. * src/Piece.cc
  3650. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  3652. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  3653. command-line options.
  3654. * src/option_processing.cc
  3655. * src/ActivePeerConnectionCommand.cc
  3656. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. Send have message to peer if it already has the piece.
  3658. * src/BtHaveMessage.{h, cc}
  3659. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3660. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  3661. port.
  3662. * src/DefaultPeerStorage.{h, cc}
  3663. * test/DefaultPeerStorageTest.cc
  3664. * src/HandshakeExtensionMessage.cc
  3665. * test/HandshakeExtensionMessageTest.cc
  3666. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  3667. * src/PeerStorage.h
  3668. * test/MockPeerStorage.h
  3669. * src/PeerListenCommand.cc
  3670. * src/PeerReceiveHandshakeCommand.cc
  3671. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3672. Added --metalink-enable-unique-protocol option.
  3673. * src/Metalink2RequestGroup.cc
  3674. * src/option_processing.cc
  3675. * src/prefs.h
  3676. * src/version_usage.cc
  3677. * doc/aria2c.1.txt
  3678. * doc/aria2c.1
  3679. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3680. Allow a peer in incomingPeer to be added peers.
  3681. * src/DefaultPeerStorage.cc
  3682. * test/DefaultPeerStorageTest.cc
  3683. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  3685. I could reproduce this bug in following procedure:
  3686. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  3687. 2. Restart aria2.
  3688. 3. You see the download stopped around 99%.
  3689. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  3690. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  3691. If timeout is reached, then _nextCommand is unused and it may contains
  3692. segments and they won't be canceled. Actually, timeout is not needed
  3693. here because if the server dropped connection, then retry is made.
  3694. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3695. Added uTorrent compatible Peer Exchange.
  3696. * src/BencodeVisitor.{h, cc}
  3697. * test/BencodeVisitorTest.cc
  3698. * src/BtConstants.h
  3699. * src/BtContext.h: Added 'private' flag.
  3700. * src/BtExtendedMessage.{h, cc}
  3701. * test/BtExtendedMessageTest.cc
  3702. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  3703. reserved field.
  3704. * test/BtHandshakeMessageTest.cc
  3705. * src/BtMessageFactory.h
  3706. * src/BtRegistry.h
  3707. * src/BtRuntime.h: This class holds default extension message IDs for
  3708. aria2. By default, aria2 uses ID 8 for ut_pex.
  3709. * src/DefaultBtContext.cc
  3710. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  3711. When it is true, aria2 enables ut_pex. This value is set by
  3712. PeerInteractionCommand.
  3713. * src/DefaultBtMessageFactory.{h, cc}
  3714. * test/DefaultBtMessageFactoryTest.cc
  3715. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  3716. handling to DefaultBtInteractive class.
  3717. * src/DefaultExtensionMessageFactory.{h, cc}
  3718. * test/DefaultExtensionMessageFactoryTest.cc
  3719. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  3720. the container(peers and incomingPeers. The equality is determined by
  3721. Peer::id).
  3722. * test/DefaultPeerStorageTest.cc
  3723. * src/ExtensionMessage.h
  3724. * test/MockExtensionMessage.h
  3725. * src/ExtensionMessageFactory.h
  3726. * test/MockExtensionMessageFactory.h
  3727. * src/HandshakeExtensionMessage.{h, cc}
  3728. * test/HandshakeExtensionMessageTest.cc
  3729. * src/MetaEntry.h
  3730. * src/Peer.{h, cc}
  3731. * src/PeerInteractionCommand.cc
  3732. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  3733. addIncomingPeer.
  3734. * src/PeerMessageUtil.{h, cc}
  3735. * src/PeerObject.h
  3736. * src/UTPexExtensionMessage.{h, cc}
  3737. * test/UTPexExtensionMessageTest.cc
  3738. * src/message.h
  3739. * src/prefs.h
  3740. Fixed the bug that returns incomplete data when it contains null
  3741. character. A convenient constructor was also added.
  3742. * src/Data.{h, cc}
  3743. Rewritten.
  3744. * src/CompactPeerListProcessor.cc
  3745. Fixed typos.
  3746. * src/message.h
  3747. * src/MetaFileUtil.cc
  3748. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Added "Status Legend" label to the explanation text of 'stat' in
  3750. download result and moved it to the last. BUG#1848214
  3751. * src/RequestGroupMan.cc
  3752. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  3754. * src/Makefie.am
  3755. * test/Makefile.am
  3756. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Fixed the bug that prevents aria2 from loading cookie file when expire
  3758. value is greater than 2^31-1. BUG#1851066
  3759. * src/CookieBoxFactory.cc
  3760. * test/CookieBoxFactoryTest.cc
  3761. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3762. Fixed possible memory leak when an exception is thrown.
  3763. * src/XML2SAXMetalinkProcessor.cc
  3764. Added Expat support. If both libxml2 and Expat are installed, then
  3765. libxml2 is used by default.
  3766. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  3767. ExpatMetalinkProcessor according to the configuration.
  3768. * src/ExpatMetalinkProcessor.{h, cc}
  3769. * src/main.cc: Removed libxml2 specific header and init/free function.
  3770. * src/MetalinkProcessorFactory.{h, cc}
  3771. * src/MetalinkHelper.cc
  3772. * src/Metalinker.h: Removed unnecessary libxml2 header.
  3773. * src/MetalinkProcessor.h
  3774. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  3775. MetalinkProcessorTest is used instead.
  3776. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  3777. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  3778. MetalinkProcessorFactory::newInstance().
  3779. * m4/libexpat.m4
  3780. * configure.ac: Added configuration options for libexpat.
  3781. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3782. Disabled -s option in metalink download.
  3783. * src/Metalink2RequestGroup.cc
  3784. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. If several protocols are available for a mirror in metalink file,
  3786. aria2 now use one of them. --metalink-preferred-protocol option was
  3787. added to specify the preference of protocol.
  3788. * src/AbstractCommand.cc
  3789. * src/OptionHandlerFactory.cc
  3790. * src/ServerHost.{h, cc}
  3791. * src/Metalink2RequestGroup.cc
  3792. * src/RequestGroup.{h, cc}
  3793. * test/RequestGroupTest.cc
  3794. * src/option_processing.cc
  3795. * src/prefs.h
  3796. * src/HttpResponseCommand.cc
  3797. * src/MetalinkResource.{h, cc}
  3798. * src/FtpNegotiationCommand.cc
  3799. * src/MetalinkEntry.{h, cc}
  3800. * src/MetalinkEntryTest.cc
  3801. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3802. Code cleanup and added debug log.
  3803. * src/PeerConnection.cc
  3804. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Compiler error fix: applied the patch by Tiziano Mueller
  3806. * src/RequestGroup.cc
  3807. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. Fixed the bug: only first announce URL is tried in AnnounceTier,
  3809. in stopped and completed event.
  3810. * src/AnnounceList.{h, cc}
  3811. * test/AnnounceListTest.cc
  3812. * src/DefaultBtAnnounce.cc
  3813. * test/DefaultBtAnnounceTest.cc
  3814. Sorted URLs.
  3815. * test/Metalink2RequestGroupTest.cc
  3816. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3817. Removed unnecessary string copy. Updated doc and corrected indentation.
  3818. * src/Base64.cc
  3819. Fixed compilation warnings
  3820. * test/DataTest.cc
  3821. * test/HttpRequestTest.cc
  3822. * test/MetaFileUtilTest.cc
  3823. * test/RequestTest.cc
  3824. * Release 0.12.0
  3825. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Updated translations
  3827. * po/{de,fr,ja,nl,ru}.po
  3828. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  3829. translations. Many thanks to translators.
  3830. * po/{ca,es,it,pt_BR,sv}.po
  3831. * po/LINGUAS
  3832. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Added a notice about URL
  3834. * src/version_usage.cc
  3835. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  3836. Fixed the bug#1845750; CTRL+C does not stop torrent.
  3837. aria2 repeatedly sends stopped request when tracker returns error code.
  3838. * src/AnnounceList.cc
  3839. * test/AnnounceListTest.cc
  3840. * src/AnnounceTier.h
  3841. Added a message when ctrl-c is hit.
  3842. Now second ctrl-c is also handled in signal handler.
  3843. * src/RequestGroupMan.{h, cc}
  3844. * src/RequestGroup.{h, cc}
  3845. * src/MultiUrlRequestInfo.cc
  3846. * src/DownloadEngine.cc
  3847. * src/TrackerWatcherCommand.cc
  3848. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3849. Code cleanup
  3850. * src/Base64.cc (encode)
  3851. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3852. Changed Direct/IO enable/disable procesure in file allocation routine.
  3853. * src/SingleFileAllocationIterator.cc
  3854. (SingleFileAllocationIterator):
  3855. Disable directIO if offset is not multiple of 512.
  3856. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  3857. * src/MultiFileAllocationIterator.cc (allocateChunk):
  3858. Enable created SingleFileAllocationIterator's directIO.
  3859. * src/FileAllocationEntry.cc
  3860. (FileAllocationEntry): Enable directIO here.
  3861. (~FileAllocationEntry): Disable directIO here.
  3862. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  3864. * src/Peer.{h, cc}
  3865. * src/DefaultPieceStorage.cc
  3866. * test/DefaultPieceStorageTest.cc
  3867. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3868. Rewritten direct I/O support routine
  3869. * src/SingleFileAllocationIterator.cc
  3870. * src/MultiDiskAdaptor.{h, cc}
  3871. * src/ByteArrayDiskWriter.h
  3872. * src/AbstractSingleDiskAdaptor.h
  3873. * src/AbstractDiskWriter.cc
  3874. * src/DefaultPieceStorage.cc
  3875. * src/DiskWriter.h
  3876. * src/BinaryStream.h
  3877. * src/IteratableChunkChecksumValidator.cc
  3878. * src/IteratableChecksumValidator.cc
  3879. * src/CheckIntegrityEntry.cc
  3880. * src/FileAllocationEntry.cc
  3881. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3882. Fixed typo
  3883. * src/version_usage.cc
  3884. Updated doc
  3885. * doc/aria2c.1.txt
  3886. * doc/aria2c.1
  3887. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3888. Fixed compile error without message digest support.
  3889. * src/FileMetalinkParserState.cc
  3890. * src/MetalinkParserController.{h, cc}
  3891. * test/XML2SAXMetalinkProcessorTest.cc
  3892. * test/MetalinkParserControllerTest.cc
  3893. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3894. Enable direct I/O support in checksum checking.
  3895. * src/IteratableChunkChecksumValidator.{h, cc}
  3896. * test/IteratableChunkChecksumValidatorTest.cc
  3897. * src/CheckIntegrityEntry.cc
  3898. * src/PieceHashCheckIntegrityEntry.cc
  3899. * src/IteratableChecksumValidator.{h, cc}
  3900. * src/BtCheckIntegrityEntry.cc: Added doc.
  3901. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3902. Added --allow-piece-length-change option.
  3903. * src/DefaultBtProgressInfoFile.cc
  3904. * test/DefaultBtProgressInfoFileTest.cc
  3905. * src/OptionHandlerFactory.cc
  3906. * src/option_processing.cc
  3907. * src/prefs.h
  3908. * src/version_usage.cc
  3909. * doc/aria2c.1.txt
  3910. * doc/aria2c.1
  3911. Fixed: duplicated result entry appears when exception is thrown in
  3912. RequestGroup::createInitiateConnectionCommand().
  3913. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  3914. Add RequestGroup to _requestGroup after RequetGroup::
  3915. createInitiateConnectionCommand() succeeds.
  3916. Externalized message
  3917. * src/XML2SAXMetalinkProcessor.cc
  3918. * src/message.h
  3919. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Forced download abort when received negative response from http/ftp
  3921. server.
  3922. * src/HttpResponseCommand.cc
  3923. * src/FtpNegotiationCommand.cc
  3924. * src/HttpResponse.cc
  3925. * src/FtpConnection.cc
  3926. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  3928. the predecessor, Xml2MetalinkParser class.
  3929. I tested them against 94KB metalink file with 1234 chunk checksums.
  3930. The new one parsed it in 22msec, while it took 6000msec with old one.
  3931. * src/XML2SAXMetalinkProcessor.{h, cc}
  3932. * test/XML2SAXMetalinkProcessorTest.cc
  3933. * src/MetalinkParserController.{h, cc}
  3934. * test/MetalinkParserControllerTest.cc
  3935. * src/MetalinkParserState.h: Also added 16 subclasses.
  3936. * src/main.cc
  3937. * src/Metalink2RequestGroup.cc
  3938. * src/MetalinkHelper.cc
  3939. * src/MetalinkEntry.cc
  3940. * src/ChunkChecksum.h
  3941. Rewritten Base64 class for better performance.
  3942. * src/Base64.{h, cc}
  3943. * test/Base64Test.cc
  3944. * src/HttpRequest.cc
  3945. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3946. Fixed the bug#1841757: aria2 will connect to server to only get
  3947. file size.
  3948. * src/StreamFileAllocationEntry.cc
  3949. * src/option_processing.cc
  3950. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  3951. downloads.
  3952. * src/FtpNegotiationCommand.cc
  3953. Suppressed wrong message when finding PreDownloadHandler
  3954. * src/RequestGroup.cc
  3955. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3956. Updated usage
  3957. * src/version_usage.cc
  3958. Updated man page
  3959. * doc/aria2c.1.txt
  3960. * doc/aria2c.1
  3961. Updated po files
  3962. * po/aria2c.pot
  3963. * po/*.po
  3964. * po/*.gmo
  3965. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3966. Eliminated g++-4.2 warning
  3967. * src/DownloadHandlerConstants.{h, cc}
  3968. * src/Util.cc
  3969. * test/MetaFileUtilTest.cc
  3970. * test/PStringBuildVisitorTest.cc
  3971. Fixed bug: --check-integrity doesn't work for multi file torrent.
  3972. * src/RequestGroup.cc
  3973. * src/BtCheckIntegrityEntry.cc
  3974. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Fixed a2io.h
  3976. * src/a2io.h
  3977. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Added direct I/O support. The current implementation uses O_DIRECT,
  3979. which is not posix standard and is tested on linux 2.6.21.
  3980. Currently only file allocation uses direct I/O.
  3981. * src/SingleFileAllocationIterator.{h, cc}
  3982. * test/SingleFileAllocationIteratorTest.cc
  3983. * src/MultiFileAllocationIterator.{h, cc}
  3984. * test/MultiFileAllocationIteratorTest.cc
  3985. * src/BinaryStream.h
  3986. * src/DiskWriter.h
  3987. * src/AbstractDiskWriter.{h, cc}
  3988. * src/ByteArrayDiskWriter.h
  3989. * src/DiskAdaptor.h
  3990. * src/AbstractSingleDiskAdaptor.{h, cc}
  3991. * src/MultiDiskAdaptor.{h, cc}
  3992. * src/FileAllocationEntry.cc
  3993. * src/Util.{h, cc}
  3994. * src/OptionHandlerFactory.cc
  3995. * src/prefs.h
  3996. * src/version_usage.cc
  3997. * src/option_processing.cc
  3998. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  3999. handleException.
  4000. * src/MultiFileAllocationIterator.cc
  4001. Added EINTR handling
  4002. * src/SocketCore.cc
  4003. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Updated usage
  4005. * src/version_usage.cc
  4006. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Applied Ross's patch for MinGW port.
  4008. * src/DownloadEngine.h
  4009. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4010. Set Content-Type to SingleFileDownloadContext when http response is
  4011. received.
  4012. * src/HttpResponseCommand.cc
  4013. * src/HttpResponse.{h, cc}
  4014. * test/HttpResponseTest.cc
  4015. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Rewritten to add content-type support.
  4017. * src/DownloadHandler.{h, cc}
  4018. * src/BtPostDownloadHandler.{h, cc}
  4019. * test/BtPostDownloadHandlerTest.cc
  4020. * src/MetalinkPostDownloadHandler.{h, cc}
  4021. * test/MetalinkPostDownloadHandlerTest.cc
  4022. * src/PostDownloadHandler.{h, cc}
  4023. * src/DownloadHandlerConstants.{h, cc}
  4024. * src/RequestGroup.cc
  4025. * src/HttpResponseCommand.cc
  4026. * src/FtpNegotiationCommand.cc
  4027. * src/SingleFileDownloadContext.{h, cc}
  4028. * src/RequestGroup.h
  4029. * src/RequestGroupCriteria.h
  4030. * src/ContentTypeRequestGroupCriteria.h
  4031. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4032. If it is give, metalink/torrent file is not written to the disk, but
  4033. just is kept in memory. Parsing is occurred on memory.
  4034. * src/MetalinkHelper.{h, cc}
  4035. * src/MetalinkProcessor.h
  4036. * src/Xml2MetalinkProcessor.{h, cc}
  4037. * test/Xml2MetalinkProcessorTest.cc
  4038. * src/DownloadHandlerFactory.{h, cc}
  4039. * test/DownloadHandlerFactoryTest.cc
  4040. * src/PreDownloadHandler.{h, cc}
  4041. * src/OptionHandlerFactory.cc
  4042. * src/DefaultBtContext.{h, cc}
  4043. * test/DefaultBtContextTest.cc
  4044. * src/version_usage.cc
  4045. * src/Metalink2RequestGroup.{h, cc}
  4046. * src/RequestGroup.{h, cc}
  4047. * src/a2functional.h
  4048. * test/a2functionalTest.cc
  4049. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4050. * src/OptionHandlerImpl.h
  4051. * src/prefs.h
  4052. * src/Util.{h, cc}
  4053. * test/UtilTest.cc
  4054. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4055. memory usage.
  4056. * src/RequestGroupMan.{h, cc}
  4057. * src/DownloadEngine.cc
  4058. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4059. WeakHandle to SharedHandle because WeakHandle could be null.
  4060. * src/RequestGroup.{h, cc}
  4061. * src/DownloadEngineFactory.cc
  4062. * src/DownloadResult.h
  4063. Set totalLength after download finished
  4064. * src/UnknownLengthPieceStorage.{h, cc}
  4065. Keep torrent file specified in metalink in memory.
  4066. * src/Metalink2RequestGroup.cc
  4067. * src/BtDependency.cc
  4068. * src/TrueRequestGroupCriteria.h
  4069. Fixed the bug: seekg is used where seekp should be used.
  4070. * src/ByteArrayDiskWriter.cc
  4071. * test/ByteArraydiskWriterTest.cc
  4072. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Fixed syntax error
  4074. * test/SequenceTest.cc
  4075. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4076. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4077. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4078. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4079. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4080. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4081. Added the check to see whether ares_host_callback accepts timeouts
  4082. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4083. * src/NameResolver.{h, cc}
  4084. * m4/libcares.m4
  4085. * configure.ac: Set C++ for language choice.
  4086. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4087. Fixed: compilation fails without c-ares/ares
  4088. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4089. Generate http/ftp commands only when download is incomplete.
  4090. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4091. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4092. Corrected typo. Examples are removed since they are available in man
  4093. page.
  4094. * src/version_usage.cc
  4095. Updated man page.
  4096. * doc/aria2c.1
  4097. * doc/aria2c.1.txt
  4098. * doc/makeman: Commented out sed command.
  4099. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4100. Throw DlAbortEx when a remote file is not found.
  4101. * src/HttpResponse.cc
  4102. * src/FtpNegotiationCommand.cc
  4103. * src/message.h
  4104. Overwrite an existing file if --allow-overwrite=true is given.
  4105. * src/RequestGroup.cc
  4106. Removed unused functions
  4107. * src/AbstractCommand.h
  4108. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4109. Removed 'extern' from 'extern typedef ...' in src/*.h
  4110. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Updated usage
  4112. * src/version_usage.cc
  4113. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. Trim announce URL
  4115. * src/DefaultBtContext.cc
  4116. * test/ShaVisitorTest.cc
  4117. Trim argument s. Give trimed s to exception constructor.
  4118. * src/Util.cc (parseInt)(parseLLInt)
  4119. * test/UtilTest.cc
  4120. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4121. Set precision back to 1.
  4122. * src/ConsoleStatCalc.cc (calculateStat)
  4123. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4124. Replaced strtol with Util::parseInt
  4125. * src/ChunkedEncoding.cc
  4126. * src/HttpConnection.cc
  4127. * src/CookieBoxFactory.cc
  4128. * src/ParameterizedStringParser.cc
  4129. * src/Util.cc
  4130. * test/UtilTest.cc
  4131. * test/OptionHandlerTest.cc
  4132. * src/Request.cc
  4133. Throw exception when empty string is given. The message for exception
  4134. changed.
  4135. * src/Util.cc (parseInt)(parseLLInt)
  4136. * src/message.h
  4137. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4139. set to 1.
  4140. * src/ConsoleStatCalc.cc (calculateStat)
  4141. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Preallocate non-requested file which is adjacent forward to requested
  4143. file('requested' files means the files given in --select-file option)
  4144. if they share a same piece.
  4145. This fixes long pause in the file system which doesn't support sparse
  4146. files like FAT32 while downloading.
  4147. * src/MultiFileAllocationIterator.{h, cc}
  4148. * test/MultiFileAllocationIteratorTest.cc
  4149. * src/FileEntry.{h, cc}
  4150. Removed unused _option.
  4151. * src/MultiDiskAdaptor.h
  4152. * test/MultiDiskAdaptorTest.cc
  4153. * src/DefaultPieceStorage.cc
  4154. Set the default value of --seed-ratio to 1.0.
  4155. If 0.0 is given, then seeding continues regardless of share ratio.
  4156. * src/version_usage.cc
  4157. * src/option_processing.cc
  4158. * src/BtSetup.cc
  4159. * doc/aria2c.1.txt
  4160. * doc/aria2c.1
  4161. Fixed: Selective download is not working in BitTorrent
  4162. * src/RequestGroup.cc
  4163. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4164. * src/PieceStorage.h
  4165. * test/MockPieceStorage.h
  4166. * src/UnknownLengthPieceStorage.h
  4167. * src/DefaultPieceStorage.{h, cc}
  4168. * src/Metalink2RequestGroup.cc
  4169. * src/RequestGroup.cc
  4170. * src/Sequence.h
  4171. * test/SequenceTest.cc
  4172. * src/IntSequence.h
  4173. * src/message.h
  4174. * src/Util.{h, cc}
  4175. * test/UtilTest.cc
  4176. Added new function 'parse' to catch exception thrown by subclass's
  4177. parseArg
  4178. * src/OptionHandler.h
  4179. * src/OptionParser.cc
  4180. * src/NameMatchOptionHandler.h
  4181. * src/OptionHandlerImpl.h
  4182. * test/OptionHandlerTest.cc
  4183. Added IntegerRangeOptionHandler. Used for --listen-port and
  4184. --select-file. Now --listen-port accepts range of port.
  4185. * src/OptionHandlerFactory.cc
  4186. * src/version_usage.cc
  4187. * src/OptionHandlerImpl.h
  4188. * src/option_processing.cc
  4189. * src/BtSetup.cc
  4190. * src/PeerListenCommand.{h, cc}
  4191. * doc/aria2c.1.txt
  4192. * doc/aria2c.1
  4193. Implemented operator< for Exception class to provide easy way to print
  4194. exception stack trace.
  4195. * src/Exception.{h, cc}
  4196. * src/main.cc
  4197. * src/option_processing.cc
  4198. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4199. * src/version_usage.cc
  4200. (showVersion): Reworked.
  4201. (showUsage): Added examples.
  4202. Removed Hint for total length and file name.
  4203. * src/Metalink2RequestGroup.cc
  4204. * src/RequestGroup.{h, cc}
  4205. * src/HttpResponseCommand.cc
  4206. * src/FtpNegotiationCommand.cc
  4207. Now --follow-torrent and --follow-metalink option work properly.
  4208. * src/RequestGroup.cc
  4209. Updated man page
  4210. * doc/aria2c.1.txt
  4211. * doc/aria2c.1
  4212. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4213. Removed.
  4214. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4215. Use Segment::operator==()
  4216. * src/HttpConnection.cc
  4217. * src/Segment.h
  4218. Updated usage
  4219. * src/version_usage.cc
  4220. Added EINTR treatment.
  4221. * src/SocketCore.cc
  4222. * src/AbstractDiskWriter.cc
  4223. Rewritten.
  4224. * src/Util.cc (rangedFileCopy)
  4225. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Fixed typo.
  4227. * src/version_usage.cc
  4228. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4229. Implemented. Now -c option works fine.
  4230. * src/DefaultPieceStorage.cc (markPiecesDone)
  4231. * test/DefaultPieceStorageTest.cc
  4232. Removed.
  4233. * src/SegmentMan.{h, cc}
  4234. (markAllPiecesDone)
  4235. (markPieceDone)
  4236. Synchronized po files with
  4237. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  4238. * src/fr.po
  4239. * src/ru.po
  4240. * src/de.po
  4241. * src/ja.po
  4242. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4243. Added ifdef and some modifications to compile without BitTorrent,
  4244. Metalink, MessageDigest
  4245. support.
  4246. * src/PieceHashCheckIntegrityEntry.cc
  4247. * src/MetalinkEntry.h
  4248. * src/version_usage.cc
  4249. * src/main.cc
  4250. * src/DownloadEngine.{h, cc}
  4251. * src/Metalink2RequestGroup.cc
  4252. * src/Peer.cc
  4253. * src/RequestGroup.cc
  4254. * src/MetalinkHelper.cc
  4255. * test/DefaultPieceStorageTest.cc
  4256. * test/MetalinkPostDownloadHandlerTest.cc
  4257. * test/Metalink2RequestGroupTest.cc
  4258. Hide TOTAL SPD when all downloads complete.
  4259. * src/ConsoleStatCalc.cc
  4260. Log target system information.
  4261. * src/main.cc
  4262. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Now --metalink-location accepts a comma-deliminated list of locations.
  4264. * src/MetalinkEntry.{h, cc}
  4265. * test/MetalinkEntryTest.cc
  4266. * src/version_usage.cc
  4267. * src/Metalink2RequestGroup.cc
  4268. * src/Xml2MetalinkProcessor.cc
  4269. * test/Xml2MetalinkProcessorTest.cc
  4270. * doc/aria2c.1.txt
  4271. * doc/aria2c.1
  4272. * src/Util.cc (toUpper)(toLower): Rewritten.
  4273. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4274. Added the ability to detect duplicate download entry which is about to
  4275. download the same file other RequestGroup is downloading.
  4276. * src/RequestGroup.cc
  4277. * src/HttpResponseCommand.cc
  4278. * src/FtpNegotiationCommand.cc
  4279. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4280. Recalculates download progress when loading a control file,
  4281. if the piece length of DownloadContext is different from the one saved
  4282. in the control file. Currently in-flight pieces are ignored.
  4283. * src/DefaultBtProgressInfoFile.cc
  4284. * test/DefaultBtProgressInfoFileTest.cc
  4285. * src/Util.{h, cc}
  4286. * test/UtilTest.cc
  4287. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Do not rotate tiers in announce-list.
  4289. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  4290. AnnounceList::allTiersFailed() used instead to detect whether all
  4291. tiers are tried and failed.
  4292. * test/DefaultBtAnnounceTest.cc
  4293. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  4294. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  4295. * test/AnnounceListTest.cc
  4296. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  4297. clause. Catch RecoverableException instead of DlRetryEx instead.
  4298. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Implemented checksum validation feature(1 checksum for each file)
  4300. The validation takes place after the download.
  4301. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  4302. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  4303. * src/CheckIntegrityCommand.cc: Changed log message.
  4304. * src/Metalink2RequestGroup.cc: Set checksum to
  4305. SingleFileDownloadContext.
  4306. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  4307. PieceHashCheckIntegrity class.
  4308. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  4309. PieceHashCheckIntegrity class.
  4310. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  4311. * src/IteratableValidator.h: New class.
  4312. * src/message.h
  4313. * src/CheckIntegrityEntry.{h, cc}
  4314. * src/IteratableChunkChecksumValidator.{h, cc}
  4315. * src/SingleFileDownloadContext.h
  4316. * src/DownloadCommand.cc
  4317. --allow-overwrite=true is no longer needed to check file integrity
  4318. before download in BitTorrent download.
  4319. * src/RequestGroup.cc (getInitialCommand)
  4320. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  4321. throws exception.
  4322. * src/RequestGroupMan.cc (getInitialCommands)
  4323. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. urlencode the given url inside Request::parseUrl(...)
  4325. * src/Request.{h, cc}
  4326. * src/Util.{h, cc}
  4327. * test/RequestTest.cc
  4328. Removed #!metalink3! notation support because it is deleted from
  4329. the metalink specification.
  4330. * src/Request.{h, cc}
  4331. * test/RequestTest.cc
  4332. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4333. Don't connect server before checking file integrity at startup, if
  4334. filesize and output file path are known.
  4335. * src/AbstractCommand.cc
  4336. * src/StreamFileAllocationEntry.cc
  4337. * src/Metalink2RequestGroup.cc
  4338. * src/RequestGroup.{h, cc}
  4339. * src/HttpResponseCommand.cc
  4340. * src/FtpNegotiationCommand.cc
  4341. Added DownloadFailureException. If it is thrown, RequestGroup should
  4342. halt.
  4343. * src/AbstractCommand.cc
  4344. * src/DownloadFailureException.h
  4345. * src/RequestGroup.cc
  4346. Catch RecoverableException, instead of DlAbortEx.
  4347. * src/RequestGroupMan.cc
  4348. * src/FillRequestGroupCommand.cc
  4349. * src/MetaFileUtil.cc
  4350. * src/IteratableChunkChecksumValidator.cc
  4351. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  4352. getGID())
  4353. * src/CheckIntegrityCommand.cc
  4354. * src/message.h
  4355. Print gid instead of idx.
  4356. * src/RequestGroupMan.cc
  4357. Removed exception throwers declaration.
  4358. * src/DirectDiskAdaptor.{h, cc}
  4359. * src/SocketCore.{h, cc}
  4360. * src/MultiDiskAdaptor.{h, cc}
  4361. * src/HttpConnection.{h, cc}
  4362. * src/HttpResponse.{h, cc}
  4363. * src/DiskAdaptor.{h, cc}
  4364. * src/CopyDiskAdaptor.{h, cc}
  4365. * src/MultiDiskAdaptor.{h, cc}
  4366. * src/HttpHeaderProcessor.{h, cc}
  4367. * src/AbstractSingleDiskAdaptor.{h, cc}
  4368. * src/Util.{h, cc}
  4369. * test/UtilTest.cc
  4370. * src/DefaultDiskWriter.{h, cc}
  4371. * src/FtpConnection.{h, cc}
  4372. * src/AbstractDiskWriter.{h, cc}
  4373. Removed duplicate code.
  4374. * src/StreamCheckIntegrityEntry.cc
  4375. Removed unnecessary include.
  4376. * src/DiskWriter.h
  4377. Included Exception.h
  4378. * src/option_processing.cc
  4379. Included 2 files and added doc
  4380. * src/TrackerWatcherCommand.cc
  4381. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  4382. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4383. Changed CheckIntegrityEntry interface so that it can define
  4384. the action when all the chunk checksums are valid.
  4385. * src/CheckIntegrityEntry.h
  4386. * src/StreamCheckIntegrityEntry.{h, cc}
  4387. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  4388. are valid, then aira2 goes to seeding mode. Sometimes it is better
  4389. to exit rather than doing seeding. So, it would be good to toggle this
  4390. behavior.
  4391. * src/CheckIntegrityCommand.cc
  4392. * src/AbstractCommand.cc
  4393. * src/RequestGroup.cc
  4394. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Reflect the download length of in-flight pieces.
  4396. It makes the download length readout more precise.
  4397. * src/DefaultPieceStorage.{h, cc}
  4398. * test/DefaultPieceStorageTest.cc
  4399. * src/a2functional.h
  4400. * test/a2functionalTest.cc
  4401. Lower CPU load when --max-download-limit is used.
  4402. There is up and down in speed indicator when enabling
  4403. http-pipelining but a download goes well. I think the problem is that
  4404. because http-pipelining is enabled, DownloadCommand is created for
  4405. each segment and in its constructor, PeerStat::downloadStart() is
  4406. called. In PeerStat::downloadStart(), speed calculation object is
  4407. reseted, which makes download speed zero.
  4408. * src/DownloadCommand.cc
  4409. Rewritten using accumulate.
  4410. * src/RequestGroupMan.cc (calculateStat)
  4411. Code clearnup.
  4412. * src/FtpNegotiationCommand.cc
  4413. * src/HttpResponseCommand.cc
  4414. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. Fixed: Can not resume: aria2 reports download already finished.
  4416. * src/AbstractCommand.{h, cc}
  4417. * src/HttpResponseCommand.cc
  4418. * src/FtpNegotiateCommand.cc
  4419. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4420. Now a file is stored in the directory specified in .metalnk file
  4421. (file[@name]).
  4422. * src/Metalink2RequestGroup.cc
  4423. Create the directory structure when opening the file if it doesn't
  4424. exist.
  4425. * src/AbstractDiskWriter.cc
  4426. * src/Util.{h, cc}
  4427. * src/File.h
  4428. * test/UtilTest.cc
  4429. Removed file name comparison
  4430. * src/Metalink2RequestGroup.cc
  4431. * src/HttpResponseCommand.cc
  4432. Rewritten using Util::mkdirs()
  4433. * src/FileEntry.cc (setupDir)
  4434. * test/FileEntryTest.cc
  4435. Updated doc
  4436. * src/SingleFileDownloadContext.h
  4437. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Now SleepCommand dispatches nextCommand when halt is requested.
  4439. It avoids a possible long wait after hitting CTRL-C.
  4440. * src/SleepCommand.{h, cc}
  4441. * src/RequestGroupAware.{h, cc}
  4442. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  4444. to open listen port, then remove the port number from the tracker
  4445. request.
  4446. * src/DefaultBtAnnounce.cc
  4447. * test/DefaultBtAnnounceTest.cc
  4448. * test/MockPieceStorage.h
  4449. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  4450. them more testable.
  4451. * src/DefaultBtAnnounce.{h, cc}
  4452. * src/DefaultBtContext.{h, cc}
  4453. * src/Util.{h, cc}
  4454. * test/DefaultBtAnnounceTest.cc
  4455. * test/DefaultBtContextTest.cc
  4456. * test/UtilTest.cc
  4457. Added 'B' to upload bytes readout.
  4458. * src/ConsoleStatCalc.cc
  4459. Now the listen port for BitTorrent download is opened when it is
  4460. needed.
  4461. * src/DownloadEngineFactory.cc
  4462. * src/BtSetup.{h, cc}
  4463. * src/PeerListenCommand.{h, cc}
  4464. Now an exception thrown while parsing tracker response is now logged.
  4465. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  4466. called, which means no retry is made in this case, assuming a tracker
  4467. has a problem.
  4468. * src/TrackerWatcherCommand.cc
  4469. Fixed: downloading a file whose length is unkown fails.
  4470. * src/DownloadCommand.cc
  4471. Simplified prepareForNextSegment()
  4472. * src/DownloadCommand.cc
  4473. Updated
  4474. * po/POTFILES.in
  4475. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Re-implemented a file listing for Metalink, which was dropped while
  4477. http/ftp/torrent integration was being implemented.
  4478. * src/MetalinkHelper.{h, cc}: New class.
  4479. * test/MetalinkHelperTest.cc
  4480. * src/main.cc
  4481. * src/Metalink2RequestGroup.cc
  4482. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. Added the ability to display the detailed torrent file information.
  4484. Now -S option gives not only a file listing, but also total download
  4485. length, info hash, announce URI, piece length, the number of pieces,
  4486. and mode(single or multi-torrent).
  4487. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  4488. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  4489. KiB)
  4490. * test/UtilTest.cc
  4491. * src/main.cc
  4492. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4493. Added ftp://USER:PASSWD@Servername automatic parsing.
  4494. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  4495. _password. Recognize username and password in URI.
  4496. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  4497. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  4498. * src/RequestFactory.{h, cc}: Removed.
  4499. * src/AuthConfigFactory.{h, cc}: New class.
  4500. * src/FtpConnection.cc: Use AuthConfigFactory.
  4501. * src/HttpRequest.cc: Use AuthConfigFactory.
  4502. * test/HttpRequestTest.cc: Updated.
  4503. * test/RequestTest.cc: Updated.
  4504. * test/AuthConfigFactoryTest.cc: New class.
  4505. * test/RequestFactoryTest.cc: Removed.
  4506. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4507. Use RequestGroup::allDownloadFinished() to decide whether the control
  4508. file should be removed or saved.
  4509. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  4510. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  4511. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. Use File::renameTo()
  4513. * src/DefaultBtProgressInfoFile.cc
  4514. Added --no-file-allocation-limit command-line option.
  4515. * src/version_usage.cc
  4516. * src/option_processing.cc
  4517. * src/OptionHandlerFactory.cc
  4518. * src/RequestGroup.{h, cc}
  4519. * src/BtCheckIntegrityEntry.cc
  4520. * src/StreamCheckIntegrityEntry.cc
  4521. * src/prefs.h
  4522. * doc/aria2c.1.txt
  4523. * doc/aria2c.1
  4524. Now prealloc is the default value for --file-allocation option.
  4525. * src/version_usage.cc
  4526. * src/option_processing.cc
  4527. * doc/aria2c.1.txt
  4528. * doc/aria2c.1
  4529. Don't URL-encode user-agent.
  4530. * src/HttpRequest.cc
  4531. Updated translations
  4532. * po/LINGUAS: Added nl for Dutch translation.
  4533. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  4534. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  4535. * po/POTFILES.in: Updated.
  4536. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Added the ability to recognize url-list in a torrent file.
  4538. The retrieved URLs are attached to the corresponding FileEntry.
  4539. * src/DefaultBtContext.{h, cc}
  4540. * src/FileEntry.{h, cc}
  4541. * test/DefaultBtContextTest.cc
  4542. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  4544. after the download finishes.
  4545. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4546. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  4547. the data smaller than block length.
  4548. A block length can be specified by constructor's argument.
  4549. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  4550. Get a missing piece in the range of given FileEntry. This function is
  4551. not used in the program yet.
  4552. * src/Util.h: Added some macros.
  4553. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Added HTTP/1.1 keep alive and pipelining support.
  4555. See --enable-http-keep-alive and --enable-http-pipelining option.
  4556. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  4557. Segment.
  4558. * src/HttpDownloadCommand.{h, cc}
  4559. * src/OptionHandlerFactory.cc
  4560. * src/HttpConnection.{h, cc}
  4561. * src/version_usage.cc
  4562. * src/HttpInitiateConnectionCommand.cc
  4563. * src/FtpInitiateConnectionCommand.cc
  4564. * src/Segment.h
  4565. * src/HttpRequestCommand.{h, cc}
  4566. * src/option_processing.cc
  4567. * src/prefs.h
  4568. * src/HttpResponseCommand.cc
  4569. * src/SegmentMan.{h, cc}
  4570. * src/FtpNegotiateCommand.cc
  4571. * src/HttpProxyResponseCommand.cc
  4572. * src/Request.cc
  4573. * src/HttpRequest.cc
  4574. * src/DownloadCommand.cc
  4575. * test/HttpRequestTest.cc
  4576. * test/RequestTest.cc
  4577. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  4579. finished.
  4580. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  4582. catching it inside the method.
  4583. When no file entry is found in a metalink without querying user
  4584. preferences, throw the exception with the error message that suggests
  4585. metalink file is probably broken.
  4586. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  4587. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Fixed the bug that prevents remote Metalink/Torrent file from begin
  4589. processed.
  4590. * src/RequestGroupMan.cc (removeStoppedGroup)
  4591. Added debug message.
  4592. * src/BtPostDownloadHandler.cc
  4593. * src/MetalinkPostDownloadHandler.cc
  4594. * src/PostDownloadHandler.{h, cc}
  4595. * src/RequestGroup.cc
  4596. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4597. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  4598. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4599. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  4600. stops and there are any unfinished or in-progress downloads.
  4601. Added the legend of "stat".
  4602. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Throw exception when chunck checksum verification fails.
  4604. * src/DownloadCommand.cc (validatePieceHash): New function.
  4605. * src/PiecedSegment.{h, cc} (clear): New function.
  4606. * src/GrowSegment.{h, cc} (clear): New function.
  4607. * src/Segment.h (clear): New function.
  4608. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  4609. * test/SegmentTest.cc
  4610. * test/GrowSegmentTest.cc
  4611. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Do not send referer when redirected.
  4613. * src/Request.cc (redirectUrl)
  4614. * test/RequestTest.cc
  4615. * test/HttpRequestTest.cc
  4616. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4617. Implemented BitTorrent/http/ftp integrated download.
  4618. I've rewritten lots of files and now some headers have forward
  4619. class declarations to reduce compile time.
  4620. The implementation is extremely alpha stage, I recommend to use this
  4621. for testing purpose only.
  4622. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Fixed the compilation error on 64bit platform.
  4624. * test/HttpHeaderProcessorTest.cc
  4625. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. Merged Ross's patch that fixes compilation problem in MinGW
  4627. * test/DefaultBtProgressInfoFileTest.cc
  4628. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4629. Updated fr.po by sebone
  4630. * po/fr.po
  4631. Updated man page.
  4632. * doc/aria2c.1.txt
  4633. * Release 0.11.3
  4634. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  4636. failure in Metalink.
  4637. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Automatically save *.aria2 control file of http/ftp download in every
  4639. 60 seconds.
  4640. * src/AutoSaveCommand.{h, cc}: New class.
  4641. * src/TimeBasedCommand.{h, cc}: New class.
  4642. * src/DownloadEngineFactory.cc (newConsoleEngine)
  4643. Disable parameterized URI support by default. Added -P option to
  4644. enable the feature.
  4645. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  4646. * src/OptionHandlerFactory.cc
  4647. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  4648. Updated Japanese translation.
  4649. * po/ja.po
  4650. Updated man page.
  4651. * doc/aria2c.1.txt
  4652. * Release 0.11.3-rc
  4653. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4654. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  4655. it is successful, then renamed to *.aria2.
  4656. This prevents *.aria2 file from being truncated or corrupted when
  4657. file system becomes out of space.
  4658. * src/DefaultBtProgressInfoFile.cc (save)
  4659. * src/SegmentMan.cc (save)
  4660. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  4661. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4662. Reduced the fragmentation of bitfield in http/ftp download.
  4663. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  4664. * test/BitfieldManTest.cc
  4665. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4666. Added the ability to disable segmented download in .metalink.
  4667. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  4668. 'url' tag.
  4669. * src/MetalinkEntry.{h, cc}
  4670. * src/RequestResource.{h, cc}
  4671. * src/MetalinkRequestInfo.cc
  4672. * src/Xml2MetalinkProcessor.cc
  4673. * test/Xml2MetalinkProcessorTest.cc
  4674. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Added parameterized URI support.
  4676. * src/main.cc: -Z option added.
  4677. * src/OptionHandlerFactory.cc
  4678. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  4679. * src/PStringDatum.h: New class.
  4680. * src/PStringSegment.{h,cc}: New class.
  4681. * src/PStringNumLoop.h: New class.
  4682. * src/PStringSelect.h: New class.
  4683. * src/NumberDecorator.h: New class.
  4684. * src/FixedWidthNumberDecorator.h: New class.
  4685. * src/AlphaNumberDecorator.h: New class.
  4686. * src/PStringVisitor.h: New class.
  4687. * src/PStringBuildVisitor.{h,cc}: New class.
  4688. * src/ParameterizedStringParser.{h,cc}: New class.
  4689. * src/Util.{h,cc}
  4690. (isNumber): New function.
  4691. (isLowercase): New function.
  4692. (isUppercase): New function.
  4693. (alphaToNum): New function.
  4694. * test/ParameterizedStringParserTest.cc: New class.
  4695. * test/AlphaNumberDecoratorTest.cc: New class.
  4696. * test/PStringBuildVisitorTest.cc: New class.
  4697. * test/UtilTest.cc
  4698. (testIsNumber): New function.
  4699. (testIsLowercase): New function.
  4700. (testIsUppercase): New function.
  4701. (testAlphaToNum): New function.
  4702. Added '\n' after the error message
  4703. * src/RequestInfo.h (printDownloadAbortMessage)
  4704. Added auto file renaming feature in http(s)/ftp download.
  4705. * src/main.cc: Added --auto-file-renaming command-line option.
  4706. * src/OptionHandlerFactory.cc
  4707. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  4708. * src/RequestGroup.{h, cc}
  4709. (shouldCancelDownloadForSafety): Rewritten
  4710. (tryAutoFileRenaming): New function.
  4711. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  4712. * src/HttpResponseCommand.cc
  4713. (executeInternal): Removed the call to RequestGroupMan::
  4714. isSameFileBeingDownloaded()
  4715. * src/FtpNegotiateCommand.cc
  4716. (recvSize): Removed the call to RequestGroupMan::
  4717. isSameFileBeingDownloaded()
  4718. * test/RequestGroupTest.cc: New class.
  4719. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  4721. IO.
  4722. * src/DefaultBtProgressInfoFile.cc
  4723. * src/MetaFileUtil.cc
  4724. * src/SimpleLogger.cc
  4725. * src/SegmentMan.cc
  4726. * src/Util.cc
  4727. * src/Platform.cc
  4728. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  4730. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Avoid sparse files if possible, because VFAT32 doesn't support it.
  4732. * src/DefaultDiskWriter.cc (initAndOpenFile)
  4733. Fixed the bug that prevents file allocation is not done when
  4734. dowloading multi-torrent file.
  4735. * src/AbstractDiskWriter.cc (openFile)
  4736. Increase the maximum number of -j option from 15 to 45.
  4737. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4738. Added fr.po, thanks to Charles Landemaine.
  4739. * po/fr.po
  4740. * po/LINGUAS
  4741. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4742. gcc 3.4.4 support:
  4743. * src/DefaultBtContext.cc: int32_t -> int
  4744. * src/main.cc: int -> int32_t, int32_t -> int
  4745. * src/messageDigest.h: uint32_t -> unsigned int
  4746. * src/NameResolver.h: int32_t -> int
  4747. * src/PeerConnection.cc: int -> int32_t
  4748. * src/SpeedCalc.cc: int32_t -> int
  4749. * src/TrackerUpdateCommand.h: int -> int32_t
  4750. * src/Util.cc: int32_t -> int
  4751. * src/Util.h: int32_t -> int
  4752. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  4753. * test/AnnounceListTest.cc: int -> int32_t
  4754. * test/ChunkedEncodingTest.cc: int -> int32_t
  4755. * test/DataTest.cc: int -> int32_t
  4756. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  4757. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  4758. * test/DefaultPieceStorageTest.cc: int -> int32_t
  4759. * test/FeatureConfigTest.cc: int -> int32_t
  4760. * test/MetalinkEntryTest.cc: int -> int32_t
  4761. * test/MockBtRequestFactory.h: int -> int32_t
  4762. * test/MockPieceStorage.h: int -> int32_t
  4763. * test/OptionTest.cc: int -> int32_t
  4764. * test/RequestTest.cc: int -> int32_t
  4765. * test/SegmentManTest.cc: int -> int32_t
  4766. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  4767. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4768. Move sleep functions to Util class:
  4769. * src/Util.cc
  4770. (sleep): New function.
  4771. (usleep): New function.
  4772. * src/DownloadCommand.cc: sleep -> Util::sleep
  4773. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  4774. MinGW build enhancements. The following files are added:
  4775. * src/timegm.{c,h}
  4776. Changes to support the above new files:
  4777. * configure.ac
  4778. * src/Makefile.am
  4779. * src/a2time.h
  4780. * src/Util.cc:
  4781. * src/strptime.c: Added support for %Z option.
  4782. Fixed MinGW non-blocking bug.
  4783. * src/SocketCore.cc
  4784. * src/HttpRequestCommand.cc
  4785. Miscellenous build fixes/enhancements.
  4786. * configure.ac: Added summary report.
  4787. * src/Platform.h: Tweaked #include's.
  4788. * src/a2netcompat.h: Tweaked #include's.
  4789. * src/strptime.h: Tweaked #include's.
  4790. * src/gai_strerror.c: Tweaked #include's.
  4791. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  4792. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  4793. * src/gettimeofday.h: Added HAVE_CONFIG_H
  4794. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Increased the initial connection size in BitTorrent download to 40.
  4796. * src/BtRuntime.h
  4797. Added the usage message of --peer-id-prefix option.
  4798. * src/main.cc
  4799. * Release 0.11.2
  4800. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. MessageDigestHelper is introduced in order to simplify the use
  4802. of message digest. Removed repeated code.
  4803. The message digest algorithm is now specified by string, like "sha1",
  4804. "md5".
  4805. * src/messageDigest.{h, cc}
  4806. * src/MessageDigestHelper.{h, cc}: New class.
  4807. * src/DefaultPieceStorage.cc
  4808. * src/DefaultBtContext.{h, cc}
  4809. (computeFastSet): New function.
  4810. (setInfoHash): Added for unit testing.
  4811. (setNumPieces): Added for unit testing.
  4812. * src/DefaultBtInteractive.cc
  4813. * src/BtPieceMessage.cc
  4814. * src/Peer.cc
  4815. * src/Checksum.h
  4816. * src/message.h
  4817. * src/IteratableChecksumValidator.h
  4818. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  4819. inside it.
  4820. * src/SegmentMan.{h, cc}
  4821. (checkIntegrity): Removed.
  4822. * src/IteratableChunkChecksumValidator.{h, cc}
  4823. * src/Util.h
  4824. (sha1Sum): Removed.
  4825. (simpleMessageDigest): Removed.
  4826. (fileChecksum): Removed.
  4827. (computeFastSet): Removed.
  4828. * src/ShaVisitor.cc
  4829. * src/ChunkChecksum.h
  4830. * src/DownloadCommand.cc
  4831. Removed messageDigest virtual functions.
  4832. * src/MultiDiskAdaptor.{h, cc}
  4833. * src/DiskAdaptor.h
  4834. * src/ByteArrayDiskWriter.h
  4835. * src/DiskWriter.h
  4836. * src/DiskAdaptorWriter.h
  4837. * src/AbstractSingleDiskAdaptor.{h, cc}
  4838. * src/AbstractDiskWriter.{h, cc}
  4839. Fixed comilation error when message digest is disabled.
  4840. * src/MetalinkEntry.{h, cc}
  4841. * src/MetalinkRequestInfo.cc
  4842. Removed srandom and random.
  4843. * src/SimpleRandomizer.h
  4844. Added size() virtual function to DiskAdaptor
  4845. * src/MultiDiskAdaptor.h
  4846. Fixed the bug that causes that files are not opened correctly in
  4847. multi-file torrent.
  4848. * src/TorrentRequestInfo.cc
  4849. * src/MultiDiskAdaptor.cc
  4850. Added SHA256 support
  4851. * src/messageDigest.cc
  4852. * src/Xml2MetalinkProcessor.cc
  4853. Show supported message digest algorithms
  4854. * src/main.cc
  4855. Updated contact info.
  4856. * src/main.cc
  4857. Applied Ross's patch
  4858. * src/a2netcompat.h
  4859. * src/main.cc
  4860. Fixed the bug that prevents a remote metalink from not being processed
  4861. even if '-o foo.metalink' is specified.
  4862. * src/MetalinkRequestInfo.cc
  4863. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Merged Dan's patch:
  4865. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  4866. Use va_copy to avoid core dump on amd64:
  4867. * src/SimpleLogger.cc
  4868. Updated contact info.
  4869. * src/main.cc
  4870. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  4871. digest is not available.
  4872. * src/MetalinkEntry.h
  4873. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Make a2netcompat.h include a2io.h to fix compilation error:
  4875. * src/a2netcompat.h
  4876. * src/SocketCore.cc: Removed include of a2io.h
  4877. * src/Util.cc: Removed include of a2io.h
  4878. Gather time related functions to a2time.h:
  4879. * src/a2time.h: New file.
  4880. * src/DefaultPeerStorage.cc
  4881. * src/SimpleLogger.cc
  4882. * src/Util.{h, cc}
  4883. * src/SimpleRandomizer.h
  4884. * src/TimeA2.{h,cc}
  4885. * src/DownloadCommand.cc
  4886. * src/main.cc
  4887. Removed #ifdef __MINGW32__ since gai_strerror is included in
  4888. a2netcompat.h:
  4889. * src/NameResolver.cc
  4890. Fixed compilation error without openssl:
  4891. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  4892. Added default block to suppress compiler warnings:
  4893. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  4894. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  4895. MinGW build enhancements. The following files are added:
  4896. * src/gai_strerror.{c,h}
  4897. * src/gettimeofday.{c,h}
  4898. Changes to support the above new files:
  4899. * configure.ac
  4900. * src/Makefile.am
  4901. * src/a2netcompat.h
  4902. * src/TimeA2.cc
  4903. * src/DefaultPeerStorage.cc
  4904. * src/NameResolver.cc: removed mingw_strerror() function.
  4905. * src/SocketCore.cc: removed mingw_strerror() function.
  4906. Miscellaneous MinGW build fixes.
  4907. * src/a2io.h: Use _lseeki64() instead of lseek()
  4908. * src/common.h
  4909. * src/DefaultFileAllocator.cc
  4910. * src/GlowFileAllocator.cc
  4911. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  4912. * src/NameResolver.cc
  4913. (callback): Changed int32_t to int.
  4914. (resolve): Changed int32_t to int.
  4915. * src/Platform.cc
  4916. * src/Platform.h
  4917. * test/MultiDiskWriterTest.cc
  4918. * test/PeerMessageUtilTest.cc
  4919. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  4920. Other enhancements and fixes.
  4921. * src/HttpRequestCommand.cc
  4922. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  4923. * src/SocketCore.cc:
  4924. (error): New function to abstract errno/WSAGetLastError().
  4925. (errorMsg): New function to abstract errno/WSAGetLastError().
  4926. (initiateSecureConnection): Added more detailed error reporting.
  4927. * src/SocketCore.h: Added private variable blocking, to allow
  4928. proper handling of OpenSSL psuedo-errors.
  4929. * src/message.h
  4930. (EX_SSL_INIT_FAILURE)
  4931. (EX_SSL_IO_ERROR)
  4932. (EX_SSL_PROTOCOL_ERROR)
  4933. (EX_SSL_UNKNOWN_ERROR)
  4934. (EX_SSL_CONNECT_ERROR)
  4935. (EX_SOCKET_BLOCKING)
  4936. (EX_SOCKET_NONBLOCKING)
  4937. (EX_SOCKET_UNKNOWN_ERROR)
  4938. * src/Util.cc
  4939. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  4940. reserved name.
  4941. (httpGMT): Fixed typo.
  4942. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. Merged Ross's win32 patch(manually)
  4944. In the course of merging, following files are added.
  4945. * src/strptime.{h,c}
  4946. * src/libgen.{h,c}
  4947. * src/inet_aton.{h,c}
  4948. * src/Platform.{h,cc}
  4949. * src/localtime_r.{h,c}
  4950. * src/getaddrinfo.{h,c}
  4951. I've gethered network related things, and put them to following file:
  4952. * src/a2netcompat.h
  4953. Also io related things are put to following file:
  4954. * src/a2io.h
  4955. Changed %lld to %s because mingw32 doesn't recognize %lld.
  4956. * src/message.h
  4957. (MSG_ALLOCATION_COMPLETED)
  4958. (EX_TOO_LARGE_FILE)
  4959. (EX_SIZE_MISMATCH)
  4960. (EX_FILE_OFFSET_OUT_OF_RANGE)
  4961. (EX_INVALID_CHUNK_CHECKSUM)
  4962. (EX_INVALID_RANGE_HEADER)
  4963. * src/FileAllocationCommand.cc
  4964. * src/HttpResponse.cc
  4965. * src/RequestGroup.cc
  4966. * src/MultiDiskAdaptor.cc
  4967. * src/OptionHandlerImpl.h
  4968. * src/HttpResponseCommand.cc
  4969. * src/FtpNegotiateCommand.cc
  4970. * src/IteratableChecksumValidator.cc
  4971. * src/SegmentMan.cc
  4972. * src/ChunkChecksumValidator.cc
  4973. Added Randomizer::getRandomNumber(long int)
  4974. * src/Randomizer.h (getRandomNumber)
  4975. * src/SimpleRandomizer.h (getRandomNumber)
  4976. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  4977. * src/Util.cc (randomAlpha): Use this new function.
  4978. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Converted int's to in32_t. long long int's are also converted to
  4980. int64_t
  4981. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Fixed the bug that prevents cookies from being sent to the server
  4983. if the domain of cookie is FQDN and starts with ".".
  4984. * src/Cookie.cc (match)
  4985. To add the ability to change peer id.
  4986. * src/DefaultBtContext.h
  4987. (_peerIdPrefix): New variable
  4988. (setPeerIdPrefix): New function.
  4989. * src/torrentRequestInfo.cc
  4990. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  4991. DefaultBtContext.
  4992. * src/main.cc (main): Added peer-id-prefix command-line option.
  4993. The usage message is not added yet.
  4994. * src/DefaultBtContext.cc
  4995. (generatePeerId): Use _peerIdPrefix.
  4996. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  4997. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Fixed the bug that prevents filename in content-disposition from
  4999. being retrieved when filename is not quoted.
  5000. * src/Util.cc (getContentDispositionFilename)
  5001. Fixed the bug that causes infinate loop and memory leak when file open
  5002. operation failed.
  5003. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5004. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Fixed the bug that causes segfault when all URIs specified are
  5006. unsupported.
  5007. * src/RequestGroupMan.cc (getInitialCommands)
  5008. Check if RequestGroup::createNextCommand() returns empty list of
  5009. commands.
  5010. * src/RequestGroup.cc (createNextCommand)
  5011. Change log level from info to error so that users can notice that
  5012. an error occurred.
  5013. Fixed the bug that causes segfault when a zero-sized file is
  5014. downloaded.
  5015. * src/BitfieldMan.cc (isAllBitSet)
  5016. Return true if bitfieldLength is 0.
  5017. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. * src/main.cc
  5019. (showUsage): Added 3 usage examples for metalink download.
  5020. Replace MetalinkChunkChecksum with ChunkChecksum.
  5021. * src/MetalinkChunkChecksum.h: Removed.
  5022. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5023. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5024. * src/Xml2MetalinkProcessor.cc
  5025. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5026. * src/MetalinkRequestInfo.cc (execute)
  5027. * Release 0.11.1
  5028. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. Reads URIs from stdin when "-i -" is specified.
  5030. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5031. * src/UriListParser.h, src/UriListParser.cc: New class.
  5032. * src/StreamUriListParser.h: New class.
  5033. * src/FileUriListParser.h: New class.
  5034. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5035. instead of UriFileListParser.
  5036. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5037. Made console readout more readable.
  5038. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5039. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5040. Fix the bug that causes -s option not to work.
  5041. * src/main.cc (main)
  5042. * src/a2algo.h: New file.
  5043. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Create directory structure specified in metalink file.
  5045. * src/RequestGroup.h, src/RequestGroup.cc
  5046. (initAndOpenFile): Create a directory to store files if it does not
  5047. exist.
  5048. (getDir): New function.
  5049. Added ETA and download speed for an individual file to readout.
  5050. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5051. * src/RequestGroup.h
  5052. (calculateDownloadSpeed): New function.
  5053. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Made -S option work with metalink file and provided selective download
  5055. to metalink.
  5056. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5057. (filename): Removed.
  5058. (file): New variable.
  5059. (size): Removed.
  5060. (operator=): Updated.
  5061. (getPath): New function.
  5062. (getLength): New function.
  5063. (toFileEntry): New function.
  5064. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5065. (execute): Use toStream.
  5066. (showFileEntry): Removed.
  5067. * src/MetalinkRequestInfo.h
  5068. (targetFiles): New variable.
  5069. (setTargetFiles): New variable.
  5070. * src/MetalinkRequestInfo.cc
  5071. (execute): Added the ability to print file information included in
  5072. a metalink file.
  5073. Added selective download mode to metalink.
  5074. * src/main.cc
  5075. (showUsage): Updated to denote that -S and --select-file options are
  5076. applicable to metalink.
  5077. * src/FileEntry.h
  5078. (operator=): New function.
  5079. (getBasename): New function.
  5080. (getDirname): New function.
  5081. * src/Util.h, src/Util.cc
  5082. (toStream): New function.
  5083. * src/Xml2MetalinkProcessor.cc: Updated.
  5084. Made aria2 work with metalink with directory structure.
  5085. * src/File.h, src/File.cc
  5086. (getBasename): New function.
  5087. (getDirname): New function.
  5088. * src/RequestGroup.h, src/RequestGroup.cc
  5089. (_topDir): New variable.
  5090. (setTopDir): New function.
  5091. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5092. Rewrote HTTP header parsing with stringstream.
  5093. * src/HttpConnection.h, src/HttpConnection.cc
  5094. (HttpRequestEntry): New class.
  5095. (headerBuf): Removed.
  5096. (headerBufLength): Removed.
  5097. (outstandingHttpRequests): Now its element type is
  5098. HttpRequestEntryHandle.
  5099. (findEndOfHeader): Removed.
  5100. (receiveResponse): Rewritten.
  5101. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5102. Updated doc for -j option to notice that it should be used with -i
  5103. option.
  5104. * src/main.cc (showUsage)
  5105. Removed unused classes.
  5106. * src/RequestInfo.h
  5107. (FileInfo): Removed.
  5108. (checksum): Removed.
  5109. (fileInfo): Removed.
  5110. (setChecksum): Removed.
  5111. (getChecksum): Removed.
  5112. (getFileInfo): Removed.
  5113. Use ISO units.
  5114. * src/ConsoleDownloadEngine.cc
  5115. * src/TorrentConsoleDownloadEngine.cc
  5116. * src/Util.cc (abbrevSize)
  5117. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. Added the default listening ports to the help message.
  5119. * src/main.cc (showUsage)
  5120. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Reduce the number of calls to gettimeofday to lower CPU load.
  5122. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5123. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5124. * src/Peer.h (calculateUploadSpeed): New function.
  5125. (calculateDownloadSpeed): New function.
  5126. * src/DefaultPeerStorage.cc
  5127. (CalculateStat): Added _now variable.
  5128. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5129. and Peer::calculateUploadSpeed(const struct timeval&)
  5130. Drop connection if no request or piece message is exchanged in
  5131. a certain interval.
  5132. * src/DefaultBtInteractive.h
  5133. (btRuntime): New variable.
  5134. (inactiveCheckPoint): New variable.
  5135. (checkActiveInteraction): New function.
  5136. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5137. request or piece message is received.
  5138. (checkActiveInteraction): New function.
  5139. (doInteractionProcessing): Call checkActiveInteraction.
  5140. Fixed the bug that causes remote Metalink and Torrent files are not
  5141. processed.
  5142. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5143. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Changed format of log file.
  5145. * src/SimpleLogger.cc
  5146. * Release 0.11.0
  5147. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. * src/AbstractCommand.cc
  5149. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5150. MSG_MAX_TRY from error to info.
  5151. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5152. * src/message.h
  5153. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5154. (MSG_DOWNLOAD_ABORTED): Added %s.
  5155. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5156. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5157. * src/PeerAbstractCommand.cc
  5158. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5159. * src/Request.h
  5160. (cookieBox): Made ShardHandle.
  5161. * src/RequestGroup.h, src/RequestGroup.cc
  5162. (createNextCommandWithAdj): New function.
  5163. * src/FileAllocationCommand.cc
  5164. (executeInternal): Use createNextCommandWithAdj().
  5165. * src/CheckIntegrityCommand.cc
  5166. (executeInternal): Use createNextCommandWithAdj().
  5167. Added --load-cookies command-option.
  5168. * src/OptionHandlerFactory.cc
  5169. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5170. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5171. Now aria2 can handle cookie's expiration date.
  5172. * src/Cookie.h (expires): Changed its type to time_t.
  5173. * src/main.cc: Added --load-cookies command-line option.
  5174. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5175. * src/Util.h, src/Util.cc (httpGMT): New function.
  5176. * src/Request.cc (Request): Initialize cookieBox using
  5177. CookieBoxFactory.
  5178. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5179. * src/CookieParser.h, src/CookieParser.cc: New class.
  5180. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5181. * src/HttpResponseCommand.cc
  5182. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5183. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5184. download.
  5185. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Added -j command-line option.
  5187. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5188. * src/main.cc
  5189. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5190. Rewritten using stringstream.
  5191. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5192. Rewritten using stringstream.
  5193. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5194. Make download size shown in MB, KB.
  5195. * src/ConsoleDownloadEngine.h (sendStatistics)
  5196. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5197. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Accept incoming connections if download rate is low.
  5199. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5200. (_lowestSpeedLimit): New variable.
  5201. (setLowestSpeedLimit): New function.
  5202. (execute): Accept incoming connections if download rate is low.
  5203. MAX_PEERS is ignored in this case.
  5204. Disable PREF_OUT in multiple concurrent download:
  5205. * src/RequestGroup.h, src/RequestGroup.cc
  5206. (setUserDefinedFilename): New function.
  5207. * src/DownloadEngineFactory.cc
  5208. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5209. concurrent download.
  5210. * src/DefaultSegmentManFactory.cc
  5211. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5212. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5214. Added its overloaded method.
  5215. * src/RequestGroup.h
  5216. (_numConcurrentCommand): New variable.
  5217. (setNumConcurrentCommand): New function.
  5218. * src/RequestGroup.cc
  5219. Abort download if same file is being downloaded concurrently.
  5220. * src/RequestGroup.h, src/RequestGroupMan.cc
  5221. (isSameFileBeingDownloaded): New function.
  5222. * src/HttpResponseCommand.cc (executeInternal)
  5223. * src/FtpNegotiateCommand.cc (recvSize)
  5224. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  5225. * main.cc: Added help message for -i option.
  5226. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5227. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  5228. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  5229. * src/MetalinkEntry.h
  5230. (checksum): Changed to ChecksumHandle
  5231. * src/MetalinkRequestInfo.cc
  5232. (checksum): Changed to ChecksumHandle
  5233. * src/File.cc
  5234. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  5235. * src/common.h
  5236. (DIR_OPEN_MODE): New definition
  5237. * src/RequestGroup.cc
  5238. (prepareForNextAction): Added an argument.
  5239. * src/message.h
  5240. (MSG_GOOD_CHECKSUM): New definition
  5241. (MSG_BAD_CHECKSUM): New definition
  5242. * src/HttpResponseCommand.cc
  5243. (handleDefaultEncoding): Continue download sequence in new
  5244. non-segmented download.
  5245. * src/FileAllocationEntry.h
  5246. (_nextDownloadCommand): New variable.
  5247. * src/DownloadCommand.cc
  5248. (prepareForNextSegment): Create ChecksumCommand if checksum is
  5249. available.
  5250. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  5251. * src/IteratableChecksumValidator.h,
  5252. src/IteratableChecksumValidator.cc: New class.
  5253. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  5254. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Change file mode to 666:
  5256. * src/common.h (OPEN_MODE): New definition.
  5257. * src/File.cc
  5258. * src/Util.cc
  5259. * src/Directry.cc
  5260. * src/AbstractDiskWriter.cc
  5261. Change the level of log message "download aborted" to debug:
  5262. * src/PeerAbstractCommand.cc (execute)
  5263. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  5264. * src/TrackerWatcherCommand.cc
  5265. (createCommand): Sleep some seconds after request failed.
  5266. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  5267. then abort tracker request.
  5268. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5269. * Added the simultaneous download feature.
  5270. * src/main.cc: Print "Exception caught: " when exception is caught.
  5271. Use CUIDCounter instead of BtRuntime::getNewCuid():
  5272. * src/ActivePeerConnectionCommand.cc
  5273. * src/PeerInteractionCommand.cc
  5274. * src/BtRuntime.h
  5275. (cuidCounter): Removed.
  5276. (getNewCuid): Removed.
  5277. * src/DownloadEngineFactory.cc
  5278. * src/PeerListenCommand.cc
  5279. * src/TrackerUpdateCommand.cc
  5280. * src/PeerInitiateConnectionCommand.cc
  5281. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. * src/PeerAbstractCommand.cc
  5283. (onAbort): Call PeerStorage::returnPeer()
  5284. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  5285. (incomingPeers): New variable.
  5286. (addIncomingPeer): New function.
  5287. (returnPeer): New function.
  5288. (onErasingPeer): New function.
  5289. (addPeer): push_back -> push_front
  5290. (getActivePeers): Rewritten.
  5291. (calculateStat): Rewritten.
  5292. * src/PeerStorage.h
  5293. (TransferStat::copy): New function.
  5294. (TransferStat::TransferStat): New function.
  5295. (TransferStat::operator=): New function.
  5296. (addIncomingPeer): New function.
  5297. (returnPeer): New function.
  5298. * src/PeerListenCommand.cc
  5299. (execute): Use PeerStorage::addIncomingPeer() instead of
  5300. Peer::addPeer().
  5301. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Connect to a peer actively when download speed is lower than specified
  5303. speed in torrent download:
  5304. * src/ActivePeerConnectionCommand.h: New class.
  5305. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. * src/HttpRequest.cc (createRequest): url-encode user-agent
  5307. * src/main.cc: Fixed the bug that prevents download if .netrc
  5308. doesn't exist.
  5309. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. To cache resolved hostname:
  5311. * src/AbstractCommand.h, src/AbstractCommand.cc
  5312. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  5313. Added dns cache.
  5314. * src/FtpInitiateConnectionCommand.cc
  5315. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  5316. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  5317. NameResolver working without ares.
  5318. * src/TorrentRequestInfo.cc
  5319. (execute): Don't cache dns in torrent download.
  5320. * src/HttpInitiateConnectionCommand.cc
  5321. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  5322. * src/DNSCache.h: New class.
  5323. * src/UrlRequestInfo.cc
  5324. (execute): Use dns cache.
  5325. In http request, suppress port number in http request header if port
  5326. is 80 or 443:
  5327. * src/HttpRequest.cc (getHostText): Suppress port number in http
  5328. request header if port is 80 or 443.
  5329. (createProxyRequest): Allways send port number.
  5330. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5331. To add the command-line option which disables netrc support:
  5332. * src/OptionHandlerFactory.cc
  5333. (createOptionHandlers): Added PREF_NO_NETRC.
  5334. * src/main.cc: Added -n option.
  5335. * src/prefs.h (PREF_NO_NETRC): New definition.
  5336. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  5337. V_TRUE.
  5338. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  5339. is V_FALSE. This may get configurable in the future release.
  5340. To clear peer's error status by time basis:
  5341. * src/PeerAbstractCommand.cc
  5342. (onAbort): Call Peer::startBadCondition().
  5343. * src/Peer.h, src/Peer.cc
  5344. (error): Removed.
  5345. (_badConditionStartTime): New variable.
  5346. (_badConditionInterval): New variable. Initialized to 10 seconds.
  5347. (startBadCondition): New function.
  5348. (isGood): New function.
  5349. * src/DefaultPeerStorage.cc
  5350. (addPeer): Use Peer::isGood().
  5351. (FindFinePeer): Use Peer::isGood().
  5352. Always include port number in http request header:
  5353. * src/HttpRequest.cc (getHostText): Always include port number in
  5354. http request header.
  5355. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. To the ability to read options from a config file:
  5357. * src/main.cc: Command-line parameter validation is delegated to
  5358. OptionHandler class.
  5359. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  5360. * src/Option.h, src/Option.cc (clear): New function.
  5361. * src/OptionParser.h, src/OptionParser.cc: New class.
  5362. * src/OptionHandler.h: New class.
  5363. * src/NameMatchOptionHandler.h: New class.
  5364. * src/OptionHandlerImpl.h: New classes.
  5365. * src/prefs.h: '_' -> '-'
  5366. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  5367. (FTP_PASV): New definition.
  5368. * src/Util.h, src/Util.cc (getRealSize): New function.
  5369. To disable netrc support if .netrc file does not have correct
  5370. permissions:
  5371. * src/File.h, src/File.cc (mode): New function.
  5372. To prevent confidential information to be logged:
  5373. * src/HttpConnection.h, src/HttpConnection.cc
  5374. (eraseConfidentialInfo): New function.
  5375. (sendRequest): Call eraseConfidentialInfo().
  5376. (sendProxyRequest): Call eraseConfidentialInfo().
  5377. * src/main.cc: Validate permissions of .netrc file.
  5378. To add --user-agent command-line option:
  5379. * src/main.cc: Added new command line option: --user-agent
  5380. * src/prefs.h (PREF_USER_AGENT): New definition.
  5381. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  5382. parameter to HttpRequest object.
  5383. * src/AbstractProxyRequestCommand.cc
  5384. (executeInternal): Set user-agent option parameter to HttpRequest
  5385. object.
  5386. Marged the patches from Dan Fandrich.
  5387. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Use filename and size from Metalink file instead of sending HEAD
  5389. request:
  5390. * src/UrlRequestInfo.h
  5391. (_filename): New variable.
  5392. (_totalLength): New variable.
  5393. (setTotalLength): New variable.
  5394. (setFilename): New variable.
  5395. * src/MetalinkRequestInfo.cc
  5396. (execute): Set filename and size to UrlRequestInfo
  5397. * src/UrlRequestInfo.cc
  5398. (execute): Use filename and size from Metalink instead of seding
  5399. HEAD request to servers.
  5400. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. To add the ability to resume downloading a partially downloaded file
  5402. which is downloaded from the beginning:
  5403. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  5404. takes this role.
  5405. * src/main.cc: Added -c option.
  5406. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  5407. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  5408. * src/prefs.h (PREF_CONTINUE): New definition.
  5409. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  5410. * src/DefaultDiskWriter.cc
  5411. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  5412. * src/AbstractDiskWriter.h
  5413. (glowFileAllocator): New variable.
  5414. * src/AbstractDiskWriter.cc
  5415. (openExistingFile): Now preallocate file space from the end of the
  5416. existing file if totalLength argument is specified and grater than 0.
  5417. * src/UrlRequestInfo.cc: If -c option is specified and the file
  5418. to download exists in local, continue the download of the file.
  5419. --allow-overwrite=true is assumed in this context.
  5420. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  5421. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  5422. Throw exception if --check-integrity=true is specified but chunk
  5423. checksums are not provided:
  5424. * src/UrlRequestInfo.cc
  5425. Do not print URLs to stdout:
  5426. * src/UrlRequestInfo.cc
  5427. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. * src/Request.h: Use AuthResolver to get authentication information.
  5429. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  5430. set to RequestFactory object.
  5431. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  5432. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  5433. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  5434. create Request object.
  5435. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  5436. To integrate Netrc into exsiting classes:
  5437. * src/Request.h
  5438. (_userDefinedAuthConfig): New variable.
  5439. (findNetrcAuthenticator): New function.
  5440. (segment): Removed.
  5441. (setUserDefinedAuthConfig): New function.
  5442. (resolveHttpAuthConfigItem): New function.
  5443. (resolveFtpAuthConfigItem): New function.
  5444. (resolveHttpProxyAuthConfigItem): New function.
  5445. * src/HttpRequest.h
  5446. (authConfig): Removed.
  5447. (proxyAuthConfig): Removed.
  5448. (setAuthConfig): Removed.
  5449. (setProxyAuthConfig): Removed.
  5450. * src/UrlRequest.h
  5451. (getHeadResult): Added a parameter: authConfigHandle
  5452. * src/common.h
  5453. (SingletonHolder.h): New include.
  5454. * src/main.cc
  5455. (Netrc.h): New include.
  5456. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  5457. Added initial value of PREF_NETRC_PATH.
  5458. Added the initialization of netrc.
  5459. * src/AuthConfig.h: New class.
  5460. * src/prefs.h
  5461. (PREF_NETRC_PATH): New definition.
  5462. * src/HttpAuthConfig.h: Removed.
  5463. * src/Netrc.cc
  5464. (getRequiredNextToken): New function.
  5465. (skipMacdef): New function.
  5466. (parse): Rewritten.
  5467. * src/Netrc.h
  5468. (getRequiredNextToken): New function.
  5469. (skipMacdef): New function.
  5470. * src/Util.h, src/Util.cc
  5471. (getHomeDir): New function.
  5472. * src/TrackerWatcherComand.cc
  5473. (createRequestCommand): Use AuthConfig.
  5474. * src/FtpConnection.cc
  5475. (sendUser): Use Request::resolveFtpAuthConfigItem().
  5476. (sendPass): Use Request::resolveFtpAuthConfigItem().
  5477. * src/Request.cc
  5478. (findNetrcAuthenticator): New function.
  5479. (resolveHttpAuthConfigItem): New function.
  5480. (resolveFtpAuthConfigItem): New function.
  5481. (resolveHttpProxyAuthConfigItem): New function.
  5482. * src/UrlRequestInfo.cc: Use AuthConfig.
  5483. * src/HttpRequest.cc
  5484. (createRequest): Use authConfig.
  5485. (getProxyAuthString): Use authConfig.
  5486. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  5487. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  5488. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. To reduce overhead to find commands whose socket is either
  5490. readable or writable in the download engine loop:
  5491. * src/Command.h, src/Command.cc
  5492. (STATUS): New enum.
  5493. (status): New variable.
  5494. (statusMatch): New function.
  5495. (setStatusActive): New function.
  5496. (setStatusInactive): New function.
  5497. * src/DownloadEngine.h, src/DownloadEngine.cc
  5498. (executeCommand): New function.
  5499. (run): Simplified.
  5500. (waitData): Call Command::setStatusActive() when command's socket is
  5501. readable or writable.
  5502. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. To handle Segment as SegmentHandle:
  5504. * src/AbstractCommand.cc (execute): Rewritten.
  5505. * src/SegmentMan.h: Segment -> SegmentHandle
  5506. Introducded HttpResponse class, HttpRequest class to improve code
  5507. extensiveness and make it clear:
  5508. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  5509. HttpResponse class.
  5510. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  5511. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  5512. * src/HttpConnection.cc: Contruction of http request were moved to
  5513. HttpRequest class.
  5514. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  5515. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  5516. * src/HttpAuthConfig.h: New class.
  5517. * src/Range.h: New class.
  5518. To make FtpTunnel{Request, Response}Command and
  5519. HttpProxy{Request, Response}Command derived from
  5520. AbstractProxy{Request, Response}Command:
  5521. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  5522. Derived from AbstractProxyRequestCommand class.
  5523. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  5524. Derived from AbstractProxyResponseCommand class.
  5525. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  5526. Derived from AbstractProxyRequestCommand class.
  5527. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  5528. Derived from AbstractProxyResponseCommand class.
  5529. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  5530. : New class.
  5531. * src/AbstractProxyResponseCommand.h,
  5532. src/AbstractProxyResponseCommand.cc: New class.
  5533. To add netrc support:
  5534. * src/Netrc.h, src/Netrc.cc: New class.
  5535. * src/Util.h, src/Util.cc (split): New function.
  5536. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  5537. "Content-Range" header instead of "Range" header.
  5538. * src/HttpHeader.h
  5539. (getStatus): Removed.
  5540. (setStatus): Removed.
  5541. * src/Segment.h
  5542. (getPositionToWrite): New function.
  5543. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. * src/HttpHeader.h
  5545. (Range.h): New include.
  5546. (status): New variable.
  5547. (HttpHeader): Initialized status with 0.
  5548. (getStatus): New function.
  5549. (setStatus): New function.
  5550. (getRange): New function.
  5551. (HttpHeaderHandle): New function.
  5552. * src/HttpHeader.cc
  5553. (getRange): New function.
  5554. * src/Request.h
  5555. (RequestWeakHandle): New definition.
  5556. * src/HttpConnection.h
  5557. (HttpConnectionHandle): New type definition.
  5558. * src/HttpConnection.cc
  5559. (receiveResponse): Set HTTP status to headers.
  5560. * src/main.cc
  5561. (showUsage): Fixed typo.
  5562. * src/Segment.h
  5563. (SegmentHandle): New type definition.
  5564. * src/BitfieldMan.h
  5565. (getMissingUnusedLength): New function.
  5566. * src/BitfieldMan.cc
  5567. (getMissingUnusedLength): New function.
  5568. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. To fix static initialization order problem:
  5570. * src/BitfieldManFactory.h
  5571. (defaultRandomizer): Removed.
  5572. (factory): New variable.
  5573. (getNewFactory): Removed.
  5574. (getFactoryInstance): New function.
  5575. (setDefaultRandomizer): Rewritten.
  5576. (getDefaultRandomizer): Rewritten.
  5577. * src/BitfieldManFactory.cc
  5578. (defaultRandomizer): Removed.
  5579. (factory): Initialized to 0.
  5580. (BitfieldManFactory): Initialized randomizer to 0.
  5581. * src/DefaultPieceStorage.cc
  5582. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  5583. * src/Peer.cc
  5584. (Peer): getNewFactory() -> getFactoryInstance()
  5585. * src/SegmentMan.cc
  5586. (initBitfield): getNewFactory() -> getFactoryInstance()
  5587. * src/Piece.cc
  5588. (Piece): getNewFactory() -> getFactoryInstance()
  5589. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. To fix the bug that causes crash on Max OS X:
  5591. * src/SimpleRandomizer.h
  5592. (getInstance): Create new instance if the static variable is null.
  5593. * src/SimpleRandomizer.cc
  5594. (randomizer): Initialized to 0.
  5595. * src/BitfieldManFactory.h
  5596. (getNewFactory): Removed the call to setRandomizer().
  5597. To fix the miscalculation of the range of checksum:
  5598. * src/BitfieldMan.h
  5599. (isBitSetOffsetRange): New function.
  5600. * src/BitfieldMan.cc
  5601. (isBitSetOffsetRange): New function.
  5602. * src/SegmentMan.cc
  5603. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  5604. Use bitfield->getBlockLength() instead of segment.segmentLength.
  5605. * Release 0.10.1
  5606. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. To lower CPU usage in BitTorrent download when --max-upload-limit
  5608. command-line option specified:
  5609. * src/DefaultBtMessageDispatcher.cc
  5610. (sendMessages): Calculate uploading speed only when current message
  5611. is uploading data and is not sent yet.
  5612. * src/DefaultPeerStorage.h
  5613. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  5614. * src/HttpResponseCommand.cc
  5615. (handleDefaultEncoding): Added the cast to int32_t to itos.
  5616. This fixes compile error in Soralis 10.
  5617. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. To fix segfault in Metalink download:
  5619. * src/UrlRequestInfo.h
  5620. (filename): Removed.
  5621. (totalLength): Removed.
  5622. (setTotalLength): Removed.
  5623. (setFilename): Removed.
  5624. * src/MetalinkRequestInfo.cc
  5625. (execute): Do not set filename and totalLength to reqInfo.
  5626. Set chunk checksum to reqInfo if it is not null.
  5627. * src/HttpResponseCommand.cc
  5628. (executeInternal): Fixed filename in log.
  5629. (handleDefaultEncoding): Removed the call to initBitfield() and
  5630. markAllPiecesDone().
  5631. (handleOtherEncoding): Added HEAD method handling.
  5632. * src/FtpNegotiateCommand.cc
  5633. (executeInternal): Added SEQ_HEAD_OK handling.
  5634. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  5635. return false.
  5636. * src/FtpNegotiateCommand.h
  5637. (SEQ_HEAD_OK): New definition.
  5638. * src/SegmentMan.cc
  5639. (initBitfield): Delete bitfield.
  5640. (isChunkChecksumValidationReady): Fixed the condition.
  5641. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  5642. works fine.
  5643. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. * src/Xml2MetalinkProcessor.h
  5645. (xpathExists): New function.
  5646. * src/Xml2MetalinkProcessor.cc
  5647. (xpathExists): New function.
  5648. Not to send HEAD request if filename and size are available in Metalink
  5649. file:
  5650. * src/UrlRequestInfo.h
  5651. (filename): New variable.
  5652. (totalLength): New variable.
  5653. (setTotalLength): New function.
  5654. (setFilename): New function.
  5655. * src/MetalinkRequestInfo.cc
  5656. (execute): Set filename and size to UrlRequestInfo.
  5657. * src/MetalinkEntry.cc
  5658. (MetalinkEntry): Initialize size with 0.
  5659. * src/UrlRequestInfo.cc
  5660. (execute): Set filename and size to SegmentMan.
  5661. Not to download rest of the files after selected files are downloaded
  5662. in BitTorrent:
  5663. * src/PieceStorage.h
  5664. (allDownloadFinished): New function.
  5665. * src/DefaultBtAnnounce.cc
  5666. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  5667. downloadFinished.
  5668. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  5669. * src/DefaultPieceStorage.cc
  5670. (completePiece): Use allDownloadFinished instead of downloadFinished.
  5671. Commented out the call to finishSelectiveDownloadingMode().
  5672. (downloadFinished): Call isFilteredAllBitSet() instead of
  5673. isAllBitSet().
  5674. (allDownloadFinished): New function.
  5675. * src/DefaultBtInteractive.cc
  5676. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  5677. downloadFinished().
  5678. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  5679. * src/TorrentDownloadEngine.cc
  5680. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  5681. * src/BitfieldMan.h
  5682. (isFilteredAllBitSet): New function.
  5683. * src/ShareRatioSeedCriteria.h
  5684. (PieceStorage.h): New include.
  5685. (pieceStorage): New variable.
  5686. (evaluate):
  5687. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  5688. * src/BitfieldMan.cc
  5689. (isFilteredAllBitSet): New function.
  5690. (isAllBitSet): Filter is not took into account.
  5691. Rename --force-truncate as --allow-overwrite:
  5692. * src/TorrentRequestInfo.cc
  5693. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  5694. * src/main.cc
  5695. (showUsage): --force-truncate -> --allow-overwrite
  5696. * src/message.h
  5697. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  5698. * src/prefs.h
  5699. (PREF_FORCE_TRUNCATE): Removed.
  5700. (PREF_ALLOW_OVERWRITE): New definition.
  5701. * src/SegmentMan.cc
  5702. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  5703. * src/MetalinkRequestInfo.cc
  5704. (execute): Queueing message are now logged in info level.
  5705. * src/common.h
  5706. (LONG_LONG_MAX): Removed.
  5707. (LONG_LONG_MIN): Removed.
  5708. * src/HttpResponseCommand.cc
  5709. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  5710. * src/FtpNegotiateCommand.cc
  5711. (recvSize): LONG_LONG_MAX -> INT64_MAX
  5712. * src/main.cc
  5713. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  5714. command-line option.
  5715. (main): Added --check-integriy and --realtime-chunk-checksum
  5716. command-line option.
  5717. --force-truncate -> --allow-overwrite
  5718. Set initial value of --check-integrity option to false.
  5719. Don't show usage when error occurs while persing command-line options.
  5720. Removed deprecated --upload-limit option.
  5721. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  5723. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  5724. * src/BtAllowedFastMessage.cc:
  5725. * src/BtBitfieldMessage.cc
  5726. * src/BtCancelMessage.cc
  5727. * src/BtChokeMessage.cc
  5728. * src/BtHaveAllMessage.cc
  5729. * src/BtHaveMessage.cc
  5730. * src/BtHaveNoneMessage.cc
  5731. * src/BtInterestedMessage.cc
  5732. * src/BtNotInterestedMessage.cc
  5733. * src/BtPieceMessage.cc
  5734. * src/BtPortMessage.cc
  5735. * src/BtRejectMessage.cc
  5736. * src/BtRequestMessage.cc
  5737. * src/BtSuggestPieceMessage.cc
  5738. * src/BtUnchokeMessage.cc
  5739. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  5740. files are affected.
  5741. * src/ChunkChecksumValidator.cc
  5742. * src/SegmentMan.cc
  5743. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. To add chunk checksum validation:
  5745. * src/MetalinkEntry.h
  5746. (MetalinkChunkChecksum.h): New include.
  5747. (chunkChecksum): New variable.
  5748. * src/Request.h
  5749. (method): New variable.
  5750. (setMethod): New function.
  5751. (getMethod): New function.
  5752. (METHOD_GET): New static constant.
  5753. (METHOD_HEAD): New static constant.
  5754. * src/Xml2MetalinkProcessor.h
  5755. (getPieceHash): New function.
  5756. * src/PieceStorage.h
  5757. (markAllPiecesDone): New function.
  5758. (checkIntegrity): New function.
  5759. * src/FileAllocator.h
  5760. (NullFileAllocationMonitor.h): New include.
  5761. (FileAllocator): Initialize fileAllocationMonitor with new
  5762. NullFileAllocationMonitor().
  5763. * src/MultiDiskAdaptor.h
  5764. (messageDigest.h): Remove include.
  5765. (ctx): Removed.
  5766. (hashUpdate): Added ctx.
  5767. (MultiDiskAdaptor): Removed ctx.
  5768. (sha1Sum): Renamed as messageDigest.
  5769. (messageDigest): New function.
  5770. * src/UrlRequestInfo.h
  5771. (HeadResult): New class.
  5772. (digestAlgo): New variable.
  5773. (chunkChecksumLength): New variable.
  5774. (chunkChecksums): New variable.
  5775. (getHeadResult): New function.
  5776. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  5777. (setDigestAlgo): New function.
  5778. (setChunkChecksumLength): New function.
  5779. (setChunkChecksums): New function.
  5780. * src/DefaultPieceStorage.cc
  5781. (DiskAdaptorWriter.h): New include.
  5782. (ChunkChecksumValidator.h): New include.
  5783. (markAllPiecesDone): New function.
  5784. (checkIntegrity): New function.
  5785. * src/DefaultBtContext.h
  5786. (getPieceHashes): New function.
  5787. * src/TorrentRequestInfo.cc
  5788. (execute): Try to validate chunk checksum if file already exists and
  5789. .aria2 file doesn't there and user allows aria2 to overwrite it.
  5790. * src/messageDigest.h
  5791. (~MessageDigestContext): Added digestFree().
  5792. * src/MetalinkRequestInfo.cc
  5793. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  5794. * src/DiskAdaptor.h
  5795. (messageDigest.h): New include.
  5796. (sha1Sum): Renamed as messageDigest.
  5797. (messageDigest): New function.
  5798. * src/DownloadCommand.h
  5799. (PeerStat.h): New include.
  5800. (maxDownloadSpeedLimit): New variable.
  5801. (startupIdleTime): New variable.
  5802. (lowestDownloadSpeedLimit): New variable.
  5803. (peerStat): New variable.
  5804. (setMaxDownloadSpeedLimit): New function.
  5805. (setStartupIdleTime): New function.
  5806. (setLowestDownloadSPeedLimit): New function.
  5807. * src/BtContext.h
  5808. (getPieceHashes): New function.
  5809. * src/main.cc
  5810. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  5811. option to true for testing purpose.
  5812. * src/BtPieceMessage.cc
  5813. (checkPieceHash): Use messageDigest
  5814. * src/DownloadEngine.cc
  5815. (SetDescriptor): Removed.
  5816. (AccumulateActiveCommand): Removed.
  5817. (waitData): Rewritten.
  5818. (updateFdSet): Rewritten.
  5819. * src/MultiDiskAdaptor.cc
  5820. (hashUpdate): Added ctx.
  5821. (sha1Sum): Renamed as messageDigest.
  5822. (messageDigest): New function.
  5823. * src/BitfieldMan.h
  5824. (isBitRangeSet): New function.
  5825. (unsetBitRange): New function.
  5826. * src/ByteArrayDiskWriter.h
  5827. (sha1Sum): Renamed as messageDigest.
  5828. (messageDigest): New function.
  5829. * src/ConsoleDownloadEngine.cc
  5830. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  5831. * src/DiskWriter.h
  5832. (messageDigest.h): New include.
  5833. (sha1Sum): Renamed as messageDigest.
  5834. (messageDigest): New function.
  5835. * src/ChunkChecksumValidator.h: New class.
  5836. * src/DiskAdaptorWriter.h: New class.
  5837. * src/prefs.h
  5838. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  5839. (PREF_CHECK_INTEGRITY): New definition.
  5840. * src/HttpResponseCommand.cc
  5841. (handleDefaultEncoding): Added method "HEAD" handling.
  5842. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  5843. (handleOtherEncoding):
  5844. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  5845. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  5846. startupIdleTime, lowestDownloadSpeedLimit to command.
  5847. * src/SegmentMan.h
  5848. (getSegmentEntryByIndex): New function.
  5849. (getSegmentEntryByCuid): New function.
  5850. (getSegmentEntryIteratorByCuid): New function.
  5851. (diskWriter): DiskWriter -> DiskWriterHandle
  5852. (pieceHashes): New variable.
  5853. (chunkHashLength): New variable.
  5854. (digestAlgo): New variable.
  5855. (FindPeerStat): Removed.
  5856. (getPeerStat): Rewritten.
  5857. (markAllPiecesDone): New function.
  5858. (checkIntegrity): New function.
  5859. (tryChunkChecksumValidation): New function.
  5860. (isChunkChecksumValidationReady): New function.
  5861. * src/BitfieldMan.cc
  5862. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  5863. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  5864. blocks to 0.
  5865. (isBitRangeSet): New function.
  5866. (unsetBitRange): New function.
  5867. * src/FtpNegotiateCommand.cc
  5868. (executeInternal): Set maxDownloadSpeedLimit,
  5869. startupIdleTime, lowestDownloadSpeedLimit to command.
  5870. (recvSize): Added method "HEAD" handling.
  5871. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  5872. * src/AbstractSingleDiskAdaptor.cc
  5873. (sha1Sum): Renamed as messageDigest.
  5874. (messageDigest): New function.
  5875. * src/AbstractSingleDiskAdaptor.h
  5876. (sha1Sum): Renamed as messageDigest.
  5877. (messageDigest): New function.
  5878. * src/Util.h
  5879. (indexRange): New function.
  5880. * src/MetalinkEntry.cc
  5881. (MetalinkEntry): Initialized chunkChecksum to 0.
  5882. * src/ShaVisitor.cc
  5883. (~ShaVisitor): Removed the call to ctx.digestFree().
  5884. * src/SegmentMan.cc
  5885. (ChunkChecksumValidator.h): New include.
  5886. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  5887. to DIGEST_ALGO_SHA1.
  5888. (~SegmentMan): Removed diskWriter.
  5889. (FindSegmentEntryByIndex): Removed.
  5890. (FindSegmentEntryByCuid): Removed.
  5891. (checkoutSegment): Rewritten.
  5892. (findSlowerSegmentEntry): Rewritten.
  5893. (getSegment): Rewritten.
  5894. (updateSegment): Rewritten.
  5895. (completeSegment): Rewritten.
  5896. (markAllPiecesDone): New function.
  5897. (checkIntegrity): New function.
  5898. (isChunkChecksumValidationReady): New function.
  5899. (tryChunkChecksumValidation): New function.
  5900. * src/Xml2MetalinkProcessor.cc
  5901. (getEntry): Get size and set it to entry.
  5902. Get chunk checksum and set it to entry.
  5903. (getPieceHash): New function.
  5904. * src/Util.cc
  5905. (sha1Sum): Removed ctx.digestFree()
  5906. (fileChecksum): Removed ctx.digestFree()
  5907. (indexRange): New function.
  5908. * src/Request.cc
  5909. (METHOD_GET): New variable.
  5910. (METHOD_HEAD): New variable.
  5911. (Request): Added method.
  5912. * src/UrlRequestInfo.cc
  5913. (FatalException.h): New include.
  5914. (message.h): New include.
  5915. (operator<<): Added operator<< for class HeadResult.
  5916. (getHeadResult): New function.
  5917. (execute): Get filename and size in separate download engine.
  5918. * src/ChunkChecksumValidator.cc: New class.
  5919. * src/DownloadCommand.cc:
  5920. (DownloadCommand): Added peerStat.
  5921. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  5922. the value from Option.
  5923. The buffer size is now 16KB.
  5924. Use peerStat member instead of getting it from SegmentMan.
  5925. Use startupIdleTime member instead of gettingit from Option.
  5926. Added chunk checksum validation.
  5927. * src/AbstractDiskWriter.cc
  5928. (AbstractDiskWriter): Removed ctx.
  5929. (~AbstractDiskWriter): Removed ctx.digestFree()
  5930. (writeDataInternal): Returns the return value of write.
  5931. (readDataInternal): Returns the return value of read.
  5932. (sha1Sum): Renamed as messageDigest
  5933. (messageDigest): New function.
  5934. * src/AbstractDiwkWriter.h
  5935. (messageDigest.h): Removed include.
  5936. (ctx): Removed.
  5937. (sha1Sum): Renamed as messageDigest
  5938. (messageDigest): New function.
  5939. * src/DefaultPieceStorage.h
  5940. (markAllPiecesDone): New function.
  5941. (checkIntegrity): New function.
  5942. * src/NullFileAllocationMonitor.h: New class.
  5943. * src/MetalinkChunkChecksum.h: New class.
  5944. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. To decrease CPU usage in bittorrent download, calculation results in
  5946. BitfieldMan were cached and realtime fetching PeerObject was removed
  5947. with WeakHandle introduced. Option values are set to the objects
  5948. by setter before download begins.
  5949. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  5950. * src/DefaultBtRequestFactory.h
  5951. (dispatcher): BtMessageDispatcherHandle ->
  5952. BtMessageDispatcherWeakHandle.
  5953. (messageFactory): New variable.
  5954. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  5955. BtMessageDispatcherWeakHandle.
  5956. (setBtMessageFactory): New function.
  5957. * src/DefaultBtMessageDispatcher.cc:
  5958. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  5959. from Option.
  5960. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  5961. feating the value from Option.
  5962. Use messageFactory member.
  5963. * src/PeerInteractionCommand.cc
  5964. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  5965. Add reverse dependencies to factory object.
  5966. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  5967. dispatcher.
  5968. Set messageFactory to receiver.
  5969. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  5970. btInteractive.
  5971. Set receiver to peerObject.
  5972. Set maxDownloadSpeedLimit to this.
  5973. (executeInternal): Use maxDownloadSpeedLimit member.
  5974. * src/BtChokeMessage.cc
  5975. (doReceivedAction): Use dispatcher, requestFactory member.
  5976. (onSendComplete): Use dispatcher member.
  5977. * src/PeerInteractionCommand.h
  5978. (maxDownloadSpeedLimit): New variable.
  5979. * src/DefaultBtMessageReceiver.h
  5980. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5981. (dispatcher):
  5982. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  5983. (messageFactory): New variable.
  5984. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5985. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5986. (setDispatcher):
  5987. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  5988. (setBtMessageFactory): New function.
  5989. * src/DefaultBtInteractive.cc
  5990. (initiateHandshake): Use messageFactory member.
  5991. (addBitfieldMessageToQueue): Use messageFactory member.
  5992. (addAllowedFastMessageToQueue): Use messageFactory member.
  5993. (decideChoking): Use messageFactory member.
  5994. (checkHave): Use messageFactory member.
  5995. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  5996. (receiveMessages): Use maxDownloadSpeedLimit member.
  5997. (decideInterest): Use messageFactory member.
  5998. * src/BtRequestMessage.cc
  5999. (doReceivedAction): Use messageFactory, dispatcher member.
  6000. (onQueued): Use dispatcher member.
  6001. * src/BtPieceMessage.cc
  6002. (doReceivedAction): Use dispatcher member.
  6003. (send): Use peerConnection member.
  6004. (onWrongPiece): Use requestFactory member.
  6005. (handleChokingEvent): Use messageFactory, dispatcher member.
  6006. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6007. * src/BtMessageDispatcher.h
  6008. (BtMessageDispatcherWeakHandle): New type definition.
  6009. * src/SimpleBtMessage.cc
  6010. (send): Use peerConnection member.
  6011. * src/BtRejectMessage.cc
  6012. (doReceivedAction): Use dispatcher member.
  6013. * src/DefaultBtMessageDispatcher.h
  6014. (Option.h): Removed include.
  6015. (messageFactory): New variable.
  6016. (option): Removed.
  6017. (maxUploadSpeedLimit): New variable.
  6018. (requestTimeout): New variable.
  6019. (DefaultBtMessageDispatcher): Removed option.
  6020. Added maxUploadSpeedLimit, requestTimeout.
  6021. (setOption): Removed.
  6022. (getOption): Removed.
  6023. (setMaxUploadSpeedLimit): New function.
  6024. (setRequestTimeout): New function.
  6025. (setBtMessageFactory): New function.
  6026. * src/DefaultBtInteractive.h
  6027. (btMessageReceiver):
  6028. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6029. (dispatcher):
  6030. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6031. (btRequestFactory):
  6032. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6033. (peerConnection):
  6034. PeerConnectionHandle -> PeerConnectionWeakHandle
  6035. (messageFactory): New variable.
  6036. (option): Removed.
  6037. (keepAliveInterval): New variable.
  6038. (maxDownloadSpeedLimit): New variable.
  6039. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6040. (setBtMessageReceiver):
  6041. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6042. (setDispatcher):
  6043. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6044. (setBtRequestFactory):
  6045. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6046. (setPeerConnection):
  6047. PeerConnectionHandle -> PeerConnectionWeakHandle
  6048. (setOption): Removed.
  6049. (setKeepAliveInterval): New function.
  6050. (setMaxDownloadSpeedLimit): New function.
  6051. (setBtMessageFactory): New function.
  6052. * src/BitfieldMan.h
  6053. (cachedNumMissingBlock): New variable.
  6054. (cachedNumFilteredBlock): New variable.
  6055. (cachedCompletedLength): New variable.
  6056. (cachedFilteredComletedLength): New variable.
  6057. (cachedFilteredTotalLength): New variable.
  6058. (countMissingBlockNow): New function.
  6059. (countFilteredBlockNow): New function.
  6060. (getFilteredTotalLengthNow): New function.
  6061. (getCompletedLengthNow): New function.
  6062. (getFilteredCompletedLengthNow): New function.
  6063. (updateCache): New function.
  6064. * src/AbstractBtMessage.h
  6065. (BtMessageDispatcher.h): New include.
  6066. (PeerConnection.h): New include.
  6067. (BtRequestFactory.h): New include
  6068. (BtMessageFactory.h): New include.
  6069. (dispatcher): New variable.
  6070. (messageFactory): New variable.
  6071. (peerConnection: New variable.
  6072. (setBtMessageDispatcher): New function.
  6073. (setPeerConnection): New function.
  6074. (setBtMessageFactory): New function.
  6075. (setBtRequestFactory): New function.
  6076. * src/DefaultBtMessageFactory.cc
  6077. (setCommonProperty): Set dispatcher, requestFactory, this,
  6078. peerConnection to msg.
  6079. * src/BtRegistry.h
  6080. (BT_MESSAGE_RECEIVER): New macro.
  6081. * src/PeerConnection.h
  6082. (PeerConnectionWeakHandle): New type definition.
  6083. * src/BtMessageFactory.h
  6084. (BtMessageFactoryWeakHandle): New type definition.
  6085. * src/BitfieldMan.cc
  6086. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6087. cachedCompletedLength, cachedFilteredComletedLength,
  6088. cachedFilteredTotalLength.
  6089. Call updateCache().
  6090. (countMissingBlock): Return cachedNumMissingBlock.
  6091. (countMissingBlockNow): New function.
  6092. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6093. (countFilteredBlockNow): New function.
  6094. (setBit): Call updateCache().
  6095. (unsetBit): Call updateCache().
  6096. (setBitfield): Call updateCache().
  6097. (clearAllBit): Call updateCache().
  6098. (setAllBit): Use setBitInternal instead of setBit.
  6099. Call updateCache().
  6100. (addFilter): Call updateCache().
  6101. (enableFilter): Call updateCache().
  6102. (disableFilter): Call updateCache().
  6103. (clearFilter): Call updateCache().
  6104. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6105. (getFilteredTotalLengthNow): New function.
  6106. (getCompletedLength): Return cachedCompletedLength.
  6107. (getCompletedLengthNow): New function.
  6108. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6109. (getFilteredCompletedLengthNow): New function.
  6110. (updateCache): New function.
  6111. * src/BtMessageReceiver.h
  6112. (BtMessageReceiverWeakHandle): New type definition.
  6113. * src/DefaultBtMessageReceiver.cc
  6114. (receiveHandshake): Use messageFactory member.
  6115. (sendHandshake): Use messageFactory member.
  6116. (receiveMessage): Use messageFactory member.
  6117. * src/DefaultBtMessageFactory.h
  6118. (dispatcher): New variable.
  6119. (requestFactory): New variable.
  6120. (peerConnection): New variablle.
  6121. (setBtMessageDispatcher): New function.
  6122. (setBtRequestFactory): New function.
  6123. (setPeerConnection): New function.
  6124. * src/SharedHandle.h
  6125. (RefCount): New class.
  6126. (WeakHandle): New class.
  6127. * src/PeerObject.h
  6128. (BtMessageReceiver.h): New include.
  6129. (PeerObject): Added btMessageReceiver.
  6130. (btMessageReceiver): New variable.
  6131. * src/Util.cc
  6132. (countBit): Simplified.
  6133. * src/BtCancelMessage.cc
  6134. (doReceivedAction): Use dispatcher member.
  6135. * src/BtRequestFactory.h
  6136. (BtRequestFactoryWeakHandle): New type definition.
  6137. * src/PeerStorage.h
  6138. (downloadSpeed): int -> uint32_t
  6139. (uploadSpeed): int -> uint32_t
  6140. (sessionDownloadLength): long long int -> uint64_t
  6141. (sessionUploadLength): long long int -> uint64_t
  6142. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. To add RecoverableException, FatalException:
  6144. * src/AbstractCommand.cc
  6145. (onAbort): Exception -> RecoverableException
  6146. * src/PeerAbstractCommand.h
  6147. (RecoverableException.h): New include.
  6148. (onAbort): Exception -> RecoverableException.
  6149. * src/PeerInteractionCommand.cc
  6150. (onAbort): Exception -> RecoverableException.
  6151. * src/PeerAbstractCommand.cc
  6152. (execute): Exception -> RecoverableException.
  6153. (onAbort): Exception -> RecoverableException.
  6154. * src/TorrentRequestInfo.cc
  6155. (execute): Exception -> RecoverableException.
  6156. * src/MetalinkRequestInfo.cc
  6157. (execute): Exception -> RecoverableException.
  6158. * src/MetaFileUtil.cc: RecoverableException.
  6159. * src/AbstractCommand.h
  6160. (onAbort): Exception -> RecoverableException.
  6161. * src/DlRetryEx.h: Exception -> RecoverableException.
  6162. * src/DlAbortEx.h: Exception -> RecoverableException.
  6163. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6164. * src/Util.cc: Exception -> RecoverableException.
  6165. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6166. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6167. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6168. To make ID static const int
  6169. * src/BtInterestedMessage.h
  6170. (ID_t): Removed.
  6171. (ID): New variable.
  6172. (getId): Made non-const.
  6173. * src/BtPieceMessage.h
  6174. (ID_t): Removed.
  6175. (ID): New variable.
  6176. (getId): Made non-const.
  6177. * src/BtChokeMessage.h
  6178. (ID_t): Removed.
  6179. (ID): New variable.
  6180. (getId): Made non-const.
  6181. * src/BtHaveAllMessage.h
  6182. (ID_t): Removed.
  6183. (ID): New variable.
  6184. (getId): Made non-const.
  6185. * src/BtKeepAliveMessage.h
  6186. (ID_t): Removed.
  6187. (ID): New variable.
  6188. (getId): Made non-const.
  6189. * src/BtHandshakeMessage.h
  6190. (ID): New variable.
  6191. (getId): Made non-const.
  6192. * src/BtSuggestPieceMessage.h
  6193. (ID_t): Removed.
  6194. (ID): New variable.
  6195. (getId): Made non-const.
  6196. * src/BtPortMessage.h
  6197. (ID_t): Removed.
  6198. (ID): New variable.
  6199. (getId): Made non-const.
  6200. * src/AbstractBtMessage.h
  6201. (id): Removed.
  6202. (AbstractBtMessage): Removed id.
  6203. (getId): Removed.
  6204. * src/BtHaveMessage.h
  6205. (ID_t): Removed.
  6206. (ID): New variable.
  6207. (getId): Made non-const.
  6208. * src/BtAllowedFastMessage.h
  6209. (ID_t): Removed.
  6210. (ID): New variable.
  6211. (getId): Made non-const.
  6212. * src/BtCancelMessage.h
  6213. (ID_t): Removed.
  6214. (ID): New variable.
  6215. (getId): Made non-const.
  6216. * src/BtNotInterestedMessage.h
  6217. (ID_t): Removed.
  6218. (ID): New variable.
  6219. (getId): Made non-const.
  6220. * src/BtChokeMessage.h
  6221. (ID_t): Removed.
  6222. (ID): New variable.
  6223. (getId): Made non-const.
  6224. * src/BtRejectMessage.h
  6225. (ID_t): Removed.
  6226. (ID): New variable.
  6227. (getId): Made non-const.
  6228. * src/BtBitfieldMessage.h
  6229. (ID_t): Removed.
  6230. (ID): New variable.
  6231. (getId): Made non-const.
  6232. * src/BtUnchokeMessage.h
  6233. (ID_t): Removed.
  6234. (ID): New variable.
  6235. (getId): Made non-const.
  6236. * src/BtRequestMessage.h
  6237. (ID_t): Removed.
  6238. (ID): New variable.
  6239. (getId): Made non-const.
  6240. * src/BtHaveMessage.h
  6241. (ID_t): Removed.
  6242. (ID): New variable.
  6243. (getId): Made non-const.
  6244. To add --force-truncate command-line option and a check whether
  6245. the file already exists:
  6246. * src/DirectDiskAdaptor.h
  6247. (getFilePath): Made virtual public.
  6248. * src/MultiDiskAdaptor.h
  6249. (File.h): New include.
  6250. (DiskWriterEntry::fileEntry): Made private.
  6251. (DiskWriterEntry::fileExists): New function.
  6252. (DiskWriterEntry::getFileEntry): New function.
  6253. (fileExists): New function.
  6254. (getFilePath): New function.
  6255. * src/TorrentRequestInfo.cc
  6256. (FatalException.h): New include.
  6257. (message.h): New include.
  6258. (RecoverableException.h): New include.
  6259. (execute): Added a check whether file is already exists or not.
  6260. * src/DiskAdaptor.h
  6261. (fileExists): New function.
  6262. (getFilePath): New function.
  6263. * src/main.cc
  6264. (showUsage): Added an explanation of --force-truncate command-line
  6265. option.
  6266. (main): Added --force-truncate command-line option.
  6267. * src/Exception.h
  6268. (setMsg): buf[256] -> buf[1024]
  6269. * src/CopyDiskWriter.h
  6270. (getFilePath): Made public virtual.
  6271. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  6272. (fileExists): New function.
  6273. * src/DownloadEngineFactory.cc
  6274. (newTorrentConsoleEngine): Don't open file here.
  6275. * src/message.h
  6276. (EX_FILE_ALREADY_EXISTS): New definition.
  6277. * src/prefs.h
  6278. (PREF_FOECE_TRUNCATE): New definition.
  6279. * src/HttpResponseCommand.cc
  6280. (handleDefaultEncoding): Added a check whether the file already exists.
  6281. * src/SegmentMan.h
  6282. (fileExists): New function.
  6283. (shouldCancelDownloadForSafety): New function.
  6284. * src/FtpNegotiateCommand.cc
  6285. (recvSize): Added a check whether the file already exists.
  6286. * src/AbstractSingleDiskAdaptor.cc
  6287. (File.h): New include.
  6288. (fileExists): New function.
  6289. * src/AbstractSingleDiskAdaptor.h
  6290. (getFilePath): Removed.
  6291. (fileExists): New function.
  6292. * src/SegmentMan.cc
  6293. (fileExists): New function.
  6294. (shouldCancelDownloadForSafety): New function.
  6295. To fix regression bug in torrent downloading:
  6296. * src/DefaultBtRequestFactory.cc
  6297. (doChokedAction): New function.
  6298. * src/DefaultBtRequestFactory.h
  6299. (doChokedAction): New function.
  6300. * src/DefaultBtMessageDispatcher.cc
  6301. (doChokedAction): Do not delete request if its target is in allowed
  6302. fast set.
  6303. * src/DefaultBtInteractive.cc
  6304. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  6305. (sendKeepAlive): Send keep alive message even if the outgoing message
  6306. queue is not empty.
  6307. (decideInterest): Simplified the code.
  6308. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  6309. it is already called when BtChokeMessage is received from a peer.
  6310. * src/BtRequestFactory.h
  6311. (doChokedAction): New function.
  6312. To clean up code:
  6313. * src/PeerInteractionCommand.h
  6314. (executeInternal): Added virtual keyword explicitly.
  6315. (prepareForRetry): Added virtual keyword explicitly.
  6316. (prepareForNextPeer): Added virtual keyword explicitly.
  6317. (onAbort): Added virtual keyword explicitly.
  6318. * src/RequestSlot.cc
  6319. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  6320. * src/BtPieceMessage.cc
  6321. (doReceivedAction): Added a debug log of piece's bitfield.
  6322. * src/Piece.h
  6323. (getBitfieldLength): New function.
  6324. * src/ByteArrayDiskWriter.cc
  6325. (clear): Added buf = 0 to avoid double free corruption.
  6326. * src/FileAllocator.cc
  6327. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  6328. Added cp.reset().
  6329. * src/BitfieldMan.h
  6330. (operator=): Rewritten.
  6331. * src/BitfieldMan.cc
  6332. (BitfieldMan): Initialized bitfield, useBitfield.
  6333. * src/PeerConnection.cc
  6334. (receiveMessage): Added a call to socket->readable() after getting
  6335. message length to avoid possible EOF.
  6336. * src/Util.cc
  6337. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  6338. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. To add an ability to pre-allocate file space:
  6340. * src/DirectDiskAdaptor.h: Rewritten.
  6341. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  6342. * src/MultiDiskAdaptor.h: Rewritten.
  6343. * src/DefaultPieceStorage.cc
  6344. (MultiDiskWriter.h): Removed include.
  6345. (PreAllocationDiskWriter.h): Removed include.
  6346. (FileAllocationMonitor.h): New include.
  6347. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  6348. (initStorage): Rewritten.
  6349. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6350. * src/FileAllocator.h: New class.
  6351. * src/FileAllocator.cc: New class.
  6352. * src/FileAllocationMonitor.h: New class.
  6353. * src/FileAllocationMonitor.cc: New class.
  6354. * src/ConsoleFileAllocationMonitor.h: New class.
  6355. * src/ConsoleFileAllocationMonitor.cc: New class.
  6356. * src/AbstractSingleDiskAdaptor.h: New class.
  6357. * src/AbstractSingleDiskAdaptor.cc: New class.
  6358. * src/DiskAdaptor.h
  6359. (Directory.h): Removed include.
  6360. (DiskWriter.h): Removed include.
  6361. (FileEntry.h): Removed include.
  6362. (diskWriter): Removed.
  6363. (DiskAdaptor): Removed diskWriter.
  6364. (openFile): Made pure virtual.
  6365. (closeFile): Made pure virtual.
  6366. (openExistingFile): Made pure virtual.
  6367. (initAndOpenFile): Made pure virtual.
  6368. (writeData): Made pure virtual.
  6369. (readData): Made pure virtual.
  6370. (sha1Sum): Made pure virtual.
  6371. (getStoreDir): Returns const reference of storeDir.
  6372. (DiskAdaptorHandle): New type definition.
  6373. * src/main.cc
  6374. (ConsoleFileAllocationMonitor.h): New include.
  6375. (showUsage): Added default value description of -s option.
  6376. Added the description of --file-allocation option.
  6377. (main): Set default value of --file-allocation option to 'none'.
  6378. Added --file-allocation command-line option.
  6379. Setup FileAllocationMonitorFactory.
  6380. * src/FtpInitiateConnectionCommand.cc
  6381. (executeInternal): Removed diskWriter related processing, which was
  6382. moved to FtpNegotiationCommand.cc.
  6383. * src/DirectDiskAdaptor.cc
  6384. (getFilePath): Made non-const.
  6385. * src/CopyDiskAdaptor.h
  6386. (DiskAdaptor.h): Removed include.
  6387. (DiskWriter.h): Removed include.
  6388. (AbstractSingleDiskAdaptor.h): New include.
  6389. (getFilePath): Made non-const. Added virtual keyword.
  6390. (CopyDiskAdaptor): Removed diskWriter.
  6391. (getTempFile): Returns const reference.
  6392. (CopyDiskAdaptorHandle): New type definition.
  6393. * src/ByteArrayDiskWriter.cc
  6394. (clear): Simplified.
  6395. (initAndOpenFile): Rewritten.
  6396. (openFile): Call initAndOpenFile()
  6397. * src/MultiDiskAdaptor.cc: Rewritten.
  6398. * src/DownloadEngineFactory.cc
  6399. (FileAllocator.h): New include.
  6400. (FileAllocationMonitor.h): New include.
  6401. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  6402. create DefaultDiskWriter with file allocator.
  6403. * src/DiskWriter.h
  6404. (initAndOpenFile): Added totalLength argument.
  6405. (openFile): Added totalLength argument.
  6406. * src/prefs.h
  6407. (PREF_FILE_ALLOCATION): New definition.
  6408. (V_PREALLOC): New definition.
  6409. (V_NONE): New definition.
  6410. * src/HttpResponseCommand.cc
  6411. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  6412. size.
  6413. * src/FtpNegotiateCommand.cc
  6414. (Util.h): New include.
  6415. (recvSize): Open file here.
  6416. * src/Util.h
  6417. (ullitos): New function.
  6418. * src/CopyDiskWriter.h
  6419. (getFilePath): Made non-const.
  6420. * src/DefaultDiskWriter.h
  6421. (Option.h): New include.
  6422. (totalLength): Removed.
  6423. (DefaultDiskWriter): Removed totalLength.
  6424. (initAndOpenFile): Added totalLength argument.
  6425. (DefaultDiskWriterHandle): New type definition.
  6426. (createNewDiskWriter): New function.
  6427. * src/Util.cc
  6428. (ullitos): New function.
  6429. * src/DefaultDiskWriter.cc
  6430. (message.h): New include.
  6431. (FileAllocator.h): New include.
  6432. (prefs.h): New include.
  6433. (Util.h): New include.
  6434. (DefaultDiskWriter): Removed totalLength.
  6435. (initAndOpenFile): Added file allocation.
  6436. (createNewDiskWriter): New function. Just for temporary solution.
  6437. It will be rewritten later.
  6438. * src/DiskAdaptor.cc
  6439. (DiskAdaptor): Removed diskWriter.
  6440. * src/AbstractDiskWriter.cc
  6441. (LogFactory.h): New include.
  6442. (AbstractDiskWriter): Added fileAllocator, logger.
  6443. (openFile): Added totalLength argument.
  6444. * src/AbstractDiskWriter.h
  6445. (FileAllocator.h): New include.
  6446. (Logger.h): New include.
  6447. (fileAllocator): New variable.
  6448. (logger): New variable.
  6449. (openFile): Added totalLength argument. Added virtual keyword
  6450. explicitly.
  6451. (openExistingFile): Added totalLength argument. Added virtual keyword
  6452. explicitly.
  6453. (closeFile): Added virtual keyword explicitly.
  6454. (sha1Sum): Added virtual keyword explicitly.
  6455. (writeData): Added virtual keyword explicitly.
  6456. (readData): Added virtual keyword explicitly.
  6457. (setFileAllocator): New function.
  6458. * src/DefaultPieceStorage.h
  6459. (FileAllocator.h): New include.
  6460. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6461. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6462. * src/FileProgressMonitor.h: New class.
  6463. To compile aria2 on PC-BSD:
  6464. * src/DefaultBtContext.cc
  6465. (libgen.h): New include.
  6466. To fix memory leak:
  6467. * src/Exception.h
  6468. (~Exception): Delete cause. Fixed memory leak.
  6469. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Rewritten a portion of bittorrent implementation:
  6471. * src/BtMessageValidator.h: New class.
  6472. * src/BtBitfieldMessageValidator.h: New class.
  6473. * src/BtHandshakeMessageValidator.h: New class.
  6474. * src/BtRequestMessageValidator.h: New class.
  6475. * src/BtSuggestPieceMessageValidator.h: New class.
  6476. * src/BtAllowedFastMessageValidator.h: New class.
  6477. * src/BtRejectMessageValidator.h: New class.
  6478. * src/BtCancelMessageValidator.h: New class.
  6479. * src/BtPieceMessageValidator.h: New class.
  6480. * src/BtHaveMessageValidator.h: New class.
  6481. * src/BtEventListener.h: New class.
  6482. * src/AbstractBtEventListener.h: New class.
  6483. * src/BtEvent.h: New class.
  6484. * src/BtChokingEvent.h: New class.
  6485. * src/BtChokedEvent.h: New class.
  6486. * src/BtCancelSendingPieceEvent.h: New class.
  6487. * src/BtAbortOutstandingRequestEvent.h: New class.
  6488. * src/Randomizer.h: New class.
  6489. * src/SimpleRandomizer.h: New class.
  6490. * src/BtMessage.h: New class.
  6491. * src/AbstractBtMessage.h: New class.
  6492. * src/SimpleBtMessage.h: New class.
  6493. * src/BtHaveMessage.h: New class.
  6494. * src/BtInterestedMessage.h: New class.
  6495. * src/BtAllowedFastMessage.h: New class.
  6496. * src/BtUnchokeMessage.h: New class.
  6497. * src/BtCancelMessage.h: New class.
  6498. * src/BtNotInterestedMessage.h: New class.
  6499. * src/BtChokeMessage.h: New class.
  6500. * src/BtHaveNoneMessage.h: New class.
  6501. * src/BtHandshakeMessage.h: New class.
  6502. * src/BtSuggestPieceMessage.h: New class.
  6503. * src/BtHaveMessage.h: New class.
  6504. * src/BtPieceMessage.h: New class.
  6505. * src/BtHaveAllMessage.h: New class.
  6506. * src/BtKeepAliveMessage.h: New class.
  6507. * src/BtPortMessage.h: New class.
  6508. * src/BtRejectMessage.h: New class.
  6509. * src/BtBitfieldMessage.h: New class.
  6510. * src/BtRequestMessage.h: New class.
  6511. * src/DefaultBtRequestFactory.h: New class.
  6512. * src/DefaultBtMessageReceiver.h: New class.
  6513. * src/BtInteractive.h: New class.
  6514. * src/BtMessageDispatcher.h: New class.
  6515. * src/DefaultBtMessageDispatcher.h: New class.
  6516. * src/DefaultBtInteractive.h: New class.
  6517. * src/BitfieldManFactory.h: New class.
  6518. * src/HandleRegistry.h: New class.
  6519. * src/BtMessageFactory.h: New class.
  6520. * src/BtMessageReceiver.h: New class.
  6521. * src/DefaultBtMessageFactory.h: New class.
  6522. * src/PeerObject.h: New class.
  6523. * src/BtRequestFactory.h: New class.
  6524. * src/SuggestPieceMessage.h: Removed.
  6525. * src/PortMessage.h: Removed.
  6526. * src/SuggestPieceMessage.h: Removed.
  6527. * src/KeepAliveMessage.h: Removed.
  6528. * src/HandshakeMessage.h: Removed.
  6529. * src/PeerInteraction.h: Removed.
  6530. * src/UnchokeMessage.h: Removed.
  6531. * src/PieceMessage.h: Removed.
  6532. * src/RequestMessage.h: Removed.
  6533. * src/InterestedMessage.h: Removed.
  6534. * src/HaveMessage.h: Removed.
  6535. * src/CancelMessage.h: Removed.
  6536. * src/RejectMessage.h: Removed.
  6537. * src/AllowedFastMessage.h: Removed.
  6538. * src/HaveNoneMessage.h: Removed.
  6539. * src/SimplePeerMessage.h: Removed.
  6540. * src/HaveAllMessage.h: Removed.
  6541. * src/BitfieldMessage.h: Removed.
  6542. * src/PeerMessageFactory.h: Removed.
  6543. * src/NotInterestedMessage.h: Removed.
  6544. * src/ChokeMessage.h: Removed.
  6545. * src/PeerMessage.h: Removed.
  6546. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. To know root cause of exception:
  6548. * src/Exception.h
  6549. (cause): New variable.
  6550. (Exception): Added a parameter.
  6551. (getMsg): Return const reference to msg.
  6552. (getCause): New function.
  6553. * src/DlRetryEx.h
  6554. (DlRetryEx): Added a parameter 'cause'.
  6555. Added an overloaded constructor.
  6556. (DlAbortEx): Added a parameter 'cause'.
  6557. Added an overloaded constructor.
  6558. * src/SimpleLogger.cc
  6559. (writeLog): Log nested exception messages recursively.
  6560. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. * src/DefaultBtProgressInfoFile.cc
  6562. (load): Fixed memory leak when the infohash doesn't match.
  6563. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. * src/DefaultPeerStorage.cc
  6565. (calculateStat): Simplified the code by combining 2 loops into 1.
  6566. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  6568. for BitTorrent download:
  6569. * src/PeerAbstractCommand.cc
  6570. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  6571. * src/main.cc:
  6572. (timeoutSpecified): Removed.
  6573. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  6574. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  6575. * src/TorrentRequestInfo.cc
  6576. (timeoutSpecified): Removed.
  6577. (torrentHandler): Removed timeoutSpecified and the adjustment of
  6578. timeout value.
  6579. * src/prefs.h
  6580. (PREF_BT_TIMEOUT): New definition.
  6581. Delete unused variables:
  6582. * src/TorrentRequestInfo.cc
  6583. (requestInfo): Removed.
  6584. Move setSignalHander to Util::setGlobalSignalHandler:
  6585. * src/TorrentRequestInfo.cc:
  6586. setSignalHander -> Util::setGlobalSignalHandler
  6587. * src/main.cc
  6588. (setSignalHander): Removed.
  6589. (main): setSignalHander -> Util::setGlobalSignalHandler
  6590. * src/Util.h
  6591. (setGlobalSignalHandler): New function.
  6592. * src/Util.cc
  6593. (setGlobalSignalHandler): New function.
  6594. * src/UrlRequestInfo.cc:
  6595. setSignalHander -> Util::setGlobalSignalHandler
  6596. Reset peer status in order to exit gracefully:
  6597. * src/PeerAbstractCommand.cc
  6598. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  6599. To fix the bug that causes the number of bytes uploaded is not saved
  6600. to .aria2 file:
  6601. * src/DefaultPeerStorage.h
  6602. (removedPeerSessionDownloadLength): New variable.
  6603. (removedPeerSessionUploadLength): New variable.
  6604. * src/DefaultPeerStorage.cc
  6605. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  6606. removedPeerSessionUploadLength(0).
  6607. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  6608. through all peers, and then add removedPeerSessionDownloadLength(
  6609. removedPeerSessionUploadLength) to it.
  6610. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  6611. (to) the peer to removedPeerSessionDownloadLength
  6612. (removedPeerSessionUploadLength).
  6613. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. To add Metalink location option:
  6615. * src/MetalinkRequestInfo.cc
  6616. (execute): Call MetalinkEntry::setLocationPreference()
  6617. * src/main.cc
  6618. (showUsage): Added the help message for --metalink-location option.
  6619. (main): Added --metalink-location option.
  6620. * src/prefs.h
  6621. (PREF_METALINK_LOCATION): New definition.
  6622. * src/MetalinkEntry.cc
  6623. (AddLocationPreference): New function object.
  6624. (setLocationPreference): New function.
  6625. * src/Xml2MetalinkProcessor.cc
  6626. (getResource): Set location attribute to MetalinkResource
  6627. To show URLs to download
  6628. * src/UrlRequestInfo.h
  6629. (printUrls): New function.
  6630. To add multiple <file> Metalink support:
  6631. * src/MetalinkEntry.h
  6632. (MetalinkResources): Removed.
  6633. (setLocationPreference): New function.
  6634. (MetalinkEntryHandle): New type definition.
  6635. (MetalinkEntries): New type definition.
  6636. * src/Xml2MetalinkProcessor.h
  6637. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6638. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6639. (parseFile): Metalinker* -> MetalinkerHandle
  6640. * src/UrlRequestInfo.h
  6641. (execute): RequestInfo* -> RequestInfos
  6642. * src/MetalinkRequestInfo.cc
  6643. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  6644. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  6645. (execute): RequestInfo* -> RequestInfos
  6646. Added multiple <file> support. Print filename when it is queued.
  6647. * src/MetalinkRequestInfo.h
  6648. (execute): RequestInfo* -> RequestInfos
  6649. (getDownloadEngine): Removed.
  6650. * src/RequestInfo.h
  6651. (RequestInfoHandle): New type definition.
  6652. (RequestInfos): New type definition.
  6653. (execute): RequestInfo* -> RequestInfos
  6654. (getDownloadEngine): Removed.
  6655. * src/MetalinkResource.h
  6656. (MetalinkResourceHandle): New type definition.
  6657. (MetalinkResources): New type definition.
  6658. * src/MetalinkEntry.cc
  6659. (~MetalinkEntry): Removed the deletion of the elements of resources,
  6660. because the element is now of type MetalinkResourceHandle.
  6661. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  6662. (Supported): MetalinkResource* -> MetalinkResourceHandle
  6663. (dropUnsupportedResource): Removed the deletion of the elements of
  6664. resources because the element is now of type MetalinkResourceHandle.
  6665. * src/Xml2MetalinkProcessor.cc
  6666. (parseFile): Metalinker* -> MetalinkerHandle
  6667. MetalinkEntry* -> MetalinkEntryHandle
  6668. Removed try-catch block.
  6669. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6670. MetalinkResource* -> MetalinkResourceHandle
  6671. Removed try-catch block.
  6672. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6673. Free result by using xmlXPathFreeObject()
  6674. * src/Metalinker.cc
  6675. (~Metalinker): Removed the deletion of entries.
  6676. MetalinkEntry* -> MetalinkEntryHandle
  6677. (queryEntry): Add multiple <file> Metalink support.
  6678. * src/Metalinker.h
  6679. (MetalinkEntries): Removed.
  6680. (queryEntry): MetalinkEntry* -> MetalinkEntries
  6681. * src/MetalinkProcessor.h
  6682. (parseFile): Metalinker* -> MetalinkerHandle
  6683. Bug fixes:
  6684. * src/PeerChokeCommand.cc
  6685. (execute): cat01->cat02
  6686. * src/DefaultPieceStorage.cc
  6687. (DefaultPieceStorage): Added diskAdaptor(0)
  6688. * src/TrackerWatcherComand.cc:
  6689. (execute): Use btAnnounce->noMoreAnnounce()
  6690. to determin whether the function returns true or not.
  6691. * src/TrackerUpdateCommand.cc:
  6692. (execute): Use btAnnounce->noMoreAnnounce()
  6693. to determin whether the function returns true or not.
  6694. * src/FtpConnection.cc
  6695. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  6696. This is the fix of the busy loop bug.
  6697. * src/DownloadCommand.cc
  6698. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  6699. cached PeerStat.
  6700. The value of "name" entry in torrent file is now set by
  6701. *DiskAdaptor::setTopDir(...) methods.
  6702. * src/MultiDiskAdaptor.h
  6703. (topDir): New variable.
  6704. (setTopDir): New function.
  6705. (getTopDir): New function.
  6706. * src/MultiDiskAdaptor.cc
  6707. (getFilePath): Concat storDir, "/" and topDir.
  6708. (mkdir): Use getFilePath() to get the directory path for output.
  6709. * src/DefaultPieceStorage.cc
  6710. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  6711. CopyDiskAdaptor.
  6712. * src/CopyDiskAdaptor.h
  6713. (topDir): New variable.
  6714. (setTopDir): New function.
  6715. (getTopDir): New function.
  6716. * src/CopyDiskAdaptor.cc
  6717. (fixFilename): Updated.
  6718. Misc
  6719. * src/UrlRequestInfo.h
  6720. (e): Removed.
  6721. (UrlRequestInfo): Removed e.
  6722. (getDownloadEngine): Removed.
  6723. * src/UrlRequestInfo.cc
  6724. (handler): Rewritten.
  6725. (printUrls): New function.
  6726. (execute): Call printUrls().
  6727. * src/HandshakeMessage.cc
  6728. (check): peerinteraction->getBtContext() -> btContext
  6729. * src/PeerInteraction.h
  6730. (getBtContext): Removed.
  6731. * src/TorrentRequestInfo.h
  6732. (execute): RequestInfo* -> RequestInfos
  6733. (getDownloadEngine): Removed.
  6734. * src/TorrentRequestInfo.cc
  6735. (haltRequested): Removed.
  6736. (btHaltRequested): New variable.
  6737. (torrentHandler): haltRequested -> btHaltRequested
  6738. (execute): RequestInfo* -> RequestInfos
  6739. * src/TorrentConsoleDownloadEngine.cc
  6740. (afterEachIteration): haltRequested -> btHaltRequested.
  6741. * src/ConsoleDownloadEngine.h
  6742. (initStatistics): Added virtual.
  6743. (calculateStatistics): Added virtual.
  6744. (onEndOfRun): Added virtual.
  6745. (afterEachIteration): Added virtual.
  6746. * src/ConsoleDownloadEngine.cc
  6747. (haltRequested): New variable.
  6748. (afterEachIteration): New function.
  6749. * src/main.cc
  6750. (requestInfo): Removed.
  6751. * src/SegmentMan.cc
  6752. (findSlowerSegmentEntry): Refactored.
  6753. * Release 0.9.0
  6754. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  6756. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  6757. * src/TorrentMan.h: Removed.
  6758. * src/TorrentMan.cc: Removed.
  6759. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  6760. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  6761. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  6762. * src/PeerAbstractCommand.cc: Use btRuntime.
  6763. * src/BtContextAwareCommand.h: New class.
  6764. * src/FileEntry.h: Added accessor methods for following variables.
  6765. (path): Made private.
  6766. (length): Made private.
  6767. (offset): Made private.
  6768. (extracted): Made private.
  6769. (requested): Made private.
  6770. (FileEntries): New definition.
  6771. (FileEntryHandle): New definition.
  6772. * src/FileEntry.cc: New file.
  6773. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  6774. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  6775. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  6776. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  6777. * src/PieceStorage.h: New file.
  6778. * src/PeerInteractionCommand.h: Use btContext.
  6779. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  6780. btRuntime.
  6781. * src/DefaultBtProgressInfoFile.h: New file.
  6782. * src/DefaultBtProgressInfoFile.cc: New file.
  6783. * src/File.cc
  6784. (Util.h): New include.
  6785. (mkdirs): New function.
  6786. * src/MultiDiskAdaptor.h
  6787. (mkdir): New function.
  6788. * src/PeerListProcessor.h
  6789. (Peers): Removed.
  6790. * src/PeerInteraction.h
  6791. (torrentMan): Removed.
  6792. (btContext): New variable.
  6793. (peerStorage): New variable.
  6794. (pieceStorage): New variable.
  6795. (btAnnounce): New variable.
  6796. (getTorrentMan): Removed.
  6797. (getBtContext): New function.
  6798. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  6799. btAnnounce.
  6800. * src/HandshakeMessage.h
  6801. (TorrentMan.h): Removed.
  6802. * src/HandshakeMessage.cc: Use btContext.
  6803. * src/DefaultBtAnnounce.cc: New file.
  6804. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  6805. * src/DefaultPieceStorage.cc: New file.
  6806. * src/DefaultBtContext.h: New file.
  6807. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  6808. Use the accessor methods of FileEntry.
  6809. * src/CookieBox.cc: Updated to use Util::slice().
  6810. * src/PieceMessage.cc: Use btContext, pieceStorage.
  6811. * src/common.h (SharedHandle.h): New include.
  6812. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  6813. pieceStorage.
  6814. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  6815. * src/DiskAdaptor.h
  6816. (topDir): Removed.
  6817. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  6818. (setTopDir): Removed.
  6819. (getTopDir): Removed.
  6820. * src/BtContext.h: New file.
  6821. * src/DefaultPeerStorage.h: New file.
  6822. * src/PieceMessage.h (TorrentMan.h): Removed.
  6823. * src/RequestMessage.h (TorrentMan.h): Removed.
  6824. * src/TorrentDownloadEngine.h
  6825. (uploadLength): New variable.
  6826. (btContext): New variable.
  6827. (btRuntime): New variable.
  6828. (pieceStorage): New variable.
  6829. (peerStorage): New variable.
  6830. (btAnnounce): New variable.
  6831. (btProgressInfoFile): New variable.
  6832. (torrentMan): Removed.
  6833. (setBtContext): New function.
  6834. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  6835. peerStorage, btAnnounce, btProgressInfoFile.
  6836. * src/Piece.h
  6837. (toString): New function.
  6838. (Pieces): New type definition.
  6839. * src/Peer.h
  6840. (active): New variable.
  6841. (Peer): Added active.
  6842. (activate): Set active to true.
  6843. (deactivate): Set active to false.
  6844. (isActive): New function.
  6845. (Peers): New type definition.
  6846. * src/DirectDiskAdaptor.cc
  6847. (getFilePath): Use the accessor methods of FileEntry.
  6848. * src/TorrentConsoleDownloadEngine.h
  6849. (afterEachIteration): New function.
  6850. * src/TorrentConsoleDownloadEngine.cc
  6851. (haltRequested): New variable.
  6852. (sendStatistics): Use pieceStorage, btRuntime.
  6853. (afterEachIteration): New function.
  6854. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  6855. * src/Directry.h
  6856. (Directory): New function.
  6857. (DirectoryHandle): New type definition.
  6858. * src/BtProgressInfoFile.h: New file.
  6859. * src/RequestMessage.cc: Use pieceStorage.
  6860. * src/BtRuntime.h: New file.
  6861. * src/DefaultBtContext.cc: New file.
  6862. * src/BitfieldMan.h
  6863. (getCompletedLength): New function(private).
  6864. (getCompletedLength): New function.
  6865. (getFilteredCompletedLength): New function.
  6866. * src/BitfieldMan.h
  6867. (getCompletedLength): New function(private).
  6868. (getCompletedLength): New function.
  6869. (getFilteredCompletedLength): New function.
  6870. * src/MultiDiskAdaptor.cc
  6871. (mkdir): New function.
  6872. (openFile): Call mkdir().
  6873. (initAndOpenFile): Call mkdir().
  6874. * src/CancelMessage.h
  6875. (TorrentMan.h): Removed.
  6876. * src/RejectMessage.h
  6877. (TorrentMan.h): Removed.
  6878. * src/DownloadEngineFactory.cc
  6879. (DefaultPieceStorage.h): New include.
  6880. (DefaultPeerStorage.h): New include.
  6881. (DefaultBtAnnounce.h): New include.
  6882. (DefaultBtProgressInfoFile.h): New include.
  6883. (newTorrentConsoleEngine): Rewritten.
  6884. * src/ShareRatioSeedCriteria.h
  6885. (torrentMan): Removed.
  6886. (btContext): New variable.
  6887. (peerStorage): New variable.
  6888. (btRuntime): New variable.
  6889. (evaluate): Use btContext, btRuntime, peerStorage.
  6890. * src/AnnounceTier.h: New file.
  6891. * src/BtAnnounce.h: New file.
  6892. * src/BtRegistry.h: New file.
  6893. * src/PeerInitiateConnectionCommand.h: Added btContext.
  6894. * src/PeerConnection.h (TorrentMan.h): Removed.
  6895. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  6896. * src/Util.h
  6897. (slice): Added an argument.
  6898. * src/Util.cc
  6899. (slice): Added an argument to control whether trim is made or not.
  6900. * src/PeerStorage.h: New file.
  6901. * src/BtRegistry.cc: New file.
  6902. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  6903. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  6904. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  6905. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  6906. * src/TorrentRequestInfo.h
  6907. (e): Removed.
  6908. (showFileEntry): Added an argument.
  6909. (getDownloadEngine): Return 0.
  6910. * src/DefaultBtAnnounce.h: New file.
  6911. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  6912. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  6913. * src/PeerMessageFactory.h
  6914. (btContext): New variable.
  6915. (pieceStorage): New variable.
  6916. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  6917. btAnnounce.
  6918. * src/DiskAdaptor.cc
  6919. (DiskAdaptor): Removed topDir.
  6920. (~DiskAdaptor): Removed topDir.
  6921. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  6922. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  6923. * src/File.h (mkdirs): New function.
  6924. * src/DefaultPeerStorage): New file.
  6925. * src/DownloadEngineFactory.h
  6926. (newTorrentConsoleEngine): Use btContext.
  6927. * src/BtContextAwareCommand.cc: New file.
  6928. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  6929. * src/PeerMessage.h
  6930. (btContext): New variable.
  6931. (peerStorage): New variable.
  6932. (pieceStorage): New variable.
  6933. (setBtContext): New function.
  6934. * src/Directry.cc
  6935. (Directory): New function.
  6936. (createDir): Do nothing if name.size() == 0.
  6937. * src/AnnounceList.h
  6938. (AnnounceTier): Removed.
  6939. (AnnounceTiers): Removed.
  6940. * src/DefaultPieceStorage.h: New file.
  6941. * src/Piece.cc (toString): New function.
  6942. To fix typo:
  6943. * src/main.cc (showVersion): Fixed typo.
  6944. To fix compile warning:
  6945. * src/DelegatingPeerListProcessor.cc
  6946. (canHandle): Added "return false".
  6947. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  6949. make the process of announce request testable.
  6950. * src/TrackerWatcherCommand.h
  6951. (TimeA2.h): Removed.
  6952. (interval): Removed.
  6953. (checkPoint): Removed.
  6954. (createRequestCommand): Added an argument 'url'.
  6955. (TrackerWatherCommand): Removed interval.
  6956. (createCommand): New function.
  6957. * src/DownloadEngineFactory.cc
  6958. (newTorrentConsoleEngine): Updated according to the changes in
  6959. TrackerWatherCommand.
  6960. * src/TorrentMan.cc
  6961. (DelegatingPeerListProcessor.h): New includes.
  6962. (TorrentMan): Added the initialization of announceInterval.
  6963. (isStoppedAnnounceReady): New function.
  6964. (isCompletedAnnounceReady): New function.
  6965. (isDefaultAnnounceReady): New function.
  6966. (isAnnounceReady): New function.
  6967. (getAnnounceUrl): New function.
  6968. (announceStart): New function.
  6969. (announceFailure): New function.
  6970. (announceSuccess): New function.
  6971. (isAllAnnounceFailed): New function.
  6972. (resetAnnounce): New function.
  6973. (processAnnounceResponse): New function.
  6974. (needMorePeerConnection): New function.
  6975. (noMoreAnnounce): New function.
  6976. * src/TrackerUpdateCommand.h
  6977. (getTrackerResponse): int->size_t
  6978. * src/TorrentMan.h
  6979. (isStoppedAnnounceReady): New function.
  6980. (isCompletedAnnounceReady): New function.
  6981. (isDefaultAnnounceReady): New function.
  6982. (announceInterval): New variable.
  6983. (isAnnounceReady): New function.
  6984. (getAnnounceUrl): New function.
  6985. (announceStart): New function.
  6986. (announceFailure): New function.
  6987. (announceSuccess): New function.
  6988. (isAllAnnounceFailed): New function.
  6989. (resetAnnounce): New function.
  6990. (processAnnounceResponse): New function.
  6991. (needMorePeerConnection): New function.
  6992. (noMoreAnnounce): New function.
  6993. * src/TrackerWatcherCommand.cc
  6994. (TrackerWatherCommand): Removed interval and checkPoint.
  6995. (execute): Rewritten.
  6996. (createCommand): New function.
  6997. (createRequestCommand): Rewritten.
  6998. * src/TrackerUpdateCommand.cc
  6999. (MetaFileUtil.h): Removed.
  7000. (DelegatingPeerListProcessor.h): Removed.
  7001. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7002. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Request -> RequestHandle:
  7004. * src/HttpResponseCommand.h: Request->RequestHandle
  7005. * src/AbstractCommand.cc: Request->RequestHandle
  7006. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7007. * src/HttpRequestCommand.cc: Request->RequestHandle
  7008. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7009. * src/AbstractCommand.h: Request->RequestHandle
  7010. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7011. * src/HttpResponseCommand.cc: Request->RequestHandle
  7012. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7013. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7014. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7015. * src/HttpConnection.h: Request->RequestHandle
  7016. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7017. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7018. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7019. * src/DownloadCommand.h: Request->RequestHandle
  7020. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7021. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7022. * src/HttpRequestCommand.h: Request->RequestHandle
  7023. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7024. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7025. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7026. * src/HttpDownloadCommand.h: Request->RequestHandle
  7027. * src/FtpConnection.cc: Request->RequestHandle
  7028. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7029. * src/UrlRequestInfo.cc: Request->RequestHandle
  7030. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7031. * src/HttpConnection.h: Request->RequestHandle
  7032. * src/DownloadCommand.cc: Request->RequestHandle
  7033. * src/FtpConnection.h: Request->RequestHandle
  7034. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7035. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7036. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7037. * src/Request.h
  7038. (SharedHandle.h): New include.
  7039. (RequestHandle): New type definition.
  7040. (Requests): Redefined.
  7041. To add MULTITRACKER support:
  7042. * src/TrackerWatcherCommand.h
  7043. (createRequestCommand): New function.
  7044. * src/DownloadEngineFactory.cc
  7045. (newTorrentConsoleEngine): Removed req.
  7046. * src/prefs.h
  7047. (PREF_TRACKER_MAX_TRIES): New definition.
  7048. * src/TorrentMan.cc
  7049. (TorrentMan): Removed req. Added trackerNumTry.
  7050. (~TorrentMan): Removed req.
  7051. (setupInternal1): Added announceList.
  7052. * src/TorrentRequestInfo.cc
  7053. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7054. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7055. * src/main.cc
  7056. (main): Added PREF_TRACKER_MAX_TRIES.
  7057. * src/TorrentMan.h
  7058. (Request.h): Removed.
  7059. (AnnounceList.h): New include.
  7060. (trackerNumTry): New variable.
  7061. (req): Removed.
  7062. (announceList): New variable.
  7063. * src/TrackerWatcherCommand.cc
  7064. (execute): Rewritten.
  7065. (createRequestCommand): New function.
  7066. * src/TrackerUpdateCommand.cc
  7067. (execute): Updated with the use of AnnounceList.
  7068. * src/AnnounceList.cc: New class.
  7069. * src/AnnounceList.h: New class.
  7070. To fix typo:
  7071. * src/prefs.h
  7072. (PREF_MAX_TRIES): max_try->max_tries
  7073. To not to decode "+" as space in URL decode:
  7074. * src/Util.cc
  7075. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7076. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. To add timeout to async name resolution:
  7078. * src/AbstractCommand.h
  7079. (nameResolveFinished): New function. This is not elegant way. It needs
  7080. to be more refined.
  7081. (nameResolverCheck): New variable.
  7082. * src/AbstractCommand.cc
  7083. (AbstractCommand): Added nameResolverCheck.
  7084. (execute): Added the check whether the name resolution has finished.
  7085. (setNameResolverCheck): Set nameResolverCheck to true.
  7086. (disableNameResolverCheck): Set nameResolverCheck to false.
  7087. (nameResolverFinished): New function.
  7088. * src/FtpInitiateConnectionCommand.h
  7089. (nameResolverFinished): New function.
  7090. * src/FtpInitiateConnectionCommand.cc
  7091. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7092. * src/HttpInitiateConnectionCommand.h
  7093. (nameResolverFinished): New function.
  7094. * src/HttpInitiateConnectionCommand.cc
  7095. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7096. * src/prefs.h
  7097. (PREF_DNS_TIMEOUT): New definition.
  7098. * src/main.cc
  7099. (main): Added PREF_DNS_TIMEOUT.
  7100. To add the support for a non-compact response from a tracker:
  7101. * src/PeerListProcessor.h: New class.
  7102. * src/DefaultPeerListProcessor.h: New class.
  7103. * src/DefaultPeerListProcessor.cc: New class.
  7104. * src/CompactPeerListProcessor.h: New class.
  7105. * src/CompactPeerListProcessor.cc: New class.
  7106. * src/DelegatingPeerListProcessor.h: New class.
  7107. * src/DelegatingPeerListProcessor.cc: New class.
  7108. * src/TorrentMan.cc
  7109. (addPeer): New function(overload).
  7110. (addPeer): Delete unused peers only when new peer is added.
  7111. * src/TorrentMan.h
  7112. (PeerListProcessor.h): Included.
  7113. (Peers): Removed.
  7114. (addPeer): New function(overload).
  7115. * src/TrackerUpdateCommand.cc
  7116. (netinet/in.h): Removed.
  7117. (DelegatingPeerListProcessor.h): Included.
  7118. (execute): Updated to use DelegatingPeerListProcessor.
  7119. To fix the memory leak in TorrentMan::peers:
  7120. * src/PeerAbstractCommand.cc
  7121. (onAbort): Added peer->resetStatus().
  7122. * src/Peer.h
  7123. (resetStatus): Made public.
  7124. To improve the precision of the speed calculation:
  7125. * src/SpeedCalc.h
  7126. (nextInterval): New variable.
  7127. * src/SpeedCalc.cc
  7128. (reset): Added nextInterval.
  7129. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7130. (changeSw): Set nextInterval to 15 seconds relative to the current
  7131. instant time.
  7132. * src/main.cc
  7133. (showVersion): Updated.
  7134. (showUsage): Updated.
  7135. * Release 0.8.1
  7136. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. * src/main.cc
  7138. (showUsage): Commented out --min-segment-size option.
  7139. (main): Commented out --min-segment-size option.
  7140. * Release 0.8.0
  7141. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. * src/*.{h,cc}:
  7143. Added an exception to the license which allows linking with OpenSSL.
  7144. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. * src/AbstractCommand.cc
  7146. (execute): Check whether the download has finished before checking
  7147. socket status.
  7148. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7149. Do not exit even if no segment is available.
  7150. * src/prefs.h
  7151. (PREF_STARTUP_IDLE_TIME): New definition.
  7152. * src/PeerInteractionCommand.cc
  7153. (executeInternal): Removed max speed limit. Because it performs bad.
  7154. (receiveMessages): Added max speed limit. This was better than above,
  7155. but still a little bit to be desired. Sometimes the download speed
  7156. became much faster than I specified.
  7157. * src/SpeedCalc.h
  7158. (start): New variable.
  7159. (accumulatedLength): New variable.
  7160. (getAvgSpeed): New function.
  7161. * src/SpeedCalc.cc
  7162. (reset): Added start, accumulatedLength.
  7163. (update): Added calculation of an average speed.
  7164. (getAvgSpeed): New function.
  7165. * src/DownloadCommand.h
  7166. (sw): Removed.
  7167. * src/main.cc
  7168. (main): Added PREF_STARTUP_IDLE_TIME.
  7169. * src/PeerStat.h
  7170. (STATUS): Added REQUEST_IDLE.
  7171. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7172. (getAvgDownloadSpeed): New function
  7173. (requestIdle): New function.
  7174. * src/SegmentMan.h
  7175. (SegmentEntryHandle): New type definition.
  7176. (SegmentEntries): Now holds SegmentEntryHandle.
  7177. (findSlowerSegmentEntry): New funtion.
  7178. * src/SegmentMan.cc
  7179. (save): Updated according to the changes in SegmentEntries.
  7180. (read): Updated according to the changes in SegmentEntries.
  7181. (FindSegmentEntryByIndex): Updated according to the changes in
  7182. SegmentEntries.
  7183. (FindSegmentEntryByCuid): Updated according to the changes in
  7184. SegmentEntries.
  7185. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7186. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7187. Renamed uitr as itr.
  7188. (findSlowerSegmentEntry): New function.
  7189. (getSegment): Updated according to the changes in SegmentEntries.
  7190. Added the feature that cancels the segment with slow server and fast
  7191. one takes it over.
  7192. (cancelSegment): Updated according to the changes in SegmentEntries.
  7193. (getDownloadLength): Updated according to the changes in
  7194. SegmentEntries.
  7195. (init): Assigned 0 to bitfield after deleting it.
  7196. * src/DownloadCommand.cc
  7197. (STARTUP_IDLE_TIME): Removed.
  7198. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7199. * src/PeerChokeCommand.cc
  7200. (optUnchokingPeer): Updated according to the changes in Peer.
  7201. (ResetDelta): Removed.
  7202. (UploadFaster): Updated according to the changes in Peer.
  7203. (DownloadFaster): Updated according to the changes in Peer.
  7204. (execute): I clarify the meaning of "upload" and "download" here.
  7205. "upload" means the transfer from localhost to remote host.
  7206. "download" means the transfer from remote host to localhost.
  7207. Based on this rule, I swapped orderByUploadRate and
  7208. orderByDownloadRate.
  7209. * src/PeerInteractionCommand.cc
  7210. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7211. (executeInternal): Removed the argument of
  7212. peerInteraction->sendMessages().
  7213. (receiveMessages): Rewritten download speed limit.
  7214. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7215. * src/HttpResponseCommand.cc
  7216. (handleDefaultEncoding): If file size is unknown in torrent request,
  7217. do not call segmentMan->initBitfield() here.
  7218. Disabled persistent connection feature in torrent request.
  7219. * src/UrlRequestInfo.h
  7220. (UrlRequestInfo): Removed const qualifier from option.
  7221. * src/TorrentMan.h
  7222. (TransferStat): New class.
  7223. (deltaDownloadLength): Removed.
  7224. (deltaUploadLength): Removed.
  7225. (addDeltaDownloadLength): Removed.
  7226. (getDeltaDownloadLength): Removed.
  7227. (resetDeltaDownloadLength): Removed.
  7228. (addDeltaUploadLength): Removed.
  7229. (getDeltaUploadLength): Removed.
  7230. (resetDeltaUploadLength): Removed.
  7231. (addActivePeer): Added peer->activate().
  7232. (deleteActivePeer): Added peer->deactivate().
  7233. (calculateStat): New function.
  7234. * src/TorrentMan.cc
  7235. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  7236. (calculateStat): New function.
  7237. * src/PeerInteraction.h
  7238. (uploadLimit): Removed.
  7239. (option): New variable.
  7240. (setUploadLimit): Removed.
  7241. (getUploadSpeed): Removed.
  7242. (sendMessages): Removed the argument "currentUploadSpeed".
  7243. * src/PeerInteraction.cc
  7244. (prefs.h): Included.
  7245. (PeerInteraction): Removed uploadLimit. Added option.
  7246. (sendMessages): Rewritten upload speed limit.
  7247. (sendHandshake): Removed the argument from sendMessages().
  7248. (sendBitfield): Removed the argument from sendMessages().
  7249. * src/PeerAbstractCommand.cc
  7250. (execute): Commented out the portion of upload limit.
  7251. (onAbort): Removed peer->resetStatus().
  7252. * src/TorrentRequestInfo.cc
  7253. (timeoutSpecified): Declared extern.
  7254. (execute): Set timeout to 180 if timeout is not specified by.
  7255. command-line.
  7256. * src/PieceMessage.cc
  7257. (receivedAction): Added peer->updateDownloadLength().
  7258. Removed peer->addPeerUpload().
  7259. Removed torrentMan->addDeltaDownloadLength().
  7260. (send): Added peer->updateUploadLength().
  7261. Removed peer->addPeerDownload().
  7262. Removed torrentMan->addDeltaUploadLength().
  7263. * src/main.cc
  7264. (timeoutSpecified): New variable.
  7265. (main): Set timeoutSpecified to false.
  7266. If the command-line option "--upload-limit" is specified, then
  7267. timeoutSpecified is set to true. This option will remain in the next
  7268. release, but be deprecated in the future release.
  7269. * src/TorrentRequestInfo.h
  7270. (TorrentRequestInfo): Removed const qualifier from op.
  7271. * src/PeerStat.h
  7272. (uploadSpeed): New variable.
  7273. (PeerStat): Added default value to cuid.
  7274. (calculateUploadSpeed): New function.
  7275. (updateUploadLength): New function.
  7276. (getMaxUploadSpeed): New function.
  7277. (getAvgUploadSpeed): New function.
  7278. (reset): Added uploadSpeed. Set status to IDLE.
  7279. * src/TorrentDownloadEngine.h
  7280. (cp): Declared as Time.
  7281. (sessionDownloadLengthArray): Removed.
  7282. (sessionUploadLengthArray): Removed.
  7283. (currentCp): Removed.
  7284. (lastCalcStat): New variable
  7285. (lastElapsed): Removed.
  7286. (sessionDownloadLength): Removed.
  7287. (calculateStat): New function.
  7288. * src/TorrentDownloadEngine.cc
  7289. (initStatistics): Removed lastElapsed, cp[],
  7290. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  7291. currentCp, sessionDownloadLength.
  7292. Added cp.reset() and lastCalcStat.reset().
  7293. (calculateSpeed): Changed the name of the argument.
  7294. (calculateStatistics): Rewritten.
  7295. (calculateStat): New function.
  7296. * src/Peer.h
  7297. (PeerStat.h): Included.
  7298. (peerUpload): Removed.
  7299. (peerDownload): Removed.
  7300. (peerStat): New variable.
  7301. (sessionUploadLength): New variable.
  7302. (sessionDownloadLength): New variable.
  7303. (deltaUpload): Removed.
  7304. (deltaDownload): Removed.
  7305. (resetStatus): Made private.
  7306. (Peer): Added sessionUploadLength, sessionDownloadLength.
  7307. Removed peerUpload, peerDownload.
  7308. (updateUploadLength): New function.
  7309. (addDeltaUpload): Removed.
  7310. (updateDownloadLength): New function.
  7311. (resetDeltaUpload): Removed.
  7312. (getDeltaUpload): Removed.
  7313. (addDeltaDownload): Removed.
  7314. (calculateUploadSpeed): New function.
  7315. (resetDeltaDownload): Removed.
  7316. (getDeltaDownload): Removed.
  7317. (calculateDownloadSpeed): New function.
  7318. (getSessionUploadLength): New function.
  7319. (getSessionDownloadLength): New function.
  7320. (activate): New function.
  7321. (deactivate): New function.
  7322. (addPeerUpload): Removed.
  7323. (setPeerUpload): Removed.
  7324. (getPeerUpload): Removed.
  7325. (addPeerDownload): Removed.
  7326. (setPeerDownload): Removed.
  7327. (getPeerDownload): Removed.
  7328. * src/Peer.cc
  7329. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  7330. * src/MetalinkRequestInfo.h
  7331. (MetalinkRequestInfo): Removed const qualifier from op.
  7332. * src/RequestInfo.h
  7333. (op): Removed const qualifier.
  7334. (RequestInfo): Removed const qualifier from op.
  7335. * src/prefs.h
  7336. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  7337. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  7338. * src/PeerInteractionCommand.cc
  7339. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  7340. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  7341. * src/PeerInteraction.cc
  7342. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  7343. * src/main.cc
  7344. (showUsage): Updated the description of "--lowest-speed-limit" option.
  7345. Added the description of "--max-download-limit" option.
  7346. Removed the description of "--upload-limit" option.
  7347. Added the description of "--max-upload-limit" option.
  7348. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  7349. Added "--max-download-limit" option and "--max-upload-limit" option.
  7350. Added the warning message if "--upload-limit" option is used.
  7351. * src/DownloadCommand.cc
  7352. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  7353. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. To rewrite segment download mechanism for HTTP/FTP download.
  7355. Use BitfieldMan to manage segment download.
  7356. * src/HttpResponseCommand.h
  7357. (executeInternal): Pass the reference of segment.
  7358. * src/AbstractCommand.cc
  7359. (prepareForRetry): Call segmentMan->cancelSegment here.
  7360. (onAbort): Call segmentMan->cancelSegment here.
  7361. * src/HttpDownloadCommand.cc
  7362. (prepareForNextSegment): New function.
  7363. * src/DownloadEngineFactory.cc
  7364. (newConsoleEngine): Removed splitter.
  7365. (newTorrentConsoleEngine): Removed splitter.
  7366. * src/Request.h
  7367. (segment): Renamed from seg.
  7368. * src/FtpInitiateConnectionCommand.h
  7369. (executeInternal): Pass the reference of segment.
  7370. * src/AbstractCommand.h
  7371. (executeInternal): Pass the reference of segment.
  7372. * src/pref.h
  7373. (PREF_SEGMENT_SIZE): New definition.
  7374. * src/HttpProxyRequestCommand.h
  7375. (executeInternal): Pass the reference of segment.
  7376. * src/HttpResponseCommand.cc
  7377. (checkResponse): Allowed status 206 when a request range starts 0.
  7378. (handleDefaultEncoding): Rewritten the code related to Segment.
  7379. (handleOtherEncoding): Rewritten the code related to Segment.
  7380. * src/SegmentMan.h
  7381. (SegmentEntry): New class.
  7382. (SegmentEntries): New type definition.
  7383. (bitfield): New variable.
  7384. (usedSegmentEntries): New variable.
  7385. (onNullBitfield): New function.
  7386. (checkoutSegment): New function.
  7387. (segments): Removed.
  7388. (splitter): Removed.
  7389. (unregisterId): Removed.
  7390. (getSegment): New function(overload)
  7391. (getDownloadedSize): Removed.
  7392. (cancelSegment): New function.
  7393. (completeSegment): New function.
  7394. (initBitfield): New function.
  7395. (hasSegment): New function.
  7396. (getDownloadLength): New function.
  7397. * src/BitfieldMan.h
  7398. (getStartIndex): New function.
  7399. (getEndIndex): New function.
  7400. (getMissingUnusedIndex): New function(overload).
  7401. (getSparseMissingUnusedIndex): New function.
  7402. * src/BitfieldMan.cc
  7403. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  7404. (getMissingUnusedIndex): New function(overload).
  7405. (Range): New class.
  7406. (getStartIndex): New function.
  7407. (getEndIndex): New function.
  7408. (getSparseMissingUnusedIndex): New function.
  7409. (isBitSetInternal): Return false if the given index is less than 0.
  7410. * src/HttpInitiateConnectionCommand.h
  7411. (executeInternal): Pass the reference of segment.
  7412. * src/FtpNegotiateCommand.h
  7413. (executeInternal): Pass the reference of segment.
  7414. * src/FtpNegotiateCommand.cc
  7415. (recvSize): Initialize bitfield here.
  7416. * src/FtpTunnelResponseCommand.h
  7417. (executeInternal): Pass the reference of segment.
  7418. * src/HttpConnection.cc
  7419. (createRequest): Rewritten range header processing.
  7420. * src/DownloadCommand.h
  7421. (executeInternal): Pass the reference of segment.
  7422. (prepareForRetry): Removed.
  7423. (prepareForNextSegment): Added an argument segment. Made it a virtual
  7424. function.
  7425. * src/main.cc
  7426. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  7427. * src/SegmentMan.cc
  7428. (SegmentMan): Added bitfield. Removed splitter.
  7429. (~SegmentMan): Added bitfield. Removed splitter.
  7430. (unregisterId): Removed.
  7431. (getSegment): Rewritten.
  7432. (updateSegment): Rewritten.
  7433. (save): Rewritten.
  7434. (read): Rewritten.
  7435. (finished): Rewritten.
  7436. (getDownloadedSize): Removed.
  7437. (initBitfield): New function.
  7438. (FindSegmentEntryByIndex): New function object.
  7439. (FindSegmentEntryByCuid): New function object.
  7440. (checkoutSegment): New function.
  7441. (onNullBitfield): New function.
  7442. (getSegment): New function(overload).
  7443. (CancelSegment): New function object.
  7444. (cancelSegment): New function.
  7445. (completeSegment): New function.
  7446. (hasSegment): New function.
  7447. (getDownloadLength): New function.
  7448. * src/FtpInitiateConnectionCommand.cc
  7449. (executeInternal): Load .aria2 file after hostname resolution finishes.
  7450. * src/Segment.h: Rewritten.
  7451. * src/Segment.cc (operator<<): New function.
  7452. * src/HttpDownloadCommand.h
  7453. (prepareForNextSegment): New function.
  7454. * src/Request.cc
  7455. (resetUrl): Made segment null.
  7456. * src/DownloadEngine.cc
  7457. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  7458. * src/HttpProxyRequestCommand.h
  7459. (executeInternal): Pass the reference of segment.
  7460. * src/DownloadCommand.cc
  7461. (executeInternal): Rewritten the code related to Segment.
  7462. (prepareForRetry): Removed.
  7463. (prepareForNextSegment): Rewritten.
  7464. * src/FtpTunnelResponseCommand.h
  7465. (executeInternal): Pass the reference of segment.
  7466. To add HTTP 1.1 persistent connection support(experimental)
  7467. * src/HttpRequestCommand.cc
  7468. (executeInternal): Disable keep alive if it is disabled by
  7469. configuration.
  7470. * src/Request.h
  7471. (keepAlive): New variable.
  7472. (isKeepAlive): New function.
  7473. (setKeepAlive): New function.
  7474. * src/pref.h
  7475. (PREF_HTTP_KEEP_ALIVE): New definition.
  7476. * src/HttpResponseCommand.cc
  7477. (executeInternal): Check the remote server supports keep alive.
  7478. * src/HttpConnection.cc
  7479. (createRequest): Send "Connection: close" only if keep alive is
  7480. disabled.
  7481. * src/main.cc
  7482. (main):
  7483. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  7484. To add max download speed limit:
  7485. * src/pref.h
  7486. (PREF_MAX_SPEED_LIMIT): New definition.
  7487. * src/PeerInteractionCommand.cc
  7488. (executeInternal): Added max download speed limit. Not tested yet.
  7489. * src/SegmentMan.h
  7490. (PeerStats): New type definition.
  7491. (peerStats): New variable.
  7492. (registerPeerStat): New function.
  7493. (FindPeerStat): New function object.
  7494. (getPeerStat): New function.
  7495. (calculateDownloadSpeed): New function.
  7496. * src/SpeedCalc.h: New class.
  7497. * src/SpeedCalc.cc: New class.
  7498. * src/main.cc
  7499. (main):
  7500. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  7501. download speed is not restricted).
  7502. * src/PeerStat.h: New class.
  7503. * src/SegmentMan.cc
  7504. (registerPeerStat): New function.
  7505. (calculateDownloadSpeed): New function.
  7506. * src/DownloadCommand.cc
  7507. (STARTUP_IDLE_TIME): New definition.
  7508. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  7509. downloadStart.
  7510. (~DownloadCommand): Call peerStat->downloadStop.
  7511. (executeInternal): Added download speed limitter. Rewritten lowest
  7512. speed limitter.
  7513. * src/HttpConnection.cc
  7514. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  7515. * src/AbstractCommand.cc
  7516. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  7517. Added hostname to the error message.
  7518. * src/ConsoleDownloadEngine.cc
  7519. (calculateStatistics): Initialize psize with dlSize.
  7520. * src/PieceMessage.cc
  7521. (receivedAction): Do not call peerInteraction->abortPiece here.
  7522. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  7523. * src/BitfieldMan.h
  7524. (clearAllUseBit): New function.
  7525. (setAllUseBit): New function.
  7526. * src/BitfieldMan.cc
  7527. (clearAllBit): Do not clear useBitfield here.
  7528. (clearAllUseBit): New function.
  7529. (setAllUseBit): New function.
  7530. * src/Piece.cc
  7531. (clearAllBlock): Call bitfield->clearAllUseBit().
  7532. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. To make filename URL-decoded:
  7534. * src/HttpResponseCommand.h: Updated doc.
  7535. * src/HttpResponseCommand.cc
  7536. (determinFilename): Made filename URL-decoded.
  7537. * src/FtpInitiateConnectionCommand.cc
  7538. (executeInternal): Made filename URL-decoded.
  7539. * src/Util.h (urldecode): New function.
  7540. * src/Util.cc (urldecode): New function.
  7541. To fix a bug that caused assertion failure in ares_strerror:
  7542. * src/NameResolver.cc (callback): Fixed the bug.
  7543. * Release 0.7.3
  7544. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. To add --seed-time and --seed-ratio command-line option:
  7546. * src/Option.h (getAsDouble): New function.
  7547. * src/Option.cc (getAsDouble): New function.
  7548. * src/SeedCheckCommand.h: New class.
  7549. * src/SeedCheckCommand.cc: New class.
  7550. * src/DownloadEngineFactory.cc
  7551. (SeedCheckCommand.h): Included.
  7552. (UnionSeedCriteria.h): Included.
  7553. (TimeSeedCriteria.h): Included.
  7554. (ShareRatioSeedCriteria.h): Included.
  7555. (newTorrentConsoleEngine): Added the processing of seed option.
  7556. * src/SeedCriteria.h: New class.
  7557. * src/ShareRatioSeedCriteria.h: New class.
  7558. * src/TimeSeedCriteria.h: New class.
  7559. * src/UnionSeedCriteria.h: New class.
  7560. * src/prefs.h
  7561. (PREF_SEED_TIME): New definition.
  7562. (PREF_SEED_RATIO): New definition.
  7563. * src/main.cc
  7564. (showUsage): Added --seed-time and --seed-ratio option.
  7565. (main): Added --seed-time and --seed-ratio option.
  7566. Made default log file name "/dev/null".
  7567. * src/SharedHandle.h
  7568. (SharedHandle): Copy constructor. Made it assignable from the
  7569. SharedHandle of the subclasses.
  7570. (operator=): Made it assignable from the SharedHandle of the
  7571. subclasses.
  7572. (getRefCount): New function.
  7573. To add notice log level and the switch to write log to stdout. This
  7574. switch is configurable per log level.
  7575. * src/Logger.h
  7576. (notice): New function.
  7577. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  7578. constant.
  7579. * src/LogFactory.cc
  7580. (getInstance): The use of NullLogger was removed. A log message with
  7581. notice log level was made written to stdout along with log file.
  7582. * src/NullLogger.h
  7583. (notice): New function.
  7584. * src/SimpleLogger.h
  7585. (writeHeader): Added the 'file' argument.
  7586. (writeLog): Added the 'file' argument.
  7587. (writeFile): New function.
  7588. (stdoutField): New variable.
  7589. (SimpleLogger): Removed the default constructor.
  7590. (SimpleLogger): Made the default value of logfile 0.
  7591. (debug): Added 'virtual' keyword.
  7592. (info): Added 'virtual' keyword.
  7593. (warn): Added 'virtual' keyword.
  7594. (error): Added 'virtual' keyword.
  7595. (notice): New function.
  7596. (setStdout): New function.
  7597. * src/SimpleLogger.cc
  7598. (WRITE_LOG): Replaced writeLog with writeFile.
  7599. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  7600. (SimpleLogger): Removed the default constructor.
  7601. (setStdout): New function.
  7602. (writeLog): Added the handling of NOTICE log level.
  7603. (writeFile): New function.
  7604. (notice): New function.
  7605. * src/TorrentMan.h: Updated doc.
  7606. * src/BitfieldMan.h: Updated doc.
  7607. * src/TrackerWatcherCommand.cc
  7608. (execute): Return true if error occurred in the request to the tracker
  7609. and halt is requested.
  7610. * src/TrackerUpdateCommand.cc
  7611. (execute): Return true if error occurred in the request to the tracker
  7612. and halt is requested.
  7613. To call onDownloadComplete from TorrentMan::completePiece(), not from
  7614. DownloadEngine:
  7615. * src/TorrentConsoleDownloadEngine.h
  7616. (onSelectiveDownloadingCompletes): Removed.
  7617. * src/TorrentConsoleDownloadEngine.cc
  7618. (onSelectiveDownloadingCompletes): Removed.
  7619. * src/TorrentDownloadEngine.h
  7620. (onEndOfRun): Added 'virtual' keyword.
  7621. (afterEachIteration): Removed.
  7622. (onSelectiveDownloadingCompletes): Removed.
  7623. * src/TorrentDownloadEngine.cc
  7624. (onEndOfRun): Removed filenameFixed.
  7625. (afterEachIteration): Removed.
  7626. * src/TorrentMan.cc
  7627. (completePiece): Call onDownloadComplete here.
  7628. (onDownloadComplete): Added 2 log messages.
  7629. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7630. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  7631. * src/NameResolver.h: Added the prototype declaration of callback().
  7632. To support c-ares library:
  7633. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7634. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7635. * src/FtpInitiateConnectionCommand.h:
  7636. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7637. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7638. * src/HttpInitiateConnectionCommand.h:
  7639. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7640. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  7641. Added thes upport of c-ares's ares_strerror(the idea came from patch
  7642. #1542285 by tizianomueller)
  7643. * src/HttpInitiateConnectionCommand.cc:
  7644. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7645. * src/FtpInitiateConnectionCommand.cc:
  7646. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7647. * src/DownloadEngine.h:
  7648. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7649. * src/DownloadEngine.cc:
  7650. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7651. To fix the bug that causes compilation failure with metalink-support
  7652. disabled(bug#1543587):
  7653. * src/main.cc: Fixed with the patch by tizianomueller.
  7654. * Release 0.7.2
  7655. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. * src/main.cc
  7657. (main): Added a message to inform users that aria2 is starting to
  7658. verify checksum.
  7659. * src/RequestInfo.cc
  7660. (printDownloadAbortMessage): Added a message to inform users that
  7661. transfer can be resumed.
  7662. * src/FeatureConfig.cc
  7663. (FEATURE_ASYNC_DNS): New definition.
  7664. (FeatureConfig): Added aysnc DNS entry.
  7665. To replace CommandUuid with Command* in SocketEntry and
  7666. NameResolverEntry:
  7667. * src/DownloadEngine.h
  7668. (CommandUuids): Removed.
  7669. (SocketEntry::commandUuid): Removed.
  7670. (SocketEntry::command): New variable.
  7671. (SocketEntry::SocketEntry): Updated.
  7672. (SocketEntry::operator==): Updated.
  7673. (NameResolverEntry::commandUuid): Removed.
  7674. (NameResolverEntry::command): New variable.
  7675. (NameResolverEntry::NameResolverEntry): Updated.
  7676. (NameResolverEntry::operator==): Updated.
  7677. (waitData): Changed the argument type.
  7678. (addSocketForReadCheck): Changed the argument type.
  7679. (deleteSocketForReadCheck): Changed the argument type.
  7680. (addSocketForWriteCheck): Changed the argument type.
  7681. (deleteSocketForWriteCheck): Changed the argument type.
  7682. (addNameResolverCheck): Changed the argument type.
  7683. (deleteNameResolverCheck): Changed the argument type.
  7684. * src/DownloadEngine.cc
  7685. (FindCommand): Removed.
  7686. (run): Removed activeUuid. Added activeCommands instead.
  7687. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  7688. (AccumulateActiveCommand): New function object.
  7689. (waitData): Use AccumulateActiveCommand.
  7690. (addSocketForReadCheck): Use Command instead of CommandUuid.
  7691. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  7692. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  7693. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  7694. (addNameResolverCheck): Use Command instead of CommandUuid.
  7695. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  7696. * src/AbstractCommand.cc
  7697. (disableReadCheckSocket): Updated according to the changes in
  7698. DownloadEngine.
  7699. (setReadCheckSocket): Updated according to the changes in
  7700. DownloadEngine.
  7701. (disableWriteCheckSocket): Updated according to the changes in
  7702. DownloadEngine.
  7703. (setWriteCheckSocket): Updated according to the changes in
  7704. DownloadEngine.
  7705. (setNameResolverCheck): Updated according to the changes in
  7706. DownloadEngine.
  7707. (disableNameResolverCheck): Updated according to the changes in
  7708. DownloadEngine.
  7709. * src/AbstractCommand.cc
  7710. (disableReadCheckSocket): Updated according to the changes in
  7711. DownloadEngine.
  7712. (setReadCheckSocket): Updated according to the changes in
  7713. DownloadEngine.
  7714. (disableWriteCheckSocket): Updated according to the changes in
  7715. DownloadEngine.
  7716. (setWriteCheckSocket): Updated according to the changes in
  7717. DownloadEngine.
  7718. * release 0.7.1
  7719. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7720. To handle the case where some BitTorrent tracker requires all letters
  7721. except for [A-Za-z0-9] is URL encoded.
  7722. * src/Util.h
  7723. (torrentUrlencode): New function.
  7724. * src/Util.cc
  7725. (ctype.h): Included.
  7726. (torrentUrlencode): New function.
  7727. * src/TrackerWatcherCommand.cc
  7728. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  7729. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. To add asynchronous DNS support(libares):
  7731. * src/AbstractCommand.h
  7732. (setNameResolverCheck): New function.
  7733. (disableNameResolverCheck): New function
  7734. (resolveHostname): New function.
  7735. * src/AbstractCommand.cc
  7736. (setNameResolverCheck): New function.
  7737. (disableNameResolverCheck): New function
  7738. (resolveHostname): New function.
  7739. * src/FtpInitiateConnectionCommand.h
  7740. (nameResolver): New function.
  7741. * src/FtpInitiateConnectionCommand.cc
  7742. (Util.h): Included.
  7743. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  7744. disableWriteCheckSocket.
  7745. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  7746. (executeInternal): Added async DNS support.
  7747. * src/HttpInitiateConnectionCommand.h
  7748. (nameResolver): New function.
  7749. * src/HttpInitiateConnectionCommand.cc
  7750. (DlRetryEx.h): Included.
  7751. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  7752. disableWriteCheckSocket.
  7753. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  7754. (executeInternal): Added async DNS support.
  7755. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  7756. by extern "C" declaration.
  7757. * src/NameResolver.cc: New class.
  7758. * src/Util.h:
  7759. (isNumberAndDotsNotation): New function
  7760. * src/Util.cc
  7761. (isNumberAndDotsNotation): New function.
  7762. * src/DownloadEngine.h
  7763. (NameResolver.h): Included.
  7764. (NameResolverEntry): New class.
  7765. (NameResolverEntries): New type definition.
  7766. (addNameResolverCheck): New function.
  7767. (deleteNameResolverCheck): New function.
  7768. * src/DownloadEngine.cc
  7769. (run): Initialize cp with 0.
  7770. (SetDescriptor::operator()): Added for NameResolverEntry.
  7771. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  7772. (waitData): Check nameResolver entries.
  7773. (updateFdSet): Update fds in nameResolver entries.
  7774. (addNameResolverCheck): New function.
  7775. (deleteNameResolverCheck): new function.
  7776. * src/PeerInteractionCommand.cc
  7777. (executeInternal): Fixed wrong socket handling.
  7778. * src/main.cc
  7779. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  7780. * src/Util.cc
  7781. (fileChecksum): Removed the call to ctx.digestReset().
  7782. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. * po/ru.po: Azamat sent me Russian translation.
  7784. * src/FtpNegotiateCommand.cc
  7785. (recvGreeting): Call disableWriteCheckSocket just after
  7786. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  7787. (recvRetr): Recognized status code 125 as a acceptable response code.
  7788. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  7789. case-insesitive filesystem(BUG#1531057).
  7790. * src/Time.h: Renamed as TimeA2.h.
  7791. * src/Time.cc: Renamed as TimeA2.cc.
  7792. * src/TimeA2.h: New class.
  7793. * src/TimeA2.cc: New class.
  7794. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  7795. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  7796. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  7797. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  7798. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  7799. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7800. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  7801. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  7802. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  7803. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7804. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  7805. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  7806. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  7807. * release 0.7.0
  7808. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. * src/PeerChokeCommand.h
  7810. (PeerChokeCommand): Rearranged the arguments.
  7811. * src/PeerChokeCommand.cc
  7812. (PeerChokeCommand): Rearranged the arguments.
  7813. * src/MetalinkEntry.h
  7814. (Checksum.h): Included.
  7815. (md5): Removed.
  7816. (sha1): Removed.
  7817. (checksum): New variable.
  7818. (operator=): Updated.
  7819. (check): Removed.
  7820. * src/prefs.h
  7821. (PREF_LOWEST_SPEED_LIMIT): New definition.
  7822. (PREF_FOLLOW_TORRENT): New definition.
  7823. (PREF_SELECT_FILE): New definition.
  7824. (PREF_FOLLOW_METALINK): New definition.
  7825. * src/MetalinkResource.h
  7826. (TYPE_HTTPS): Added to enum TYPE.
  7827. * src/TorrentMan.cc
  7828. (~TorrentMan): Rewritten.
  7829. * src/MultiDiskWriter.cc
  7830. (MultiDiskAdaptor): Updated according to the changes in
  7831. MessageDigestContext.
  7832. (~MultiDiskAdaptor): Updated according to the changes in
  7833. MessageDigestContext.
  7834. (hashUpdate): Updated according to the changes in MessageDigestContext.
  7835. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7836. * src/Util.h
  7837. (fileChecksum): Updated according to the changes in
  7838. MessageDigestContext.
  7839. * src/Util.cc
  7840. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7841. (fileChecksum): Updated according to the changes in
  7842. MessageDigestContext.
  7843. * src/messageDigest.h: Rewritten.
  7844. * src/MetalinkEntry.cc
  7845. (check): Removed.
  7846. (Supported): Updated.
  7847. (dropUnsupportedResource): Fixed a memory leak.
  7848. * src/ShaVisitor.cc
  7849. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  7850. (~ShaVisitor): Updated according to the changes in
  7851. MessageDigestContext.
  7852. (visit): Updated according to the changes in MessageDigestContext.
  7853. * src/main.cc
  7854. (main): Rewritten the portion of download loop. --lowest-speed-limit
  7855. command-line option added.
  7856. * src/DownloadEngine.h
  7857. (SocketEntry): New class.
  7858. (SocketEntries): New definition.
  7859. (PairFind): Removed.
  7860. (SockCmdMap): Removed.
  7861. * src/DownloadEngine.cc
  7862. (DownloadEngine): Rewritten.
  7863. (~DownloadEngine): Rewritten.
  7864. (run): Renamed activeCommandUuids as activeUuids.
  7865. (SetDescriptor): Rewritten.
  7866. (AccumulateActiveCommandUuid): Removed.
  7867. (AccumulateActiveUuid): New function object.
  7868. (waitData): Rewritten.
  7869. (updateFdSet): Rewritten.
  7870. (addSocket): Rewritten.
  7871. (deleteSocket): Rewritten.
  7872. (addSocketForReadCheck): Rewritten.
  7873. (deleteSocketForReadCheck): Rewritten.
  7874. (addSocketForWriteCheck): Rewritten.
  7875. (deleteSocketForWriteCheck): Rewritten.
  7876. * src/Xml2MetalinkProcessor.cc
  7877. (getEntry): Rewritten the portion of MetalinkEntry creation.
  7878. * src/DownloadCommand.cc
  7879. (executeInternal): Added the check routine for lowest speed limit.
  7880. * src/AbstractDiskWriter.cc
  7881. (AbstractDiskWriter): Updated according to the changes in
  7882. MessageDigestContext.
  7883. (~AbstractDiskWriter): Updated according to the changes in
  7884. MessageDigestContext.
  7885. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7886. * src/RequestInfo.h: New class.
  7887. * src/UrlRequestInfo.h: New class.
  7888. * src/UrlRequestInfo.cc: New class.
  7889. * src/TorrentRequestInfo.h: New class.
  7890. * src/TorrentRequestInfo.cc: New class.
  7891. * src/MetalinkRequestInfo.h: New class.
  7892. * src/MetalinkRequestInfo.cc: New class.
  7893. * src/Checksum.h: New class.
  7894. * src/DownloadEngineFactory.h: New class.
  7895. * src/DownloadEngineFactory.cc: New class.
  7896. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7897. * src/Option.h
  7898. (getAsBool): New function.
  7899. * src/Option.cc
  7900. (prefs.h): Included.
  7901. (defined): 0-length value is now recognized as undefined.
  7902. (getAsInt): Rewritten.
  7903. (getAsLLInt): Rewritten.
  7904. (getAsBool): New function.
  7905. * src/FeatureConfig.h: Rewritten.
  7906. * src/FeatureConfig.cc: Rewritten.
  7907. * src/prefs.h
  7908. (PREF_STDOUT_LOG): New definition.
  7909. (PREF_LOG): New definition.
  7910. (PREF_DIR): New definition.
  7911. (PREF_OUT): New definition.
  7912. (PREF_SPLIT): New definition.
  7913. (PREF_DAEMON): New definition.
  7914. (PREF_REFERER): New definition.
  7915. (PREF_TORRENT_FILE): New definition.
  7916. (PREF_LISTEN_PORT): New definition.
  7917. (PREF_METALINK_FILE): New definition.
  7918. (PREF_METALINK_VERSION): New definition.
  7919. (PREF_METALINK_LANGUAGE): New definition.
  7920. (PREF_METALINK_OS): New definition.
  7921. (PREF_METALINK_SERVERS): New definition.
  7922. * src/main.cc
  7923. (main): Following command-line parameters are now put into Option
  7924. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  7925. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  7926. metalinkLanguage, metalinkOs, metalinkServers
  7927. To fix the bug that aria2 can not handle http response header properly.
  7928. * src/HttpHeader.cc
  7929. (put): Made name lowercased.
  7930. (defined): Made name lowercased.
  7931. (getFirst): Made name lowercased.
  7932. (get): Made name lowercased.
  7933. (getFirstAsInt): Rewritten.
  7934. (getFirstAsLLInt): Rewritten.
  7935. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. * src/TorrentMan.h:
  7937. (advertisePiece): Updated doc.
  7938. (getAdvertisedPieceIndexes): Updated doc.
  7939. (removeAdvertisedPiece); New function.
  7940. * src/TorrentMan.cc
  7941. (FindElapsedHave): New function object.
  7942. (removeAdvertisedPiece): New function.
  7943. * src/HaveEraseCommand.h: New class.
  7944. * src/HaveEraseCommand.cc: New class.
  7945. * src/FeatureConfig.h: New class.
  7946. * src/FeatureConfig.cc: New class.
  7947. * src/Request.h
  7948. (defaultPorts): Removed.
  7949. * src/Request.cc
  7950. (FeatureConfig.h): Included.
  7951. (Request): Removed the statements related to defaultPorts.
  7952. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  7953. A default port number is now retrieved from FeatureConfig.
  7954. * src/main.cc
  7955. (HaveEraseCommand.h): Included.
  7956. (showVersion): Added the output of feature list.
  7957. (main): Added HaveEraseCommand to command queue in BitTorrent
  7958. downloading.
  7959. * src/PeerInteractionCommand.h
  7960. (chokeCheckPoint): Commented out.
  7961. (periodicExecPoint): New variable.
  7962. * src/PeerInteractionCommand.cc
  7963. (executeInternal): Following methods are now called in at least every
  7964. 0.5 seconds to reduce CPU usage:
  7965. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  7966. checkHave(), sendKeepAlive().
  7967. (checkLongTimePeerChoking): Commented out.
  7968. * src/BitfieldMan.h
  7969. (getNthBitIndex): Changed the method signature.
  7970. (getMissingIndexRandomly): Changed the method signature.
  7971. * src/BitfieldMan.cc
  7972. (getNthBitIndex): Rewritten
  7973. (getMissingIndexRandomly): Rewritten.
  7974. (hasMissingPiece): Rewritten.
  7975. (getMissingIndex): Refactored.
  7976. (getMissingUnusedIndex); Refactored.
  7977. (getMissingIndex): Refactored.
  7978. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7979. * src/PeerMessage.h
  7980. (Piece.h): Included.
  7981. (SharedHandle.h): Included.
  7982. (invalidate): New variable.
  7983. (uploading): New variable.
  7984. (isInvalidate): New function.
  7985. (isUploading): New function.
  7986. (onPush): New function.
  7987. (onChoked): New function.
  7988. (onCanceled): New function.
  7989. (onAbortPiece): New function.
  7990. (PeerMessageHandle): New type definition.
  7991. * src/PeerMessage.cc
  7992. (PeerMessage): Added the initialization for invalidate and uploading.
  7993. * src/CancelMessage.h
  7994. (CancelMessage): Rewritten.
  7995. * src/RejectMessage.h
  7996. (RejectMessage): Rewritten.
  7997. * src/Metalinker.h
  7998. (operator=): Defined.
  7999. * src/MetaEntry.h
  8000. (operator=): Defined.
  8001. * src/MetalinkResource.h
  8002. (operator=): Defined.
  8003. * src/AllowedFastMessage.h
  8004. (AllowedFastMessage): Rewritten.
  8005. * src/HandshakeMessage.h
  8006. (HandshakeMessage): New function(overload).
  8007. * src/HandshakeMessage.cc
  8008. (HandshakeMessage): Rewritten.
  8009. (init): New function.
  8010. * src/HaveMessage.h
  8011. (HaveMessage): Rewritten.
  8012. * src/Time.h
  8013. (operator=): Defined the function body here.
  8014. * src/Time.cc
  8015. (operator=): Removed.
  8016. * src/SocketCore.h
  8017. (operator==): Defined here.
  8018. (operator!=): Defined here.
  8019. (operator<): Defined here.
  8020. * src/SocketCore.cc
  8021. (operator==): Removed.
  8022. (operator<): Removed.
  8023. * src/BitfieldMan.h
  8024. (operator=): Defined the function body here.
  8025. * src/BitfieldMan.cc
  8026. (operator=): Removed.
  8027. * src/TorrentMan.h
  8028. (deleteErrorPeer): Removed.
  8029. (deleteUnusedPeer); New function.
  8030. * src/TorrentMan.cc
  8031. (addPeer): Call deleteUnusedPeer.
  8032. (deleteErrorPeer): Removed.
  8033. (deleteUnusedPeer): New function.
  8034. * src/PeerAbstractCommand.h
  8035. (setNoCheck): New function.
  8036. (noCheck): New variable.
  8037. * src/PeerAbstractCommand.cc
  8038. (PeerAbstractCommand): Added the initialization of noCheck.
  8039. (execute): Added a check for noCheck.
  8040. (setNoCheck): New function.
  8041. * src/Util.h
  8042. (stdio.h): Included.
  8043. * src/Util.cc
  8044. (unistd.h): Included.
  8045. * src/DefaultDiskWriter.cc
  8046. (unistd.h): Included.
  8047. * src/Peer.h
  8048. (operator==): Defined the function body here.
  8049. (operator!=): Defined the function body here.
  8050. * src/Peer.cc
  8051. (operator==): Removed.
  8052. (operator!=): Removed.
  8053. * src/Piece.h
  8054. (Piece): Defined the function body here(copy constructor).
  8055. (operator=): Defined the function body here.
  8056. (operator==): Defined the function body here.
  8057. * src/Piece.cc
  8058. (Piece): Removed(copy constructor).
  8059. (operator=): Removed.
  8060. (operator==): Removed.
  8061. * src/PeerMessageUtil.h
  8062. (ChokeMessage.h): Removed.
  8063. (UnchokeMessage.h): Removed.
  8064. (InterestedMessage.h): Removed.
  8065. (NotInterestedMessage.h): Removed.
  8066. (HaveMessage.h): Removed.
  8067. (BitfieldMessage.h): Removed.
  8068. (RequestMessage.h): Removed.
  8069. (CancelMessage.h): Removed.
  8070. (PieceMessage.h): Removed.
  8071. (HandshakeMessage.h): Removed.
  8072. (KeepAliveMessage.h): Removed.
  8073. (PortMessage.h): Removed.
  8074. (HaveAllMessage.h): Removed.
  8075. (HaveNoneMessage.h): Removed.
  8076. (PeerConnection.h): Removed.
  8077. (HandshakeMessage.h): Included.
  8078. * src/BitfieldMessage.h
  8079. (init): New function.
  8080. (BitfieldMessage): Rewritten.
  8081. (BitfieldMessage): New function(overload).
  8082. * src/RequestSlot.h
  8083. (operator=): Defined the function body here.
  8084. (operator==): Defined the function body here.
  8085. * src/RequestSlot.cc
  8086. (operator=): Removed.
  8087. (operator==): Removed.
  8088. To remove the dependency on the PeerMessage subclass from
  8089. PeerInteraction:
  8090. * src/PeerMessageFactory.h: New class.
  8091. * src/PeerMessageFactory.cc: New class.
  8092. * src/SimplePeerMessage.cc
  8093. (send): If invalidate is true then do nothing.
  8094. * src/PeerInteractionCommand.cc
  8095. (HandshakeMessage.h): Included.
  8096. (KeepAliveMessage.h): Included.
  8097. (ChokeMessage.h): Included.
  8098. (UnchokeMessage.h): Included.
  8099. (HaveMessage.h): Included.
  8100. (executeInternal): Call setNoCheck().
  8101. Removed setWriteCheckSocket(socket).
  8102. * src/PeerInteraction.h
  8103. (ChokeMessage.h): Removed.
  8104. (UnchokeMessage.h): Removed.
  8105. (InterestedMessage.h): Removed.
  8106. (NotInterestedMessage.h): Removed.
  8107. (HaveMessage.h): Removed.
  8108. (BitfieldMessage.h): Removed.
  8109. (RequestMessage.h): Removed.
  8110. (CancelMessage.h): Removed.
  8111. (PieceMessage.h): Removed.
  8112. (HandshakeMessage.h): Removed.
  8113. (KeepAliveMessage.h): Removed.
  8114. (PortMessage.h): Removed.
  8115. (HaveAllMessage.h): Removed.
  8116. (HaveNoneMessage.h): Removed.
  8117. (RejectMessage.h): Removed.
  8118. (AllowedFastMessage.h): Removed.
  8119. (SuggestPieceMessage.h): Removed.
  8120. (PeerMessageFactory.h): Included.
  8121. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8122. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8123. (PeerMessageFactory): New variable.
  8124. (createPeerMessage): Removed.
  8125. (createHandshakeMessage): Removed.
  8126. (setPeerMessageCommonProperty): Removed.
  8127. (addRequestSlot): New function.
  8128. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8129. (getPeerMessageFactory): New function.
  8130. (createRequestMessage): Removed.
  8131. (createCancelMessage): Removed.
  8132. (createPieceMessage): Removed.
  8133. (createHaveMessage): Removed.
  8134. (createChokeMessage): Removed.
  8135. (createUnchokeMessage): Removed.
  8136. (createInterestedMessage): Removed.
  8137. (createNotInterestedMessage): Removed.
  8138. (createBitfieldMessage): Removed.
  8139. (createKeepAliveMessage): Removed.
  8140. (createHaveAllMessage): Removed.
  8141. (createHaveNoneMessage): Removed.
  8142. (createRejectMessage): Removed.
  8143. (createAllowedFastMessage): Removed.
  8144. * src/PeerInteraction.cc
  8145. (PeerInteraction): Allocate PeerMessageFactory here.
  8146. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8147. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8148. PieceMessage::ID.
  8149. (addMessage): Simplified by using PeerMessage::onPush().
  8150. (addRequestSlot): New function.
  8151. (rejectAllPieceMessageInQueue): Simplified by using
  8152. PeerMessage::onChoked().
  8153. (rejectPieceMessageInQueue): Simplified by using
  8154. PeerMessage::onCanceled().
  8155. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8156. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8157. (createHandshakeMessage): Removed.
  8158. (createPeerMessage): Removed.
  8159. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8160. (setPeerMessageCommonProperty): Removed.
  8161. (createRequestMessage): Removed.
  8162. (createCancelMessage): Removed.
  8163. (createPieceMessage): Removed.
  8164. (createHaveMessage): Removed.
  8165. (createChokeMessage): Removed.
  8166. (createUnchokeMessage): Removed.
  8167. (createInterestedMessage): Removed.
  8168. (createNotInterestedMessage): Removed.
  8169. (createBitfieldMessage): Removed.
  8170. (createKeepAliveMessage): Removed.
  8171. (createHaveAllMessage): Removed.
  8172. (createHaveNoneMessage): Removed.
  8173. (createRejectMessage): Removed.
  8174. (createAllowedFastMessage): Removed.
  8175. * src/PieceMessage.h
  8176. (createRejectMessage): New function.
  8177. (PieceMessage): Rewritten.
  8178. (onChoked): New function.
  8179. (onCanceled): New function.
  8180. * src/PieceMessage.cc
  8181. (send): If invalidate is true then do nothing, just return.
  8182. (createRejectMessage): New function.
  8183. (onChoked): New function.
  8184. (onCanceled): New function.
  8185. * src/RequestMessage.h
  8186. (RequestMessage): Rewritten.
  8187. (onPush): New function.
  8188. (onAbortPiece): New function.
  8189. * src/RequestMessage.cc
  8190. (onPush): New function.
  8191. (onAbortPiece): New function.
  8192. Update fd_set when a socket is added or deleted in order to improve
  8193. performance:
  8194. * src/DownloadEngine.h
  8195. (rfdset): New variable.
  8196. (wfdset): New variable.
  8197. (updateFdSet): New function.
  8198. * src/DownloadEngine.cc
  8199. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8200. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8201. (waitData): Copy rfdset and wfdset.
  8202. (updateFdSet): New function.
  8203. (addSocket): Call updateFdSet.
  8204. (deleteSocket): Call updateFdSet.
  8205. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. To add the support for Metalink3.0 backward compatible links:
  8207. * src/Request.h
  8208. (SAFE_CHARS): Added '#'.
  8209. (METALINK_MARK): New definition.
  8210. * src/Request.cc
  8211. (parseUrl): Added the support for Metalink3.0 backward compatible
  8212. links.
  8213. etc
  8214. * src/PeerInteraction.cc
  8215. (MsgPushBack): Removed.
  8216. (sendMessages): Use STL copy and back_inserter.
  8217. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8218. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8219. * src/TorrentMan.h
  8220. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8221. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. * src/SharedHandle.h: New class.
  8223. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8224. * src/HttpResponseCommand.h
  8225. (HttpResponseCommand): Wrapped Socket.
  8226. * src/SocketCore.h
  8227. (operator==): New function.
  8228. (operator!=): New function.
  8229. (operator<): New function.
  8230. (getSockfd): New function.
  8231. (isOpen): New function.
  8232. (writeData): New function.
  8233. * src/SocketCore.cc
  8234. (operator==): New function.
  8235. (operator!=): New function.
  8236. (operator<): New function.
  8237. * src/AbstractCommand.h
  8238. (socket): Changed its type to SocketHandle.
  8239. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8240. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8241. (disableReadCheckSocket): New function.
  8242. (disableWriteCheckSocket): New function.
  8243. (readCheckTarget): Changed its type to SocketHandle.
  8244. (writeCheckTarget): Changed its type to SocketHandle.
  8245. (AbstractCommand): Replaced Socket with SocketHandle.
  8246. * src/AbstractCommand.cc
  8247. (AbstractCommand): Replaced Socket with SocketHandle.
  8248. (~AbstractCommand): Removed the deallocation for Socket object.
  8249. (disableReadCheckSocket): New function.
  8250. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8251. (disableWriteCheckSocket): New function.
  8252. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8253. * src/HttpDownloadCommand.cc
  8254. (DownloadCommand): Replaced Socket with SocketHandle.
  8255. * src/PeerAbstractCommand.h
  8256. (socket): Changed its type to SocketHandle.
  8257. (peer): Changed its type to PeerHandle.
  8258. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8259. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8260. (disableReadCheckSocket): New function.
  8261. (disableWriteCheckSocket): New function.
  8262. (readCheckTarget): Changed its type to SocketHandle.
  8263. (writeCheckTarget): Changed its type to SocketHandle.
  8264. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8265. Replaced Peer with PeerHandle.
  8266. * src/HttpRequestCommand.cc
  8267. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8268. Use disableReadCheckSocket.
  8269. * src/PeerInitiateConnectionCommand.h
  8270. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8271. * src/PeerChokeCommand.cc
  8272. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  8273. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  8274. (execute): Use PeerHandle.
  8275. * src/PeerConnection.h
  8276. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  8277. (socket): Changed its type to SocketHandle.
  8278. (PeerConnection): Replaced Socket with SocketHandle.
  8279. * src/PeerConnection.cc
  8280. (PeerConnection): Replaced Socket with SocketHandle.
  8281. * src/PeerInteractionCommand.h
  8282. (PeerInteractionCommand): Replaced socket with SocketHandle.
  8283. Replaced Peer with PeerHandle.
  8284. * src/PeerInteractionCommand.cc
  8285. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  8286. Replaced Peer with PeerHandle.
  8287. (executeInternal): Use disableWriteCheckSocket.
  8288. Use HandshakeMessageHandle.
  8289. (receiveMessages): Use PeerMessageHandle.
  8290. (prepareForNextPeer): Use PeerHandle.
  8291. * src/HttpProxyRequestCommand.h
  8292. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8293. * src/HttpResponseCommand.cc
  8294. (HttpResponseCommand): Replaced Socket with SocketHandle.
  8295. * src/TorrentMan.cc
  8296. (nullPeer): Added external reference.
  8297. (~TorrentMan): Removed the deallocation of the elements of peers.
  8298. (addPeer): Rewritten.
  8299. (isPeerAvailable): Use nullPeer.
  8300. (deleteOldpeers): Replaced with deleteErrorPeer.
  8301. (deleteErrorPeer): New function.
  8302. (getPeer): Use PeerHandle and nullPeer.
  8303. (hasMissingPiece): Replaced Peer with PeerHandle.
  8304. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8305. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8306. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8307. (getMissingPiece): Replaced Peer with PeerHandle.
  8308. * src/FtpNegotiateCommand.cc
  8309. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  8310. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  8311. (recvGreeting): Use disableWriteCheckSocket.
  8312. (recvPasv): Removed the allocation of Socket.
  8313. Use disableReadCheckSocket.
  8314. (sendRestPasv): Use disableWriteCheckSocket.
  8315. (recvRetr): Changed assertion.
  8316. * src/PeerInteraction.h
  8317. (SharedHandle.h): Included SharedHandle.h.
  8318. (PeerMessageHandle): New type definition.
  8319. (HandshakeMessageHandle): New type definition.
  8320. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  8321. (peer): Changed its type to PeerHandle.
  8322. (createHandshakeMessage): Replaced HandshakeMessage with
  8323. HandshakeMessageHandle.
  8324. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  8325. (PeerInteraction): Replaced Peer with PeerHandle.
  8326. Replaced Socket with SocketHandle.
  8327. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8328. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8329. (receiveHandshake): Replaced HandshakeMessage with
  8330. HandshakeMessageHandle.
  8331. * src/PeerInteraction.cc
  8332. (PeerInteraction): Replaced Peer with PeerHandle.
  8333. Replaced Socket with SocketHandle.
  8334. (~PeerInteraction): Removed the deallocation of the elements of
  8335. messageQueue.
  8336. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  8337. (isSendingMessageInProgress): Replaced PeerMessage with
  8338. PeerMessageHandle.
  8339. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  8340. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8341. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  8342. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  8343. (abortPiece): Use PeerMessageHandle.
  8344. (receiveHandshake): Replaced HandshakeMessage with
  8345. HandshakeMessageHandle. Removed try-catch block.
  8346. (createHandshakeMessage): Replaced HandshakeMessage with
  8347. HandshakeMessageHandle.
  8348. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8349. Removed try-catch block.
  8350. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  8351. * src/HttpProxyResponseCommand.cc
  8352. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8353. * src/FtpTunnelResponseCommand.h
  8354. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8355. * src/HttpConnection.cc
  8356. (HttpConnection): Replaced Socket with SocketHandle.
  8357. * src/PeerAbstractCommand.cc
  8358. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8359. (~PeerAbstractCommand): Removed the deallocation of socket.
  8360. Use disableReadCheckSocket, disableWriteCheckSocket.
  8361. (disableReadCheckSocket): New function.
  8362. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8363. (disableWriteCheckSocket): New function.
  8364. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8365. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  8366. * src/FtpTunnelRequestCommand.cc
  8367. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8368. (~FtpTunnelRequestCommand): Corrected indentation.
  8369. * src/DownloadCommand.h
  8370. (DownloadCommand): Replaced Socket with SocketHandle.
  8371. * src/PeerListenCommand.cc
  8372. (PeerListenCommand): Removed the initialization of socket.
  8373. (~PeerListenCommand): Removed the deallocation of socket.
  8374. (bindPort): Use SocketHandle.
  8375. (execute): Use SocketHandle and PeerHandle.
  8376. * src/FtpDowndloadCommand.cc
  8377. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8378. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  8379. * src/main.cc
  8380. (main): Corrected indentation.
  8381. * src/HttpInitiateConnectionCommand.cc
  8382. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  8383. (executeInternal): Removed the allocation of socket.
  8384. * src/HttpRequestCommand.h
  8385. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8386. * src/FtpNegotiationCommand.h
  8387. (dataSocket): Changed its type to SocketHandle.
  8388. (serverSocket): Changed its type to SocketHandle.
  8389. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  8390. * src/TorrentMan.h
  8391. (MAX_PEER_UPDATE): Removed.
  8392. (MAX_PEERS): New definition.
  8393. (Peers): The element is now of type PeerHandle.
  8394. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  8395. (getPeer): Replaced Peer with PeerHandle.
  8396. (deleteOldErrorPeers): Removed.
  8397. (deleteErrorPeer): New function.
  8398. (hasMissingPiece): Replaced Peer with PeerHandle.
  8399. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8400. (getMissingPiece): Replaced Peer with PeerHandle.
  8401. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8402. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8403. (addActivePeer): Replaced Peer with PeerHandle.
  8404. (deleteActivePeer): Replaced Peer with PeerHandle.
  8405. Added a check for the return value of find.
  8406. * src/FtpTunnelResponseCommand.cc
  8407. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8408. * src/FtpInitiateConnectionCommand.cc
  8409. (executeInternal): Removed the allocation of socket.
  8410. * src/DownloadEngine.h
  8411. (Sockets): An element is now of type SocketHandle.
  8412. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  8413. (CommandUuids): New type definition.
  8414. (rsockets): Changed its type to SockCmdMap.
  8415. (wsockets): Changed its type to SockCmdMap.
  8416. (addSocket): Rewritten.
  8417. (deleteSocket): Rewritten.
  8418. (addSocketForReadCheck): Rewritten.
  8419. (deleteSocketForReadCheck): Rewritten.
  8420. (addSocketForWriteCheck): Rewritten.
  8421. (deleteSocketForWriteCheck): Rewritten.
  8422. (PairFind): New template class.
  8423. * src/HttpDownloadCommand.h
  8424. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  8425. * src/FtpConnection.cc
  8426. (FtpConnection): Replaced Socket with SocketHandle.
  8427. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  8428. block.
  8429. * src/InitiateConnectionCommandFactory.cc
  8430. (DlAbortEx.h): Included DlAbortEx.h.
  8431. (createInitiateConnectionCommand): Throw exception if the protocol of
  8432. requested URI is not supported.
  8433. * src/Peer.cc
  8434. (nullPeer): Changed its type to PeerHandle.
  8435. (operator==): New function.
  8436. (operator!=): New function.
  8437. * src/Peer.h
  8438. (SharedHandle.h): Included SharedHandle.h.
  8439. (operator==): New function.
  8440. (operator!=): New function.
  8441. (Peer): Added the default constructor.
  8442. Use resetStatus() to initialize member variables.
  8443. (nullPeer): Removed.
  8444. * src/TrackerUpdateCommand.cc
  8445. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  8446. with MIN_PEERS.
  8447. * src/PeerListenCommand.h
  8448. (socket): Changed its type to SocketHandle.
  8449. * src/Command.h
  8450. (CommandUuid): New type definition.
  8451. (uuid): New variable.
  8452. (uuidGen): New variable.
  8453. (Command): Added the initialization of uuid.
  8454. (getUuid): New function.
  8455. * src/Socket.h
  8456. (Socket): Removed.
  8457. (SocketHandle): New type definition.
  8458. * src/DownloadEngine.h
  8459. (FindCommand): New function object.
  8460. (run): The portion of socket check was rewritten.
  8461. (SetDescriptor): New function object.
  8462. (AccumulateActiveCommandUuid): New function object.
  8463. (waitData): Rewritten.
  8464. (addSocket): Rewritten.
  8465. (deleteSocket): Rewritten.
  8466. (addSocketForReadCheck): Rewritten.
  8467. (addSocketForWriteCheck): Rewritten.
  8468. (deleteSocketForReadCheck): Rewritten.
  8469. (deleteSocketForWriteCheck): Rewritten.
  8470. * src/HttpProxyResponseCommand.h
  8471. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  8472. * src/HttpConnection.h
  8473. (socket): Changed its type to SocketHandle.
  8474. (HttpConnection): Replaced Socket with SocketHandle.
  8475. * src/PeerInitiateConnectionCommand.cc
  8476. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8477. (executeInternal): Removed the allocation of socket.
  8478. (prepareForNextPeer): Use PeerHandle.
  8479. * src/PeerMessage.h
  8480. (peer): Changed its type to PeerHandle.
  8481. (getPeer): Replaced Peer with PeerHandle.
  8482. (setPeer): Replaced Peer with PeerHandle.
  8483. * src/DownloadCommand.cc
  8484. (DownloadCommand): Replaced Socket with SocketHandle.
  8485. * src/FtpConnection.h
  8486. (socket): Changed its type to SocketHandle.
  8487. (FtpConnection): Replaced Socket with SocketHandle.
  8488. (sendPort); Replaced Socket with SocketHandle.
  8489. * src/FtpDowndloadCommand.h
  8490. (ctrlSocket): Changed its type to SocketHandle.
  8491. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8492. * src/HttpProxyRequestCommand.cc
  8493. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8494. * src/FtpTunnelRequestCommand.h
  8495. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8496. etc
  8497. * src/PeerChokeCommand.h
  8498. (setAllPeerChoked): Removed.
  8499. (setAllPeerResetDelta): Removed.
  8500. * src/PeerChokeCommand.cc
  8501. (setAllPeerChoked): Removed.
  8502. (ChokePeer): New function object.
  8503. (setAllPeerResetDelta): Removed.
  8504. (ResetDelta): New function object.
  8505. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  8506. (execute): Show download speed when the local node is a seeder.
  8507. setAllPeerChoked and setAllPeerResetDelta were rewritten
  8508. using STL.
  8509. * src/TrackerWatcherCommand.h
  8510. (MIN_PEERS): Removed.
  8511. * src/TorrentMan.cc
  8512. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  8513. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. To fix the bug that .aria2 file is not saved if downloading is stopped
  8515. by the errors:it results that aria2 can not resume downloading:
  8516. * src/main.cc
  8517. (normalDownload): Added the call to save().
  8518. (main): Added the deletion of the elements in 'reserved'.
  8519. To fix log:
  8520. * src/PeerInteraction.cc
  8521. (receiveHandshake): Fixed log.
  8522. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. To improve download performance in BitTorrent:
  8524. * src/TorrentMan.cc
  8525. (getPeer): Check the number of connections. Return nullPeer if
  8526. it is greater than MAX_PEER_UPDATE.
  8527. This code was originally here, but was removed in 0.5.1.
  8528. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8529. To improve the conditional compilation:
  8530. * src/MultiDiskWriter.h:
  8531. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8532. * src/MultiDiskWriter.cc:
  8533. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8534. * src/Util.h:
  8535. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8536. Added ENABLE_BITTORRENT around computeFastSet().
  8537. * src/Util.cc:
  8538. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8539. Added ENABLE_BITTORRENT around computeFastSet().
  8540. * src/messageDigest.h:
  8541. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  8542. * src/ShaVisitor.h:
  8543. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8544. * src/ShaVisitor.cc:
  8545. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8546. * src/main.cc:
  8547. Added ENABLE_BITTORRENT around includes and blocks related to
  8548. BitTorrent.
  8549. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  8550. digest support is not available.
  8551. * src/AbstractDiskWriter.h:
  8552. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8553. * src/AbstractDiskWriter.cc:
  8554. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8555. * src/MetalinkEntry.cc
  8556. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  8557. support is not available.
  8558. To add command-line options for Metalink:
  8559. * src/main.cc:
  8560. Added metalink-version, metalink-language, metalink-os,
  8561. follow-metalink.
  8562. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  8563. * src/main.cc: Use these definition.
  8564. * Release 0.6.0
  8565. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. To add Metalink support(http/ftp only):
  8567. * src/AbstractCommand.h
  8568. (tryReserved): New function.
  8569. * src/AbstractCommand.cc
  8570. (execute): Call tryReserved().
  8571. (tryReserved): New function.
  8572. * src/Request.h
  8573. (Requests): New type definition.
  8574. * src/SegmentMan.h
  8575. (reserved): New variable.
  8576. * src/Util.h
  8577. (fileChecksum): New function.
  8578. (toUpper): New function.
  8579. (toLower): New function.
  8580. * src/Util.cc
  8581. (messageDigest.h): Included.
  8582. (trim): Trim \r\n\t.
  8583. (fileChecksum): New function.
  8584. (toUpper): New function.
  8585. (toLower): New function.
  8586. * src/main.cc
  8587. (normalDownload): New function.
  8588. (main): Added 2 command-line options: metalink-file,
  8589. metalink-connection. Their usage has not been written yet.
  8590. * src/MetalinkProcessor.h: New class.
  8591. * src/Xml2MetalinkProcessor.h: New class.
  8592. * src/Xml2MetalinkProcessor.cc: New class.
  8593. * src/MetalinkEntry.h: New class.
  8594. * src/MetalinkEntry.cc: New class.
  8595. * src/MetalinkResource.h: New class.
  8596. * src/MetalinkResource.cc: New class.
  8597. To add md5 message digest checking:
  8598. * src/messageDigest.h: Rewritten.
  8599. * src/MultiDiskWriter.cc: Updated according to the changes in
  8600. messageDigest.h.
  8601. * src/ShaVisitor.cc: Updated according to the changes in
  8602. messageDigest.h.
  8603. * src/Util.cc: Updated according to the changes in messageDigest.h.
  8604. * src/AbstractDiskWriter.cc: Updated according to the changes in
  8605. messageDigest.h.
  8606. To fix a bug that causes segfault when the payload length in peer
  8607. message is less than 0:
  8608. * src/PeerConnection.cc:
  8609. (receiveMessage): Fixed the bug.
  8610. * src/PeerMessageUtil.cc
  8611. (checkLength): Throw an exception if length is less than or equals to
  8612. 0.
  8613. To add new interfaces to Base64 encoding/decoding:
  8614. * src/Base64.h
  8615. (part_encode): Changed the method signature.
  8616. (encode): New function(overload).
  8617. (decode): New function(overload).
  8618. * src/Base64.cc
  8619. (part_encode): Rewritten.
  8620. (encode): Rewritten.
  8621. (encode): New function(overload).
  8622. To prevent a peer to download same piece if there is an error in
  8623. checksum:
  8624. * src/PieceMessage.cc
  8625. (receivedAction): Call peerInteraction->abortPiece().
  8626. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. To fix the bug that causes same have message is sent many times to
  8628. a single peer.
  8629. * src/Time.cc
  8630. (isNewer): Use Util::difftv().
  8631. * src/Util.cc
  8632. (difftv): Added a cast to (long long int).
  8633. * src/TorrentMan.cc
  8634. (advertisePiece): Use push_front.
  8635. (getAdvertisedPieceIndexes): A performance improvement was made.
  8636. To fix the bug that sends tracker requests without a sleep interval
  8637. when the number of connections is less than 15.
  8638. * src/TrackerWatcherCommand.cc
  8639. (execute): Now the number of connections is not a factor to decide
  8640. whether or not a tracker request should be sent or not.
  8641. * src/Time.h
  8642. (setTimeInSec): New function.
  8643. * src/Time.cc
  8644. (setTimeInSec): New function.
  8645. etc.
  8646. * src/ChokeMessage.cc
  8647. (receivedAction): Removed peer->snubbing = false
  8648. * src/PeerConnection.h
  8649. (receiveHandshake): Updated doc.
  8650. * src/TorrentMan.h
  8651. (getAdvertisedPieceIndexes): Updated the method signature.
  8652. * src/TorrentMan.cc
  8653. (getAdvertisedPieceIndexes): Updated the method signature.
  8654. * src/Time.h
  8655. (getTimeInMicros): Added a cast to (long long int).
  8656. (getTimeInMillis): Added a cast to (long long int).
  8657. * Release 0.5.2
  8658. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. To make a listening socket non-block:
  8660. * src/SocketCore.h
  8661. (setNonBlockingMode): New function.
  8662. * src/SocketCore.cc
  8663. (setNonBlockingMode): New function.
  8664. (beginListen): Added a call to setNonBlockingMode().
  8665. (acceptConnection): Call setNonBlockingMode().
  8666. (setBlockingMode): Updated.
  8667. To handle tracker's NAT-checking:
  8668. * src/PeerConnection.cc
  8669. (receiveHandshake): 'msg' param is filled with received data and
  8670. its length is assigned to 'length' param, even if all handshake
  8671. message is not yet received.
  8672. * src/PeerInteractionCommand.cc
  8673. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  8674. a new peer connects to localhost.
  8675. A call to peerInteraction->sendHandshake() was removed because
  8676. it is called from peerInteraction->receiveHandshake(true).
  8677. * src/PeerInteraction.h
  8678. (quickReplied): New variable.
  8679. (receiveHandshake): Added an argument.
  8680. * src/PeerInteraction.cc
  8681. (PeerInteraction): Added the initialization of quickReplied.
  8682. (receiveHandshake): Send handshake message as soon as the info hash
  8683. in a handshake message from a peer is correct.
  8684. To change the random part of peer id and key parameter:
  8685. * src/TorrentMan.h
  8686. (key): New variable.
  8687. * src/TorrentMan.cc
  8688. (setupInternal1): Use Util::randomAlpha() to generate random part
  8689. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  8690. key is also generated by Util::randomAlpha() and it is now 8 character
  8691. long.
  8692. * src/Util.h
  8693. (randomAlpha): New function.
  8694. * src/Util.cc
  8695. (randomAlpha): New function.
  8696. * src/TrackerWatcherCommand.cc
  8697. (execute): In a tracker request: Use torrentMan->key as key parameter.
  8698. Added no_peer_id=1.
  8699. Set snubbing flag to false when a choke message is received from a
  8700. snubbed peer.
  8701. * src/ChokeMessage.cc
  8702. (receivedAction): Set snubbing flag to false.
  8703. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  8705. * src/SimpleLogger.h (writeHeader): New function.
  8706. * src/SimpleLogger.cc (writeHeader): New function.
  8707. (writeLog): Fixed the bug that causes segfaults if exception message
  8708. contains an unescaped "%" character.
  8709. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  8710. when a tracker request fails.
  8711. * src/Request.cc (parseUrl): Query string is now handled properly.
  8712. * Release 0.5.1
  8713. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. To add Time class which represents a specific instant in time and
  8715. its precision is microseconds. Time checking procedures were rewritten
  8716. using this object.
  8717. * src/Time.h: New class.
  8718. * src/Time.cc: New class.
  8719. * src/AbstractCommand.h
  8720. (updateCheckPoint): Removed.
  8721. (isTimeoutDetected): Removed.
  8722. (checkPoint): Changed the type to Time.
  8723. (timeout): New variable.
  8724. (setTimeout): New function.
  8725. * src/AbstractCommand.cc
  8726. (AbstractCommand): Removed the initialization of checkPoint.
  8727. Added the initialization of timeout.
  8728. (updateCheckPoint): Removed.
  8729. (isTimeoutDetected): Removed.
  8730. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8731. * src/PeerChokeCommand.h
  8732. (checkPoint): Changed the type to Time.
  8733. * src/PeerChokeCommand.cc
  8734. (PeerChokeCommand): Removed the initialization of checkPoint.
  8735. (execute): Rewritten using Time object.
  8736. * src/TrackerWatcherCommand.h
  8737. (checkPoint): Changed the type to Time.
  8738. * src/TrackerWatcherCommand.cc
  8739. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  8740. (execute): Rewritten.
  8741. * src/ConsoleDownloadEngine.h
  8742. (cp): Changed the type to Time.
  8743. (startup): Changed the type to Time.
  8744. * src/ConsoleDownloadEngine.cc
  8745. (initStatistics): Use cp.reset(), startup.reset().
  8746. (calculateStatistics): Rewritten using Time object.
  8747. * src/PeerAbstractCommand.h
  8748. (updateCheckPoint): Removed.
  8749. (isTimeoutDetected): Removed.
  8750. (checkPoint): Changed the type to Time.
  8751. * src/PeerAbstractCommand.cc
  8752. (PeerAbstractCommand): Removed the initialization of checkPoint.
  8753. (updateCheckPoint): Removed.
  8754. (isTimeoutDetected): Removed.
  8755. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8756. * src/PeerInteractionCommand.cc
  8757. (PeerInteractionCommand): Removed the initializations of struct
  8758. timeval variables.
  8759. * src/PeerInteractionCommand.h
  8760. (keepAliveCheckPoint): Changed the type to Time.
  8761. (chokeCheckPoint): Changed the type to Time.
  8762. (freqCheckPoint): Changed the type to Time.
  8763. (haveCheckTime): Changed the type to Time.
  8764. * src/PeerInteractionCommand.cc
  8765. (executeInternal): Rewritten using Time object.
  8766. (detectMessageFlooding): Rewritten using Time object.
  8767. (checkLongTimePeerChoking): Rewritten using Time object.
  8768. (sendKeepAlive): Rewritten using Time object.
  8769. (checkHave): Rewritten using Time object.
  8770. * src/SleepCommand.h
  8771. (checkPoint): Changed the type to Time.
  8772. * src/SleepCommand.cc
  8773. (SleepCommand): Removed the initialization of checkPoint.
  8774. (execute): Rewritten using Time object.
  8775. * src/TorrentAutoSaveCommand.h
  8776. (checkPoint): Changed the type to Time.
  8777. * src/TorrentAutoSaveCommand.cc
  8778. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  8779. (execute): Rewritten.
  8780. * src/DownloadCommand.h
  8781. (sw): Changed the type to Time.
  8782. * src/DownloadCommand.cc
  8783. (DownloadCommand): Removed the initialization of sw.
  8784. (executeInternal): Rewritten.
  8785. * src/RequestSlot.h
  8786. (dispatchedTime): Changed the type to Time.
  8787. * src/RequestSlot.cc
  8788. (RequestSlot): Removed the call to setDispatchedTime().
  8789. (setDispatchedTime): Rewirtten.
  8790. (isTimeout): Rewritten.
  8791. (getLatencyInMillis): Rewritten.
  8792. * src/TorrentDownloadEngine.h
  8793. (cp): Changed the type to Time[2].
  8794. (startup): Changed the type to Time.
  8795. * src/TorrentDownloadEngine.cc
  8796. (initStatistics): Rewritten.
  8797. (calculateStatistics): Rewritten.
  8798. * src/DownloadEngine.cc
  8799. (run): Rewritten.
  8800. To detect all attempts to connect to the tracker are failed:
  8801. * src/AbstractCommand.cc
  8802. (execute): Increment e->segmentMan->errors if a command aborted.
  8803. * src/SegmentMan.h
  8804. (errors): New variable.
  8805. * src/SegmentMan.cc
  8806. (SegmentMan): Added the initialization of errors.
  8807. (init): Added the initialization of errors.
  8808. * src/TrackerWatcherCommand.cc
  8809. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  8810. request was failed.
  8811. To handle snubbed peers:
  8812. * src/PeerChokeCommand.cc
  8813. (optUnchokingPeer): Snubbed peers don't get unchoked.
  8814. (execute): Snubbed peers don't get unchoked.
  8815. * src/PeerInteraction.h
  8816. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  8817. * src/PeerInteraction.cc
  8818. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  8819. back the requested 16k block in 60 seconds.
  8820. * src/PieceMessage.cc
  8821. (receivedAction): A peer's snubbed state is cleard if it sends
  8822. the requested 16k block in 60 seconds.
  8823. * src/Peer.h
  8824. (snubbing): New variable.
  8825. * src/Peer.cc
  8826. (resetStatus): Added snubbed = false.
  8827. To fix the bug that causes have message is not sent:
  8828. * src/PeerInteractionCommand.cc
  8829. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  8830. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  8831. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  8832. * src/TorrentMan.h
  8833. (HaveEntry): New class.
  8834. (advertisePiece): Rewritten.
  8835. (getAdvertisedPieceIndexes): Rewritten.
  8836. (Haves): Changed the type.
  8837. (getAdvertisedPieceIndexes): Added an argument.
  8838. Others:
  8839. * src/TorrentMan.h
  8840. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  8841. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  8842. * src/TorrentMan.cc
  8843. (getPeer): Don't check the number of connections here.
  8844. (setupInternal1): Changed peerId.
  8845. * src/PeerInteractionCommand.h
  8846. (KEEP_ALIVE_INTERVAL): New definition.
  8847. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  8848. * src/main.cc
  8849. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  8850. * src/DownloadEngine.h: Removed unnecessary header includes.
  8851. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. To fix the bug that causes segfaults if a tracker returns a zero-length
  8853. list as "peers":
  8854. * src/TrackerUpdateCommand.cc
  8855. (execute): Added a check to see wether the type of peers is Data*.
  8856. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. * Release 0.5.0
  8858. To fix compile issue with gcc3:
  8859. * src/CancelMessage.h
  8860. (ID): Renamed as ID_t
  8861. (ID_t): New enum.
  8862. * src/RejectMessage.h
  8863. (ID): Renamed as ID_t
  8864. (ID_t): New enum.
  8865. * src/SuggestPieceMessage.h
  8866. (ID): Renamed as ID_t
  8867. (ID_t): New enum.
  8868. * src/AllowedFastMessage.h
  8869. (ID): Renamed as ID_t
  8870. (ID_t): New enum.
  8871. * src/PortMessage.h
  8872. (ID): Renamed as ID_t
  8873. (ID_t): New enum.
  8874. * src/HaveNoneMessage.h
  8875. (ID): Renamed as ID_t
  8876. (ID_t): New enum.
  8877. * src/KeepAliveMessage.h
  8878. (ID): Renamed as ID_t
  8879. (ID_t): New enum.
  8880. * src/HaveAllMessage.h
  8881. (ID): Renamed as ID_t
  8882. (ID_t): New enum.
  8883. * src/UnchokeMessage.h
  8884. (ID): Renamed as ID_t
  8885. (ID_t): New enum.
  8886. * src/BitfieldMessage.h
  8887. (ID): Renamed as ID_t
  8888. (ID_t): New enum.
  8889. * src/PieceMessage.h
  8890. (ID): Renamed as ID_t
  8891. (ID_t): New enum.
  8892. * src/RequestMessage.h
  8893. (ID): Renamed as ID_t
  8894. (ID_t): New enum.
  8895. * src/NotInterestedMessage.h
  8896. (ID): Renamed as ID_t
  8897. (ID_t): New enum.
  8898. * src/ChokeMessage.h
  8899. (ID): Renamed as ID_t
  8900. (ID_t): New enum.
  8901. * src/InterestedMessage.h
  8902. (ID): Renamed as ID_t
  8903. (ID_t): New enum.
  8904. * src/HaveMessage.h
  8905. (ID): Renamed as ID_t
  8906. (ID_t): New enum.
  8907. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. * src/PeerAbstractCommand.h
  8909. (beforeSocketCheck): Removed.
  8910. * src/PeerAbstractCommand.cc
  8911. Modified in order to call executeInternal() even if socket check
  8912. and upload limit check fail.
  8913. * src/PeerInteractionCommand.h
  8914. (keepAlive): Removed.
  8915. (sendKeepAlive): New function.
  8916. (checkHave): New function.
  8917. (beforeSocketCheck): Removed.
  8918. * src/PeerInteractionCommand.cc
  8919. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  8920. calls to checkHave() and sendKeepAlive().
  8921. (keepAlive): Renamed to sendKeepAlive().
  8922. (sendKeepAlive): New function.
  8923. (beforeSocketCheck): Removed.
  8924. (checkHave): New function.
  8925. * src/BitfieldMan.cc
  8926. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  8927. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  8928. 0.
  8929. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  8930. * src/TorrentMan.h
  8931. (UsedPieces): Removed.
  8932. (Pieces): New type definition.
  8933. * src/Piece.h: Updated doc.
  8934. * src/Peer.h
  8935. (totalLength): Removed.
  8936. * src/Peer.cc
  8937. (updateLatency): Fixed the latency calculation.
  8938. * src/TorrentMan.cc
  8939. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  8940. than or equal to MAX_PEER_LIST_SIZE.
  8941. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  8942. then return false.
  8943. (deleteOldErrorPeers): Rewritten.
  8944. (deleteUsedPiece): Fixed the miss use of STL remove.
  8945. * src/PeerInteraction.h
  8946. (Pieces): Removed.
  8947. (deleteTimeoutRequestSlot): Removed.
  8948. (deleteCompletedRequestSlot): Removed.
  8949. (checkRequestSlot): New function.
  8950. * src/PeerInteraction.cc
  8951. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  8952. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  8953. (checkRequestSlot): New function.
  8954. * src/DownloadEngine.cc
  8955. (run): Clear activeSockets before calling waitData().
  8956. (waitData): Removed a call to activeSockets.clear().
  8957. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. To attempt to handle EINTR:
  8959. * src/SocketCore.cc
  8960. (isReadable): Added EINTR handling.
  8961. (isWritable): Added EINTR handling.
  8962. To improve the performance:
  8963. * src/AbstractCommand.cc
  8964. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  8965. * src/PeerInteractionCommand.h
  8966. (receiveMessage): Renamed as receiveMessages().
  8967. (receiveMessages): New function.
  8968. * src/PeerInteractionCommand.cc
  8969. (executeInternal): receiveMessage loop is moved to new receiveMessages
  8970. () function. detectMessageFlooding() is moved here.
  8971. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  8972. (). The flooding detection for have message is comment out.
  8973. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  8974. Util::difftv().
  8975. (receiveMessage): Renamed as receiveMessages().
  8976. (receiveMessages): New function.
  8977. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  8978. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  8979. * src/SleepCommand.cc
  8980. (execute): Use Util::difftvsec() instead of Util::difftv().
  8981. * src/BitfieldMan.h
  8982. (getNthBitIndex): New function.
  8983. (hasMissingPiece): New function.
  8984. (getAllMissingIndexes): New function.
  8985. * src/BitfieldMan.cc
  8986. (countSetBit): Rewritten.
  8987. (getNthBitIndex): New function.
  8988. (getMissingIndexRandomly): Rewritten.
  8989. (hasMissingPiece): New function.
  8990. (getAllMissingIndexes): New function.
  8991. * src/TorrentMan.cc
  8992. (hasMissingPiece): New function.
  8993. (deleteUsedPiece): Rewritten using STL.
  8994. * src/PeerInteraction.cc
  8995. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  8996. is a little bit faster then TorrentMan::getMissingPieceIndex().
  8997. (addRequests): Updated the number of pending requests.
  8998. * src/PeerAbstractCommand.cc
  8999. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9000. (execute): Returns true if TorrentMan::isHalt() is true.
  9001. Corrected the condition of upload limit checking.
  9002. * src/Util.h
  9003. (countBit): New function.
  9004. * src/Util.cc
  9005. (nbits): New variable.
  9006. (countBit): New function.
  9007. * src/DownloadEngine.h
  9008. (SockCmdMap): New type definition.
  9009. (waitData): Added an argument.
  9010. (addSocket): Added an argument.
  9011. (addSocketForReadCheck): Added an argument.
  9012. (addSocketForWriteCheck): Added an argument.
  9013. * src/DownloadEngine.cc
  9014. (run): Executes only commands whose sockets are ready to read or write.
  9015. All commands are executed in every 1 second.
  9016. (waitData): Calls select() again if it returned
  9017. EINTR.
  9018. (addSocket): Saves socket and command object pair to the map.
  9019. (deleteSocket): Deletes socket and command object pair from the map.
  9020. (addSocketForReadCheck): Added an argument.
  9021. (addSocketForWriteCheck): Added an argument.
  9022. * src/DownloadCommand.cc
  9023. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9024. To send "event=stopped" to the tracker when the application finishes:
  9025. * src/PeerChokeCommand.h
  9026. (checkPoint): New variable.
  9027. * src/PeerChokeCommand.cc
  9028. (PeerChokeCommand): Added the initialization of checkPoint.
  9029. (execute): The interval check is now done by checkPoint, not
  9030. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9031. * src/TorrentMan.h
  9032. (halt): New function.
  9033. (hasMissingPiece): New function.
  9034. (isHalt): New function.
  9035. (setHalt): New function.
  9036. * src/TorrentMan.cc
  9037. (TorrentMan): Added the initialization of halt.
  9038. * src/TorrentAutoSaveCommand.h
  9039. (checkPoint): New variable.
  9040. * src/PeerListenCommand.cc
  9041. (execute): Returns true if TorrentMan::isHalt() is true.
  9042. * src/main.cc
  9043. (setSignalHander): Added flags argument.
  9044. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9045. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9046. Removed printDownloadAbortMessage() after torrent downloading loop.
  9047. * src/TorrentAutoSaveCommand.cc
  9048. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9049. (execute): Returns true if TorrentMan::isHalt() is true.
  9050. The interval check is now done by checkPoint, not SleepCommand.
  9051. * src/TrackerWatcherCommand.cc
  9052. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9053. event=stopped.
  9054. * src/TrackerUpdateCommand.cc
  9055. (prepareForRetry): Do not use SleepCommand here.
  9056. (execute): Returns true if TorrentMan::isHalt() is true.
  9057. Others:
  9058. * src/TorrentMan.cc
  9059. (getMissingPieceIndex): Updated log message.
  9060. * src/PeerInteraction.cc
  9061. (createPeerMessag): Updated log message.
  9062. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. To add the ability to download several pieces in mix in a command and
  9064. increase the number of request slots according to request-cancel
  9065. latency:
  9066. * src/PeerInteractionCommand.cc
  9067. (executeInternal): The number of messages to be received at a time
  9068. is increased from 10 to 50.
  9069. * src/LogFactory
  9070. (getInstance): Added NullLogger.
  9071. * src/NullLogger.h: New class.
  9072. * src/BitfieldMan.h
  9073. (getMissingIndex): New function.
  9074. * src/BitfieldMan.cc
  9075. (getMissingIndex): New function.
  9076. * src/TorrentMan.h
  9077. (checkOutPiece): New function.
  9078. (getMissingPieceIndex): New function.
  9079. (getMissingFastPieceIndex): New function.
  9080. (getMissingFastPiece): New function.
  9081. * src/TorrentMan.cc
  9082. (updatePiece): Rewritten using STL.
  9083. (syncPiece): Rewritten using STL.
  9084. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9085. checkOutPiece().
  9086. (getMissingPieceIndex): New function.
  9087. (getMissingFastPieceIndex): New function.
  9088. (getMissingFastPiece): New function.
  9089. (checkOutPiece): New function.
  9090. * src/PeerInteraction.h
  9091. (Pieces): New type definition.
  9092. (piece): Removed.
  9093. (pieces): New variable.
  9094. (getNewPieceAndSendInterest): Added the "piece" argument.
  9095. (abortPiece): Added the "piece" argument.
  9096. (abortAllPieces): New function.
  9097. (isInRequestSlot): New function.
  9098. (hasDownloadPiece): Added the "index" argument.
  9099. (setDownloadPiece): Removed.
  9100. (getDownloadPiece): Added the "index" argument.
  9101. (updatePiece): New function.
  9102. (createRequestMessage): Added the "index" argument.
  9103. * src/PeerInteraction.cc
  9104. (onChoked): Rewritten.
  9105. (abortPiece): Rewirtten.
  9106. (abortAllPieces): New function.
  9107. (deleteTimeoutRequestSlot): Rewritten.
  9108. Clarified code a little bit.
  9109. (deleteCompletedRequestSlot): Rewritten.
  9110. (isInRequestSlot): New function.
  9111. (syncPiece): Rewritten.
  9112. (updatePiece): New function.
  9113. (getNewPieceAndSendInterest): Rewritten.
  9114. (addRequests): Rewritten.
  9115. (getDownloadPiece): Rewritten.
  9116. (hasDownloadPiece): Rewritten.
  9117. (createRequestMessage): Added the "index" argument.
  9118. * src/common.h
  9119. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9120. (DIV_FLOOR): New definition.
  9121. * src/PieceMessage.cc
  9122. (receivedAction): Update request-piece latency here.
  9123. * src/RequestSlot.h
  9124. (getLatencyInMillis): New function.
  9125. * src/RequestSlot.cc
  9126. (isTimeout): Rewritten using getLatencyInMillis.
  9127. (getLatencyInMillis): New function.
  9128. * src/Piece.h
  9129. (operator==): New function.
  9130. (getMissingBlockIndex): New function.
  9131. * src/Piece.cc
  9132. (operator==): New function.
  9133. (getMissingBlockIndex): New function.
  9134. * src/Peer.h
  9135. (DEFAULT_LATENCY): New definition.
  9136. (latency): New variable.
  9137. (updateLatency): New function.
  9138. (getLatency): New function.
  9139. * src/Peer.cc
  9140. (resetStatus): Reset latecy.
  9141. (updateLatency): New function.
  9142. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. * src/SocketCore.cc
  9144. (isReadable): Added secure to the condition.
  9145. * src/HttpConnection.cc
  9146. (receiveResponse): Fixed a bug that causes no response header
  9147. exception.
  9148. * src/Peer.h
  9149. (getFastSet): Fixed the return value type.
  9150. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. To remove a wait from download loop:
  9152. * src/DownloadEngine.cc
  9153. (run): Comment out shortSleep.
  9154. To rewrite the message handling:
  9155. * src/SimplePeerMessage.h: New class.
  9156. * src/SimplePeerMessage.cc: New class.
  9157. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9158. (msg): New variable.
  9159. (create): New function.
  9160. (send): Removed.
  9161. (getMessage): New function.
  9162. (getMessageLength): New function.
  9163. * src/CancelMessage.cc
  9164. (create): New function.
  9165. (receivedAction): Replaced deleteRequestMessageInQueue with
  9166. rejectPieceMessageInQueue.
  9167. (send): Removed.
  9168. (getMessage): New function.
  9169. (getMessageLength): New function.
  9170. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9171. (msg): New variable.
  9172. (msgLength): New variable.
  9173. (~BitfieldMessage): Deleted msg.
  9174. (send): Removed.
  9175. (getMessage): New function.
  9176. (getMessageLength): New function.
  9177. * src/BitfieldMessage.cc
  9178. (create): New function.
  9179. (send): Removed.
  9180. (getMessage): New function.
  9181. (getMessageLength): New function.
  9182. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9183. (msg): New variable.
  9184. (sendPredicate): New function.
  9185. (onSendComplete): New function.
  9186. (send): Removed.
  9187. (getMessage): New function.
  9188. (getMessageLength): New function.
  9189. (create): New function.
  9190. * src/ChokeMessage.cc
  9191. (create): New function.
  9192. (send): Removed.
  9193. (sendPredicate): New function.
  9194. (getMessage): New function.
  9195. (getMessageLength): New function.
  9196. (onSendComplete): New function.
  9197. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9198. (msg): New variable.
  9199. (send): Removed.
  9200. (getMessage): New function.
  9201. (getMessageLength): New function.
  9202. * src/KeepAliveMessage.cc
  9203. (send): Removed.
  9204. (getMessage): New function.
  9205. (getMessageLength): New function.
  9206. * src/PortMessage.h
  9207. (create): New function.
  9208. (receivedAction): Updated log message.
  9209. * src/PortMessage.cc: New file.
  9210. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9211. (msg): New variable.
  9212. (sendPredicate): New function.
  9213. (onSendComplete): New function.
  9214. (create): New function.
  9215. (send): Removed.
  9216. (getMessage): New function.
  9217. (getMessageLength): New function.
  9218. * src/UnchokeMessage.cc
  9219. (create): New function.
  9220. (send): Removed.
  9221. (sendPredicate): New function.
  9222. (getMessage): New function.
  9223. (getMessageLength): New function.
  9224. (onSendComplete): New function.
  9225. * src/PieceMessage.h
  9226. (leftPieceDataLength): Removed.
  9227. (leftDataLength): New variable.
  9228. (headerSend): New variable.
  9229. (pendingCount): New variable.
  9230. (msgHeader): New variable.
  9231. (sendPieceData): New function.
  9232. (incrementPendingCount): New function.
  9233. (isPendingCountMax): New function.
  9234. (create): New function.
  9235. (getMessageHeader): New function.
  9236. (getMessageHeaderLength): New function.
  9237. * src/PieceMessage.cc
  9238. (create): New function.
  9239. (getMessageHeader): New function.
  9240. (getMessageHeaderLength): New function.
  9241. (send): Rewritten.
  9242. (sendPieceData): New function.
  9243. * src/HaveMessage.h: Derived from SimplePeerMessage.
  9244. (msg): New variable.
  9245. (create): New function.
  9246. (getMessage): New function.
  9247. (getMessageLength): New function.
  9248. * src/HaveMessage.cc
  9249. (create): New function.
  9250. (send): Removed.
  9251. (sendPieceData): New function.
  9252. (getMessage): New function.
  9253. (getMessageLength): New function.
  9254. * src/RequestMessage.h: Derived from SimplePeerMessage.
  9255. (msg): New variable.
  9256. (create): New function.
  9257. (send): Removed.
  9258. (getMessage): New function.
  9259. (getMessageLength): New function.
  9260. * src/RequestMessage.cc
  9261. (create): New function.
  9262. (receivedAction): Added the handling of fast extension.
  9263. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  9264. (send): Removed.
  9265. (getMessage): New function.
  9266. (getMessageLength): New function.
  9267. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  9268. (msg): New variable.
  9269. (sendPredicate): New function.
  9270. (onSendComplete): New function.
  9271. (create): New function.
  9272. (getMessage): New function.
  9273. (getMessageLength): New function.
  9274. * src/InterestedMessage.cc
  9275. (create): New function.
  9276. (send): Removed.
  9277. (sendPieceData): New function.
  9278. (getMessage): New function.
  9279. (getMessageLength): New function.
  9280. (onSendComplete): New function.
  9281. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  9282. (msg): New variable.
  9283. (sendPieceData): New function.
  9284. (onSendComplete): New function.
  9285. (create): New function.
  9286. (send): Removed.
  9287. (getMessage): New function.
  9288. (getMessageLength): New function.
  9289. * src/NotInterestedMessage.cc
  9290. (create): New function.
  9291. (send): Removed.
  9292. (sendPredicate): New function.
  9293. (getMessage): New function.
  9294. (getMessageLength): New function.
  9295. (onSendComplete): New function.
  9296. * src/AllowedFastMessage.h: New class.
  9297. * src/AllowedFastMessage.cc: New class.
  9298. * src/RejectMessage.h: New class.
  9299. * src/RejectMessage.cc: New class.
  9300. * src/SuggestPieceMessage.h: New class.
  9301. * src/SuggestPieceMessage.cc: New class.
  9302. * src/HaveAllMessage.h: New class.
  9303. * src/HaveAllMessage.cc: New class.
  9304. * src/HaveNoneMessage.h: New class.
  9305. * src/HaveNoneMessage.cc: New class.
  9306. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  9307. (msg): New variable.
  9308. (reserved): New variable.
  9309. (create): New function.
  9310. (getId): New function.
  9311. (receivedAction): New function.
  9312. (getMessage): New function.
  9313. (getMessageLength): New function.
  9314. (isFastExtensionSupported): New function.
  9315. * src/HandshakeMessage.cc
  9316. (HandshakeMessage): Moved here from HandshakeMessage.h.
  9317. (create): New function.
  9318. (getMessage): New function.
  9319. (getMessageLength): New function.
  9320. (toString): Added the output of reserved field.
  9321. (check): Added const qualifier.
  9322. (isFastExtensionSupported): New function.
  9323. * src/PeerMessageUtil.h
  9324. (createChokeMessage): Removed.
  9325. (createUnchokeMessage): Removed.
  9326. (createInterestedMessage): Removed.
  9327. (createNotInterestedMessage): Removed.
  9328. (createHaveMessage): Removed.
  9329. (createBitfieldMessage): Removed.
  9330. (createRequestMessage): Removed.
  9331. (createCancelMessage): Removed.
  9332. (createPieceMessage): Removed.
  9333. (createPortMessage): Removed.
  9334. (createChokeMessage): Removed.
  9335. (createUnchokeMessage): Removed.
  9336. (createInterestedMessage): Removed.
  9337. (createNotInterestedMessage): Removed.
  9338. (createHaveMessage): Removed.
  9339. (createBitfieldMessage): Removed.
  9340. (createRequestMessage): Removed.
  9341. (createCancelMessage): Removed.
  9342. (createPieceMessage): Removed.
  9343. (createKeepAliveMessage): Removed.
  9344. (createHandshakeMessage): Removed.
  9345. (setIntParam): New function.
  9346. (createPeerMessageString): New function.
  9347. * src/PeerMessageUtil.cc
  9348. (createChokeMessage): Removed.
  9349. (createUnchokeMessage): Removed.
  9350. (createInterestedMessage): Removed.
  9351. (createNotInterestedMessage): Removed.
  9352. (createHaveMessage): Removed.
  9353. (createBitfieldMessage): Removed.
  9354. (createRequestMessage): Removed.
  9355. (createCancelMessage): Removed.
  9356. (createPieceMessage): Removed.
  9357. (createPortMessage): Removed.
  9358. (createRequestMessage): Removed.
  9359. (createCancelMessage): Removed.
  9360. (createPieceMessage): Removed.
  9361. (createHaveMessage): Removed.
  9362. (createChokeMessage): Removed.
  9363. (createUnchokeMessage): Removed.
  9364. (createInterestedMessage): Removed.
  9365. (createNotInterestedMessage): Removed.
  9366. (createBitfieldMessage): Removed.
  9367. (createKeepAliveMessage): Removed.
  9368. (createHandshakeMessage): Removed.
  9369. (setIntParam): New function.
  9370. (createPeerMessageString): New function.
  9371. * src/PeerConnection.h
  9372. (peer): Removed.
  9373. (torrentMan): Removed.
  9374. (createNLengthMessage): Removed.
  9375. (setIntParam): Removed.
  9376. (writeOutgoingMessageLog): Removed all overloaded functions.
  9377. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9378. (sendMessage): New function.
  9379. (sendHandshake): Removed.
  9380. (sendKeepAlive): Removed.
  9381. (sendChoke): Removed.
  9382. (sendUnchoke): Removed.
  9383. (sendInterested): Removed.
  9384. (sendNotInterested): Removed.
  9385. (sendHave): Removed.
  9386. (sendBitfield): Removed.
  9387. (sendRequest): Removed.
  9388. (sendPiece): Removed.
  9389. (sendPieceHeader): Removed.
  9390. (sendPieceData): Removed.
  9391. (sendCancel): Removed.
  9392. (getPeer): Removed.
  9393. * src/PeerConnection.cc
  9394. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9395. (sendHandshake): Removed.
  9396. (sendKeepAlive): Removed.
  9397. (createNLengthMessage): Removed.
  9398. (setIntParam): Removed.
  9399. (writeOutgoingMessageLog): Removed all overloaded functions.
  9400. (sendChoke): Removed.
  9401. (sendUnchoke): Removed.
  9402. (sendInterested): Removed.
  9403. (sendNotInterested): Removed.
  9404. (sendHave): Removed.
  9405. (sendBitfield): Removed.
  9406. (sendRequest): Removed.
  9407. (sendPiece): Removed.
  9408. (sendPieceHeader): Removed.
  9409. (sendPieceData): Removed.
  9410. (sendMessage): New function.
  9411. (sendCancel): Removed.
  9412. * src/PeerInteractionCommand.cc
  9413. (PeerInteractionCommand): Call setUploadLimit.
  9414. (executeInternal): Call setUploadLimit.
  9415. Added the handling of "inProgress" state of handshake message.
  9416. Call sendBitfield() or sendAllowdFast() instead of deprecated
  9417. sendNow().
  9418. (keepAlive): Call addMessage and sendMessage instead of deprecated
  9419. sendNow().
  9420. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  9421. * src/TorrentMan.h
  9422. (PEER_ID_LENGTH): New definition.
  9423. (hasAllPieces): New function.
  9424. * src/TorrentMan.cc
  9425. (getMissingPiece): Added the handling of fast extension.
  9426. (cancelPiece): Call updatePiece().
  9427. (hasAllPieces): New function.
  9428. * src/PeerInteraction.h
  9429. (fastSet): New variable.
  9430. (getNewPieceAndSendInterest): Changed the return type to void.
  9431. (send): Renamed as sendMessages.
  9432. (deleteAllRequestSlot): Removed.
  9433. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9434. (cancelAllRequest): Removed all overloaded functions.
  9435. (deleteAllRequestSlot): Removed.
  9436. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9437. (rejectPieceMessageInQueue): New function.
  9438. (rejectAllPieceMessageInQueue): New function.
  9439. (onChoked): New function.
  9440. (isSendingMessageInProgress): New function.
  9441. (getCorrespondingRequestSlot): Changed its arguments.
  9442. (isInFastSet): New function.
  9443. (addFastSetIndex): New function.
  9444. (addRequests): New function.
  9445. (sendNow): Removed.
  9446. (trySendNow): Removed.
  9447. (sendBitfield): New function.
  9448. (sendAllowdFast): New function.
  9449. (createHaveAllMessage): New function.
  9450. (createHaveNoneMessage): New function.
  9451. (createRejectMessage): New function.
  9452. (createAllowedFastMessage): New function.
  9453. * src/PeerInteraction.cc
  9454. (send): Renamed as sendMessages.
  9455. (sendMessages): New function.
  9456. (MsgPushBack): New class.
  9457. (isSendingMessageInProgress): New function.
  9458. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9459. (rejectAllPieceMessageInQueue): New function.
  9460. Added the handling of fast extension.
  9461. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9462. (rejectPieceMessageInQueue): New function.
  9463. Added the handling of fast extension.
  9464. (deleteRequestSlot): Replaced for loop with std::find.
  9465. (onChoked): New function.
  9466. (deleteAllRequestSlot): Removed.
  9467. (abortPiece): Rewirtten.
  9468. (deleteTimeoutRequestSlot): Updated log messages.
  9469. (getCorrespondingRequestSlot): Changed its arguments.
  9470. (cancelAllRequest): Removed all overloaded functions.
  9471. (receiveHandshake): Added the check to see whether an incoming peer
  9472. supports fast extension.
  9473. (createHandshakeMessage): Use HandshakeMessage::create instead of
  9474. PeerMessageUtil.
  9475. (createPeerMessage): Use create() of each message class instead of
  9476. PeerMessageUtil.
  9477. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  9478. AllowedFastMessage were added.
  9479. (getNewPieceAndSendInterest): Changed its return value type to void.
  9480. Added the handling of fast extension.
  9481. (addRequests): New function.
  9482. (sendNow): Removed.
  9483. (sendHandshake): Rewritten.
  9484. (trySendNow): Removed.
  9485. (sendBitfield): New function.
  9486. (sendAllowdFast): New function.
  9487. (isInFastSet): New function.
  9488. (addFastSetIndex): New function.
  9489. (createRequestMessage): Use RequestMessage::create instead of
  9490. PeerMessageUtil.
  9491. (createCancelMessage): Use CancelMessage::create instead of
  9492. PeerMessageUtil.
  9493. (createPieceMessage): Use PieceMessage::create instead of
  9494. PeerMessageUtil.
  9495. (createHaveMessage): Use HaveMessage::create instead of
  9496. PeerMessageUtil.
  9497. (createChokeMessage): Use ChokeMessage::create instead of
  9498. PeerMessageUtil.
  9499. (createUnchokeMessage): Use UnchokeMessage::create instead of
  9500. PeerMessageUtil.
  9501. (createInterestedMessage): Use InterestedMessage::create instead of
  9502. PeerMessageUtil.
  9503. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  9504. of PeerMessageUtil.
  9505. (createBitfieldMessage): Use BitfieldMessage::create instead of
  9506. PeerMessageUtil.
  9507. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  9508. PeerMessageUtil.
  9509. (createHaveAllMessage): New function.
  9510. (createHaveNoneMessage): New function.
  9511. (createRejectMessage): New function.
  9512. (createAllowedFastMessage: New function.
  9513. * src/Util.h
  9514. (sha1Sum): New function.
  9515. (computeFastSet): New function.
  9516. * src/Util.cc
  9517. (sha1Sum): New function.
  9518. (computeFastSet): New function.
  9519. * src/Peer.h
  9520. (fastExtensionEnabled): New variable.
  9521. (fastSet): New variable.
  9522. (setAllBitfield): New function.
  9523. (setFastExtensionEnabled): New function.
  9524. (isFastExtensionEnabled): New function.
  9525. (addFastSetIndex): New function.
  9526. (getFastSet): New function.
  9527. (isInFastSet): New function.
  9528. (countFastSet): New function.
  9529. * src/Peer.cc
  9530. (isInFastSet): New function.
  9531. (addFastSetIndex): New function.
  9532. (setAllBitfield): New function.
  9533. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  9534. sockets.
  9535. * src/PeerAbstractCommand.cc
  9536. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  9537. and uploadLimit.
  9538. (execute): Changed the procedure of checking sockets. The upload speed
  9539. checking were added.
  9540. (setUploadLimit): New function.
  9541. (setUploadLimitCheck): New function.
  9542. * src/PeerAbstractCommand.h
  9543. (setUploadLimit): New function.
  9544. (setUploadLimitCheck): New function.
  9545. (uploadLimit): New variable.
  9546. (uploadLimitCheck): New variable.
  9547. To contact a tracker regularly:
  9548. * src/TrackerWatcherCommand.h (interval): New variable.
  9549. (checkPoint): New variable.
  9550. (TrackerWatcherCommand): Added interval argument.
  9551. * src/TrackerWatcherCommand.cc
  9552. (TrackerWatcherCommand): Initialized checkPoint.
  9553. (execute): Now a tracker is contacted in every specified period.
  9554. If peer list is not needed, send request with numwant=0.
  9555. * src/TrackerUpdateCommand.cc
  9556. (execute): Updated log messages.
  9557. * src/DownloadEngine.cc
  9558. (~DownloadEngine): Removed two asserts.
  9559. (waitData): Uncommented wfds. May be a bug fix.
  9560. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. * src/PeerInteractionCommand.h
  9562. (checkInactiveConnection): Removed.
  9563. * src/PeerInteractionCommand.cc
  9564. (executeInternal): Removed following function calls:
  9565. detectMessageFlooding(), checkLongTimePeerChoking and
  9566. checkInactiveConnection().
  9567. (checkInactiveConnection): Removed.
  9568. (detectMessageFlooding): Removed function call to
  9569. checkInactiveConnection().
  9570. * src/PeerMessageUtil.h
  9571. (createChokeMessage): New function. Overload.
  9572. (createUnchokeMessage): New function. Overload.
  9573. (createInterestedMessage): New function. Overload.
  9574. (createNotInterestedMessage): New function. Overload.
  9575. (createHaveMessage): New function. Overload.
  9576. (createBitfieldMessage): New function. Overload.
  9577. (createRequestMessage): New function. Overload.
  9578. (createCancelMessage): New function. Overload.
  9579. (createPieceMessage): New function. Overload.
  9580. (createKeepAliveMessage): New function. Overload.
  9581. * src/PeerMessageUtil.cc
  9582. (createChokeMessage): New function. Overload.
  9583. (createUnchokeMessage): New function. Overload.
  9584. (createInterestedMessage): New function. Overload.
  9585. (createNotInterestedMessage): New function. Overload.
  9586. (createHaveMessage): New function. Overload.
  9587. (createBitfieldMessage): New function. Overload.
  9588. (createRequestMessage): New function. Overload.
  9589. (createCancelMessage): New function. Overload.
  9590. (createPieceMessage): New function. Overload.
  9591. (createKeepAliveMessage): New function. Overload.
  9592. * src/SendMessageQueue.cc
  9593. (createRequestMessage): Use PeerMessageUtil.
  9594. (createCancelMessage): Use PeerMessageUtil.
  9595. (createPieceMessage): Use PeerMessageUtil.
  9596. (createHaveMessage): Use PeerMessageUtil.
  9597. (createChokeMessage): Use PeerMessageUtil.
  9598. (createUnchokeMessage): Use PeerMessageUtil.
  9599. (createInterestedMessage): Use PeerMessageUtil.
  9600. (createNotInterestedMessage): Use PeerMessageUtil.
  9601. (createBitfieldMessage): Use PeerMessageUtil.
  9602. (createKeepAliveMessage): Use PeerMessageUtil.
  9603. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  9604. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  9605. * src/PeerInteraction.h: New class.
  9606. * src/PeerInteraction.cc: New class.
  9607. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Each peer message has its own class.
  9609. * src/PendingMessages.h: Removed.
  9610. * src/PendingMessages.cc: Removed. The sending process was moved to
  9611. each message class.
  9612. * src/RequestSlotMan.h: Removed.
  9613. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  9614. SendMessageQueue.
  9615. * src/RequestMessage.h: New class.
  9616. * src/RequestMessage.cc: New class.
  9617. * src/CancelMessage.h: New class.
  9618. * src/CancelMessage.cc: New class.
  9619. * src/BitfieldMessage.h: New class.
  9620. * src/BitfieldMessage.cc: New class.
  9621. * src/ChokeMessage.h: New class.
  9622. * src/ChokeMessage.cc: New class.
  9623. * src/KeepAliveMessage.h: New class.
  9624. * src/KeepAliveMessage.cc: New class.
  9625. * src/PortMessage.h: New class.
  9626. * src/UnchokeMessage.h: New class.
  9627. * src/UnchokeMessage.cc: New class.
  9628. * src/PieceMessage.h: New class.
  9629. * src/PieceMessage.cc: New class.
  9630. * src/HaveMessage.h: New class.
  9631. * src/HaveMessage.cc: New class.
  9632. * src/BitfieldMessage.h: New class.
  9633. * src/BitfieldMessage.cc: New class.
  9634. * src/NotInterestedMessage.h: New class.
  9635. * src/NotInterestedMessage.cc: New class.
  9636. * src/InterestedMessage.h: New class.
  9637. * src/InterestedMessage.cc: New class.
  9638. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  9639. (getSendMessageQueue): New function.
  9640. (setSendMessageQueue): New function.
  9641. * src/HandshakeMessage.cc: New class.
  9642. * src/PeerConnection.h (receiveMessage): Changed return value and
  9643. arguments.
  9644. (receiveHandshake): Changed return value and arguments.
  9645. * src/PeerConnection.cc (receiveMessage): Do not create message class
  9646. here.
  9647. (receiveHandshake): Do not create handshake class here.
  9648. * src/PeerInteractionCommand.h (peerConnection): Removed.
  9649. (piece): Removed.
  9650. (syncPiece): Removed.
  9651. (sendInterest): Removed.
  9652. (sendMessages): Removed.
  9653. (createRequestPendingMessage): Removed.
  9654. (checkPieceHash): Removed.
  9655. (erasePieceOnDisk): Removed.
  9656. (getNewPieceAndSendInterest): Removed.
  9657. (onGotNewPice): Removed.
  9658. (onGotWrongPiece): Removed.
  9659. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  9660. Removed peerConnection, piece.
  9661. (~PeerInteractionCommand): Removed peerConnection.
  9662. (executeInternal): Use sendMessageQueue instead of peerConnection.
  9663. (syncPiece): Moved to SendMessageQueue.
  9664. (decideChoking): Removed PendingMessage.
  9665. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  9666. The action after receiving peer message was moved to each message
  9667. class.
  9668. (onGotNewPice): Moved to SendMessageQueue.
  9669. (onGotWrongPiece): Moved to SendMessageQueue.
  9670. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  9671. (sendInterest): Moved to SendMessageQueue.
  9672. (createRequestPendingMessage): Removed.
  9673. (sendMessages): Moved to SendMessageQueue.
  9674. (onAbort): Use SendMessageQueue::abortPiece()
  9675. (keepAlive): Use sendMessageQueue instead of peerConnection.
  9676. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  9677. (checkPieceHash): Moved to SendMessageQueue.
  9678. (erasePieceOnDisk): Moved to SendMessageQueue.
  9679. * src/PeerMessageUtil.h
  9680. (createBitfieldMessage): Removed.
  9681. (createHaveMessage): Changed return value and arguments.
  9682. (createBitfieldMessage): Changed return value and arguments.
  9683. (createRequestCancelMessage): Removed.
  9684. (createPieceMessage): Changed return value and arguments.
  9685. (getShortIntParam): New function.
  9686. (checkIndex): Changed arguments.
  9687. (checkBegin): Changed arguments.
  9688. (checkLength): Changed arguments.
  9689. (checkPieceOffset): Removed.
  9690. (checkRange): New function.
  9691. (checkBitfield): Changed arguments.
  9692. (createPeerMessage): Removed.
  9693. (checkIntegrity): Removed.
  9694. (createHandshakeMessage): Changed arguments.
  9695. (createChokeMessage): New function.
  9696. (createUnchokeMessage): New function.
  9697. (createInterestedMessage): New function.
  9698. (createNotInterestedMessage): New function.
  9699. (createRequestMessage): New function.
  9700. (createCancelMessage): New function.
  9701. (createPortMessage): New function.
  9702. * src/PeerMessageUtil.cc
  9703. (createBitfieldMessage): Removed.
  9704. (createHaveMessage): Changed return value and arguments.
  9705. (createBitfieldMessage): Changed return value and arguments.
  9706. (createRequestCancelMessage): Removed.
  9707. (createPieceMessage): Changed return value and arguments.
  9708. (getShortIntParam): New function.
  9709. (checkIndex): Changed arguments.
  9710. (checkBegin): Changed arguments.
  9711. (checkLength): Changed arguments.
  9712. (checkPieceOffset): Removed.
  9713. (checkRange): New function.
  9714. (checkBitfield): Changed arguments.
  9715. (createPeerMessage): Removed.
  9716. (checkIntegrity): Removed.
  9717. (createHandshakeMessage): Changed arguments.
  9718. (createChokeMessage): New function.
  9719. (createUnchokeMessage): New function.
  9720. (createInterestedMessage): New function.
  9721. (createNotInterestedMessage): New function.
  9722. (createRequestMessage): New function.
  9723. (createCancelMessage): New function.
  9724. (createPortMessage): New function.
  9725. * src/PeerMessage.h
  9726. (id): Removed.
  9727. (index): Removed.
  9728. (begin): Removed.
  9729. (length): Removed.
  9730. (bitfield): Removed.
  9731. (bitfieldLength): Removed.
  9732. (block): Removed.
  9733. (blockLength): Removed.
  9734. (inProgress): New variable.
  9735. (cuid): New variable.
  9736. (peer): New variable.
  9737. (sendMessageQueue): New variable.
  9738. (logger): New variable.
  9739. (setBitfield): Removed.
  9740. (getBitfield): Removed.
  9741. (setBlock): Removed.
  9742. (getBlock): Removed.
  9743. (getBitfieldLength): Removed.
  9744. (getBlockLength): Removed.
  9745. (isInProgress): New function.
  9746. (toString): Made pure virtual.
  9747. (check): New function.
  9748. (send): New function.
  9749. (receivedAction): New function.
  9750. (getId): Made pure virtual.
  9751. (setId): Removed.
  9752. (getIndex): Removed.
  9753. (setIndex): Removed.
  9754. (getBegin): Removed.
  9755. (setBegin): Removed.
  9756. (getLength): Removed.
  9757. (setLength): Removed.
  9758. (getCuid): New function.
  9759. (setCuid): New function.
  9760. (getPeer): New function.
  9761. (setPeer): New function.
  9762. (getSendMessageQueue): New function.
  9763. (setSendMessageQueue): New function.
  9764. (ID): Removed.
  9765. * src/PeerMessage.cc
  9766. (setBitfield): Removed.
  9767. (setBlock): Removed.
  9768. (toString): Removed.
  9769. * src/TorrentMan.h
  9770. (getPieceLength): New function.
  9771. (getPieceLength): New function.
  9772. * src/SendMessageQueue.h
  9773. (REQUEST_TIME_OUT): New definition.
  9774. (RequestSlots): New definition.
  9775. (MessageQueue): New definition.
  9776. (requestSlotMan): Removed.
  9777. (pendingMessages): Removed.
  9778. (requestSlots): New variable.
  9779. (messageQueue): New variable.
  9780. (torrentMan): New variable.
  9781. (peerConnection): New variable.
  9782. (peer): New variable.
  9783. (piece): New variable.
  9784. (getNewPieceAndSendInterest): New function.
  9785. (createPeerMessage): New function.
  9786. (createHandshakeMessage): New function.
  9787. (send): Made private.
  9788. (setPeerMessageCommonProperty): New function.
  9789. (deleteAllRequestSlot): New function.
  9790. (deleteRequestMessageInQueue): New function.
  9791. (cancelAllRequest): Made private.
  9792. (cancelAllRequest): Made private.
  9793. (countRequestSlot): Made private.
  9794. (addPendingMessage): Removed.
  9795. (deletePendingPieceMessage): Removed.
  9796. (deletePendingRequestMessage): Removed.
  9797. (addMessage): New function.
  9798. (deletePieceMessageInQueue): New function.
  9799. (deleteTimeoutRequestSlot): Changed argument.
  9800. (deleteCompletedRequestSlot): Changed argument.
  9801. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  9802. (getCorrespondingRequestSlot): New function.
  9803. (countPendingMessage): Removed.
  9804. (countMessageInQueue): New function.
  9805. (getTorrentMan): New function.
  9806. (getPeerConnection): New function.
  9807. (hasDownloadPiece): New function.
  9808. (getDownloadPiece): New function.
  9809. (setDownloadPiece): New function.
  9810. (syncPiece): New function.
  9811. (sendMessages): New function.
  9812. (sendNow): New function.
  9813. (trySendNow): New function.
  9814. (abortPiece): New function.
  9815. (sendHandshake): New function.
  9816. (receiveMessage): New function.
  9817. (receiveHandshake): New function.
  9818. (createRequestMessage): New function.
  9819. (createCancelMessage): New function.
  9820. (createPieceMessage): New function.
  9821. (createHaveMessage): New function.
  9822. (createChokeMessage): New function.
  9823. (createUnchokeMessage): New function.
  9824. (createInterestedMessage): New function.
  9825. (createNotInterestedMessage): New function.
  9826. (createBitfieldMessage): New function.
  9827. (createKeepAliveMessage): New function.
  9828. * src/SendMessageQueue.cc
  9829. (SendMessageQueue): Removed requestSlotMan.
  9830. Instantiated peerConnection here.
  9831. (~SendMessageQueue): Removed requestSlotMan.
  9832. Added deletion of peerConnection and the contents of messageQueue.
  9833. (send): Updated according to the change of messageQueue.
  9834. (addPendingMessage): Renamed to addMessage.
  9835. (addMessage): New function.
  9836. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  9837. (deletePieceMessageInQueue): New function.
  9838. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  9839. (deleteRequestMessageInQueue): New function.
  9840. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  9841. here.
  9842. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  9843. (...) was moved here.
  9844. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  9845. moved here.
  9846. (deleteCompletedRequestSlot):
  9847. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  9848. (getCorrespondingRequestSlot):
  9849. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  9850. And renamed to getCorrespondingRequestSlot, correcting a typo.
  9851. (countPendingMessage): Renamed to countMessageInQueue.
  9852. (countMessageInQueue): New function.
  9853. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  9854. (receiveHandshake): New function.
  9855. (createHandshakeMessage): New function.
  9856. (receiveMessage): New function.
  9857. (createPeerMessage): New function.
  9858. (syncPiece): New function.
  9859. (getNewPieceAndSendInterest): New function.
  9860. (sendMessages): New function.
  9861. (sendNow): New function.
  9862. (trySendNow): New function.
  9863. (sendHandshake): New function.
  9864. (abortPiece): New function.
  9865. (getDownloadPiece): New function.
  9866. (getPeerMessageCommonProperty): New function.
  9867. (createRequestMessage): New function.
  9868. (createCancelMessage): New function.
  9869. (createPieceMessage): New function.
  9870. (createHaveMessage): New function.
  9871. (createChokeMessage): New function.
  9872. (createUnchokeMessage): New function.
  9873. (createInterestedMessage): New function.
  9874. (createNotInterestedMessage): New function.
  9875. (createBitfieldMessage): New function.
  9876. (createKeepAliveMessage): New function.
  9877. To add simple Content-Disposition support:
  9878. * src/HttpResponseCommand.h (determinFilename): New function.
  9879. * src/HttpResponseCommand.cc (executeInternal):
  9880. Use determinFilename(headers) instead of req->getFile() when comparing
  9881. filename.
  9882. (determinFilename): New function.
  9883. (handleDefaultEncoding): Use determinFilename(headers) instead of
  9884. req->getFile().
  9885. (handleOtherEncoding): Use determinFilename(headers) instead of
  9886. req->getFile().
  9887. * src/Util.h (getContentDispositionFilename): New function.
  9888. * src/Util.cc (getContentDispositionFilename): New function.
  9889. * src/LogFactory.h (release): New function.
  9890. * src/LogFactory.cc (release): New function.
  9891. To fix a bug that causes out-of-bound exception when HTTP status
  9892. line is wrong:
  9893. * src/HttpConnection.cc (receiveResponse): Added a check for header
  9894. size.
  9895. * src/common.h (Deleter): New class.
  9896. * src/SegmentMan.cc
  9897. (~SegmentMan): Added deletion of splitter and diskWriter.
  9898. * src/DownloadEngine.h
  9899. (Commands): Use deque.
  9900. (clearQueue): New function.
  9901. * src/DownloadEngine.cc
  9902. (~DownloadEngine): Added deletion of segmentMan.
  9903. (cleanQueue): New function.
  9904. * src/TorrentDownloadEngine.h
  9905. (TorrentDownloadEngine): The implementation was moved to
  9906. TorrentDownloadEngine.cc.
  9907. (~TorrentDownloadEngine): The implementation was moved to
  9908. TorrentDownloadEngine.cc.
  9909. * src/TorrentDownloadEngine.cc
  9910. (~TorrentDownloadEngine): Added deletion of torrentMan.
  9911. * src/main.cc
  9912. (clearRequest): Removed.
  9913. (handler): Added deletion of e.
  9914. (torrentHandler): Added deletion of te.
  9915. (main): Do not share splitter.
  9916. Use Deleter instead of clearRequest.
  9917. Deletion of classes were updated.
  9918. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. * src/main.cc (main): Fixed typo.
  9920. * src/message.h: Fixed typo.
  9921. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  9922. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. To add --select-file command-line option:
  9924. * src/Util.cc
  9925. (unfoldRange): New function.
  9926. (getNum): New function.
  9927. (unfoldSubRange): New function
  9928. * src/main.cc
  9929. (showUsage): Added help message.
  9930. (main): Added --select-file command-line option. Updated the layout of
  9931. file listing.
  9932. * src/common.h
  9933. (Integers): New definition.
  9934. * src/SocketCore.cc
  9935. (writeData): Removed timeout argument.
  9936. (readData): Removed timeout argument.
  9937. (peekData): Removed timeout argument.
  9938. * src/Socket.cc
  9939. (writeData): Removed timeout argument.
  9940. (readData): Removed timeout argument.
  9941. (peekData): Removed timeout argument.
  9942. * Release 0.4.1
  9943. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. To deploy upload rate based choking algorithm:
  9945. * src/PeerInteractionCommand.cc
  9946. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  9947. peer currently used.
  9948. (decideChoking): Deleted the choke/unchoke decision algorithm when
  9949. download completes. Simplified.
  9950. (receiveMessage): Updated.
  9951. * src/TorrentMan.h
  9952. (activePeers): New variable.
  9953. (addActivePeer): New function.
  9954. (getActivePeers): New function.
  9955. (deleteActivePeer): New function.
  9956. * src/TorrentMan.cc
  9957. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  9958. * src/PeerAbstractCommand.cc
  9959. (onAbort): Use peer->resetStatus().
  9960. * src/main.cc
  9961. (PeerChokeCommand.h): Included.
  9962. (main): Added the instance of ChokingCommand to the command queue.
  9963. * src/Peer.h
  9964. (amChoking): Renamed from amChocking
  9965. (chokingRequired): New variable.
  9966. (optUnchoking): New variable.
  9967. (deltaUpload): New variable.
  9968. (deltaDownload): New variable.
  9969. (addDeltaUpload): New function.
  9970. (resetDeltaUpload): New function.
  9971. (addDeltaDownload): New function.
  9972. (resetDeltaDownload): New function.
  9973. (addPeerUpload): Added a call to addDeltaUpload.
  9974. (addPeerDownload): Added a call to addDeltaDownload.
  9975. * src/Peer.cc
  9976. (shouldBeChoking): Renamed from shouldChoke.
  9977. (resetStatus): New function.
  9978. * src/PeerChokeCommand.h: New class.
  9979. * src/PeerChokeCommand.cc: New class.
  9980. To add lazy upload speed limiter:
  9981. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  9982. statistics calculation to TorrentDownloadEngine.
  9983. * src/TorrentConsoleDownloadEngine.cc
  9984. (sendStatistics): Renamed from printStatistics.
  9985. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  9986. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  9987. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  9988. * src/TorrentDownloadEngine.h: Added the variables for statistics
  9989. calculation.
  9990. (sendStatistics): New function as pure virtual function.
  9991. (getUploadSpeed): New function.
  9992. * src/TorrentDownloadEngine.cc
  9993. (initStatistics): New function.
  9994. (calculateSpeed): New function.
  9995. (calculateStatistics): New function.
  9996. * src/SendMessageQueue.h
  9997. (uploadLength): New variable.
  9998. (send): Added an argument.
  9999. (setUploadLimit): New function.
  10000. (getUploadLimit): New function.
  10001. * src/SendMessageQueue.cc
  10002. (send): Added upload speed limiter.
  10003. * src/prefs.h
  10004. (PREF_UPLOAD_LIMIT): New definition.
  10005. * src/PeerInteractionCommand.cc
  10006. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10007. * src/main.cc
  10008. (main): Added --upload-limit option
  10009. For bug fixes:
  10010. * src/main.cc
  10011. (showUsage): Corrected --listen-port help
  10012. Other changes:
  10013. * src/TorrentMan.cc
  10014. (getPeer): Return nullPeer if connection is grather than
  10015. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10016. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. To add some useful information to the exception message:
  10018. * src/SocketCore.cc : Updated messages.
  10019. * src/SegmentMan.cc :
  10020. * src/TorrentMan.cc : Updated messages.
  10021. * src/MultiDiskWriter.cc : Updated messages.
  10022. * src/Util.cc : Updated messages.
  10023. * src/AbstractDiskWriter.cc : Updated messages.
  10024. * src/PreAllocationDiskWriter.cc : Updated messages.
  10025. * src/message.cc : Added new messages. Updated some messages.
  10026. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10027. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10028. Updated threshold from 30 to 15.
  10029. * src/AbstractDiskWriter.h (filename): New variable.
  10030. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10031. (createFile): Assigned filename.
  10032. * src/main.cc: Updated the help message for http-auth-scheme.
  10033. * Release 0.4.0
  10034. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10035. To add TrackerUpdateCommand with which replaces
  10036. CompactTrackerResponseProcessor:
  10037. * src/TrackerWatcherCommand.h (req): Removed.
  10038. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10039. if the number of peer connections are less than 30.
  10040. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10041. * src/SegmentMan.h (diskWriter): New function.
  10042. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10043. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10044. (main): Use TrackerUpdateCommand.
  10045. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10046. (req): New variable.
  10047. (setTrackerResponseProcessor): Removed.
  10048. (getTrackerResponseProcessor): Removed.
  10049. (processTrackerResponse): Removed.
  10050. * src/DownloadEngine.h (diskWriter): Removed.
  10051. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10052. to torrentMan->processTrackerResponse().
  10053. To add Util::expandBuffer:
  10054. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10055. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10056. * src/Util.h (expandBuffer): New function.
  10057. To fix the bug that causes segmentation fault when "-l ." is specified
  10058. in command-line option:
  10059. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10060. (openFile): New function.
  10061. (closeFile): New function.
  10062. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10063. (~SimpleLogger): Call closeFile();
  10064. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10065. * src/main.cc (main): Added a check to see logger is configured
  10066. properly.
  10067. To enable HTTP authentication without specifying "--http-auth-scheme"
  10068. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10069. * src/HttpConnection.cc (createRequest): Send Authorization header
  10070. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10071. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10072. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10073. * src/Peer.cc (shouldChoke): Updated algorithm.
  10074. * src/message.h (EX_AUTH_FAILED): New definition.
  10075. (EX_FILE_OPEN): New definition.
  10076. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10077. if status == 401.
  10078. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10079. if req->isTorrent == true.
  10080. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10081. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10082. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10083. (createFile): Updated message.
  10084. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. To add a readout of estimated remaining time to normal HTTP/FTP
  10086. downloads:
  10087. * src/ConsoleDownloadEngine.h (startup): New variable.
  10088. (startupLength): New variable.
  10089. (isStartupLengthSet): New variable.
  10090. (avgSpeed): New variable.
  10091. (eta): New variable.
  10092. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10093. estimated remaining time.
  10094. (initStatistics): Initialized newly added variables.
  10095. (calculateStatistics): Calculate average speed and estimated remaining
  10096. time.
  10097. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10098. * src/TrackerDownloadCommand.h: Removed.
  10099. * src/TrackerDownloadCommand.cc: Removed.
  10100. * src/TrackerInitCommand.h: Removed.
  10101. * src/TrackerInitCommand.cc: Removed.
  10102. * src/TrackerUpdateCommand.h: Removed.
  10103. * src/TrackerUpdateCommand.cc: Removed.
  10104. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10105. url written in TrackerInitCommand was moved here. Do not create
  10106. tracker request command if torrentMan->trackers != 0.
  10107. * src/CompactTrackerResponseProcessor.h: New class.
  10108. * src/CompactTrackerResponseProcessor.cc: New class.
  10109. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10110. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10111. Decoupled TorrentDownloadEngine from this.
  10112. * src/SegmentMan.h (init): New function.
  10113. * src/SegmentMan.cc (init): New function.
  10114. * src/TorrentMan.h (responseProcessor): New variable.
  10115. (trackers): New variable.
  10116. (setTrackerResponseProcessor): New function.
  10117. (getTrackerResponseProcessor): New function.
  10118. (processTrackerResponse): New function.
  10119. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10120. (processTrackerResponse): New function.
  10121. * src/main.cc (main): Use ByteArrayDiskWriter and
  10122. CompactTrackerResponseProcessor.
  10123. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10124. processTrackerResponse().
  10125. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10126. readout.
  10127. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10128. which indicates download has completed.
  10129. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10130. (closeFile): fd >= 0, not fd > 0
  10131. * src/main.cc (main): Added short cut for show-files.
  10132. Added short cut for torrent-file.
  10133. Added new command-line option listen-port.
  10134. Updated i18n messages.
  10135. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10136. To add LogFactory which creates singleton logger:
  10137. * src/LogFactory.h: New class.
  10138. * src/LogFactory.cc: New class.
  10139. * src/Command.h (logger): New variable.
  10140. (Constructor): Use LogFactory.
  10141. * src/AbstractCommand.cc: Use Command::logger
  10142. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10143. Use LogFactory.
  10144. * src/SegmentSplitter.h : Made logger protected.
  10145. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10146. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10147. * src/DownloadEngine.h : Made logger protected.
  10148. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10149. * src/PeerInteractionCommand.cc : Use Command::logger.
  10150. * src/HttpResponseCommand.cc : Use Command::logger.
  10151. * src/SegmentMan.h : Made logger private.
  10152. * src/TorrentMan.h : Made logger private.
  10153. * src/TorrentMan.cc : Use LogFactory.
  10154. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10155. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10156. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10157. Use LogFactory.
  10158. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10159. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10160. Use LogFactory.
  10161. * src/DownloadCommand.cc : Use Command::logger.
  10162. * src/PeerAbstractCommand.cc : Use Command::logger.
  10163. * src/PeerListenCommand.cc : Use Command::logger.
  10164. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10165. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10166. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10167. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10168. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10169. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10170. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10171. Use LogFactory.
  10172. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10173. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10174. Use LogFactory.
  10175. * src/main.cc (main): Use LogFactory.
  10176. * src/DiskAdaptor.h (logger): New variable.
  10177. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10178. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10179. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10181. parameter to a tracker request.
  10182. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10183. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10184. * src/main.cc (setSignalHander): New function.
  10185. (main): Added a handler for SIGTERM.
  10186. (handler): Updated message.
  10187. (torrentHandler): Updated message.
  10188. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. * src/TorrentConsoleDownloadEngine.cc
  10190. (onPartialDownloadingCompletes): Renamed as
  10191. onSelectiveDownloadingCompletes.
  10192. (onSelectiveDownloadingCompletes): Updated message.
  10193. To add DiskAdaptor which abstract DiskWriter family:
  10194. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10195. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10196. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10197. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10198. MultiDiskAdaptor.h.
  10199. (readFileEntry): Changed its arguments.
  10200. (setup): setupDiskWriter is merged into this function.
  10201. (setupDiskWriter): Removed.
  10202. (setFileFilter): New function.
  10203. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10204. made in readFileEntry.
  10205. (getFilePath): Removed.
  10206. (getTempFilePath): Removed.
  10207. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10208. (fixFilename): Removed.
  10209. (copySingleFile): Removed.
  10210. (splitMultiFile): Removed.
  10211. (deleteTempFile): Removed.
  10212. (setFileEntriesToDownload): Removed.
  10213. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10214. (isSelectiveDownloadingMode): New function.
  10215. (setAllMultiFileRequestedState): Removed.
  10216. (finishPartialDownloadingMode): Renamed as
  10217. finishSelectiveDownloadingMode.
  10218. (finishSelectiveDownloadingMode): New function.
  10219. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10220. (getSelectedTotalLength): New function.
  10221. (onDownloadComplete): Use diskAdaptor.
  10222. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10223. (Range): Removed.
  10224. (setMultiFileEntries): Renamed as setFileEntries.
  10225. (setFileEntries): New function.
  10226. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  10227. (pieceLength): New variable.
  10228. * src/main.cc (printDownloadCompeleteMessage): New function.
  10229. (torrentHandler): Use diskAdaptor instead of diskWriter.
  10230. (main): Renamed torrent-show-files to show-files.
  10231. Rewritten file contents listing.
  10232. * src/TorrentMan.h (FileEntry): Removed.
  10233. (multiFileTopDir): Removed.
  10234. (multiFileEntries): Removed.
  10235. (diskWriter): Removed.
  10236. (diskAdaptor): New variable.
  10237. * src/DefaultDiskWriter.h (totalLength): New variable.
  10238. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  10239. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  10240. diskWriter.
  10241. * src/TorrentConsoleDownloadEngine.h
  10242. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  10243. (partialTotalLength): Renamed as selectedTotalLength.
  10244. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  10245. openExistingFile, otherwise call initAndOpenFile.
  10246. (closeFile): fd > 0, not fd != 0.
  10247. * src/DirectDiskAdaptor.h: New class.
  10248. * src/DirectDiskAdaptor.cc: New class.
  10249. * src/MultiDiskAdaptor.h: New class.
  10250. * src/MultiDiskAdaptor.cc: New class.
  10251. * src/CopyDiskAdaptor.h: New class.
  10252. * src/CopyDiskAdaptor.cc: New class.
  10253. * src/DiskAdaptor.h: New class.
  10254. * src/DiskAdaptor.cc: New class.
  10255. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  10256. (PREF_SHOW_FILES): New definition.
  10257. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10258. To add the ability to download multi torrent into respective files
  10259. directly:
  10260. * src/DiskWriter.h (openFile): New function.
  10261. (seek): Removed.
  10262. * src/MultiDiskWriter.h: New class.
  10263. * src/MultiDiskWriter.cc: New class.
  10264. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  10265. protected.
  10266. (openFile): New function.
  10267. * src/AbstractDiskWriter.cc (openFile): New function.
  10268. * src/prefs.h (V_FALSE): New definition.
  10269. (PREF_DIRECT_FILE_MAPPING): New definition.
  10270. * src/TorrentMan.h (setupDiskWriter): New function.
  10271. (setAllMultiFileRequestedState): New function.
  10272. (onDownloadComplete): New function.
  10273. * src/TorrentMan.cc : Included MultiDiskWriter.h
  10274. (setupDiskWriter): New function.
  10275. (getFilePath): Updated.
  10276. (getTempFilePath): Updated.
  10277. (getSegmentFilePath): Updated.
  10278. (fixFilename): Updated.
  10279. (deleteTempFile): Updated.
  10280. (setAllMultiFileRequestedState): New function.
  10281. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  10282. (finishPartialDownloadingMode): Reset requested flags.
  10283. (onDownloadComplete): New function.
  10284. * src/main.cc: Added --direct-file-mapping option.
  10285. Use TorrentMan::setupDiskWriter().
  10286. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  10287. onDownloadComplete().
  10288. To fix ETA bug:
  10289. * src/Util.h (difftvsec): New function.
  10290. * src/Util.cc (difftvsec): New function.
  10291. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  10292. type of "elapsed" instead of long long int.
  10293. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  10294. The updates of statistics takes place every 1 seconds.
  10295. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  10296. (calculateSpeed): Changed its argument signature.
  10297. * src/PeerMessage.cc (toString): Fixed message.
  10298. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10299. To print ETA:
  10300. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  10301. completion handling when dealing with
  10302. TorrentMan::isPartialDownloadingMode() == true.
  10303. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  10304. New function.
  10305. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  10306. (sessionDownloadLength): New variable.
  10307. (avgSpeed): New variable.
  10308. (eta): New variable.
  10309. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  10310. new variables: eta, avgSpeed, startup.
  10311. (calculateSpeed): Calculate average speed and ETA.
  10312. (printStatistics): Added ETA.
  10313. * src/Util.h (secfmt): New function.
  10314. * src/Util.cc (secfmt): New function.
  10315. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10316. To detect "keep alive" flooding:
  10317. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  10318. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  10319. variable: keepAliveCount.
  10320. (detectMessageFlooding): Added "keep alive" flooding detection.
  10321. (receiveMessage): Increase keepAliveCount when "keep alive" message
  10322. received.
  10323. To add the ability to download only specified files in multi-file
  10324. torrent:
  10325. * src/BitfieldMan.h (filterBitfield): New variable.
  10326. (filterEnabled): New variable.
  10327. (setFilterBit): New function.
  10328. (enableFilter): New function.
  10329. (disableFilter): New function.
  10330. (isFilterEnabled): New function.
  10331. (getFilteredTotalLength): New function.
  10332. (getCompletedLength): New function.
  10333. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  10334. filterBitfield, filterEnabled.
  10335. (CopyConstructor): Added filterBitfield and filterEnabled.
  10336. (operator==): Added filterBitfield and filterEnabled.
  10337. (Destructor): Added filterBitfield.
  10338. (getMissingIndex): Use filterBitfield.
  10339. (getMissingUnusedIndex): Use filterBitfield.
  10340. (getFirstMissingUnusedIndex): Use filterBitfield.
  10341. (getFirstMissingUnusedIndex): Use filterBitfield.
  10342. (getAllMissingIndexes): Use filterBitfield.
  10343. (countMissingBlock): Use filterBitfield.
  10344. (countBlock): Use filterBitfield.
  10345. (setBitInternal): Added new argument on.
  10346. (setUseBit): Use setBitInternal.
  10347. (unsetUseBit): Use setBitInternal.
  10348. (setBit): Use setBitInternal.
  10349. (unsetBit): Use setBitInternal.
  10350. (isAllBitSet): Use filterBitfield.
  10351. (setFilterBit): New function.
  10352. (addFilter): New function.
  10353. (enableFilter): New function.
  10354. (disableFilter): New function.
  10355. (clearFilter): New function.
  10356. (isFilterEnabled): New function.
  10357. (getFilteredTotalLength): New function.
  10358. (getCompletedLength): New function.
  10359. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  10360. Initalized newly added variables.
  10361. [FileEntry](offset): New variable.
  10362. [FileEntry](extracted): New variable.
  10363. [FileEntry](requested): New variable.
  10364. (readFileEntry): New function.
  10365. (option): New variable.
  10366. (splitMultiFile): Removed const qualifier.
  10367. (fixFilename): Removed const qualifier.
  10368. (readFileEntryFromMetaInfoFile): New function.
  10369. (finishPartialDownloadingMode): New function.
  10370. (isPartialDownloadingMode): New function.
  10371. (setFileEntriesToDownload): New function.
  10372. (getCompletedLength): New function.
  10373. (getPartialTotalLength): New function.
  10374. * src/TorrentMan.cc (readFileEntry): New function.
  10375. (setup): Use readFileEntry. If no-preallocation option is specified,
  10376. use DefaultDiskWriter.
  10377. (readFileEntryFromMetaInfoFile): New function.
  10378. (fixFilename): Removed const qualifier.
  10379. (splitMultiFile): Removed const qualifier.
  10380. (setFileEntriesToDownload): New function.
  10381. (isPartialDownloadingMode): New function.
  10382. (finishPartialDownloadingMode): New function.
  10383. (getCompletedLength): New function.
  10384. (getPartialTotalLength): New function.
  10385. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  10386. New variable.
  10387. (partialTotalLength): New variable.
  10388. (downloadLength): New variable.
  10389. (totalLength): New variable.
  10390. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  10391. Added log.
  10392. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  10393. partialTotalLength, downloadLength, totalLength.
  10394. (calculate): Calculate downloadLength and totalLength.
  10395. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  10396. * src/main.cc (addCommand): Changed argument signature.
  10397. (main): Added new variable: args. Added new option "torrent-show-files"
  10398. "no-preallocation". Usage is not updated yet.
  10399. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  10401. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Attempt to add the ability to listing file entries in a .torrent file.
  10403. This feature is not yet complete.
  10404. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  10405. * src/TorrentMan.cc (getMultiFileEntries): New function.
  10406. (getName): New function.
  10407. * src/TorrentMan.h (getMultiFileEntries): New function.
  10408. (getName): New function.
  10409. * src/main.cc (main): Use above 2 funtion.
  10410. * Release 0.3.2
  10411. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10412. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  10413. (detectMessageFlooding): Updated threshold value.
  10414. (checkLongTimePeerChoking): Updated timeout value.
  10415. (getNewPieceAndSendInterest): Added debug log.
  10416. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  10417. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  10418. (getPeer): Updated.
  10419. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  10420. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  10421. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  10422. is localhost.
  10423. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  10424. * src/PendingMessage.cc (processMessage): Not to send piece message
  10425. if peer is not interested in the pieces localhost has.
  10426. * src/Peer.cc (shouldChoke): Updated.
  10427. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  10428. * src/Util.cc (isPowerOf): New function.
  10429. * src/Util.h (isPowerOf): New function.
  10430. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  10431. whether or not it is power of 2.
  10432. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10433. Added new class SendMessageQueue that includes PendingMessages and
  10434. RequestSlotMan.
  10435. * src/SendMessageQueue.h: New class.
  10436. * src/SendMessageQueue.cc: New class.
  10437. * src/PendingMessage.h: Added new member variable blockIndex and its
  10438. accessors.
  10439. (createRequestMessage): Updated.
  10440. * src/PendingMessage.cc (createRequestMessage): Updated.
  10441. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  10442. SendMessageQueue.
  10443. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  10444. (receiveMessage): Updated with SendMessageQueue.
  10445. (deletePendingPieceMessage): Removed.
  10446. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  10447. (sendInterest): Updated with SendMessageQueue.
  10448. (createRequestPendingMessage): Updated with SendMessageQueue.
  10449. (sendMessages): Updated with SendMessageQueue.
  10450. (onAbort): Updated with SendMessageQueue.
  10451. (keepAlive): Updated with SendMessageQueue.
  10452. (beforeSocketCheck): Updated SendMessageQueue.
  10453. * src/PeerInteractionCommand (sendMessages): Shuffle
  10454. missingBLockIndexes before using it.
  10455. Added its own timeout for peer connection.
  10456. * src/PeerAbstractCommand.h: Added member variable timeout and its
  10457. setter.
  10458. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  10459. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10460. Added setTimeout() call.
  10461. (executeInternal): Added setTimeout() call.
  10462. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  10463. Added timeout.
  10464. (isTimeoutDetected): Updated.
  10465. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  10466. option.
  10467. Added *simple* message flooding checker.
  10468. * src/PeerInteractionCommand.cc (executeInternal):
  10469. Added detectMessageFlooding() call.
  10470. (detectMessageFlooding): New function.
  10471. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  10472. (beforeSocketCheck): Added detectMessageFlooding() call.
  10473. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  10474. chokeUnchokeCount, haveCount, detectMessageFlooding().
  10475. Removed deletePendingPieceMessage(), getRequestSlot(),
  10476. deleteRequestSlot(), deleteAllRequestSlot().
  10477. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  10478. Added checkLongTimePeerChoking() call.
  10479. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  10480. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  10481. if duplicate == false.
  10482. The parameter "uploaded" and "downloaded" in the tracker request are
  10483. the size since the client sent the "started" event to the tracker.
  10484. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  10485. uploaded size to preDownloadedSize, preUploadedSize respectively.
  10486. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  10487. getSessionDownloadedSize(), getSessionUploadedSize().
  10488. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  10489. getSessionUploadedSize() instead of getDownloadedSize(),
  10490. getUploadedSize().
  10491. * src/PendingMessage.cc (processMessage): Do not send request message
  10492. if the peer is choking the client.
  10493. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  10494. less than interval.
  10495. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. * configure.in: Added gnutls support. Added several CPP macros.
  10497. * m4/openssl.m4: Added.
  10498. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  10499. readData(), peekData(). Added gnutls support.
  10500. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  10501. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  10502. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  10503. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10504. Instead, added a check for whether setup method has executed
  10505. successfully.
  10506. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  10507. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  10508. * src/Makefile.am: Updated.
  10509. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  10510. using whether OpenSSL or gcrypt, depending on the result of configure
  10511. script.
  10512. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  10513. messageDigest.h.
  10514. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  10515. * src/PeerListenCommand.cc: Added log about port binded successfully.
  10516. Fixed memory leak.
  10517. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  10518. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  10519. Removed instantiation of TrackerInitCommand. Instead,
  10520. TrackerWatcherCommand is instantiated and pushed to the command queue.
  10521. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  10522. ENABLE_SSL.
  10523. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  10524. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  10525. If a piece is already acquired by another command, delete the request
  10526. slots for the piece.
  10527. * src/TrackerUpdateCommand.cc (execute):
  10528. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  10529. Added a check whether peer list is null.
  10530. Fixed the bug that causes sending completed event to the tracker
  10531. several times.
  10532. * src/TrackerInitCommand.cc (execute):
  10533. Fixed the bug that causes sending completed event to the tracker
  10534. several times.
  10535. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  10536. by using messageDigest.h.
  10537. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. * PeerConnection.cc: Replaced log message "keep-alive" with
  10539. "keep alive".
  10540. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  10541. localhost long time.
  10542. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  10543. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  10544. at most 100 failure entry from the list. If with duplicate = false,
  10545. MAX_PEER_LIST is not checked.
  10546. * PeerListenCommand.cc: Fixed the argument order of log message.
  10547. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10548. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  10549. Added warn().
  10550. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  10551. Implemented warn().
  10552. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  10553. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. * Request.h: Added AFTER_COMPLETED event.
  10555. * TorrentDownloadEngine.cc: Prints "Download complete" message
  10556. instead of downloaded size and progress(%) after download completes.
  10557. * PeerInteractionCommand.cc: After download completes, sends unchoke
  10558. message to the peer if it is interested in what localhost has
  10559. downloaded.
  10560. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  10561. destination instead of just renaming it.
  10562. * TorrentMan.cc: Added deleteTempFile().
  10563. * PeerAbstractCommand.cc: do not stop execution after download
  10564. completes. This makes localhost a seeder.
  10565. * Util.{h,cc}: Added fileCopy().
  10566. * PeerListenCommand.cc: do not stop execution after download completes.
  10567. This makes localhost a seeder.
  10568. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  10569. Added TorrentMan::deleteTempFile() to torrentHandler.
  10570. Initialized the variable dir as ".".
  10571. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  10572. Deleted renameSingleFile().
  10573. Added copySingleFile(), deleteTempFile().
  10574. * DownloadEngine.h: Added virtual function afterEachIteration().
  10575. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  10576. in onEndOfRun() to afterEachIteration().
  10577. In onEndOfRun(), changed if condition to check whether filenameFixed is
  10578. true.
  10579. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  10580. In rangedFileCopy(), added try-catch block to properly close file
  10581. descriptors.
  10582. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  10583. Added afterEachIteration(), isFilenameFixed().
  10584. * Peer.cc: Changed choking strategy.
  10585. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  10586. * TrackerInitCommand.cc: Send completed event only once.
  10587. * DownloadEngine.cc: Added a call to afterEachIteration().
  10588. * TrackerUpdateCommand.cc: Do not stop execution after download
  10589. completes.
  10590. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  10591. connect the peers at most MAX_PEER_UPDATE when a peer list is
  10592. received from a tracker.
  10593. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  10594. Decreased the number of failure peers to delete to 0(just comment out
  10595. the line).
  10596. * Release 0.3.1
  10597. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. * PeerInteractionCommand.cc: added a call to
  10599. TorrentMan::unadvertisePiece in Destructor.
  10600. * PeerInteractionCommand.cc: make have message sent immediately
  10601. if the size of pending message queue is zero.
  10602. * TorrentMan.cc: set the maximum size of peer list to 250.
  10603. * TorrentMan.h: changed the container type of Peers and UsedPieces
  10604. to deque.
  10605. * Util.cc: fixed rangedFileCopy.
  10606. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  10607. to Constructor. Also, moved digest cleanup to Destructor.
  10608. * MetaFileUtil.cc: fixed memory leak
  10609. * replaced std::vector with std::deque.
  10610. * AbstractCommand.cc: casted timeout value to long long int.
  10611. * ChunkedEncoding.cc: fixed memory leak.
  10612. * PeerInteractionCommand.cc: casted timeout value to long long int.
  10613. * SleepCommand.cc: casted timeout value to long long int.
  10614. * Data.cc: fixed memory leak.
  10615. * Data.cc: fixed toLLInt().
  10616. * BitfieldMan.cc: fixed memory leak.
  10617. * TorrentMan.cc: initialized storeDir to ".".
  10618. * TorrentMan.cc: fixed memory leak.
  10619. * TorrentMan.cc: corrected file paths of splitted files.
  10620. * PeerAbstractCommand.cc: casted timeout to long long int.
  10621. * main.cc: added delete(req) and delete(te->diskWriter).
  10622. * RequestSlot.cc: casted timeout value to long long int.
  10623. * Request.cc: fixed memory leak.
  10624. * PendingMessage.cc: make HAVE messages sent only when peer does not
  10625. have the piece.
  10626. * Peer.{h,cc}: added hasPiece(int index).
  10627. * main.cc: corrected addCommand.
  10628. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10629. * BitTorrent protocol support added.
  10630. * Release 0.3.0
  10631. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10632. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  10633. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  10635. decoding did not work properly.
  10636. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. * DownloadEngine.h: included sys/time.h
  10638. * DownloadEngine.cc: remove sys/time.h
  10639. * Makefile.am (SUBDIRS): Add intl.
  10640. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  10641. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. * main.cc: correct help message for --http-auth-scheme.
  10643. * main.cc: changed e-mail address for bug reports.
  10644. * ja.po: added japanese translation.
  10645. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. * SimpleLogger.cc: flush log file instead of stdout.
  10647. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10648. * main.cc: Fixed command-line option: max-tries
  10649. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  10650. does not equal to seg.sp.
  10651. * DownloadCommand.cc: If EOF is got from the server and the total size
  10652. of file is not zero, then throw DlRetryEx.
  10653. * main.cc: Set the minium value of min-segment-size to 1024.
  10654. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  10655. fails because of a regression since 0.2.0 release.
  10656. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10657. * HttpConnection.cc:
  10658. * common.h: defined the user agent name as macro
  10659. * DownloadEngine.{h, cc}:
  10660. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  10661. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  10662. * main.cc: Download complete/abort message is now generated by main.
  10663. * Makefile.am (SUBDIRS): Add m4.
  10664. (ACLOCAL_AMFLAGS): New variable.
  10665. (EXTRA_DIST): New variable.
  10666. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  10667. * gettext: added gettext functionality
  10668. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. * AbstractCommand.cc:
  10670. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  10671. unregister its cuid from SegmentMan.
  10672. * DownloadEngine.cc: .aria2 file was written when a downloading
  10673. failed with errors.
  10674. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  10675. Added "User-Agent" header to CONNECT proxy request.
  10676. Fixed "Proxy-Authorization" header. Now proxy authorization works
  10677. properly.
  10678. * Logger.h:
  10679. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  10680. * ChunkedEncoding.cc: Added #include directive for strings.h
  10681. * Release 0.2.1
  10682. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. * Util.{h,cc}: added startsWith().
  10684. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  10685. Util::endsWith().
  10686. * SocketCore.cc: struct addrinfo is now zero-initialized.
  10687. * common.h: added #include directive of limit.h.
  10688. * DownloadEngine.cc: added #include directive of sys/time.h and
  10689. algorithm.
  10690. * Exception.h: added #include directive of stdio.h.
  10691. * AbstractCommand.h: added #include directive of sys/time.h.
  10692. * DownloadCommand.h: added #include directive of sys/time.h.
  10693. * *.h: added #include directive of common.h to all base classes.
  10694. subclasses' one was removed.
  10695. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  10696. does not define these macros.
  10697. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. * Release 0.2.0
  10699. * main.cc:
  10700. * HttpInitiateConnectionCommand.{h,cc}:
  10701. * prefs.h:
  10702. * HttpConnection.{h,cc}: added --http-proxy-method option.
  10703. We can now use GET command in http proxy.
  10704. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  10706. that splits slowest segment of SegmentMan::commands vector.
  10707. This is the default split algorithm of aria2.
  10708. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  10709. that splits first segment of SegmentMan::commands vector.
  10710. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  10711. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  10712. * Segment.h:
  10713. * SegmentMan.cc: Added speed field to Segment.h
  10714. * main.cc: -s option now affects all URLs in command-line arguemtns.
  10715. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  10716. * message.h: Change file size related %d to %lld.
  10717. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. * FtpInitiateConnectionCommand.{h,cc}:
  10719. * FtpNegotiationCommand.{h,cc}:
  10720. * FtpDownloadCommand.{h,cc}:
  10721. * FtpConnection.{h,cc}: Added FTP support
  10722. * SimpleLogger.cc: Log message now includes time information.
  10723. * main.cc: The value of --http-auth-scheme option is chagned from
  10724. 'BASIC' to 'basic'
  10725. * main.cc: Added --timeout command-line option.
  10726. * main.cc: Added --min-segment-size command-line option.
  10727. * main.cc: Added --max-retries command-line option.
  10728. * prefs.h: option string constants are now defined in prefs.h
  10729. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10730. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  10731. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  10732. with version 0.1.0's one.
  10733. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10734. * configure.in: Added --enable-ssl option to configure script.
  10735. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  10736. cannot permit absoluteURI as Request-URI.
  10737. * HttpConnection.cc: Added Referer support.
  10738. * main.cc: Added referer command-line option.
  10739. * main.cc: Added rety-wait command-line option.
  10740. * Exception.h: Fixed formating bug in Exception::setMsg()
  10741. * SocketCore.{h,cc}:
  10742. * Socket.{h, cc}:
  10743. * Request.cc:
  10744. * InitiateConnectionCommandFactory.cc:
  10745. * HttpRequestCommand.cc: Added HTTPS support.
  10746. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  10747. for SocketCore.
  10748. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  10749. size is wrong
  10750. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  10751. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  10752. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  10753. * Release 0.1.0