ChangeLog 444 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809
  1. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3. The CA certificates are specified in --ca-certificate option.
  4. By default, the verification is disabled. Use --check-certificate
  5. option to enable it.
  6. * src/HttpRequestCommand.cc
  7. * src/LibgnutlsTLSContext.cc
  8. * src/LibgnutlsTLSContext.h
  9. * src/LibsslTLSContext.cc
  10. * src/LibsslTLSContext.h
  11. * src/MultiUrlRequestInfo.cc
  12. * src/OptionHandlerFactory.cc
  13. * src/SocketCore.cc
  14. * src/SocketCore.h
  15. * src/a2functional.h
  16. * src/message.h
  17. * src/option_processing.cc
  18. * src/prefs.cc
  19. * src/prefs.h
  20. * src/usage_text.h
  21. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Added client certificate authentication for SSL/TLS.
  23. Currently a private key must be decrypted for use with aria2.
  24. If a user accidentally gives encrypted file to aria2 then following
  25. thing happens:
  26. If encrypted private key is given to aria2, it behaves differently
  27. depending on the ssl library it uses. If aria2 built with openssl then
  28. openssl prompts the user for password. If aria2 build with gnutls then
  29. aria2 exists with error at start up.
  30. * src/DownloadEngineFactory.cc
  31. * src/MultiUrlRequestInfo.cc
  32. * src/OptionHandlerFactory.cc
  33. * src/option_processing.cc
  34. * src/prefs.cc
  35. * src/prefs.h
  36. * src/usage_text.h
  37. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Introduced TLSContext that holds TLS related data that can be shared
  39. with multiple SSL connections.
  40. * src/DownloadEngineFactory.cc
  41. * src/LibgnutlsTLSContext.cc
  42. * src/LibgnutlsTLSContext.h
  43. * src/LibsslTLSContext.cc
  44. * src/LibsslTLSContext.h
  45. * src/Makefile.am
  46. * src/SocketCore.cc
  47. * src/SocketCore.h
  48. * src/TLSContext.h
  49. * src/message.h
  50. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Fixed the bug that the DiskWriter of the first FileEntry whose
  52. `needsFileAllocation' property is false is not created
  53. even if it shares a piece with next FileEntry which `requested' property
  54. is true.
  55. Fixed the bug that zero-length file is not created if pre file
  56. allocation is not done.
  57. * src/MultiDiskAdaptor.cc
  58. * src/MultiDiskAdaptor.h
  59. * test/MultiDiskAdaptorTest.cc
  60. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  61. Added the ability to pool proxy connection.
  62. The conneciton in FTP with proxy-method=GET is not pooled.
  63. Proxy-Connection header will not be sent when sending CONNECT method.
  64. * src/DownloadEngine.cc
  65. * src/DownloadEngine.h
  66. * src/FtpFinishDownloadCommand.cc
  67. * src/FtpInitiateConnectionCommand.cc
  68. * src/FtpNegotiationCommand.cc
  69. * src/HttpDownloadCommand.cc
  70. * src/HttpInitiateConnectionCommand.cc
  71. * src/HttpRequest.cc
  72. * src/HttpRequest.h
  73. * src/HttpResponse.cc
  74. * src/HttpSkipResponseCommand.cc
  75. * test/HttpRequestTest.cc
  76. * test/HttpResponseTest.cc
  77. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  78. Handle date before epoch.
  79. To create *bad* Time object, call Time::null().
  80. * src/CookieParser.cc
  81. * src/FtpConnection.cc
  82. * src/FtpConnection.h
  83. * src/FtpNegotiationCommand.cc
  84. * src/RequestGroup.cc
  85. * src/TimeA2.cc
  86. * src/TimeA2.h
  87. * test/CookieParserTest.cc
  88. * test/FtpConnectionTest.cc
  89. * test/TimeTest.cc
  90. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  91. Added support for following envrionment variables: http_proxy,
  92. https_proxy, ftp_proxy and all_proxy.
  93. Each variable is equivalent to the aria2 option whose name is the
  94. variable name with '_' replaced with '-'.
  95. They overrides options specified in aria2.conf file.
  96. The envrionment variables can be overrode using command-line option.
  97. * src/option_processing.cc
  98. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  99. Renamed --http-proxy-method as --proxy-method.
  100. * src/AbstractCommand.cc
  101. * src/FtpInitiateConnectionCommand.cc
  102. * src/HttpInitiateConnectionCommand.cc
  103. * src/OptionHandlerFactory.cc
  104. * src/option_processing.cc
  105. * src/prefs.cc
  106. * src/prefs.h
  107. * src/usage_text.h
  108. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  109. Deprecated --http-proxy-user and --http-proxy-passwd options.
  110. Added --https-proxy, --ftp-proxy and --all-proxy options.
  111. Above 3 options and --http-proxy option can handle proxy in URL format
  112. like: http://user:passwd@host:port.
  113. If a proxy requires user/password, they must be specified in a URL.
  114. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  115. instead.
  116. * src/AbstractCommand.cc
  117. * src/AbstractCommand.h
  118. * src/AbstractProxyRequestCommand.cc
  119. * src/AbstractProxyRequestCommand.h
  120. * src/AuthConfigFactory.cc
  121. * src/AuthConfigFactory.h
  122. * src/FtpFinishDownloadCommand.cc
  123. * src/FtpInitiateConnectionCommand.cc
  124. * src/FtpInitiateConnectionCommand.h
  125. * src/FtpNegotiationCommand.cc
  126. * src/FtpTunnelRequestCommand.cc
  127. * src/FtpTunnelRequestCommand.h
  128. * src/HttpDownloadCommand.cc
  129. * src/HttpInitiateConnectionCommand.cc
  130. * src/HttpInitiateConnectionCommand.h
  131. * src/HttpProxyRequestCommand.cc
  132. * src/HttpProxyRequestCommand.h
  133. * src/HttpRequest.cc
  134. * src/HttpRequest.h
  135. * src/HttpRequestCommand.cc
  136. * src/HttpRequestCommand.h
  137. * src/HttpSkipResponseCommand.cc
  138. * src/InitiateConnectionCommand.cc
  139. * src/InitiateConnectionCommand.h
  140. * src/OptionHandlerFactory.cc
  141. * src/OptionHandlerImpl.h
  142. * src/Request.cc
  143. * src/option_processing.cc
  144. * src/prefs.cc
  145. * src/prefs.h
  146. * src/usage_text.h
  147. * test/AuthConfigFactoryTest.cc
  148. * test/HttpRequestTest.cc
  149. * test/OptionHandlerTest.cc
  150. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  151. Execute choking algorithm when unchoked and interested peer is
  152. disconected.
  153. * src/DefaultPeerStorage.cc
  154. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  155. Added testcase for BtNotInterestedMessage from unchoked peer.
  156. * test/BtNotInterestedMessageTest.cc
  157. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  158. Execute choking algorithm when BtInterestedMessage arrives from
  159. unchoked peer.
  160. * src/BtInterestedMessage.cc
  161. * src/BtInterestedMessage.h
  162. * src/DefaultBtMessageFactory.cc
  163. * test/BtInterestedMessageTest.cc
  164. * test/MockPeerStorage.h
  165. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  166. AuthConfigFactory is now part of DownloadEngine.
  167. * src/AbstractProxyRequestCommand.cc
  168. * src/AuthConfigFactory.h
  169. * src/DownloadEngine.cc
  170. * src/DownloadEngine.h
  171. * src/FtpConnection.cc
  172. * src/FtpConnection.h
  173. * src/FtpNegotiationCommand.cc
  174. * src/HttpConnection.cc
  175. * src/HttpRequest.cc
  176. * src/HttpRequest.h
  177. * src/HttpRequestCommand.cc
  178. * src/HttpResponse.cc
  179. * src/HttpResponseCommand.cc
  180. * src/HttpSkipResponseCommand.cc
  181. * src/MultiUrlRequestInfo.cc
  182. * src/main.cc
  183. * test/FtpConnectionTest.cc
  184. * test/HttpRequestTest.cc
  185. * test/HttpResponseTest.cc
  186. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  187. Corrected catched exception type.
  188. * src/ServerStatMan.cc
  189. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  190. DNSCache is now part of DownloadEngine.
  191. * src/DNSCache.h
  192. * src/DownloadEngine.cc
  193. * src/DownloadEngine.h
  194. * src/InitiateConnectionCommand.cc
  195. * src/MultiUrlRequestInfo.cc
  196. * test/Makefile.am
  197. * test/Makefile.in
  198. * test/SimpleDNSCacheTest.cc
  199. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  200. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  201. DownloadEngine.
  202. * src/ActivePeerConnectionCommand.cc
  203. * src/BtSetup.cc
  204. * src/CUIDCounter.h
  205. * src/DHTSetup.cc
  206. * src/DownloadCommand.cc
  207. * src/DownloadEngine.cc
  208. * src/DownloadEngine.h
  209. * src/DownloadEngineFactory.cc
  210. * src/FileAllocationDispatcherCommand.cc
  211. * src/InitiatorMSEHandshakeCommand.cc
  212. * src/PeerInitiateConnectionCommand.cc
  213. * src/PeerInteractionCommand.cc
  214. * src/PeerListenCommand.cc
  215. * src/RequestGroup.cc
  216. * src/StreamFileAllocationEntry.cc
  217. * src/TrackerWatcherCommand.cc
  218. * src/main.cc
  219. * test/RequestGroupManTest.cc
  220. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  221. Implemented commented code in BtSeederStateChoke
  222. * src/BtSeederStateChoke.cc
  223. * src/Peer.cc
  224. * src/Peer.h
  225. * src/PeerInteractionCommand.cc
  226. * src/PeerSessionResource.cc
  227. * src/PeerSessionResource.h
  228. * test/MockBtMessageDispatcher.h
  229. * test/PeerSessionResourceTest.cc
  230. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  231. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  232. its object.
  233. * src/AbstractBtMessage.cc
  234. * src/ActivePeerConnectionCommand.cc
  235. * src/ActivePeerConnectionCommand.h
  236. * src/BtContextAwareCommand.cc
  237. * src/BtContextAwareCommand.h
  238. * src/BtExtendedMessage.cc
  239. * src/BtExtendedMessage.h
  240. * src/BtInterestedMessage.cc
  241. * src/BtInterestedMessage.h
  242. * src/BtNotInterestedMessage.cc
  243. * src/BtNotInterestedMessage.h
  244. * src/BtRegistry.cc
  245. * src/BtRegistry.h
  246. * src/BtSeederStateChoke.cc
  247. * src/BtSetup.cc
  248. * src/DHTGetPeersCommand.cc
  249. * src/DHTGetPeersCommand.h
  250. * src/DHTPeerAnnounceEntry.cc
  251. * src/DHTPeerAnnounceEntry.h
  252. * src/DHTPeerAnnounceStorage.cc
  253. * src/DHTPeerAnnounceStorage.h
  254. * src/DHTPeerLookupTask.cc
  255. * src/DHTPeerLookupTask.h
  256. * src/DHTSetup.cc
  257. * src/DHTSetup.h
  258. * src/DHTTaskFactory.h
  259. * src/DHTTaskFactoryImpl.cc
  260. * src/DHTTaskFactoryImpl.h
  261. * src/DefaultBtAnnounce.cc
  262. * src/DefaultBtInteractive.cc
  263. * src/DefaultBtInteractive.h
  264. * src/DefaultBtMessageDispatcher.cc
  265. * src/DefaultBtMessageDispatcher.h
  266. * src/DefaultBtMessageFactory.cc
  267. * src/DefaultBtMessageFactory.h
  268. * src/DefaultBtMessageReceiver.cc
  269. * src/DefaultBtProgressInfoFile.cc
  270. * src/DefaultBtProgressInfoFile.h
  271. * src/DefaultBtRequestFactory.cc
  272. * src/DefaultBtRequestFactory.h
  273. * src/DefaultExtensionMessageFactory.cc
  274. * src/DefaultExtensionMessageFactory.h
  275. * src/DefaultPeerStorage.cc
  276. * src/DefaultPeerStorage.h
  277. * src/DownloadEngine.cc
  278. * src/DownloadEngine.h
  279. * src/InitiatorMSEHandshakeCommand.cc
  280. * src/InitiatorMSEHandshakeCommand.h
  281. * src/MSEHandshake.cc
  282. * src/MSEHandshake.h
  283. * src/Makefile.am
  284. * src/Makefile.in
  285. * src/PeerChokeCommand.cc
  286. * src/PeerChokeCommand.h
  287. * src/PeerInitiateConnectionCommand.cc
  288. * src/PeerInitiateConnectionCommand.h
  289. * src/PeerInteractionCommand.cc
  290. * src/PeerInteractionCommand.h
  291. * src/PeerObject.h
  292. * src/PeerReceiveHandshakeCommand.cc
  293. * src/PeerReceiveHandshakeCommand.h
  294. * src/ReceiverMSEHandshakeCommand.cc
  295. * src/RequestGroup.cc
  296. * src/RequestGroup.h
  297. * src/RequestGroupMan.cc
  298. * src/RequestGroupMan.h
  299. * src/SeedCheckCommand.cc
  300. * src/SeedCheckCommand.h
  301. * src/ShareRatioSeedCriteria.h
  302. * src/SimpleBtMessage.cc
  303. * src/TrackerWatcherCommand.cc
  304. * src/TrackerWatcherCommand.h
  305. * src/UTPexExtensionMessage.cc
  306. * src/UTPexExtensionMessage.h
  307. * test/BtCancelMessageTest.cc
  308. * test/BtChokeMessageTest.cc
  309. * test/BtExtendedMessageTest.cc
  310. * test/BtInterestedMessageTest.cc
  311. * test/BtNotInterestedMessageTest.cc
  312. * test/BtPieceMessageTest.cc
  313. * test/BtPortMessageTest.cc
  314. * test/BtRegistryTest.cc
  315. * test/BtRejectMessageTest.cc
  316. * test/BtRequestMessageTest.cc
  317. * test/DHTPeerAnnounceEntryTest.cc
  318. * test/DHTPeerAnnounceStorageTest.cc
  319. * test/DefaultBtMessageDispatcherTest.cc
  320. * test/DefaultBtMessageFactoryTest.cc
  321. * test/DefaultBtProgressInfoFileTest.cc
  322. * test/DefaultBtRequestFactoryTest.cc
  323. * test/DefaultExtensionMessageFactoryTest.cc
  324. * test/MSEHandshakeTest.cc
  325. * test/MockDHTTaskFactory.h
  326. * test/ShareRatioSeedCriteriaTest.cc
  327. * test/UTPexExtensionMessageTest.cc
  328. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  329. Fixed compiler warning.
  330. * test/UtilTest.cc
  331. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  332. Treat Cookie object as session cookie if expiry = 0 is given.
  333. With this change, you can specify session scoped cookies in an external
  334. file setting expiry value to 0.
  335. * src/Cookie.cc
  336. * src/Cookie.h
  337. * test/CookieParserTest.cc
  338. * test/CookieStorageTest.cc
  339. * test/CookieTest.cc
  340. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  341. Changed signature of DHTMessageFactory::createResponseMessage().
  342. Removed unused validateIDMatch.
  343. * src/DHTMessageFactory.h
  344. * src/DHTMessageFactoryImpl.cc
  345. * src/DHTMessageFactoryImpl.h
  346. * src/DHTMessageTracker.cc
  347. * test/DHTMessageFactoryImplTest.cc
  348. * test/MockDHTMessageFactory.h
  349. Dropped DHT message coming from same ID of localhost.
  350. * src/DHTMessageReceiver.cc
  351. Rejected adding node whose ID is the same as localhost's.
  352. * src/DHTRoutingTable.cc
  353. * test/BtPortMessageTest.cc
  354. * test/DHTRoutingTableTest.cc
  355. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  356. Pool connection when redirection occurs with Content-Length = 0.
  357. * src/HttpSkipResponseCommand.cc
  358. * src/HttpSkipResponseCommand.h
  359. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  360. Fixed the bug that causes time out when redirection occurs with
  361. content-length 0.
  362. * src/HttpResponseCommand.cc
  363. * src/HttpSkipResponseCommand.cc
  364. * src/HttpSkipResponseCommand.h
  365. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  366. Now each status legends is shown only when it appears in Download
  367. Result. If Download Result has no item, then status legend will not
  368. be printed.
  369. * src/RequestGroupMan.cc
  370. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  371. Removed duplicate creation of OptionHandlers.
  372. * src/option_processing.cc
  373. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  374. Fixed the bug that causes segmentation fault when accessing files which
  375. don't exist or are not included in --select-file option while
  376. validating chunk checksum.
  377. * src/MultiDiskAdaptor.cc
  378. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  379. Fixed compiler warning.
  380. * test/UtilTest.cc
  381. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  382. Included cstdlib. This fixed the compile error with g++-4.3.2.
  383. * src/IteratableChecksumValidator.cc
  384. * src/IteratableChunkChecksumValidator.cc
  385. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  386. * Release 0.16.2
  387. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  388. Added Serbian translation. Updated Ukrainian translation.
  389. Thanks to all translators.
  390. * po/sr.po
  391. * po/uk.po
  392. * po/LINGUAS
  393. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  394. Bump up version number to 0.16.2
  395. * configure.ac
  396. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  397. Added length equality test to operator== to drop a piece message
  398. whose length does not match to the requested one.
  399. * src/RequestSlot.cc
  400. * test/DefaultBtMessageDispatcherTest.cc
  401. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  402. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  403. recieved.
  404. In this fix, if a request larger than 16KiB length is received, aria2
  405. disconnects the peer.
  406. * src/BtConstants.h
  407. * src/PeerMessageUtil.cc
  408. * src/PeerMessageUtil.h
  409. * test/BtRequestMessageTest.cc
  410. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  411. * Release 0.16.1
  412. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  413. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  414. * doc/aria2c.1.txt
  415. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  416. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  417. Updated French, Simplified Chinese and Japanese translations.
  418. Thanks to all translators.
  419. en@quot and en@boldquot are also added.
  420. * po/LINGUAS
  421. * po/fr.po
  422. * po/ja.po
  423. * po/uk.po
  424. * po/vi.po
  425. * po/zh_CN.po
  426. * po/zh_TW.po
  427. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  428. Bump up version number to 0.16.1.
  429. * configure.ac
  430. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  431. Updated README.
  432. * README
  433. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  434. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  435. not to replace '--' with em dash character.
  436. * doc/aria2c.1.txt
  437. * doc/makeman
  438. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  439. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  440. every SEC seconds.
  441. * src/DownloadEngineFactory.cc
  442. * src/OptionHandlerFactory.cc
  443. * src/option_processing.cc
  444. * src/usage_text.h
  445. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  446. Fixed compile warning on linux-amd64
  447. * src/FtpConnection.cc
  448. * src/IteratableChunkChecksumValidator.cc
  449. * src/MultiDiskAdaptor.cc
  450. Fixed the bug that unit test fails on linux-amd64
  451. * test/UtilTest.cc
  452. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  453. Added --dht-file-path option to change the path to dht.dat, which is a
  454. serialized DHT routing table.
  455. * src/OptionHandlerFactory.cc
  456. * src/option_processing.cc
  457. * src/usage_text.h
  458. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  459. Fixed possible underflow.
  460. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  461. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  462. Fixed the bug that last character in URI is not encoded.
  463. * src/Request.cc
  464. * test/RequestTest.cc
  465. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  466. Fixed the bug that referer header field contains fragment.
  467. Now Request class removes fragment part of URI and encodes it
  468. in Request::setUri() and setReferer().
  469. * src/Request.h
  470. * src/Request.cc
  471. * test/RequestTest.cc
  472. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  473. Added missing m4 macros.
  474. * m4/cppunit.m4
  475. * m4/libgcrypt.m4
  476. * m4/libgnutls-extra.m4
  477. * m4/libgnutls.m4
  478. * m4/libxml2.m4
  479. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  480. Fixed compile error with gcc-4.4(snapshot)
  481. * src/File.cc
  482. * src/FtpConnection.cc
  483. * src/OptionHandlerImpl.h
  484. * src/Util.cc
  485. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  486. Removed assert()
  487. * src/SocketBuffer.cc (SocketBuffer::send)
  488. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  489. Changed the type of _numNewConnection to unsigned int.
  490. * src/ActivePeerConnectionCommand.cc
  491. * src/ActivePeerConnectionCommand.h
  492. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  493. * Release 0.16.0
  494. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  495. Updated doc
  496. * README
  497. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  498. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  499. translations. Thanks to all translators.
  500. * po/bg.po
  501. * po/de.po
  502. * po/fr.po
  503. * po/ja.po
  504. * po/zh_CN.po
  505. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  506. Bump up version number to 0.16.0.
  507. * configure.ac
  508. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  509. Casted entry->maxConnections to int32_t for std::min<T> with T =
  510. int32_t.
  511. Changed the type of count to int32_t.
  512. * src/Metalink2RequestGroup.cc
  513. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  514. Added test for Time::elapsed(time_t).
  515. * test/TimeTest.cc
  516. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  517. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  518. Util::difftv() should be used instead.
  519. * src/TimeA2.cc
  520. * src/TimeA2.h
  521. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  522. Made socket for dht connections non-blocking
  523. * src/DHTAbstractMessage.cc
  524. * src/DHTAbstractMessage.h
  525. * src/DHTConnection.h
  526. * src/DHTConnectionImpl.cc
  527. * src/DHTConnectionImpl.h
  528. * src/DHTMessage.h
  529. * src/DHTMessageDispatcherImpl.cc
  530. * src/DHTMessageDispatcherImpl.h
  531. * src/DHTUnknownMessage.cc
  532. * src/DHTUnknownMessage.h
  533. * src/SocketCore.cc
  534. * src/SocketCore.h
  535. * test/MockDHTMessage.h
  536. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  537. Changed the type of offset to int.
  538. * src/ParameterizedStringParser.cc
  539. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  540. Made getAsInt() return int32_t
  541. * src/Option.h
  542. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  543. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  544. build.
  545. * configure.ac
  546. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  547. Use sqlite3_open if sqlite3_open_v2 is not available.
  548. * src/Sqlite3MozCookieParser.cc
  549. * src/Sqlite3MozCookieParser.h
  550. * m4/sqlite3.m4
  551. * test/Sqlite3MozCookieParserTest.cc
  552. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  553. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  554. * src/BtPieceMessage.cc
  555. * src/DHTPeerAnnounceStorage.cc
  556. * src/DefaultPieceStorage.cc
  557. * src/DownloadCommand.cc
  558. * src/DownloadEngine.cc
  559. * src/FtpConnection.cc
  560. * src/PeerConnection.cc
  561. * src/PeerMessageUtil.cc
  562. * src/RequestGroup.cc
  563. * src/RequestGroupMan.cc
  564. * src/SimpleBtMessage.cc
  565. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  566. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  567. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  568. * src/AbstractDiskWriter.cc
  569. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  570. Don't set Request::supportsPersistentConnection() in HttpConnection
  571. since this code is also used in AbstractProxyResponseCommand.
  572. Moved those code to HttpResponse.
  573. * src/HttpResponse.cc
  574. * src/HttpResponse.h
  575. * src/HttpConnection.cc
  576. * src/HttpConnection.h
  577. * src/HttpResponseCommand.cc
  578. * test/HttpResponseTest.cc
  579. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  580. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  581. The configuration is minimum: no torrent, no metalink, so there may be
  582. other compile error on their code.
  583. * src/a2netcompat.h
  584. * src/File.cc
  585. * src/File.h
  586. * src/SocketCore.cc
  587. * src/SocketCore.h
  588. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  589. Made a socket of incoming peer non-blocking.
  590. * src/PeerListenCommand.cc
  591. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  592. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  593. whole message data is not sent in one send() call.
  594. * src/BtPieceMessage.cc
  595. * src/BtPieceMessage.h
  596. * src/PeerConnection.cc
  597. * src/PeerConnection.h
  598. * src/SimpleBtMessage.cc
  599. * src/SimpleBtMessage.h
  600. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  601. Fixed the bug that aria2 downloads faster than max-download-limit when
  602. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  603. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  604. , instead of sum of them.
  605. * src/ActivePeerConnectionCommand.cc
  606. * src/DefaultBtInteractive.cc
  607. * src/DownloadCommand.cc
  608. * src/PeerInteractionCommand.cc
  609. * src/PeerReceiveHandshakeCommand.cc
  610. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  611. Fixed the bug that HTTPS download fails.
  612. * src/AbstractCommand.cc
  613. * src/AbstractCommand.h
  614. * src/DownloadCommand.cc
  615. * src/FtpConnection.cc
  616. * src/HttpConnection.cc
  617. * src/HttpRequestCommand.cc
  618. * src/HttpResponseCommand.cc
  619. * src/HttpSkipResponseCommand.cc
  620. * src/MSEHandshake.cc
  621. * src/PeerConnection.cc
  622. * src/SocketCore.cc
  623. * src/SocketCore.h
  624. Fixed the bug that aria2 doesn't download whole content body and cannot
  625. reuse connection if chunked transfer encoding and gzip content encoding
  626. are set.
  627. * src/DownloadCommand.cc
  628. * src/HttpSkipResponseCommand.cc
  629. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  630. Updated man page.
  631. * doc/aria2c.1.txt
  632. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  633. When error occurred while aria2 was parsing an .aria2.conf file, print
  634. the usage of the option that caused error.
  635. * src/option_processing.cc
  636. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  637. Fixed compile error on OptionHandlerException
  638. * src/Makefile.am
  639. * src/OptionHandlerException.cc
  640. * src/OptionHandlerException.h
  641. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  642. Moved message of the error to OptionHandlerException.h
  643. * src/NameMatchOptionHandler.h
  644. * src/OptionHandlerException.h
  645. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  646. When error occurs while aria2 is parsing an command-line option, print
  647. the usage of the option.
  648. * src/Makefile.am
  649. * src/NameMatchOptionHandler.h
  650. * src/OptionHandlerException.h
  651. * src/option_processing.cc
  652. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  653. Reverted previous change.
  654. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  655. username is not in URI.
  656. * src/HttpRequest.cc
  657. * src/Request.cc
  658. * test/HttpRequestTest.cc
  659. * test/RequestTest.cc
  660. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  661. Now colon is required for username and password in FTP URL, like:
  662. ftp://username:password@host.
  663. If colon is not there, aria2 don't parse it as a username. For example,
  664. aria2 don't retrieve username from ftp://username@host.
  665. This fix was made in order to login FTP server via non-transparent ftp
  666. proxy.
  667. * src/Request.cc
  668. * test/RequestTest.cc
  669. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  670. Use netrc for HTTP.
  671. Now FTP user/password is sent in Authorization header when
  672. --ftp-via-http-proxy=get is given.
  673. * src/AuthConfigFactory.cc
  674. * src/HttpRequest.cc
  675. * src/HttpRequest.h
  676. * src/NetrcAuthResolver.cc
  677. * src/NetrcAuthResolver.h
  678. * src/OptionHandlerFactory.cc
  679. * src/option_processing.cc
  680. * src/prefs.cc
  681. * src/prefs.h
  682. * test/AuthConfigFactoryTest.cc
  683. * test/HttpRequestTest.cc
  684. * test/NetrcAuthResolverTest.cc
  685. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  686. Issue PWD command first and get working directory and use it as a prefix
  687. for CWD command.
  688. * src/DownloadEngine.cc
  689. * src/DownloadEngine.h
  690. * src/FtpConnection.cc
  691. * src/FtpConnection.h
  692. * src/FtpFinishDownloadCommand.cc
  693. * src/FtpInitiateConnectionCommand.cc
  694. * src/FtpNegotiationCommand.cc
  695. * src/FtpNegotiationCommand.h
  696. * test/FtpConnectionTest.cc
  697. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  698. Removed default user/pass for FTP user/pass, since it should not have
  699. precedence over netrc configuration by default.
  700. * src/OptionHandlerFactory.cc
  701. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  702. Added debug log for socket event.
  703. * src/AbstractCommand.cc
  704. * src/PeerAbstractCommand.cc
  705. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  706. Log microseconds.
  707. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  708. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  709. Replaced HelpItem.cc with OptionHandler.cc.
  710. * po/POTFILES.in
  711. Updated po files with 'make update-po'
  712. * po/aria2c.pot
  713. * po/*.po
  714. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  715. Removed possible values from the text.
  716. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  717. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  718. Removed unused preferences:
  719. PREF_NO_PREALLOCATION
  720. PREF_STDOUT_LOG
  721. PREF_TRACKER_MAX_TRIES
  722. PREF_DIRECT_DOWNLOAD_TIMEOUT
  723. PREF_MIN_SEGMENT_SIZE
  724. * src/option_processing.cc
  725. * src/prefs.cc
  726. * src/prefs.h
  727. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  728. Integrated HelpItem into OptionParser to ease the workload for adding
  729. new options. Removed default value from usage text.
  730. * src/HelpItem.cc: Removed.
  731. * src/HelpItem.h: Removed.
  732. * src/HelpItemFactory.cc: Removed.
  733. * src/HelpItemFactory.h: Removed.
  734. * src/Makefile.am
  735. * src/Makefile.in
  736. * src/NameMatchOptionHandler.h
  737. * src/OptionHandler.cc
  738. * src/OptionHandler.h
  739. * src/OptionHandlerFactory.cc
  740. * src/OptionHandlerImpl.h
  741. * src/OptionParser.cc
  742. * src/OptionParser.h
  743. * src/TagContainer.cc: Removed.
  744. * src/TagContainer.h: Removed.
  745. * src/TaggedItem.cc: Removed.
  746. * src/TaggedItem.h: Removed.
  747. * src/main.cc
  748. * src/option_processing.cc
  749. * src/usage_text.h
  750. * src/version_usage.cc
  751. * test/HelpItemTest.cc: Removed.
  752. * test/Makefile.am
  753. * test/Makefile.in
  754. * test/OptionHandlerTest.cc
  755. * test/OptionParserTest.cc
  756. * test/TagContainerTest.cc: Removed.
  757. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  758. Moved `TransferStat stat = ...' to inside the `if' clause.
  759. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  760. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  761. Fixed the bug that a block in a piece is requested when same block is
  762. already requested to the same peer in end game mode.
  763. * src/BtRequestFactory.h
  764. * src/DefaultBtInteractive.cc
  765. * src/DefaultBtRequestFactory.cc
  766. * src/DefaultBtRequestFactory.h
  767. * src/DefaultPieceStorage.cc
  768. * src/DefaultPieceStorage.h
  769. * src/PieceStorage.h
  770. * src/UnknownLengthPieceStorage.cc
  771. * src/UnknownLengthPieceStorage.h
  772. * test/DefaultBtRequestFactoryTest.cc
  773. * test/DefaultPieceStorageTest.cc
  774. * test/MockBtRequestFactory.h
  775. * test/MockPieceStorage.h
  776. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  777. Removed _uploadLength and _downloadLength from PeerSessionResource
  778. and use PeerStat::_sessionUploadLength and
  779. PeerStat::_sessionDownloadLength.
  780. * src/PeerSessionResource.cc
  781. * src/PeerSessionResource.h
  782. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  783. Fixed the bug that prefixLength of split bucket which doesn't include
  784. local node ID is incremented.
  785. * src/DHTBucket.cc
  786. * src/DHTBucket.h
  787. * test/DHTBucketTest.cc
  788. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  789. Added cookies.sqlite to EXTRA_DIST
  790. * test/Makefile.am
  791. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  792. Added Turkish translation. Updated French, German, Russian and
  793. Simplified Chinese translations. Thanks to all translators.
  794. * po/LINGUAS
  795. * po/de.po
  796. * po/fr.po
  797. * po/ru.po
  798. * po/tr.po
  799. * po/zh_CN.po
  800. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  801. Added deliminating text to the beginning of the log so that one can find
  802. where the log starts easily.
  803. * src/main.cc
  804. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  805. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  806. to fix compile error when async DNS is not enabled by configuration.
  807. * src/AbstractCommand.cc
  808. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  809. If establishing conneciton to a server is failed, then mark error on
  810. its ServerStat.
  811. Added the cause of error to log when error event occurred.
  812. Moved message string to message.h for translation.
  813. * src/AbstractCommand.cc
  814. * src/AbstractCommand.h
  815. * src/FtpNegotiationCommand.cc
  816. * src/HttpRequestCommand.cc
  817. * src/PeerAbstractCommand.cc
  818. * src/message.h
  819. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  820. Added the function to get error message from socket.
  821. * src/SocketCore.cc
  822. * src/SocketCore.h
  823. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  824. Added convenient method RequestGroupMan::getOrCreateServerStat()
  825. * src/RequestGroupMan.cc
  826. * src/RequestGroupMan.h
  827. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  828. If error event is received in epoll, then abort download immediately.
  829. * src/AbstractCommand.cc
  830. * src/Command.cc
  831. * src/Command.h
  832. * src/DownloadEngine.cc
  833. * src/PeerAbstractCommand.cc
  834. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  835. Added usage message for --uri-selector, --server-stat-of,
  836. --server-stat-in, --server-stat-timeout options.
  837. * src/HelpItemFactory.cc
  838. * src/usage_text.h
  839. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  840. Added upper limit of FTP response buffer. The current implementation
  841. uses 4096bytes as a limit.
  842. * src/FtpConnection.cc
  843. * src/FtpConnection.h
  844. * test/FtpConnectionTest.cc
  845. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  846. Use non-blocking socket for TCP communication to avoid possible
  847. blocking due to buffer full.
  848. * src/AbstractProxyRequestCommand.cc
  849. * src/FtpConnection.cc
  850. * src/FtpConnection.h
  851. * src/FtpNegotiationCommand.cc
  852. * src/FtpNegotiationCommand.h
  853. * src/HttpConnection.cc
  854. * src/HttpConnection.h
  855. * src/HttpRequestCommand.cc
  856. * src/InitiatorMSEHandshakeCommand.cc
  857. * src/InitiatorMSEHandshakeCommand.h
  858. * src/MSEHandshake.cc
  859. * src/MSEHandshake.h
  860. * src/Makefile.am
  861. * src/PeerConnection.cc
  862. * src/PeerConnection.h
  863. * src/PeerInteractionCommand.cc
  864. * src/PeerListenCommand.cc
  865. * src/ReceiverMSEHandshakeCommand.cc
  866. * src/ReceiverMSEHandshakeCommand.h
  867. * src/SocketBuffer.cc
  868. * src/SocketBuffer.h
  869. * src/SocketCore.cc
  870. * src/SocketCore.h
  871. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  872. Call setStatusRealtime() in constructor.
  873. * src/RealtimeCommand.cc
  874. * src/RealtimeCommand.h
  875. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  876. Call Download::setNoWait(true) to execute newly created command without
  877. a pause.
  878. * src/AbstractCommand.cc
  879. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  880. Added --max-file-not-found=NUM option. If aria2 receives `file not
  881. found' error from HTTP/FTP server NUM times without getting single
  882. bytes of data, then force the download to fail.
  883. Basically aria2 tris all URIs available. So if long list of URIs are
  884. specified in Metalink, then aria2 will take a long time to fail
  885. eventually if all URIs are outdated. This option eases this situation
  886. to limit the number of servers to try.
  887. * src/FtpNegotiationCommand.cc
  888. * src/HelpItemFactory.cc
  889. * src/HttpResponseCommand.cc
  890. * src/OptionHandlerFactory.cc
  891. * src/PeerStat.h
  892. * src/RequestGroup.cc
  893. * src/RequestGroup.h
  894. * src/SegmentMan.cc
  895. * src/SegmentMan.h
  896. * src/option_processing.cc
  897. * src/prefs.cc
  898. * src/prefs.h
  899. * src/usage_text.h
  900. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  901. Fixed the bug that bulkReceiveResponse() reads all received data as a
  902. response even if more than one response is in it.
  903. * src/FtpConnection.cc
  904. * src/FtpConnection.h
  905. * test/FtpConnectionTest.cc
  906. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  907. Merged from stable-0.15
  908. * m4/libcares.m4
  909. Use pkg-config
  910. * m4/sqlite3.m4
  911. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  912. Removed unnecessary if statement.
  913. * src/DefaultPieceStorage.cc (initPieceStorage)
  914. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  915. Added --connect-timeout option to specify connect timeout in seconds.
  916. This option is in effect for HTTP/FTP/proxy server. The timeout for
  917. connecting to BitTorrent peer is not controlled by this option.
  918. * src/AbstractProxyRequestCommand.cc
  919. * src/FtpNegotiationCommand.cc
  920. * src/HelpItemFactory.cc
  921. * src/HttpRequestCommand.cc
  922. * src/OptionHandlerFactory.cc
  923. * src/option_processing.cc
  924. * src/prefs.cc
  925. * src/prefs.h
  926. * src/usage_text.h
  927. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Added help message for -R option.
  929. * src/HelpItemFactory.cc
  930. * src/usage_text.h
  931. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  932. Added the message that the time is in local time zone.
  933. * src/RequestGroup.cc
  934. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  935. Implemented the ability to get timestamp from remote FTP server using
  936. MDTM command described in RFC3659.
  937. * src/FtpConnection.cc
  938. * src/FtpConnection.h
  939. * src/FtpNegotiationCommand.cc
  940. * src/FtpNegotiationCommand.h
  941. * test/FtpConnectionTest.cc
  942. * test/Makefile.am
  943. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  944. Implemented the ability to get timestamp from remote HTTP server and
  945. apply it to local file. To enable this feature, --remote-time option
  946. is added. No usage text has been written yet.
  947. If several servers returns difference timestamp, then aria2 uses latest
  948. one.
  949. * src/CopyDiskAdaptor.cc
  950. * src/CopyDiskAdaptor.h
  951. * src/DirectDiskAdaptor.cc
  952. * src/DirectDiskAdaptor.h
  953. * src/DiskAdaptor.h
  954. * src/File.cc
  955. * src/File.h
  956. * src/HttpHeader.cc
  957. * src/HttpHeader.h
  958. * src/HttpResponse.cc
  959. * src/HttpResponse.h
  960. * src/HttpResponseCommand.cc
  961. * src/HttpResponseCommand.h
  962. * src/MultiDiskAdaptor.cc
  963. * src/MultiDiskAdaptor.h
  964. * src/OptionHandlerFactory.cc
  965. * src/RequestGroup.cc
  966. * src/RequestGroup.h
  967. * src/RequestGroupMan.cc
  968. * src/option_processing.cc
  969. * src/prefs.cc
  970. * src/prefs.h
  971. * test/CopyDiskAdaptorTest.cc
  972. * test/FileTest.cc
  973. * test/Makefile.am
  974. * test/Makefile.in
  975. * test/MultiDiskAdaptorTest.cc
  976. * test/TestUtil.cc
  977. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  978. Fixed the bug that DiskWriterEntry is not created when its
  979. FileEntry.isRequested() is false and it doesn't share a piece with
  980. other FileEntries that are requested. This bug causes segmentation fault
  981. in the end.
  982. * src/MultiDiskAdaptor.cc
  983. * src/MultiDiskAdaptor.h
  984. * src/MultiFileAllocationIterator.cc
  985. * test/MultiDiskAdaptorTest.cc
  986. * test/MultiFileAllocationIteratorTest.cc
  987. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  988. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  989. called if the number of file entries are greater than max open files.
  990. * src/AbstractSingleDiskAdaptor.cc
  991. * src/AbstractSingleDiskAdaptor.h
  992. * src/DiskAdaptor.h
  993. * src/MultiDiskAdaptor.cc
  994. * src/MultiDiskAdaptor.h
  995. * test/MultiDiskAdaptorTest.cc
  996. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  997. Added a constuctor that receives struct timeval.
  998. Added operator<.
  999. * src/TimeA2.cc
  1000. * src/TimeA2.h
  1001. * test/TimeTest.cc
  1002. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1003. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  1004. * src/CookieParser.cc
  1005. * test/CookieParserTest.cc
  1006. * test/HttpResponseTest.cc
  1007. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1008. Implmented the functions to parse date.
  1009. * src/TimeA2.cc
  1010. * src/TimeA2.h
  1011. * test/TimeTest.cc
  1012. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1013. Added "Firefox3 Cookie" feature to FeatureConfig
  1014. * src/FeatureConfig.cc
  1015. * src/FeatureConfig.h
  1016. * test/FeatureConfigTest.cc
  1017. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1018. Bump up version number to 0.16.0b
  1019. * configure.ac
  1020. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1021. Use pkg-config if is is available.
  1022. * m4/openssl.m4
  1023. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1024. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  1025. * src/BtAnnounce.h
  1026. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1027. If an error occurred with a URI, remove identical URI from remaining
  1028. URI list because it is likely that same error occurred in the end and it
  1029. is waste of time.
  1030. * src/AbstractCommand.cc
  1031. * src/RequestGroup.cc
  1032. * src/RequestGroup.h
  1033. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1034. Removed wrong comment.
  1035. * src/DefaultPeerStorage.cc
  1036. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1037. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  1038. Added return value of getpid() to argument of srand() to achieve more
  1039. randomized value.
  1040. * src/SimpleRandomizer.cc
  1041. * src/SimpleRandomizer.h
  1042. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1043. Contact tracker frequently when the number of connections are 0 and
  1044. download is not finished yet.
  1045. * src/ActivePeerConnectionCommand.cc
  1046. * src/BtAnnounce.h
  1047. * src/DefaultBtAnnounce.cc
  1048. * src/DefaultBtAnnounce.h
  1049. * test/MockBtAnnounce.h
  1050. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1051. Moved threshold values to UTPexExtensionMessage.
  1052. * src/DefaultBtInteractive.cc
  1053. * src/Peer.cc
  1054. * src/Peer.h
  1055. * src/UTPexExtensionMessage.cc
  1056. * src/UTPexExtensionMessage.h
  1057. * test/UTPexExtensionMessageTest.cc
  1058. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1059. Added _incoming member to Peer class and made it true if the peer
  1060. initiated connection. Don't add those peer to UTPex message.
  1061. If extended handshake is received, assign _incoming to false.
  1062. * src/DefaultBtInteractive.cc
  1063. * src/HandshakeExtensionMessage.cc
  1064. * src/Peer.cc
  1065. * src/Peer.h
  1066. * src/PeerListenCommand.cc
  1067. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1068. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  1069. Encoding Decoder. Removed size threshold for turning off on the fly
  1070. inflation because resulting file may or may not be inflated depending
  1071. on the file size and I think it is not expected by users.
  1072. This change fixes segmentation fault when Metalink file contains gzipped
  1073. file and its filesize is provided.
  1074. * src/HttpResponseCommand.cc
  1075. * src/HttpResponseCommand.h
  1076. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1077. Made Cookie immutable.
  1078. * src/Cookie.cc
  1079. * src/Cookie.h
  1080. * src/CookieParser.cc
  1081. * src/CookieParser.h
  1082. * src/CookieStorage.cc
  1083. * test/CookieParserTest.cc
  1084. * test/CookieStorageTest.cc
  1085. * test/NsCookieParserTest.cc
  1086. * test/Sqlite3MozCookieParserTest.cc
  1087. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1088. Removed CookieBox, CookieBoxFactory.
  1089. * src/CookieBox.cc
  1090. * src/CookieBox.h
  1091. * src/CookieBoxFactory.cc
  1092. * src/CookieBoxFactory.h
  1093. * src/Makefile.am
  1094. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1095. Use CookieStorage class instead of CookieBox class.
  1096. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  1097. * src/AbstractProxyRequestCommand.cc
  1098. * src/CookieStorage.cc
  1099. * src/DownloadEngine.cc
  1100. * src/DownloadEngine.h
  1101. * src/HttpConnection.cc
  1102. * src/HttpConnection.h
  1103. * src/HttpRequest.cc
  1104. * src/HttpRequest.h
  1105. * src/HttpRequestCommand.cc
  1106. * src/HttpResponse.cc
  1107. * src/HttpResponseCommand.cc
  1108. * src/HttpSkipResponseCommand.cc
  1109. * src/Makefile.am
  1110. * src/MultiUrlRequestInfo.cc
  1111. * src/Request.cc
  1112. * src/Request.h
  1113. * src/main.cc
  1114. * test/AllTest.cc
  1115. * test/CookieStorageTest.cc
  1116. * test/CookieTest.cc
  1117. * test/HttpRequestTest.cc
  1118. * test/HttpResponseTest.cc
  1119. * test/Makefile.am
  1120. * test/NsCookieParserTest.cc
  1121. * test/Sqlite3MozCookieParserTest.cc
  1122. * test/nscookietest.txt
  1123. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1124. Updated
  1125. * test/Cookies.sqlite
  1126. * test/nscookietest.txt
  1127. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1128. Added tests for CookieStorage::load()
  1129. * test/CookieStorageTest.cc
  1130. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1131. Added CookieStorage class which is based on RFC2109 and manages cookies
  1132. more strictly than CookieBox and CookieBoxFactory class.
  1133. * src/CookieStorage.cc
  1134. * src/CookieStorage.h
  1135. * src/Cookie.cc
  1136. * src/Cookie.h
  1137. * test/CookieStorageTest.cc
  1138. * test/CookieTest.cc
  1139. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1140. Fixed the bug that commands are created more than the number of pieces.
  1141. * src/RequestGroup.cc
  1142. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1143. Fixed infinite loop bug in FTP when SIZE command failed.
  1144. * src/FtpNegotiationCommand.cc
  1145. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1146. Removed DirectDiskAdaptorTest.h
  1147. * test/Makefile.am
  1148. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1149. Fixed chunk checksum validation cannot detect trailing garbage data.
  1150. BUG#2074141
  1151. * src/AbstractSingleDiskAdaptor.cc
  1152. * src/AbstractSingleDiskAdaptor.h
  1153. * src/CheckIntegrityEntry.cc
  1154. * src/CheckIntegrityEntry.h
  1155. * src/DiskAdaptor.h
  1156. * src/MultiDiskAdaptor.cc
  1157. * src/MultiDiskAdaptor.h
  1158. * src/RequestGroup.cc
  1159. * test/DirectDiskAdaptorTest.cc
  1160. * test/MultiDiskAdaptorTest.cc
  1161. * test/TestUtil.cc
  1162. * test/TestUtil.h
  1163. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1164. Bump up version number of dht.dat file to 3. In version 3 format, time
  1165. is stored in 64bit, network byte order.
  1166. New build can load old format(version 2) but it saves the file in new
  1167. format. It means once you used new build, your dht.dat becomes
  1168. incompatible with older build.
  1169. * src/DHTRoutingTableDeserializer.cc
  1170. * src/DHTRoutingTableSerializer.cc
  1171. * test/DHTRoutingTableSerializerTest.cc
  1172. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1173. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1174. * test/Makefile.am
  1175. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1176. Bump up version number of .aria2 control file to 0001.
  1177. New aria2 can still load version 0000 file but it saves the file in
  1178. version 0001 format. It means that new aria2 can resume download
  1179. started by old aria2 but the opposite is not true.
  1180. * src/DefaultBtProgressInfoFile.cc
  1181. * src/DefaultBtProgressInfoFile.h
  1182. * test/DefaultBtProgressInfoFileTest.cc
  1183. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1184. Added ntoh64 and hton64 as inline functions.
  1185. * src/Util.cc
  1186. * test/UtilTest.cc
  1187. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1188. Added sqlite3 depenency and Firefox3 cookie support.
  1189. * README
  1190. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1191. State that firefox3 cookie is supported explicitly in the usage.
  1192. * src/usage_text.h
  1193. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1194. Externalized message.
  1195. * src/RequestGroupMan.cc
  1196. * src/message.h
  1197. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1198. Save temporary file first and rename to the destination on success.
  1199. Added test cases.
  1200. * src/RequestGroupMan.cc
  1201. * test/RequestGroupManTest.cc
  1202. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1203. Fixed the bug that the number of connected peer is exceeding the limit
  1204. (55 by default) in seeding mode.
  1205. Multiplied 0.8 to _maxUploadSpeedLimit.
  1206. * src/ActivePeerConnectionCommand.cc
  1207. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1208. Clear table item.
  1209. * src/Dictionary.cc
  1210. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1211. Fixed error handling of lseek.
  1212. * src/AbstractDiskWriter.cc
  1213. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1214. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1215. style cookie file.
  1216. * src/usage_text.h
  1217. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1218. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1219. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1220. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1221. * src/Util.cc
  1222. * src/Util.h
  1223. * src/CookieParser.cc
  1224. * test/UtilTest.cc
  1225. * test/CookieParserTest.cc
  1226. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1227. Separate the implementation to load old mozilla format of cookie to
  1228. NsCookieParser class.
  1229. * src/CookieBoxFactory.cc
  1230. * src/CookieBoxFactory.h
  1231. * src/NsCookieParser.cc
  1232. * src/NsCookieParser.h
  1233. * test/NsCookieParserTest.cc
  1234. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1235. Made parse() const
  1236. * src/Sqlite3MozCookieParser.cc
  1237. * src/Sqlite3MozCookieParser.h
  1238. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1239. Added firefox3 cookie support based on the patch submitted by
  1240. tizianomueller.
  1241. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  1242. this functionality.
  1243. * configure.ac
  1244. * m4/sqlite3.m4
  1245. * src/CookieBoxFactory.cc
  1246. * src/CookieBoxFactory.h
  1247. * src/Makefile.am
  1248. * src/Makefile.in
  1249. * src/Sqlite3MozCookieParser.cc
  1250. * src/Sqlite3MozCookieParser.h
  1251. * src/main.cc
  1252. * test/CookieBoxFactoryTest.cc
  1253. * test/Makefile.am
  1254. * test/Makefile.in
  1255. * test/Sqlite3MozCookieParserTest.cc
  1256. * test/badcookies.sqlite
  1257. * test/cookies.sqlite
  1258. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1259. Added Danish and Greek translations.
  1260. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  1261. Great thanks to all translators.
  1262. * po/LINGUAS
  1263. * po/el.po
  1264. * po/da.po
  1265. * po/es.po
  1266. * po/ca.po
  1267. * po/nn.po
  1268. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1269. Fixed man page: --follow-bittorrent should be --follow-torrent
  1270. * doc/aria2c.1.txt
  1271. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1272. Fixed: numCommand is less than the value specified in -C option.
  1273. * src/RequestGroup.cc
  1274. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1275. Fixed occasional assertion failure in PieceSegment.
  1276. Calling PieceStorage::getMissingPiece(size_t) was missing after
  1277. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  1278. creation of duplicate segments and one of the segment was finished then
  1279. assertion failure was caused.
  1280. * src/SegmentMan.cc
  1281. * test/SegmentManTest.cc
  1282. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1283. Added options to load/save the server's performance/status to a file
  1284. and the timeout to drop their data.
  1285. --server-stat-of=FILE specifies the file to which performance data
  1286. is saved.
  1287. --server-stat-if=FILE specifies the file to read previously saved
  1288. by --server-stat-of option. Might be used with --uri-selector=feedback.
  1289. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  1290. TIMEOUT is specified in seconds and the default value is 24hours.
  1291. * src/MultiUrlRequestInfo.cc
  1292. * src/OptionHandlerFactory.cc
  1293. * src/RequestGroupMan.cc
  1294. * src/RequestGroupMan.h
  1295. * src/ServerStatMan.cc
  1296. * src/ServerStatMan.h
  1297. * src/option_processing.cc
  1298. * src/prefs.cc
  1299. * src/prefs.h
  1300. * test/ServerStatManTest.cc
  1301. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1302. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  1303. * src/ServerStatMan.cc
  1304. * src/ServerStatMan.h
  1305. * test/ServerStatManTest.cc
  1306. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1307. Implemented ServerStatMan::load(...) function and its test case.
  1308. * src/ServerStat.cc
  1309. * src/ServerStat.h
  1310. * src/ServerStatMan.cc
  1311. * test/ServerStatManTest.cc
  1312. * test/ServerStatTest.cc
  1313. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1314. Use time_t instead of int32_t. Use int64_t where milli second is
  1315. expected.
  1316. * src/TimeA2.cc
  1317. * src/TimeA2.h
  1318. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1319. Implemented ServerStatMan::save(...) function and its test case.
  1320. * src/ServerStat.cc
  1321. * src/ServerStat.h
  1322. * src/ServerStatMan.cc
  1323. * src/ServerStatMan.h
  1324. * test/ServerStatManTest.cc
  1325. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1326. Now aria2 uses name attribute in Metalink as local filename in
  1327. BitTorrent downloads. BUG#2033999
  1328. * src/BtContext.h
  1329. * src/BtDependency.cc
  1330. * src/DefaultBtContext.cc
  1331. * src/DefaultBtContext.h
  1332. * src/SingleFileDownloadContext.cc
  1333. * src/SingleFileDownloadContext.h
  1334. * test/BtDependencyTest.cc
  1335. * test/DefaultBtContextTest.cc
  1336. * test/MockBtContext.h
  1337. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1338. Added AC_C_BIGENDIAN
  1339. * src/configure.ac
  1340. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1341. Limited numCommand less than or equal to the number of piece.
  1342. * src/RequestGroup.cc
  1343. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1344. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  1345. directive.
  1346. * test/DefaultPieceStorageTest.cc
  1347. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1348. Fixed memory leak in test code
  1349. * test/AnnounceListTest.cc
  1350. * test/DefaultPeerListProcessorTest.cc
  1351. * test/DefaultPeerStorageTest.cc
  1352. * test/MetaFileUtilTest.cc
  1353. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1354. Fixed wrong argument passing to BitfieldMan::isBitSet()
  1355. * src/DefaultPieceStorage.cc
  1356. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1357. Initialized _directIOAllowed
  1358. * src/MultiDiskAdaptor.cc
  1359. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1360. Fixed memory leak
  1361. * src/GZipDecoder.cc
  1362. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1363. Fixed memory leak
  1364. * src/MetalinkParserStateMachine.cc
  1365. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1366. Fixed memory leak
  1367. * src/Dictionary.cc
  1368. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1369. Fixed memory leak
  1370. * src/IteratableChunkChecksumValidator.h
  1371. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1372. Fixed unmatched malloc/free.
  1373. * src/IteratableChunkChecksumValidator.cc
  1374. * src/IteratableChecksumValidator.cc
  1375. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1376. Removed max chunk size check. This change fixes BUG#2040169
  1377. * src/ChunkedDecoder.cc
  1378. * src/ChunkedDecoder.h
  1379. * test/ChunkedDecoderTest.cc
  1380. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1381. Implemented download speed based URI selection algorithm.
  1382. Introduced new option --uri-selector.
  1383. If --uri-selector=feedback is given, aria2 uses download speed observed
  1384. in the previous downloads and chooses fastest server in the URI list.
  1385. Currently at most 10 URIs are considered to introduce randomeness for
  1386. finding better servers. The speed is average download speed in the
  1387. downloads.
  1388. On the other hand, if --uri-selector=inorder is given, which is default,
  1389. URI is tried in order in URI list.
  1390. The usage text for the new option has not been written yet.
  1391. * src/AbstractCommand.cc
  1392. * src/DownloadCommand.cc
  1393. * src/DownloadEngine.cc
  1394. * src/DownloadEngineFactory.cc
  1395. * src/InOrderURISelector.cc
  1396. * src/InOrderURISelector.h
  1397. * src/OptionHandlerFactory.cc
  1398. * src/PeerStat.h
  1399. * src/RequestGroup.cc
  1400. * src/RequestGroup.h
  1401. * src/RequestGroupMan.cc
  1402. * src/RequestGroupMan.h
  1403. * src/SegmentMan.cc
  1404. * src/SegmentMan.h
  1405. * src/ServerStat.cc
  1406. * src/ServerStat.h
  1407. * src/ServerStatMan.cc
  1408. * src/ServerStatMan.h
  1409. * src/ServerStatURISelector.cc
  1410. * src/ServerStatURISelector.h
  1411. * src/URISelector.h
  1412. * src/option_processing.cc
  1413. * src/prefs.cc
  1414. * src/prefs.h
  1415. * test/InOrderURISelectorTest.cc
  1416. * test/RequestGroupManTest.cc
  1417. * test/ServerStatManTest.cc
  1418. * test/ServerStatURISelectorTest.cc
  1419. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1420. * Release 0.15.1+2
  1421. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1422. Bump up version number to 0.15.1+2
  1423. * configure.ac
  1424. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1425. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  1426. * m4/aria2_arg.m4
  1427. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1428. * Release 0.15.1+1
  1429. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1430. Bump up version number to 0.15.1+1
  1431. * configure.ac
  1432. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1433. Fixed the bug that causes segmentaion fault when resuming download
  1434. using metalink without size tag. Reproducible only using HTTP URI.
  1435. * src/HttpResponseCommand.cc
  1436. * src/FtpNegotiationCommand.cc
  1437. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1438. * Release 0.15.1
  1439. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1440. Updated Bulgarian and French translations, thanks to all translators.
  1441. * po/bg.po
  1442. * po/fr.po
  1443. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1444. Bump up version number to 0.15.1
  1445. * configure.ac
  1446. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1447. Avoid repeated call of gettimeofday() when calculating speed.
  1448. * src/SpeedCalc.cc
  1449. * src/SpeedCalc.h
  1450. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1451. Removed writable check when socket's send buffer is full in BitTorrent
  1452. downloads to lower CPU usage.
  1453. * src/PeerInteractionCommand.cc
  1454. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1455. Fixed broken gzip inflation.
  1456. Turn off segmented downloading if gzip content is smaller than or equal
  1457. to 1MiB and inflate the data on the fly, because HTTP response header
  1458. doesn't contain the length of inflated file we can't determin where
  1459. the chunk of data should be written.
  1460. On the other hand, if gzip content is larger than 1MB, then turn off
  1461. on the fly inflation, because some servers returns "content-type: gzip"
  1462. for *.tgz, *.gz files.
  1463. * src/DownloadCommand.cc
  1464. * src/HttpResponseCommand.cc
  1465. * src/HttpResponseCommand.h
  1466. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1467. Applied tizianomueller's patch to fix compile error.
  1468. * test/BitfieldManTest.cc
  1469. * test/BtRequestMessageTest.cc
  1470. * test/DefaultBtContextTest.cc
  1471. * test/DefaultDiskWriterTest.cc
  1472. * test/DefaultPieceStorageTest.cc
  1473. * test/HttpHeaderProcessorTest.cc
  1474. * test/HttpResponseTest.cc
  1475. * test/Metalink2RequestGroupTest.cc
  1476. * test/MetalinkParserControllerTest.cc
  1477. * test/MetalinkProcessorTest.cc
  1478. * test/PeerSessionResourceTest.cc
  1479. * test/UtilTest.cc
  1480. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1481. * Release 0.15.0
  1482. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1483. Reordered src files in POTFILES.in so that usage text appears first.
  1484. * po/POTFILES.in
  1485. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1486. Bump up version number to 0.15.0
  1487. * configure.ac
  1488. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1489. Added Bulgarian translation.
  1490. Updated Catalan, Spanish, French and Japanese translations.
  1491. Thanks to all translators.
  1492. * po/LINGUAS
  1493. * po/bg.po
  1494. * po/ca.po
  1495. * po/es.po
  1496. * po/fr.po
  1497. * po/ja.po
  1498. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1499. Updated feature list. Added libz for dependency section.
  1500. Added a description about unit testing using CppUnit.
  1501. * README
  1502. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1503. Added a test for libz. Quoted where it is necessary.
  1504. * build_test.sh
  1505. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1506. Added GZip to `Enabled Features' list.
  1507. * src/FeatureConfig.cc
  1508. * src/FeatureConfig.h
  1509. * test/FeatureConfigTest.cc
  1510. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1511. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1512. the transfer has not yet started.
  1513. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1514. * src/SegmentMan.cc
  1515. * src/SegmentMan.h
  1516. * test/SegmentManTest.cc
  1517. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1518. Cache last calculated average download/upload speed.
  1519. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1520. cached value.
  1521. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1522. * src/PeerStat.h
  1523. * src/SpeedCalc.cc
  1524. * src/SpeedCalc.h
  1525. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1526. Call parseUrl directly.
  1527. * src/Request.cc (resetUrl)
  1528. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1529. Supported absolute/relative path in Location header field.
  1530. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1531. * src/HttpHeader.cc
  1532. * src/HttpHeader.h
  1533. * src/HttpResponse.cc
  1534. * src/HttpSkipResponseCommand.cc
  1535. * src/Request.cc
  1536. * test/HttpHeaderTest.cc
  1537. * test/HttpResponseTest.cc
  1538. * test/RequestTest.cc
  1539. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1540. Changed help text for --load-cookie option.
  1541. * doc/aria2c.1.txt
  1542. * src/usage_text.h
  1543. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1544. Regenerated test/Makefile.in to remove stale ChangeLog.
  1545. * test/Makefile.in
  1546. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1547. Updated po files.
  1548. * po/aria2c.pot
  1549. * po/*.po
  1550. * po/*.gmo
  1551. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1552. Bump up version number to 0.15.0b
  1553. * configure.ac
  1554. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1555. Externalize messages.
  1556. * src/RequestGroupMan.cc
  1557. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1558. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1559. Use File::exists() instead of File::isFile() to allow non-regular file
  1560. such as block special files.
  1561. * src/AbstractDiskWriter.cc
  1562. * src/MultiDiskWriter.cc
  1563. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1564. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1565. * src/gai_strerror.h
  1566. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1567. Fixed compile error. Thanks gknauf for the patch.
  1568. * src/asctime_r.c
  1569. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1570. Included asctime_r.h from a2time.h.
  1571. * src/a2time.h
  1572. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1573. Added a message "aria2 doesn't verify signature" to log message when
  1574. signature file is saved.
  1575. * src/RequestGroupMan.cc
  1576. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1577. Added the ability to save signature when download is completed if
  1578. signature is available. The filename of signature file is the path to
  1579. download file followed by ".sig". If it already exists, then signature
  1580. will not be saved.
  1581. * src/RequestGroupMan.cc
  1582. * src/Signature.cc
  1583. * test/SignatureTest.cc
  1584. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1585. Updated the descriptions for --bt-seed-unverified.
  1586. * doc/aria2c.1
  1587. * doc/aria2c.1.html
  1588. * doc/aria2c.1.txt
  1589. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1590. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1591. that this is not going to verify files using piece hashes.
  1592. * src/HelpItemFactory.cc
  1593. * src/OptionHandlerFactory.cc
  1594. * src/RequestGroup.cc
  1595. * src/option_processing.cc
  1596. * src/prefs.cc
  1597. * src/prefs.h
  1598. * src/usage_text.h
  1599. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1600. Added the ability to retrieve signature from Metalink file.
  1601. A retrieved signature is stored in Signature class and it is held by
  1602. DownloadContext class. Note that aria2 doesn't verify signature.
  1603. * src/DownloadContext.cc
  1604. * src/DownloadContext.h
  1605. * src/Makefile.am
  1606. * src/Makefile.in
  1607. * src/Metalink2RequestGroup.cc
  1608. * src/MetalinkEntry.cc
  1609. * src/MetalinkEntry.h
  1610. * src/MetalinkParserController.cc
  1611. * src/MetalinkParserController.h
  1612. * src/MetalinkParserStateMachine.cc
  1613. * src/MetalinkParserStateMachine.h
  1614. * src/Signature.cc
  1615. * src/Signature.h
  1616. * src/SignatureMetalinkParserState.cc
  1617. * src/SignatureMetalinkParserState.h
  1618. * src/VerificationMetalinkParserState.cc
  1619. * src/VerificationMetalinkParserState.h
  1620. * test/Metalink2RequestGroupTest.cc
  1621. * test/MetalinkParserControllerTest.cc
  1622. * test/MetalinkProcessorTest.cc
  1623. * test/test.xml
  1624. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1625. Close DiskAdaptor after renaming file.
  1626. * src/RequestGroup.cc
  1627. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1628. Corrected indentation
  1629. * src/DefaultBtProgressInfoFile.cc
  1630. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1631. Moved the calls of std::ios::exceptions() inside of try-catch block
  1632. because if an error occurred in constructor of std::fstream, then
  1633. exception is thrown immediately when std::ios::exceptions() is called
  1634. which results unhandled exception and aria2c aborts.
  1635. * src/DefaultBtProgressInfoFile.cc
  1636. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1637. Added the test for the previous change in DefaultBtContext.cc
  1638. * test/DefaultBtContextTest.cc
  1639. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1640. Fixed the bug that causes infinite loop when the number of pieces are
  1641. fewer than allowed fast set size which is 10 by default.
  1642. * src/DefaultBtContext.cc
  1643. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1644. Updated the descriptions for -j, -s. Added --bt-seed.
  1645. * doc/aria2c.1
  1646. * doc/aria2c.1.html
  1647. * doc/aria2c.1.txt
  1648. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1649. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1650. aria2 seeds previously downloaded files without validating piece hashs.
  1651. * src/HelpItemFactory.cc
  1652. * src/OptionHandlerFactory.cc
  1653. * src/RequestGroup.cc
  1654. * src/option_processing.cc
  1655. * src/prefs.cc
  1656. * src/prefs.h
  1657. * src/usage_text.h
  1658. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1659. Updated DESCRIPTION of man page.
  1660. * doc/aria2c.1
  1661. * doc/aria2c.1.html
  1662. * doc/aria2c.1.txt
  1663. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1664. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1665. Don't define `struct addrinfo' when __sun is defined.
  1666. * src/getaddrinfo.h
  1667. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1668. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1669. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1670. second argument is of type `struct _stati64'. Otherwise it is defined as
  1671. `struct stat'.
  1672. * src/AbstractDiskWriter.cc
  1673. * src/File.cc
  1674. * src/File.h
  1675. * src/a2io.h
  1676. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1677. Fixed the compile error in hurd-i386
  1678. See the original bug report:
  1679. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1680. * src/a2io.h
  1681. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1682. Code cleanup.
  1683. * src/PeerAbstractCommand.cc
  1684. * src/PeerAbstractCommand.h
  1685. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1686. Removed TransferEncoding.
  1687. * src/DownloadCommand.cc
  1688. * src/DownloadCommand.h
  1689. * src/HttpResponseCommand.cc
  1690. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1691. Updated po files.
  1692. * po/aria2c.pot
  1693. * po/*.po
  1694. * po/*.gmo
  1695. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1696. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1697. * src/A2STR.cc
  1698. * src/A2STR.h
  1699. * src/ChunkedDecoder.cc
  1700. * src/ChunkedDecoder.h
  1701. * src/ChunkedEncoding.cc: Removed
  1702. * src/ChunkedEncoding.h: Removed
  1703. * src/DownloadCommand.cc
  1704. * src/DownloadCommand.h
  1705. * src/HttpDownloadCommand.cc
  1706. * src/HttpResponse.cc
  1707. * src/HttpResponse.h
  1708. * src/HttpResponseCommand.cc
  1709. * src/HttpSkipResponseCommand.cc
  1710. * src/HttpSkipResponseCommand.h
  1711. * src/Makefile.am
  1712. * src/TransferEncoding.h: Removed
  1713. * test/ChunkedDecoderTest.cc
  1714. * test/ChunkedEncodingTest.cc: Removed
  1715. * test/HttpResponseTest.cc
  1716. * test/Makefile.am
  1717. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1718. Use append instead of insert.
  1719. * src/GZipDecoder.cc
  1720. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1721. Updated doc
  1722. * src/Decoder.h
  1723. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1724. Updated usage text for -s option.
  1725. * src/usage_text.h
  1726. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1727. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1728. * src/Request.cc
  1729. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1730. Cleaned up configure.ac.
  1731. * configure.ac
  1732. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1733. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1734. AC_ARG_ENABLE.
  1735. * configure.ac
  1736. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1737. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1738. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1739. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1740. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1741. fly and writes decoded data to a local disk.
  1742. * README
  1743. * README.html
  1744. * configure.ac
  1745. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1746. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1747. * m4/libz.m4
  1748. * src/Decoder.h
  1749. * src/DownloadCommand.cc
  1750. * src/DownloadCommand.h
  1751. * src/Exception.h
  1752. * src/GZipDecoder.cc
  1753. * src/GZipDecoder.h
  1754. * src/HttpHeader.cc
  1755. * src/HttpHeader.h
  1756. * src/HttpRequest.cc
  1757. * src/HttpRequest.h
  1758. * src/HttpResponse.cc
  1759. * src/HttpResponse.h
  1760. * src/HttpResponseCommand.cc
  1761. * src/Makefile.am
  1762. * test/GZipDecoderTest.cc
  1763. * test/HttpRequestTest.cc
  1764. * test/HttpResponseTest.cc
  1765. * test/Makefile.am
  1766. * test/Makefile.in
  1767. * test/gzip_decode_test.gz
  1768. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1769. Clarified usage of -j option.
  1770. * src/usage_text.h
  1771. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. Disabled getting size from the response of RETR.
  1773. If SIZE command failed, then disable resuming and segmented downloading.
  1774. * src/FtpConnection.cc
  1775. * src/FtpConnection.h
  1776. * src/FtpNegotiationCommand.cc
  1777. * src/FtpNegotiationCommand.h
  1778. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1779. Use digits to find first byte of file size, which makes the intention
  1780. of the code clearer.
  1781. * src/FtpConnection.cc
  1782. Don't call validateTotalLength() when size is 0.
  1783. * src/FtpNegotiationCommand.cc
  1784. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1785. Updated po files.
  1786. * po/aria2c.pot
  1787. * po/*.gmo
  1788. * po/*.po
  1789. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1790. Clarified usage text for --split option.
  1791. * src/usage_text.h
  1792. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1793. Bump up version number to 0.15.0dev. "dev" means "development"
  1794. version, which means I started the development of the next release!
  1795. * src/configure.ac
  1796. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1797. If FTP server returns negative response with REST raw command and
  1798. requested range is not 0, throw exception. If requested range is 0,
  1799. continue download a file from 0 byte.
  1800. * src/FtpNegotiationCommand.cc
  1801. * src/FtpNegotiationCommand.h
  1802. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. Supported FTP server which don't recognize SIZE raw command.
  1804. If SIZE raw command is failed, aria2 will try to get file size
  1805. from the response of RETR raw command. If both attempts are failed,
  1806. then resuming and segmented downloading are disabled.
  1807. * src/FtpConnection.cc
  1808. * src/FtpConnection.h
  1809. * src/FtpNegotiationCommand.cc
  1810. * src/FtpNegotiationCommand.h
  1811. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1812. * Release 0.14.0+1
  1813. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1814. Bump up version number to 0.14.0+1
  1815. * src/configure.ac
  1816. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1817. Fixed the code that refers static member variable from non-static
  1818. context.
  1819. * src/DefaultPeerStorage.cc
  1820. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1821. * Release 0.14.0
  1822. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1823. Added build test script
  1824. * build_test.sh
  1825. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1826. Updated ja.po
  1827. * src/ja.po
  1828. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1829. Bump up version number to 0.14.0
  1830. * src/configure.ac
  1831. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1832. Updated ja.po and fr.po. Great thanks for french translators and
  1833. Sebastien WILLEMIJNS.
  1834. * po/fr.po
  1835. * po/ja.po
  1836. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1837. Added configure option to enable/disable epoll support.
  1838. * configure.ac
  1839. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1840. Updated man page.
  1841. * doc/aria2c.1.txt
  1842. * doc/aria2c.1
  1843. * doc/aria2c.1.html
  1844. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1845. Added missing default value '5' to the usage of --split option.
  1846. * src/HelpItemFactory.cc
  1847. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1848. Filled up pieces based on the number of missing blocks, rather than
  1849. simplay the number of piece * block length.
  1850. * src/BtRequestFactory.h
  1851. * src/DefaultBtInteractive.cc
  1852. * src/DefaultBtInteractive.h
  1853. * src/DefaultBtRequestFactory.cc
  1854. * src/DefaultBtRequestFactory.h
  1855. * src/Piece.cc
  1856. * src/Piece.h
  1857. * test/BitfieldManTest.cc
  1858. * test/DefaultBtRequestFactoryTest.cc
  1859. * test/MockBtRequestFactory.h
  1860. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1861. Made _epEvents a member variable.
  1862. * src/DownloadEngine.cc
  1863. * src/DownloadEngine.h
  1864. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1865. Cancel download if http redirect is bounded more than 20 times.
  1866. * src/AbstractCommand.cc
  1867. * src/HttpSkipResponseCommand.cc
  1868. * src/Request.cc
  1869. * src/Request.h
  1870. * test/RequestTest.cc
  1871. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1872. Fixed unhandled exception(removed keyword `new').
  1873. * src/SocketCore.cc (initEPOLL)
  1874. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Removed visit(const MetaEntry*)
  1876. * src/MetaEntryVisitor.h:
  1877. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1878. and made them virtual.
  1879. * src/BencodeVisitor.h
  1880. * src/BencodeVisitor.cc
  1881. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Updated po files.
  1883. * po/aria2c.pot
  1884. * po/*.po
  1885. * po/*.gmo
  1886. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1887. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1888. the number of socket to watch out.
  1889. * src/PeerInteractionCommand.cc
  1890. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1891. When there is not enough space in disk when writing a chunk of data,
  1892. aria2 now prints the message to the console to warn user and aborts
  1893. its download. Not all downloads are canceled because some downloads
  1894. may use another disk or partition. BUG#1640332
  1895. * src/AbstractDiskWriter.cc
  1896. * src/PeerAbstractCommand.cc
  1897. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1898. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1899. setHaltRequested(true) to cancel download.
  1900. * src/PeerInteractionCommand.h
  1901. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1902. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1903. socket from int to sock_t as sockets are unsigned in Windows.
  1904. For AsyncNameResolver, DownloadEngine, I did additional modification
  1905. for the portion of the code changed according to epoll support.
  1906. I defined sock_t in a2netcompat.h to use sock_t without including
  1907. SocketCore.h.
  1908. * src/AsyncNameResolver.cc
  1909. * src/AsyncNameResolver.h
  1910. * src/DownloadEngine.cc
  1911. * src/DownloadEngine.h
  1912. * src/SocketCore.cc
  1913. * src/SocketCore.h
  1914. * src/a2netcompat.h
  1915. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1916. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1917. changes in the patch were applied.
  1918. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1919. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1920. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1921. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1923. a2io.h and common.h were modified.
  1924. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1925. MinGW.
  1926. * src/common.h: Changed off_t to 64 bit in MinGW.
  1927. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1928. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1929. only a2netcompat.h is modified.
  1930. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1931. directives.
  1932. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1933. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1934. only gai_strerror.h is modified.
  1935. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1936. winsock errors in MinGW.
  1937. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1938. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1939. follow sources are applied.
  1940. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1941. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1942. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1943. I included locale.h from Platform.cc.
  1944. * src/main.cc: Moved common setup/teardown code to Platform class.
  1945. * test/AllTest.cc: Use Platform class.
  1946. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1947. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1948. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1949. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1950. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1951. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1952. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1953. aria2-0.13.2+1-mingw-2.patch.
  1954. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1955. systems which don't have termious.h. I moved the directive inside of
  1956. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1957. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1958. anyway.
  1959. * src/asctime_r.h
  1960. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1961. I added 2nd argument to the prototype declaration.
  1962. * src/StringFormat.cc: Get rid of vasprintf.
  1963. * src/getaddrinfo.h: Fixed constants.
  1964. * configure.ac: Added the check for asctime_r function.
  1965. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1966. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1967. Added writable test for Socket when the sending message is in progress.
  1968. Usually the sending message is piece message. Without wriable check,
  1969. upload latency is dropped to more than 1sec.
  1970. * src/PeerInteractionCommand.cc
  1971. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1972. Create only requested files and files which shares a piece with
  1973. requested file in multi-torrent downloads. Directory structures are
  1974. also created in the same rule.
  1975. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1976. DiskWriterEntry as in the previous implementation.
  1977. * src/MultiDiskWriter.cc
  1978. * src/MultiFileAllocationIterator.cc
  1979. * src/MultiFileAllocationIterator.h
  1980. * test/MultiFileAllocationIteratorTest.cc
  1981. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1982. Commented out -lprofiler
  1983. * src/Makefile.am
  1984. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1985. Bump up version number to 0.14.0b.
  1986. * src/configure.ac
  1987. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1988. Actively establish connection to peers in seeding, when peer cache
  1989. is not full and max upload speed limit is not reached.
  1990. * src/ActivePeerConnectionCommand.cc
  1991. * src/ActivePeerConnectionCommand.h
  1992. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1993. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1994. to make room more fleshy, recently found peers.
  1995. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1996. it.
  1997. * src/DefaultPeerStorage.cc
  1998. * test/DefaultPeerStorageTest.cc
  1999. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2000. Returns cached data only when the previous receiveHandshake() is called
  2001. with peek = true.
  2002. * src/PeerConnection.cc (receiveHandshake)
  2003. * src/PeerConnection.h (receiveHandshake)
  2004. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2005. Changed default value of -s option from 1 to 5.
  2006. Also max value of -s option is changed from 5 to 16.
  2007. * src/HelpItemFactory.cc
  2008. * src/OptionHandlerFactory.cc
  2009. * src/option_processing.cc
  2010. * src/usage_text.h
  2011. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2012. Changed -s options behavior. Now it means the number of connections
  2013. made simultaneously in each http/ftp download.
  2014. If 1 URL is specified, the behavior is the same with old implementation.
  2015. If -s N is given and more than N URLs are specified, first N URLs are
  2016. used and remaining URLs are used for backup. If less than N URLs are
  2017. specified, some of URLs are used more than once so that totally N
  2018. connections are made simultaneously.
  2019. * src/main.cc
  2020. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2021. Included missing iosfwd or ostream header.
  2022. * src/RequestGroupMan.cc
  2023. * src/TaggedItem.cc
  2024. * src/TaggedItem.h
  2025. * src/Util.cc
  2026. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2027. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  2028. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  2029. * src/HttpConnection.cc: Included missing sstream.
  2030. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2031. Added --bt-max-open-files option.
  2032. * src/DefaultPieceStorage.cc
  2033. * src/HelpItemFactory.cc
  2034. * src/MultiDiskAdaptor.cc
  2035. * src/MultiDiskAdaptor.h
  2036. * src/OptionHandlerFactory.cc
  2037. * src/option_processing.cc
  2038. * src/prefs.cc
  2039. * src/prefs.h
  2040. * src/usage_text.h
  2041. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2042. Fixed the bug that aria2 aborts when a path to a directory is given
  2043. in command-line.
  2044. * src/ProtocolDetector.cc
  2045. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2046. Limited the number files opened in each BitTorrent download. The default
  2047. value is 100. The option to change this value will be added.
  2048. * src/MultiDiskAdaptor.cc
  2049. * src/MultiDiskAdaptor.h
  2050. * src/MultiFileAllocationIterator.cc
  2051. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2052. Fixed the bug that HTTP downloads don't start with old libraries.
  2053. * src/HttpHeaderProcessor.cc
  2054. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2055. Use empty() instead of size() > 0.
  2056. * src/HttpConnection.cc
  2057. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2058. Drop connection if the incoming peer ID is the same with localhost's
  2059. one. The previous implementation drops connection when incoming peer's
  2060. IP address is the same with localhost's one.
  2061. * src/PeerListenCommand.cc
  2062. * src/DefaultBtInteractive.cc
  2063. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2064. Returns cached data without checking whether socket is readable
  2065. if the cache is available.
  2066. * src/PeerConnection.cc (receiveHandshake)
  2067. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2068. Included stdint.h
  2069. * src/common.h
  2070. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2071. Removed duplicate HAVE_GETTIMEOFDAY
  2072. * src/Makefile.am
  2073. * src/Makefile.in
  2074. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2075. Use interval as a minInterval when minInterval is not supplied.
  2076. * src/DefaultBtAnnounce.cc
  2077. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2078. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  2079. attempt is failed, then 2nd attempt get kicked out more quickly.
  2080. And it is now static const member of DefaultBtAnnounce.
  2081. * src/DefaultBtAnnounce.h
  2082. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2083. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  2084. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  2085. * src/ActivePeerConnectionCommand.cc
  2086. * src/BtConstants.h
  2087. * src/BtRuntime.h
  2088. * src/DHTGetPeersCommand.cc
  2089. * src/DefaultBtAnnounce.cc
  2090. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  2091. BtRuntime::MAX_PEERS.
  2092. * src/DefaultPeerStorage.h
  2093. * src/InitiatorMSEHandshakeCommand.cc
  2094. * src/PeerInitiateConnectionCommand.cc
  2095. * src/PeerInteractionCommand.cc
  2096. * src/PeerReceiveHandshakeCommand.cc
  2097. * src/TrackerWatcherCommand.cc
  2098. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2099. Always Connect to _numNewConnection
  2100. * src/ActivePeerConnectionCommand.cc
  2101. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2102. Made `begin' unsigned int.
  2103. * src/GrowSegment.h
  2104. * src/Piece.cc
  2105. * src/Piece.h
  2106. * src/PiecedSegment.cc
  2107. * src/PiecedSegment.h
  2108. * src/Segment.h
  2109. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2110. Calculate piece hash when data is arrived if the data is arrived in
  2111. order. This removes additional read operation for hash calculation.
  2112. If the data is arrived in out of order, the hash is calucated when the
  2113. piece is completed. This is the same behavior as the old implementation.
  2114. * src/BtPieceMessage.cc
  2115. * src/DefaultBtProgressInfoFile.cc
  2116. * src/DefaultPieceStorage.cc
  2117. * src/DownloadCommand.cc
  2118. * src/DownloadCommand.h
  2119. * src/DownloadEngine.cc
  2120. * src/GrowSegment.cc
  2121. * src/GrowSegment.h
  2122. * src/Piece.cc
  2123. * src/Piece.h
  2124. * src/PiecedSegment.cc
  2125. * src/PiecedSegment.h
  2126. * src/Segment.h
  2127. * test/PieceTest.cc
  2128. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2129. Try to keep the ordering of outgoing piece message.
  2130. * src/DefaultBtMessageDispatcher.cc
  2131. (DefaultBtMessageDispatcher::sendMessages)
  2132. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2133. Fixed busy loop when error/hup epoll events occur.
  2134. * src/AbstractCommand.cc
  2135. * src/PeerAbstractCommand.cc
  2136. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2137. Added --bt-request-peer-speed-limit option, which was a constant
  2138. SLOW_SPEED_THRESHOLD.
  2139. * src/ActivePeerConnectionCommand.cc
  2140. * src/ActivePeerConnectionCommand.h
  2141. * src/BtConstants.h
  2142. * src/HelpItemFactory.cc
  2143. * src/OptionHandlerFactory.cc
  2144. * src/PeerReceiveHandshakeCommand.cc
  2145. * src/option_processing.cc
  2146. * src/prefs.cc
  2147. * src/prefs.h
  2148. * src/usage_text.h
  2149. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2150. Removed repeated call of getTopDirPath(). Instead, call it once and
  2151. cache the result.
  2152. * src/MultiDiskAdaptor.cc
  2153. * src/MultiDiskAdaptor.h
  2154. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2155. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2156. Fixed compile error on debian etch.
  2157. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2158. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2159. it is undefined.
  2160. * src/Util.cc (ULLONG_MAX)
  2161. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2162. Added epoll support. Use epoll if it is available. If not, use select.
  2163. When async dns is enabled in compile time, epoll support is enabled
  2164. only when aria2 is built with c-ares. This condition statement is
  2165. defined in a2io.h.
  2166. Currently aria2 supports both c-ares and ares, but ares is maintained
  2167. for quite a while and debian already has c-ares package, ares support
  2168. will be dropped in the future version.
  2169. * configure.ac
  2170. * src/AbstractCommand.cc
  2171. * src/AsyncNameResolver.cc
  2172. * src/AsyncNameResolver.h
  2173. * src/Command.cc
  2174. * src/Command.h
  2175. * src/DownloadEngine.cc
  2176. * src/DownloadEngine.h
  2177. * src/PeerAbstractCommand.cc
  2178. * src/SocketCore.cc
  2179. * src/SocketCore.h
  2180. * src/a2io.h
  2181. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2182. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2183. directive.
  2184. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2185. Do not do write operation to /dev/null file.
  2186. * src/LogFactory.cc
  2187. * src/SimpleLogger.cc
  2188. Replaced vasprintf with vsnprintf
  2189. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2190. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2191. * src/BtRequestMessage.cc
  2192. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2193. for segmentation fault caused by previous commit.
  2194. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2195. Reduced the usage of gettimeofday().
  2196. * src/DefaultBtMessageDispatcher.cc
  2197. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2198. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2199. * src/RequestSlot.cc
  2200. * src/RequestSlot.h
  2201. (RequestSlot::isTimeout)
  2202. Made RequestSlot have a reference to Piece object to avoid find
  2203. Piece repeatedly.
  2204. * src/DefaultBtMessageDispatcher.cc
  2205. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2206. * src/RequestSlot.cc
  2207. * src/RequestSlot.h
  2208. (RequestSlot::getPiece)
  2209. * test/DefaultBtMessageDispatcherTest.cc
  2210. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2211. * src/TimeA2.cc
  2212. * src/TimeA2.h
  2213. (Time::difference): New function.
  2214. (Time::elapsed): Done optimization.
  2215. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2216. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2217. directive.
  2218. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2219. * src/option_processing.cc: Added missing `defined' keyword to #if
  2220. directive.
  2221. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2222. Bump up version number to 0.13.2+1
  2223. * src/configure.ac
  2224. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2225. Refactored broken outstanding piece handling.
  2226. * src/DefaultPieceStorage.cc
  2227. * src/DefaultPieceStorage.h
  2228. * src/Piece.cc
  2229. * src/Piece.h
  2230. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2231. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2232. name collision of static variable and predefined macro.
  2233. * src/BtContext.cc
  2234. * src/BtContext.h
  2235. * src/CookieBoxFactory.cc
  2236. * src/CookieBoxFactory.h
  2237. * src/CookieParser.cc
  2238. * src/CookieParser.h
  2239. * src/DefaultBtContext.cc
  2240. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2241. * src/RequestGroup.cc
  2242. (RequestGroup::createInitialCommand): Use empty() instead of size().
  2243. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2244. * Release 0.13.2
  2245. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2246. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  2247. * po/fr.po
  2248. * po/ja.po
  2249. * po/aria2c.pot
  2250. * po/*.po
  2251. * po/*.gmo
  2252. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2253. Bump up version number to 0.13.2
  2254. * src/configure.ac
  2255. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2256. Refactord.
  2257. * src/RequestGroupMan.cc
  2258. (removeStoppedGroup)
  2259. (fillRequestGroupFromReserver)
  2260. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2261. Fixed compile error on Ubuntu.
  2262. * src/BtPieceMessage.cc
  2263. * src/MessageDigestHelper.cc
  2264. * src/Util.cc
  2265. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2266. Fixed compile error when configured with --disable-bittorrent
  2267. * test/DownloadHandlerFactoryTest.cc
  2268. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2269. Done make update-po
  2270. * po/aria2c.pot
  2271. * po/*.po
  2272. * po/*.gmo
  2273. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2274. Bump up version number to 0.13.2rc.
  2275. * src/configure.ac
  2276. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2277. Made option name bold. Updated SYNOPSIS to make it more readable.
  2278. * doc/aria2c.1.txt
  2279. * doc/aria2c.1
  2280. * doc/aria2c.1.html
  2281. * src/version_usage.cc
  2282. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2283. Refactored. Use std::string instead of size and char*.
  2284. * Data.cc
  2285. * Data.h
  2286. * test/Data.cc
  2287. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2288. Added trimSelf(). Rewritten trim() to use trimSelf().
  2289. * Util.cc
  2290. * Util.h
  2291. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2292. * src/ChunkChecksum.h (getChecksum): Return const reference.
  2293. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2294. Fixed compile error when configured with --disable-metalink.
  2295. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  2296. * test/FeatureConfigTest.cc
  2297. * test/DownloadHandlerFactoryTest.cc
  2298. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2299. Fixed compile error when configured with --without-gnutls
  2300. --without-openssl
  2301. * src/main.cc
  2302. * test/DefaultBtProgressInfoFileTest.cc
  2303. * test/SegmentManTest.cc
  2304. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2305. Fixed compile error with OpenSSL.
  2306. * src/IteratableChunkChecksumValidator.cc
  2307. * src/LibsslDHKeyExchange.h
  2308. * src/MessageDigestHelper.cc
  2309. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2310. Revert the default value of --max-concurrent-downloads to 5.
  2311. Revert the default value of --metalink-servers to 5.
  2312. Man pages was also updated.
  2313. * src/option_processing.cc
  2314. * doc/aria2c.1.txt
  2315. * doc/aria2c.1.html
  2316. * doc/aria2c.1
  2317. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2318. Returns const reference:
  2319. DownloadContext::getPieceHash, DownloadContext::getName,
  2320. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  2321. BtContext::getInfoHashAsString,
  2322. * src/BtContext.h
  2323. * src/DefaultBtContext.cc
  2324. * src/DefaultBtContext.h
  2325. * src/DownloadContext.h
  2326. * src/SingleFileDownloadContext.h
  2327. * test/MockBtContext.h
  2328. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2329. * src/RequestGroup.h (getDir): Removed.
  2330. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2331. Returns const reference. The internal urlencode function was optimized
  2332. a little bit.
  2333. * src/Request.cc
  2334. * src/Request.h
  2335. * src/HttpRequest.cc
  2336. * src/HttpRequest.h
  2337. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2338. Defined option name and possible values as std::string to reduce
  2339. temporary string object creation in runtime.
  2340. * src/HelpItemFactory.cc
  2341. * src/LogFactory.cc
  2342. * src/Option.cc
  2343. * src/OptionHandlerFactory.cc
  2344. * src/option_processing.cc
  2345. * src/prefs.cc
  2346. * src/prefs.h
  2347. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2348. Return const reference.
  2349. * src/DownloadHandlerConstants.cc
  2350. * src/DownloadHandlerConstants.h
  2351. (getMetalinkExtensions)
  2352. (getMetalinkContentTypes)
  2353. (getBtExtensions)
  2354. (getBtContentTypes)
  2355. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2356. * src/HttpHeader.cc (get): Rewritten.
  2357. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2358. Make HttpHeader::getFirst(...) return const reference.
  2359. * src/HttpHeader.cc
  2360. * src/HttpHeader.h
  2361. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2362. Use Option::getAsBool(...) instead of Option::get(...) and compare
  2363. it with V_TRUE.
  2364. * src/DefaultPieceStorage.cc
  2365. * src/DownloadCommand.cc
  2366. * src/FtpNegotiationCommand.cc
  2367. * src/HttpRequest.cc
  2368. * src/InitiateConnectionCommand.cc
  2369. * src/RequestGroup.cc
  2370. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2371. Made Option::get(...) return const reference of std::string.
  2372. * src/Option.cc
  2373. * src/Option.h
  2374. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2375. Replaced std:copy with insert.
  2376. * src/DefaultBtMessageDispatcher.cc
  2377. * src/DefaultPieceStorage.cc
  2378. * src/DownloadEngineFactory.cc
  2379. * src/RequestGroup.cc
  2380. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2381. Included SocketCore.h to fix compiler warning.
  2382. * src/InitiateConnectionCommand.cc
  2383. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2384. Put piece selection strategy algorithm to RarestPieceSelector class,
  2385. Added a switch to choose whether randomized selection so that unit
  2386. tests emit same results in, possibly, win32.
  2387. * src/DefaultPieceStorage.cc
  2388. * src/DefaultPieceStorage.h
  2389. * src/RarestPieceSelector.cc
  2390. * src/RarestPieceSelector.h
  2391. * test/DefaultPieceStorageTest.cc
  2392. * test/RarestPieceSelectorTest.cc
  2393. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2394. Don't pool connection if HTTP proxy is enabled.
  2395. * src/FtpFinishDownloadCommand.cc
  2396. * src/FtpNegotiationCommand.cc
  2397. * src/HttpSkipResponseCommand.cc
  2398. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2399. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  2400. * src/AbstractCommand.cc
  2401. * src/AbstractCommand.h
  2402. * src/ActivePeerConnectionCommand.cc
  2403. * src/FtpInitiateConnectionCommand.cc
  2404. * src/HttpInitiateConnectionCommand.cc
  2405. * src/InitiateConnectionCommandFactory.cc
  2406. * src/PeerAbstractCommand.cc
  2407. * src/PeerAbstractCommand.h
  2408. * src/PeerInitiateConnectionCommand.cc
  2409. * src/TrackerWatcherCommand.cc
  2410. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2411. Sort RequestSlot in ascending order and manipulate them using
  2412. lower_bound.
  2413. * src/DefaultBtMessageDispatcher.cc
  2414. * src/DefaultBtMessageDispatcher.h
  2415. (getMessageQueue): Added const qualifier.
  2416. (getRequestSlots): Added const qualifier.
  2417. (sendMessages): Use empty() instead of size().
  2418. (doCancelSendingPieceAction): Use HandleEvent object.
  2419. (doAbortOutstandingRequestAction): Rewritten.
  2420. (doChokedAction): Rewritten.
  2421. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  2422. (isOutstandingRequest): Rewritten.
  2423. (getOutstandingRequest): Rewritten.
  2424. (removeOutstandingRequest): Rewritten.
  2425. (addOutstandingRequest): Rewritten.
  2426. * src/RequestSlot.cc
  2427. * src/RequestSlot.h
  2428. (operator=): Rewritten.
  2429. (operator!=): New function.
  2430. (operator<): New function.
  2431. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2432. * src/DefaultBtRequestFactory.cc
  2433. (doChokedAction): Rewritten.
  2434. (removeCompletedPiece): Rewritten.
  2435. (removeTargetPiece): Rewritten.
  2436. (createRequestMessages): Added the debug log.
  2437. (createRequestMessagesOnEndGame: Added the debug log.
  2438. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2439. Added the debug log message.
  2440. * src/BtPieceMessage.cc (doReceivedAction)
  2441. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2442. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2443. used lower_bound to process them rather than linear search.
  2444. * src/DHTPeerAnnounceStorage.cc
  2445. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2446. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2447. peer has at least one completed piece.
  2448. * src/Peer.cc
  2449. * src/Peer.h
  2450. * src/PeerInteractionCommand.cc
  2451. * src/PeerSessionResource.cc
  2452. * src/PeerSessionResource.h
  2453. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2454. Removed unnecessary sorting
  2455. * src/DefaultPieceStorage (DefaultPieceStorage)
  2456. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2457. Rewritten the portion of the code that mangaes allowed fast indexes.
  2458. * src/PeerSessionResource.cc
  2459. * src/PeerSessionResource.h
  2460. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2461. Removed the invalid string including '\r' from ru.po and
  2462. did make update-po.
  2463. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2464. Added --log-level and --summary-interval to man page.
  2465. * doc/aria2c.1.txt
  2466. * doc/aria2c.1.html
  2467. * doc/aria2c.1
  2468. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2469. Added --log-level option to specify log level. Log messages under
  2470. the specified level are not output. Default value is `debug'.
  2471. * src/HelpItemFactory.cc
  2472. * src/LogFactory.cc
  2473. * src/LogFactory.h
  2474. * src/Logger.h
  2475. * src/OptionHandlerFactory.cc
  2476. * src/SimpleLogger.cc
  2477. * src/SimpleLogger.h
  2478. * src/main.cc
  2479. * src/option_processing.cc
  2480. * src/prefs.h
  2481. * src/usage_text.h
  2482. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2483. Print download progress summary of all parallel downloads in specified
  2484. interval, default 60 secs. While aria2 could download several files
  2485. in parallel (see -j option), it displayed just first download progress,
  2486. and the other downloads are hidden from the users. This new feature
  2487. prints all downloads currently in-progress to the console so that you
  2488. can check the status of all downloads. The interval can be adjusted
  2489. by --summary-interval option.
  2490. The progress readout is now cut so that all fits in the one line of
  2491. console.
  2492. * src/ConsoleStatCalc.cc
  2493. * src/ConsoleStatCalc.h
  2494. * src/HelpItemFactory.cc
  2495. * src/OptionHandlerFactory.cc
  2496. * src/RequestGroupMan.cc
  2497. * src/RequestGroupMan.h
  2498. * src/main.cc
  2499. * src/option_processing.cc
  2500. * src/prefs.h
  2501. * src/usage_text.h
  2502. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2503. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2504. * src/DownloadEngine.cc (DownloadEngine)
  2505. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2507. defined.
  2508. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2509. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2510. Use erase+lower_bound+insert instead of sort.
  2511. * src/DefaultPieceStorage.cc (addPieceStats)
  2512. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2513. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2514. * src/A2STR.cc
  2515. * src/A2STR.h
  2516. * src/OptionParser.cc (parse)
  2517. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2518. Defined fake filename `[tracker.announce]' as static const std::string.
  2519. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2520. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2521. Defined default filename `index.html' as static const std::string
  2522. * src/SingleFileDownloadContext.cc
  2523. * src/SingleFileDownloadContext.h
  2524. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2525. Defined "[MEMORY]" as static const std::string.
  2526. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2527. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2528. Defined control file's version number as static const std::string.
  2529. * src/DefaultBtProgressInfoFile.cc
  2530. * src/DefaultBtProgressInfoFile.h
  2531. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2532. Use Request::METHOD_GET
  2533. * src/RequestGroup.cc (createNextCommandWithAdj)
  2534. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2535. Defined "OK", "ERR", "INPR" as static const std::string
  2536. * src/RequestGroupMan.cc (showDownloadResults)
  2537. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2538. Defined default client used in extended handshake as static const
  2539. std::string
  2540. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2541. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2542. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2543. * src/HttpConnection.cc (eraseConfidentialInfo)
  2544. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2545. Defined default ftp user and password as static const std::string
  2546. * src/AuthConfigFactory.cc
  2547. * src/AuthConfigFactory.h
  2548. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2549. Defined strings used in netrc as static const std::string
  2550. * src/Netrc.cc
  2551. * src/Netrc.h
  2552. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2553. Defined HTTP status as static const std::string
  2554. * src/AbstractProxyResponseCommand.cc
  2555. * src/HttpHeader.cc
  2556. * src/HttpHeader.h
  2557. * src/HttpResponse.cc
  2558. * src/HttpResponseCommand.cc
  2559. * src/HttpSkipResponseCommand.cc
  2560. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2561. Defined "\r\n", "A", "I" as static const std::string
  2562. * src/A2STR.cc
  2563. * src/A2STR.h
  2564. * src/FtpConnection.cc
  2565. * src/FtpConnection.h
  2566. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2567. Added COLON_C(".") and used it in Request::parseUrl()
  2568. * src/A2STR.cc
  2569. * src/A2STR.h
  2570. * src/Request.cc (parseUrl)
  2571. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2572. Changed the type of padName from `const std::string&' to `const char*'.
  2573. * src/MSEHandshake.cc (verifyPadLength)
  2574. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2575. Defined "sha1" as static const std::string.
  2576. * src/MetalinkParserController.cc
  2577. * src/MetalinkParserController.h
  2578. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2579. Defined message digest algorithm name as static const std::string
  2580. * src/DHTTokenTracker.cc
  2581. * src/DHTUtil.cc
  2582. * src/DefaultBtContext.cc
  2583. * src/MSEHandshake.cc
  2584. * src/MessageDigestHelper.cc
  2585. * src/Peer.cc
  2586. * src/messageDigest.cc
  2587. * src/messageDigest.h
  2588. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Made string literals used in SAX parser static const std::string.
  2590. * src/FileMetalinkParserState.cc
  2591. * src/FileMetalinkParserState.h
  2592. * src/FilesMetalinkParserState.cc
  2593. * src/FilesMetalinkParserState.h
  2594. * src/InitialMetalinkParserState.cc
  2595. * src/InitialMetalinkParserState.h
  2596. * src/MetalinkMetalinkParserState.cc
  2597. * src/MetalinkMetalinkParserState.h
  2598. * src/PiecesMetalinkParserState.cc
  2599. * src/PiecesMetalinkParserState.h
  2600. * src/ResourcesMetalinkParserState.cc
  2601. * src/ResourcesMetalinkParserState.h
  2602. * src/VerificationMetalinkParserState.cc
  2603. * src/VerificationMetalinkParserState.h
  2604. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2605. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2606. * src/A2STR.cc
  2607. * src/A2STR.h
  2608. * src/File.cc
  2609. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2610. Defined static const std::string IP("ip"), PORT("port") and use them
  2611. instead of string literals.
  2612. * src/DefaultPeerListProcessor.cc
  2613. * src/DefaultPeerListProcessor.h
  2614. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2615. Made string literals for torrent file processing static const
  2616. std::string.
  2617. * src/BtContext.cc
  2618. * src/BtContext.h
  2619. * src/DefaultBtContext.cc
  2620. * src/DefaultBtContext.h
  2621. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Made string literal for tracker response static const std::string
  2623. * src/BtAnnounce.cc
  2624. * src/BtAnnounce.h
  2625. * src/DefaultBtAnnounce.cc
  2626. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2627. Use DHTMessage::T instead of "t".
  2628. * src/DHTMessageTracker.cc (messageArrived)
  2629. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2630. Made keyName static const. Made trimmed charset static const
  2631. std::string.
  2632. * src/Util.cc (getContentDispositionFilename)
  2633. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. Made USER_AGENT const. Made "/" static const std::string.
  2635. * src/A2STR.cc
  2636. * src/A2STR.h
  2637. * src/HttpRequest.cc
  2638. * src/HttpRequest.h
  2639. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2640. Made string listeral to static const std::string:
  2641. "Content-Range", "Content-Length"
  2642. * src/HttpHeader.cc
  2643. * src/HttpHeader.h
  2644. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2645. Made string listeral to static const std::string.
  2646. * src/HttpConnection.cc
  2647. * src/HttpHeader.cc
  2648. * src/HttpHeader.h
  2649. * src/HttpResponse.cc
  2650. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2651. Made string listeral to static const std::string.
  2652. * src/A2STR.cc
  2653. * src/A2STR.h
  2654. * src/SimpleLogger.cc
  2655. * src/SimpleLogger.h
  2656. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Made string literal to static const std::string.
  2658. Rewritten CookieParser::setField.
  2659. * src/A2STR.cc
  2660. * src/A2STR.h
  2661. * src/CookieBoxFactory.cc
  2662. * src/CookieBoxFactory.h
  2663. * src/CookieParser.cc
  2664. * src/CookieParser.h
  2665. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2666. Made string literal to static const std::string
  2667. * src/DHTAbstractMessage.cc
  2668. * src/DHTAnnouncePeerMessage.cc
  2669. * src/DHTAnnouncePeerMessage.h
  2670. * src/DHTAnnouncePeerReplyMessage.cc
  2671. * src/DHTAnnouncePeerReplyMessage.h
  2672. * src/DHTFindNodeMessage.cc
  2673. * src/DHTFindNodeMessage.h
  2674. * src/DHTFindNodeReplyMessage.cc
  2675. * src/DHTFindNodeReplyMessage.h
  2676. * src/DHTGetPeersMessage.cc
  2677. * src/DHTGetPeersMessage.h
  2678. * src/DHTGetPeersReplyMessage.cc
  2679. * src/DHTGetPeersReplyMessage.h
  2680. * src/DHTMessage.cc
  2681. * src/DHTMessage.h
  2682. * src/DHTMessageFactoryImpl.cc
  2683. * src/DHTMessageReceiver.cc
  2684. * src/DHTPingMessage.cc
  2685. * src/DHTPingMessage.h
  2686. * src/DHTPingReplyMessage.cc
  2687. * src/DHTPingReplyMessage.h
  2688. * src/DHTQueryMessage.cc
  2689. * src/DHTQueryMessage.h
  2690. * src/DHTResponseMessage.cc
  2691. * src/DHTResponseMessage.h
  2692. * src/DHTUnknownMessage.cc
  2693. * src/DHTUnknownMessage.h
  2694. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2695. Made string literal to static const std::string
  2696. * src/BtChokeMessage.cc (toString)
  2697. * src/BtHaveAllMessage.cc (toString)
  2698. * src/BtHaveNoneMessage.cc (toString)
  2699. * src/BtInterestedMessage.cc (toString)
  2700. * src/BtNotInterestedMessage.cc (toString)
  2701. * src/BtUnchokeMessage.cc (toString)
  2702. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2703. Replaced "" with static const variable A2STR::NIL.
  2704. Replaced string comparison against "" with std::string::empty().
  2705. Added PROTO_* to Request class and use them as a protocol string
  2706. constant.
  2707. Made "started", "stopped", "completed" static const variable in
  2708. AnnounceList class.
  2709. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2710. Updated translations. Great thanks to translators.
  2711. * po/ca.po
  2712. * po/de.po
  2713. * po/fr.po
  2714. * po/it.po
  2715. * po/ja.po
  2716. * po/ru.po
  2717. * po/zh_CN.po
  2718. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2719. Updated man page; categorized options and fixed typo.
  2720. * doc/aria2c.1.txt
  2721. * doc/aria2c.1.html
  2722. * doc/aria2c.1
  2723. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Removed const ref
  2725. * src/MetalinkEntry.cc (AddProtocolPreference)
  2726. * src/RequestGroup.cc (FindServerHostByHostname)
  2727. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2728. Rewritten Accept-Features handling.
  2729. * src/HttpRequestCommand.cc (createHttpRequest)
  2730. * src/a2functional.h
  2731. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2732. Changed method signature:
  2733. DHTAbstractNodeLookupTask::toEntries
  2734. * src/DHTAbstractNodeLookupTask.cc
  2735. * src/DHTAbstractNodeLookupTask.h
  2736. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2737. Changed method signature:
  2738. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2739. * src/BtContext.h
  2740. * src/DefaultBtContext.cc
  2741. * src/DefaultBtContext.h
  2742. * src/DefaultBtInteractive.cc
  2743. * test/DefaultBtContextTest.cc
  2744. * test/MockBtContext.h
  2745. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2746. Changed method signature:
  2747. MultiFileAllocationIterator::makeDiskWriterEntries
  2748. * src/MultiFileAllocationIterator.cc
  2749. * src/MultiFileAllocationIterator.h
  2750. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2751. Changed method sinature:
  2752. MetalinkEntry::toFileEntry,
  2753. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2754. Metalinker::queryEntry
  2755. * src/Metalink2RequestGroup.cc
  2756. * src/MetalinkEntry.cc
  2757. * src/MetalinkEntry.h
  2758. * src/MetalinkHelper.cc
  2759. * src/MetalinkHelper.h
  2760. * src/Metalinker.cc
  2761. * src/Metalinker.h
  2762. * src/main.cc
  2763. * test/MetalinkHelperTest.cc
  2764. * test/MetalinkerTest.cc
  2765. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Changed method sinature:
  2767. RequestGroup::getURIs
  2768. * src/RequestGroup.cc
  2769. * src/RequestGroup.h
  2770. * test/Metalink2RequestGroupTest.cc
  2771. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2772. Changed method signature:
  2773. PeerListProcessor::extractPeer
  2774. * src/CompactPeerListProcessor.cc
  2775. * src/CompactPeerListProcessor.h
  2776. * src/DefaultBtAnnounce.cc
  2777. * src/DefaultPeerListProcessor.cc
  2778. * src/DefaultPeerListProcessor.h
  2779. * src/DelegatingPeerListProcessor.cc
  2780. * src/DelegatingPeerListProcessor.h
  2781. * src/PeerListProcessor.h
  2782. * src/UTPexExtensionMessage.cc
  2783. * test/DefaultPeerListProcessorTest.cc
  2784. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2785. Changed method signature:
  2786. BtRequestFactory::createRequestMessages,
  2787. BtRequestFactory::createRequestMessagesOnEndGame
  2788. * src/BtRequestFactory.h
  2789. * src/DefaultBtInteractive.cc
  2790. * src/DefaultBtRequestFactory.cc
  2791. * src/DefaultBtRequestFactory.h
  2792. * test/DefaultBtRequestFactoryTest.cc
  2793. * test/MockBtRequestFactory.h
  2794. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2795. Changed method signature:
  2796. PieceStorage::getInFlightPieces
  2797. * src/DefaultBtProgressInfoFile.cc
  2798. * src/DefaultPieceStorage.cc
  2799. * src/DefaultPieceStorage.h
  2800. * src/PieceStorage.h
  2801. * src/UnknownLengthPieceStorage.cc
  2802. * src/UnknownLengthPieceStorage.h
  2803. * test/DefaultBtProgressInfoFileTest.cc
  2804. * test/MockPieceStorage.h
  2805. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2806. Changed method signature:
  2807. PostDownloadHandler::getNextRequestGroups
  2808. Metalink2RequestGroup::generate
  2809. RequestGroup::postDownloadProcessing
  2810. * src/BtPostDownloadHandler.cc
  2811. * src/BtPostDownloadHandler.h
  2812. * src/Metalink2RequestGroup.cc
  2813. * src/Metalink2RequestGroup.h
  2814. * src/MetalinkPostDownloadHandler.cc
  2815. * src/MetalinkPostDownloadHandler.h
  2816. * src/PostDownloadHandler.h
  2817. * src/RequestGroup.cc
  2818. * src/RequestGroup.h
  2819. * src/RequestGroupMan.cc
  2820. * src/main.cc
  2821. * test/BtPostDownloadHandlerTest.cc
  2822. * test/Metalink2RequestGroupTest.cc
  2823. * test/MetalinkPostDownloadHandlerTest.cc
  2824. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Rewritten AccRequestGroup
  2826. * src/main.cc
  2827. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2828. Rewritten.
  2829. * src/TaggedItem.cc (toTagString)
  2830. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2831. Rewritten Accept-Features handling.
  2832. * src/HttpRequestCommand.cc (createHttpRequest)
  2833. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2834. Rewritten accept types handling.
  2835. * HttpRequest.cc (createRequest)
  2836. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2837. Rewritten
  2838. * src/FeatureConfig.cc (featureSummary)
  2839. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2840. Changed method signature:
  2841. PeerStorage::getActivePeers
  2842. * src/DHTPeerAnnounceEntry.cc
  2843. * src/DefaultPeerStorage.cc
  2844. * src/DefaultPeerStorage.h
  2845. * src/PeerStorage.h
  2846. * test/DefaultPeerStorageTest.cc
  2847. * test/MockPeerStorage.h
  2848. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2849. Changed method signature:
  2850. DHTPeerAnnounceStorage::getPeers,
  2851. DHTPeerAnnounceEntry::getPeers
  2852. * src/DHTGetPeersMessage.cc
  2853. * src/DHTPeerAnnounceEntry.cc
  2854. * src/DHTPeerAnnounceEntry.h
  2855. * src/DHTPeerAnnounceStorage.cc
  2856. * src/DHTPeerAnnounceStorage.h
  2857. * test/DHTAnnouncePeerMessageTest.cc
  2858. * test/DHTPeerAnnounceEntryTest.cc
  2859. * test/DHTPeerAnnounceStorageTest.cc
  2860. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2861. Changed method signature:
  2862. NameResolver::resolve
  2863. * src/DHTEntryPointNameResolveCommand.cc
  2864. * src/InitiateConnectionCommand.cc
  2865. * src/NameResolver.cc
  2866. * src/NameResolver.h
  2867. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2868. Changed method signature:
  2869. PieceStorage::getAdvertisedPieceIndexes
  2870. * src/DefaultBtInteractive.cc
  2871. * src/DefaultPieceStorage.cc
  2872. * src/DefaultPieceStorage.h
  2873. * src/PieceStorage.h
  2874. * src/UnknownLengthPieceStorage.h
  2875. * test/MockPieceStorage.h
  2876. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2877. Changed method signature:
  2878. SegmentMan::getInFlightSegment
  2879. * src/AbstractCommand.cc
  2880. * src/SegmentMan.cc
  2881. * src/SegmentMan.h
  2882. * test/SegmentManTest.cc
  2883. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Changed method signature:
  2885. DHTAbstractNodeLookupTask::getNodesFromMessage
  2886. * src/DHTAbstractNodeLookupTask.cc
  2887. * src/DHTAbstractNodeLookupTask.h
  2888. * src/DHTNodeLookupTask.cc
  2889. * src/DHTNodeLookupTask.h
  2890. * src/DHTPeerLookupTask.cc
  2891. * src/DHTPeerLookupTask.h
  2892. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2893. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2894. * src/AbstractCommand.cc
  2895. * src/BtCheckIntegrityEntry.cc
  2896. * src/BtCheckIntegrityEntry.h
  2897. * src/BtFileAllocationEntry.cc
  2898. * src/BtFileAllocationEntry.h
  2899. * src/BtSetup.cc
  2900. * src/BtSetup.h
  2901. * src/CheckIntegrityCommand.cc
  2902. * src/CheckIntegrityEntry.h
  2903. * src/ChecksumCheckIntegrityEntry.cc
  2904. * src/ChecksumCheckIntegrityEntry.h
  2905. * src/DHTSetup.cc
  2906. * src/DHTSetup.h
  2907. * src/DownloadEngine.cc
  2908. * src/FileAllocationCommand.cc
  2909. * src/FileAllocationEntry.h
  2910. * src/RequestGroup.cc
  2911. * src/RequestGroup.h
  2912. * src/RequestGroupMan.cc
  2913. * src/RequestGroupMan.h
  2914. * src/StreamCheckIntegrityEntry.cc
  2915. * src/StreamCheckIntegrityEntry.h
  2916. * src/StreamFileAllocationEntry.cc
  2917. * src/StreamFileAllocationEntry.h
  2918. * src/TrackerWatcherCommand.cc
  2919. * src/a2functional.h
  2920. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2921. Changed method signature:
  2922. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2923. DHTBucket::getGoodNodes,
  2924. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2925. * src/BNode.cc
  2926. * src/BNode.h
  2927. * src/DHTAbstractNodeLookupTask.cc
  2928. * src/DHTAutoSaveCommand.cc
  2929. * src/DHTBucket.cc
  2930. * src/DHTBucket.h
  2931. * src/DHTBucketRefreshTask.cc
  2932. * src/DHTFindNodeMessage.cc
  2933. * src/DHTGetPeersMessage.cc
  2934. * src/DHTRoutingTable.cc
  2935. * src/DHTRoutingTable.h
  2936. * test/BNodeTest.cc
  2937. * test/DHTBucketTest.cc
  2938. * test/DHTRoutingTableTest.cc
  2939. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. In piece selection functions, Pass std::deque<...> by reference rather
  2941. than returning it.
  2942. * src/BitfieldMan.cc
  2943. * src/BitfieldMan.h
  2944. * src/DefaultBtRequestFactory.cc
  2945. * src/DefaultPieceStorage.cc
  2946. * src/Piece.cc
  2947. * src/Piece.h
  2948. * test/BitfieldManTest.cc
  2949. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2950. Implemented rarest piece first piece selection strategy.
  2951. * src/AbstractBtMessage.cc
  2952. * src/AbstractBtMessage.h
  2953. * src/BitfieldMan.cc
  2954. * src/BitfieldMan.h
  2955. * src/BtBitfieldMessage.cc
  2956. * src/BtHaveAllMessage.cc
  2957. * src/BtHaveMessage.cc
  2958. * src/DefaultPieceStorage.cc
  2959. * src/DefaultPieceStorage.h
  2960. * src/PeerInteractionCommand.cc
  2961. * src/PieceStorage.h
  2962. * src/UnknownLengthPieceStorage.h
  2963. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2964. Rewritten readData and writeData.
  2965. * src/MultiDiskAdaptor.cc
  2966. * src/MultiDiskAdaptor.h
  2967. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2968. Move \n out of the message "Usage: ...".
  2969. * src/version_usage.cc
  2970. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Bump up version number to 0.13.2b.
  2972. * configure.ac
  2973. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2974. Added const qualifier to argument Exception& e.
  2975. * src/Logger.h
  2976. * src/SimpleLogger.cc
  2977. * src/SimpleLogger.h
  2978. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. Pool connection when CWD, SIZE command fails.
  2980. * src/FtpNegotiationCommand.cc
  2981. * src/FtpNegotiationCommand.h
  2982. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2984. * src/HttpResponseCommand.cc
  2985. * src/HttpSkipResponseCommand.cc
  2986. * src/HttpSkipResponseCommand.h
  2987. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Pool connection when a server returns 4xx, 5xx responses.
  2989. * src/HttpNullDownloadCommand.cc
  2990. * src/HttpNullDownloadCommand.h
  2991. * src/HttpResponse.cc
  2992. * src/HttpResponse.h
  2993. * src/HttpResponseCommand.cc
  2994. * src/HttpResponseCommand.h
  2995. * test/HttpResponseTest.cc
  2996. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2997. Print usage when no URL is specifed or bad command-line option is
  2998. specified.
  2999. * src/HelpItemFactory.cc
  3000. * src/help_tags.h
  3001. * src/option_processing.cc
  3002. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3003. Removed duplicate log message.
  3004. * src/AbstractCommand.cc (asyncResolveHostname)
  3005. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Updated man page: --async-dns and --ftp-reuse-connection were added.
  3007. Changed -j option's default value from 5 to 1.
  3008. Added new examples using protocol auto detection feature.
  3009. Removed -T, -M usage where it can be omitted.
  3010. * doc/aria2c.1.txt
  3011. * doc/aria2c.1.html
  3012. * doc/aria2c.1.txt
  3013. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3014. Updated command-line usage text, so that it tells users that they
  3015. can specify any number of torrent files and metalink files in
  3016. command-line.
  3017. * src/version_usage.cc
  3018. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Changed the default value of -j option to 1.
  3020. * src/HelpItemFactory.cc
  3021. * src/option_processing.cc
  3022. * src/usage_text.h
  3023. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. Added the ability to reuse connection in FTP and it is enabled by
  3025. default. It can be disabled by --ftp-reuse-connection=false option.
  3026. * src/Command.cc
  3027. * src/DownloadCommand.cc
  3028. * src/FtpDownloadCommand.cc
  3029. * src/FtpDownloadCommand.h
  3030. * src/FtpFinishDownloadCommand.cc
  3031. * src/FtpFinishDownloadCommand.h
  3032. * src/FtpInitiateConnectionCommand.cc
  3033. * src/FtpNegotiationCommand.cc
  3034. * src/FtpNegotiationCommand.h
  3035. * src/HelpItemFactory.cc
  3036. * src/Makefile.am
  3037. * src/Makefile.in
  3038. * src/OptionHandlerFactory.cc
  3039. * src/option_processing.cc
  3040. * src/prefs.h
  3041. * src/usage_text.h
  3042. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3043. Call Command::transitStatus() before calling Command::execute(),
  3044. so that the status change made in execute() is not cleared.
  3045. * src/DownloadEngine.cc
  3046. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3047. Removed forward declaration of SocketCore class.
  3048. * src/HttpDownloadCommand.h
  3049. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3050. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  3051. in InitiateConnectionCommandFactory. They should be set only when
  3052. the protocol is HTTP or HTTPS.
  3053. * src/InitiateConnectionCommandFactory.cc
  3054. * src/RequestGroup.cc
  3055. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. Fixed infinite loop in checksum checking.
  3057. * src/IteratableChecksumValidator.cc
  3058. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3059. Set _supportsPersistentConnection to true by default.
  3060. * src/Request.cc
  3061. * src/RequestGroup.cc
  3062. * test/HttpRequestTest.cc
  3063. * test/RequestTest.cc
  3064. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Added timeout to socket pool. The default timeout is 15 seconds,
  3066. which is the same value Apache uses.
  3067. * src/DownloadEngine.cc
  3068. * src/DownloadEngine.h
  3069. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3070. Fixed misuse of multimap::find()
  3071. * src/HttpHeader.cc
  3072. * test/HttpHeaderTest.cc
  3073. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3074. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  3075. option.
  3076. The asynchronous DNS is not capable of IPv6 yet.
  3077. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  3078. least for HTTP download.
  3079. * src/AbstractCommand.cc
  3080. * src/AbstractCommand.h
  3081. * src/AsyncNameResolver.cc
  3082. * src/AsyncNameResolver.h
  3083. * src/DHTEntryPointNameResolveCommand.cc
  3084. * src/DHTEntryPointNameResolveCommand.h
  3085. * src/DownloadEngine.cc
  3086. * src/DownloadEngine.h
  3087. * src/FtpInitiateConnectionCommand.cc
  3088. * src/FtpInitiateConnectionCommand.h
  3089. * src/HelpItemFactory.cc
  3090. * src/HttpInitiateConnectionCommand.cc
  3091. * src/HttpInitiateConnectionCommand.h
  3092. * src/InitiateConnectionCommand.cc
  3093. * src/InitiateConnectionCommand.h
  3094. * src/Makefile.am
  3095. * src/Makefile.in
  3096. * src/NameResolver.cc
  3097. * src/NameResolver.h
  3098. * src/OptionHandlerFactory.cc
  3099. * src/SocketCore.cc
  3100. * src/SocketCore.h
  3101. * src/Util.cc
  3102. * src/Util.h
  3103. * src/option_processing.cc
  3104. * src/prefs.h
  3105. * src/usage_text.h
  3106. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3107. Updated man page: --quiet, --header were added.
  3108. --metalink-servers and --enable-http-keep-alive option were updated.
  3109. * doc/aria2c.1
  3110. * doc/aria2c.1.html
  3111. * doc/aria2c.1.txt
  3112. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3113. Enable HTTP keep-alive by default.
  3114. * src/HelpItemFactory.cc
  3115. * src/option_processing.cc
  3116. * src/usage_text.h
  3117. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3118. Disable http keep-alive if the remote server is not HTTP/1.1.
  3119. * src/HttpConnection.cc
  3120. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3121. Receive content body of 302 response so that the connection can be
  3122. reused later when http keep-alive is enabled.
  3123. * src/HttpNullDownloadCommand.cc
  3124. * src/HttpNullDownloadCommand.h
  3125. * src/HttpResponseCommand.cc
  3126. * src/HttpResponseCommand.h
  3127. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. const SharedHandle<Request> -> const SharedHandle<Request>&
  3129. * src/FtpDowndloadCommand.cc
  3130. * src/FtpDowndloadCommand.h
  3131. * src/HttpDownloadCommand.cc
  3132. * src/HttpDownloadCommand.h
  3133. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3134. Fixed the bug that the control file(.aria2 file) is not renamed
  3135. according to tryAutoFileRenaming().
  3136. tryAutoFileRenaming() was rewritten so that if both renamed file and
  3137. its control file exist, use them and continue download.
  3138. The old implementation didn't take into account of control file's
  3139. existence, so basically you couldn't continue download of renamed file.
  3140. * src/BtProgressInfoFile.h
  3141. * src/DefaultBtProgressInfoFile.cc
  3142. * src/DefaultBtProgressInfoFile.h
  3143. * src/NullProgressInfoFile.h
  3144. * src/RequestGroup.cc
  3145. * test/DefaultBtProgressInfoFileTest.cc
  3146. * test/MockBtProgressInfoFile.h
  3147. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3148. Change the default value of --metalink-servers option from `5' to `1'.
  3149. * src/HelpItemFactory.cc
  3150. * src/option_processing.cc
  3151. * src/usage_text.h
  3152. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3153. Reimplemented transparent metalink using Accept request header.
  3154. * src/HttpRequest.cc
  3155. * src/HttpRequest.h
  3156. * src/HttpRequestCommand.cc
  3157. * src/Metalink2RequestGroup.cc
  3158. * src/RequestGroup.cc
  3159. * src/RequestGroup.h
  3160. * test/HttpRequestTest.cc
  3161. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3162. Bump up version number to 0.13.2a
  3163. * configure.ac
  3164. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Updated configure.ac using the result of autoscan.
  3166. * configure.ac
  3167. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. Fixed compilation error without gcrypt/openssl.
  3169. * src/DownloadCommand.cc
  3170. * src/DownloadCommand.h
  3171. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3172. Reorganized version information so that it can be displayed in a
  3173. standard terminal screen without scrolling.
  3174. Removed http, ftp from Configuration section, because they are always
  3175. enabled.
  3176. * src/FeatureConfig.cc
  3177. * src/FeatureConfig.h
  3178. * src/main.cc
  3179. * src/messageDigest.cc
  3180. * src/messageDigest.h
  3181. * src/version_usage.cc
  3182. * test/FeatureConfigTest.cc
  3183. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3184. Masked user ID in log.
  3185. * src/FtpConnection.cc (sendUser)
  3186. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3187. Removed query part from filename in HTTP download. The query part means
  3188. the substring after "?" in URL. Firefox seems do the same thing.
  3189. A query part is sometimes very long and not suitable to filename,
  3190. so I think it is better to remove it from filename.
  3191. * src/HttpRequest.cc
  3192. * src/HttpRequest.h
  3193. * src/Request.cc
  3194. * src/Request.h
  3195. * test/HttpRequestTest.cc
  3196. * test/RequestTest.cc
  3197. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3198. Rewritten Exception class. Throw exception object, not its pointer and
  3199. catch by reference, so that remove problematic delete operator for
  3200. catched exception.
  3201. * src/Exception.cc
  3202. * src/Exception.h
  3203. * test/ExceptionTest.cc
  3204. * src/*: All files throwing/catching exception.
  3205. * test/*: All files throwing/catching exception.
  3206. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. Now auto protocol detection is enabled without -Z option.
  3208. But there is a important difference between with/without -Z optoin.
  3209. For example, if you type:
  3210. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3211. then, aria2 interprets there are 3 request groups:
  3212. (1) http://host/file, http://mirror/file <-- multi-source download
  3213. (2) file1.torrent
  3214. (3) file2.metalink
  3215. On the other hand, if you invoke above command with -Z option, it is
  3216. interpreted as 4 request groups:
  3217. (1) http://host/file
  3218. (2) file1.torrent
  3219. (3) file2.metalink
  3220. (4) http://mirror/file
  3221. I think usually user don't mix multi-source URLs and torrent files, so
  3222. there is no big problem here.
  3223. * src/main.cc
  3224. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Fixed the bug that causes segmentaion fault when reading XML containing
  3226. unescapsed character like '&'.
  3227. Also a modification was made which avoids adding unnecessary
  3228. characters stack and appending unused string.
  3229. * src/ExpatMetalinkProcessor.cc
  3230. * src/FileMetalinkParserState.h
  3231. * src/FilesMetalinkParserState.h
  3232. * src/FinMetalinkParserState.h
  3233. * src/HashMetalinkParserState.h
  3234. * src/InitialMetalinkParserState.h
  3235. * src/LanguageMetalinkParserState.h
  3236. * src/MetalinkMetalinkParserState.h
  3237. * src/MetalinkParserState.h
  3238. * src/MetalinkParserStateMachine.cc
  3239. * src/MetalinkParserStateMachine.h
  3240. * src/OSMetalinkParserState.h
  3241. * src/PieceHashMetalinkParserState.h
  3242. * src/PiecesMetalinkParserState.h
  3243. * src/ResourcesMetalinkParserState.h
  3244. * src/SizeMetalinkParserState.h
  3245. * src/SkipTagMetalinkParserState.h
  3246. * src/URLMetalinkParserState.h
  3247. * src/VerificationMetalinkParserState.h
  3248. * src/VersionMetalinkParserState.h
  3249. * src/XML2SAXMetalinkProcessor.cc
  3250. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. Added StringFormat class, which internally calls vasprintf.
  3252. operator<< is defined for this class, so it can be used with iostream
  3253. classes nicely. SimpleLogger and following functions are rewritten
  3254. using StringFormat class.
  3255. Besides, now Logger class's methods are non-const, many classes
  3256. that has a const Logger* as a member variable are modified to remove
  3257. const qualifier from the variable declaration.
  3258. * src/HelpItemFactory.cc
  3259. * src/Request.cc
  3260. * src/SimpleLogger.cc
  3261. * src/StringFormat.cc
  3262. * src/StringFormat.h
  3263. * src/Util.cc
  3264. * src/option_processing.cc
  3265. * src/version_usage.cc
  3266. * test/StringFormatTest.cc
  3267. * src/*.h: The classes that has const Logger* as a member variable.
  3268. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3269. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  3270. failed. Also fixed memory link when exception is thrown there.
  3271. * src/main.cc (AccRequestGroup)
  3272. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3273. Added build-in "Accept-Features" support. For now only "metalink" is
  3274. used in this header field.
  3275. This "metalink" value is removed from the list when connecting URLs
  3276. fed by metalink file to avoid loop in "transparent" metlaink.
  3277. * src/HttpRequest.cc
  3278. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  3279. header is also held in this variable. Also renamed setUserHeaders as
  3280. addHeader and it was rewritten to add header not just to clear the old
  3281. value.
  3282. * src/HttpRequestCommand.cc
  3283. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  3284. from "Accept-Features" list.
  3285. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  3286. default.
  3287. * src/RequestGroup.h
  3288. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  3289. * src/a2functional.h: Included <string> because Concat class depends on
  3290. it.
  3291. * test/HttpRequestTest.cc
  3292. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. Added comment
  3294. * src/RequestGroup.cc (createNextCommand)
  3295. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Capitalized METHOD_GET and METHOD_HEAD
  3297. * src/Request.cc
  3298. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3299. Added getDownloadResults() method
  3300. * src/RequestGroupMan.cc
  3301. * src/RequestGroupMan.h
  3302. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3303. Fixed the bug that aria2 exits when commands is empty() but
  3304. _routineCommands are not.
  3305. * src/DownloadEngine.cc
  3306. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3307. Use the default value pulled from Option object in HelpItemFactory.
  3308. except options whose defualt value is embedded in a usage text.
  3309. * src/HelpItemFactory.cc
  3310. * src/HelpItemFactory.h
  3311. * src/option_processing.cc
  3312. * src/version_usage.cc
  3313. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3314. Added --quiet option to make aria2 quiet (no console output).
  3315. --quiet option is tagged with ADVANCED.
  3316. * src/HelpItemFactory.cc
  3317. * src/LogFactory.cc
  3318. * src/LogFactory.h
  3319. * src/MultiUrlRequestInfo.cc
  3320. * src/MultiUrlRequestInfo.h
  3321. * src/NullStatCalc.h: New class. This class prints nothing.
  3322. * src/OptionHandlerFactory.cc
  3323. * src/main.cc
  3324. * src/option_processing.cc
  3325. * src/prefs.h
  3326. * src/usage_text.h
  3327. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3328. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  3329. * src/HelpItemFactory.cc (createHelpItems):
  3330. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3331. Fixed compilation error in ExpatMetalinkProcessor.cc
  3332. * src/ExpatMetalinkProcessor.cc
  3333. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. Reuse socket if the origin server supports HTTP keep-alive and
  3335. --enable-http-keep-alive or --enable-http-pipelining is given.
  3336. The current implementation doesn't reuse the connections established
  3337. against proxy server.
  3338. * src/AbstractCommand.cc
  3339. * src/DownloadEngine.cc
  3340. * src/DownloadEngine.h
  3341. * src/HttpDownloadCommand.cc
  3342. * src/HttpInitiateConnectionCommand.cc
  3343. * src/HttpResponseCommand.cc
  3344. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3345. Rewritten HTTP keep-alive and pipelining routine.
  3346. * src/AbstractCommand.cc
  3347. * src/HttpConnection.cc
  3348. * src/HttpDownloadCommand.cc
  3349. * src/HttpRequest.cc
  3350. * src/HttpRequestCommand.cc
  3351. * src/HttpResponseCommand.cc
  3352. * src/Request.cc
  3353. * src/Request.h
  3354. * src/RequestGroup.cc
  3355. * test/HttpRequestTest.cc
  3356. * test/HttpResponseTest.cc
  3357. * test/RequestTest.cc
  3358. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Added missing setUserHeaders call
  3360. * src/HttpRequestCommand.cc
  3361. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3362. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  3363. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  3364. waste of time because it is more likey false.
  3365. * src/FileAllocationDispatcherCommand.cc (execute)
  3366. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3367. Now HTTP status and version are a member variable of HttpHeader.
  3368. HTTP status is processed as a string, not integer.
  3369. * src/AbstractProxyResponseCommand.cc
  3370. * src/HttpConnection.cc
  3371. * src/HttpHeader.cc
  3372. * src/HttpHeader.h
  3373. * src/HttpHeaderProcessor.cc
  3374. * src/HttpHeaderProcessor.h
  3375. * src/HttpResponse.cc
  3376. * src/HttpResponse.h
  3377. * test/HttpHeaderProcessorTest.cc
  3378. * test/HttpResponseTest.cc
  3379. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. Added --header option. You can specify any number of additional HTTP headers
  3381. like:
  3382. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  3383. Unlike other commad-line option, you can use --header option multiple times.
  3384. * src/HelpItemFactory.cc
  3385. * src/HttpRequest.{cc, h}
  3386. * src/HttpRequestCommand.cc
  3387. * src/OptionHandlerFactory.cc
  3388. * src/OptionHandlerImpl.h
  3389. * src/option_processing.cc
  3390. * src/prefs.h
  3391. * src/usage_text.h
  3392. * test/HttpRequestTest.cc (testUserHeaders)
  3393. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3394. Eliminates the time lag between sequential downloads and commands in
  3395. the same RequestGroup.
  3396. In old implementation, aria2 occasionally waits 1 seconds before
  3397. executing next command or RequestGroup.
  3398. This is really a waste of time, and new implementation eliminates
  3399. this unnecessary time lag.
  3400. * src/AbstractCommand.cc
  3401. * src/AutoSaveCommand.cc
  3402. * src/CheckIntegrityCommand.cc
  3403. * src/Command.{cc, h}
  3404. * src/DownloadEngine.{cc, h}
  3405. * src/DownloadEngineFactory.cc
  3406. * src/FileAllocationCommand.cc
  3407. * src/FileAllocationDispatcherCommand.cc
  3408. * src/FillRequestGroupCommand.cc
  3409. * src/FtpInitiateConnectionCommand.cc
  3410. * src/HaveEraseCommand.cc
  3411. * src/HttpInitiateConnectionCommand.cc
  3412. * src/HttpResponseCommand.cc
  3413. * src/RealtimeCommand.cc
  3414. * src/RequestGroup.cc
  3415. * src/RequestGroupMan.cc
  3416. * src/StreamFileAllocationEntry.cc
  3417. * src/TimeBasedCommand.{cc, h}
  3418. * src/TimedHaltCommand.cc
  3419. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3420. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  3421. keyword explicit and SharedHandle's default constructor initializes
  3422. its internal obj to null, old implementation initializes it using
  3423. obj's default constructor.
  3424. To assign null, write SharedHandle<T> x(...); x.reset();
  3425. TODO: test/SharedHandleTest.cc needs more tests.
  3426. * src/SharedHandle.h
  3427. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Fixed type in man page.
  3429. * doc/aria2c.1.txt
  3430. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3432. * src/SimpleLogger.{cc, h}
  3433. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3434. Implemented auto protocol detection.
  3435. Now you can do:
  3436. aria2c -Z http://host/file file1.torrent file2.metalink
  3437. (Note: -Z option is required for auto protcol detection.)
  3438. Then aria2c downloads 3 files simultaneously:
  3439. 1. http://host/file
  3440. 2. file1.torrent <-- read local torrent file
  3441. 3. file2.metalink <-- read local Metalink file.
  3442. Same thing goes with -i option. Assume your uris.txt contans:
  3443. http://host/file
  3444. file1.torrent
  3445. file2.metalink
  3446. Then you can do: aria2c -i uris.txt
  3447. (Note: -Z option is not needed if -i option is given.)
  3448. * src/main.cc
  3449. * src/ProtocolDetector.{cc, h}
  3450. * test/ProtocolDetectorTest.cc
  3451. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3452. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3453. installed
  3454. * src/ARC4Encryptor.h
  3455. * src/ARC4Decryptor.h
  3456. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3457. Renamed argument from 'errno' to 'err', since errno is confused with
  3458. errno defined in errno.h.
  3459. * src/LibgcryptARC4Decryptor.h
  3460. * src/LibgcryptARC4Context.h
  3461. * src/LibgcryptDHKeyExchange.h
  3462. * src/LibgcryptARC4Encryptor.h
  3463. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3464. Rewritten choking algorithm.
  3465. * src/PeerChokeCommand.{cc, h}
  3466. * src/BtInterestedMessage.cc
  3467. * src/PeerSessionResource.{cc, h}
  3468. * src/DefaultPeerStorage.{cc, h}
  3469. * src/BtNotInterestedMessage.cc
  3470. * src/DefaultBtMessageDispatcher.{cc, h}
  3471. * src/BtMessageDispatcher.h
  3472. * src/Peer.{cc, h}
  3473. * src/BtLeecherStateChoke.{cc, h}
  3474. * src/BtSetup.cc
  3475. * src/BtSeederStateChoke.{cc, h}
  3476. * src/PeerStorage.h
  3477. * test/MockPeerStorage.h
  3478. * test/MockBtMessageDispatcher.h
  3479. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3480. Fixed compilation error on x84-64 platform.
  3481. * src/AuthConfig.cc: Included ostream.
  3482. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3483. Rewritten getBasename() and getDirname(), without standard library
  3484. basename(), dirname().
  3485. * src/File.cc
  3486. * test/FileTest.cc
  3487. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3488. Added Simplified Chinese translation. Also updated the following
  3489. translations: Polish, Dutch, German. Great thanks to all translators.
  3490. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Suppress content-range error when 'Content-Range' response header
  3492. doesn't contains bytes-unit specifier 'bytes'
  3493. * src/HttpHeader.cc (getRange)
  3494. * test/HttpHeaderTest.cc
  3495. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Fixed compilation error with g++-4.3
  3497. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Added missing include files for MinGW
  3499. * test/HttpHeaderProcessorTest.cc
  3500. * test/DHTRoutingTableSerializerTest.cc
  3501. * test/DHTRoutingTableDeserializerTest.cc
  3502. * test/UriListParserTest.cc
  3503. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3504. Now download line is printed nicely with no garbage at the end of
  3505. line. I use ioctl to get the columns of terminal.
  3506. If stdout is redirected to another device, instead of carriage return,
  3507. end of line '\n' character is used. This is feature request#1909659
  3508. * src/ConsoleStatCalc.cc (calculateStat)
  3509. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3510. Included a2time.h
  3511. * src/DHTMessageDispatcher.h
  3512. * src/DHTMessageEntry.h
  3513. * src/DHTReplaceNodeTask.h
  3514. * src/DHTMessageTracker.h
  3515. * src/Util.h
  3516. * src/CookieBox.h
  3517. * src/SocketCore.h
  3518. * src/DefaultBtMessageDispatcher.h
  3519. * src/SocketCore.cc
  3520. * src/Util.cc
  3521. * src/DHTPingTask.h
  3522. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3523. Fixed high memory footprint when DHT is enabled.
  3524. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3525. queued than it is processed and the queue is getting longer. As a
  3526. consequence, momory usage is increased.
  3527. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3528. replacement cache in DHTBucket which is described in Kademlia paper.
  3529. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3530. DHTReplaceNodeTask.
  3531. * src/DHTBucket.{h, cc}
  3532. (cacheNode): New function.
  3533. (getCachedNodes): New function.
  3534. (dropNode): Push back cached node to _nodes.
  3535. * test/DHTBucketTest.cc
  3536. (testCacheNode): New test
  3537. (testDropNode): New test
  3538. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3539. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3540. the unused 4KB memory when ssl is not used.
  3541. * src/SocketCore.cc
  3542. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Added summary log for peer announce storage.
  3544. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3545. Removed cast
  3546. * src/DefaultPeerStorage.cc (addPeer)
  3547. Log exception message
  3548. * src/DHTMessageTracker.cc (handleTimeout)
  3549. Fixed casting
  3550. * test/HttpRequestTest.cc
  3551. * test/MetalinkProcessorTest.cc
  3552. * test/PieceTest.cc
  3553. * test/MetalinkEntryTest.cc
  3554. * test/SequenceTest.cc
  3555. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3556. * src/ParameterizedStringParser.cc (createLoop):
  3557. Removed unused variable sstep.
  3558. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3559. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3560. * src/Util.{h, cc}
  3561. (parseUInt): New function.
  3562. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3563. The actual range is uint32_t.
  3564. * test/UtilTest.cc
  3565. * src/ParameterizedStringParser.cc:
  3566. Use Util::parseUInt() for loop variables.
  3567. * test/ParameterizedStringParserTest.cc
  3568. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3569. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3570. Rewritten the functions for binding port.
  3571. * src/DHTConnectionImpl.{h, cc}
  3572. * src/PeerListenCommand.{h, cc}
  3573. * src/DHTSetup.cc
  3574. * src/BtSetup.cc
  3575. * test/DHTConnectionImplTest.cc
  3576. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3577. type cleanup for allmost all remaining files.
  3578. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Type clarification
  3580. * src/PeerSessionResource.{h, cc}
  3581. * src/DefaultPieceStorage.{h, cc}
  3582. * src/Peer.{h, cc}
  3583. * test/PeerSessionResourceTest.cc
  3584. Use div function
  3585. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3586. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3587. Type clarification
  3588. * src/DefaultPeerStorage.{h, cc}
  3589. * test/DefaultPeerStorageTest.cc
  3590. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3591. Type clarification: size_t for length or size, uint64_t for file
  3592. length, off_t for file offset.
  3593. * src/DefaultBtProgressInfoFile.cc
  3594. * src/DefaultBtContext.{h, cc}
  3595. * src/DefaultBtInteractive.cc
  3596. * src/DownloadCommand.{h, cc}
  3597. * src/IteratableChunkChecksumValidator.{h, cc}
  3598. * src/SegmentMan.{h, cc}
  3599. * src/SingleFileDownloadContext.{h, cc}
  3600. * src/IteratableChecksumValidator.{h, cc}
  3601. * src/BtContext.h
  3602. * src/IteratableValidator.h
  3603. * src/DownloadContext.h
  3604. * test/SingleFileDownloadContextTest.cc
  3605. * test/DefaultBtContextTest.cc
  3606. * test/MockBtContext.h
  3607. * test/Metalink2RequestGroupTest.cc
  3608. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3609. Type clarification: size_t for length or size, uint64_t for file
  3610. length, off_t for file offset.
  3611. * src/PiecedSegment.cc
  3612. * src/GrowSegment.h
  3613. * src/DefaultBtRequestFactory.h
  3614. * src/DefaultBtProgressInfoFile.cc
  3615. * src/UnknownLengthPieceStorage.h
  3616. * src/DefaultPieceStorage.cc
  3617. * src/UnknownLengthPieceStorage.cc
  3618. * src/DefaultBtInteractive.cc
  3619. * src/GrowSegment.cc
  3620. * src/BitfieldMan.h
  3621. * src/DownloadCommand.cc
  3622. * src/BtRequestFactory.h
  3623. * src/PiecedSegment.h
  3624. * src/DefaultPieceStorage.h
  3625. * src/Piece.cc
  3626. * src/DefaultBtRequestFactory.cc
  3627. * src/PieceStorage.h
  3628. * src/Segment.h
  3629. * src/Piece.h
  3630. * src/BitfieldMan.cc
  3631. * src/Util.cc
  3632. * test/DefaultBtProgressInfoFileTest.cc
  3633. * test/DefaultPieceStorageTest.cc
  3634. * test/MockPieceStorage.h
  3635. * test/BtRequestMessageTest.cc
  3636. * test/DefaultBtMessageDispatcherTest.cc
  3637. * test/BitfieldManTest.cc
  3638. * test/GrowSegmentTest.cc
  3639. * test/PieceTest.cc
  3640. * test/SegmentTest.cc
  3641. * test/SegmentManTest.cc
  3642. * test/DefaultBtRequestFactoryTest.cc
  3643. * test/MockBtRequestFactory.h
  3644. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3645. Fixed compilation error with --disable-nls
  3646. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3647. in gettext.h causes the problem.
  3648. * src/common.h
  3649. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3650. Removed subPiece related functions.
  3651. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3652. * src/DefaultPieceStorage.{h, cc}
  3653. * test/PieceTest.cc
  3654. * test/DefaultPieceStorageTest.cc
  3655. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3656. Use unsigned char for data store.
  3657. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. Bump up version number to 0.13.0+1
  3659. * configure.ac
  3660. * Release 0.13.0+1
  3661. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. Changed inactive connection timeout to 120.
  3663. To accept more mulually interested peers, disconnect peer when there
  3664. is no interest between us after certain time passed.
  3665. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3666. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3668. when compiled with async DNS support.
  3669. * src/DownloadEngine.cc
  3670. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3671. value '10' will be a little bit short when some DNS servers are
  3672. offline and several DNS servers are tried. It should be configured
  3673. by command-line option.
  3674. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3675. Merged Ross's mingw patch.
  3676. * src/DHTRoutingTableDeserializer.cc
  3677. * src/DHTRoutingTableSerializer.cc
  3678. * src/Platform.{h, cc}
  3679. * src/timegm.h
  3680. * src/gettimeofday.h
  3681. * src/getaddrinfo.h
  3682. * src/SocketCore.h
  3683. * src/common.h
  3684. * src/inet_aton.h
  3685. * src/DownloadEngine.h
  3686. * src/gai_strerror.h
  3687. * src/a2netcompat.h
  3688. * configure.ac
  3689. * configure
  3690. * aclocal.m4
  3691. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3692. Included missing iostream.
  3693. * test/AllTest.cc
  3694. * test/BtDependencyTest.cc
  3695. * test/BtExtendedMessageTest.cc
  3696. * test/DHTConnectionImplTest.cc
  3697. * test/DHTMessageFactoryImplTest.cc
  3698. * test/DHTMessageTrackerEntryTest.cc
  3699. * test/DHTNodeTest.cc
  3700. * test/DHTRoutingTableSerializerTest.cc
  3701. * test/DefaultBtAnnounceTest.cc
  3702. * test/DefaultBtContextTest.cc
  3703. * test/DefaultBtMessageFactoryTest.cc
  3704. * test/DefaultExtensionMessageFactoryTest.cc
  3705. * test/HandshakeExtensionMessageTest.cc
  3706. * test/HttpResponseTest.cc
  3707. * test/MetalinkProcessorTest.cc
  3708. * test/MultiFileAllocationIteratorTest.cc
  3709. * test/SocketCoreTest.cc
  3710. * test/UTPexExtensionMessageTest.cc
  3711. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3712. Reorganized includes.
  3713. * src/NameResolver.cc
  3714. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Fixed compilation error without ares/c-ares
  3716. * src/NameResolver.h:
  3717. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Added a test for large file.
  3719. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3720. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. Fixed the bug that file size is ignored if size > INT32_MAX
  3722. * src/SizeMetalinkParserState.cc (endElement):
  3723. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3724. Bump up version number to 0.13.0
  3725. * configure.ac
  3726. * Release 0.13.0
  3727. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3728. Updated Makfefile.am to make 'make dist' work.
  3729. Now packaged filename is aria2c-VERSION.tar.bz2.
  3730. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3731. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3732. Large file support is now configured by configure script.
  3733. * configure.ac
  3734. Removed unsused source files
  3735. * src/
  3736. * test/
  3737. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3738. Peer.h and BtContext.h respectively.
  3739. * src/Peer.h
  3740. * src/BtContext.h
  3741. Updated translations.
  3742. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3743. translations. Great thanks to all translators!;)
  3744. * po/*.{po, gmo}
  3745. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3747. statically declared sha1 MessageDigestContext.
  3748. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3749. initialization of short-lived MessageDigestContext.
  3750. * src/MessageDigestHelper.{h, cc}
  3751. * src/main.cc
  3752. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3753. the initialization of MessageDigestContext every time in validating
  3754. chunk checksum.
  3755. * src/DownloadCommand.{h, cc}
  3756. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Add a file descriptor which connected to fast peer(latency<1500) to
  3758. select(). This change reduced CPU load.
  3759. * src/PeerInteractionCommand.cc
  3760. * src/DefaultBtInteractive.{h, cc}
  3761. * src/BtInteractive.h
  3762. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3763. Fixed the previous insufficient fix for possible busy loop.
  3764. * src/MSEHandshake.cc (identifyHandshakeType)
  3765. Removed unused functions.
  3766. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  3767. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3768. Fixed possible busy loop if first 20 bytes are not received for a few
  3769. minutes.
  3770. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  3771. * src/ReceiverMSEHandshakeCommand.cc
  3772. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Fixed compilation error
  3774. * src/ExpatMetalinkProcessor.cc
  3775. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3777. * src/DHTBucket.cc
  3778. Removed unnecessary cast.
  3779. * src/HandshakeExtensionMessage.cc
  3780. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3782. is missing.
  3783. * src/OptionHandlerFactory.cc
  3784. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. Fixed the bug that HAVE message is not sent for a piece they are
  3786. downloaded fom http/ftp server before any BitTorrent handshake is done
  3787. with peers.
  3788. * src/DefaultBtInteractive.cc
  3789. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3790. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3791. * src/Makefile.am
  3792. * src/Makefile.in
  3793. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3794. Updated README. Added html version of README and man page.
  3795. * README
  3796. * README.html
  3797. * readme2html: Shell script to generate README.html from README using
  3798. asciidoc.
  3799. * doc/aria2c.1.html
  3800. * doc/makeman: Added the line to generate aria2c.1.html
  3801. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3802. Fixed offset calculation.
  3803. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3804. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Rewritten itos and uitos using template. llitos and ullitos are
  3806. replaced with itos and uitos respectively.
  3807. * src/Util.{h, cc}
  3808. * test/UtilTest.cc
  3809. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3810. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3811. of the number of bytes required for storing public key and shared
  3812. secret.
  3813. * src/LibgcryptDHKeyExchange.h
  3814. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3815. * src/MSEHandshake.cc
  3816. * test/DHKeyExchangeTest.cc
  3817. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3818. Removed since they are not used.
  3819. * src/Xml2MetalinkProcessor.{h, cc}
  3820. * src/Socket.cc
  3821. * src/SegmentSplitter.{h, cc}
  3822. * test/Xml2MetalinkProcessorTest.cc
  3823. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3824. Fixed the bug that prevents aria2 from stopping other than by pressing
  3825. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3826. option. aria2 doesn't stop even after --seed-time is satisfied and
  3827. continues to output blank lines in the console.
  3828. * src/ReceiverMSEHandshakeCommand.cc
  3829. * src/PeerReceiveHandshakeCommand.cc
  3830. * src/PeerListenCommand.cc
  3831. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. Bump up version number to 0.13.0rc
  3833. * configure.ac
  3834. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3835. Updated man page and some usage text.
  3836. * doc/aria2c.1.txt
  3837. * src/usage_text.h
  3838. * po/*.{po, gmo}
  3839. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3840. Updated translations. Added Finnish and Hebrew translations.
  3841. Great thanks to all translators!
  3842. * po/*.{po, gmo}
  3843. * po/LINGUAS
  3844. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. Log more detailed information about each message.
  3846. * src/DHTQueryMessage.{h, cc}
  3847. * src/DHTGetPeersMessage.{h, cc}
  3848. * src/DHTFindNodeReplyMessage.{h, cc}
  3849. * src/DHTGetPeersReplyMessage.{h, cc}
  3850. * src/DHTAnnouncePeerMessage.{h, cc}
  3851. * src/DHTResponseMessage.{h, cc}
  3852. * src/DHTFindNodeMessage.{h, cc}
  3853. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. Use constants defined in prefs.h
  3855. * src/option_processing.cc
  3856. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3857. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3858. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Make room for future enchancements for IPv6 addresses.
  3860. Bump up version number of dht.dat file format to 2.
  3861. Not compatible with previous version.
  3862. * src/DHTRoutingTableSerializer.cc
  3863. * src/DHTRoutingTableDeserializer.cc
  3864. * test/DHTRoutingTableSerializerTest.cc
  3865. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Added handling for the return values from
  3867. PeerMessageUtil::createcompact().
  3868. * src/DefaultBtContext.cc (computeFastSet):
  3869. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Fixed abort when peer's ip address is IPv4-mapped address.
  3871. * src/DefaultBtContext.cc (computeFastSet)
  3872. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3873. cannot handle IPv4-mapped addresses.
  3874. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3875. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3876. Proper return value handling for OpenSSL functions.
  3877. * src/LibsslDHKeyExchange.h
  3878. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. Random bytes generation using libgcrypt and OpenSSL.
  3880. * src/DHTUtil.{h, cc}
  3881. * test/DHTUtilTest.cc
  3882. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3883. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3884. received.
  3885. * src/DHTMessageReceiver.cc (receiveMessage)
  3886. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Fixed the bug that a return code is always 0. BUG#1897704
  3888. If error occurred during the download or there exist unfinished
  3889. downloads, aria2 returns with code 1.
  3890. * src/RequestGroupMan.{h, cc}
  3891. * src/MultiUrlRequestInfo.{h, cc}
  3892. * src/main.cc
  3893. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3894. IPv6 support for SocketCore class.
  3895. TODO: In SocketCore::establishConnection(), this is insufficient to
  3896. determin the failure of connect() here because the socket is
  3897. non-blocking state. The next addresses should be tried after select().
  3898. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3899. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3900. instead which address family independent.
  3901. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3902. information in a compact peer format which is for IPv4 only.
  3903. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3904. this is a spec of BitTorrent protocol.
  3905. * src/SocketCore.{h, cc}
  3906. * src/PeerMessageUtil.cc
  3907. * test/SocketCoreTest.cc
  3908. * test/PeerMessageUtilTest.cc
  3909. * test/DHTConnectionImplTest.cc
  3910. Handle IPv4-mapped addresses.
  3911. * src/DHTNode.cc: Now identity is determined by node id.
  3912. * src/DHTMessageTrackerEntry.cc
  3913. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3914. should handle it.
  3915. * src/DHTRoutingTableDeserializer.cc
  3916. * src/DHTMessageFactoryImpl.cc
  3917. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3918. Change the unit of --stop option from a minute to a second.
  3919. * src/usage_text.h
  3920. * src/DownloadEngineFactory.cc
  3921. * src/OptionHandlerFactory.cc
  3922. * src/message.h
  3923. * src/TimedHaltCommand.cc
  3924. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. Make listening socket non-block mode.
  3926. * src/FtpConnection.cc
  3927. * src/FtpNegotiationCommand.{h, cc}
  3928. * src/PeerListenCommand.cc
  3929. Fixed the bug that cause slow ftp negotiation.
  3930. * src/FtpNegotiationCommand.{h, cc}
  3931. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3932. Added basic tag to --enable-dht, --dht-listen-port option.
  3933. * src/HelpItemFactory.cc (createHelpItems)
  3934. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3935. Updated text.
  3936. * src/usage_text.h
  3937. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3938. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3939. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3940. Determin _threadtholdSpeed in each constructor for
  3941. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3942. * src/ActivePeerConnectionCommand.{h, cc}
  3943. * src/PeerReceiveHandshakeCommand.{h, cc}
  3944. * src/BtSetup.cc
  3945. * src/BtConstants.h
  3946. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. Added --bt-min-crypto-level and --bt-require-crypto options.
  3948. * src/OptionHandlerFactory.cc
  3949. * src/MSEHandshake.cc
  3950. * src/HelpItemFactory.cc
  3951. * src/option_processing.cc
  3952. * src/ReceiverMSEHandshakeCommand.cc
  3953. * src/prefs.h
  3954. * src/DefaultBtAnnounce.cc
  3955. * src/InitiatorMSEHandshakeCommand.cc
  3956. * src/usage_text.h
  3957. * test/MSEHandshakeTest.cc
  3958. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3959. Bump version number to 0.13.0b
  3960. * configure.ac
  3961. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3962. Updated doc.
  3963. * src/MessageDigestHelper.h:
  3964. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Use raw message digest as a token instead of its hexadecimal
  3966. representation.
  3967. * src/DHTTokenTracker.cc (generateToken)
  3968. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Added Message Stream Encryption(MSE) support.
  3970. Currently, aria2 accepts incoming connections with Obfuscation Header
  3971. and legacy BitTorrent Header and establishes connections with
  3972. Obfuscation Header first and if failed then retry with legacy
  3973. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3974. choose ARC4. The new option to change the default behavior is planned.
  3975. For tracker extension, "supportcrypto=1" is added statically.
  3976. * src/PeerInitiateConnectionCommand.{h, cc}
  3977. * src/PeerConnection.{h, cc}
  3978. * src/HandleRegistry.h
  3979. * src/SocketCore.h
  3980. * src/PeerReceiveHandshakeCommand.{h, cc}
  3981. * src/BtRegistry.{h, cc}
  3982. * src/PeerListenCommand.cc
  3983. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3984. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3985. * src/MSEHandshake.{h, cc}
  3986. * src/ARC4Encryptor.h
  3987. * src/ARC4Decryptor.h
  3988. * src/LibgcryptARC4Encryptor.h
  3989. * src/LibgcryptARC4Decryptor.h
  3990. * src/LibgcryptARC4Context.h
  3991. * src/LibsslARC4Encryptor.h
  3992. * src/LibsslARC4Decryptor.h
  3993. * src/LibsslARC4Context.h
  3994. * src/DHKeyExchange.h
  3995. * src/LibgcryptDHKeyExchange.h
  3996. * src/LibsslDHKeyExchange.h
  3997. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3998. * test/DefaultBtAnnounceTest.cc
  3999. * test/ARC4Test.cc
  4000. * test/DHKeyExchangeTest.cc
  4001. Removed prepareForRetry() because it is not used.
  4002. * src/PeerAbstractCommand.{h, cc}
  4003. * src/PeerInteractionCommand.{h, cc}
  4004. * src/PeerInitiateConnectionCommand.{h, cc}
  4005. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Added the ability to load nodes from torrent file. These nodes are
  4007. added to the routing table when downloading that torrent.
  4008. * src/BtContext.h
  4009. * src/DefaultBtContext.{h, cc}
  4010. * src/DHTSetup.cc
  4011. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  4012. hostname and port pair, and resolves all of them.
  4013. * src/NameResolver.{h, cc}: Added reset().
  4014. * src/RequestGroup.cc
  4015. * test/DefaultBtContextTest.cc
  4016. * test/MockBtContext.h
  4017. Removed assert() from DefaultBtContext and throw exception instead.
  4018. * src/DefaultBtContext.cc
  4019. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4020. Fixed segmentation fault bug when exiting if dht is disabled.
  4021. * src/RequestGroup.cc
  4022. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Fixed typo in log message and define the message in message.h
  4024. * src/TimedHaltCommand.cc
  4025. * src/message.h
  4026. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4027. Included RecoverableException.h to fix compilation error.
  4028. * test/DHTMessageFactoryImplTest.cc
  4029. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  4031. * test/DHTPingMessageTest.cc
  4032. * test/DHTGetPeersMessageTest.cc
  4033. * test/DHTFindNodeMessageTest.cc
  4034. * test/DHTAnnouncePeerMessageTest.cc
  4035. * test/MockDHTMessage.h
  4036. * test/MockDHTMessageFactory.h
  4037. * test/MockDHTMessageDispatcher.h: New class.
  4038. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4039. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  4040. virtual.
  4041. * src/DHTMessageDispatcher.h
  4042. * src/DHTMessageDispatcherImpl.{h, cc}
  4043. * src/DHTSetup.cc
  4044. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4045. Adding handling of DHT error message. Just log error message and
  4046. throw exception.
  4047. * src/DHTMessageFactoryImpl.cc
  4048. * test/DHTMessageFactoryImplTest.cc
  4049. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Added handling of dynamic cast failure.
  4051. * src/DHTNodeLookupTask.cc
  4052. * src/DHTPeerLookupTask.cc
  4053. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Added the ability to stop aria2 itself when given time has passed
  4055. from start. Use --stop option to specify time in minutes.
  4056. When 0 is given, this feature is disabled.
  4057. * src/OptionHandlerFactory.cc
  4058. * src/TimeBasedCommand.h: Make _interval protected scope.
  4059. * src/HelpItemFactory.cc
  4060. * src/option_processing.cc
  4061. * src/prefs.h
  4062. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  4063. before calling RequestGroupMan::fillRequestGroupFromReserver().
  4064. Without this modification, the result list shows "ERR" when aria2 is
  4065. stopped by --stop option. It should be "INPR".
  4066. * src/DownloadEngine.{h, cc}
  4067. * src/DownloadEngineFactory.cc
  4068. * src/usage_text.h
  4069. * src/TimedHaltCommand.{h, cc}: New class.
  4070. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4071. Bootstrap through node added by port message.
  4072. Currently bootstrap is executed if the number of buckets in routing
  4073. table is 1.
  4074. * src/BtPortMessage.{h, cc}
  4075. * src/DefaultBtMessageFactory.{h, cc}
  4076. * src/PeerInteractionCommand.cc
  4077. * test/BtPortMessageTest.cc
  4078. * test/MockDHTTask.h
  4079. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Extract the Peer class's member variables, which are only needed after
  4081. PeerInteractionCommand, into PeerSessionResource class.
  4082. This class is instantiated in PeerInteractionCommand class's ctor and
  4083. released in its dtor.
  4084. This will make Peer class lightweight and uses less memory for peers
  4085. which are not connected and wait in the queue.
  4086. * src/PeerChokeCommand.cc
  4087. * src/PeerSessionResource.{h, cc}
  4088. * src/PeerInteractionCommand.cc
  4089. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  4090. * src/DefaultBtInteractive.cc
  4091. * src/BtPieceMessage.cc
  4092. * src/BtInterestedMessage.cc
  4093. * src/BtUnchokeMessage.cc
  4094. * src/DefaultPeerStorage.{h, cc}
  4095. * src/PeerInitiateConnectionCommand.cc
  4096. * src/ActivePeerConnectionCommand.cc
  4097. * src/BtNotInterestedMessage.cc
  4098. * src/DefaultBtMessageDispatcher.cc
  4099. * src/BtChokeMessage.cc
  4100. * src/BtRequestMessage.cc
  4101. * src/Peer.{h, cc}
  4102. * src/BtRegistry.h
  4103. * src/TrackerWatcherCommand.cc
  4104. * src/PeerReceiveHandshakeCommand.cc
  4105. * test/BtExtendedMessageTest.cc
  4106. * test/BtAllowedFastMessageTest.cc
  4107. * test/BtCancelMessageTest.cc
  4108. * test/DefaultPieceStorageTest.cc
  4109. * test/BtBitfieldMessageTest.cc
  4110. * test/BtHaveMessageTest.cc
  4111. * test/BtNotInterestedMessageTest.cc
  4112. * test/BtRequestMessageTest.cc
  4113. * test/PeerSessionResourceTest.cc
  4114. * test/DefaultBtMessageDispatcherTest.cc
  4115. * test/PeerTest.cc
  4116. * test/BtInterestedMessageTest.cc
  4117. * test/BtRejectMessageTest.cc
  4118. * test/BtChokeMessageTest.cc
  4119. * test/DefaultPeerStorageTest.cc
  4120. * test/BtHaveNoneMessageTest.cc
  4121. * test/BtHaveAllMessageTest.cc
  4122. * test/DefaultExtensionMessageFactoryTest.cc
  4123. * test/BtUnchokeMessageTest.cc
  4124. * test/DefaultBtMessageFactoryTest.cc
  4125. * test/HandshakeExtensionMessageTest.cc
  4126. * test/UTPexExtensionMessageTest.cc
  4127. * test/DefaultBtRequestFactoryTest.cc
  4128. * test/BtPieceMessageTest.cc
  4129. Removed typedef PeerStats.
  4130. * src/PeerStat.h
  4131. * src/SegmentMan.cc
  4132. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Added std namespace to copy, remove_copy, back_inserter,
  4134. front_inserter.
  4135. * src/RequestGroupMan.cc
  4136. * src/DefaultPieceStorage.cc
  4137. * src/StreamFileAllocationEntry.cc
  4138. * src/BtFileAllocationEntry.cc
  4139. * src/RequestGroup.cc
  4140. * src/MetalinkEntry.cc
  4141. * src/DelegatingPeerListProcessor.cc
  4142. * src/DefaultBtRequestFactory.cc
  4143. * src/DefaultBtMessageDispatcher.cc
  4144. * src/version_usage.cc: Included <algorithm>
  4145. * src/main.cc
  4146. * src/MetalinkParserController.cc
  4147. * src/DefaultBtContext.cc
  4148. * src/DownloadEngineFactory.cc
  4149. * src/a2algo.h
  4150. Removed.
  4151. * test/StreamUriListParserTest.cc
  4152. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4154. ActivePeerConnectionCommand when it is given and
  4155. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4156. * src/ActivePeerConnectionCommand.{h, cc}
  4157. * src/BtSetup.cc
  4158. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4159. Only add socket to DownloadEngine's select routine when peer or
  4160. localhost is unchoked and interested. This lowers CPU usage a
  4161. little bit.
  4162. * src/PeerInteractionCommand.cc
  4163. * src/PeerAbstractCommand.{h, cc}
  4164. * src/BtInteractive.h
  4165. * src/DefaultBtInteractive.{h, cc}
  4166. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Revert previous change because get_peers message is needed for
  4168. announce_peer anyway.
  4169. * src/DHTGetPeersCommand.cc
  4170. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4171. Request peers thought DHT only when download hasn't finished.
  4172. * src/DHTGetPeersCommand.cc
  4173. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4174. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4175. * src/DHTBucketRefreshTask.{h, cc}
  4176. * src/DHTSetup.cc
  4177. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4179. standard classes.
  4180. Included string.h where mem* function are used.
  4181. Added namespace aria2.
  4182. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4183. Create directory before saving DHT routing table.
  4184. Now ios::failure is now handled properly.
  4185. * src/DHTAutoSaveCommand.cc
  4186. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4187. Removed unnecessary cerr.
  4188. * src/DownloadEngine.cc
  4189. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Catch exception inside DHTMessageReceiver::receiveMessage().
  4191. Log unknown message.
  4192. * src/DHTMessageReceiver.{h, cc}
  4193. * src/DHTMessageFactory.h
  4194. * src/DHTMessageFactoryImpl.{h, cc}
  4195. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4196. * src/DHTInteractionCommand.cc
  4197. * src/DHTUnknownMessage.{h, cc}
  4198. * test/DHTUnknownMessageTest.cc
  4199. * test/MockDHTMessageFactory.h
  4200. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Commented out ip address comparison because a host can have multiple
  4202. ip addresses and it is hard to predict the hostname is resolved into
  4203. which one.
  4204. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4205. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. * po/Makefile.in: Removed since this is generated by configure.
  4207. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4208. Fixed compiler warning about redefinition of SIZE_MAX.
  4209. Use common.h instead of config.h directly here.
  4210. * src/Platform.{h, cc}
  4211. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4212. here.
  4213. * common.h
  4214. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  4215. Updated gettext related files.
  4216. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4217. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4218. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Added DHT functionality, compatible with mainline.
  4220. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4221. You may need to specify entry point to DHT network using
  4222. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4223. Use --dht-listen-port to specify port number. Make sure that your
  4224. firewall configuration can pass through UDP traffic to the port.
  4225. The routing table is saved in $HOME/.aria2/dht.dat.
  4226. * src/DHT*
  4227. * src/BNode.{h, cc}
  4228. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4229. particular torrent.
  4230. * src/Data.cc: Rewritten ctor.
  4231. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4232. --dht-entry-point.
  4233. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4234. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4235. ends, remove BtContext from DHTPeerAnnounceStorage.
  4236. * src/BtPortMessage.{h, cc}: Rewritten.
  4237. * src/message.h
  4238. * src/OptionHandlerImpl.cc
  4239. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  4240. --dht-entry-point.
  4241. * src/Dictionary.{h, cc} (remove): New function.
  4242. * src/prefs.h
  4243. * src/DefaultBtMessageFactory.h
  4244. * src/BtHandshakeMessage.cc
  4245. * src/ActivePeerConnectionCommand.cc
  4246. * src/SocketCore.{h, cc}: Added datagram socket support.
  4247. * src/DefaultBtMessageFactory.cc
  4248. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  4249. Create DHT commands.
  4250. * src/BtMessageFactory.h
  4251. * src/PeerMessageUtil.{h, cc}
  4252. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Fixed the bug that log file is not written when configuration file doesn't exist.
  4254. This is caused by using Logger class before LogFactory is not configured.
  4255. BUG #1875079
  4256. * src/option_processing.cc
  4257. Warning message "configuration doesn't exist" is only printed when --conf is
  4258. given.
  4259. * src/option_processing.cc
  4260. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4261. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  4262. ShaVisitor is now deprecated and slated to be removed.
  4263. * src/DefaultBtContext.cc
  4264. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4265. Externalize message to message.h
  4266. * src/Platform.cc
  4267. * src/message.h
  4268. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4269. Set default domain and default path to cookie.
  4270. * src/HttpResponse.cc
  4271. * src/CookieBox.{h, cc}
  4272. * src/CookieParser.{h, cc}
  4273. * test/CookieParserTest.cc
  4274. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4275. Added --no-conf and --conf-path command-line option.
  4276. --no-conf option disables loading aria2.conf file.
  4277. --conf-path option changes the configuration file path. The default
  4278. file path is $HOME/.aria2/aria2.conf
  4279. Added a warning message when the configuration file is not found.
  4280. * src/HelpItemFactory.cc
  4281. * src/option_processing.cc
  4282. * src/prefs.h
  4283. * src/usage_text.h
  4284. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Added the message to inform users that other help categories are
  4286. available in -h option.
  4287. * src/version_usage.cc
  4288. * src/TagContainer.{h, cc}
  4289. * test/TagContainerTest.cc
  4290. * src/TaggedItem.{h, cc}
  4291. * test/TaggedItemTest.cc
  4292. * src/HelpItem.h
  4293. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4294. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  4295. from PiecedSegment's ctor.
  4296. Previously Piece::getAllMissingBlockIndexes() is called from
  4297. PiecedSegment() but it is rather expensive since only first element is
  4298. used.
  4299. * src/PiecedSegment.cc
  4300. * src/Piece.{h, cc}
  4301. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4302. Rewritten get*Missing*Index functions. Now no need to allocate memory
  4303. each time these functions are called.
  4304. * src/BitfieldMan.{h, cc}
  4305. * test/BitfieldManTest.cc
  4306. * src/array_fun.h
  4307. * test/array_funTest.cc
  4308. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  4309. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  4310. filtered. Removed unnecessary cast to int32_t.
  4311. * src/BitfieldMan.{h, cc}
  4312. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4313. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  4314. payload length(4bytes) are received. This happens because lenbufLength
  4315. is not updated in this particular case and successive call of
  4316. receiveMessage() overwrites payload length with bytes recieved which
  4317. are payload body.
  4318. * src/PeerConnection.{h, cc}
  4319. * src/message.h
  4320. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  4322. peer if there are peers that have same ipaddr and port.
  4323. I've experiened segmentation fault and "pure virtual function was
  4324. called" error.
  4325. * src/Peer.h
  4326. * test/PeerTest.cc
  4327. * src/DefaultPeerStorage.cc
  4328. * test/DefaultPeerStorageTest.cc
  4329. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Removed a call to isPowerOf() because it is no longer necessary here
  4331. and a request block is not always power of 2.
  4332. BUG#1866924
  4333. * src/PeerMessageUtil.cc (checkLength)
  4334. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Fixed the bug that always first found Segment is removed from
  4336. usedSegmentEntries. Removed unused functions.
  4337. * src/SegmentMan.{h, cc}
  4338. * test/SegmentManTest.cc
  4339. Fixed the bug that ServerHost is not removed.
  4340. * src/RequestGroup.cc
  4341. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4342. Fixed the bug that SegmentMan::completeSegment() is not called
  4343. even if Segment is complete when --lowest-speed-limit is enabled.
  4344. BUG#1864525
  4345. * src/DownloadCommand.{h, cc}
  4346. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Fixed: hash algorithm 'sha1' is always used.
  4348. * src/DownloadCommand.cc (validatePieceHash)
  4349. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Added --enable-peer-exchange command-line option.
  4351. * src/OptionHandlerFactory.cc
  4352. * src/HelpItemFactory.cc
  4353. * src/option_processing.cc
  4354. * src/usage_text.h
  4355. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4356. Move extension from BtRuntime to ExtensionMessageFactory, because
  4357. extension can be specified per peer, not per torrent.
  4358. * src/DefaultBtInteractive.cc
  4359. * src/BtRuntime.h
  4360. * src/ExtendedMessagingAware.h
  4361. * src/ExtensionMessageFactory.h
  4362. * src/DefaultExtensionMessageFactory.cc
  4363. * test/DefaultExtensionMessageFactoryTest.cc
  4364. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4365. Added categorized option help. Specify category using --help option.
  4366. Also added the ability to search options in forward match.
  4367. * src/HelpItem.{h, cc}
  4368. * test/HelpItemTest.cc
  4369. * src/HelpItemFactory.{h, cc}
  4370. * src/TagContainer.{h, cc}
  4371. * test/TagContainerTest.cc
  4372. * src/option_processing.cc
  4373. * src/prefs.h
  4374. * src/TaggedItem.{h, cc}
  4375. * test/TaggedItemTest.cc
  4376. * src/version_usage.cc
  4377. * src/help_tags.h
  4378. * src/usage_text.h
  4379. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4380. Fixed segmentation fault when bad torrent metainfo is parsed.
  4381. Added dynamic_cast properly to detect the misconfiguration of metainfo
  4382. and then throw exception or skip it.
  4383. * src/DefaultBtContext.{h, cc}
  4384. * test/DefaultBtContextTest.cc
  4385. * src/AnnounceList.cc
  4386. * src/CompactPeerListProcessor.cc
  4387. * src/message.h
  4388. * src/DefaultBtAnnounce.{h, cc}
  4389. * test/DefaultBtAnnounceTest.cc
  4390. * src/BencodeVisitor.cc
  4391. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4392. Added missing "B"(=Byte). So now the message looks like this:
  4393. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  4394. * src/message.h (MSG_SHARE_RATIO_REPORT)
  4395. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4396. Show the seed ratio after torrent downloads.
  4397. For example, after torrent download completed and --seed-time and
  4398. --seed-ratio conditions are fulfilled, following message is printed
  4399. right after "Download complete: .....":
  4400. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  4401. * src/RequestGroupMan.cc
  4402. * src/RequestGroup.{h, cc}
  4403. * src/message.h
  4404. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4405. Remove a defunct control file. A defunct control file means that while
  4406. it exists, but the corresponding download file is missing.
  4407. After its removal, a download restarts from the beginning.
  4408. * src/RequestGroup.cc
  4409. * src/message.h
  4410. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Allocate bitfield in Peer when it is really used. More specifically,
  4412. bitfield in Peer is allocated after the connection is established and
  4413. deallocated when the connection is dropped.
  4414. Since 2 parameters(piece length and total length) was removed from the
  4415. constructor of Peer class, many test classes were modified accordingly.
  4416. See svn log for more detailed information.
  4417. * src/PeerInteractionCommand.cc
  4418. * src/CompactPeerListProcessor.cc
  4419. * src/Peer.cc
  4420. * src/DefaultPeerListProcessor.cc
  4421. * src/PeerListenCommand.cc
  4422. * src/PeerReceiveHandshakeCommand.cc
  4423. Fixed memory leak
  4424. * src/Piece.cc
  4425. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  4427. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  4428. command-line options.
  4429. * src/option_processing.cc
  4430. * src/ActivePeerConnectionCommand.cc
  4431. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4432. Send have message to peer if it already has the piece.
  4433. * src/BtHaveMessage.{h, cc}
  4434. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4436. port.
  4437. * src/DefaultPeerStorage.{h, cc}
  4438. * test/DefaultPeerStorageTest.cc
  4439. * src/HandshakeExtensionMessage.cc
  4440. * test/HandshakeExtensionMessageTest.cc
  4441. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4442. * src/PeerStorage.h
  4443. * test/MockPeerStorage.h
  4444. * src/PeerListenCommand.cc
  4445. * src/PeerReceiveHandshakeCommand.cc
  4446. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4447. Added --metalink-enable-unique-protocol option.
  4448. * src/Metalink2RequestGroup.cc
  4449. * src/option_processing.cc
  4450. * src/prefs.h
  4451. * src/version_usage.cc
  4452. * doc/aria2c.1.txt
  4453. * doc/aria2c.1
  4454. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Allow a peer in incomingPeer to be added peers.
  4456. * src/DefaultPeerStorage.cc
  4457. * test/DefaultPeerStorageTest.cc
  4458. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4459. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4460. I could reproduce this bug in following procedure:
  4461. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4462. 2. Restart aria2.
  4463. 3. You see the download stopped around 99%.
  4464. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4465. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4466. If timeout is reached, then _nextCommand is unused and it may contains
  4467. segments and they won't be canceled. Actually, timeout is not needed
  4468. here because if the server dropped connection, then retry is made.
  4469. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4470. Added uTorrent compatible Peer Exchange.
  4471. * src/BencodeVisitor.{h, cc}
  4472. * test/BencodeVisitorTest.cc
  4473. * src/BtConstants.h
  4474. * src/BtContext.h: Added 'private' flag.
  4475. * src/BtExtendedMessage.{h, cc}
  4476. * test/BtExtendedMessageTest.cc
  4477. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4478. reserved field.
  4479. * test/BtHandshakeMessageTest.cc
  4480. * src/BtMessageFactory.h
  4481. * src/BtRegistry.h
  4482. * src/BtRuntime.h: This class holds default extension message IDs for
  4483. aria2. By default, aria2 uses ID 8 for ut_pex.
  4484. * src/DefaultBtContext.cc
  4485. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4486. When it is true, aria2 enables ut_pex. This value is set by
  4487. PeerInteractionCommand.
  4488. * src/DefaultBtMessageFactory.{h, cc}
  4489. * test/DefaultBtMessageFactoryTest.cc
  4490. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4491. handling to DefaultBtInteractive class.
  4492. * src/DefaultExtensionMessageFactory.{h, cc}
  4493. * test/DefaultExtensionMessageFactoryTest.cc
  4494. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4495. the container(peers and incomingPeers. The equality is determined by
  4496. Peer::id).
  4497. * test/DefaultPeerStorageTest.cc
  4498. * src/ExtensionMessage.h
  4499. * test/MockExtensionMessage.h
  4500. * src/ExtensionMessageFactory.h
  4501. * test/MockExtensionMessageFactory.h
  4502. * src/HandshakeExtensionMessage.{h, cc}
  4503. * test/HandshakeExtensionMessageTest.cc
  4504. * src/MetaEntry.h
  4505. * src/Peer.{h, cc}
  4506. * src/PeerInteractionCommand.cc
  4507. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4508. addIncomingPeer.
  4509. * src/PeerMessageUtil.{h, cc}
  4510. * src/PeerObject.h
  4511. * src/UTPexExtensionMessage.{h, cc}
  4512. * test/UTPexExtensionMessageTest.cc
  4513. * src/message.h
  4514. * src/prefs.h
  4515. Fixed the bug that returns incomplete data when it contains null
  4516. character. A convenient constructor was also added.
  4517. * src/Data.{h, cc}
  4518. Rewritten.
  4519. * src/CompactPeerListProcessor.cc
  4520. Fixed typos.
  4521. * src/message.h
  4522. * src/MetaFileUtil.cc
  4523. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Added "Status Legend" label to the explanation text of 'stat' in
  4525. download result and moved it to the last. BUG#1848214
  4526. * src/RequestGroupMan.cc
  4527. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4528. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4529. * src/Makefie.am
  4530. * test/Makefile.am
  4531. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4532. Fixed the bug that prevents aria2 from loading cookie file when expire
  4533. value is greater than 2^31-1. BUG#1851066
  4534. * src/CookieBoxFactory.cc
  4535. * test/CookieBoxFactoryTest.cc
  4536. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Fixed possible memory leak when an exception is thrown.
  4538. * src/XML2SAXMetalinkProcessor.cc
  4539. Added Expat support. If both libxml2 and Expat are installed, then
  4540. libxml2 is used by default.
  4541. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4542. ExpatMetalinkProcessor according to the configuration.
  4543. * src/ExpatMetalinkProcessor.{h, cc}
  4544. * src/main.cc: Removed libxml2 specific header and init/free function.
  4545. * src/MetalinkProcessorFactory.{h, cc}
  4546. * src/MetalinkHelper.cc
  4547. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4548. * src/MetalinkProcessor.h
  4549. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4550. MetalinkProcessorTest is used instead.
  4551. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4552. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4553. MetalinkProcessorFactory::newInstance().
  4554. * m4/libexpat.m4
  4555. * configure.ac: Added configuration options for libexpat.
  4556. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Disabled -s option in metalink download.
  4558. * src/Metalink2RequestGroup.cc
  4559. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. If several protocols are available for a mirror in metalink file,
  4561. aria2 now use one of them. --metalink-preferred-protocol option was
  4562. added to specify the preference of protocol.
  4563. * src/AbstractCommand.cc
  4564. * src/OptionHandlerFactory.cc
  4565. * src/ServerHost.{h, cc}
  4566. * src/Metalink2RequestGroup.cc
  4567. * src/RequestGroup.{h, cc}
  4568. * test/RequestGroupTest.cc
  4569. * src/option_processing.cc
  4570. * src/prefs.h
  4571. * src/HttpResponseCommand.cc
  4572. * src/MetalinkResource.{h, cc}
  4573. * src/FtpNegotiationCommand.cc
  4574. * src/MetalinkEntry.{h, cc}
  4575. * src/MetalinkEntryTest.cc
  4576. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. Code cleanup and added debug log.
  4578. * src/PeerConnection.cc
  4579. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Compiler error fix: applied the patch by Tiziano Mueller
  4581. * src/RequestGroup.cc
  4582. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4584. in stopped and completed event.
  4585. * src/AnnounceList.{h, cc}
  4586. * test/AnnounceListTest.cc
  4587. * src/DefaultBtAnnounce.cc
  4588. * test/DefaultBtAnnounceTest.cc
  4589. Sorted URLs.
  4590. * test/Metalink2RequestGroupTest.cc
  4591. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Removed unnecessary string copy. Updated doc and corrected indentation.
  4593. * src/Base64.cc
  4594. Fixed compilation warnings
  4595. * test/DataTest.cc
  4596. * test/HttpRequestTest.cc
  4597. * test/MetaFileUtilTest.cc
  4598. * test/RequestTest.cc
  4599. * Release 0.12.0
  4600. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Updated translations
  4602. * po/{de,fr,ja,nl,ru}.po
  4603. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4604. translations. Many thanks to translators.
  4605. * po/{ca,es,it,pt_BR,sv}.po
  4606. * po/LINGUAS
  4607. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Added a notice about URL
  4609. * src/version_usage.cc
  4610. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4611. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4612. aria2 repeatedly sends stopped request when tracker returns error code.
  4613. * src/AnnounceList.cc
  4614. * test/AnnounceListTest.cc
  4615. * src/AnnounceTier.h
  4616. Added a message when ctrl-c is hit.
  4617. Now second ctrl-c is also handled in signal handler.
  4618. * src/RequestGroupMan.{h, cc}
  4619. * src/RequestGroup.{h, cc}
  4620. * src/MultiUrlRequestInfo.cc
  4621. * src/DownloadEngine.cc
  4622. * src/TrackerWatcherCommand.cc
  4623. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Code cleanup
  4625. * src/Base64.cc (encode)
  4626. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Changed Direct/IO enable/disable procesure in file allocation routine.
  4628. * src/SingleFileAllocationIterator.cc
  4629. (SingleFileAllocationIterator):
  4630. Disable directIO if offset is not multiple of 512.
  4631. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4632. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4633. Enable created SingleFileAllocationIterator's directIO.
  4634. * src/FileAllocationEntry.cc
  4635. (FileAllocationEntry): Enable directIO here.
  4636. (~FileAllocationEntry): Disable directIO here.
  4637. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4639. * src/Peer.{h, cc}
  4640. * src/DefaultPieceStorage.cc
  4641. * test/DefaultPieceStorageTest.cc
  4642. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Rewritten direct I/O support routine
  4644. * src/SingleFileAllocationIterator.cc
  4645. * src/MultiDiskAdaptor.{h, cc}
  4646. * src/ByteArrayDiskWriter.h
  4647. * src/AbstractSingleDiskAdaptor.h
  4648. * src/AbstractDiskWriter.cc
  4649. * src/DefaultPieceStorage.cc
  4650. * src/DiskWriter.h
  4651. * src/BinaryStream.h
  4652. * src/IteratableChunkChecksumValidator.cc
  4653. * src/IteratableChecksumValidator.cc
  4654. * src/CheckIntegrityEntry.cc
  4655. * src/FileAllocationEntry.cc
  4656. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Fixed typo
  4658. * src/version_usage.cc
  4659. Updated doc
  4660. * doc/aria2c.1.txt
  4661. * doc/aria2c.1
  4662. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Fixed compile error without message digest support.
  4664. * src/FileMetalinkParserState.cc
  4665. * src/MetalinkParserController.{h, cc}
  4666. * test/XML2SAXMetalinkProcessorTest.cc
  4667. * test/MetalinkParserControllerTest.cc
  4668. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Enable direct I/O support in checksum checking.
  4670. * src/IteratableChunkChecksumValidator.{h, cc}
  4671. * test/IteratableChunkChecksumValidatorTest.cc
  4672. * src/CheckIntegrityEntry.cc
  4673. * src/PieceHashCheckIntegrityEntry.cc
  4674. * src/IteratableChecksumValidator.{h, cc}
  4675. * src/BtCheckIntegrityEntry.cc: Added doc.
  4676. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4677. Added --allow-piece-length-change option.
  4678. * src/DefaultBtProgressInfoFile.cc
  4679. * test/DefaultBtProgressInfoFileTest.cc
  4680. * src/OptionHandlerFactory.cc
  4681. * src/option_processing.cc
  4682. * src/prefs.h
  4683. * src/version_usage.cc
  4684. * doc/aria2c.1.txt
  4685. * doc/aria2c.1
  4686. Fixed: duplicated result entry appears when exception is thrown in
  4687. RequestGroup::createInitiateConnectionCommand().
  4688. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4689. Add RequestGroup to _requestGroup after RequetGroup::
  4690. createInitiateConnectionCommand() succeeds.
  4691. Externalized message
  4692. * src/XML2SAXMetalinkProcessor.cc
  4693. * src/message.h
  4694. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. Forced download abort when received negative response from http/ftp
  4696. server.
  4697. * src/HttpResponseCommand.cc
  4698. * src/FtpNegotiationCommand.cc
  4699. * src/HttpResponse.cc
  4700. * src/FtpConnection.cc
  4701. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4703. the predecessor, Xml2MetalinkParser class.
  4704. I tested them against 94KB metalink file with 1234 chunk checksums.
  4705. The new one parsed it in 22msec, while it took 6000msec with old one.
  4706. * src/XML2SAXMetalinkProcessor.{h, cc}
  4707. * test/XML2SAXMetalinkProcessorTest.cc
  4708. * src/MetalinkParserController.{h, cc}
  4709. * test/MetalinkParserControllerTest.cc
  4710. * src/MetalinkParserState.h: Also added 16 subclasses.
  4711. * src/main.cc
  4712. * src/Metalink2RequestGroup.cc
  4713. * src/MetalinkHelper.cc
  4714. * src/MetalinkEntry.cc
  4715. * src/ChunkChecksum.h
  4716. Rewritten Base64 class for better performance.
  4717. * src/Base64.{h, cc}
  4718. * test/Base64Test.cc
  4719. * src/HttpRequest.cc
  4720. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Fixed the bug#1841757: aria2 will connect to server to only get
  4722. file size.
  4723. * src/StreamFileAllocationEntry.cc
  4724. * src/option_processing.cc
  4725. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4726. downloads.
  4727. * src/FtpNegotiationCommand.cc
  4728. Suppressed wrong message when finding PreDownloadHandler
  4729. * src/RequestGroup.cc
  4730. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Updated usage
  4732. * src/version_usage.cc
  4733. Updated man page
  4734. * doc/aria2c.1.txt
  4735. * doc/aria2c.1
  4736. Updated po files
  4737. * po/aria2c.pot
  4738. * po/*.po
  4739. * po/*.gmo
  4740. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Eliminated g++-4.2 warning
  4742. * src/DownloadHandlerConstants.{h, cc}
  4743. * src/Util.cc
  4744. * test/MetaFileUtilTest.cc
  4745. * test/PStringBuildVisitorTest.cc
  4746. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4747. * src/RequestGroup.cc
  4748. * src/BtCheckIntegrityEntry.cc
  4749. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Fixed a2io.h
  4751. * src/a2io.h
  4752. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Added direct I/O support. The current implementation uses O_DIRECT,
  4754. which is not posix standard and is tested on linux 2.6.21.
  4755. Currently only file allocation uses direct I/O.
  4756. * src/SingleFileAllocationIterator.{h, cc}
  4757. * test/SingleFileAllocationIteratorTest.cc
  4758. * src/MultiFileAllocationIterator.{h, cc}
  4759. * test/MultiFileAllocationIteratorTest.cc
  4760. * src/BinaryStream.h
  4761. * src/DiskWriter.h
  4762. * src/AbstractDiskWriter.{h, cc}
  4763. * src/ByteArrayDiskWriter.h
  4764. * src/DiskAdaptor.h
  4765. * src/AbstractSingleDiskAdaptor.{h, cc}
  4766. * src/MultiDiskAdaptor.{h, cc}
  4767. * src/FileAllocationEntry.cc
  4768. * src/Util.{h, cc}
  4769. * src/OptionHandlerFactory.cc
  4770. * src/prefs.h
  4771. * src/version_usage.cc
  4772. * src/option_processing.cc
  4773. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  4774. handleException.
  4775. * src/MultiFileAllocationIterator.cc
  4776. Added EINTR handling
  4777. * src/SocketCore.cc
  4778. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Updated usage
  4780. * src/version_usage.cc
  4781. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4782. Applied Ross's patch for MinGW port.
  4783. * src/DownloadEngine.h
  4784. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. Set Content-Type to SingleFileDownloadContext when http response is
  4786. received.
  4787. * src/HttpResponseCommand.cc
  4788. * src/HttpResponse.{h, cc}
  4789. * test/HttpResponseTest.cc
  4790. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4791. Rewritten to add content-type support.
  4792. * src/DownloadHandler.{h, cc}
  4793. * src/BtPostDownloadHandler.{h, cc}
  4794. * test/BtPostDownloadHandlerTest.cc
  4795. * src/MetalinkPostDownloadHandler.{h, cc}
  4796. * test/MetalinkPostDownloadHandlerTest.cc
  4797. * src/PostDownloadHandler.{h, cc}
  4798. * src/DownloadHandlerConstants.{h, cc}
  4799. * src/RequestGroup.cc
  4800. * src/HttpResponseCommand.cc
  4801. * src/FtpNegotiationCommand.cc
  4802. * src/SingleFileDownloadContext.{h, cc}
  4803. * src/RequestGroup.h
  4804. * src/RequestGroupCriteria.h
  4805. * src/ContentTypeRequestGroupCriteria.h
  4806. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4807. If it is give, metalink/torrent file is not written to the disk, but
  4808. just is kept in memory. Parsing is occurred on memory.
  4809. * src/MetalinkHelper.{h, cc}
  4810. * src/MetalinkProcessor.h
  4811. * src/Xml2MetalinkProcessor.{h, cc}
  4812. * test/Xml2MetalinkProcessorTest.cc
  4813. * src/DownloadHandlerFactory.{h, cc}
  4814. * test/DownloadHandlerFactoryTest.cc
  4815. * src/PreDownloadHandler.{h, cc}
  4816. * src/OptionHandlerFactory.cc
  4817. * src/DefaultBtContext.{h, cc}
  4818. * test/DefaultBtContextTest.cc
  4819. * src/version_usage.cc
  4820. * src/Metalink2RequestGroup.{h, cc}
  4821. * src/RequestGroup.{h, cc}
  4822. * src/a2functional.h
  4823. * test/a2functionalTest.cc
  4824. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4825. * src/OptionHandlerImpl.h
  4826. * src/prefs.h
  4827. * src/Util.{h, cc}
  4828. * test/UtilTest.cc
  4829. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4830. memory usage.
  4831. * src/RequestGroupMan.{h, cc}
  4832. * src/DownloadEngine.cc
  4833. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4834. WeakHandle to SharedHandle because WeakHandle could be null.
  4835. * src/RequestGroup.{h, cc}
  4836. * src/DownloadEngineFactory.cc
  4837. * src/DownloadResult.h
  4838. Set totalLength after download finished
  4839. * src/UnknownLengthPieceStorage.{h, cc}
  4840. Keep torrent file specified in metalink in memory.
  4841. * src/Metalink2RequestGroup.cc
  4842. * src/BtDependency.cc
  4843. * src/TrueRequestGroupCriteria.h
  4844. Fixed the bug: seekg is used where seekp should be used.
  4845. * src/ByteArrayDiskWriter.cc
  4846. * test/ByteArraydiskWriterTest.cc
  4847. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Fixed syntax error
  4849. * test/SequenceTest.cc
  4850. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4852. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4853. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4854. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4855. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4856. Added the check to see whether ares_host_callback accepts timeouts
  4857. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4858. * src/NameResolver.{h, cc}
  4859. * m4/libcares.m4
  4860. * configure.ac: Set C++ for language choice.
  4861. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. Fixed: compilation fails without c-ares/ares
  4863. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4864. Generate http/ftp commands only when download is incomplete.
  4865. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4866. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4867. Corrected typo. Examples are removed since they are available in man
  4868. page.
  4869. * src/version_usage.cc
  4870. Updated man page.
  4871. * doc/aria2c.1
  4872. * doc/aria2c.1.txt
  4873. * doc/makeman: Commented out sed command.
  4874. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. Throw DlAbortEx when a remote file is not found.
  4876. * src/HttpResponse.cc
  4877. * src/FtpNegotiationCommand.cc
  4878. * src/message.h
  4879. Overwrite an existing file if --allow-overwrite=true is given.
  4880. * src/RequestGroup.cc
  4881. Removed unused functions
  4882. * src/AbstractCommand.h
  4883. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Removed 'extern' from 'extern typedef ...' in src/*.h
  4885. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Updated usage
  4887. * src/version_usage.cc
  4888. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Trim announce URL
  4890. * src/DefaultBtContext.cc
  4891. * test/ShaVisitorTest.cc
  4892. Trim argument s. Give trimed s to exception constructor.
  4893. * src/Util.cc (parseInt)(parseLLInt)
  4894. * test/UtilTest.cc
  4895. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Set precision back to 1.
  4897. * src/ConsoleStatCalc.cc (calculateStat)
  4898. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Replaced strtol with Util::parseInt
  4900. * src/ChunkedEncoding.cc
  4901. * src/HttpConnection.cc
  4902. * src/CookieBoxFactory.cc
  4903. * src/ParameterizedStringParser.cc
  4904. * src/Util.cc
  4905. * test/UtilTest.cc
  4906. * test/OptionHandlerTest.cc
  4907. * src/Request.cc
  4908. Throw exception when empty string is given. The message for exception
  4909. changed.
  4910. * src/Util.cc (parseInt)(parseLLInt)
  4911. * src/message.h
  4912. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4913. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4914. set to 1.
  4915. * src/ConsoleStatCalc.cc (calculateStat)
  4916. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Preallocate non-requested file which is adjacent forward to requested
  4918. file('requested' files means the files given in --select-file option)
  4919. if they share a same piece.
  4920. This fixes long pause in the file system which doesn't support sparse
  4921. files like FAT32 while downloading.
  4922. * src/MultiFileAllocationIterator.{h, cc}
  4923. * test/MultiFileAllocationIteratorTest.cc
  4924. * src/FileEntry.{h, cc}
  4925. Removed unused _option.
  4926. * src/MultiDiskAdaptor.h
  4927. * test/MultiDiskAdaptorTest.cc
  4928. * src/DefaultPieceStorage.cc
  4929. Set the default value of --seed-ratio to 1.0.
  4930. If 0.0 is given, then seeding continues regardless of share ratio.
  4931. * src/version_usage.cc
  4932. * src/option_processing.cc
  4933. * src/BtSetup.cc
  4934. * doc/aria2c.1.txt
  4935. * doc/aria2c.1
  4936. Fixed: Selective download is not working in BitTorrent
  4937. * src/RequestGroup.cc
  4938. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4939. * src/PieceStorage.h
  4940. * test/MockPieceStorage.h
  4941. * src/UnknownLengthPieceStorage.h
  4942. * src/DefaultPieceStorage.{h, cc}
  4943. * src/Metalink2RequestGroup.cc
  4944. * src/RequestGroup.cc
  4945. * src/Sequence.h
  4946. * test/SequenceTest.cc
  4947. * src/IntSequence.h
  4948. * src/message.h
  4949. * src/Util.{h, cc}
  4950. * test/UtilTest.cc
  4951. Added new function 'parse' to catch exception thrown by subclass's
  4952. parseArg
  4953. * src/OptionHandler.h
  4954. * src/OptionParser.cc
  4955. * src/NameMatchOptionHandler.h
  4956. * src/OptionHandlerImpl.h
  4957. * test/OptionHandlerTest.cc
  4958. Added IntegerRangeOptionHandler. Used for --listen-port and
  4959. --select-file. Now --listen-port accepts range of port.
  4960. * src/OptionHandlerFactory.cc
  4961. * src/version_usage.cc
  4962. * src/OptionHandlerImpl.h
  4963. * src/option_processing.cc
  4964. * src/BtSetup.cc
  4965. * src/PeerListenCommand.{h, cc}
  4966. * doc/aria2c.1.txt
  4967. * doc/aria2c.1
  4968. Implemented operator< for Exception class to provide easy way to print
  4969. exception stack trace.
  4970. * src/Exception.{h, cc}
  4971. * src/main.cc
  4972. * src/option_processing.cc
  4973. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. * src/version_usage.cc
  4975. (showVersion): Reworked.
  4976. (showUsage): Added examples.
  4977. Removed Hint for total length and file name.
  4978. * src/Metalink2RequestGroup.cc
  4979. * src/RequestGroup.{h, cc}
  4980. * src/HttpResponseCommand.cc
  4981. * src/FtpNegotiationCommand.cc
  4982. Now --follow-torrent and --follow-metalink option work properly.
  4983. * src/RequestGroup.cc
  4984. Updated man page
  4985. * doc/aria2c.1.txt
  4986. * doc/aria2c.1
  4987. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Removed.
  4989. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4990. Use Segment::operator==()
  4991. * src/HttpConnection.cc
  4992. * src/Segment.h
  4993. Updated usage
  4994. * src/version_usage.cc
  4995. Added EINTR treatment.
  4996. * src/SocketCore.cc
  4997. * src/AbstractDiskWriter.cc
  4998. Rewritten.
  4999. * src/Util.cc (rangedFileCopy)
  5000. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. Fixed typo.
  5002. * src/version_usage.cc
  5003. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5004. Implemented. Now -c option works fine.
  5005. * src/DefaultPieceStorage.cc (markPiecesDone)
  5006. * test/DefaultPieceStorageTest.cc
  5007. Removed.
  5008. * src/SegmentMan.{h, cc}
  5009. (markAllPiecesDone)
  5010. (markPieceDone)
  5011. Synchronized po files with
  5012. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  5013. * src/fr.po
  5014. * src/ru.po
  5015. * src/de.po
  5016. * src/ja.po
  5017. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Added ifdef and some modifications to compile without BitTorrent,
  5019. Metalink, MessageDigest
  5020. support.
  5021. * src/PieceHashCheckIntegrityEntry.cc
  5022. * src/MetalinkEntry.h
  5023. * src/version_usage.cc
  5024. * src/main.cc
  5025. * src/DownloadEngine.{h, cc}
  5026. * src/Metalink2RequestGroup.cc
  5027. * src/Peer.cc
  5028. * src/RequestGroup.cc
  5029. * src/MetalinkHelper.cc
  5030. * test/DefaultPieceStorageTest.cc
  5031. * test/MetalinkPostDownloadHandlerTest.cc
  5032. * test/Metalink2RequestGroupTest.cc
  5033. Hide TOTAL SPD when all downloads complete.
  5034. * src/ConsoleStatCalc.cc
  5035. Log target system information.
  5036. * src/main.cc
  5037. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5038. Now --metalink-location accepts a comma-deliminated list of locations.
  5039. * src/MetalinkEntry.{h, cc}
  5040. * test/MetalinkEntryTest.cc
  5041. * src/version_usage.cc
  5042. * src/Metalink2RequestGroup.cc
  5043. * src/Xml2MetalinkProcessor.cc
  5044. * test/Xml2MetalinkProcessorTest.cc
  5045. * doc/aria2c.1.txt
  5046. * doc/aria2c.1
  5047. * src/Util.cc (toUpper)(toLower): Rewritten.
  5048. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Added the ability to detect duplicate download entry which is about to
  5050. download the same file other RequestGroup is downloading.
  5051. * src/RequestGroup.cc
  5052. * src/HttpResponseCommand.cc
  5053. * src/FtpNegotiationCommand.cc
  5054. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5055. Recalculates download progress when loading a control file,
  5056. if the piece length of DownloadContext is different from the one saved
  5057. in the control file. Currently in-flight pieces are ignored.
  5058. * src/DefaultBtProgressInfoFile.cc
  5059. * test/DefaultBtProgressInfoFileTest.cc
  5060. * src/Util.{h, cc}
  5061. * test/UtilTest.cc
  5062. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Do not rotate tiers in announce-list.
  5064. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  5065. AnnounceList::allTiersFailed() used instead to detect whether all
  5066. tiers are tried and failed.
  5067. * test/DefaultBtAnnounceTest.cc
  5068. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  5069. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  5070. * test/AnnounceListTest.cc
  5071. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  5072. clause. Catch RecoverableException instead of DlRetryEx instead.
  5073. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Implemented checksum validation feature(1 checksum for each file)
  5075. The validation takes place after the download.
  5076. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  5077. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  5078. * src/CheckIntegrityCommand.cc: Changed log message.
  5079. * src/Metalink2RequestGroup.cc: Set checksum to
  5080. SingleFileDownloadContext.
  5081. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  5082. PieceHashCheckIntegrity class.
  5083. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  5084. PieceHashCheckIntegrity class.
  5085. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  5086. * src/IteratableValidator.h: New class.
  5087. * src/message.h
  5088. * src/CheckIntegrityEntry.{h, cc}
  5089. * src/IteratableChunkChecksumValidator.{h, cc}
  5090. * src/SingleFileDownloadContext.h
  5091. * src/DownloadCommand.cc
  5092. --allow-overwrite=true is no longer needed to check file integrity
  5093. before download in BitTorrent download.
  5094. * src/RequestGroup.cc (getInitialCommand)
  5095. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  5096. throws exception.
  5097. * src/RequestGroupMan.cc (getInitialCommands)
  5098. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. urlencode the given url inside Request::parseUrl(...)
  5100. * src/Request.{h, cc}
  5101. * src/Util.{h, cc}
  5102. * test/RequestTest.cc
  5103. Removed #!metalink3! notation support because it is deleted from
  5104. the metalink specification.
  5105. * src/Request.{h, cc}
  5106. * test/RequestTest.cc
  5107. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Don't connect server before checking file integrity at startup, if
  5109. filesize and output file path are known.
  5110. * src/AbstractCommand.cc
  5111. * src/StreamFileAllocationEntry.cc
  5112. * src/Metalink2RequestGroup.cc
  5113. * src/RequestGroup.{h, cc}
  5114. * src/HttpResponseCommand.cc
  5115. * src/FtpNegotiationCommand.cc
  5116. Added DownloadFailureException. If it is thrown, RequestGroup should
  5117. halt.
  5118. * src/AbstractCommand.cc
  5119. * src/DownloadFailureException.h
  5120. * src/RequestGroup.cc
  5121. Catch RecoverableException, instead of DlAbortEx.
  5122. * src/RequestGroupMan.cc
  5123. * src/FillRequestGroupCommand.cc
  5124. * src/MetaFileUtil.cc
  5125. * src/IteratableChunkChecksumValidator.cc
  5126. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  5127. getGID())
  5128. * src/CheckIntegrityCommand.cc
  5129. * src/message.h
  5130. Print gid instead of idx.
  5131. * src/RequestGroupMan.cc
  5132. Removed exception throwers declaration.
  5133. * src/DirectDiskAdaptor.{h, cc}
  5134. * src/SocketCore.{h, cc}
  5135. * src/MultiDiskAdaptor.{h, cc}
  5136. * src/HttpConnection.{h, cc}
  5137. * src/HttpResponse.{h, cc}
  5138. * src/DiskAdaptor.{h, cc}
  5139. * src/CopyDiskAdaptor.{h, cc}
  5140. * src/MultiDiskAdaptor.{h, cc}
  5141. * src/HttpHeaderProcessor.{h, cc}
  5142. * src/AbstractSingleDiskAdaptor.{h, cc}
  5143. * src/Util.{h, cc}
  5144. * test/UtilTest.cc
  5145. * src/DefaultDiskWriter.{h, cc}
  5146. * src/FtpConnection.{h, cc}
  5147. * src/AbstractDiskWriter.{h, cc}
  5148. Removed duplicate code.
  5149. * src/StreamCheckIntegrityEntry.cc
  5150. Removed unnecessary include.
  5151. * src/DiskWriter.h
  5152. Included Exception.h
  5153. * src/option_processing.cc
  5154. Included 2 files and added doc
  5155. * src/TrackerWatcherCommand.cc
  5156. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5157. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Changed CheckIntegrityEntry interface so that it can define
  5159. the action when all the chunk checksums are valid.
  5160. * src/CheckIntegrityEntry.h
  5161. * src/StreamCheckIntegrityEntry.{h, cc}
  5162. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5163. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5164. to exit rather than doing seeding. So, it would be good to toggle this
  5165. behavior.
  5166. * src/CheckIntegrityCommand.cc
  5167. * src/AbstractCommand.cc
  5168. * src/RequestGroup.cc
  5169. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5170. Reflect the download length of in-flight pieces.
  5171. It makes the download length readout more precise.
  5172. * src/DefaultPieceStorage.{h, cc}
  5173. * test/DefaultPieceStorageTest.cc
  5174. * src/a2functional.h
  5175. * test/a2functionalTest.cc
  5176. Lower CPU load when --max-download-limit is used.
  5177. There is up and down in speed indicator when enabling
  5178. http-pipelining but a download goes well. I think the problem is that
  5179. because http-pipelining is enabled, DownloadCommand is created for
  5180. each segment and in its constructor, PeerStat::downloadStart() is
  5181. called. In PeerStat::downloadStart(), speed calculation object is
  5182. reseted, which makes download speed zero.
  5183. * src/DownloadCommand.cc
  5184. Rewritten using accumulate.
  5185. * src/RequestGroupMan.cc (calculateStat)
  5186. Code clearnup.
  5187. * src/FtpNegotiationCommand.cc
  5188. * src/HttpResponseCommand.cc
  5189. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5190. Fixed: Can not resume: aria2 reports download already finished.
  5191. * src/AbstractCommand.{h, cc}
  5192. * src/HttpResponseCommand.cc
  5193. * src/FtpNegotiateCommand.cc
  5194. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. Now a file is stored in the directory specified in .metalnk file
  5196. (file[@name]).
  5197. * src/Metalink2RequestGroup.cc
  5198. Create the directory structure when opening the file if it doesn't
  5199. exist.
  5200. * src/AbstractDiskWriter.cc
  5201. * src/Util.{h, cc}
  5202. * src/File.h
  5203. * test/UtilTest.cc
  5204. Removed file name comparison
  5205. * src/Metalink2RequestGroup.cc
  5206. * src/HttpResponseCommand.cc
  5207. Rewritten using Util::mkdirs()
  5208. * src/FileEntry.cc (setupDir)
  5209. * test/FileEntryTest.cc
  5210. Updated doc
  5211. * src/SingleFileDownloadContext.h
  5212. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Now SleepCommand dispatches nextCommand when halt is requested.
  5214. It avoids a possible long wait after hitting CTRL-C.
  5215. * src/SleepCommand.{h, cc}
  5216. * src/RequestGroupAware.{h, cc}
  5217. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5219. to open listen port, then remove the port number from the tracker
  5220. request.
  5221. * src/DefaultBtAnnounce.cc
  5222. * test/DefaultBtAnnounceTest.cc
  5223. * test/MockPieceStorage.h
  5224. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5225. them more testable.
  5226. * src/DefaultBtAnnounce.{h, cc}
  5227. * src/DefaultBtContext.{h, cc}
  5228. * src/Util.{h, cc}
  5229. * test/DefaultBtAnnounceTest.cc
  5230. * test/DefaultBtContextTest.cc
  5231. * test/UtilTest.cc
  5232. Added 'B' to upload bytes readout.
  5233. * src/ConsoleStatCalc.cc
  5234. Now the listen port for BitTorrent download is opened when it is
  5235. needed.
  5236. * src/DownloadEngineFactory.cc
  5237. * src/BtSetup.{h, cc}
  5238. * src/PeerListenCommand.{h, cc}
  5239. Now an exception thrown while parsing tracker response is now logged.
  5240. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  5241. called, which means no retry is made in this case, assuming a tracker
  5242. has a problem.
  5243. * src/TrackerWatcherCommand.cc
  5244. Fixed: downloading a file whose length is unkown fails.
  5245. * src/DownloadCommand.cc
  5246. Simplified prepareForNextSegment()
  5247. * src/DownloadCommand.cc
  5248. Updated
  5249. * po/POTFILES.in
  5250. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5251. Re-implemented a file listing for Metalink, which was dropped while
  5252. http/ftp/torrent integration was being implemented.
  5253. * src/MetalinkHelper.{h, cc}: New class.
  5254. * test/MetalinkHelperTest.cc
  5255. * src/main.cc
  5256. * src/Metalink2RequestGroup.cc
  5257. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Added the ability to display the detailed torrent file information.
  5259. Now -S option gives not only a file listing, but also total download
  5260. length, info hash, announce URI, piece length, the number of pieces,
  5261. and mode(single or multi-torrent).
  5262. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  5263. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  5264. KiB)
  5265. * test/UtilTest.cc
  5266. * src/main.cc
  5267. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Added ftp://USER:PASSWD@Servername automatic parsing.
  5269. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  5270. _password. Recognize username and password in URI.
  5271. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  5272. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  5273. * src/RequestFactory.{h, cc}: Removed.
  5274. * src/AuthConfigFactory.{h, cc}: New class.
  5275. * src/FtpConnection.cc: Use AuthConfigFactory.
  5276. * src/HttpRequest.cc: Use AuthConfigFactory.
  5277. * test/HttpRequestTest.cc: Updated.
  5278. * test/RequestTest.cc: Updated.
  5279. * test/AuthConfigFactoryTest.cc: New class.
  5280. * test/RequestFactoryTest.cc: Removed.
  5281. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Use RequestGroup::allDownloadFinished() to decide whether the control
  5283. file should be removed or saved.
  5284. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  5285. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  5286. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. Use File::renameTo()
  5288. * src/DefaultBtProgressInfoFile.cc
  5289. Added --no-file-allocation-limit command-line option.
  5290. * src/version_usage.cc
  5291. * src/option_processing.cc
  5292. * src/OptionHandlerFactory.cc
  5293. * src/RequestGroup.{h, cc}
  5294. * src/BtCheckIntegrityEntry.cc
  5295. * src/StreamCheckIntegrityEntry.cc
  5296. * src/prefs.h
  5297. * doc/aria2c.1.txt
  5298. * doc/aria2c.1
  5299. Now prealloc is the default value for --file-allocation option.
  5300. * src/version_usage.cc
  5301. * src/option_processing.cc
  5302. * doc/aria2c.1.txt
  5303. * doc/aria2c.1
  5304. Don't URL-encode user-agent.
  5305. * src/HttpRequest.cc
  5306. Updated translations
  5307. * po/LINGUAS: Added nl for Dutch translation.
  5308. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  5309. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  5310. * po/POTFILES.in: Updated.
  5311. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Added the ability to recognize url-list in a torrent file.
  5313. The retrieved URLs are attached to the corresponding FileEntry.
  5314. * src/DefaultBtContext.{h, cc}
  5315. * src/FileEntry.{h, cc}
  5316. * test/DefaultBtContextTest.cc
  5317. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  5319. after the download finishes.
  5320. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  5322. the data smaller than block length.
  5323. A block length can be specified by constructor's argument.
  5324. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  5325. Get a missing piece in the range of given FileEntry. This function is
  5326. not used in the program yet.
  5327. * src/Util.h: Added some macros.
  5328. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Added HTTP/1.1 keep alive and pipelining support.
  5330. See --enable-http-keep-alive and --enable-http-pipelining option.
  5331. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  5332. Segment.
  5333. * src/HttpDownloadCommand.{h, cc}
  5334. * src/OptionHandlerFactory.cc
  5335. * src/HttpConnection.{h, cc}
  5336. * src/version_usage.cc
  5337. * src/HttpInitiateConnectionCommand.cc
  5338. * src/FtpInitiateConnectionCommand.cc
  5339. * src/Segment.h
  5340. * src/HttpRequestCommand.{h, cc}
  5341. * src/option_processing.cc
  5342. * src/prefs.h
  5343. * src/HttpResponseCommand.cc
  5344. * src/SegmentMan.{h, cc}
  5345. * src/FtpNegotiateCommand.cc
  5346. * src/HttpProxyResponseCommand.cc
  5347. * src/Request.cc
  5348. * src/HttpRequest.cc
  5349. * src/DownloadCommand.cc
  5350. * test/HttpRequestTest.cc
  5351. * test/RequestTest.cc
  5352. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5353. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  5354. finished.
  5355. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  5357. catching it inside the method.
  5358. When no file entry is found in a metalink without querying user
  5359. preferences, throw the exception with the error message that suggests
  5360. metalink file is probably broken.
  5361. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  5362. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5363. Fixed the bug that prevents remote Metalink/Torrent file from begin
  5364. processed.
  5365. * src/RequestGroupMan.cc (removeStoppedGroup)
  5366. Added debug message.
  5367. * src/BtPostDownloadHandler.cc
  5368. * src/MetalinkPostDownloadHandler.cc
  5369. * src/PostDownloadHandler.{h, cc}
  5370. * src/RequestGroup.cc
  5371. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5372. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  5373. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  5375. stops and there are any unfinished or in-progress downloads.
  5376. Added the legend of "stat".
  5377. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. Throw exception when chunck checksum verification fails.
  5379. * src/DownloadCommand.cc (validatePieceHash): New function.
  5380. * src/PiecedSegment.{h, cc} (clear): New function.
  5381. * src/GrowSegment.{h, cc} (clear): New function.
  5382. * src/Segment.h (clear): New function.
  5383. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  5384. * test/SegmentTest.cc
  5385. * test/GrowSegmentTest.cc
  5386. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Do not send referer when redirected.
  5388. * src/Request.cc (redirectUrl)
  5389. * test/RequestTest.cc
  5390. * test/HttpRequestTest.cc
  5391. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Implemented BitTorrent/http/ftp integrated download.
  5393. I've rewritten lots of files and now some headers have forward
  5394. class declarations to reduce compile time.
  5395. The implementation is extremely alpha stage, I recommend to use this
  5396. for testing purpose only.
  5397. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Fixed the compilation error on 64bit platform.
  5399. * test/HttpHeaderProcessorTest.cc
  5400. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. Merged Ross's patch that fixes compilation problem in MinGW
  5402. * test/DefaultBtProgressInfoFileTest.cc
  5403. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Updated fr.po by sebone
  5405. * po/fr.po
  5406. Updated man page.
  5407. * doc/aria2c.1.txt
  5408. * Release 0.11.3
  5409. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  5411. failure in Metalink.
  5412. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Automatically save *.aria2 control file of http/ftp download in every
  5414. 60 seconds.
  5415. * src/AutoSaveCommand.{h, cc}: New class.
  5416. * src/TimeBasedCommand.{h, cc}: New class.
  5417. * src/DownloadEngineFactory.cc (newConsoleEngine)
  5418. Disable parameterized URI support by default. Added -P option to
  5419. enable the feature.
  5420. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  5421. * src/OptionHandlerFactory.cc
  5422. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  5423. Updated Japanese translation.
  5424. * po/ja.po
  5425. Updated man page.
  5426. * doc/aria2c.1.txt
  5427. * Release 0.11.3-rc
  5428. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5430. it is successful, then renamed to *.aria2.
  5431. This prevents *.aria2 file from being truncated or corrupted when
  5432. file system becomes out of space.
  5433. * src/DefaultBtProgressInfoFile.cc (save)
  5434. * src/SegmentMan.cc (save)
  5435. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5436. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5437. Reduced the fragmentation of bitfield in http/ftp download.
  5438. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5439. * test/BitfieldManTest.cc
  5440. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Added the ability to disable segmented download in .metalink.
  5442. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5443. 'url' tag.
  5444. * src/MetalinkEntry.{h, cc}
  5445. * src/RequestResource.{h, cc}
  5446. * src/MetalinkRequestInfo.cc
  5447. * src/Xml2MetalinkProcessor.cc
  5448. * test/Xml2MetalinkProcessorTest.cc
  5449. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5450. Added parameterized URI support.
  5451. * src/main.cc: -Z option added.
  5452. * src/OptionHandlerFactory.cc
  5453. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5454. * src/PStringDatum.h: New class.
  5455. * src/PStringSegment.{h,cc}: New class.
  5456. * src/PStringNumLoop.h: New class.
  5457. * src/PStringSelect.h: New class.
  5458. * src/NumberDecorator.h: New class.
  5459. * src/FixedWidthNumberDecorator.h: New class.
  5460. * src/AlphaNumberDecorator.h: New class.
  5461. * src/PStringVisitor.h: New class.
  5462. * src/PStringBuildVisitor.{h,cc}: New class.
  5463. * src/ParameterizedStringParser.{h,cc}: New class.
  5464. * src/Util.{h,cc}
  5465. (isNumber): New function.
  5466. (isLowercase): New function.
  5467. (isUppercase): New function.
  5468. (alphaToNum): New function.
  5469. * test/ParameterizedStringParserTest.cc: New class.
  5470. * test/AlphaNumberDecoratorTest.cc: New class.
  5471. * test/PStringBuildVisitorTest.cc: New class.
  5472. * test/UtilTest.cc
  5473. (testIsNumber): New function.
  5474. (testIsLowercase): New function.
  5475. (testIsUppercase): New function.
  5476. (testAlphaToNum): New function.
  5477. Added '\n' after the error message
  5478. * src/RequestInfo.h (printDownloadAbortMessage)
  5479. Added auto file renaming feature in http(s)/ftp download.
  5480. * src/main.cc: Added --auto-file-renaming command-line option.
  5481. * src/OptionHandlerFactory.cc
  5482. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5483. * src/RequestGroup.{h, cc}
  5484. (shouldCancelDownloadForSafety): Rewritten
  5485. (tryAutoFileRenaming): New function.
  5486. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5487. * src/HttpResponseCommand.cc
  5488. (executeInternal): Removed the call to RequestGroupMan::
  5489. isSameFileBeingDownloaded()
  5490. * src/FtpNegotiateCommand.cc
  5491. (recvSize): Removed the call to RequestGroupMan::
  5492. isSameFileBeingDownloaded()
  5493. * test/RequestGroupTest.cc: New class.
  5494. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5496. IO.
  5497. * src/DefaultBtProgressInfoFile.cc
  5498. * src/MetaFileUtil.cc
  5499. * src/SimpleLogger.cc
  5500. * src/SegmentMan.cc
  5501. * src/Util.cc
  5502. * src/Platform.cc
  5503. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5504. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5505. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5507. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5508. Fixed the bug that prevents file allocation is not done when
  5509. dowloading multi-torrent file.
  5510. * src/AbstractDiskWriter.cc (openFile)
  5511. Increase the maximum number of -j option from 15 to 45.
  5512. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5513. Added fr.po, thanks to Charles Landemaine.
  5514. * po/fr.po
  5515. * po/LINGUAS
  5516. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5517. gcc 3.4.4 support:
  5518. * src/DefaultBtContext.cc: int32_t -> int
  5519. * src/main.cc: int -> int32_t, int32_t -> int
  5520. * src/messageDigest.h: uint32_t -> unsigned int
  5521. * src/NameResolver.h: int32_t -> int
  5522. * src/PeerConnection.cc: int -> int32_t
  5523. * src/SpeedCalc.cc: int32_t -> int
  5524. * src/TrackerUpdateCommand.h: int -> int32_t
  5525. * src/Util.cc: int32_t -> int
  5526. * src/Util.h: int32_t -> int
  5527. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5528. * test/AnnounceListTest.cc: int -> int32_t
  5529. * test/ChunkedEncodingTest.cc: int -> int32_t
  5530. * test/DataTest.cc: int -> int32_t
  5531. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5532. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5533. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5534. * test/FeatureConfigTest.cc: int -> int32_t
  5535. * test/MetalinkEntryTest.cc: int -> int32_t
  5536. * test/MockBtRequestFactory.h: int -> int32_t
  5537. * test/MockPieceStorage.h: int -> int32_t
  5538. * test/OptionTest.cc: int -> int32_t
  5539. * test/RequestTest.cc: int -> int32_t
  5540. * test/SegmentManTest.cc: int -> int32_t
  5541. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5542. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5543. Move sleep functions to Util class:
  5544. * src/Util.cc
  5545. (sleep): New function.
  5546. (usleep): New function.
  5547. * src/DownloadCommand.cc: sleep -> Util::sleep
  5548. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5549. MinGW build enhancements. The following files are added:
  5550. * src/timegm.{c,h}
  5551. Changes to support the above new files:
  5552. * configure.ac
  5553. * src/Makefile.am
  5554. * src/a2time.h
  5555. * src/Util.cc:
  5556. * src/strptime.c: Added support for %Z option.
  5557. Fixed MinGW non-blocking bug.
  5558. * src/SocketCore.cc
  5559. * src/HttpRequestCommand.cc
  5560. Miscellenous build fixes/enhancements.
  5561. * configure.ac: Added summary report.
  5562. * src/Platform.h: Tweaked #include's.
  5563. * src/a2netcompat.h: Tweaked #include's.
  5564. * src/strptime.h: Tweaked #include's.
  5565. * src/gai_strerror.c: Tweaked #include's.
  5566. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5567. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5568. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5569. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Increased the initial connection size in BitTorrent download to 40.
  5571. * src/BtRuntime.h
  5572. Added the usage message of --peer-id-prefix option.
  5573. * src/main.cc
  5574. * Release 0.11.2
  5575. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. MessageDigestHelper is introduced in order to simplify the use
  5577. of message digest. Removed repeated code.
  5578. The message digest algorithm is now specified by string, like "sha1",
  5579. "md5".
  5580. * src/messageDigest.{h, cc}
  5581. * src/MessageDigestHelper.{h, cc}: New class.
  5582. * src/DefaultPieceStorage.cc
  5583. * src/DefaultBtContext.{h, cc}
  5584. (computeFastSet): New function.
  5585. (setInfoHash): Added for unit testing.
  5586. (setNumPieces): Added for unit testing.
  5587. * src/DefaultBtInteractive.cc
  5588. * src/BtPieceMessage.cc
  5589. * src/Peer.cc
  5590. * src/Checksum.h
  5591. * src/message.h
  5592. * src/IteratableChecksumValidator.h
  5593. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5594. inside it.
  5595. * src/SegmentMan.{h, cc}
  5596. (checkIntegrity): Removed.
  5597. * src/IteratableChunkChecksumValidator.{h, cc}
  5598. * src/Util.h
  5599. (sha1Sum): Removed.
  5600. (simpleMessageDigest): Removed.
  5601. (fileChecksum): Removed.
  5602. (computeFastSet): Removed.
  5603. * src/ShaVisitor.cc
  5604. * src/ChunkChecksum.h
  5605. * src/DownloadCommand.cc
  5606. Removed messageDigest virtual functions.
  5607. * src/MultiDiskAdaptor.{h, cc}
  5608. * src/DiskAdaptor.h
  5609. * src/ByteArrayDiskWriter.h
  5610. * src/DiskWriter.h
  5611. * src/DiskAdaptorWriter.h
  5612. * src/AbstractSingleDiskAdaptor.{h, cc}
  5613. * src/AbstractDiskWriter.{h, cc}
  5614. Fixed comilation error when message digest is disabled.
  5615. * src/MetalinkEntry.{h, cc}
  5616. * src/MetalinkRequestInfo.cc
  5617. Removed srandom and random.
  5618. * src/SimpleRandomizer.h
  5619. Added size() virtual function to DiskAdaptor
  5620. * src/MultiDiskAdaptor.h
  5621. Fixed the bug that causes that files are not opened correctly in
  5622. multi-file torrent.
  5623. * src/TorrentRequestInfo.cc
  5624. * src/MultiDiskAdaptor.cc
  5625. Added SHA256 support
  5626. * src/messageDigest.cc
  5627. * src/Xml2MetalinkProcessor.cc
  5628. Show supported message digest algorithms
  5629. * src/main.cc
  5630. Updated contact info.
  5631. * src/main.cc
  5632. Applied Ross's patch
  5633. * src/a2netcompat.h
  5634. * src/main.cc
  5635. Fixed the bug that prevents a remote metalink from not being processed
  5636. even if '-o foo.metalink' is specified.
  5637. * src/MetalinkRequestInfo.cc
  5638. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. Merged Dan's patch:
  5640. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5641. Use va_copy to avoid core dump on amd64:
  5642. * src/SimpleLogger.cc
  5643. Updated contact info.
  5644. * src/main.cc
  5645. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5646. digest is not available.
  5647. * src/MetalinkEntry.h
  5648. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. Make a2netcompat.h include a2io.h to fix compilation error:
  5650. * src/a2netcompat.h
  5651. * src/SocketCore.cc: Removed include of a2io.h
  5652. * src/Util.cc: Removed include of a2io.h
  5653. Gather time related functions to a2time.h:
  5654. * src/a2time.h: New file.
  5655. * src/DefaultPeerStorage.cc
  5656. * src/SimpleLogger.cc
  5657. * src/Util.{h, cc}
  5658. * src/SimpleRandomizer.h
  5659. * src/TimeA2.{h,cc}
  5660. * src/DownloadCommand.cc
  5661. * src/main.cc
  5662. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5663. a2netcompat.h:
  5664. * src/NameResolver.cc
  5665. Fixed compilation error without openssl:
  5666. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5667. Added default block to suppress compiler warnings:
  5668. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5669. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5670. MinGW build enhancements. The following files are added:
  5671. * src/gai_strerror.{c,h}
  5672. * src/gettimeofday.{c,h}
  5673. Changes to support the above new files:
  5674. * configure.ac
  5675. * src/Makefile.am
  5676. * src/a2netcompat.h
  5677. * src/TimeA2.cc
  5678. * src/DefaultPeerStorage.cc
  5679. * src/NameResolver.cc: removed mingw_strerror() function.
  5680. * src/SocketCore.cc: removed mingw_strerror() function.
  5681. Miscellaneous MinGW build fixes.
  5682. * src/a2io.h: Use _lseeki64() instead of lseek()
  5683. * src/common.h
  5684. * src/DefaultFileAllocator.cc
  5685. * src/GlowFileAllocator.cc
  5686. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5687. * src/NameResolver.cc
  5688. (callback): Changed int32_t to int.
  5689. (resolve): Changed int32_t to int.
  5690. * src/Platform.cc
  5691. * src/Platform.h
  5692. * test/MultiDiskWriterTest.cc
  5693. * test/PeerMessageUtilTest.cc
  5694. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5695. Other enhancements and fixes.
  5696. * src/HttpRequestCommand.cc
  5697. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5698. * src/SocketCore.cc:
  5699. (error): New function to abstract errno/WSAGetLastError().
  5700. (errorMsg): New function to abstract errno/WSAGetLastError().
  5701. (initiateSecureConnection): Added more detailed error reporting.
  5702. * src/SocketCore.h: Added private variable blocking, to allow
  5703. proper handling of OpenSSL psuedo-errors.
  5704. * src/message.h
  5705. (EX_SSL_INIT_FAILURE)
  5706. (EX_SSL_IO_ERROR)
  5707. (EX_SSL_PROTOCOL_ERROR)
  5708. (EX_SSL_UNKNOWN_ERROR)
  5709. (EX_SSL_CONNECT_ERROR)
  5710. (EX_SOCKET_BLOCKING)
  5711. (EX_SOCKET_NONBLOCKING)
  5712. (EX_SOCKET_UNKNOWN_ERROR)
  5713. * src/Util.cc
  5714. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5715. reserved name.
  5716. (httpGMT): Fixed typo.
  5717. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Merged Ross's win32 patch(manually)
  5719. In the course of merging, following files are added.
  5720. * src/strptime.{h,c}
  5721. * src/libgen.{h,c}
  5722. * src/inet_aton.{h,c}
  5723. * src/Platform.{h,cc}
  5724. * src/localtime_r.{h,c}
  5725. * src/getaddrinfo.{h,c}
  5726. I've gethered network related things, and put them to following file:
  5727. * src/a2netcompat.h
  5728. Also io related things are put to following file:
  5729. * src/a2io.h
  5730. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5731. * src/message.h
  5732. (MSG_ALLOCATION_COMPLETED)
  5733. (EX_TOO_LARGE_FILE)
  5734. (EX_SIZE_MISMATCH)
  5735. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5736. (EX_INVALID_CHUNK_CHECKSUM)
  5737. (EX_INVALID_RANGE_HEADER)
  5738. * src/FileAllocationCommand.cc
  5739. * src/HttpResponse.cc
  5740. * src/RequestGroup.cc
  5741. * src/MultiDiskAdaptor.cc
  5742. * src/OptionHandlerImpl.h
  5743. * src/HttpResponseCommand.cc
  5744. * src/FtpNegotiateCommand.cc
  5745. * src/IteratableChecksumValidator.cc
  5746. * src/SegmentMan.cc
  5747. * src/ChunkChecksumValidator.cc
  5748. Added Randomizer::getRandomNumber(long int)
  5749. * src/Randomizer.h (getRandomNumber)
  5750. * src/SimpleRandomizer.h (getRandomNumber)
  5751. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5752. * src/Util.cc (randomAlpha): Use this new function.
  5753. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Converted int's to in32_t. long long int's are also converted to
  5755. int64_t
  5756. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5757. Fixed the bug that prevents cookies from being sent to the server
  5758. if the domain of cookie is FQDN and starts with ".".
  5759. * src/Cookie.cc (match)
  5760. To add the ability to change peer id.
  5761. * src/DefaultBtContext.h
  5762. (_peerIdPrefix): New variable
  5763. (setPeerIdPrefix): New function.
  5764. * src/torrentRequestInfo.cc
  5765. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  5766. DefaultBtContext.
  5767. * src/main.cc (main): Added peer-id-prefix command-line option.
  5768. The usage message is not added yet.
  5769. * src/DefaultBtContext.cc
  5770. (generatePeerId): Use _peerIdPrefix.
  5771. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  5772. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Fixed the bug that prevents filename in content-disposition from
  5774. being retrieved when filename is not quoted.
  5775. * src/Util.cc (getContentDispositionFilename)
  5776. Fixed the bug that causes infinate loop and memory leak when file open
  5777. operation failed.
  5778. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5779. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5780. Fixed the bug that causes segfault when all URIs specified are
  5781. unsupported.
  5782. * src/RequestGroupMan.cc (getInitialCommands)
  5783. Check if RequestGroup::createNextCommand() returns empty list of
  5784. commands.
  5785. * src/RequestGroup.cc (createNextCommand)
  5786. Change log level from info to error so that users can notice that
  5787. an error occurred.
  5788. Fixed the bug that causes segfault when a zero-sized file is
  5789. downloaded.
  5790. * src/BitfieldMan.cc (isAllBitSet)
  5791. Return true if bitfieldLength is 0.
  5792. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. * src/main.cc
  5794. (showUsage): Added 3 usage examples for metalink download.
  5795. Replace MetalinkChunkChecksum with ChunkChecksum.
  5796. * src/MetalinkChunkChecksum.h: Removed.
  5797. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5798. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5799. * src/Xml2MetalinkProcessor.cc
  5800. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5801. * src/MetalinkRequestInfo.cc (execute)
  5802. * Release 0.11.1
  5803. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Reads URIs from stdin when "-i -" is specified.
  5805. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5806. * src/UriListParser.h, src/UriListParser.cc: New class.
  5807. * src/StreamUriListParser.h: New class.
  5808. * src/FileUriListParser.h: New class.
  5809. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5810. instead of UriFileListParser.
  5811. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Made console readout more readable.
  5813. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5814. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5815. Fix the bug that causes -s option not to work.
  5816. * src/main.cc (main)
  5817. * src/a2algo.h: New file.
  5818. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5819. Create directory structure specified in metalink file.
  5820. * src/RequestGroup.h, src/RequestGroup.cc
  5821. (initAndOpenFile): Create a directory to store files if it does not
  5822. exist.
  5823. (getDir): New function.
  5824. Added ETA and download speed for an individual file to readout.
  5825. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5826. * src/RequestGroup.h
  5827. (calculateDownloadSpeed): New function.
  5828. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Made -S option work with metalink file and provided selective download
  5830. to metalink.
  5831. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5832. (filename): Removed.
  5833. (file): New variable.
  5834. (size): Removed.
  5835. (operator=): Updated.
  5836. (getPath): New function.
  5837. (getLength): New function.
  5838. (toFileEntry): New function.
  5839. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5840. (execute): Use toStream.
  5841. (showFileEntry): Removed.
  5842. * src/MetalinkRequestInfo.h
  5843. (targetFiles): New variable.
  5844. (setTargetFiles): New variable.
  5845. * src/MetalinkRequestInfo.cc
  5846. (execute): Added the ability to print file information included in
  5847. a metalink file.
  5848. Added selective download mode to metalink.
  5849. * src/main.cc
  5850. (showUsage): Updated to denote that -S and --select-file options are
  5851. applicable to metalink.
  5852. * src/FileEntry.h
  5853. (operator=): New function.
  5854. (getBasename): New function.
  5855. (getDirname): New function.
  5856. * src/Util.h, src/Util.cc
  5857. (toStream): New function.
  5858. * src/Xml2MetalinkProcessor.cc: Updated.
  5859. Made aria2 work with metalink with directory structure.
  5860. * src/File.h, src/File.cc
  5861. (getBasename): New function.
  5862. (getDirname): New function.
  5863. * src/RequestGroup.h, src/RequestGroup.cc
  5864. (_topDir): New variable.
  5865. (setTopDir): New function.
  5866. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5867. Rewrote HTTP header parsing with stringstream.
  5868. * src/HttpConnection.h, src/HttpConnection.cc
  5869. (HttpRequestEntry): New class.
  5870. (headerBuf): Removed.
  5871. (headerBufLength): Removed.
  5872. (outstandingHttpRequests): Now its element type is
  5873. HttpRequestEntryHandle.
  5874. (findEndOfHeader): Removed.
  5875. (receiveResponse): Rewritten.
  5876. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5877. Updated doc for -j option to notice that it should be used with -i
  5878. option.
  5879. * src/main.cc (showUsage)
  5880. Removed unused classes.
  5881. * src/RequestInfo.h
  5882. (FileInfo): Removed.
  5883. (checksum): Removed.
  5884. (fileInfo): Removed.
  5885. (setChecksum): Removed.
  5886. (getChecksum): Removed.
  5887. (getFileInfo): Removed.
  5888. Use ISO units.
  5889. * src/ConsoleDownloadEngine.cc
  5890. * src/TorrentConsoleDownloadEngine.cc
  5891. * src/Util.cc (abbrevSize)
  5892. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Added the default listening ports to the help message.
  5894. * src/main.cc (showUsage)
  5895. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5896. Reduce the number of calls to gettimeofday to lower CPU load.
  5897. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5898. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5899. * src/Peer.h (calculateUploadSpeed): New function.
  5900. (calculateDownloadSpeed): New function.
  5901. * src/DefaultPeerStorage.cc
  5902. (CalculateStat): Added _now variable.
  5903. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5904. and Peer::calculateUploadSpeed(const struct timeval&)
  5905. Drop connection if no request or piece message is exchanged in
  5906. a certain interval.
  5907. * src/DefaultBtInteractive.h
  5908. (btRuntime): New variable.
  5909. (inactiveCheckPoint): New variable.
  5910. (checkActiveInteraction): New function.
  5911. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5912. request or piece message is received.
  5913. (checkActiveInteraction): New function.
  5914. (doInteractionProcessing): Call checkActiveInteraction.
  5915. Fixed the bug that causes remote Metalink and Torrent files are not
  5916. processed.
  5917. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5918. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Changed format of log file.
  5920. * src/SimpleLogger.cc
  5921. * Release 0.11.0
  5922. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. * src/AbstractCommand.cc
  5924. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5925. MSG_MAX_TRY from error to info.
  5926. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5927. * src/message.h
  5928. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5929. (MSG_DOWNLOAD_ABORTED): Added %s.
  5930. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5931. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5932. * src/PeerAbstractCommand.cc
  5933. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5934. * src/Request.h
  5935. (cookieBox): Made ShardHandle.
  5936. * src/RequestGroup.h, src/RequestGroup.cc
  5937. (createNextCommandWithAdj): New function.
  5938. * src/FileAllocationCommand.cc
  5939. (executeInternal): Use createNextCommandWithAdj().
  5940. * src/CheckIntegrityCommand.cc
  5941. (executeInternal): Use createNextCommandWithAdj().
  5942. Added --load-cookies command-option.
  5943. * src/OptionHandlerFactory.cc
  5944. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5945. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5946. Now aria2 can handle cookie's expiration date.
  5947. * src/Cookie.h (expires): Changed its type to time_t.
  5948. * src/main.cc: Added --load-cookies command-line option.
  5949. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5950. * src/Util.h, src/Util.cc (httpGMT): New function.
  5951. * src/Request.cc (Request): Initialize cookieBox using
  5952. CookieBoxFactory.
  5953. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5954. * src/CookieParser.h, src/CookieParser.cc: New class.
  5955. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5956. * src/HttpResponseCommand.cc
  5957. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5958. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5959. download.
  5960. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5961. Added -j command-line option.
  5962. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5963. * src/main.cc
  5964. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5965. Rewritten using stringstream.
  5966. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5967. Rewritten using stringstream.
  5968. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5969. Make download size shown in MB, KB.
  5970. * src/ConsoleDownloadEngine.h (sendStatistics)
  5971. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5972. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Accept incoming connections if download rate is low.
  5974. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5975. (_lowestSpeedLimit): New variable.
  5976. (setLowestSpeedLimit): New function.
  5977. (execute): Accept incoming connections if download rate is low.
  5978. MAX_PEERS is ignored in this case.
  5979. Disable PREF_OUT in multiple concurrent download:
  5980. * src/RequestGroup.h, src/RequestGroup.cc
  5981. (setUserDefinedFilename): New function.
  5982. * src/DownloadEngineFactory.cc
  5983. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5984. concurrent download.
  5985. * src/DefaultSegmentManFactory.cc
  5986. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5987. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5989. Added its overloaded method.
  5990. * src/RequestGroup.h
  5991. (_numConcurrentCommand): New variable.
  5992. (setNumConcurrentCommand): New function.
  5993. * src/RequestGroup.cc
  5994. Abort download if same file is being downloaded concurrently.
  5995. * src/RequestGroup.h, src/RequestGroupMan.cc
  5996. (isSameFileBeingDownloaded): New function.
  5997. * src/HttpResponseCommand.cc (executeInternal)
  5998. * src/FtpNegotiateCommand.cc (recvSize)
  5999. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  6000. * main.cc: Added help message for -i option.
  6001. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  6003. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  6004. * src/MetalinkEntry.h
  6005. (checksum): Changed to ChecksumHandle
  6006. * src/MetalinkRequestInfo.cc
  6007. (checksum): Changed to ChecksumHandle
  6008. * src/File.cc
  6009. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  6010. * src/common.h
  6011. (DIR_OPEN_MODE): New definition
  6012. * src/RequestGroup.cc
  6013. (prepareForNextAction): Added an argument.
  6014. * src/message.h
  6015. (MSG_GOOD_CHECKSUM): New definition
  6016. (MSG_BAD_CHECKSUM): New definition
  6017. * src/HttpResponseCommand.cc
  6018. (handleDefaultEncoding): Continue download sequence in new
  6019. non-segmented download.
  6020. * src/FileAllocationEntry.h
  6021. (_nextDownloadCommand): New variable.
  6022. * src/DownloadCommand.cc
  6023. (prepareForNextSegment): Create ChecksumCommand if checksum is
  6024. available.
  6025. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  6026. * src/IteratableChecksumValidator.h,
  6027. src/IteratableChecksumValidator.cc: New class.
  6028. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  6029. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Change file mode to 666:
  6031. * src/common.h (OPEN_MODE): New definition.
  6032. * src/File.cc
  6033. * src/Util.cc
  6034. * src/Directry.cc
  6035. * src/AbstractDiskWriter.cc
  6036. Change the level of log message "download aborted" to debug:
  6037. * src/PeerAbstractCommand.cc (execute)
  6038. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  6039. * src/TrackerWatcherCommand.cc
  6040. (createCommand): Sleep some seconds after request failed.
  6041. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  6042. then abort tracker request.
  6043. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. * Added the simultaneous download feature.
  6045. * src/main.cc: Print "Exception caught: " when exception is caught.
  6046. Use CUIDCounter instead of BtRuntime::getNewCuid():
  6047. * src/ActivePeerConnectionCommand.cc
  6048. * src/PeerInteractionCommand.cc
  6049. * src/BtRuntime.h
  6050. (cuidCounter): Removed.
  6051. (getNewCuid): Removed.
  6052. * src/DownloadEngineFactory.cc
  6053. * src/PeerListenCommand.cc
  6054. * src/TrackerUpdateCommand.cc
  6055. * src/PeerInitiateConnectionCommand.cc
  6056. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. * src/PeerAbstractCommand.cc
  6058. (onAbort): Call PeerStorage::returnPeer()
  6059. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  6060. (incomingPeers): New variable.
  6061. (addIncomingPeer): New function.
  6062. (returnPeer): New function.
  6063. (onErasingPeer): New function.
  6064. (addPeer): push_back -> push_front
  6065. (getActivePeers): Rewritten.
  6066. (calculateStat): Rewritten.
  6067. * src/PeerStorage.h
  6068. (TransferStat::copy): New function.
  6069. (TransferStat::TransferStat): New function.
  6070. (TransferStat::operator=): New function.
  6071. (addIncomingPeer): New function.
  6072. (returnPeer): New function.
  6073. * src/PeerListenCommand.cc
  6074. (execute): Use PeerStorage::addIncomingPeer() instead of
  6075. Peer::addPeer().
  6076. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Connect to a peer actively when download speed is lower than specified
  6078. speed in torrent download:
  6079. * src/ActivePeerConnectionCommand.h: New class.
  6080. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. * src/HttpRequest.cc (createRequest): url-encode user-agent
  6082. * src/main.cc: Fixed the bug that prevents download if .netrc
  6083. doesn't exist.
  6084. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6085. To cache resolved hostname:
  6086. * src/AbstractCommand.h, src/AbstractCommand.cc
  6087. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  6088. Added dns cache.
  6089. * src/FtpInitiateConnectionCommand.cc
  6090. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  6091. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  6092. NameResolver working without ares.
  6093. * src/TorrentRequestInfo.cc
  6094. (execute): Don't cache dns in torrent download.
  6095. * src/HttpInitiateConnectionCommand.cc
  6096. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  6097. * src/DNSCache.h: New class.
  6098. * src/UrlRequestInfo.cc
  6099. (execute): Use dns cache.
  6100. In http request, suppress port number in http request header if port
  6101. is 80 or 443:
  6102. * src/HttpRequest.cc (getHostText): Suppress port number in http
  6103. request header if port is 80 or 443.
  6104. (createProxyRequest): Allways send port number.
  6105. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. To add the command-line option which disables netrc support:
  6107. * src/OptionHandlerFactory.cc
  6108. (createOptionHandlers): Added PREF_NO_NETRC.
  6109. * src/main.cc: Added -n option.
  6110. * src/prefs.h (PREF_NO_NETRC): New definition.
  6111. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  6112. V_TRUE.
  6113. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  6114. is V_FALSE. This may get configurable in the future release.
  6115. To clear peer's error status by time basis:
  6116. * src/PeerAbstractCommand.cc
  6117. (onAbort): Call Peer::startBadCondition().
  6118. * src/Peer.h, src/Peer.cc
  6119. (error): Removed.
  6120. (_badConditionStartTime): New variable.
  6121. (_badConditionInterval): New variable. Initialized to 10 seconds.
  6122. (startBadCondition): New function.
  6123. (isGood): New function.
  6124. * src/DefaultPeerStorage.cc
  6125. (addPeer): Use Peer::isGood().
  6126. (FindFinePeer): Use Peer::isGood().
  6127. Always include port number in http request header:
  6128. * src/HttpRequest.cc (getHostText): Always include port number in
  6129. http request header.
  6130. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. To the ability to read options from a config file:
  6132. * src/main.cc: Command-line parameter validation is delegated to
  6133. OptionHandler class.
  6134. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  6135. * src/Option.h, src/Option.cc (clear): New function.
  6136. * src/OptionParser.h, src/OptionParser.cc: New class.
  6137. * src/OptionHandler.h: New class.
  6138. * src/NameMatchOptionHandler.h: New class.
  6139. * src/OptionHandlerImpl.h: New classes.
  6140. * src/prefs.h: '_' -> '-'
  6141. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  6142. (FTP_PASV): New definition.
  6143. * src/Util.h, src/Util.cc (getRealSize): New function.
  6144. To disable netrc support if .netrc file does not have correct
  6145. permissions:
  6146. * src/File.h, src/File.cc (mode): New function.
  6147. To prevent confidential information to be logged:
  6148. * src/HttpConnection.h, src/HttpConnection.cc
  6149. (eraseConfidentialInfo): New function.
  6150. (sendRequest): Call eraseConfidentialInfo().
  6151. (sendProxyRequest): Call eraseConfidentialInfo().
  6152. * src/main.cc: Validate permissions of .netrc file.
  6153. To add --user-agent command-line option:
  6154. * src/main.cc: Added new command line option: --user-agent
  6155. * src/prefs.h (PREF_USER_AGENT): New definition.
  6156. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6157. parameter to HttpRequest object.
  6158. * src/AbstractProxyRequestCommand.cc
  6159. (executeInternal): Set user-agent option parameter to HttpRequest
  6160. object.
  6161. Marged the patches from Dan Fandrich.
  6162. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Use filename and size from Metalink file instead of sending HEAD
  6164. request:
  6165. * src/UrlRequestInfo.h
  6166. (_filename): New variable.
  6167. (_totalLength): New variable.
  6168. (setTotalLength): New variable.
  6169. (setFilename): New variable.
  6170. * src/MetalinkRequestInfo.cc
  6171. (execute): Set filename and size to UrlRequestInfo
  6172. * src/UrlRequestInfo.cc
  6173. (execute): Use filename and size from Metalink instead of seding
  6174. HEAD request to servers.
  6175. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. To add the ability to resume downloading a partially downloaded file
  6177. which is downloaded from the beginning:
  6178. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6179. takes this role.
  6180. * src/main.cc: Added -c option.
  6181. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6182. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6183. * src/prefs.h (PREF_CONTINUE): New definition.
  6184. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6185. * src/DefaultDiskWriter.cc
  6186. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6187. * src/AbstractDiskWriter.h
  6188. (glowFileAllocator): New variable.
  6189. * src/AbstractDiskWriter.cc
  6190. (openExistingFile): Now preallocate file space from the end of the
  6191. existing file if totalLength argument is specified and grater than 0.
  6192. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6193. to download exists in local, continue the download of the file.
  6194. --allow-overwrite=true is assumed in this context.
  6195. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6196. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6197. Throw exception if --check-integrity=true is specified but chunk
  6198. checksums are not provided:
  6199. * src/UrlRequestInfo.cc
  6200. Do not print URLs to stdout:
  6201. * src/UrlRequestInfo.cc
  6202. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. * src/Request.h: Use AuthResolver to get authentication information.
  6204. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6205. set to RequestFactory object.
  6206. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6207. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6208. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6209. create Request object.
  6210. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6211. To integrate Netrc into exsiting classes:
  6212. * src/Request.h
  6213. (_userDefinedAuthConfig): New variable.
  6214. (findNetrcAuthenticator): New function.
  6215. (segment): Removed.
  6216. (setUserDefinedAuthConfig): New function.
  6217. (resolveHttpAuthConfigItem): New function.
  6218. (resolveFtpAuthConfigItem): New function.
  6219. (resolveHttpProxyAuthConfigItem): New function.
  6220. * src/HttpRequest.h
  6221. (authConfig): Removed.
  6222. (proxyAuthConfig): Removed.
  6223. (setAuthConfig): Removed.
  6224. (setProxyAuthConfig): Removed.
  6225. * src/UrlRequest.h
  6226. (getHeadResult): Added a parameter: authConfigHandle
  6227. * src/common.h
  6228. (SingletonHolder.h): New include.
  6229. * src/main.cc
  6230. (Netrc.h): New include.
  6231. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6232. Added initial value of PREF_NETRC_PATH.
  6233. Added the initialization of netrc.
  6234. * src/AuthConfig.h: New class.
  6235. * src/prefs.h
  6236. (PREF_NETRC_PATH): New definition.
  6237. * src/HttpAuthConfig.h: Removed.
  6238. * src/Netrc.cc
  6239. (getRequiredNextToken): New function.
  6240. (skipMacdef): New function.
  6241. (parse): Rewritten.
  6242. * src/Netrc.h
  6243. (getRequiredNextToken): New function.
  6244. (skipMacdef): New function.
  6245. * src/Util.h, src/Util.cc
  6246. (getHomeDir): New function.
  6247. * src/TrackerWatcherComand.cc
  6248. (createRequestCommand): Use AuthConfig.
  6249. * src/FtpConnection.cc
  6250. (sendUser): Use Request::resolveFtpAuthConfigItem().
  6251. (sendPass): Use Request::resolveFtpAuthConfigItem().
  6252. * src/Request.cc
  6253. (findNetrcAuthenticator): New function.
  6254. (resolveHttpAuthConfigItem): New function.
  6255. (resolveFtpAuthConfigItem): New function.
  6256. (resolveHttpProxyAuthConfigItem): New function.
  6257. * src/UrlRequestInfo.cc: Use AuthConfig.
  6258. * src/HttpRequest.cc
  6259. (createRequest): Use authConfig.
  6260. (getProxyAuthString): Use authConfig.
  6261. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  6262. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  6263. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. To reduce overhead to find commands whose socket is either
  6265. readable or writable in the download engine loop:
  6266. * src/Command.h, src/Command.cc
  6267. (STATUS): New enum.
  6268. (status): New variable.
  6269. (statusMatch): New function.
  6270. (setStatusActive): New function.
  6271. (setStatusInactive): New function.
  6272. * src/DownloadEngine.h, src/DownloadEngine.cc
  6273. (executeCommand): New function.
  6274. (run): Simplified.
  6275. (waitData): Call Command::setStatusActive() when command's socket is
  6276. readable or writable.
  6277. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. To handle Segment as SegmentHandle:
  6279. * src/AbstractCommand.cc (execute): Rewritten.
  6280. * src/SegmentMan.h: Segment -> SegmentHandle
  6281. Introducded HttpResponse class, HttpRequest class to improve code
  6282. extensiveness and make it clear:
  6283. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  6284. HttpResponse class.
  6285. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  6286. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  6287. * src/HttpConnection.cc: Contruction of http request were moved to
  6288. HttpRequest class.
  6289. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  6290. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  6291. * src/HttpAuthConfig.h: New class.
  6292. * src/Range.h: New class.
  6293. To make FtpTunnel{Request, Response}Command and
  6294. HttpProxy{Request, Response}Command derived from
  6295. AbstractProxy{Request, Response}Command:
  6296. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  6297. Derived from AbstractProxyRequestCommand class.
  6298. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  6299. Derived from AbstractProxyResponseCommand class.
  6300. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  6301. Derived from AbstractProxyRequestCommand class.
  6302. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  6303. Derived from AbstractProxyResponseCommand class.
  6304. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  6305. : New class.
  6306. * src/AbstractProxyResponseCommand.h,
  6307. src/AbstractProxyResponseCommand.cc: New class.
  6308. To add netrc support:
  6309. * src/Netrc.h, src/Netrc.cc: New class.
  6310. * src/Util.h, src/Util.cc (split): New function.
  6311. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  6312. "Content-Range" header instead of "Range" header.
  6313. * src/HttpHeader.h
  6314. (getStatus): Removed.
  6315. (setStatus): Removed.
  6316. * src/Segment.h
  6317. (getPositionToWrite): New function.
  6318. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. * src/HttpHeader.h
  6320. (Range.h): New include.
  6321. (status): New variable.
  6322. (HttpHeader): Initialized status with 0.
  6323. (getStatus): New function.
  6324. (setStatus): New function.
  6325. (getRange): New function.
  6326. (HttpHeaderHandle): New function.
  6327. * src/HttpHeader.cc
  6328. (getRange): New function.
  6329. * src/Request.h
  6330. (RequestWeakHandle): New definition.
  6331. * src/HttpConnection.h
  6332. (HttpConnectionHandle): New type definition.
  6333. * src/HttpConnection.cc
  6334. (receiveResponse): Set HTTP status to headers.
  6335. * src/main.cc
  6336. (showUsage): Fixed typo.
  6337. * src/Segment.h
  6338. (SegmentHandle): New type definition.
  6339. * src/BitfieldMan.h
  6340. (getMissingUnusedLength): New function.
  6341. * src/BitfieldMan.cc
  6342. (getMissingUnusedLength): New function.
  6343. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. To fix static initialization order problem:
  6345. * src/BitfieldManFactory.h
  6346. (defaultRandomizer): Removed.
  6347. (factory): New variable.
  6348. (getNewFactory): Removed.
  6349. (getFactoryInstance): New function.
  6350. (setDefaultRandomizer): Rewritten.
  6351. (getDefaultRandomizer): Rewritten.
  6352. * src/BitfieldManFactory.cc
  6353. (defaultRandomizer): Removed.
  6354. (factory): Initialized to 0.
  6355. (BitfieldManFactory): Initialized randomizer to 0.
  6356. * src/DefaultPieceStorage.cc
  6357. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  6358. * src/Peer.cc
  6359. (Peer): getNewFactory() -> getFactoryInstance()
  6360. * src/SegmentMan.cc
  6361. (initBitfield): getNewFactory() -> getFactoryInstance()
  6362. * src/Piece.cc
  6363. (Piece): getNewFactory() -> getFactoryInstance()
  6364. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. To fix the bug that causes crash on Max OS X:
  6366. * src/SimpleRandomizer.h
  6367. (getInstance): Create new instance if the static variable is null.
  6368. * src/SimpleRandomizer.cc
  6369. (randomizer): Initialized to 0.
  6370. * src/BitfieldManFactory.h
  6371. (getNewFactory): Removed the call to setRandomizer().
  6372. To fix the miscalculation of the range of checksum:
  6373. * src/BitfieldMan.h
  6374. (isBitSetOffsetRange): New function.
  6375. * src/BitfieldMan.cc
  6376. (isBitSetOffsetRange): New function.
  6377. * src/SegmentMan.cc
  6378. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  6379. Use bitfield->getBlockLength() instead of segment.segmentLength.
  6380. * Release 0.10.1
  6381. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. To lower CPU usage in BitTorrent download when --max-upload-limit
  6383. command-line option specified:
  6384. * src/DefaultBtMessageDispatcher.cc
  6385. (sendMessages): Calculate uploading speed only when current message
  6386. is uploading data and is not sent yet.
  6387. * src/DefaultPeerStorage.h
  6388. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  6389. * src/HttpResponseCommand.cc
  6390. (handleDefaultEncoding): Added the cast to int32_t to itos.
  6391. This fixes compile error in Soralis 10.
  6392. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. To fix segfault in Metalink download:
  6394. * src/UrlRequestInfo.h
  6395. (filename): Removed.
  6396. (totalLength): Removed.
  6397. (setTotalLength): Removed.
  6398. (setFilename): Removed.
  6399. * src/MetalinkRequestInfo.cc
  6400. (execute): Do not set filename and totalLength to reqInfo.
  6401. Set chunk checksum to reqInfo if it is not null.
  6402. * src/HttpResponseCommand.cc
  6403. (executeInternal): Fixed filename in log.
  6404. (handleDefaultEncoding): Removed the call to initBitfield() and
  6405. markAllPiecesDone().
  6406. (handleOtherEncoding): Added HEAD method handling.
  6407. * src/FtpNegotiateCommand.cc
  6408. (executeInternal): Added SEQ_HEAD_OK handling.
  6409. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  6410. return false.
  6411. * src/FtpNegotiateCommand.h
  6412. (SEQ_HEAD_OK): New definition.
  6413. * src/SegmentMan.cc
  6414. (initBitfield): Delete bitfield.
  6415. (isChunkChecksumValidationReady): Fixed the condition.
  6416. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  6417. works fine.
  6418. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. * src/Xml2MetalinkProcessor.h
  6420. (xpathExists): New function.
  6421. * src/Xml2MetalinkProcessor.cc
  6422. (xpathExists): New function.
  6423. Not to send HEAD request if filename and size are available in Metalink
  6424. file:
  6425. * src/UrlRequestInfo.h
  6426. (filename): New variable.
  6427. (totalLength): New variable.
  6428. (setTotalLength): New function.
  6429. (setFilename): New function.
  6430. * src/MetalinkRequestInfo.cc
  6431. (execute): Set filename and size to UrlRequestInfo.
  6432. * src/MetalinkEntry.cc
  6433. (MetalinkEntry): Initialize size with 0.
  6434. * src/UrlRequestInfo.cc
  6435. (execute): Set filename and size to SegmentMan.
  6436. Not to download rest of the files after selected files are downloaded
  6437. in BitTorrent:
  6438. * src/PieceStorage.h
  6439. (allDownloadFinished): New function.
  6440. * src/DefaultBtAnnounce.cc
  6441. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6442. downloadFinished.
  6443. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6444. * src/DefaultPieceStorage.cc
  6445. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6446. Commented out the call to finishSelectiveDownloadingMode().
  6447. (downloadFinished): Call isFilteredAllBitSet() instead of
  6448. isAllBitSet().
  6449. (allDownloadFinished): New function.
  6450. * src/DefaultBtInteractive.cc
  6451. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6452. downloadFinished().
  6453. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6454. * src/TorrentDownloadEngine.cc
  6455. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6456. * src/BitfieldMan.h
  6457. (isFilteredAllBitSet): New function.
  6458. * src/ShareRatioSeedCriteria.h
  6459. (PieceStorage.h): New include.
  6460. (pieceStorage): New variable.
  6461. (evaluate):
  6462. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6463. * src/BitfieldMan.cc
  6464. (isFilteredAllBitSet): New function.
  6465. (isAllBitSet): Filter is not took into account.
  6466. Rename --force-truncate as --allow-overwrite:
  6467. * src/TorrentRequestInfo.cc
  6468. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6469. * src/main.cc
  6470. (showUsage): --force-truncate -> --allow-overwrite
  6471. * src/message.h
  6472. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6473. * src/prefs.h
  6474. (PREF_FORCE_TRUNCATE): Removed.
  6475. (PREF_ALLOW_OVERWRITE): New definition.
  6476. * src/SegmentMan.cc
  6477. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6478. * src/MetalinkRequestInfo.cc
  6479. (execute): Queueing message are now logged in info level.
  6480. * src/common.h
  6481. (LONG_LONG_MAX): Removed.
  6482. (LONG_LONG_MIN): Removed.
  6483. * src/HttpResponseCommand.cc
  6484. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6485. * src/FtpNegotiateCommand.cc
  6486. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6487. * src/main.cc
  6488. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6489. command-line option.
  6490. (main): Added --check-integriy and --realtime-chunk-checksum
  6491. command-line option.
  6492. --force-truncate -> --allow-overwrite
  6493. Set initial value of --check-integrity option to false.
  6494. Don't show usage when error occurs while persing command-line options.
  6495. Removed deprecated --upload-limit option.
  6496. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6497. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6498. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6499. * src/BtAllowedFastMessage.cc:
  6500. * src/BtBitfieldMessage.cc
  6501. * src/BtCancelMessage.cc
  6502. * src/BtChokeMessage.cc
  6503. * src/BtHaveAllMessage.cc
  6504. * src/BtHaveMessage.cc
  6505. * src/BtHaveNoneMessage.cc
  6506. * src/BtInterestedMessage.cc
  6507. * src/BtNotInterestedMessage.cc
  6508. * src/BtPieceMessage.cc
  6509. * src/BtPortMessage.cc
  6510. * src/BtRejectMessage.cc
  6511. * src/BtRequestMessage.cc
  6512. * src/BtSuggestPieceMessage.cc
  6513. * src/BtUnchokeMessage.cc
  6514. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6515. files are affected.
  6516. * src/ChunkChecksumValidator.cc
  6517. * src/SegmentMan.cc
  6518. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. To add chunk checksum validation:
  6520. * src/MetalinkEntry.h
  6521. (MetalinkChunkChecksum.h): New include.
  6522. (chunkChecksum): New variable.
  6523. * src/Request.h
  6524. (method): New variable.
  6525. (setMethod): New function.
  6526. (getMethod): New function.
  6527. (METHOD_GET): New static constant.
  6528. (METHOD_HEAD): New static constant.
  6529. * src/Xml2MetalinkProcessor.h
  6530. (getPieceHash): New function.
  6531. * src/PieceStorage.h
  6532. (markAllPiecesDone): New function.
  6533. (checkIntegrity): New function.
  6534. * src/FileAllocator.h
  6535. (NullFileAllocationMonitor.h): New include.
  6536. (FileAllocator): Initialize fileAllocationMonitor with new
  6537. NullFileAllocationMonitor().
  6538. * src/MultiDiskAdaptor.h
  6539. (messageDigest.h): Remove include.
  6540. (ctx): Removed.
  6541. (hashUpdate): Added ctx.
  6542. (MultiDiskAdaptor): Removed ctx.
  6543. (sha1Sum): Renamed as messageDigest.
  6544. (messageDigest): New function.
  6545. * src/UrlRequestInfo.h
  6546. (HeadResult): New class.
  6547. (digestAlgo): New variable.
  6548. (chunkChecksumLength): New variable.
  6549. (chunkChecksums): New variable.
  6550. (getHeadResult): New function.
  6551. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6552. (setDigestAlgo): New function.
  6553. (setChunkChecksumLength): New function.
  6554. (setChunkChecksums): New function.
  6555. * src/DefaultPieceStorage.cc
  6556. (DiskAdaptorWriter.h): New include.
  6557. (ChunkChecksumValidator.h): New include.
  6558. (markAllPiecesDone): New function.
  6559. (checkIntegrity): New function.
  6560. * src/DefaultBtContext.h
  6561. (getPieceHashes): New function.
  6562. * src/TorrentRequestInfo.cc
  6563. (execute): Try to validate chunk checksum if file already exists and
  6564. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6565. * src/messageDigest.h
  6566. (~MessageDigestContext): Added digestFree().
  6567. * src/MetalinkRequestInfo.cc
  6568. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6569. * src/DiskAdaptor.h
  6570. (messageDigest.h): New include.
  6571. (sha1Sum): Renamed as messageDigest.
  6572. (messageDigest): New function.
  6573. * src/DownloadCommand.h
  6574. (PeerStat.h): New include.
  6575. (maxDownloadSpeedLimit): New variable.
  6576. (startupIdleTime): New variable.
  6577. (lowestDownloadSpeedLimit): New variable.
  6578. (peerStat): New variable.
  6579. (setMaxDownloadSpeedLimit): New function.
  6580. (setStartupIdleTime): New function.
  6581. (setLowestDownloadSPeedLimit): New function.
  6582. * src/BtContext.h
  6583. (getPieceHashes): New function.
  6584. * src/main.cc
  6585. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6586. option to true for testing purpose.
  6587. * src/BtPieceMessage.cc
  6588. (checkPieceHash): Use messageDigest
  6589. * src/DownloadEngine.cc
  6590. (SetDescriptor): Removed.
  6591. (AccumulateActiveCommand): Removed.
  6592. (waitData): Rewritten.
  6593. (updateFdSet): Rewritten.
  6594. * src/MultiDiskAdaptor.cc
  6595. (hashUpdate): Added ctx.
  6596. (sha1Sum): Renamed as messageDigest.
  6597. (messageDigest): New function.
  6598. * src/BitfieldMan.h
  6599. (isBitRangeSet): New function.
  6600. (unsetBitRange): New function.
  6601. * src/ByteArrayDiskWriter.h
  6602. (sha1Sum): Renamed as messageDigest.
  6603. (messageDigest): New function.
  6604. * src/ConsoleDownloadEngine.cc
  6605. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6606. * src/DiskWriter.h
  6607. (messageDigest.h): New include.
  6608. (sha1Sum): Renamed as messageDigest.
  6609. (messageDigest): New function.
  6610. * src/ChunkChecksumValidator.h: New class.
  6611. * src/DiskAdaptorWriter.h: New class.
  6612. * src/prefs.h
  6613. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6614. (PREF_CHECK_INTEGRITY): New definition.
  6615. * src/HttpResponseCommand.cc
  6616. (handleDefaultEncoding): Added method "HEAD" handling.
  6617. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6618. (handleOtherEncoding):
  6619. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6620. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6621. startupIdleTime, lowestDownloadSpeedLimit to command.
  6622. * src/SegmentMan.h
  6623. (getSegmentEntryByIndex): New function.
  6624. (getSegmentEntryByCuid): New function.
  6625. (getSegmentEntryIteratorByCuid): New function.
  6626. (diskWriter): DiskWriter -> DiskWriterHandle
  6627. (pieceHashes): New variable.
  6628. (chunkHashLength): New variable.
  6629. (digestAlgo): New variable.
  6630. (FindPeerStat): Removed.
  6631. (getPeerStat): Rewritten.
  6632. (markAllPiecesDone): New function.
  6633. (checkIntegrity): New function.
  6634. (tryChunkChecksumValidation): New function.
  6635. (isChunkChecksumValidationReady): New function.
  6636. * src/BitfieldMan.cc
  6637. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6638. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6639. blocks to 0.
  6640. (isBitRangeSet): New function.
  6641. (unsetBitRange): New function.
  6642. * src/FtpNegotiateCommand.cc
  6643. (executeInternal): Set maxDownloadSpeedLimit,
  6644. startupIdleTime, lowestDownloadSpeedLimit to command.
  6645. (recvSize): Added method "HEAD" handling.
  6646. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6647. * src/AbstractSingleDiskAdaptor.cc
  6648. (sha1Sum): Renamed as messageDigest.
  6649. (messageDigest): New function.
  6650. * src/AbstractSingleDiskAdaptor.h
  6651. (sha1Sum): Renamed as messageDigest.
  6652. (messageDigest): New function.
  6653. * src/Util.h
  6654. (indexRange): New function.
  6655. * src/MetalinkEntry.cc
  6656. (MetalinkEntry): Initialized chunkChecksum to 0.
  6657. * src/ShaVisitor.cc
  6658. (~ShaVisitor): Removed the call to ctx.digestFree().
  6659. * src/SegmentMan.cc
  6660. (ChunkChecksumValidator.h): New include.
  6661. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6662. to DIGEST_ALGO_SHA1.
  6663. (~SegmentMan): Removed diskWriter.
  6664. (FindSegmentEntryByIndex): Removed.
  6665. (FindSegmentEntryByCuid): Removed.
  6666. (checkoutSegment): Rewritten.
  6667. (findSlowerSegmentEntry): Rewritten.
  6668. (getSegment): Rewritten.
  6669. (updateSegment): Rewritten.
  6670. (completeSegment): Rewritten.
  6671. (markAllPiecesDone): New function.
  6672. (checkIntegrity): New function.
  6673. (isChunkChecksumValidationReady): New function.
  6674. (tryChunkChecksumValidation): New function.
  6675. * src/Xml2MetalinkProcessor.cc
  6676. (getEntry): Get size and set it to entry.
  6677. Get chunk checksum and set it to entry.
  6678. (getPieceHash): New function.
  6679. * src/Util.cc
  6680. (sha1Sum): Removed ctx.digestFree()
  6681. (fileChecksum): Removed ctx.digestFree()
  6682. (indexRange): New function.
  6683. * src/Request.cc
  6684. (METHOD_GET): New variable.
  6685. (METHOD_HEAD): New variable.
  6686. (Request): Added method.
  6687. * src/UrlRequestInfo.cc
  6688. (FatalException.h): New include.
  6689. (message.h): New include.
  6690. (operator<<): Added operator<< for class HeadResult.
  6691. (getHeadResult): New function.
  6692. (execute): Get filename and size in separate download engine.
  6693. * src/ChunkChecksumValidator.cc: New class.
  6694. * src/DownloadCommand.cc:
  6695. (DownloadCommand): Added peerStat.
  6696. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6697. the value from Option.
  6698. The buffer size is now 16KB.
  6699. Use peerStat member instead of getting it from SegmentMan.
  6700. Use startupIdleTime member instead of gettingit from Option.
  6701. Added chunk checksum validation.
  6702. * src/AbstractDiskWriter.cc
  6703. (AbstractDiskWriter): Removed ctx.
  6704. (~AbstractDiskWriter): Removed ctx.digestFree()
  6705. (writeDataInternal): Returns the return value of write.
  6706. (readDataInternal): Returns the return value of read.
  6707. (sha1Sum): Renamed as messageDigest
  6708. (messageDigest): New function.
  6709. * src/AbstractDiwkWriter.h
  6710. (messageDigest.h): Removed include.
  6711. (ctx): Removed.
  6712. (sha1Sum): Renamed as messageDigest
  6713. (messageDigest): New function.
  6714. * src/DefaultPieceStorage.h
  6715. (markAllPiecesDone): New function.
  6716. (checkIntegrity): New function.
  6717. * src/NullFileAllocationMonitor.h: New class.
  6718. * src/MetalinkChunkChecksum.h: New class.
  6719. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. To decrease CPU usage in bittorrent download, calculation results in
  6721. BitfieldMan were cached and realtime fetching PeerObject was removed
  6722. with WeakHandle introduced. Option values are set to the objects
  6723. by setter before download begins.
  6724. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6725. * src/DefaultBtRequestFactory.h
  6726. (dispatcher): BtMessageDispatcherHandle ->
  6727. BtMessageDispatcherWeakHandle.
  6728. (messageFactory): New variable.
  6729. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6730. BtMessageDispatcherWeakHandle.
  6731. (setBtMessageFactory): New function.
  6732. * src/DefaultBtMessageDispatcher.cc:
  6733. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6734. from Option.
  6735. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6736. feating the value from Option.
  6737. Use messageFactory member.
  6738. * src/PeerInteractionCommand.cc
  6739. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6740. Add reverse dependencies to factory object.
  6741. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6742. dispatcher.
  6743. Set messageFactory to receiver.
  6744. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6745. btInteractive.
  6746. Set receiver to peerObject.
  6747. Set maxDownloadSpeedLimit to this.
  6748. (executeInternal): Use maxDownloadSpeedLimit member.
  6749. * src/BtChokeMessage.cc
  6750. (doReceivedAction): Use dispatcher, requestFactory member.
  6751. (onSendComplete): Use dispatcher member.
  6752. * src/PeerInteractionCommand.h
  6753. (maxDownloadSpeedLimit): New variable.
  6754. * src/DefaultBtMessageReceiver.h
  6755. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6756. (dispatcher):
  6757. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6758. (messageFactory): New variable.
  6759. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6760. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6761. (setDispatcher):
  6762. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6763. (setBtMessageFactory): New function.
  6764. * src/DefaultBtInteractive.cc
  6765. (initiateHandshake): Use messageFactory member.
  6766. (addBitfieldMessageToQueue): Use messageFactory member.
  6767. (addAllowedFastMessageToQueue): Use messageFactory member.
  6768. (decideChoking): Use messageFactory member.
  6769. (checkHave): Use messageFactory member.
  6770. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  6771. (receiveMessages): Use maxDownloadSpeedLimit member.
  6772. (decideInterest): Use messageFactory member.
  6773. * src/BtRequestMessage.cc
  6774. (doReceivedAction): Use messageFactory, dispatcher member.
  6775. (onQueued): Use dispatcher member.
  6776. * src/BtPieceMessage.cc
  6777. (doReceivedAction): Use dispatcher member.
  6778. (send): Use peerConnection member.
  6779. (onWrongPiece): Use requestFactory member.
  6780. (handleChokingEvent): Use messageFactory, dispatcher member.
  6781. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6782. * src/BtMessageDispatcher.h
  6783. (BtMessageDispatcherWeakHandle): New type definition.
  6784. * src/SimpleBtMessage.cc
  6785. (send): Use peerConnection member.
  6786. * src/BtRejectMessage.cc
  6787. (doReceivedAction): Use dispatcher member.
  6788. * src/DefaultBtMessageDispatcher.h
  6789. (Option.h): Removed include.
  6790. (messageFactory): New variable.
  6791. (option): Removed.
  6792. (maxUploadSpeedLimit): New variable.
  6793. (requestTimeout): New variable.
  6794. (DefaultBtMessageDispatcher): Removed option.
  6795. Added maxUploadSpeedLimit, requestTimeout.
  6796. (setOption): Removed.
  6797. (getOption): Removed.
  6798. (setMaxUploadSpeedLimit): New function.
  6799. (setRequestTimeout): New function.
  6800. (setBtMessageFactory): New function.
  6801. * src/DefaultBtInteractive.h
  6802. (btMessageReceiver):
  6803. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6804. (dispatcher):
  6805. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6806. (btRequestFactory):
  6807. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6808. (peerConnection):
  6809. PeerConnectionHandle -> PeerConnectionWeakHandle
  6810. (messageFactory): New variable.
  6811. (option): Removed.
  6812. (keepAliveInterval): New variable.
  6813. (maxDownloadSpeedLimit): New variable.
  6814. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6815. (setBtMessageReceiver):
  6816. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6817. (setDispatcher):
  6818. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6819. (setBtRequestFactory):
  6820. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6821. (setPeerConnection):
  6822. PeerConnectionHandle -> PeerConnectionWeakHandle
  6823. (setOption): Removed.
  6824. (setKeepAliveInterval): New function.
  6825. (setMaxDownloadSpeedLimit): New function.
  6826. (setBtMessageFactory): New function.
  6827. * src/BitfieldMan.h
  6828. (cachedNumMissingBlock): New variable.
  6829. (cachedNumFilteredBlock): New variable.
  6830. (cachedCompletedLength): New variable.
  6831. (cachedFilteredComletedLength): New variable.
  6832. (cachedFilteredTotalLength): New variable.
  6833. (countMissingBlockNow): New function.
  6834. (countFilteredBlockNow): New function.
  6835. (getFilteredTotalLengthNow): New function.
  6836. (getCompletedLengthNow): New function.
  6837. (getFilteredCompletedLengthNow): New function.
  6838. (updateCache): New function.
  6839. * src/AbstractBtMessage.h
  6840. (BtMessageDispatcher.h): New include.
  6841. (PeerConnection.h): New include.
  6842. (BtRequestFactory.h): New include
  6843. (BtMessageFactory.h): New include.
  6844. (dispatcher): New variable.
  6845. (messageFactory): New variable.
  6846. (peerConnection: New variable.
  6847. (setBtMessageDispatcher): New function.
  6848. (setPeerConnection): New function.
  6849. (setBtMessageFactory): New function.
  6850. (setBtRequestFactory): New function.
  6851. * src/DefaultBtMessageFactory.cc
  6852. (setCommonProperty): Set dispatcher, requestFactory, this,
  6853. peerConnection to msg.
  6854. * src/BtRegistry.h
  6855. (BT_MESSAGE_RECEIVER): New macro.
  6856. * src/PeerConnection.h
  6857. (PeerConnectionWeakHandle): New type definition.
  6858. * src/BtMessageFactory.h
  6859. (BtMessageFactoryWeakHandle): New type definition.
  6860. * src/BitfieldMan.cc
  6861. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6862. cachedCompletedLength, cachedFilteredComletedLength,
  6863. cachedFilteredTotalLength.
  6864. Call updateCache().
  6865. (countMissingBlock): Return cachedNumMissingBlock.
  6866. (countMissingBlockNow): New function.
  6867. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6868. (countFilteredBlockNow): New function.
  6869. (setBit): Call updateCache().
  6870. (unsetBit): Call updateCache().
  6871. (setBitfield): Call updateCache().
  6872. (clearAllBit): Call updateCache().
  6873. (setAllBit): Use setBitInternal instead of setBit.
  6874. Call updateCache().
  6875. (addFilter): Call updateCache().
  6876. (enableFilter): Call updateCache().
  6877. (disableFilter): Call updateCache().
  6878. (clearFilter): Call updateCache().
  6879. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6880. (getFilteredTotalLengthNow): New function.
  6881. (getCompletedLength): Return cachedCompletedLength.
  6882. (getCompletedLengthNow): New function.
  6883. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6884. (getFilteredCompletedLengthNow): New function.
  6885. (updateCache): New function.
  6886. * src/BtMessageReceiver.h
  6887. (BtMessageReceiverWeakHandle): New type definition.
  6888. * src/DefaultBtMessageReceiver.cc
  6889. (receiveHandshake): Use messageFactory member.
  6890. (sendHandshake): Use messageFactory member.
  6891. (receiveMessage): Use messageFactory member.
  6892. * src/DefaultBtMessageFactory.h
  6893. (dispatcher): New variable.
  6894. (requestFactory): New variable.
  6895. (peerConnection): New variablle.
  6896. (setBtMessageDispatcher): New function.
  6897. (setBtRequestFactory): New function.
  6898. (setPeerConnection): New function.
  6899. * src/SharedHandle.h
  6900. (RefCount): New class.
  6901. (WeakHandle): New class.
  6902. * src/PeerObject.h
  6903. (BtMessageReceiver.h): New include.
  6904. (PeerObject): Added btMessageReceiver.
  6905. (btMessageReceiver): New variable.
  6906. * src/Util.cc
  6907. (countBit): Simplified.
  6908. * src/BtCancelMessage.cc
  6909. (doReceivedAction): Use dispatcher member.
  6910. * src/BtRequestFactory.h
  6911. (BtRequestFactoryWeakHandle): New type definition.
  6912. * src/PeerStorage.h
  6913. (downloadSpeed): int -> uint32_t
  6914. (uploadSpeed): int -> uint32_t
  6915. (sessionDownloadLength): long long int -> uint64_t
  6916. (sessionUploadLength): long long int -> uint64_t
  6917. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6918. To add RecoverableException, FatalException:
  6919. * src/AbstractCommand.cc
  6920. (onAbort): Exception -> RecoverableException
  6921. * src/PeerAbstractCommand.h
  6922. (RecoverableException.h): New include.
  6923. (onAbort): Exception -> RecoverableException.
  6924. * src/PeerInteractionCommand.cc
  6925. (onAbort): Exception -> RecoverableException.
  6926. * src/PeerAbstractCommand.cc
  6927. (execute): Exception -> RecoverableException.
  6928. (onAbort): Exception -> RecoverableException.
  6929. * src/TorrentRequestInfo.cc
  6930. (execute): Exception -> RecoverableException.
  6931. * src/MetalinkRequestInfo.cc
  6932. (execute): Exception -> RecoverableException.
  6933. * src/MetaFileUtil.cc: RecoverableException.
  6934. * src/AbstractCommand.h
  6935. (onAbort): Exception -> RecoverableException.
  6936. * src/DlRetryEx.h: Exception -> RecoverableException.
  6937. * src/DlAbortEx.h: Exception -> RecoverableException.
  6938. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6939. * src/Util.cc: Exception -> RecoverableException.
  6940. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6941. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6942. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6943. To make ID static const int
  6944. * src/BtInterestedMessage.h
  6945. (ID_t): Removed.
  6946. (ID): New variable.
  6947. (getId): Made non-const.
  6948. * src/BtPieceMessage.h
  6949. (ID_t): Removed.
  6950. (ID): New variable.
  6951. (getId): Made non-const.
  6952. * src/BtChokeMessage.h
  6953. (ID_t): Removed.
  6954. (ID): New variable.
  6955. (getId): Made non-const.
  6956. * src/BtHaveAllMessage.h
  6957. (ID_t): Removed.
  6958. (ID): New variable.
  6959. (getId): Made non-const.
  6960. * src/BtKeepAliveMessage.h
  6961. (ID_t): Removed.
  6962. (ID): New variable.
  6963. (getId): Made non-const.
  6964. * src/BtHandshakeMessage.h
  6965. (ID): New variable.
  6966. (getId): Made non-const.
  6967. * src/BtSuggestPieceMessage.h
  6968. (ID_t): Removed.
  6969. (ID): New variable.
  6970. (getId): Made non-const.
  6971. * src/BtPortMessage.h
  6972. (ID_t): Removed.
  6973. (ID): New variable.
  6974. (getId): Made non-const.
  6975. * src/AbstractBtMessage.h
  6976. (id): Removed.
  6977. (AbstractBtMessage): Removed id.
  6978. (getId): Removed.
  6979. * src/BtHaveMessage.h
  6980. (ID_t): Removed.
  6981. (ID): New variable.
  6982. (getId): Made non-const.
  6983. * src/BtAllowedFastMessage.h
  6984. (ID_t): Removed.
  6985. (ID): New variable.
  6986. (getId): Made non-const.
  6987. * src/BtCancelMessage.h
  6988. (ID_t): Removed.
  6989. (ID): New variable.
  6990. (getId): Made non-const.
  6991. * src/BtNotInterestedMessage.h
  6992. (ID_t): Removed.
  6993. (ID): New variable.
  6994. (getId): Made non-const.
  6995. * src/BtChokeMessage.h
  6996. (ID_t): Removed.
  6997. (ID): New variable.
  6998. (getId): Made non-const.
  6999. * src/BtRejectMessage.h
  7000. (ID_t): Removed.
  7001. (ID): New variable.
  7002. (getId): Made non-const.
  7003. * src/BtBitfieldMessage.h
  7004. (ID_t): Removed.
  7005. (ID): New variable.
  7006. (getId): Made non-const.
  7007. * src/BtUnchokeMessage.h
  7008. (ID_t): Removed.
  7009. (ID): New variable.
  7010. (getId): Made non-const.
  7011. * src/BtRequestMessage.h
  7012. (ID_t): Removed.
  7013. (ID): New variable.
  7014. (getId): Made non-const.
  7015. * src/BtHaveMessage.h
  7016. (ID_t): Removed.
  7017. (ID): New variable.
  7018. (getId): Made non-const.
  7019. To add --force-truncate command-line option and a check whether
  7020. the file already exists:
  7021. * src/DirectDiskAdaptor.h
  7022. (getFilePath): Made virtual public.
  7023. * src/MultiDiskAdaptor.h
  7024. (File.h): New include.
  7025. (DiskWriterEntry::fileEntry): Made private.
  7026. (DiskWriterEntry::fileExists): New function.
  7027. (DiskWriterEntry::getFileEntry): New function.
  7028. (fileExists): New function.
  7029. (getFilePath): New function.
  7030. * src/TorrentRequestInfo.cc
  7031. (FatalException.h): New include.
  7032. (message.h): New include.
  7033. (RecoverableException.h): New include.
  7034. (execute): Added a check whether file is already exists or not.
  7035. * src/DiskAdaptor.h
  7036. (fileExists): New function.
  7037. (getFilePath): New function.
  7038. * src/main.cc
  7039. (showUsage): Added an explanation of --force-truncate command-line
  7040. option.
  7041. (main): Added --force-truncate command-line option.
  7042. * src/Exception.h
  7043. (setMsg): buf[256] -> buf[1024]
  7044. * src/CopyDiskWriter.h
  7045. (getFilePath): Made public virtual.
  7046. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  7047. (fileExists): New function.
  7048. * src/DownloadEngineFactory.cc
  7049. (newTorrentConsoleEngine): Don't open file here.
  7050. * src/message.h
  7051. (EX_FILE_ALREADY_EXISTS): New definition.
  7052. * src/prefs.h
  7053. (PREF_FOECE_TRUNCATE): New definition.
  7054. * src/HttpResponseCommand.cc
  7055. (handleDefaultEncoding): Added a check whether the file already exists.
  7056. * src/SegmentMan.h
  7057. (fileExists): New function.
  7058. (shouldCancelDownloadForSafety): New function.
  7059. * src/FtpNegotiateCommand.cc
  7060. (recvSize): Added a check whether the file already exists.
  7061. * src/AbstractSingleDiskAdaptor.cc
  7062. (File.h): New include.
  7063. (fileExists): New function.
  7064. * src/AbstractSingleDiskAdaptor.h
  7065. (getFilePath): Removed.
  7066. (fileExists): New function.
  7067. * src/SegmentMan.cc
  7068. (fileExists): New function.
  7069. (shouldCancelDownloadForSafety): New function.
  7070. To fix regression bug in torrent downloading:
  7071. * src/DefaultBtRequestFactory.cc
  7072. (doChokedAction): New function.
  7073. * src/DefaultBtRequestFactory.h
  7074. (doChokedAction): New function.
  7075. * src/DefaultBtMessageDispatcher.cc
  7076. (doChokedAction): Do not delete request if its target is in allowed
  7077. fast set.
  7078. * src/DefaultBtInteractive.cc
  7079. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  7080. (sendKeepAlive): Send keep alive message even if the outgoing message
  7081. queue is not empty.
  7082. (decideInterest): Simplified the code.
  7083. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  7084. it is already called when BtChokeMessage is received from a peer.
  7085. * src/BtRequestFactory.h
  7086. (doChokedAction): New function.
  7087. To clean up code:
  7088. * src/PeerInteractionCommand.h
  7089. (executeInternal): Added virtual keyword explicitly.
  7090. (prepareForRetry): Added virtual keyword explicitly.
  7091. (prepareForNextPeer): Added virtual keyword explicitly.
  7092. (onAbort): Added virtual keyword explicitly.
  7093. * src/RequestSlot.cc
  7094. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  7095. * src/BtPieceMessage.cc
  7096. (doReceivedAction): Added a debug log of piece's bitfield.
  7097. * src/Piece.h
  7098. (getBitfieldLength): New function.
  7099. * src/ByteArrayDiskWriter.cc
  7100. (clear): Added buf = 0 to avoid double free corruption.
  7101. * src/FileAllocator.cc
  7102. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  7103. Added cp.reset().
  7104. * src/BitfieldMan.h
  7105. (operator=): Rewritten.
  7106. * src/BitfieldMan.cc
  7107. (BitfieldMan): Initialized bitfield, useBitfield.
  7108. * src/PeerConnection.cc
  7109. (receiveMessage): Added a call to socket->readable() after getting
  7110. message length to avoid possible EOF.
  7111. * src/Util.cc
  7112. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  7113. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. To add an ability to pre-allocate file space:
  7115. * src/DirectDiskAdaptor.h: Rewritten.
  7116. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  7117. * src/MultiDiskAdaptor.h: Rewritten.
  7118. * src/DefaultPieceStorage.cc
  7119. (MultiDiskWriter.h): Removed include.
  7120. (PreAllocationDiskWriter.h): Removed include.
  7121. (FileAllocationMonitor.h): New include.
  7122. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  7123. (initStorage): Rewritten.
  7124. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7125. * src/FileAllocator.h: New class.
  7126. * src/FileAllocator.cc: New class.
  7127. * src/FileAllocationMonitor.h: New class.
  7128. * src/FileAllocationMonitor.cc: New class.
  7129. * src/ConsoleFileAllocationMonitor.h: New class.
  7130. * src/ConsoleFileAllocationMonitor.cc: New class.
  7131. * src/AbstractSingleDiskAdaptor.h: New class.
  7132. * src/AbstractSingleDiskAdaptor.cc: New class.
  7133. * src/DiskAdaptor.h
  7134. (Directory.h): Removed include.
  7135. (DiskWriter.h): Removed include.
  7136. (FileEntry.h): Removed include.
  7137. (diskWriter): Removed.
  7138. (DiskAdaptor): Removed diskWriter.
  7139. (openFile): Made pure virtual.
  7140. (closeFile): Made pure virtual.
  7141. (openExistingFile): Made pure virtual.
  7142. (initAndOpenFile): Made pure virtual.
  7143. (writeData): Made pure virtual.
  7144. (readData): Made pure virtual.
  7145. (sha1Sum): Made pure virtual.
  7146. (getStoreDir): Returns const reference of storeDir.
  7147. (DiskAdaptorHandle): New type definition.
  7148. * src/main.cc
  7149. (ConsoleFileAllocationMonitor.h): New include.
  7150. (showUsage): Added default value description of -s option.
  7151. Added the description of --file-allocation option.
  7152. (main): Set default value of --file-allocation option to 'none'.
  7153. Added --file-allocation command-line option.
  7154. Setup FileAllocationMonitorFactory.
  7155. * src/FtpInitiateConnectionCommand.cc
  7156. (executeInternal): Removed diskWriter related processing, which was
  7157. moved to FtpNegotiationCommand.cc.
  7158. * src/DirectDiskAdaptor.cc
  7159. (getFilePath): Made non-const.
  7160. * src/CopyDiskAdaptor.h
  7161. (DiskAdaptor.h): Removed include.
  7162. (DiskWriter.h): Removed include.
  7163. (AbstractSingleDiskAdaptor.h): New include.
  7164. (getFilePath): Made non-const. Added virtual keyword.
  7165. (CopyDiskAdaptor): Removed diskWriter.
  7166. (getTempFile): Returns const reference.
  7167. (CopyDiskAdaptorHandle): New type definition.
  7168. * src/ByteArrayDiskWriter.cc
  7169. (clear): Simplified.
  7170. (initAndOpenFile): Rewritten.
  7171. (openFile): Call initAndOpenFile()
  7172. * src/MultiDiskAdaptor.cc: Rewritten.
  7173. * src/DownloadEngineFactory.cc
  7174. (FileAllocator.h): New include.
  7175. (FileAllocationMonitor.h): New include.
  7176. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7177. create DefaultDiskWriter with file allocator.
  7178. * src/DiskWriter.h
  7179. (initAndOpenFile): Added totalLength argument.
  7180. (openFile): Added totalLength argument.
  7181. * src/prefs.h
  7182. (PREF_FILE_ALLOCATION): New definition.
  7183. (V_PREALLOC): New definition.
  7184. (V_NONE): New definition.
  7185. * src/HttpResponseCommand.cc
  7186. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7187. size.
  7188. * src/FtpNegotiateCommand.cc
  7189. (Util.h): New include.
  7190. (recvSize): Open file here.
  7191. * src/Util.h
  7192. (ullitos): New function.
  7193. * src/CopyDiskWriter.h
  7194. (getFilePath): Made non-const.
  7195. * src/DefaultDiskWriter.h
  7196. (Option.h): New include.
  7197. (totalLength): Removed.
  7198. (DefaultDiskWriter): Removed totalLength.
  7199. (initAndOpenFile): Added totalLength argument.
  7200. (DefaultDiskWriterHandle): New type definition.
  7201. (createNewDiskWriter): New function.
  7202. * src/Util.cc
  7203. (ullitos): New function.
  7204. * src/DefaultDiskWriter.cc
  7205. (message.h): New include.
  7206. (FileAllocator.h): New include.
  7207. (prefs.h): New include.
  7208. (Util.h): New include.
  7209. (DefaultDiskWriter): Removed totalLength.
  7210. (initAndOpenFile): Added file allocation.
  7211. (createNewDiskWriter): New function. Just for temporary solution.
  7212. It will be rewritten later.
  7213. * src/DiskAdaptor.cc
  7214. (DiskAdaptor): Removed diskWriter.
  7215. * src/AbstractDiskWriter.cc
  7216. (LogFactory.h): New include.
  7217. (AbstractDiskWriter): Added fileAllocator, logger.
  7218. (openFile): Added totalLength argument.
  7219. * src/AbstractDiskWriter.h
  7220. (FileAllocator.h): New include.
  7221. (Logger.h): New include.
  7222. (fileAllocator): New variable.
  7223. (logger): New variable.
  7224. (openFile): Added totalLength argument. Added virtual keyword
  7225. explicitly.
  7226. (openExistingFile): Added totalLength argument. Added virtual keyword
  7227. explicitly.
  7228. (closeFile): Added virtual keyword explicitly.
  7229. (sha1Sum): Added virtual keyword explicitly.
  7230. (writeData): Added virtual keyword explicitly.
  7231. (readData): Added virtual keyword explicitly.
  7232. (setFileAllocator): New function.
  7233. * src/DefaultPieceStorage.h
  7234. (FileAllocator.h): New include.
  7235. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7236. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7237. * src/FileProgressMonitor.h: New class.
  7238. To compile aria2 on PC-BSD:
  7239. * src/DefaultBtContext.cc
  7240. (libgen.h): New include.
  7241. To fix memory leak:
  7242. * src/Exception.h
  7243. (~Exception): Delete cause. Fixed memory leak.
  7244. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Rewritten a portion of bittorrent implementation:
  7246. * src/BtMessageValidator.h: New class.
  7247. * src/BtBitfieldMessageValidator.h: New class.
  7248. * src/BtHandshakeMessageValidator.h: New class.
  7249. * src/BtRequestMessageValidator.h: New class.
  7250. * src/BtSuggestPieceMessageValidator.h: New class.
  7251. * src/BtAllowedFastMessageValidator.h: New class.
  7252. * src/BtRejectMessageValidator.h: New class.
  7253. * src/BtCancelMessageValidator.h: New class.
  7254. * src/BtPieceMessageValidator.h: New class.
  7255. * src/BtHaveMessageValidator.h: New class.
  7256. * src/BtEventListener.h: New class.
  7257. * src/AbstractBtEventListener.h: New class.
  7258. * src/BtEvent.h: New class.
  7259. * src/BtChokingEvent.h: New class.
  7260. * src/BtChokedEvent.h: New class.
  7261. * src/BtCancelSendingPieceEvent.h: New class.
  7262. * src/BtAbortOutstandingRequestEvent.h: New class.
  7263. * src/Randomizer.h: New class.
  7264. * src/SimpleRandomizer.h: New class.
  7265. * src/BtMessage.h: New class.
  7266. * src/AbstractBtMessage.h: New class.
  7267. * src/SimpleBtMessage.h: New class.
  7268. * src/BtHaveMessage.h: New class.
  7269. * src/BtInterestedMessage.h: New class.
  7270. * src/BtAllowedFastMessage.h: New class.
  7271. * src/BtUnchokeMessage.h: New class.
  7272. * src/BtCancelMessage.h: New class.
  7273. * src/BtNotInterestedMessage.h: New class.
  7274. * src/BtChokeMessage.h: New class.
  7275. * src/BtHaveNoneMessage.h: New class.
  7276. * src/BtHandshakeMessage.h: New class.
  7277. * src/BtSuggestPieceMessage.h: New class.
  7278. * src/BtHaveMessage.h: New class.
  7279. * src/BtPieceMessage.h: New class.
  7280. * src/BtHaveAllMessage.h: New class.
  7281. * src/BtKeepAliveMessage.h: New class.
  7282. * src/BtPortMessage.h: New class.
  7283. * src/BtRejectMessage.h: New class.
  7284. * src/BtBitfieldMessage.h: New class.
  7285. * src/BtRequestMessage.h: New class.
  7286. * src/DefaultBtRequestFactory.h: New class.
  7287. * src/DefaultBtMessageReceiver.h: New class.
  7288. * src/BtInteractive.h: New class.
  7289. * src/BtMessageDispatcher.h: New class.
  7290. * src/DefaultBtMessageDispatcher.h: New class.
  7291. * src/DefaultBtInteractive.h: New class.
  7292. * src/BitfieldManFactory.h: New class.
  7293. * src/HandleRegistry.h: New class.
  7294. * src/BtMessageFactory.h: New class.
  7295. * src/BtMessageReceiver.h: New class.
  7296. * src/DefaultBtMessageFactory.h: New class.
  7297. * src/PeerObject.h: New class.
  7298. * src/BtRequestFactory.h: New class.
  7299. * src/SuggestPieceMessage.h: Removed.
  7300. * src/PortMessage.h: Removed.
  7301. * src/SuggestPieceMessage.h: Removed.
  7302. * src/KeepAliveMessage.h: Removed.
  7303. * src/HandshakeMessage.h: Removed.
  7304. * src/PeerInteraction.h: Removed.
  7305. * src/UnchokeMessage.h: Removed.
  7306. * src/PieceMessage.h: Removed.
  7307. * src/RequestMessage.h: Removed.
  7308. * src/InterestedMessage.h: Removed.
  7309. * src/HaveMessage.h: Removed.
  7310. * src/CancelMessage.h: Removed.
  7311. * src/RejectMessage.h: Removed.
  7312. * src/AllowedFastMessage.h: Removed.
  7313. * src/HaveNoneMessage.h: Removed.
  7314. * src/SimplePeerMessage.h: Removed.
  7315. * src/HaveAllMessage.h: Removed.
  7316. * src/BitfieldMessage.h: Removed.
  7317. * src/PeerMessageFactory.h: Removed.
  7318. * src/NotInterestedMessage.h: Removed.
  7319. * src/ChokeMessage.h: Removed.
  7320. * src/PeerMessage.h: Removed.
  7321. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. To know root cause of exception:
  7323. * src/Exception.h
  7324. (cause): New variable.
  7325. (Exception): Added a parameter.
  7326. (getMsg): Return const reference to msg.
  7327. (getCause): New function.
  7328. * src/DlRetryEx.h
  7329. (DlRetryEx): Added a parameter 'cause'.
  7330. Added an overloaded constructor.
  7331. (DlAbortEx): Added a parameter 'cause'.
  7332. Added an overloaded constructor.
  7333. * src/SimpleLogger.cc
  7334. (writeLog): Log nested exception messages recursively.
  7335. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7336. * src/DefaultBtProgressInfoFile.cc
  7337. (load): Fixed memory leak when the infohash doesn't match.
  7338. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. * src/DefaultPeerStorage.cc
  7340. (calculateStat): Simplified the code by combining 2 loops into 1.
  7341. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  7343. for BitTorrent download:
  7344. * src/PeerAbstractCommand.cc
  7345. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  7346. * src/main.cc:
  7347. (timeoutSpecified): Removed.
  7348. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  7349. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  7350. * src/TorrentRequestInfo.cc
  7351. (timeoutSpecified): Removed.
  7352. (torrentHandler): Removed timeoutSpecified and the adjustment of
  7353. timeout value.
  7354. * src/prefs.h
  7355. (PREF_BT_TIMEOUT): New definition.
  7356. Delete unused variables:
  7357. * src/TorrentRequestInfo.cc
  7358. (requestInfo): Removed.
  7359. Move setSignalHander to Util::setGlobalSignalHandler:
  7360. * src/TorrentRequestInfo.cc:
  7361. setSignalHander -> Util::setGlobalSignalHandler
  7362. * src/main.cc
  7363. (setSignalHander): Removed.
  7364. (main): setSignalHander -> Util::setGlobalSignalHandler
  7365. * src/Util.h
  7366. (setGlobalSignalHandler): New function.
  7367. * src/Util.cc
  7368. (setGlobalSignalHandler): New function.
  7369. * src/UrlRequestInfo.cc:
  7370. setSignalHander -> Util::setGlobalSignalHandler
  7371. Reset peer status in order to exit gracefully:
  7372. * src/PeerAbstractCommand.cc
  7373. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  7374. To fix the bug that causes the number of bytes uploaded is not saved
  7375. to .aria2 file:
  7376. * src/DefaultPeerStorage.h
  7377. (removedPeerSessionDownloadLength): New variable.
  7378. (removedPeerSessionUploadLength): New variable.
  7379. * src/DefaultPeerStorage.cc
  7380. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  7381. removedPeerSessionUploadLength(0).
  7382. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  7383. through all peers, and then add removedPeerSessionDownloadLength(
  7384. removedPeerSessionUploadLength) to it.
  7385. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  7386. (to) the peer to removedPeerSessionDownloadLength
  7387. (removedPeerSessionUploadLength).
  7388. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. To add Metalink location option:
  7390. * src/MetalinkRequestInfo.cc
  7391. (execute): Call MetalinkEntry::setLocationPreference()
  7392. * src/main.cc
  7393. (showUsage): Added the help message for --metalink-location option.
  7394. (main): Added --metalink-location option.
  7395. * src/prefs.h
  7396. (PREF_METALINK_LOCATION): New definition.
  7397. * src/MetalinkEntry.cc
  7398. (AddLocationPreference): New function object.
  7399. (setLocationPreference): New function.
  7400. * src/Xml2MetalinkProcessor.cc
  7401. (getResource): Set location attribute to MetalinkResource
  7402. To show URLs to download
  7403. * src/UrlRequestInfo.h
  7404. (printUrls): New function.
  7405. To add multiple <file> Metalink support:
  7406. * src/MetalinkEntry.h
  7407. (MetalinkResources): Removed.
  7408. (setLocationPreference): New function.
  7409. (MetalinkEntryHandle): New type definition.
  7410. (MetalinkEntries): New type definition.
  7411. * src/Xml2MetalinkProcessor.h
  7412. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7413. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7414. (parseFile): Metalinker* -> MetalinkerHandle
  7415. * src/UrlRequestInfo.h
  7416. (execute): RequestInfo* -> RequestInfos
  7417. * src/MetalinkRequestInfo.cc
  7418. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  7419. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  7420. (execute): RequestInfo* -> RequestInfos
  7421. Added multiple <file> support. Print filename when it is queued.
  7422. * src/MetalinkRequestInfo.h
  7423. (execute): RequestInfo* -> RequestInfos
  7424. (getDownloadEngine): Removed.
  7425. * src/RequestInfo.h
  7426. (RequestInfoHandle): New type definition.
  7427. (RequestInfos): New type definition.
  7428. (execute): RequestInfo* -> RequestInfos
  7429. (getDownloadEngine): Removed.
  7430. * src/MetalinkResource.h
  7431. (MetalinkResourceHandle): New type definition.
  7432. (MetalinkResources): New type definition.
  7433. * src/MetalinkEntry.cc
  7434. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7435. because the element is now of type MetalinkResourceHandle.
  7436. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7437. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7438. (dropUnsupportedResource): Removed the deletion of the elements of
  7439. resources because the element is now of type MetalinkResourceHandle.
  7440. * src/Xml2MetalinkProcessor.cc
  7441. (parseFile): Metalinker* -> MetalinkerHandle
  7442. MetalinkEntry* -> MetalinkEntryHandle
  7443. Removed try-catch block.
  7444. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7445. MetalinkResource* -> MetalinkResourceHandle
  7446. Removed try-catch block.
  7447. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7448. Free result by using xmlXPathFreeObject()
  7449. * src/Metalinker.cc
  7450. (~Metalinker): Removed the deletion of entries.
  7451. MetalinkEntry* -> MetalinkEntryHandle
  7452. (queryEntry): Add multiple <file> Metalink support.
  7453. * src/Metalinker.h
  7454. (MetalinkEntries): Removed.
  7455. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7456. * src/MetalinkProcessor.h
  7457. (parseFile): Metalinker* -> MetalinkerHandle
  7458. Bug fixes:
  7459. * src/PeerChokeCommand.cc
  7460. (execute): cat01->cat02
  7461. * src/DefaultPieceStorage.cc
  7462. (DefaultPieceStorage): Added diskAdaptor(0)
  7463. * src/TrackerWatcherComand.cc:
  7464. (execute): Use btAnnounce->noMoreAnnounce()
  7465. to determin whether the function returns true or not.
  7466. * src/TrackerUpdateCommand.cc:
  7467. (execute): Use btAnnounce->noMoreAnnounce()
  7468. to determin whether the function returns true or not.
  7469. * src/FtpConnection.cc
  7470. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7471. This is the fix of the busy loop bug.
  7472. * src/DownloadCommand.cc
  7473. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7474. cached PeerStat.
  7475. The value of "name" entry in torrent file is now set by
  7476. *DiskAdaptor::setTopDir(...) methods.
  7477. * src/MultiDiskAdaptor.h
  7478. (topDir): New variable.
  7479. (setTopDir): New function.
  7480. (getTopDir): New function.
  7481. * src/MultiDiskAdaptor.cc
  7482. (getFilePath): Concat storDir, "/" and topDir.
  7483. (mkdir): Use getFilePath() to get the directory path for output.
  7484. * src/DefaultPieceStorage.cc
  7485. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7486. CopyDiskAdaptor.
  7487. * src/CopyDiskAdaptor.h
  7488. (topDir): New variable.
  7489. (setTopDir): New function.
  7490. (getTopDir): New function.
  7491. * src/CopyDiskAdaptor.cc
  7492. (fixFilename): Updated.
  7493. Misc
  7494. * src/UrlRequestInfo.h
  7495. (e): Removed.
  7496. (UrlRequestInfo): Removed e.
  7497. (getDownloadEngine): Removed.
  7498. * src/UrlRequestInfo.cc
  7499. (handler): Rewritten.
  7500. (printUrls): New function.
  7501. (execute): Call printUrls().
  7502. * src/HandshakeMessage.cc
  7503. (check): peerinteraction->getBtContext() -> btContext
  7504. * src/PeerInteraction.h
  7505. (getBtContext): Removed.
  7506. * src/TorrentRequestInfo.h
  7507. (execute): RequestInfo* -> RequestInfos
  7508. (getDownloadEngine): Removed.
  7509. * src/TorrentRequestInfo.cc
  7510. (haltRequested): Removed.
  7511. (btHaltRequested): New variable.
  7512. (torrentHandler): haltRequested -> btHaltRequested
  7513. (execute): RequestInfo* -> RequestInfos
  7514. * src/TorrentConsoleDownloadEngine.cc
  7515. (afterEachIteration): haltRequested -> btHaltRequested.
  7516. * src/ConsoleDownloadEngine.h
  7517. (initStatistics): Added virtual.
  7518. (calculateStatistics): Added virtual.
  7519. (onEndOfRun): Added virtual.
  7520. (afterEachIteration): Added virtual.
  7521. * src/ConsoleDownloadEngine.cc
  7522. (haltRequested): New variable.
  7523. (afterEachIteration): New function.
  7524. * src/main.cc
  7525. (requestInfo): Removed.
  7526. * src/SegmentMan.cc
  7527. (findSlowerSegmentEntry): Refactored.
  7528. * Release 0.9.0
  7529. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7531. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7532. * src/TorrentMan.h: Removed.
  7533. * src/TorrentMan.cc: Removed.
  7534. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7535. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7536. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7537. * src/PeerAbstractCommand.cc: Use btRuntime.
  7538. * src/BtContextAwareCommand.h: New class.
  7539. * src/FileEntry.h: Added accessor methods for following variables.
  7540. (path): Made private.
  7541. (length): Made private.
  7542. (offset): Made private.
  7543. (extracted): Made private.
  7544. (requested): Made private.
  7545. (FileEntries): New definition.
  7546. (FileEntryHandle): New definition.
  7547. * src/FileEntry.cc: New file.
  7548. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7549. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7550. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7551. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7552. * src/PieceStorage.h: New file.
  7553. * src/PeerInteractionCommand.h: Use btContext.
  7554. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7555. btRuntime.
  7556. * src/DefaultBtProgressInfoFile.h: New file.
  7557. * src/DefaultBtProgressInfoFile.cc: New file.
  7558. * src/File.cc
  7559. (Util.h): New include.
  7560. (mkdirs): New function.
  7561. * src/MultiDiskAdaptor.h
  7562. (mkdir): New function.
  7563. * src/PeerListProcessor.h
  7564. (Peers): Removed.
  7565. * src/PeerInteraction.h
  7566. (torrentMan): Removed.
  7567. (btContext): New variable.
  7568. (peerStorage): New variable.
  7569. (pieceStorage): New variable.
  7570. (btAnnounce): New variable.
  7571. (getTorrentMan): Removed.
  7572. (getBtContext): New function.
  7573. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7574. btAnnounce.
  7575. * src/HandshakeMessage.h
  7576. (TorrentMan.h): Removed.
  7577. * src/HandshakeMessage.cc: Use btContext.
  7578. * src/DefaultBtAnnounce.cc: New file.
  7579. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7580. * src/DefaultPieceStorage.cc: New file.
  7581. * src/DefaultBtContext.h: New file.
  7582. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7583. Use the accessor methods of FileEntry.
  7584. * src/CookieBox.cc: Updated to use Util::slice().
  7585. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7586. * src/common.h (SharedHandle.h): New include.
  7587. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7588. pieceStorage.
  7589. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7590. * src/DiskAdaptor.h
  7591. (topDir): Removed.
  7592. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7593. (setTopDir): Removed.
  7594. (getTopDir): Removed.
  7595. * src/BtContext.h: New file.
  7596. * src/DefaultPeerStorage.h: New file.
  7597. * src/PieceMessage.h (TorrentMan.h): Removed.
  7598. * src/RequestMessage.h (TorrentMan.h): Removed.
  7599. * src/TorrentDownloadEngine.h
  7600. (uploadLength): New variable.
  7601. (btContext): New variable.
  7602. (btRuntime): New variable.
  7603. (pieceStorage): New variable.
  7604. (peerStorage): New variable.
  7605. (btAnnounce): New variable.
  7606. (btProgressInfoFile): New variable.
  7607. (torrentMan): Removed.
  7608. (setBtContext): New function.
  7609. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7610. peerStorage, btAnnounce, btProgressInfoFile.
  7611. * src/Piece.h
  7612. (toString): New function.
  7613. (Pieces): New type definition.
  7614. * src/Peer.h
  7615. (active): New variable.
  7616. (Peer): Added active.
  7617. (activate): Set active to true.
  7618. (deactivate): Set active to false.
  7619. (isActive): New function.
  7620. (Peers): New type definition.
  7621. * src/DirectDiskAdaptor.cc
  7622. (getFilePath): Use the accessor methods of FileEntry.
  7623. * src/TorrentConsoleDownloadEngine.h
  7624. (afterEachIteration): New function.
  7625. * src/TorrentConsoleDownloadEngine.cc
  7626. (haltRequested): New variable.
  7627. (sendStatistics): Use pieceStorage, btRuntime.
  7628. (afterEachIteration): New function.
  7629. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7630. * src/Directry.h
  7631. (Directory): New function.
  7632. (DirectoryHandle): New type definition.
  7633. * src/BtProgressInfoFile.h: New file.
  7634. * src/RequestMessage.cc: Use pieceStorage.
  7635. * src/BtRuntime.h: New file.
  7636. * src/DefaultBtContext.cc: New file.
  7637. * src/BitfieldMan.h
  7638. (getCompletedLength): New function(private).
  7639. (getCompletedLength): New function.
  7640. (getFilteredCompletedLength): New function.
  7641. * src/BitfieldMan.h
  7642. (getCompletedLength): New function(private).
  7643. (getCompletedLength): New function.
  7644. (getFilteredCompletedLength): New function.
  7645. * src/MultiDiskAdaptor.cc
  7646. (mkdir): New function.
  7647. (openFile): Call mkdir().
  7648. (initAndOpenFile): Call mkdir().
  7649. * src/CancelMessage.h
  7650. (TorrentMan.h): Removed.
  7651. * src/RejectMessage.h
  7652. (TorrentMan.h): Removed.
  7653. * src/DownloadEngineFactory.cc
  7654. (DefaultPieceStorage.h): New include.
  7655. (DefaultPeerStorage.h): New include.
  7656. (DefaultBtAnnounce.h): New include.
  7657. (DefaultBtProgressInfoFile.h): New include.
  7658. (newTorrentConsoleEngine): Rewritten.
  7659. * src/ShareRatioSeedCriteria.h
  7660. (torrentMan): Removed.
  7661. (btContext): New variable.
  7662. (peerStorage): New variable.
  7663. (btRuntime): New variable.
  7664. (evaluate): Use btContext, btRuntime, peerStorage.
  7665. * src/AnnounceTier.h: New file.
  7666. * src/BtAnnounce.h: New file.
  7667. * src/BtRegistry.h: New file.
  7668. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7669. * src/PeerConnection.h (TorrentMan.h): Removed.
  7670. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7671. * src/Util.h
  7672. (slice): Added an argument.
  7673. * src/Util.cc
  7674. (slice): Added an argument to control whether trim is made or not.
  7675. * src/PeerStorage.h: New file.
  7676. * src/BtRegistry.cc: New file.
  7677. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7678. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7679. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7680. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7681. * src/TorrentRequestInfo.h
  7682. (e): Removed.
  7683. (showFileEntry): Added an argument.
  7684. (getDownloadEngine): Return 0.
  7685. * src/DefaultBtAnnounce.h: New file.
  7686. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7687. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7688. * src/PeerMessageFactory.h
  7689. (btContext): New variable.
  7690. (pieceStorage): New variable.
  7691. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7692. btAnnounce.
  7693. * src/DiskAdaptor.cc
  7694. (DiskAdaptor): Removed topDir.
  7695. (~DiskAdaptor): Removed topDir.
  7696. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7697. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7698. * src/File.h (mkdirs): New function.
  7699. * src/DefaultPeerStorage): New file.
  7700. * src/DownloadEngineFactory.h
  7701. (newTorrentConsoleEngine): Use btContext.
  7702. * src/BtContextAwareCommand.cc: New file.
  7703. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7704. * src/PeerMessage.h
  7705. (btContext): New variable.
  7706. (peerStorage): New variable.
  7707. (pieceStorage): New variable.
  7708. (setBtContext): New function.
  7709. * src/Directry.cc
  7710. (Directory): New function.
  7711. (createDir): Do nothing if name.size() == 0.
  7712. * src/AnnounceList.h
  7713. (AnnounceTier): Removed.
  7714. (AnnounceTiers): Removed.
  7715. * src/DefaultPieceStorage.h: New file.
  7716. * src/Piece.cc (toString): New function.
  7717. To fix typo:
  7718. * src/main.cc (showVersion): Fixed typo.
  7719. To fix compile warning:
  7720. * src/DelegatingPeerListProcessor.cc
  7721. (canHandle): Added "return false".
  7722. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7724. make the process of announce request testable.
  7725. * src/TrackerWatcherCommand.h
  7726. (TimeA2.h): Removed.
  7727. (interval): Removed.
  7728. (checkPoint): Removed.
  7729. (createRequestCommand): Added an argument 'url'.
  7730. (TrackerWatherCommand): Removed interval.
  7731. (createCommand): New function.
  7732. * src/DownloadEngineFactory.cc
  7733. (newTorrentConsoleEngine): Updated according to the changes in
  7734. TrackerWatherCommand.
  7735. * src/TorrentMan.cc
  7736. (DelegatingPeerListProcessor.h): New includes.
  7737. (TorrentMan): Added the initialization of announceInterval.
  7738. (isStoppedAnnounceReady): New function.
  7739. (isCompletedAnnounceReady): New function.
  7740. (isDefaultAnnounceReady): New function.
  7741. (isAnnounceReady): New function.
  7742. (getAnnounceUrl): New function.
  7743. (announceStart): New function.
  7744. (announceFailure): New function.
  7745. (announceSuccess): New function.
  7746. (isAllAnnounceFailed): New function.
  7747. (resetAnnounce): New function.
  7748. (processAnnounceResponse): New function.
  7749. (needMorePeerConnection): New function.
  7750. (noMoreAnnounce): New function.
  7751. * src/TrackerUpdateCommand.h
  7752. (getTrackerResponse): int->size_t
  7753. * src/TorrentMan.h
  7754. (isStoppedAnnounceReady): New function.
  7755. (isCompletedAnnounceReady): New function.
  7756. (isDefaultAnnounceReady): New function.
  7757. (announceInterval): New variable.
  7758. (isAnnounceReady): New function.
  7759. (getAnnounceUrl): New function.
  7760. (announceStart): New function.
  7761. (announceFailure): New function.
  7762. (announceSuccess): New function.
  7763. (isAllAnnounceFailed): New function.
  7764. (resetAnnounce): New function.
  7765. (processAnnounceResponse): New function.
  7766. (needMorePeerConnection): New function.
  7767. (noMoreAnnounce): New function.
  7768. * src/TrackerWatcherCommand.cc
  7769. (TrackerWatherCommand): Removed interval and checkPoint.
  7770. (execute): Rewritten.
  7771. (createCommand): New function.
  7772. (createRequestCommand): Rewritten.
  7773. * src/TrackerUpdateCommand.cc
  7774. (MetaFileUtil.h): Removed.
  7775. (DelegatingPeerListProcessor.h): Removed.
  7776. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7777. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7778. Request -> RequestHandle:
  7779. * src/HttpResponseCommand.h: Request->RequestHandle
  7780. * src/AbstractCommand.cc: Request->RequestHandle
  7781. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7782. * src/HttpRequestCommand.cc: Request->RequestHandle
  7783. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7784. * src/AbstractCommand.h: Request->RequestHandle
  7785. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7786. * src/HttpResponseCommand.cc: Request->RequestHandle
  7787. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7788. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7789. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7790. * src/HttpConnection.h: Request->RequestHandle
  7791. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7792. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7793. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7794. * src/DownloadCommand.h: Request->RequestHandle
  7795. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7796. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7797. * src/HttpRequestCommand.h: Request->RequestHandle
  7798. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7799. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7800. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7801. * src/HttpDownloadCommand.h: Request->RequestHandle
  7802. * src/FtpConnection.cc: Request->RequestHandle
  7803. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7804. * src/UrlRequestInfo.cc: Request->RequestHandle
  7805. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7806. * src/HttpConnection.h: Request->RequestHandle
  7807. * src/DownloadCommand.cc: Request->RequestHandle
  7808. * src/FtpConnection.h: Request->RequestHandle
  7809. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7810. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7811. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7812. * src/Request.h
  7813. (SharedHandle.h): New include.
  7814. (RequestHandle): New type definition.
  7815. (Requests): Redefined.
  7816. To add MULTITRACKER support:
  7817. * src/TrackerWatcherCommand.h
  7818. (createRequestCommand): New function.
  7819. * src/DownloadEngineFactory.cc
  7820. (newTorrentConsoleEngine): Removed req.
  7821. * src/prefs.h
  7822. (PREF_TRACKER_MAX_TRIES): New definition.
  7823. * src/TorrentMan.cc
  7824. (TorrentMan): Removed req. Added trackerNumTry.
  7825. (~TorrentMan): Removed req.
  7826. (setupInternal1): Added announceList.
  7827. * src/TorrentRequestInfo.cc
  7828. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7829. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7830. * src/main.cc
  7831. (main): Added PREF_TRACKER_MAX_TRIES.
  7832. * src/TorrentMan.h
  7833. (Request.h): Removed.
  7834. (AnnounceList.h): New include.
  7835. (trackerNumTry): New variable.
  7836. (req): Removed.
  7837. (announceList): New variable.
  7838. * src/TrackerWatcherCommand.cc
  7839. (execute): Rewritten.
  7840. (createRequestCommand): New function.
  7841. * src/TrackerUpdateCommand.cc
  7842. (execute): Updated with the use of AnnounceList.
  7843. * src/AnnounceList.cc: New class.
  7844. * src/AnnounceList.h: New class.
  7845. To fix typo:
  7846. * src/prefs.h
  7847. (PREF_MAX_TRIES): max_try->max_tries
  7848. To not to decode "+" as space in URL decode:
  7849. * src/Util.cc
  7850. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7851. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. To add timeout to async name resolution:
  7853. * src/AbstractCommand.h
  7854. (nameResolveFinished): New function. This is not elegant way. It needs
  7855. to be more refined.
  7856. (nameResolverCheck): New variable.
  7857. * src/AbstractCommand.cc
  7858. (AbstractCommand): Added nameResolverCheck.
  7859. (execute): Added the check whether the name resolution has finished.
  7860. (setNameResolverCheck): Set nameResolverCheck to true.
  7861. (disableNameResolverCheck): Set nameResolverCheck to false.
  7862. (nameResolverFinished): New function.
  7863. * src/FtpInitiateConnectionCommand.h
  7864. (nameResolverFinished): New function.
  7865. * src/FtpInitiateConnectionCommand.cc
  7866. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7867. * src/HttpInitiateConnectionCommand.h
  7868. (nameResolverFinished): New function.
  7869. * src/HttpInitiateConnectionCommand.cc
  7870. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7871. * src/prefs.h
  7872. (PREF_DNS_TIMEOUT): New definition.
  7873. * src/main.cc
  7874. (main): Added PREF_DNS_TIMEOUT.
  7875. To add the support for a non-compact response from a tracker:
  7876. * src/PeerListProcessor.h: New class.
  7877. * src/DefaultPeerListProcessor.h: New class.
  7878. * src/DefaultPeerListProcessor.cc: New class.
  7879. * src/CompactPeerListProcessor.h: New class.
  7880. * src/CompactPeerListProcessor.cc: New class.
  7881. * src/DelegatingPeerListProcessor.h: New class.
  7882. * src/DelegatingPeerListProcessor.cc: New class.
  7883. * src/TorrentMan.cc
  7884. (addPeer): New function(overload).
  7885. (addPeer): Delete unused peers only when new peer is added.
  7886. * src/TorrentMan.h
  7887. (PeerListProcessor.h): Included.
  7888. (Peers): Removed.
  7889. (addPeer): New function(overload).
  7890. * src/TrackerUpdateCommand.cc
  7891. (netinet/in.h): Removed.
  7892. (DelegatingPeerListProcessor.h): Included.
  7893. (execute): Updated to use DelegatingPeerListProcessor.
  7894. To fix the memory leak in TorrentMan::peers:
  7895. * src/PeerAbstractCommand.cc
  7896. (onAbort): Added peer->resetStatus().
  7897. * src/Peer.h
  7898. (resetStatus): Made public.
  7899. To improve the precision of the speed calculation:
  7900. * src/SpeedCalc.h
  7901. (nextInterval): New variable.
  7902. * src/SpeedCalc.cc
  7903. (reset): Added nextInterval.
  7904. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7905. (changeSw): Set nextInterval to 15 seconds relative to the current
  7906. instant time.
  7907. * src/main.cc
  7908. (showVersion): Updated.
  7909. (showUsage): Updated.
  7910. * Release 0.8.1
  7911. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. * src/main.cc
  7913. (showUsage): Commented out --min-segment-size option.
  7914. (main): Commented out --min-segment-size option.
  7915. * Release 0.8.0
  7916. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. * src/*.{h,cc}:
  7918. Added an exception to the license which allows linking with OpenSSL.
  7919. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7920. * src/AbstractCommand.cc
  7921. (execute): Check whether the download has finished before checking
  7922. socket status.
  7923. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7924. Do not exit even if no segment is available.
  7925. * src/prefs.h
  7926. (PREF_STARTUP_IDLE_TIME): New definition.
  7927. * src/PeerInteractionCommand.cc
  7928. (executeInternal): Removed max speed limit. Because it performs bad.
  7929. (receiveMessages): Added max speed limit. This was better than above,
  7930. but still a little bit to be desired. Sometimes the download speed
  7931. became much faster than I specified.
  7932. * src/SpeedCalc.h
  7933. (start): New variable.
  7934. (accumulatedLength): New variable.
  7935. (getAvgSpeed): New function.
  7936. * src/SpeedCalc.cc
  7937. (reset): Added start, accumulatedLength.
  7938. (update): Added calculation of an average speed.
  7939. (getAvgSpeed): New function.
  7940. * src/DownloadCommand.h
  7941. (sw): Removed.
  7942. * src/main.cc
  7943. (main): Added PREF_STARTUP_IDLE_TIME.
  7944. * src/PeerStat.h
  7945. (STATUS): Added REQUEST_IDLE.
  7946. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7947. (getAvgDownloadSpeed): New function
  7948. (requestIdle): New function.
  7949. * src/SegmentMan.h
  7950. (SegmentEntryHandle): New type definition.
  7951. (SegmentEntries): Now holds SegmentEntryHandle.
  7952. (findSlowerSegmentEntry): New funtion.
  7953. * src/SegmentMan.cc
  7954. (save): Updated according to the changes in SegmentEntries.
  7955. (read): Updated according to the changes in SegmentEntries.
  7956. (FindSegmentEntryByIndex): Updated according to the changes in
  7957. SegmentEntries.
  7958. (FindSegmentEntryByCuid): Updated according to the changes in
  7959. SegmentEntries.
  7960. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7961. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7962. Renamed uitr as itr.
  7963. (findSlowerSegmentEntry): New function.
  7964. (getSegment): Updated according to the changes in SegmentEntries.
  7965. Added the feature that cancels the segment with slow server and fast
  7966. one takes it over.
  7967. (cancelSegment): Updated according to the changes in SegmentEntries.
  7968. (getDownloadLength): Updated according to the changes in
  7969. SegmentEntries.
  7970. (init): Assigned 0 to bitfield after deleting it.
  7971. * src/DownloadCommand.cc
  7972. (STARTUP_IDLE_TIME): Removed.
  7973. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7974. * src/PeerChokeCommand.cc
  7975. (optUnchokingPeer): Updated according to the changes in Peer.
  7976. (ResetDelta): Removed.
  7977. (UploadFaster): Updated according to the changes in Peer.
  7978. (DownloadFaster): Updated according to the changes in Peer.
  7979. (execute): I clarify the meaning of "upload" and "download" here.
  7980. "upload" means the transfer from localhost to remote host.
  7981. "download" means the transfer from remote host to localhost.
  7982. Based on this rule, I swapped orderByUploadRate and
  7983. orderByDownloadRate.
  7984. * src/PeerInteractionCommand.cc
  7985. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7986. (executeInternal): Removed the argument of
  7987. peerInteraction->sendMessages().
  7988. (receiveMessages): Rewritten download speed limit.
  7989. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7990. * src/HttpResponseCommand.cc
  7991. (handleDefaultEncoding): If file size is unknown in torrent request,
  7992. do not call segmentMan->initBitfield() here.
  7993. Disabled persistent connection feature in torrent request.
  7994. * src/UrlRequestInfo.h
  7995. (UrlRequestInfo): Removed const qualifier from option.
  7996. * src/TorrentMan.h
  7997. (TransferStat): New class.
  7998. (deltaDownloadLength): Removed.
  7999. (deltaUploadLength): Removed.
  8000. (addDeltaDownloadLength): Removed.
  8001. (getDeltaDownloadLength): Removed.
  8002. (resetDeltaDownloadLength): Removed.
  8003. (addDeltaUploadLength): Removed.
  8004. (getDeltaUploadLength): Removed.
  8005. (resetDeltaUploadLength): Removed.
  8006. (addActivePeer): Added peer->activate().
  8007. (deleteActivePeer): Added peer->deactivate().
  8008. (calculateStat): New function.
  8009. * src/TorrentMan.cc
  8010. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  8011. (calculateStat): New function.
  8012. * src/PeerInteraction.h
  8013. (uploadLimit): Removed.
  8014. (option): New variable.
  8015. (setUploadLimit): Removed.
  8016. (getUploadSpeed): Removed.
  8017. (sendMessages): Removed the argument "currentUploadSpeed".
  8018. * src/PeerInteraction.cc
  8019. (prefs.h): Included.
  8020. (PeerInteraction): Removed uploadLimit. Added option.
  8021. (sendMessages): Rewritten upload speed limit.
  8022. (sendHandshake): Removed the argument from sendMessages().
  8023. (sendBitfield): Removed the argument from sendMessages().
  8024. * src/PeerAbstractCommand.cc
  8025. (execute): Commented out the portion of upload limit.
  8026. (onAbort): Removed peer->resetStatus().
  8027. * src/TorrentRequestInfo.cc
  8028. (timeoutSpecified): Declared extern.
  8029. (execute): Set timeout to 180 if timeout is not specified by.
  8030. command-line.
  8031. * src/PieceMessage.cc
  8032. (receivedAction): Added peer->updateDownloadLength().
  8033. Removed peer->addPeerUpload().
  8034. Removed torrentMan->addDeltaDownloadLength().
  8035. (send): Added peer->updateUploadLength().
  8036. Removed peer->addPeerDownload().
  8037. Removed torrentMan->addDeltaUploadLength().
  8038. * src/main.cc
  8039. (timeoutSpecified): New variable.
  8040. (main): Set timeoutSpecified to false.
  8041. If the command-line option "--upload-limit" is specified, then
  8042. timeoutSpecified is set to true. This option will remain in the next
  8043. release, but be deprecated in the future release.
  8044. * src/TorrentRequestInfo.h
  8045. (TorrentRequestInfo): Removed const qualifier from op.
  8046. * src/PeerStat.h
  8047. (uploadSpeed): New variable.
  8048. (PeerStat): Added default value to cuid.
  8049. (calculateUploadSpeed): New function.
  8050. (updateUploadLength): New function.
  8051. (getMaxUploadSpeed): New function.
  8052. (getAvgUploadSpeed): New function.
  8053. (reset): Added uploadSpeed. Set status to IDLE.
  8054. * src/TorrentDownloadEngine.h
  8055. (cp): Declared as Time.
  8056. (sessionDownloadLengthArray): Removed.
  8057. (sessionUploadLengthArray): Removed.
  8058. (currentCp): Removed.
  8059. (lastCalcStat): New variable
  8060. (lastElapsed): Removed.
  8061. (sessionDownloadLength): Removed.
  8062. (calculateStat): New function.
  8063. * src/TorrentDownloadEngine.cc
  8064. (initStatistics): Removed lastElapsed, cp[],
  8065. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  8066. currentCp, sessionDownloadLength.
  8067. Added cp.reset() and lastCalcStat.reset().
  8068. (calculateSpeed): Changed the name of the argument.
  8069. (calculateStatistics): Rewritten.
  8070. (calculateStat): New function.
  8071. * src/Peer.h
  8072. (PeerStat.h): Included.
  8073. (peerUpload): Removed.
  8074. (peerDownload): Removed.
  8075. (peerStat): New variable.
  8076. (sessionUploadLength): New variable.
  8077. (sessionDownloadLength): New variable.
  8078. (deltaUpload): Removed.
  8079. (deltaDownload): Removed.
  8080. (resetStatus): Made private.
  8081. (Peer): Added sessionUploadLength, sessionDownloadLength.
  8082. Removed peerUpload, peerDownload.
  8083. (updateUploadLength): New function.
  8084. (addDeltaUpload): Removed.
  8085. (updateDownloadLength): New function.
  8086. (resetDeltaUpload): Removed.
  8087. (getDeltaUpload): Removed.
  8088. (addDeltaDownload): Removed.
  8089. (calculateUploadSpeed): New function.
  8090. (resetDeltaDownload): Removed.
  8091. (getDeltaDownload): Removed.
  8092. (calculateDownloadSpeed): New function.
  8093. (getSessionUploadLength): New function.
  8094. (getSessionDownloadLength): New function.
  8095. (activate): New function.
  8096. (deactivate): New function.
  8097. (addPeerUpload): Removed.
  8098. (setPeerUpload): Removed.
  8099. (getPeerUpload): Removed.
  8100. (addPeerDownload): Removed.
  8101. (setPeerDownload): Removed.
  8102. (getPeerDownload): Removed.
  8103. * src/Peer.cc
  8104. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  8105. * src/MetalinkRequestInfo.h
  8106. (MetalinkRequestInfo): Removed const qualifier from op.
  8107. * src/RequestInfo.h
  8108. (op): Removed const qualifier.
  8109. (RequestInfo): Removed const qualifier from op.
  8110. * src/prefs.h
  8111. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  8112. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  8113. * src/PeerInteractionCommand.cc
  8114. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  8115. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  8116. * src/PeerInteraction.cc
  8117. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  8118. * src/main.cc
  8119. (showUsage): Updated the description of "--lowest-speed-limit" option.
  8120. Added the description of "--max-download-limit" option.
  8121. Removed the description of "--upload-limit" option.
  8122. Added the description of "--max-upload-limit" option.
  8123. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  8124. Added "--max-download-limit" option and "--max-upload-limit" option.
  8125. Added the warning message if "--upload-limit" option is used.
  8126. * src/DownloadCommand.cc
  8127. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  8128. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. To rewrite segment download mechanism for HTTP/FTP download.
  8130. Use BitfieldMan to manage segment download.
  8131. * src/HttpResponseCommand.h
  8132. (executeInternal): Pass the reference of segment.
  8133. * src/AbstractCommand.cc
  8134. (prepareForRetry): Call segmentMan->cancelSegment here.
  8135. (onAbort): Call segmentMan->cancelSegment here.
  8136. * src/HttpDownloadCommand.cc
  8137. (prepareForNextSegment): New function.
  8138. * src/DownloadEngineFactory.cc
  8139. (newConsoleEngine): Removed splitter.
  8140. (newTorrentConsoleEngine): Removed splitter.
  8141. * src/Request.h
  8142. (segment): Renamed from seg.
  8143. * src/FtpInitiateConnectionCommand.h
  8144. (executeInternal): Pass the reference of segment.
  8145. * src/AbstractCommand.h
  8146. (executeInternal): Pass the reference of segment.
  8147. * src/pref.h
  8148. (PREF_SEGMENT_SIZE): New definition.
  8149. * src/HttpProxyRequestCommand.h
  8150. (executeInternal): Pass the reference of segment.
  8151. * src/HttpResponseCommand.cc
  8152. (checkResponse): Allowed status 206 when a request range starts 0.
  8153. (handleDefaultEncoding): Rewritten the code related to Segment.
  8154. (handleOtherEncoding): Rewritten the code related to Segment.
  8155. * src/SegmentMan.h
  8156. (SegmentEntry): New class.
  8157. (SegmentEntries): New type definition.
  8158. (bitfield): New variable.
  8159. (usedSegmentEntries): New variable.
  8160. (onNullBitfield): New function.
  8161. (checkoutSegment): New function.
  8162. (segments): Removed.
  8163. (splitter): Removed.
  8164. (unregisterId): Removed.
  8165. (getSegment): New function(overload)
  8166. (getDownloadedSize): Removed.
  8167. (cancelSegment): New function.
  8168. (completeSegment): New function.
  8169. (initBitfield): New function.
  8170. (hasSegment): New function.
  8171. (getDownloadLength): New function.
  8172. * src/BitfieldMan.h
  8173. (getStartIndex): New function.
  8174. (getEndIndex): New function.
  8175. (getMissingUnusedIndex): New function(overload).
  8176. (getSparseMissingUnusedIndex): New function.
  8177. * src/BitfieldMan.cc
  8178. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8179. (getMissingUnusedIndex): New function(overload).
  8180. (Range): New class.
  8181. (getStartIndex): New function.
  8182. (getEndIndex): New function.
  8183. (getSparseMissingUnusedIndex): New function.
  8184. (isBitSetInternal): Return false if the given index is less than 0.
  8185. * src/HttpInitiateConnectionCommand.h
  8186. (executeInternal): Pass the reference of segment.
  8187. * src/FtpNegotiateCommand.h
  8188. (executeInternal): Pass the reference of segment.
  8189. * src/FtpNegotiateCommand.cc
  8190. (recvSize): Initialize bitfield here.
  8191. * src/FtpTunnelResponseCommand.h
  8192. (executeInternal): Pass the reference of segment.
  8193. * src/HttpConnection.cc
  8194. (createRequest): Rewritten range header processing.
  8195. * src/DownloadCommand.h
  8196. (executeInternal): Pass the reference of segment.
  8197. (prepareForRetry): Removed.
  8198. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8199. function.
  8200. * src/main.cc
  8201. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8202. * src/SegmentMan.cc
  8203. (SegmentMan): Added bitfield. Removed splitter.
  8204. (~SegmentMan): Added bitfield. Removed splitter.
  8205. (unregisterId): Removed.
  8206. (getSegment): Rewritten.
  8207. (updateSegment): Rewritten.
  8208. (save): Rewritten.
  8209. (read): Rewritten.
  8210. (finished): Rewritten.
  8211. (getDownloadedSize): Removed.
  8212. (initBitfield): New function.
  8213. (FindSegmentEntryByIndex): New function object.
  8214. (FindSegmentEntryByCuid): New function object.
  8215. (checkoutSegment): New function.
  8216. (onNullBitfield): New function.
  8217. (getSegment): New function(overload).
  8218. (CancelSegment): New function object.
  8219. (cancelSegment): New function.
  8220. (completeSegment): New function.
  8221. (hasSegment): New function.
  8222. (getDownloadLength): New function.
  8223. * src/FtpInitiateConnectionCommand.cc
  8224. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8225. * src/Segment.h: Rewritten.
  8226. * src/Segment.cc (operator<<): New function.
  8227. * src/HttpDownloadCommand.h
  8228. (prepareForNextSegment): New function.
  8229. * src/Request.cc
  8230. (resetUrl): Made segment null.
  8231. * src/DownloadEngine.cc
  8232. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8233. * src/HttpProxyRequestCommand.h
  8234. (executeInternal): Pass the reference of segment.
  8235. * src/DownloadCommand.cc
  8236. (executeInternal): Rewritten the code related to Segment.
  8237. (prepareForRetry): Removed.
  8238. (prepareForNextSegment): Rewritten.
  8239. * src/FtpTunnelResponseCommand.h
  8240. (executeInternal): Pass the reference of segment.
  8241. To add HTTP 1.1 persistent connection support(experimental)
  8242. * src/HttpRequestCommand.cc
  8243. (executeInternal): Disable keep alive if it is disabled by
  8244. configuration.
  8245. * src/Request.h
  8246. (keepAlive): New variable.
  8247. (isKeepAlive): New function.
  8248. (setKeepAlive): New function.
  8249. * src/pref.h
  8250. (PREF_HTTP_KEEP_ALIVE): New definition.
  8251. * src/HttpResponseCommand.cc
  8252. (executeInternal): Check the remote server supports keep alive.
  8253. * src/HttpConnection.cc
  8254. (createRequest): Send "Connection: close" only if keep alive is
  8255. disabled.
  8256. * src/main.cc
  8257. (main):
  8258. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  8259. To add max download speed limit:
  8260. * src/pref.h
  8261. (PREF_MAX_SPEED_LIMIT): New definition.
  8262. * src/PeerInteractionCommand.cc
  8263. (executeInternal): Added max download speed limit. Not tested yet.
  8264. * src/SegmentMan.h
  8265. (PeerStats): New type definition.
  8266. (peerStats): New variable.
  8267. (registerPeerStat): New function.
  8268. (FindPeerStat): New function object.
  8269. (getPeerStat): New function.
  8270. (calculateDownloadSpeed): New function.
  8271. * src/SpeedCalc.h: New class.
  8272. * src/SpeedCalc.cc: New class.
  8273. * src/main.cc
  8274. (main):
  8275. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  8276. download speed is not restricted).
  8277. * src/PeerStat.h: New class.
  8278. * src/SegmentMan.cc
  8279. (registerPeerStat): New function.
  8280. (calculateDownloadSpeed): New function.
  8281. * src/DownloadCommand.cc
  8282. (STARTUP_IDLE_TIME): New definition.
  8283. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  8284. downloadStart.
  8285. (~DownloadCommand): Call peerStat->downloadStop.
  8286. (executeInternal): Added download speed limitter. Rewritten lowest
  8287. speed limitter.
  8288. * src/HttpConnection.cc
  8289. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  8290. * src/AbstractCommand.cc
  8291. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  8292. Added hostname to the error message.
  8293. * src/ConsoleDownloadEngine.cc
  8294. (calculateStatistics): Initialize psize with dlSize.
  8295. * src/PieceMessage.cc
  8296. (receivedAction): Do not call peerInteraction->abortPiece here.
  8297. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  8298. * src/BitfieldMan.h
  8299. (clearAllUseBit): New function.
  8300. (setAllUseBit): New function.
  8301. * src/BitfieldMan.cc
  8302. (clearAllBit): Do not clear useBitfield here.
  8303. (clearAllUseBit): New function.
  8304. (setAllUseBit): New function.
  8305. * src/Piece.cc
  8306. (clearAllBlock): Call bitfield->clearAllUseBit().
  8307. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. To make filename URL-decoded:
  8309. * src/HttpResponseCommand.h: Updated doc.
  8310. * src/HttpResponseCommand.cc
  8311. (determinFilename): Made filename URL-decoded.
  8312. * src/FtpInitiateConnectionCommand.cc
  8313. (executeInternal): Made filename URL-decoded.
  8314. * src/Util.h (urldecode): New function.
  8315. * src/Util.cc (urldecode): New function.
  8316. To fix a bug that caused assertion failure in ares_strerror:
  8317. * src/NameResolver.cc (callback): Fixed the bug.
  8318. * Release 0.7.3
  8319. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. To add --seed-time and --seed-ratio command-line option:
  8321. * src/Option.h (getAsDouble): New function.
  8322. * src/Option.cc (getAsDouble): New function.
  8323. * src/SeedCheckCommand.h: New class.
  8324. * src/SeedCheckCommand.cc: New class.
  8325. * src/DownloadEngineFactory.cc
  8326. (SeedCheckCommand.h): Included.
  8327. (UnionSeedCriteria.h): Included.
  8328. (TimeSeedCriteria.h): Included.
  8329. (ShareRatioSeedCriteria.h): Included.
  8330. (newTorrentConsoleEngine): Added the processing of seed option.
  8331. * src/SeedCriteria.h: New class.
  8332. * src/ShareRatioSeedCriteria.h: New class.
  8333. * src/TimeSeedCriteria.h: New class.
  8334. * src/UnionSeedCriteria.h: New class.
  8335. * src/prefs.h
  8336. (PREF_SEED_TIME): New definition.
  8337. (PREF_SEED_RATIO): New definition.
  8338. * src/main.cc
  8339. (showUsage): Added --seed-time and --seed-ratio option.
  8340. (main): Added --seed-time and --seed-ratio option.
  8341. Made default log file name "/dev/null".
  8342. * src/SharedHandle.h
  8343. (SharedHandle): Copy constructor. Made it assignable from the
  8344. SharedHandle of the subclasses.
  8345. (operator=): Made it assignable from the SharedHandle of the
  8346. subclasses.
  8347. (getRefCount): New function.
  8348. To add notice log level and the switch to write log to stdout. This
  8349. switch is configurable per log level.
  8350. * src/Logger.h
  8351. (notice): New function.
  8352. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  8353. constant.
  8354. * src/LogFactory.cc
  8355. (getInstance): The use of NullLogger was removed. A log message with
  8356. notice log level was made written to stdout along with log file.
  8357. * src/NullLogger.h
  8358. (notice): New function.
  8359. * src/SimpleLogger.h
  8360. (writeHeader): Added the 'file' argument.
  8361. (writeLog): Added the 'file' argument.
  8362. (writeFile): New function.
  8363. (stdoutField): New variable.
  8364. (SimpleLogger): Removed the default constructor.
  8365. (SimpleLogger): Made the default value of logfile 0.
  8366. (debug): Added 'virtual' keyword.
  8367. (info): Added 'virtual' keyword.
  8368. (warn): Added 'virtual' keyword.
  8369. (error): Added 'virtual' keyword.
  8370. (notice): New function.
  8371. (setStdout): New function.
  8372. * src/SimpleLogger.cc
  8373. (WRITE_LOG): Replaced writeLog with writeFile.
  8374. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  8375. (SimpleLogger): Removed the default constructor.
  8376. (setStdout): New function.
  8377. (writeLog): Added the handling of NOTICE log level.
  8378. (writeFile): New function.
  8379. (notice): New function.
  8380. * src/TorrentMan.h: Updated doc.
  8381. * src/BitfieldMan.h: Updated doc.
  8382. * src/TrackerWatcherCommand.cc
  8383. (execute): Return true if error occurred in the request to the tracker
  8384. and halt is requested.
  8385. * src/TrackerUpdateCommand.cc
  8386. (execute): Return true if error occurred in the request to the tracker
  8387. and halt is requested.
  8388. To call onDownloadComplete from TorrentMan::completePiece(), not from
  8389. DownloadEngine:
  8390. * src/TorrentConsoleDownloadEngine.h
  8391. (onSelectiveDownloadingCompletes): Removed.
  8392. * src/TorrentConsoleDownloadEngine.cc
  8393. (onSelectiveDownloadingCompletes): Removed.
  8394. * src/TorrentDownloadEngine.h
  8395. (onEndOfRun): Added 'virtual' keyword.
  8396. (afterEachIteration): Removed.
  8397. (onSelectiveDownloadingCompletes): Removed.
  8398. * src/TorrentDownloadEngine.cc
  8399. (onEndOfRun): Removed filenameFixed.
  8400. (afterEachIteration): Removed.
  8401. * src/TorrentMan.cc
  8402. (completePiece): Call onDownloadComplete here.
  8403. (onDownloadComplete): Added 2 log messages.
  8404. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  8406. * src/NameResolver.h: Added the prototype declaration of callback().
  8407. To support c-ares library:
  8408. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8409. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8410. * src/FtpInitiateConnectionCommand.h:
  8411. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8412. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8413. * src/HttpInitiateConnectionCommand.h:
  8414. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8415. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  8416. Added thes upport of c-ares's ares_strerror(the idea came from patch
  8417. #1542285 by tizianomueller)
  8418. * src/HttpInitiateConnectionCommand.cc:
  8419. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8420. * src/FtpInitiateConnectionCommand.cc:
  8421. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8422. * src/DownloadEngine.h:
  8423. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8424. * src/DownloadEngine.cc:
  8425. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8426. To fix the bug that causes compilation failure with metalink-support
  8427. disabled(bug#1543587):
  8428. * src/main.cc: Fixed with the patch by tizianomueller.
  8429. * Release 0.7.2
  8430. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. * src/main.cc
  8432. (main): Added a message to inform users that aria2 is starting to
  8433. verify checksum.
  8434. * src/RequestInfo.cc
  8435. (printDownloadAbortMessage): Added a message to inform users that
  8436. transfer can be resumed.
  8437. * src/FeatureConfig.cc
  8438. (FEATURE_ASYNC_DNS): New definition.
  8439. (FeatureConfig): Added aysnc DNS entry.
  8440. To replace CommandUuid with Command* in SocketEntry and
  8441. NameResolverEntry:
  8442. * src/DownloadEngine.h
  8443. (CommandUuids): Removed.
  8444. (SocketEntry::commandUuid): Removed.
  8445. (SocketEntry::command): New variable.
  8446. (SocketEntry::SocketEntry): Updated.
  8447. (SocketEntry::operator==): Updated.
  8448. (NameResolverEntry::commandUuid): Removed.
  8449. (NameResolverEntry::command): New variable.
  8450. (NameResolverEntry::NameResolverEntry): Updated.
  8451. (NameResolverEntry::operator==): Updated.
  8452. (waitData): Changed the argument type.
  8453. (addSocketForReadCheck): Changed the argument type.
  8454. (deleteSocketForReadCheck): Changed the argument type.
  8455. (addSocketForWriteCheck): Changed the argument type.
  8456. (deleteSocketForWriteCheck): Changed the argument type.
  8457. (addNameResolverCheck): Changed the argument type.
  8458. (deleteNameResolverCheck): Changed the argument type.
  8459. * src/DownloadEngine.cc
  8460. (FindCommand): Removed.
  8461. (run): Removed activeUuid. Added activeCommands instead.
  8462. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8463. (AccumulateActiveCommand): New function object.
  8464. (waitData): Use AccumulateActiveCommand.
  8465. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8466. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8467. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8468. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8469. (addNameResolverCheck): Use Command instead of CommandUuid.
  8470. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8471. * src/AbstractCommand.cc
  8472. (disableReadCheckSocket): Updated according to the changes in
  8473. DownloadEngine.
  8474. (setReadCheckSocket): Updated according to the changes in
  8475. DownloadEngine.
  8476. (disableWriteCheckSocket): Updated according to the changes in
  8477. DownloadEngine.
  8478. (setWriteCheckSocket): Updated according to the changes in
  8479. DownloadEngine.
  8480. (setNameResolverCheck): Updated according to the changes in
  8481. DownloadEngine.
  8482. (disableNameResolverCheck): Updated according to the changes in
  8483. DownloadEngine.
  8484. * src/AbstractCommand.cc
  8485. (disableReadCheckSocket): Updated according to the changes in
  8486. DownloadEngine.
  8487. (setReadCheckSocket): Updated according to the changes in
  8488. DownloadEngine.
  8489. (disableWriteCheckSocket): Updated according to the changes in
  8490. DownloadEngine.
  8491. (setWriteCheckSocket): Updated according to the changes in
  8492. DownloadEngine.
  8493. * release 0.7.1
  8494. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. To handle the case where some BitTorrent tracker requires all letters
  8496. except for [A-Za-z0-9] is URL encoded.
  8497. * src/Util.h
  8498. (torrentUrlencode): New function.
  8499. * src/Util.cc
  8500. (ctype.h): Included.
  8501. (torrentUrlencode): New function.
  8502. * src/TrackerWatcherCommand.cc
  8503. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8504. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. To add asynchronous DNS support(libares):
  8506. * src/AbstractCommand.h
  8507. (setNameResolverCheck): New function.
  8508. (disableNameResolverCheck): New function
  8509. (resolveHostname): New function.
  8510. * src/AbstractCommand.cc
  8511. (setNameResolverCheck): New function.
  8512. (disableNameResolverCheck): New function
  8513. (resolveHostname): New function.
  8514. * src/FtpInitiateConnectionCommand.h
  8515. (nameResolver): New function.
  8516. * src/FtpInitiateConnectionCommand.cc
  8517. (Util.h): Included.
  8518. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8519. disableWriteCheckSocket.
  8520. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8521. (executeInternal): Added async DNS support.
  8522. * src/HttpInitiateConnectionCommand.h
  8523. (nameResolver): New function.
  8524. * src/HttpInitiateConnectionCommand.cc
  8525. (DlRetryEx.h): Included.
  8526. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8527. disableWriteCheckSocket.
  8528. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8529. (executeInternal): Added async DNS support.
  8530. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8531. by extern "C" declaration.
  8532. * src/NameResolver.cc: New class.
  8533. * src/Util.h:
  8534. (isNumberAndDotsNotation): New function
  8535. * src/Util.cc
  8536. (isNumberAndDotsNotation): New function.
  8537. * src/DownloadEngine.h
  8538. (NameResolver.h): Included.
  8539. (NameResolverEntry): New class.
  8540. (NameResolverEntries): New type definition.
  8541. (addNameResolverCheck): New function.
  8542. (deleteNameResolverCheck): New function.
  8543. * src/DownloadEngine.cc
  8544. (run): Initialize cp with 0.
  8545. (SetDescriptor::operator()): Added for NameResolverEntry.
  8546. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8547. (waitData): Check nameResolver entries.
  8548. (updateFdSet): Update fds in nameResolver entries.
  8549. (addNameResolverCheck): New function.
  8550. (deleteNameResolverCheck): new function.
  8551. * src/PeerInteractionCommand.cc
  8552. (executeInternal): Fixed wrong socket handling.
  8553. * src/main.cc
  8554. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8555. * src/Util.cc
  8556. (fileChecksum): Removed the call to ctx.digestReset().
  8557. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. * po/ru.po: Azamat sent me Russian translation.
  8559. * src/FtpNegotiateCommand.cc
  8560. (recvGreeting): Call disableWriteCheckSocket just after
  8561. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8562. (recvRetr): Recognized status code 125 as a acceptable response code.
  8563. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8564. case-insesitive filesystem(BUG#1531057).
  8565. * src/Time.h: Renamed as TimeA2.h.
  8566. * src/Time.cc: Renamed as TimeA2.cc.
  8567. * src/TimeA2.h: New class.
  8568. * src/TimeA2.cc: New class.
  8569. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8570. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8571. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8572. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8573. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8574. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8575. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8576. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8577. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8578. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8579. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8580. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8581. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8582. * release 0.7.0
  8583. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. * src/PeerChokeCommand.h
  8585. (PeerChokeCommand): Rearranged the arguments.
  8586. * src/PeerChokeCommand.cc
  8587. (PeerChokeCommand): Rearranged the arguments.
  8588. * src/MetalinkEntry.h
  8589. (Checksum.h): Included.
  8590. (md5): Removed.
  8591. (sha1): Removed.
  8592. (checksum): New variable.
  8593. (operator=): Updated.
  8594. (check): Removed.
  8595. * src/prefs.h
  8596. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8597. (PREF_FOLLOW_TORRENT): New definition.
  8598. (PREF_SELECT_FILE): New definition.
  8599. (PREF_FOLLOW_METALINK): New definition.
  8600. * src/MetalinkResource.h
  8601. (TYPE_HTTPS): Added to enum TYPE.
  8602. * src/TorrentMan.cc
  8603. (~TorrentMan): Rewritten.
  8604. * src/MultiDiskWriter.cc
  8605. (MultiDiskAdaptor): Updated according to the changes in
  8606. MessageDigestContext.
  8607. (~MultiDiskAdaptor): Updated according to the changes in
  8608. MessageDigestContext.
  8609. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8610. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8611. * src/Util.h
  8612. (fileChecksum): Updated according to the changes in
  8613. MessageDigestContext.
  8614. * src/Util.cc
  8615. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8616. (fileChecksum): Updated according to the changes in
  8617. MessageDigestContext.
  8618. * src/messageDigest.h: Rewritten.
  8619. * src/MetalinkEntry.cc
  8620. (check): Removed.
  8621. (Supported): Updated.
  8622. (dropUnsupportedResource): Fixed a memory leak.
  8623. * src/ShaVisitor.cc
  8624. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8625. (~ShaVisitor): Updated according to the changes in
  8626. MessageDigestContext.
  8627. (visit): Updated according to the changes in MessageDigestContext.
  8628. * src/main.cc
  8629. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8630. command-line option added.
  8631. * src/DownloadEngine.h
  8632. (SocketEntry): New class.
  8633. (SocketEntries): New definition.
  8634. (PairFind): Removed.
  8635. (SockCmdMap): Removed.
  8636. * src/DownloadEngine.cc
  8637. (DownloadEngine): Rewritten.
  8638. (~DownloadEngine): Rewritten.
  8639. (run): Renamed activeCommandUuids as activeUuids.
  8640. (SetDescriptor): Rewritten.
  8641. (AccumulateActiveCommandUuid): Removed.
  8642. (AccumulateActiveUuid): New function object.
  8643. (waitData): Rewritten.
  8644. (updateFdSet): Rewritten.
  8645. (addSocket): Rewritten.
  8646. (deleteSocket): Rewritten.
  8647. (addSocketForReadCheck): Rewritten.
  8648. (deleteSocketForReadCheck): Rewritten.
  8649. (addSocketForWriteCheck): Rewritten.
  8650. (deleteSocketForWriteCheck): Rewritten.
  8651. * src/Xml2MetalinkProcessor.cc
  8652. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8653. * src/DownloadCommand.cc
  8654. (executeInternal): Added the check routine for lowest speed limit.
  8655. * src/AbstractDiskWriter.cc
  8656. (AbstractDiskWriter): Updated according to the changes in
  8657. MessageDigestContext.
  8658. (~AbstractDiskWriter): Updated according to the changes in
  8659. MessageDigestContext.
  8660. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8661. * src/RequestInfo.h: New class.
  8662. * src/UrlRequestInfo.h: New class.
  8663. * src/UrlRequestInfo.cc: New class.
  8664. * src/TorrentRequestInfo.h: New class.
  8665. * src/TorrentRequestInfo.cc: New class.
  8666. * src/MetalinkRequestInfo.h: New class.
  8667. * src/MetalinkRequestInfo.cc: New class.
  8668. * src/Checksum.h: New class.
  8669. * src/DownloadEngineFactory.h: New class.
  8670. * src/DownloadEngineFactory.cc: New class.
  8671. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8672. * src/Option.h
  8673. (getAsBool): New function.
  8674. * src/Option.cc
  8675. (prefs.h): Included.
  8676. (defined): 0-length value is now recognized as undefined.
  8677. (getAsInt): Rewritten.
  8678. (getAsLLInt): Rewritten.
  8679. (getAsBool): New function.
  8680. * src/FeatureConfig.h: Rewritten.
  8681. * src/FeatureConfig.cc: Rewritten.
  8682. * src/prefs.h
  8683. (PREF_STDOUT_LOG): New definition.
  8684. (PREF_LOG): New definition.
  8685. (PREF_DIR): New definition.
  8686. (PREF_OUT): New definition.
  8687. (PREF_SPLIT): New definition.
  8688. (PREF_DAEMON): New definition.
  8689. (PREF_REFERER): New definition.
  8690. (PREF_TORRENT_FILE): New definition.
  8691. (PREF_LISTEN_PORT): New definition.
  8692. (PREF_METALINK_FILE): New definition.
  8693. (PREF_METALINK_VERSION): New definition.
  8694. (PREF_METALINK_LANGUAGE): New definition.
  8695. (PREF_METALINK_OS): New definition.
  8696. (PREF_METALINK_SERVERS): New definition.
  8697. * src/main.cc
  8698. (main): Following command-line parameters are now put into Option
  8699. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8700. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8701. metalinkLanguage, metalinkOs, metalinkServers
  8702. To fix the bug that aria2 can not handle http response header properly.
  8703. * src/HttpHeader.cc
  8704. (put): Made name lowercased.
  8705. (defined): Made name lowercased.
  8706. (getFirst): Made name lowercased.
  8707. (get): Made name lowercased.
  8708. (getFirstAsInt): Rewritten.
  8709. (getFirstAsLLInt): Rewritten.
  8710. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. * src/TorrentMan.h:
  8712. (advertisePiece): Updated doc.
  8713. (getAdvertisedPieceIndexes): Updated doc.
  8714. (removeAdvertisedPiece); New function.
  8715. * src/TorrentMan.cc
  8716. (FindElapsedHave): New function object.
  8717. (removeAdvertisedPiece): New function.
  8718. * src/HaveEraseCommand.h: New class.
  8719. * src/HaveEraseCommand.cc: New class.
  8720. * src/FeatureConfig.h: New class.
  8721. * src/FeatureConfig.cc: New class.
  8722. * src/Request.h
  8723. (defaultPorts): Removed.
  8724. * src/Request.cc
  8725. (FeatureConfig.h): Included.
  8726. (Request): Removed the statements related to defaultPorts.
  8727. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8728. A default port number is now retrieved from FeatureConfig.
  8729. * src/main.cc
  8730. (HaveEraseCommand.h): Included.
  8731. (showVersion): Added the output of feature list.
  8732. (main): Added HaveEraseCommand to command queue in BitTorrent
  8733. downloading.
  8734. * src/PeerInteractionCommand.h
  8735. (chokeCheckPoint): Commented out.
  8736. (periodicExecPoint): New variable.
  8737. * src/PeerInteractionCommand.cc
  8738. (executeInternal): Following methods are now called in at least every
  8739. 0.5 seconds to reduce CPU usage:
  8740. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8741. checkHave(), sendKeepAlive().
  8742. (checkLongTimePeerChoking): Commented out.
  8743. * src/BitfieldMan.h
  8744. (getNthBitIndex): Changed the method signature.
  8745. (getMissingIndexRandomly): Changed the method signature.
  8746. * src/BitfieldMan.cc
  8747. (getNthBitIndex): Rewritten
  8748. (getMissingIndexRandomly): Rewritten.
  8749. (hasMissingPiece): Rewritten.
  8750. (getMissingIndex): Refactored.
  8751. (getMissingUnusedIndex); Refactored.
  8752. (getMissingIndex): Refactored.
  8753. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. * src/PeerMessage.h
  8755. (Piece.h): Included.
  8756. (SharedHandle.h): Included.
  8757. (invalidate): New variable.
  8758. (uploading): New variable.
  8759. (isInvalidate): New function.
  8760. (isUploading): New function.
  8761. (onPush): New function.
  8762. (onChoked): New function.
  8763. (onCanceled): New function.
  8764. (onAbortPiece): New function.
  8765. (PeerMessageHandle): New type definition.
  8766. * src/PeerMessage.cc
  8767. (PeerMessage): Added the initialization for invalidate and uploading.
  8768. * src/CancelMessage.h
  8769. (CancelMessage): Rewritten.
  8770. * src/RejectMessage.h
  8771. (RejectMessage): Rewritten.
  8772. * src/Metalinker.h
  8773. (operator=): Defined.
  8774. * src/MetaEntry.h
  8775. (operator=): Defined.
  8776. * src/MetalinkResource.h
  8777. (operator=): Defined.
  8778. * src/AllowedFastMessage.h
  8779. (AllowedFastMessage): Rewritten.
  8780. * src/HandshakeMessage.h
  8781. (HandshakeMessage): New function(overload).
  8782. * src/HandshakeMessage.cc
  8783. (HandshakeMessage): Rewritten.
  8784. (init): New function.
  8785. * src/HaveMessage.h
  8786. (HaveMessage): Rewritten.
  8787. * src/Time.h
  8788. (operator=): Defined the function body here.
  8789. * src/Time.cc
  8790. (operator=): Removed.
  8791. * src/SocketCore.h
  8792. (operator==): Defined here.
  8793. (operator!=): Defined here.
  8794. (operator<): Defined here.
  8795. * src/SocketCore.cc
  8796. (operator==): Removed.
  8797. (operator<): Removed.
  8798. * src/BitfieldMan.h
  8799. (operator=): Defined the function body here.
  8800. * src/BitfieldMan.cc
  8801. (operator=): Removed.
  8802. * src/TorrentMan.h
  8803. (deleteErrorPeer): Removed.
  8804. (deleteUnusedPeer); New function.
  8805. * src/TorrentMan.cc
  8806. (addPeer): Call deleteUnusedPeer.
  8807. (deleteErrorPeer): Removed.
  8808. (deleteUnusedPeer): New function.
  8809. * src/PeerAbstractCommand.h
  8810. (setNoCheck): New function.
  8811. (noCheck): New variable.
  8812. * src/PeerAbstractCommand.cc
  8813. (PeerAbstractCommand): Added the initialization of noCheck.
  8814. (execute): Added a check for noCheck.
  8815. (setNoCheck): New function.
  8816. * src/Util.h
  8817. (stdio.h): Included.
  8818. * src/Util.cc
  8819. (unistd.h): Included.
  8820. * src/DefaultDiskWriter.cc
  8821. (unistd.h): Included.
  8822. * src/Peer.h
  8823. (operator==): Defined the function body here.
  8824. (operator!=): Defined the function body here.
  8825. * src/Peer.cc
  8826. (operator==): Removed.
  8827. (operator!=): Removed.
  8828. * src/Piece.h
  8829. (Piece): Defined the function body here(copy constructor).
  8830. (operator=): Defined the function body here.
  8831. (operator==): Defined the function body here.
  8832. * src/Piece.cc
  8833. (Piece): Removed(copy constructor).
  8834. (operator=): Removed.
  8835. (operator==): Removed.
  8836. * src/PeerMessageUtil.h
  8837. (ChokeMessage.h): Removed.
  8838. (UnchokeMessage.h): Removed.
  8839. (InterestedMessage.h): Removed.
  8840. (NotInterestedMessage.h): Removed.
  8841. (HaveMessage.h): Removed.
  8842. (BitfieldMessage.h): Removed.
  8843. (RequestMessage.h): Removed.
  8844. (CancelMessage.h): Removed.
  8845. (PieceMessage.h): Removed.
  8846. (HandshakeMessage.h): Removed.
  8847. (KeepAliveMessage.h): Removed.
  8848. (PortMessage.h): Removed.
  8849. (HaveAllMessage.h): Removed.
  8850. (HaveNoneMessage.h): Removed.
  8851. (PeerConnection.h): Removed.
  8852. (HandshakeMessage.h): Included.
  8853. * src/BitfieldMessage.h
  8854. (init): New function.
  8855. (BitfieldMessage): Rewritten.
  8856. (BitfieldMessage): New function(overload).
  8857. * src/RequestSlot.h
  8858. (operator=): Defined the function body here.
  8859. (operator==): Defined the function body here.
  8860. * src/RequestSlot.cc
  8861. (operator=): Removed.
  8862. (operator==): Removed.
  8863. To remove the dependency on the PeerMessage subclass from
  8864. PeerInteraction:
  8865. * src/PeerMessageFactory.h: New class.
  8866. * src/PeerMessageFactory.cc: New class.
  8867. * src/SimplePeerMessage.cc
  8868. (send): If invalidate is true then do nothing.
  8869. * src/PeerInteractionCommand.cc
  8870. (HandshakeMessage.h): Included.
  8871. (KeepAliveMessage.h): Included.
  8872. (ChokeMessage.h): Included.
  8873. (UnchokeMessage.h): Included.
  8874. (HaveMessage.h): Included.
  8875. (executeInternal): Call setNoCheck().
  8876. Removed setWriteCheckSocket(socket).
  8877. * src/PeerInteraction.h
  8878. (ChokeMessage.h): Removed.
  8879. (UnchokeMessage.h): Removed.
  8880. (InterestedMessage.h): Removed.
  8881. (NotInterestedMessage.h): Removed.
  8882. (HaveMessage.h): Removed.
  8883. (BitfieldMessage.h): Removed.
  8884. (RequestMessage.h): Removed.
  8885. (CancelMessage.h): Removed.
  8886. (PieceMessage.h): Removed.
  8887. (HandshakeMessage.h): Removed.
  8888. (KeepAliveMessage.h): Removed.
  8889. (PortMessage.h): Removed.
  8890. (HaveAllMessage.h): Removed.
  8891. (HaveNoneMessage.h): Removed.
  8892. (RejectMessage.h): Removed.
  8893. (AllowedFastMessage.h): Removed.
  8894. (SuggestPieceMessage.h): Removed.
  8895. (PeerMessageFactory.h): Included.
  8896. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8897. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8898. (PeerMessageFactory): New variable.
  8899. (createPeerMessage): Removed.
  8900. (createHandshakeMessage): Removed.
  8901. (setPeerMessageCommonProperty): Removed.
  8902. (addRequestSlot): New function.
  8903. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8904. (getPeerMessageFactory): New function.
  8905. (createRequestMessage): Removed.
  8906. (createCancelMessage): Removed.
  8907. (createPieceMessage): Removed.
  8908. (createHaveMessage): Removed.
  8909. (createChokeMessage): Removed.
  8910. (createUnchokeMessage): Removed.
  8911. (createInterestedMessage): Removed.
  8912. (createNotInterestedMessage): Removed.
  8913. (createBitfieldMessage): Removed.
  8914. (createKeepAliveMessage): Removed.
  8915. (createHaveAllMessage): Removed.
  8916. (createHaveNoneMessage): Removed.
  8917. (createRejectMessage): Removed.
  8918. (createAllowedFastMessage): Removed.
  8919. * src/PeerInteraction.cc
  8920. (PeerInteraction): Allocate PeerMessageFactory here.
  8921. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8922. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8923. PieceMessage::ID.
  8924. (addMessage): Simplified by using PeerMessage::onPush().
  8925. (addRequestSlot): New function.
  8926. (rejectAllPieceMessageInQueue): Simplified by using
  8927. PeerMessage::onChoked().
  8928. (rejectPieceMessageInQueue): Simplified by using
  8929. PeerMessage::onCanceled().
  8930. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8931. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8932. (createHandshakeMessage): Removed.
  8933. (createPeerMessage): Removed.
  8934. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8935. (setPeerMessageCommonProperty): Removed.
  8936. (createRequestMessage): Removed.
  8937. (createCancelMessage): Removed.
  8938. (createPieceMessage): Removed.
  8939. (createHaveMessage): Removed.
  8940. (createChokeMessage): Removed.
  8941. (createUnchokeMessage): Removed.
  8942. (createInterestedMessage): Removed.
  8943. (createNotInterestedMessage): Removed.
  8944. (createBitfieldMessage): Removed.
  8945. (createKeepAliveMessage): Removed.
  8946. (createHaveAllMessage): Removed.
  8947. (createHaveNoneMessage): Removed.
  8948. (createRejectMessage): Removed.
  8949. (createAllowedFastMessage): Removed.
  8950. * src/PieceMessage.h
  8951. (createRejectMessage): New function.
  8952. (PieceMessage): Rewritten.
  8953. (onChoked): New function.
  8954. (onCanceled): New function.
  8955. * src/PieceMessage.cc
  8956. (send): If invalidate is true then do nothing, just return.
  8957. (createRejectMessage): New function.
  8958. (onChoked): New function.
  8959. (onCanceled): New function.
  8960. * src/RequestMessage.h
  8961. (RequestMessage): Rewritten.
  8962. (onPush): New function.
  8963. (onAbortPiece): New function.
  8964. * src/RequestMessage.cc
  8965. (onPush): New function.
  8966. (onAbortPiece): New function.
  8967. Update fd_set when a socket is added or deleted in order to improve
  8968. performance:
  8969. * src/DownloadEngine.h
  8970. (rfdset): New variable.
  8971. (wfdset): New variable.
  8972. (updateFdSet): New function.
  8973. * src/DownloadEngine.cc
  8974. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8975. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8976. (waitData): Copy rfdset and wfdset.
  8977. (updateFdSet): New function.
  8978. (addSocket): Call updateFdSet.
  8979. (deleteSocket): Call updateFdSet.
  8980. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. To add the support for Metalink3.0 backward compatible links:
  8982. * src/Request.h
  8983. (SAFE_CHARS): Added '#'.
  8984. (METALINK_MARK): New definition.
  8985. * src/Request.cc
  8986. (parseUrl): Added the support for Metalink3.0 backward compatible
  8987. links.
  8988. etc
  8989. * src/PeerInteraction.cc
  8990. (MsgPushBack): Removed.
  8991. (sendMessages): Use STL copy and back_inserter.
  8992. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8993. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8994. * src/TorrentMan.h
  8995. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8996. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. * src/SharedHandle.h: New class.
  8998. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8999. * src/HttpResponseCommand.h
  9000. (HttpResponseCommand): Wrapped Socket.
  9001. * src/SocketCore.h
  9002. (operator==): New function.
  9003. (operator!=): New function.
  9004. (operator<): New function.
  9005. (getSockfd): New function.
  9006. (isOpen): New function.
  9007. (writeData): New function.
  9008. * src/SocketCore.cc
  9009. (operator==): New function.
  9010. (operator!=): New function.
  9011. (operator<): New function.
  9012. * src/AbstractCommand.h
  9013. (socket): Changed its type to SocketHandle.
  9014. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9015. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9016. (disableReadCheckSocket): New function.
  9017. (disableWriteCheckSocket): New function.
  9018. (readCheckTarget): Changed its type to SocketHandle.
  9019. (writeCheckTarget): Changed its type to SocketHandle.
  9020. (AbstractCommand): Replaced Socket with SocketHandle.
  9021. * src/AbstractCommand.cc
  9022. (AbstractCommand): Replaced Socket with SocketHandle.
  9023. (~AbstractCommand): Removed the deallocation for Socket object.
  9024. (disableReadCheckSocket): New function.
  9025. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9026. (disableWriteCheckSocket): New function.
  9027. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9028. * src/HttpDownloadCommand.cc
  9029. (DownloadCommand): Replaced Socket with SocketHandle.
  9030. * src/PeerAbstractCommand.h
  9031. (socket): Changed its type to SocketHandle.
  9032. (peer): Changed its type to PeerHandle.
  9033. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9034. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9035. (disableReadCheckSocket): New function.
  9036. (disableWriteCheckSocket): New function.
  9037. (readCheckTarget): Changed its type to SocketHandle.
  9038. (writeCheckTarget): Changed its type to SocketHandle.
  9039. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9040. Replaced Peer with PeerHandle.
  9041. * src/HttpRequestCommand.cc
  9042. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9043. Use disableReadCheckSocket.
  9044. * src/PeerInitiateConnectionCommand.h
  9045. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9046. * src/PeerChokeCommand.cc
  9047. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  9048. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  9049. (execute): Use PeerHandle.
  9050. * src/PeerConnection.h
  9051. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  9052. (socket): Changed its type to SocketHandle.
  9053. (PeerConnection): Replaced Socket with SocketHandle.
  9054. * src/PeerConnection.cc
  9055. (PeerConnection): Replaced Socket with SocketHandle.
  9056. * src/PeerInteractionCommand.h
  9057. (PeerInteractionCommand): Replaced socket with SocketHandle.
  9058. Replaced Peer with PeerHandle.
  9059. * src/PeerInteractionCommand.cc
  9060. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  9061. Replaced Peer with PeerHandle.
  9062. (executeInternal): Use disableWriteCheckSocket.
  9063. Use HandshakeMessageHandle.
  9064. (receiveMessages): Use PeerMessageHandle.
  9065. (prepareForNextPeer): Use PeerHandle.
  9066. * src/HttpProxyRequestCommand.h
  9067. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9068. * src/HttpResponseCommand.cc
  9069. (HttpResponseCommand): Replaced Socket with SocketHandle.
  9070. * src/TorrentMan.cc
  9071. (nullPeer): Added external reference.
  9072. (~TorrentMan): Removed the deallocation of the elements of peers.
  9073. (addPeer): Rewritten.
  9074. (isPeerAvailable): Use nullPeer.
  9075. (deleteOldpeers): Replaced with deleteErrorPeer.
  9076. (deleteErrorPeer): New function.
  9077. (getPeer): Use PeerHandle and nullPeer.
  9078. (hasMissingPiece): Replaced Peer with PeerHandle.
  9079. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9080. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9081. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9082. (getMissingPiece): Replaced Peer with PeerHandle.
  9083. * src/FtpNegotiateCommand.cc
  9084. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  9085. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  9086. (recvGreeting): Use disableWriteCheckSocket.
  9087. (recvPasv): Removed the allocation of Socket.
  9088. Use disableReadCheckSocket.
  9089. (sendRestPasv): Use disableWriteCheckSocket.
  9090. (recvRetr): Changed assertion.
  9091. * src/PeerInteraction.h
  9092. (SharedHandle.h): Included SharedHandle.h.
  9093. (PeerMessageHandle): New type definition.
  9094. (HandshakeMessageHandle): New type definition.
  9095. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  9096. (peer): Changed its type to PeerHandle.
  9097. (createHandshakeMessage): Replaced HandshakeMessage with
  9098. HandshakeMessageHandle.
  9099. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  9100. (PeerInteraction): Replaced Peer with PeerHandle.
  9101. Replaced Socket with SocketHandle.
  9102. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9103. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9104. (receiveHandshake): Replaced HandshakeMessage with
  9105. HandshakeMessageHandle.
  9106. * src/PeerInteraction.cc
  9107. (PeerInteraction): Replaced Peer with PeerHandle.
  9108. Replaced Socket with SocketHandle.
  9109. (~PeerInteraction): Removed the deallocation of the elements of
  9110. messageQueue.
  9111. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  9112. (isSendingMessageInProgress): Replaced PeerMessage with
  9113. PeerMessageHandle.
  9114. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  9115. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9116. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  9117. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  9118. (abortPiece): Use PeerMessageHandle.
  9119. (receiveHandshake): Replaced HandshakeMessage with
  9120. HandshakeMessageHandle. Removed try-catch block.
  9121. (createHandshakeMessage): Replaced HandshakeMessage with
  9122. HandshakeMessageHandle.
  9123. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9124. Removed try-catch block.
  9125. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  9126. * src/HttpProxyResponseCommand.cc
  9127. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9128. * src/FtpTunnelResponseCommand.h
  9129. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9130. * src/HttpConnection.cc
  9131. (HttpConnection): Replaced Socket with SocketHandle.
  9132. * src/PeerAbstractCommand.cc
  9133. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9134. (~PeerAbstractCommand): Removed the deallocation of socket.
  9135. Use disableReadCheckSocket, disableWriteCheckSocket.
  9136. (disableReadCheckSocket): New function.
  9137. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9138. (disableWriteCheckSocket): New function.
  9139. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9140. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  9141. * src/FtpTunnelRequestCommand.cc
  9142. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9143. (~FtpTunnelRequestCommand): Corrected indentation.
  9144. * src/DownloadCommand.h
  9145. (DownloadCommand): Replaced Socket with SocketHandle.
  9146. * src/PeerListenCommand.cc
  9147. (PeerListenCommand): Removed the initialization of socket.
  9148. (~PeerListenCommand): Removed the deallocation of socket.
  9149. (bindPort): Use SocketHandle.
  9150. (execute): Use SocketHandle and PeerHandle.
  9151. * src/FtpDowndloadCommand.cc
  9152. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9153. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9154. * src/main.cc
  9155. (main): Corrected indentation.
  9156. * src/HttpInitiateConnectionCommand.cc
  9157. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9158. (executeInternal): Removed the allocation of socket.
  9159. * src/HttpRequestCommand.h
  9160. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9161. * src/FtpNegotiationCommand.h
  9162. (dataSocket): Changed its type to SocketHandle.
  9163. (serverSocket): Changed its type to SocketHandle.
  9164. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9165. * src/TorrentMan.h
  9166. (MAX_PEER_UPDATE): Removed.
  9167. (MAX_PEERS): New definition.
  9168. (Peers): The element is now of type PeerHandle.
  9169. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9170. (getPeer): Replaced Peer with PeerHandle.
  9171. (deleteOldErrorPeers): Removed.
  9172. (deleteErrorPeer): New function.
  9173. (hasMissingPiece): Replaced Peer with PeerHandle.
  9174. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9175. (getMissingPiece): Replaced Peer with PeerHandle.
  9176. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9177. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9178. (addActivePeer): Replaced Peer with PeerHandle.
  9179. (deleteActivePeer): Replaced Peer with PeerHandle.
  9180. Added a check for the return value of find.
  9181. * src/FtpTunnelResponseCommand.cc
  9182. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9183. * src/FtpInitiateConnectionCommand.cc
  9184. (executeInternal): Removed the allocation of socket.
  9185. * src/DownloadEngine.h
  9186. (Sockets): An element is now of type SocketHandle.
  9187. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9188. (CommandUuids): New type definition.
  9189. (rsockets): Changed its type to SockCmdMap.
  9190. (wsockets): Changed its type to SockCmdMap.
  9191. (addSocket): Rewritten.
  9192. (deleteSocket): Rewritten.
  9193. (addSocketForReadCheck): Rewritten.
  9194. (deleteSocketForReadCheck): Rewritten.
  9195. (addSocketForWriteCheck): Rewritten.
  9196. (deleteSocketForWriteCheck): Rewritten.
  9197. (PairFind): New template class.
  9198. * src/HttpDownloadCommand.h
  9199. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9200. * src/FtpConnection.cc
  9201. (FtpConnection): Replaced Socket with SocketHandle.
  9202. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9203. block.
  9204. * src/InitiateConnectionCommandFactory.cc
  9205. (DlAbortEx.h): Included DlAbortEx.h.
  9206. (createInitiateConnectionCommand): Throw exception if the protocol of
  9207. requested URI is not supported.
  9208. * src/Peer.cc
  9209. (nullPeer): Changed its type to PeerHandle.
  9210. (operator==): New function.
  9211. (operator!=): New function.
  9212. * src/Peer.h
  9213. (SharedHandle.h): Included SharedHandle.h.
  9214. (operator==): New function.
  9215. (operator!=): New function.
  9216. (Peer): Added the default constructor.
  9217. Use resetStatus() to initialize member variables.
  9218. (nullPeer): Removed.
  9219. * src/TrackerUpdateCommand.cc
  9220. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9221. with MIN_PEERS.
  9222. * src/PeerListenCommand.h
  9223. (socket): Changed its type to SocketHandle.
  9224. * src/Command.h
  9225. (CommandUuid): New type definition.
  9226. (uuid): New variable.
  9227. (uuidGen): New variable.
  9228. (Command): Added the initialization of uuid.
  9229. (getUuid): New function.
  9230. * src/Socket.h
  9231. (Socket): Removed.
  9232. (SocketHandle): New type definition.
  9233. * src/DownloadEngine.h
  9234. (FindCommand): New function object.
  9235. (run): The portion of socket check was rewritten.
  9236. (SetDescriptor): New function object.
  9237. (AccumulateActiveCommandUuid): New function object.
  9238. (waitData): Rewritten.
  9239. (addSocket): Rewritten.
  9240. (deleteSocket): Rewritten.
  9241. (addSocketForReadCheck): Rewritten.
  9242. (addSocketForWriteCheck): Rewritten.
  9243. (deleteSocketForReadCheck): Rewritten.
  9244. (deleteSocketForWriteCheck): Rewritten.
  9245. * src/HttpProxyResponseCommand.h
  9246. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  9247. * src/HttpConnection.h
  9248. (socket): Changed its type to SocketHandle.
  9249. (HttpConnection): Replaced Socket with SocketHandle.
  9250. * src/PeerInitiateConnectionCommand.cc
  9251. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9252. (executeInternal): Removed the allocation of socket.
  9253. (prepareForNextPeer): Use PeerHandle.
  9254. * src/PeerMessage.h
  9255. (peer): Changed its type to PeerHandle.
  9256. (getPeer): Replaced Peer with PeerHandle.
  9257. (setPeer): Replaced Peer with PeerHandle.
  9258. * src/DownloadCommand.cc
  9259. (DownloadCommand): Replaced Socket with SocketHandle.
  9260. * src/FtpConnection.h
  9261. (socket): Changed its type to SocketHandle.
  9262. (FtpConnection): Replaced Socket with SocketHandle.
  9263. (sendPort); Replaced Socket with SocketHandle.
  9264. * src/FtpDowndloadCommand.h
  9265. (ctrlSocket): Changed its type to SocketHandle.
  9266. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9267. * src/HttpProxyRequestCommand.cc
  9268. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9269. * src/FtpTunnelRequestCommand.h
  9270. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9271. etc
  9272. * src/PeerChokeCommand.h
  9273. (setAllPeerChoked): Removed.
  9274. (setAllPeerResetDelta): Removed.
  9275. * src/PeerChokeCommand.cc
  9276. (setAllPeerChoked): Removed.
  9277. (ChokePeer): New function object.
  9278. (setAllPeerResetDelta): Removed.
  9279. (ResetDelta): New function object.
  9280. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  9281. (execute): Show download speed when the local node is a seeder.
  9282. setAllPeerChoked and setAllPeerResetDelta were rewritten
  9283. using STL.
  9284. * src/TrackerWatcherCommand.h
  9285. (MIN_PEERS): Removed.
  9286. * src/TorrentMan.cc
  9287. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  9288. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. To fix the bug that .aria2 file is not saved if downloading is stopped
  9290. by the errors:it results that aria2 can not resume downloading:
  9291. * src/main.cc
  9292. (normalDownload): Added the call to save().
  9293. (main): Added the deletion of the elements in 'reserved'.
  9294. To fix log:
  9295. * src/PeerInteraction.cc
  9296. (receiveHandshake): Fixed log.
  9297. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9298. To improve download performance in BitTorrent:
  9299. * src/TorrentMan.cc
  9300. (getPeer): Check the number of connections. Return nullPeer if
  9301. it is greater than MAX_PEER_UPDATE.
  9302. This code was originally here, but was removed in 0.5.1.
  9303. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. To improve the conditional compilation:
  9305. * src/MultiDiskWriter.h:
  9306. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9307. * src/MultiDiskWriter.cc:
  9308. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9309. * src/Util.h:
  9310. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9311. Added ENABLE_BITTORRENT around computeFastSet().
  9312. * src/Util.cc:
  9313. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9314. Added ENABLE_BITTORRENT around computeFastSet().
  9315. * src/messageDigest.h:
  9316. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  9317. * src/ShaVisitor.h:
  9318. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9319. * src/ShaVisitor.cc:
  9320. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9321. * src/main.cc:
  9322. Added ENABLE_BITTORRENT around includes and blocks related to
  9323. BitTorrent.
  9324. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  9325. digest support is not available.
  9326. * src/AbstractDiskWriter.h:
  9327. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9328. * src/AbstractDiskWriter.cc:
  9329. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9330. * src/MetalinkEntry.cc
  9331. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  9332. support is not available.
  9333. To add command-line options for Metalink:
  9334. * src/main.cc:
  9335. Added metalink-version, metalink-language, metalink-os,
  9336. follow-metalink.
  9337. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  9338. * src/main.cc: Use these definition.
  9339. * Release 0.6.0
  9340. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. To add Metalink support(http/ftp only):
  9342. * src/AbstractCommand.h
  9343. (tryReserved): New function.
  9344. * src/AbstractCommand.cc
  9345. (execute): Call tryReserved().
  9346. (tryReserved): New function.
  9347. * src/Request.h
  9348. (Requests): New type definition.
  9349. * src/SegmentMan.h
  9350. (reserved): New variable.
  9351. * src/Util.h
  9352. (fileChecksum): New function.
  9353. (toUpper): New function.
  9354. (toLower): New function.
  9355. * src/Util.cc
  9356. (messageDigest.h): Included.
  9357. (trim): Trim \r\n\t.
  9358. (fileChecksum): New function.
  9359. (toUpper): New function.
  9360. (toLower): New function.
  9361. * src/main.cc
  9362. (normalDownload): New function.
  9363. (main): Added 2 command-line options: metalink-file,
  9364. metalink-connection. Their usage has not been written yet.
  9365. * src/MetalinkProcessor.h: New class.
  9366. * src/Xml2MetalinkProcessor.h: New class.
  9367. * src/Xml2MetalinkProcessor.cc: New class.
  9368. * src/MetalinkEntry.h: New class.
  9369. * src/MetalinkEntry.cc: New class.
  9370. * src/MetalinkResource.h: New class.
  9371. * src/MetalinkResource.cc: New class.
  9372. To add md5 message digest checking:
  9373. * src/messageDigest.h: Rewritten.
  9374. * src/MultiDiskWriter.cc: Updated according to the changes in
  9375. messageDigest.h.
  9376. * src/ShaVisitor.cc: Updated according to the changes in
  9377. messageDigest.h.
  9378. * src/Util.cc: Updated according to the changes in messageDigest.h.
  9379. * src/AbstractDiskWriter.cc: Updated according to the changes in
  9380. messageDigest.h.
  9381. To fix a bug that causes segfault when the payload length in peer
  9382. message is less than 0:
  9383. * src/PeerConnection.cc:
  9384. (receiveMessage): Fixed the bug.
  9385. * src/PeerMessageUtil.cc
  9386. (checkLength): Throw an exception if length is less than or equals to
  9387. 0.
  9388. To add new interfaces to Base64 encoding/decoding:
  9389. * src/Base64.h
  9390. (part_encode): Changed the method signature.
  9391. (encode): New function(overload).
  9392. (decode): New function(overload).
  9393. * src/Base64.cc
  9394. (part_encode): Rewritten.
  9395. (encode): Rewritten.
  9396. (encode): New function(overload).
  9397. To prevent a peer to download same piece if there is an error in
  9398. checksum:
  9399. * src/PieceMessage.cc
  9400. (receivedAction): Call peerInteraction->abortPiece().
  9401. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. To fix the bug that causes same have message is sent many times to
  9403. a single peer.
  9404. * src/Time.cc
  9405. (isNewer): Use Util::difftv().
  9406. * src/Util.cc
  9407. (difftv): Added a cast to (long long int).
  9408. * src/TorrentMan.cc
  9409. (advertisePiece): Use push_front.
  9410. (getAdvertisedPieceIndexes): A performance improvement was made.
  9411. To fix the bug that sends tracker requests without a sleep interval
  9412. when the number of connections is less than 15.
  9413. * src/TrackerWatcherCommand.cc
  9414. (execute): Now the number of connections is not a factor to decide
  9415. whether or not a tracker request should be sent or not.
  9416. * src/Time.h
  9417. (setTimeInSec): New function.
  9418. * src/Time.cc
  9419. (setTimeInSec): New function.
  9420. etc.
  9421. * src/ChokeMessage.cc
  9422. (receivedAction): Removed peer->snubbing = false
  9423. * src/PeerConnection.h
  9424. (receiveHandshake): Updated doc.
  9425. * src/TorrentMan.h
  9426. (getAdvertisedPieceIndexes): Updated the method signature.
  9427. * src/TorrentMan.cc
  9428. (getAdvertisedPieceIndexes): Updated the method signature.
  9429. * src/Time.h
  9430. (getTimeInMicros): Added a cast to (long long int).
  9431. (getTimeInMillis): Added a cast to (long long int).
  9432. * Release 0.5.2
  9433. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. To make a listening socket non-block:
  9435. * src/SocketCore.h
  9436. (setNonBlockingMode): New function.
  9437. * src/SocketCore.cc
  9438. (setNonBlockingMode): New function.
  9439. (beginListen): Added a call to setNonBlockingMode().
  9440. (acceptConnection): Call setNonBlockingMode().
  9441. (setBlockingMode): Updated.
  9442. To handle tracker's NAT-checking:
  9443. * src/PeerConnection.cc
  9444. (receiveHandshake): 'msg' param is filled with received data and
  9445. its length is assigned to 'length' param, even if all handshake
  9446. message is not yet received.
  9447. * src/PeerInteractionCommand.cc
  9448. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9449. a new peer connects to localhost.
  9450. A call to peerInteraction->sendHandshake() was removed because
  9451. it is called from peerInteraction->receiveHandshake(true).
  9452. * src/PeerInteraction.h
  9453. (quickReplied): New variable.
  9454. (receiveHandshake): Added an argument.
  9455. * src/PeerInteraction.cc
  9456. (PeerInteraction): Added the initialization of quickReplied.
  9457. (receiveHandshake): Send handshake message as soon as the info hash
  9458. in a handshake message from a peer is correct.
  9459. To change the random part of peer id and key parameter:
  9460. * src/TorrentMan.h
  9461. (key): New variable.
  9462. * src/TorrentMan.cc
  9463. (setupInternal1): Use Util::randomAlpha() to generate random part
  9464. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9465. key is also generated by Util::randomAlpha() and it is now 8 character
  9466. long.
  9467. * src/Util.h
  9468. (randomAlpha): New function.
  9469. * src/Util.cc
  9470. (randomAlpha): New function.
  9471. * src/TrackerWatcherCommand.cc
  9472. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9473. Added no_peer_id=1.
  9474. Set snubbing flag to false when a choke message is received from a
  9475. snubbed peer.
  9476. * src/ChokeMessage.cc
  9477. (receivedAction): Set snubbing flag to false.
  9478. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9480. * src/SimpleLogger.h (writeHeader): New function.
  9481. * src/SimpleLogger.cc (writeHeader): New function.
  9482. (writeLog): Fixed the bug that causes segfaults if exception message
  9483. contains an unescaped "%" character.
  9484. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9485. when a tracker request fails.
  9486. * src/Request.cc (parseUrl): Query string is now handled properly.
  9487. * Release 0.5.1
  9488. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. To add Time class which represents a specific instant in time and
  9490. its precision is microseconds. Time checking procedures were rewritten
  9491. using this object.
  9492. * src/Time.h: New class.
  9493. * src/Time.cc: New class.
  9494. * src/AbstractCommand.h
  9495. (updateCheckPoint): Removed.
  9496. (isTimeoutDetected): Removed.
  9497. (checkPoint): Changed the type to Time.
  9498. (timeout): New variable.
  9499. (setTimeout): New function.
  9500. * src/AbstractCommand.cc
  9501. (AbstractCommand): Removed the initialization of checkPoint.
  9502. Added the initialization of timeout.
  9503. (updateCheckPoint): Removed.
  9504. (isTimeoutDetected): Removed.
  9505. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9506. * src/PeerChokeCommand.h
  9507. (checkPoint): Changed the type to Time.
  9508. * src/PeerChokeCommand.cc
  9509. (PeerChokeCommand): Removed the initialization of checkPoint.
  9510. (execute): Rewritten using Time object.
  9511. * src/TrackerWatcherCommand.h
  9512. (checkPoint): Changed the type to Time.
  9513. * src/TrackerWatcherCommand.cc
  9514. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9515. (execute): Rewritten.
  9516. * src/ConsoleDownloadEngine.h
  9517. (cp): Changed the type to Time.
  9518. (startup): Changed the type to Time.
  9519. * src/ConsoleDownloadEngine.cc
  9520. (initStatistics): Use cp.reset(), startup.reset().
  9521. (calculateStatistics): Rewritten using Time object.
  9522. * src/PeerAbstractCommand.h
  9523. (updateCheckPoint): Removed.
  9524. (isTimeoutDetected): Removed.
  9525. (checkPoint): Changed the type to Time.
  9526. * src/PeerAbstractCommand.cc
  9527. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9528. (updateCheckPoint): Removed.
  9529. (isTimeoutDetected): Removed.
  9530. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9531. * src/PeerInteractionCommand.cc
  9532. (PeerInteractionCommand): Removed the initializations of struct
  9533. timeval variables.
  9534. * src/PeerInteractionCommand.h
  9535. (keepAliveCheckPoint): Changed the type to Time.
  9536. (chokeCheckPoint): Changed the type to Time.
  9537. (freqCheckPoint): Changed the type to Time.
  9538. (haveCheckTime): Changed the type to Time.
  9539. * src/PeerInteractionCommand.cc
  9540. (executeInternal): Rewritten using Time object.
  9541. (detectMessageFlooding): Rewritten using Time object.
  9542. (checkLongTimePeerChoking): Rewritten using Time object.
  9543. (sendKeepAlive): Rewritten using Time object.
  9544. (checkHave): Rewritten using Time object.
  9545. * src/SleepCommand.h
  9546. (checkPoint): Changed the type to Time.
  9547. * src/SleepCommand.cc
  9548. (SleepCommand): Removed the initialization of checkPoint.
  9549. (execute): Rewritten using Time object.
  9550. * src/TorrentAutoSaveCommand.h
  9551. (checkPoint): Changed the type to Time.
  9552. * src/TorrentAutoSaveCommand.cc
  9553. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9554. (execute): Rewritten.
  9555. * src/DownloadCommand.h
  9556. (sw): Changed the type to Time.
  9557. * src/DownloadCommand.cc
  9558. (DownloadCommand): Removed the initialization of sw.
  9559. (executeInternal): Rewritten.
  9560. * src/RequestSlot.h
  9561. (dispatchedTime): Changed the type to Time.
  9562. * src/RequestSlot.cc
  9563. (RequestSlot): Removed the call to setDispatchedTime().
  9564. (setDispatchedTime): Rewirtten.
  9565. (isTimeout): Rewritten.
  9566. (getLatencyInMillis): Rewritten.
  9567. * src/TorrentDownloadEngine.h
  9568. (cp): Changed the type to Time[2].
  9569. (startup): Changed the type to Time.
  9570. * src/TorrentDownloadEngine.cc
  9571. (initStatistics): Rewritten.
  9572. (calculateStatistics): Rewritten.
  9573. * src/DownloadEngine.cc
  9574. (run): Rewritten.
  9575. To detect all attempts to connect to the tracker are failed:
  9576. * src/AbstractCommand.cc
  9577. (execute): Increment e->segmentMan->errors if a command aborted.
  9578. * src/SegmentMan.h
  9579. (errors): New variable.
  9580. * src/SegmentMan.cc
  9581. (SegmentMan): Added the initialization of errors.
  9582. (init): Added the initialization of errors.
  9583. * src/TrackerWatcherCommand.cc
  9584. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9585. request was failed.
  9586. To handle snubbed peers:
  9587. * src/PeerChokeCommand.cc
  9588. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9589. (execute): Snubbed peers don't get unchoked.
  9590. * src/PeerInteraction.h
  9591. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9592. * src/PeerInteraction.cc
  9593. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9594. back the requested 16k block in 60 seconds.
  9595. * src/PieceMessage.cc
  9596. (receivedAction): A peer's snubbed state is cleard if it sends
  9597. the requested 16k block in 60 seconds.
  9598. * src/Peer.h
  9599. (snubbing): New variable.
  9600. * src/Peer.cc
  9601. (resetStatus): Added snubbed = false.
  9602. To fix the bug that causes have message is not sent:
  9603. * src/PeerInteractionCommand.cc
  9604. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9605. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9606. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9607. * src/TorrentMan.h
  9608. (HaveEntry): New class.
  9609. (advertisePiece): Rewritten.
  9610. (getAdvertisedPieceIndexes): Rewritten.
  9611. (Haves): Changed the type.
  9612. (getAdvertisedPieceIndexes): Added an argument.
  9613. Others:
  9614. * src/TorrentMan.h
  9615. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9616. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9617. * src/TorrentMan.cc
  9618. (getPeer): Don't check the number of connections here.
  9619. (setupInternal1): Changed peerId.
  9620. * src/PeerInteractionCommand.h
  9621. (KEEP_ALIVE_INTERVAL): New definition.
  9622. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9623. * src/main.cc
  9624. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9625. * src/DownloadEngine.h: Removed unnecessary header includes.
  9626. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. To fix the bug that causes segfaults if a tracker returns a zero-length
  9628. list as "peers":
  9629. * src/TrackerUpdateCommand.cc
  9630. (execute): Added a check to see wether the type of peers is Data*.
  9631. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. * Release 0.5.0
  9633. To fix compile issue with gcc3:
  9634. * src/CancelMessage.h
  9635. (ID): Renamed as ID_t
  9636. (ID_t): New enum.
  9637. * src/RejectMessage.h
  9638. (ID): Renamed as ID_t
  9639. (ID_t): New enum.
  9640. * src/SuggestPieceMessage.h
  9641. (ID): Renamed as ID_t
  9642. (ID_t): New enum.
  9643. * src/AllowedFastMessage.h
  9644. (ID): Renamed as ID_t
  9645. (ID_t): New enum.
  9646. * src/PortMessage.h
  9647. (ID): Renamed as ID_t
  9648. (ID_t): New enum.
  9649. * src/HaveNoneMessage.h
  9650. (ID): Renamed as ID_t
  9651. (ID_t): New enum.
  9652. * src/KeepAliveMessage.h
  9653. (ID): Renamed as ID_t
  9654. (ID_t): New enum.
  9655. * src/HaveAllMessage.h
  9656. (ID): Renamed as ID_t
  9657. (ID_t): New enum.
  9658. * src/UnchokeMessage.h
  9659. (ID): Renamed as ID_t
  9660. (ID_t): New enum.
  9661. * src/BitfieldMessage.h
  9662. (ID): Renamed as ID_t
  9663. (ID_t): New enum.
  9664. * src/PieceMessage.h
  9665. (ID): Renamed as ID_t
  9666. (ID_t): New enum.
  9667. * src/RequestMessage.h
  9668. (ID): Renamed as ID_t
  9669. (ID_t): New enum.
  9670. * src/NotInterestedMessage.h
  9671. (ID): Renamed as ID_t
  9672. (ID_t): New enum.
  9673. * src/ChokeMessage.h
  9674. (ID): Renamed as ID_t
  9675. (ID_t): New enum.
  9676. * src/InterestedMessage.h
  9677. (ID): Renamed as ID_t
  9678. (ID_t): New enum.
  9679. * src/HaveMessage.h
  9680. (ID): Renamed as ID_t
  9681. (ID_t): New enum.
  9682. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. * src/PeerAbstractCommand.h
  9684. (beforeSocketCheck): Removed.
  9685. * src/PeerAbstractCommand.cc
  9686. Modified in order to call executeInternal() even if socket check
  9687. and upload limit check fail.
  9688. * src/PeerInteractionCommand.h
  9689. (keepAlive): Removed.
  9690. (sendKeepAlive): New function.
  9691. (checkHave): New function.
  9692. (beforeSocketCheck): Removed.
  9693. * src/PeerInteractionCommand.cc
  9694. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9695. calls to checkHave() and sendKeepAlive().
  9696. (keepAlive): Renamed to sendKeepAlive().
  9697. (sendKeepAlive): New function.
  9698. (beforeSocketCheck): Removed.
  9699. (checkHave): New function.
  9700. * src/BitfieldMan.cc
  9701. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9702. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9703. 0.
  9704. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9705. * src/TorrentMan.h
  9706. (UsedPieces): Removed.
  9707. (Pieces): New type definition.
  9708. * src/Piece.h: Updated doc.
  9709. * src/Peer.h
  9710. (totalLength): Removed.
  9711. * src/Peer.cc
  9712. (updateLatency): Fixed the latency calculation.
  9713. * src/TorrentMan.cc
  9714. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9715. than or equal to MAX_PEER_LIST_SIZE.
  9716. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9717. then return false.
  9718. (deleteOldErrorPeers): Rewritten.
  9719. (deleteUsedPiece): Fixed the miss use of STL remove.
  9720. * src/PeerInteraction.h
  9721. (Pieces): Removed.
  9722. (deleteTimeoutRequestSlot): Removed.
  9723. (deleteCompletedRequestSlot): Removed.
  9724. (checkRequestSlot): New function.
  9725. * src/PeerInteraction.cc
  9726. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9727. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9728. (checkRequestSlot): New function.
  9729. * src/DownloadEngine.cc
  9730. (run): Clear activeSockets before calling waitData().
  9731. (waitData): Removed a call to activeSockets.clear().
  9732. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. To attempt to handle EINTR:
  9734. * src/SocketCore.cc
  9735. (isReadable): Added EINTR handling.
  9736. (isWritable): Added EINTR handling.
  9737. To improve the performance:
  9738. * src/AbstractCommand.cc
  9739. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9740. * src/PeerInteractionCommand.h
  9741. (receiveMessage): Renamed as receiveMessages().
  9742. (receiveMessages): New function.
  9743. * src/PeerInteractionCommand.cc
  9744. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9745. () function. detectMessageFlooding() is moved here.
  9746. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9747. (). The flooding detection for have message is comment out.
  9748. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9749. Util::difftv().
  9750. (receiveMessage): Renamed as receiveMessages().
  9751. (receiveMessages): New function.
  9752. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9753. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9754. * src/SleepCommand.cc
  9755. (execute): Use Util::difftvsec() instead of Util::difftv().
  9756. * src/BitfieldMan.h
  9757. (getNthBitIndex): New function.
  9758. (hasMissingPiece): New function.
  9759. (getAllMissingIndexes): New function.
  9760. * src/BitfieldMan.cc
  9761. (countSetBit): Rewritten.
  9762. (getNthBitIndex): New function.
  9763. (getMissingIndexRandomly): Rewritten.
  9764. (hasMissingPiece): New function.
  9765. (getAllMissingIndexes): New function.
  9766. * src/TorrentMan.cc
  9767. (hasMissingPiece): New function.
  9768. (deleteUsedPiece): Rewritten using STL.
  9769. * src/PeerInteraction.cc
  9770. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  9771. is a little bit faster then TorrentMan::getMissingPieceIndex().
  9772. (addRequests): Updated the number of pending requests.
  9773. * src/PeerAbstractCommand.cc
  9774. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9775. (execute): Returns true if TorrentMan::isHalt() is true.
  9776. Corrected the condition of upload limit checking.
  9777. * src/Util.h
  9778. (countBit): New function.
  9779. * src/Util.cc
  9780. (nbits): New variable.
  9781. (countBit): New function.
  9782. * src/DownloadEngine.h
  9783. (SockCmdMap): New type definition.
  9784. (waitData): Added an argument.
  9785. (addSocket): Added an argument.
  9786. (addSocketForReadCheck): Added an argument.
  9787. (addSocketForWriteCheck): Added an argument.
  9788. * src/DownloadEngine.cc
  9789. (run): Executes only commands whose sockets are ready to read or write.
  9790. All commands are executed in every 1 second.
  9791. (waitData): Calls select() again if it returned
  9792. EINTR.
  9793. (addSocket): Saves socket and command object pair to the map.
  9794. (deleteSocket): Deletes socket and command object pair from the map.
  9795. (addSocketForReadCheck): Added an argument.
  9796. (addSocketForWriteCheck): Added an argument.
  9797. * src/DownloadCommand.cc
  9798. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9799. To send "event=stopped" to the tracker when the application finishes:
  9800. * src/PeerChokeCommand.h
  9801. (checkPoint): New variable.
  9802. * src/PeerChokeCommand.cc
  9803. (PeerChokeCommand): Added the initialization of checkPoint.
  9804. (execute): The interval check is now done by checkPoint, not
  9805. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9806. * src/TorrentMan.h
  9807. (halt): New function.
  9808. (hasMissingPiece): New function.
  9809. (isHalt): New function.
  9810. (setHalt): New function.
  9811. * src/TorrentMan.cc
  9812. (TorrentMan): Added the initialization of halt.
  9813. * src/TorrentAutoSaveCommand.h
  9814. (checkPoint): New variable.
  9815. * src/PeerListenCommand.cc
  9816. (execute): Returns true if TorrentMan::isHalt() is true.
  9817. * src/main.cc
  9818. (setSignalHander): Added flags argument.
  9819. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9820. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9821. Removed printDownloadAbortMessage() after torrent downloading loop.
  9822. * src/TorrentAutoSaveCommand.cc
  9823. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9824. (execute): Returns true if TorrentMan::isHalt() is true.
  9825. The interval check is now done by checkPoint, not SleepCommand.
  9826. * src/TrackerWatcherCommand.cc
  9827. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9828. event=stopped.
  9829. * src/TrackerUpdateCommand.cc
  9830. (prepareForRetry): Do not use SleepCommand here.
  9831. (execute): Returns true if TorrentMan::isHalt() is true.
  9832. Others:
  9833. * src/TorrentMan.cc
  9834. (getMissingPieceIndex): Updated log message.
  9835. * src/PeerInteraction.cc
  9836. (createPeerMessag): Updated log message.
  9837. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. To add the ability to download several pieces in mix in a command and
  9839. increase the number of request slots according to request-cancel
  9840. latency:
  9841. * src/PeerInteractionCommand.cc
  9842. (executeInternal): The number of messages to be received at a time
  9843. is increased from 10 to 50.
  9844. * src/LogFactory
  9845. (getInstance): Added NullLogger.
  9846. * src/NullLogger.h: New class.
  9847. * src/BitfieldMan.h
  9848. (getMissingIndex): New function.
  9849. * src/BitfieldMan.cc
  9850. (getMissingIndex): New function.
  9851. * src/TorrentMan.h
  9852. (checkOutPiece): New function.
  9853. (getMissingPieceIndex): New function.
  9854. (getMissingFastPieceIndex): New function.
  9855. (getMissingFastPiece): New function.
  9856. * src/TorrentMan.cc
  9857. (updatePiece): Rewritten using STL.
  9858. (syncPiece): Rewritten using STL.
  9859. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9860. checkOutPiece().
  9861. (getMissingPieceIndex): New function.
  9862. (getMissingFastPieceIndex): New function.
  9863. (getMissingFastPiece): New function.
  9864. (checkOutPiece): New function.
  9865. * src/PeerInteraction.h
  9866. (Pieces): New type definition.
  9867. (piece): Removed.
  9868. (pieces): New variable.
  9869. (getNewPieceAndSendInterest): Added the "piece" argument.
  9870. (abortPiece): Added the "piece" argument.
  9871. (abortAllPieces): New function.
  9872. (isInRequestSlot): New function.
  9873. (hasDownloadPiece): Added the "index" argument.
  9874. (setDownloadPiece): Removed.
  9875. (getDownloadPiece): Added the "index" argument.
  9876. (updatePiece): New function.
  9877. (createRequestMessage): Added the "index" argument.
  9878. * src/PeerInteraction.cc
  9879. (onChoked): Rewritten.
  9880. (abortPiece): Rewirtten.
  9881. (abortAllPieces): New function.
  9882. (deleteTimeoutRequestSlot): Rewritten.
  9883. Clarified code a little bit.
  9884. (deleteCompletedRequestSlot): Rewritten.
  9885. (isInRequestSlot): New function.
  9886. (syncPiece): Rewritten.
  9887. (updatePiece): New function.
  9888. (getNewPieceAndSendInterest): Rewritten.
  9889. (addRequests): Rewritten.
  9890. (getDownloadPiece): Rewritten.
  9891. (hasDownloadPiece): Rewritten.
  9892. (createRequestMessage): Added the "index" argument.
  9893. * src/common.h
  9894. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9895. (DIV_FLOOR): New definition.
  9896. * src/PieceMessage.cc
  9897. (receivedAction): Update request-piece latency here.
  9898. * src/RequestSlot.h
  9899. (getLatencyInMillis): New function.
  9900. * src/RequestSlot.cc
  9901. (isTimeout): Rewritten using getLatencyInMillis.
  9902. (getLatencyInMillis): New function.
  9903. * src/Piece.h
  9904. (operator==): New function.
  9905. (getMissingBlockIndex): New function.
  9906. * src/Piece.cc
  9907. (operator==): New function.
  9908. (getMissingBlockIndex): New function.
  9909. * src/Peer.h
  9910. (DEFAULT_LATENCY): New definition.
  9911. (latency): New variable.
  9912. (updateLatency): New function.
  9913. (getLatency): New function.
  9914. * src/Peer.cc
  9915. (resetStatus): Reset latecy.
  9916. (updateLatency): New function.
  9917. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. * src/SocketCore.cc
  9919. (isReadable): Added secure to the condition.
  9920. * src/HttpConnection.cc
  9921. (receiveResponse): Fixed a bug that causes no response header
  9922. exception.
  9923. * src/Peer.h
  9924. (getFastSet): Fixed the return value type.
  9925. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. To remove a wait from download loop:
  9927. * src/DownloadEngine.cc
  9928. (run): Comment out shortSleep.
  9929. To rewrite the message handling:
  9930. * src/SimplePeerMessage.h: New class.
  9931. * src/SimplePeerMessage.cc: New class.
  9932. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9933. (msg): New variable.
  9934. (create): New function.
  9935. (send): Removed.
  9936. (getMessage): New function.
  9937. (getMessageLength): New function.
  9938. * src/CancelMessage.cc
  9939. (create): New function.
  9940. (receivedAction): Replaced deleteRequestMessageInQueue with
  9941. rejectPieceMessageInQueue.
  9942. (send): Removed.
  9943. (getMessage): New function.
  9944. (getMessageLength): New function.
  9945. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9946. (msg): New variable.
  9947. (msgLength): New variable.
  9948. (~BitfieldMessage): Deleted msg.
  9949. (send): Removed.
  9950. (getMessage): New function.
  9951. (getMessageLength): New function.
  9952. * src/BitfieldMessage.cc
  9953. (create): New function.
  9954. (send): Removed.
  9955. (getMessage): New function.
  9956. (getMessageLength): New function.
  9957. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9958. (msg): New variable.
  9959. (sendPredicate): New function.
  9960. (onSendComplete): New function.
  9961. (send): Removed.
  9962. (getMessage): New function.
  9963. (getMessageLength): New function.
  9964. (create): New function.
  9965. * src/ChokeMessage.cc
  9966. (create): New function.
  9967. (send): Removed.
  9968. (sendPredicate): New function.
  9969. (getMessage): New function.
  9970. (getMessageLength): New function.
  9971. (onSendComplete): New function.
  9972. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9973. (msg): New variable.
  9974. (send): Removed.
  9975. (getMessage): New function.
  9976. (getMessageLength): New function.
  9977. * src/KeepAliveMessage.cc
  9978. (send): Removed.
  9979. (getMessage): New function.
  9980. (getMessageLength): New function.
  9981. * src/PortMessage.h
  9982. (create): New function.
  9983. (receivedAction): Updated log message.
  9984. * src/PortMessage.cc: New file.
  9985. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9986. (msg): New variable.
  9987. (sendPredicate): New function.
  9988. (onSendComplete): New function.
  9989. (create): New function.
  9990. (send): Removed.
  9991. (getMessage): New function.
  9992. (getMessageLength): New function.
  9993. * src/UnchokeMessage.cc
  9994. (create): New function.
  9995. (send): Removed.
  9996. (sendPredicate): New function.
  9997. (getMessage): New function.
  9998. (getMessageLength): New function.
  9999. (onSendComplete): New function.
  10000. * src/PieceMessage.h
  10001. (leftPieceDataLength): Removed.
  10002. (leftDataLength): New variable.
  10003. (headerSend): New variable.
  10004. (pendingCount): New variable.
  10005. (msgHeader): New variable.
  10006. (sendPieceData): New function.
  10007. (incrementPendingCount): New function.
  10008. (isPendingCountMax): New function.
  10009. (create): New function.
  10010. (getMessageHeader): New function.
  10011. (getMessageHeaderLength): New function.
  10012. * src/PieceMessage.cc
  10013. (create): New function.
  10014. (getMessageHeader): New function.
  10015. (getMessageHeaderLength): New function.
  10016. (send): Rewritten.
  10017. (sendPieceData): New function.
  10018. * src/HaveMessage.h: Derived from SimplePeerMessage.
  10019. (msg): New variable.
  10020. (create): New function.
  10021. (getMessage): New function.
  10022. (getMessageLength): New function.
  10023. * src/HaveMessage.cc
  10024. (create): New function.
  10025. (send): Removed.
  10026. (sendPieceData): New function.
  10027. (getMessage): New function.
  10028. (getMessageLength): New function.
  10029. * src/RequestMessage.h: Derived from SimplePeerMessage.
  10030. (msg): New variable.
  10031. (create): New function.
  10032. (send): Removed.
  10033. (getMessage): New function.
  10034. (getMessageLength): New function.
  10035. * src/RequestMessage.cc
  10036. (create): New function.
  10037. (receivedAction): Added the handling of fast extension.
  10038. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  10039. (send): Removed.
  10040. (getMessage): New function.
  10041. (getMessageLength): New function.
  10042. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  10043. (msg): New variable.
  10044. (sendPredicate): New function.
  10045. (onSendComplete): New function.
  10046. (create): New function.
  10047. (getMessage): New function.
  10048. (getMessageLength): New function.
  10049. * src/InterestedMessage.cc
  10050. (create): New function.
  10051. (send): Removed.
  10052. (sendPieceData): New function.
  10053. (getMessage): New function.
  10054. (getMessageLength): New function.
  10055. (onSendComplete): New function.
  10056. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  10057. (msg): New variable.
  10058. (sendPieceData): New function.
  10059. (onSendComplete): New function.
  10060. (create): New function.
  10061. (send): Removed.
  10062. (getMessage): New function.
  10063. (getMessageLength): New function.
  10064. * src/NotInterestedMessage.cc
  10065. (create): New function.
  10066. (send): Removed.
  10067. (sendPredicate): New function.
  10068. (getMessage): New function.
  10069. (getMessageLength): New function.
  10070. (onSendComplete): New function.
  10071. * src/AllowedFastMessage.h: New class.
  10072. * src/AllowedFastMessage.cc: New class.
  10073. * src/RejectMessage.h: New class.
  10074. * src/RejectMessage.cc: New class.
  10075. * src/SuggestPieceMessage.h: New class.
  10076. * src/SuggestPieceMessage.cc: New class.
  10077. * src/HaveAllMessage.h: New class.
  10078. * src/HaveAllMessage.cc: New class.
  10079. * src/HaveNoneMessage.h: New class.
  10080. * src/HaveNoneMessage.cc: New class.
  10081. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  10082. (msg): New variable.
  10083. (reserved): New variable.
  10084. (create): New function.
  10085. (getId): New function.
  10086. (receivedAction): New function.
  10087. (getMessage): New function.
  10088. (getMessageLength): New function.
  10089. (isFastExtensionSupported): New function.
  10090. * src/HandshakeMessage.cc
  10091. (HandshakeMessage): Moved here from HandshakeMessage.h.
  10092. (create): New function.
  10093. (getMessage): New function.
  10094. (getMessageLength): New function.
  10095. (toString): Added the output of reserved field.
  10096. (check): Added const qualifier.
  10097. (isFastExtensionSupported): New function.
  10098. * src/PeerMessageUtil.h
  10099. (createChokeMessage): Removed.
  10100. (createUnchokeMessage): Removed.
  10101. (createInterestedMessage): Removed.
  10102. (createNotInterestedMessage): Removed.
  10103. (createHaveMessage): Removed.
  10104. (createBitfieldMessage): Removed.
  10105. (createRequestMessage): Removed.
  10106. (createCancelMessage): Removed.
  10107. (createPieceMessage): Removed.
  10108. (createPortMessage): Removed.
  10109. (createChokeMessage): Removed.
  10110. (createUnchokeMessage): Removed.
  10111. (createInterestedMessage): Removed.
  10112. (createNotInterestedMessage): Removed.
  10113. (createHaveMessage): Removed.
  10114. (createBitfieldMessage): Removed.
  10115. (createRequestMessage): Removed.
  10116. (createCancelMessage): Removed.
  10117. (createPieceMessage): Removed.
  10118. (createKeepAliveMessage): Removed.
  10119. (createHandshakeMessage): Removed.
  10120. (setIntParam): New function.
  10121. (createPeerMessageString): New function.
  10122. * src/PeerMessageUtil.cc
  10123. (createChokeMessage): Removed.
  10124. (createUnchokeMessage): Removed.
  10125. (createInterestedMessage): Removed.
  10126. (createNotInterestedMessage): Removed.
  10127. (createHaveMessage): Removed.
  10128. (createBitfieldMessage): Removed.
  10129. (createRequestMessage): Removed.
  10130. (createCancelMessage): Removed.
  10131. (createPieceMessage): Removed.
  10132. (createPortMessage): Removed.
  10133. (createRequestMessage): Removed.
  10134. (createCancelMessage): Removed.
  10135. (createPieceMessage): Removed.
  10136. (createHaveMessage): Removed.
  10137. (createChokeMessage): Removed.
  10138. (createUnchokeMessage): Removed.
  10139. (createInterestedMessage): Removed.
  10140. (createNotInterestedMessage): Removed.
  10141. (createBitfieldMessage): Removed.
  10142. (createKeepAliveMessage): Removed.
  10143. (createHandshakeMessage): Removed.
  10144. (setIntParam): New function.
  10145. (createPeerMessageString): New function.
  10146. * src/PeerConnection.h
  10147. (peer): Removed.
  10148. (torrentMan): Removed.
  10149. (createNLengthMessage): Removed.
  10150. (setIntParam): Removed.
  10151. (writeOutgoingMessageLog): Removed all overloaded functions.
  10152. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10153. (sendMessage): New function.
  10154. (sendHandshake): Removed.
  10155. (sendKeepAlive): Removed.
  10156. (sendChoke): Removed.
  10157. (sendUnchoke): Removed.
  10158. (sendInterested): Removed.
  10159. (sendNotInterested): Removed.
  10160. (sendHave): Removed.
  10161. (sendBitfield): Removed.
  10162. (sendRequest): Removed.
  10163. (sendPiece): Removed.
  10164. (sendPieceHeader): Removed.
  10165. (sendPieceData): Removed.
  10166. (sendCancel): Removed.
  10167. (getPeer): Removed.
  10168. * src/PeerConnection.cc
  10169. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10170. (sendHandshake): Removed.
  10171. (sendKeepAlive): Removed.
  10172. (createNLengthMessage): Removed.
  10173. (setIntParam): Removed.
  10174. (writeOutgoingMessageLog): Removed all overloaded functions.
  10175. (sendChoke): Removed.
  10176. (sendUnchoke): Removed.
  10177. (sendInterested): Removed.
  10178. (sendNotInterested): Removed.
  10179. (sendHave): Removed.
  10180. (sendBitfield): Removed.
  10181. (sendRequest): Removed.
  10182. (sendPiece): Removed.
  10183. (sendPieceHeader): Removed.
  10184. (sendPieceData): Removed.
  10185. (sendMessage): New function.
  10186. (sendCancel): Removed.
  10187. * src/PeerInteractionCommand.cc
  10188. (PeerInteractionCommand): Call setUploadLimit.
  10189. (executeInternal): Call setUploadLimit.
  10190. Added the handling of "inProgress" state of handshake message.
  10191. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10192. sendNow().
  10193. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10194. sendNow().
  10195. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10196. * src/TorrentMan.h
  10197. (PEER_ID_LENGTH): New definition.
  10198. (hasAllPieces): New function.
  10199. * src/TorrentMan.cc
  10200. (getMissingPiece): Added the handling of fast extension.
  10201. (cancelPiece): Call updatePiece().
  10202. (hasAllPieces): New function.
  10203. * src/PeerInteraction.h
  10204. (fastSet): New variable.
  10205. (getNewPieceAndSendInterest): Changed the return type to void.
  10206. (send): Renamed as sendMessages.
  10207. (deleteAllRequestSlot): Removed.
  10208. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10209. (cancelAllRequest): Removed all overloaded functions.
  10210. (deleteAllRequestSlot): Removed.
  10211. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10212. (rejectPieceMessageInQueue): New function.
  10213. (rejectAllPieceMessageInQueue): New function.
  10214. (onChoked): New function.
  10215. (isSendingMessageInProgress): New function.
  10216. (getCorrespondingRequestSlot): Changed its arguments.
  10217. (isInFastSet): New function.
  10218. (addFastSetIndex): New function.
  10219. (addRequests): New function.
  10220. (sendNow): Removed.
  10221. (trySendNow): Removed.
  10222. (sendBitfield): New function.
  10223. (sendAllowdFast): New function.
  10224. (createHaveAllMessage): New function.
  10225. (createHaveNoneMessage): New function.
  10226. (createRejectMessage): New function.
  10227. (createAllowedFastMessage): New function.
  10228. * src/PeerInteraction.cc
  10229. (send): Renamed as sendMessages.
  10230. (sendMessages): New function.
  10231. (MsgPushBack): New class.
  10232. (isSendingMessageInProgress): New function.
  10233. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10234. (rejectAllPieceMessageInQueue): New function.
  10235. Added the handling of fast extension.
  10236. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10237. (rejectPieceMessageInQueue): New function.
  10238. Added the handling of fast extension.
  10239. (deleteRequestSlot): Replaced for loop with std::find.
  10240. (onChoked): New function.
  10241. (deleteAllRequestSlot): Removed.
  10242. (abortPiece): Rewirtten.
  10243. (deleteTimeoutRequestSlot): Updated log messages.
  10244. (getCorrespondingRequestSlot): Changed its arguments.
  10245. (cancelAllRequest): Removed all overloaded functions.
  10246. (receiveHandshake): Added the check to see whether an incoming peer
  10247. supports fast extension.
  10248. (createHandshakeMessage): Use HandshakeMessage::create instead of
  10249. PeerMessageUtil.
  10250. (createPeerMessage): Use create() of each message class instead of
  10251. PeerMessageUtil.
  10252. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  10253. AllowedFastMessage were added.
  10254. (getNewPieceAndSendInterest): Changed its return value type to void.
  10255. Added the handling of fast extension.
  10256. (addRequests): New function.
  10257. (sendNow): Removed.
  10258. (sendHandshake): Rewritten.
  10259. (trySendNow): Removed.
  10260. (sendBitfield): New function.
  10261. (sendAllowdFast): New function.
  10262. (isInFastSet): New function.
  10263. (addFastSetIndex): New function.
  10264. (createRequestMessage): Use RequestMessage::create instead of
  10265. PeerMessageUtil.
  10266. (createCancelMessage): Use CancelMessage::create instead of
  10267. PeerMessageUtil.
  10268. (createPieceMessage): Use PieceMessage::create instead of
  10269. PeerMessageUtil.
  10270. (createHaveMessage): Use HaveMessage::create instead of
  10271. PeerMessageUtil.
  10272. (createChokeMessage): Use ChokeMessage::create instead of
  10273. PeerMessageUtil.
  10274. (createUnchokeMessage): Use UnchokeMessage::create instead of
  10275. PeerMessageUtil.
  10276. (createInterestedMessage): Use InterestedMessage::create instead of
  10277. PeerMessageUtil.
  10278. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  10279. of PeerMessageUtil.
  10280. (createBitfieldMessage): Use BitfieldMessage::create instead of
  10281. PeerMessageUtil.
  10282. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  10283. PeerMessageUtil.
  10284. (createHaveAllMessage): New function.
  10285. (createHaveNoneMessage): New function.
  10286. (createRejectMessage): New function.
  10287. (createAllowedFastMessage: New function.
  10288. * src/Util.h
  10289. (sha1Sum): New function.
  10290. (computeFastSet): New function.
  10291. * src/Util.cc
  10292. (sha1Sum): New function.
  10293. (computeFastSet): New function.
  10294. * src/Peer.h
  10295. (fastExtensionEnabled): New variable.
  10296. (fastSet): New variable.
  10297. (setAllBitfield): New function.
  10298. (setFastExtensionEnabled): New function.
  10299. (isFastExtensionEnabled): New function.
  10300. (addFastSetIndex): New function.
  10301. (getFastSet): New function.
  10302. (isInFastSet): New function.
  10303. (countFastSet): New function.
  10304. * src/Peer.cc
  10305. (isInFastSet): New function.
  10306. (addFastSetIndex): New function.
  10307. (setAllBitfield): New function.
  10308. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  10309. sockets.
  10310. * src/PeerAbstractCommand.cc
  10311. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  10312. and uploadLimit.
  10313. (execute): Changed the procedure of checking sockets. The upload speed
  10314. checking were added.
  10315. (setUploadLimit): New function.
  10316. (setUploadLimitCheck): New function.
  10317. * src/PeerAbstractCommand.h
  10318. (setUploadLimit): New function.
  10319. (setUploadLimitCheck): New function.
  10320. (uploadLimit): New variable.
  10321. (uploadLimitCheck): New variable.
  10322. To contact a tracker regularly:
  10323. * src/TrackerWatcherCommand.h (interval): New variable.
  10324. (checkPoint): New variable.
  10325. (TrackerWatcherCommand): Added interval argument.
  10326. * src/TrackerWatcherCommand.cc
  10327. (TrackerWatcherCommand): Initialized checkPoint.
  10328. (execute): Now a tracker is contacted in every specified period.
  10329. If peer list is not needed, send request with numwant=0.
  10330. * src/TrackerUpdateCommand.cc
  10331. (execute): Updated log messages.
  10332. * src/DownloadEngine.cc
  10333. (~DownloadEngine): Removed two asserts.
  10334. (waitData): Uncommented wfds. May be a bug fix.
  10335. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10336. * src/PeerInteractionCommand.h
  10337. (checkInactiveConnection): Removed.
  10338. * src/PeerInteractionCommand.cc
  10339. (executeInternal): Removed following function calls:
  10340. detectMessageFlooding(), checkLongTimePeerChoking and
  10341. checkInactiveConnection().
  10342. (checkInactiveConnection): Removed.
  10343. (detectMessageFlooding): Removed function call to
  10344. checkInactiveConnection().
  10345. * src/PeerMessageUtil.h
  10346. (createChokeMessage): New function. Overload.
  10347. (createUnchokeMessage): New function. Overload.
  10348. (createInterestedMessage): New function. Overload.
  10349. (createNotInterestedMessage): New function. Overload.
  10350. (createHaveMessage): New function. Overload.
  10351. (createBitfieldMessage): New function. Overload.
  10352. (createRequestMessage): New function. Overload.
  10353. (createCancelMessage): New function. Overload.
  10354. (createPieceMessage): New function. Overload.
  10355. (createKeepAliveMessage): New function. Overload.
  10356. * src/PeerMessageUtil.cc
  10357. (createChokeMessage): New function. Overload.
  10358. (createUnchokeMessage): New function. Overload.
  10359. (createInterestedMessage): New function. Overload.
  10360. (createNotInterestedMessage): New function. Overload.
  10361. (createHaveMessage): New function. Overload.
  10362. (createBitfieldMessage): New function. Overload.
  10363. (createRequestMessage): New function. Overload.
  10364. (createCancelMessage): New function. Overload.
  10365. (createPieceMessage): New function. Overload.
  10366. (createKeepAliveMessage): New function. Overload.
  10367. * src/SendMessageQueue.cc
  10368. (createRequestMessage): Use PeerMessageUtil.
  10369. (createCancelMessage): Use PeerMessageUtil.
  10370. (createPieceMessage): Use PeerMessageUtil.
  10371. (createHaveMessage): Use PeerMessageUtil.
  10372. (createChokeMessage): Use PeerMessageUtil.
  10373. (createUnchokeMessage): Use PeerMessageUtil.
  10374. (createInterestedMessage): Use PeerMessageUtil.
  10375. (createNotInterestedMessage): Use PeerMessageUtil.
  10376. (createBitfieldMessage): Use PeerMessageUtil.
  10377. (createKeepAliveMessage): Use PeerMessageUtil.
  10378. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  10379. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  10380. * src/PeerInteraction.h: New class.
  10381. * src/PeerInteraction.cc: New class.
  10382. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Each peer message has its own class.
  10384. * src/PendingMessages.h: Removed.
  10385. * src/PendingMessages.cc: Removed. The sending process was moved to
  10386. each message class.
  10387. * src/RequestSlotMan.h: Removed.
  10388. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  10389. SendMessageQueue.
  10390. * src/RequestMessage.h: New class.
  10391. * src/RequestMessage.cc: New class.
  10392. * src/CancelMessage.h: New class.
  10393. * src/CancelMessage.cc: New class.
  10394. * src/BitfieldMessage.h: New class.
  10395. * src/BitfieldMessage.cc: New class.
  10396. * src/ChokeMessage.h: New class.
  10397. * src/ChokeMessage.cc: New class.
  10398. * src/KeepAliveMessage.h: New class.
  10399. * src/KeepAliveMessage.cc: New class.
  10400. * src/PortMessage.h: New class.
  10401. * src/UnchokeMessage.h: New class.
  10402. * src/UnchokeMessage.cc: New class.
  10403. * src/PieceMessage.h: New class.
  10404. * src/PieceMessage.cc: New class.
  10405. * src/HaveMessage.h: New class.
  10406. * src/HaveMessage.cc: New class.
  10407. * src/BitfieldMessage.h: New class.
  10408. * src/BitfieldMessage.cc: New class.
  10409. * src/NotInterestedMessage.h: New class.
  10410. * src/NotInterestedMessage.cc: New class.
  10411. * src/InterestedMessage.h: New class.
  10412. * src/InterestedMessage.cc: New class.
  10413. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  10414. (getSendMessageQueue): New function.
  10415. (setSendMessageQueue): New function.
  10416. * src/HandshakeMessage.cc: New class.
  10417. * src/PeerConnection.h (receiveMessage): Changed return value and
  10418. arguments.
  10419. (receiveHandshake): Changed return value and arguments.
  10420. * src/PeerConnection.cc (receiveMessage): Do not create message class
  10421. here.
  10422. (receiveHandshake): Do not create handshake class here.
  10423. * src/PeerInteractionCommand.h (peerConnection): Removed.
  10424. (piece): Removed.
  10425. (syncPiece): Removed.
  10426. (sendInterest): Removed.
  10427. (sendMessages): Removed.
  10428. (createRequestPendingMessage): Removed.
  10429. (checkPieceHash): Removed.
  10430. (erasePieceOnDisk): Removed.
  10431. (getNewPieceAndSendInterest): Removed.
  10432. (onGotNewPice): Removed.
  10433. (onGotWrongPiece): Removed.
  10434. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10435. Removed peerConnection, piece.
  10436. (~PeerInteractionCommand): Removed peerConnection.
  10437. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10438. (syncPiece): Moved to SendMessageQueue.
  10439. (decideChoking): Removed PendingMessage.
  10440. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10441. The action after receiving peer message was moved to each message
  10442. class.
  10443. (onGotNewPice): Moved to SendMessageQueue.
  10444. (onGotWrongPiece): Moved to SendMessageQueue.
  10445. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10446. (sendInterest): Moved to SendMessageQueue.
  10447. (createRequestPendingMessage): Removed.
  10448. (sendMessages): Moved to SendMessageQueue.
  10449. (onAbort): Use SendMessageQueue::abortPiece()
  10450. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10451. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10452. (checkPieceHash): Moved to SendMessageQueue.
  10453. (erasePieceOnDisk): Moved to SendMessageQueue.
  10454. * src/PeerMessageUtil.h
  10455. (createBitfieldMessage): Removed.
  10456. (createHaveMessage): Changed return value and arguments.
  10457. (createBitfieldMessage): Changed return value and arguments.
  10458. (createRequestCancelMessage): Removed.
  10459. (createPieceMessage): Changed return value and arguments.
  10460. (getShortIntParam): New function.
  10461. (checkIndex): Changed arguments.
  10462. (checkBegin): Changed arguments.
  10463. (checkLength): Changed arguments.
  10464. (checkPieceOffset): Removed.
  10465. (checkRange): New function.
  10466. (checkBitfield): Changed arguments.
  10467. (createPeerMessage): Removed.
  10468. (checkIntegrity): Removed.
  10469. (createHandshakeMessage): Changed arguments.
  10470. (createChokeMessage): New function.
  10471. (createUnchokeMessage): New function.
  10472. (createInterestedMessage): New function.
  10473. (createNotInterestedMessage): New function.
  10474. (createRequestMessage): New function.
  10475. (createCancelMessage): New function.
  10476. (createPortMessage): New function.
  10477. * src/PeerMessageUtil.cc
  10478. (createBitfieldMessage): Removed.
  10479. (createHaveMessage): Changed return value and arguments.
  10480. (createBitfieldMessage): Changed return value and arguments.
  10481. (createRequestCancelMessage): Removed.
  10482. (createPieceMessage): Changed return value and arguments.
  10483. (getShortIntParam): New function.
  10484. (checkIndex): Changed arguments.
  10485. (checkBegin): Changed arguments.
  10486. (checkLength): Changed arguments.
  10487. (checkPieceOffset): Removed.
  10488. (checkRange): New function.
  10489. (checkBitfield): Changed arguments.
  10490. (createPeerMessage): Removed.
  10491. (checkIntegrity): Removed.
  10492. (createHandshakeMessage): Changed arguments.
  10493. (createChokeMessage): New function.
  10494. (createUnchokeMessage): New function.
  10495. (createInterestedMessage): New function.
  10496. (createNotInterestedMessage): New function.
  10497. (createRequestMessage): New function.
  10498. (createCancelMessage): New function.
  10499. (createPortMessage): New function.
  10500. * src/PeerMessage.h
  10501. (id): Removed.
  10502. (index): Removed.
  10503. (begin): Removed.
  10504. (length): Removed.
  10505. (bitfield): Removed.
  10506. (bitfieldLength): Removed.
  10507. (block): Removed.
  10508. (blockLength): Removed.
  10509. (inProgress): New variable.
  10510. (cuid): New variable.
  10511. (peer): New variable.
  10512. (sendMessageQueue): New variable.
  10513. (logger): New variable.
  10514. (setBitfield): Removed.
  10515. (getBitfield): Removed.
  10516. (setBlock): Removed.
  10517. (getBlock): Removed.
  10518. (getBitfieldLength): Removed.
  10519. (getBlockLength): Removed.
  10520. (isInProgress): New function.
  10521. (toString): Made pure virtual.
  10522. (check): New function.
  10523. (send): New function.
  10524. (receivedAction): New function.
  10525. (getId): Made pure virtual.
  10526. (setId): Removed.
  10527. (getIndex): Removed.
  10528. (setIndex): Removed.
  10529. (getBegin): Removed.
  10530. (setBegin): Removed.
  10531. (getLength): Removed.
  10532. (setLength): Removed.
  10533. (getCuid): New function.
  10534. (setCuid): New function.
  10535. (getPeer): New function.
  10536. (setPeer): New function.
  10537. (getSendMessageQueue): New function.
  10538. (setSendMessageQueue): New function.
  10539. (ID): Removed.
  10540. * src/PeerMessage.cc
  10541. (setBitfield): Removed.
  10542. (setBlock): Removed.
  10543. (toString): Removed.
  10544. * src/TorrentMan.h
  10545. (getPieceLength): New function.
  10546. (getPieceLength): New function.
  10547. * src/SendMessageQueue.h
  10548. (REQUEST_TIME_OUT): New definition.
  10549. (RequestSlots): New definition.
  10550. (MessageQueue): New definition.
  10551. (requestSlotMan): Removed.
  10552. (pendingMessages): Removed.
  10553. (requestSlots): New variable.
  10554. (messageQueue): New variable.
  10555. (torrentMan): New variable.
  10556. (peerConnection): New variable.
  10557. (peer): New variable.
  10558. (piece): New variable.
  10559. (getNewPieceAndSendInterest): New function.
  10560. (createPeerMessage): New function.
  10561. (createHandshakeMessage): New function.
  10562. (send): Made private.
  10563. (setPeerMessageCommonProperty): New function.
  10564. (deleteAllRequestSlot): New function.
  10565. (deleteRequestMessageInQueue): New function.
  10566. (cancelAllRequest): Made private.
  10567. (cancelAllRequest): Made private.
  10568. (countRequestSlot): Made private.
  10569. (addPendingMessage): Removed.
  10570. (deletePendingPieceMessage): Removed.
  10571. (deletePendingRequestMessage): Removed.
  10572. (addMessage): New function.
  10573. (deletePieceMessageInQueue): New function.
  10574. (deleteTimeoutRequestSlot): Changed argument.
  10575. (deleteCompletedRequestSlot): Changed argument.
  10576. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10577. (getCorrespondingRequestSlot): New function.
  10578. (countPendingMessage): Removed.
  10579. (countMessageInQueue): New function.
  10580. (getTorrentMan): New function.
  10581. (getPeerConnection): New function.
  10582. (hasDownloadPiece): New function.
  10583. (getDownloadPiece): New function.
  10584. (setDownloadPiece): New function.
  10585. (syncPiece): New function.
  10586. (sendMessages): New function.
  10587. (sendNow): New function.
  10588. (trySendNow): New function.
  10589. (abortPiece): New function.
  10590. (sendHandshake): New function.
  10591. (receiveMessage): New function.
  10592. (receiveHandshake): New function.
  10593. (createRequestMessage): New function.
  10594. (createCancelMessage): New function.
  10595. (createPieceMessage): New function.
  10596. (createHaveMessage): New function.
  10597. (createChokeMessage): New function.
  10598. (createUnchokeMessage): New function.
  10599. (createInterestedMessage): New function.
  10600. (createNotInterestedMessage): New function.
  10601. (createBitfieldMessage): New function.
  10602. (createKeepAliveMessage): New function.
  10603. * src/SendMessageQueue.cc
  10604. (SendMessageQueue): Removed requestSlotMan.
  10605. Instantiated peerConnection here.
  10606. (~SendMessageQueue): Removed requestSlotMan.
  10607. Added deletion of peerConnection and the contents of messageQueue.
  10608. (send): Updated according to the change of messageQueue.
  10609. (addPendingMessage): Renamed to addMessage.
  10610. (addMessage): New function.
  10611. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10612. (deletePieceMessageInQueue): New function.
  10613. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10614. (deleteRequestMessageInQueue): New function.
  10615. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10616. here.
  10617. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10618. (...) was moved here.
  10619. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10620. moved here.
  10621. (deleteCompletedRequestSlot):
  10622. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10623. (getCorrespondingRequestSlot):
  10624. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10625. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10626. (countPendingMessage): Renamed to countMessageInQueue.
  10627. (countMessageInQueue): New function.
  10628. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10629. (receiveHandshake): New function.
  10630. (createHandshakeMessage): New function.
  10631. (receiveMessage): New function.
  10632. (createPeerMessage): New function.
  10633. (syncPiece): New function.
  10634. (getNewPieceAndSendInterest): New function.
  10635. (sendMessages): New function.
  10636. (sendNow): New function.
  10637. (trySendNow): New function.
  10638. (sendHandshake): New function.
  10639. (abortPiece): New function.
  10640. (getDownloadPiece): New function.
  10641. (getPeerMessageCommonProperty): New function.
  10642. (createRequestMessage): New function.
  10643. (createCancelMessage): New function.
  10644. (createPieceMessage): New function.
  10645. (createHaveMessage): New function.
  10646. (createChokeMessage): New function.
  10647. (createUnchokeMessage): New function.
  10648. (createInterestedMessage): New function.
  10649. (createNotInterestedMessage): New function.
  10650. (createBitfieldMessage): New function.
  10651. (createKeepAliveMessage): New function.
  10652. To add simple Content-Disposition support:
  10653. * src/HttpResponseCommand.h (determinFilename): New function.
  10654. * src/HttpResponseCommand.cc (executeInternal):
  10655. Use determinFilename(headers) instead of req->getFile() when comparing
  10656. filename.
  10657. (determinFilename): New function.
  10658. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10659. req->getFile().
  10660. (handleOtherEncoding): Use determinFilename(headers) instead of
  10661. req->getFile().
  10662. * src/Util.h (getContentDispositionFilename): New function.
  10663. * src/Util.cc (getContentDispositionFilename): New function.
  10664. * src/LogFactory.h (release): New function.
  10665. * src/LogFactory.cc (release): New function.
  10666. To fix a bug that causes out-of-bound exception when HTTP status
  10667. line is wrong:
  10668. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10669. size.
  10670. * src/common.h (Deleter): New class.
  10671. * src/SegmentMan.cc
  10672. (~SegmentMan): Added deletion of splitter and diskWriter.
  10673. * src/DownloadEngine.h
  10674. (Commands): Use deque.
  10675. (clearQueue): New function.
  10676. * src/DownloadEngine.cc
  10677. (~DownloadEngine): Added deletion of segmentMan.
  10678. (cleanQueue): New function.
  10679. * src/TorrentDownloadEngine.h
  10680. (TorrentDownloadEngine): The implementation was moved to
  10681. TorrentDownloadEngine.cc.
  10682. (~TorrentDownloadEngine): The implementation was moved to
  10683. TorrentDownloadEngine.cc.
  10684. * src/TorrentDownloadEngine.cc
  10685. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10686. * src/main.cc
  10687. (clearRequest): Removed.
  10688. (handler): Added deletion of e.
  10689. (torrentHandler): Added deletion of te.
  10690. (main): Do not share splitter.
  10691. Use Deleter instead of clearRequest.
  10692. Deletion of classes were updated.
  10693. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10694. * src/main.cc (main): Fixed typo.
  10695. * src/message.h: Fixed typo.
  10696. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10697. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. To add --select-file command-line option:
  10699. * src/Util.cc
  10700. (unfoldRange): New function.
  10701. (getNum): New function.
  10702. (unfoldSubRange): New function
  10703. * src/main.cc
  10704. (showUsage): Added help message.
  10705. (main): Added --select-file command-line option. Updated the layout of
  10706. file listing.
  10707. * src/common.h
  10708. (Integers): New definition.
  10709. * src/SocketCore.cc
  10710. (writeData): Removed timeout argument.
  10711. (readData): Removed timeout argument.
  10712. (peekData): Removed timeout argument.
  10713. * src/Socket.cc
  10714. (writeData): Removed timeout argument.
  10715. (readData): Removed timeout argument.
  10716. (peekData): Removed timeout argument.
  10717. * Release 0.4.1
  10718. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10719. To deploy upload rate based choking algorithm:
  10720. * src/PeerInteractionCommand.cc
  10721. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10722. peer currently used.
  10723. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10724. download completes. Simplified.
  10725. (receiveMessage): Updated.
  10726. * src/TorrentMan.h
  10727. (activePeers): New variable.
  10728. (addActivePeer): New function.
  10729. (getActivePeers): New function.
  10730. (deleteActivePeer): New function.
  10731. * src/TorrentMan.cc
  10732. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10733. * src/PeerAbstractCommand.cc
  10734. (onAbort): Use peer->resetStatus().
  10735. * src/main.cc
  10736. (PeerChokeCommand.h): Included.
  10737. (main): Added the instance of ChokingCommand to the command queue.
  10738. * src/Peer.h
  10739. (amChoking): Renamed from amChocking
  10740. (chokingRequired): New variable.
  10741. (optUnchoking): New variable.
  10742. (deltaUpload): New variable.
  10743. (deltaDownload): New variable.
  10744. (addDeltaUpload): New function.
  10745. (resetDeltaUpload): New function.
  10746. (addDeltaDownload): New function.
  10747. (resetDeltaDownload): New function.
  10748. (addPeerUpload): Added a call to addDeltaUpload.
  10749. (addPeerDownload): Added a call to addDeltaDownload.
  10750. * src/Peer.cc
  10751. (shouldBeChoking): Renamed from shouldChoke.
  10752. (resetStatus): New function.
  10753. * src/PeerChokeCommand.h: New class.
  10754. * src/PeerChokeCommand.cc: New class.
  10755. To add lazy upload speed limiter:
  10756. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  10757. statistics calculation to TorrentDownloadEngine.
  10758. * src/TorrentConsoleDownloadEngine.cc
  10759. (sendStatistics): Renamed from printStatistics.
  10760. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  10761. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  10762. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  10763. * src/TorrentDownloadEngine.h: Added the variables for statistics
  10764. calculation.
  10765. (sendStatistics): New function as pure virtual function.
  10766. (getUploadSpeed): New function.
  10767. * src/TorrentDownloadEngine.cc
  10768. (initStatistics): New function.
  10769. (calculateSpeed): New function.
  10770. (calculateStatistics): New function.
  10771. * src/SendMessageQueue.h
  10772. (uploadLength): New variable.
  10773. (send): Added an argument.
  10774. (setUploadLimit): New function.
  10775. (getUploadLimit): New function.
  10776. * src/SendMessageQueue.cc
  10777. (send): Added upload speed limiter.
  10778. * src/prefs.h
  10779. (PREF_UPLOAD_LIMIT): New definition.
  10780. * src/PeerInteractionCommand.cc
  10781. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10782. * src/main.cc
  10783. (main): Added --upload-limit option
  10784. For bug fixes:
  10785. * src/main.cc
  10786. (showUsage): Corrected --listen-port help
  10787. Other changes:
  10788. * src/TorrentMan.cc
  10789. (getPeer): Return nullPeer if connection is grather than
  10790. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10791. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. To add some useful information to the exception message:
  10793. * src/SocketCore.cc : Updated messages.
  10794. * src/SegmentMan.cc :
  10795. * src/TorrentMan.cc : Updated messages.
  10796. * src/MultiDiskWriter.cc : Updated messages.
  10797. * src/Util.cc : Updated messages.
  10798. * src/AbstractDiskWriter.cc : Updated messages.
  10799. * src/PreAllocationDiskWriter.cc : Updated messages.
  10800. * src/message.cc : Added new messages. Updated some messages.
  10801. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10802. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10803. Updated threshold from 30 to 15.
  10804. * src/AbstractDiskWriter.h (filename): New variable.
  10805. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10806. (createFile): Assigned filename.
  10807. * src/main.cc: Updated the help message for http-auth-scheme.
  10808. * Release 0.4.0
  10809. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10810. To add TrackerUpdateCommand with which replaces
  10811. CompactTrackerResponseProcessor:
  10812. * src/TrackerWatcherCommand.h (req): Removed.
  10813. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10814. if the number of peer connections are less than 30.
  10815. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10816. * src/SegmentMan.h (diskWriter): New function.
  10817. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10818. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10819. (main): Use TrackerUpdateCommand.
  10820. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10821. (req): New variable.
  10822. (setTrackerResponseProcessor): Removed.
  10823. (getTrackerResponseProcessor): Removed.
  10824. (processTrackerResponse): Removed.
  10825. * src/DownloadEngine.h (diskWriter): Removed.
  10826. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10827. to torrentMan->processTrackerResponse().
  10828. To add Util::expandBuffer:
  10829. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10830. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10831. * src/Util.h (expandBuffer): New function.
  10832. To fix the bug that causes segmentation fault when "-l ." is specified
  10833. in command-line option:
  10834. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10835. (openFile): New function.
  10836. (closeFile): New function.
  10837. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10838. (~SimpleLogger): Call closeFile();
  10839. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10840. * src/main.cc (main): Added a check to see logger is configured
  10841. properly.
  10842. To enable HTTP authentication without specifying "--http-auth-scheme"
  10843. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10844. * src/HttpConnection.cc (createRequest): Send Authorization header
  10845. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10846. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10847. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10848. * src/Peer.cc (shouldChoke): Updated algorithm.
  10849. * src/message.h (EX_AUTH_FAILED): New definition.
  10850. (EX_FILE_OPEN): New definition.
  10851. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10852. if status == 401.
  10853. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10854. if req->isTorrent == true.
  10855. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10856. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10857. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10858. (createFile): Updated message.
  10859. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10860. To add a readout of estimated remaining time to normal HTTP/FTP
  10861. downloads:
  10862. * src/ConsoleDownloadEngine.h (startup): New variable.
  10863. (startupLength): New variable.
  10864. (isStartupLengthSet): New variable.
  10865. (avgSpeed): New variable.
  10866. (eta): New variable.
  10867. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10868. estimated remaining time.
  10869. (initStatistics): Initialized newly added variables.
  10870. (calculateStatistics): Calculate average speed and estimated remaining
  10871. time.
  10872. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10873. * src/TrackerDownloadCommand.h: Removed.
  10874. * src/TrackerDownloadCommand.cc: Removed.
  10875. * src/TrackerInitCommand.h: Removed.
  10876. * src/TrackerInitCommand.cc: Removed.
  10877. * src/TrackerUpdateCommand.h: Removed.
  10878. * src/TrackerUpdateCommand.cc: Removed.
  10879. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10880. url written in TrackerInitCommand was moved here. Do not create
  10881. tracker request command if torrentMan->trackers != 0.
  10882. * src/CompactTrackerResponseProcessor.h: New class.
  10883. * src/CompactTrackerResponseProcessor.cc: New class.
  10884. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10885. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10886. Decoupled TorrentDownloadEngine from this.
  10887. * src/SegmentMan.h (init): New function.
  10888. * src/SegmentMan.cc (init): New function.
  10889. * src/TorrentMan.h (responseProcessor): New variable.
  10890. (trackers): New variable.
  10891. (setTrackerResponseProcessor): New function.
  10892. (getTrackerResponseProcessor): New function.
  10893. (processTrackerResponse): New function.
  10894. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10895. (processTrackerResponse): New function.
  10896. * src/main.cc (main): Use ByteArrayDiskWriter and
  10897. CompactTrackerResponseProcessor.
  10898. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10899. processTrackerResponse().
  10900. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10901. readout.
  10902. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10903. which indicates download has completed.
  10904. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10905. (closeFile): fd >= 0, not fd > 0
  10906. * src/main.cc (main): Added short cut for show-files.
  10907. Added short cut for torrent-file.
  10908. Added new command-line option listen-port.
  10909. Updated i18n messages.
  10910. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10911. To add LogFactory which creates singleton logger:
  10912. * src/LogFactory.h: New class.
  10913. * src/LogFactory.cc: New class.
  10914. * src/Command.h (logger): New variable.
  10915. (Constructor): Use LogFactory.
  10916. * src/AbstractCommand.cc: Use Command::logger
  10917. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10918. Use LogFactory.
  10919. * src/SegmentSplitter.h : Made logger protected.
  10920. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10921. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10922. * src/DownloadEngine.h : Made logger protected.
  10923. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10924. * src/PeerInteractionCommand.cc : Use Command::logger.
  10925. * src/HttpResponseCommand.cc : Use Command::logger.
  10926. * src/SegmentMan.h : Made logger private.
  10927. * src/TorrentMan.h : Made logger private.
  10928. * src/TorrentMan.cc : Use LogFactory.
  10929. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10930. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10931. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10932. Use LogFactory.
  10933. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10934. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10935. Use LogFactory.
  10936. * src/DownloadCommand.cc : Use Command::logger.
  10937. * src/PeerAbstractCommand.cc : Use Command::logger.
  10938. * src/PeerListenCommand.cc : Use Command::logger.
  10939. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10940. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10941. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10942. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10943. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10944. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10945. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10946. Use LogFactory.
  10947. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10948. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10949. Use LogFactory.
  10950. * src/main.cc (main): Use LogFactory.
  10951. * src/DiskAdaptor.h (logger): New variable.
  10952. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10953. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10954. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10955. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10956. parameter to a tracker request.
  10957. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10958. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10959. * src/main.cc (setSignalHander): New function.
  10960. (main): Added a handler for SIGTERM.
  10961. (handler): Updated message.
  10962. (torrentHandler): Updated message.
  10963. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. * src/TorrentConsoleDownloadEngine.cc
  10965. (onPartialDownloadingCompletes): Renamed as
  10966. onSelectiveDownloadingCompletes.
  10967. (onSelectiveDownloadingCompletes): Updated message.
  10968. To add DiskAdaptor which abstract DiskWriter family:
  10969. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10970. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10971. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10972. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10973. MultiDiskAdaptor.h.
  10974. (readFileEntry): Changed its arguments.
  10975. (setup): setupDiskWriter is merged into this function.
  10976. (setupDiskWriter): Removed.
  10977. (setFileFilter): New function.
  10978. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10979. made in readFileEntry.
  10980. (getFilePath): Removed.
  10981. (getTempFilePath): Removed.
  10982. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10983. (fixFilename): Removed.
  10984. (copySingleFile): Removed.
  10985. (splitMultiFile): Removed.
  10986. (deleteTempFile): Removed.
  10987. (setFileEntriesToDownload): Removed.
  10988. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10989. (isSelectiveDownloadingMode): New function.
  10990. (setAllMultiFileRequestedState): Removed.
  10991. (finishPartialDownloadingMode): Renamed as
  10992. finishSelectiveDownloadingMode.
  10993. (finishSelectiveDownloadingMode): New function.
  10994. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10995. (getSelectedTotalLength): New function.
  10996. (onDownloadComplete): Use diskAdaptor.
  10997. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10998. (Range): Removed.
  10999. (setMultiFileEntries): Renamed as setFileEntries.
  11000. (setFileEntries): New function.
  11001. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  11002. (pieceLength): New variable.
  11003. * src/main.cc (printDownloadCompeleteMessage): New function.
  11004. (torrentHandler): Use diskAdaptor instead of diskWriter.
  11005. (main): Renamed torrent-show-files to show-files.
  11006. Rewritten file contents listing.
  11007. * src/TorrentMan.h (FileEntry): Removed.
  11008. (multiFileTopDir): Removed.
  11009. (multiFileEntries): Removed.
  11010. (diskWriter): Removed.
  11011. (diskAdaptor): New variable.
  11012. * src/DefaultDiskWriter.h (totalLength): New variable.
  11013. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  11014. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  11015. diskWriter.
  11016. * src/TorrentConsoleDownloadEngine.h
  11017. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  11018. (partialTotalLength): Renamed as selectedTotalLength.
  11019. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  11020. openExistingFile, otherwise call initAndOpenFile.
  11021. (closeFile): fd > 0, not fd != 0.
  11022. * src/DirectDiskAdaptor.h: New class.
  11023. * src/DirectDiskAdaptor.cc: New class.
  11024. * src/MultiDiskAdaptor.h: New class.
  11025. * src/MultiDiskAdaptor.cc: New class.
  11026. * src/CopyDiskAdaptor.h: New class.
  11027. * src/CopyDiskAdaptor.cc: New class.
  11028. * src/DiskAdaptor.h: New class.
  11029. * src/DiskAdaptor.cc: New class.
  11030. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  11031. (PREF_SHOW_FILES): New definition.
  11032. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11033. To add the ability to download multi torrent into respective files
  11034. directly:
  11035. * src/DiskWriter.h (openFile): New function.
  11036. (seek): Removed.
  11037. * src/MultiDiskWriter.h: New class.
  11038. * src/MultiDiskWriter.cc: New class.
  11039. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  11040. protected.
  11041. (openFile): New function.
  11042. * src/AbstractDiskWriter.cc (openFile): New function.
  11043. * src/prefs.h (V_FALSE): New definition.
  11044. (PREF_DIRECT_FILE_MAPPING): New definition.
  11045. * src/TorrentMan.h (setupDiskWriter): New function.
  11046. (setAllMultiFileRequestedState): New function.
  11047. (onDownloadComplete): New function.
  11048. * src/TorrentMan.cc : Included MultiDiskWriter.h
  11049. (setupDiskWriter): New function.
  11050. (getFilePath): Updated.
  11051. (getTempFilePath): Updated.
  11052. (getSegmentFilePath): Updated.
  11053. (fixFilename): Updated.
  11054. (deleteTempFile): Updated.
  11055. (setAllMultiFileRequestedState): New function.
  11056. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  11057. (finishPartialDownloadingMode): Reset requested flags.
  11058. (onDownloadComplete): New function.
  11059. * src/main.cc: Added --direct-file-mapping option.
  11060. Use TorrentMan::setupDiskWriter().
  11061. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  11062. onDownloadComplete().
  11063. To fix ETA bug:
  11064. * src/Util.h (difftvsec): New function.
  11065. * src/Util.cc (difftvsec): New function.
  11066. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  11067. type of "elapsed" instead of long long int.
  11068. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  11069. The updates of statistics takes place every 1 seconds.
  11070. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  11071. (calculateSpeed): Changed its argument signature.
  11072. * src/PeerMessage.cc (toString): Fixed message.
  11073. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. To print ETA:
  11075. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  11076. completion handling when dealing with
  11077. TorrentMan::isPartialDownloadingMode() == true.
  11078. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  11079. New function.
  11080. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  11081. (sessionDownloadLength): New variable.
  11082. (avgSpeed): New variable.
  11083. (eta): New variable.
  11084. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  11085. new variables: eta, avgSpeed, startup.
  11086. (calculateSpeed): Calculate average speed and ETA.
  11087. (printStatistics): Added ETA.
  11088. * src/Util.h (secfmt): New function.
  11089. * src/Util.cc (secfmt): New function.
  11090. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. To detect "keep alive" flooding:
  11092. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  11093. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  11094. variable: keepAliveCount.
  11095. (detectMessageFlooding): Added "keep alive" flooding detection.
  11096. (receiveMessage): Increase keepAliveCount when "keep alive" message
  11097. received.
  11098. To add the ability to download only specified files in multi-file
  11099. torrent:
  11100. * src/BitfieldMan.h (filterBitfield): New variable.
  11101. (filterEnabled): New variable.
  11102. (setFilterBit): New function.
  11103. (enableFilter): New function.
  11104. (disableFilter): New function.
  11105. (isFilterEnabled): New function.
  11106. (getFilteredTotalLength): New function.
  11107. (getCompletedLength): New function.
  11108. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  11109. filterBitfield, filterEnabled.
  11110. (CopyConstructor): Added filterBitfield and filterEnabled.
  11111. (operator==): Added filterBitfield and filterEnabled.
  11112. (Destructor): Added filterBitfield.
  11113. (getMissingIndex): Use filterBitfield.
  11114. (getMissingUnusedIndex): Use filterBitfield.
  11115. (getFirstMissingUnusedIndex): Use filterBitfield.
  11116. (getFirstMissingUnusedIndex): Use filterBitfield.
  11117. (getAllMissingIndexes): Use filterBitfield.
  11118. (countMissingBlock): Use filterBitfield.
  11119. (countBlock): Use filterBitfield.
  11120. (setBitInternal): Added new argument on.
  11121. (setUseBit): Use setBitInternal.
  11122. (unsetUseBit): Use setBitInternal.
  11123. (setBit): Use setBitInternal.
  11124. (unsetBit): Use setBitInternal.
  11125. (isAllBitSet): Use filterBitfield.
  11126. (setFilterBit): New function.
  11127. (addFilter): New function.
  11128. (enableFilter): New function.
  11129. (disableFilter): New function.
  11130. (clearFilter): New function.
  11131. (isFilterEnabled): New function.
  11132. (getFilteredTotalLength): New function.
  11133. (getCompletedLength): New function.
  11134. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  11135. Initalized newly added variables.
  11136. [FileEntry](offset): New variable.
  11137. [FileEntry](extracted): New variable.
  11138. [FileEntry](requested): New variable.
  11139. (readFileEntry): New function.
  11140. (option): New variable.
  11141. (splitMultiFile): Removed const qualifier.
  11142. (fixFilename): Removed const qualifier.
  11143. (readFileEntryFromMetaInfoFile): New function.
  11144. (finishPartialDownloadingMode): New function.
  11145. (isPartialDownloadingMode): New function.
  11146. (setFileEntriesToDownload): New function.
  11147. (getCompletedLength): New function.
  11148. (getPartialTotalLength): New function.
  11149. * src/TorrentMan.cc (readFileEntry): New function.
  11150. (setup): Use readFileEntry. If no-preallocation option is specified,
  11151. use DefaultDiskWriter.
  11152. (readFileEntryFromMetaInfoFile): New function.
  11153. (fixFilename): Removed const qualifier.
  11154. (splitMultiFile): Removed const qualifier.
  11155. (setFileEntriesToDownload): New function.
  11156. (isPartialDownloadingMode): New function.
  11157. (finishPartialDownloadingMode): New function.
  11158. (getCompletedLength): New function.
  11159. (getPartialTotalLength): New function.
  11160. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11161. New variable.
  11162. (partialTotalLength): New variable.
  11163. (downloadLength): New variable.
  11164. (totalLength): New variable.
  11165. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11166. Added log.
  11167. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11168. partialTotalLength, downloadLength, totalLength.
  11169. (calculate): Calculate downloadLength and totalLength.
  11170. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11171. * src/main.cc (addCommand): Changed argument signature.
  11172. (main): Added new variable: args. Added new option "torrent-show-files"
  11173. "no-preallocation". Usage is not updated yet.
  11174. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11175. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11176. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11177. Attempt to add the ability to listing file entries in a .torrent file.
  11178. This feature is not yet complete.
  11179. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11180. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11181. (getName): New function.
  11182. * src/TorrentMan.h (getMultiFileEntries): New function.
  11183. (getName): New function.
  11184. * src/main.cc (main): Use above 2 funtion.
  11185. * Release 0.3.2
  11186. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11187. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11188. (detectMessageFlooding): Updated threshold value.
  11189. (checkLongTimePeerChoking): Updated timeout value.
  11190. (getNewPieceAndSendInterest): Added debug log.
  11191. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11192. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11193. (getPeer): Updated.
  11194. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11195. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11196. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11197. is localhost.
  11198. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11199. * src/PendingMessage.cc (processMessage): Not to send piece message
  11200. if peer is not interested in the pieces localhost has.
  11201. * src/Peer.cc (shouldChoke): Updated.
  11202. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11203. * src/Util.cc (isPowerOf): New function.
  11204. * src/Util.h (isPowerOf): New function.
  11205. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11206. whether or not it is power of 2.
  11207. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11208. Added new class SendMessageQueue that includes PendingMessages and
  11209. RequestSlotMan.
  11210. * src/SendMessageQueue.h: New class.
  11211. * src/SendMessageQueue.cc: New class.
  11212. * src/PendingMessage.h: Added new member variable blockIndex and its
  11213. accessors.
  11214. (createRequestMessage): Updated.
  11215. * src/PendingMessage.cc (createRequestMessage): Updated.
  11216. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11217. SendMessageQueue.
  11218. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11219. (receiveMessage): Updated with SendMessageQueue.
  11220. (deletePendingPieceMessage): Removed.
  11221. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11222. (sendInterest): Updated with SendMessageQueue.
  11223. (createRequestPendingMessage): Updated with SendMessageQueue.
  11224. (sendMessages): Updated with SendMessageQueue.
  11225. (onAbort): Updated with SendMessageQueue.
  11226. (keepAlive): Updated with SendMessageQueue.
  11227. (beforeSocketCheck): Updated SendMessageQueue.
  11228. * src/PeerInteractionCommand (sendMessages): Shuffle
  11229. missingBLockIndexes before using it.
  11230. Added its own timeout for peer connection.
  11231. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11232. setter.
  11233. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11234. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11235. Added setTimeout() call.
  11236. (executeInternal): Added setTimeout() call.
  11237. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11238. Added timeout.
  11239. (isTimeoutDetected): Updated.
  11240. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  11241. option.
  11242. Added *simple* message flooding checker.
  11243. * src/PeerInteractionCommand.cc (executeInternal):
  11244. Added detectMessageFlooding() call.
  11245. (detectMessageFlooding): New function.
  11246. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  11247. (beforeSocketCheck): Added detectMessageFlooding() call.
  11248. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  11249. chokeUnchokeCount, haveCount, detectMessageFlooding().
  11250. Removed deletePendingPieceMessage(), getRequestSlot(),
  11251. deleteRequestSlot(), deleteAllRequestSlot().
  11252. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  11253. Added checkLongTimePeerChoking() call.
  11254. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  11255. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  11256. if duplicate == false.
  11257. The parameter "uploaded" and "downloaded" in the tracker request are
  11258. the size since the client sent the "started" event to the tracker.
  11259. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  11260. uploaded size to preDownloadedSize, preUploadedSize respectively.
  11261. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  11262. getSessionDownloadedSize(), getSessionUploadedSize().
  11263. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  11264. getSessionUploadedSize() instead of getDownloadedSize(),
  11265. getUploadedSize().
  11266. * src/PendingMessage.cc (processMessage): Do not send request message
  11267. if the peer is choking the client.
  11268. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  11269. less than interval.
  11270. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11271. * configure.in: Added gnutls support. Added several CPP macros.
  11272. * m4/openssl.m4: Added.
  11273. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  11274. readData(), peekData(). Added gnutls support.
  11275. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  11276. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  11277. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  11278. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  11279. Instead, added a check for whether setup method has executed
  11280. successfully.
  11281. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  11282. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  11283. * src/Makefile.am: Updated.
  11284. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  11285. using whether OpenSSL or gcrypt, depending on the result of configure
  11286. script.
  11287. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  11288. messageDigest.h.
  11289. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  11290. * src/PeerListenCommand.cc: Added log about port binded successfully.
  11291. Fixed memory leak.
  11292. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  11293. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  11294. Removed instantiation of TrackerInitCommand. Instead,
  11295. TrackerWatcherCommand is instantiated and pushed to the command queue.
  11296. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  11297. ENABLE_SSL.
  11298. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  11299. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  11300. If a piece is already acquired by another command, delete the request
  11301. slots for the piece.
  11302. * src/TrackerUpdateCommand.cc (execute):
  11303. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  11304. Added a check whether peer list is null.
  11305. Fixed the bug that causes sending completed event to the tracker
  11306. several times.
  11307. * src/TrackerInitCommand.cc (execute):
  11308. Fixed the bug that causes sending completed event to the tracker
  11309. several times.
  11310. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  11311. by using messageDigest.h.
  11312. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11313. * PeerConnection.cc: Replaced log message "keep-alive" with
  11314. "keep alive".
  11315. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  11316. localhost long time.
  11317. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  11318. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  11319. at most 100 failure entry from the list. If with duplicate = false,
  11320. MAX_PEER_LIST is not checked.
  11321. * PeerListenCommand.cc: Fixed the argument order of log message.
  11322. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11323. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  11324. Added warn().
  11325. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  11326. Implemented warn().
  11327. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  11328. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11329. * Request.h: Added AFTER_COMPLETED event.
  11330. * TorrentDownloadEngine.cc: Prints "Download complete" message
  11331. instead of downloaded size and progress(%) after download completes.
  11332. * PeerInteractionCommand.cc: After download completes, sends unchoke
  11333. message to the peer if it is interested in what localhost has
  11334. downloaded.
  11335. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  11336. destination instead of just renaming it.
  11337. * TorrentMan.cc: Added deleteTempFile().
  11338. * PeerAbstractCommand.cc: do not stop execution after download
  11339. completes. This makes localhost a seeder.
  11340. * Util.{h,cc}: Added fileCopy().
  11341. * PeerListenCommand.cc: do not stop execution after download completes.
  11342. This makes localhost a seeder.
  11343. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  11344. Added TorrentMan::deleteTempFile() to torrentHandler.
  11345. Initialized the variable dir as ".".
  11346. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  11347. Deleted renameSingleFile().
  11348. Added copySingleFile(), deleteTempFile().
  11349. * DownloadEngine.h: Added virtual function afterEachIteration().
  11350. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  11351. in onEndOfRun() to afterEachIteration().
  11352. In onEndOfRun(), changed if condition to check whether filenameFixed is
  11353. true.
  11354. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  11355. In rangedFileCopy(), added try-catch block to properly close file
  11356. descriptors.
  11357. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  11358. Added afterEachIteration(), isFilenameFixed().
  11359. * Peer.cc: Changed choking strategy.
  11360. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  11361. * TrackerInitCommand.cc: Send completed event only once.
  11362. * DownloadEngine.cc: Added a call to afterEachIteration().
  11363. * TrackerUpdateCommand.cc: Do not stop execution after download
  11364. completes.
  11365. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  11366. connect the peers at most MAX_PEER_UPDATE when a peer list is
  11367. received from a tracker.
  11368. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  11369. Decreased the number of failure peers to delete to 0(just comment out
  11370. the line).
  11371. * Release 0.3.1
  11372. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. * PeerInteractionCommand.cc: added a call to
  11374. TorrentMan::unadvertisePiece in Destructor.
  11375. * PeerInteractionCommand.cc: make have message sent immediately
  11376. if the size of pending message queue is zero.
  11377. * TorrentMan.cc: set the maximum size of peer list to 250.
  11378. * TorrentMan.h: changed the container type of Peers and UsedPieces
  11379. to deque.
  11380. * Util.cc: fixed rangedFileCopy.
  11381. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  11382. to Constructor. Also, moved digest cleanup to Destructor.
  11383. * MetaFileUtil.cc: fixed memory leak
  11384. * replaced std::vector with std::deque.
  11385. * AbstractCommand.cc: casted timeout value to long long int.
  11386. * ChunkedEncoding.cc: fixed memory leak.
  11387. * PeerInteractionCommand.cc: casted timeout value to long long int.
  11388. * SleepCommand.cc: casted timeout value to long long int.
  11389. * Data.cc: fixed memory leak.
  11390. * Data.cc: fixed toLLInt().
  11391. * BitfieldMan.cc: fixed memory leak.
  11392. * TorrentMan.cc: initialized storeDir to ".".
  11393. * TorrentMan.cc: fixed memory leak.
  11394. * TorrentMan.cc: corrected file paths of splitted files.
  11395. * PeerAbstractCommand.cc: casted timeout to long long int.
  11396. * main.cc: added delete(req) and delete(te->diskWriter).
  11397. * RequestSlot.cc: casted timeout value to long long int.
  11398. * Request.cc: fixed memory leak.
  11399. * PendingMessage.cc: make HAVE messages sent only when peer does not
  11400. have the piece.
  11401. * Peer.{h,cc}: added hasPiece(int index).
  11402. * main.cc: corrected addCommand.
  11403. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11404. * BitTorrent protocol support added.
  11405. * Release 0.3.0
  11406. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11407. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  11408. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11409. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  11410. decoding did not work properly.
  11411. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11412. * DownloadEngine.h: included sys/time.h
  11413. * DownloadEngine.cc: remove sys/time.h
  11414. * Makefile.am (SUBDIRS): Add intl.
  11415. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  11416. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11417. * main.cc: correct help message for --http-auth-scheme.
  11418. * main.cc: changed e-mail address for bug reports.
  11419. * ja.po: added japanese translation.
  11420. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. * SimpleLogger.cc: flush log file instead of stdout.
  11422. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11423. * main.cc: Fixed command-line option: max-tries
  11424. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  11425. does not equal to seg.sp.
  11426. * DownloadCommand.cc: If EOF is got from the server and the total size
  11427. of file is not zero, then throw DlRetryEx.
  11428. * main.cc: Set the minium value of min-segment-size to 1024.
  11429. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11430. fails because of a regression since 0.2.0 release.
  11431. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. * HttpConnection.cc:
  11433. * common.h: defined the user agent name as macro
  11434. * DownloadEngine.{h, cc}:
  11435. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11436. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11437. * main.cc: Download complete/abort message is now generated by main.
  11438. * Makefile.am (SUBDIRS): Add m4.
  11439. (ACLOCAL_AMFLAGS): New variable.
  11440. (EXTRA_DIST): New variable.
  11441. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11442. * gettext: added gettext functionality
  11443. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11444. * AbstractCommand.cc:
  11445. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11446. unregister its cuid from SegmentMan.
  11447. * DownloadEngine.cc: .aria2 file was written when a downloading
  11448. failed with errors.
  11449. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11450. Added "User-Agent" header to CONNECT proxy request.
  11451. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11452. properly.
  11453. * Logger.h:
  11454. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11455. * ChunkedEncoding.cc: Added #include directive for strings.h
  11456. * Release 0.2.1
  11457. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11458. * Util.{h,cc}: added startsWith().
  11459. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11460. Util::endsWith().
  11461. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11462. * common.h: added #include directive of limit.h.
  11463. * DownloadEngine.cc: added #include directive of sys/time.h and
  11464. algorithm.
  11465. * Exception.h: added #include directive of stdio.h.
  11466. * AbstractCommand.h: added #include directive of sys/time.h.
  11467. * DownloadCommand.h: added #include directive of sys/time.h.
  11468. * *.h: added #include directive of common.h to all base classes.
  11469. subclasses' one was removed.
  11470. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11471. does not define these macros.
  11472. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11473. * Release 0.2.0
  11474. * main.cc:
  11475. * HttpInitiateConnectionCommand.{h,cc}:
  11476. * prefs.h:
  11477. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11478. We can now use GET command in http proxy.
  11479. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11481. that splits slowest segment of SegmentMan::commands vector.
  11482. This is the default split algorithm of aria2.
  11483. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11484. that splits first segment of SegmentMan::commands vector.
  11485. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11486. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11487. * Segment.h:
  11488. * SegmentMan.cc: Added speed field to Segment.h
  11489. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11490. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11491. * message.h: Change file size related %d to %lld.
  11492. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11493. * FtpInitiateConnectionCommand.{h,cc}:
  11494. * FtpNegotiationCommand.{h,cc}:
  11495. * FtpDownloadCommand.{h,cc}:
  11496. * FtpConnection.{h,cc}: Added FTP support
  11497. * SimpleLogger.cc: Log message now includes time information.
  11498. * main.cc: The value of --http-auth-scheme option is chagned from
  11499. 'BASIC' to 'basic'
  11500. * main.cc: Added --timeout command-line option.
  11501. * main.cc: Added --min-segment-size command-line option.
  11502. * main.cc: Added --max-retries command-line option.
  11503. * prefs.h: option string constants are now defined in prefs.h
  11504. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11505. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11506. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11507. with version 0.1.0's one.
  11508. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. * configure.in: Added --enable-ssl option to configure script.
  11510. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11511. cannot permit absoluteURI as Request-URI.
  11512. * HttpConnection.cc: Added Referer support.
  11513. * main.cc: Added referer command-line option.
  11514. * main.cc: Added rety-wait command-line option.
  11515. * Exception.h: Fixed formating bug in Exception::setMsg()
  11516. * SocketCore.{h,cc}:
  11517. * Socket.{h, cc}:
  11518. * Request.cc:
  11519. * InitiateConnectionCommandFactory.cc:
  11520. * HttpRequestCommand.cc: Added HTTPS support.
  11521. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11522. for SocketCore.
  11523. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11524. size is wrong
  11525. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11526. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11527. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11528. * Release 0.1.0