ChangeLog 440 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686
  1. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Deprecated --http-proxy-user and --http-proxy-passwd options.
  3. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4. Above 3 options and --http-proxy option can handle proxy in URL format
  5. like: http://user:passwd@host:port.
  6. If a proxy requires user/password, they must be specified in a URL.
  7. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8. instead.
  9. * src/AbstractCommand.cc
  10. * src/AbstractCommand.h
  11. * src/AbstractProxyRequestCommand.cc
  12. * src/AbstractProxyRequestCommand.h
  13. * src/AuthConfigFactory.cc
  14. * src/AuthConfigFactory.h
  15. * src/FtpFinishDownloadCommand.cc
  16. * src/FtpInitiateConnectionCommand.cc
  17. * src/FtpInitiateConnectionCommand.h
  18. * src/FtpNegotiationCommand.cc
  19. * src/FtpTunnelRequestCommand.cc
  20. * src/FtpTunnelRequestCommand.h
  21. * src/HttpDownloadCommand.cc
  22. * src/HttpInitiateConnectionCommand.cc
  23. * src/HttpInitiateConnectionCommand.h
  24. * src/HttpProxyRequestCommand.cc
  25. * src/HttpProxyRequestCommand.h
  26. * src/HttpRequest.cc
  27. * src/HttpRequest.h
  28. * src/HttpRequestCommand.cc
  29. * src/HttpRequestCommand.h
  30. * src/HttpSkipResponseCommand.cc
  31. * src/InitiateConnectionCommand.cc
  32. * src/InitiateConnectionCommand.h
  33. * src/OptionHandlerFactory.cc
  34. * src/OptionHandlerImpl.h
  35. * src/Request.cc
  36. * src/option_processing.cc
  37. * src/prefs.cc
  38. * src/prefs.h
  39. * src/usage_text.h
  40. * test/AuthConfigFactoryTest.cc
  41. * test/HttpRequestTest.cc
  42. * test/OptionHandlerTest.cc
  43. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  44. Execute choking algorithm when unchoked and interested peer is
  45. disconected.
  46. * src/DefaultPeerStorage.cc
  47. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  48. Added testcase for BtNotInterestedMessage from unchoked peer.
  49. * test/BtNotInterestedMessageTest.cc
  50. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  51. Execute choking algorithm when BtInterestedMessage arrives from
  52. unchoked peer.
  53. * src/BtInterestedMessage.cc
  54. * src/BtInterestedMessage.h
  55. * src/DefaultBtMessageFactory.cc
  56. * test/BtInterestedMessageTest.cc
  57. * test/MockPeerStorage.h
  58. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  59. AuthConfigFactory is now part of DownloadEngine.
  60. * src/AbstractProxyRequestCommand.cc
  61. * src/AuthConfigFactory.h
  62. * src/DownloadEngine.cc
  63. * src/DownloadEngine.h
  64. * src/FtpConnection.cc
  65. * src/FtpConnection.h
  66. * src/FtpNegotiationCommand.cc
  67. * src/HttpConnection.cc
  68. * src/HttpRequest.cc
  69. * src/HttpRequest.h
  70. * src/HttpRequestCommand.cc
  71. * src/HttpResponse.cc
  72. * src/HttpResponseCommand.cc
  73. * src/HttpSkipResponseCommand.cc
  74. * src/MultiUrlRequestInfo.cc
  75. * src/main.cc
  76. * test/FtpConnectionTest.cc
  77. * test/HttpRequestTest.cc
  78. * test/HttpResponseTest.cc
  79. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  80. Corrected catched exception type.
  81. * src/ServerStatMan.cc
  82. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  83. DNSCache is now part of DownloadEngine.
  84. * src/DNSCache.h
  85. * src/DownloadEngine.cc
  86. * src/DownloadEngine.h
  87. * src/InitiateConnectionCommand.cc
  88. * src/MultiUrlRequestInfo.cc
  89. * test/Makefile.am
  90. * test/Makefile.in
  91. * test/SimpleDNSCacheTest.cc
  92. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  93. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  94. DownloadEngine.
  95. * src/ActivePeerConnectionCommand.cc
  96. * src/BtSetup.cc
  97. * src/CUIDCounter.h
  98. * src/DHTSetup.cc
  99. * src/DownloadCommand.cc
  100. * src/DownloadEngine.cc
  101. * src/DownloadEngine.h
  102. * src/DownloadEngineFactory.cc
  103. * src/FileAllocationDispatcherCommand.cc
  104. * src/InitiatorMSEHandshakeCommand.cc
  105. * src/PeerInitiateConnectionCommand.cc
  106. * src/PeerInteractionCommand.cc
  107. * src/PeerListenCommand.cc
  108. * src/RequestGroup.cc
  109. * src/StreamFileAllocationEntry.cc
  110. * src/TrackerWatcherCommand.cc
  111. * src/main.cc
  112. * test/RequestGroupManTest.cc
  113. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  114. Implemented commented code in BtSeederStateChoke
  115. * src/BtSeederStateChoke.cc
  116. * src/Peer.cc
  117. * src/Peer.h
  118. * src/PeerInteractionCommand.cc
  119. * src/PeerSessionResource.cc
  120. * src/PeerSessionResource.h
  121. * test/MockBtMessageDispatcher.h
  122. * test/PeerSessionResourceTest.cc
  123. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  124. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  125. its object.
  126. * src/AbstractBtMessage.cc
  127. * src/ActivePeerConnectionCommand.cc
  128. * src/ActivePeerConnectionCommand.h
  129. * src/BtContextAwareCommand.cc
  130. * src/BtContextAwareCommand.h
  131. * src/BtExtendedMessage.cc
  132. * src/BtExtendedMessage.h
  133. * src/BtInterestedMessage.cc
  134. * src/BtInterestedMessage.h
  135. * src/BtNotInterestedMessage.cc
  136. * src/BtNotInterestedMessage.h
  137. * src/BtRegistry.cc
  138. * src/BtRegistry.h
  139. * src/BtSeederStateChoke.cc
  140. * src/BtSetup.cc
  141. * src/DHTGetPeersCommand.cc
  142. * src/DHTGetPeersCommand.h
  143. * src/DHTPeerAnnounceEntry.cc
  144. * src/DHTPeerAnnounceEntry.h
  145. * src/DHTPeerAnnounceStorage.cc
  146. * src/DHTPeerAnnounceStorage.h
  147. * src/DHTPeerLookupTask.cc
  148. * src/DHTPeerLookupTask.h
  149. * src/DHTSetup.cc
  150. * src/DHTSetup.h
  151. * src/DHTTaskFactory.h
  152. * src/DHTTaskFactoryImpl.cc
  153. * src/DHTTaskFactoryImpl.h
  154. * src/DefaultBtAnnounce.cc
  155. * src/DefaultBtInteractive.cc
  156. * src/DefaultBtInteractive.h
  157. * src/DefaultBtMessageDispatcher.cc
  158. * src/DefaultBtMessageDispatcher.h
  159. * src/DefaultBtMessageFactory.cc
  160. * src/DefaultBtMessageFactory.h
  161. * src/DefaultBtMessageReceiver.cc
  162. * src/DefaultBtProgressInfoFile.cc
  163. * src/DefaultBtProgressInfoFile.h
  164. * src/DefaultBtRequestFactory.cc
  165. * src/DefaultBtRequestFactory.h
  166. * src/DefaultExtensionMessageFactory.cc
  167. * src/DefaultExtensionMessageFactory.h
  168. * src/DefaultPeerStorage.cc
  169. * src/DefaultPeerStorage.h
  170. * src/DownloadEngine.cc
  171. * src/DownloadEngine.h
  172. * src/InitiatorMSEHandshakeCommand.cc
  173. * src/InitiatorMSEHandshakeCommand.h
  174. * src/MSEHandshake.cc
  175. * src/MSEHandshake.h
  176. * src/Makefile.am
  177. * src/Makefile.in
  178. * src/PeerChokeCommand.cc
  179. * src/PeerChokeCommand.h
  180. * src/PeerInitiateConnectionCommand.cc
  181. * src/PeerInitiateConnectionCommand.h
  182. * src/PeerInteractionCommand.cc
  183. * src/PeerInteractionCommand.h
  184. * src/PeerObject.h
  185. * src/PeerReceiveHandshakeCommand.cc
  186. * src/PeerReceiveHandshakeCommand.h
  187. * src/ReceiverMSEHandshakeCommand.cc
  188. * src/RequestGroup.cc
  189. * src/RequestGroup.h
  190. * src/RequestGroupMan.cc
  191. * src/RequestGroupMan.h
  192. * src/SeedCheckCommand.cc
  193. * src/SeedCheckCommand.h
  194. * src/ShareRatioSeedCriteria.h
  195. * src/SimpleBtMessage.cc
  196. * src/TrackerWatcherCommand.cc
  197. * src/TrackerWatcherCommand.h
  198. * src/UTPexExtensionMessage.cc
  199. * src/UTPexExtensionMessage.h
  200. * test/BtCancelMessageTest.cc
  201. * test/BtChokeMessageTest.cc
  202. * test/BtExtendedMessageTest.cc
  203. * test/BtInterestedMessageTest.cc
  204. * test/BtNotInterestedMessageTest.cc
  205. * test/BtPieceMessageTest.cc
  206. * test/BtPortMessageTest.cc
  207. * test/BtRegistryTest.cc
  208. * test/BtRejectMessageTest.cc
  209. * test/BtRequestMessageTest.cc
  210. * test/DHTPeerAnnounceEntryTest.cc
  211. * test/DHTPeerAnnounceStorageTest.cc
  212. * test/DefaultBtMessageDispatcherTest.cc
  213. * test/DefaultBtMessageFactoryTest.cc
  214. * test/DefaultBtProgressInfoFileTest.cc
  215. * test/DefaultBtRequestFactoryTest.cc
  216. * test/DefaultExtensionMessageFactoryTest.cc
  217. * test/MSEHandshakeTest.cc
  218. * test/MockDHTTaskFactory.h
  219. * test/ShareRatioSeedCriteriaTest.cc
  220. * test/UTPexExtensionMessageTest.cc
  221. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  222. Fixed compiler warning.
  223. * test/UtilTest.cc
  224. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  225. Treat Cookie object as session cookie if expiry = 0 is given.
  226. With this change, you can specify session scoped cookies in an external
  227. file setting expiry value to 0.
  228. * src/Cookie.cc
  229. * src/Cookie.h
  230. * test/CookieParserTest.cc
  231. * test/CookieStorageTest.cc
  232. * test/CookieTest.cc
  233. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  234. Changed signature of DHTMessageFactory::createResponseMessage().
  235. Removed unused validateIDMatch.
  236. * src/DHTMessageFactory.h
  237. * src/DHTMessageFactoryImpl.cc
  238. * src/DHTMessageFactoryImpl.h
  239. * src/DHTMessageTracker.cc
  240. * test/DHTMessageFactoryImplTest.cc
  241. * test/MockDHTMessageFactory.h
  242. Dropped DHT message coming from same ID of localhost.
  243. * src/DHTMessageReceiver.cc
  244. Rejected adding node whose ID is the same as localhost's.
  245. * src/DHTRoutingTable.cc
  246. * test/BtPortMessageTest.cc
  247. * test/DHTRoutingTableTest.cc
  248. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  249. Pool connection when redirection occurs with Content-Length = 0.
  250. * src/HttpSkipResponseCommand.cc
  251. * src/HttpSkipResponseCommand.h
  252. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  253. Fixed the bug that causes time out when redirection occurs with
  254. content-length 0.
  255. * src/HttpResponseCommand.cc
  256. * src/HttpSkipResponseCommand.cc
  257. * src/HttpSkipResponseCommand.h
  258. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  259. Now each status legends is shown only when it appears in Download
  260. Result. If Download Result has no item, then status legend will not
  261. be printed.
  262. * src/RequestGroupMan.cc
  263. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  264. Removed duplicate creation of OptionHandlers.
  265. * src/option_processing.cc
  266. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  267. Fixed the bug that causes segmentation fault when accessing files which
  268. don't exist or are not included in --select-file option while
  269. validating chunk checksum.
  270. * src/MultiDiskAdaptor.cc
  271. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  272. Fixed compiler warning.
  273. * test/UtilTest.cc
  274. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  275. Included cstdlib. This fixed the compile error with g++-4.3.2.
  276. * src/IteratableChecksumValidator.cc
  277. * src/IteratableChunkChecksumValidator.cc
  278. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  279. * Release 0.16.2
  280. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  281. Added Serbian translation. Updated Ukrainian translation.
  282. Thanks to all translators.
  283. * po/sr.po
  284. * po/uk.po
  285. * po/LINGUAS
  286. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  287. Bump up version number to 0.16.2
  288. * configure.ac
  289. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  290. Added length equality test to operator== to drop a piece message
  291. whose length does not match to the requested one.
  292. * src/RequestSlot.cc
  293. * test/DefaultBtMessageDispatcherTest.cc
  294. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  295. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  296. recieved.
  297. In this fix, if a request larger than 16KiB length is received, aria2
  298. disconnects the peer.
  299. * src/BtConstants.h
  300. * src/PeerMessageUtil.cc
  301. * src/PeerMessageUtil.h
  302. * test/BtRequestMessageTest.cc
  303. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  304. * Release 0.16.1
  305. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  306. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  307. * doc/aria2c.1.txt
  308. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  309. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  310. Updated French, Simplified Chinese and Japanese translations.
  311. Thanks to all translators.
  312. en@quot and en@boldquot are also added.
  313. * po/LINGUAS
  314. * po/fr.po
  315. * po/ja.po
  316. * po/uk.po
  317. * po/vi.po
  318. * po/zh_CN.po
  319. * po/zh_TW.po
  320. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  321. Bump up version number to 0.16.1.
  322. * configure.ac
  323. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  324. Updated README.
  325. * README
  326. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  327. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  328. not to replace '--' with em dash character.
  329. * doc/aria2c.1.txt
  330. * doc/makeman
  331. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  332. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  333. every SEC seconds.
  334. * src/DownloadEngineFactory.cc
  335. * src/OptionHandlerFactory.cc
  336. * src/option_processing.cc
  337. * src/usage_text.h
  338. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  339. Fixed compile warning on linux-amd64
  340. * src/FtpConnection.cc
  341. * src/IteratableChunkChecksumValidator.cc
  342. * src/MultiDiskAdaptor.cc
  343. Fixed the bug that unit test fails on linux-amd64
  344. * test/UtilTest.cc
  345. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  346. Added --dht-file-path option to change the path to dht.dat, which is a
  347. serialized DHT routing table.
  348. * src/OptionHandlerFactory.cc
  349. * src/option_processing.cc
  350. * src/usage_text.h
  351. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  352. Fixed possible underflow.
  353. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  354. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  355. Fixed the bug that last character in URI is not encoded.
  356. * src/Request.cc
  357. * test/RequestTest.cc
  358. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  359. Fixed the bug that referer header field contains fragment.
  360. Now Request class removes fragment part of URI and encodes it
  361. in Request::setUri() and setReferer().
  362. * src/Request.h
  363. * src/Request.cc
  364. * test/RequestTest.cc
  365. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  366. Added missing m4 macros.
  367. * m4/cppunit.m4
  368. * m4/libgcrypt.m4
  369. * m4/libgnutls-extra.m4
  370. * m4/libgnutls.m4
  371. * m4/libxml2.m4
  372. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  373. Fixed compile error with gcc-4.4(snapshot)
  374. * src/File.cc
  375. * src/FtpConnection.cc
  376. * src/OptionHandlerImpl.h
  377. * src/Util.cc
  378. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  379. Removed assert()
  380. * src/SocketBuffer.cc (SocketBuffer::send)
  381. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  382. Changed the type of _numNewConnection to unsigned int.
  383. * src/ActivePeerConnectionCommand.cc
  384. * src/ActivePeerConnectionCommand.h
  385. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  386. * Release 0.16.0
  387. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  388. Updated doc
  389. * README
  390. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  391. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  392. translations. Thanks to all translators.
  393. * po/bg.po
  394. * po/de.po
  395. * po/fr.po
  396. * po/ja.po
  397. * po/zh_CN.po
  398. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  399. Bump up version number to 0.16.0.
  400. * configure.ac
  401. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  402. Casted entry->maxConnections to int32_t for std::min<T> with T =
  403. int32_t.
  404. Changed the type of count to int32_t.
  405. * src/Metalink2RequestGroup.cc
  406. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  407. Added test for Time::elapsed(time_t).
  408. * test/TimeTest.cc
  409. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  410. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  411. Util::difftv() should be used instead.
  412. * src/TimeA2.cc
  413. * src/TimeA2.h
  414. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  415. Made socket for dht connections non-blocking
  416. * src/DHTAbstractMessage.cc
  417. * src/DHTAbstractMessage.h
  418. * src/DHTConnection.h
  419. * src/DHTConnectionImpl.cc
  420. * src/DHTConnectionImpl.h
  421. * src/DHTMessage.h
  422. * src/DHTMessageDispatcherImpl.cc
  423. * src/DHTMessageDispatcherImpl.h
  424. * src/DHTUnknownMessage.cc
  425. * src/DHTUnknownMessage.h
  426. * src/SocketCore.cc
  427. * src/SocketCore.h
  428. * test/MockDHTMessage.h
  429. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  430. Changed the type of offset to int.
  431. * src/ParameterizedStringParser.cc
  432. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  433. Made getAsInt() return int32_t
  434. * src/Option.h
  435. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  436. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  437. build.
  438. * configure.ac
  439. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  440. Use sqlite3_open if sqlite3_open_v2 is not available.
  441. * src/Sqlite3MozCookieParser.cc
  442. * src/Sqlite3MozCookieParser.h
  443. * m4/sqlite3.m4
  444. * test/Sqlite3MozCookieParserTest.cc
  445. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  446. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  447. * src/BtPieceMessage.cc
  448. * src/DHTPeerAnnounceStorage.cc
  449. * src/DefaultPieceStorage.cc
  450. * src/DownloadCommand.cc
  451. * src/DownloadEngine.cc
  452. * src/FtpConnection.cc
  453. * src/PeerConnection.cc
  454. * src/PeerMessageUtil.cc
  455. * src/RequestGroup.cc
  456. * src/RequestGroupMan.cc
  457. * src/SimpleBtMessage.cc
  458. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  459. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  460. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  461. * src/AbstractDiskWriter.cc
  462. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  463. Don't set Request::supportsPersistentConnection() in HttpConnection
  464. since this code is also used in AbstractProxyResponseCommand.
  465. Moved those code to HttpResponse.
  466. * src/HttpResponse.cc
  467. * src/HttpResponse.h
  468. * src/HttpConnection.cc
  469. * src/HttpConnection.h
  470. * src/HttpResponseCommand.cc
  471. * test/HttpResponseTest.cc
  472. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  473. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  474. The configuration is minimum: no torrent, no metalink, so there may be
  475. other compile error on their code.
  476. * src/a2netcompat.h
  477. * src/File.cc
  478. * src/File.h
  479. * src/SocketCore.cc
  480. * src/SocketCore.h
  481. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  482. Made a socket of incoming peer non-blocking.
  483. * src/PeerListenCommand.cc
  484. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  485. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  486. whole message data is not sent in one send() call.
  487. * src/BtPieceMessage.cc
  488. * src/BtPieceMessage.h
  489. * src/PeerConnection.cc
  490. * src/PeerConnection.h
  491. * src/SimpleBtMessage.cc
  492. * src/SimpleBtMessage.h
  493. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  494. Fixed the bug that aria2 downloads faster than max-download-limit when
  495. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  496. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  497. , instead of sum of them.
  498. * src/ActivePeerConnectionCommand.cc
  499. * src/DefaultBtInteractive.cc
  500. * src/DownloadCommand.cc
  501. * src/PeerInteractionCommand.cc
  502. * src/PeerReceiveHandshakeCommand.cc
  503. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  504. Fixed the bug that HTTPS download fails.
  505. * src/AbstractCommand.cc
  506. * src/AbstractCommand.h
  507. * src/DownloadCommand.cc
  508. * src/FtpConnection.cc
  509. * src/HttpConnection.cc
  510. * src/HttpRequestCommand.cc
  511. * src/HttpResponseCommand.cc
  512. * src/HttpSkipResponseCommand.cc
  513. * src/MSEHandshake.cc
  514. * src/PeerConnection.cc
  515. * src/SocketCore.cc
  516. * src/SocketCore.h
  517. Fixed the bug that aria2 doesn't download whole content body and cannot
  518. reuse connection if chunked transfer encoding and gzip content encoding
  519. are set.
  520. * src/DownloadCommand.cc
  521. * src/HttpSkipResponseCommand.cc
  522. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  523. Updated man page.
  524. * doc/aria2c.1.txt
  525. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  526. When error occurred while aria2 was parsing an .aria2.conf file, print
  527. the usage of the option that caused error.
  528. * src/option_processing.cc
  529. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  530. Fixed compile error on OptionHandlerException
  531. * src/Makefile.am
  532. * src/OptionHandlerException.cc
  533. * src/OptionHandlerException.h
  534. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  535. Moved message of the error to OptionHandlerException.h
  536. * src/NameMatchOptionHandler.h
  537. * src/OptionHandlerException.h
  538. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  539. When error occurs while aria2 is parsing an command-line option, print
  540. the usage of the option.
  541. * src/Makefile.am
  542. * src/NameMatchOptionHandler.h
  543. * src/OptionHandlerException.h
  544. * src/option_processing.cc
  545. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  546. Reverted previous change.
  547. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  548. username is not in URI.
  549. * src/HttpRequest.cc
  550. * src/Request.cc
  551. * test/HttpRequestTest.cc
  552. * test/RequestTest.cc
  553. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  554. Now colon is required for username and password in FTP URL, like:
  555. ftp://username:password@host.
  556. If colon is not there, aria2 don't parse it as a username. For example,
  557. aria2 don't retrieve username from ftp://username@host.
  558. This fix was made in order to login FTP server via non-transparent ftp
  559. proxy.
  560. * src/Request.cc
  561. * test/RequestTest.cc
  562. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  563. Use netrc for HTTP.
  564. Now FTP user/password is sent in Authorization header when
  565. --ftp-via-http-proxy=get is given.
  566. * src/AuthConfigFactory.cc
  567. * src/HttpRequest.cc
  568. * src/HttpRequest.h
  569. * src/NetrcAuthResolver.cc
  570. * src/NetrcAuthResolver.h
  571. * src/OptionHandlerFactory.cc
  572. * src/option_processing.cc
  573. * src/prefs.cc
  574. * src/prefs.h
  575. * test/AuthConfigFactoryTest.cc
  576. * test/HttpRequestTest.cc
  577. * test/NetrcAuthResolverTest.cc
  578. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  579. Issue PWD command first and get working directory and use it as a prefix
  580. for CWD command.
  581. * src/DownloadEngine.cc
  582. * src/DownloadEngine.h
  583. * src/FtpConnection.cc
  584. * src/FtpConnection.h
  585. * src/FtpFinishDownloadCommand.cc
  586. * src/FtpInitiateConnectionCommand.cc
  587. * src/FtpNegotiationCommand.cc
  588. * src/FtpNegotiationCommand.h
  589. * test/FtpConnectionTest.cc
  590. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  591. Removed default user/pass for FTP user/pass, since it should not have
  592. precedence over netrc configuration by default.
  593. * src/OptionHandlerFactory.cc
  594. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  595. Added debug log for socket event.
  596. * src/AbstractCommand.cc
  597. * src/PeerAbstractCommand.cc
  598. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  599. Log microseconds.
  600. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  601. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  602. Replaced HelpItem.cc with OptionHandler.cc.
  603. * po/POTFILES.in
  604. Updated po files with 'make update-po'
  605. * po/aria2c.pot
  606. * po/*.po
  607. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  608. Removed possible values from the text.
  609. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  610. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  611. Removed unused preferences:
  612. PREF_NO_PREALLOCATION
  613. PREF_STDOUT_LOG
  614. PREF_TRACKER_MAX_TRIES
  615. PREF_DIRECT_DOWNLOAD_TIMEOUT
  616. PREF_MIN_SEGMENT_SIZE
  617. * src/option_processing.cc
  618. * src/prefs.cc
  619. * src/prefs.h
  620. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  621. Integrated HelpItem into OptionParser to ease the workload for adding
  622. new options. Removed default value from usage text.
  623. * src/HelpItem.cc: Removed.
  624. * src/HelpItem.h: Removed.
  625. * src/HelpItemFactory.cc: Removed.
  626. * src/HelpItemFactory.h: Removed.
  627. * src/Makefile.am
  628. * src/Makefile.in
  629. * src/NameMatchOptionHandler.h
  630. * src/OptionHandler.cc
  631. * src/OptionHandler.h
  632. * src/OptionHandlerFactory.cc
  633. * src/OptionHandlerImpl.h
  634. * src/OptionParser.cc
  635. * src/OptionParser.h
  636. * src/TagContainer.cc: Removed.
  637. * src/TagContainer.h: Removed.
  638. * src/TaggedItem.cc: Removed.
  639. * src/TaggedItem.h: Removed.
  640. * src/main.cc
  641. * src/option_processing.cc
  642. * src/usage_text.h
  643. * src/version_usage.cc
  644. * test/HelpItemTest.cc: Removed.
  645. * test/Makefile.am
  646. * test/Makefile.in
  647. * test/OptionHandlerTest.cc
  648. * test/OptionParserTest.cc
  649. * test/TagContainerTest.cc: Removed.
  650. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  651. Moved `TransferStat stat = ...' to inside the `if' clause.
  652. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  653. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  654. Fixed the bug that a block in a piece is requested when same block is
  655. already requested to the same peer in end game mode.
  656. * src/BtRequestFactory.h
  657. * src/DefaultBtInteractive.cc
  658. * src/DefaultBtRequestFactory.cc
  659. * src/DefaultBtRequestFactory.h
  660. * src/DefaultPieceStorage.cc
  661. * src/DefaultPieceStorage.h
  662. * src/PieceStorage.h
  663. * src/UnknownLengthPieceStorage.cc
  664. * src/UnknownLengthPieceStorage.h
  665. * test/DefaultBtRequestFactoryTest.cc
  666. * test/DefaultPieceStorageTest.cc
  667. * test/MockBtRequestFactory.h
  668. * test/MockPieceStorage.h
  669. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  670. Removed _uploadLength and _downloadLength from PeerSessionResource
  671. and use PeerStat::_sessionUploadLength and
  672. PeerStat::_sessionDownloadLength.
  673. * src/PeerSessionResource.cc
  674. * src/PeerSessionResource.h
  675. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  676. Fixed the bug that prefixLength of split bucket which doesn't include
  677. local node ID is incremented.
  678. * src/DHTBucket.cc
  679. * src/DHTBucket.h
  680. * test/DHTBucketTest.cc
  681. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  682. Added cookies.sqlite to EXTRA_DIST
  683. * test/Makefile.am
  684. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  685. Added Turkish translation. Updated French, German, Russian and
  686. Simplified Chinese translations. Thanks to all translators.
  687. * po/LINGUAS
  688. * po/de.po
  689. * po/fr.po
  690. * po/ru.po
  691. * po/tr.po
  692. * po/zh_CN.po
  693. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  694. Added deliminating text to the beginning of the log so that one can find
  695. where the log starts easily.
  696. * src/main.cc
  697. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  698. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  699. to fix compile error when async DNS is not enabled by configuration.
  700. * src/AbstractCommand.cc
  701. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  702. If establishing conneciton to a server is failed, then mark error on
  703. its ServerStat.
  704. Added the cause of error to log when error event occurred.
  705. Moved message string to message.h for translation.
  706. * src/AbstractCommand.cc
  707. * src/AbstractCommand.h
  708. * src/FtpNegotiationCommand.cc
  709. * src/HttpRequestCommand.cc
  710. * src/PeerAbstractCommand.cc
  711. * src/message.h
  712. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  713. Added the function to get error message from socket.
  714. * src/SocketCore.cc
  715. * src/SocketCore.h
  716. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  717. Added convenient method RequestGroupMan::getOrCreateServerStat()
  718. * src/RequestGroupMan.cc
  719. * src/RequestGroupMan.h
  720. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  721. If error event is received in epoll, then abort download immediately.
  722. * src/AbstractCommand.cc
  723. * src/Command.cc
  724. * src/Command.h
  725. * src/DownloadEngine.cc
  726. * src/PeerAbstractCommand.cc
  727. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  728. Added usage message for --uri-selector, --server-stat-of,
  729. --server-stat-in, --server-stat-timeout options.
  730. * src/HelpItemFactory.cc
  731. * src/usage_text.h
  732. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  733. Added upper limit of FTP response buffer. The current implementation
  734. uses 4096bytes as a limit.
  735. * src/FtpConnection.cc
  736. * src/FtpConnection.h
  737. * test/FtpConnectionTest.cc
  738. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  739. Use non-blocking socket for TCP communication to avoid possible
  740. blocking due to buffer full.
  741. * src/AbstractProxyRequestCommand.cc
  742. * src/FtpConnection.cc
  743. * src/FtpConnection.h
  744. * src/FtpNegotiationCommand.cc
  745. * src/FtpNegotiationCommand.h
  746. * src/HttpConnection.cc
  747. * src/HttpConnection.h
  748. * src/HttpRequestCommand.cc
  749. * src/InitiatorMSEHandshakeCommand.cc
  750. * src/InitiatorMSEHandshakeCommand.h
  751. * src/MSEHandshake.cc
  752. * src/MSEHandshake.h
  753. * src/Makefile.am
  754. * src/PeerConnection.cc
  755. * src/PeerConnection.h
  756. * src/PeerInteractionCommand.cc
  757. * src/PeerListenCommand.cc
  758. * src/ReceiverMSEHandshakeCommand.cc
  759. * src/ReceiverMSEHandshakeCommand.h
  760. * src/SocketBuffer.cc
  761. * src/SocketBuffer.h
  762. * src/SocketCore.cc
  763. * src/SocketCore.h
  764. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  765. Call setStatusRealtime() in constructor.
  766. * src/RealtimeCommand.cc
  767. * src/RealtimeCommand.h
  768. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  769. Call Download::setNoWait(true) to execute newly created command without
  770. a pause.
  771. * src/AbstractCommand.cc
  772. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  773. Added --max-file-not-found=NUM option. If aria2 receives `file not
  774. found' error from HTTP/FTP server NUM times without getting single
  775. bytes of data, then force the download to fail.
  776. Basically aria2 tris all URIs available. So if long list of URIs are
  777. specified in Metalink, then aria2 will take a long time to fail
  778. eventually if all URIs are outdated. This option eases this situation
  779. to limit the number of servers to try.
  780. * src/FtpNegotiationCommand.cc
  781. * src/HelpItemFactory.cc
  782. * src/HttpResponseCommand.cc
  783. * src/OptionHandlerFactory.cc
  784. * src/PeerStat.h
  785. * src/RequestGroup.cc
  786. * src/RequestGroup.h
  787. * src/SegmentMan.cc
  788. * src/SegmentMan.h
  789. * src/option_processing.cc
  790. * src/prefs.cc
  791. * src/prefs.h
  792. * src/usage_text.h
  793. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  794. Fixed the bug that bulkReceiveResponse() reads all received data as a
  795. response even if more than one response is in it.
  796. * src/FtpConnection.cc
  797. * src/FtpConnection.h
  798. * test/FtpConnectionTest.cc
  799. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  800. Merged from stable-0.15
  801. * m4/libcares.m4
  802. Use pkg-config
  803. * m4/sqlite3.m4
  804. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  805. Removed unnecessary if statement.
  806. * src/DefaultPieceStorage.cc (initPieceStorage)
  807. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  808. Added --connect-timeout option to specify connect timeout in seconds.
  809. This option is in effect for HTTP/FTP/proxy server. The timeout for
  810. connecting to BitTorrent peer is not controlled by this option.
  811. * src/AbstractProxyRequestCommand.cc
  812. * src/FtpNegotiationCommand.cc
  813. * src/HelpItemFactory.cc
  814. * src/HttpRequestCommand.cc
  815. * src/OptionHandlerFactory.cc
  816. * src/option_processing.cc
  817. * src/prefs.cc
  818. * src/prefs.h
  819. * src/usage_text.h
  820. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  821. Added help message for -R option.
  822. * src/HelpItemFactory.cc
  823. * src/usage_text.h
  824. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  825. Added the message that the time is in local time zone.
  826. * src/RequestGroup.cc
  827. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  828. Implemented the ability to get timestamp from remote FTP server using
  829. MDTM command described in RFC3659.
  830. * src/FtpConnection.cc
  831. * src/FtpConnection.h
  832. * src/FtpNegotiationCommand.cc
  833. * src/FtpNegotiationCommand.h
  834. * test/FtpConnectionTest.cc
  835. * test/Makefile.am
  836. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  837. Implemented the ability to get timestamp from remote HTTP server and
  838. apply it to local file. To enable this feature, --remote-time option
  839. is added. No usage text has been written yet.
  840. If several servers returns difference timestamp, then aria2 uses latest
  841. one.
  842. * src/CopyDiskAdaptor.cc
  843. * src/CopyDiskAdaptor.h
  844. * src/DirectDiskAdaptor.cc
  845. * src/DirectDiskAdaptor.h
  846. * src/DiskAdaptor.h
  847. * src/File.cc
  848. * src/File.h
  849. * src/HttpHeader.cc
  850. * src/HttpHeader.h
  851. * src/HttpResponse.cc
  852. * src/HttpResponse.h
  853. * src/HttpResponseCommand.cc
  854. * src/HttpResponseCommand.h
  855. * src/MultiDiskAdaptor.cc
  856. * src/MultiDiskAdaptor.h
  857. * src/OptionHandlerFactory.cc
  858. * src/RequestGroup.cc
  859. * src/RequestGroup.h
  860. * src/RequestGroupMan.cc
  861. * src/option_processing.cc
  862. * src/prefs.cc
  863. * src/prefs.h
  864. * test/CopyDiskAdaptorTest.cc
  865. * test/FileTest.cc
  866. * test/Makefile.am
  867. * test/Makefile.in
  868. * test/MultiDiskAdaptorTest.cc
  869. * test/TestUtil.cc
  870. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  871. Fixed the bug that DiskWriterEntry is not created when its
  872. FileEntry.isRequested() is false and it doesn't share a piece with
  873. other FileEntries that are requested. This bug causes segmentation fault
  874. in the end.
  875. * src/MultiDiskAdaptor.cc
  876. * src/MultiDiskAdaptor.h
  877. * src/MultiFileAllocationIterator.cc
  878. * test/MultiDiskAdaptorTest.cc
  879. * test/MultiFileAllocationIteratorTest.cc
  880. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  881. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  882. called if the number of file entries are greater than max open files.
  883. * src/AbstractSingleDiskAdaptor.cc
  884. * src/AbstractSingleDiskAdaptor.h
  885. * src/DiskAdaptor.h
  886. * src/MultiDiskAdaptor.cc
  887. * src/MultiDiskAdaptor.h
  888. * test/MultiDiskAdaptorTest.cc
  889. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  890. Added a constuctor that receives struct timeval.
  891. Added operator<.
  892. * src/TimeA2.cc
  893. * src/TimeA2.h
  894. * test/TimeTest.cc
  895. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  896. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  897. * src/CookieParser.cc
  898. * test/CookieParserTest.cc
  899. * test/HttpResponseTest.cc
  900. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  901. Implmented the functions to parse date.
  902. * src/TimeA2.cc
  903. * src/TimeA2.h
  904. * test/TimeTest.cc
  905. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  906. Added "Firefox3 Cookie" feature to FeatureConfig
  907. * src/FeatureConfig.cc
  908. * src/FeatureConfig.h
  909. * test/FeatureConfigTest.cc
  910. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  911. Bump up version number to 0.16.0b
  912. * configure.ac
  913. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  914. Use pkg-config if is is available.
  915. * m4/openssl.m4
  916. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  917. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  918. * src/BtAnnounce.h
  919. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  920. If an error occurred with a URI, remove identical URI from remaining
  921. URI list because it is likely that same error occurred in the end and it
  922. is waste of time.
  923. * src/AbstractCommand.cc
  924. * src/RequestGroup.cc
  925. * src/RequestGroup.h
  926. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  927. Removed wrong comment.
  928. * src/DefaultPeerStorage.cc
  929. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  930. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  931. Added return value of getpid() to argument of srand() to achieve more
  932. randomized value.
  933. * src/SimpleRandomizer.cc
  934. * src/SimpleRandomizer.h
  935. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  936. Contact tracker frequently when the number of connections are 0 and
  937. download is not finished yet.
  938. * src/ActivePeerConnectionCommand.cc
  939. * src/BtAnnounce.h
  940. * src/DefaultBtAnnounce.cc
  941. * src/DefaultBtAnnounce.h
  942. * test/MockBtAnnounce.h
  943. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  944. Moved threshold values to UTPexExtensionMessage.
  945. * src/DefaultBtInteractive.cc
  946. * src/Peer.cc
  947. * src/Peer.h
  948. * src/UTPexExtensionMessage.cc
  949. * src/UTPexExtensionMessage.h
  950. * test/UTPexExtensionMessageTest.cc
  951. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  952. Added _incoming member to Peer class and made it true if the peer
  953. initiated connection. Don't add those peer to UTPex message.
  954. If extended handshake is received, assign _incoming to false.
  955. * src/DefaultBtInteractive.cc
  956. * src/HandshakeExtensionMessage.cc
  957. * src/Peer.cc
  958. * src/Peer.h
  959. * src/PeerListenCommand.cc
  960. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  961. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  962. Encoding Decoder. Removed size threshold for turning off on the fly
  963. inflation because resulting file may or may not be inflated depending
  964. on the file size and I think it is not expected by users.
  965. This change fixes segmentation fault when Metalink file contains gzipped
  966. file and its filesize is provided.
  967. * src/HttpResponseCommand.cc
  968. * src/HttpResponseCommand.h
  969. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  970. Made Cookie immutable.
  971. * src/Cookie.cc
  972. * src/Cookie.h
  973. * src/CookieParser.cc
  974. * src/CookieParser.h
  975. * src/CookieStorage.cc
  976. * test/CookieParserTest.cc
  977. * test/CookieStorageTest.cc
  978. * test/NsCookieParserTest.cc
  979. * test/Sqlite3MozCookieParserTest.cc
  980. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  981. Removed CookieBox, CookieBoxFactory.
  982. * src/CookieBox.cc
  983. * src/CookieBox.h
  984. * src/CookieBoxFactory.cc
  985. * src/CookieBoxFactory.h
  986. * src/Makefile.am
  987. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  988. Use CookieStorage class instead of CookieBox class.
  989. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  990. * src/AbstractProxyRequestCommand.cc
  991. * src/CookieStorage.cc
  992. * src/DownloadEngine.cc
  993. * src/DownloadEngine.h
  994. * src/HttpConnection.cc
  995. * src/HttpConnection.h
  996. * src/HttpRequest.cc
  997. * src/HttpRequest.h
  998. * src/HttpRequestCommand.cc
  999. * src/HttpResponse.cc
  1000. * src/HttpResponseCommand.cc
  1001. * src/HttpSkipResponseCommand.cc
  1002. * src/Makefile.am
  1003. * src/MultiUrlRequestInfo.cc
  1004. * src/Request.cc
  1005. * src/Request.h
  1006. * src/main.cc
  1007. * test/AllTest.cc
  1008. * test/CookieStorageTest.cc
  1009. * test/CookieTest.cc
  1010. * test/HttpRequestTest.cc
  1011. * test/HttpResponseTest.cc
  1012. * test/Makefile.am
  1013. * test/NsCookieParserTest.cc
  1014. * test/Sqlite3MozCookieParserTest.cc
  1015. * test/nscookietest.txt
  1016. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1017. Updated
  1018. * test/Cookies.sqlite
  1019. * test/nscookietest.txt
  1020. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1021. Added tests for CookieStorage::load()
  1022. * test/CookieStorageTest.cc
  1023. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1024. Added CookieStorage class which is based on RFC2109 and manages cookies
  1025. more strictly than CookieBox and CookieBoxFactory class.
  1026. * src/CookieStorage.cc
  1027. * src/CookieStorage.h
  1028. * src/Cookie.cc
  1029. * src/Cookie.h
  1030. * test/CookieStorageTest.cc
  1031. * test/CookieTest.cc
  1032. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1033. Fixed the bug that commands are created more than the number of pieces.
  1034. * src/RequestGroup.cc
  1035. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1036. Fixed infinite loop bug in FTP when SIZE command failed.
  1037. * src/FtpNegotiationCommand.cc
  1038. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1039. Removed DirectDiskAdaptorTest.h
  1040. * test/Makefile.am
  1041. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1042. Fixed chunk checksum validation cannot detect trailing garbage data.
  1043. BUG#2074141
  1044. * src/AbstractSingleDiskAdaptor.cc
  1045. * src/AbstractSingleDiskAdaptor.h
  1046. * src/CheckIntegrityEntry.cc
  1047. * src/CheckIntegrityEntry.h
  1048. * src/DiskAdaptor.h
  1049. * src/MultiDiskAdaptor.cc
  1050. * src/MultiDiskAdaptor.h
  1051. * src/RequestGroup.cc
  1052. * test/DirectDiskAdaptorTest.cc
  1053. * test/MultiDiskAdaptorTest.cc
  1054. * test/TestUtil.cc
  1055. * test/TestUtil.h
  1056. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1057. Bump up version number of dht.dat file to 3. In version 3 format, time
  1058. is stored in 64bit, network byte order.
  1059. New build can load old format(version 2) but it saves the file in new
  1060. format. It means once you used new build, your dht.dat becomes
  1061. incompatible with older build.
  1062. * src/DHTRoutingTableDeserializer.cc
  1063. * src/DHTRoutingTableSerializer.cc
  1064. * test/DHTRoutingTableSerializerTest.cc
  1065. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1066. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1067. * test/Makefile.am
  1068. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1069. Bump up version number of .aria2 control file to 0001.
  1070. New aria2 can still load version 0000 file but it saves the file in
  1071. version 0001 format. It means that new aria2 can resume download
  1072. started by old aria2 but the opposite is not true.
  1073. * src/DefaultBtProgressInfoFile.cc
  1074. * src/DefaultBtProgressInfoFile.h
  1075. * test/DefaultBtProgressInfoFileTest.cc
  1076. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1077. Added ntoh64 and hton64 as inline functions.
  1078. * src/Util.cc
  1079. * test/UtilTest.cc
  1080. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1081. Added sqlite3 depenency and Firefox3 cookie support.
  1082. * README
  1083. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1084. State that firefox3 cookie is supported explicitly in the usage.
  1085. * src/usage_text.h
  1086. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1087. Externalized message.
  1088. * src/RequestGroupMan.cc
  1089. * src/message.h
  1090. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1091. Save temporary file first and rename to the destination on success.
  1092. Added test cases.
  1093. * src/RequestGroupMan.cc
  1094. * test/RequestGroupManTest.cc
  1095. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1096. Fixed the bug that the number of connected peer is exceeding the limit
  1097. (55 by default) in seeding mode.
  1098. Multiplied 0.8 to _maxUploadSpeedLimit.
  1099. * src/ActivePeerConnectionCommand.cc
  1100. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1101. Clear table item.
  1102. * src/Dictionary.cc
  1103. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1104. Fixed error handling of lseek.
  1105. * src/AbstractDiskWriter.cc
  1106. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1107. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1108. style cookie file.
  1109. * src/usage_text.h
  1110. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1111. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1112. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1113. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1114. * src/Util.cc
  1115. * src/Util.h
  1116. * src/CookieParser.cc
  1117. * test/UtilTest.cc
  1118. * test/CookieParserTest.cc
  1119. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1120. Separate the implementation to load old mozilla format of cookie to
  1121. NsCookieParser class.
  1122. * src/CookieBoxFactory.cc
  1123. * src/CookieBoxFactory.h
  1124. * src/NsCookieParser.cc
  1125. * src/NsCookieParser.h
  1126. * test/NsCookieParserTest.cc
  1127. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1128. Made parse() const
  1129. * src/Sqlite3MozCookieParser.cc
  1130. * src/Sqlite3MozCookieParser.h
  1131. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1132. Added firefox3 cookie support based on the patch submitted by
  1133. tizianomueller.
  1134. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  1135. this functionality.
  1136. * configure.ac
  1137. * m4/sqlite3.m4
  1138. * src/CookieBoxFactory.cc
  1139. * src/CookieBoxFactory.h
  1140. * src/Makefile.am
  1141. * src/Makefile.in
  1142. * src/Sqlite3MozCookieParser.cc
  1143. * src/Sqlite3MozCookieParser.h
  1144. * src/main.cc
  1145. * test/CookieBoxFactoryTest.cc
  1146. * test/Makefile.am
  1147. * test/Makefile.in
  1148. * test/Sqlite3MozCookieParserTest.cc
  1149. * test/badcookies.sqlite
  1150. * test/cookies.sqlite
  1151. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1152. Added Danish and Greek translations.
  1153. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  1154. Great thanks to all translators.
  1155. * po/LINGUAS
  1156. * po/el.po
  1157. * po/da.po
  1158. * po/es.po
  1159. * po/ca.po
  1160. * po/nn.po
  1161. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1162. Fixed man page: --follow-bittorrent should be --follow-torrent
  1163. * doc/aria2c.1.txt
  1164. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1165. Fixed: numCommand is less than the value specified in -C option.
  1166. * src/RequestGroup.cc
  1167. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1168. Fixed occasional assertion failure in PieceSegment.
  1169. Calling PieceStorage::getMissingPiece(size_t) was missing after
  1170. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  1171. creation of duplicate segments and one of the segment was finished then
  1172. assertion failure was caused.
  1173. * src/SegmentMan.cc
  1174. * test/SegmentManTest.cc
  1175. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1176. Added options to load/save the server's performance/status to a file
  1177. and the timeout to drop their data.
  1178. --server-stat-of=FILE specifies the file to which performance data
  1179. is saved.
  1180. --server-stat-if=FILE specifies the file to read previously saved
  1181. by --server-stat-of option. Might be used with --uri-selector=feedback.
  1182. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  1183. TIMEOUT is specified in seconds and the default value is 24hours.
  1184. * src/MultiUrlRequestInfo.cc
  1185. * src/OptionHandlerFactory.cc
  1186. * src/RequestGroupMan.cc
  1187. * src/RequestGroupMan.h
  1188. * src/ServerStatMan.cc
  1189. * src/ServerStatMan.h
  1190. * src/option_processing.cc
  1191. * src/prefs.cc
  1192. * src/prefs.h
  1193. * test/ServerStatManTest.cc
  1194. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1195. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  1196. * src/ServerStatMan.cc
  1197. * src/ServerStatMan.h
  1198. * test/ServerStatManTest.cc
  1199. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1200. Implemented ServerStatMan::load(...) function and its test case.
  1201. * src/ServerStat.cc
  1202. * src/ServerStat.h
  1203. * src/ServerStatMan.cc
  1204. * test/ServerStatManTest.cc
  1205. * test/ServerStatTest.cc
  1206. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1207. Use time_t instead of int32_t. Use int64_t where milli second is
  1208. expected.
  1209. * src/TimeA2.cc
  1210. * src/TimeA2.h
  1211. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1212. Implemented ServerStatMan::save(...) function and its test case.
  1213. * src/ServerStat.cc
  1214. * src/ServerStat.h
  1215. * src/ServerStatMan.cc
  1216. * src/ServerStatMan.h
  1217. * test/ServerStatManTest.cc
  1218. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1219. Now aria2 uses name attribute in Metalink as local filename in
  1220. BitTorrent downloads. BUG#2033999
  1221. * src/BtContext.h
  1222. * src/BtDependency.cc
  1223. * src/DefaultBtContext.cc
  1224. * src/DefaultBtContext.h
  1225. * src/SingleFileDownloadContext.cc
  1226. * src/SingleFileDownloadContext.h
  1227. * test/BtDependencyTest.cc
  1228. * test/DefaultBtContextTest.cc
  1229. * test/MockBtContext.h
  1230. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1231. Added AC_C_BIGENDIAN
  1232. * src/configure.ac
  1233. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1234. Limited numCommand less than or equal to the number of piece.
  1235. * src/RequestGroup.cc
  1236. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1237. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  1238. directive.
  1239. * test/DefaultPieceStorageTest.cc
  1240. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1241. Fixed memory leak in test code
  1242. * test/AnnounceListTest.cc
  1243. * test/DefaultPeerListProcessorTest.cc
  1244. * test/DefaultPeerStorageTest.cc
  1245. * test/MetaFileUtilTest.cc
  1246. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1247. Fixed wrong argument passing to BitfieldMan::isBitSet()
  1248. * src/DefaultPieceStorage.cc
  1249. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1250. Initialized _directIOAllowed
  1251. * src/MultiDiskAdaptor.cc
  1252. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1253. Fixed memory leak
  1254. * src/GZipDecoder.cc
  1255. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1256. Fixed memory leak
  1257. * src/MetalinkParserStateMachine.cc
  1258. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1259. Fixed memory leak
  1260. * src/Dictionary.cc
  1261. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1262. Fixed memory leak
  1263. * src/IteratableChunkChecksumValidator.h
  1264. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1265. Fixed unmatched malloc/free.
  1266. * src/IteratableChunkChecksumValidator.cc
  1267. * src/IteratableChecksumValidator.cc
  1268. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1269. Removed max chunk size check. This change fixes BUG#2040169
  1270. * src/ChunkedDecoder.cc
  1271. * src/ChunkedDecoder.h
  1272. * test/ChunkedDecoderTest.cc
  1273. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1274. Implemented download speed based URI selection algorithm.
  1275. Introduced new option --uri-selector.
  1276. If --uri-selector=feedback is given, aria2 uses download speed observed
  1277. in the previous downloads and chooses fastest server in the URI list.
  1278. Currently at most 10 URIs are considered to introduce randomeness for
  1279. finding better servers. The speed is average download speed in the
  1280. downloads.
  1281. On the other hand, if --uri-selector=inorder is given, which is default,
  1282. URI is tried in order in URI list.
  1283. The usage text for the new option has not been written yet.
  1284. * src/AbstractCommand.cc
  1285. * src/DownloadCommand.cc
  1286. * src/DownloadEngine.cc
  1287. * src/DownloadEngineFactory.cc
  1288. * src/InOrderURISelector.cc
  1289. * src/InOrderURISelector.h
  1290. * src/OptionHandlerFactory.cc
  1291. * src/PeerStat.h
  1292. * src/RequestGroup.cc
  1293. * src/RequestGroup.h
  1294. * src/RequestGroupMan.cc
  1295. * src/RequestGroupMan.h
  1296. * src/SegmentMan.cc
  1297. * src/SegmentMan.h
  1298. * src/ServerStat.cc
  1299. * src/ServerStat.h
  1300. * src/ServerStatMan.cc
  1301. * src/ServerStatMan.h
  1302. * src/ServerStatURISelector.cc
  1303. * src/ServerStatURISelector.h
  1304. * src/URISelector.h
  1305. * src/option_processing.cc
  1306. * src/prefs.cc
  1307. * src/prefs.h
  1308. * test/InOrderURISelectorTest.cc
  1309. * test/RequestGroupManTest.cc
  1310. * test/ServerStatManTest.cc
  1311. * test/ServerStatURISelectorTest.cc
  1312. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1313. * Release 0.15.1+2
  1314. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1315. Bump up version number to 0.15.1+2
  1316. * configure.ac
  1317. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1318. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  1319. * m4/aria2_arg.m4
  1320. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1321. * Release 0.15.1+1
  1322. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1323. Bump up version number to 0.15.1+1
  1324. * configure.ac
  1325. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1326. Fixed the bug that causes segmentaion fault when resuming download
  1327. using metalink without size tag. Reproducible only using HTTP URI.
  1328. * src/HttpResponseCommand.cc
  1329. * src/FtpNegotiationCommand.cc
  1330. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1331. * Release 0.15.1
  1332. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1333. Updated Bulgarian and French translations, thanks to all translators.
  1334. * po/bg.po
  1335. * po/fr.po
  1336. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1337. Bump up version number to 0.15.1
  1338. * configure.ac
  1339. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1340. Avoid repeated call of gettimeofday() when calculating speed.
  1341. * src/SpeedCalc.cc
  1342. * src/SpeedCalc.h
  1343. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1344. Removed writable check when socket's send buffer is full in BitTorrent
  1345. downloads to lower CPU usage.
  1346. * src/PeerInteractionCommand.cc
  1347. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1348. Fixed broken gzip inflation.
  1349. Turn off segmented downloading if gzip content is smaller than or equal
  1350. to 1MiB and inflate the data on the fly, because HTTP response header
  1351. doesn't contain the length of inflated file we can't determin where
  1352. the chunk of data should be written.
  1353. On the other hand, if gzip content is larger than 1MB, then turn off
  1354. on the fly inflation, because some servers returns "content-type: gzip"
  1355. for *.tgz, *.gz files.
  1356. * src/DownloadCommand.cc
  1357. * src/HttpResponseCommand.cc
  1358. * src/HttpResponseCommand.h
  1359. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1360. Applied tizianomueller's patch to fix compile error.
  1361. * test/BitfieldManTest.cc
  1362. * test/BtRequestMessageTest.cc
  1363. * test/DefaultBtContextTest.cc
  1364. * test/DefaultDiskWriterTest.cc
  1365. * test/DefaultPieceStorageTest.cc
  1366. * test/HttpHeaderProcessorTest.cc
  1367. * test/HttpResponseTest.cc
  1368. * test/Metalink2RequestGroupTest.cc
  1369. * test/MetalinkParserControllerTest.cc
  1370. * test/MetalinkProcessorTest.cc
  1371. * test/PeerSessionResourceTest.cc
  1372. * test/UtilTest.cc
  1373. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1374. * Release 0.15.0
  1375. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1376. Reordered src files in POTFILES.in so that usage text appears first.
  1377. * po/POTFILES.in
  1378. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1379. Bump up version number to 0.15.0
  1380. * configure.ac
  1381. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1382. Added Bulgarian translation.
  1383. Updated Catalan, Spanish, French and Japanese translations.
  1384. Thanks to all translators.
  1385. * po/LINGUAS
  1386. * po/bg.po
  1387. * po/ca.po
  1388. * po/es.po
  1389. * po/fr.po
  1390. * po/ja.po
  1391. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1392. Updated feature list. Added libz for dependency section.
  1393. Added a description about unit testing using CppUnit.
  1394. * README
  1395. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1396. Added a test for libz. Quoted where it is necessary.
  1397. * build_test.sh
  1398. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1399. Added GZip to `Enabled Features' list.
  1400. * src/FeatureConfig.cc
  1401. * src/FeatureConfig.h
  1402. * test/FeatureConfigTest.cc
  1403. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1404. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1405. the transfer has not yet started.
  1406. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1407. * src/SegmentMan.cc
  1408. * src/SegmentMan.h
  1409. * test/SegmentManTest.cc
  1410. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1411. Cache last calculated average download/upload speed.
  1412. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1413. cached value.
  1414. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1415. * src/PeerStat.h
  1416. * src/SpeedCalc.cc
  1417. * src/SpeedCalc.h
  1418. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1419. Call parseUrl directly.
  1420. * src/Request.cc (resetUrl)
  1421. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1422. Supported absolute/relative path in Location header field.
  1423. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1424. * src/HttpHeader.cc
  1425. * src/HttpHeader.h
  1426. * src/HttpResponse.cc
  1427. * src/HttpSkipResponseCommand.cc
  1428. * src/Request.cc
  1429. * test/HttpHeaderTest.cc
  1430. * test/HttpResponseTest.cc
  1431. * test/RequestTest.cc
  1432. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1433. Changed help text for --load-cookie option.
  1434. * doc/aria2c.1.txt
  1435. * src/usage_text.h
  1436. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1437. Regenerated test/Makefile.in to remove stale ChangeLog.
  1438. * test/Makefile.in
  1439. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1440. Updated po files.
  1441. * po/aria2c.pot
  1442. * po/*.po
  1443. * po/*.gmo
  1444. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1445. Bump up version number to 0.15.0b
  1446. * configure.ac
  1447. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1448. Externalize messages.
  1449. * src/RequestGroupMan.cc
  1450. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1451. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1452. Use File::exists() instead of File::isFile() to allow non-regular file
  1453. such as block special files.
  1454. * src/AbstractDiskWriter.cc
  1455. * src/MultiDiskWriter.cc
  1456. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1457. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1458. * src/gai_strerror.h
  1459. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1460. Fixed compile error. Thanks gknauf for the patch.
  1461. * src/asctime_r.c
  1462. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1463. Included asctime_r.h from a2time.h.
  1464. * src/a2time.h
  1465. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1466. Added a message "aria2 doesn't verify signature" to log message when
  1467. signature file is saved.
  1468. * src/RequestGroupMan.cc
  1469. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1470. Added the ability to save signature when download is completed if
  1471. signature is available. The filename of signature file is the path to
  1472. download file followed by ".sig". If it already exists, then signature
  1473. will not be saved.
  1474. * src/RequestGroupMan.cc
  1475. * src/Signature.cc
  1476. * test/SignatureTest.cc
  1477. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1478. Updated the descriptions for --bt-seed-unverified.
  1479. * doc/aria2c.1
  1480. * doc/aria2c.1.html
  1481. * doc/aria2c.1.txt
  1482. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1483. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1484. that this is not going to verify files using piece hashes.
  1485. * src/HelpItemFactory.cc
  1486. * src/OptionHandlerFactory.cc
  1487. * src/RequestGroup.cc
  1488. * src/option_processing.cc
  1489. * src/prefs.cc
  1490. * src/prefs.h
  1491. * src/usage_text.h
  1492. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1493. Added the ability to retrieve signature from Metalink file.
  1494. A retrieved signature is stored in Signature class and it is held by
  1495. DownloadContext class. Note that aria2 doesn't verify signature.
  1496. * src/DownloadContext.cc
  1497. * src/DownloadContext.h
  1498. * src/Makefile.am
  1499. * src/Makefile.in
  1500. * src/Metalink2RequestGroup.cc
  1501. * src/MetalinkEntry.cc
  1502. * src/MetalinkEntry.h
  1503. * src/MetalinkParserController.cc
  1504. * src/MetalinkParserController.h
  1505. * src/MetalinkParserStateMachine.cc
  1506. * src/MetalinkParserStateMachine.h
  1507. * src/Signature.cc
  1508. * src/Signature.h
  1509. * src/SignatureMetalinkParserState.cc
  1510. * src/SignatureMetalinkParserState.h
  1511. * src/VerificationMetalinkParserState.cc
  1512. * src/VerificationMetalinkParserState.h
  1513. * test/Metalink2RequestGroupTest.cc
  1514. * test/MetalinkParserControllerTest.cc
  1515. * test/MetalinkProcessorTest.cc
  1516. * test/test.xml
  1517. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1518. Close DiskAdaptor after renaming file.
  1519. * src/RequestGroup.cc
  1520. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1521. Corrected indentation
  1522. * src/DefaultBtProgressInfoFile.cc
  1523. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1524. Moved the calls of std::ios::exceptions() inside of try-catch block
  1525. because if an error occurred in constructor of std::fstream, then
  1526. exception is thrown immediately when std::ios::exceptions() is called
  1527. which results unhandled exception and aria2c aborts.
  1528. * src/DefaultBtProgressInfoFile.cc
  1529. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1530. Added the test for the previous change in DefaultBtContext.cc
  1531. * test/DefaultBtContextTest.cc
  1532. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1533. Fixed the bug that causes infinite loop when the number of pieces are
  1534. fewer than allowed fast set size which is 10 by default.
  1535. * src/DefaultBtContext.cc
  1536. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1537. Updated the descriptions for -j, -s. Added --bt-seed.
  1538. * doc/aria2c.1
  1539. * doc/aria2c.1.html
  1540. * doc/aria2c.1.txt
  1541. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1542. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1543. aria2 seeds previously downloaded files without validating piece hashs.
  1544. * src/HelpItemFactory.cc
  1545. * src/OptionHandlerFactory.cc
  1546. * src/RequestGroup.cc
  1547. * src/option_processing.cc
  1548. * src/prefs.cc
  1549. * src/prefs.h
  1550. * src/usage_text.h
  1551. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1552. Updated DESCRIPTION of man page.
  1553. * doc/aria2c.1
  1554. * doc/aria2c.1.html
  1555. * doc/aria2c.1.txt
  1556. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1557. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1558. Don't define `struct addrinfo' when __sun is defined.
  1559. * src/getaddrinfo.h
  1560. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1561. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1562. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1563. second argument is of type `struct _stati64'. Otherwise it is defined as
  1564. `struct stat'.
  1565. * src/AbstractDiskWriter.cc
  1566. * src/File.cc
  1567. * src/File.h
  1568. * src/a2io.h
  1569. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1570. Fixed the compile error in hurd-i386
  1571. See the original bug report:
  1572. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1573. * src/a2io.h
  1574. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1575. Code cleanup.
  1576. * src/PeerAbstractCommand.cc
  1577. * src/PeerAbstractCommand.h
  1578. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1579. Removed TransferEncoding.
  1580. * src/DownloadCommand.cc
  1581. * src/DownloadCommand.h
  1582. * src/HttpResponseCommand.cc
  1583. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1584. Updated po files.
  1585. * po/aria2c.pot
  1586. * po/*.po
  1587. * po/*.gmo
  1588. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1589. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1590. * src/A2STR.cc
  1591. * src/A2STR.h
  1592. * src/ChunkedDecoder.cc
  1593. * src/ChunkedDecoder.h
  1594. * src/ChunkedEncoding.cc: Removed
  1595. * src/ChunkedEncoding.h: Removed
  1596. * src/DownloadCommand.cc
  1597. * src/DownloadCommand.h
  1598. * src/HttpDownloadCommand.cc
  1599. * src/HttpResponse.cc
  1600. * src/HttpResponse.h
  1601. * src/HttpResponseCommand.cc
  1602. * src/HttpSkipResponseCommand.cc
  1603. * src/HttpSkipResponseCommand.h
  1604. * src/Makefile.am
  1605. * src/TransferEncoding.h: Removed
  1606. * test/ChunkedDecoderTest.cc
  1607. * test/ChunkedEncodingTest.cc: Removed
  1608. * test/HttpResponseTest.cc
  1609. * test/Makefile.am
  1610. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1611. Use append instead of insert.
  1612. * src/GZipDecoder.cc
  1613. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1614. Updated doc
  1615. * src/Decoder.h
  1616. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1617. Updated usage text for -s option.
  1618. * src/usage_text.h
  1619. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1620. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1621. * src/Request.cc
  1622. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1623. Cleaned up configure.ac.
  1624. * configure.ac
  1625. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1626. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1627. AC_ARG_ENABLE.
  1628. * configure.ac
  1629. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1630. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1631. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1632. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1633. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1634. fly and writes decoded data to a local disk.
  1635. * README
  1636. * README.html
  1637. * configure.ac
  1638. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1639. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1640. * m4/libz.m4
  1641. * src/Decoder.h
  1642. * src/DownloadCommand.cc
  1643. * src/DownloadCommand.h
  1644. * src/Exception.h
  1645. * src/GZipDecoder.cc
  1646. * src/GZipDecoder.h
  1647. * src/HttpHeader.cc
  1648. * src/HttpHeader.h
  1649. * src/HttpRequest.cc
  1650. * src/HttpRequest.h
  1651. * src/HttpResponse.cc
  1652. * src/HttpResponse.h
  1653. * src/HttpResponseCommand.cc
  1654. * src/Makefile.am
  1655. * test/GZipDecoderTest.cc
  1656. * test/HttpRequestTest.cc
  1657. * test/HttpResponseTest.cc
  1658. * test/Makefile.am
  1659. * test/Makefile.in
  1660. * test/gzip_decode_test.gz
  1661. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1662. Clarified usage of -j option.
  1663. * src/usage_text.h
  1664. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1665. Disabled getting size from the response of RETR.
  1666. If SIZE command failed, then disable resuming and segmented downloading.
  1667. * src/FtpConnection.cc
  1668. * src/FtpConnection.h
  1669. * src/FtpNegotiationCommand.cc
  1670. * src/FtpNegotiationCommand.h
  1671. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1672. Use digits to find first byte of file size, which makes the intention
  1673. of the code clearer.
  1674. * src/FtpConnection.cc
  1675. Don't call validateTotalLength() when size is 0.
  1676. * src/FtpNegotiationCommand.cc
  1677. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1678. Updated po files.
  1679. * po/aria2c.pot
  1680. * po/*.gmo
  1681. * po/*.po
  1682. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1683. Clarified usage text for --split option.
  1684. * src/usage_text.h
  1685. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1686. Bump up version number to 0.15.0dev. "dev" means "development"
  1687. version, which means I started the development of the next release!
  1688. * src/configure.ac
  1689. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1690. If FTP server returns negative response with REST raw command and
  1691. requested range is not 0, throw exception. If requested range is 0,
  1692. continue download a file from 0 byte.
  1693. * src/FtpNegotiationCommand.cc
  1694. * src/FtpNegotiationCommand.h
  1695. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1696. Supported FTP server which don't recognize SIZE raw command.
  1697. If SIZE raw command is failed, aria2 will try to get file size
  1698. from the response of RETR raw command. If both attempts are failed,
  1699. then resuming and segmented downloading are disabled.
  1700. * src/FtpConnection.cc
  1701. * src/FtpConnection.h
  1702. * src/FtpNegotiationCommand.cc
  1703. * src/FtpNegotiationCommand.h
  1704. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1705. * Release 0.14.0+1
  1706. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1707. Bump up version number to 0.14.0+1
  1708. * src/configure.ac
  1709. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1710. Fixed the code that refers static member variable from non-static
  1711. context.
  1712. * src/DefaultPeerStorage.cc
  1713. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1714. * Release 0.14.0
  1715. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1716. Added build test script
  1717. * build_test.sh
  1718. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1719. Updated ja.po
  1720. * src/ja.po
  1721. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1722. Bump up version number to 0.14.0
  1723. * src/configure.ac
  1724. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1725. Updated ja.po and fr.po. Great thanks for french translators and
  1726. Sebastien WILLEMIJNS.
  1727. * po/fr.po
  1728. * po/ja.po
  1729. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1730. Added configure option to enable/disable epoll support.
  1731. * configure.ac
  1732. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1733. Updated man page.
  1734. * doc/aria2c.1.txt
  1735. * doc/aria2c.1
  1736. * doc/aria2c.1.html
  1737. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1738. Added missing default value '5' to the usage of --split option.
  1739. * src/HelpItemFactory.cc
  1740. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1741. Filled up pieces based on the number of missing blocks, rather than
  1742. simplay the number of piece * block length.
  1743. * src/BtRequestFactory.h
  1744. * src/DefaultBtInteractive.cc
  1745. * src/DefaultBtInteractive.h
  1746. * src/DefaultBtRequestFactory.cc
  1747. * src/DefaultBtRequestFactory.h
  1748. * src/Piece.cc
  1749. * src/Piece.h
  1750. * test/BitfieldManTest.cc
  1751. * test/DefaultBtRequestFactoryTest.cc
  1752. * test/MockBtRequestFactory.h
  1753. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1754. Made _epEvents a member variable.
  1755. * src/DownloadEngine.cc
  1756. * src/DownloadEngine.h
  1757. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1758. Cancel download if http redirect is bounded more than 20 times.
  1759. * src/AbstractCommand.cc
  1760. * src/HttpSkipResponseCommand.cc
  1761. * src/Request.cc
  1762. * src/Request.h
  1763. * test/RequestTest.cc
  1764. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1765. Fixed unhandled exception(removed keyword `new').
  1766. * src/SocketCore.cc (initEPOLL)
  1767. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1768. Removed visit(const MetaEntry*)
  1769. * src/MetaEntryVisitor.h:
  1770. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1771. and made them virtual.
  1772. * src/BencodeVisitor.h
  1773. * src/BencodeVisitor.cc
  1774. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1775. Updated po files.
  1776. * po/aria2c.pot
  1777. * po/*.po
  1778. * po/*.gmo
  1779. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1780. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1781. the number of socket to watch out.
  1782. * src/PeerInteractionCommand.cc
  1783. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1784. When there is not enough space in disk when writing a chunk of data,
  1785. aria2 now prints the message to the console to warn user and aborts
  1786. its download. Not all downloads are canceled because some downloads
  1787. may use another disk or partition. BUG#1640332
  1788. * src/AbstractDiskWriter.cc
  1789. * src/PeerAbstractCommand.cc
  1790. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1791. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1792. setHaltRequested(true) to cancel download.
  1793. * src/PeerInteractionCommand.h
  1794. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1795. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1796. socket from int to sock_t as sockets are unsigned in Windows.
  1797. For AsyncNameResolver, DownloadEngine, I did additional modification
  1798. for the portion of the code changed according to epoll support.
  1799. I defined sock_t in a2netcompat.h to use sock_t without including
  1800. SocketCore.h.
  1801. * src/AsyncNameResolver.cc
  1802. * src/AsyncNameResolver.h
  1803. * src/DownloadEngine.cc
  1804. * src/DownloadEngine.h
  1805. * src/SocketCore.cc
  1806. * src/SocketCore.h
  1807. * src/a2netcompat.h
  1808. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1809. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1810. changes in the patch were applied.
  1811. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1812. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1813. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1814. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1815. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1816. a2io.h and common.h were modified.
  1817. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1818. MinGW.
  1819. * src/common.h: Changed off_t to 64 bit in MinGW.
  1820. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1821. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1822. only a2netcompat.h is modified.
  1823. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1824. directives.
  1825. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1826. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1827. only gai_strerror.h is modified.
  1828. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1829. winsock errors in MinGW.
  1830. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1831. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1832. follow sources are applied.
  1833. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1834. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1835. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1836. I included locale.h from Platform.cc.
  1837. * src/main.cc: Moved common setup/teardown code to Platform class.
  1838. * test/AllTest.cc: Use Platform class.
  1839. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1840. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1841. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1842. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1843. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1844. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1845. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1846. aria2-0.13.2+1-mingw-2.patch.
  1847. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1848. systems which don't have termious.h. I moved the directive inside of
  1849. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1850. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1851. anyway.
  1852. * src/asctime_r.h
  1853. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1854. I added 2nd argument to the prototype declaration.
  1855. * src/StringFormat.cc: Get rid of vasprintf.
  1856. * src/getaddrinfo.h: Fixed constants.
  1857. * configure.ac: Added the check for asctime_r function.
  1858. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1859. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1860. Added writable test for Socket when the sending message is in progress.
  1861. Usually the sending message is piece message. Without wriable check,
  1862. upload latency is dropped to more than 1sec.
  1863. * src/PeerInteractionCommand.cc
  1864. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1865. Create only requested files and files which shares a piece with
  1866. requested file in multi-torrent downloads. Directory structures are
  1867. also created in the same rule.
  1868. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1869. DiskWriterEntry as in the previous implementation.
  1870. * src/MultiDiskWriter.cc
  1871. * src/MultiFileAllocationIterator.cc
  1872. * src/MultiFileAllocationIterator.h
  1873. * test/MultiFileAllocationIteratorTest.cc
  1874. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Commented out -lprofiler
  1876. * src/Makefile.am
  1877. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1878. Bump up version number to 0.14.0b.
  1879. * src/configure.ac
  1880. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1881. Actively establish connection to peers in seeding, when peer cache
  1882. is not full and max upload speed limit is not reached.
  1883. * src/ActivePeerConnectionCommand.cc
  1884. * src/ActivePeerConnectionCommand.h
  1885. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1886. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1887. to make room more fleshy, recently found peers.
  1888. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1889. it.
  1890. * src/DefaultPeerStorage.cc
  1891. * test/DefaultPeerStorageTest.cc
  1892. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1893. Returns cached data only when the previous receiveHandshake() is called
  1894. with peek = true.
  1895. * src/PeerConnection.cc (receiveHandshake)
  1896. * src/PeerConnection.h (receiveHandshake)
  1897. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1898. Changed default value of -s option from 1 to 5.
  1899. Also max value of -s option is changed from 5 to 16.
  1900. * src/HelpItemFactory.cc
  1901. * src/OptionHandlerFactory.cc
  1902. * src/option_processing.cc
  1903. * src/usage_text.h
  1904. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1905. Changed -s options behavior. Now it means the number of connections
  1906. made simultaneously in each http/ftp download.
  1907. If 1 URL is specified, the behavior is the same with old implementation.
  1908. If -s N is given and more than N URLs are specified, first N URLs are
  1909. used and remaining URLs are used for backup. If less than N URLs are
  1910. specified, some of URLs are used more than once so that totally N
  1911. connections are made simultaneously.
  1912. * src/main.cc
  1913. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1914. Included missing iosfwd or ostream header.
  1915. * src/RequestGroupMan.cc
  1916. * src/TaggedItem.cc
  1917. * src/TaggedItem.h
  1918. * src/Util.cc
  1919. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1920. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  1921. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  1922. * src/HttpConnection.cc: Included missing sstream.
  1923. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1924. Added --bt-max-open-files option.
  1925. * src/DefaultPieceStorage.cc
  1926. * src/HelpItemFactory.cc
  1927. * src/MultiDiskAdaptor.cc
  1928. * src/MultiDiskAdaptor.h
  1929. * src/OptionHandlerFactory.cc
  1930. * src/option_processing.cc
  1931. * src/prefs.cc
  1932. * src/prefs.h
  1933. * src/usage_text.h
  1934. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1935. Fixed the bug that aria2 aborts when a path to a directory is given
  1936. in command-line.
  1937. * src/ProtocolDetector.cc
  1938. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1939. Limited the number files opened in each BitTorrent download. The default
  1940. value is 100. The option to change this value will be added.
  1941. * src/MultiDiskAdaptor.cc
  1942. * src/MultiDiskAdaptor.h
  1943. * src/MultiFileAllocationIterator.cc
  1944. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1945. Fixed the bug that HTTP downloads don't start with old libraries.
  1946. * src/HttpHeaderProcessor.cc
  1947. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1948. Use empty() instead of size() > 0.
  1949. * src/HttpConnection.cc
  1950. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1951. Drop connection if the incoming peer ID is the same with localhost's
  1952. one. The previous implementation drops connection when incoming peer's
  1953. IP address is the same with localhost's one.
  1954. * src/PeerListenCommand.cc
  1955. * src/DefaultBtInteractive.cc
  1956. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1957. Returns cached data without checking whether socket is readable
  1958. if the cache is available.
  1959. * src/PeerConnection.cc (receiveHandshake)
  1960. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1961. Included stdint.h
  1962. * src/common.h
  1963. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1964. Removed duplicate HAVE_GETTIMEOFDAY
  1965. * src/Makefile.am
  1966. * src/Makefile.in
  1967. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1968. Use interval as a minInterval when minInterval is not supplied.
  1969. * src/DefaultBtAnnounce.cc
  1970. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1971. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  1972. attempt is failed, then 2nd attempt get kicked out more quickly.
  1973. And it is now static const member of DefaultBtAnnounce.
  1974. * src/DefaultBtAnnounce.h
  1975. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1976. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  1977. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  1978. * src/ActivePeerConnectionCommand.cc
  1979. * src/BtConstants.h
  1980. * src/BtRuntime.h
  1981. * src/DHTGetPeersCommand.cc
  1982. * src/DefaultBtAnnounce.cc
  1983. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  1984. BtRuntime::MAX_PEERS.
  1985. * src/DefaultPeerStorage.h
  1986. * src/InitiatorMSEHandshakeCommand.cc
  1987. * src/PeerInitiateConnectionCommand.cc
  1988. * src/PeerInteractionCommand.cc
  1989. * src/PeerReceiveHandshakeCommand.cc
  1990. * src/TrackerWatcherCommand.cc
  1991. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1992. Always Connect to _numNewConnection
  1993. * src/ActivePeerConnectionCommand.cc
  1994. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1995. Made `begin' unsigned int.
  1996. * src/GrowSegment.h
  1997. * src/Piece.cc
  1998. * src/Piece.h
  1999. * src/PiecedSegment.cc
  2000. * src/PiecedSegment.h
  2001. * src/Segment.h
  2002. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2003. Calculate piece hash when data is arrived if the data is arrived in
  2004. order. This removes additional read operation for hash calculation.
  2005. If the data is arrived in out of order, the hash is calucated when the
  2006. piece is completed. This is the same behavior as the old implementation.
  2007. * src/BtPieceMessage.cc
  2008. * src/DefaultBtProgressInfoFile.cc
  2009. * src/DefaultPieceStorage.cc
  2010. * src/DownloadCommand.cc
  2011. * src/DownloadCommand.h
  2012. * src/DownloadEngine.cc
  2013. * src/GrowSegment.cc
  2014. * src/GrowSegment.h
  2015. * src/Piece.cc
  2016. * src/Piece.h
  2017. * src/PiecedSegment.cc
  2018. * src/PiecedSegment.h
  2019. * src/Segment.h
  2020. * test/PieceTest.cc
  2021. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2022. Try to keep the ordering of outgoing piece message.
  2023. * src/DefaultBtMessageDispatcher.cc
  2024. (DefaultBtMessageDispatcher::sendMessages)
  2025. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2026. Fixed busy loop when error/hup epoll events occur.
  2027. * src/AbstractCommand.cc
  2028. * src/PeerAbstractCommand.cc
  2029. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2030. Added --bt-request-peer-speed-limit option, which was a constant
  2031. SLOW_SPEED_THRESHOLD.
  2032. * src/ActivePeerConnectionCommand.cc
  2033. * src/ActivePeerConnectionCommand.h
  2034. * src/BtConstants.h
  2035. * src/HelpItemFactory.cc
  2036. * src/OptionHandlerFactory.cc
  2037. * src/PeerReceiveHandshakeCommand.cc
  2038. * src/option_processing.cc
  2039. * src/prefs.cc
  2040. * src/prefs.h
  2041. * src/usage_text.h
  2042. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2043. Removed repeated call of getTopDirPath(). Instead, call it once and
  2044. cache the result.
  2045. * src/MultiDiskAdaptor.cc
  2046. * src/MultiDiskAdaptor.h
  2047. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2048. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2049. Fixed compile error on debian etch.
  2050. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2051. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2052. it is undefined.
  2053. * src/Util.cc (ULLONG_MAX)
  2054. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2055. Added epoll support. Use epoll if it is available. If not, use select.
  2056. When async dns is enabled in compile time, epoll support is enabled
  2057. only when aria2 is built with c-ares. This condition statement is
  2058. defined in a2io.h.
  2059. Currently aria2 supports both c-ares and ares, but ares is maintained
  2060. for quite a while and debian already has c-ares package, ares support
  2061. will be dropped in the future version.
  2062. * configure.ac
  2063. * src/AbstractCommand.cc
  2064. * src/AsyncNameResolver.cc
  2065. * src/AsyncNameResolver.h
  2066. * src/Command.cc
  2067. * src/Command.h
  2068. * src/DownloadEngine.cc
  2069. * src/DownloadEngine.h
  2070. * src/PeerAbstractCommand.cc
  2071. * src/SocketCore.cc
  2072. * src/SocketCore.h
  2073. * src/a2io.h
  2074. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2075. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2076. directive.
  2077. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2078. Do not do write operation to /dev/null file.
  2079. * src/LogFactory.cc
  2080. * src/SimpleLogger.cc
  2081. Replaced vasprintf with vsnprintf
  2082. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2083. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2084. * src/BtRequestMessage.cc
  2085. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2086. for segmentation fault caused by previous commit.
  2087. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2088. Reduced the usage of gettimeofday().
  2089. * src/DefaultBtMessageDispatcher.cc
  2090. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2091. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2092. * src/RequestSlot.cc
  2093. * src/RequestSlot.h
  2094. (RequestSlot::isTimeout)
  2095. Made RequestSlot have a reference to Piece object to avoid find
  2096. Piece repeatedly.
  2097. * src/DefaultBtMessageDispatcher.cc
  2098. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2099. * src/RequestSlot.cc
  2100. * src/RequestSlot.h
  2101. (RequestSlot::getPiece)
  2102. * test/DefaultBtMessageDispatcherTest.cc
  2103. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2104. * src/TimeA2.cc
  2105. * src/TimeA2.h
  2106. (Time::difference): New function.
  2107. (Time::elapsed): Done optimization.
  2108. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2109. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2110. directive.
  2111. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2112. * src/option_processing.cc: Added missing `defined' keyword to #if
  2113. directive.
  2114. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2115. Bump up version number to 0.13.2+1
  2116. * src/configure.ac
  2117. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2118. Refactored broken outstanding piece handling.
  2119. * src/DefaultPieceStorage.cc
  2120. * src/DefaultPieceStorage.h
  2121. * src/Piece.cc
  2122. * src/Piece.h
  2123. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2124. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2125. name collision of static variable and predefined macro.
  2126. * src/BtContext.cc
  2127. * src/BtContext.h
  2128. * src/CookieBoxFactory.cc
  2129. * src/CookieBoxFactory.h
  2130. * src/CookieParser.cc
  2131. * src/CookieParser.h
  2132. * src/DefaultBtContext.cc
  2133. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2134. * src/RequestGroup.cc
  2135. (RequestGroup::createInitialCommand): Use empty() instead of size().
  2136. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2137. * Release 0.13.2
  2138. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2139. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  2140. * po/fr.po
  2141. * po/ja.po
  2142. * po/aria2c.pot
  2143. * po/*.po
  2144. * po/*.gmo
  2145. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2146. Bump up version number to 0.13.2
  2147. * src/configure.ac
  2148. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2149. Refactord.
  2150. * src/RequestGroupMan.cc
  2151. (removeStoppedGroup)
  2152. (fillRequestGroupFromReserver)
  2153. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2154. Fixed compile error on Ubuntu.
  2155. * src/BtPieceMessage.cc
  2156. * src/MessageDigestHelper.cc
  2157. * src/Util.cc
  2158. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2159. Fixed compile error when configured with --disable-bittorrent
  2160. * test/DownloadHandlerFactoryTest.cc
  2161. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2162. Done make update-po
  2163. * po/aria2c.pot
  2164. * po/*.po
  2165. * po/*.gmo
  2166. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2167. Bump up version number to 0.13.2rc.
  2168. * src/configure.ac
  2169. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2170. Made option name bold. Updated SYNOPSIS to make it more readable.
  2171. * doc/aria2c.1.txt
  2172. * doc/aria2c.1
  2173. * doc/aria2c.1.html
  2174. * src/version_usage.cc
  2175. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2176. Refactored. Use std::string instead of size and char*.
  2177. * Data.cc
  2178. * Data.h
  2179. * test/Data.cc
  2180. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2181. Added trimSelf(). Rewritten trim() to use trimSelf().
  2182. * Util.cc
  2183. * Util.h
  2184. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2185. * src/ChunkChecksum.h (getChecksum): Return const reference.
  2186. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2187. Fixed compile error when configured with --disable-metalink.
  2188. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  2189. * test/FeatureConfigTest.cc
  2190. * test/DownloadHandlerFactoryTest.cc
  2191. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2192. Fixed compile error when configured with --without-gnutls
  2193. --without-openssl
  2194. * src/main.cc
  2195. * test/DefaultBtProgressInfoFileTest.cc
  2196. * test/SegmentManTest.cc
  2197. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2198. Fixed compile error with OpenSSL.
  2199. * src/IteratableChunkChecksumValidator.cc
  2200. * src/LibsslDHKeyExchange.h
  2201. * src/MessageDigestHelper.cc
  2202. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2203. Revert the default value of --max-concurrent-downloads to 5.
  2204. Revert the default value of --metalink-servers to 5.
  2205. Man pages was also updated.
  2206. * src/option_processing.cc
  2207. * doc/aria2c.1.txt
  2208. * doc/aria2c.1.html
  2209. * doc/aria2c.1
  2210. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2211. Returns const reference:
  2212. DownloadContext::getPieceHash, DownloadContext::getName,
  2213. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  2214. BtContext::getInfoHashAsString,
  2215. * src/BtContext.h
  2216. * src/DefaultBtContext.cc
  2217. * src/DefaultBtContext.h
  2218. * src/DownloadContext.h
  2219. * src/SingleFileDownloadContext.h
  2220. * test/MockBtContext.h
  2221. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2222. * src/RequestGroup.h (getDir): Removed.
  2223. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2224. Returns const reference. The internal urlencode function was optimized
  2225. a little bit.
  2226. * src/Request.cc
  2227. * src/Request.h
  2228. * src/HttpRequest.cc
  2229. * src/HttpRequest.h
  2230. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2231. Defined option name and possible values as std::string to reduce
  2232. temporary string object creation in runtime.
  2233. * src/HelpItemFactory.cc
  2234. * src/LogFactory.cc
  2235. * src/Option.cc
  2236. * src/OptionHandlerFactory.cc
  2237. * src/option_processing.cc
  2238. * src/prefs.cc
  2239. * src/prefs.h
  2240. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2241. Return const reference.
  2242. * src/DownloadHandlerConstants.cc
  2243. * src/DownloadHandlerConstants.h
  2244. (getMetalinkExtensions)
  2245. (getMetalinkContentTypes)
  2246. (getBtExtensions)
  2247. (getBtContentTypes)
  2248. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2249. * src/HttpHeader.cc (get): Rewritten.
  2250. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2251. Make HttpHeader::getFirst(...) return const reference.
  2252. * src/HttpHeader.cc
  2253. * src/HttpHeader.h
  2254. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2255. Use Option::getAsBool(...) instead of Option::get(...) and compare
  2256. it with V_TRUE.
  2257. * src/DefaultPieceStorage.cc
  2258. * src/DownloadCommand.cc
  2259. * src/FtpNegotiationCommand.cc
  2260. * src/HttpRequest.cc
  2261. * src/InitiateConnectionCommand.cc
  2262. * src/RequestGroup.cc
  2263. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2264. Made Option::get(...) return const reference of std::string.
  2265. * src/Option.cc
  2266. * src/Option.h
  2267. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2268. Replaced std:copy with insert.
  2269. * src/DefaultBtMessageDispatcher.cc
  2270. * src/DefaultPieceStorage.cc
  2271. * src/DownloadEngineFactory.cc
  2272. * src/RequestGroup.cc
  2273. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2274. Included SocketCore.h to fix compiler warning.
  2275. * src/InitiateConnectionCommand.cc
  2276. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2277. Put piece selection strategy algorithm to RarestPieceSelector class,
  2278. Added a switch to choose whether randomized selection so that unit
  2279. tests emit same results in, possibly, win32.
  2280. * src/DefaultPieceStorage.cc
  2281. * src/DefaultPieceStorage.h
  2282. * src/RarestPieceSelector.cc
  2283. * src/RarestPieceSelector.h
  2284. * test/DefaultPieceStorageTest.cc
  2285. * test/RarestPieceSelectorTest.cc
  2286. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2287. Don't pool connection if HTTP proxy is enabled.
  2288. * src/FtpFinishDownloadCommand.cc
  2289. * src/FtpNegotiationCommand.cc
  2290. * src/HttpSkipResponseCommand.cc
  2291. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2292. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  2293. * src/AbstractCommand.cc
  2294. * src/AbstractCommand.h
  2295. * src/ActivePeerConnectionCommand.cc
  2296. * src/FtpInitiateConnectionCommand.cc
  2297. * src/HttpInitiateConnectionCommand.cc
  2298. * src/InitiateConnectionCommandFactory.cc
  2299. * src/PeerAbstractCommand.cc
  2300. * src/PeerAbstractCommand.h
  2301. * src/PeerInitiateConnectionCommand.cc
  2302. * src/TrackerWatcherCommand.cc
  2303. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2304. Sort RequestSlot in ascending order and manipulate them using
  2305. lower_bound.
  2306. * src/DefaultBtMessageDispatcher.cc
  2307. * src/DefaultBtMessageDispatcher.h
  2308. (getMessageQueue): Added const qualifier.
  2309. (getRequestSlots): Added const qualifier.
  2310. (sendMessages): Use empty() instead of size().
  2311. (doCancelSendingPieceAction): Use HandleEvent object.
  2312. (doAbortOutstandingRequestAction): Rewritten.
  2313. (doChokedAction): Rewritten.
  2314. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  2315. (isOutstandingRequest): Rewritten.
  2316. (getOutstandingRequest): Rewritten.
  2317. (removeOutstandingRequest): Rewritten.
  2318. (addOutstandingRequest): Rewritten.
  2319. * src/RequestSlot.cc
  2320. * src/RequestSlot.h
  2321. (operator=): Rewritten.
  2322. (operator!=): New function.
  2323. (operator<): New function.
  2324. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2325. * src/DefaultBtRequestFactory.cc
  2326. (doChokedAction): Rewritten.
  2327. (removeCompletedPiece): Rewritten.
  2328. (removeTargetPiece): Rewritten.
  2329. (createRequestMessages): Added the debug log.
  2330. (createRequestMessagesOnEndGame: Added the debug log.
  2331. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2332. Added the debug log message.
  2333. * src/BtPieceMessage.cc (doReceivedAction)
  2334. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2335. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2336. used lower_bound to process them rather than linear search.
  2337. * src/DHTPeerAnnounceStorage.cc
  2338. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2339. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2340. peer has at least one completed piece.
  2341. * src/Peer.cc
  2342. * src/Peer.h
  2343. * src/PeerInteractionCommand.cc
  2344. * src/PeerSessionResource.cc
  2345. * src/PeerSessionResource.h
  2346. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2347. Removed unnecessary sorting
  2348. * src/DefaultPieceStorage (DefaultPieceStorage)
  2349. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Rewritten the portion of the code that mangaes allowed fast indexes.
  2351. * src/PeerSessionResource.cc
  2352. * src/PeerSessionResource.h
  2353. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. Removed the invalid string including '\r' from ru.po and
  2355. did make update-po.
  2356. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2357. Added --log-level and --summary-interval to man page.
  2358. * doc/aria2c.1.txt
  2359. * doc/aria2c.1.html
  2360. * doc/aria2c.1
  2361. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2362. Added --log-level option to specify log level. Log messages under
  2363. the specified level are not output. Default value is `debug'.
  2364. * src/HelpItemFactory.cc
  2365. * src/LogFactory.cc
  2366. * src/LogFactory.h
  2367. * src/Logger.h
  2368. * src/OptionHandlerFactory.cc
  2369. * src/SimpleLogger.cc
  2370. * src/SimpleLogger.h
  2371. * src/main.cc
  2372. * src/option_processing.cc
  2373. * src/prefs.h
  2374. * src/usage_text.h
  2375. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2376. Print download progress summary of all parallel downloads in specified
  2377. interval, default 60 secs. While aria2 could download several files
  2378. in parallel (see -j option), it displayed just first download progress,
  2379. and the other downloads are hidden from the users. This new feature
  2380. prints all downloads currently in-progress to the console so that you
  2381. can check the status of all downloads. The interval can be adjusted
  2382. by --summary-interval option.
  2383. The progress readout is now cut so that all fits in the one line of
  2384. console.
  2385. * src/ConsoleStatCalc.cc
  2386. * src/ConsoleStatCalc.h
  2387. * src/HelpItemFactory.cc
  2388. * src/OptionHandlerFactory.cc
  2389. * src/RequestGroupMan.cc
  2390. * src/RequestGroupMan.h
  2391. * src/main.cc
  2392. * src/option_processing.cc
  2393. * src/prefs.h
  2394. * src/usage_text.h
  2395. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2396. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2397. * src/DownloadEngine.cc (DownloadEngine)
  2398. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2399. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2400. defined.
  2401. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2402. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2403. Use erase+lower_bound+insert instead of sort.
  2404. * src/DefaultPieceStorage.cc (addPieceStats)
  2405. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2406. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2407. * src/A2STR.cc
  2408. * src/A2STR.h
  2409. * src/OptionParser.cc (parse)
  2410. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2411. Defined fake filename `[tracker.announce]' as static const std::string.
  2412. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2413. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2414. Defined default filename `index.html' as static const std::string
  2415. * src/SingleFileDownloadContext.cc
  2416. * src/SingleFileDownloadContext.h
  2417. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2418. Defined "[MEMORY]" as static const std::string.
  2419. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2420. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2421. Defined control file's version number as static const std::string.
  2422. * src/DefaultBtProgressInfoFile.cc
  2423. * src/DefaultBtProgressInfoFile.h
  2424. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. Use Request::METHOD_GET
  2426. * src/RequestGroup.cc (createNextCommandWithAdj)
  2427. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2428. Defined "OK", "ERR", "INPR" as static const std::string
  2429. * src/RequestGroupMan.cc (showDownloadResults)
  2430. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2431. Defined default client used in extended handshake as static const
  2432. std::string
  2433. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2434. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2435. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2436. * src/HttpConnection.cc (eraseConfidentialInfo)
  2437. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2438. Defined default ftp user and password as static const std::string
  2439. * src/AuthConfigFactory.cc
  2440. * src/AuthConfigFactory.h
  2441. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2442. Defined strings used in netrc as static const std::string
  2443. * src/Netrc.cc
  2444. * src/Netrc.h
  2445. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2446. Defined HTTP status as static const std::string
  2447. * src/AbstractProxyResponseCommand.cc
  2448. * src/HttpHeader.cc
  2449. * src/HttpHeader.h
  2450. * src/HttpResponse.cc
  2451. * src/HttpResponseCommand.cc
  2452. * src/HttpSkipResponseCommand.cc
  2453. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2454. Defined "\r\n", "A", "I" as static const std::string
  2455. * src/A2STR.cc
  2456. * src/A2STR.h
  2457. * src/FtpConnection.cc
  2458. * src/FtpConnection.h
  2459. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2460. Added COLON_C(".") and used it in Request::parseUrl()
  2461. * src/A2STR.cc
  2462. * src/A2STR.h
  2463. * src/Request.cc (parseUrl)
  2464. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2465. Changed the type of padName from `const std::string&' to `const char*'.
  2466. * src/MSEHandshake.cc (verifyPadLength)
  2467. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2468. Defined "sha1" as static const std::string.
  2469. * src/MetalinkParserController.cc
  2470. * src/MetalinkParserController.h
  2471. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2472. Defined message digest algorithm name as static const std::string
  2473. * src/DHTTokenTracker.cc
  2474. * src/DHTUtil.cc
  2475. * src/DefaultBtContext.cc
  2476. * src/MSEHandshake.cc
  2477. * src/MessageDigestHelper.cc
  2478. * src/Peer.cc
  2479. * src/messageDigest.cc
  2480. * src/messageDigest.h
  2481. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2482. Made string literals used in SAX parser static const std::string.
  2483. * src/FileMetalinkParserState.cc
  2484. * src/FileMetalinkParserState.h
  2485. * src/FilesMetalinkParserState.cc
  2486. * src/FilesMetalinkParserState.h
  2487. * src/InitialMetalinkParserState.cc
  2488. * src/InitialMetalinkParserState.h
  2489. * src/MetalinkMetalinkParserState.cc
  2490. * src/MetalinkMetalinkParserState.h
  2491. * src/PiecesMetalinkParserState.cc
  2492. * src/PiecesMetalinkParserState.h
  2493. * src/ResourcesMetalinkParserState.cc
  2494. * src/ResourcesMetalinkParserState.h
  2495. * src/VerificationMetalinkParserState.cc
  2496. * src/VerificationMetalinkParserState.h
  2497. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2498. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2499. * src/A2STR.cc
  2500. * src/A2STR.h
  2501. * src/File.cc
  2502. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2503. Defined static const std::string IP("ip"), PORT("port") and use them
  2504. instead of string literals.
  2505. * src/DefaultPeerListProcessor.cc
  2506. * src/DefaultPeerListProcessor.h
  2507. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2508. Made string literals for torrent file processing static const
  2509. std::string.
  2510. * src/BtContext.cc
  2511. * src/BtContext.h
  2512. * src/DefaultBtContext.cc
  2513. * src/DefaultBtContext.h
  2514. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2515. Made string literal for tracker response static const std::string
  2516. * src/BtAnnounce.cc
  2517. * src/BtAnnounce.h
  2518. * src/DefaultBtAnnounce.cc
  2519. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2520. Use DHTMessage::T instead of "t".
  2521. * src/DHTMessageTracker.cc (messageArrived)
  2522. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2523. Made keyName static const. Made trimmed charset static const
  2524. std::string.
  2525. * src/Util.cc (getContentDispositionFilename)
  2526. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2527. Made USER_AGENT const. Made "/" static const std::string.
  2528. * src/A2STR.cc
  2529. * src/A2STR.h
  2530. * src/HttpRequest.cc
  2531. * src/HttpRequest.h
  2532. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2533. Made string listeral to static const std::string:
  2534. "Content-Range", "Content-Length"
  2535. * src/HttpHeader.cc
  2536. * src/HttpHeader.h
  2537. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2538. Made string listeral to static const std::string.
  2539. * src/HttpConnection.cc
  2540. * src/HttpHeader.cc
  2541. * src/HttpHeader.h
  2542. * src/HttpResponse.cc
  2543. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2544. Made string listeral to static const std::string.
  2545. * src/A2STR.cc
  2546. * src/A2STR.h
  2547. * src/SimpleLogger.cc
  2548. * src/SimpleLogger.h
  2549. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2550. Made string literal to static const std::string.
  2551. Rewritten CookieParser::setField.
  2552. * src/A2STR.cc
  2553. * src/A2STR.h
  2554. * src/CookieBoxFactory.cc
  2555. * src/CookieBoxFactory.h
  2556. * src/CookieParser.cc
  2557. * src/CookieParser.h
  2558. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. Made string literal to static const std::string
  2560. * src/DHTAbstractMessage.cc
  2561. * src/DHTAnnouncePeerMessage.cc
  2562. * src/DHTAnnouncePeerMessage.h
  2563. * src/DHTAnnouncePeerReplyMessage.cc
  2564. * src/DHTAnnouncePeerReplyMessage.h
  2565. * src/DHTFindNodeMessage.cc
  2566. * src/DHTFindNodeMessage.h
  2567. * src/DHTFindNodeReplyMessage.cc
  2568. * src/DHTFindNodeReplyMessage.h
  2569. * src/DHTGetPeersMessage.cc
  2570. * src/DHTGetPeersMessage.h
  2571. * src/DHTGetPeersReplyMessage.cc
  2572. * src/DHTGetPeersReplyMessage.h
  2573. * src/DHTMessage.cc
  2574. * src/DHTMessage.h
  2575. * src/DHTMessageFactoryImpl.cc
  2576. * src/DHTMessageReceiver.cc
  2577. * src/DHTPingMessage.cc
  2578. * src/DHTPingMessage.h
  2579. * src/DHTPingReplyMessage.cc
  2580. * src/DHTPingReplyMessage.h
  2581. * src/DHTQueryMessage.cc
  2582. * src/DHTQueryMessage.h
  2583. * src/DHTResponseMessage.cc
  2584. * src/DHTResponseMessage.h
  2585. * src/DHTUnknownMessage.cc
  2586. * src/DHTUnknownMessage.h
  2587. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2588. Made string literal to static const std::string
  2589. * src/BtChokeMessage.cc (toString)
  2590. * src/BtHaveAllMessage.cc (toString)
  2591. * src/BtHaveNoneMessage.cc (toString)
  2592. * src/BtInterestedMessage.cc (toString)
  2593. * src/BtNotInterestedMessage.cc (toString)
  2594. * src/BtUnchokeMessage.cc (toString)
  2595. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2596. Replaced "" with static const variable A2STR::NIL.
  2597. Replaced string comparison against "" with std::string::empty().
  2598. Added PROTO_* to Request class and use them as a protocol string
  2599. constant.
  2600. Made "started", "stopped", "completed" static const variable in
  2601. AnnounceList class.
  2602. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2603. Updated translations. Great thanks to translators.
  2604. * po/ca.po
  2605. * po/de.po
  2606. * po/fr.po
  2607. * po/it.po
  2608. * po/ja.po
  2609. * po/ru.po
  2610. * po/zh_CN.po
  2611. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2612. Updated man page; categorized options and fixed typo.
  2613. * doc/aria2c.1.txt
  2614. * doc/aria2c.1.html
  2615. * doc/aria2c.1
  2616. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2617. Removed const ref
  2618. * src/MetalinkEntry.cc (AddProtocolPreference)
  2619. * src/RequestGroup.cc (FindServerHostByHostname)
  2620. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2621. Rewritten Accept-Features handling.
  2622. * src/HttpRequestCommand.cc (createHttpRequest)
  2623. * src/a2functional.h
  2624. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2625. Changed method signature:
  2626. DHTAbstractNodeLookupTask::toEntries
  2627. * src/DHTAbstractNodeLookupTask.cc
  2628. * src/DHTAbstractNodeLookupTask.h
  2629. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2630. Changed method signature:
  2631. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2632. * src/BtContext.h
  2633. * src/DefaultBtContext.cc
  2634. * src/DefaultBtContext.h
  2635. * src/DefaultBtInteractive.cc
  2636. * test/DefaultBtContextTest.cc
  2637. * test/MockBtContext.h
  2638. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2639. Changed method signature:
  2640. MultiFileAllocationIterator::makeDiskWriterEntries
  2641. * src/MultiFileAllocationIterator.cc
  2642. * src/MultiFileAllocationIterator.h
  2643. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Changed method sinature:
  2645. MetalinkEntry::toFileEntry,
  2646. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2647. Metalinker::queryEntry
  2648. * src/Metalink2RequestGroup.cc
  2649. * src/MetalinkEntry.cc
  2650. * src/MetalinkEntry.h
  2651. * src/MetalinkHelper.cc
  2652. * src/MetalinkHelper.h
  2653. * src/Metalinker.cc
  2654. * src/Metalinker.h
  2655. * src/main.cc
  2656. * test/MetalinkHelperTest.cc
  2657. * test/MetalinkerTest.cc
  2658. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2659. Changed method sinature:
  2660. RequestGroup::getURIs
  2661. * src/RequestGroup.cc
  2662. * src/RequestGroup.h
  2663. * test/Metalink2RequestGroupTest.cc
  2664. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2665. Changed method signature:
  2666. PeerListProcessor::extractPeer
  2667. * src/CompactPeerListProcessor.cc
  2668. * src/CompactPeerListProcessor.h
  2669. * src/DefaultBtAnnounce.cc
  2670. * src/DefaultPeerListProcessor.cc
  2671. * src/DefaultPeerListProcessor.h
  2672. * src/DelegatingPeerListProcessor.cc
  2673. * src/DelegatingPeerListProcessor.h
  2674. * src/PeerListProcessor.h
  2675. * src/UTPexExtensionMessage.cc
  2676. * test/DefaultPeerListProcessorTest.cc
  2677. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2678. Changed method signature:
  2679. BtRequestFactory::createRequestMessages,
  2680. BtRequestFactory::createRequestMessagesOnEndGame
  2681. * src/BtRequestFactory.h
  2682. * src/DefaultBtInteractive.cc
  2683. * src/DefaultBtRequestFactory.cc
  2684. * src/DefaultBtRequestFactory.h
  2685. * test/DefaultBtRequestFactoryTest.cc
  2686. * test/MockBtRequestFactory.h
  2687. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Changed method signature:
  2689. PieceStorage::getInFlightPieces
  2690. * src/DefaultBtProgressInfoFile.cc
  2691. * src/DefaultPieceStorage.cc
  2692. * src/DefaultPieceStorage.h
  2693. * src/PieceStorage.h
  2694. * src/UnknownLengthPieceStorage.cc
  2695. * src/UnknownLengthPieceStorage.h
  2696. * test/DefaultBtProgressInfoFileTest.cc
  2697. * test/MockPieceStorage.h
  2698. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. Changed method signature:
  2700. PostDownloadHandler::getNextRequestGroups
  2701. Metalink2RequestGroup::generate
  2702. RequestGroup::postDownloadProcessing
  2703. * src/BtPostDownloadHandler.cc
  2704. * src/BtPostDownloadHandler.h
  2705. * src/Metalink2RequestGroup.cc
  2706. * src/Metalink2RequestGroup.h
  2707. * src/MetalinkPostDownloadHandler.cc
  2708. * src/MetalinkPostDownloadHandler.h
  2709. * src/PostDownloadHandler.h
  2710. * src/RequestGroup.cc
  2711. * src/RequestGroup.h
  2712. * src/RequestGroupMan.cc
  2713. * src/main.cc
  2714. * test/BtPostDownloadHandlerTest.cc
  2715. * test/Metalink2RequestGroupTest.cc
  2716. * test/MetalinkPostDownloadHandlerTest.cc
  2717. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2718. Rewritten AccRequestGroup
  2719. * src/main.cc
  2720. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Rewritten.
  2722. * src/TaggedItem.cc (toTagString)
  2723. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Rewritten Accept-Features handling.
  2725. * src/HttpRequestCommand.cc (createHttpRequest)
  2726. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2727. Rewritten accept types handling.
  2728. * HttpRequest.cc (createRequest)
  2729. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2730. Rewritten
  2731. * src/FeatureConfig.cc (featureSummary)
  2732. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. Changed method signature:
  2734. PeerStorage::getActivePeers
  2735. * src/DHTPeerAnnounceEntry.cc
  2736. * src/DefaultPeerStorage.cc
  2737. * src/DefaultPeerStorage.h
  2738. * src/PeerStorage.h
  2739. * test/DefaultPeerStorageTest.cc
  2740. * test/MockPeerStorage.h
  2741. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2742. Changed method signature:
  2743. DHTPeerAnnounceStorage::getPeers,
  2744. DHTPeerAnnounceEntry::getPeers
  2745. * src/DHTGetPeersMessage.cc
  2746. * src/DHTPeerAnnounceEntry.cc
  2747. * src/DHTPeerAnnounceEntry.h
  2748. * src/DHTPeerAnnounceStorage.cc
  2749. * src/DHTPeerAnnounceStorage.h
  2750. * test/DHTAnnouncePeerMessageTest.cc
  2751. * test/DHTPeerAnnounceEntryTest.cc
  2752. * test/DHTPeerAnnounceStorageTest.cc
  2753. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2754. Changed method signature:
  2755. NameResolver::resolve
  2756. * src/DHTEntryPointNameResolveCommand.cc
  2757. * src/InitiateConnectionCommand.cc
  2758. * src/NameResolver.cc
  2759. * src/NameResolver.h
  2760. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2761. Changed method signature:
  2762. PieceStorage::getAdvertisedPieceIndexes
  2763. * src/DefaultBtInteractive.cc
  2764. * src/DefaultPieceStorage.cc
  2765. * src/DefaultPieceStorage.h
  2766. * src/PieceStorage.h
  2767. * src/UnknownLengthPieceStorage.h
  2768. * test/MockPieceStorage.h
  2769. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2770. Changed method signature:
  2771. SegmentMan::getInFlightSegment
  2772. * src/AbstractCommand.cc
  2773. * src/SegmentMan.cc
  2774. * src/SegmentMan.h
  2775. * test/SegmentManTest.cc
  2776. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2777. Changed method signature:
  2778. DHTAbstractNodeLookupTask::getNodesFromMessage
  2779. * src/DHTAbstractNodeLookupTask.cc
  2780. * src/DHTAbstractNodeLookupTask.h
  2781. * src/DHTNodeLookupTask.cc
  2782. * src/DHTNodeLookupTask.h
  2783. * src/DHTPeerLookupTask.cc
  2784. * src/DHTPeerLookupTask.h
  2785. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2786. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2787. * src/AbstractCommand.cc
  2788. * src/BtCheckIntegrityEntry.cc
  2789. * src/BtCheckIntegrityEntry.h
  2790. * src/BtFileAllocationEntry.cc
  2791. * src/BtFileAllocationEntry.h
  2792. * src/BtSetup.cc
  2793. * src/BtSetup.h
  2794. * src/CheckIntegrityCommand.cc
  2795. * src/CheckIntegrityEntry.h
  2796. * src/ChecksumCheckIntegrityEntry.cc
  2797. * src/ChecksumCheckIntegrityEntry.h
  2798. * src/DHTSetup.cc
  2799. * src/DHTSetup.h
  2800. * src/DownloadEngine.cc
  2801. * src/FileAllocationCommand.cc
  2802. * src/FileAllocationEntry.h
  2803. * src/RequestGroup.cc
  2804. * src/RequestGroup.h
  2805. * src/RequestGroupMan.cc
  2806. * src/RequestGroupMan.h
  2807. * src/StreamCheckIntegrityEntry.cc
  2808. * src/StreamCheckIntegrityEntry.h
  2809. * src/StreamFileAllocationEntry.cc
  2810. * src/StreamFileAllocationEntry.h
  2811. * src/TrackerWatcherCommand.cc
  2812. * src/a2functional.h
  2813. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2814. Changed method signature:
  2815. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2816. DHTBucket::getGoodNodes,
  2817. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2818. * src/BNode.cc
  2819. * src/BNode.h
  2820. * src/DHTAbstractNodeLookupTask.cc
  2821. * src/DHTAutoSaveCommand.cc
  2822. * src/DHTBucket.cc
  2823. * src/DHTBucket.h
  2824. * src/DHTBucketRefreshTask.cc
  2825. * src/DHTFindNodeMessage.cc
  2826. * src/DHTGetPeersMessage.cc
  2827. * src/DHTRoutingTable.cc
  2828. * src/DHTRoutingTable.h
  2829. * test/BNodeTest.cc
  2830. * test/DHTBucketTest.cc
  2831. * test/DHTRoutingTableTest.cc
  2832. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2833. In piece selection functions, Pass std::deque<...> by reference rather
  2834. than returning it.
  2835. * src/BitfieldMan.cc
  2836. * src/BitfieldMan.h
  2837. * src/DefaultBtRequestFactory.cc
  2838. * src/DefaultPieceStorage.cc
  2839. * src/Piece.cc
  2840. * src/Piece.h
  2841. * test/BitfieldManTest.cc
  2842. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2843. Implemented rarest piece first piece selection strategy.
  2844. * src/AbstractBtMessage.cc
  2845. * src/AbstractBtMessage.h
  2846. * src/BitfieldMan.cc
  2847. * src/BitfieldMan.h
  2848. * src/BtBitfieldMessage.cc
  2849. * src/BtHaveAllMessage.cc
  2850. * src/BtHaveMessage.cc
  2851. * src/DefaultPieceStorage.cc
  2852. * src/DefaultPieceStorage.h
  2853. * src/PeerInteractionCommand.cc
  2854. * src/PieceStorage.h
  2855. * src/UnknownLengthPieceStorage.h
  2856. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2857. Rewritten readData and writeData.
  2858. * src/MultiDiskAdaptor.cc
  2859. * src/MultiDiskAdaptor.h
  2860. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2861. Move \n out of the message "Usage: ...".
  2862. * src/version_usage.cc
  2863. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2864. Bump up version number to 0.13.2b.
  2865. * configure.ac
  2866. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2867. Added const qualifier to argument Exception& e.
  2868. * src/Logger.h
  2869. * src/SimpleLogger.cc
  2870. * src/SimpleLogger.h
  2871. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Pool connection when CWD, SIZE command fails.
  2873. * src/FtpNegotiationCommand.cc
  2874. * src/FtpNegotiationCommand.h
  2875. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2877. * src/HttpResponseCommand.cc
  2878. * src/HttpSkipResponseCommand.cc
  2879. * src/HttpSkipResponseCommand.h
  2880. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2881. Pool connection when a server returns 4xx, 5xx responses.
  2882. * src/HttpNullDownloadCommand.cc
  2883. * src/HttpNullDownloadCommand.h
  2884. * src/HttpResponse.cc
  2885. * src/HttpResponse.h
  2886. * src/HttpResponseCommand.cc
  2887. * src/HttpResponseCommand.h
  2888. * test/HttpResponseTest.cc
  2889. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Print usage when no URL is specifed or bad command-line option is
  2891. specified.
  2892. * src/HelpItemFactory.cc
  2893. * src/help_tags.h
  2894. * src/option_processing.cc
  2895. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Removed duplicate log message.
  2897. * src/AbstractCommand.cc (asyncResolveHostname)
  2898. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2899. Updated man page: --async-dns and --ftp-reuse-connection were added.
  2900. Changed -j option's default value from 5 to 1.
  2901. Added new examples using protocol auto detection feature.
  2902. Removed -T, -M usage where it can be omitted.
  2903. * doc/aria2c.1.txt
  2904. * doc/aria2c.1.html
  2905. * doc/aria2c.1.txt
  2906. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2907. Updated command-line usage text, so that it tells users that they
  2908. can specify any number of torrent files and metalink files in
  2909. command-line.
  2910. * src/version_usage.cc
  2911. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. Changed the default value of -j option to 1.
  2913. * src/HelpItemFactory.cc
  2914. * src/option_processing.cc
  2915. * src/usage_text.h
  2916. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2917. Added the ability to reuse connection in FTP and it is enabled by
  2918. default. It can be disabled by --ftp-reuse-connection=false option.
  2919. * src/Command.cc
  2920. * src/DownloadCommand.cc
  2921. * src/FtpDownloadCommand.cc
  2922. * src/FtpDownloadCommand.h
  2923. * src/FtpFinishDownloadCommand.cc
  2924. * src/FtpFinishDownloadCommand.h
  2925. * src/FtpInitiateConnectionCommand.cc
  2926. * src/FtpNegotiationCommand.cc
  2927. * src/FtpNegotiationCommand.h
  2928. * src/HelpItemFactory.cc
  2929. * src/Makefile.am
  2930. * src/Makefile.in
  2931. * src/OptionHandlerFactory.cc
  2932. * src/option_processing.cc
  2933. * src/prefs.h
  2934. * src/usage_text.h
  2935. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2936. Call Command::transitStatus() before calling Command::execute(),
  2937. so that the status change made in execute() is not cleared.
  2938. * src/DownloadEngine.cc
  2939. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Removed forward declaration of SocketCore class.
  2941. * src/HttpDownloadCommand.h
  2942. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2943. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  2944. in InitiateConnectionCommandFactory. They should be set only when
  2945. the protocol is HTTP or HTTPS.
  2946. * src/InitiateConnectionCommandFactory.cc
  2947. * src/RequestGroup.cc
  2948. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2949. Fixed infinite loop in checksum checking.
  2950. * src/IteratableChecksumValidator.cc
  2951. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2952. Set _supportsPersistentConnection to true by default.
  2953. * src/Request.cc
  2954. * src/RequestGroup.cc
  2955. * test/HttpRequestTest.cc
  2956. * test/RequestTest.cc
  2957. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Added timeout to socket pool. The default timeout is 15 seconds,
  2959. which is the same value Apache uses.
  2960. * src/DownloadEngine.cc
  2961. * src/DownloadEngine.h
  2962. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2963. Fixed misuse of multimap::find()
  2964. * src/HttpHeader.cc
  2965. * test/HttpHeaderTest.cc
  2966. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2967. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  2968. option.
  2969. The asynchronous DNS is not capable of IPv6 yet.
  2970. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  2971. least for HTTP download.
  2972. * src/AbstractCommand.cc
  2973. * src/AbstractCommand.h
  2974. * src/AsyncNameResolver.cc
  2975. * src/AsyncNameResolver.h
  2976. * src/DHTEntryPointNameResolveCommand.cc
  2977. * src/DHTEntryPointNameResolveCommand.h
  2978. * src/DownloadEngine.cc
  2979. * src/DownloadEngine.h
  2980. * src/FtpInitiateConnectionCommand.cc
  2981. * src/FtpInitiateConnectionCommand.h
  2982. * src/HelpItemFactory.cc
  2983. * src/HttpInitiateConnectionCommand.cc
  2984. * src/HttpInitiateConnectionCommand.h
  2985. * src/InitiateConnectionCommand.cc
  2986. * src/InitiateConnectionCommand.h
  2987. * src/Makefile.am
  2988. * src/Makefile.in
  2989. * src/NameResolver.cc
  2990. * src/NameResolver.h
  2991. * src/OptionHandlerFactory.cc
  2992. * src/SocketCore.cc
  2993. * src/SocketCore.h
  2994. * src/Util.cc
  2995. * src/Util.h
  2996. * src/option_processing.cc
  2997. * src/prefs.h
  2998. * src/usage_text.h
  2999. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3000. Updated man page: --quiet, --header were added.
  3001. --metalink-servers and --enable-http-keep-alive option were updated.
  3002. * doc/aria2c.1
  3003. * doc/aria2c.1.html
  3004. * doc/aria2c.1.txt
  3005. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Enable HTTP keep-alive by default.
  3007. * src/HelpItemFactory.cc
  3008. * src/option_processing.cc
  3009. * src/usage_text.h
  3010. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. Disable http keep-alive if the remote server is not HTTP/1.1.
  3012. * src/HttpConnection.cc
  3013. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3014. Receive content body of 302 response so that the connection can be
  3015. reused later when http keep-alive is enabled.
  3016. * src/HttpNullDownloadCommand.cc
  3017. * src/HttpNullDownloadCommand.h
  3018. * src/HttpResponseCommand.cc
  3019. * src/HttpResponseCommand.h
  3020. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. const SharedHandle<Request> -> const SharedHandle<Request>&
  3022. * src/FtpDowndloadCommand.cc
  3023. * src/FtpDowndloadCommand.h
  3024. * src/HttpDownloadCommand.cc
  3025. * src/HttpDownloadCommand.h
  3026. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Fixed the bug that the control file(.aria2 file) is not renamed
  3028. according to tryAutoFileRenaming().
  3029. tryAutoFileRenaming() was rewritten so that if both renamed file and
  3030. its control file exist, use them and continue download.
  3031. The old implementation didn't take into account of control file's
  3032. existence, so basically you couldn't continue download of renamed file.
  3033. * src/BtProgressInfoFile.h
  3034. * src/DefaultBtProgressInfoFile.cc
  3035. * src/DefaultBtProgressInfoFile.h
  3036. * src/NullProgressInfoFile.h
  3037. * src/RequestGroup.cc
  3038. * test/DefaultBtProgressInfoFileTest.cc
  3039. * test/MockBtProgressInfoFile.h
  3040. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3041. Change the default value of --metalink-servers option from `5' to `1'.
  3042. * src/HelpItemFactory.cc
  3043. * src/option_processing.cc
  3044. * src/usage_text.h
  3045. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3046. Reimplemented transparent metalink using Accept request header.
  3047. * src/HttpRequest.cc
  3048. * src/HttpRequest.h
  3049. * src/HttpRequestCommand.cc
  3050. * src/Metalink2RequestGroup.cc
  3051. * src/RequestGroup.cc
  3052. * src/RequestGroup.h
  3053. * test/HttpRequestTest.cc
  3054. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3055. Bump up version number to 0.13.2a
  3056. * configure.ac
  3057. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3058. Updated configure.ac using the result of autoscan.
  3059. * configure.ac
  3060. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3061. Fixed compilation error without gcrypt/openssl.
  3062. * src/DownloadCommand.cc
  3063. * src/DownloadCommand.h
  3064. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Reorganized version information so that it can be displayed in a
  3066. standard terminal screen without scrolling.
  3067. Removed http, ftp from Configuration section, because they are always
  3068. enabled.
  3069. * src/FeatureConfig.cc
  3070. * src/FeatureConfig.h
  3071. * src/main.cc
  3072. * src/messageDigest.cc
  3073. * src/messageDigest.h
  3074. * src/version_usage.cc
  3075. * test/FeatureConfigTest.cc
  3076. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3077. Masked user ID in log.
  3078. * src/FtpConnection.cc (sendUser)
  3079. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3080. Removed query part from filename in HTTP download. The query part means
  3081. the substring after "?" in URL. Firefox seems do the same thing.
  3082. A query part is sometimes very long and not suitable to filename,
  3083. so I think it is better to remove it from filename.
  3084. * src/HttpRequest.cc
  3085. * src/HttpRequest.h
  3086. * src/Request.cc
  3087. * src/Request.h
  3088. * test/HttpRequestTest.cc
  3089. * test/RequestTest.cc
  3090. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Rewritten Exception class. Throw exception object, not its pointer and
  3092. catch by reference, so that remove problematic delete operator for
  3093. catched exception.
  3094. * src/Exception.cc
  3095. * src/Exception.h
  3096. * test/ExceptionTest.cc
  3097. * src/*: All files throwing/catching exception.
  3098. * test/*: All files throwing/catching exception.
  3099. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3100. Now auto protocol detection is enabled without -Z option.
  3101. But there is a important difference between with/without -Z optoin.
  3102. For example, if you type:
  3103. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3104. then, aria2 interprets there are 3 request groups:
  3105. (1) http://host/file, http://mirror/file <-- multi-source download
  3106. (2) file1.torrent
  3107. (3) file2.metalink
  3108. On the other hand, if you invoke above command with -Z option, it is
  3109. interpreted as 4 request groups:
  3110. (1) http://host/file
  3111. (2) file1.torrent
  3112. (3) file2.metalink
  3113. (4) http://mirror/file
  3114. I think usually user don't mix multi-source URLs and torrent files, so
  3115. there is no big problem here.
  3116. * src/main.cc
  3117. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3118. Fixed the bug that causes segmentaion fault when reading XML containing
  3119. unescapsed character like '&'.
  3120. Also a modification was made which avoids adding unnecessary
  3121. characters stack and appending unused string.
  3122. * src/ExpatMetalinkProcessor.cc
  3123. * src/FileMetalinkParserState.h
  3124. * src/FilesMetalinkParserState.h
  3125. * src/FinMetalinkParserState.h
  3126. * src/HashMetalinkParserState.h
  3127. * src/InitialMetalinkParserState.h
  3128. * src/LanguageMetalinkParserState.h
  3129. * src/MetalinkMetalinkParserState.h
  3130. * src/MetalinkParserState.h
  3131. * src/MetalinkParserStateMachine.cc
  3132. * src/MetalinkParserStateMachine.h
  3133. * src/OSMetalinkParserState.h
  3134. * src/PieceHashMetalinkParserState.h
  3135. * src/PiecesMetalinkParserState.h
  3136. * src/ResourcesMetalinkParserState.h
  3137. * src/SizeMetalinkParserState.h
  3138. * src/SkipTagMetalinkParserState.h
  3139. * src/URLMetalinkParserState.h
  3140. * src/VerificationMetalinkParserState.h
  3141. * src/VersionMetalinkParserState.h
  3142. * src/XML2SAXMetalinkProcessor.cc
  3143. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3144. Added StringFormat class, which internally calls vasprintf.
  3145. operator<< is defined for this class, so it can be used with iostream
  3146. classes nicely. SimpleLogger and following functions are rewritten
  3147. using StringFormat class.
  3148. Besides, now Logger class's methods are non-const, many classes
  3149. that has a const Logger* as a member variable are modified to remove
  3150. const qualifier from the variable declaration.
  3151. * src/HelpItemFactory.cc
  3152. * src/Request.cc
  3153. * src/SimpleLogger.cc
  3154. * src/StringFormat.cc
  3155. * src/StringFormat.h
  3156. * src/Util.cc
  3157. * src/option_processing.cc
  3158. * src/version_usage.cc
  3159. * test/StringFormatTest.cc
  3160. * src/*.h: The classes that has const Logger* as a member variable.
  3161. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3162. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  3163. failed. Also fixed memory link when exception is thrown there.
  3164. * src/main.cc (AccRequestGroup)
  3165. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3166. Added build-in "Accept-Features" support. For now only "metalink" is
  3167. used in this header field.
  3168. This "metalink" value is removed from the list when connecting URLs
  3169. fed by metalink file to avoid loop in "transparent" metlaink.
  3170. * src/HttpRequest.cc
  3171. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  3172. header is also held in this variable. Also renamed setUserHeaders as
  3173. addHeader and it was rewritten to add header not just to clear the old
  3174. value.
  3175. * src/HttpRequestCommand.cc
  3176. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  3177. from "Accept-Features" list.
  3178. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  3179. default.
  3180. * src/RequestGroup.h
  3181. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  3182. * src/a2functional.h: Included <string> because Concat class depends on
  3183. it.
  3184. * test/HttpRequestTest.cc
  3185. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. Added comment
  3187. * src/RequestGroup.cc (createNextCommand)
  3188. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3189. Capitalized METHOD_GET and METHOD_HEAD
  3190. * src/Request.cc
  3191. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3192. Added getDownloadResults() method
  3193. * src/RequestGroupMan.cc
  3194. * src/RequestGroupMan.h
  3195. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3196. Fixed the bug that aria2 exits when commands is empty() but
  3197. _routineCommands are not.
  3198. * src/DownloadEngine.cc
  3199. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Use the default value pulled from Option object in HelpItemFactory.
  3201. except options whose defualt value is embedded in a usage text.
  3202. * src/HelpItemFactory.cc
  3203. * src/HelpItemFactory.h
  3204. * src/option_processing.cc
  3205. * src/version_usage.cc
  3206. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. Added --quiet option to make aria2 quiet (no console output).
  3208. --quiet option is tagged with ADVANCED.
  3209. * src/HelpItemFactory.cc
  3210. * src/LogFactory.cc
  3211. * src/LogFactory.h
  3212. * src/MultiUrlRequestInfo.cc
  3213. * src/MultiUrlRequestInfo.h
  3214. * src/NullStatCalc.h: New class. This class prints nothing.
  3215. * src/OptionHandlerFactory.cc
  3216. * src/main.cc
  3217. * src/option_processing.cc
  3218. * src/prefs.h
  3219. * src/usage_text.h
  3220. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3221. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  3222. * src/HelpItemFactory.cc (createHelpItems):
  3223. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3224. Fixed compilation error in ExpatMetalinkProcessor.cc
  3225. * src/ExpatMetalinkProcessor.cc
  3226. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Reuse socket if the origin server supports HTTP keep-alive and
  3228. --enable-http-keep-alive or --enable-http-pipelining is given.
  3229. The current implementation doesn't reuse the connections established
  3230. against proxy server.
  3231. * src/AbstractCommand.cc
  3232. * src/DownloadEngine.cc
  3233. * src/DownloadEngine.h
  3234. * src/HttpDownloadCommand.cc
  3235. * src/HttpInitiateConnectionCommand.cc
  3236. * src/HttpResponseCommand.cc
  3237. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. Rewritten HTTP keep-alive and pipelining routine.
  3239. * src/AbstractCommand.cc
  3240. * src/HttpConnection.cc
  3241. * src/HttpDownloadCommand.cc
  3242. * src/HttpRequest.cc
  3243. * src/HttpRequestCommand.cc
  3244. * src/HttpResponseCommand.cc
  3245. * src/Request.cc
  3246. * src/Request.h
  3247. * src/RequestGroup.cc
  3248. * test/HttpRequestTest.cc
  3249. * test/HttpResponseTest.cc
  3250. * test/RequestTest.cc
  3251. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Added missing setUserHeaders call
  3253. * src/HttpRequestCommand.cc
  3254. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3255. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  3256. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  3257. waste of time because it is more likey false.
  3258. * src/FileAllocationDispatcherCommand.cc (execute)
  3259. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Now HTTP status and version are a member variable of HttpHeader.
  3261. HTTP status is processed as a string, not integer.
  3262. * src/AbstractProxyResponseCommand.cc
  3263. * src/HttpConnection.cc
  3264. * src/HttpHeader.cc
  3265. * src/HttpHeader.h
  3266. * src/HttpHeaderProcessor.cc
  3267. * src/HttpHeaderProcessor.h
  3268. * src/HttpResponse.cc
  3269. * src/HttpResponse.h
  3270. * test/HttpHeaderProcessorTest.cc
  3271. * test/HttpResponseTest.cc
  3272. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3273. Added --header option. You can specify any number of additional HTTP headers
  3274. like:
  3275. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  3276. Unlike other commad-line option, you can use --header option multiple times.
  3277. * src/HelpItemFactory.cc
  3278. * src/HttpRequest.{cc, h}
  3279. * src/HttpRequestCommand.cc
  3280. * src/OptionHandlerFactory.cc
  3281. * src/OptionHandlerImpl.h
  3282. * src/option_processing.cc
  3283. * src/prefs.h
  3284. * src/usage_text.h
  3285. * test/HttpRequestTest.cc (testUserHeaders)
  3286. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. Eliminates the time lag between sequential downloads and commands in
  3288. the same RequestGroup.
  3289. In old implementation, aria2 occasionally waits 1 seconds before
  3290. executing next command or RequestGroup.
  3291. This is really a waste of time, and new implementation eliminates
  3292. this unnecessary time lag.
  3293. * src/AbstractCommand.cc
  3294. * src/AutoSaveCommand.cc
  3295. * src/CheckIntegrityCommand.cc
  3296. * src/Command.{cc, h}
  3297. * src/DownloadEngine.{cc, h}
  3298. * src/DownloadEngineFactory.cc
  3299. * src/FileAllocationCommand.cc
  3300. * src/FileAllocationDispatcherCommand.cc
  3301. * src/FillRequestGroupCommand.cc
  3302. * src/FtpInitiateConnectionCommand.cc
  3303. * src/HaveEraseCommand.cc
  3304. * src/HttpInitiateConnectionCommand.cc
  3305. * src/HttpResponseCommand.cc
  3306. * src/RealtimeCommand.cc
  3307. * src/RequestGroup.cc
  3308. * src/RequestGroupMan.cc
  3309. * src/StreamFileAllocationEntry.cc
  3310. * src/TimeBasedCommand.{cc, h}
  3311. * src/TimedHaltCommand.cc
  3312. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3313. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  3314. keyword explicit and SharedHandle's default constructor initializes
  3315. its internal obj to null, old implementation initializes it using
  3316. obj's default constructor.
  3317. To assign null, write SharedHandle<T> x(...); x.reset();
  3318. TODO: test/SharedHandleTest.cc needs more tests.
  3319. * src/SharedHandle.h
  3320. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3321. Fixed type in man page.
  3322. * doc/aria2c.1.txt
  3323. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3324. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3325. * src/SimpleLogger.{cc, h}
  3326. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Implemented auto protocol detection.
  3328. Now you can do:
  3329. aria2c -Z http://host/file file1.torrent file2.metalink
  3330. (Note: -Z option is required for auto protcol detection.)
  3331. Then aria2c downloads 3 files simultaneously:
  3332. 1. http://host/file
  3333. 2. file1.torrent <-- read local torrent file
  3334. 3. file2.metalink <-- read local Metalink file.
  3335. Same thing goes with -i option. Assume your uris.txt contans:
  3336. http://host/file
  3337. file1.torrent
  3338. file2.metalink
  3339. Then you can do: aria2c -i uris.txt
  3340. (Note: -Z option is not needed if -i option is given.)
  3341. * src/main.cc
  3342. * src/ProtocolDetector.{cc, h}
  3343. * test/ProtocolDetectorTest.cc
  3344. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3345. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3346. installed
  3347. * src/ARC4Encryptor.h
  3348. * src/ARC4Decryptor.h
  3349. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. Renamed argument from 'errno' to 'err', since errno is confused with
  3351. errno defined in errno.h.
  3352. * src/LibgcryptARC4Decryptor.h
  3353. * src/LibgcryptARC4Context.h
  3354. * src/LibgcryptDHKeyExchange.h
  3355. * src/LibgcryptARC4Encryptor.h
  3356. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3357. Rewritten choking algorithm.
  3358. * src/PeerChokeCommand.{cc, h}
  3359. * src/BtInterestedMessage.cc
  3360. * src/PeerSessionResource.{cc, h}
  3361. * src/DefaultPeerStorage.{cc, h}
  3362. * src/BtNotInterestedMessage.cc
  3363. * src/DefaultBtMessageDispatcher.{cc, h}
  3364. * src/BtMessageDispatcher.h
  3365. * src/Peer.{cc, h}
  3366. * src/BtLeecherStateChoke.{cc, h}
  3367. * src/BtSetup.cc
  3368. * src/BtSeederStateChoke.{cc, h}
  3369. * src/PeerStorage.h
  3370. * test/MockPeerStorage.h
  3371. * test/MockBtMessageDispatcher.h
  3372. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3373. Fixed compilation error on x84-64 platform.
  3374. * src/AuthConfig.cc: Included ostream.
  3375. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3376. Rewritten getBasename() and getDirname(), without standard library
  3377. basename(), dirname().
  3378. * src/File.cc
  3379. * test/FileTest.cc
  3380. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3381. Added Simplified Chinese translation. Also updated the following
  3382. translations: Polish, Dutch, German. Great thanks to all translators.
  3383. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3384. Suppress content-range error when 'Content-Range' response header
  3385. doesn't contains bytes-unit specifier 'bytes'
  3386. * src/HttpHeader.cc (getRange)
  3387. * test/HttpHeaderTest.cc
  3388. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3389. Fixed compilation error with g++-4.3
  3390. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Added missing include files for MinGW
  3392. * test/HttpHeaderProcessorTest.cc
  3393. * test/DHTRoutingTableSerializerTest.cc
  3394. * test/DHTRoutingTableDeserializerTest.cc
  3395. * test/UriListParserTest.cc
  3396. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3397. Now download line is printed nicely with no garbage at the end of
  3398. line. I use ioctl to get the columns of terminal.
  3399. If stdout is redirected to another device, instead of carriage return,
  3400. end of line '\n' character is used. This is feature request#1909659
  3401. * src/ConsoleStatCalc.cc (calculateStat)
  3402. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. Included a2time.h
  3404. * src/DHTMessageDispatcher.h
  3405. * src/DHTMessageEntry.h
  3406. * src/DHTReplaceNodeTask.h
  3407. * src/DHTMessageTracker.h
  3408. * src/Util.h
  3409. * src/CookieBox.h
  3410. * src/SocketCore.h
  3411. * src/DefaultBtMessageDispatcher.h
  3412. * src/SocketCore.cc
  3413. * src/Util.cc
  3414. * src/DHTPingTask.h
  3415. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3416. Fixed high memory footprint when DHT is enabled.
  3417. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3418. queued than it is processed and the queue is getting longer. As a
  3419. consequence, momory usage is increased.
  3420. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3421. replacement cache in DHTBucket which is described in Kademlia paper.
  3422. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3423. DHTReplaceNodeTask.
  3424. * src/DHTBucket.{h, cc}
  3425. (cacheNode): New function.
  3426. (getCachedNodes): New function.
  3427. (dropNode): Push back cached node to _nodes.
  3428. * test/DHTBucketTest.cc
  3429. (testCacheNode): New test
  3430. (testDropNode): New test
  3431. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3432. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3433. the unused 4KB memory when ssl is not used.
  3434. * src/SocketCore.cc
  3435. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Added summary log for peer announce storage.
  3437. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3438. Removed cast
  3439. * src/DefaultPeerStorage.cc (addPeer)
  3440. Log exception message
  3441. * src/DHTMessageTracker.cc (handleTimeout)
  3442. Fixed casting
  3443. * test/HttpRequestTest.cc
  3444. * test/MetalinkProcessorTest.cc
  3445. * test/PieceTest.cc
  3446. * test/MetalinkEntryTest.cc
  3447. * test/SequenceTest.cc
  3448. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3449. * src/ParameterizedStringParser.cc (createLoop):
  3450. Removed unused variable sstep.
  3451. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3452. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3453. * src/Util.{h, cc}
  3454. (parseUInt): New function.
  3455. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3456. The actual range is uint32_t.
  3457. * test/UtilTest.cc
  3458. * src/ParameterizedStringParser.cc:
  3459. Use Util::parseUInt() for loop variables.
  3460. * test/ParameterizedStringParserTest.cc
  3461. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3462. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Rewritten the functions for binding port.
  3464. * src/DHTConnectionImpl.{h, cc}
  3465. * src/PeerListenCommand.{h, cc}
  3466. * src/DHTSetup.cc
  3467. * src/BtSetup.cc
  3468. * test/DHTConnectionImplTest.cc
  3469. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3470. type cleanup for allmost all remaining files.
  3471. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3472. Type clarification
  3473. * src/PeerSessionResource.{h, cc}
  3474. * src/DefaultPieceStorage.{h, cc}
  3475. * src/Peer.{h, cc}
  3476. * test/PeerSessionResourceTest.cc
  3477. Use div function
  3478. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3479. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3480. Type clarification
  3481. * src/DefaultPeerStorage.{h, cc}
  3482. * test/DefaultPeerStorageTest.cc
  3483. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3484. Type clarification: size_t for length or size, uint64_t for file
  3485. length, off_t for file offset.
  3486. * src/DefaultBtProgressInfoFile.cc
  3487. * src/DefaultBtContext.{h, cc}
  3488. * src/DefaultBtInteractive.cc
  3489. * src/DownloadCommand.{h, cc}
  3490. * src/IteratableChunkChecksumValidator.{h, cc}
  3491. * src/SegmentMan.{h, cc}
  3492. * src/SingleFileDownloadContext.{h, cc}
  3493. * src/IteratableChecksumValidator.{h, cc}
  3494. * src/BtContext.h
  3495. * src/IteratableValidator.h
  3496. * src/DownloadContext.h
  3497. * test/SingleFileDownloadContextTest.cc
  3498. * test/DefaultBtContextTest.cc
  3499. * test/MockBtContext.h
  3500. * test/Metalink2RequestGroupTest.cc
  3501. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3502. Type clarification: size_t for length or size, uint64_t for file
  3503. length, off_t for file offset.
  3504. * src/PiecedSegment.cc
  3505. * src/GrowSegment.h
  3506. * src/DefaultBtRequestFactory.h
  3507. * src/DefaultBtProgressInfoFile.cc
  3508. * src/UnknownLengthPieceStorage.h
  3509. * src/DefaultPieceStorage.cc
  3510. * src/UnknownLengthPieceStorage.cc
  3511. * src/DefaultBtInteractive.cc
  3512. * src/GrowSegment.cc
  3513. * src/BitfieldMan.h
  3514. * src/DownloadCommand.cc
  3515. * src/BtRequestFactory.h
  3516. * src/PiecedSegment.h
  3517. * src/DefaultPieceStorage.h
  3518. * src/Piece.cc
  3519. * src/DefaultBtRequestFactory.cc
  3520. * src/PieceStorage.h
  3521. * src/Segment.h
  3522. * src/Piece.h
  3523. * src/BitfieldMan.cc
  3524. * src/Util.cc
  3525. * test/DefaultBtProgressInfoFileTest.cc
  3526. * test/DefaultPieceStorageTest.cc
  3527. * test/MockPieceStorage.h
  3528. * test/BtRequestMessageTest.cc
  3529. * test/DefaultBtMessageDispatcherTest.cc
  3530. * test/BitfieldManTest.cc
  3531. * test/GrowSegmentTest.cc
  3532. * test/PieceTest.cc
  3533. * test/SegmentTest.cc
  3534. * test/SegmentManTest.cc
  3535. * test/DefaultBtRequestFactoryTest.cc
  3536. * test/MockBtRequestFactory.h
  3537. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3538. Fixed compilation error with --disable-nls
  3539. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3540. in gettext.h causes the problem.
  3541. * src/common.h
  3542. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Removed subPiece related functions.
  3544. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3545. * src/DefaultPieceStorage.{h, cc}
  3546. * test/PieceTest.cc
  3547. * test/DefaultPieceStorageTest.cc
  3548. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. Use unsigned char for data store.
  3550. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3551. Bump up version number to 0.13.0+1
  3552. * configure.ac
  3553. * Release 0.13.0+1
  3554. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3555. Changed inactive connection timeout to 120.
  3556. To accept more mulually interested peers, disconnect peer when there
  3557. is no interest between us after certain time passed.
  3558. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3559. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3560. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3561. when compiled with async DNS support.
  3562. * src/DownloadEngine.cc
  3563. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3564. value '10' will be a little bit short when some DNS servers are
  3565. offline and several DNS servers are tried. It should be configured
  3566. by command-line option.
  3567. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Merged Ross's mingw patch.
  3569. * src/DHTRoutingTableDeserializer.cc
  3570. * src/DHTRoutingTableSerializer.cc
  3571. * src/Platform.{h, cc}
  3572. * src/timegm.h
  3573. * src/gettimeofday.h
  3574. * src/getaddrinfo.h
  3575. * src/SocketCore.h
  3576. * src/common.h
  3577. * src/inet_aton.h
  3578. * src/DownloadEngine.h
  3579. * src/gai_strerror.h
  3580. * src/a2netcompat.h
  3581. * configure.ac
  3582. * configure
  3583. * aclocal.m4
  3584. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3585. Included missing iostream.
  3586. * test/AllTest.cc
  3587. * test/BtDependencyTest.cc
  3588. * test/BtExtendedMessageTest.cc
  3589. * test/DHTConnectionImplTest.cc
  3590. * test/DHTMessageFactoryImplTest.cc
  3591. * test/DHTMessageTrackerEntryTest.cc
  3592. * test/DHTNodeTest.cc
  3593. * test/DHTRoutingTableSerializerTest.cc
  3594. * test/DefaultBtAnnounceTest.cc
  3595. * test/DefaultBtContextTest.cc
  3596. * test/DefaultBtMessageFactoryTest.cc
  3597. * test/DefaultExtensionMessageFactoryTest.cc
  3598. * test/HandshakeExtensionMessageTest.cc
  3599. * test/HttpResponseTest.cc
  3600. * test/MetalinkProcessorTest.cc
  3601. * test/MultiFileAllocationIteratorTest.cc
  3602. * test/SocketCoreTest.cc
  3603. * test/UTPexExtensionMessageTest.cc
  3604. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3605. Reorganized includes.
  3606. * src/NameResolver.cc
  3607. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Fixed compilation error without ares/c-ares
  3609. * src/NameResolver.h:
  3610. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Added a test for large file.
  3612. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3613. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3614. Fixed the bug that file size is ignored if size > INT32_MAX
  3615. * src/SizeMetalinkParserState.cc (endElement):
  3616. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3617. Bump up version number to 0.13.0
  3618. * configure.ac
  3619. * Release 0.13.0
  3620. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3621. Updated Makfefile.am to make 'make dist' work.
  3622. Now packaged filename is aria2c-VERSION.tar.bz2.
  3623. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3624. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3625. Large file support is now configured by configure script.
  3626. * configure.ac
  3627. Removed unsused source files
  3628. * src/
  3629. * test/
  3630. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3631. Peer.h and BtContext.h respectively.
  3632. * src/Peer.h
  3633. * src/BtContext.h
  3634. Updated translations.
  3635. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3636. translations. Great thanks to all translators!;)
  3637. * po/*.{po, gmo}
  3638. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3639. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3640. statically declared sha1 MessageDigestContext.
  3641. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3642. initialization of short-lived MessageDigestContext.
  3643. * src/MessageDigestHelper.{h, cc}
  3644. * src/main.cc
  3645. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3646. the initialization of MessageDigestContext every time in validating
  3647. chunk checksum.
  3648. * src/DownloadCommand.{h, cc}
  3649. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3650. Add a file descriptor which connected to fast peer(latency<1500) to
  3651. select(). This change reduced CPU load.
  3652. * src/PeerInteractionCommand.cc
  3653. * src/DefaultBtInteractive.{h, cc}
  3654. * src/BtInteractive.h
  3655. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3656. Fixed the previous insufficient fix for possible busy loop.
  3657. * src/MSEHandshake.cc (identifyHandshakeType)
  3658. Removed unused functions.
  3659. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  3660. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3661. Fixed possible busy loop if first 20 bytes are not received for a few
  3662. minutes.
  3663. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  3664. * src/ReceiverMSEHandshakeCommand.cc
  3665. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. Fixed compilation error
  3667. * src/ExpatMetalinkProcessor.cc
  3668. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3670. * src/DHTBucket.cc
  3671. Removed unnecessary cast.
  3672. * src/HandshakeExtensionMessage.cc
  3673. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3675. is missing.
  3676. * src/OptionHandlerFactory.cc
  3677. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3678. Fixed the bug that HAVE message is not sent for a piece they are
  3679. downloaded fom http/ftp server before any BitTorrent handshake is done
  3680. with peers.
  3681. * src/DefaultBtInteractive.cc
  3682. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3683. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3684. * src/Makefile.am
  3685. * src/Makefile.in
  3686. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3687. Updated README. Added html version of README and man page.
  3688. * README
  3689. * README.html
  3690. * readme2html: Shell script to generate README.html from README using
  3691. asciidoc.
  3692. * doc/aria2c.1.html
  3693. * doc/makeman: Added the line to generate aria2c.1.html
  3694. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3695. Fixed offset calculation.
  3696. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3697. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3698. Rewritten itos and uitos using template. llitos and ullitos are
  3699. replaced with itos and uitos respectively.
  3700. * src/Util.{h, cc}
  3701. * test/UtilTest.cc
  3702. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3703. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3704. of the number of bytes required for storing public key and shared
  3705. secret.
  3706. * src/LibgcryptDHKeyExchange.h
  3707. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3708. * src/MSEHandshake.cc
  3709. * test/DHKeyExchangeTest.cc
  3710. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3711. Removed since they are not used.
  3712. * src/Xml2MetalinkProcessor.{h, cc}
  3713. * src/Socket.cc
  3714. * src/SegmentSplitter.{h, cc}
  3715. * test/Xml2MetalinkProcessorTest.cc
  3716. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3717. Fixed the bug that prevents aria2 from stopping other than by pressing
  3718. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3719. option. aria2 doesn't stop even after --seed-time is satisfied and
  3720. continues to output blank lines in the console.
  3721. * src/ReceiverMSEHandshakeCommand.cc
  3722. * src/PeerReceiveHandshakeCommand.cc
  3723. * src/PeerListenCommand.cc
  3724. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Bump up version number to 0.13.0rc
  3726. * configure.ac
  3727. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3728. Updated man page and some usage text.
  3729. * doc/aria2c.1.txt
  3730. * src/usage_text.h
  3731. * po/*.{po, gmo}
  3732. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3733. Updated translations. Added Finnish and Hebrew translations.
  3734. Great thanks to all translators!
  3735. * po/*.{po, gmo}
  3736. * po/LINGUAS
  3737. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Log more detailed information about each message.
  3739. * src/DHTQueryMessage.{h, cc}
  3740. * src/DHTGetPeersMessage.{h, cc}
  3741. * src/DHTFindNodeReplyMessage.{h, cc}
  3742. * src/DHTGetPeersReplyMessage.{h, cc}
  3743. * src/DHTAnnouncePeerMessage.{h, cc}
  3744. * src/DHTResponseMessage.{h, cc}
  3745. * src/DHTFindNodeMessage.{h, cc}
  3746. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3747. Use constants defined in prefs.h
  3748. * src/option_processing.cc
  3749. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3750. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3751. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3752. Make room for future enchancements for IPv6 addresses.
  3753. Bump up version number of dht.dat file format to 2.
  3754. Not compatible with previous version.
  3755. * src/DHTRoutingTableSerializer.cc
  3756. * src/DHTRoutingTableDeserializer.cc
  3757. * test/DHTRoutingTableSerializerTest.cc
  3758. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3759. Added handling for the return values from
  3760. PeerMessageUtil::createcompact().
  3761. * src/DefaultBtContext.cc (computeFastSet):
  3762. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3763. Fixed abort when peer's ip address is IPv4-mapped address.
  3764. * src/DefaultBtContext.cc (computeFastSet)
  3765. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3766. cannot handle IPv4-mapped addresses.
  3767. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3768. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3769. Proper return value handling for OpenSSL functions.
  3770. * src/LibsslDHKeyExchange.h
  3771. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3772. Random bytes generation using libgcrypt and OpenSSL.
  3773. * src/DHTUtil.{h, cc}
  3774. * test/DHTUtilTest.cc
  3775. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3777. received.
  3778. * src/DHTMessageReceiver.cc (receiveMessage)
  3779. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. Fixed the bug that a return code is always 0. BUG#1897704
  3781. If error occurred during the download or there exist unfinished
  3782. downloads, aria2 returns with code 1.
  3783. * src/RequestGroupMan.{h, cc}
  3784. * src/MultiUrlRequestInfo.{h, cc}
  3785. * src/main.cc
  3786. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3787. IPv6 support for SocketCore class.
  3788. TODO: In SocketCore::establishConnection(), this is insufficient to
  3789. determin the failure of connect() here because the socket is
  3790. non-blocking state. The next addresses should be tried after select().
  3791. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3792. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3793. instead which address family independent.
  3794. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3795. information in a compact peer format which is for IPv4 only.
  3796. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3797. this is a spec of BitTorrent protocol.
  3798. * src/SocketCore.{h, cc}
  3799. * src/PeerMessageUtil.cc
  3800. * test/SocketCoreTest.cc
  3801. * test/PeerMessageUtilTest.cc
  3802. * test/DHTConnectionImplTest.cc
  3803. Handle IPv4-mapped addresses.
  3804. * src/DHTNode.cc: Now identity is determined by node id.
  3805. * src/DHTMessageTrackerEntry.cc
  3806. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3807. should handle it.
  3808. * src/DHTRoutingTableDeserializer.cc
  3809. * src/DHTMessageFactoryImpl.cc
  3810. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. Change the unit of --stop option from a minute to a second.
  3812. * src/usage_text.h
  3813. * src/DownloadEngineFactory.cc
  3814. * src/OptionHandlerFactory.cc
  3815. * src/message.h
  3816. * src/TimedHaltCommand.cc
  3817. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3818. Make listening socket non-block mode.
  3819. * src/FtpConnection.cc
  3820. * src/FtpNegotiationCommand.{h, cc}
  3821. * src/PeerListenCommand.cc
  3822. Fixed the bug that cause slow ftp negotiation.
  3823. * src/FtpNegotiationCommand.{h, cc}
  3824. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Added basic tag to --enable-dht, --dht-listen-port option.
  3826. * src/HelpItemFactory.cc (createHelpItems)
  3827. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. Updated text.
  3829. * src/usage_text.h
  3830. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3832. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Determin _threadtholdSpeed in each constructor for
  3834. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3835. * src/ActivePeerConnectionCommand.{h, cc}
  3836. * src/PeerReceiveHandshakeCommand.{h, cc}
  3837. * src/BtSetup.cc
  3838. * src/BtConstants.h
  3839. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3840. Added --bt-min-crypto-level and --bt-require-crypto options.
  3841. * src/OptionHandlerFactory.cc
  3842. * src/MSEHandshake.cc
  3843. * src/HelpItemFactory.cc
  3844. * src/option_processing.cc
  3845. * src/ReceiverMSEHandshakeCommand.cc
  3846. * src/prefs.h
  3847. * src/DefaultBtAnnounce.cc
  3848. * src/InitiatorMSEHandshakeCommand.cc
  3849. * src/usage_text.h
  3850. * test/MSEHandshakeTest.cc
  3851. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3852. Bump version number to 0.13.0b
  3853. * configure.ac
  3854. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3855. Updated doc.
  3856. * src/MessageDigestHelper.h:
  3857. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3858. Use raw message digest as a token instead of its hexadecimal
  3859. representation.
  3860. * src/DHTTokenTracker.cc (generateToken)
  3861. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Added Message Stream Encryption(MSE) support.
  3863. Currently, aria2 accepts incoming connections with Obfuscation Header
  3864. and legacy BitTorrent Header and establishes connections with
  3865. Obfuscation Header first and if failed then retry with legacy
  3866. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3867. choose ARC4. The new option to change the default behavior is planned.
  3868. For tracker extension, "supportcrypto=1" is added statically.
  3869. * src/PeerInitiateConnectionCommand.{h, cc}
  3870. * src/PeerConnection.{h, cc}
  3871. * src/HandleRegistry.h
  3872. * src/SocketCore.h
  3873. * src/PeerReceiveHandshakeCommand.{h, cc}
  3874. * src/BtRegistry.{h, cc}
  3875. * src/PeerListenCommand.cc
  3876. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3877. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3878. * src/MSEHandshake.{h, cc}
  3879. * src/ARC4Encryptor.h
  3880. * src/ARC4Decryptor.h
  3881. * src/LibgcryptARC4Encryptor.h
  3882. * src/LibgcryptARC4Decryptor.h
  3883. * src/LibgcryptARC4Context.h
  3884. * src/LibsslARC4Encryptor.h
  3885. * src/LibsslARC4Decryptor.h
  3886. * src/LibsslARC4Context.h
  3887. * src/DHKeyExchange.h
  3888. * src/LibgcryptDHKeyExchange.h
  3889. * src/LibsslDHKeyExchange.h
  3890. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3891. * test/DefaultBtAnnounceTest.cc
  3892. * test/ARC4Test.cc
  3893. * test/DHKeyExchangeTest.cc
  3894. Removed prepareForRetry() because it is not used.
  3895. * src/PeerAbstractCommand.{h, cc}
  3896. * src/PeerInteractionCommand.{h, cc}
  3897. * src/PeerInitiateConnectionCommand.{h, cc}
  3898. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3899. Added the ability to load nodes from torrent file. These nodes are
  3900. added to the routing table when downloading that torrent.
  3901. * src/BtContext.h
  3902. * src/DefaultBtContext.{h, cc}
  3903. * src/DHTSetup.cc
  3904. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  3905. hostname and port pair, and resolves all of them.
  3906. * src/NameResolver.{h, cc}: Added reset().
  3907. * src/RequestGroup.cc
  3908. * test/DefaultBtContextTest.cc
  3909. * test/MockBtContext.h
  3910. Removed assert() from DefaultBtContext and throw exception instead.
  3911. * src/DefaultBtContext.cc
  3912. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3913. Fixed segmentation fault bug when exiting if dht is disabled.
  3914. * src/RequestGroup.cc
  3915. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3916. Fixed typo in log message and define the message in message.h
  3917. * src/TimedHaltCommand.cc
  3918. * src/message.h
  3919. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Included RecoverableException.h to fix compilation error.
  3921. * test/DHTMessageFactoryImplTest.cc
  3922. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3923. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  3924. * test/DHTPingMessageTest.cc
  3925. * test/DHTGetPeersMessageTest.cc
  3926. * test/DHTFindNodeMessageTest.cc
  3927. * test/DHTAnnouncePeerMessageTest.cc
  3928. * test/MockDHTMessage.h
  3929. * test/MockDHTMessageFactory.h
  3930. * test/MockDHTMessageDispatcher.h: New class.
  3931. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3932. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  3933. virtual.
  3934. * src/DHTMessageDispatcher.h
  3935. * src/DHTMessageDispatcherImpl.{h, cc}
  3936. * src/DHTSetup.cc
  3937. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3938. Adding handling of DHT error message. Just log error message and
  3939. throw exception.
  3940. * src/DHTMessageFactoryImpl.cc
  3941. * test/DHTMessageFactoryImplTest.cc
  3942. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3943. Added handling of dynamic cast failure.
  3944. * src/DHTNodeLookupTask.cc
  3945. * src/DHTPeerLookupTask.cc
  3946. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. Added the ability to stop aria2 itself when given time has passed
  3948. from start. Use --stop option to specify time in minutes.
  3949. When 0 is given, this feature is disabled.
  3950. * src/OptionHandlerFactory.cc
  3951. * src/TimeBasedCommand.h: Make _interval protected scope.
  3952. * src/HelpItemFactory.cc
  3953. * src/option_processing.cc
  3954. * src/prefs.h
  3955. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  3956. before calling RequestGroupMan::fillRequestGroupFromReserver().
  3957. Without this modification, the result list shows "ERR" when aria2 is
  3958. stopped by --stop option. It should be "INPR".
  3959. * src/DownloadEngine.{h, cc}
  3960. * src/DownloadEngineFactory.cc
  3961. * src/usage_text.h
  3962. * src/TimedHaltCommand.{h, cc}: New class.
  3963. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3964. Bootstrap through node added by port message.
  3965. Currently bootstrap is executed if the number of buckets in routing
  3966. table is 1.
  3967. * src/BtPortMessage.{h, cc}
  3968. * src/DefaultBtMessageFactory.{h, cc}
  3969. * src/PeerInteractionCommand.cc
  3970. * test/BtPortMessageTest.cc
  3971. * test/MockDHTTask.h
  3972. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Extract the Peer class's member variables, which are only needed after
  3974. PeerInteractionCommand, into PeerSessionResource class.
  3975. This class is instantiated in PeerInteractionCommand class's ctor and
  3976. released in its dtor.
  3977. This will make Peer class lightweight and uses less memory for peers
  3978. which are not connected and wait in the queue.
  3979. * src/PeerChokeCommand.cc
  3980. * src/PeerSessionResource.{h, cc}
  3981. * src/PeerInteractionCommand.cc
  3982. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  3983. * src/DefaultBtInteractive.cc
  3984. * src/BtPieceMessage.cc
  3985. * src/BtInterestedMessage.cc
  3986. * src/BtUnchokeMessage.cc
  3987. * src/DefaultPeerStorage.{h, cc}
  3988. * src/PeerInitiateConnectionCommand.cc
  3989. * src/ActivePeerConnectionCommand.cc
  3990. * src/BtNotInterestedMessage.cc
  3991. * src/DefaultBtMessageDispatcher.cc
  3992. * src/BtChokeMessage.cc
  3993. * src/BtRequestMessage.cc
  3994. * src/Peer.{h, cc}
  3995. * src/BtRegistry.h
  3996. * src/TrackerWatcherCommand.cc
  3997. * src/PeerReceiveHandshakeCommand.cc
  3998. * test/BtExtendedMessageTest.cc
  3999. * test/BtAllowedFastMessageTest.cc
  4000. * test/BtCancelMessageTest.cc
  4001. * test/DefaultPieceStorageTest.cc
  4002. * test/BtBitfieldMessageTest.cc
  4003. * test/BtHaveMessageTest.cc
  4004. * test/BtNotInterestedMessageTest.cc
  4005. * test/BtRequestMessageTest.cc
  4006. * test/PeerSessionResourceTest.cc
  4007. * test/DefaultBtMessageDispatcherTest.cc
  4008. * test/PeerTest.cc
  4009. * test/BtInterestedMessageTest.cc
  4010. * test/BtRejectMessageTest.cc
  4011. * test/BtChokeMessageTest.cc
  4012. * test/DefaultPeerStorageTest.cc
  4013. * test/BtHaveNoneMessageTest.cc
  4014. * test/BtHaveAllMessageTest.cc
  4015. * test/DefaultExtensionMessageFactoryTest.cc
  4016. * test/BtUnchokeMessageTest.cc
  4017. * test/DefaultBtMessageFactoryTest.cc
  4018. * test/HandshakeExtensionMessageTest.cc
  4019. * test/UTPexExtensionMessageTest.cc
  4020. * test/DefaultBtRequestFactoryTest.cc
  4021. * test/BtPieceMessageTest.cc
  4022. Removed typedef PeerStats.
  4023. * src/PeerStat.h
  4024. * src/SegmentMan.cc
  4025. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Added std namespace to copy, remove_copy, back_inserter,
  4027. front_inserter.
  4028. * src/RequestGroupMan.cc
  4029. * src/DefaultPieceStorage.cc
  4030. * src/StreamFileAllocationEntry.cc
  4031. * src/BtFileAllocationEntry.cc
  4032. * src/RequestGroup.cc
  4033. * src/MetalinkEntry.cc
  4034. * src/DelegatingPeerListProcessor.cc
  4035. * src/DefaultBtRequestFactory.cc
  4036. * src/DefaultBtMessageDispatcher.cc
  4037. * src/version_usage.cc: Included <algorithm>
  4038. * src/main.cc
  4039. * src/MetalinkParserController.cc
  4040. * src/DefaultBtContext.cc
  4041. * src/DownloadEngineFactory.cc
  4042. * src/a2algo.h
  4043. Removed.
  4044. * test/StreamUriListParserTest.cc
  4045. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4047. ActivePeerConnectionCommand when it is given and
  4048. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4049. * src/ActivePeerConnectionCommand.{h, cc}
  4050. * src/BtSetup.cc
  4051. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Only add socket to DownloadEngine's select routine when peer or
  4053. localhost is unchoked and interested. This lowers CPU usage a
  4054. little bit.
  4055. * src/PeerInteractionCommand.cc
  4056. * src/PeerAbstractCommand.{h, cc}
  4057. * src/BtInteractive.h
  4058. * src/DefaultBtInteractive.{h, cc}
  4059. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. Revert previous change because get_peers message is needed for
  4061. announce_peer anyway.
  4062. * src/DHTGetPeersCommand.cc
  4063. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Request peers thought DHT only when download hasn't finished.
  4065. * src/DHTGetPeersCommand.cc
  4066. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4068. * src/DHTBucketRefreshTask.{h, cc}
  4069. * src/DHTSetup.cc
  4070. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4071. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4072. standard classes.
  4073. Included string.h where mem* function are used.
  4074. Added namespace aria2.
  4075. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4076. Create directory before saving DHT routing table.
  4077. Now ios::failure is now handled properly.
  4078. * src/DHTAutoSaveCommand.cc
  4079. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Removed unnecessary cerr.
  4081. * src/DownloadEngine.cc
  4082. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Catch exception inside DHTMessageReceiver::receiveMessage().
  4084. Log unknown message.
  4085. * src/DHTMessageReceiver.{h, cc}
  4086. * src/DHTMessageFactory.h
  4087. * src/DHTMessageFactoryImpl.{h, cc}
  4088. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4089. * src/DHTInteractionCommand.cc
  4090. * src/DHTUnknownMessage.{h, cc}
  4091. * test/DHTUnknownMessageTest.cc
  4092. * test/MockDHTMessageFactory.h
  4093. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Commented out ip address comparison because a host can have multiple
  4095. ip addresses and it is hard to predict the hostname is resolved into
  4096. which one.
  4097. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4098. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4099. * po/Makefile.in: Removed since this is generated by configure.
  4100. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Fixed compiler warning about redefinition of SIZE_MAX.
  4102. Use common.h instead of config.h directly here.
  4103. * src/Platform.{h, cc}
  4104. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4105. here.
  4106. * common.h
  4107. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  4108. Updated gettext related files.
  4109. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4110. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4111. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4112. Added DHT functionality, compatible with mainline.
  4113. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4114. You may need to specify entry point to DHT network using
  4115. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4116. Use --dht-listen-port to specify port number. Make sure that your
  4117. firewall configuration can pass through UDP traffic to the port.
  4118. The routing table is saved in $HOME/.aria2/dht.dat.
  4119. * src/DHT*
  4120. * src/BNode.{h, cc}
  4121. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4122. particular torrent.
  4123. * src/Data.cc: Rewritten ctor.
  4124. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4125. --dht-entry-point.
  4126. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4127. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4128. ends, remove BtContext from DHTPeerAnnounceStorage.
  4129. * src/BtPortMessage.{h, cc}: Rewritten.
  4130. * src/message.h
  4131. * src/OptionHandlerImpl.cc
  4132. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  4133. --dht-entry-point.
  4134. * src/Dictionary.{h, cc} (remove): New function.
  4135. * src/prefs.h
  4136. * src/DefaultBtMessageFactory.h
  4137. * src/BtHandshakeMessage.cc
  4138. * src/ActivePeerConnectionCommand.cc
  4139. * src/SocketCore.{h, cc}: Added datagram socket support.
  4140. * src/DefaultBtMessageFactory.cc
  4141. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  4142. Create DHT commands.
  4143. * src/BtMessageFactory.h
  4144. * src/PeerMessageUtil.{h, cc}
  4145. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4146. Fixed the bug that log file is not written when configuration file doesn't exist.
  4147. This is caused by using Logger class before LogFactory is not configured.
  4148. BUG #1875079
  4149. * src/option_processing.cc
  4150. Warning message "configuration doesn't exist" is only printed when --conf is
  4151. given.
  4152. * src/option_processing.cc
  4153. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4154. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  4155. ShaVisitor is now deprecated and slated to be removed.
  4156. * src/DefaultBtContext.cc
  4157. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4158. Externalize message to message.h
  4159. * src/Platform.cc
  4160. * src/message.h
  4161. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Set default domain and default path to cookie.
  4163. * src/HttpResponse.cc
  4164. * src/CookieBox.{h, cc}
  4165. * src/CookieParser.{h, cc}
  4166. * test/CookieParserTest.cc
  4167. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Added --no-conf and --conf-path command-line option.
  4169. --no-conf option disables loading aria2.conf file.
  4170. --conf-path option changes the configuration file path. The default
  4171. file path is $HOME/.aria2/aria2.conf
  4172. Added a warning message when the configuration file is not found.
  4173. * src/HelpItemFactory.cc
  4174. * src/option_processing.cc
  4175. * src/prefs.h
  4176. * src/usage_text.h
  4177. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. Added the message to inform users that other help categories are
  4179. available in -h option.
  4180. * src/version_usage.cc
  4181. * src/TagContainer.{h, cc}
  4182. * test/TagContainerTest.cc
  4183. * src/TaggedItem.{h, cc}
  4184. * test/TaggedItemTest.cc
  4185. * src/HelpItem.h
  4186. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4187. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  4188. from PiecedSegment's ctor.
  4189. Previously Piece::getAllMissingBlockIndexes() is called from
  4190. PiecedSegment() but it is rather expensive since only first element is
  4191. used.
  4192. * src/PiecedSegment.cc
  4193. * src/Piece.{h, cc}
  4194. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Rewritten get*Missing*Index functions. Now no need to allocate memory
  4196. each time these functions are called.
  4197. * src/BitfieldMan.{h, cc}
  4198. * test/BitfieldManTest.cc
  4199. * src/array_fun.h
  4200. * test/array_funTest.cc
  4201. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  4202. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  4203. filtered. Removed unnecessary cast to int32_t.
  4204. * src/BitfieldMan.{h, cc}
  4205. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  4207. payload length(4bytes) are received. This happens because lenbufLength
  4208. is not updated in this particular case and successive call of
  4209. receiveMessage() overwrites payload length with bytes recieved which
  4210. are payload body.
  4211. * src/PeerConnection.{h, cc}
  4212. * src/message.h
  4213. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  4215. peer if there are peers that have same ipaddr and port.
  4216. I've experiened segmentation fault and "pure virtual function was
  4217. called" error.
  4218. * src/Peer.h
  4219. * test/PeerTest.cc
  4220. * src/DefaultPeerStorage.cc
  4221. * test/DefaultPeerStorageTest.cc
  4222. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Removed a call to isPowerOf() because it is no longer necessary here
  4224. and a request block is not always power of 2.
  4225. BUG#1866924
  4226. * src/PeerMessageUtil.cc (checkLength)
  4227. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. Fixed the bug that always first found Segment is removed from
  4229. usedSegmentEntries. Removed unused functions.
  4230. * src/SegmentMan.{h, cc}
  4231. * test/SegmentManTest.cc
  4232. Fixed the bug that ServerHost is not removed.
  4233. * src/RequestGroup.cc
  4234. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4235. Fixed the bug that SegmentMan::completeSegment() is not called
  4236. even if Segment is complete when --lowest-speed-limit is enabled.
  4237. BUG#1864525
  4238. * src/DownloadCommand.{h, cc}
  4239. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4240. Fixed: hash algorithm 'sha1' is always used.
  4241. * src/DownloadCommand.cc (validatePieceHash)
  4242. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4243. Added --enable-peer-exchange command-line option.
  4244. * src/OptionHandlerFactory.cc
  4245. * src/HelpItemFactory.cc
  4246. * src/option_processing.cc
  4247. * src/usage_text.h
  4248. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Move extension from BtRuntime to ExtensionMessageFactory, because
  4250. extension can be specified per peer, not per torrent.
  4251. * src/DefaultBtInteractive.cc
  4252. * src/BtRuntime.h
  4253. * src/ExtendedMessagingAware.h
  4254. * src/ExtensionMessageFactory.h
  4255. * src/DefaultExtensionMessageFactory.cc
  4256. * test/DefaultExtensionMessageFactoryTest.cc
  4257. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4258. Added categorized option help. Specify category using --help option.
  4259. Also added the ability to search options in forward match.
  4260. * src/HelpItem.{h, cc}
  4261. * test/HelpItemTest.cc
  4262. * src/HelpItemFactory.{h, cc}
  4263. * src/TagContainer.{h, cc}
  4264. * test/TagContainerTest.cc
  4265. * src/option_processing.cc
  4266. * src/prefs.h
  4267. * src/TaggedItem.{h, cc}
  4268. * test/TaggedItemTest.cc
  4269. * src/version_usage.cc
  4270. * src/help_tags.h
  4271. * src/usage_text.h
  4272. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4273. Fixed segmentation fault when bad torrent metainfo is parsed.
  4274. Added dynamic_cast properly to detect the misconfiguration of metainfo
  4275. and then throw exception or skip it.
  4276. * src/DefaultBtContext.{h, cc}
  4277. * test/DefaultBtContextTest.cc
  4278. * src/AnnounceList.cc
  4279. * src/CompactPeerListProcessor.cc
  4280. * src/message.h
  4281. * src/DefaultBtAnnounce.{h, cc}
  4282. * test/DefaultBtAnnounceTest.cc
  4283. * src/BencodeVisitor.cc
  4284. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Added missing "B"(=Byte). So now the message looks like this:
  4286. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  4287. * src/message.h (MSG_SHARE_RATIO_REPORT)
  4288. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4289. Show the seed ratio after torrent downloads.
  4290. For example, after torrent download completed and --seed-time and
  4291. --seed-ratio conditions are fulfilled, following message is printed
  4292. right after "Download complete: .....":
  4293. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  4294. * src/RequestGroupMan.cc
  4295. * src/RequestGroup.{h, cc}
  4296. * src/message.h
  4297. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4298. Remove a defunct control file. A defunct control file means that while
  4299. it exists, but the corresponding download file is missing.
  4300. After its removal, a download restarts from the beginning.
  4301. * src/RequestGroup.cc
  4302. * src/message.h
  4303. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Allocate bitfield in Peer when it is really used. More specifically,
  4305. bitfield in Peer is allocated after the connection is established and
  4306. deallocated when the connection is dropped.
  4307. Since 2 parameters(piece length and total length) was removed from the
  4308. constructor of Peer class, many test classes were modified accordingly.
  4309. See svn log for more detailed information.
  4310. * src/PeerInteractionCommand.cc
  4311. * src/CompactPeerListProcessor.cc
  4312. * src/Peer.cc
  4313. * src/DefaultPeerListProcessor.cc
  4314. * src/PeerListenCommand.cc
  4315. * src/PeerReceiveHandshakeCommand.cc
  4316. Fixed memory leak
  4317. * src/Piece.cc
  4318. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4319. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  4320. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  4321. command-line options.
  4322. * src/option_processing.cc
  4323. * src/ActivePeerConnectionCommand.cc
  4324. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Send have message to peer if it already has the piece.
  4326. * src/BtHaveMessage.{h, cc}
  4327. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4329. port.
  4330. * src/DefaultPeerStorage.{h, cc}
  4331. * test/DefaultPeerStorageTest.cc
  4332. * src/HandshakeExtensionMessage.cc
  4333. * test/HandshakeExtensionMessageTest.cc
  4334. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4335. * src/PeerStorage.h
  4336. * test/MockPeerStorage.h
  4337. * src/PeerListenCommand.cc
  4338. * src/PeerReceiveHandshakeCommand.cc
  4339. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. Added --metalink-enable-unique-protocol option.
  4341. * src/Metalink2RequestGroup.cc
  4342. * src/option_processing.cc
  4343. * src/prefs.h
  4344. * src/version_usage.cc
  4345. * doc/aria2c.1.txt
  4346. * doc/aria2c.1
  4347. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4348. Allow a peer in incomingPeer to be added peers.
  4349. * src/DefaultPeerStorage.cc
  4350. * test/DefaultPeerStorageTest.cc
  4351. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4353. I could reproduce this bug in following procedure:
  4354. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4355. 2. Restart aria2.
  4356. 3. You see the download stopped around 99%.
  4357. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4358. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4359. If timeout is reached, then _nextCommand is unused and it may contains
  4360. segments and they won't be canceled. Actually, timeout is not needed
  4361. here because if the server dropped connection, then retry is made.
  4362. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4363. Added uTorrent compatible Peer Exchange.
  4364. * src/BencodeVisitor.{h, cc}
  4365. * test/BencodeVisitorTest.cc
  4366. * src/BtConstants.h
  4367. * src/BtContext.h: Added 'private' flag.
  4368. * src/BtExtendedMessage.{h, cc}
  4369. * test/BtExtendedMessageTest.cc
  4370. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4371. reserved field.
  4372. * test/BtHandshakeMessageTest.cc
  4373. * src/BtMessageFactory.h
  4374. * src/BtRegistry.h
  4375. * src/BtRuntime.h: This class holds default extension message IDs for
  4376. aria2. By default, aria2 uses ID 8 for ut_pex.
  4377. * src/DefaultBtContext.cc
  4378. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4379. When it is true, aria2 enables ut_pex. This value is set by
  4380. PeerInteractionCommand.
  4381. * src/DefaultBtMessageFactory.{h, cc}
  4382. * test/DefaultBtMessageFactoryTest.cc
  4383. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4384. handling to DefaultBtInteractive class.
  4385. * src/DefaultExtensionMessageFactory.{h, cc}
  4386. * test/DefaultExtensionMessageFactoryTest.cc
  4387. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4388. the container(peers and incomingPeers. The equality is determined by
  4389. Peer::id).
  4390. * test/DefaultPeerStorageTest.cc
  4391. * src/ExtensionMessage.h
  4392. * test/MockExtensionMessage.h
  4393. * src/ExtensionMessageFactory.h
  4394. * test/MockExtensionMessageFactory.h
  4395. * src/HandshakeExtensionMessage.{h, cc}
  4396. * test/HandshakeExtensionMessageTest.cc
  4397. * src/MetaEntry.h
  4398. * src/Peer.{h, cc}
  4399. * src/PeerInteractionCommand.cc
  4400. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4401. addIncomingPeer.
  4402. * src/PeerMessageUtil.{h, cc}
  4403. * src/PeerObject.h
  4404. * src/UTPexExtensionMessage.{h, cc}
  4405. * test/UTPexExtensionMessageTest.cc
  4406. * src/message.h
  4407. * src/prefs.h
  4408. Fixed the bug that returns incomplete data when it contains null
  4409. character. A convenient constructor was also added.
  4410. * src/Data.{h, cc}
  4411. Rewritten.
  4412. * src/CompactPeerListProcessor.cc
  4413. Fixed typos.
  4414. * src/message.h
  4415. * src/MetaFileUtil.cc
  4416. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4417. Added "Status Legend" label to the explanation text of 'stat' in
  4418. download result and moved it to the last. BUG#1848214
  4419. * src/RequestGroupMan.cc
  4420. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4422. * src/Makefie.am
  4423. * test/Makefile.am
  4424. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Fixed the bug that prevents aria2 from loading cookie file when expire
  4426. value is greater than 2^31-1. BUG#1851066
  4427. * src/CookieBoxFactory.cc
  4428. * test/CookieBoxFactoryTest.cc
  4429. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Fixed possible memory leak when an exception is thrown.
  4431. * src/XML2SAXMetalinkProcessor.cc
  4432. Added Expat support. If both libxml2 and Expat are installed, then
  4433. libxml2 is used by default.
  4434. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4435. ExpatMetalinkProcessor according to the configuration.
  4436. * src/ExpatMetalinkProcessor.{h, cc}
  4437. * src/main.cc: Removed libxml2 specific header and init/free function.
  4438. * src/MetalinkProcessorFactory.{h, cc}
  4439. * src/MetalinkHelper.cc
  4440. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4441. * src/MetalinkProcessor.h
  4442. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4443. MetalinkProcessorTest is used instead.
  4444. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4445. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4446. MetalinkProcessorFactory::newInstance().
  4447. * m4/libexpat.m4
  4448. * configure.ac: Added configuration options for libexpat.
  4449. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. Disabled -s option in metalink download.
  4451. * src/Metalink2RequestGroup.cc
  4452. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. If several protocols are available for a mirror in metalink file,
  4454. aria2 now use one of them. --metalink-preferred-protocol option was
  4455. added to specify the preference of protocol.
  4456. * src/AbstractCommand.cc
  4457. * src/OptionHandlerFactory.cc
  4458. * src/ServerHost.{h, cc}
  4459. * src/Metalink2RequestGroup.cc
  4460. * src/RequestGroup.{h, cc}
  4461. * test/RequestGroupTest.cc
  4462. * src/option_processing.cc
  4463. * src/prefs.h
  4464. * src/HttpResponseCommand.cc
  4465. * src/MetalinkResource.{h, cc}
  4466. * src/FtpNegotiationCommand.cc
  4467. * src/MetalinkEntry.{h, cc}
  4468. * src/MetalinkEntryTest.cc
  4469. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4470. Code cleanup and added debug log.
  4471. * src/PeerConnection.cc
  4472. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Compiler error fix: applied the patch by Tiziano Mueller
  4474. * src/RequestGroup.cc
  4475. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4477. in stopped and completed event.
  4478. * src/AnnounceList.{h, cc}
  4479. * test/AnnounceListTest.cc
  4480. * src/DefaultBtAnnounce.cc
  4481. * test/DefaultBtAnnounceTest.cc
  4482. Sorted URLs.
  4483. * test/Metalink2RequestGroupTest.cc
  4484. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Removed unnecessary string copy. Updated doc and corrected indentation.
  4486. * src/Base64.cc
  4487. Fixed compilation warnings
  4488. * test/DataTest.cc
  4489. * test/HttpRequestTest.cc
  4490. * test/MetaFileUtilTest.cc
  4491. * test/RequestTest.cc
  4492. * Release 0.12.0
  4493. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Updated translations
  4495. * po/{de,fr,ja,nl,ru}.po
  4496. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4497. translations. Many thanks to translators.
  4498. * po/{ca,es,it,pt_BR,sv}.po
  4499. * po/LINGUAS
  4500. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4501. Added a notice about URL
  4502. * src/version_usage.cc
  4503. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4504. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4505. aria2 repeatedly sends stopped request when tracker returns error code.
  4506. * src/AnnounceList.cc
  4507. * test/AnnounceListTest.cc
  4508. * src/AnnounceTier.h
  4509. Added a message when ctrl-c is hit.
  4510. Now second ctrl-c is also handled in signal handler.
  4511. * src/RequestGroupMan.{h, cc}
  4512. * src/RequestGroup.{h, cc}
  4513. * src/MultiUrlRequestInfo.cc
  4514. * src/DownloadEngine.cc
  4515. * src/TrackerWatcherCommand.cc
  4516. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Code cleanup
  4518. * src/Base64.cc (encode)
  4519. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4520. Changed Direct/IO enable/disable procesure in file allocation routine.
  4521. * src/SingleFileAllocationIterator.cc
  4522. (SingleFileAllocationIterator):
  4523. Disable directIO if offset is not multiple of 512.
  4524. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4525. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4526. Enable created SingleFileAllocationIterator's directIO.
  4527. * src/FileAllocationEntry.cc
  4528. (FileAllocationEntry): Enable directIO here.
  4529. (~FileAllocationEntry): Disable directIO here.
  4530. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4531. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4532. * src/Peer.{h, cc}
  4533. * src/DefaultPieceStorage.cc
  4534. * test/DefaultPieceStorageTest.cc
  4535. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Rewritten direct I/O support routine
  4537. * src/SingleFileAllocationIterator.cc
  4538. * src/MultiDiskAdaptor.{h, cc}
  4539. * src/ByteArrayDiskWriter.h
  4540. * src/AbstractSingleDiskAdaptor.h
  4541. * src/AbstractDiskWriter.cc
  4542. * src/DefaultPieceStorage.cc
  4543. * src/DiskWriter.h
  4544. * src/BinaryStream.h
  4545. * src/IteratableChunkChecksumValidator.cc
  4546. * src/IteratableChecksumValidator.cc
  4547. * src/CheckIntegrityEntry.cc
  4548. * src/FileAllocationEntry.cc
  4549. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Fixed typo
  4551. * src/version_usage.cc
  4552. Updated doc
  4553. * doc/aria2c.1.txt
  4554. * doc/aria2c.1
  4555. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Fixed compile error without message digest support.
  4557. * src/FileMetalinkParserState.cc
  4558. * src/MetalinkParserController.{h, cc}
  4559. * test/XML2SAXMetalinkProcessorTest.cc
  4560. * test/MetalinkParserControllerTest.cc
  4561. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Enable direct I/O support in checksum checking.
  4563. * src/IteratableChunkChecksumValidator.{h, cc}
  4564. * test/IteratableChunkChecksumValidatorTest.cc
  4565. * src/CheckIntegrityEntry.cc
  4566. * src/PieceHashCheckIntegrityEntry.cc
  4567. * src/IteratableChecksumValidator.{h, cc}
  4568. * src/BtCheckIntegrityEntry.cc: Added doc.
  4569. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Added --allow-piece-length-change option.
  4571. * src/DefaultBtProgressInfoFile.cc
  4572. * test/DefaultBtProgressInfoFileTest.cc
  4573. * src/OptionHandlerFactory.cc
  4574. * src/option_processing.cc
  4575. * src/prefs.h
  4576. * src/version_usage.cc
  4577. * doc/aria2c.1.txt
  4578. * doc/aria2c.1
  4579. Fixed: duplicated result entry appears when exception is thrown in
  4580. RequestGroup::createInitiateConnectionCommand().
  4581. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4582. Add RequestGroup to _requestGroup after RequetGroup::
  4583. createInitiateConnectionCommand() succeeds.
  4584. Externalized message
  4585. * src/XML2SAXMetalinkProcessor.cc
  4586. * src/message.h
  4587. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Forced download abort when received negative response from http/ftp
  4589. server.
  4590. * src/HttpResponseCommand.cc
  4591. * src/FtpNegotiationCommand.cc
  4592. * src/HttpResponse.cc
  4593. * src/FtpConnection.cc
  4594. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4595. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4596. the predecessor, Xml2MetalinkParser class.
  4597. I tested them against 94KB metalink file with 1234 chunk checksums.
  4598. The new one parsed it in 22msec, while it took 6000msec with old one.
  4599. * src/XML2SAXMetalinkProcessor.{h, cc}
  4600. * test/XML2SAXMetalinkProcessorTest.cc
  4601. * src/MetalinkParserController.{h, cc}
  4602. * test/MetalinkParserControllerTest.cc
  4603. * src/MetalinkParserState.h: Also added 16 subclasses.
  4604. * src/main.cc
  4605. * src/Metalink2RequestGroup.cc
  4606. * src/MetalinkHelper.cc
  4607. * src/MetalinkEntry.cc
  4608. * src/ChunkChecksum.h
  4609. Rewritten Base64 class for better performance.
  4610. * src/Base64.{h, cc}
  4611. * test/Base64Test.cc
  4612. * src/HttpRequest.cc
  4613. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4614. Fixed the bug#1841757: aria2 will connect to server to only get
  4615. file size.
  4616. * src/StreamFileAllocationEntry.cc
  4617. * src/option_processing.cc
  4618. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4619. downloads.
  4620. * src/FtpNegotiationCommand.cc
  4621. Suppressed wrong message when finding PreDownloadHandler
  4622. * src/RequestGroup.cc
  4623. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Updated usage
  4625. * src/version_usage.cc
  4626. Updated man page
  4627. * doc/aria2c.1.txt
  4628. * doc/aria2c.1
  4629. Updated po files
  4630. * po/aria2c.pot
  4631. * po/*.po
  4632. * po/*.gmo
  4633. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Eliminated g++-4.2 warning
  4635. * src/DownloadHandlerConstants.{h, cc}
  4636. * src/Util.cc
  4637. * test/MetaFileUtilTest.cc
  4638. * test/PStringBuildVisitorTest.cc
  4639. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4640. * src/RequestGroup.cc
  4641. * src/BtCheckIntegrityEntry.cc
  4642. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Fixed a2io.h
  4644. * src/a2io.h
  4645. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Added direct I/O support. The current implementation uses O_DIRECT,
  4647. which is not posix standard and is tested on linux 2.6.21.
  4648. Currently only file allocation uses direct I/O.
  4649. * src/SingleFileAllocationIterator.{h, cc}
  4650. * test/SingleFileAllocationIteratorTest.cc
  4651. * src/MultiFileAllocationIterator.{h, cc}
  4652. * test/MultiFileAllocationIteratorTest.cc
  4653. * src/BinaryStream.h
  4654. * src/DiskWriter.h
  4655. * src/AbstractDiskWriter.{h, cc}
  4656. * src/ByteArrayDiskWriter.h
  4657. * src/DiskAdaptor.h
  4658. * src/AbstractSingleDiskAdaptor.{h, cc}
  4659. * src/MultiDiskAdaptor.{h, cc}
  4660. * src/FileAllocationEntry.cc
  4661. * src/Util.{h, cc}
  4662. * src/OptionHandlerFactory.cc
  4663. * src/prefs.h
  4664. * src/version_usage.cc
  4665. * src/option_processing.cc
  4666. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  4667. handleException.
  4668. * src/MultiFileAllocationIterator.cc
  4669. Added EINTR handling
  4670. * src/SocketCore.cc
  4671. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Updated usage
  4673. * src/version_usage.cc
  4674. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Applied Ross's patch for MinGW port.
  4676. * src/DownloadEngine.h
  4677. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Set Content-Type to SingleFileDownloadContext when http response is
  4679. received.
  4680. * src/HttpResponseCommand.cc
  4681. * src/HttpResponse.{h, cc}
  4682. * test/HttpResponseTest.cc
  4683. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4684. Rewritten to add content-type support.
  4685. * src/DownloadHandler.{h, cc}
  4686. * src/BtPostDownloadHandler.{h, cc}
  4687. * test/BtPostDownloadHandlerTest.cc
  4688. * src/MetalinkPostDownloadHandler.{h, cc}
  4689. * test/MetalinkPostDownloadHandlerTest.cc
  4690. * src/PostDownloadHandler.{h, cc}
  4691. * src/DownloadHandlerConstants.{h, cc}
  4692. * src/RequestGroup.cc
  4693. * src/HttpResponseCommand.cc
  4694. * src/FtpNegotiationCommand.cc
  4695. * src/SingleFileDownloadContext.{h, cc}
  4696. * src/RequestGroup.h
  4697. * src/RequestGroupCriteria.h
  4698. * src/ContentTypeRequestGroupCriteria.h
  4699. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4700. If it is give, metalink/torrent file is not written to the disk, but
  4701. just is kept in memory. Parsing is occurred on memory.
  4702. * src/MetalinkHelper.{h, cc}
  4703. * src/MetalinkProcessor.h
  4704. * src/Xml2MetalinkProcessor.{h, cc}
  4705. * test/Xml2MetalinkProcessorTest.cc
  4706. * src/DownloadHandlerFactory.{h, cc}
  4707. * test/DownloadHandlerFactoryTest.cc
  4708. * src/PreDownloadHandler.{h, cc}
  4709. * src/OptionHandlerFactory.cc
  4710. * src/DefaultBtContext.{h, cc}
  4711. * test/DefaultBtContextTest.cc
  4712. * src/version_usage.cc
  4713. * src/Metalink2RequestGroup.{h, cc}
  4714. * src/RequestGroup.{h, cc}
  4715. * src/a2functional.h
  4716. * test/a2functionalTest.cc
  4717. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4718. * src/OptionHandlerImpl.h
  4719. * src/prefs.h
  4720. * src/Util.{h, cc}
  4721. * test/UtilTest.cc
  4722. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4723. memory usage.
  4724. * src/RequestGroupMan.{h, cc}
  4725. * src/DownloadEngine.cc
  4726. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4727. WeakHandle to SharedHandle because WeakHandle could be null.
  4728. * src/RequestGroup.{h, cc}
  4729. * src/DownloadEngineFactory.cc
  4730. * src/DownloadResult.h
  4731. Set totalLength after download finished
  4732. * src/UnknownLengthPieceStorage.{h, cc}
  4733. Keep torrent file specified in metalink in memory.
  4734. * src/Metalink2RequestGroup.cc
  4735. * src/BtDependency.cc
  4736. * src/TrueRequestGroupCriteria.h
  4737. Fixed the bug: seekg is used where seekp should be used.
  4738. * src/ByteArrayDiskWriter.cc
  4739. * test/ByteArraydiskWriterTest.cc
  4740. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Fixed syntax error
  4742. * test/SequenceTest.cc
  4743. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4744. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4745. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4746. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4747. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4748. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. Added the check to see whether ares_host_callback accepts timeouts
  4750. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4751. * src/NameResolver.{h, cc}
  4752. * m4/libcares.m4
  4753. * configure.ac: Set C++ for language choice.
  4754. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4755. Fixed: compilation fails without c-ares/ares
  4756. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4757. Generate http/ftp commands only when download is incomplete.
  4758. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4759. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4760. Corrected typo. Examples are removed since they are available in man
  4761. page.
  4762. * src/version_usage.cc
  4763. Updated man page.
  4764. * doc/aria2c.1
  4765. * doc/aria2c.1.txt
  4766. * doc/makeman: Commented out sed command.
  4767. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4768. Throw DlAbortEx when a remote file is not found.
  4769. * src/HttpResponse.cc
  4770. * src/FtpNegotiationCommand.cc
  4771. * src/message.h
  4772. Overwrite an existing file if --allow-overwrite=true is given.
  4773. * src/RequestGroup.cc
  4774. Removed unused functions
  4775. * src/AbstractCommand.h
  4776. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Removed 'extern' from 'extern typedef ...' in src/*.h
  4778. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Updated usage
  4780. * src/version_usage.cc
  4781. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4782. Trim announce URL
  4783. * src/DefaultBtContext.cc
  4784. * test/ShaVisitorTest.cc
  4785. Trim argument s. Give trimed s to exception constructor.
  4786. * src/Util.cc (parseInt)(parseLLInt)
  4787. * test/UtilTest.cc
  4788. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Set precision back to 1.
  4790. * src/ConsoleStatCalc.cc (calculateStat)
  4791. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Replaced strtol with Util::parseInt
  4793. * src/ChunkedEncoding.cc
  4794. * src/HttpConnection.cc
  4795. * src/CookieBoxFactory.cc
  4796. * src/ParameterizedStringParser.cc
  4797. * src/Util.cc
  4798. * test/UtilTest.cc
  4799. * test/OptionHandlerTest.cc
  4800. * src/Request.cc
  4801. Throw exception when empty string is given. The message for exception
  4802. changed.
  4803. * src/Util.cc (parseInt)(parseLLInt)
  4804. * src/message.h
  4805. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4807. set to 1.
  4808. * src/ConsoleStatCalc.cc (calculateStat)
  4809. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. Preallocate non-requested file which is adjacent forward to requested
  4811. file('requested' files means the files given in --select-file option)
  4812. if they share a same piece.
  4813. This fixes long pause in the file system which doesn't support sparse
  4814. files like FAT32 while downloading.
  4815. * src/MultiFileAllocationIterator.{h, cc}
  4816. * test/MultiFileAllocationIteratorTest.cc
  4817. * src/FileEntry.{h, cc}
  4818. Removed unused _option.
  4819. * src/MultiDiskAdaptor.h
  4820. * test/MultiDiskAdaptorTest.cc
  4821. * src/DefaultPieceStorage.cc
  4822. Set the default value of --seed-ratio to 1.0.
  4823. If 0.0 is given, then seeding continues regardless of share ratio.
  4824. * src/version_usage.cc
  4825. * src/option_processing.cc
  4826. * src/BtSetup.cc
  4827. * doc/aria2c.1.txt
  4828. * doc/aria2c.1
  4829. Fixed: Selective download is not working in BitTorrent
  4830. * src/RequestGroup.cc
  4831. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4832. * src/PieceStorage.h
  4833. * test/MockPieceStorage.h
  4834. * src/UnknownLengthPieceStorage.h
  4835. * src/DefaultPieceStorage.{h, cc}
  4836. * src/Metalink2RequestGroup.cc
  4837. * src/RequestGroup.cc
  4838. * src/Sequence.h
  4839. * test/SequenceTest.cc
  4840. * src/IntSequence.h
  4841. * src/message.h
  4842. * src/Util.{h, cc}
  4843. * test/UtilTest.cc
  4844. Added new function 'parse' to catch exception thrown by subclass's
  4845. parseArg
  4846. * src/OptionHandler.h
  4847. * src/OptionParser.cc
  4848. * src/NameMatchOptionHandler.h
  4849. * src/OptionHandlerImpl.h
  4850. * test/OptionHandlerTest.cc
  4851. Added IntegerRangeOptionHandler. Used for --listen-port and
  4852. --select-file. Now --listen-port accepts range of port.
  4853. * src/OptionHandlerFactory.cc
  4854. * src/version_usage.cc
  4855. * src/OptionHandlerImpl.h
  4856. * src/option_processing.cc
  4857. * src/BtSetup.cc
  4858. * src/PeerListenCommand.{h, cc}
  4859. * doc/aria2c.1.txt
  4860. * doc/aria2c.1
  4861. Implemented operator< for Exception class to provide easy way to print
  4862. exception stack trace.
  4863. * src/Exception.{h, cc}
  4864. * src/main.cc
  4865. * src/option_processing.cc
  4866. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4867. * src/version_usage.cc
  4868. (showVersion): Reworked.
  4869. (showUsage): Added examples.
  4870. Removed Hint for total length and file name.
  4871. * src/Metalink2RequestGroup.cc
  4872. * src/RequestGroup.{h, cc}
  4873. * src/HttpResponseCommand.cc
  4874. * src/FtpNegotiationCommand.cc
  4875. Now --follow-torrent and --follow-metalink option work properly.
  4876. * src/RequestGroup.cc
  4877. Updated man page
  4878. * doc/aria2c.1.txt
  4879. * doc/aria2c.1
  4880. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Removed.
  4882. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4883. Use Segment::operator==()
  4884. * src/HttpConnection.cc
  4885. * src/Segment.h
  4886. Updated usage
  4887. * src/version_usage.cc
  4888. Added EINTR treatment.
  4889. * src/SocketCore.cc
  4890. * src/AbstractDiskWriter.cc
  4891. Rewritten.
  4892. * src/Util.cc (rangedFileCopy)
  4893. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. Fixed typo.
  4895. * src/version_usage.cc
  4896. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. Implemented. Now -c option works fine.
  4898. * src/DefaultPieceStorage.cc (markPiecesDone)
  4899. * test/DefaultPieceStorageTest.cc
  4900. Removed.
  4901. * src/SegmentMan.{h, cc}
  4902. (markAllPiecesDone)
  4903. (markPieceDone)
  4904. Synchronized po files with
  4905. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  4906. * src/fr.po
  4907. * src/ru.po
  4908. * src/de.po
  4909. * src/ja.po
  4910. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Added ifdef and some modifications to compile without BitTorrent,
  4912. Metalink, MessageDigest
  4913. support.
  4914. * src/PieceHashCheckIntegrityEntry.cc
  4915. * src/MetalinkEntry.h
  4916. * src/version_usage.cc
  4917. * src/main.cc
  4918. * src/DownloadEngine.{h, cc}
  4919. * src/Metalink2RequestGroup.cc
  4920. * src/Peer.cc
  4921. * src/RequestGroup.cc
  4922. * src/MetalinkHelper.cc
  4923. * test/DefaultPieceStorageTest.cc
  4924. * test/MetalinkPostDownloadHandlerTest.cc
  4925. * test/Metalink2RequestGroupTest.cc
  4926. Hide TOTAL SPD when all downloads complete.
  4927. * src/ConsoleStatCalc.cc
  4928. Log target system information.
  4929. * src/main.cc
  4930. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Now --metalink-location accepts a comma-deliminated list of locations.
  4932. * src/MetalinkEntry.{h, cc}
  4933. * test/MetalinkEntryTest.cc
  4934. * src/version_usage.cc
  4935. * src/Metalink2RequestGroup.cc
  4936. * src/Xml2MetalinkProcessor.cc
  4937. * test/Xml2MetalinkProcessorTest.cc
  4938. * doc/aria2c.1.txt
  4939. * doc/aria2c.1
  4940. * src/Util.cc (toUpper)(toLower): Rewritten.
  4941. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Added the ability to detect duplicate download entry which is about to
  4943. download the same file other RequestGroup is downloading.
  4944. * src/RequestGroup.cc
  4945. * src/HttpResponseCommand.cc
  4946. * src/FtpNegotiationCommand.cc
  4947. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Recalculates download progress when loading a control file,
  4949. if the piece length of DownloadContext is different from the one saved
  4950. in the control file. Currently in-flight pieces are ignored.
  4951. * src/DefaultBtProgressInfoFile.cc
  4952. * test/DefaultBtProgressInfoFileTest.cc
  4953. * src/Util.{h, cc}
  4954. * test/UtilTest.cc
  4955. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. Do not rotate tiers in announce-list.
  4957. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  4958. AnnounceList::allTiersFailed() used instead to detect whether all
  4959. tiers are tried and failed.
  4960. * test/DefaultBtAnnounceTest.cc
  4961. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  4962. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  4963. * test/AnnounceListTest.cc
  4964. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  4965. clause. Catch RecoverableException instead of DlRetryEx instead.
  4966. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Implemented checksum validation feature(1 checksum for each file)
  4968. The validation takes place after the download.
  4969. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  4970. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  4971. * src/CheckIntegrityCommand.cc: Changed log message.
  4972. * src/Metalink2RequestGroup.cc: Set checksum to
  4973. SingleFileDownloadContext.
  4974. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  4975. PieceHashCheckIntegrity class.
  4976. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  4977. PieceHashCheckIntegrity class.
  4978. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  4979. * src/IteratableValidator.h: New class.
  4980. * src/message.h
  4981. * src/CheckIntegrityEntry.{h, cc}
  4982. * src/IteratableChunkChecksumValidator.{h, cc}
  4983. * src/SingleFileDownloadContext.h
  4984. * src/DownloadCommand.cc
  4985. --allow-overwrite=true is no longer needed to check file integrity
  4986. before download in BitTorrent download.
  4987. * src/RequestGroup.cc (getInitialCommand)
  4988. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  4989. throws exception.
  4990. * src/RequestGroupMan.cc (getInitialCommands)
  4991. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. urlencode the given url inside Request::parseUrl(...)
  4993. * src/Request.{h, cc}
  4994. * src/Util.{h, cc}
  4995. * test/RequestTest.cc
  4996. Removed #!metalink3! notation support because it is deleted from
  4997. the metalink specification.
  4998. * src/Request.{h, cc}
  4999. * test/RequestTest.cc
  5000. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. Don't connect server before checking file integrity at startup, if
  5002. filesize and output file path are known.
  5003. * src/AbstractCommand.cc
  5004. * src/StreamFileAllocationEntry.cc
  5005. * src/Metalink2RequestGroup.cc
  5006. * src/RequestGroup.{h, cc}
  5007. * src/HttpResponseCommand.cc
  5008. * src/FtpNegotiationCommand.cc
  5009. Added DownloadFailureException. If it is thrown, RequestGroup should
  5010. halt.
  5011. * src/AbstractCommand.cc
  5012. * src/DownloadFailureException.h
  5013. * src/RequestGroup.cc
  5014. Catch RecoverableException, instead of DlAbortEx.
  5015. * src/RequestGroupMan.cc
  5016. * src/FillRequestGroupCommand.cc
  5017. * src/MetaFileUtil.cc
  5018. * src/IteratableChunkChecksumValidator.cc
  5019. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  5020. getGID())
  5021. * src/CheckIntegrityCommand.cc
  5022. * src/message.h
  5023. Print gid instead of idx.
  5024. * src/RequestGroupMan.cc
  5025. Removed exception throwers declaration.
  5026. * src/DirectDiskAdaptor.{h, cc}
  5027. * src/SocketCore.{h, cc}
  5028. * src/MultiDiskAdaptor.{h, cc}
  5029. * src/HttpConnection.{h, cc}
  5030. * src/HttpResponse.{h, cc}
  5031. * src/DiskAdaptor.{h, cc}
  5032. * src/CopyDiskAdaptor.{h, cc}
  5033. * src/MultiDiskAdaptor.{h, cc}
  5034. * src/HttpHeaderProcessor.{h, cc}
  5035. * src/AbstractSingleDiskAdaptor.{h, cc}
  5036. * src/Util.{h, cc}
  5037. * test/UtilTest.cc
  5038. * src/DefaultDiskWriter.{h, cc}
  5039. * src/FtpConnection.{h, cc}
  5040. * src/AbstractDiskWriter.{h, cc}
  5041. Removed duplicate code.
  5042. * src/StreamCheckIntegrityEntry.cc
  5043. Removed unnecessary include.
  5044. * src/DiskWriter.h
  5045. Included Exception.h
  5046. * src/option_processing.cc
  5047. Included 2 files and added doc
  5048. * src/TrackerWatcherCommand.cc
  5049. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5050. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Changed CheckIntegrityEntry interface so that it can define
  5052. the action when all the chunk checksums are valid.
  5053. * src/CheckIntegrityEntry.h
  5054. * src/StreamCheckIntegrityEntry.{h, cc}
  5055. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5056. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5057. to exit rather than doing seeding. So, it would be good to toggle this
  5058. behavior.
  5059. * src/CheckIntegrityCommand.cc
  5060. * src/AbstractCommand.cc
  5061. * src/RequestGroup.cc
  5062. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Reflect the download length of in-flight pieces.
  5064. It makes the download length readout more precise.
  5065. * src/DefaultPieceStorage.{h, cc}
  5066. * test/DefaultPieceStorageTest.cc
  5067. * src/a2functional.h
  5068. * test/a2functionalTest.cc
  5069. Lower CPU load when --max-download-limit is used.
  5070. There is up and down in speed indicator when enabling
  5071. http-pipelining but a download goes well. I think the problem is that
  5072. because http-pipelining is enabled, DownloadCommand is created for
  5073. each segment and in its constructor, PeerStat::downloadStart() is
  5074. called. In PeerStat::downloadStart(), speed calculation object is
  5075. reseted, which makes download speed zero.
  5076. * src/DownloadCommand.cc
  5077. Rewritten using accumulate.
  5078. * src/RequestGroupMan.cc (calculateStat)
  5079. Code clearnup.
  5080. * src/FtpNegotiationCommand.cc
  5081. * src/HttpResponseCommand.cc
  5082. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5083. Fixed: Can not resume: aria2 reports download already finished.
  5084. * src/AbstractCommand.{h, cc}
  5085. * src/HttpResponseCommand.cc
  5086. * src/FtpNegotiateCommand.cc
  5087. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Now a file is stored in the directory specified in .metalnk file
  5089. (file[@name]).
  5090. * src/Metalink2RequestGroup.cc
  5091. Create the directory structure when opening the file if it doesn't
  5092. exist.
  5093. * src/AbstractDiskWriter.cc
  5094. * src/Util.{h, cc}
  5095. * src/File.h
  5096. * test/UtilTest.cc
  5097. Removed file name comparison
  5098. * src/Metalink2RequestGroup.cc
  5099. * src/HttpResponseCommand.cc
  5100. Rewritten using Util::mkdirs()
  5101. * src/FileEntry.cc (setupDir)
  5102. * test/FileEntryTest.cc
  5103. Updated doc
  5104. * src/SingleFileDownloadContext.h
  5105. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. Now SleepCommand dispatches nextCommand when halt is requested.
  5107. It avoids a possible long wait after hitting CTRL-C.
  5108. * src/SleepCommand.{h, cc}
  5109. * src/RequestGroupAware.{h, cc}
  5110. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5112. to open listen port, then remove the port number from the tracker
  5113. request.
  5114. * src/DefaultBtAnnounce.cc
  5115. * test/DefaultBtAnnounceTest.cc
  5116. * test/MockPieceStorage.h
  5117. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5118. them more testable.
  5119. * src/DefaultBtAnnounce.{h, cc}
  5120. * src/DefaultBtContext.{h, cc}
  5121. * src/Util.{h, cc}
  5122. * test/DefaultBtAnnounceTest.cc
  5123. * test/DefaultBtContextTest.cc
  5124. * test/UtilTest.cc
  5125. Added 'B' to upload bytes readout.
  5126. * src/ConsoleStatCalc.cc
  5127. Now the listen port for BitTorrent download is opened when it is
  5128. needed.
  5129. * src/DownloadEngineFactory.cc
  5130. * src/BtSetup.{h, cc}
  5131. * src/PeerListenCommand.{h, cc}
  5132. Now an exception thrown while parsing tracker response is now logged.
  5133. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  5134. called, which means no retry is made in this case, assuming a tracker
  5135. has a problem.
  5136. * src/TrackerWatcherCommand.cc
  5137. Fixed: downloading a file whose length is unkown fails.
  5138. * src/DownloadCommand.cc
  5139. Simplified prepareForNextSegment()
  5140. * src/DownloadCommand.cc
  5141. Updated
  5142. * po/POTFILES.in
  5143. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Re-implemented a file listing for Metalink, which was dropped while
  5145. http/ftp/torrent integration was being implemented.
  5146. * src/MetalinkHelper.{h, cc}: New class.
  5147. * test/MetalinkHelperTest.cc
  5148. * src/main.cc
  5149. * src/Metalink2RequestGroup.cc
  5150. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Added the ability to display the detailed torrent file information.
  5152. Now -S option gives not only a file listing, but also total download
  5153. length, info hash, announce URI, piece length, the number of pieces,
  5154. and mode(single or multi-torrent).
  5155. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  5156. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  5157. KiB)
  5158. * test/UtilTest.cc
  5159. * src/main.cc
  5160. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. Added ftp://USER:PASSWD@Servername automatic parsing.
  5162. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  5163. _password. Recognize username and password in URI.
  5164. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  5165. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  5166. * src/RequestFactory.{h, cc}: Removed.
  5167. * src/AuthConfigFactory.{h, cc}: New class.
  5168. * src/FtpConnection.cc: Use AuthConfigFactory.
  5169. * src/HttpRequest.cc: Use AuthConfigFactory.
  5170. * test/HttpRequestTest.cc: Updated.
  5171. * test/RequestTest.cc: Updated.
  5172. * test/AuthConfigFactoryTest.cc: New class.
  5173. * test/RequestFactoryTest.cc: Removed.
  5174. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Use RequestGroup::allDownloadFinished() to decide whether the control
  5176. file should be removed or saved.
  5177. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  5178. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  5179. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5180. Use File::renameTo()
  5181. * src/DefaultBtProgressInfoFile.cc
  5182. Added --no-file-allocation-limit command-line option.
  5183. * src/version_usage.cc
  5184. * src/option_processing.cc
  5185. * src/OptionHandlerFactory.cc
  5186. * src/RequestGroup.{h, cc}
  5187. * src/BtCheckIntegrityEntry.cc
  5188. * src/StreamCheckIntegrityEntry.cc
  5189. * src/prefs.h
  5190. * doc/aria2c.1.txt
  5191. * doc/aria2c.1
  5192. Now prealloc is the default value for --file-allocation option.
  5193. * src/version_usage.cc
  5194. * src/option_processing.cc
  5195. * doc/aria2c.1.txt
  5196. * doc/aria2c.1
  5197. Don't URL-encode user-agent.
  5198. * src/HttpRequest.cc
  5199. Updated translations
  5200. * po/LINGUAS: Added nl for Dutch translation.
  5201. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  5202. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  5203. * po/POTFILES.in: Updated.
  5204. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Added the ability to recognize url-list in a torrent file.
  5206. The retrieved URLs are attached to the corresponding FileEntry.
  5207. * src/DefaultBtContext.{h, cc}
  5208. * src/FileEntry.{h, cc}
  5209. * test/DefaultBtContextTest.cc
  5210. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  5212. after the download finishes.
  5213. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  5215. the data smaller than block length.
  5216. A block length can be specified by constructor's argument.
  5217. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  5218. Get a missing piece in the range of given FileEntry. This function is
  5219. not used in the program yet.
  5220. * src/Util.h: Added some macros.
  5221. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Added HTTP/1.1 keep alive and pipelining support.
  5223. See --enable-http-keep-alive and --enable-http-pipelining option.
  5224. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  5225. Segment.
  5226. * src/HttpDownloadCommand.{h, cc}
  5227. * src/OptionHandlerFactory.cc
  5228. * src/HttpConnection.{h, cc}
  5229. * src/version_usage.cc
  5230. * src/HttpInitiateConnectionCommand.cc
  5231. * src/FtpInitiateConnectionCommand.cc
  5232. * src/Segment.h
  5233. * src/HttpRequestCommand.{h, cc}
  5234. * src/option_processing.cc
  5235. * src/prefs.h
  5236. * src/HttpResponseCommand.cc
  5237. * src/SegmentMan.{h, cc}
  5238. * src/FtpNegotiateCommand.cc
  5239. * src/HttpProxyResponseCommand.cc
  5240. * src/Request.cc
  5241. * src/HttpRequest.cc
  5242. * src/DownloadCommand.cc
  5243. * test/HttpRequestTest.cc
  5244. * test/RequestTest.cc
  5245. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5246. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  5247. finished.
  5248. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  5250. catching it inside the method.
  5251. When no file entry is found in a metalink without querying user
  5252. preferences, throw the exception with the error message that suggests
  5253. metalink file is probably broken.
  5254. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  5255. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Fixed the bug that prevents remote Metalink/Torrent file from begin
  5257. processed.
  5258. * src/RequestGroupMan.cc (removeStoppedGroup)
  5259. Added debug message.
  5260. * src/BtPostDownloadHandler.cc
  5261. * src/MetalinkPostDownloadHandler.cc
  5262. * src/PostDownloadHandler.{h, cc}
  5263. * src/RequestGroup.cc
  5264. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  5266. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  5268. stops and there are any unfinished or in-progress downloads.
  5269. Added the legend of "stat".
  5270. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. Throw exception when chunck checksum verification fails.
  5272. * src/DownloadCommand.cc (validatePieceHash): New function.
  5273. * src/PiecedSegment.{h, cc} (clear): New function.
  5274. * src/GrowSegment.{h, cc} (clear): New function.
  5275. * src/Segment.h (clear): New function.
  5276. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  5277. * test/SegmentTest.cc
  5278. * test/GrowSegmentTest.cc
  5279. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Do not send referer when redirected.
  5281. * src/Request.cc (redirectUrl)
  5282. * test/RequestTest.cc
  5283. * test/HttpRequestTest.cc
  5284. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Implemented BitTorrent/http/ftp integrated download.
  5286. I've rewritten lots of files and now some headers have forward
  5287. class declarations to reduce compile time.
  5288. The implementation is extremely alpha stage, I recommend to use this
  5289. for testing purpose only.
  5290. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5291. Fixed the compilation error on 64bit platform.
  5292. * test/HttpHeaderProcessorTest.cc
  5293. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5294. Merged Ross's patch that fixes compilation problem in MinGW
  5295. * test/DefaultBtProgressInfoFileTest.cc
  5296. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Updated fr.po by sebone
  5298. * po/fr.po
  5299. Updated man page.
  5300. * doc/aria2c.1.txt
  5301. * Release 0.11.3
  5302. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  5304. failure in Metalink.
  5305. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. Automatically save *.aria2 control file of http/ftp download in every
  5307. 60 seconds.
  5308. * src/AutoSaveCommand.{h, cc}: New class.
  5309. * src/TimeBasedCommand.{h, cc}: New class.
  5310. * src/DownloadEngineFactory.cc (newConsoleEngine)
  5311. Disable parameterized URI support by default. Added -P option to
  5312. enable the feature.
  5313. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  5314. * src/OptionHandlerFactory.cc
  5315. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  5316. Updated Japanese translation.
  5317. * po/ja.po
  5318. Updated man page.
  5319. * doc/aria2c.1.txt
  5320. * Release 0.11.3-rc
  5321. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5323. it is successful, then renamed to *.aria2.
  5324. This prevents *.aria2 file from being truncated or corrupted when
  5325. file system becomes out of space.
  5326. * src/DefaultBtProgressInfoFile.cc (save)
  5327. * src/SegmentMan.cc (save)
  5328. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5329. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Reduced the fragmentation of bitfield in http/ftp download.
  5331. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5332. * test/BitfieldManTest.cc
  5333. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Added the ability to disable segmented download in .metalink.
  5335. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5336. 'url' tag.
  5337. * src/MetalinkEntry.{h, cc}
  5338. * src/RequestResource.{h, cc}
  5339. * src/MetalinkRequestInfo.cc
  5340. * src/Xml2MetalinkProcessor.cc
  5341. * test/Xml2MetalinkProcessorTest.cc
  5342. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Added parameterized URI support.
  5344. * src/main.cc: -Z option added.
  5345. * src/OptionHandlerFactory.cc
  5346. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5347. * src/PStringDatum.h: New class.
  5348. * src/PStringSegment.{h,cc}: New class.
  5349. * src/PStringNumLoop.h: New class.
  5350. * src/PStringSelect.h: New class.
  5351. * src/NumberDecorator.h: New class.
  5352. * src/FixedWidthNumberDecorator.h: New class.
  5353. * src/AlphaNumberDecorator.h: New class.
  5354. * src/PStringVisitor.h: New class.
  5355. * src/PStringBuildVisitor.{h,cc}: New class.
  5356. * src/ParameterizedStringParser.{h,cc}: New class.
  5357. * src/Util.{h,cc}
  5358. (isNumber): New function.
  5359. (isLowercase): New function.
  5360. (isUppercase): New function.
  5361. (alphaToNum): New function.
  5362. * test/ParameterizedStringParserTest.cc: New class.
  5363. * test/AlphaNumberDecoratorTest.cc: New class.
  5364. * test/PStringBuildVisitorTest.cc: New class.
  5365. * test/UtilTest.cc
  5366. (testIsNumber): New function.
  5367. (testIsLowercase): New function.
  5368. (testIsUppercase): New function.
  5369. (testAlphaToNum): New function.
  5370. Added '\n' after the error message
  5371. * src/RequestInfo.h (printDownloadAbortMessage)
  5372. Added auto file renaming feature in http(s)/ftp download.
  5373. * src/main.cc: Added --auto-file-renaming command-line option.
  5374. * src/OptionHandlerFactory.cc
  5375. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5376. * src/RequestGroup.{h, cc}
  5377. (shouldCancelDownloadForSafety): Rewritten
  5378. (tryAutoFileRenaming): New function.
  5379. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5380. * src/HttpResponseCommand.cc
  5381. (executeInternal): Removed the call to RequestGroupMan::
  5382. isSameFileBeingDownloaded()
  5383. * src/FtpNegotiateCommand.cc
  5384. (recvSize): Removed the call to RequestGroupMan::
  5385. isSameFileBeingDownloaded()
  5386. * test/RequestGroupTest.cc: New class.
  5387. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5389. IO.
  5390. * src/DefaultBtProgressInfoFile.cc
  5391. * src/MetaFileUtil.cc
  5392. * src/SimpleLogger.cc
  5393. * src/SegmentMan.cc
  5394. * src/Util.cc
  5395. * src/Platform.cc
  5396. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5398. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5400. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5401. Fixed the bug that prevents file allocation is not done when
  5402. dowloading multi-torrent file.
  5403. * src/AbstractDiskWriter.cc (openFile)
  5404. Increase the maximum number of -j option from 15 to 45.
  5405. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5406. Added fr.po, thanks to Charles Landemaine.
  5407. * po/fr.po
  5408. * po/LINGUAS
  5409. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5410. gcc 3.4.4 support:
  5411. * src/DefaultBtContext.cc: int32_t -> int
  5412. * src/main.cc: int -> int32_t, int32_t -> int
  5413. * src/messageDigest.h: uint32_t -> unsigned int
  5414. * src/NameResolver.h: int32_t -> int
  5415. * src/PeerConnection.cc: int -> int32_t
  5416. * src/SpeedCalc.cc: int32_t -> int
  5417. * src/TrackerUpdateCommand.h: int -> int32_t
  5418. * src/Util.cc: int32_t -> int
  5419. * src/Util.h: int32_t -> int
  5420. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5421. * test/AnnounceListTest.cc: int -> int32_t
  5422. * test/ChunkedEncodingTest.cc: int -> int32_t
  5423. * test/DataTest.cc: int -> int32_t
  5424. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5425. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5426. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5427. * test/FeatureConfigTest.cc: int -> int32_t
  5428. * test/MetalinkEntryTest.cc: int -> int32_t
  5429. * test/MockBtRequestFactory.h: int -> int32_t
  5430. * test/MockPieceStorage.h: int -> int32_t
  5431. * test/OptionTest.cc: int -> int32_t
  5432. * test/RequestTest.cc: int -> int32_t
  5433. * test/SegmentManTest.cc: int -> int32_t
  5434. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5435. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5436. Move sleep functions to Util class:
  5437. * src/Util.cc
  5438. (sleep): New function.
  5439. (usleep): New function.
  5440. * src/DownloadCommand.cc: sleep -> Util::sleep
  5441. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5442. MinGW build enhancements. The following files are added:
  5443. * src/timegm.{c,h}
  5444. Changes to support the above new files:
  5445. * configure.ac
  5446. * src/Makefile.am
  5447. * src/a2time.h
  5448. * src/Util.cc:
  5449. * src/strptime.c: Added support for %Z option.
  5450. Fixed MinGW non-blocking bug.
  5451. * src/SocketCore.cc
  5452. * src/HttpRequestCommand.cc
  5453. Miscellenous build fixes/enhancements.
  5454. * configure.ac: Added summary report.
  5455. * src/Platform.h: Tweaked #include's.
  5456. * src/a2netcompat.h: Tweaked #include's.
  5457. * src/strptime.h: Tweaked #include's.
  5458. * src/gai_strerror.c: Tweaked #include's.
  5459. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5460. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5461. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5462. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Increased the initial connection size in BitTorrent download to 40.
  5464. * src/BtRuntime.h
  5465. Added the usage message of --peer-id-prefix option.
  5466. * src/main.cc
  5467. * Release 0.11.2
  5468. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5469. MessageDigestHelper is introduced in order to simplify the use
  5470. of message digest. Removed repeated code.
  5471. The message digest algorithm is now specified by string, like "sha1",
  5472. "md5".
  5473. * src/messageDigest.{h, cc}
  5474. * src/MessageDigestHelper.{h, cc}: New class.
  5475. * src/DefaultPieceStorage.cc
  5476. * src/DefaultBtContext.{h, cc}
  5477. (computeFastSet): New function.
  5478. (setInfoHash): Added for unit testing.
  5479. (setNumPieces): Added for unit testing.
  5480. * src/DefaultBtInteractive.cc
  5481. * src/BtPieceMessage.cc
  5482. * src/Peer.cc
  5483. * src/Checksum.h
  5484. * src/message.h
  5485. * src/IteratableChecksumValidator.h
  5486. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5487. inside it.
  5488. * src/SegmentMan.{h, cc}
  5489. (checkIntegrity): Removed.
  5490. * src/IteratableChunkChecksumValidator.{h, cc}
  5491. * src/Util.h
  5492. (sha1Sum): Removed.
  5493. (simpleMessageDigest): Removed.
  5494. (fileChecksum): Removed.
  5495. (computeFastSet): Removed.
  5496. * src/ShaVisitor.cc
  5497. * src/ChunkChecksum.h
  5498. * src/DownloadCommand.cc
  5499. Removed messageDigest virtual functions.
  5500. * src/MultiDiskAdaptor.{h, cc}
  5501. * src/DiskAdaptor.h
  5502. * src/ByteArrayDiskWriter.h
  5503. * src/DiskWriter.h
  5504. * src/DiskAdaptorWriter.h
  5505. * src/AbstractSingleDiskAdaptor.{h, cc}
  5506. * src/AbstractDiskWriter.{h, cc}
  5507. Fixed comilation error when message digest is disabled.
  5508. * src/MetalinkEntry.{h, cc}
  5509. * src/MetalinkRequestInfo.cc
  5510. Removed srandom and random.
  5511. * src/SimpleRandomizer.h
  5512. Added size() virtual function to DiskAdaptor
  5513. * src/MultiDiskAdaptor.h
  5514. Fixed the bug that causes that files are not opened correctly in
  5515. multi-file torrent.
  5516. * src/TorrentRequestInfo.cc
  5517. * src/MultiDiskAdaptor.cc
  5518. Added SHA256 support
  5519. * src/messageDigest.cc
  5520. * src/Xml2MetalinkProcessor.cc
  5521. Show supported message digest algorithms
  5522. * src/main.cc
  5523. Updated contact info.
  5524. * src/main.cc
  5525. Applied Ross's patch
  5526. * src/a2netcompat.h
  5527. * src/main.cc
  5528. Fixed the bug that prevents a remote metalink from not being processed
  5529. even if '-o foo.metalink' is specified.
  5530. * src/MetalinkRequestInfo.cc
  5531. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. Merged Dan's patch:
  5533. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5534. Use va_copy to avoid core dump on amd64:
  5535. * src/SimpleLogger.cc
  5536. Updated contact info.
  5537. * src/main.cc
  5538. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5539. digest is not available.
  5540. * src/MetalinkEntry.h
  5541. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Make a2netcompat.h include a2io.h to fix compilation error:
  5543. * src/a2netcompat.h
  5544. * src/SocketCore.cc: Removed include of a2io.h
  5545. * src/Util.cc: Removed include of a2io.h
  5546. Gather time related functions to a2time.h:
  5547. * src/a2time.h: New file.
  5548. * src/DefaultPeerStorage.cc
  5549. * src/SimpleLogger.cc
  5550. * src/Util.{h, cc}
  5551. * src/SimpleRandomizer.h
  5552. * src/TimeA2.{h,cc}
  5553. * src/DownloadCommand.cc
  5554. * src/main.cc
  5555. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5556. a2netcompat.h:
  5557. * src/NameResolver.cc
  5558. Fixed compilation error without openssl:
  5559. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5560. Added default block to suppress compiler warnings:
  5561. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5562. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5563. MinGW build enhancements. The following files are added:
  5564. * src/gai_strerror.{c,h}
  5565. * src/gettimeofday.{c,h}
  5566. Changes to support the above new files:
  5567. * configure.ac
  5568. * src/Makefile.am
  5569. * src/a2netcompat.h
  5570. * src/TimeA2.cc
  5571. * src/DefaultPeerStorage.cc
  5572. * src/NameResolver.cc: removed mingw_strerror() function.
  5573. * src/SocketCore.cc: removed mingw_strerror() function.
  5574. Miscellaneous MinGW build fixes.
  5575. * src/a2io.h: Use _lseeki64() instead of lseek()
  5576. * src/common.h
  5577. * src/DefaultFileAllocator.cc
  5578. * src/GlowFileAllocator.cc
  5579. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5580. * src/NameResolver.cc
  5581. (callback): Changed int32_t to int.
  5582. (resolve): Changed int32_t to int.
  5583. * src/Platform.cc
  5584. * src/Platform.h
  5585. * test/MultiDiskWriterTest.cc
  5586. * test/PeerMessageUtilTest.cc
  5587. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5588. Other enhancements and fixes.
  5589. * src/HttpRequestCommand.cc
  5590. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5591. * src/SocketCore.cc:
  5592. (error): New function to abstract errno/WSAGetLastError().
  5593. (errorMsg): New function to abstract errno/WSAGetLastError().
  5594. (initiateSecureConnection): Added more detailed error reporting.
  5595. * src/SocketCore.h: Added private variable blocking, to allow
  5596. proper handling of OpenSSL psuedo-errors.
  5597. * src/message.h
  5598. (EX_SSL_INIT_FAILURE)
  5599. (EX_SSL_IO_ERROR)
  5600. (EX_SSL_PROTOCOL_ERROR)
  5601. (EX_SSL_UNKNOWN_ERROR)
  5602. (EX_SSL_CONNECT_ERROR)
  5603. (EX_SOCKET_BLOCKING)
  5604. (EX_SOCKET_NONBLOCKING)
  5605. (EX_SOCKET_UNKNOWN_ERROR)
  5606. * src/Util.cc
  5607. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5608. reserved name.
  5609. (httpGMT): Fixed typo.
  5610. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5611. Merged Ross's win32 patch(manually)
  5612. In the course of merging, following files are added.
  5613. * src/strptime.{h,c}
  5614. * src/libgen.{h,c}
  5615. * src/inet_aton.{h,c}
  5616. * src/Platform.{h,cc}
  5617. * src/localtime_r.{h,c}
  5618. * src/getaddrinfo.{h,c}
  5619. I've gethered network related things, and put them to following file:
  5620. * src/a2netcompat.h
  5621. Also io related things are put to following file:
  5622. * src/a2io.h
  5623. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5624. * src/message.h
  5625. (MSG_ALLOCATION_COMPLETED)
  5626. (EX_TOO_LARGE_FILE)
  5627. (EX_SIZE_MISMATCH)
  5628. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5629. (EX_INVALID_CHUNK_CHECKSUM)
  5630. (EX_INVALID_RANGE_HEADER)
  5631. * src/FileAllocationCommand.cc
  5632. * src/HttpResponse.cc
  5633. * src/RequestGroup.cc
  5634. * src/MultiDiskAdaptor.cc
  5635. * src/OptionHandlerImpl.h
  5636. * src/HttpResponseCommand.cc
  5637. * src/FtpNegotiateCommand.cc
  5638. * src/IteratableChecksumValidator.cc
  5639. * src/SegmentMan.cc
  5640. * src/ChunkChecksumValidator.cc
  5641. Added Randomizer::getRandomNumber(long int)
  5642. * src/Randomizer.h (getRandomNumber)
  5643. * src/SimpleRandomizer.h (getRandomNumber)
  5644. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5645. * src/Util.cc (randomAlpha): Use this new function.
  5646. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5647. Converted int's to in32_t. long long int's are also converted to
  5648. int64_t
  5649. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Fixed the bug that prevents cookies from being sent to the server
  5651. if the domain of cookie is FQDN and starts with ".".
  5652. * src/Cookie.cc (match)
  5653. To add the ability to change peer id.
  5654. * src/DefaultBtContext.h
  5655. (_peerIdPrefix): New variable
  5656. (setPeerIdPrefix): New function.
  5657. * src/torrentRequestInfo.cc
  5658. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  5659. DefaultBtContext.
  5660. * src/main.cc (main): Added peer-id-prefix command-line option.
  5661. The usage message is not added yet.
  5662. * src/DefaultBtContext.cc
  5663. (generatePeerId): Use _peerIdPrefix.
  5664. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  5665. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Fixed the bug that prevents filename in content-disposition from
  5667. being retrieved when filename is not quoted.
  5668. * src/Util.cc (getContentDispositionFilename)
  5669. Fixed the bug that causes infinate loop and memory leak when file open
  5670. operation failed.
  5671. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5672. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Fixed the bug that causes segfault when all URIs specified are
  5674. unsupported.
  5675. * src/RequestGroupMan.cc (getInitialCommands)
  5676. Check if RequestGroup::createNextCommand() returns empty list of
  5677. commands.
  5678. * src/RequestGroup.cc (createNextCommand)
  5679. Change log level from info to error so that users can notice that
  5680. an error occurred.
  5681. Fixed the bug that causes segfault when a zero-sized file is
  5682. downloaded.
  5683. * src/BitfieldMan.cc (isAllBitSet)
  5684. Return true if bitfieldLength is 0.
  5685. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. * src/main.cc
  5687. (showUsage): Added 3 usage examples for metalink download.
  5688. Replace MetalinkChunkChecksum with ChunkChecksum.
  5689. * src/MetalinkChunkChecksum.h: Removed.
  5690. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5691. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5692. * src/Xml2MetalinkProcessor.cc
  5693. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5694. * src/MetalinkRequestInfo.cc (execute)
  5695. * Release 0.11.1
  5696. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. Reads URIs from stdin when "-i -" is specified.
  5698. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5699. * src/UriListParser.h, src/UriListParser.cc: New class.
  5700. * src/StreamUriListParser.h: New class.
  5701. * src/FileUriListParser.h: New class.
  5702. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5703. instead of UriFileListParser.
  5704. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Made console readout more readable.
  5706. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5707. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Fix the bug that causes -s option not to work.
  5709. * src/main.cc (main)
  5710. * src/a2algo.h: New file.
  5711. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Create directory structure specified in metalink file.
  5713. * src/RequestGroup.h, src/RequestGroup.cc
  5714. (initAndOpenFile): Create a directory to store files if it does not
  5715. exist.
  5716. (getDir): New function.
  5717. Added ETA and download speed for an individual file to readout.
  5718. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5719. * src/RequestGroup.h
  5720. (calculateDownloadSpeed): New function.
  5721. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Made -S option work with metalink file and provided selective download
  5723. to metalink.
  5724. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5725. (filename): Removed.
  5726. (file): New variable.
  5727. (size): Removed.
  5728. (operator=): Updated.
  5729. (getPath): New function.
  5730. (getLength): New function.
  5731. (toFileEntry): New function.
  5732. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5733. (execute): Use toStream.
  5734. (showFileEntry): Removed.
  5735. * src/MetalinkRequestInfo.h
  5736. (targetFiles): New variable.
  5737. (setTargetFiles): New variable.
  5738. * src/MetalinkRequestInfo.cc
  5739. (execute): Added the ability to print file information included in
  5740. a metalink file.
  5741. Added selective download mode to metalink.
  5742. * src/main.cc
  5743. (showUsage): Updated to denote that -S and --select-file options are
  5744. applicable to metalink.
  5745. * src/FileEntry.h
  5746. (operator=): New function.
  5747. (getBasename): New function.
  5748. (getDirname): New function.
  5749. * src/Util.h, src/Util.cc
  5750. (toStream): New function.
  5751. * src/Xml2MetalinkProcessor.cc: Updated.
  5752. Made aria2 work with metalink with directory structure.
  5753. * src/File.h, src/File.cc
  5754. (getBasename): New function.
  5755. (getDirname): New function.
  5756. * src/RequestGroup.h, src/RequestGroup.cc
  5757. (_topDir): New variable.
  5758. (setTopDir): New function.
  5759. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5760. Rewrote HTTP header parsing with stringstream.
  5761. * src/HttpConnection.h, src/HttpConnection.cc
  5762. (HttpRequestEntry): New class.
  5763. (headerBuf): Removed.
  5764. (headerBufLength): Removed.
  5765. (outstandingHttpRequests): Now its element type is
  5766. HttpRequestEntryHandle.
  5767. (findEndOfHeader): Removed.
  5768. (receiveResponse): Rewritten.
  5769. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5770. Updated doc for -j option to notice that it should be used with -i
  5771. option.
  5772. * src/main.cc (showUsage)
  5773. Removed unused classes.
  5774. * src/RequestInfo.h
  5775. (FileInfo): Removed.
  5776. (checksum): Removed.
  5777. (fileInfo): Removed.
  5778. (setChecksum): Removed.
  5779. (getChecksum): Removed.
  5780. (getFileInfo): Removed.
  5781. Use ISO units.
  5782. * src/ConsoleDownloadEngine.cc
  5783. * src/TorrentConsoleDownloadEngine.cc
  5784. * src/Util.cc (abbrevSize)
  5785. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Added the default listening ports to the help message.
  5787. * src/main.cc (showUsage)
  5788. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Reduce the number of calls to gettimeofday to lower CPU load.
  5790. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5791. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5792. * src/Peer.h (calculateUploadSpeed): New function.
  5793. (calculateDownloadSpeed): New function.
  5794. * src/DefaultPeerStorage.cc
  5795. (CalculateStat): Added _now variable.
  5796. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5797. and Peer::calculateUploadSpeed(const struct timeval&)
  5798. Drop connection if no request or piece message is exchanged in
  5799. a certain interval.
  5800. * src/DefaultBtInteractive.h
  5801. (btRuntime): New variable.
  5802. (inactiveCheckPoint): New variable.
  5803. (checkActiveInteraction): New function.
  5804. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5805. request or piece message is received.
  5806. (checkActiveInteraction): New function.
  5807. (doInteractionProcessing): Call checkActiveInteraction.
  5808. Fixed the bug that causes remote Metalink and Torrent files are not
  5809. processed.
  5810. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5811. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Changed format of log file.
  5813. * src/SimpleLogger.cc
  5814. * Release 0.11.0
  5815. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. * src/AbstractCommand.cc
  5817. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5818. MSG_MAX_TRY from error to info.
  5819. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5820. * src/message.h
  5821. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5822. (MSG_DOWNLOAD_ABORTED): Added %s.
  5823. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5824. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5825. * src/PeerAbstractCommand.cc
  5826. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5827. * src/Request.h
  5828. (cookieBox): Made ShardHandle.
  5829. * src/RequestGroup.h, src/RequestGroup.cc
  5830. (createNextCommandWithAdj): New function.
  5831. * src/FileAllocationCommand.cc
  5832. (executeInternal): Use createNextCommandWithAdj().
  5833. * src/CheckIntegrityCommand.cc
  5834. (executeInternal): Use createNextCommandWithAdj().
  5835. Added --load-cookies command-option.
  5836. * src/OptionHandlerFactory.cc
  5837. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5838. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5839. Now aria2 can handle cookie's expiration date.
  5840. * src/Cookie.h (expires): Changed its type to time_t.
  5841. * src/main.cc: Added --load-cookies command-line option.
  5842. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5843. * src/Util.h, src/Util.cc (httpGMT): New function.
  5844. * src/Request.cc (Request): Initialize cookieBox using
  5845. CookieBoxFactory.
  5846. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5847. * src/CookieParser.h, src/CookieParser.cc: New class.
  5848. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5849. * src/HttpResponseCommand.cc
  5850. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5851. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5852. download.
  5853. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Added -j command-line option.
  5855. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5856. * src/main.cc
  5857. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5858. Rewritten using stringstream.
  5859. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5860. Rewritten using stringstream.
  5861. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Make download size shown in MB, KB.
  5863. * src/ConsoleDownloadEngine.h (sendStatistics)
  5864. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5865. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Accept incoming connections if download rate is low.
  5867. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5868. (_lowestSpeedLimit): New variable.
  5869. (setLowestSpeedLimit): New function.
  5870. (execute): Accept incoming connections if download rate is low.
  5871. MAX_PEERS is ignored in this case.
  5872. Disable PREF_OUT in multiple concurrent download:
  5873. * src/RequestGroup.h, src/RequestGroup.cc
  5874. (setUserDefinedFilename): New function.
  5875. * src/DownloadEngineFactory.cc
  5876. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5877. concurrent download.
  5878. * src/DefaultSegmentManFactory.cc
  5879. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5880. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5882. Added its overloaded method.
  5883. * src/RequestGroup.h
  5884. (_numConcurrentCommand): New variable.
  5885. (setNumConcurrentCommand): New function.
  5886. * src/RequestGroup.cc
  5887. Abort download if same file is being downloaded concurrently.
  5888. * src/RequestGroup.h, src/RequestGroupMan.cc
  5889. (isSameFileBeingDownloaded): New function.
  5890. * src/HttpResponseCommand.cc (executeInternal)
  5891. * src/FtpNegotiateCommand.cc (recvSize)
  5892. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  5893. * main.cc: Added help message for -i option.
  5894. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  5896. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  5897. * src/MetalinkEntry.h
  5898. (checksum): Changed to ChecksumHandle
  5899. * src/MetalinkRequestInfo.cc
  5900. (checksum): Changed to ChecksumHandle
  5901. * src/File.cc
  5902. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  5903. * src/common.h
  5904. (DIR_OPEN_MODE): New definition
  5905. * src/RequestGroup.cc
  5906. (prepareForNextAction): Added an argument.
  5907. * src/message.h
  5908. (MSG_GOOD_CHECKSUM): New definition
  5909. (MSG_BAD_CHECKSUM): New definition
  5910. * src/HttpResponseCommand.cc
  5911. (handleDefaultEncoding): Continue download sequence in new
  5912. non-segmented download.
  5913. * src/FileAllocationEntry.h
  5914. (_nextDownloadCommand): New variable.
  5915. * src/DownloadCommand.cc
  5916. (prepareForNextSegment): Create ChecksumCommand if checksum is
  5917. available.
  5918. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  5919. * src/IteratableChecksumValidator.h,
  5920. src/IteratableChecksumValidator.cc: New class.
  5921. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  5922. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Change file mode to 666:
  5924. * src/common.h (OPEN_MODE): New definition.
  5925. * src/File.cc
  5926. * src/Util.cc
  5927. * src/Directry.cc
  5928. * src/AbstractDiskWriter.cc
  5929. Change the level of log message "download aborted" to debug:
  5930. * src/PeerAbstractCommand.cc (execute)
  5931. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  5932. * src/TrackerWatcherCommand.cc
  5933. (createCommand): Sleep some seconds after request failed.
  5934. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  5935. then abort tracker request.
  5936. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5937. * Added the simultaneous download feature.
  5938. * src/main.cc: Print "Exception caught: " when exception is caught.
  5939. Use CUIDCounter instead of BtRuntime::getNewCuid():
  5940. * src/ActivePeerConnectionCommand.cc
  5941. * src/PeerInteractionCommand.cc
  5942. * src/BtRuntime.h
  5943. (cuidCounter): Removed.
  5944. (getNewCuid): Removed.
  5945. * src/DownloadEngineFactory.cc
  5946. * src/PeerListenCommand.cc
  5947. * src/TrackerUpdateCommand.cc
  5948. * src/PeerInitiateConnectionCommand.cc
  5949. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. * src/PeerAbstractCommand.cc
  5951. (onAbort): Call PeerStorage::returnPeer()
  5952. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  5953. (incomingPeers): New variable.
  5954. (addIncomingPeer): New function.
  5955. (returnPeer): New function.
  5956. (onErasingPeer): New function.
  5957. (addPeer): push_back -> push_front
  5958. (getActivePeers): Rewritten.
  5959. (calculateStat): Rewritten.
  5960. * src/PeerStorage.h
  5961. (TransferStat::copy): New function.
  5962. (TransferStat::TransferStat): New function.
  5963. (TransferStat::operator=): New function.
  5964. (addIncomingPeer): New function.
  5965. (returnPeer): New function.
  5966. * src/PeerListenCommand.cc
  5967. (execute): Use PeerStorage::addIncomingPeer() instead of
  5968. Peer::addPeer().
  5969. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Connect to a peer actively when download speed is lower than specified
  5971. speed in torrent download:
  5972. * src/ActivePeerConnectionCommand.h: New class.
  5973. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. * src/HttpRequest.cc (createRequest): url-encode user-agent
  5975. * src/main.cc: Fixed the bug that prevents download if .netrc
  5976. doesn't exist.
  5977. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. To cache resolved hostname:
  5979. * src/AbstractCommand.h, src/AbstractCommand.cc
  5980. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  5981. Added dns cache.
  5982. * src/FtpInitiateConnectionCommand.cc
  5983. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  5984. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  5985. NameResolver working without ares.
  5986. * src/TorrentRequestInfo.cc
  5987. (execute): Don't cache dns in torrent download.
  5988. * src/HttpInitiateConnectionCommand.cc
  5989. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  5990. * src/DNSCache.h: New class.
  5991. * src/UrlRequestInfo.cc
  5992. (execute): Use dns cache.
  5993. In http request, suppress port number in http request header if port
  5994. is 80 or 443:
  5995. * src/HttpRequest.cc (getHostText): Suppress port number in http
  5996. request header if port is 80 or 443.
  5997. (createProxyRequest): Allways send port number.
  5998. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. To add the command-line option which disables netrc support:
  6000. * src/OptionHandlerFactory.cc
  6001. (createOptionHandlers): Added PREF_NO_NETRC.
  6002. * src/main.cc: Added -n option.
  6003. * src/prefs.h (PREF_NO_NETRC): New definition.
  6004. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  6005. V_TRUE.
  6006. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  6007. is V_FALSE. This may get configurable in the future release.
  6008. To clear peer's error status by time basis:
  6009. * src/PeerAbstractCommand.cc
  6010. (onAbort): Call Peer::startBadCondition().
  6011. * src/Peer.h, src/Peer.cc
  6012. (error): Removed.
  6013. (_badConditionStartTime): New variable.
  6014. (_badConditionInterval): New variable. Initialized to 10 seconds.
  6015. (startBadCondition): New function.
  6016. (isGood): New function.
  6017. * src/DefaultPeerStorage.cc
  6018. (addPeer): Use Peer::isGood().
  6019. (FindFinePeer): Use Peer::isGood().
  6020. Always include port number in http request header:
  6021. * src/HttpRequest.cc (getHostText): Always include port number in
  6022. http request header.
  6023. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. To the ability to read options from a config file:
  6025. * src/main.cc: Command-line parameter validation is delegated to
  6026. OptionHandler class.
  6027. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  6028. * src/Option.h, src/Option.cc (clear): New function.
  6029. * src/OptionParser.h, src/OptionParser.cc: New class.
  6030. * src/OptionHandler.h: New class.
  6031. * src/NameMatchOptionHandler.h: New class.
  6032. * src/OptionHandlerImpl.h: New classes.
  6033. * src/prefs.h: '_' -> '-'
  6034. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  6035. (FTP_PASV): New definition.
  6036. * src/Util.h, src/Util.cc (getRealSize): New function.
  6037. To disable netrc support if .netrc file does not have correct
  6038. permissions:
  6039. * src/File.h, src/File.cc (mode): New function.
  6040. To prevent confidential information to be logged:
  6041. * src/HttpConnection.h, src/HttpConnection.cc
  6042. (eraseConfidentialInfo): New function.
  6043. (sendRequest): Call eraseConfidentialInfo().
  6044. (sendProxyRequest): Call eraseConfidentialInfo().
  6045. * src/main.cc: Validate permissions of .netrc file.
  6046. To add --user-agent command-line option:
  6047. * src/main.cc: Added new command line option: --user-agent
  6048. * src/prefs.h (PREF_USER_AGENT): New definition.
  6049. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6050. parameter to HttpRequest object.
  6051. * src/AbstractProxyRequestCommand.cc
  6052. (executeInternal): Set user-agent option parameter to HttpRequest
  6053. object.
  6054. Marged the patches from Dan Fandrich.
  6055. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Use filename and size from Metalink file instead of sending HEAD
  6057. request:
  6058. * src/UrlRequestInfo.h
  6059. (_filename): New variable.
  6060. (_totalLength): New variable.
  6061. (setTotalLength): New variable.
  6062. (setFilename): New variable.
  6063. * src/MetalinkRequestInfo.cc
  6064. (execute): Set filename and size to UrlRequestInfo
  6065. * src/UrlRequestInfo.cc
  6066. (execute): Use filename and size from Metalink instead of seding
  6067. HEAD request to servers.
  6068. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. To add the ability to resume downloading a partially downloaded file
  6070. which is downloaded from the beginning:
  6071. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6072. takes this role.
  6073. * src/main.cc: Added -c option.
  6074. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6075. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6076. * src/prefs.h (PREF_CONTINUE): New definition.
  6077. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6078. * src/DefaultDiskWriter.cc
  6079. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6080. * src/AbstractDiskWriter.h
  6081. (glowFileAllocator): New variable.
  6082. * src/AbstractDiskWriter.cc
  6083. (openExistingFile): Now preallocate file space from the end of the
  6084. existing file if totalLength argument is specified and grater than 0.
  6085. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6086. to download exists in local, continue the download of the file.
  6087. --allow-overwrite=true is assumed in this context.
  6088. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6089. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6090. Throw exception if --check-integrity=true is specified but chunk
  6091. checksums are not provided:
  6092. * src/UrlRequestInfo.cc
  6093. Do not print URLs to stdout:
  6094. * src/UrlRequestInfo.cc
  6095. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. * src/Request.h: Use AuthResolver to get authentication information.
  6097. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6098. set to RequestFactory object.
  6099. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6100. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6101. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6102. create Request object.
  6103. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6104. To integrate Netrc into exsiting classes:
  6105. * src/Request.h
  6106. (_userDefinedAuthConfig): New variable.
  6107. (findNetrcAuthenticator): New function.
  6108. (segment): Removed.
  6109. (setUserDefinedAuthConfig): New function.
  6110. (resolveHttpAuthConfigItem): New function.
  6111. (resolveFtpAuthConfigItem): New function.
  6112. (resolveHttpProxyAuthConfigItem): New function.
  6113. * src/HttpRequest.h
  6114. (authConfig): Removed.
  6115. (proxyAuthConfig): Removed.
  6116. (setAuthConfig): Removed.
  6117. (setProxyAuthConfig): Removed.
  6118. * src/UrlRequest.h
  6119. (getHeadResult): Added a parameter: authConfigHandle
  6120. * src/common.h
  6121. (SingletonHolder.h): New include.
  6122. * src/main.cc
  6123. (Netrc.h): New include.
  6124. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6125. Added initial value of PREF_NETRC_PATH.
  6126. Added the initialization of netrc.
  6127. * src/AuthConfig.h: New class.
  6128. * src/prefs.h
  6129. (PREF_NETRC_PATH): New definition.
  6130. * src/HttpAuthConfig.h: Removed.
  6131. * src/Netrc.cc
  6132. (getRequiredNextToken): New function.
  6133. (skipMacdef): New function.
  6134. (parse): Rewritten.
  6135. * src/Netrc.h
  6136. (getRequiredNextToken): New function.
  6137. (skipMacdef): New function.
  6138. * src/Util.h, src/Util.cc
  6139. (getHomeDir): New function.
  6140. * src/TrackerWatcherComand.cc
  6141. (createRequestCommand): Use AuthConfig.
  6142. * src/FtpConnection.cc
  6143. (sendUser): Use Request::resolveFtpAuthConfigItem().
  6144. (sendPass): Use Request::resolveFtpAuthConfigItem().
  6145. * src/Request.cc
  6146. (findNetrcAuthenticator): New function.
  6147. (resolveHttpAuthConfigItem): New function.
  6148. (resolveFtpAuthConfigItem): New function.
  6149. (resolveHttpProxyAuthConfigItem): New function.
  6150. * src/UrlRequestInfo.cc: Use AuthConfig.
  6151. * src/HttpRequest.cc
  6152. (createRequest): Use authConfig.
  6153. (getProxyAuthString): Use authConfig.
  6154. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  6155. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  6156. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. To reduce overhead to find commands whose socket is either
  6158. readable or writable in the download engine loop:
  6159. * src/Command.h, src/Command.cc
  6160. (STATUS): New enum.
  6161. (status): New variable.
  6162. (statusMatch): New function.
  6163. (setStatusActive): New function.
  6164. (setStatusInactive): New function.
  6165. * src/DownloadEngine.h, src/DownloadEngine.cc
  6166. (executeCommand): New function.
  6167. (run): Simplified.
  6168. (waitData): Call Command::setStatusActive() when command's socket is
  6169. readable or writable.
  6170. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. To handle Segment as SegmentHandle:
  6172. * src/AbstractCommand.cc (execute): Rewritten.
  6173. * src/SegmentMan.h: Segment -> SegmentHandle
  6174. Introducded HttpResponse class, HttpRequest class to improve code
  6175. extensiveness and make it clear:
  6176. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  6177. HttpResponse class.
  6178. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  6179. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  6180. * src/HttpConnection.cc: Contruction of http request were moved to
  6181. HttpRequest class.
  6182. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  6183. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  6184. * src/HttpAuthConfig.h: New class.
  6185. * src/Range.h: New class.
  6186. To make FtpTunnel{Request, Response}Command and
  6187. HttpProxy{Request, Response}Command derived from
  6188. AbstractProxy{Request, Response}Command:
  6189. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  6190. Derived from AbstractProxyRequestCommand class.
  6191. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  6192. Derived from AbstractProxyResponseCommand class.
  6193. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  6194. Derived from AbstractProxyRequestCommand class.
  6195. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  6196. Derived from AbstractProxyResponseCommand class.
  6197. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  6198. : New class.
  6199. * src/AbstractProxyResponseCommand.h,
  6200. src/AbstractProxyResponseCommand.cc: New class.
  6201. To add netrc support:
  6202. * src/Netrc.h, src/Netrc.cc: New class.
  6203. * src/Util.h, src/Util.cc (split): New function.
  6204. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  6205. "Content-Range" header instead of "Range" header.
  6206. * src/HttpHeader.h
  6207. (getStatus): Removed.
  6208. (setStatus): Removed.
  6209. * src/Segment.h
  6210. (getPositionToWrite): New function.
  6211. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. * src/HttpHeader.h
  6213. (Range.h): New include.
  6214. (status): New variable.
  6215. (HttpHeader): Initialized status with 0.
  6216. (getStatus): New function.
  6217. (setStatus): New function.
  6218. (getRange): New function.
  6219. (HttpHeaderHandle): New function.
  6220. * src/HttpHeader.cc
  6221. (getRange): New function.
  6222. * src/Request.h
  6223. (RequestWeakHandle): New definition.
  6224. * src/HttpConnection.h
  6225. (HttpConnectionHandle): New type definition.
  6226. * src/HttpConnection.cc
  6227. (receiveResponse): Set HTTP status to headers.
  6228. * src/main.cc
  6229. (showUsage): Fixed typo.
  6230. * src/Segment.h
  6231. (SegmentHandle): New type definition.
  6232. * src/BitfieldMan.h
  6233. (getMissingUnusedLength): New function.
  6234. * src/BitfieldMan.cc
  6235. (getMissingUnusedLength): New function.
  6236. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. To fix static initialization order problem:
  6238. * src/BitfieldManFactory.h
  6239. (defaultRandomizer): Removed.
  6240. (factory): New variable.
  6241. (getNewFactory): Removed.
  6242. (getFactoryInstance): New function.
  6243. (setDefaultRandomizer): Rewritten.
  6244. (getDefaultRandomizer): Rewritten.
  6245. * src/BitfieldManFactory.cc
  6246. (defaultRandomizer): Removed.
  6247. (factory): Initialized to 0.
  6248. (BitfieldManFactory): Initialized randomizer to 0.
  6249. * src/DefaultPieceStorage.cc
  6250. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  6251. * src/Peer.cc
  6252. (Peer): getNewFactory() -> getFactoryInstance()
  6253. * src/SegmentMan.cc
  6254. (initBitfield): getNewFactory() -> getFactoryInstance()
  6255. * src/Piece.cc
  6256. (Piece): getNewFactory() -> getFactoryInstance()
  6257. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6258. To fix the bug that causes crash on Max OS X:
  6259. * src/SimpleRandomizer.h
  6260. (getInstance): Create new instance if the static variable is null.
  6261. * src/SimpleRandomizer.cc
  6262. (randomizer): Initialized to 0.
  6263. * src/BitfieldManFactory.h
  6264. (getNewFactory): Removed the call to setRandomizer().
  6265. To fix the miscalculation of the range of checksum:
  6266. * src/BitfieldMan.h
  6267. (isBitSetOffsetRange): New function.
  6268. * src/BitfieldMan.cc
  6269. (isBitSetOffsetRange): New function.
  6270. * src/SegmentMan.cc
  6271. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  6272. Use bitfield->getBlockLength() instead of segment.segmentLength.
  6273. * Release 0.10.1
  6274. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6275. To lower CPU usage in BitTorrent download when --max-upload-limit
  6276. command-line option specified:
  6277. * src/DefaultBtMessageDispatcher.cc
  6278. (sendMessages): Calculate uploading speed only when current message
  6279. is uploading data and is not sent yet.
  6280. * src/DefaultPeerStorage.h
  6281. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  6282. * src/HttpResponseCommand.cc
  6283. (handleDefaultEncoding): Added the cast to int32_t to itos.
  6284. This fixes compile error in Soralis 10.
  6285. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. To fix segfault in Metalink download:
  6287. * src/UrlRequestInfo.h
  6288. (filename): Removed.
  6289. (totalLength): Removed.
  6290. (setTotalLength): Removed.
  6291. (setFilename): Removed.
  6292. * src/MetalinkRequestInfo.cc
  6293. (execute): Do not set filename and totalLength to reqInfo.
  6294. Set chunk checksum to reqInfo if it is not null.
  6295. * src/HttpResponseCommand.cc
  6296. (executeInternal): Fixed filename in log.
  6297. (handleDefaultEncoding): Removed the call to initBitfield() and
  6298. markAllPiecesDone().
  6299. (handleOtherEncoding): Added HEAD method handling.
  6300. * src/FtpNegotiateCommand.cc
  6301. (executeInternal): Added SEQ_HEAD_OK handling.
  6302. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  6303. return false.
  6304. * src/FtpNegotiateCommand.h
  6305. (SEQ_HEAD_OK): New definition.
  6306. * src/SegmentMan.cc
  6307. (initBitfield): Delete bitfield.
  6308. (isChunkChecksumValidationReady): Fixed the condition.
  6309. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  6310. works fine.
  6311. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. * src/Xml2MetalinkProcessor.h
  6313. (xpathExists): New function.
  6314. * src/Xml2MetalinkProcessor.cc
  6315. (xpathExists): New function.
  6316. Not to send HEAD request if filename and size are available in Metalink
  6317. file:
  6318. * src/UrlRequestInfo.h
  6319. (filename): New variable.
  6320. (totalLength): New variable.
  6321. (setTotalLength): New function.
  6322. (setFilename): New function.
  6323. * src/MetalinkRequestInfo.cc
  6324. (execute): Set filename and size to UrlRequestInfo.
  6325. * src/MetalinkEntry.cc
  6326. (MetalinkEntry): Initialize size with 0.
  6327. * src/UrlRequestInfo.cc
  6328. (execute): Set filename and size to SegmentMan.
  6329. Not to download rest of the files after selected files are downloaded
  6330. in BitTorrent:
  6331. * src/PieceStorage.h
  6332. (allDownloadFinished): New function.
  6333. * src/DefaultBtAnnounce.cc
  6334. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6335. downloadFinished.
  6336. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6337. * src/DefaultPieceStorage.cc
  6338. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6339. Commented out the call to finishSelectiveDownloadingMode().
  6340. (downloadFinished): Call isFilteredAllBitSet() instead of
  6341. isAllBitSet().
  6342. (allDownloadFinished): New function.
  6343. * src/DefaultBtInteractive.cc
  6344. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6345. downloadFinished().
  6346. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6347. * src/TorrentDownloadEngine.cc
  6348. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6349. * src/BitfieldMan.h
  6350. (isFilteredAllBitSet): New function.
  6351. * src/ShareRatioSeedCriteria.h
  6352. (PieceStorage.h): New include.
  6353. (pieceStorage): New variable.
  6354. (evaluate):
  6355. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6356. * src/BitfieldMan.cc
  6357. (isFilteredAllBitSet): New function.
  6358. (isAllBitSet): Filter is not took into account.
  6359. Rename --force-truncate as --allow-overwrite:
  6360. * src/TorrentRequestInfo.cc
  6361. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6362. * src/main.cc
  6363. (showUsage): --force-truncate -> --allow-overwrite
  6364. * src/message.h
  6365. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6366. * src/prefs.h
  6367. (PREF_FORCE_TRUNCATE): Removed.
  6368. (PREF_ALLOW_OVERWRITE): New definition.
  6369. * src/SegmentMan.cc
  6370. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6371. * src/MetalinkRequestInfo.cc
  6372. (execute): Queueing message are now logged in info level.
  6373. * src/common.h
  6374. (LONG_LONG_MAX): Removed.
  6375. (LONG_LONG_MIN): Removed.
  6376. * src/HttpResponseCommand.cc
  6377. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6378. * src/FtpNegotiateCommand.cc
  6379. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6380. * src/main.cc
  6381. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6382. command-line option.
  6383. (main): Added --check-integriy and --realtime-chunk-checksum
  6384. command-line option.
  6385. --force-truncate -> --allow-overwrite
  6386. Set initial value of --check-integrity option to false.
  6387. Don't show usage when error occurs while persing command-line options.
  6388. Removed deprecated --upload-limit option.
  6389. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6391. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6392. * src/BtAllowedFastMessage.cc:
  6393. * src/BtBitfieldMessage.cc
  6394. * src/BtCancelMessage.cc
  6395. * src/BtChokeMessage.cc
  6396. * src/BtHaveAllMessage.cc
  6397. * src/BtHaveMessage.cc
  6398. * src/BtHaveNoneMessage.cc
  6399. * src/BtInterestedMessage.cc
  6400. * src/BtNotInterestedMessage.cc
  6401. * src/BtPieceMessage.cc
  6402. * src/BtPortMessage.cc
  6403. * src/BtRejectMessage.cc
  6404. * src/BtRequestMessage.cc
  6405. * src/BtSuggestPieceMessage.cc
  6406. * src/BtUnchokeMessage.cc
  6407. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6408. files are affected.
  6409. * src/ChunkChecksumValidator.cc
  6410. * src/SegmentMan.cc
  6411. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. To add chunk checksum validation:
  6413. * src/MetalinkEntry.h
  6414. (MetalinkChunkChecksum.h): New include.
  6415. (chunkChecksum): New variable.
  6416. * src/Request.h
  6417. (method): New variable.
  6418. (setMethod): New function.
  6419. (getMethod): New function.
  6420. (METHOD_GET): New static constant.
  6421. (METHOD_HEAD): New static constant.
  6422. * src/Xml2MetalinkProcessor.h
  6423. (getPieceHash): New function.
  6424. * src/PieceStorage.h
  6425. (markAllPiecesDone): New function.
  6426. (checkIntegrity): New function.
  6427. * src/FileAllocator.h
  6428. (NullFileAllocationMonitor.h): New include.
  6429. (FileAllocator): Initialize fileAllocationMonitor with new
  6430. NullFileAllocationMonitor().
  6431. * src/MultiDiskAdaptor.h
  6432. (messageDigest.h): Remove include.
  6433. (ctx): Removed.
  6434. (hashUpdate): Added ctx.
  6435. (MultiDiskAdaptor): Removed ctx.
  6436. (sha1Sum): Renamed as messageDigest.
  6437. (messageDigest): New function.
  6438. * src/UrlRequestInfo.h
  6439. (HeadResult): New class.
  6440. (digestAlgo): New variable.
  6441. (chunkChecksumLength): New variable.
  6442. (chunkChecksums): New variable.
  6443. (getHeadResult): New function.
  6444. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6445. (setDigestAlgo): New function.
  6446. (setChunkChecksumLength): New function.
  6447. (setChunkChecksums): New function.
  6448. * src/DefaultPieceStorage.cc
  6449. (DiskAdaptorWriter.h): New include.
  6450. (ChunkChecksumValidator.h): New include.
  6451. (markAllPiecesDone): New function.
  6452. (checkIntegrity): New function.
  6453. * src/DefaultBtContext.h
  6454. (getPieceHashes): New function.
  6455. * src/TorrentRequestInfo.cc
  6456. (execute): Try to validate chunk checksum if file already exists and
  6457. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6458. * src/messageDigest.h
  6459. (~MessageDigestContext): Added digestFree().
  6460. * src/MetalinkRequestInfo.cc
  6461. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6462. * src/DiskAdaptor.h
  6463. (messageDigest.h): New include.
  6464. (sha1Sum): Renamed as messageDigest.
  6465. (messageDigest): New function.
  6466. * src/DownloadCommand.h
  6467. (PeerStat.h): New include.
  6468. (maxDownloadSpeedLimit): New variable.
  6469. (startupIdleTime): New variable.
  6470. (lowestDownloadSpeedLimit): New variable.
  6471. (peerStat): New variable.
  6472. (setMaxDownloadSpeedLimit): New function.
  6473. (setStartupIdleTime): New function.
  6474. (setLowestDownloadSPeedLimit): New function.
  6475. * src/BtContext.h
  6476. (getPieceHashes): New function.
  6477. * src/main.cc
  6478. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6479. option to true for testing purpose.
  6480. * src/BtPieceMessage.cc
  6481. (checkPieceHash): Use messageDigest
  6482. * src/DownloadEngine.cc
  6483. (SetDescriptor): Removed.
  6484. (AccumulateActiveCommand): Removed.
  6485. (waitData): Rewritten.
  6486. (updateFdSet): Rewritten.
  6487. * src/MultiDiskAdaptor.cc
  6488. (hashUpdate): Added ctx.
  6489. (sha1Sum): Renamed as messageDigest.
  6490. (messageDigest): New function.
  6491. * src/BitfieldMan.h
  6492. (isBitRangeSet): New function.
  6493. (unsetBitRange): New function.
  6494. * src/ByteArrayDiskWriter.h
  6495. (sha1Sum): Renamed as messageDigest.
  6496. (messageDigest): New function.
  6497. * src/ConsoleDownloadEngine.cc
  6498. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6499. * src/DiskWriter.h
  6500. (messageDigest.h): New include.
  6501. (sha1Sum): Renamed as messageDigest.
  6502. (messageDigest): New function.
  6503. * src/ChunkChecksumValidator.h: New class.
  6504. * src/DiskAdaptorWriter.h: New class.
  6505. * src/prefs.h
  6506. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6507. (PREF_CHECK_INTEGRITY): New definition.
  6508. * src/HttpResponseCommand.cc
  6509. (handleDefaultEncoding): Added method "HEAD" handling.
  6510. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6511. (handleOtherEncoding):
  6512. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6513. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6514. startupIdleTime, lowestDownloadSpeedLimit to command.
  6515. * src/SegmentMan.h
  6516. (getSegmentEntryByIndex): New function.
  6517. (getSegmentEntryByCuid): New function.
  6518. (getSegmentEntryIteratorByCuid): New function.
  6519. (diskWriter): DiskWriter -> DiskWriterHandle
  6520. (pieceHashes): New variable.
  6521. (chunkHashLength): New variable.
  6522. (digestAlgo): New variable.
  6523. (FindPeerStat): Removed.
  6524. (getPeerStat): Rewritten.
  6525. (markAllPiecesDone): New function.
  6526. (checkIntegrity): New function.
  6527. (tryChunkChecksumValidation): New function.
  6528. (isChunkChecksumValidationReady): New function.
  6529. * src/BitfieldMan.cc
  6530. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6531. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6532. blocks to 0.
  6533. (isBitRangeSet): New function.
  6534. (unsetBitRange): New function.
  6535. * src/FtpNegotiateCommand.cc
  6536. (executeInternal): Set maxDownloadSpeedLimit,
  6537. startupIdleTime, lowestDownloadSpeedLimit to command.
  6538. (recvSize): Added method "HEAD" handling.
  6539. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6540. * src/AbstractSingleDiskAdaptor.cc
  6541. (sha1Sum): Renamed as messageDigest.
  6542. (messageDigest): New function.
  6543. * src/AbstractSingleDiskAdaptor.h
  6544. (sha1Sum): Renamed as messageDigest.
  6545. (messageDigest): New function.
  6546. * src/Util.h
  6547. (indexRange): New function.
  6548. * src/MetalinkEntry.cc
  6549. (MetalinkEntry): Initialized chunkChecksum to 0.
  6550. * src/ShaVisitor.cc
  6551. (~ShaVisitor): Removed the call to ctx.digestFree().
  6552. * src/SegmentMan.cc
  6553. (ChunkChecksumValidator.h): New include.
  6554. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6555. to DIGEST_ALGO_SHA1.
  6556. (~SegmentMan): Removed diskWriter.
  6557. (FindSegmentEntryByIndex): Removed.
  6558. (FindSegmentEntryByCuid): Removed.
  6559. (checkoutSegment): Rewritten.
  6560. (findSlowerSegmentEntry): Rewritten.
  6561. (getSegment): Rewritten.
  6562. (updateSegment): Rewritten.
  6563. (completeSegment): Rewritten.
  6564. (markAllPiecesDone): New function.
  6565. (checkIntegrity): New function.
  6566. (isChunkChecksumValidationReady): New function.
  6567. (tryChunkChecksumValidation): New function.
  6568. * src/Xml2MetalinkProcessor.cc
  6569. (getEntry): Get size and set it to entry.
  6570. Get chunk checksum and set it to entry.
  6571. (getPieceHash): New function.
  6572. * src/Util.cc
  6573. (sha1Sum): Removed ctx.digestFree()
  6574. (fileChecksum): Removed ctx.digestFree()
  6575. (indexRange): New function.
  6576. * src/Request.cc
  6577. (METHOD_GET): New variable.
  6578. (METHOD_HEAD): New variable.
  6579. (Request): Added method.
  6580. * src/UrlRequestInfo.cc
  6581. (FatalException.h): New include.
  6582. (message.h): New include.
  6583. (operator<<): Added operator<< for class HeadResult.
  6584. (getHeadResult): New function.
  6585. (execute): Get filename and size in separate download engine.
  6586. * src/ChunkChecksumValidator.cc: New class.
  6587. * src/DownloadCommand.cc:
  6588. (DownloadCommand): Added peerStat.
  6589. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6590. the value from Option.
  6591. The buffer size is now 16KB.
  6592. Use peerStat member instead of getting it from SegmentMan.
  6593. Use startupIdleTime member instead of gettingit from Option.
  6594. Added chunk checksum validation.
  6595. * src/AbstractDiskWriter.cc
  6596. (AbstractDiskWriter): Removed ctx.
  6597. (~AbstractDiskWriter): Removed ctx.digestFree()
  6598. (writeDataInternal): Returns the return value of write.
  6599. (readDataInternal): Returns the return value of read.
  6600. (sha1Sum): Renamed as messageDigest
  6601. (messageDigest): New function.
  6602. * src/AbstractDiwkWriter.h
  6603. (messageDigest.h): Removed include.
  6604. (ctx): Removed.
  6605. (sha1Sum): Renamed as messageDigest
  6606. (messageDigest): New function.
  6607. * src/DefaultPieceStorage.h
  6608. (markAllPiecesDone): New function.
  6609. (checkIntegrity): New function.
  6610. * src/NullFileAllocationMonitor.h: New class.
  6611. * src/MetalinkChunkChecksum.h: New class.
  6612. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. To decrease CPU usage in bittorrent download, calculation results in
  6614. BitfieldMan were cached and realtime fetching PeerObject was removed
  6615. with WeakHandle introduced. Option values are set to the objects
  6616. by setter before download begins.
  6617. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6618. * src/DefaultBtRequestFactory.h
  6619. (dispatcher): BtMessageDispatcherHandle ->
  6620. BtMessageDispatcherWeakHandle.
  6621. (messageFactory): New variable.
  6622. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6623. BtMessageDispatcherWeakHandle.
  6624. (setBtMessageFactory): New function.
  6625. * src/DefaultBtMessageDispatcher.cc:
  6626. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6627. from Option.
  6628. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6629. feating the value from Option.
  6630. Use messageFactory member.
  6631. * src/PeerInteractionCommand.cc
  6632. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6633. Add reverse dependencies to factory object.
  6634. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6635. dispatcher.
  6636. Set messageFactory to receiver.
  6637. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6638. btInteractive.
  6639. Set receiver to peerObject.
  6640. Set maxDownloadSpeedLimit to this.
  6641. (executeInternal): Use maxDownloadSpeedLimit member.
  6642. * src/BtChokeMessage.cc
  6643. (doReceivedAction): Use dispatcher, requestFactory member.
  6644. (onSendComplete): Use dispatcher member.
  6645. * src/PeerInteractionCommand.h
  6646. (maxDownloadSpeedLimit): New variable.
  6647. * src/DefaultBtMessageReceiver.h
  6648. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6649. (dispatcher):
  6650. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6651. (messageFactory): New variable.
  6652. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6653. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6654. (setDispatcher):
  6655. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6656. (setBtMessageFactory): New function.
  6657. * src/DefaultBtInteractive.cc
  6658. (initiateHandshake): Use messageFactory member.
  6659. (addBitfieldMessageToQueue): Use messageFactory member.
  6660. (addAllowedFastMessageToQueue): Use messageFactory member.
  6661. (decideChoking): Use messageFactory member.
  6662. (checkHave): Use messageFactory member.
  6663. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  6664. (receiveMessages): Use maxDownloadSpeedLimit member.
  6665. (decideInterest): Use messageFactory member.
  6666. * src/BtRequestMessage.cc
  6667. (doReceivedAction): Use messageFactory, dispatcher member.
  6668. (onQueued): Use dispatcher member.
  6669. * src/BtPieceMessage.cc
  6670. (doReceivedAction): Use dispatcher member.
  6671. (send): Use peerConnection member.
  6672. (onWrongPiece): Use requestFactory member.
  6673. (handleChokingEvent): Use messageFactory, dispatcher member.
  6674. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6675. * src/BtMessageDispatcher.h
  6676. (BtMessageDispatcherWeakHandle): New type definition.
  6677. * src/SimpleBtMessage.cc
  6678. (send): Use peerConnection member.
  6679. * src/BtRejectMessage.cc
  6680. (doReceivedAction): Use dispatcher member.
  6681. * src/DefaultBtMessageDispatcher.h
  6682. (Option.h): Removed include.
  6683. (messageFactory): New variable.
  6684. (option): Removed.
  6685. (maxUploadSpeedLimit): New variable.
  6686. (requestTimeout): New variable.
  6687. (DefaultBtMessageDispatcher): Removed option.
  6688. Added maxUploadSpeedLimit, requestTimeout.
  6689. (setOption): Removed.
  6690. (getOption): Removed.
  6691. (setMaxUploadSpeedLimit): New function.
  6692. (setRequestTimeout): New function.
  6693. (setBtMessageFactory): New function.
  6694. * src/DefaultBtInteractive.h
  6695. (btMessageReceiver):
  6696. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6697. (dispatcher):
  6698. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6699. (btRequestFactory):
  6700. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6701. (peerConnection):
  6702. PeerConnectionHandle -> PeerConnectionWeakHandle
  6703. (messageFactory): New variable.
  6704. (option): Removed.
  6705. (keepAliveInterval): New variable.
  6706. (maxDownloadSpeedLimit): New variable.
  6707. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6708. (setBtMessageReceiver):
  6709. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6710. (setDispatcher):
  6711. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6712. (setBtRequestFactory):
  6713. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6714. (setPeerConnection):
  6715. PeerConnectionHandle -> PeerConnectionWeakHandle
  6716. (setOption): Removed.
  6717. (setKeepAliveInterval): New function.
  6718. (setMaxDownloadSpeedLimit): New function.
  6719. (setBtMessageFactory): New function.
  6720. * src/BitfieldMan.h
  6721. (cachedNumMissingBlock): New variable.
  6722. (cachedNumFilteredBlock): New variable.
  6723. (cachedCompletedLength): New variable.
  6724. (cachedFilteredComletedLength): New variable.
  6725. (cachedFilteredTotalLength): New variable.
  6726. (countMissingBlockNow): New function.
  6727. (countFilteredBlockNow): New function.
  6728. (getFilteredTotalLengthNow): New function.
  6729. (getCompletedLengthNow): New function.
  6730. (getFilteredCompletedLengthNow): New function.
  6731. (updateCache): New function.
  6732. * src/AbstractBtMessage.h
  6733. (BtMessageDispatcher.h): New include.
  6734. (PeerConnection.h): New include.
  6735. (BtRequestFactory.h): New include
  6736. (BtMessageFactory.h): New include.
  6737. (dispatcher): New variable.
  6738. (messageFactory): New variable.
  6739. (peerConnection: New variable.
  6740. (setBtMessageDispatcher): New function.
  6741. (setPeerConnection): New function.
  6742. (setBtMessageFactory): New function.
  6743. (setBtRequestFactory): New function.
  6744. * src/DefaultBtMessageFactory.cc
  6745. (setCommonProperty): Set dispatcher, requestFactory, this,
  6746. peerConnection to msg.
  6747. * src/BtRegistry.h
  6748. (BT_MESSAGE_RECEIVER): New macro.
  6749. * src/PeerConnection.h
  6750. (PeerConnectionWeakHandle): New type definition.
  6751. * src/BtMessageFactory.h
  6752. (BtMessageFactoryWeakHandle): New type definition.
  6753. * src/BitfieldMan.cc
  6754. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6755. cachedCompletedLength, cachedFilteredComletedLength,
  6756. cachedFilteredTotalLength.
  6757. Call updateCache().
  6758. (countMissingBlock): Return cachedNumMissingBlock.
  6759. (countMissingBlockNow): New function.
  6760. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6761. (countFilteredBlockNow): New function.
  6762. (setBit): Call updateCache().
  6763. (unsetBit): Call updateCache().
  6764. (setBitfield): Call updateCache().
  6765. (clearAllBit): Call updateCache().
  6766. (setAllBit): Use setBitInternal instead of setBit.
  6767. Call updateCache().
  6768. (addFilter): Call updateCache().
  6769. (enableFilter): Call updateCache().
  6770. (disableFilter): Call updateCache().
  6771. (clearFilter): Call updateCache().
  6772. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6773. (getFilteredTotalLengthNow): New function.
  6774. (getCompletedLength): Return cachedCompletedLength.
  6775. (getCompletedLengthNow): New function.
  6776. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6777. (getFilteredCompletedLengthNow): New function.
  6778. (updateCache): New function.
  6779. * src/BtMessageReceiver.h
  6780. (BtMessageReceiverWeakHandle): New type definition.
  6781. * src/DefaultBtMessageReceiver.cc
  6782. (receiveHandshake): Use messageFactory member.
  6783. (sendHandshake): Use messageFactory member.
  6784. (receiveMessage): Use messageFactory member.
  6785. * src/DefaultBtMessageFactory.h
  6786. (dispatcher): New variable.
  6787. (requestFactory): New variable.
  6788. (peerConnection): New variablle.
  6789. (setBtMessageDispatcher): New function.
  6790. (setBtRequestFactory): New function.
  6791. (setPeerConnection): New function.
  6792. * src/SharedHandle.h
  6793. (RefCount): New class.
  6794. (WeakHandle): New class.
  6795. * src/PeerObject.h
  6796. (BtMessageReceiver.h): New include.
  6797. (PeerObject): Added btMessageReceiver.
  6798. (btMessageReceiver): New variable.
  6799. * src/Util.cc
  6800. (countBit): Simplified.
  6801. * src/BtCancelMessage.cc
  6802. (doReceivedAction): Use dispatcher member.
  6803. * src/BtRequestFactory.h
  6804. (BtRequestFactoryWeakHandle): New type definition.
  6805. * src/PeerStorage.h
  6806. (downloadSpeed): int -> uint32_t
  6807. (uploadSpeed): int -> uint32_t
  6808. (sessionDownloadLength): long long int -> uint64_t
  6809. (sessionUploadLength): long long int -> uint64_t
  6810. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. To add RecoverableException, FatalException:
  6812. * src/AbstractCommand.cc
  6813. (onAbort): Exception -> RecoverableException
  6814. * src/PeerAbstractCommand.h
  6815. (RecoverableException.h): New include.
  6816. (onAbort): Exception -> RecoverableException.
  6817. * src/PeerInteractionCommand.cc
  6818. (onAbort): Exception -> RecoverableException.
  6819. * src/PeerAbstractCommand.cc
  6820. (execute): Exception -> RecoverableException.
  6821. (onAbort): Exception -> RecoverableException.
  6822. * src/TorrentRequestInfo.cc
  6823. (execute): Exception -> RecoverableException.
  6824. * src/MetalinkRequestInfo.cc
  6825. (execute): Exception -> RecoverableException.
  6826. * src/MetaFileUtil.cc: RecoverableException.
  6827. * src/AbstractCommand.h
  6828. (onAbort): Exception -> RecoverableException.
  6829. * src/DlRetryEx.h: Exception -> RecoverableException.
  6830. * src/DlAbortEx.h: Exception -> RecoverableException.
  6831. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6832. * src/Util.cc: Exception -> RecoverableException.
  6833. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6834. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6835. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6836. To make ID static const int
  6837. * src/BtInterestedMessage.h
  6838. (ID_t): Removed.
  6839. (ID): New variable.
  6840. (getId): Made non-const.
  6841. * src/BtPieceMessage.h
  6842. (ID_t): Removed.
  6843. (ID): New variable.
  6844. (getId): Made non-const.
  6845. * src/BtChokeMessage.h
  6846. (ID_t): Removed.
  6847. (ID): New variable.
  6848. (getId): Made non-const.
  6849. * src/BtHaveAllMessage.h
  6850. (ID_t): Removed.
  6851. (ID): New variable.
  6852. (getId): Made non-const.
  6853. * src/BtKeepAliveMessage.h
  6854. (ID_t): Removed.
  6855. (ID): New variable.
  6856. (getId): Made non-const.
  6857. * src/BtHandshakeMessage.h
  6858. (ID): New variable.
  6859. (getId): Made non-const.
  6860. * src/BtSuggestPieceMessage.h
  6861. (ID_t): Removed.
  6862. (ID): New variable.
  6863. (getId): Made non-const.
  6864. * src/BtPortMessage.h
  6865. (ID_t): Removed.
  6866. (ID): New variable.
  6867. (getId): Made non-const.
  6868. * src/AbstractBtMessage.h
  6869. (id): Removed.
  6870. (AbstractBtMessage): Removed id.
  6871. (getId): Removed.
  6872. * src/BtHaveMessage.h
  6873. (ID_t): Removed.
  6874. (ID): New variable.
  6875. (getId): Made non-const.
  6876. * src/BtAllowedFastMessage.h
  6877. (ID_t): Removed.
  6878. (ID): New variable.
  6879. (getId): Made non-const.
  6880. * src/BtCancelMessage.h
  6881. (ID_t): Removed.
  6882. (ID): New variable.
  6883. (getId): Made non-const.
  6884. * src/BtNotInterestedMessage.h
  6885. (ID_t): Removed.
  6886. (ID): New variable.
  6887. (getId): Made non-const.
  6888. * src/BtChokeMessage.h
  6889. (ID_t): Removed.
  6890. (ID): New variable.
  6891. (getId): Made non-const.
  6892. * src/BtRejectMessage.h
  6893. (ID_t): Removed.
  6894. (ID): New variable.
  6895. (getId): Made non-const.
  6896. * src/BtBitfieldMessage.h
  6897. (ID_t): Removed.
  6898. (ID): New variable.
  6899. (getId): Made non-const.
  6900. * src/BtUnchokeMessage.h
  6901. (ID_t): Removed.
  6902. (ID): New variable.
  6903. (getId): Made non-const.
  6904. * src/BtRequestMessage.h
  6905. (ID_t): Removed.
  6906. (ID): New variable.
  6907. (getId): Made non-const.
  6908. * src/BtHaveMessage.h
  6909. (ID_t): Removed.
  6910. (ID): New variable.
  6911. (getId): Made non-const.
  6912. To add --force-truncate command-line option and a check whether
  6913. the file already exists:
  6914. * src/DirectDiskAdaptor.h
  6915. (getFilePath): Made virtual public.
  6916. * src/MultiDiskAdaptor.h
  6917. (File.h): New include.
  6918. (DiskWriterEntry::fileEntry): Made private.
  6919. (DiskWriterEntry::fileExists): New function.
  6920. (DiskWriterEntry::getFileEntry): New function.
  6921. (fileExists): New function.
  6922. (getFilePath): New function.
  6923. * src/TorrentRequestInfo.cc
  6924. (FatalException.h): New include.
  6925. (message.h): New include.
  6926. (RecoverableException.h): New include.
  6927. (execute): Added a check whether file is already exists or not.
  6928. * src/DiskAdaptor.h
  6929. (fileExists): New function.
  6930. (getFilePath): New function.
  6931. * src/main.cc
  6932. (showUsage): Added an explanation of --force-truncate command-line
  6933. option.
  6934. (main): Added --force-truncate command-line option.
  6935. * src/Exception.h
  6936. (setMsg): buf[256] -> buf[1024]
  6937. * src/CopyDiskWriter.h
  6938. (getFilePath): Made public virtual.
  6939. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  6940. (fileExists): New function.
  6941. * src/DownloadEngineFactory.cc
  6942. (newTorrentConsoleEngine): Don't open file here.
  6943. * src/message.h
  6944. (EX_FILE_ALREADY_EXISTS): New definition.
  6945. * src/prefs.h
  6946. (PREF_FOECE_TRUNCATE): New definition.
  6947. * src/HttpResponseCommand.cc
  6948. (handleDefaultEncoding): Added a check whether the file already exists.
  6949. * src/SegmentMan.h
  6950. (fileExists): New function.
  6951. (shouldCancelDownloadForSafety): New function.
  6952. * src/FtpNegotiateCommand.cc
  6953. (recvSize): Added a check whether the file already exists.
  6954. * src/AbstractSingleDiskAdaptor.cc
  6955. (File.h): New include.
  6956. (fileExists): New function.
  6957. * src/AbstractSingleDiskAdaptor.h
  6958. (getFilePath): Removed.
  6959. (fileExists): New function.
  6960. * src/SegmentMan.cc
  6961. (fileExists): New function.
  6962. (shouldCancelDownloadForSafety): New function.
  6963. To fix regression bug in torrent downloading:
  6964. * src/DefaultBtRequestFactory.cc
  6965. (doChokedAction): New function.
  6966. * src/DefaultBtRequestFactory.h
  6967. (doChokedAction): New function.
  6968. * src/DefaultBtMessageDispatcher.cc
  6969. (doChokedAction): Do not delete request if its target is in allowed
  6970. fast set.
  6971. * src/DefaultBtInteractive.cc
  6972. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  6973. (sendKeepAlive): Send keep alive message even if the outgoing message
  6974. queue is not empty.
  6975. (decideInterest): Simplified the code.
  6976. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  6977. it is already called when BtChokeMessage is received from a peer.
  6978. * src/BtRequestFactory.h
  6979. (doChokedAction): New function.
  6980. To clean up code:
  6981. * src/PeerInteractionCommand.h
  6982. (executeInternal): Added virtual keyword explicitly.
  6983. (prepareForRetry): Added virtual keyword explicitly.
  6984. (prepareForNextPeer): Added virtual keyword explicitly.
  6985. (onAbort): Added virtual keyword explicitly.
  6986. * src/RequestSlot.cc
  6987. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  6988. * src/BtPieceMessage.cc
  6989. (doReceivedAction): Added a debug log of piece's bitfield.
  6990. * src/Piece.h
  6991. (getBitfieldLength): New function.
  6992. * src/ByteArrayDiskWriter.cc
  6993. (clear): Added buf = 0 to avoid double free corruption.
  6994. * src/FileAllocator.cc
  6995. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  6996. Added cp.reset().
  6997. * src/BitfieldMan.h
  6998. (operator=): Rewritten.
  6999. * src/BitfieldMan.cc
  7000. (BitfieldMan): Initialized bitfield, useBitfield.
  7001. * src/PeerConnection.cc
  7002. (receiveMessage): Added a call to socket->readable() after getting
  7003. message length to avoid possible EOF.
  7004. * src/Util.cc
  7005. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  7006. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. To add an ability to pre-allocate file space:
  7008. * src/DirectDiskAdaptor.h: Rewritten.
  7009. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  7010. * src/MultiDiskAdaptor.h: Rewritten.
  7011. * src/DefaultPieceStorage.cc
  7012. (MultiDiskWriter.h): Removed include.
  7013. (PreAllocationDiskWriter.h): Removed include.
  7014. (FileAllocationMonitor.h): New include.
  7015. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  7016. (initStorage): Rewritten.
  7017. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7018. * src/FileAllocator.h: New class.
  7019. * src/FileAllocator.cc: New class.
  7020. * src/FileAllocationMonitor.h: New class.
  7021. * src/FileAllocationMonitor.cc: New class.
  7022. * src/ConsoleFileAllocationMonitor.h: New class.
  7023. * src/ConsoleFileAllocationMonitor.cc: New class.
  7024. * src/AbstractSingleDiskAdaptor.h: New class.
  7025. * src/AbstractSingleDiskAdaptor.cc: New class.
  7026. * src/DiskAdaptor.h
  7027. (Directory.h): Removed include.
  7028. (DiskWriter.h): Removed include.
  7029. (FileEntry.h): Removed include.
  7030. (diskWriter): Removed.
  7031. (DiskAdaptor): Removed diskWriter.
  7032. (openFile): Made pure virtual.
  7033. (closeFile): Made pure virtual.
  7034. (openExistingFile): Made pure virtual.
  7035. (initAndOpenFile): Made pure virtual.
  7036. (writeData): Made pure virtual.
  7037. (readData): Made pure virtual.
  7038. (sha1Sum): Made pure virtual.
  7039. (getStoreDir): Returns const reference of storeDir.
  7040. (DiskAdaptorHandle): New type definition.
  7041. * src/main.cc
  7042. (ConsoleFileAllocationMonitor.h): New include.
  7043. (showUsage): Added default value description of -s option.
  7044. Added the description of --file-allocation option.
  7045. (main): Set default value of --file-allocation option to 'none'.
  7046. Added --file-allocation command-line option.
  7047. Setup FileAllocationMonitorFactory.
  7048. * src/FtpInitiateConnectionCommand.cc
  7049. (executeInternal): Removed diskWriter related processing, which was
  7050. moved to FtpNegotiationCommand.cc.
  7051. * src/DirectDiskAdaptor.cc
  7052. (getFilePath): Made non-const.
  7053. * src/CopyDiskAdaptor.h
  7054. (DiskAdaptor.h): Removed include.
  7055. (DiskWriter.h): Removed include.
  7056. (AbstractSingleDiskAdaptor.h): New include.
  7057. (getFilePath): Made non-const. Added virtual keyword.
  7058. (CopyDiskAdaptor): Removed diskWriter.
  7059. (getTempFile): Returns const reference.
  7060. (CopyDiskAdaptorHandle): New type definition.
  7061. * src/ByteArrayDiskWriter.cc
  7062. (clear): Simplified.
  7063. (initAndOpenFile): Rewritten.
  7064. (openFile): Call initAndOpenFile()
  7065. * src/MultiDiskAdaptor.cc: Rewritten.
  7066. * src/DownloadEngineFactory.cc
  7067. (FileAllocator.h): New include.
  7068. (FileAllocationMonitor.h): New include.
  7069. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7070. create DefaultDiskWriter with file allocator.
  7071. * src/DiskWriter.h
  7072. (initAndOpenFile): Added totalLength argument.
  7073. (openFile): Added totalLength argument.
  7074. * src/prefs.h
  7075. (PREF_FILE_ALLOCATION): New definition.
  7076. (V_PREALLOC): New definition.
  7077. (V_NONE): New definition.
  7078. * src/HttpResponseCommand.cc
  7079. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7080. size.
  7081. * src/FtpNegotiateCommand.cc
  7082. (Util.h): New include.
  7083. (recvSize): Open file here.
  7084. * src/Util.h
  7085. (ullitos): New function.
  7086. * src/CopyDiskWriter.h
  7087. (getFilePath): Made non-const.
  7088. * src/DefaultDiskWriter.h
  7089. (Option.h): New include.
  7090. (totalLength): Removed.
  7091. (DefaultDiskWriter): Removed totalLength.
  7092. (initAndOpenFile): Added totalLength argument.
  7093. (DefaultDiskWriterHandle): New type definition.
  7094. (createNewDiskWriter): New function.
  7095. * src/Util.cc
  7096. (ullitos): New function.
  7097. * src/DefaultDiskWriter.cc
  7098. (message.h): New include.
  7099. (FileAllocator.h): New include.
  7100. (prefs.h): New include.
  7101. (Util.h): New include.
  7102. (DefaultDiskWriter): Removed totalLength.
  7103. (initAndOpenFile): Added file allocation.
  7104. (createNewDiskWriter): New function. Just for temporary solution.
  7105. It will be rewritten later.
  7106. * src/DiskAdaptor.cc
  7107. (DiskAdaptor): Removed diskWriter.
  7108. * src/AbstractDiskWriter.cc
  7109. (LogFactory.h): New include.
  7110. (AbstractDiskWriter): Added fileAllocator, logger.
  7111. (openFile): Added totalLength argument.
  7112. * src/AbstractDiskWriter.h
  7113. (FileAllocator.h): New include.
  7114. (Logger.h): New include.
  7115. (fileAllocator): New variable.
  7116. (logger): New variable.
  7117. (openFile): Added totalLength argument. Added virtual keyword
  7118. explicitly.
  7119. (openExistingFile): Added totalLength argument. Added virtual keyword
  7120. explicitly.
  7121. (closeFile): Added virtual keyword explicitly.
  7122. (sha1Sum): Added virtual keyword explicitly.
  7123. (writeData): Added virtual keyword explicitly.
  7124. (readData): Added virtual keyword explicitly.
  7125. (setFileAllocator): New function.
  7126. * src/DefaultPieceStorage.h
  7127. (FileAllocator.h): New include.
  7128. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7129. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7130. * src/FileProgressMonitor.h: New class.
  7131. To compile aria2 on PC-BSD:
  7132. * src/DefaultBtContext.cc
  7133. (libgen.h): New include.
  7134. To fix memory leak:
  7135. * src/Exception.h
  7136. (~Exception): Delete cause. Fixed memory leak.
  7137. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Rewritten a portion of bittorrent implementation:
  7139. * src/BtMessageValidator.h: New class.
  7140. * src/BtBitfieldMessageValidator.h: New class.
  7141. * src/BtHandshakeMessageValidator.h: New class.
  7142. * src/BtRequestMessageValidator.h: New class.
  7143. * src/BtSuggestPieceMessageValidator.h: New class.
  7144. * src/BtAllowedFastMessageValidator.h: New class.
  7145. * src/BtRejectMessageValidator.h: New class.
  7146. * src/BtCancelMessageValidator.h: New class.
  7147. * src/BtPieceMessageValidator.h: New class.
  7148. * src/BtHaveMessageValidator.h: New class.
  7149. * src/BtEventListener.h: New class.
  7150. * src/AbstractBtEventListener.h: New class.
  7151. * src/BtEvent.h: New class.
  7152. * src/BtChokingEvent.h: New class.
  7153. * src/BtChokedEvent.h: New class.
  7154. * src/BtCancelSendingPieceEvent.h: New class.
  7155. * src/BtAbortOutstandingRequestEvent.h: New class.
  7156. * src/Randomizer.h: New class.
  7157. * src/SimpleRandomizer.h: New class.
  7158. * src/BtMessage.h: New class.
  7159. * src/AbstractBtMessage.h: New class.
  7160. * src/SimpleBtMessage.h: New class.
  7161. * src/BtHaveMessage.h: New class.
  7162. * src/BtInterestedMessage.h: New class.
  7163. * src/BtAllowedFastMessage.h: New class.
  7164. * src/BtUnchokeMessage.h: New class.
  7165. * src/BtCancelMessage.h: New class.
  7166. * src/BtNotInterestedMessage.h: New class.
  7167. * src/BtChokeMessage.h: New class.
  7168. * src/BtHaveNoneMessage.h: New class.
  7169. * src/BtHandshakeMessage.h: New class.
  7170. * src/BtSuggestPieceMessage.h: New class.
  7171. * src/BtHaveMessage.h: New class.
  7172. * src/BtPieceMessage.h: New class.
  7173. * src/BtHaveAllMessage.h: New class.
  7174. * src/BtKeepAliveMessage.h: New class.
  7175. * src/BtPortMessage.h: New class.
  7176. * src/BtRejectMessage.h: New class.
  7177. * src/BtBitfieldMessage.h: New class.
  7178. * src/BtRequestMessage.h: New class.
  7179. * src/DefaultBtRequestFactory.h: New class.
  7180. * src/DefaultBtMessageReceiver.h: New class.
  7181. * src/BtInteractive.h: New class.
  7182. * src/BtMessageDispatcher.h: New class.
  7183. * src/DefaultBtMessageDispatcher.h: New class.
  7184. * src/DefaultBtInteractive.h: New class.
  7185. * src/BitfieldManFactory.h: New class.
  7186. * src/HandleRegistry.h: New class.
  7187. * src/BtMessageFactory.h: New class.
  7188. * src/BtMessageReceiver.h: New class.
  7189. * src/DefaultBtMessageFactory.h: New class.
  7190. * src/PeerObject.h: New class.
  7191. * src/BtRequestFactory.h: New class.
  7192. * src/SuggestPieceMessage.h: Removed.
  7193. * src/PortMessage.h: Removed.
  7194. * src/SuggestPieceMessage.h: Removed.
  7195. * src/KeepAliveMessage.h: Removed.
  7196. * src/HandshakeMessage.h: Removed.
  7197. * src/PeerInteraction.h: Removed.
  7198. * src/UnchokeMessage.h: Removed.
  7199. * src/PieceMessage.h: Removed.
  7200. * src/RequestMessage.h: Removed.
  7201. * src/InterestedMessage.h: Removed.
  7202. * src/HaveMessage.h: Removed.
  7203. * src/CancelMessage.h: Removed.
  7204. * src/RejectMessage.h: Removed.
  7205. * src/AllowedFastMessage.h: Removed.
  7206. * src/HaveNoneMessage.h: Removed.
  7207. * src/SimplePeerMessage.h: Removed.
  7208. * src/HaveAllMessage.h: Removed.
  7209. * src/BitfieldMessage.h: Removed.
  7210. * src/PeerMessageFactory.h: Removed.
  7211. * src/NotInterestedMessage.h: Removed.
  7212. * src/ChokeMessage.h: Removed.
  7213. * src/PeerMessage.h: Removed.
  7214. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. To know root cause of exception:
  7216. * src/Exception.h
  7217. (cause): New variable.
  7218. (Exception): Added a parameter.
  7219. (getMsg): Return const reference to msg.
  7220. (getCause): New function.
  7221. * src/DlRetryEx.h
  7222. (DlRetryEx): Added a parameter 'cause'.
  7223. Added an overloaded constructor.
  7224. (DlAbortEx): Added a parameter 'cause'.
  7225. Added an overloaded constructor.
  7226. * src/SimpleLogger.cc
  7227. (writeLog): Log nested exception messages recursively.
  7228. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. * src/DefaultBtProgressInfoFile.cc
  7230. (load): Fixed memory leak when the infohash doesn't match.
  7231. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. * src/DefaultPeerStorage.cc
  7233. (calculateStat): Simplified the code by combining 2 loops into 1.
  7234. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  7236. for BitTorrent download:
  7237. * src/PeerAbstractCommand.cc
  7238. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  7239. * src/main.cc:
  7240. (timeoutSpecified): Removed.
  7241. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  7242. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  7243. * src/TorrentRequestInfo.cc
  7244. (timeoutSpecified): Removed.
  7245. (torrentHandler): Removed timeoutSpecified and the adjustment of
  7246. timeout value.
  7247. * src/prefs.h
  7248. (PREF_BT_TIMEOUT): New definition.
  7249. Delete unused variables:
  7250. * src/TorrentRequestInfo.cc
  7251. (requestInfo): Removed.
  7252. Move setSignalHander to Util::setGlobalSignalHandler:
  7253. * src/TorrentRequestInfo.cc:
  7254. setSignalHander -> Util::setGlobalSignalHandler
  7255. * src/main.cc
  7256. (setSignalHander): Removed.
  7257. (main): setSignalHander -> Util::setGlobalSignalHandler
  7258. * src/Util.h
  7259. (setGlobalSignalHandler): New function.
  7260. * src/Util.cc
  7261. (setGlobalSignalHandler): New function.
  7262. * src/UrlRequestInfo.cc:
  7263. setSignalHander -> Util::setGlobalSignalHandler
  7264. Reset peer status in order to exit gracefully:
  7265. * src/PeerAbstractCommand.cc
  7266. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  7267. To fix the bug that causes the number of bytes uploaded is not saved
  7268. to .aria2 file:
  7269. * src/DefaultPeerStorage.h
  7270. (removedPeerSessionDownloadLength): New variable.
  7271. (removedPeerSessionUploadLength): New variable.
  7272. * src/DefaultPeerStorage.cc
  7273. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  7274. removedPeerSessionUploadLength(0).
  7275. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  7276. through all peers, and then add removedPeerSessionDownloadLength(
  7277. removedPeerSessionUploadLength) to it.
  7278. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  7279. (to) the peer to removedPeerSessionDownloadLength
  7280. (removedPeerSessionUploadLength).
  7281. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. To add Metalink location option:
  7283. * src/MetalinkRequestInfo.cc
  7284. (execute): Call MetalinkEntry::setLocationPreference()
  7285. * src/main.cc
  7286. (showUsage): Added the help message for --metalink-location option.
  7287. (main): Added --metalink-location option.
  7288. * src/prefs.h
  7289. (PREF_METALINK_LOCATION): New definition.
  7290. * src/MetalinkEntry.cc
  7291. (AddLocationPreference): New function object.
  7292. (setLocationPreference): New function.
  7293. * src/Xml2MetalinkProcessor.cc
  7294. (getResource): Set location attribute to MetalinkResource
  7295. To show URLs to download
  7296. * src/UrlRequestInfo.h
  7297. (printUrls): New function.
  7298. To add multiple <file> Metalink support:
  7299. * src/MetalinkEntry.h
  7300. (MetalinkResources): Removed.
  7301. (setLocationPreference): New function.
  7302. (MetalinkEntryHandle): New type definition.
  7303. (MetalinkEntries): New type definition.
  7304. * src/Xml2MetalinkProcessor.h
  7305. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7306. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7307. (parseFile): Metalinker* -> MetalinkerHandle
  7308. * src/UrlRequestInfo.h
  7309. (execute): RequestInfo* -> RequestInfos
  7310. * src/MetalinkRequestInfo.cc
  7311. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  7312. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  7313. (execute): RequestInfo* -> RequestInfos
  7314. Added multiple <file> support. Print filename when it is queued.
  7315. * src/MetalinkRequestInfo.h
  7316. (execute): RequestInfo* -> RequestInfos
  7317. (getDownloadEngine): Removed.
  7318. * src/RequestInfo.h
  7319. (RequestInfoHandle): New type definition.
  7320. (RequestInfos): New type definition.
  7321. (execute): RequestInfo* -> RequestInfos
  7322. (getDownloadEngine): Removed.
  7323. * src/MetalinkResource.h
  7324. (MetalinkResourceHandle): New type definition.
  7325. (MetalinkResources): New type definition.
  7326. * src/MetalinkEntry.cc
  7327. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7328. because the element is now of type MetalinkResourceHandle.
  7329. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7330. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7331. (dropUnsupportedResource): Removed the deletion of the elements of
  7332. resources because the element is now of type MetalinkResourceHandle.
  7333. * src/Xml2MetalinkProcessor.cc
  7334. (parseFile): Metalinker* -> MetalinkerHandle
  7335. MetalinkEntry* -> MetalinkEntryHandle
  7336. Removed try-catch block.
  7337. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7338. MetalinkResource* -> MetalinkResourceHandle
  7339. Removed try-catch block.
  7340. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7341. Free result by using xmlXPathFreeObject()
  7342. * src/Metalinker.cc
  7343. (~Metalinker): Removed the deletion of entries.
  7344. MetalinkEntry* -> MetalinkEntryHandle
  7345. (queryEntry): Add multiple <file> Metalink support.
  7346. * src/Metalinker.h
  7347. (MetalinkEntries): Removed.
  7348. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7349. * src/MetalinkProcessor.h
  7350. (parseFile): Metalinker* -> MetalinkerHandle
  7351. Bug fixes:
  7352. * src/PeerChokeCommand.cc
  7353. (execute): cat01->cat02
  7354. * src/DefaultPieceStorage.cc
  7355. (DefaultPieceStorage): Added diskAdaptor(0)
  7356. * src/TrackerWatcherComand.cc:
  7357. (execute): Use btAnnounce->noMoreAnnounce()
  7358. to determin whether the function returns true or not.
  7359. * src/TrackerUpdateCommand.cc:
  7360. (execute): Use btAnnounce->noMoreAnnounce()
  7361. to determin whether the function returns true or not.
  7362. * src/FtpConnection.cc
  7363. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7364. This is the fix of the busy loop bug.
  7365. * src/DownloadCommand.cc
  7366. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7367. cached PeerStat.
  7368. The value of "name" entry in torrent file is now set by
  7369. *DiskAdaptor::setTopDir(...) methods.
  7370. * src/MultiDiskAdaptor.h
  7371. (topDir): New variable.
  7372. (setTopDir): New function.
  7373. (getTopDir): New function.
  7374. * src/MultiDiskAdaptor.cc
  7375. (getFilePath): Concat storDir, "/" and topDir.
  7376. (mkdir): Use getFilePath() to get the directory path for output.
  7377. * src/DefaultPieceStorage.cc
  7378. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7379. CopyDiskAdaptor.
  7380. * src/CopyDiskAdaptor.h
  7381. (topDir): New variable.
  7382. (setTopDir): New function.
  7383. (getTopDir): New function.
  7384. * src/CopyDiskAdaptor.cc
  7385. (fixFilename): Updated.
  7386. Misc
  7387. * src/UrlRequestInfo.h
  7388. (e): Removed.
  7389. (UrlRequestInfo): Removed e.
  7390. (getDownloadEngine): Removed.
  7391. * src/UrlRequestInfo.cc
  7392. (handler): Rewritten.
  7393. (printUrls): New function.
  7394. (execute): Call printUrls().
  7395. * src/HandshakeMessage.cc
  7396. (check): peerinteraction->getBtContext() -> btContext
  7397. * src/PeerInteraction.h
  7398. (getBtContext): Removed.
  7399. * src/TorrentRequestInfo.h
  7400. (execute): RequestInfo* -> RequestInfos
  7401. (getDownloadEngine): Removed.
  7402. * src/TorrentRequestInfo.cc
  7403. (haltRequested): Removed.
  7404. (btHaltRequested): New variable.
  7405. (torrentHandler): haltRequested -> btHaltRequested
  7406. (execute): RequestInfo* -> RequestInfos
  7407. * src/TorrentConsoleDownloadEngine.cc
  7408. (afterEachIteration): haltRequested -> btHaltRequested.
  7409. * src/ConsoleDownloadEngine.h
  7410. (initStatistics): Added virtual.
  7411. (calculateStatistics): Added virtual.
  7412. (onEndOfRun): Added virtual.
  7413. (afterEachIteration): Added virtual.
  7414. * src/ConsoleDownloadEngine.cc
  7415. (haltRequested): New variable.
  7416. (afterEachIteration): New function.
  7417. * src/main.cc
  7418. (requestInfo): Removed.
  7419. * src/SegmentMan.cc
  7420. (findSlowerSegmentEntry): Refactored.
  7421. * Release 0.9.0
  7422. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7424. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7425. * src/TorrentMan.h: Removed.
  7426. * src/TorrentMan.cc: Removed.
  7427. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7428. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7429. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7430. * src/PeerAbstractCommand.cc: Use btRuntime.
  7431. * src/BtContextAwareCommand.h: New class.
  7432. * src/FileEntry.h: Added accessor methods for following variables.
  7433. (path): Made private.
  7434. (length): Made private.
  7435. (offset): Made private.
  7436. (extracted): Made private.
  7437. (requested): Made private.
  7438. (FileEntries): New definition.
  7439. (FileEntryHandle): New definition.
  7440. * src/FileEntry.cc: New file.
  7441. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7442. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7443. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7444. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7445. * src/PieceStorage.h: New file.
  7446. * src/PeerInteractionCommand.h: Use btContext.
  7447. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7448. btRuntime.
  7449. * src/DefaultBtProgressInfoFile.h: New file.
  7450. * src/DefaultBtProgressInfoFile.cc: New file.
  7451. * src/File.cc
  7452. (Util.h): New include.
  7453. (mkdirs): New function.
  7454. * src/MultiDiskAdaptor.h
  7455. (mkdir): New function.
  7456. * src/PeerListProcessor.h
  7457. (Peers): Removed.
  7458. * src/PeerInteraction.h
  7459. (torrentMan): Removed.
  7460. (btContext): New variable.
  7461. (peerStorage): New variable.
  7462. (pieceStorage): New variable.
  7463. (btAnnounce): New variable.
  7464. (getTorrentMan): Removed.
  7465. (getBtContext): New function.
  7466. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7467. btAnnounce.
  7468. * src/HandshakeMessage.h
  7469. (TorrentMan.h): Removed.
  7470. * src/HandshakeMessage.cc: Use btContext.
  7471. * src/DefaultBtAnnounce.cc: New file.
  7472. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7473. * src/DefaultPieceStorage.cc: New file.
  7474. * src/DefaultBtContext.h: New file.
  7475. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7476. Use the accessor methods of FileEntry.
  7477. * src/CookieBox.cc: Updated to use Util::slice().
  7478. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7479. * src/common.h (SharedHandle.h): New include.
  7480. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7481. pieceStorage.
  7482. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7483. * src/DiskAdaptor.h
  7484. (topDir): Removed.
  7485. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7486. (setTopDir): Removed.
  7487. (getTopDir): Removed.
  7488. * src/BtContext.h: New file.
  7489. * src/DefaultPeerStorage.h: New file.
  7490. * src/PieceMessage.h (TorrentMan.h): Removed.
  7491. * src/RequestMessage.h (TorrentMan.h): Removed.
  7492. * src/TorrentDownloadEngine.h
  7493. (uploadLength): New variable.
  7494. (btContext): New variable.
  7495. (btRuntime): New variable.
  7496. (pieceStorage): New variable.
  7497. (peerStorage): New variable.
  7498. (btAnnounce): New variable.
  7499. (btProgressInfoFile): New variable.
  7500. (torrentMan): Removed.
  7501. (setBtContext): New function.
  7502. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7503. peerStorage, btAnnounce, btProgressInfoFile.
  7504. * src/Piece.h
  7505. (toString): New function.
  7506. (Pieces): New type definition.
  7507. * src/Peer.h
  7508. (active): New variable.
  7509. (Peer): Added active.
  7510. (activate): Set active to true.
  7511. (deactivate): Set active to false.
  7512. (isActive): New function.
  7513. (Peers): New type definition.
  7514. * src/DirectDiskAdaptor.cc
  7515. (getFilePath): Use the accessor methods of FileEntry.
  7516. * src/TorrentConsoleDownloadEngine.h
  7517. (afterEachIteration): New function.
  7518. * src/TorrentConsoleDownloadEngine.cc
  7519. (haltRequested): New variable.
  7520. (sendStatistics): Use pieceStorage, btRuntime.
  7521. (afterEachIteration): New function.
  7522. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7523. * src/Directry.h
  7524. (Directory): New function.
  7525. (DirectoryHandle): New type definition.
  7526. * src/BtProgressInfoFile.h: New file.
  7527. * src/RequestMessage.cc: Use pieceStorage.
  7528. * src/BtRuntime.h: New file.
  7529. * src/DefaultBtContext.cc: New file.
  7530. * src/BitfieldMan.h
  7531. (getCompletedLength): New function(private).
  7532. (getCompletedLength): New function.
  7533. (getFilteredCompletedLength): New function.
  7534. * src/BitfieldMan.h
  7535. (getCompletedLength): New function(private).
  7536. (getCompletedLength): New function.
  7537. (getFilteredCompletedLength): New function.
  7538. * src/MultiDiskAdaptor.cc
  7539. (mkdir): New function.
  7540. (openFile): Call mkdir().
  7541. (initAndOpenFile): Call mkdir().
  7542. * src/CancelMessage.h
  7543. (TorrentMan.h): Removed.
  7544. * src/RejectMessage.h
  7545. (TorrentMan.h): Removed.
  7546. * src/DownloadEngineFactory.cc
  7547. (DefaultPieceStorage.h): New include.
  7548. (DefaultPeerStorage.h): New include.
  7549. (DefaultBtAnnounce.h): New include.
  7550. (DefaultBtProgressInfoFile.h): New include.
  7551. (newTorrentConsoleEngine): Rewritten.
  7552. * src/ShareRatioSeedCriteria.h
  7553. (torrentMan): Removed.
  7554. (btContext): New variable.
  7555. (peerStorage): New variable.
  7556. (btRuntime): New variable.
  7557. (evaluate): Use btContext, btRuntime, peerStorage.
  7558. * src/AnnounceTier.h: New file.
  7559. * src/BtAnnounce.h: New file.
  7560. * src/BtRegistry.h: New file.
  7561. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7562. * src/PeerConnection.h (TorrentMan.h): Removed.
  7563. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7564. * src/Util.h
  7565. (slice): Added an argument.
  7566. * src/Util.cc
  7567. (slice): Added an argument to control whether trim is made or not.
  7568. * src/PeerStorage.h: New file.
  7569. * src/BtRegistry.cc: New file.
  7570. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7571. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7572. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7573. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7574. * src/TorrentRequestInfo.h
  7575. (e): Removed.
  7576. (showFileEntry): Added an argument.
  7577. (getDownloadEngine): Return 0.
  7578. * src/DefaultBtAnnounce.h: New file.
  7579. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7580. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7581. * src/PeerMessageFactory.h
  7582. (btContext): New variable.
  7583. (pieceStorage): New variable.
  7584. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7585. btAnnounce.
  7586. * src/DiskAdaptor.cc
  7587. (DiskAdaptor): Removed topDir.
  7588. (~DiskAdaptor): Removed topDir.
  7589. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7590. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7591. * src/File.h (mkdirs): New function.
  7592. * src/DefaultPeerStorage): New file.
  7593. * src/DownloadEngineFactory.h
  7594. (newTorrentConsoleEngine): Use btContext.
  7595. * src/BtContextAwareCommand.cc: New file.
  7596. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7597. * src/PeerMessage.h
  7598. (btContext): New variable.
  7599. (peerStorage): New variable.
  7600. (pieceStorage): New variable.
  7601. (setBtContext): New function.
  7602. * src/Directry.cc
  7603. (Directory): New function.
  7604. (createDir): Do nothing if name.size() == 0.
  7605. * src/AnnounceList.h
  7606. (AnnounceTier): Removed.
  7607. (AnnounceTiers): Removed.
  7608. * src/DefaultPieceStorage.h: New file.
  7609. * src/Piece.cc (toString): New function.
  7610. To fix typo:
  7611. * src/main.cc (showVersion): Fixed typo.
  7612. To fix compile warning:
  7613. * src/DelegatingPeerListProcessor.cc
  7614. (canHandle): Added "return false".
  7615. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7617. make the process of announce request testable.
  7618. * src/TrackerWatcherCommand.h
  7619. (TimeA2.h): Removed.
  7620. (interval): Removed.
  7621. (checkPoint): Removed.
  7622. (createRequestCommand): Added an argument 'url'.
  7623. (TrackerWatherCommand): Removed interval.
  7624. (createCommand): New function.
  7625. * src/DownloadEngineFactory.cc
  7626. (newTorrentConsoleEngine): Updated according to the changes in
  7627. TrackerWatherCommand.
  7628. * src/TorrentMan.cc
  7629. (DelegatingPeerListProcessor.h): New includes.
  7630. (TorrentMan): Added the initialization of announceInterval.
  7631. (isStoppedAnnounceReady): New function.
  7632. (isCompletedAnnounceReady): New function.
  7633. (isDefaultAnnounceReady): New function.
  7634. (isAnnounceReady): New function.
  7635. (getAnnounceUrl): New function.
  7636. (announceStart): New function.
  7637. (announceFailure): New function.
  7638. (announceSuccess): New function.
  7639. (isAllAnnounceFailed): New function.
  7640. (resetAnnounce): New function.
  7641. (processAnnounceResponse): New function.
  7642. (needMorePeerConnection): New function.
  7643. (noMoreAnnounce): New function.
  7644. * src/TrackerUpdateCommand.h
  7645. (getTrackerResponse): int->size_t
  7646. * src/TorrentMan.h
  7647. (isStoppedAnnounceReady): New function.
  7648. (isCompletedAnnounceReady): New function.
  7649. (isDefaultAnnounceReady): New function.
  7650. (announceInterval): New variable.
  7651. (isAnnounceReady): New function.
  7652. (getAnnounceUrl): New function.
  7653. (announceStart): New function.
  7654. (announceFailure): New function.
  7655. (announceSuccess): New function.
  7656. (isAllAnnounceFailed): New function.
  7657. (resetAnnounce): New function.
  7658. (processAnnounceResponse): New function.
  7659. (needMorePeerConnection): New function.
  7660. (noMoreAnnounce): New function.
  7661. * src/TrackerWatcherCommand.cc
  7662. (TrackerWatherCommand): Removed interval and checkPoint.
  7663. (execute): Rewritten.
  7664. (createCommand): New function.
  7665. (createRequestCommand): Rewritten.
  7666. * src/TrackerUpdateCommand.cc
  7667. (MetaFileUtil.h): Removed.
  7668. (DelegatingPeerListProcessor.h): Removed.
  7669. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7670. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Request -> RequestHandle:
  7672. * src/HttpResponseCommand.h: Request->RequestHandle
  7673. * src/AbstractCommand.cc: Request->RequestHandle
  7674. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7675. * src/HttpRequestCommand.cc: Request->RequestHandle
  7676. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7677. * src/AbstractCommand.h: Request->RequestHandle
  7678. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7679. * src/HttpResponseCommand.cc: Request->RequestHandle
  7680. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7681. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7682. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7683. * src/HttpConnection.h: Request->RequestHandle
  7684. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7685. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7686. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7687. * src/DownloadCommand.h: Request->RequestHandle
  7688. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7689. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7690. * src/HttpRequestCommand.h: Request->RequestHandle
  7691. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7692. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7693. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7694. * src/HttpDownloadCommand.h: Request->RequestHandle
  7695. * src/FtpConnection.cc: Request->RequestHandle
  7696. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7697. * src/UrlRequestInfo.cc: Request->RequestHandle
  7698. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7699. * src/HttpConnection.h: Request->RequestHandle
  7700. * src/DownloadCommand.cc: Request->RequestHandle
  7701. * src/FtpConnection.h: Request->RequestHandle
  7702. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7703. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7704. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7705. * src/Request.h
  7706. (SharedHandle.h): New include.
  7707. (RequestHandle): New type definition.
  7708. (Requests): Redefined.
  7709. To add MULTITRACKER support:
  7710. * src/TrackerWatcherCommand.h
  7711. (createRequestCommand): New function.
  7712. * src/DownloadEngineFactory.cc
  7713. (newTorrentConsoleEngine): Removed req.
  7714. * src/prefs.h
  7715. (PREF_TRACKER_MAX_TRIES): New definition.
  7716. * src/TorrentMan.cc
  7717. (TorrentMan): Removed req. Added trackerNumTry.
  7718. (~TorrentMan): Removed req.
  7719. (setupInternal1): Added announceList.
  7720. * src/TorrentRequestInfo.cc
  7721. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7722. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7723. * src/main.cc
  7724. (main): Added PREF_TRACKER_MAX_TRIES.
  7725. * src/TorrentMan.h
  7726. (Request.h): Removed.
  7727. (AnnounceList.h): New include.
  7728. (trackerNumTry): New variable.
  7729. (req): Removed.
  7730. (announceList): New variable.
  7731. * src/TrackerWatcherCommand.cc
  7732. (execute): Rewritten.
  7733. (createRequestCommand): New function.
  7734. * src/TrackerUpdateCommand.cc
  7735. (execute): Updated with the use of AnnounceList.
  7736. * src/AnnounceList.cc: New class.
  7737. * src/AnnounceList.h: New class.
  7738. To fix typo:
  7739. * src/prefs.h
  7740. (PREF_MAX_TRIES): max_try->max_tries
  7741. To not to decode "+" as space in URL decode:
  7742. * src/Util.cc
  7743. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7744. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. To add timeout to async name resolution:
  7746. * src/AbstractCommand.h
  7747. (nameResolveFinished): New function. This is not elegant way. It needs
  7748. to be more refined.
  7749. (nameResolverCheck): New variable.
  7750. * src/AbstractCommand.cc
  7751. (AbstractCommand): Added nameResolverCheck.
  7752. (execute): Added the check whether the name resolution has finished.
  7753. (setNameResolverCheck): Set nameResolverCheck to true.
  7754. (disableNameResolverCheck): Set nameResolverCheck to false.
  7755. (nameResolverFinished): New function.
  7756. * src/FtpInitiateConnectionCommand.h
  7757. (nameResolverFinished): New function.
  7758. * src/FtpInitiateConnectionCommand.cc
  7759. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7760. * src/HttpInitiateConnectionCommand.h
  7761. (nameResolverFinished): New function.
  7762. * src/HttpInitiateConnectionCommand.cc
  7763. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7764. * src/prefs.h
  7765. (PREF_DNS_TIMEOUT): New definition.
  7766. * src/main.cc
  7767. (main): Added PREF_DNS_TIMEOUT.
  7768. To add the support for a non-compact response from a tracker:
  7769. * src/PeerListProcessor.h: New class.
  7770. * src/DefaultPeerListProcessor.h: New class.
  7771. * src/DefaultPeerListProcessor.cc: New class.
  7772. * src/CompactPeerListProcessor.h: New class.
  7773. * src/CompactPeerListProcessor.cc: New class.
  7774. * src/DelegatingPeerListProcessor.h: New class.
  7775. * src/DelegatingPeerListProcessor.cc: New class.
  7776. * src/TorrentMan.cc
  7777. (addPeer): New function(overload).
  7778. (addPeer): Delete unused peers only when new peer is added.
  7779. * src/TorrentMan.h
  7780. (PeerListProcessor.h): Included.
  7781. (Peers): Removed.
  7782. (addPeer): New function(overload).
  7783. * src/TrackerUpdateCommand.cc
  7784. (netinet/in.h): Removed.
  7785. (DelegatingPeerListProcessor.h): Included.
  7786. (execute): Updated to use DelegatingPeerListProcessor.
  7787. To fix the memory leak in TorrentMan::peers:
  7788. * src/PeerAbstractCommand.cc
  7789. (onAbort): Added peer->resetStatus().
  7790. * src/Peer.h
  7791. (resetStatus): Made public.
  7792. To improve the precision of the speed calculation:
  7793. * src/SpeedCalc.h
  7794. (nextInterval): New variable.
  7795. * src/SpeedCalc.cc
  7796. (reset): Added nextInterval.
  7797. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7798. (changeSw): Set nextInterval to 15 seconds relative to the current
  7799. instant time.
  7800. * src/main.cc
  7801. (showVersion): Updated.
  7802. (showUsage): Updated.
  7803. * Release 0.8.1
  7804. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. * src/main.cc
  7806. (showUsage): Commented out --min-segment-size option.
  7807. (main): Commented out --min-segment-size option.
  7808. * Release 0.8.0
  7809. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. * src/*.{h,cc}:
  7811. Added an exception to the license which allows linking with OpenSSL.
  7812. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. * src/AbstractCommand.cc
  7814. (execute): Check whether the download has finished before checking
  7815. socket status.
  7816. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7817. Do not exit even if no segment is available.
  7818. * src/prefs.h
  7819. (PREF_STARTUP_IDLE_TIME): New definition.
  7820. * src/PeerInteractionCommand.cc
  7821. (executeInternal): Removed max speed limit. Because it performs bad.
  7822. (receiveMessages): Added max speed limit. This was better than above,
  7823. but still a little bit to be desired. Sometimes the download speed
  7824. became much faster than I specified.
  7825. * src/SpeedCalc.h
  7826. (start): New variable.
  7827. (accumulatedLength): New variable.
  7828. (getAvgSpeed): New function.
  7829. * src/SpeedCalc.cc
  7830. (reset): Added start, accumulatedLength.
  7831. (update): Added calculation of an average speed.
  7832. (getAvgSpeed): New function.
  7833. * src/DownloadCommand.h
  7834. (sw): Removed.
  7835. * src/main.cc
  7836. (main): Added PREF_STARTUP_IDLE_TIME.
  7837. * src/PeerStat.h
  7838. (STATUS): Added REQUEST_IDLE.
  7839. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7840. (getAvgDownloadSpeed): New function
  7841. (requestIdle): New function.
  7842. * src/SegmentMan.h
  7843. (SegmentEntryHandle): New type definition.
  7844. (SegmentEntries): Now holds SegmentEntryHandle.
  7845. (findSlowerSegmentEntry): New funtion.
  7846. * src/SegmentMan.cc
  7847. (save): Updated according to the changes in SegmentEntries.
  7848. (read): Updated according to the changes in SegmentEntries.
  7849. (FindSegmentEntryByIndex): Updated according to the changes in
  7850. SegmentEntries.
  7851. (FindSegmentEntryByCuid): Updated according to the changes in
  7852. SegmentEntries.
  7853. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7854. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7855. Renamed uitr as itr.
  7856. (findSlowerSegmentEntry): New function.
  7857. (getSegment): Updated according to the changes in SegmentEntries.
  7858. Added the feature that cancels the segment with slow server and fast
  7859. one takes it over.
  7860. (cancelSegment): Updated according to the changes in SegmentEntries.
  7861. (getDownloadLength): Updated according to the changes in
  7862. SegmentEntries.
  7863. (init): Assigned 0 to bitfield after deleting it.
  7864. * src/DownloadCommand.cc
  7865. (STARTUP_IDLE_TIME): Removed.
  7866. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7867. * src/PeerChokeCommand.cc
  7868. (optUnchokingPeer): Updated according to the changes in Peer.
  7869. (ResetDelta): Removed.
  7870. (UploadFaster): Updated according to the changes in Peer.
  7871. (DownloadFaster): Updated according to the changes in Peer.
  7872. (execute): I clarify the meaning of "upload" and "download" here.
  7873. "upload" means the transfer from localhost to remote host.
  7874. "download" means the transfer from remote host to localhost.
  7875. Based on this rule, I swapped orderByUploadRate and
  7876. orderByDownloadRate.
  7877. * src/PeerInteractionCommand.cc
  7878. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7879. (executeInternal): Removed the argument of
  7880. peerInteraction->sendMessages().
  7881. (receiveMessages): Rewritten download speed limit.
  7882. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7883. * src/HttpResponseCommand.cc
  7884. (handleDefaultEncoding): If file size is unknown in torrent request,
  7885. do not call segmentMan->initBitfield() here.
  7886. Disabled persistent connection feature in torrent request.
  7887. * src/UrlRequestInfo.h
  7888. (UrlRequestInfo): Removed const qualifier from option.
  7889. * src/TorrentMan.h
  7890. (TransferStat): New class.
  7891. (deltaDownloadLength): Removed.
  7892. (deltaUploadLength): Removed.
  7893. (addDeltaDownloadLength): Removed.
  7894. (getDeltaDownloadLength): Removed.
  7895. (resetDeltaDownloadLength): Removed.
  7896. (addDeltaUploadLength): Removed.
  7897. (getDeltaUploadLength): Removed.
  7898. (resetDeltaUploadLength): Removed.
  7899. (addActivePeer): Added peer->activate().
  7900. (deleteActivePeer): Added peer->deactivate().
  7901. (calculateStat): New function.
  7902. * src/TorrentMan.cc
  7903. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  7904. (calculateStat): New function.
  7905. * src/PeerInteraction.h
  7906. (uploadLimit): Removed.
  7907. (option): New variable.
  7908. (setUploadLimit): Removed.
  7909. (getUploadSpeed): Removed.
  7910. (sendMessages): Removed the argument "currentUploadSpeed".
  7911. * src/PeerInteraction.cc
  7912. (prefs.h): Included.
  7913. (PeerInteraction): Removed uploadLimit. Added option.
  7914. (sendMessages): Rewritten upload speed limit.
  7915. (sendHandshake): Removed the argument from sendMessages().
  7916. (sendBitfield): Removed the argument from sendMessages().
  7917. * src/PeerAbstractCommand.cc
  7918. (execute): Commented out the portion of upload limit.
  7919. (onAbort): Removed peer->resetStatus().
  7920. * src/TorrentRequestInfo.cc
  7921. (timeoutSpecified): Declared extern.
  7922. (execute): Set timeout to 180 if timeout is not specified by.
  7923. command-line.
  7924. * src/PieceMessage.cc
  7925. (receivedAction): Added peer->updateDownloadLength().
  7926. Removed peer->addPeerUpload().
  7927. Removed torrentMan->addDeltaDownloadLength().
  7928. (send): Added peer->updateUploadLength().
  7929. Removed peer->addPeerDownload().
  7930. Removed torrentMan->addDeltaUploadLength().
  7931. * src/main.cc
  7932. (timeoutSpecified): New variable.
  7933. (main): Set timeoutSpecified to false.
  7934. If the command-line option "--upload-limit" is specified, then
  7935. timeoutSpecified is set to true. This option will remain in the next
  7936. release, but be deprecated in the future release.
  7937. * src/TorrentRequestInfo.h
  7938. (TorrentRequestInfo): Removed const qualifier from op.
  7939. * src/PeerStat.h
  7940. (uploadSpeed): New variable.
  7941. (PeerStat): Added default value to cuid.
  7942. (calculateUploadSpeed): New function.
  7943. (updateUploadLength): New function.
  7944. (getMaxUploadSpeed): New function.
  7945. (getAvgUploadSpeed): New function.
  7946. (reset): Added uploadSpeed. Set status to IDLE.
  7947. * src/TorrentDownloadEngine.h
  7948. (cp): Declared as Time.
  7949. (sessionDownloadLengthArray): Removed.
  7950. (sessionUploadLengthArray): Removed.
  7951. (currentCp): Removed.
  7952. (lastCalcStat): New variable
  7953. (lastElapsed): Removed.
  7954. (sessionDownloadLength): Removed.
  7955. (calculateStat): New function.
  7956. * src/TorrentDownloadEngine.cc
  7957. (initStatistics): Removed lastElapsed, cp[],
  7958. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  7959. currentCp, sessionDownloadLength.
  7960. Added cp.reset() and lastCalcStat.reset().
  7961. (calculateSpeed): Changed the name of the argument.
  7962. (calculateStatistics): Rewritten.
  7963. (calculateStat): New function.
  7964. * src/Peer.h
  7965. (PeerStat.h): Included.
  7966. (peerUpload): Removed.
  7967. (peerDownload): Removed.
  7968. (peerStat): New variable.
  7969. (sessionUploadLength): New variable.
  7970. (sessionDownloadLength): New variable.
  7971. (deltaUpload): Removed.
  7972. (deltaDownload): Removed.
  7973. (resetStatus): Made private.
  7974. (Peer): Added sessionUploadLength, sessionDownloadLength.
  7975. Removed peerUpload, peerDownload.
  7976. (updateUploadLength): New function.
  7977. (addDeltaUpload): Removed.
  7978. (updateDownloadLength): New function.
  7979. (resetDeltaUpload): Removed.
  7980. (getDeltaUpload): Removed.
  7981. (addDeltaDownload): Removed.
  7982. (calculateUploadSpeed): New function.
  7983. (resetDeltaDownload): Removed.
  7984. (getDeltaDownload): Removed.
  7985. (calculateDownloadSpeed): New function.
  7986. (getSessionUploadLength): New function.
  7987. (getSessionDownloadLength): New function.
  7988. (activate): New function.
  7989. (deactivate): New function.
  7990. (addPeerUpload): Removed.
  7991. (setPeerUpload): Removed.
  7992. (getPeerUpload): Removed.
  7993. (addPeerDownload): Removed.
  7994. (setPeerDownload): Removed.
  7995. (getPeerDownload): Removed.
  7996. * src/Peer.cc
  7997. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  7998. * src/MetalinkRequestInfo.h
  7999. (MetalinkRequestInfo): Removed const qualifier from op.
  8000. * src/RequestInfo.h
  8001. (op): Removed const qualifier.
  8002. (RequestInfo): Removed const qualifier from op.
  8003. * src/prefs.h
  8004. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  8005. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  8006. * src/PeerInteractionCommand.cc
  8007. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  8008. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  8009. * src/PeerInteraction.cc
  8010. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  8011. * src/main.cc
  8012. (showUsage): Updated the description of "--lowest-speed-limit" option.
  8013. Added the description of "--max-download-limit" option.
  8014. Removed the description of "--upload-limit" option.
  8015. Added the description of "--max-upload-limit" option.
  8016. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  8017. Added "--max-download-limit" option and "--max-upload-limit" option.
  8018. Added the warning message if "--upload-limit" option is used.
  8019. * src/DownloadCommand.cc
  8020. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  8021. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. To rewrite segment download mechanism for HTTP/FTP download.
  8023. Use BitfieldMan to manage segment download.
  8024. * src/HttpResponseCommand.h
  8025. (executeInternal): Pass the reference of segment.
  8026. * src/AbstractCommand.cc
  8027. (prepareForRetry): Call segmentMan->cancelSegment here.
  8028. (onAbort): Call segmentMan->cancelSegment here.
  8029. * src/HttpDownloadCommand.cc
  8030. (prepareForNextSegment): New function.
  8031. * src/DownloadEngineFactory.cc
  8032. (newConsoleEngine): Removed splitter.
  8033. (newTorrentConsoleEngine): Removed splitter.
  8034. * src/Request.h
  8035. (segment): Renamed from seg.
  8036. * src/FtpInitiateConnectionCommand.h
  8037. (executeInternal): Pass the reference of segment.
  8038. * src/AbstractCommand.h
  8039. (executeInternal): Pass the reference of segment.
  8040. * src/pref.h
  8041. (PREF_SEGMENT_SIZE): New definition.
  8042. * src/HttpProxyRequestCommand.h
  8043. (executeInternal): Pass the reference of segment.
  8044. * src/HttpResponseCommand.cc
  8045. (checkResponse): Allowed status 206 when a request range starts 0.
  8046. (handleDefaultEncoding): Rewritten the code related to Segment.
  8047. (handleOtherEncoding): Rewritten the code related to Segment.
  8048. * src/SegmentMan.h
  8049. (SegmentEntry): New class.
  8050. (SegmentEntries): New type definition.
  8051. (bitfield): New variable.
  8052. (usedSegmentEntries): New variable.
  8053. (onNullBitfield): New function.
  8054. (checkoutSegment): New function.
  8055. (segments): Removed.
  8056. (splitter): Removed.
  8057. (unregisterId): Removed.
  8058. (getSegment): New function(overload)
  8059. (getDownloadedSize): Removed.
  8060. (cancelSegment): New function.
  8061. (completeSegment): New function.
  8062. (initBitfield): New function.
  8063. (hasSegment): New function.
  8064. (getDownloadLength): New function.
  8065. * src/BitfieldMan.h
  8066. (getStartIndex): New function.
  8067. (getEndIndex): New function.
  8068. (getMissingUnusedIndex): New function(overload).
  8069. (getSparseMissingUnusedIndex): New function.
  8070. * src/BitfieldMan.cc
  8071. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8072. (getMissingUnusedIndex): New function(overload).
  8073. (Range): New class.
  8074. (getStartIndex): New function.
  8075. (getEndIndex): New function.
  8076. (getSparseMissingUnusedIndex): New function.
  8077. (isBitSetInternal): Return false if the given index is less than 0.
  8078. * src/HttpInitiateConnectionCommand.h
  8079. (executeInternal): Pass the reference of segment.
  8080. * src/FtpNegotiateCommand.h
  8081. (executeInternal): Pass the reference of segment.
  8082. * src/FtpNegotiateCommand.cc
  8083. (recvSize): Initialize bitfield here.
  8084. * src/FtpTunnelResponseCommand.h
  8085. (executeInternal): Pass the reference of segment.
  8086. * src/HttpConnection.cc
  8087. (createRequest): Rewritten range header processing.
  8088. * src/DownloadCommand.h
  8089. (executeInternal): Pass the reference of segment.
  8090. (prepareForRetry): Removed.
  8091. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8092. function.
  8093. * src/main.cc
  8094. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8095. * src/SegmentMan.cc
  8096. (SegmentMan): Added bitfield. Removed splitter.
  8097. (~SegmentMan): Added bitfield. Removed splitter.
  8098. (unregisterId): Removed.
  8099. (getSegment): Rewritten.
  8100. (updateSegment): Rewritten.
  8101. (save): Rewritten.
  8102. (read): Rewritten.
  8103. (finished): Rewritten.
  8104. (getDownloadedSize): Removed.
  8105. (initBitfield): New function.
  8106. (FindSegmentEntryByIndex): New function object.
  8107. (FindSegmentEntryByCuid): New function object.
  8108. (checkoutSegment): New function.
  8109. (onNullBitfield): New function.
  8110. (getSegment): New function(overload).
  8111. (CancelSegment): New function object.
  8112. (cancelSegment): New function.
  8113. (completeSegment): New function.
  8114. (hasSegment): New function.
  8115. (getDownloadLength): New function.
  8116. * src/FtpInitiateConnectionCommand.cc
  8117. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8118. * src/Segment.h: Rewritten.
  8119. * src/Segment.cc (operator<<): New function.
  8120. * src/HttpDownloadCommand.h
  8121. (prepareForNextSegment): New function.
  8122. * src/Request.cc
  8123. (resetUrl): Made segment null.
  8124. * src/DownloadEngine.cc
  8125. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8126. * src/HttpProxyRequestCommand.h
  8127. (executeInternal): Pass the reference of segment.
  8128. * src/DownloadCommand.cc
  8129. (executeInternal): Rewritten the code related to Segment.
  8130. (prepareForRetry): Removed.
  8131. (prepareForNextSegment): Rewritten.
  8132. * src/FtpTunnelResponseCommand.h
  8133. (executeInternal): Pass the reference of segment.
  8134. To add HTTP 1.1 persistent connection support(experimental)
  8135. * src/HttpRequestCommand.cc
  8136. (executeInternal): Disable keep alive if it is disabled by
  8137. configuration.
  8138. * src/Request.h
  8139. (keepAlive): New variable.
  8140. (isKeepAlive): New function.
  8141. (setKeepAlive): New function.
  8142. * src/pref.h
  8143. (PREF_HTTP_KEEP_ALIVE): New definition.
  8144. * src/HttpResponseCommand.cc
  8145. (executeInternal): Check the remote server supports keep alive.
  8146. * src/HttpConnection.cc
  8147. (createRequest): Send "Connection: close" only if keep alive is
  8148. disabled.
  8149. * src/main.cc
  8150. (main):
  8151. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  8152. To add max download speed limit:
  8153. * src/pref.h
  8154. (PREF_MAX_SPEED_LIMIT): New definition.
  8155. * src/PeerInteractionCommand.cc
  8156. (executeInternal): Added max download speed limit. Not tested yet.
  8157. * src/SegmentMan.h
  8158. (PeerStats): New type definition.
  8159. (peerStats): New variable.
  8160. (registerPeerStat): New function.
  8161. (FindPeerStat): New function object.
  8162. (getPeerStat): New function.
  8163. (calculateDownloadSpeed): New function.
  8164. * src/SpeedCalc.h: New class.
  8165. * src/SpeedCalc.cc: New class.
  8166. * src/main.cc
  8167. (main):
  8168. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  8169. download speed is not restricted).
  8170. * src/PeerStat.h: New class.
  8171. * src/SegmentMan.cc
  8172. (registerPeerStat): New function.
  8173. (calculateDownloadSpeed): New function.
  8174. * src/DownloadCommand.cc
  8175. (STARTUP_IDLE_TIME): New definition.
  8176. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  8177. downloadStart.
  8178. (~DownloadCommand): Call peerStat->downloadStop.
  8179. (executeInternal): Added download speed limitter. Rewritten lowest
  8180. speed limitter.
  8181. * src/HttpConnection.cc
  8182. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  8183. * src/AbstractCommand.cc
  8184. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  8185. Added hostname to the error message.
  8186. * src/ConsoleDownloadEngine.cc
  8187. (calculateStatistics): Initialize psize with dlSize.
  8188. * src/PieceMessage.cc
  8189. (receivedAction): Do not call peerInteraction->abortPiece here.
  8190. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  8191. * src/BitfieldMan.h
  8192. (clearAllUseBit): New function.
  8193. (setAllUseBit): New function.
  8194. * src/BitfieldMan.cc
  8195. (clearAllBit): Do not clear useBitfield here.
  8196. (clearAllUseBit): New function.
  8197. (setAllUseBit): New function.
  8198. * src/Piece.cc
  8199. (clearAllBlock): Call bitfield->clearAllUseBit().
  8200. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. To make filename URL-decoded:
  8202. * src/HttpResponseCommand.h: Updated doc.
  8203. * src/HttpResponseCommand.cc
  8204. (determinFilename): Made filename URL-decoded.
  8205. * src/FtpInitiateConnectionCommand.cc
  8206. (executeInternal): Made filename URL-decoded.
  8207. * src/Util.h (urldecode): New function.
  8208. * src/Util.cc (urldecode): New function.
  8209. To fix a bug that caused assertion failure in ares_strerror:
  8210. * src/NameResolver.cc (callback): Fixed the bug.
  8211. * Release 0.7.3
  8212. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8213. To add --seed-time and --seed-ratio command-line option:
  8214. * src/Option.h (getAsDouble): New function.
  8215. * src/Option.cc (getAsDouble): New function.
  8216. * src/SeedCheckCommand.h: New class.
  8217. * src/SeedCheckCommand.cc: New class.
  8218. * src/DownloadEngineFactory.cc
  8219. (SeedCheckCommand.h): Included.
  8220. (UnionSeedCriteria.h): Included.
  8221. (TimeSeedCriteria.h): Included.
  8222. (ShareRatioSeedCriteria.h): Included.
  8223. (newTorrentConsoleEngine): Added the processing of seed option.
  8224. * src/SeedCriteria.h: New class.
  8225. * src/ShareRatioSeedCriteria.h: New class.
  8226. * src/TimeSeedCriteria.h: New class.
  8227. * src/UnionSeedCriteria.h: New class.
  8228. * src/prefs.h
  8229. (PREF_SEED_TIME): New definition.
  8230. (PREF_SEED_RATIO): New definition.
  8231. * src/main.cc
  8232. (showUsage): Added --seed-time and --seed-ratio option.
  8233. (main): Added --seed-time and --seed-ratio option.
  8234. Made default log file name "/dev/null".
  8235. * src/SharedHandle.h
  8236. (SharedHandle): Copy constructor. Made it assignable from the
  8237. SharedHandle of the subclasses.
  8238. (operator=): Made it assignable from the SharedHandle of the
  8239. subclasses.
  8240. (getRefCount): New function.
  8241. To add notice log level and the switch to write log to stdout. This
  8242. switch is configurable per log level.
  8243. * src/Logger.h
  8244. (notice): New function.
  8245. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  8246. constant.
  8247. * src/LogFactory.cc
  8248. (getInstance): The use of NullLogger was removed. A log message with
  8249. notice log level was made written to stdout along with log file.
  8250. * src/NullLogger.h
  8251. (notice): New function.
  8252. * src/SimpleLogger.h
  8253. (writeHeader): Added the 'file' argument.
  8254. (writeLog): Added the 'file' argument.
  8255. (writeFile): New function.
  8256. (stdoutField): New variable.
  8257. (SimpleLogger): Removed the default constructor.
  8258. (SimpleLogger): Made the default value of logfile 0.
  8259. (debug): Added 'virtual' keyword.
  8260. (info): Added 'virtual' keyword.
  8261. (warn): Added 'virtual' keyword.
  8262. (error): Added 'virtual' keyword.
  8263. (notice): New function.
  8264. (setStdout): New function.
  8265. * src/SimpleLogger.cc
  8266. (WRITE_LOG): Replaced writeLog with writeFile.
  8267. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  8268. (SimpleLogger): Removed the default constructor.
  8269. (setStdout): New function.
  8270. (writeLog): Added the handling of NOTICE log level.
  8271. (writeFile): New function.
  8272. (notice): New function.
  8273. * src/TorrentMan.h: Updated doc.
  8274. * src/BitfieldMan.h: Updated doc.
  8275. * src/TrackerWatcherCommand.cc
  8276. (execute): Return true if error occurred in the request to the tracker
  8277. and halt is requested.
  8278. * src/TrackerUpdateCommand.cc
  8279. (execute): Return true if error occurred in the request to the tracker
  8280. and halt is requested.
  8281. To call onDownloadComplete from TorrentMan::completePiece(), not from
  8282. DownloadEngine:
  8283. * src/TorrentConsoleDownloadEngine.h
  8284. (onSelectiveDownloadingCompletes): Removed.
  8285. * src/TorrentConsoleDownloadEngine.cc
  8286. (onSelectiveDownloadingCompletes): Removed.
  8287. * src/TorrentDownloadEngine.h
  8288. (onEndOfRun): Added 'virtual' keyword.
  8289. (afterEachIteration): Removed.
  8290. (onSelectiveDownloadingCompletes): Removed.
  8291. * src/TorrentDownloadEngine.cc
  8292. (onEndOfRun): Removed filenameFixed.
  8293. (afterEachIteration): Removed.
  8294. * src/TorrentMan.cc
  8295. (completePiece): Call onDownloadComplete here.
  8296. (onDownloadComplete): Added 2 log messages.
  8297. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  8299. * src/NameResolver.h: Added the prototype declaration of callback().
  8300. To support c-ares library:
  8301. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8302. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8303. * src/FtpInitiateConnectionCommand.h:
  8304. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8305. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8306. * src/HttpInitiateConnectionCommand.h:
  8307. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8308. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  8309. Added thes upport of c-ares's ares_strerror(the idea came from patch
  8310. #1542285 by tizianomueller)
  8311. * src/HttpInitiateConnectionCommand.cc:
  8312. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8313. * src/FtpInitiateConnectionCommand.cc:
  8314. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8315. * src/DownloadEngine.h:
  8316. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8317. * src/DownloadEngine.cc:
  8318. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8319. To fix the bug that causes compilation failure with metalink-support
  8320. disabled(bug#1543587):
  8321. * src/main.cc: Fixed with the patch by tizianomueller.
  8322. * Release 0.7.2
  8323. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. * src/main.cc
  8325. (main): Added a message to inform users that aria2 is starting to
  8326. verify checksum.
  8327. * src/RequestInfo.cc
  8328. (printDownloadAbortMessage): Added a message to inform users that
  8329. transfer can be resumed.
  8330. * src/FeatureConfig.cc
  8331. (FEATURE_ASYNC_DNS): New definition.
  8332. (FeatureConfig): Added aysnc DNS entry.
  8333. To replace CommandUuid with Command* in SocketEntry and
  8334. NameResolverEntry:
  8335. * src/DownloadEngine.h
  8336. (CommandUuids): Removed.
  8337. (SocketEntry::commandUuid): Removed.
  8338. (SocketEntry::command): New variable.
  8339. (SocketEntry::SocketEntry): Updated.
  8340. (SocketEntry::operator==): Updated.
  8341. (NameResolverEntry::commandUuid): Removed.
  8342. (NameResolverEntry::command): New variable.
  8343. (NameResolverEntry::NameResolverEntry): Updated.
  8344. (NameResolverEntry::operator==): Updated.
  8345. (waitData): Changed the argument type.
  8346. (addSocketForReadCheck): Changed the argument type.
  8347. (deleteSocketForReadCheck): Changed the argument type.
  8348. (addSocketForWriteCheck): Changed the argument type.
  8349. (deleteSocketForWriteCheck): Changed the argument type.
  8350. (addNameResolverCheck): Changed the argument type.
  8351. (deleteNameResolverCheck): Changed the argument type.
  8352. * src/DownloadEngine.cc
  8353. (FindCommand): Removed.
  8354. (run): Removed activeUuid. Added activeCommands instead.
  8355. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8356. (AccumulateActiveCommand): New function object.
  8357. (waitData): Use AccumulateActiveCommand.
  8358. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8359. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8360. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8361. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8362. (addNameResolverCheck): Use Command instead of CommandUuid.
  8363. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8364. * src/AbstractCommand.cc
  8365. (disableReadCheckSocket): Updated according to the changes in
  8366. DownloadEngine.
  8367. (setReadCheckSocket): Updated according to the changes in
  8368. DownloadEngine.
  8369. (disableWriteCheckSocket): Updated according to the changes in
  8370. DownloadEngine.
  8371. (setWriteCheckSocket): Updated according to the changes in
  8372. DownloadEngine.
  8373. (setNameResolverCheck): Updated according to the changes in
  8374. DownloadEngine.
  8375. (disableNameResolverCheck): Updated according to the changes in
  8376. DownloadEngine.
  8377. * src/AbstractCommand.cc
  8378. (disableReadCheckSocket): Updated according to the changes in
  8379. DownloadEngine.
  8380. (setReadCheckSocket): Updated according to the changes in
  8381. DownloadEngine.
  8382. (disableWriteCheckSocket): Updated according to the changes in
  8383. DownloadEngine.
  8384. (setWriteCheckSocket): Updated according to the changes in
  8385. DownloadEngine.
  8386. * release 0.7.1
  8387. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. To handle the case where some BitTorrent tracker requires all letters
  8389. except for [A-Za-z0-9] is URL encoded.
  8390. * src/Util.h
  8391. (torrentUrlencode): New function.
  8392. * src/Util.cc
  8393. (ctype.h): Included.
  8394. (torrentUrlencode): New function.
  8395. * src/TrackerWatcherCommand.cc
  8396. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8397. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. To add asynchronous DNS support(libares):
  8399. * src/AbstractCommand.h
  8400. (setNameResolverCheck): New function.
  8401. (disableNameResolverCheck): New function
  8402. (resolveHostname): New function.
  8403. * src/AbstractCommand.cc
  8404. (setNameResolverCheck): New function.
  8405. (disableNameResolverCheck): New function
  8406. (resolveHostname): New function.
  8407. * src/FtpInitiateConnectionCommand.h
  8408. (nameResolver): New function.
  8409. * src/FtpInitiateConnectionCommand.cc
  8410. (Util.h): Included.
  8411. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8412. disableWriteCheckSocket.
  8413. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8414. (executeInternal): Added async DNS support.
  8415. * src/HttpInitiateConnectionCommand.h
  8416. (nameResolver): New function.
  8417. * src/HttpInitiateConnectionCommand.cc
  8418. (DlRetryEx.h): Included.
  8419. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8420. disableWriteCheckSocket.
  8421. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8422. (executeInternal): Added async DNS support.
  8423. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8424. by extern "C" declaration.
  8425. * src/NameResolver.cc: New class.
  8426. * src/Util.h:
  8427. (isNumberAndDotsNotation): New function
  8428. * src/Util.cc
  8429. (isNumberAndDotsNotation): New function.
  8430. * src/DownloadEngine.h
  8431. (NameResolver.h): Included.
  8432. (NameResolverEntry): New class.
  8433. (NameResolverEntries): New type definition.
  8434. (addNameResolverCheck): New function.
  8435. (deleteNameResolverCheck): New function.
  8436. * src/DownloadEngine.cc
  8437. (run): Initialize cp with 0.
  8438. (SetDescriptor::operator()): Added for NameResolverEntry.
  8439. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8440. (waitData): Check nameResolver entries.
  8441. (updateFdSet): Update fds in nameResolver entries.
  8442. (addNameResolverCheck): New function.
  8443. (deleteNameResolverCheck): new function.
  8444. * src/PeerInteractionCommand.cc
  8445. (executeInternal): Fixed wrong socket handling.
  8446. * src/main.cc
  8447. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8448. * src/Util.cc
  8449. (fileChecksum): Removed the call to ctx.digestReset().
  8450. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. * po/ru.po: Azamat sent me Russian translation.
  8452. * src/FtpNegotiateCommand.cc
  8453. (recvGreeting): Call disableWriteCheckSocket just after
  8454. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8455. (recvRetr): Recognized status code 125 as a acceptable response code.
  8456. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8457. case-insesitive filesystem(BUG#1531057).
  8458. * src/Time.h: Renamed as TimeA2.h.
  8459. * src/Time.cc: Renamed as TimeA2.cc.
  8460. * src/TimeA2.h: New class.
  8461. * src/TimeA2.cc: New class.
  8462. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8463. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8464. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8465. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8466. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8467. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8468. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8469. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8470. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8471. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8472. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8473. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8474. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8475. * release 0.7.0
  8476. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. * src/PeerChokeCommand.h
  8478. (PeerChokeCommand): Rearranged the arguments.
  8479. * src/PeerChokeCommand.cc
  8480. (PeerChokeCommand): Rearranged the arguments.
  8481. * src/MetalinkEntry.h
  8482. (Checksum.h): Included.
  8483. (md5): Removed.
  8484. (sha1): Removed.
  8485. (checksum): New variable.
  8486. (operator=): Updated.
  8487. (check): Removed.
  8488. * src/prefs.h
  8489. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8490. (PREF_FOLLOW_TORRENT): New definition.
  8491. (PREF_SELECT_FILE): New definition.
  8492. (PREF_FOLLOW_METALINK): New definition.
  8493. * src/MetalinkResource.h
  8494. (TYPE_HTTPS): Added to enum TYPE.
  8495. * src/TorrentMan.cc
  8496. (~TorrentMan): Rewritten.
  8497. * src/MultiDiskWriter.cc
  8498. (MultiDiskAdaptor): Updated according to the changes in
  8499. MessageDigestContext.
  8500. (~MultiDiskAdaptor): Updated according to the changes in
  8501. MessageDigestContext.
  8502. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8503. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8504. * src/Util.h
  8505. (fileChecksum): Updated according to the changes in
  8506. MessageDigestContext.
  8507. * src/Util.cc
  8508. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8509. (fileChecksum): Updated according to the changes in
  8510. MessageDigestContext.
  8511. * src/messageDigest.h: Rewritten.
  8512. * src/MetalinkEntry.cc
  8513. (check): Removed.
  8514. (Supported): Updated.
  8515. (dropUnsupportedResource): Fixed a memory leak.
  8516. * src/ShaVisitor.cc
  8517. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8518. (~ShaVisitor): Updated according to the changes in
  8519. MessageDigestContext.
  8520. (visit): Updated according to the changes in MessageDigestContext.
  8521. * src/main.cc
  8522. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8523. command-line option added.
  8524. * src/DownloadEngine.h
  8525. (SocketEntry): New class.
  8526. (SocketEntries): New definition.
  8527. (PairFind): Removed.
  8528. (SockCmdMap): Removed.
  8529. * src/DownloadEngine.cc
  8530. (DownloadEngine): Rewritten.
  8531. (~DownloadEngine): Rewritten.
  8532. (run): Renamed activeCommandUuids as activeUuids.
  8533. (SetDescriptor): Rewritten.
  8534. (AccumulateActiveCommandUuid): Removed.
  8535. (AccumulateActiveUuid): New function object.
  8536. (waitData): Rewritten.
  8537. (updateFdSet): Rewritten.
  8538. (addSocket): Rewritten.
  8539. (deleteSocket): Rewritten.
  8540. (addSocketForReadCheck): Rewritten.
  8541. (deleteSocketForReadCheck): Rewritten.
  8542. (addSocketForWriteCheck): Rewritten.
  8543. (deleteSocketForWriteCheck): Rewritten.
  8544. * src/Xml2MetalinkProcessor.cc
  8545. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8546. * src/DownloadCommand.cc
  8547. (executeInternal): Added the check routine for lowest speed limit.
  8548. * src/AbstractDiskWriter.cc
  8549. (AbstractDiskWriter): Updated according to the changes in
  8550. MessageDigestContext.
  8551. (~AbstractDiskWriter): Updated according to the changes in
  8552. MessageDigestContext.
  8553. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8554. * src/RequestInfo.h: New class.
  8555. * src/UrlRequestInfo.h: New class.
  8556. * src/UrlRequestInfo.cc: New class.
  8557. * src/TorrentRequestInfo.h: New class.
  8558. * src/TorrentRequestInfo.cc: New class.
  8559. * src/MetalinkRequestInfo.h: New class.
  8560. * src/MetalinkRequestInfo.cc: New class.
  8561. * src/Checksum.h: New class.
  8562. * src/DownloadEngineFactory.h: New class.
  8563. * src/DownloadEngineFactory.cc: New class.
  8564. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. * src/Option.h
  8566. (getAsBool): New function.
  8567. * src/Option.cc
  8568. (prefs.h): Included.
  8569. (defined): 0-length value is now recognized as undefined.
  8570. (getAsInt): Rewritten.
  8571. (getAsLLInt): Rewritten.
  8572. (getAsBool): New function.
  8573. * src/FeatureConfig.h: Rewritten.
  8574. * src/FeatureConfig.cc: Rewritten.
  8575. * src/prefs.h
  8576. (PREF_STDOUT_LOG): New definition.
  8577. (PREF_LOG): New definition.
  8578. (PREF_DIR): New definition.
  8579. (PREF_OUT): New definition.
  8580. (PREF_SPLIT): New definition.
  8581. (PREF_DAEMON): New definition.
  8582. (PREF_REFERER): New definition.
  8583. (PREF_TORRENT_FILE): New definition.
  8584. (PREF_LISTEN_PORT): New definition.
  8585. (PREF_METALINK_FILE): New definition.
  8586. (PREF_METALINK_VERSION): New definition.
  8587. (PREF_METALINK_LANGUAGE): New definition.
  8588. (PREF_METALINK_OS): New definition.
  8589. (PREF_METALINK_SERVERS): New definition.
  8590. * src/main.cc
  8591. (main): Following command-line parameters are now put into Option
  8592. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8593. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8594. metalinkLanguage, metalinkOs, metalinkServers
  8595. To fix the bug that aria2 can not handle http response header properly.
  8596. * src/HttpHeader.cc
  8597. (put): Made name lowercased.
  8598. (defined): Made name lowercased.
  8599. (getFirst): Made name lowercased.
  8600. (get): Made name lowercased.
  8601. (getFirstAsInt): Rewritten.
  8602. (getFirstAsLLInt): Rewritten.
  8603. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8604. * src/TorrentMan.h:
  8605. (advertisePiece): Updated doc.
  8606. (getAdvertisedPieceIndexes): Updated doc.
  8607. (removeAdvertisedPiece); New function.
  8608. * src/TorrentMan.cc
  8609. (FindElapsedHave): New function object.
  8610. (removeAdvertisedPiece): New function.
  8611. * src/HaveEraseCommand.h: New class.
  8612. * src/HaveEraseCommand.cc: New class.
  8613. * src/FeatureConfig.h: New class.
  8614. * src/FeatureConfig.cc: New class.
  8615. * src/Request.h
  8616. (defaultPorts): Removed.
  8617. * src/Request.cc
  8618. (FeatureConfig.h): Included.
  8619. (Request): Removed the statements related to defaultPorts.
  8620. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8621. A default port number is now retrieved from FeatureConfig.
  8622. * src/main.cc
  8623. (HaveEraseCommand.h): Included.
  8624. (showVersion): Added the output of feature list.
  8625. (main): Added HaveEraseCommand to command queue in BitTorrent
  8626. downloading.
  8627. * src/PeerInteractionCommand.h
  8628. (chokeCheckPoint): Commented out.
  8629. (periodicExecPoint): New variable.
  8630. * src/PeerInteractionCommand.cc
  8631. (executeInternal): Following methods are now called in at least every
  8632. 0.5 seconds to reduce CPU usage:
  8633. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8634. checkHave(), sendKeepAlive().
  8635. (checkLongTimePeerChoking): Commented out.
  8636. * src/BitfieldMan.h
  8637. (getNthBitIndex): Changed the method signature.
  8638. (getMissingIndexRandomly): Changed the method signature.
  8639. * src/BitfieldMan.cc
  8640. (getNthBitIndex): Rewritten
  8641. (getMissingIndexRandomly): Rewritten.
  8642. (hasMissingPiece): Rewritten.
  8643. (getMissingIndex): Refactored.
  8644. (getMissingUnusedIndex); Refactored.
  8645. (getMissingIndex): Refactored.
  8646. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. * src/PeerMessage.h
  8648. (Piece.h): Included.
  8649. (SharedHandle.h): Included.
  8650. (invalidate): New variable.
  8651. (uploading): New variable.
  8652. (isInvalidate): New function.
  8653. (isUploading): New function.
  8654. (onPush): New function.
  8655. (onChoked): New function.
  8656. (onCanceled): New function.
  8657. (onAbortPiece): New function.
  8658. (PeerMessageHandle): New type definition.
  8659. * src/PeerMessage.cc
  8660. (PeerMessage): Added the initialization for invalidate and uploading.
  8661. * src/CancelMessage.h
  8662. (CancelMessage): Rewritten.
  8663. * src/RejectMessage.h
  8664. (RejectMessage): Rewritten.
  8665. * src/Metalinker.h
  8666. (operator=): Defined.
  8667. * src/MetaEntry.h
  8668. (operator=): Defined.
  8669. * src/MetalinkResource.h
  8670. (operator=): Defined.
  8671. * src/AllowedFastMessage.h
  8672. (AllowedFastMessage): Rewritten.
  8673. * src/HandshakeMessage.h
  8674. (HandshakeMessage): New function(overload).
  8675. * src/HandshakeMessage.cc
  8676. (HandshakeMessage): Rewritten.
  8677. (init): New function.
  8678. * src/HaveMessage.h
  8679. (HaveMessage): Rewritten.
  8680. * src/Time.h
  8681. (operator=): Defined the function body here.
  8682. * src/Time.cc
  8683. (operator=): Removed.
  8684. * src/SocketCore.h
  8685. (operator==): Defined here.
  8686. (operator!=): Defined here.
  8687. (operator<): Defined here.
  8688. * src/SocketCore.cc
  8689. (operator==): Removed.
  8690. (operator<): Removed.
  8691. * src/BitfieldMan.h
  8692. (operator=): Defined the function body here.
  8693. * src/BitfieldMan.cc
  8694. (operator=): Removed.
  8695. * src/TorrentMan.h
  8696. (deleteErrorPeer): Removed.
  8697. (deleteUnusedPeer); New function.
  8698. * src/TorrentMan.cc
  8699. (addPeer): Call deleteUnusedPeer.
  8700. (deleteErrorPeer): Removed.
  8701. (deleteUnusedPeer): New function.
  8702. * src/PeerAbstractCommand.h
  8703. (setNoCheck): New function.
  8704. (noCheck): New variable.
  8705. * src/PeerAbstractCommand.cc
  8706. (PeerAbstractCommand): Added the initialization of noCheck.
  8707. (execute): Added a check for noCheck.
  8708. (setNoCheck): New function.
  8709. * src/Util.h
  8710. (stdio.h): Included.
  8711. * src/Util.cc
  8712. (unistd.h): Included.
  8713. * src/DefaultDiskWriter.cc
  8714. (unistd.h): Included.
  8715. * src/Peer.h
  8716. (operator==): Defined the function body here.
  8717. (operator!=): Defined the function body here.
  8718. * src/Peer.cc
  8719. (operator==): Removed.
  8720. (operator!=): Removed.
  8721. * src/Piece.h
  8722. (Piece): Defined the function body here(copy constructor).
  8723. (operator=): Defined the function body here.
  8724. (operator==): Defined the function body here.
  8725. * src/Piece.cc
  8726. (Piece): Removed(copy constructor).
  8727. (operator=): Removed.
  8728. (operator==): Removed.
  8729. * src/PeerMessageUtil.h
  8730. (ChokeMessage.h): Removed.
  8731. (UnchokeMessage.h): Removed.
  8732. (InterestedMessage.h): Removed.
  8733. (NotInterestedMessage.h): Removed.
  8734. (HaveMessage.h): Removed.
  8735. (BitfieldMessage.h): Removed.
  8736. (RequestMessage.h): Removed.
  8737. (CancelMessage.h): Removed.
  8738. (PieceMessage.h): Removed.
  8739. (HandshakeMessage.h): Removed.
  8740. (KeepAliveMessage.h): Removed.
  8741. (PortMessage.h): Removed.
  8742. (HaveAllMessage.h): Removed.
  8743. (HaveNoneMessage.h): Removed.
  8744. (PeerConnection.h): Removed.
  8745. (HandshakeMessage.h): Included.
  8746. * src/BitfieldMessage.h
  8747. (init): New function.
  8748. (BitfieldMessage): Rewritten.
  8749. (BitfieldMessage): New function(overload).
  8750. * src/RequestSlot.h
  8751. (operator=): Defined the function body here.
  8752. (operator==): Defined the function body here.
  8753. * src/RequestSlot.cc
  8754. (operator=): Removed.
  8755. (operator==): Removed.
  8756. To remove the dependency on the PeerMessage subclass from
  8757. PeerInteraction:
  8758. * src/PeerMessageFactory.h: New class.
  8759. * src/PeerMessageFactory.cc: New class.
  8760. * src/SimplePeerMessage.cc
  8761. (send): If invalidate is true then do nothing.
  8762. * src/PeerInteractionCommand.cc
  8763. (HandshakeMessage.h): Included.
  8764. (KeepAliveMessage.h): Included.
  8765. (ChokeMessage.h): Included.
  8766. (UnchokeMessage.h): Included.
  8767. (HaveMessage.h): Included.
  8768. (executeInternal): Call setNoCheck().
  8769. Removed setWriteCheckSocket(socket).
  8770. * src/PeerInteraction.h
  8771. (ChokeMessage.h): Removed.
  8772. (UnchokeMessage.h): Removed.
  8773. (InterestedMessage.h): Removed.
  8774. (NotInterestedMessage.h): Removed.
  8775. (HaveMessage.h): Removed.
  8776. (BitfieldMessage.h): Removed.
  8777. (RequestMessage.h): Removed.
  8778. (CancelMessage.h): Removed.
  8779. (PieceMessage.h): Removed.
  8780. (HandshakeMessage.h): Removed.
  8781. (KeepAliveMessage.h): Removed.
  8782. (PortMessage.h): Removed.
  8783. (HaveAllMessage.h): Removed.
  8784. (HaveNoneMessage.h): Removed.
  8785. (RejectMessage.h): Removed.
  8786. (AllowedFastMessage.h): Removed.
  8787. (SuggestPieceMessage.h): Removed.
  8788. (PeerMessageFactory.h): Included.
  8789. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8790. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8791. (PeerMessageFactory): New variable.
  8792. (createPeerMessage): Removed.
  8793. (createHandshakeMessage): Removed.
  8794. (setPeerMessageCommonProperty): Removed.
  8795. (addRequestSlot): New function.
  8796. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8797. (getPeerMessageFactory): New function.
  8798. (createRequestMessage): Removed.
  8799. (createCancelMessage): Removed.
  8800. (createPieceMessage): Removed.
  8801. (createHaveMessage): Removed.
  8802. (createChokeMessage): Removed.
  8803. (createUnchokeMessage): Removed.
  8804. (createInterestedMessage): Removed.
  8805. (createNotInterestedMessage): Removed.
  8806. (createBitfieldMessage): Removed.
  8807. (createKeepAliveMessage): Removed.
  8808. (createHaveAllMessage): Removed.
  8809. (createHaveNoneMessage): Removed.
  8810. (createRejectMessage): Removed.
  8811. (createAllowedFastMessage): Removed.
  8812. * src/PeerInteraction.cc
  8813. (PeerInteraction): Allocate PeerMessageFactory here.
  8814. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8815. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8816. PieceMessage::ID.
  8817. (addMessage): Simplified by using PeerMessage::onPush().
  8818. (addRequestSlot): New function.
  8819. (rejectAllPieceMessageInQueue): Simplified by using
  8820. PeerMessage::onChoked().
  8821. (rejectPieceMessageInQueue): Simplified by using
  8822. PeerMessage::onCanceled().
  8823. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8824. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8825. (createHandshakeMessage): Removed.
  8826. (createPeerMessage): Removed.
  8827. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8828. (setPeerMessageCommonProperty): Removed.
  8829. (createRequestMessage): Removed.
  8830. (createCancelMessage): Removed.
  8831. (createPieceMessage): Removed.
  8832. (createHaveMessage): Removed.
  8833. (createChokeMessage): Removed.
  8834. (createUnchokeMessage): Removed.
  8835. (createInterestedMessage): Removed.
  8836. (createNotInterestedMessage): Removed.
  8837. (createBitfieldMessage): Removed.
  8838. (createKeepAliveMessage): Removed.
  8839. (createHaveAllMessage): Removed.
  8840. (createHaveNoneMessage): Removed.
  8841. (createRejectMessage): Removed.
  8842. (createAllowedFastMessage): Removed.
  8843. * src/PieceMessage.h
  8844. (createRejectMessage): New function.
  8845. (PieceMessage): Rewritten.
  8846. (onChoked): New function.
  8847. (onCanceled): New function.
  8848. * src/PieceMessage.cc
  8849. (send): If invalidate is true then do nothing, just return.
  8850. (createRejectMessage): New function.
  8851. (onChoked): New function.
  8852. (onCanceled): New function.
  8853. * src/RequestMessage.h
  8854. (RequestMessage): Rewritten.
  8855. (onPush): New function.
  8856. (onAbortPiece): New function.
  8857. * src/RequestMessage.cc
  8858. (onPush): New function.
  8859. (onAbortPiece): New function.
  8860. Update fd_set when a socket is added or deleted in order to improve
  8861. performance:
  8862. * src/DownloadEngine.h
  8863. (rfdset): New variable.
  8864. (wfdset): New variable.
  8865. (updateFdSet): New function.
  8866. * src/DownloadEngine.cc
  8867. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8868. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8869. (waitData): Copy rfdset and wfdset.
  8870. (updateFdSet): New function.
  8871. (addSocket): Call updateFdSet.
  8872. (deleteSocket): Call updateFdSet.
  8873. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. To add the support for Metalink3.0 backward compatible links:
  8875. * src/Request.h
  8876. (SAFE_CHARS): Added '#'.
  8877. (METALINK_MARK): New definition.
  8878. * src/Request.cc
  8879. (parseUrl): Added the support for Metalink3.0 backward compatible
  8880. links.
  8881. etc
  8882. * src/PeerInteraction.cc
  8883. (MsgPushBack): Removed.
  8884. (sendMessages): Use STL copy and back_inserter.
  8885. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8886. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8887. * src/TorrentMan.h
  8888. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8889. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. * src/SharedHandle.h: New class.
  8891. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8892. * src/HttpResponseCommand.h
  8893. (HttpResponseCommand): Wrapped Socket.
  8894. * src/SocketCore.h
  8895. (operator==): New function.
  8896. (operator!=): New function.
  8897. (operator<): New function.
  8898. (getSockfd): New function.
  8899. (isOpen): New function.
  8900. (writeData): New function.
  8901. * src/SocketCore.cc
  8902. (operator==): New function.
  8903. (operator!=): New function.
  8904. (operator<): New function.
  8905. * src/AbstractCommand.h
  8906. (socket): Changed its type to SocketHandle.
  8907. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8908. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8909. (disableReadCheckSocket): New function.
  8910. (disableWriteCheckSocket): New function.
  8911. (readCheckTarget): Changed its type to SocketHandle.
  8912. (writeCheckTarget): Changed its type to SocketHandle.
  8913. (AbstractCommand): Replaced Socket with SocketHandle.
  8914. * src/AbstractCommand.cc
  8915. (AbstractCommand): Replaced Socket with SocketHandle.
  8916. (~AbstractCommand): Removed the deallocation for Socket object.
  8917. (disableReadCheckSocket): New function.
  8918. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8919. (disableWriteCheckSocket): New function.
  8920. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8921. * src/HttpDownloadCommand.cc
  8922. (DownloadCommand): Replaced Socket with SocketHandle.
  8923. * src/PeerAbstractCommand.h
  8924. (socket): Changed its type to SocketHandle.
  8925. (peer): Changed its type to PeerHandle.
  8926. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8927. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8928. (disableReadCheckSocket): New function.
  8929. (disableWriteCheckSocket): New function.
  8930. (readCheckTarget): Changed its type to SocketHandle.
  8931. (writeCheckTarget): Changed its type to SocketHandle.
  8932. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8933. Replaced Peer with PeerHandle.
  8934. * src/HttpRequestCommand.cc
  8935. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8936. Use disableReadCheckSocket.
  8937. * src/PeerInitiateConnectionCommand.h
  8938. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8939. * src/PeerChokeCommand.cc
  8940. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  8941. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  8942. (execute): Use PeerHandle.
  8943. * src/PeerConnection.h
  8944. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  8945. (socket): Changed its type to SocketHandle.
  8946. (PeerConnection): Replaced Socket with SocketHandle.
  8947. * src/PeerConnection.cc
  8948. (PeerConnection): Replaced Socket with SocketHandle.
  8949. * src/PeerInteractionCommand.h
  8950. (PeerInteractionCommand): Replaced socket with SocketHandle.
  8951. Replaced Peer with PeerHandle.
  8952. * src/PeerInteractionCommand.cc
  8953. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  8954. Replaced Peer with PeerHandle.
  8955. (executeInternal): Use disableWriteCheckSocket.
  8956. Use HandshakeMessageHandle.
  8957. (receiveMessages): Use PeerMessageHandle.
  8958. (prepareForNextPeer): Use PeerHandle.
  8959. * src/HttpProxyRequestCommand.h
  8960. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8961. * src/HttpResponseCommand.cc
  8962. (HttpResponseCommand): Replaced Socket with SocketHandle.
  8963. * src/TorrentMan.cc
  8964. (nullPeer): Added external reference.
  8965. (~TorrentMan): Removed the deallocation of the elements of peers.
  8966. (addPeer): Rewritten.
  8967. (isPeerAvailable): Use nullPeer.
  8968. (deleteOldpeers): Replaced with deleteErrorPeer.
  8969. (deleteErrorPeer): New function.
  8970. (getPeer): Use PeerHandle and nullPeer.
  8971. (hasMissingPiece): Replaced Peer with PeerHandle.
  8972. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8973. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8974. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8975. (getMissingPiece): Replaced Peer with PeerHandle.
  8976. * src/FtpNegotiateCommand.cc
  8977. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  8978. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  8979. (recvGreeting): Use disableWriteCheckSocket.
  8980. (recvPasv): Removed the allocation of Socket.
  8981. Use disableReadCheckSocket.
  8982. (sendRestPasv): Use disableWriteCheckSocket.
  8983. (recvRetr): Changed assertion.
  8984. * src/PeerInteraction.h
  8985. (SharedHandle.h): Included SharedHandle.h.
  8986. (PeerMessageHandle): New type definition.
  8987. (HandshakeMessageHandle): New type definition.
  8988. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  8989. (peer): Changed its type to PeerHandle.
  8990. (createHandshakeMessage): Replaced HandshakeMessage with
  8991. HandshakeMessageHandle.
  8992. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  8993. (PeerInteraction): Replaced Peer with PeerHandle.
  8994. Replaced Socket with SocketHandle.
  8995. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8996. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8997. (receiveHandshake): Replaced HandshakeMessage with
  8998. HandshakeMessageHandle.
  8999. * src/PeerInteraction.cc
  9000. (PeerInteraction): Replaced Peer with PeerHandle.
  9001. Replaced Socket with SocketHandle.
  9002. (~PeerInteraction): Removed the deallocation of the elements of
  9003. messageQueue.
  9004. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  9005. (isSendingMessageInProgress): Replaced PeerMessage with
  9006. PeerMessageHandle.
  9007. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  9008. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9009. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  9010. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  9011. (abortPiece): Use PeerMessageHandle.
  9012. (receiveHandshake): Replaced HandshakeMessage with
  9013. HandshakeMessageHandle. Removed try-catch block.
  9014. (createHandshakeMessage): Replaced HandshakeMessage with
  9015. HandshakeMessageHandle.
  9016. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9017. Removed try-catch block.
  9018. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  9019. * src/HttpProxyResponseCommand.cc
  9020. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9021. * src/FtpTunnelResponseCommand.h
  9022. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9023. * src/HttpConnection.cc
  9024. (HttpConnection): Replaced Socket with SocketHandle.
  9025. * src/PeerAbstractCommand.cc
  9026. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9027. (~PeerAbstractCommand): Removed the deallocation of socket.
  9028. Use disableReadCheckSocket, disableWriteCheckSocket.
  9029. (disableReadCheckSocket): New function.
  9030. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9031. (disableWriteCheckSocket): New function.
  9032. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9033. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  9034. * src/FtpTunnelRequestCommand.cc
  9035. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9036. (~FtpTunnelRequestCommand): Corrected indentation.
  9037. * src/DownloadCommand.h
  9038. (DownloadCommand): Replaced Socket with SocketHandle.
  9039. * src/PeerListenCommand.cc
  9040. (PeerListenCommand): Removed the initialization of socket.
  9041. (~PeerListenCommand): Removed the deallocation of socket.
  9042. (bindPort): Use SocketHandle.
  9043. (execute): Use SocketHandle and PeerHandle.
  9044. * src/FtpDowndloadCommand.cc
  9045. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9046. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9047. * src/main.cc
  9048. (main): Corrected indentation.
  9049. * src/HttpInitiateConnectionCommand.cc
  9050. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9051. (executeInternal): Removed the allocation of socket.
  9052. * src/HttpRequestCommand.h
  9053. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9054. * src/FtpNegotiationCommand.h
  9055. (dataSocket): Changed its type to SocketHandle.
  9056. (serverSocket): Changed its type to SocketHandle.
  9057. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9058. * src/TorrentMan.h
  9059. (MAX_PEER_UPDATE): Removed.
  9060. (MAX_PEERS): New definition.
  9061. (Peers): The element is now of type PeerHandle.
  9062. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9063. (getPeer): Replaced Peer with PeerHandle.
  9064. (deleteOldErrorPeers): Removed.
  9065. (deleteErrorPeer): New function.
  9066. (hasMissingPiece): Replaced Peer with PeerHandle.
  9067. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9068. (getMissingPiece): Replaced Peer with PeerHandle.
  9069. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9070. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9071. (addActivePeer): Replaced Peer with PeerHandle.
  9072. (deleteActivePeer): Replaced Peer with PeerHandle.
  9073. Added a check for the return value of find.
  9074. * src/FtpTunnelResponseCommand.cc
  9075. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9076. * src/FtpInitiateConnectionCommand.cc
  9077. (executeInternal): Removed the allocation of socket.
  9078. * src/DownloadEngine.h
  9079. (Sockets): An element is now of type SocketHandle.
  9080. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9081. (CommandUuids): New type definition.
  9082. (rsockets): Changed its type to SockCmdMap.
  9083. (wsockets): Changed its type to SockCmdMap.
  9084. (addSocket): Rewritten.
  9085. (deleteSocket): Rewritten.
  9086. (addSocketForReadCheck): Rewritten.
  9087. (deleteSocketForReadCheck): Rewritten.
  9088. (addSocketForWriteCheck): Rewritten.
  9089. (deleteSocketForWriteCheck): Rewritten.
  9090. (PairFind): New template class.
  9091. * src/HttpDownloadCommand.h
  9092. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9093. * src/FtpConnection.cc
  9094. (FtpConnection): Replaced Socket with SocketHandle.
  9095. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9096. block.
  9097. * src/InitiateConnectionCommandFactory.cc
  9098. (DlAbortEx.h): Included DlAbortEx.h.
  9099. (createInitiateConnectionCommand): Throw exception if the protocol of
  9100. requested URI is not supported.
  9101. * src/Peer.cc
  9102. (nullPeer): Changed its type to PeerHandle.
  9103. (operator==): New function.
  9104. (operator!=): New function.
  9105. * src/Peer.h
  9106. (SharedHandle.h): Included SharedHandle.h.
  9107. (operator==): New function.
  9108. (operator!=): New function.
  9109. (Peer): Added the default constructor.
  9110. Use resetStatus() to initialize member variables.
  9111. (nullPeer): Removed.
  9112. * src/TrackerUpdateCommand.cc
  9113. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9114. with MIN_PEERS.
  9115. * src/PeerListenCommand.h
  9116. (socket): Changed its type to SocketHandle.
  9117. * src/Command.h
  9118. (CommandUuid): New type definition.
  9119. (uuid): New variable.
  9120. (uuidGen): New variable.
  9121. (Command): Added the initialization of uuid.
  9122. (getUuid): New function.
  9123. * src/Socket.h
  9124. (Socket): Removed.
  9125. (SocketHandle): New type definition.
  9126. * src/DownloadEngine.h
  9127. (FindCommand): New function object.
  9128. (run): The portion of socket check was rewritten.
  9129. (SetDescriptor): New function object.
  9130. (AccumulateActiveCommandUuid): New function object.
  9131. (waitData): Rewritten.
  9132. (addSocket): Rewritten.
  9133. (deleteSocket): Rewritten.
  9134. (addSocketForReadCheck): Rewritten.
  9135. (addSocketForWriteCheck): Rewritten.
  9136. (deleteSocketForReadCheck): Rewritten.
  9137. (deleteSocketForWriteCheck): Rewritten.
  9138. * src/HttpProxyResponseCommand.h
  9139. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  9140. * src/HttpConnection.h
  9141. (socket): Changed its type to SocketHandle.
  9142. (HttpConnection): Replaced Socket with SocketHandle.
  9143. * src/PeerInitiateConnectionCommand.cc
  9144. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9145. (executeInternal): Removed the allocation of socket.
  9146. (prepareForNextPeer): Use PeerHandle.
  9147. * src/PeerMessage.h
  9148. (peer): Changed its type to PeerHandle.
  9149. (getPeer): Replaced Peer with PeerHandle.
  9150. (setPeer): Replaced Peer with PeerHandle.
  9151. * src/DownloadCommand.cc
  9152. (DownloadCommand): Replaced Socket with SocketHandle.
  9153. * src/FtpConnection.h
  9154. (socket): Changed its type to SocketHandle.
  9155. (FtpConnection): Replaced Socket with SocketHandle.
  9156. (sendPort); Replaced Socket with SocketHandle.
  9157. * src/FtpDowndloadCommand.h
  9158. (ctrlSocket): Changed its type to SocketHandle.
  9159. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9160. * src/HttpProxyRequestCommand.cc
  9161. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9162. * src/FtpTunnelRequestCommand.h
  9163. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9164. etc
  9165. * src/PeerChokeCommand.h
  9166. (setAllPeerChoked): Removed.
  9167. (setAllPeerResetDelta): Removed.
  9168. * src/PeerChokeCommand.cc
  9169. (setAllPeerChoked): Removed.
  9170. (ChokePeer): New function object.
  9171. (setAllPeerResetDelta): Removed.
  9172. (ResetDelta): New function object.
  9173. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  9174. (execute): Show download speed when the local node is a seeder.
  9175. setAllPeerChoked and setAllPeerResetDelta were rewritten
  9176. using STL.
  9177. * src/TrackerWatcherCommand.h
  9178. (MIN_PEERS): Removed.
  9179. * src/TorrentMan.cc
  9180. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  9181. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. To fix the bug that .aria2 file is not saved if downloading is stopped
  9183. by the errors:it results that aria2 can not resume downloading:
  9184. * src/main.cc
  9185. (normalDownload): Added the call to save().
  9186. (main): Added the deletion of the elements in 'reserved'.
  9187. To fix log:
  9188. * src/PeerInteraction.cc
  9189. (receiveHandshake): Fixed log.
  9190. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. To improve download performance in BitTorrent:
  9192. * src/TorrentMan.cc
  9193. (getPeer): Check the number of connections. Return nullPeer if
  9194. it is greater than MAX_PEER_UPDATE.
  9195. This code was originally here, but was removed in 0.5.1.
  9196. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. To improve the conditional compilation:
  9198. * src/MultiDiskWriter.h:
  9199. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9200. * src/MultiDiskWriter.cc:
  9201. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9202. * src/Util.h:
  9203. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9204. Added ENABLE_BITTORRENT around computeFastSet().
  9205. * src/Util.cc:
  9206. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9207. Added ENABLE_BITTORRENT around computeFastSet().
  9208. * src/messageDigest.h:
  9209. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  9210. * src/ShaVisitor.h:
  9211. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9212. * src/ShaVisitor.cc:
  9213. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9214. * src/main.cc:
  9215. Added ENABLE_BITTORRENT around includes and blocks related to
  9216. BitTorrent.
  9217. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  9218. digest support is not available.
  9219. * src/AbstractDiskWriter.h:
  9220. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9221. * src/AbstractDiskWriter.cc:
  9222. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9223. * src/MetalinkEntry.cc
  9224. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  9225. support is not available.
  9226. To add command-line options for Metalink:
  9227. * src/main.cc:
  9228. Added metalink-version, metalink-language, metalink-os,
  9229. follow-metalink.
  9230. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  9231. * src/main.cc: Use these definition.
  9232. * Release 0.6.0
  9233. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9234. To add Metalink support(http/ftp only):
  9235. * src/AbstractCommand.h
  9236. (tryReserved): New function.
  9237. * src/AbstractCommand.cc
  9238. (execute): Call tryReserved().
  9239. (tryReserved): New function.
  9240. * src/Request.h
  9241. (Requests): New type definition.
  9242. * src/SegmentMan.h
  9243. (reserved): New variable.
  9244. * src/Util.h
  9245. (fileChecksum): New function.
  9246. (toUpper): New function.
  9247. (toLower): New function.
  9248. * src/Util.cc
  9249. (messageDigest.h): Included.
  9250. (trim): Trim \r\n\t.
  9251. (fileChecksum): New function.
  9252. (toUpper): New function.
  9253. (toLower): New function.
  9254. * src/main.cc
  9255. (normalDownload): New function.
  9256. (main): Added 2 command-line options: metalink-file,
  9257. metalink-connection. Their usage has not been written yet.
  9258. * src/MetalinkProcessor.h: New class.
  9259. * src/Xml2MetalinkProcessor.h: New class.
  9260. * src/Xml2MetalinkProcessor.cc: New class.
  9261. * src/MetalinkEntry.h: New class.
  9262. * src/MetalinkEntry.cc: New class.
  9263. * src/MetalinkResource.h: New class.
  9264. * src/MetalinkResource.cc: New class.
  9265. To add md5 message digest checking:
  9266. * src/messageDigest.h: Rewritten.
  9267. * src/MultiDiskWriter.cc: Updated according to the changes in
  9268. messageDigest.h.
  9269. * src/ShaVisitor.cc: Updated according to the changes in
  9270. messageDigest.h.
  9271. * src/Util.cc: Updated according to the changes in messageDigest.h.
  9272. * src/AbstractDiskWriter.cc: Updated according to the changes in
  9273. messageDigest.h.
  9274. To fix a bug that causes segfault when the payload length in peer
  9275. message is less than 0:
  9276. * src/PeerConnection.cc:
  9277. (receiveMessage): Fixed the bug.
  9278. * src/PeerMessageUtil.cc
  9279. (checkLength): Throw an exception if length is less than or equals to
  9280. 0.
  9281. To add new interfaces to Base64 encoding/decoding:
  9282. * src/Base64.h
  9283. (part_encode): Changed the method signature.
  9284. (encode): New function(overload).
  9285. (decode): New function(overload).
  9286. * src/Base64.cc
  9287. (part_encode): Rewritten.
  9288. (encode): Rewritten.
  9289. (encode): New function(overload).
  9290. To prevent a peer to download same piece if there is an error in
  9291. checksum:
  9292. * src/PieceMessage.cc
  9293. (receivedAction): Call peerInteraction->abortPiece().
  9294. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. To fix the bug that causes same have message is sent many times to
  9296. a single peer.
  9297. * src/Time.cc
  9298. (isNewer): Use Util::difftv().
  9299. * src/Util.cc
  9300. (difftv): Added a cast to (long long int).
  9301. * src/TorrentMan.cc
  9302. (advertisePiece): Use push_front.
  9303. (getAdvertisedPieceIndexes): A performance improvement was made.
  9304. To fix the bug that sends tracker requests without a sleep interval
  9305. when the number of connections is less than 15.
  9306. * src/TrackerWatcherCommand.cc
  9307. (execute): Now the number of connections is not a factor to decide
  9308. whether or not a tracker request should be sent or not.
  9309. * src/Time.h
  9310. (setTimeInSec): New function.
  9311. * src/Time.cc
  9312. (setTimeInSec): New function.
  9313. etc.
  9314. * src/ChokeMessage.cc
  9315. (receivedAction): Removed peer->snubbing = false
  9316. * src/PeerConnection.h
  9317. (receiveHandshake): Updated doc.
  9318. * src/TorrentMan.h
  9319. (getAdvertisedPieceIndexes): Updated the method signature.
  9320. * src/TorrentMan.cc
  9321. (getAdvertisedPieceIndexes): Updated the method signature.
  9322. * src/Time.h
  9323. (getTimeInMicros): Added a cast to (long long int).
  9324. (getTimeInMillis): Added a cast to (long long int).
  9325. * Release 0.5.2
  9326. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. To make a listening socket non-block:
  9328. * src/SocketCore.h
  9329. (setNonBlockingMode): New function.
  9330. * src/SocketCore.cc
  9331. (setNonBlockingMode): New function.
  9332. (beginListen): Added a call to setNonBlockingMode().
  9333. (acceptConnection): Call setNonBlockingMode().
  9334. (setBlockingMode): Updated.
  9335. To handle tracker's NAT-checking:
  9336. * src/PeerConnection.cc
  9337. (receiveHandshake): 'msg' param is filled with received data and
  9338. its length is assigned to 'length' param, even if all handshake
  9339. message is not yet received.
  9340. * src/PeerInteractionCommand.cc
  9341. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9342. a new peer connects to localhost.
  9343. A call to peerInteraction->sendHandshake() was removed because
  9344. it is called from peerInteraction->receiveHandshake(true).
  9345. * src/PeerInteraction.h
  9346. (quickReplied): New variable.
  9347. (receiveHandshake): Added an argument.
  9348. * src/PeerInteraction.cc
  9349. (PeerInteraction): Added the initialization of quickReplied.
  9350. (receiveHandshake): Send handshake message as soon as the info hash
  9351. in a handshake message from a peer is correct.
  9352. To change the random part of peer id and key parameter:
  9353. * src/TorrentMan.h
  9354. (key): New variable.
  9355. * src/TorrentMan.cc
  9356. (setupInternal1): Use Util::randomAlpha() to generate random part
  9357. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9358. key is also generated by Util::randomAlpha() and it is now 8 character
  9359. long.
  9360. * src/Util.h
  9361. (randomAlpha): New function.
  9362. * src/Util.cc
  9363. (randomAlpha): New function.
  9364. * src/TrackerWatcherCommand.cc
  9365. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9366. Added no_peer_id=1.
  9367. Set snubbing flag to false when a choke message is received from a
  9368. snubbed peer.
  9369. * src/ChokeMessage.cc
  9370. (receivedAction): Set snubbing flag to false.
  9371. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9373. * src/SimpleLogger.h (writeHeader): New function.
  9374. * src/SimpleLogger.cc (writeHeader): New function.
  9375. (writeLog): Fixed the bug that causes segfaults if exception message
  9376. contains an unescaped "%" character.
  9377. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9378. when a tracker request fails.
  9379. * src/Request.cc (parseUrl): Query string is now handled properly.
  9380. * Release 0.5.1
  9381. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. To add Time class which represents a specific instant in time and
  9383. its precision is microseconds. Time checking procedures were rewritten
  9384. using this object.
  9385. * src/Time.h: New class.
  9386. * src/Time.cc: New class.
  9387. * src/AbstractCommand.h
  9388. (updateCheckPoint): Removed.
  9389. (isTimeoutDetected): Removed.
  9390. (checkPoint): Changed the type to Time.
  9391. (timeout): New variable.
  9392. (setTimeout): New function.
  9393. * src/AbstractCommand.cc
  9394. (AbstractCommand): Removed the initialization of checkPoint.
  9395. Added the initialization of timeout.
  9396. (updateCheckPoint): Removed.
  9397. (isTimeoutDetected): Removed.
  9398. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9399. * src/PeerChokeCommand.h
  9400. (checkPoint): Changed the type to Time.
  9401. * src/PeerChokeCommand.cc
  9402. (PeerChokeCommand): Removed the initialization of checkPoint.
  9403. (execute): Rewritten using Time object.
  9404. * src/TrackerWatcherCommand.h
  9405. (checkPoint): Changed the type to Time.
  9406. * src/TrackerWatcherCommand.cc
  9407. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9408. (execute): Rewritten.
  9409. * src/ConsoleDownloadEngine.h
  9410. (cp): Changed the type to Time.
  9411. (startup): Changed the type to Time.
  9412. * src/ConsoleDownloadEngine.cc
  9413. (initStatistics): Use cp.reset(), startup.reset().
  9414. (calculateStatistics): Rewritten using Time object.
  9415. * src/PeerAbstractCommand.h
  9416. (updateCheckPoint): Removed.
  9417. (isTimeoutDetected): Removed.
  9418. (checkPoint): Changed the type to Time.
  9419. * src/PeerAbstractCommand.cc
  9420. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9421. (updateCheckPoint): Removed.
  9422. (isTimeoutDetected): Removed.
  9423. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9424. * src/PeerInteractionCommand.cc
  9425. (PeerInteractionCommand): Removed the initializations of struct
  9426. timeval variables.
  9427. * src/PeerInteractionCommand.h
  9428. (keepAliveCheckPoint): Changed the type to Time.
  9429. (chokeCheckPoint): Changed the type to Time.
  9430. (freqCheckPoint): Changed the type to Time.
  9431. (haveCheckTime): Changed the type to Time.
  9432. * src/PeerInteractionCommand.cc
  9433. (executeInternal): Rewritten using Time object.
  9434. (detectMessageFlooding): Rewritten using Time object.
  9435. (checkLongTimePeerChoking): Rewritten using Time object.
  9436. (sendKeepAlive): Rewritten using Time object.
  9437. (checkHave): Rewritten using Time object.
  9438. * src/SleepCommand.h
  9439. (checkPoint): Changed the type to Time.
  9440. * src/SleepCommand.cc
  9441. (SleepCommand): Removed the initialization of checkPoint.
  9442. (execute): Rewritten using Time object.
  9443. * src/TorrentAutoSaveCommand.h
  9444. (checkPoint): Changed the type to Time.
  9445. * src/TorrentAutoSaveCommand.cc
  9446. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9447. (execute): Rewritten.
  9448. * src/DownloadCommand.h
  9449. (sw): Changed the type to Time.
  9450. * src/DownloadCommand.cc
  9451. (DownloadCommand): Removed the initialization of sw.
  9452. (executeInternal): Rewritten.
  9453. * src/RequestSlot.h
  9454. (dispatchedTime): Changed the type to Time.
  9455. * src/RequestSlot.cc
  9456. (RequestSlot): Removed the call to setDispatchedTime().
  9457. (setDispatchedTime): Rewirtten.
  9458. (isTimeout): Rewritten.
  9459. (getLatencyInMillis): Rewritten.
  9460. * src/TorrentDownloadEngine.h
  9461. (cp): Changed the type to Time[2].
  9462. (startup): Changed the type to Time.
  9463. * src/TorrentDownloadEngine.cc
  9464. (initStatistics): Rewritten.
  9465. (calculateStatistics): Rewritten.
  9466. * src/DownloadEngine.cc
  9467. (run): Rewritten.
  9468. To detect all attempts to connect to the tracker are failed:
  9469. * src/AbstractCommand.cc
  9470. (execute): Increment e->segmentMan->errors if a command aborted.
  9471. * src/SegmentMan.h
  9472. (errors): New variable.
  9473. * src/SegmentMan.cc
  9474. (SegmentMan): Added the initialization of errors.
  9475. (init): Added the initialization of errors.
  9476. * src/TrackerWatcherCommand.cc
  9477. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9478. request was failed.
  9479. To handle snubbed peers:
  9480. * src/PeerChokeCommand.cc
  9481. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9482. (execute): Snubbed peers don't get unchoked.
  9483. * src/PeerInteraction.h
  9484. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9485. * src/PeerInteraction.cc
  9486. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9487. back the requested 16k block in 60 seconds.
  9488. * src/PieceMessage.cc
  9489. (receivedAction): A peer's snubbed state is cleard if it sends
  9490. the requested 16k block in 60 seconds.
  9491. * src/Peer.h
  9492. (snubbing): New variable.
  9493. * src/Peer.cc
  9494. (resetStatus): Added snubbed = false.
  9495. To fix the bug that causes have message is not sent:
  9496. * src/PeerInteractionCommand.cc
  9497. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9498. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9499. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9500. * src/TorrentMan.h
  9501. (HaveEntry): New class.
  9502. (advertisePiece): Rewritten.
  9503. (getAdvertisedPieceIndexes): Rewritten.
  9504. (Haves): Changed the type.
  9505. (getAdvertisedPieceIndexes): Added an argument.
  9506. Others:
  9507. * src/TorrentMan.h
  9508. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9509. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9510. * src/TorrentMan.cc
  9511. (getPeer): Don't check the number of connections here.
  9512. (setupInternal1): Changed peerId.
  9513. * src/PeerInteractionCommand.h
  9514. (KEEP_ALIVE_INTERVAL): New definition.
  9515. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9516. * src/main.cc
  9517. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9518. * src/DownloadEngine.h: Removed unnecessary header includes.
  9519. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. To fix the bug that causes segfaults if a tracker returns a zero-length
  9521. list as "peers":
  9522. * src/TrackerUpdateCommand.cc
  9523. (execute): Added a check to see wether the type of peers is Data*.
  9524. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. * Release 0.5.0
  9526. To fix compile issue with gcc3:
  9527. * src/CancelMessage.h
  9528. (ID): Renamed as ID_t
  9529. (ID_t): New enum.
  9530. * src/RejectMessage.h
  9531. (ID): Renamed as ID_t
  9532. (ID_t): New enum.
  9533. * src/SuggestPieceMessage.h
  9534. (ID): Renamed as ID_t
  9535. (ID_t): New enum.
  9536. * src/AllowedFastMessage.h
  9537. (ID): Renamed as ID_t
  9538. (ID_t): New enum.
  9539. * src/PortMessage.h
  9540. (ID): Renamed as ID_t
  9541. (ID_t): New enum.
  9542. * src/HaveNoneMessage.h
  9543. (ID): Renamed as ID_t
  9544. (ID_t): New enum.
  9545. * src/KeepAliveMessage.h
  9546. (ID): Renamed as ID_t
  9547. (ID_t): New enum.
  9548. * src/HaveAllMessage.h
  9549. (ID): Renamed as ID_t
  9550. (ID_t): New enum.
  9551. * src/UnchokeMessage.h
  9552. (ID): Renamed as ID_t
  9553. (ID_t): New enum.
  9554. * src/BitfieldMessage.h
  9555. (ID): Renamed as ID_t
  9556. (ID_t): New enum.
  9557. * src/PieceMessage.h
  9558. (ID): Renamed as ID_t
  9559. (ID_t): New enum.
  9560. * src/RequestMessage.h
  9561. (ID): Renamed as ID_t
  9562. (ID_t): New enum.
  9563. * src/NotInterestedMessage.h
  9564. (ID): Renamed as ID_t
  9565. (ID_t): New enum.
  9566. * src/ChokeMessage.h
  9567. (ID): Renamed as ID_t
  9568. (ID_t): New enum.
  9569. * src/InterestedMessage.h
  9570. (ID): Renamed as ID_t
  9571. (ID_t): New enum.
  9572. * src/HaveMessage.h
  9573. (ID): Renamed as ID_t
  9574. (ID_t): New enum.
  9575. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. * src/PeerAbstractCommand.h
  9577. (beforeSocketCheck): Removed.
  9578. * src/PeerAbstractCommand.cc
  9579. Modified in order to call executeInternal() even if socket check
  9580. and upload limit check fail.
  9581. * src/PeerInteractionCommand.h
  9582. (keepAlive): Removed.
  9583. (sendKeepAlive): New function.
  9584. (checkHave): New function.
  9585. (beforeSocketCheck): Removed.
  9586. * src/PeerInteractionCommand.cc
  9587. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9588. calls to checkHave() and sendKeepAlive().
  9589. (keepAlive): Renamed to sendKeepAlive().
  9590. (sendKeepAlive): New function.
  9591. (beforeSocketCheck): Removed.
  9592. (checkHave): New function.
  9593. * src/BitfieldMan.cc
  9594. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9595. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9596. 0.
  9597. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9598. * src/TorrentMan.h
  9599. (UsedPieces): Removed.
  9600. (Pieces): New type definition.
  9601. * src/Piece.h: Updated doc.
  9602. * src/Peer.h
  9603. (totalLength): Removed.
  9604. * src/Peer.cc
  9605. (updateLatency): Fixed the latency calculation.
  9606. * src/TorrentMan.cc
  9607. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9608. than or equal to MAX_PEER_LIST_SIZE.
  9609. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9610. then return false.
  9611. (deleteOldErrorPeers): Rewritten.
  9612. (deleteUsedPiece): Fixed the miss use of STL remove.
  9613. * src/PeerInteraction.h
  9614. (Pieces): Removed.
  9615. (deleteTimeoutRequestSlot): Removed.
  9616. (deleteCompletedRequestSlot): Removed.
  9617. (checkRequestSlot): New function.
  9618. * src/PeerInteraction.cc
  9619. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9620. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9621. (checkRequestSlot): New function.
  9622. * src/DownloadEngine.cc
  9623. (run): Clear activeSockets before calling waitData().
  9624. (waitData): Removed a call to activeSockets.clear().
  9625. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. To attempt to handle EINTR:
  9627. * src/SocketCore.cc
  9628. (isReadable): Added EINTR handling.
  9629. (isWritable): Added EINTR handling.
  9630. To improve the performance:
  9631. * src/AbstractCommand.cc
  9632. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9633. * src/PeerInteractionCommand.h
  9634. (receiveMessage): Renamed as receiveMessages().
  9635. (receiveMessages): New function.
  9636. * src/PeerInteractionCommand.cc
  9637. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9638. () function. detectMessageFlooding() is moved here.
  9639. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9640. (). The flooding detection for have message is comment out.
  9641. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9642. Util::difftv().
  9643. (receiveMessage): Renamed as receiveMessages().
  9644. (receiveMessages): New function.
  9645. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9646. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9647. * src/SleepCommand.cc
  9648. (execute): Use Util::difftvsec() instead of Util::difftv().
  9649. * src/BitfieldMan.h
  9650. (getNthBitIndex): New function.
  9651. (hasMissingPiece): New function.
  9652. (getAllMissingIndexes): New function.
  9653. * src/BitfieldMan.cc
  9654. (countSetBit): Rewritten.
  9655. (getNthBitIndex): New function.
  9656. (getMissingIndexRandomly): Rewritten.
  9657. (hasMissingPiece): New function.
  9658. (getAllMissingIndexes): New function.
  9659. * src/TorrentMan.cc
  9660. (hasMissingPiece): New function.
  9661. (deleteUsedPiece): Rewritten using STL.
  9662. * src/PeerInteraction.cc
  9663. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  9664. is a little bit faster then TorrentMan::getMissingPieceIndex().
  9665. (addRequests): Updated the number of pending requests.
  9666. * src/PeerAbstractCommand.cc
  9667. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9668. (execute): Returns true if TorrentMan::isHalt() is true.
  9669. Corrected the condition of upload limit checking.
  9670. * src/Util.h
  9671. (countBit): New function.
  9672. * src/Util.cc
  9673. (nbits): New variable.
  9674. (countBit): New function.
  9675. * src/DownloadEngine.h
  9676. (SockCmdMap): New type definition.
  9677. (waitData): Added an argument.
  9678. (addSocket): Added an argument.
  9679. (addSocketForReadCheck): Added an argument.
  9680. (addSocketForWriteCheck): Added an argument.
  9681. * src/DownloadEngine.cc
  9682. (run): Executes only commands whose sockets are ready to read or write.
  9683. All commands are executed in every 1 second.
  9684. (waitData): Calls select() again if it returned
  9685. EINTR.
  9686. (addSocket): Saves socket and command object pair to the map.
  9687. (deleteSocket): Deletes socket and command object pair from the map.
  9688. (addSocketForReadCheck): Added an argument.
  9689. (addSocketForWriteCheck): Added an argument.
  9690. * src/DownloadCommand.cc
  9691. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9692. To send "event=stopped" to the tracker when the application finishes:
  9693. * src/PeerChokeCommand.h
  9694. (checkPoint): New variable.
  9695. * src/PeerChokeCommand.cc
  9696. (PeerChokeCommand): Added the initialization of checkPoint.
  9697. (execute): The interval check is now done by checkPoint, not
  9698. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9699. * src/TorrentMan.h
  9700. (halt): New function.
  9701. (hasMissingPiece): New function.
  9702. (isHalt): New function.
  9703. (setHalt): New function.
  9704. * src/TorrentMan.cc
  9705. (TorrentMan): Added the initialization of halt.
  9706. * src/TorrentAutoSaveCommand.h
  9707. (checkPoint): New variable.
  9708. * src/PeerListenCommand.cc
  9709. (execute): Returns true if TorrentMan::isHalt() is true.
  9710. * src/main.cc
  9711. (setSignalHander): Added flags argument.
  9712. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9713. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9714. Removed printDownloadAbortMessage() after torrent downloading loop.
  9715. * src/TorrentAutoSaveCommand.cc
  9716. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9717. (execute): Returns true if TorrentMan::isHalt() is true.
  9718. The interval check is now done by checkPoint, not SleepCommand.
  9719. * src/TrackerWatcherCommand.cc
  9720. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9721. event=stopped.
  9722. * src/TrackerUpdateCommand.cc
  9723. (prepareForRetry): Do not use SleepCommand here.
  9724. (execute): Returns true if TorrentMan::isHalt() is true.
  9725. Others:
  9726. * src/TorrentMan.cc
  9727. (getMissingPieceIndex): Updated log message.
  9728. * src/PeerInteraction.cc
  9729. (createPeerMessag): Updated log message.
  9730. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9731. To add the ability to download several pieces in mix in a command and
  9732. increase the number of request slots according to request-cancel
  9733. latency:
  9734. * src/PeerInteractionCommand.cc
  9735. (executeInternal): The number of messages to be received at a time
  9736. is increased from 10 to 50.
  9737. * src/LogFactory
  9738. (getInstance): Added NullLogger.
  9739. * src/NullLogger.h: New class.
  9740. * src/BitfieldMan.h
  9741. (getMissingIndex): New function.
  9742. * src/BitfieldMan.cc
  9743. (getMissingIndex): New function.
  9744. * src/TorrentMan.h
  9745. (checkOutPiece): New function.
  9746. (getMissingPieceIndex): New function.
  9747. (getMissingFastPieceIndex): New function.
  9748. (getMissingFastPiece): New function.
  9749. * src/TorrentMan.cc
  9750. (updatePiece): Rewritten using STL.
  9751. (syncPiece): Rewritten using STL.
  9752. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9753. checkOutPiece().
  9754. (getMissingPieceIndex): New function.
  9755. (getMissingFastPieceIndex): New function.
  9756. (getMissingFastPiece): New function.
  9757. (checkOutPiece): New function.
  9758. * src/PeerInteraction.h
  9759. (Pieces): New type definition.
  9760. (piece): Removed.
  9761. (pieces): New variable.
  9762. (getNewPieceAndSendInterest): Added the "piece" argument.
  9763. (abortPiece): Added the "piece" argument.
  9764. (abortAllPieces): New function.
  9765. (isInRequestSlot): New function.
  9766. (hasDownloadPiece): Added the "index" argument.
  9767. (setDownloadPiece): Removed.
  9768. (getDownloadPiece): Added the "index" argument.
  9769. (updatePiece): New function.
  9770. (createRequestMessage): Added the "index" argument.
  9771. * src/PeerInteraction.cc
  9772. (onChoked): Rewritten.
  9773. (abortPiece): Rewirtten.
  9774. (abortAllPieces): New function.
  9775. (deleteTimeoutRequestSlot): Rewritten.
  9776. Clarified code a little bit.
  9777. (deleteCompletedRequestSlot): Rewritten.
  9778. (isInRequestSlot): New function.
  9779. (syncPiece): Rewritten.
  9780. (updatePiece): New function.
  9781. (getNewPieceAndSendInterest): Rewritten.
  9782. (addRequests): Rewritten.
  9783. (getDownloadPiece): Rewritten.
  9784. (hasDownloadPiece): Rewritten.
  9785. (createRequestMessage): Added the "index" argument.
  9786. * src/common.h
  9787. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9788. (DIV_FLOOR): New definition.
  9789. * src/PieceMessage.cc
  9790. (receivedAction): Update request-piece latency here.
  9791. * src/RequestSlot.h
  9792. (getLatencyInMillis): New function.
  9793. * src/RequestSlot.cc
  9794. (isTimeout): Rewritten using getLatencyInMillis.
  9795. (getLatencyInMillis): New function.
  9796. * src/Piece.h
  9797. (operator==): New function.
  9798. (getMissingBlockIndex): New function.
  9799. * src/Piece.cc
  9800. (operator==): New function.
  9801. (getMissingBlockIndex): New function.
  9802. * src/Peer.h
  9803. (DEFAULT_LATENCY): New definition.
  9804. (latency): New variable.
  9805. (updateLatency): New function.
  9806. (getLatency): New function.
  9807. * src/Peer.cc
  9808. (resetStatus): Reset latecy.
  9809. (updateLatency): New function.
  9810. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9811. * src/SocketCore.cc
  9812. (isReadable): Added secure to the condition.
  9813. * src/HttpConnection.cc
  9814. (receiveResponse): Fixed a bug that causes no response header
  9815. exception.
  9816. * src/Peer.h
  9817. (getFastSet): Fixed the return value type.
  9818. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9819. To remove a wait from download loop:
  9820. * src/DownloadEngine.cc
  9821. (run): Comment out shortSleep.
  9822. To rewrite the message handling:
  9823. * src/SimplePeerMessage.h: New class.
  9824. * src/SimplePeerMessage.cc: New class.
  9825. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9826. (msg): New variable.
  9827. (create): New function.
  9828. (send): Removed.
  9829. (getMessage): New function.
  9830. (getMessageLength): New function.
  9831. * src/CancelMessage.cc
  9832. (create): New function.
  9833. (receivedAction): Replaced deleteRequestMessageInQueue with
  9834. rejectPieceMessageInQueue.
  9835. (send): Removed.
  9836. (getMessage): New function.
  9837. (getMessageLength): New function.
  9838. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9839. (msg): New variable.
  9840. (msgLength): New variable.
  9841. (~BitfieldMessage): Deleted msg.
  9842. (send): Removed.
  9843. (getMessage): New function.
  9844. (getMessageLength): New function.
  9845. * src/BitfieldMessage.cc
  9846. (create): New function.
  9847. (send): Removed.
  9848. (getMessage): New function.
  9849. (getMessageLength): New function.
  9850. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9851. (msg): New variable.
  9852. (sendPredicate): New function.
  9853. (onSendComplete): New function.
  9854. (send): Removed.
  9855. (getMessage): New function.
  9856. (getMessageLength): New function.
  9857. (create): New function.
  9858. * src/ChokeMessage.cc
  9859. (create): New function.
  9860. (send): Removed.
  9861. (sendPredicate): New function.
  9862. (getMessage): New function.
  9863. (getMessageLength): New function.
  9864. (onSendComplete): New function.
  9865. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9866. (msg): New variable.
  9867. (send): Removed.
  9868. (getMessage): New function.
  9869. (getMessageLength): New function.
  9870. * src/KeepAliveMessage.cc
  9871. (send): Removed.
  9872. (getMessage): New function.
  9873. (getMessageLength): New function.
  9874. * src/PortMessage.h
  9875. (create): New function.
  9876. (receivedAction): Updated log message.
  9877. * src/PortMessage.cc: New file.
  9878. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9879. (msg): New variable.
  9880. (sendPredicate): New function.
  9881. (onSendComplete): New function.
  9882. (create): New function.
  9883. (send): Removed.
  9884. (getMessage): New function.
  9885. (getMessageLength): New function.
  9886. * src/UnchokeMessage.cc
  9887. (create): New function.
  9888. (send): Removed.
  9889. (sendPredicate): New function.
  9890. (getMessage): New function.
  9891. (getMessageLength): New function.
  9892. (onSendComplete): New function.
  9893. * src/PieceMessage.h
  9894. (leftPieceDataLength): Removed.
  9895. (leftDataLength): New variable.
  9896. (headerSend): New variable.
  9897. (pendingCount): New variable.
  9898. (msgHeader): New variable.
  9899. (sendPieceData): New function.
  9900. (incrementPendingCount): New function.
  9901. (isPendingCountMax): New function.
  9902. (create): New function.
  9903. (getMessageHeader): New function.
  9904. (getMessageHeaderLength): New function.
  9905. * src/PieceMessage.cc
  9906. (create): New function.
  9907. (getMessageHeader): New function.
  9908. (getMessageHeaderLength): New function.
  9909. (send): Rewritten.
  9910. (sendPieceData): New function.
  9911. * src/HaveMessage.h: Derived from SimplePeerMessage.
  9912. (msg): New variable.
  9913. (create): New function.
  9914. (getMessage): New function.
  9915. (getMessageLength): New function.
  9916. * src/HaveMessage.cc
  9917. (create): New function.
  9918. (send): Removed.
  9919. (sendPieceData): New function.
  9920. (getMessage): New function.
  9921. (getMessageLength): New function.
  9922. * src/RequestMessage.h: Derived from SimplePeerMessage.
  9923. (msg): New variable.
  9924. (create): New function.
  9925. (send): Removed.
  9926. (getMessage): New function.
  9927. (getMessageLength): New function.
  9928. * src/RequestMessage.cc
  9929. (create): New function.
  9930. (receivedAction): Added the handling of fast extension.
  9931. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  9932. (send): Removed.
  9933. (getMessage): New function.
  9934. (getMessageLength): New function.
  9935. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  9936. (msg): New variable.
  9937. (sendPredicate): New function.
  9938. (onSendComplete): New function.
  9939. (create): New function.
  9940. (getMessage): New function.
  9941. (getMessageLength): New function.
  9942. * src/InterestedMessage.cc
  9943. (create): New function.
  9944. (send): Removed.
  9945. (sendPieceData): New function.
  9946. (getMessage): New function.
  9947. (getMessageLength): New function.
  9948. (onSendComplete): New function.
  9949. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  9950. (msg): New variable.
  9951. (sendPieceData): New function.
  9952. (onSendComplete): New function.
  9953. (create): New function.
  9954. (send): Removed.
  9955. (getMessage): New function.
  9956. (getMessageLength): New function.
  9957. * src/NotInterestedMessage.cc
  9958. (create): New function.
  9959. (send): Removed.
  9960. (sendPredicate): New function.
  9961. (getMessage): New function.
  9962. (getMessageLength): New function.
  9963. (onSendComplete): New function.
  9964. * src/AllowedFastMessage.h: New class.
  9965. * src/AllowedFastMessage.cc: New class.
  9966. * src/RejectMessage.h: New class.
  9967. * src/RejectMessage.cc: New class.
  9968. * src/SuggestPieceMessage.h: New class.
  9969. * src/SuggestPieceMessage.cc: New class.
  9970. * src/HaveAllMessage.h: New class.
  9971. * src/HaveAllMessage.cc: New class.
  9972. * src/HaveNoneMessage.h: New class.
  9973. * src/HaveNoneMessage.cc: New class.
  9974. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  9975. (msg): New variable.
  9976. (reserved): New variable.
  9977. (create): New function.
  9978. (getId): New function.
  9979. (receivedAction): New function.
  9980. (getMessage): New function.
  9981. (getMessageLength): New function.
  9982. (isFastExtensionSupported): New function.
  9983. * src/HandshakeMessage.cc
  9984. (HandshakeMessage): Moved here from HandshakeMessage.h.
  9985. (create): New function.
  9986. (getMessage): New function.
  9987. (getMessageLength): New function.
  9988. (toString): Added the output of reserved field.
  9989. (check): Added const qualifier.
  9990. (isFastExtensionSupported): New function.
  9991. * src/PeerMessageUtil.h
  9992. (createChokeMessage): Removed.
  9993. (createUnchokeMessage): Removed.
  9994. (createInterestedMessage): Removed.
  9995. (createNotInterestedMessage): Removed.
  9996. (createHaveMessage): Removed.
  9997. (createBitfieldMessage): Removed.
  9998. (createRequestMessage): Removed.
  9999. (createCancelMessage): Removed.
  10000. (createPieceMessage): Removed.
  10001. (createPortMessage): Removed.
  10002. (createChokeMessage): Removed.
  10003. (createUnchokeMessage): Removed.
  10004. (createInterestedMessage): Removed.
  10005. (createNotInterestedMessage): Removed.
  10006. (createHaveMessage): Removed.
  10007. (createBitfieldMessage): Removed.
  10008. (createRequestMessage): Removed.
  10009. (createCancelMessage): Removed.
  10010. (createPieceMessage): Removed.
  10011. (createKeepAliveMessage): Removed.
  10012. (createHandshakeMessage): Removed.
  10013. (setIntParam): New function.
  10014. (createPeerMessageString): New function.
  10015. * src/PeerMessageUtil.cc
  10016. (createChokeMessage): Removed.
  10017. (createUnchokeMessage): Removed.
  10018. (createInterestedMessage): Removed.
  10019. (createNotInterestedMessage): Removed.
  10020. (createHaveMessage): Removed.
  10021. (createBitfieldMessage): Removed.
  10022. (createRequestMessage): Removed.
  10023. (createCancelMessage): Removed.
  10024. (createPieceMessage): Removed.
  10025. (createPortMessage): Removed.
  10026. (createRequestMessage): Removed.
  10027. (createCancelMessage): Removed.
  10028. (createPieceMessage): Removed.
  10029. (createHaveMessage): Removed.
  10030. (createChokeMessage): Removed.
  10031. (createUnchokeMessage): Removed.
  10032. (createInterestedMessage): Removed.
  10033. (createNotInterestedMessage): Removed.
  10034. (createBitfieldMessage): Removed.
  10035. (createKeepAliveMessage): Removed.
  10036. (createHandshakeMessage): Removed.
  10037. (setIntParam): New function.
  10038. (createPeerMessageString): New function.
  10039. * src/PeerConnection.h
  10040. (peer): Removed.
  10041. (torrentMan): Removed.
  10042. (createNLengthMessage): Removed.
  10043. (setIntParam): Removed.
  10044. (writeOutgoingMessageLog): Removed all overloaded functions.
  10045. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10046. (sendMessage): New function.
  10047. (sendHandshake): Removed.
  10048. (sendKeepAlive): Removed.
  10049. (sendChoke): Removed.
  10050. (sendUnchoke): Removed.
  10051. (sendInterested): Removed.
  10052. (sendNotInterested): Removed.
  10053. (sendHave): Removed.
  10054. (sendBitfield): Removed.
  10055. (sendRequest): Removed.
  10056. (sendPiece): Removed.
  10057. (sendPieceHeader): Removed.
  10058. (sendPieceData): Removed.
  10059. (sendCancel): Removed.
  10060. (getPeer): Removed.
  10061. * src/PeerConnection.cc
  10062. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10063. (sendHandshake): Removed.
  10064. (sendKeepAlive): Removed.
  10065. (createNLengthMessage): Removed.
  10066. (setIntParam): Removed.
  10067. (writeOutgoingMessageLog): Removed all overloaded functions.
  10068. (sendChoke): Removed.
  10069. (sendUnchoke): Removed.
  10070. (sendInterested): Removed.
  10071. (sendNotInterested): Removed.
  10072. (sendHave): Removed.
  10073. (sendBitfield): Removed.
  10074. (sendRequest): Removed.
  10075. (sendPiece): Removed.
  10076. (sendPieceHeader): Removed.
  10077. (sendPieceData): Removed.
  10078. (sendMessage): New function.
  10079. (sendCancel): Removed.
  10080. * src/PeerInteractionCommand.cc
  10081. (PeerInteractionCommand): Call setUploadLimit.
  10082. (executeInternal): Call setUploadLimit.
  10083. Added the handling of "inProgress" state of handshake message.
  10084. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10085. sendNow().
  10086. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10087. sendNow().
  10088. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10089. * src/TorrentMan.h
  10090. (PEER_ID_LENGTH): New definition.
  10091. (hasAllPieces): New function.
  10092. * src/TorrentMan.cc
  10093. (getMissingPiece): Added the handling of fast extension.
  10094. (cancelPiece): Call updatePiece().
  10095. (hasAllPieces): New function.
  10096. * src/PeerInteraction.h
  10097. (fastSet): New variable.
  10098. (getNewPieceAndSendInterest): Changed the return type to void.
  10099. (send): Renamed as sendMessages.
  10100. (deleteAllRequestSlot): Removed.
  10101. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10102. (cancelAllRequest): Removed all overloaded functions.
  10103. (deleteAllRequestSlot): Removed.
  10104. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10105. (rejectPieceMessageInQueue): New function.
  10106. (rejectAllPieceMessageInQueue): New function.
  10107. (onChoked): New function.
  10108. (isSendingMessageInProgress): New function.
  10109. (getCorrespondingRequestSlot): Changed its arguments.
  10110. (isInFastSet): New function.
  10111. (addFastSetIndex): New function.
  10112. (addRequests): New function.
  10113. (sendNow): Removed.
  10114. (trySendNow): Removed.
  10115. (sendBitfield): New function.
  10116. (sendAllowdFast): New function.
  10117. (createHaveAllMessage): New function.
  10118. (createHaveNoneMessage): New function.
  10119. (createRejectMessage): New function.
  10120. (createAllowedFastMessage): New function.
  10121. * src/PeerInteraction.cc
  10122. (send): Renamed as sendMessages.
  10123. (sendMessages): New function.
  10124. (MsgPushBack): New class.
  10125. (isSendingMessageInProgress): New function.
  10126. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10127. (rejectAllPieceMessageInQueue): New function.
  10128. Added the handling of fast extension.
  10129. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10130. (rejectPieceMessageInQueue): New function.
  10131. Added the handling of fast extension.
  10132. (deleteRequestSlot): Replaced for loop with std::find.
  10133. (onChoked): New function.
  10134. (deleteAllRequestSlot): Removed.
  10135. (abortPiece): Rewirtten.
  10136. (deleteTimeoutRequestSlot): Updated log messages.
  10137. (getCorrespondingRequestSlot): Changed its arguments.
  10138. (cancelAllRequest): Removed all overloaded functions.
  10139. (receiveHandshake): Added the check to see whether an incoming peer
  10140. supports fast extension.
  10141. (createHandshakeMessage): Use HandshakeMessage::create instead of
  10142. PeerMessageUtil.
  10143. (createPeerMessage): Use create() of each message class instead of
  10144. PeerMessageUtil.
  10145. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  10146. AllowedFastMessage were added.
  10147. (getNewPieceAndSendInterest): Changed its return value type to void.
  10148. Added the handling of fast extension.
  10149. (addRequests): New function.
  10150. (sendNow): Removed.
  10151. (sendHandshake): Rewritten.
  10152. (trySendNow): Removed.
  10153. (sendBitfield): New function.
  10154. (sendAllowdFast): New function.
  10155. (isInFastSet): New function.
  10156. (addFastSetIndex): New function.
  10157. (createRequestMessage): Use RequestMessage::create instead of
  10158. PeerMessageUtil.
  10159. (createCancelMessage): Use CancelMessage::create instead of
  10160. PeerMessageUtil.
  10161. (createPieceMessage): Use PieceMessage::create instead of
  10162. PeerMessageUtil.
  10163. (createHaveMessage): Use HaveMessage::create instead of
  10164. PeerMessageUtil.
  10165. (createChokeMessage): Use ChokeMessage::create instead of
  10166. PeerMessageUtil.
  10167. (createUnchokeMessage): Use UnchokeMessage::create instead of
  10168. PeerMessageUtil.
  10169. (createInterestedMessage): Use InterestedMessage::create instead of
  10170. PeerMessageUtil.
  10171. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  10172. of PeerMessageUtil.
  10173. (createBitfieldMessage): Use BitfieldMessage::create instead of
  10174. PeerMessageUtil.
  10175. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  10176. PeerMessageUtil.
  10177. (createHaveAllMessage): New function.
  10178. (createHaveNoneMessage): New function.
  10179. (createRejectMessage): New function.
  10180. (createAllowedFastMessage: New function.
  10181. * src/Util.h
  10182. (sha1Sum): New function.
  10183. (computeFastSet): New function.
  10184. * src/Util.cc
  10185. (sha1Sum): New function.
  10186. (computeFastSet): New function.
  10187. * src/Peer.h
  10188. (fastExtensionEnabled): New variable.
  10189. (fastSet): New variable.
  10190. (setAllBitfield): New function.
  10191. (setFastExtensionEnabled): New function.
  10192. (isFastExtensionEnabled): New function.
  10193. (addFastSetIndex): New function.
  10194. (getFastSet): New function.
  10195. (isInFastSet): New function.
  10196. (countFastSet): New function.
  10197. * src/Peer.cc
  10198. (isInFastSet): New function.
  10199. (addFastSetIndex): New function.
  10200. (setAllBitfield): New function.
  10201. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  10202. sockets.
  10203. * src/PeerAbstractCommand.cc
  10204. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  10205. and uploadLimit.
  10206. (execute): Changed the procedure of checking sockets. The upload speed
  10207. checking were added.
  10208. (setUploadLimit): New function.
  10209. (setUploadLimitCheck): New function.
  10210. * src/PeerAbstractCommand.h
  10211. (setUploadLimit): New function.
  10212. (setUploadLimitCheck): New function.
  10213. (uploadLimit): New variable.
  10214. (uploadLimitCheck): New variable.
  10215. To contact a tracker regularly:
  10216. * src/TrackerWatcherCommand.h (interval): New variable.
  10217. (checkPoint): New variable.
  10218. (TrackerWatcherCommand): Added interval argument.
  10219. * src/TrackerWatcherCommand.cc
  10220. (TrackerWatcherCommand): Initialized checkPoint.
  10221. (execute): Now a tracker is contacted in every specified period.
  10222. If peer list is not needed, send request with numwant=0.
  10223. * src/TrackerUpdateCommand.cc
  10224. (execute): Updated log messages.
  10225. * src/DownloadEngine.cc
  10226. (~DownloadEngine): Removed two asserts.
  10227. (waitData): Uncommented wfds. May be a bug fix.
  10228. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. * src/PeerInteractionCommand.h
  10230. (checkInactiveConnection): Removed.
  10231. * src/PeerInteractionCommand.cc
  10232. (executeInternal): Removed following function calls:
  10233. detectMessageFlooding(), checkLongTimePeerChoking and
  10234. checkInactiveConnection().
  10235. (checkInactiveConnection): Removed.
  10236. (detectMessageFlooding): Removed function call to
  10237. checkInactiveConnection().
  10238. * src/PeerMessageUtil.h
  10239. (createChokeMessage): New function. Overload.
  10240. (createUnchokeMessage): New function. Overload.
  10241. (createInterestedMessage): New function. Overload.
  10242. (createNotInterestedMessage): New function. Overload.
  10243. (createHaveMessage): New function. Overload.
  10244. (createBitfieldMessage): New function. Overload.
  10245. (createRequestMessage): New function. Overload.
  10246. (createCancelMessage): New function. Overload.
  10247. (createPieceMessage): New function. Overload.
  10248. (createKeepAliveMessage): New function. Overload.
  10249. * src/PeerMessageUtil.cc
  10250. (createChokeMessage): New function. Overload.
  10251. (createUnchokeMessage): New function. Overload.
  10252. (createInterestedMessage): New function. Overload.
  10253. (createNotInterestedMessage): New function. Overload.
  10254. (createHaveMessage): New function. Overload.
  10255. (createBitfieldMessage): New function. Overload.
  10256. (createRequestMessage): New function. Overload.
  10257. (createCancelMessage): New function. Overload.
  10258. (createPieceMessage): New function. Overload.
  10259. (createKeepAliveMessage): New function. Overload.
  10260. * src/SendMessageQueue.cc
  10261. (createRequestMessage): Use PeerMessageUtil.
  10262. (createCancelMessage): Use PeerMessageUtil.
  10263. (createPieceMessage): Use PeerMessageUtil.
  10264. (createHaveMessage): Use PeerMessageUtil.
  10265. (createChokeMessage): Use PeerMessageUtil.
  10266. (createUnchokeMessage): Use PeerMessageUtil.
  10267. (createInterestedMessage): Use PeerMessageUtil.
  10268. (createNotInterestedMessage): Use PeerMessageUtil.
  10269. (createBitfieldMessage): Use PeerMessageUtil.
  10270. (createKeepAliveMessage): Use PeerMessageUtil.
  10271. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  10272. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  10273. * src/PeerInteraction.h: New class.
  10274. * src/PeerInteraction.cc: New class.
  10275. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. Each peer message has its own class.
  10277. * src/PendingMessages.h: Removed.
  10278. * src/PendingMessages.cc: Removed. The sending process was moved to
  10279. each message class.
  10280. * src/RequestSlotMan.h: Removed.
  10281. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  10282. SendMessageQueue.
  10283. * src/RequestMessage.h: New class.
  10284. * src/RequestMessage.cc: New class.
  10285. * src/CancelMessage.h: New class.
  10286. * src/CancelMessage.cc: New class.
  10287. * src/BitfieldMessage.h: New class.
  10288. * src/BitfieldMessage.cc: New class.
  10289. * src/ChokeMessage.h: New class.
  10290. * src/ChokeMessage.cc: New class.
  10291. * src/KeepAliveMessage.h: New class.
  10292. * src/KeepAliveMessage.cc: New class.
  10293. * src/PortMessage.h: New class.
  10294. * src/UnchokeMessage.h: New class.
  10295. * src/UnchokeMessage.cc: New class.
  10296. * src/PieceMessage.h: New class.
  10297. * src/PieceMessage.cc: New class.
  10298. * src/HaveMessage.h: New class.
  10299. * src/HaveMessage.cc: New class.
  10300. * src/BitfieldMessage.h: New class.
  10301. * src/BitfieldMessage.cc: New class.
  10302. * src/NotInterestedMessage.h: New class.
  10303. * src/NotInterestedMessage.cc: New class.
  10304. * src/InterestedMessage.h: New class.
  10305. * src/InterestedMessage.cc: New class.
  10306. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  10307. (getSendMessageQueue): New function.
  10308. (setSendMessageQueue): New function.
  10309. * src/HandshakeMessage.cc: New class.
  10310. * src/PeerConnection.h (receiveMessage): Changed return value and
  10311. arguments.
  10312. (receiveHandshake): Changed return value and arguments.
  10313. * src/PeerConnection.cc (receiveMessage): Do not create message class
  10314. here.
  10315. (receiveHandshake): Do not create handshake class here.
  10316. * src/PeerInteractionCommand.h (peerConnection): Removed.
  10317. (piece): Removed.
  10318. (syncPiece): Removed.
  10319. (sendInterest): Removed.
  10320. (sendMessages): Removed.
  10321. (createRequestPendingMessage): Removed.
  10322. (checkPieceHash): Removed.
  10323. (erasePieceOnDisk): Removed.
  10324. (getNewPieceAndSendInterest): Removed.
  10325. (onGotNewPice): Removed.
  10326. (onGotWrongPiece): Removed.
  10327. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10328. Removed peerConnection, piece.
  10329. (~PeerInteractionCommand): Removed peerConnection.
  10330. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10331. (syncPiece): Moved to SendMessageQueue.
  10332. (decideChoking): Removed PendingMessage.
  10333. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10334. The action after receiving peer message was moved to each message
  10335. class.
  10336. (onGotNewPice): Moved to SendMessageQueue.
  10337. (onGotWrongPiece): Moved to SendMessageQueue.
  10338. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10339. (sendInterest): Moved to SendMessageQueue.
  10340. (createRequestPendingMessage): Removed.
  10341. (sendMessages): Moved to SendMessageQueue.
  10342. (onAbort): Use SendMessageQueue::abortPiece()
  10343. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10344. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10345. (checkPieceHash): Moved to SendMessageQueue.
  10346. (erasePieceOnDisk): Moved to SendMessageQueue.
  10347. * src/PeerMessageUtil.h
  10348. (createBitfieldMessage): Removed.
  10349. (createHaveMessage): Changed return value and arguments.
  10350. (createBitfieldMessage): Changed return value and arguments.
  10351. (createRequestCancelMessage): Removed.
  10352. (createPieceMessage): Changed return value and arguments.
  10353. (getShortIntParam): New function.
  10354. (checkIndex): Changed arguments.
  10355. (checkBegin): Changed arguments.
  10356. (checkLength): Changed arguments.
  10357. (checkPieceOffset): Removed.
  10358. (checkRange): New function.
  10359. (checkBitfield): Changed arguments.
  10360. (createPeerMessage): Removed.
  10361. (checkIntegrity): Removed.
  10362. (createHandshakeMessage): Changed arguments.
  10363. (createChokeMessage): New function.
  10364. (createUnchokeMessage): New function.
  10365. (createInterestedMessage): New function.
  10366. (createNotInterestedMessage): New function.
  10367. (createRequestMessage): New function.
  10368. (createCancelMessage): New function.
  10369. (createPortMessage): New function.
  10370. * src/PeerMessageUtil.cc
  10371. (createBitfieldMessage): Removed.
  10372. (createHaveMessage): Changed return value and arguments.
  10373. (createBitfieldMessage): Changed return value and arguments.
  10374. (createRequestCancelMessage): Removed.
  10375. (createPieceMessage): Changed return value and arguments.
  10376. (getShortIntParam): New function.
  10377. (checkIndex): Changed arguments.
  10378. (checkBegin): Changed arguments.
  10379. (checkLength): Changed arguments.
  10380. (checkPieceOffset): Removed.
  10381. (checkRange): New function.
  10382. (checkBitfield): Changed arguments.
  10383. (createPeerMessage): Removed.
  10384. (checkIntegrity): Removed.
  10385. (createHandshakeMessage): Changed arguments.
  10386. (createChokeMessage): New function.
  10387. (createUnchokeMessage): New function.
  10388. (createInterestedMessage): New function.
  10389. (createNotInterestedMessage): New function.
  10390. (createRequestMessage): New function.
  10391. (createCancelMessage): New function.
  10392. (createPortMessage): New function.
  10393. * src/PeerMessage.h
  10394. (id): Removed.
  10395. (index): Removed.
  10396. (begin): Removed.
  10397. (length): Removed.
  10398. (bitfield): Removed.
  10399. (bitfieldLength): Removed.
  10400. (block): Removed.
  10401. (blockLength): Removed.
  10402. (inProgress): New variable.
  10403. (cuid): New variable.
  10404. (peer): New variable.
  10405. (sendMessageQueue): New variable.
  10406. (logger): New variable.
  10407. (setBitfield): Removed.
  10408. (getBitfield): Removed.
  10409. (setBlock): Removed.
  10410. (getBlock): Removed.
  10411. (getBitfieldLength): Removed.
  10412. (getBlockLength): Removed.
  10413. (isInProgress): New function.
  10414. (toString): Made pure virtual.
  10415. (check): New function.
  10416. (send): New function.
  10417. (receivedAction): New function.
  10418. (getId): Made pure virtual.
  10419. (setId): Removed.
  10420. (getIndex): Removed.
  10421. (setIndex): Removed.
  10422. (getBegin): Removed.
  10423. (setBegin): Removed.
  10424. (getLength): Removed.
  10425. (setLength): Removed.
  10426. (getCuid): New function.
  10427. (setCuid): New function.
  10428. (getPeer): New function.
  10429. (setPeer): New function.
  10430. (getSendMessageQueue): New function.
  10431. (setSendMessageQueue): New function.
  10432. (ID): Removed.
  10433. * src/PeerMessage.cc
  10434. (setBitfield): Removed.
  10435. (setBlock): Removed.
  10436. (toString): Removed.
  10437. * src/TorrentMan.h
  10438. (getPieceLength): New function.
  10439. (getPieceLength): New function.
  10440. * src/SendMessageQueue.h
  10441. (REQUEST_TIME_OUT): New definition.
  10442. (RequestSlots): New definition.
  10443. (MessageQueue): New definition.
  10444. (requestSlotMan): Removed.
  10445. (pendingMessages): Removed.
  10446. (requestSlots): New variable.
  10447. (messageQueue): New variable.
  10448. (torrentMan): New variable.
  10449. (peerConnection): New variable.
  10450. (peer): New variable.
  10451. (piece): New variable.
  10452. (getNewPieceAndSendInterest): New function.
  10453. (createPeerMessage): New function.
  10454. (createHandshakeMessage): New function.
  10455. (send): Made private.
  10456. (setPeerMessageCommonProperty): New function.
  10457. (deleteAllRequestSlot): New function.
  10458. (deleteRequestMessageInQueue): New function.
  10459. (cancelAllRequest): Made private.
  10460. (cancelAllRequest): Made private.
  10461. (countRequestSlot): Made private.
  10462. (addPendingMessage): Removed.
  10463. (deletePendingPieceMessage): Removed.
  10464. (deletePendingRequestMessage): Removed.
  10465. (addMessage): New function.
  10466. (deletePieceMessageInQueue): New function.
  10467. (deleteTimeoutRequestSlot): Changed argument.
  10468. (deleteCompletedRequestSlot): Changed argument.
  10469. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10470. (getCorrespondingRequestSlot): New function.
  10471. (countPendingMessage): Removed.
  10472. (countMessageInQueue): New function.
  10473. (getTorrentMan): New function.
  10474. (getPeerConnection): New function.
  10475. (hasDownloadPiece): New function.
  10476. (getDownloadPiece): New function.
  10477. (setDownloadPiece): New function.
  10478. (syncPiece): New function.
  10479. (sendMessages): New function.
  10480. (sendNow): New function.
  10481. (trySendNow): New function.
  10482. (abortPiece): New function.
  10483. (sendHandshake): New function.
  10484. (receiveMessage): New function.
  10485. (receiveHandshake): New function.
  10486. (createRequestMessage): New function.
  10487. (createCancelMessage): New function.
  10488. (createPieceMessage): New function.
  10489. (createHaveMessage): New function.
  10490. (createChokeMessage): New function.
  10491. (createUnchokeMessage): New function.
  10492. (createInterestedMessage): New function.
  10493. (createNotInterestedMessage): New function.
  10494. (createBitfieldMessage): New function.
  10495. (createKeepAliveMessage): New function.
  10496. * src/SendMessageQueue.cc
  10497. (SendMessageQueue): Removed requestSlotMan.
  10498. Instantiated peerConnection here.
  10499. (~SendMessageQueue): Removed requestSlotMan.
  10500. Added deletion of peerConnection and the contents of messageQueue.
  10501. (send): Updated according to the change of messageQueue.
  10502. (addPendingMessage): Renamed to addMessage.
  10503. (addMessage): New function.
  10504. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10505. (deletePieceMessageInQueue): New function.
  10506. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10507. (deleteRequestMessageInQueue): New function.
  10508. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10509. here.
  10510. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10511. (...) was moved here.
  10512. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10513. moved here.
  10514. (deleteCompletedRequestSlot):
  10515. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10516. (getCorrespondingRequestSlot):
  10517. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10518. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10519. (countPendingMessage): Renamed to countMessageInQueue.
  10520. (countMessageInQueue): New function.
  10521. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10522. (receiveHandshake): New function.
  10523. (createHandshakeMessage): New function.
  10524. (receiveMessage): New function.
  10525. (createPeerMessage): New function.
  10526. (syncPiece): New function.
  10527. (getNewPieceAndSendInterest): New function.
  10528. (sendMessages): New function.
  10529. (sendNow): New function.
  10530. (trySendNow): New function.
  10531. (sendHandshake): New function.
  10532. (abortPiece): New function.
  10533. (getDownloadPiece): New function.
  10534. (getPeerMessageCommonProperty): New function.
  10535. (createRequestMessage): New function.
  10536. (createCancelMessage): New function.
  10537. (createPieceMessage): New function.
  10538. (createHaveMessage): New function.
  10539. (createChokeMessage): New function.
  10540. (createUnchokeMessage): New function.
  10541. (createInterestedMessage): New function.
  10542. (createNotInterestedMessage): New function.
  10543. (createBitfieldMessage): New function.
  10544. (createKeepAliveMessage): New function.
  10545. To add simple Content-Disposition support:
  10546. * src/HttpResponseCommand.h (determinFilename): New function.
  10547. * src/HttpResponseCommand.cc (executeInternal):
  10548. Use determinFilename(headers) instead of req->getFile() when comparing
  10549. filename.
  10550. (determinFilename): New function.
  10551. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10552. req->getFile().
  10553. (handleOtherEncoding): Use determinFilename(headers) instead of
  10554. req->getFile().
  10555. * src/Util.h (getContentDispositionFilename): New function.
  10556. * src/Util.cc (getContentDispositionFilename): New function.
  10557. * src/LogFactory.h (release): New function.
  10558. * src/LogFactory.cc (release): New function.
  10559. To fix a bug that causes out-of-bound exception when HTTP status
  10560. line is wrong:
  10561. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10562. size.
  10563. * src/common.h (Deleter): New class.
  10564. * src/SegmentMan.cc
  10565. (~SegmentMan): Added deletion of splitter and diskWriter.
  10566. * src/DownloadEngine.h
  10567. (Commands): Use deque.
  10568. (clearQueue): New function.
  10569. * src/DownloadEngine.cc
  10570. (~DownloadEngine): Added deletion of segmentMan.
  10571. (cleanQueue): New function.
  10572. * src/TorrentDownloadEngine.h
  10573. (TorrentDownloadEngine): The implementation was moved to
  10574. TorrentDownloadEngine.cc.
  10575. (~TorrentDownloadEngine): The implementation was moved to
  10576. TorrentDownloadEngine.cc.
  10577. * src/TorrentDownloadEngine.cc
  10578. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10579. * src/main.cc
  10580. (clearRequest): Removed.
  10581. (handler): Added deletion of e.
  10582. (torrentHandler): Added deletion of te.
  10583. (main): Do not share splitter.
  10584. Use Deleter instead of clearRequest.
  10585. Deletion of classes were updated.
  10586. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. * src/main.cc (main): Fixed typo.
  10588. * src/message.h: Fixed typo.
  10589. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10590. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. To add --select-file command-line option:
  10592. * src/Util.cc
  10593. (unfoldRange): New function.
  10594. (getNum): New function.
  10595. (unfoldSubRange): New function
  10596. * src/main.cc
  10597. (showUsage): Added help message.
  10598. (main): Added --select-file command-line option. Updated the layout of
  10599. file listing.
  10600. * src/common.h
  10601. (Integers): New definition.
  10602. * src/SocketCore.cc
  10603. (writeData): Removed timeout argument.
  10604. (readData): Removed timeout argument.
  10605. (peekData): Removed timeout argument.
  10606. * src/Socket.cc
  10607. (writeData): Removed timeout argument.
  10608. (readData): Removed timeout argument.
  10609. (peekData): Removed timeout argument.
  10610. * Release 0.4.1
  10611. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10612. To deploy upload rate based choking algorithm:
  10613. * src/PeerInteractionCommand.cc
  10614. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10615. peer currently used.
  10616. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10617. download completes. Simplified.
  10618. (receiveMessage): Updated.
  10619. * src/TorrentMan.h
  10620. (activePeers): New variable.
  10621. (addActivePeer): New function.
  10622. (getActivePeers): New function.
  10623. (deleteActivePeer): New function.
  10624. * src/TorrentMan.cc
  10625. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10626. * src/PeerAbstractCommand.cc
  10627. (onAbort): Use peer->resetStatus().
  10628. * src/main.cc
  10629. (PeerChokeCommand.h): Included.
  10630. (main): Added the instance of ChokingCommand to the command queue.
  10631. * src/Peer.h
  10632. (amChoking): Renamed from amChocking
  10633. (chokingRequired): New variable.
  10634. (optUnchoking): New variable.
  10635. (deltaUpload): New variable.
  10636. (deltaDownload): New variable.
  10637. (addDeltaUpload): New function.
  10638. (resetDeltaUpload): New function.
  10639. (addDeltaDownload): New function.
  10640. (resetDeltaDownload): New function.
  10641. (addPeerUpload): Added a call to addDeltaUpload.
  10642. (addPeerDownload): Added a call to addDeltaDownload.
  10643. * src/Peer.cc
  10644. (shouldBeChoking): Renamed from shouldChoke.
  10645. (resetStatus): New function.
  10646. * src/PeerChokeCommand.h: New class.
  10647. * src/PeerChokeCommand.cc: New class.
  10648. To add lazy upload speed limiter:
  10649. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  10650. statistics calculation to TorrentDownloadEngine.
  10651. * src/TorrentConsoleDownloadEngine.cc
  10652. (sendStatistics): Renamed from printStatistics.
  10653. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  10654. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  10655. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  10656. * src/TorrentDownloadEngine.h: Added the variables for statistics
  10657. calculation.
  10658. (sendStatistics): New function as pure virtual function.
  10659. (getUploadSpeed): New function.
  10660. * src/TorrentDownloadEngine.cc
  10661. (initStatistics): New function.
  10662. (calculateSpeed): New function.
  10663. (calculateStatistics): New function.
  10664. * src/SendMessageQueue.h
  10665. (uploadLength): New variable.
  10666. (send): Added an argument.
  10667. (setUploadLimit): New function.
  10668. (getUploadLimit): New function.
  10669. * src/SendMessageQueue.cc
  10670. (send): Added upload speed limiter.
  10671. * src/prefs.h
  10672. (PREF_UPLOAD_LIMIT): New definition.
  10673. * src/PeerInteractionCommand.cc
  10674. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10675. * src/main.cc
  10676. (main): Added --upload-limit option
  10677. For bug fixes:
  10678. * src/main.cc
  10679. (showUsage): Corrected --listen-port help
  10680. Other changes:
  10681. * src/TorrentMan.cc
  10682. (getPeer): Return nullPeer if connection is grather than
  10683. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10684. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. To add some useful information to the exception message:
  10686. * src/SocketCore.cc : Updated messages.
  10687. * src/SegmentMan.cc :
  10688. * src/TorrentMan.cc : Updated messages.
  10689. * src/MultiDiskWriter.cc : Updated messages.
  10690. * src/Util.cc : Updated messages.
  10691. * src/AbstractDiskWriter.cc : Updated messages.
  10692. * src/PreAllocationDiskWriter.cc : Updated messages.
  10693. * src/message.cc : Added new messages. Updated some messages.
  10694. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10695. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10696. Updated threshold from 30 to 15.
  10697. * src/AbstractDiskWriter.h (filename): New variable.
  10698. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10699. (createFile): Assigned filename.
  10700. * src/main.cc: Updated the help message for http-auth-scheme.
  10701. * Release 0.4.0
  10702. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. To add TrackerUpdateCommand with which replaces
  10704. CompactTrackerResponseProcessor:
  10705. * src/TrackerWatcherCommand.h (req): Removed.
  10706. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10707. if the number of peer connections are less than 30.
  10708. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10709. * src/SegmentMan.h (diskWriter): New function.
  10710. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10711. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10712. (main): Use TrackerUpdateCommand.
  10713. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10714. (req): New variable.
  10715. (setTrackerResponseProcessor): Removed.
  10716. (getTrackerResponseProcessor): Removed.
  10717. (processTrackerResponse): Removed.
  10718. * src/DownloadEngine.h (diskWriter): Removed.
  10719. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10720. to torrentMan->processTrackerResponse().
  10721. To add Util::expandBuffer:
  10722. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10723. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10724. * src/Util.h (expandBuffer): New function.
  10725. To fix the bug that causes segmentation fault when "-l ." is specified
  10726. in command-line option:
  10727. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10728. (openFile): New function.
  10729. (closeFile): New function.
  10730. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10731. (~SimpleLogger): Call closeFile();
  10732. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10733. * src/main.cc (main): Added a check to see logger is configured
  10734. properly.
  10735. To enable HTTP authentication without specifying "--http-auth-scheme"
  10736. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10737. * src/HttpConnection.cc (createRequest): Send Authorization header
  10738. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10739. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10740. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10741. * src/Peer.cc (shouldChoke): Updated algorithm.
  10742. * src/message.h (EX_AUTH_FAILED): New definition.
  10743. (EX_FILE_OPEN): New definition.
  10744. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10745. if status == 401.
  10746. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10747. if req->isTorrent == true.
  10748. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10749. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10750. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10751. (createFile): Updated message.
  10752. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. To add a readout of estimated remaining time to normal HTTP/FTP
  10754. downloads:
  10755. * src/ConsoleDownloadEngine.h (startup): New variable.
  10756. (startupLength): New variable.
  10757. (isStartupLengthSet): New variable.
  10758. (avgSpeed): New variable.
  10759. (eta): New variable.
  10760. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10761. estimated remaining time.
  10762. (initStatistics): Initialized newly added variables.
  10763. (calculateStatistics): Calculate average speed and estimated remaining
  10764. time.
  10765. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10766. * src/TrackerDownloadCommand.h: Removed.
  10767. * src/TrackerDownloadCommand.cc: Removed.
  10768. * src/TrackerInitCommand.h: Removed.
  10769. * src/TrackerInitCommand.cc: Removed.
  10770. * src/TrackerUpdateCommand.h: Removed.
  10771. * src/TrackerUpdateCommand.cc: Removed.
  10772. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10773. url written in TrackerInitCommand was moved here. Do not create
  10774. tracker request command if torrentMan->trackers != 0.
  10775. * src/CompactTrackerResponseProcessor.h: New class.
  10776. * src/CompactTrackerResponseProcessor.cc: New class.
  10777. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10778. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10779. Decoupled TorrentDownloadEngine from this.
  10780. * src/SegmentMan.h (init): New function.
  10781. * src/SegmentMan.cc (init): New function.
  10782. * src/TorrentMan.h (responseProcessor): New variable.
  10783. (trackers): New variable.
  10784. (setTrackerResponseProcessor): New function.
  10785. (getTrackerResponseProcessor): New function.
  10786. (processTrackerResponse): New function.
  10787. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10788. (processTrackerResponse): New function.
  10789. * src/main.cc (main): Use ByteArrayDiskWriter and
  10790. CompactTrackerResponseProcessor.
  10791. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10792. processTrackerResponse().
  10793. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10794. readout.
  10795. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10796. which indicates download has completed.
  10797. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10798. (closeFile): fd >= 0, not fd > 0
  10799. * src/main.cc (main): Added short cut for show-files.
  10800. Added short cut for torrent-file.
  10801. Added new command-line option listen-port.
  10802. Updated i18n messages.
  10803. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10804. To add LogFactory which creates singleton logger:
  10805. * src/LogFactory.h: New class.
  10806. * src/LogFactory.cc: New class.
  10807. * src/Command.h (logger): New variable.
  10808. (Constructor): Use LogFactory.
  10809. * src/AbstractCommand.cc: Use Command::logger
  10810. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10811. Use LogFactory.
  10812. * src/SegmentSplitter.h : Made logger protected.
  10813. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10814. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10815. * src/DownloadEngine.h : Made logger protected.
  10816. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10817. * src/PeerInteractionCommand.cc : Use Command::logger.
  10818. * src/HttpResponseCommand.cc : Use Command::logger.
  10819. * src/SegmentMan.h : Made logger private.
  10820. * src/TorrentMan.h : Made logger private.
  10821. * src/TorrentMan.cc : Use LogFactory.
  10822. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10823. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10824. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10825. Use LogFactory.
  10826. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10827. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10828. Use LogFactory.
  10829. * src/DownloadCommand.cc : Use Command::logger.
  10830. * src/PeerAbstractCommand.cc : Use Command::logger.
  10831. * src/PeerListenCommand.cc : Use Command::logger.
  10832. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10833. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10834. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10835. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10836. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10837. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10838. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10839. Use LogFactory.
  10840. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10841. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10842. Use LogFactory.
  10843. * src/main.cc (main): Use LogFactory.
  10844. * src/DiskAdaptor.h (logger): New variable.
  10845. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10846. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10847. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10848. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10849. parameter to a tracker request.
  10850. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10851. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10852. * src/main.cc (setSignalHander): New function.
  10853. (main): Added a handler for SIGTERM.
  10854. (handler): Updated message.
  10855. (torrentHandler): Updated message.
  10856. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. * src/TorrentConsoleDownloadEngine.cc
  10858. (onPartialDownloadingCompletes): Renamed as
  10859. onSelectiveDownloadingCompletes.
  10860. (onSelectiveDownloadingCompletes): Updated message.
  10861. To add DiskAdaptor which abstract DiskWriter family:
  10862. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10863. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10864. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10865. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10866. MultiDiskAdaptor.h.
  10867. (readFileEntry): Changed its arguments.
  10868. (setup): setupDiskWriter is merged into this function.
  10869. (setupDiskWriter): Removed.
  10870. (setFileFilter): New function.
  10871. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10872. made in readFileEntry.
  10873. (getFilePath): Removed.
  10874. (getTempFilePath): Removed.
  10875. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10876. (fixFilename): Removed.
  10877. (copySingleFile): Removed.
  10878. (splitMultiFile): Removed.
  10879. (deleteTempFile): Removed.
  10880. (setFileEntriesToDownload): Removed.
  10881. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10882. (isSelectiveDownloadingMode): New function.
  10883. (setAllMultiFileRequestedState): Removed.
  10884. (finishPartialDownloadingMode): Renamed as
  10885. finishSelectiveDownloadingMode.
  10886. (finishSelectiveDownloadingMode): New function.
  10887. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10888. (getSelectedTotalLength): New function.
  10889. (onDownloadComplete): Use diskAdaptor.
  10890. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10891. (Range): Removed.
  10892. (setMultiFileEntries): Renamed as setFileEntries.
  10893. (setFileEntries): New function.
  10894. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  10895. (pieceLength): New variable.
  10896. * src/main.cc (printDownloadCompeleteMessage): New function.
  10897. (torrentHandler): Use diskAdaptor instead of diskWriter.
  10898. (main): Renamed torrent-show-files to show-files.
  10899. Rewritten file contents listing.
  10900. * src/TorrentMan.h (FileEntry): Removed.
  10901. (multiFileTopDir): Removed.
  10902. (multiFileEntries): Removed.
  10903. (diskWriter): Removed.
  10904. (diskAdaptor): New variable.
  10905. * src/DefaultDiskWriter.h (totalLength): New variable.
  10906. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  10907. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  10908. diskWriter.
  10909. * src/TorrentConsoleDownloadEngine.h
  10910. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  10911. (partialTotalLength): Renamed as selectedTotalLength.
  10912. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  10913. openExistingFile, otherwise call initAndOpenFile.
  10914. (closeFile): fd > 0, not fd != 0.
  10915. * src/DirectDiskAdaptor.h: New class.
  10916. * src/DirectDiskAdaptor.cc: New class.
  10917. * src/MultiDiskAdaptor.h: New class.
  10918. * src/MultiDiskAdaptor.cc: New class.
  10919. * src/CopyDiskAdaptor.h: New class.
  10920. * src/CopyDiskAdaptor.cc: New class.
  10921. * src/DiskAdaptor.h: New class.
  10922. * src/DiskAdaptor.cc: New class.
  10923. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  10924. (PREF_SHOW_FILES): New definition.
  10925. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. To add the ability to download multi torrent into respective files
  10927. directly:
  10928. * src/DiskWriter.h (openFile): New function.
  10929. (seek): Removed.
  10930. * src/MultiDiskWriter.h: New class.
  10931. * src/MultiDiskWriter.cc: New class.
  10932. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  10933. protected.
  10934. (openFile): New function.
  10935. * src/AbstractDiskWriter.cc (openFile): New function.
  10936. * src/prefs.h (V_FALSE): New definition.
  10937. (PREF_DIRECT_FILE_MAPPING): New definition.
  10938. * src/TorrentMan.h (setupDiskWriter): New function.
  10939. (setAllMultiFileRequestedState): New function.
  10940. (onDownloadComplete): New function.
  10941. * src/TorrentMan.cc : Included MultiDiskWriter.h
  10942. (setupDiskWriter): New function.
  10943. (getFilePath): Updated.
  10944. (getTempFilePath): Updated.
  10945. (getSegmentFilePath): Updated.
  10946. (fixFilename): Updated.
  10947. (deleteTempFile): Updated.
  10948. (setAllMultiFileRequestedState): New function.
  10949. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  10950. (finishPartialDownloadingMode): Reset requested flags.
  10951. (onDownloadComplete): New function.
  10952. * src/main.cc: Added --direct-file-mapping option.
  10953. Use TorrentMan::setupDiskWriter().
  10954. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  10955. onDownloadComplete().
  10956. To fix ETA bug:
  10957. * src/Util.h (difftvsec): New function.
  10958. * src/Util.cc (difftvsec): New function.
  10959. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  10960. type of "elapsed" instead of long long int.
  10961. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  10962. The updates of statistics takes place every 1 seconds.
  10963. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  10964. (calculateSpeed): Changed its argument signature.
  10965. * src/PeerMessage.cc (toString): Fixed message.
  10966. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10967. To print ETA:
  10968. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  10969. completion handling when dealing with
  10970. TorrentMan::isPartialDownloadingMode() == true.
  10971. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  10972. New function.
  10973. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  10974. (sessionDownloadLength): New variable.
  10975. (avgSpeed): New variable.
  10976. (eta): New variable.
  10977. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  10978. new variables: eta, avgSpeed, startup.
  10979. (calculateSpeed): Calculate average speed and ETA.
  10980. (printStatistics): Added ETA.
  10981. * src/Util.h (secfmt): New function.
  10982. * src/Util.cc (secfmt): New function.
  10983. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10984. To detect "keep alive" flooding:
  10985. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  10986. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  10987. variable: keepAliveCount.
  10988. (detectMessageFlooding): Added "keep alive" flooding detection.
  10989. (receiveMessage): Increase keepAliveCount when "keep alive" message
  10990. received.
  10991. To add the ability to download only specified files in multi-file
  10992. torrent:
  10993. * src/BitfieldMan.h (filterBitfield): New variable.
  10994. (filterEnabled): New variable.
  10995. (setFilterBit): New function.
  10996. (enableFilter): New function.
  10997. (disableFilter): New function.
  10998. (isFilterEnabled): New function.
  10999. (getFilteredTotalLength): New function.
  11000. (getCompletedLength): New function.
  11001. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  11002. filterBitfield, filterEnabled.
  11003. (CopyConstructor): Added filterBitfield and filterEnabled.
  11004. (operator==): Added filterBitfield and filterEnabled.
  11005. (Destructor): Added filterBitfield.
  11006. (getMissingIndex): Use filterBitfield.
  11007. (getMissingUnusedIndex): Use filterBitfield.
  11008. (getFirstMissingUnusedIndex): Use filterBitfield.
  11009. (getFirstMissingUnusedIndex): Use filterBitfield.
  11010. (getAllMissingIndexes): Use filterBitfield.
  11011. (countMissingBlock): Use filterBitfield.
  11012. (countBlock): Use filterBitfield.
  11013. (setBitInternal): Added new argument on.
  11014. (setUseBit): Use setBitInternal.
  11015. (unsetUseBit): Use setBitInternal.
  11016. (setBit): Use setBitInternal.
  11017. (unsetBit): Use setBitInternal.
  11018. (isAllBitSet): Use filterBitfield.
  11019. (setFilterBit): New function.
  11020. (addFilter): New function.
  11021. (enableFilter): New function.
  11022. (disableFilter): New function.
  11023. (clearFilter): New function.
  11024. (isFilterEnabled): New function.
  11025. (getFilteredTotalLength): New function.
  11026. (getCompletedLength): New function.
  11027. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  11028. Initalized newly added variables.
  11029. [FileEntry](offset): New variable.
  11030. [FileEntry](extracted): New variable.
  11031. [FileEntry](requested): New variable.
  11032. (readFileEntry): New function.
  11033. (option): New variable.
  11034. (splitMultiFile): Removed const qualifier.
  11035. (fixFilename): Removed const qualifier.
  11036. (readFileEntryFromMetaInfoFile): New function.
  11037. (finishPartialDownloadingMode): New function.
  11038. (isPartialDownloadingMode): New function.
  11039. (setFileEntriesToDownload): New function.
  11040. (getCompletedLength): New function.
  11041. (getPartialTotalLength): New function.
  11042. * src/TorrentMan.cc (readFileEntry): New function.
  11043. (setup): Use readFileEntry. If no-preallocation option is specified,
  11044. use DefaultDiskWriter.
  11045. (readFileEntryFromMetaInfoFile): New function.
  11046. (fixFilename): Removed const qualifier.
  11047. (splitMultiFile): Removed const qualifier.
  11048. (setFileEntriesToDownload): New function.
  11049. (isPartialDownloadingMode): New function.
  11050. (finishPartialDownloadingMode): New function.
  11051. (getCompletedLength): New function.
  11052. (getPartialTotalLength): New function.
  11053. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11054. New variable.
  11055. (partialTotalLength): New variable.
  11056. (downloadLength): New variable.
  11057. (totalLength): New variable.
  11058. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11059. Added log.
  11060. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11061. partialTotalLength, downloadLength, totalLength.
  11062. (calculate): Calculate downloadLength and totalLength.
  11063. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11064. * src/main.cc (addCommand): Changed argument signature.
  11065. (main): Added new variable: args. Added new option "torrent-show-files"
  11066. "no-preallocation". Usage is not updated yet.
  11067. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11068. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11069. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. Attempt to add the ability to listing file entries in a .torrent file.
  11071. This feature is not yet complete.
  11072. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11073. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11074. (getName): New function.
  11075. * src/TorrentMan.h (getMultiFileEntries): New function.
  11076. (getName): New function.
  11077. * src/main.cc (main): Use above 2 funtion.
  11078. * Release 0.3.2
  11079. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11081. (detectMessageFlooding): Updated threshold value.
  11082. (checkLongTimePeerChoking): Updated timeout value.
  11083. (getNewPieceAndSendInterest): Added debug log.
  11084. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11085. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11086. (getPeer): Updated.
  11087. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11088. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11089. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11090. is localhost.
  11091. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11092. * src/PendingMessage.cc (processMessage): Not to send piece message
  11093. if peer is not interested in the pieces localhost has.
  11094. * src/Peer.cc (shouldChoke): Updated.
  11095. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11096. * src/Util.cc (isPowerOf): New function.
  11097. * src/Util.h (isPowerOf): New function.
  11098. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11099. whether or not it is power of 2.
  11100. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. Added new class SendMessageQueue that includes PendingMessages and
  11102. RequestSlotMan.
  11103. * src/SendMessageQueue.h: New class.
  11104. * src/SendMessageQueue.cc: New class.
  11105. * src/PendingMessage.h: Added new member variable blockIndex and its
  11106. accessors.
  11107. (createRequestMessage): Updated.
  11108. * src/PendingMessage.cc (createRequestMessage): Updated.
  11109. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11110. SendMessageQueue.
  11111. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11112. (receiveMessage): Updated with SendMessageQueue.
  11113. (deletePendingPieceMessage): Removed.
  11114. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11115. (sendInterest): Updated with SendMessageQueue.
  11116. (createRequestPendingMessage): Updated with SendMessageQueue.
  11117. (sendMessages): Updated with SendMessageQueue.
  11118. (onAbort): Updated with SendMessageQueue.
  11119. (keepAlive): Updated with SendMessageQueue.
  11120. (beforeSocketCheck): Updated SendMessageQueue.
  11121. * src/PeerInteractionCommand (sendMessages): Shuffle
  11122. missingBLockIndexes before using it.
  11123. Added its own timeout for peer connection.
  11124. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11125. setter.
  11126. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11127. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11128. Added setTimeout() call.
  11129. (executeInternal): Added setTimeout() call.
  11130. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11131. Added timeout.
  11132. (isTimeoutDetected): Updated.
  11133. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  11134. option.
  11135. Added *simple* message flooding checker.
  11136. * src/PeerInteractionCommand.cc (executeInternal):
  11137. Added detectMessageFlooding() call.
  11138. (detectMessageFlooding): New function.
  11139. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  11140. (beforeSocketCheck): Added detectMessageFlooding() call.
  11141. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  11142. chokeUnchokeCount, haveCount, detectMessageFlooding().
  11143. Removed deletePendingPieceMessage(), getRequestSlot(),
  11144. deleteRequestSlot(), deleteAllRequestSlot().
  11145. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  11146. Added checkLongTimePeerChoking() call.
  11147. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  11148. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  11149. if duplicate == false.
  11150. The parameter "uploaded" and "downloaded" in the tracker request are
  11151. the size since the client sent the "started" event to the tracker.
  11152. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  11153. uploaded size to preDownloadedSize, preUploadedSize respectively.
  11154. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  11155. getSessionDownloadedSize(), getSessionUploadedSize().
  11156. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  11157. getSessionUploadedSize() instead of getDownloadedSize(),
  11158. getUploadedSize().
  11159. * src/PendingMessage.cc (processMessage): Do not send request message
  11160. if the peer is choking the client.
  11161. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  11162. less than interval.
  11163. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11164. * configure.in: Added gnutls support. Added several CPP macros.
  11165. * m4/openssl.m4: Added.
  11166. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  11167. readData(), peekData(). Added gnutls support.
  11168. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  11169. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  11170. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  11171. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  11172. Instead, added a check for whether setup method has executed
  11173. successfully.
  11174. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  11175. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  11176. * src/Makefile.am: Updated.
  11177. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  11178. using whether OpenSSL or gcrypt, depending on the result of configure
  11179. script.
  11180. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  11181. messageDigest.h.
  11182. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  11183. * src/PeerListenCommand.cc: Added log about port binded successfully.
  11184. Fixed memory leak.
  11185. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  11186. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  11187. Removed instantiation of TrackerInitCommand. Instead,
  11188. TrackerWatcherCommand is instantiated and pushed to the command queue.
  11189. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  11190. ENABLE_SSL.
  11191. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  11192. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  11193. If a piece is already acquired by another command, delete the request
  11194. slots for the piece.
  11195. * src/TrackerUpdateCommand.cc (execute):
  11196. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  11197. Added a check whether peer list is null.
  11198. Fixed the bug that causes sending completed event to the tracker
  11199. several times.
  11200. * src/TrackerInitCommand.cc (execute):
  11201. Fixed the bug that causes sending completed event to the tracker
  11202. several times.
  11203. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  11204. by using messageDigest.h.
  11205. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11206. * PeerConnection.cc: Replaced log message "keep-alive" with
  11207. "keep alive".
  11208. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  11209. localhost long time.
  11210. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  11211. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  11212. at most 100 failure entry from the list. If with duplicate = false,
  11213. MAX_PEER_LIST is not checked.
  11214. * PeerListenCommand.cc: Fixed the argument order of log message.
  11215. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11216. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  11217. Added warn().
  11218. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  11219. Implemented warn().
  11220. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  11221. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11222. * Request.h: Added AFTER_COMPLETED event.
  11223. * TorrentDownloadEngine.cc: Prints "Download complete" message
  11224. instead of downloaded size and progress(%) after download completes.
  11225. * PeerInteractionCommand.cc: After download completes, sends unchoke
  11226. message to the peer if it is interested in what localhost has
  11227. downloaded.
  11228. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  11229. destination instead of just renaming it.
  11230. * TorrentMan.cc: Added deleteTempFile().
  11231. * PeerAbstractCommand.cc: do not stop execution after download
  11232. completes. This makes localhost a seeder.
  11233. * Util.{h,cc}: Added fileCopy().
  11234. * PeerListenCommand.cc: do not stop execution after download completes.
  11235. This makes localhost a seeder.
  11236. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  11237. Added TorrentMan::deleteTempFile() to torrentHandler.
  11238. Initialized the variable dir as ".".
  11239. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  11240. Deleted renameSingleFile().
  11241. Added copySingleFile(), deleteTempFile().
  11242. * DownloadEngine.h: Added virtual function afterEachIteration().
  11243. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  11244. in onEndOfRun() to afterEachIteration().
  11245. In onEndOfRun(), changed if condition to check whether filenameFixed is
  11246. true.
  11247. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  11248. In rangedFileCopy(), added try-catch block to properly close file
  11249. descriptors.
  11250. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  11251. Added afterEachIteration(), isFilenameFixed().
  11252. * Peer.cc: Changed choking strategy.
  11253. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  11254. * TrackerInitCommand.cc: Send completed event only once.
  11255. * DownloadEngine.cc: Added a call to afterEachIteration().
  11256. * TrackerUpdateCommand.cc: Do not stop execution after download
  11257. completes.
  11258. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  11259. connect the peers at most MAX_PEER_UPDATE when a peer list is
  11260. received from a tracker.
  11261. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  11262. Decreased the number of failure peers to delete to 0(just comment out
  11263. the line).
  11264. * Release 0.3.1
  11265. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11266. * PeerInteractionCommand.cc: added a call to
  11267. TorrentMan::unadvertisePiece in Destructor.
  11268. * PeerInteractionCommand.cc: make have message sent immediately
  11269. if the size of pending message queue is zero.
  11270. * TorrentMan.cc: set the maximum size of peer list to 250.
  11271. * TorrentMan.h: changed the container type of Peers and UsedPieces
  11272. to deque.
  11273. * Util.cc: fixed rangedFileCopy.
  11274. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  11275. to Constructor. Also, moved digest cleanup to Destructor.
  11276. * MetaFileUtil.cc: fixed memory leak
  11277. * replaced std::vector with std::deque.
  11278. * AbstractCommand.cc: casted timeout value to long long int.
  11279. * ChunkedEncoding.cc: fixed memory leak.
  11280. * PeerInteractionCommand.cc: casted timeout value to long long int.
  11281. * SleepCommand.cc: casted timeout value to long long int.
  11282. * Data.cc: fixed memory leak.
  11283. * Data.cc: fixed toLLInt().
  11284. * BitfieldMan.cc: fixed memory leak.
  11285. * TorrentMan.cc: initialized storeDir to ".".
  11286. * TorrentMan.cc: fixed memory leak.
  11287. * TorrentMan.cc: corrected file paths of splitted files.
  11288. * PeerAbstractCommand.cc: casted timeout to long long int.
  11289. * main.cc: added delete(req) and delete(te->diskWriter).
  11290. * RequestSlot.cc: casted timeout value to long long int.
  11291. * Request.cc: fixed memory leak.
  11292. * PendingMessage.cc: make HAVE messages sent only when peer does not
  11293. have the piece.
  11294. * Peer.{h,cc}: added hasPiece(int index).
  11295. * main.cc: corrected addCommand.
  11296. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11297. * BitTorrent protocol support added.
  11298. * Release 0.3.0
  11299. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11300. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  11301. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11302. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  11303. decoding did not work properly.
  11304. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11305. * DownloadEngine.h: included sys/time.h
  11306. * DownloadEngine.cc: remove sys/time.h
  11307. * Makefile.am (SUBDIRS): Add intl.
  11308. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  11309. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11310. * main.cc: correct help message for --http-auth-scheme.
  11311. * main.cc: changed e-mail address for bug reports.
  11312. * ja.po: added japanese translation.
  11313. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11314. * SimpleLogger.cc: flush log file instead of stdout.
  11315. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11316. * main.cc: Fixed command-line option: max-tries
  11317. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  11318. does not equal to seg.sp.
  11319. * DownloadCommand.cc: If EOF is got from the server and the total size
  11320. of file is not zero, then throw DlRetryEx.
  11321. * main.cc: Set the minium value of min-segment-size to 1024.
  11322. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11323. fails because of a regression since 0.2.0 release.
  11324. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11325. * HttpConnection.cc:
  11326. * common.h: defined the user agent name as macro
  11327. * DownloadEngine.{h, cc}:
  11328. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11329. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11330. * main.cc: Download complete/abort message is now generated by main.
  11331. * Makefile.am (SUBDIRS): Add m4.
  11332. (ACLOCAL_AMFLAGS): New variable.
  11333. (EXTRA_DIST): New variable.
  11334. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11335. * gettext: added gettext functionality
  11336. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11337. * AbstractCommand.cc:
  11338. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11339. unregister its cuid from SegmentMan.
  11340. * DownloadEngine.cc: .aria2 file was written when a downloading
  11341. failed with errors.
  11342. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11343. Added "User-Agent" header to CONNECT proxy request.
  11344. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11345. properly.
  11346. * Logger.h:
  11347. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11348. * ChunkedEncoding.cc: Added #include directive for strings.h
  11349. * Release 0.2.1
  11350. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11351. * Util.{h,cc}: added startsWith().
  11352. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11353. Util::endsWith().
  11354. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11355. * common.h: added #include directive of limit.h.
  11356. * DownloadEngine.cc: added #include directive of sys/time.h and
  11357. algorithm.
  11358. * Exception.h: added #include directive of stdio.h.
  11359. * AbstractCommand.h: added #include directive of sys/time.h.
  11360. * DownloadCommand.h: added #include directive of sys/time.h.
  11361. * *.h: added #include directive of common.h to all base classes.
  11362. subclasses' one was removed.
  11363. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11364. does not define these macros.
  11365. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11366. * Release 0.2.0
  11367. * main.cc:
  11368. * HttpInitiateConnectionCommand.{h,cc}:
  11369. * prefs.h:
  11370. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11371. We can now use GET command in http proxy.
  11372. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11374. that splits slowest segment of SegmentMan::commands vector.
  11375. This is the default split algorithm of aria2.
  11376. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11377. that splits first segment of SegmentMan::commands vector.
  11378. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11379. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11380. * Segment.h:
  11381. * SegmentMan.cc: Added speed field to Segment.h
  11382. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11383. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11384. * message.h: Change file size related %d to %lld.
  11385. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11386. * FtpInitiateConnectionCommand.{h,cc}:
  11387. * FtpNegotiationCommand.{h,cc}:
  11388. * FtpDownloadCommand.{h,cc}:
  11389. * FtpConnection.{h,cc}: Added FTP support
  11390. * SimpleLogger.cc: Log message now includes time information.
  11391. * main.cc: The value of --http-auth-scheme option is chagned from
  11392. 'BASIC' to 'basic'
  11393. * main.cc: Added --timeout command-line option.
  11394. * main.cc: Added --min-segment-size command-line option.
  11395. * main.cc: Added --max-retries command-line option.
  11396. * prefs.h: option string constants are now defined in prefs.h
  11397. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11398. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11399. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11400. with version 0.1.0's one.
  11401. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11402. * configure.in: Added --enable-ssl option to configure script.
  11403. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11404. cannot permit absoluteURI as Request-URI.
  11405. * HttpConnection.cc: Added Referer support.
  11406. * main.cc: Added referer command-line option.
  11407. * main.cc: Added rety-wait command-line option.
  11408. * Exception.h: Fixed formating bug in Exception::setMsg()
  11409. * SocketCore.{h,cc}:
  11410. * Socket.{h, cc}:
  11411. * Request.cc:
  11412. * InitiateConnectionCommandFactory.cc:
  11413. * HttpRequestCommand.cc: Added HTTPS support.
  11414. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11415. for SocketCore.
  11416. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11417. size is wrong
  11418. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11419. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11420. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11421. * Release 0.1.0