ChangeLog 473 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809
  1. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Included RecoverableException.h from main.cc
  3. * src/main.cc
  4. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6. now returns last error encountered in the HTTP/FTP downloads as a
  7. exit status value. If all downloads finished successfully, aria2
  8. returns 0. The error code is defined in src/DownloadResult.h.
  9. The error occurred in the download currently in progress is not
  10. reported as a last error. If no error has encountered but there
  11. are in progress or waiting downloads, aria2 returns 7.
  12. * src/AbstractCommand.cc
  13. * src/DlAbortEx.h
  14. * src/DlRetryEx.h
  15. * src/DownloadCommand.cc
  16. * src/DownloadFailureException.h
  17. * src/DownloadResult.h
  18. * src/FtpNegotiationCommand.cc
  19. * src/HttpSkipResponseCommand.cc
  20. * src/Makefile.am
  21. * src/MultiUrlRequestInfo.cc
  22. * src/MultiUrlRequestInfo.h
  23. * src/RecoverableException.h
  24. * src/RequestGroup.cc
  25. * src/RequestGroup.h
  26. * src/RequestGroupMan.cc
  27. * src/RequestGroupMan.h
  28. * src/URIResult.cc
  29. * src/URIResult.h
  30. * src/main.cc
  31. * src/option_processing.cc
  32. * test/RequestGroupTest.cc
  33. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  35. patch adds AdaptiveURISelector, which selects one of the bests
  36. mirrors for first and reserved connections. For supplementary
  37. ones, it returns mirrors which has not been tested yet, and if
  38. each of them already tested, returns mirrors which has to be
  39. tested again. Otherwise, it doesn't return anymore mirrors.
  40. * src/AdaptiveURISelector.cc
  41. * src/AdaptiveURISelector.h
  42. * src/FtpNegotiationCommand.cc
  43. * src/HttpResponseCommand.cc
  44. * src/Makefile.am
  45. * src/Makefile.in
  46. * src/OptionHandlerFactory.cc
  47. * src/RequestGroup.cc
  48. * src/RequestGroup.h
  49. * src/RequestGroupMan.cc
  50. * src/ServerStat.cc
  51. * src/ServerStat.h
  52. * src/ServerStatMan.cc
  53. * src/SpeedCalc.cc
  54. * src/URISelector.h
  55. * src/prefs.cc
  56. * src/prefs.h
  57. * test/RequestGroupManTest.cc
  58. * test/ServerStatManTest.cc
  59. * test/ServerStatTest.cc
  60. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Fixed unit test error.
  62. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  63. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. * Release 1.1.2
  65. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Updated Russian translation. Thanks to the translators.
  67. * po/ru.po
  68. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Added the description of --use-head option to man page.
  70. * doc/aria2c.1.txt
  71. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Bump up version number to 1.1.2
  73. * configure.ac
  74. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Added --use-head option to toggle whether HEAD method should be
  76. used in the first HTTP request. By default aria2 uses HEAD method
  77. as the first request. When the server doesn't recognize HEAD, then
  78. give aria2 --use-head=false to force aria2 to use GET method
  79. instead.
  80. * src/OptionHandlerFactory.cc
  81. * src/RequestGroupMan.cc
  82. * src/option_processing.cc
  83. * src/prefs.cc
  84. * src/prefs.h
  85. * src/usage_text.h
  86. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Fixed the bug that BitTorrent download doesn't finish when REJECT
  88. message is received before CHOKE message. The old implementation
  89. doen't clear the use-bit of the piece when recieved REJECT
  90. message.
  91. * src/DefaultBtMessageDispatcher.cc
  92. * test/DefaultBtMessageDispatcherTest.cc
  93. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. * Release 1.1.1
  95. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Bump up version number to 1.1.1.
  97. * configure.ac
  98. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Fixed the bug that --summary-interval=0 doesn't work. The summary
  100. is printed repeatedly.
  101. * src/ConsoleStatCalc.cc
  102. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. * Release 1.1.0
  104. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Added ifdef clause for conditional compilation.
  106. * src/main.cc
  107. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  109. translations. Thanks to all translators.
  110. * po/ja.po
  111. * po/ru.po
  112. * po/uk.po
  113. * po/zh_CN.po
  114. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Added the preceding ">>> " before the message "Printing the
  116. contents of file..." to make the output more readable.
  117. * src/main.cc
  118. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Added try-catch block in the loop in showFiles() to continue the
  120. operation even if the exception occurred in one file.
  121. * src/main.cc (showFiles)
  122. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Made messages in showFiles() translatable.
  124. * po/aria2.pot
  125. * src/main.cc
  126. * src/message.h
  127. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Print the contents of Torrent/Metalink files are printed without
  129. -T/-M options.
  130. * src/main.cc
  131. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Escaped '--' with '\--'
  133. * README
  134. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Updated "How to build" section in README. Mentioned about
  136. --with-ca-bundle compile option.
  137. * README
  138. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Bump up version number to 1.1.0.
  140. * configure.ac
  141. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Added a note for --dht-listen-port option.
  143. * doc/aria2c.1.txt
  144. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Update doc for --realtime-chunk-checksum option.
  146. * doc/aria2c.1.txt
  147. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Update doc for --realtime-chunk-checksum option.
  149. * src/usage_text.h
  150. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Updated French, Japanese, Russian and Ukrainian translations.
  152. Thanks to all translators.
  153. * po/fr.po
  154. * po/ja.po
  155. * po/ru.po
  156. * po/uk.po
  157. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Renamed aria2c.pot to aria2.pot
  159. * po/aria2.pot
  160. * po/aria2c.pot: Removed.
  161. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Removed MetaEntry.h
  163. * src/Makefile.am
  164. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Rename file by appending digits if a local file exists and its
  166. file size is larger than that of remote file with --continue
  167. option. The old implementation just throws exception in such case.
  168. * src/RequestGroup.cc
  169. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Fixed the bug that download progress summary is not printed in the
  171. interval specified by the option.
  172. * src/ConsoleStatCalc.cc
  173. * src/ConsoleStatCalc.h
  174. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Fixed compiler warning
  176. * src/Cookie.cc
  177. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Fixed the cookie implementation based on RFC2965.
  179. Now if a value in domain field is not started with dot, then
  180. prepend dot. That means a cookie with domain=sf.net is sent to
  181. wiki.sf.net.
  182. * src/Cookie.cc
  183. * test/CookieParserTest.cc
  184. * test/CookieStorageTest.cc
  185. * test/CookieTest.cc
  186. * test/NsCookieParserTest.cc
  187. * test/Sqlite3MozCookieParserTest.cc
  188. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Fixed the bug that causes corrupted downloads if HTTP pipelining
  190. is enabled and the server doesn't support keep-alive.
  191. * src/AbstractCommand.cc
  192. * src/DownloadCommand.cc
  193. * src/HttpDownloadCommand.cc
  194. * src/HttpDownloadCommand.h
  195. * src/HttpResponseCommand.cc
  196. * src/Request.cc
  197. * src/Request.h
  198. * test/RequestTest.cc
  199. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Removed Dictionary/List/Data and its related classes.
  201. * src/BencodeVisitor.cc: Removed.
  202. * src/BencodeVisitor.h: Removed.
  203. * src/Data.cc: Removed.
  204. * src/Data.h: Removed.
  205. * src/Dictionary.cc: Removed.
  206. * src/Dictionary.h: Removed.
  207. * src/List.cc: Removed.
  208. * src/List.h: Removed.
  209. * src/Makefile.am
  210. * src/MetaEntry.h: Removed.
  211. * src/MetaEntryVisitor.h: Removed.
  212. * src/MetaFileUtil.cc: Removed.
  213. * src/MetaFileUtil.h: Removed.
  214. * test/BencodeVisitorTest.cc: Removed.
  215. * test/DataTest.cc: Removed.
  216. * test/DictionaryTest.cc: Removed.
  217. * test/ListTest.cc: Removed.
  218. * test/Makefile.am
  219. * test/MetaFileUtilTest.cc: Removed.
  220. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Removed include of MetaEntry.h
  222. * test/DHTMessageTrackerEntryTest.cc
  223. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Use BDE instead of Dictionary/List/Data.
  225. * src/AnnounceList.cc
  226. * src/AnnounceList.h
  227. * test/AnnounceListTest.cc
  228. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Use BDE instead of Dictionary/List/Data.
  230. * src/DHTAbstractMessage.cc
  231. * src/DHTAbstractMessage.h
  232. * src/DHTAnnouncePeerMessage.cc
  233. * src/DHTAnnouncePeerMessage.h
  234. * src/DHTAnnouncePeerReplyMessage.cc
  235. * src/DHTAnnouncePeerReplyMessage.h
  236. * src/DHTFindNodeMessage.cc
  237. * src/DHTFindNodeMessage.h
  238. * src/DHTFindNodeReplyMessage.cc
  239. * src/DHTFindNodeReplyMessage.h
  240. * src/DHTGetPeersMessage.cc
  241. * src/DHTGetPeersMessage.h
  242. * src/DHTGetPeersReplyMessage.cc
  243. * src/DHTGetPeersReplyMessage.h
  244. * src/DHTMessageFactory.h
  245. * src/DHTMessageFactoryImpl.cc
  246. * src/DHTMessageFactoryImpl.h
  247. * src/DHTMessageReceiver.cc
  248. * src/DHTMessageTracker.cc
  249. * src/DHTMessageTracker.h
  250. * src/DHTPingMessage.cc
  251. * src/DHTPingMessage.h
  252. * src/DHTPingReplyMessage.cc
  253. * src/DHTPingReplyMessage.h
  254. * src/DHTQueryMessage.cc
  255. * src/DHTQueryMessage.h
  256. * src/DHTResponseMessage.cc
  257. * src/DHTResponseMessage.h
  258. * test/DHTAnnouncePeerMessageTest.cc
  259. * test/DHTAnnouncePeerReplyMessageTest.cc
  260. * test/DHTFindNodeMessageTest.cc
  261. * test/DHTFindNodeReplyMessageTest.cc
  262. * test/DHTGetPeersMessageTest.cc
  263. * test/DHTGetPeersReplyMessageTest.cc
  264. * test/DHTMessageFactoryImplTest.cc
  265. * test/DHTMessageTrackerTest.cc
  266. * test/DHTPingMessageTest.cc
  267. * test/DHTPingReplyMessageTest.cc
  268. * test/MockDHTMessageFactory.h
  269. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  270. Added tests the case where length < 0 is specified.
  271. * test/BencodeTest.cc
  272. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Fixed memory leak in decoderawstring()
  274. * src/bencode.cc
  275. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Added missing #ifdef guard. Added uc() function for String and
  277. removeKey() for Dict.
  278. * src/bencode.cc
  279. * src/bencode.h
  280. * test/BencodeTest.cc
  281. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Use BDE instead of Dictionary/List/Data.
  283. * src/HandshakeExtensionMessage.cc
  284. * src/HandshakeExtensionMessage.h
  285. * test/HandshakeExtensionMessageTest.cc
  286. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Added --max-overall-upload-limit option. This option limits the
  288. overall upload speed. Stated in help message that the existing
  289. --max-upload-limit option limits the upload speed per each
  290. torrent. Man page is also updated.
  291. * doc/aria2c.1.txt
  292. * src/DefaultBtMessageDispatcher.cc
  293. * src/DefaultBtMessageDispatcher.h
  294. * src/OptionHandlerFactory.cc
  295. * src/PeerInteractionCommand.cc
  296. * src/option_processing.cc
  297. * src/prefs.cc
  298. * src/prefs.h
  299. * src/usage_text.h
  300. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Use BDE instead of Dictionary/List/Data classes.
  302. * src/CompactPeerListProcessor.cc
  303. * src/CompactPeerListProcessor.h
  304. * src/DefaultBtAnnounce.cc
  305. * src/DefaultBtContext.cc
  306. * src/DefaultBtContext.h
  307. * src/DefaultPeerListProcessor.cc
  308. * src/DefaultPeerListProcessor.h
  309. * src/DelegatingPeerListProcessor.cc
  310. * src/DelegatingPeerListProcessor.h
  311. * src/PeerListProcessor.h
  312. * src/UTPexExtensionMessage.cc
  313. * src/Util.h
  314. * src/message.h
  315. * test/DefaultBtContextTest.cc
  316. * test/DefaultPeerListProcessorTest.cc
  317. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Added bencode helper functions and BDE class.
  319. They will replace MetaFileUtil and Dictionary/List/Data classes.
  320. * src/Makefile.am
  321. * src/bencode.cc
  322. * src/bencode.h
  323. * test/BencodeTest.cc
  324. * test/Makefile.am
  325. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Fixed the bug that bad URI is sent to the tracker when the announe
  327. URI in torrent file includes query.
  328. * src/DefaultBtAnnounce.cc
  329. * test/DefaultBtAnnounceTest.cc
  330. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Added Option::blank().
  332. Use !Option::blank(name) instead of Option::defined(name) for
  333. the options that take filename.
  334. * src/MultiUrlRequestInfo.cc
  335. * src/Option.cc
  336. * src/Option.h
  337. * src/main.cc
  338. * src/option_processing.cc
  339. * test/OptionTest.cc
  340. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Documented the default value of --check-certificate option in man
  342. page.
  343. * doc/aria2c.1.txt
  344. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Enabled --check-certificate by default. Added compile
  346. time(configure) option --with-ca-bundle to specify CA bundle.
  347. Warn if --check-certificate=true and --ca-certificate is not
  348. specified or loading CA certificate is failed.
  349. * configure.ac
  350. * src/MultiUrlRequestInfo.cc
  351. * src/OptionHandlerFactory.cc
  352. * src/message.h
  353. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Mentioned https tag in help option.
  355. * doc/aria2c.1.txt
  356. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Added `https' tag to help option category. Added https tag to
  358. --ca-certificate, --certificate, --check-certificate and
  359. --private-key option.
  360. * src/OptionHandlerFactory.cc
  361. * src/help_tags.h
  362. * src/option_processing.cc
  363. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Changed the package name from `aria2c' to `aria2' in order to fix
  365. the packaging issue in Debian and Fedora. The name of the
  366. executable is not changed.
  367. * configure.ac
  368. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Fixed typos
  370. * src/usage_text.h
  371. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Fixed typos and updated doc.
  373. * README
  374. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Fixed typos
  376. * doc/aria2c.1.txt
  377. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Fixed typos
  379. * src/usage_text.h
  380. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Print a message when no files to download.
  382. * src/download_helper.cc
  383. * src/main.cc
  384. * src/message.h
  385. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. RFC3986 complied Percent-Encoding(urlencode).
  387. Use uppercase hexadecimal digits for encoded text instead of lowercase
  388. ones.
  389. * src/Request.cc
  390. * src/Util.cc
  391. * src/Util.h
  392. * test/BtHandshakeMessageTest.cc
  393. * test/DefaultBtAnnounceTest.cc
  394. * test/DefaultBtContextTest.cc
  395. * test/RequestTest.cc
  396. * test/UtilTest.cc
  397. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Fixed the bug that prevents aria2 from downloading 0-length files
  399. via HTTP/FTP.
  400. * src/DefaultBtContext.cc
  401. * src/DefaultBtContext.h
  402. * src/DownloadContext.h
  403. * src/FtpNegotiationCommand.cc
  404. * src/HttpResponseCommand.cc
  405. * src/HttpResponseCommand.h
  406. * src/RequestGroup.cc
  407. * src/SingleFileDownloadContext.cc
  408. * src/SingleFileDownloadContext.h
  409. * test/BtPostDownloadHandlerTest.cc
  410. * test/MetalinkPostDownloadHandlerTest.cc
  411. * test/MockBtContext.h
  412. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  414. * src/option_processing.cc
  415. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Applied aria2-1.0.1-mingw.patch.
  417. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  418. mingw.
  419. Collected 4th and 5th argument types for getsockopt and setsockopt.
  420. * src/SocketCore.cc
  421. * src/a2netcompat.h
  422. * test/SocketCoreTest.cc
  423. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. * Release 1.0.1
  425. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Updated Ukrainian and Norwegian Nynorsk translations.
  427. Thanks to all translators.
  428. * po/nn.po
  429. * po/uk.po
  430. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Don't show download result when -S option is used.
  432. * src/main.cc
  433. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Bump up version number to 1.0.1
  435. * configure.ac
  436. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Closed files after the test cases in MultiDiskWriterTest::
  438. testResetDiskWriterEntries(). This will fix the unit test error
  439. in mingw32 build.
  440. * test/MultiDiskWriterTest.cc
  441. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Use HEAD method to get file size from HTTP server for segmented
  443. downloading.
  444. The request to the BitTorrent Tracker always uses GET method because
  445. the response of the tracker is small and it doesn't need segmented
  446. download.
  447. * src/FtpNegotiationCommand.cc
  448. * src/HttpRequest.cc
  449. * src/HttpResponseCommand.cc
  450. * src/HttpSkipResponseCommand.cc
  451. * src/RequestGroup.cc
  452. * src/RequestGroup.h
  453. * src/TrackerWatcherCommand.cc
  454. * test/HttpRequestTest.cc
  455. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Fixed the bug that causes floating exception when -T option is used and
  457. no URIs are given.
  458. * src/download_helper.cc
  459. * test/DownloadHelperTest.cc
  460. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  461. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  462. errors in MinGW:
  463. Closed file after saving server stats (RequestGroupMan.cc)
  464. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  465. Ignored case & handled 2-digit years (strptime.c)
  466. Added missing suseconds_t definition (a2time.h)
  467. Fixed socket CLOSE() define (SocketCore.cc)
  468. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  469. Changed utime() test values from x000 to x00000 as MinGW failed on
  470. values less than timezone offset from Unix epoch
  471. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  472. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  473. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  474. handle negative dates (CookieParserTest.cc)
  475. * src/a2time.h
  476. * src/FtpConnection.cc
  477. * src/RequestGroupMan.cc
  478. * src/SocketCore.cc
  479. * src/strptime.c
  480. * test/CookieParserTest.cc
  481. * test/CopyDiskAdaptorTest.cc
  482. * test/FileTest.cc
  483. * test/FtpConnectionTest.cc
  484. * test/MultiDiskAdaptorTest.cc
  485. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  487. * doc/aria2c.1.txt
  488. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. * Release 1.0.0
  490. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Added '~' to reserved characters.
  492. * src/Util.cc
  493. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Do not urlencode Request::url in setUrl() because we want unmodified
  495. URL using Request::getUrl()
  496. * src/Request.cc
  497. * src/Request.h
  498. * test/RequestTest.cc
  499. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  501. Thanks to all translators.
  502. * po/bg.po
  503. * po/fr.po
  504. * po/ja.po
  505. * po/ru.po
  506. * po/uk.po
  507. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Bump up version number to 1.0.0
  509. * configure.ac
  510. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Added nosqlite3 build to build_test.sh.
  512. Renamed noxml as expat.
  513. * build_test.sh
  514. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Updated INPUT FILE section.
  516. * doc/aria2c.1.txt
  517. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  519. on big endian systems because test .aria2 files are made for little
  520. endian systems.
  521. * test/DefaultBtProgressInfoFileTest.cc
  522. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Dropped ares support.
  524. * README
  525. * configure.ac
  526. * m4/libares.m4: Removed.
  527. * src/AsyncNameResolver.cc
  528. * src/Makefile.am
  529. * test/Makefile.am
  530. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  532. Removed const qualifier from DiskWriter::size().
  533. * src/AbstractDiskWriter.cc
  534. * src/AbstractDiskWriter.h
  535. * src/ByteArrayDiskWriter.cc
  536. * src/ByteArrayDiskWriter.h
  537. * src/DiskWriter.h
  538. * test/ByteArrayDiskWriterTest.cc
  539. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Fixed the bug that causes segmentation fault/bus error during executing
  541. choking algorithm while seeding. This is caused by improper
  542. implementation of compare function which returns inconsistent results
  543. depending on the timing of last unchoke.
  544. * src/BtSeederStateChoke.cc
  545. * src/BtSeederStateChoke.h
  546. * src/DefaultPeerStorage.cc
  547. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Removed TODO
  549. * TODO
  550. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Added a section that explains how to pass argument to options that
  552. takes optional arguments with its short form.
  553. * doc/aria2c.1.txt
  554. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Added -u for the short form of --max-upload-limit option.
  556. * doc/aria2c.1.txt
  557. * src/option_processing.cc
  558. * src/usage_text.h
  559. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Added -V for the short form of --check-integrity option.
  561. Now the argument of --check-integrity option is optional:
  562. if it is omitted, it is evaluated as true.
  563. * doc/aria2c.1.txt
  564. * src/option_processing.cc
  565. * src/usage_text.h
  566. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Made the default value of --ftp-pasv option set to true and it can take
  568. true/false values.
  569. * src/OptionHandlerFactory.cc
  570. * src/option_processing.cc
  571. * src/usage_text.h
  572. * doc/aria2c.1.txt
  573. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Given custom random number generator to std::random_shuffle.
  575. * src/AnnounceList.cc
  576. * src/BtLeecherStateChoke.cc
  577. * src/BtSeederStateChoke.cc
  578. * src/DefaultBtRequestFactory.cc
  579. * src/MetalinkEntry.cc
  580. * src/RarestPieceSelector.cc
  581. * src/SimpleRandomizer.cc
  582. * src/SimpleRandomizer.h
  583. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  584. Now the default value of --enable-direct-io is true.
  585. * src/OptionHandlerFactory.cc
  586. * doc/aria2c.1.txt
  587. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Erase peer before executing onReturningPeer and onErasingPeer
  589. because choking algorithm called from onReturningPeer doesn't
  590. like erasing peer in the active peer list.
  591. * src/DefaultPeerStorage.cc
  592. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Instead of creating special filename in createDownloadResult() if
  594. inMemoryDownload() is true, now it is done in getFilePath().
  595. * src/RequestGroup.cc
  596. * test/RequestGroupTest.cc
  597. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Print "[MEMORY]" and filename if a file is not saved in disk and just
  599. processed in memory. This is the fix for previous comment out.
  600. * src/MemoryBufferPreDownloadHandler.cc
  601. * src/RequestGroup.cc
  602. * src/RequestGroup.h
  603. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Commented out the code which sets virtual directory path "[MEMORY]"
  605. propagate directory to store to following RequestGroup.
  606. * src/MemoryBufferPreDownloadHandler.cc
  607. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Bump up version number to 1.0.0b
  609. * configure.ac
  610. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Added input_uris.txt to EXTRA_DIST
  612. * test/Makefile.am
  613. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Removed PeerObject.h from Makefile.am
  615. * src/Makefile.am
  616. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Avoid slow seeding
  618. * src/PeerInteractionCommand.cc
  619. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Updated usage for -i option.
  621. * src/usage_text.h (TEXT_INPUT_FILE)
  622. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Added INPUT FILE section to man page.
  624. Escaped fake URLs.
  625. * doc/aria2c.1.txt
  626. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Fixed wrong note position for -o option.
  628. * doc/aria2c.1.txt
  629. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Fixed compile error without SSL/XML library.
  631. * src/DefaultBtProgressInfoFile.cc
  632. * src/DefaultBtProgressInfoFile.h
  633. * src/FileMetalinkParserState.cc
  634. * src/RequestGroup.h
  635. * src/SocketCore.cc
  636. * src/SocketCore.h
  637. * src/VerificationMetalinkParserState.cc
  638. * src/download_helper.h
  639. * src/main.cc
  640. * test/DefaultBtProgressInfoFileTest.cc
  641. * test/DownloadHelperTest.cc
  642. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Rewritten URI handling functions. They are now provided as a testable
  644. functions.
  645. * src/Makefile.am
  646. * src/RequestGroup.cc
  647. * src/RequestGroup.h
  648. * src/download_helper.cc
  649. * src/download_helper.h
  650. * src/main.cc
  651. * test/DownloadHelperTest.cc
  652. * test/Makefile.am
  653. * test/input_uris.txt
  654. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Quickly terminate commands when ctrl-c is pressed.
  656. * src/DownloadEngine.cc
  657. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Quickly terminate idle commands when download finished.
  659. * src/AbstractCommand.cc
  660. * src/DownloadCommand.cc
  661. * src/DownloadEngine.cc
  662. * src/DownloadEngine.h
  663. * src/SleepCommand.cc
  664. * src/SleepCommand.h
  665. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Added the ability to specify output filename and directory in input
  667. file.
  668. Additional parameters are added in the following line of URIs
  669. with proceeding white space(s), 1 parameter in 1 line.
  670. The parameter names are the same with the command-line option name
  671. without proceeding "--". Not all the options are available here:
  672. at the moment, 'dir' and 'out' options are avialable.
  673. Please note that out option has no effect against Metalink or BitTorrent
  674. downloads.
  675. Example input file:
  676. http://host/foo-1.1.tar.bz2
  677. out=foo.tar.bz2
  678. dir=/tmp/downloads
  679. http://host/thundermonkey-2.0.tar.bz2
  680. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  681. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  682. thundermonkey-2.0.tar.bz2 is saved as
  683. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  684. * src/BtPostDownloadHandler.cc
  685. * src/Metalink2RequestGroup.cc
  686. * src/Metalink2RequestGroup.h
  687. * src/MetalinkPostDownloadHandler.cc
  688. * src/UriListParser.cc
  689. * src/UriListParser.h
  690. * src/main.cc
  691. * test/Metalink2RequestGroupTest.cc
  692. * test/UriListParserTest.cc
  693. * test/filelist1.txt
  694. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Fixed error when SSL library is not found.
  696. * configure.ac
  697. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Cross referenced among -s, -C and -j options.
  699. Updated usage of -C and -s options.
  700. * src/usage_text.h
  701. * doc/aria2c.1.txt
  702. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Fixed bad cast in 32bit platforms.
  704. * test/DefaultPieceStorageTest.cc
  705. (DefaultPieceStorageTest::testGetCompletedLength)
  706. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Fixed unit test fails on 32bit platforms.
  708. * test/CookieParserTest.cc
  709. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Show an average download speed in Download results.
  711. * src/BtFileAllocationEntry.cc
  712. * src/DefaultPieceStorage.cc
  713. * src/DownloadContext.cc
  714. * src/DownloadContext.h
  715. * src/DownloadResult.h
  716. * src/RequestGroup.cc
  717. * src/RequestGroupMan.cc
  718. * src/StreamFileAllocationEntry.cc
  719. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Fixed the bug that metalink file is not processed if Content-Type
  721. field has a paramter.
  722. * src/HttpResponse.cc
  723. * src/HttpResponse.h
  724. * test/HttpResponseTest.cc
  725. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Removed unused code.
  727. * src/DefaultBtAnnounce.cc
  728. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  730. the value larger than DefaultPieceStorage::getTotalLength() when
  731. in flight pieces are involved.
  732. * src/DefaultPieceStorage.cc
  733. * test/DefaultPieceStorageTest.cc
  734. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Bump up version number to 1.0.0a.
  736. * configure.ac
  737. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Updated configure.ac
  739. * configure.ac
  740. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Added usege for proxy.
  742. * doc/aria2c.1.txt
  743. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Added usage for --ca-certificate, --certificate, --private-key and
  745. --check-certificate options.
  746. * doc/aria2c.1.txt
  747. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Updated man page
  749. * doc/aria2c.1.txt
  750. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Added --no-proxy option. It receives comman separated hostname or
  752. domains to which proxy should not be used.
  753. aria2 honors the environment variable no_proxy to override no-proxy
  754. value in configuration file. The user can override the environment
  755. variable no_proxy with --no-proxy command-line option.
  756. * src/AbstractCommand.cc
  757. * src/OptionHandlerFactory.cc
  758. * src/option_processing.cc
  759. * src/prefs.cc
  760. * src/prefs.h
  761. * src/usage_text.h
  762. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Added the ability to verify peer in SSL/TLS using given CA certificates.
  764. The CA certificates are specified in --ca-certificate option.
  765. By default, the verification is disabled. Use --check-certificate
  766. option to enable it.
  767. * src/HttpRequestCommand.cc
  768. * src/LibgnutlsTLSContext.cc
  769. * src/LibgnutlsTLSContext.h
  770. * src/LibsslTLSContext.cc
  771. * src/LibsslTLSContext.h
  772. * src/MultiUrlRequestInfo.cc
  773. * src/OptionHandlerFactory.cc
  774. * src/SocketCore.cc
  775. * src/SocketCore.h
  776. * src/a2functional.h
  777. * src/message.h
  778. * src/option_processing.cc
  779. * src/prefs.cc
  780. * src/prefs.h
  781. * src/usage_text.h
  782. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Added client certificate authentication for SSL/TLS.
  784. Currently a private key must be decrypted for use with aria2.
  785. If a user accidentally gives encrypted file to aria2 then following
  786. thing happens:
  787. If encrypted private key is given to aria2, it behaves differently
  788. depending on the ssl library it uses. If aria2 built with openssl then
  789. openssl prompts the user for password. If aria2 build with gnutls then
  790. aria2 exists with error at start up.
  791. * src/DownloadEngineFactory.cc
  792. * src/MultiUrlRequestInfo.cc
  793. * src/OptionHandlerFactory.cc
  794. * src/option_processing.cc
  795. * src/prefs.cc
  796. * src/prefs.h
  797. * src/usage_text.h
  798. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Introduced TLSContext that holds TLS related data that can be shared
  800. with multiple SSL connections.
  801. * src/DownloadEngineFactory.cc
  802. * src/LibgnutlsTLSContext.cc
  803. * src/LibgnutlsTLSContext.h
  804. * src/LibsslTLSContext.cc
  805. * src/LibsslTLSContext.h
  806. * src/Makefile.am
  807. * src/SocketCore.cc
  808. * src/SocketCore.h
  809. * src/TLSContext.h
  810. * src/message.h
  811. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Fixed the bug that the DiskWriter of the first FileEntry whose
  813. `needsFileAllocation' property is false is not created
  814. even if it shares a piece with next FileEntry which `requested' property
  815. is true.
  816. Fixed the bug that zero-length file is not created if pre file
  817. allocation is not done.
  818. * src/MultiDiskAdaptor.cc
  819. * src/MultiDiskAdaptor.h
  820. * test/MultiDiskAdaptorTest.cc
  821. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  822. Added the ability to pool proxy connection.
  823. The conneciton in FTP with proxy-method=GET is not pooled.
  824. Proxy-Connection header will not be sent when sending CONNECT method.
  825. * src/DownloadEngine.cc
  826. * src/DownloadEngine.h
  827. * src/FtpFinishDownloadCommand.cc
  828. * src/FtpInitiateConnectionCommand.cc
  829. * src/FtpNegotiationCommand.cc
  830. * src/HttpDownloadCommand.cc
  831. * src/HttpInitiateConnectionCommand.cc
  832. * src/HttpRequest.cc
  833. * src/HttpRequest.h
  834. * src/HttpResponse.cc
  835. * src/HttpSkipResponseCommand.cc
  836. * test/HttpRequestTest.cc
  837. * test/HttpResponseTest.cc
  838. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  839. Handle date before epoch.
  840. To create *bad* Time object, call Time::null().
  841. * src/CookieParser.cc
  842. * src/FtpConnection.cc
  843. * src/FtpConnection.h
  844. * src/FtpNegotiationCommand.cc
  845. * src/RequestGroup.cc
  846. * src/TimeA2.cc
  847. * src/TimeA2.h
  848. * test/CookieParserTest.cc
  849. * test/FtpConnectionTest.cc
  850. * test/TimeTest.cc
  851. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  852. Added support for following envrionment variables: http_proxy,
  853. https_proxy, ftp_proxy and all_proxy.
  854. Each variable is equivalent to the aria2 option whose name is the
  855. variable name with '_' replaced with '-'.
  856. They overrides options specified in aria2.conf file.
  857. The envrionment variables can be overrode using command-line option.
  858. * src/option_processing.cc
  859. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  860. Renamed --http-proxy-method as --proxy-method.
  861. * src/AbstractCommand.cc
  862. * src/FtpInitiateConnectionCommand.cc
  863. * src/HttpInitiateConnectionCommand.cc
  864. * src/OptionHandlerFactory.cc
  865. * src/option_processing.cc
  866. * src/prefs.cc
  867. * src/prefs.h
  868. * src/usage_text.h
  869. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  870. Deprecated --http-proxy-user and --http-proxy-passwd options.
  871. Added --https-proxy, --ftp-proxy and --all-proxy options.
  872. Above 3 options and --http-proxy option can handle proxy in URL format
  873. like: http://user:passwd@host:port.
  874. If a proxy requires user/password, they must be specified in a URL.
  875. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  876. instead.
  877. * src/AbstractCommand.cc
  878. * src/AbstractCommand.h
  879. * src/AbstractProxyRequestCommand.cc
  880. * src/AbstractProxyRequestCommand.h
  881. * src/AuthConfigFactory.cc
  882. * src/AuthConfigFactory.h
  883. * src/FtpFinishDownloadCommand.cc
  884. * src/FtpInitiateConnectionCommand.cc
  885. * src/FtpInitiateConnectionCommand.h
  886. * src/FtpNegotiationCommand.cc
  887. * src/FtpTunnelRequestCommand.cc
  888. * src/FtpTunnelRequestCommand.h
  889. * src/HttpDownloadCommand.cc
  890. * src/HttpInitiateConnectionCommand.cc
  891. * src/HttpInitiateConnectionCommand.h
  892. * src/HttpProxyRequestCommand.cc
  893. * src/HttpProxyRequestCommand.h
  894. * src/HttpRequest.cc
  895. * src/HttpRequest.h
  896. * src/HttpRequestCommand.cc
  897. * src/HttpRequestCommand.h
  898. * src/HttpSkipResponseCommand.cc
  899. * src/InitiateConnectionCommand.cc
  900. * src/InitiateConnectionCommand.h
  901. * src/OptionHandlerFactory.cc
  902. * src/OptionHandlerImpl.h
  903. * src/Request.cc
  904. * src/option_processing.cc
  905. * src/prefs.cc
  906. * src/prefs.h
  907. * src/usage_text.h
  908. * test/AuthConfigFactoryTest.cc
  909. * test/HttpRequestTest.cc
  910. * test/OptionHandlerTest.cc
  911. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  912. Execute choking algorithm when unchoked and interested peer is
  913. disconected.
  914. * src/DefaultPeerStorage.cc
  915. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  916. Added testcase for BtNotInterestedMessage from unchoked peer.
  917. * test/BtNotInterestedMessageTest.cc
  918. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  919. Execute choking algorithm when BtInterestedMessage arrives from
  920. unchoked peer.
  921. * src/BtInterestedMessage.cc
  922. * src/BtInterestedMessage.h
  923. * src/DefaultBtMessageFactory.cc
  924. * test/BtInterestedMessageTest.cc
  925. * test/MockPeerStorage.h
  926. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  927. AuthConfigFactory is now part of DownloadEngine.
  928. * src/AbstractProxyRequestCommand.cc
  929. * src/AuthConfigFactory.h
  930. * src/DownloadEngine.cc
  931. * src/DownloadEngine.h
  932. * src/FtpConnection.cc
  933. * src/FtpConnection.h
  934. * src/FtpNegotiationCommand.cc
  935. * src/HttpConnection.cc
  936. * src/HttpRequest.cc
  937. * src/HttpRequest.h
  938. * src/HttpRequestCommand.cc
  939. * src/HttpResponse.cc
  940. * src/HttpResponseCommand.cc
  941. * src/HttpSkipResponseCommand.cc
  942. * src/MultiUrlRequestInfo.cc
  943. * src/main.cc
  944. * test/FtpConnectionTest.cc
  945. * test/HttpRequestTest.cc
  946. * test/HttpResponseTest.cc
  947. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  948. Corrected catched exception type.
  949. * src/ServerStatMan.cc
  950. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  951. DNSCache is now part of DownloadEngine.
  952. * src/DNSCache.h
  953. * src/DownloadEngine.cc
  954. * src/DownloadEngine.h
  955. * src/InitiateConnectionCommand.cc
  956. * src/MultiUrlRequestInfo.cc
  957. * test/Makefile.am
  958. * test/Makefile.in
  959. * test/SimpleDNSCacheTest.cc
  960. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  961. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  962. DownloadEngine.
  963. * src/ActivePeerConnectionCommand.cc
  964. * src/BtSetup.cc
  965. * src/CUIDCounter.h
  966. * src/DHTSetup.cc
  967. * src/DownloadCommand.cc
  968. * src/DownloadEngine.cc
  969. * src/DownloadEngine.h
  970. * src/DownloadEngineFactory.cc
  971. * src/FileAllocationDispatcherCommand.cc
  972. * src/InitiatorMSEHandshakeCommand.cc
  973. * src/PeerInitiateConnectionCommand.cc
  974. * src/PeerInteractionCommand.cc
  975. * src/PeerListenCommand.cc
  976. * src/RequestGroup.cc
  977. * src/StreamFileAllocationEntry.cc
  978. * src/TrackerWatcherCommand.cc
  979. * src/main.cc
  980. * test/RequestGroupManTest.cc
  981. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  982. Implemented commented code in BtSeederStateChoke
  983. * src/BtSeederStateChoke.cc
  984. * src/Peer.cc
  985. * src/Peer.h
  986. * src/PeerInteractionCommand.cc
  987. * src/PeerSessionResource.cc
  988. * src/PeerSessionResource.h
  989. * test/MockBtMessageDispatcher.h
  990. * test/PeerSessionResourceTest.cc
  991. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  992. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  993. its object.
  994. * src/AbstractBtMessage.cc
  995. * src/ActivePeerConnectionCommand.cc
  996. * src/ActivePeerConnectionCommand.h
  997. * src/BtContextAwareCommand.cc
  998. * src/BtContextAwareCommand.h
  999. * src/BtExtendedMessage.cc
  1000. * src/BtExtendedMessage.h
  1001. * src/BtInterestedMessage.cc
  1002. * src/BtInterestedMessage.h
  1003. * src/BtNotInterestedMessage.cc
  1004. * src/BtNotInterestedMessage.h
  1005. * src/BtRegistry.cc
  1006. * src/BtRegistry.h
  1007. * src/BtSeederStateChoke.cc
  1008. * src/BtSetup.cc
  1009. * src/DHTGetPeersCommand.cc
  1010. * src/DHTGetPeersCommand.h
  1011. * src/DHTPeerAnnounceEntry.cc
  1012. * src/DHTPeerAnnounceEntry.h
  1013. * src/DHTPeerAnnounceStorage.cc
  1014. * src/DHTPeerAnnounceStorage.h
  1015. * src/DHTPeerLookupTask.cc
  1016. * src/DHTPeerLookupTask.h
  1017. * src/DHTSetup.cc
  1018. * src/DHTSetup.h
  1019. * src/DHTTaskFactory.h
  1020. * src/DHTTaskFactoryImpl.cc
  1021. * src/DHTTaskFactoryImpl.h
  1022. * src/DefaultBtAnnounce.cc
  1023. * src/DefaultBtInteractive.cc
  1024. * src/DefaultBtInteractive.h
  1025. * src/DefaultBtMessageDispatcher.cc
  1026. * src/DefaultBtMessageDispatcher.h
  1027. * src/DefaultBtMessageFactory.cc
  1028. * src/DefaultBtMessageFactory.h
  1029. * src/DefaultBtMessageReceiver.cc
  1030. * src/DefaultBtProgressInfoFile.cc
  1031. * src/DefaultBtProgressInfoFile.h
  1032. * src/DefaultBtRequestFactory.cc
  1033. * src/DefaultBtRequestFactory.h
  1034. * src/DefaultExtensionMessageFactory.cc
  1035. * src/DefaultExtensionMessageFactory.h
  1036. * src/DefaultPeerStorage.cc
  1037. * src/DefaultPeerStorage.h
  1038. * src/DownloadEngine.cc
  1039. * src/DownloadEngine.h
  1040. * src/InitiatorMSEHandshakeCommand.cc
  1041. * src/InitiatorMSEHandshakeCommand.h
  1042. * src/MSEHandshake.cc
  1043. * src/MSEHandshake.h
  1044. * src/Makefile.am
  1045. * src/Makefile.in
  1046. * src/PeerChokeCommand.cc
  1047. * src/PeerChokeCommand.h
  1048. * src/PeerInitiateConnectionCommand.cc
  1049. * src/PeerInitiateConnectionCommand.h
  1050. * src/PeerInteractionCommand.cc
  1051. * src/PeerInteractionCommand.h
  1052. * src/PeerObject.h
  1053. * src/PeerReceiveHandshakeCommand.cc
  1054. * src/PeerReceiveHandshakeCommand.h
  1055. * src/ReceiverMSEHandshakeCommand.cc
  1056. * src/RequestGroup.cc
  1057. * src/RequestGroup.h
  1058. * src/RequestGroupMan.cc
  1059. * src/RequestGroupMan.h
  1060. * src/SeedCheckCommand.cc
  1061. * src/SeedCheckCommand.h
  1062. * src/ShareRatioSeedCriteria.h
  1063. * src/SimpleBtMessage.cc
  1064. * src/TrackerWatcherCommand.cc
  1065. * src/TrackerWatcherCommand.h
  1066. * src/UTPexExtensionMessage.cc
  1067. * src/UTPexExtensionMessage.h
  1068. * test/BtCancelMessageTest.cc
  1069. * test/BtChokeMessageTest.cc
  1070. * test/BtExtendedMessageTest.cc
  1071. * test/BtInterestedMessageTest.cc
  1072. * test/BtNotInterestedMessageTest.cc
  1073. * test/BtPieceMessageTest.cc
  1074. * test/BtPortMessageTest.cc
  1075. * test/BtRegistryTest.cc
  1076. * test/BtRejectMessageTest.cc
  1077. * test/BtRequestMessageTest.cc
  1078. * test/DHTPeerAnnounceEntryTest.cc
  1079. * test/DHTPeerAnnounceStorageTest.cc
  1080. * test/DefaultBtMessageDispatcherTest.cc
  1081. * test/DefaultBtMessageFactoryTest.cc
  1082. * test/DefaultBtProgressInfoFileTest.cc
  1083. * test/DefaultBtRequestFactoryTest.cc
  1084. * test/DefaultExtensionMessageFactoryTest.cc
  1085. * test/MSEHandshakeTest.cc
  1086. * test/MockDHTTaskFactory.h
  1087. * test/ShareRatioSeedCriteriaTest.cc
  1088. * test/UTPexExtensionMessageTest.cc
  1089. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1090. Fixed compiler warning.
  1091. * test/UtilTest.cc
  1092. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1093. Treat Cookie object as session cookie if expiry = 0 is given.
  1094. With this change, you can specify session scoped cookies in an external
  1095. file setting expiry value to 0.
  1096. * src/Cookie.cc
  1097. * src/Cookie.h
  1098. * test/CookieParserTest.cc
  1099. * test/CookieStorageTest.cc
  1100. * test/CookieTest.cc
  1101. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1102. Changed signature of DHTMessageFactory::createResponseMessage().
  1103. Removed unused validateIDMatch.
  1104. * src/DHTMessageFactory.h
  1105. * src/DHTMessageFactoryImpl.cc
  1106. * src/DHTMessageFactoryImpl.h
  1107. * src/DHTMessageTracker.cc
  1108. * test/DHTMessageFactoryImplTest.cc
  1109. * test/MockDHTMessageFactory.h
  1110. Dropped DHT message coming from same ID of localhost.
  1111. * src/DHTMessageReceiver.cc
  1112. Rejected adding node whose ID is the same as localhost's.
  1113. * src/DHTRoutingTable.cc
  1114. * test/BtPortMessageTest.cc
  1115. * test/DHTRoutingTableTest.cc
  1116. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1117. Pool connection when redirection occurs with Content-Length = 0.
  1118. * src/HttpSkipResponseCommand.cc
  1119. * src/HttpSkipResponseCommand.h
  1120. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1121. Fixed the bug that causes time out when redirection occurs with
  1122. content-length 0.
  1123. * src/HttpResponseCommand.cc
  1124. * src/HttpSkipResponseCommand.cc
  1125. * src/HttpSkipResponseCommand.h
  1126. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1127. Now each status legends is shown only when it appears in Download
  1128. Result. If Download Result has no item, then status legend will not
  1129. be printed.
  1130. * src/RequestGroupMan.cc
  1131. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1132. Removed duplicate creation of OptionHandlers.
  1133. * src/option_processing.cc
  1134. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1135. Fixed the bug that causes segmentation fault when accessing files which
  1136. don't exist or are not included in --select-file option while
  1137. validating chunk checksum.
  1138. * src/MultiDiskAdaptor.cc
  1139. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1140. Fixed compiler warning.
  1141. * test/UtilTest.cc
  1142. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1143. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1144. * src/IteratableChecksumValidator.cc
  1145. * src/IteratableChunkChecksumValidator.cc
  1146. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1147. * Release 0.16.2
  1148. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1149. Added Serbian translation. Updated Ukrainian translation.
  1150. Thanks to all translators.
  1151. * po/sr.po
  1152. * po/uk.po
  1153. * po/LINGUAS
  1154. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1155. Bump up version number to 0.16.2
  1156. * configure.ac
  1157. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1158. Added length equality test to operator== to drop a piece message
  1159. whose length does not match to the requested one.
  1160. * src/RequestSlot.cc
  1161. * test/DefaultBtMessageDispatcherTest.cc
  1162. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1163. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1164. recieved.
  1165. In this fix, if a request larger than 16KiB length is received, aria2
  1166. disconnects the peer.
  1167. * src/BtConstants.h
  1168. * src/PeerMessageUtil.cc
  1169. * src/PeerMessageUtil.h
  1170. * test/BtRequestMessageTest.cc
  1171. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1172. * Release 0.16.1
  1173. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1174. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1175. * doc/aria2c.1.txt
  1176. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1177. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1178. Updated French, Simplified Chinese and Japanese translations.
  1179. Thanks to all translators.
  1180. en@quot and en@boldquot are also added.
  1181. * po/LINGUAS
  1182. * po/fr.po
  1183. * po/ja.po
  1184. * po/uk.po
  1185. * po/vi.po
  1186. * po/zh_CN.po
  1187. * po/zh_TW.po
  1188. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1189. Bump up version number to 0.16.1.
  1190. * configure.ac
  1191. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1192. Updated README.
  1193. * README
  1194. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1195. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1196. not to replace '--' with em dash character.
  1197. * doc/aria2c.1.txt
  1198. * doc/makeman
  1199. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1200. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1201. every SEC seconds.
  1202. * src/DownloadEngineFactory.cc
  1203. * src/OptionHandlerFactory.cc
  1204. * src/option_processing.cc
  1205. * src/usage_text.h
  1206. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1207. Fixed compile warning on linux-amd64
  1208. * src/FtpConnection.cc
  1209. * src/IteratableChunkChecksumValidator.cc
  1210. * src/MultiDiskAdaptor.cc
  1211. Fixed the bug that unit test fails on linux-amd64
  1212. * test/UtilTest.cc
  1213. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1214. Added --dht-file-path option to change the path to dht.dat, which is a
  1215. serialized DHT routing table.
  1216. * src/OptionHandlerFactory.cc
  1217. * src/option_processing.cc
  1218. * src/usage_text.h
  1219. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1220. Fixed possible underflow.
  1221. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1222. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1223. Fixed the bug that last character in URI is not encoded.
  1224. * src/Request.cc
  1225. * test/RequestTest.cc
  1226. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1227. Fixed the bug that referer header field contains fragment.
  1228. Now Request class removes fragment part of URI and encodes it
  1229. in Request::setUri() and setReferer().
  1230. * src/Request.h
  1231. * src/Request.cc
  1232. * test/RequestTest.cc
  1233. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1234. Added missing m4 macros.
  1235. * m4/cppunit.m4
  1236. * m4/libgcrypt.m4
  1237. * m4/libgnutls-extra.m4
  1238. * m4/libgnutls.m4
  1239. * m4/libxml2.m4
  1240. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1241. Fixed compile error with gcc-4.4(snapshot)
  1242. * src/File.cc
  1243. * src/FtpConnection.cc
  1244. * src/OptionHandlerImpl.h
  1245. * src/Util.cc
  1246. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1247. Removed assert()
  1248. * src/SocketBuffer.cc (SocketBuffer::send)
  1249. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1250. Changed the type of _numNewConnection to unsigned int.
  1251. * src/ActivePeerConnectionCommand.cc
  1252. * src/ActivePeerConnectionCommand.h
  1253. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1254. * Release 0.16.0
  1255. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1256. Updated doc
  1257. * README
  1258. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1259. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1260. translations. Thanks to all translators.
  1261. * po/bg.po
  1262. * po/de.po
  1263. * po/fr.po
  1264. * po/ja.po
  1265. * po/zh_CN.po
  1266. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1267. Bump up version number to 0.16.0.
  1268. * configure.ac
  1269. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1270. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1271. int32_t.
  1272. Changed the type of count to int32_t.
  1273. * src/Metalink2RequestGroup.cc
  1274. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1275. Added test for Time::elapsed(time_t).
  1276. * test/TimeTest.cc
  1277. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1278. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1279. Util::difftv() should be used instead.
  1280. * src/TimeA2.cc
  1281. * src/TimeA2.h
  1282. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1283. Made socket for dht connections non-blocking
  1284. * src/DHTAbstractMessage.cc
  1285. * src/DHTAbstractMessage.h
  1286. * src/DHTConnection.h
  1287. * src/DHTConnectionImpl.cc
  1288. * src/DHTConnectionImpl.h
  1289. * src/DHTMessage.h
  1290. * src/DHTMessageDispatcherImpl.cc
  1291. * src/DHTMessageDispatcherImpl.h
  1292. * src/DHTUnknownMessage.cc
  1293. * src/DHTUnknownMessage.h
  1294. * src/SocketCore.cc
  1295. * src/SocketCore.h
  1296. * test/MockDHTMessage.h
  1297. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1298. Changed the type of offset to int.
  1299. * src/ParameterizedStringParser.cc
  1300. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1301. Made getAsInt() return int32_t
  1302. * src/Option.h
  1303. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1304. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1305. build.
  1306. * configure.ac
  1307. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1308. Use sqlite3_open if sqlite3_open_v2 is not available.
  1309. * src/Sqlite3MozCookieParser.cc
  1310. * src/Sqlite3MozCookieParser.h
  1311. * m4/sqlite3.m4
  1312. * test/Sqlite3MozCookieParserTest.cc
  1313. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1314. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  1315. * src/BtPieceMessage.cc
  1316. * src/DHTPeerAnnounceStorage.cc
  1317. * src/DefaultPieceStorage.cc
  1318. * src/DownloadCommand.cc
  1319. * src/DownloadEngine.cc
  1320. * src/FtpConnection.cc
  1321. * src/PeerConnection.cc
  1322. * src/PeerMessageUtil.cc
  1323. * src/RequestGroup.cc
  1324. * src/RequestGroupMan.cc
  1325. * src/SimpleBtMessage.cc
  1326. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1327. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  1328. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  1329. * src/AbstractDiskWriter.cc
  1330. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1331. Don't set Request::supportsPersistentConnection() in HttpConnection
  1332. since this code is also used in AbstractProxyResponseCommand.
  1333. Moved those code to HttpResponse.
  1334. * src/HttpResponse.cc
  1335. * src/HttpResponse.h
  1336. * src/HttpConnection.cc
  1337. * src/HttpConnection.h
  1338. * src/HttpResponseCommand.cc
  1339. * test/HttpResponseTest.cc
  1340. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1341. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  1342. The configuration is minimum: no torrent, no metalink, so there may be
  1343. other compile error on their code.
  1344. * src/a2netcompat.h
  1345. * src/File.cc
  1346. * src/File.h
  1347. * src/SocketCore.cc
  1348. * src/SocketCore.h
  1349. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1350. Made a socket of incoming peer non-blocking.
  1351. * src/PeerListenCommand.cc
  1352. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1353. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  1354. whole message data is not sent in one send() call.
  1355. * src/BtPieceMessage.cc
  1356. * src/BtPieceMessage.h
  1357. * src/PeerConnection.cc
  1358. * src/PeerConnection.h
  1359. * src/SimpleBtMessage.cc
  1360. * src/SimpleBtMessage.h
  1361. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1362. Fixed the bug that aria2 downloads faster than max-download-limit when
  1363. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  1364. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  1365. , instead of sum of them.
  1366. * src/ActivePeerConnectionCommand.cc
  1367. * src/DefaultBtInteractive.cc
  1368. * src/DownloadCommand.cc
  1369. * src/PeerInteractionCommand.cc
  1370. * src/PeerReceiveHandshakeCommand.cc
  1371. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1372. Fixed the bug that HTTPS download fails.
  1373. * src/AbstractCommand.cc
  1374. * src/AbstractCommand.h
  1375. * src/DownloadCommand.cc
  1376. * src/FtpConnection.cc
  1377. * src/HttpConnection.cc
  1378. * src/HttpRequestCommand.cc
  1379. * src/HttpResponseCommand.cc
  1380. * src/HttpSkipResponseCommand.cc
  1381. * src/MSEHandshake.cc
  1382. * src/PeerConnection.cc
  1383. * src/SocketCore.cc
  1384. * src/SocketCore.h
  1385. Fixed the bug that aria2 doesn't download whole content body and cannot
  1386. reuse connection if chunked transfer encoding and gzip content encoding
  1387. are set.
  1388. * src/DownloadCommand.cc
  1389. * src/HttpSkipResponseCommand.cc
  1390. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1391. Updated man page.
  1392. * doc/aria2c.1.txt
  1393. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1394. When error occurred while aria2 was parsing an .aria2.conf file, print
  1395. the usage of the option that caused error.
  1396. * src/option_processing.cc
  1397. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1398. Fixed compile error on OptionHandlerException
  1399. * src/Makefile.am
  1400. * src/OptionHandlerException.cc
  1401. * src/OptionHandlerException.h
  1402. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1403. Moved message of the error to OptionHandlerException.h
  1404. * src/NameMatchOptionHandler.h
  1405. * src/OptionHandlerException.h
  1406. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1407. When error occurs while aria2 is parsing an command-line option, print
  1408. the usage of the option.
  1409. * src/Makefile.am
  1410. * src/NameMatchOptionHandler.h
  1411. * src/OptionHandlerException.h
  1412. * src/option_processing.cc
  1413. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1414. Reverted previous change.
  1415. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  1416. username is not in URI.
  1417. * src/HttpRequest.cc
  1418. * src/Request.cc
  1419. * test/HttpRequestTest.cc
  1420. * test/RequestTest.cc
  1421. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1422. Now colon is required for username and password in FTP URL, like:
  1423. ftp://username:password@host.
  1424. If colon is not there, aria2 don't parse it as a username. For example,
  1425. aria2 don't retrieve username from ftp://username@host.
  1426. This fix was made in order to login FTP server via non-transparent ftp
  1427. proxy.
  1428. * src/Request.cc
  1429. * test/RequestTest.cc
  1430. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1431. Use netrc for HTTP.
  1432. Now FTP user/password is sent in Authorization header when
  1433. --ftp-via-http-proxy=get is given.
  1434. * src/AuthConfigFactory.cc
  1435. * src/HttpRequest.cc
  1436. * src/HttpRequest.h
  1437. * src/NetrcAuthResolver.cc
  1438. * src/NetrcAuthResolver.h
  1439. * src/OptionHandlerFactory.cc
  1440. * src/option_processing.cc
  1441. * src/prefs.cc
  1442. * src/prefs.h
  1443. * test/AuthConfigFactoryTest.cc
  1444. * test/HttpRequestTest.cc
  1445. * test/NetrcAuthResolverTest.cc
  1446. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1447. Issue PWD command first and get working directory and use it as a prefix
  1448. for CWD command.
  1449. * src/DownloadEngine.cc
  1450. * src/DownloadEngine.h
  1451. * src/FtpConnection.cc
  1452. * src/FtpConnection.h
  1453. * src/FtpFinishDownloadCommand.cc
  1454. * src/FtpInitiateConnectionCommand.cc
  1455. * src/FtpNegotiationCommand.cc
  1456. * src/FtpNegotiationCommand.h
  1457. * test/FtpConnectionTest.cc
  1458. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1459. Removed default user/pass for FTP user/pass, since it should not have
  1460. precedence over netrc configuration by default.
  1461. * src/OptionHandlerFactory.cc
  1462. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1463. Added debug log for socket event.
  1464. * src/AbstractCommand.cc
  1465. * src/PeerAbstractCommand.cc
  1466. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1467. Log microseconds.
  1468. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1469. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1470. Replaced HelpItem.cc with OptionHandler.cc.
  1471. * po/POTFILES.in
  1472. Updated po files with 'make update-po'
  1473. * po/aria2c.pot
  1474. * po/*.po
  1475. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1476. Removed possible values from the text.
  1477. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  1478. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1479. Removed unused preferences:
  1480. PREF_NO_PREALLOCATION
  1481. PREF_STDOUT_LOG
  1482. PREF_TRACKER_MAX_TRIES
  1483. PREF_DIRECT_DOWNLOAD_TIMEOUT
  1484. PREF_MIN_SEGMENT_SIZE
  1485. * src/option_processing.cc
  1486. * src/prefs.cc
  1487. * src/prefs.h
  1488. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1489. Integrated HelpItem into OptionParser to ease the workload for adding
  1490. new options. Removed default value from usage text.
  1491. * src/HelpItem.cc: Removed.
  1492. * src/HelpItem.h: Removed.
  1493. * src/HelpItemFactory.cc: Removed.
  1494. * src/HelpItemFactory.h: Removed.
  1495. * src/Makefile.am
  1496. * src/Makefile.in
  1497. * src/NameMatchOptionHandler.h
  1498. * src/OptionHandler.cc
  1499. * src/OptionHandler.h
  1500. * src/OptionHandlerFactory.cc
  1501. * src/OptionHandlerImpl.h
  1502. * src/OptionParser.cc
  1503. * src/OptionParser.h
  1504. * src/TagContainer.cc: Removed.
  1505. * src/TagContainer.h: Removed.
  1506. * src/TaggedItem.cc: Removed.
  1507. * src/TaggedItem.h: Removed.
  1508. * src/main.cc
  1509. * src/option_processing.cc
  1510. * src/usage_text.h
  1511. * src/version_usage.cc
  1512. * test/HelpItemTest.cc: Removed.
  1513. * test/Makefile.am
  1514. * test/Makefile.in
  1515. * test/OptionHandlerTest.cc
  1516. * test/OptionParserTest.cc
  1517. * test/TagContainerTest.cc: Removed.
  1518. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1519. Moved `TransferStat stat = ...' to inside the `if' clause.
  1520. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  1521. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1522. Fixed the bug that a block in a piece is requested when same block is
  1523. already requested to the same peer in end game mode.
  1524. * src/BtRequestFactory.h
  1525. * src/DefaultBtInteractive.cc
  1526. * src/DefaultBtRequestFactory.cc
  1527. * src/DefaultBtRequestFactory.h
  1528. * src/DefaultPieceStorage.cc
  1529. * src/DefaultPieceStorage.h
  1530. * src/PieceStorage.h
  1531. * src/UnknownLengthPieceStorage.cc
  1532. * src/UnknownLengthPieceStorage.h
  1533. * test/DefaultBtRequestFactoryTest.cc
  1534. * test/DefaultPieceStorageTest.cc
  1535. * test/MockBtRequestFactory.h
  1536. * test/MockPieceStorage.h
  1537. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1538. Removed _uploadLength and _downloadLength from PeerSessionResource
  1539. and use PeerStat::_sessionUploadLength and
  1540. PeerStat::_sessionDownloadLength.
  1541. * src/PeerSessionResource.cc
  1542. * src/PeerSessionResource.h
  1543. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1544. Fixed the bug that prefixLength of split bucket which doesn't include
  1545. local node ID is incremented.
  1546. * src/DHTBucket.cc
  1547. * src/DHTBucket.h
  1548. * test/DHTBucketTest.cc
  1549. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1550. Added cookies.sqlite to EXTRA_DIST
  1551. * test/Makefile.am
  1552. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1553. Added Turkish translation. Updated French, German, Russian and
  1554. Simplified Chinese translations. Thanks to all translators.
  1555. * po/LINGUAS
  1556. * po/de.po
  1557. * po/fr.po
  1558. * po/ru.po
  1559. * po/tr.po
  1560. * po/zh_CN.po
  1561. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1562. Added deliminating text to the beginning of the log so that one can find
  1563. where the log starts easily.
  1564. * src/main.cc
  1565. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1566. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  1567. to fix compile error when async DNS is not enabled by configuration.
  1568. * src/AbstractCommand.cc
  1569. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1570. If establishing conneciton to a server is failed, then mark error on
  1571. its ServerStat.
  1572. Added the cause of error to log when error event occurred.
  1573. Moved message string to message.h for translation.
  1574. * src/AbstractCommand.cc
  1575. * src/AbstractCommand.h
  1576. * src/FtpNegotiationCommand.cc
  1577. * src/HttpRequestCommand.cc
  1578. * src/PeerAbstractCommand.cc
  1579. * src/message.h
  1580. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1581. Added the function to get error message from socket.
  1582. * src/SocketCore.cc
  1583. * src/SocketCore.h
  1584. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1585. Added convenient method RequestGroupMan::getOrCreateServerStat()
  1586. * src/RequestGroupMan.cc
  1587. * src/RequestGroupMan.h
  1588. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1589. If error event is received in epoll, then abort download immediately.
  1590. * src/AbstractCommand.cc
  1591. * src/Command.cc
  1592. * src/Command.h
  1593. * src/DownloadEngine.cc
  1594. * src/PeerAbstractCommand.cc
  1595. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1596. Added usage message for --uri-selector, --server-stat-of,
  1597. --server-stat-in, --server-stat-timeout options.
  1598. * src/HelpItemFactory.cc
  1599. * src/usage_text.h
  1600. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1601. Added upper limit of FTP response buffer. The current implementation
  1602. uses 4096bytes as a limit.
  1603. * src/FtpConnection.cc
  1604. * src/FtpConnection.h
  1605. * test/FtpConnectionTest.cc
  1606. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1607. Use non-blocking socket for TCP communication to avoid possible
  1608. blocking due to buffer full.
  1609. * src/AbstractProxyRequestCommand.cc
  1610. * src/FtpConnection.cc
  1611. * src/FtpConnection.h
  1612. * src/FtpNegotiationCommand.cc
  1613. * src/FtpNegotiationCommand.h
  1614. * src/HttpConnection.cc
  1615. * src/HttpConnection.h
  1616. * src/HttpRequestCommand.cc
  1617. * src/InitiatorMSEHandshakeCommand.cc
  1618. * src/InitiatorMSEHandshakeCommand.h
  1619. * src/MSEHandshake.cc
  1620. * src/MSEHandshake.h
  1621. * src/Makefile.am
  1622. * src/PeerConnection.cc
  1623. * src/PeerConnection.h
  1624. * src/PeerInteractionCommand.cc
  1625. * src/PeerListenCommand.cc
  1626. * src/ReceiverMSEHandshakeCommand.cc
  1627. * src/ReceiverMSEHandshakeCommand.h
  1628. * src/SocketBuffer.cc
  1629. * src/SocketBuffer.h
  1630. * src/SocketCore.cc
  1631. * src/SocketCore.h
  1632. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1633. Call setStatusRealtime() in constructor.
  1634. * src/RealtimeCommand.cc
  1635. * src/RealtimeCommand.h
  1636. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1637. Call Download::setNoWait(true) to execute newly created command without
  1638. a pause.
  1639. * src/AbstractCommand.cc
  1640. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1641. Added --max-file-not-found=NUM option. If aria2 receives `file not
  1642. found' error from HTTP/FTP server NUM times without getting single
  1643. bytes of data, then force the download to fail.
  1644. Basically aria2 tris all URIs available. So if long list of URIs are
  1645. specified in Metalink, then aria2 will take a long time to fail
  1646. eventually if all URIs are outdated. This option eases this situation
  1647. to limit the number of servers to try.
  1648. * src/FtpNegotiationCommand.cc
  1649. * src/HelpItemFactory.cc
  1650. * src/HttpResponseCommand.cc
  1651. * src/OptionHandlerFactory.cc
  1652. * src/PeerStat.h
  1653. * src/RequestGroup.cc
  1654. * src/RequestGroup.h
  1655. * src/SegmentMan.cc
  1656. * src/SegmentMan.h
  1657. * src/option_processing.cc
  1658. * src/prefs.cc
  1659. * src/prefs.h
  1660. * src/usage_text.h
  1661. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1662. Fixed the bug that bulkReceiveResponse() reads all received data as a
  1663. response even if more than one response is in it.
  1664. * src/FtpConnection.cc
  1665. * src/FtpConnection.h
  1666. * test/FtpConnectionTest.cc
  1667. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1668. Merged from stable-0.15
  1669. * m4/libcares.m4
  1670. Use pkg-config
  1671. * m4/sqlite3.m4
  1672. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1673. Removed unnecessary if statement.
  1674. * src/DefaultPieceStorage.cc (initPieceStorage)
  1675. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1676. Added --connect-timeout option to specify connect timeout in seconds.
  1677. This option is in effect for HTTP/FTP/proxy server. The timeout for
  1678. connecting to BitTorrent peer is not controlled by this option.
  1679. * src/AbstractProxyRequestCommand.cc
  1680. * src/FtpNegotiationCommand.cc
  1681. * src/HelpItemFactory.cc
  1682. * src/HttpRequestCommand.cc
  1683. * src/OptionHandlerFactory.cc
  1684. * src/option_processing.cc
  1685. * src/prefs.cc
  1686. * src/prefs.h
  1687. * src/usage_text.h
  1688. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1689. Added help message for -R option.
  1690. * src/HelpItemFactory.cc
  1691. * src/usage_text.h
  1692. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1693. Added the message that the time is in local time zone.
  1694. * src/RequestGroup.cc
  1695. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1696. Implemented the ability to get timestamp from remote FTP server using
  1697. MDTM command described in RFC3659.
  1698. * src/FtpConnection.cc
  1699. * src/FtpConnection.h
  1700. * src/FtpNegotiationCommand.cc
  1701. * src/FtpNegotiationCommand.h
  1702. * test/FtpConnectionTest.cc
  1703. * test/Makefile.am
  1704. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1705. Implemented the ability to get timestamp from remote HTTP server and
  1706. apply it to local file. To enable this feature, --remote-time option
  1707. is added. No usage text has been written yet.
  1708. If several servers returns difference timestamp, then aria2 uses latest
  1709. one.
  1710. * src/CopyDiskAdaptor.cc
  1711. * src/CopyDiskAdaptor.h
  1712. * src/DirectDiskAdaptor.cc
  1713. * src/DirectDiskAdaptor.h
  1714. * src/DiskAdaptor.h
  1715. * src/File.cc
  1716. * src/File.h
  1717. * src/HttpHeader.cc
  1718. * src/HttpHeader.h
  1719. * src/HttpResponse.cc
  1720. * src/HttpResponse.h
  1721. * src/HttpResponseCommand.cc
  1722. * src/HttpResponseCommand.h
  1723. * src/MultiDiskAdaptor.cc
  1724. * src/MultiDiskAdaptor.h
  1725. * src/OptionHandlerFactory.cc
  1726. * src/RequestGroup.cc
  1727. * src/RequestGroup.h
  1728. * src/RequestGroupMan.cc
  1729. * src/option_processing.cc
  1730. * src/prefs.cc
  1731. * src/prefs.h
  1732. * test/CopyDiskAdaptorTest.cc
  1733. * test/FileTest.cc
  1734. * test/Makefile.am
  1735. * test/Makefile.in
  1736. * test/MultiDiskAdaptorTest.cc
  1737. * test/TestUtil.cc
  1738. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1739. Fixed the bug that DiskWriterEntry is not created when its
  1740. FileEntry.isRequested() is false and it doesn't share a piece with
  1741. other FileEntries that are requested. This bug causes segmentation fault
  1742. in the end.
  1743. * src/MultiDiskAdaptor.cc
  1744. * src/MultiDiskAdaptor.h
  1745. * src/MultiFileAllocationIterator.cc
  1746. * test/MultiDiskAdaptorTest.cc
  1747. * test/MultiFileAllocationIteratorTest.cc
  1748. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1749. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  1750. called if the number of file entries are greater than max open files.
  1751. * src/AbstractSingleDiskAdaptor.cc
  1752. * src/AbstractSingleDiskAdaptor.h
  1753. * src/DiskAdaptor.h
  1754. * src/MultiDiskAdaptor.cc
  1755. * src/MultiDiskAdaptor.h
  1756. * test/MultiDiskAdaptorTest.cc
  1757. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1758. Added a constuctor that receives struct timeval.
  1759. Added operator<.
  1760. * src/TimeA2.cc
  1761. * src/TimeA2.h
  1762. * test/TimeTest.cc
  1763. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1764. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  1765. * src/CookieParser.cc
  1766. * test/CookieParserTest.cc
  1767. * test/HttpResponseTest.cc
  1768. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1769. Implmented the functions to parse date.
  1770. * src/TimeA2.cc
  1771. * src/TimeA2.h
  1772. * test/TimeTest.cc
  1773. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1774. Added "Firefox3 Cookie" feature to FeatureConfig
  1775. * src/FeatureConfig.cc
  1776. * src/FeatureConfig.h
  1777. * test/FeatureConfigTest.cc
  1778. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1779. Bump up version number to 0.16.0b
  1780. * configure.ac
  1781. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1782. Use pkg-config if is is available.
  1783. * m4/openssl.m4
  1784. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1785. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  1786. * src/BtAnnounce.h
  1787. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1788. If an error occurred with a URI, remove identical URI from remaining
  1789. URI list because it is likely that same error occurred in the end and it
  1790. is waste of time.
  1791. * src/AbstractCommand.cc
  1792. * src/RequestGroup.cc
  1793. * src/RequestGroup.h
  1794. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1795. Removed wrong comment.
  1796. * src/DefaultPeerStorage.cc
  1797. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1798. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  1799. Added return value of getpid() to argument of srand() to achieve more
  1800. randomized value.
  1801. * src/SimpleRandomizer.cc
  1802. * src/SimpleRandomizer.h
  1803. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1804. Contact tracker frequently when the number of connections are 0 and
  1805. download is not finished yet.
  1806. * src/ActivePeerConnectionCommand.cc
  1807. * src/BtAnnounce.h
  1808. * src/DefaultBtAnnounce.cc
  1809. * src/DefaultBtAnnounce.h
  1810. * test/MockBtAnnounce.h
  1811. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1812. Moved threshold values to UTPexExtensionMessage.
  1813. * src/DefaultBtInteractive.cc
  1814. * src/Peer.cc
  1815. * src/Peer.h
  1816. * src/UTPexExtensionMessage.cc
  1817. * src/UTPexExtensionMessage.h
  1818. * test/UTPexExtensionMessageTest.cc
  1819. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1820. Added _incoming member to Peer class and made it true if the peer
  1821. initiated connection. Don't add those peer to UTPex message.
  1822. If extended handshake is received, assign _incoming to false.
  1823. * src/DefaultBtInteractive.cc
  1824. * src/HandshakeExtensionMessage.cc
  1825. * src/Peer.cc
  1826. * src/Peer.h
  1827. * src/PeerListenCommand.cc
  1828. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1829. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  1830. Encoding Decoder. Removed size threshold for turning off on the fly
  1831. inflation because resulting file may or may not be inflated depending
  1832. on the file size and I think it is not expected by users.
  1833. This change fixes segmentation fault when Metalink file contains gzipped
  1834. file and its filesize is provided.
  1835. * src/HttpResponseCommand.cc
  1836. * src/HttpResponseCommand.h
  1837. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1838. Made Cookie immutable.
  1839. * src/Cookie.cc
  1840. * src/Cookie.h
  1841. * src/CookieParser.cc
  1842. * src/CookieParser.h
  1843. * src/CookieStorage.cc
  1844. * test/CookieParserTest.cc
  1845. * test/CookieStorageTest.cc
  1846. * test/NsCookieParserTest.cc
  1847. * test/Sqlite3MozCookieParserTest.cc
  1848. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1849. Removed CookieBox, CookieBoxFactory.
  1850. * src/CookieBox.cc
  1851. * src/CookieBox.h
  1852. * src/CookieBoxFactory.cc
  1853. * src/CookieBoxFactory.h
  1854. * src/Makefile.am
  1855. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1856. Use CookieStorage class instead of CookieBox class.
  1857. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  1858. * src/AbstractProxyRequestCommand.cc
  1859. * src/CookieStorage.cc
  1860. * src/DownloadEngine.cc
  1861. * src/DownloadEngine.h
  1862. * src/HttpConnection.cc
  1863. * src/HttpConnection.h
  1864. * src/HttpRequest.cc
  1865. * src/HttpRequest.h
  1866. * src/HttpRequestCommand.cc
  1867. * src/HttpResponse.cc
  1868. * src/HttpResponseCommand.cc
  1869. * src/HttpSkipResponseCommand.cc
  1870. * src/Makefile.am
  1871. * src/MultiUrlRequestInfo.cc
  1872. * src/Request.cc
  1873. * src/Request.h
  1874. * src/main.cc
  1875. * test/AllTest.cc
  1876. * test/CookieStorageTest.cc
  1877. * test/CookieTest.cc
  1878. * test/HttpRequestTest.cc
  1879. * test/HttpResponseTest.cc
  1880. * test/Makefile.am
  1881. * test/NsCookieParserTest.cc
  1882. * test/Sqlite3MozCookieParserTest.cc
  1883. * test/nscookietest.txt
  1884. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1885. Updated
  1886. * test/Cookies.sqlite
  1887. * test/nscookietest.txt
  1888. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Added tests for CookieStorage::load()
  1890. * test/CookieStorageTest.cc
  1891. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1892. Added CookieStorage class which is based on RFC2109 and manages cookies
  1893. more strictly than CookieBox and CookieBoxFactory class.
  1894. * src/CookieStorage.cc
  1895. * src/CookieStorage.h
  1896. * src/Cookie.cc
  1897. * src/Cookie.h
  1898. * test/CookieStorageTest.cc
  1899. * test/CookieTest.cc
  1900. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1901. Fixed the bug that commands are created more than the number of pieces.
  1902. * src/RequestGroup.cc
  1903. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1904. Fixed infinite loop bug in FTP when SIZE command failed.
  1905. * src/FtpNegotiationCommand.cc
  1906. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1907. Removed DirectDiskAdaptorTest.h
  1908. * test/Makefile.am
  1909. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1910. Fixed chunk checksum validation cannot detect trailing garbage data.
  1911. BUG#2074141
  1912. * src/AbstractSingleDiskAdaptor.cc
  1913. * src/AbstractSingleDiskAdaptor.h
  1914. * src/CheckIntegrityEntry.cc
  1915. * src/CheckIntegrityEntry.h
  1916. * src/DiskAdaptor.h
  1917. * src/MultiDiskAdaptor.cc
  1918. * src/MultiDiskAdaptor.h
  1919. * src/RequestGroup.cc
  1920. * test/DirectDiskAdaptorTest.cc
  1921. * test/MultiDiskAdaptorTest.cc
  1922. * test/TestUtil.cc
  1923. * test/TestUtil.h
  1924. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1925. Bump up version number of dht.dat file to 3. In version 3 format, time
  1926. is stored in 64bit, network byte order.
  1927. New build can load old format(version 2) but it saves the file in new
  1928. format. It means once you used new build, your dht.dat becomes
  1929. incompatible with older build.
  1930. * src/DHTRoutingTableDeserializer.cc
  1931. * src/DHTRoutingTableSerializer.cc
  1932. * test/DHTRoutingTableSerializerTest.cc
  1933. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1934. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1935. * test/Makefile.am
  1936. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1937. Bump up version number of .aria2 control file to 0001.
  1938. New aria2 can still load version 0000 file but it saves the file in
  1939. version 0001 format. It means that new aria2 can resume download
  1940. started by old aria2 but the opposite is not true.
  1941. * src/DefaultBtProgressInfoFile.cc
  1942. * src/DefaultBtProgressInfoFile.h
  1943. * test/DefaultBtProgressInfoFileTest.cc
  1944. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1945. Added ntoh64 and hton64 as inline functions.
  1946. * src/Util.cc
  1947. * test/UtilTest.cc
  1948. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1949. Added sqlite3 depenency and Firefox3 cookie support.
  1950. * README
  1951. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1952. State that firefox3 cookie is supported explicitly in the usage.
  1953. * src/usage_text.h
  1954. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1955. Externalized message.
  1956. * src/RequestGroupMan.cc
  1957. * src/message.h
  1958. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1959. Save temporary file first and rename to the destination on success.
  1960. Added test cases.
  1961. * src/RequestGroupMan.cc
  1962. * test/RequestGroupManTest.cc
  1963. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1964. Fixed the bug that the number of connected peer is exceeding the limit
  1965. (55 by default) in seeding mode.
  1966. Multiplied 0.8 to _maxUploadSpeedLimit.
  1967. * src/ActivePeerConnectionCommand.cc
  1968. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1969. Clear table item.
  1970. * src/Dictionary.cc
  1971. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1972. Fixed error handling of lseek.
  1973. * src/AbstractDiskWriter.cc
  1974. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1975. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1976. style cookie file.
  1977. * src/usage_text.h
  1978. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1979. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1980. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1981. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1982. * src/Util.cc
  1983. * src/Util.h
  1984. * src/CookieParser.cc
  1985. * test/UtilTest.cc
  1986. * test/CookieParserTest.cc
  1987. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1988. Separate the implementation to load old mozilla format of cookie to
  1989. NsCookieParser class.
  1990. * src/CookieBoxFactory.cc
  1991. * src/CookieBoxFactory.h
  1992. * src/NsCookieParser.cc
  1993. * src/NsCookieParser.h
  1994. * test/NsCookieParserTest.cc
  1995. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1996. Made parse() const
  1997. * src/Sqlite3MozCookieParser.cc
  1998. * src/Sqlite3MozCookieParser.h
  1999. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2000. Added firefox3 cookie support based on the patch submitted by
  2001. tizianomueller.
  2002. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2003. this functionality.
  2004. * configure.ac
  2005. * m4/sqlite3.m4
  2006. * src/CookieBoxFactory.cc
  2007. * src/CookieBoxFactory.h
  2008. * src/Makefile.am
  2009. * src/Makefile.in
  2010. * src/Sqlite3MozCookieParser.cc
  2011. * src/Sqlite3MozCookieParser.h
  2012. * src/main.cc
  2013. * test/CookieBoxFactoryTest.cc
  2014. * test/Makefile.am
  2015. * test/Makefile.in
  2016. * test/Sqlite3MozCookieParserTest.cc
  2017. * test/badcookies.sqlite
  2018. * test/cookies.sqlite
  2019. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2020. Added Danish and Greek translations.
  2021. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2022. Great thanks to all translators.
  2023. * po/LINGUAS
  2024. * po/el.po
  2025. * po/da.po
  2026. * po/es.po
  2027. * po/ca.po
  2028. * po/nn.po
  2029. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2030. Fixed man page: --follow-bittorrent should be --follow-torrent
  2031. * doc/aria2c.1.txt
  2032. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2033. Fixed: numCommand is less than the value specified in -C option.
  2034. * src/RequestGroup.cc
  2035. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2036. Fixed occasional assertion failure in PieceSegment.
  2037. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2038. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2039. creation of duplicate segments and one of the segment was finished then
  2040. assertion failure was caused.
  2041. * src/SegmentMan.cc
  2042. * test/SegmentManTest.cc
  2043. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2044. Added options to load/save the server's performance/status to a file
  2045. and the timeout to drop their data.
  2046. --server-stat-of=FILE specifies the file to which performance data
  2047. is saved.
  2048. --server-stat-if=FILE specifies the file to read previously saved
  2049. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2050. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2051. TIMEOUT is specified in seconds and the default value is 24hours.
  2052. * src/MultiUrlRequestInfo.cc
  2053. * src/OptionHandlerFactory.cc
  2054. * src/RequestGroupMan.cc
  2055. * src/RequestGroupMan.h
  2056. * src/ServerStatMan.cc
  2057. * src/ServerStatMan.h
  2058. * src/option_processing.cc
  2059. * src/prefs.cc
  2060. * src/prefs.h
  2061. * test/ServerStatManTest.cc
  2062. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2063. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2064. * src/ServerStatMan.cc
  2065. * src/ServerStatMan.h
  2066. * test/ServerStatManTest.cc
  2067. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2068. Implemented ServerStatMan::load(...) function and its test case.
  2069. * src/ServerStat.cc
  2070. * src/ServerStat.h
  2071. * src/ServerStatMan.cc
  2072. * test/ServerStatManTest.cc
  2073. * test/ServerStatTest.cc
  2074. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2075. Use time_t instead of int32_t. Use int64_t where milli second is
  2076. expected.
  2077. * src/TimeA2.cc
  2078. * src/TimeA2.h
  2079. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2080. Implemented ServerStatMan::save(...) function and its test case.
  2081. * src/ServerStat.cc
  2082. * src/ServerStat.h
  2083. * src/ServerStatMan.cc
  2084. * src/ServerStatMan.h
  2085. * test/ServerStatManTest.cc
  2086. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2087. Now aria2 uses name attribute in Metalink as local filename in
  2088. BitTorrent downloads. BUG#2033999
  2089. * src/BtContext.h
  2090. * src/BtDependency.cc
  2091. * src/DefaultBtContext.cc
  2092. * src/DefaultBtContext.h
  2093. * src/SingleFileDownloadContext.cc
  2094. * src/SingleFileDownloadContext.h
  2095. * test/BtDependencyTest.cc
  2096. * test/DefaultBtContextTest.cc
  2097. * test/MockBtContext.h
  2098. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2099. Added AC_C_BIGENDIAN
  2100. * src/configure.ac
  2101. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2102. Limited numCommand less than or equal to the number of piece.
  2103. * src/RequestGroup.cc
  2104. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2105. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2106. directive.
  2107. * test/DefaultPieceStorageTest.cc
  2108. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2109. Fixed memory leak in test code
  2110. * test/AnnounceListTest.cc
  2111. * test/DefaultPeerListProcessorTest.cc
  2112. * test/DefaultPeerStorageTest.cc
  2113. * test/MetaFileUtilTest.cc
  2114. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2115. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2116. * src/DefaultPieceStorage.cc
  2117. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2118. Initialized _directIOAllowed
  2119. * src/MultiDiskAdaptor.cc
  2120. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2121. Fixed memory leak
  2122. * src/GZipDecoder.cc
  2123. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2124. Fixed memory leak
  2125. * src/MetalinkParserStateMachine.cc
  2126. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2127. Fixed memory leak
  2128. * src/Dictionary.cc
  2129. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2130. Fixed memory leak
  2131. * src/IteratableChunkChecksumValidator.h
  2132. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2133. Fixed unmatched malloc/free.
  2134. * src/IteratableChunkChecksumValidator.cc
  2135. * src/IteratableChecksumValidator.cc
  2136. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2137. Removed max chunk size check. This change fixes BUG#2040169
  2138. * src/ChunkedDecoder.cc
  2139. * src/ChunkedDecoder.h
  2140. * test/ChunkedDecoderTest.cc
  2141. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2142. Implemented download speed based URI selection algorithm.
  2143. Introduced new option --uri-selector.
  2144. If --uri-selector=feedback is given, aria2 uses download speed observed
  2145. in the previous downloads and chooses fastest server in the URI list.
  2146. Currently at most 10 URIs are considered to introduce randomeness for
  2147. finding better servers. The speed is average download speed in the
  2148. downloads.
  2149. On the other hand, if --uri-selector=inorder is given, which is default,
  2150. URI is tried in order in URI list.
  2151. The usage text for the new option has not been written yet.
  2152. * src/AbstractCommand.cc
  2153. * src/DownloadCommand.cc
  2154. * src/DownloadEngine.cc
  2155. * src/DownloadEngineFactory.cc
  2156. * src/InOrderURISelector.cc
  2157. * src/InOrderURISelector.h
  2158. * src/OptionHandlerFactory.cc
  2159. * src/PeerStat.h
  2160. * src/RequestGroup.cc
  2161. * src/RequestGroup.h
  2162. * src/RequestGroupMan.cc
  2163. * src/RequestGroupMan.h
  2164. * src/SegmentMan.cc
  2165. * src/SegmentMan.h
  2166. * src/ServerStat.cc
  2167. * src/ServerStat.h
  2168. * src/ServerStatMan.cc
  2169. * src/ServerStatMan.h
  2170. * src/ServerStatURISelector.cc
  2171. * src/ServerStatURISelector.h
  2172. * src/URISelector.h
  2173. * src/option_processing.cc
  2174. * src/prefs.cc
  2175. * src/prefs.h
  2176. * test/InOrderURISelectorTest.cc
  2177. * test/RequestGroupManTest.cc
  2178. * test/ServerStatManTest.cc
  2179. * test/ServerStatURISelectorTest.cc
  2180. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2181. * Release 0.15.1+2
  2182. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2183. Bump up version number to 0.15.1+2
  2184. * configure.ac
  2185. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2186. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2187. * m4/aria2_arg.m4
  2188. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2189. * Release 0.15.1+1
  2190. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2191. Bump up version number to 0.15.1+1
  2192. * configure.ac
  2193. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2194. Fixed the bug that causes segmentaion fault when resuming download
  2195. using metalink without size tag. Reproducible only using HTTP URI.
  2196. * src/HttpResponseCommand.cc
  2197. * src/FtpNegotiationCommand.cc
  2198. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2199. * Release 0.15.1
  2200. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Updated Bulgarian and French translations, thanks to all translators.
  2202. * po/bg.po
  2203. * po/fr.po
  2204. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2205. Bump up version number to 0.15.1
  2206. * configure.ac
  2207. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2208. Avoid repeated call of gettimeofday() when calculating speed.
  2209. * src/SpeedCalc.cc
  2210. * src/SpeedCalc.h
  2211. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2212. Removed writable check when socket's send buffer is full in BitTorrent
  2213. downloads to lower CPU usage.
  2214. * src/PeerInteractionCommand.cc
  2215. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2216. Fixed broken gzip inflation.
  2217. Turn off segmented downloading if gzip content is smaller than or equal
  2218. to 1MiB and inflate the data on the fly, because HTTP response header
  2219. doesn't contain the length of inflated file we can't determin where
  2220. the chunk of data should be written.
  2221. On the other hand, if gzip content is larger than 1MB, then turn off
  2222. on the fly inflation, because some servers returns "content-type: gzip"
  2223. for *.tgz, *.gz files.
  2224. * src/DownloadCommand.cc
  2225. * src/HttpResponseCommand.cc
  2226. * src/HttpResponseCommand.h
  2227. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2228. Applied tizianomueller's patch to fix compile error.
  2229. * test/BitfieldManTest.cc
  2230. * test/BtRequestMessageTest.cc
  2231. * test/DefaultBtContextTest.cc
  2232. * test/DefaultDiskWriterTest.cc
  2233. * test/DefaultPieceStorageTest.cc
  2234. * test/HttpHeaderProcessorTest.cc
  2235. * test/HttpResponseTest.cc
  2236. * test/Metalink2RequestGroupTest.cc
  2237. * test/MetalinkParserControllerTest.cc
  2238. * test/MetalinkProcessorTest.cc
  2239. * test/PeerSessionResourceTest.cc
  2240. * test/UtilTest.cc
  2241. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2242. * Release 0.15.0
  2243. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2244. Reordered src files in POTFILES.in so that usage text appears first.
  2245. * po/POTFILES.in
  2246. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2247. Bump up version number to 0.15.0
  2248. * configure.ac
  2249. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2250. Added Bulgarian translation.
  2251. Updated Catalan, Spanish, French and Japanese translations.
  2252. Thanks to all translators.
  2253. * po/LINGUAS
  2254. * po/bg.po
  2255. * po/ca.po
  2256. * po/es.po
  2257. * po/fr.po
  2258. * po/ja.po
  2259. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2260. Updated feature list. Added libz for dependency section.
  2261. Added a description about unit testing using CppUnit.
  2262. * README
  2263. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2264. Added a test for libz. Quoted where it is necessary.
  2265. * build_test.sh
  2266. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2267. Added GZip to `Enabled Features' list.
  2268. * src/FeatureConfig.cc
  2269. * src/FeatureConfig.h
  2270. * test/FeatureConfigTest.cc
  2271. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2272. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2273. the transfer has not yet started.
  2274. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2275. * src/SegmentMan.cc
  2276. * src/SegmentMan.h
  2277. * test/SegmentManTest.cc
  2278. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2279. Cache last calculated average download/upload speed.
  2280. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2281. cached value.
  2282. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2283. * src/PeerStat.h
  2284. * src/SpeedCalc.cc
  2285. * src/SpeedCalc.h
  2286. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2287. Call parseUrl directly.
  2288. * src/Request.cc (resetUrl)
  2289. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2290. Supported absolute/relative path in Location header field.
  2291. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2292. * src/HttpHeader.cc
  2293. * src/HttpHeader.h
  2294. * src/HttpResponse.cc
  2295. * src/HttpSkipResponseCommand.cc
  2296. * src/Request.cc
  2297. * test/HttpHeaderTest.cc
  2298. * test/HttpResponseTest.cc
  2299. * test/RequestTest.cc
  2300. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2301. Changed help text for --load-cookie option.
  2302. * doc/aria2c.1.txt
  2303. * src/usage_text.h
  2304. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2305. Regenerated test/Makefile.in to remove stale ChangeLog.
  2306. * test/Makefile.in
  2307. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2308. Updated po files.
  2309. * po/aria2c.pot
  2310. * po/*.po
  2311. * po/*.gmo
  2312. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2313. Bump up version number to 0.15.0b
  2314. * configure.ac
  2315. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2316. Externalize messages.
  2317. * src/RequestGroupMan.cc
  2318. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  2319. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2320. Use File::exists() instead of File::isFile() to allow non-regular file
  2321. such as block special files.
  2322. * src/AbstractDiskWriter.cc
  2323. * src/MultiDiskWriter.cc
  2324. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2325. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  2326. * src/gai_strerror.h
  2327. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Fixed compile error. Thanks gknauf for the patch.
  2329. * src/asctime_r.c
  2330. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2331. Included asctime_r.h from a2time.h.
  2332. * src/a2time.h
  2333. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2334. Added a message "aria2 doesn't verify signature" to log message when
  2335. signature file is saved.
  2336. * src/RequestGroupMan.cc
  2337. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2338. Added the ability to save signature when download is completed if
  2339. signature is available. The filename of signature file is the path to
  2340. download file followed by ".sig". If it already exists, then signature
  2341. will not be saved.
  2342. * src/RequestGroupMan.cc
  2343. * src/Signature.cc
  2344. * test/SignatureTest.cc
  2345. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2346. Updated the descriptions for --bt-seed-unverified.
  2347. * doc/aria2c.1
  2348. * doc/aria2c.1.html
  2349. * doc/aria2c.1.txt
  2350. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  2352. that this is not going to verify files using piece hashes.
  2353. * src/HelpItemFactory.cc
  2354. * src/OptionHandlerFactory.cc
  2355. * src/RequestGroup.cc
  2356. * src/option_processing.cc
  2357. * src/prefs.cc
  2358. * src/prefs.h
  2359. * src/usage_text.h
  2360. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2361. Added the ability to retrieve signature from Metalink file.
  2362. A retrieved signature is stored in Signature class and it is held by
  2363. DownloadContext class. Note that aria2 doesn't verify signature.
  2364. * src/DownloadContext.cc
  2365. * src/DownloadContext.h
  2366. * src/Makefile.am
  2367. * src/Makefile.in
  2368. * src/Metalink2RequestGroup.cc
  2369. * src/MetalinkEntry.cc
  2370. * src/MetalinkEntry.h
  2371. * src/MetalinkParserController.cc
  2372. * src/MetalinkParserController.h
  2373. * src/MetalinkParserStateMachine.cc
  2374. * src/MetalinkParserStateMachine.h
  2375. * src/Signature.cc
  2376. * src/Signature.h
  2377. * src/SignatureMetalinkParserState.cc
  2378. * src/SignatureMetalinkParserState.h
  2379. * src/VerificationMetalinkParserState.cc
  2380. * src/VerificationMetalinkParserState.h
  2381. * test/Metalink2RequestGroupTest.cc
  2382. * test/MetalinkParserControllerTest.cc
  2383. * test/MetalinkProcessorTest.cc
  2384. * test/test.xml
  2385. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2386. Close DiskAdaptor after renaming file.
  2387. * src/RequestGroup.cc
  2388. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2389. Corrected indentation
  2390. * src/DefaultBtProgressInfoFile.cc
  2391. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2392. Moved the calls of std::ios::exceptions() inside of try-catch block
  2393. because if an error occurred in constructor of std::fstream, then
  2394. exception is thrown immediately when std::ios::exceptions() is called
  2395. which results unhandled exception and aria2c aborts.
  2396. * src/DefaultBtProgressInfoFile.cc
  2397. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2398. Added the test for the previous change in DefaultBtContext.cc
  2399. * test/DefaultBtContextTest.cc
  2400. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2401. Fixed the bug that causes infinite loop when the number of pieces are
  2402. fewer than allowed fast set size which is 10 by default.
  2403. * src/DefaultBtContext.cc
  2404. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2405. Updated the descriptions for -j, -s. Added --bt-seed.
  2406. * doc/aria2c.1
  2407. * doc/aria2c.1.html
  2408. * doc/aria2c.1.txt
  2409. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2410. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  2411. aria2 seeds previously downloaded files without validating piece hashs.
  2412. * src/HelpItemFactory.cc
  2413. * src/OptionHandlerFactory.cc
  2414. * src/RequestGroup.cc
  2415. * src/option_processing.cc
  2416. * src/prefs.cc
  2417. * src/prefs.h
  2418. * src/usage_text.h
  2419. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2420. Updated DESCRIPTION of man page.
  2421. * doc/aria2c.1
  2422. * doc/aria2c.1.html
  2423. * doc/aria2c.1.txt
  2424. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  2426. Don't define `struct addrinfo' when __sun is defined.
  2427. * src/getaddrinfo.h
  2428. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2429. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  2430. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  2431. second argument is of type `struct _stati64'. Otherwise it is defined as
  2432. `struct stat'.
  2433. * src/AbstractDiskWriter.cc
  2434. * src/File.cc
  2435. * src/File.h
  2436. * src/a2io.h
  2437. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2438. Fixed the compile error in hurd-i386
  2439. See the original bug report:
  2440. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  2441. * src/a2io.h
  2442. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2443. Code cleanup.
  2444. * src/PeerAbstractCommand.cc
  2445. * src/PeerAbstractCommand.h
  2446. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2447. Removed TransferEncoding.
  2448. * src/DownloadCommand.cc
  2449. * src/DownloadCommand.h
  2450. * src/HttpResponseCommand.cc
  2451. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2452. Updated po files.
  2453. * po/aria2c.pot
  2454. * po/*.po
  2455. * po/*.gmo
  2456. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2457. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  2458. * src/A2STR.cc
  2459. * src/A2STR.h
  2460. * src/ChunkedDecoder.cc
  2461. * src/ChunkedDecoder.h
  2462. * src/ChunkedEncoding.cc: Removed
  2463. * src/ChunkedEncoding.h: Removed
  2464. * src/DownloadCommand.cc
  2465. * src/DownloadCommand.h
  2466. * src/HttpDownloadCommand.cc
  2467. * src/HttpResponse.cc
  2468. * src/HttpResponse.h
  2469. * src/HttpResponseCommand.cc
  2470. * src/HttpSkipResponseCommand.cc
  2471. * src/HttpSkipResponseCommand.h
  2472. * src/Makefile.am
  2473. * src/TransferEncoding.h: Removed
  2474. * test/ChunkedDecoderTest.cc
  2475. * test/ChunkedEncodingTest.cc: Removed
  2476. * test/HttpResponseTest.cc
  2477. * test/Makefile.am
  2478. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2479. Use append instead of insert.
  2480. * src/GZipDecoder.cc
  2481. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2482. Updated doc
  2483. * src/Decoder.h
  2484. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2485. Updated usage text for -s option.
  2486. * src/usage_text.h
  2487. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2488. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  2489. * src/Request.cc
  2490. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2491. Cleaned up configure.ac.
  2492. * configure.ac
  2493. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2494. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  2495. AC_ARG_ENABLE.
  2496. * configure.ac
  2497. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2498. Added gzip, deflate decoding support in HTTP using libz. If compiled
  2499. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  2500. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  2501. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  2502. fly and writes decoded data to a local disk.
  2503. * README
  2504. * README.html
  2505. * configure.ac
  2506. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  2507. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  2508. * m4/libz.m4
  2509. * src/Decoder.h
  2510. * src/DownloadCommand.cc
  2511. * src/DownloadCommand.h
  2512. * src/Exception.h
  2513. * src/GZipDecoder.cc
  2514. * src/GZipDecoder.h
  2515. * src/HttpHeader.cc
  2516. * src/HttpHeader.h
  2517. * src/HttpRequest.cc
  2518. * src/HttpRequest.h
  2519. * src/HttpResponse.cc
  2520. * src/HttpResponse.h
  2521. * src/HttpResponseCommand.cc
  2522. * src/Makefile.am
  2523. * test/GZipDecoderTest.cc
  2524. * test/HttpRequestTest.cc
  2525. * test/HttpResponseTest.cc
  2526. * test/Makefile.am
  2527. * test/Makefile.in
  2528. * test/gzip_decode_test.gz
  2529. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2530. Clarified usage of -j option.
  2531. * src/usage_text.h
  2532. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2533. Disabled getting size from the response of RETR.
  2534. If SIZE command failed, then disable resuming and segmented downloading.
  2535. * src/FtpConnection.cc
  2536. * src/FtpConnection.h
  2537. * src/FtpNegotiationCommand.cc
  2538. * src/FtpNegotiationCommand.h
  2539. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2540. Use digits to find first byte of file size, which makes the intention
  2541. of the code clearer.
  2542. * src/FtpConnection.cc
  2543. Don't call validateTotalLength() when size is 0.
  2544. * src/FtpNegotiationCommand.cc
  2545. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2546. Updated po files.
  2547. * po/aria2c.pot
  2548. * po/*.gmo
  2549. * po/*.po
  2550. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2551. Clarified usage text for --split option.
  2552. * src/usage_text.h
  2553. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. Bump up version number to 0.15.0dev. "dev" means "development"
  2555. version, which means I started the development of the next release!
  2556. * src/configure.ac
  2557. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2558. If FTP server returns negative response with REST raw command and
  2559. requested range is not 0, throw exception. If requested range is 0,
  2560. continue download a file from 0 byte.
  2561. * src/FtpNegotiationCommand.cc
  2562. * src/FtpNegotiationCommand.h
  2563. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2564. Supported FTP server which don't recognize SIZE raw command.
  2565. If SIZE raw command is failed, aria2 will try to get file size
  2566. from the response of RETR raw command. If both attempts are failed,
  2567. then resuming and segmented downloading are disabled.
  2568. * src/FtpConnection.cc
  2569. * src/FtpConnection.h
  2570. * src/FtpNegotiationCommand.cc
  2571. * src/FtpNegotiationCommand.h
  2572. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2573. * Release 0.14.0+1
  2574. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2575. Bump up version number to 0.14.0+1
  2576. * src/configure.ac
  2577. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2578. Fixed the code that refers static member variable from non-static
  2579. context.
  2580. * src/DefaultPeerStorage.cc
  2581. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2582. * Release 0.14.0
  2583. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2584. Added build test script
  2585. * build_test.sh
  2586. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2587. Updated ja.po
  2588. * src/ja.po
  2589. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2590. Bump up version number to 0.14.0
  2591. * src/configure.ac
  2592. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2593. Updated ja.po and fr.po. Great thanks for french translators and
  2594. Sebastien WILLEMIJNS.
  2595. * po/fr.po
  2596. * po/ja.po
  2597. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2598. Added configure option to enable/disable epoll support.
  2599. * configure.ac
  2600. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2601. Updated man page.
  2602. * doc/aria2c.1.txt
  2603. * doc/aria2c.1
  2604. * doc/aria2c.1.html
  2605. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2606. Added missing default value '5' to the usage of --split option.
  2607. * src/HelpItemFactory.cc
  2608. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2609. Filled up pieces based on the number of missing blocks, rather than
  2610. simplay the number of piece * block length.
  2611. * src/BtRequestFactory.h
  2612. * src/DefaultBtInteractive.cc
  2613. * src/DefaultBtInteractive.h
  2614. * src/DefaultBtRequestFactory.cc
  2615. * src/DefaultBtRequestFactory.h
  2616. * src/Piece.cc
  2617. * src/Piece.h
  2618. * test/BitfieldManTest.cc
  2619. * test/DefaultBtRequestFactoryTest.cc
  2620. * test/MockBtRequestFactory.h
  2621. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Made _epEvents a member variable.
  2623. * src/DownloadEngine.cc
  2624. * src/DownloadEngine.h
  2625. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2626. Cancel download if http redirect is bounded more than 20 times.
  2627. * src/AbstractCommand.cc
  2628. * src/HttpSkipResponseCommand.cc
  2629. * src/Request.cc
  2630. * src/Request.h
  2631. * test/RequestTest.cc
  2632. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2633. Fixed unhandled exception(removed keyword `new').
  2634. * src/SocketCore.cc (initEPOLL)
  2635. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2636. Removed visit(const MetaEntry*)
  2637. * src/MetaEntryVisitor.h:
  2638. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  2639. and made them virtual.
  2640. * src/BencodeVisitor.h
  2641. * src/BencodeVisitor.cc
  2642. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2643. Updated po files.
  2644. * po/aria2c.pot
  2645. * po/*.po
  2646. * po/*.gmo
  2647. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2648. Moved the call setWriteCheckSocket inside the previous clause to reduce
  2649. the number of socket to watch out.
  2650. * src/PeerInteractionCommand.cc
  2651. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2652. When there is not enough space in disk when writing a chunk of data,
  2653. aria2 now prints the message to the console to warn user and aborts
  2654. its download. Not all downloads are canceled because some downloads
  2655. may use another disk or partition. BUG#1640332
  2656. * src/AbstractDiskWriter.cc
  2657. * src/PeerAbstractCommand.cc
  2658. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  2659. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  2660. setHaltRequested(true) to cancel download.
  2661. * src/PeerInteractionCommand.h
  2662. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2663. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  2664. socket from int to sock_t as sockets are unsigned in Windows.
  2665. For AsyncNameResolver, DownloadEngine, I did additional modification
  2666. for the portion of the code changed according to epoll support.
  2667. I defined sock_t in a2netcompat.h to use sock_t without including
  2668. SocketCore.h.
  2669. * src/AsyncNameResolver.cc
  2670. * src/AsyncNameResolver.h
  2671. * src/DownloadEngine.cc
  2672. * src/DownloadEngine.h
  2673. * src/SocketCore.cc
  2674. * src/SocketCore.h
  2675. * src/a2netcompat.h
  2676. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  2678. changes in the patch were applied.
  2679. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  2680. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  2681. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  2682. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2683. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  2684. a2io.h and common.h were modified.
  2685. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  2686. MinGW.
  2687. * src/common.h: Changed off_t to 64 bit in MinGW.
  2688. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2689. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2690. only a2netcompat.h is modified.
  2691. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  2692. directives.
  2693. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2694. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2695. only gai_strerror.h is modified.
  2696. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  2697. winsock errors in MinGW.
  2698. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  2700. follow sources are applied.
  2701. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  2702. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  2703. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  2704. I included locale.h from Platform.cc.
  2705. * src/main.cc: Moved common setup/teardown code to Platform class.
  2706. * test/AllTest.cc: Use Platform class.
  2707. Set locale to C in AllTest.cc to prevent the messages to be localized.
  2708. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  2710. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  2711. * test/HttpRequestTest.cc: Casted to off_t where it should.
  2712. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2713. Applied Ross's aria2-0.13.2+1-mingw.patch and
  2714. aria2-0.13.2+1-mingw-2.patch.
  2715. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  2716. systems which don't have termious.h. I moved the directive inside of
  2717. if(isTTY) { ... clause so that line is wiped out without termious.h.
  2718. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  2719. anyway.
  2720. * src/asctime_r.h
  2721. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  2722. I added 2nd argument to the prototype declaration.
  2723. * src/StringFormat.cc: Get rid of vasprintf.
  2724. * src/getaddrinfo.h: Fixed constants.
  2725. * configure.ac: Added the check for asctime_r function.
  2726. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  2727. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2728. Added writable test for Socket when the sending message is in progress.
  2729. Usually the sending message is piece message. Without wriable check,
  2730. upload latency is dropped to more than 1sec.
  2731. * src/PeerInteractionCommand.cc
  2732. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. Create only requested files and files which shares a piece with
  2734. requested file in multi-torrent downloads. Directory structures are
  2735. also created in the same rule.
  2736. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  2737. DiskWriterEntry as in the previous implementation.
  2738. * src/MultiDiskWriter.cc
  2739. * src/MultiFileAllocationIterator.cc
  2740. * src/MultiFileAllocationIterator.h
  2741. * test/MultiFileAllocationIteratorTest.cc
  2742. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2743. Commented out -lprofiler
  2744. * src/Makefile.am
  2745. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2746. Bump up version number to 0.14.0b.
  2747. * src/configure.ac
  2748. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2749. Actively establish connection to peers in seeding, when peer cache
  2750. is not full and max upload speed limit is not reached.
  2751. * src/ActivePeerConnectionCommand.cc
  2752. * src/ActivePeerConnectionCommand.h
  2753. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2754. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  2755. to make room more fleshy, recently found peers.
  2756. Peer::_badConditionStartTime is not used anymore. Consider to remove
  2757. it.
  2758. * src/DefaultPeerStorage.cc
  2759. * test/DefaultPeerStorageTest.cc
  2760. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2761. Returns cached data only when the previous receiveHandshake() is called
  2762. with peek = true.
  2763. * src/PeerConnection.cc (receiveHandshake)
  2764. * src/PeerConnection.h (receiveHandshake)
  2765. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Changed default value of -s option from 1 to 5.
  2767. Also max value of -s option is changed from 5 to 16.
  2768. * src/HelpItemFactory.cc
  2769. * src/OptionHandlerFactory.cc
  2770. * src/option_processing.cc
  2771. * src/usage_text.h
  2772. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Changed -s options behavior. Now it means the number of connections
  2774. made simultaneously in each http/ftp download.
  2775. If 1 URL is specified, the behavior is the same with old implementation.
  2776. If -s N is given and more than N URLs are specified, first N URLs are
  2777. used and remaining URLs are used for backup. If less than N URLs are
  2778. specified, some of URLs are used more than once so that totally N
  2779. connections are made simultaneously.
  2780. * src/main.cc
  2781. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2782. Included missing iosfwd or ostream header.
  2783. * src/RequestGroupMan.cc
  2784. * src/TaggedItem.cc
  2785. * src/TaggedItem.h
  2786. * src/Util.cc
  2787. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  2789. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  2790. * src/HttpConnection.cc: Included missing sstream.
  2791. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2792. Added --bt-max-open-files option.
  2793. * src/DefaultPieceStorage.cc
  2794. * src/HelpItemFactory.cc
  2795. * src/MultiDiskAdaptor.cc
  2796. * src/MultiDiskAdaptor.h
  2797. * src/OptionHandlerFactory.cc
  2798. * src/option_processing.cc
  2799. * src/prefs.cc
  2800. * src/prefs.h
  2801. * src/usage_text.h
  2802. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Fixed the bug that aria2 aborts when a path to a directory is given
  2804. in command-line.
  2805. * src/ProtocolDetector.cc
  2806. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2807. Limited the number files opened in each BitTorrent download. The default
  2808. value is 100. The option to change this value will be added.
  2809. * src/MultiDiskAdaptor.cc
  2810. * src/MultiDiskAdaptor.h
  2811. * src/MultiFileAllocationIterator.cc
  2812. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2813. Fixed the bug that HTTP downloads don't start with old libraries.
  2814. * src/HttpHeaderProcessor.cc
  2815. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Use empty() instead of size() > 0.
  2817. * src/HttpConnection.cc
  2818. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2819. Drop connection if the incoming peer ID is the same with localhost's
  2820. one. The previous implementation drops connection when incoming peer's
  2821. IP address is the same with localhost's one.
  2822. * src/PeerListenCommand.cc
  2823. * src/DefaultBtInteractive.cc
  2824. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Returns cached data without checking whether socket is readable
  2826. if the cache is available.
  2827. * src/PeerConnection.cc (receiveHandshake)
  2828. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2829. Included stdint.h
  2830. * src/common.h
  2831. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2832. Removed duplicate HAVE_GETTIMEOFDAY
  2833. * src/Makefile.am
  2834. * src/Makefile.in
  2835. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2836. Use interval as a minInterval when minInterval is not supplied.
  2837. * src/DefaultBtAnnounce.cc
  2838. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2839. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  2840. attempt is failed, then 2nd attempt get kicked out more quickly.
  2841. And it is now static const member of DefaultBtAnnounce.
  2842. * src/DefaultBtAnnounce.h
  2843. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  2845. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  2846. * src/ActivePeerConnectionCommand.cc
  2847. * src/BtConstants.h
  2848. * src/BtRuntime.h
  2849. * src/DHTGetPeersCommand.cc
  2850. * src/DefaultBtAnnounce.cc
  2851. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  2852. BtRuntime::MAX_PEERS.
  2853. * src/DefaultPeerStorage.h
  2854. * src/InitiatorMSEHandshakeCommand.cc
  2855. * src/PeerInitiateConnectionCommand.cc
  2856. * src/PeerInteractionCommand.cc
  2857. * src/PeerReceiveHandshakeCommand.cc
  2858. * src/TrackerWatcherCommand.cc
  2859. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2860. Always Connect to _numNewConnection
  2861. * src/ActivePeerConnectionCommand.cc
  2862. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Made `begin' unsigned int.
  2864. * src/GrowSegment.h
  2865. * src/Piece.cc
  2866. * src/Piece.h
  2867. * src/PiecedSegment.cc
  2868. * src/PiecedSegment.h
  2869. * src/Segment.h
  2870. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2871. Calculate piece hash when data is arrived if the data is arrived in
  2872. order. This removes additional read operation for hash calculation.
  2873. If the data is arrived in out of order, the hash is calucated when the
  2874. piece is completed. This is the same behavior as the old implementation.
  2875. * src/BtPieceMessage.cc
  2876. * src/DefaultBtProgressInfoFile.cc
  2877. * src/DefaultPieceStorage.cc
  2878. * src/DownloadCommand.cc
  2879. * src/DownloadCommand.h
  2880. * src/DownloadEngine.cc
  2881. * src/GrowSegment.cc
  2882. * src/GrowSegment.h
  2883. * src/Piece.cc
  2884. * src/Piece.h
  2885. * src/PiecedSegment.cc
  2886. * src/PiecedSegment.h
  2887. * src/Segment.h
  2888. * test/PieceTest.cc
  2889. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Try to keep the ordering of outgoing piece message.
  2891. * src/DefaultBtMessageDispatcher.cc
  2892. (DefaultBtMessageDispatcher::sendMessages)
  2893. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Fixed busy loop when error/hup epoll events occur.
  2895. * src/AbstractCommand.cc
  2896. * src/PeerAbstractCommand.cc
  2897. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2898. Added --bt-request-peer-speed-limit option, which was a constant
  2899. SLOW_SPEED_THRESHOLD.
  2900. * src/ActivePeerConnectionCommand.cc
  2901. * src/ActivePeerConnectionCommand.h
  2902. * src/BtConstants.h
  2903. * src/HelpItemFactory.cc
  2904. * src/OptionHandlerFactory.cc
  2905. * src/PeerReceiveHandshakeCommand.cc
  2906. * src/option_processing.cc
  2907. * src/prefs.cc
  2908. * src/prefs.h
  2909. * src/usage_text.h
  2910. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2911. Removed repeated call of getTopDirPath(). Instead, call it once and
  2912. cache the result.
  2913. * src/MultiDiskAdaptor.cc
  2914. * src/MultiDiskAdaptor.h
  2915. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2916. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2917. Fixed compile error on debian etch.
  2918. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2919. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2920. it is undefined.
  2921. * src/Util.cc (ULLONG_MAX)
  2922. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2923. Added epoll support. Use epoll if it is available. If not, use select.
  2924. When async dns is enabled in compile time, epoll support is enabled
  2925. only when aria2 is built with c-ares. This condition statement is
  2926. defined in a2io.h.
  2927. Currently aria2 supports both c-ares and ares, but ares is maintained
  2928. for quite a while and debian already has c-ares package, ares support
  2929. will be dropped in the future version.
  2930. * configure.ac
  2931. * src/AbstractCommand.cc
  2932. * src/AsyncNameResolver.cc
  2933. * src/AsyncNameResolver.h
  2934. * src/Command.cc
  2935. * src/Command.h
  2936. * src/DownloadEngine.cc
  2937. * src/DownloadEngine.h
  2938. * src/PeerAbstractCommand.cc
  2939. * src/SocketCore.cc
  2940. * src/SocketCore.h
  2941. * src/a2io.h
  2942. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2943. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2944. directive.
  2945. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Do not do write operation to /dev/null file.
  2947. * src/LogFactory.cc
  2948. * src/SimpleLogger.cc
  2949. Replaced vasprintf with vsnprintf
  2950. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2951. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2952. * src/BtRequestMessage.cc
  2953. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2954. for segmentation fault caused by previous commit.
  2955. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2956. Reduced the usage of gettimeofday().
  2957. * src/DefaultBtMessageDispatcher.cc
  2958. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2959. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2960. * src/RequestSlot.cc
  2961. * src/RequestSlot.h
  2962. (RequestSlot::isTimeout)
  2963. Made RequestSlot have a reference to Piece object to avoid find
  2964. Piece repeatedly.
  2965. * src/DefaultBtMessageDispatcher.cc
  2966. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2967. * src/RequestSlot.cc
  2968. * src/RequestSlot.h
  2969. (RequestSlot::getPiece)
  2970. * test/DefaultBtMessageDispatcherTest.cc
  2971. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2972. * src/TimeA2.cc
  2973. * src/TimeA2.h
  2974. (Time::difference): New function.
  2975. (Time::elapsed): Done optimization.
  2976. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2978. directive.
  2979. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2980. * src/option_processing.cc: Added missing `defined' keyword to #if
  2981. directive.
  2982. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Bump up version number to 0.13.2+1
  2984. * src/configure.ac
  2985. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2986. Refactored broken outstanding piece handling.
  2987. * src/DefaultPieceStorage.cc
  2988. * src/DefaultPieceStorage.h
  2989. * src/Piece.cc
  2990. * src/Piece.h
  2991. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2993. name collision of static variable and predefined macro.
  2994. * src/BtContext.cc
  2995. * src/BtContext.h
  2996. * src/CookieBoxFactory.cc
  2997. * src/CookieBoxFactory.h
  2998. * src/CookieParser.cc
  2999. * src/CookieParser.h
  3000. * src/DefaultBtContext.cc
  3001. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3002. * src/RequestGroup.cc
  3003. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3004. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3005. * Release 0.13.2
  3006. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3007. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3008. * po/fr.po
  3009. * po/ja.po
  3010. * po/aria2c.pot
  3011. * po/*.po
  3012. * po/*.gmo
  3013. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3014. Bump up version number to 0.13.2
  3015. * src/configure.ac
  3016. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3017. Refactord.
  3018. * src/RequestGroupMan.cc
  3019. (removeStoppedGroup)
  3020. (fillRequestGroupFromReserver)
  3021. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3022. Fixed compile error on Ubuntu.
  3023. * src/BtPieceMessage.cc
  3024. * src/MessageDigestHelper.cc
  3025. * src/Util.cc
  3026. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Fixed compile error when configured with --disable-bittorrent
  3028. * test/DownloadHandlerFactoryTest.cc
  3029. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. Done make update-po
  3031. * po/aria2c.pot
  3032. * po/*.po
  3033. * po/*.gmo
  3034. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3035. Bump up version number to 0.13.2rc.
  3036. * src/configure.ac
  3037. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3038. Made option name bold. Updated SYNOPSIS to make it more readable.
  3039. * doc/aria2c.1.txt
  3040. * doc/aria2c.1
  3041. * doc/aria2c.1.html
  3042. * src/version_usage.cc
  3043. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Refactored. Use std::string instead of size and char*.
  3045. * Data.cc
  3046. * Data.h
  3047. * test/Data.cc
  3048. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Added trimSelf(). Rewritten trim() to use trimSelf().
  3050. * Util.cc
  3051. * Util.h
  3052. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3053. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3054. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3055. Fixed compile error when configured with --disable-metalink.
  3056. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3057. * test/FeatureConfigTest.cc
  3058. * test/DownloadHandlerFactoryTest.cc
  3059. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. Fixed compile error when configured with --without-gnutls
  3061. --without-openssl
  3062. * src/main.cc
  3063. * test/DefaultBtProgressInfoFileTest.cc
  3064. * test/SegmentManTest.cc
  3065. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3066. Fixed compile error with OpenSSL.
  3067. * src/IteratableChunkChecksumValidator.cc
  3068. * src/LibsslDHKeyExchange.h
  3069. * src/MessageDigestHelper.cc
  3070. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3071. Revert the default value of --max-concurrent-downloads to 5.
  3072. Revert the default value of --metalink-servers to 5.
  3073. Man pages was also updated.
  3074. * src/option_processing.cc
  3075. * doc/aria2c.1.txt
  3076. * doc/aria2c.1.html
  3077. * doc/aria2c.1
  3078. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Returns const reference:
  3080. DownloadContext::getPieceHash, DownloadContext::getName,
  3081. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3082. BtContext::getInfoHashAsString,
  3083. * src/BtContext.h
  3084. * src/DefaultBtContext.cc
  3085. * src/DefaultBtContext.h
  3086. * src/DownloadContext.h
  3087. * src/SingleFileDownloadContext.h
  3088. * test/MockBtContext.h
  3089. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3090. * src/RequestGroup.h (getDir): Removed.
  3091. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3092. Returns const reference. The internal urlencode function was optimized
  3093. a little bit.
  3094. * src/Request.cc
  3095. * src/Request.h
  3096. * src/HttpRequest.cc
  3097. * src/HttpRequest.h
  3098. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3099. Defined option name and possible values as std::string to reduce
  3100. temporary string object creation in runtime.
  3101. * src/HelpItemFactory.cc
  3102. * src/LogFactory.cc
  3103. * src/Option.cc
  3104. * src/OptionHandlerFactory.cc
  3105. * src/option_processing.cc
  3106. * src/prefs.cc
  3107. * src/prefs.h
  3108. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3109. Return const reference.
  3110. * src/DownloadHandlerConstants.cc
  3111. * src/DownloadHandlerConstants.h
  3112. (getMetalinkExtensions)
  3113. (getMetalinkContentTypes)
  3114. (getBtExtensions)
  3115. (getBtContentTypes)
  3116. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3117. * src/HttpHeader.cc (get): Rewritten.
  3118. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. Make HttpHeader::getFirst(...) return const reference.
  3120. * src/HttpHeader.cc
  3121. * src/HttpHeader.h
  3122. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3124. it with V_TRUE.
  3125. * src/DefaultPieceStorage.cc
  3126. * src/DownloadCommand.cc
  3127. * src/FtpNegotiationCommand.cc
  3128. * src/HttpRequest.cc
  3129. * src/InitiateConnectionCommand.cc
  3130. * src/RequestGroup.cc
  3131. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Made Option::get(...) return const reference of std::string.
  3133. * src/Option.cc
  3134. * src/Option.h
  3135. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3136. Replaced std:copy with insert.
  3137. * src/DefaultBtMessageDispatcher.cc
  3138. * src/DefaultPieceStorage.cc
  3139. * src/DownloadEngineFactory.cc
  3140. * src/RequestGroup.cc
  3141. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3142. Included SocketCore.h to fix compiler warning.
  3143. * src/InitiateConnectionCommand.cc
  3144. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3145. Put piece selection strategy algorithm to RarestPieceSelector class,
  3146. Added a switch to choose whether randomized selection so that unit
  3147. tests emit same results in, possibly, win32.
  3148. * src/DefaultPieceStorage.cc
  3149. * src/DefaultPieceStorage.h
  3150. * src/RarestPieceSelector.cc
  3151. * src/RarestPieceSelector.h
  3152. * test/DefaultPieceStorageTest.cc
  3153. * test/RarestPieceSelectorTest.cc
  3154. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3155. Don't pool connection if HTTP proxy is enabled.
  3156. * src/FtpFinishDownloadCommand.cc
  3157. * src/FtpNegotiationCommand.cc
  3158. * src/HttpSkipResponseCommand.cc
  3159. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3160. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3161. * src/AbstractCommand.cc
  3162. * src/AbstractCommand.h
  3163. * src/ActivePeerConnectionCommand.cc
  3164. * src/FtpInitiateConnectionCommand.cc
  3165. * src/HttpInitiateConnectionCommand.cc
  3166. * src/InitiateConnectionCommandFactory.cc
  3167. * src/PeerAbstractCommand.cc
  3168. * src/PeerAbstractCommand.h
  3169. * src/PeerInitiateConnectionCommand.cc
  3170. * src/TrackerWatcherCommand.cc
  3171. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3172. Sort RequestSlot in ascending order and manipulate them using
  3173. lower_bound.
  3174. * src/DefaultBtMessageDispatcher.cc
  3175. * src/DefaultBtMessageDispatcher.h
  3176. (getMessageQueue): Added const qualifier.
  3177. (getRequestSlots): Added const qualifier.
  3178. (sendMessages): Use empty() instead of size().
  3179. (doCancelSendingPieceAction): Use HandleEvent object.
  3180. (doAbortOutstandingRequestAction): Rewritten.
  3181. (doChokedAction): Rewritten.
  3182. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3183. (isOutstandingRequest): Rewritten.
  3184. (getOutstandingRequest): Rewritten.
  3185. (removeOutstandingRequest): Rewritten.
  3186. (addOutstandingRequest): Rewritten.
  3187. * src/RequestSlot.cc
  3188. * src/RequestSlot.h
  3189. (operator=): Rewritten.
  3190. (operator!=): New function.
  3191. (operator<): New function.
  3192. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3193. * src/DefaultBtRequestFactory.cc
  3194. (doChokedAction): Rewritten.
  3195. (removeCompletedPiece): Rewritten.
  3196. (removeTargetPiece): Rewritten.
  3197. (createRequestMessages): Added the debug log.
  3198. (createRequestMessagesOnEndGame: Added the debug log.
  3199. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Added the debug log message.
  3201. * src/BtPieceMessage.cc (doReceivedAction)
  3202. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3204. used lower_bound to process them rather than linear search.
  3205. * src/DHTPeerAnnounceStorage.cc
  3206. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3208. peer has at least one completed piece.
  3209. * src/Peer.cc
  3210. * src/Peer.h
  3211. * src/PeerInteractionCommand.cc
  3212. * src/PeerSessionResource.cc
  3213. * src/PeerSessionResource.h
  3214. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3215. Removed unnecessary sorting
  3216. * src/DefaultPieceStorage (DefaultPieceStorage)
  3217. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Rewritten the portion of the code that mangaes allowed fast indexes.
  3219. * src/PeerSessionResource.cc
  3220. * src/PeerSessionResource.h
  3221. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3222. Removed the invalid string including '\r' from ru.po and
  3223. did make update-po.
  3224. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Added --log-level and --summary-interval to man page.
  3226. * doc/aria2c.1.txt
  3227. * doc/aria2c.1.html
  3228. * doc/aria2c.1
  3229. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3230. Added --log-level option to specify log level. Log messages under
  3231. the specified level are not output. Default value is `debug'.
  3232. * src/HelpItemFactory.cc
  3233. * src/LogFactory.cc
  3234. * src/LogFactory.h
  3235. * src/Logger.h
  3236. * src/OptionHandlerFactory.cc
  3237. * src/SimpleLogger.cc
  3238. * src/SimpleLogger.h
  3239. * src/main.cc
  3240. * src/option_processing.cc
  3241. * src/prefs.h
  3242. * src/usage_text.h
  3243. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3244. Print download progress summary of all parallel downloads in specified
  3245. interval, default 60 secs. While aria2 could download several files
  3246. in parallel (see -j option), it displayed just first download progress,
  3247. and the other downloads are hidden from the users. This new feature
  3248. prints all downloads currently in-progress to the console so that you
  3249. can check the status of all downloads. The interval can be adjusted
  3250. by --summary-interval option.
  3251. The progress readout is now cut so that all fits in the one line of
  3252. console.
  3253. * src/ConsoleStatCalc.cc
  3254. * src/ConsoleStatCalc.h
  3255. * src/HelpItemFactory.cc
  3256. * src/OptionHandlerFactory.cc
  3257. * src/RequestGroupMan.cc
  3258. * src/RequestGroupMan.h
  3259. * src/main.cc
  3260. * src/option_processing.cc
  3261. * src/prefs.h
  3262. * src/usage_text.h
  3263. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3264. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3265. * src/DownloadEngine.cc (DownloadEngine)
  3266. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3267. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3268. defined.
  3269. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3270. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Use erase+lower_bound+insert instead of sort.
  3272. * src/DefaultPieceStorage.cc (addPieceStats)
  3273. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3274. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3275. * src/A2STR.cc
  3276. * src/A2STR.h
  3277. * src/OptionParser.cc (parse)
  3278. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Defined fake filename `[tracker.announce]' as static const std::string.
  3280. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3281. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Defined default filename `index.html' as static const std::string
  3283. * src/SingleFileDownloadContext.cc
  3284. * src/SingleFileDownloadContext.h
  3285. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3286. Defined "[MEMORY]" as static const std::string.
  3287. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3288. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3289. Defined control file's version number as static const std::string.
  3290. * src/DefaultBtProgressInfoFile.cc
  3291. * src/DefaultBtProgressInfoFile.h
  3292. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. Use Request::METHOD_GET
  3294. * src/RequestGroup.cc (createNextCommandWithAdj)
  3295. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Defined "OK", "ERR", "INPR" as static const std::string
  3297. * src/RequestGroupMan.cc (showDownloadResults)
  3298. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3299. Defined default client used in extended handshake as static const
  3300. std::string
  3301. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3302. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3303. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3304. * src/HttpConnection.cc (eraseConfidentialInfo)
  3305. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3306. Defined default ftp user and password as static const std::string
  3307. * src/AuthConfigFactory.cc
  3308. * src/AuthConfigFactory.h
  3309. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3310. Defined strings used in netrc as static const std::string
  3311. * src/Netrc.cc
  3312. * src/Netrc.h
  3313. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3314. Defined HTTP status as static const std::string
  3315. * src/AbstractProxyResponseCommand.cc
  3316. * src/HttpHeader.cc
  3317. * src/HttpHeader.h
  3318. * src/HttpResponse.cc
  3319. * src/HttpResponseCommand.cc
  3320. * src/HttpSkipResponseCommand.cc
  3321. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3322. Defined "\r\n", "A", "I" as static const std::string
  3323. * src/A2STR.cc
  3324. * src/A2STR.h
  3325. * src/FtpConnection.cc
  3326. * src/FtpConnection.h
  3327. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3328. Added COLON_C(".") and used it in Request::parseUrl()
  3329. * src/A2STR.cc
  3330. * src/A2STR.h
  3331. * src/Request.cc (parseUrl)
  3332. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. Changed the type of padName from `const std::string&' to `const char*'.
  3334. * src/MSEHandshake.cc (verifyPadLength)
  3335. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3336. Defined "sha1" as static const std::string.
  3337. * src/MetalinkParserController.cc
  3338. * src/MetalinkParserController.h
  3339. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3340. Defined message digest algorithm name as static const std::string
  3341. * src/DHTTokenTracker.cc
  3342. * src/DHTUtil.cc
  3343. * src/DefaultBtContext.cc
  3344. * src/MSEHandshake.cc
  3345. * src/MessageDigestHelper.cc
  3346. * src/Peer.cc
  3347. * src/messageDigest.cc
  3348. * src/messageDigest.h
  3349. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. Made string literals used in SAX parser static const std::string.
  3351. * src/FileMetalinkParserState.cc
  3352. * src/FileMetalinkParserState.h
  3353. * src/FilesMetalinkParserState.cc
  3354. * src/FilesMetalinkParserState.h
  3355. * src/InitialMetalinkParserState.cc
  3356. * src/InitialMetalinkParserState.h
  3357. * src/MetalinkMetalinkParserState.cc
  3358. * src/MetalinkMetalinkParserState.h
  3359. * src/PiecesMetalinkParserState.cc
  3360. * src/PiecesMetalinkParserState.h
  3361. * src/ResourcesMetalinkParserState.cc
  3362. * src/ResourcesMetalinkParserState.h
  3363. * src/VerificationMetalinkParserState.cc
  3364. * src/VerificationMetalinkParserState.h
  3365. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3366. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  3367. * src/A2STR.cc
  3368. * src/A2STR.h
  3369. * src/File.cc
  3370. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3371. Defined static const std::string IP("ip"), PORT("port") and use them
  3372. instead of string literals.
  3373. * src/DefaultPeerListProcessor.cc
  3374. * src/DefaultPeerListProcessor.h
  3375. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3376. Made string literals for torrent file processing static const
  3377. std::string.
  3378. * src/BtContext.cc
  3379. * src/BtContext.h
  3380. * src/DefaultBtContext.cc
  3381. * src/DefaultBtContext.h
  3382. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Made string literal for tracker response static const std::string
  3384. * src/BtAnnounce.cc
  3385. * src/BtAnnounce.h
  3386. * src/DefaultBtAnnounce.cc
  3387. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Use DHTMessage::T instead of "t".
  3389. * src/DHTMessageTracker.cc (messageArrived)
  3390. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Made keyName static const. Made trimmed charset static const
  3392. std::string.
  3393. * src/Util.cc (getContentDispositionFilename)
  3394. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Made USER_AGENT const. Made "/" static const std::string.
  3396. * src/A2STR.cc
  3397. * src/A2STR.h
  3398. * src/HttpRequest.cc
  3399. * src/HttpRequest.h
  3400. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Made string listeral to static const std::string:
  3402. "Content-Range", "Content-Length"
  3403. * src/HttpHeader.cc
  3404. * src/HttpHeader.h
  3405. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. Made string listeral to static const std::string.
  3407. * src/HttpConnection.cc
  3408. * src/HttpHeader.cc
  3409. * src/HttpHeader.h
  3410. * src/HttpResponse.cc
  3411. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3412. Made string listeral to static const std::string.
  3413. * src/A2STR.cc
  3414. * src/A2STR.h
  3415. * src/SimpleLogger.cc
  3416. * src/SimpleLogger.h
  3417. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3418. Made string literal to static const std::string.
  3419. Rewritten CookieParser::setField.
  3420. * src/A2STR.cc
  3421. * src/A2STR.h
  3422. * src/CookieBoxFactory.cc
  3423. * src/CookieBoxFactory.h
  3424. * src/CookieParser.cc
  3425. * src/CookieParser.h
  3426. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3427. Made string literal to static const std::string
  3428. * src/DHTAbstractMessage.cc
  3429. * src/DHTAnnouncePeerMessage.cc
  3430. * src/DHTAnnouncePeerMessage.h
  3431. * src/DHTAnnouncePeerReplyMessage.cc
  3432. * src/DHTAnnouncePeerReplyMessage.h
  3433. * src/DHTFindNodeMessage.cc
  3434. * src/DHTFindNodeMessage.h
  3435. * src/DHTFindNodeReplyMessage.cc
  3436. * src/DHTFindNodeReplyMessage.h
  3437. * src/DHTGetPeersMessage.cc
  3438. * src/DHTGetPeersMessage.h
  3439. * src/DHTGetPeersReplyMessage.cc
  3440. * src/DHTGetPeersReplyMessage.h
  3441. * src/DHTMessage.cc
  3442. * src/DHTMessage.h
  3443. * src/DHTMessageFactoryImpl.cc
  3444. * src/DHTMessageReceiver.cc
  3445. * src/DHTPingMessage.cc
  3446. * src/DHTPingMessage.h
  3447. * src/DHTPingReplyMessage.cc
  3448. * src/DHTPingReplyMessage.h
  3449. * src/DHTQueryMessage.cc
  3450. * src/DHTQueryMessage.h
  3451. * src/DHTResponseMessage.cc
  3452. * src/DHTResponseMessage.h
  3453. * src/DHTUnknownMessage.cc
  3454. * src/DHTUnknownMessage.h
  3455. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3456. Made string literal to static const std::string
  3457. * src/BtChokeMessage.cc (toString)
  3458. * src/BtHaveAllMessage.cc (toString)
  3459. * src/BtHaveNoneMessage.cc (toString)
  3460. * src/BtInterestedMessage.cc (toString)
  3461. * src/BtNotInterestedMessage.cc (toString)
  3462. * src/BtUnchokeMessage.cc (toString)
  3463. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3464. Replaced "" with static const variable A2STR::NIL.
  3465. Replaced string comparison against "" with std::string::empty().
  3466. Added PROTO_* to Request class and use them as a protocol string
  3467. constant.
  3468. Made "started", "stopped", "completed" static const variable in
  3469. AnnounceList class.
  3470. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. Updated translations. Great thanks to translators.
  3472. * po/ca.po
  3473. * po/de.po
  3474. * po/fr.po
  3475. * po/it.po
  3476. * po/ja.po
  3477. * po/ru.po
  3478. * po/zh_CN.po
  3479. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3480. Updated man page; categorized options and fixed typo.
  3481. * doc/aria2c.1.txt
  3482. * doc/aria2c.1.html
  3483. * doc/aria2c.1
  3484. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3485. Removed const ref
  3486. * src/MetalinkEntry.cc (AddProtocolPreference)
  3487. * src/RequestGroup.cc (FindServerHostByHostname)
  3488. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3489. Rewritten Accept-Features handling.
  3490. * src/HttpRequestCommand.cc (createHttpRequest)
  3491. * src/a2functional.h
  3492. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3493. Changed method signature:
  3494. DHTAbstractNodeLookupTask::toEntries
  3495. * src/DHTAbstractNodeLookupTask.cc
  3496. * src/DHTAbstractNodeLookupTask.h
  3497. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Changed method signature:
  3499. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  3500. * src/BtContext.h
  3501. * src/DefaultBtContext.cc
  3502. * src/DefaultBtContext.h
  3503. * src/DefaultBtInteractive.cc
  3504. * test/DefaultBtContextTest.cc
  3505. * test/MockBtContext.h
  3506. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3507. Changed method signature:
  3508. MultiFileAllocationIterator::makeDiskWriterEntries
  3509. * src/MultiFileAllocationIterator.cc
  3510. * src/MultiFileAllocationIterator.h
  3511. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Changed method sinature:
  3513. MetalinkEntry::toFileEntry,
  3514. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  3515. Metalinker::queryEntry
  3516. * src/Metalink2RequestGroup.cc
  3517. * src/MetalinkEntry.cc
  3518. * src/MetalinkEntry.h
  3519. * src/MetalinkHelper.cc
  3520. * src/MetalinkHelper.h
  3521. * src/Metalinker.cc
  3522. * src/Metalinker.h
  3523. * src/main.cc
  3524. * test/MetalinkHelperTest.cc
  3525. * test/MetalinkerTest.cc
  3526. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Changed method sinature:
  3528. RequestGroup::getURIs
  3529. * src/RequestGroup.cc
  3530. * src/RequestGroup.h
  3531. * test/Metalink2RequestGroupTest.cc
  3532. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3533. Changed method signature:
  3534. PeerListProcessor::extractPeer
  3535. * src/CompactPeerListProcessor.cc
  3536. * src/CompactPeerListProcessor.h
  3537. * src/DefaultBtAnnounce.cc
  3538. * src/DefaultPeerListProcessor.cc
  3539. * src/DefaultPeerListProcessor.h
  3540. * src/DelegatingPeerListProcessor.cc
  3541. * src/DelegatingPeerListProcessor.h
  3542. * src/PeerListProcessor.h
  3543. * src/UTPexExtensionMessage.cc
  3544. * test/DefaultPeerListProcessorTest.cc
  3545. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3546. Changed method signature:
  3547. BtRequestFactory::createRequestMessages,
  3548. BtRequestFactory::createRequestMessagesOnEndGame
  3549. * src/BtRequestFactory.h
  3550. * src/DefaultBtInteractive.cc
  3551. * src/DefaultBtRequestFactory.cc
  3552. * src/DefaultBtRequestFactory.h
  3553. * test/DefaultBtRequestFactoryTest.cc
  3554. * test/MockBtRequestFactory.h
  3555. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3556. Changed method signature:
  3557. PieceStorage::getInFlightPieces
  3558. * src/DefaultBtProgressInfoFile.cc
  3559. * src/DefaultPieceStorage.cc
  3560. * src/DefaultPieceStorage.h
  3561. * src/PieceStorage.h
  3562. * src/UnknownLengthPieceStorage.cc
  3563. * src/UnknownLengthPieceStorage.h
  3564. * test/DefaultBtProgressInfoFileTest.cc
  3565. * test/MockPieceStorage.h
  3566. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Changed method signature:
  3568. PostDownloadHandler::getNextRequestGroups
  3569. Metalink2RequestGroup::generate
  3570. RequestGroup::postDownloadProcessing
  3571. * src/BtPostDownloadHandler.cc
  3572. * src/BtPostDownloadHandler.h
  3573. * src/Metalink2RequestGroup.cc
  3574. * src/Metalink2RequestGroup.h
  3575. * src/MetalinkPostDownloadHandler.cc
  3576. * src/MetalinkPostDownloadHandler.h
  3577. * src/PostDownloadHandler.h
  3578. * src/RequestGroup.cc
  3579. * src/RequestGroup.h
  3580. * src/RequestGroupMan.cc
  3581. * src/main.cc
  3582. * test/BtPostDownloadHandlerTest.cc
  3583. * test/Metalink2RequestGroupTest.cc
  3584. * test/MetalinkPostDownloadHandlerTest.cc
  3585. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3586. Rewritten AccRequestGroup
  3587. * src/main.cc
  3588. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3589. Rewritten.
  3590. * src/TaggedItem.cc (toTagString)
  3591. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3592. Rewritten Accept-Features handling.
  3593. * src/HttpRequestCommand.cc (createHttpRequest)
  3594. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3595. Rewritten accept types handling.
  3596. * HttpRequest.cc (createRequest)
  3597. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Rewritten
  3599. * src/FeatureConfig.cc (featureSummary)
  3600. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Changed method signature:
  3602. PeerStorage::getActivePeers
  3603. * src/DHTPeerAnnounceEntry.cc
  3604. * src/DefaultPeerStorage.cc
  3605. * src/DefaultPeerStorage.h
  3606. * src/PeerStorage.h
  3607. * test/DefaultPeerStorageTest.cc
  3608. * test/MockPeerStorage.h
  3609. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3610. Changed method signature:
  3611. DHTPeerAnnounceStorage::getPeers,
  3612. DHTPeerAnnounceEntry::getPeers
  3613. * src/DHTGetPeersMessage.cc
  3614. * src/DHTPeerAnnounceEntry.cc
  3615. * src/DHTPeerAnnounceEntry.h
  3616. * src/DHTPeerAnnounceStorage.cc
  3617. * src/DHTPeerAnnounceStorage.h
  3618. * test/DHTAnnouncePeerMessageTest.cc
  3619. * test/DHTPeerAnnounceEntryTest.cc
  3620. * test/DHTPeerAnnounceStorageTest.cc
  3621. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3622. Changed method signature:
  3623. NameResolver::resolve
  3624. * src/DHTEntryPointNameResolveCommand.cc
  3625. * src/InitiateConnectionCommand.cc
  3626. * src/NameResolver.cc
  3627. * src/NameResolver.h
  3628. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3629. Changed method signature:
  3630. PieceStorage::getAdvertisedPieceIndexes
  3631. * src/DefaultBtInteractive.cc
  3632. * src/DefaultPieceStorage.cc
  3633. * src/DefaultPieceStorage.h
  3634. * src/PieceStorage.h
  3635. * src/UnknownLengthPieceStorage.h
  3636. * test/MockPieceStorage.h
  3637. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3638. Changed method signature:
  3639. SegmentMan::getInFlightSegment
  3640. * src/AbstractCommand.cc
  3641. * src/SegmentMan.cc
  3642. * src/SegmentMan.h
  3643. * test/SegmentManTest.cc
  3644. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3645. Changed method signature:
  3646. DHTAbstractNodeLookupTask::getNodesFromMessage
  3647. * src/DHTAbstractNodeLookupTask.cc
  3648. * src/DHTAbstractNodeLookupTask.h
  3649. * src/DHTNodeLookupTask.cc
  3650. * src/DHTNodeLookupTask.h
  3651. * src/DHTPeerLookupTask.cc
  3652. * src/DHTPeerLookupTask.h
  3653. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  3655. * src/AbstractCommand.cc
  3656. * src/BtCheckIntegrityEntry.cc
  3657. * src/BtCheckIntegrityEntry.h
  3658. * src/BtFileAllocationEntry.cc
  3659. * src/BtFileAllocationEntry.h
  3660. * src/BtSetup.cc
  3661. * src/BtSetup.h
  3662. * src/CheckIntegrityCommand.cc
  3663. * src/CheckIntegrityEntry.h
  3664. * src/ChecksumCheckIntegrityEntry.cc
  3665. * src/ChecksumCheckIntegrityEntry.h
  3666. * src/DHTSetup.cc
  3667. * src/DHTSetup.h
  3668. * src/DownloadEngine.cc
  3669. * src/FileAllocationCommand.cc
  3670. * src/FileAllocationEntry.h
  3671. * src/RequestGroup.cc
  3672. * src/RequestGroup.h
  3673. * src/RequestGroupMan.cc
  3674. * src/RequestGroupMan.h
  3675. * src/StreamCheckIntegrityEntry.cc
  3676. * src/StreamCheckIntegrityEntry.h
  3677. * src/StreamFileAllocationEntry.cc
  3678. * src/StreamFileAllocationEntry.h
  3679. * src/TrackerWatcherCommand.cc
  3680. * src/a2functional.h
  3681. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Changed method signature:
  3683. BNode::findClosestKNodes, BNode:: enumerateBucket,
  3684. DHTBucket::getGoodNodes,
  3685. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  3686. * src/BNode.cc
  3687. * src/BNode.h
  3688. * src/DHTAbstractNodeLookupTask.cc
  3689. * src/DHTAutoSaveCommand.cc
  3690. * src/DHTBucket.cc
  3691. * src/DHTBucket.h
  3692. * src/DHTBucketRefreshTask.cc
  3693. * src/DHTFindNodeMessage.cc
  3694. * src/DHTGetPeersMessage.cc
  3695. * src/DHTRoutingTable.cc
  3696. * src/DHTRoutingTable.h
  3697. * test/BNodeTest.cc
  3698. * test/DHTBucketTest.cc
  3699. * test/DHTRoutingTableTest.cc
  3700. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. In piece selection functions, Pass std::deque<...> by reference rather
  3702. than returning it.
  3703. * src/BitfieldMan.cc
  3704. * src/BitfieldMan.h
  3705. * src/DefaultBtRequestFactory.cc
  3706. * src/DefaultPieceStorage.cc
  3707. * src/Piece.cc
  3708. * src/Piece.h
  3709. * test/BitfieldManTest.cc
  3710. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3711. Implemented rarest piece first piece selection strategy.
  3712. * src/AbstractBtMessage.cc
  3713. * src/AbstractBtMessage.h
  3714. * src/BitfieldMan.cc
  3715. * src/BitfieldMan.h
  3716. * src/BtBitfieldMessage.cc
  3717. * src/BtHaveAllMessage.cc
  3718. * src/BtHaveMessage.cc
  3719. * src/DefaultPieceStorage.cc
  3720. * src/DefaultPieceStorage.h
  3721. * src/PeerInteractionCommand.cc
  3722. * src/PieceStorage.h
  3723. * src/UnknownLengthPieceStorage.h
  3724. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Rewritten readData and writeData.
  3726. * src/MultiDiskAdaptor.cc
  3727. * src/MultiDiskAdaptor.h
  3728. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Move \n out of the message "Usage: ...".
  3730. * src/version_usage.cc
  3731. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Bump up version number to 0.13.2b.
  3733. * configure.ac
  3734. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. Added const qualifier to argument Exception& e.
  3736. * src/Logger.h
  3737. * src/SimpleLogger.cc
  3738. * src/SimpleLogger.h
  3739. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3740. Pool connection when CWD, SIZE command fails.
  3741. * src/FtpNegotiationCommand.cc
  3742. * src/FtpNegotiationCommand.h
  3743. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3744. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  3745. * src/HttpResponseCommand.cc
  3746. * src/HttpSkipResponseCommand.cc
  3747. * src/HttpSkipResponseCommand.h
  3748. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Pool connection when a server returns 4xx, 5xx responses.
  3750. * src/HttpNullDownloadCommand.cc
  3751. * src/HttpNullDownloadCommand.h
  3752. * src/HttpResponse.cc
  3753. * src/HttpResponse.h
  3754. * src/HttpResponseCommand.cc
  3755. * src/HttpResponseCommand.h
  3756. * test/HttpResponseTest.cc
  3757. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3758. Print usage when no URL is specifed or bad command-line option is
  3759. specified.
  3760. * src/HelpItemFactory.cc
  3761. * src/help_tags.h
  3762. * src/option_processing.cc
  3763. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3764. Removed duplicate log message.
  3765. * src/AbstractCommand.cc (asyncResolveHostname)
  3766. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3767. Updated man page: --async-dns and --ftp-reuse-connection were added.
  3768. Changed -j option's default value from 5 to 1.
  3769. Added new examples using protocol auto detection feature.
  3770. Removed -T, -M usage where it can be omitted.
  3771. * doc/aria2c.1.txt
  3772. * doc/aria2c.1.html
  3773. * doc/aria2c.1.txt
  3774. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3775. Updated command-line usage text, so that it tells users that they
  3776. can specify any number of torrent files and metalink files in
  3777. command-line.
  3778. * src/version_usage.cc
  3779. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. Changed the default value of -j option to 1.
  3781. * src/HelpItemFactory.cc
  3782. * src/option_processing.cc
  3783. * src/usage_text.h
  3784. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. Added the ability to reuse connection in FTP and it is enabled by
  3786. default. It can be disabled by --ftp-reuse-connection=false option.
  3787. * src/Command.cc
  3788. * src/DownloadCommand.cc
  3789. * src/FtpDownloadCommand.cc
  3790. * src/FtpDownloadCommand.h
  3791. * src/FtpFinishDownloadCommand.cc
  3792. * src/FtpFinishDownloadCommand.h
  3793. * src/FtpInitiateConnectionCommand.cc
  3794. * src/FtpNegotiationCommand.cc
  3795. * src/FtpNegotiationCommand.h
  3796. * src/HelpItemFactory.cc
  3797. * src/Makefile.am
  3798. * src/Makefile.in
  3799. * src/OptionHandlerFactory.cc
  3800. * src/option_processing.cc
  3801. * src/prefs.h
  3802. * src/usage_text.h
  3803. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3804. Call Command::transitStatus() before calling Command::execute(),
  3805. so that the status change made in execute() is not cleared.
  3806. * src/DownloadEngine.cc
  3807. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. Removed forward declaration of SocketCore class.
  3809. * src/HttpDownloadCommand.h
  3810. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  3812. in InitiateConnectionCommandFactory. They should be set only when
  3813. the protocol is HTTP or HTTPS.
  3814. * src/InitiateConnectionCommandFactory.cc
  3815. * src/RequestGroup.cc
  3816. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3817. Fixed infinite loop in checksum checking.
  3818. * src/IteratableChecksumValidator.cc
  3819. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3820. Set _supportsPersistentConnection to true by default.
  3821. * src/Request.cc
  3822. * src/RequestGroup.cc
  3823. * test/HttpRequestTest.cc
  3824. * test/RequestTest.cc
  3825. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Added timeout to socket pool. The default timeout is 15 seconds,
  3827. which is the same value Apache uses.
  3828. * src/DownloadEngine.cc
  3829. * src/DownloadEngine.h
  3830. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Fixed misuse of multimap::find()
  3832. * src/HttpHeader.cc
  3833. * test/HttpHeaderTest.cc
  3834. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3835. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  3836. option.
  3837. The asynchronous DNS is not capable of IPv6 yet.
  3838. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  3839. least for HTTP download.
  3840. * src/AbstractCommand.cc
  3841. * src/AbstractCommand.h
  3842. * src/AsyncNameResolver.cc
  3843. * src/AsyncNameResolver.h
  3844. * src/DHTEntryPointNameResolveCommand.cc
  3845. * src/DHTEntryPointNameResolveCommand.h
  3846. * src/DownloadEngine.cc
  3847. * src/DownloadEngine.h
  3848. * src/FtpInitiateConnectionCommand.cc
  3849. * src/FtpInitiateConnectionCommand.h
  3850. * src/HelpItemFactory.cc
  3851. * src/HttpInitiateConnectionCommand.cc
  3852. * src/HttpInitiateConnectionCommand.h
  3853. * src/InitiateConnectionCommand.cc
  3854. * src/InitiateConnectionCommand.h
  3855. * src/Makefile.am
  3856. * src/Makefile.in
  3857. * src/NameResolver.cc
  3858. * src/NameResolver.h
  3859. * src/OptionHandlerFactory.cc
  3860. * src/SocketCore.cc
  3861. * src/SocketCore.h
  3862. * src/Util.cc
  3863. * src/Util.h
  3864. * src/option_processing.cc
  3865. * src/prefs.h
  3866. * src/usage_text.h
  3867. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3868. Updated man page: --quiet, --header were added.
  3869. --metalink-servers and --enable-http-keep-alive option were updated.
  3870. * doc/aria2c.1
  3871. * doc/aria2c.1.html
  3872. * doc/aria2c.1.txt
  3873. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Enable HTTP keep-alive by default.
  3875. * src/HelpItemFactory.cc
  3876. * src/option_processing.cc
  3877. * src/usage_text.h
  3878. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. Disable http keep-alive if the remote server is not HTTP/1.1.
  3880. * src/HttpConnection.cc
  3881. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3882. Receive content body of 302 response so that the connection can be
  3883. reused later when http keep-alive is enabled.
  3884. * src/HttpNullDownloadCommand.cc
  3885. * src/HttpNullDownloadCommand.h
  3886. * src/HttpResponseCommand.cc
  3887. * src/HttpResponseCommand.h
  3888. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3889. const SharedHandle<Request> -> const SharedHandle<Request>&
  3890. * src/FtpDowndloadCommand.cc
  3891. * src/FtpDowndloadCommand.h
  3892. * src/HttpDownloadCommand.cc
  3893. * src/HttpDownloadCommand.h
  3894. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Fixed the bug that the control file(.aria2 file) is not renamed
  3896. according to tryAutoFileRenaming().
  3897. tryAutoFileRenaming() was rewritten so that if both renamed file and
  3898. its control file exist, use them and continue download.
  3899. The old implementation didn't take into account of control file's
  3900. existence, so basically you couldn't continue download of renamed file.
  3901. * src/BtProgressInfoFile.h
  3902. * src/DefaultBtProgressInfoFile.cc
  3903. * src/DefaultBtProgressInfoFile.h
  3904. * src/NullProgressInfoFile.h
  3905. * src/RequestGroup.cc
  3906. * test/DefaultBtProgressInfoFileTest.cc
  3907. * test/MockBtProgressInfoFile.h
  3908. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3909. Change the default value of --metalink-servers option from `5' to `1'.
  3910. * src/HelpItemFactory.cc
  3911. * src/option_processing.cc
  3912. * src/usage_text.h
  3913. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3914. Reimplemented transparent metalink using Accept request header.
  3915. * src/HttpRequest.cc
  3916. * src/HttpRequest.h
  3917. * src/HttpRequestCommand.cc
  3918. * src/Metalink2RequestGroup.cc
  3919. * src/RequestGroup.cc
  3920. * src/RequestGroup.h
  3921. * test/HttpRequestTest.cc
  3922. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3923. Bump up version number to 0.13.2a
  3924. * configure.ac
  3925. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Updated configure.ac using the result of autoscan.
  3927. * configure.ac
  3928. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3929. Fixed compilation error without gcrypt/openssl.
  3930. * src/DownloadCommand.cc
  3931. * src/DownloadCommand.h
  3932. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Reorganized version information so that it can be displayed in a
  3934. standard terminal screen without scrolling.
  3935. Removed http, ftp from Configuration section, because they are always
  3936. enabled.
  3937. * src/FeatureConfig.cc
  3938. * src/FeatureConfig.h
  3939. * src/main.cc
  3940. * src/messageDigest.cc
  3941. * src/messageDigest.h
  3942. * src/version_usage.cc
  3943. * test/FeatureConfigTest.cc
  3944. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3945. Masked user ID in log.
  3946. * src/FtpConnection.cc (sendUser)
  3947. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3948. Removed query part from filename in HTTP download. The query part means
  3949. the substring after "?" in URL. Firefox seems do the same thing.
  3950. A query part is sometimes very long and not suitable to filename,
  3951. so I think it is better to remove it from filename.
  3952. * src/HttpRequest.cc
  3953. * src/HttpRequest.h
  3954. * src/Request.cc
  3955. * src/Request.h
  3956. * test/HttpRequestTest.cc
  3957. * test/RequestTest.cc
  3958. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3959. Rewritten Exception class. Throw exception object, not its pointer and
  3960. catch by reference, so that remove problematic delete operator for
  3961. catched exception.
  3962. * src/Exception.cc
  3963. * src/Exception.h
  3964. * test/ExceptionTest.cc
  3965. * src/*: All files throwing/catching exception.
  3966. * test/*: All files throwing/catching exception.
  3967. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Now auto protocol detection is enabled without -Z option.
  3969. But there is a important difference between with/without -Z optoin.
  3970. For example, if you type:
  3971. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3972. then, aria2 interprets there are 3 request groups:
  3973. (1) http://host/file, http://mirror/file <-- multi-source download
  3974. (2) file1.torrent
  3975. (3) file2.metalink
  3976. On the other hand, if you invoke above command with -Z option, it is
  3977. interpreted as 4 request groups:
  3978. (1) http://host/file
  3979. (2) file1.torrent
  3980. (3) file2.metalink
  3981. (4) http://mirror/file
  3982. I think usually user don't mix multi-source URLs and torrent files, so
  3983. there is no big problem here.
  3984. * src/main.cc
  3985. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3986. Fixed the bug that causes segmentaion fault when reading XML containing
  3987. unescapsed character like '&'.
  3988. Also a modification was made which avoids adding unnecessary
  3989. characters stack and appending unused string.
  3990. * src/ExpatMetalinkProcessor.cc
  3991. * src/FileMetalinkParserState.h
  3992. * src/FilesMetalinkParserState.h
  3993. * src/FinMetalinkParserState.h
  3994. * src/HashMetalinkParserState.h
  3995. * src/InitialMetalinkParserState.h
  3996. * src/LanguageMetalinkParserState.h
  3997. * src/MetalinkMetalinkParserState.h
  3998. * src/MetalinkParserState.h
  3999. * src/MetalinkParserStateMachine.cc
  4000. * src/MetalinkParserStateMachine.h
  4001. * src/OSMetalinkParserState.h
  4002. * src/PieceHashMetalinkParserState.h
  4003. * src/PiecesMetalinkParserState.h
  4004. * src/ResourcesMetalinkParserState.h
  4005. * src/SizeMetalinkParserState.h
  4006. * src/SkipTagMetalinkParserState.h
  4007. * src/URLMetalinkParserState.h
  4008. * src/VerificationMetalinkParserState.h
  4009. * src/VersionMetalinkParserState.h
  4010. * src/XML2SAXMetalinkProcessor.cc
  4011. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4012. Added StringFormat class, which internally calls vasprintf.
  4013. operator<< is defined for this class, so it can be used with iostream
  4014. classes nicely. SimpleLogger and following functions are rewritten
  4015. using StringFormat class.
  4016. Besides, now Logger class's methods are non-const, many classes
  4017. that has a const Logger* as a member variable are modified to remove
  4018. const qualifier from the variable declaration.
  4019. * src/HelpItemFactory.cc
  4020. * src/Request.cc
  4021. * src/SimpleLogger.cc
  4022. * src/StringFormat.cc
  4023. * src/StringFormat.h
  4024. * src/Util.cc
  4025. * src/option_processing.cc
  4026. * src/version_usage.cc
  4027. * test/StringFormatTest.cc
  4028. * src/*.h: The classes that has const Logger* as a member variable.
  4029. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4031. failed. Also fixed memory link when exception is thrown there.
  4032. * src/main.cc (AccRequestGroup)
  4033. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4034. Added build-in "Accept-Features" support. For now only "metalink" is
  4035. used in this header field.
  4036. This "metalink" value is removed from the list when connecting URLs
  4037. fed by metalink file to avoid loop in "transparent" metlaink.
  4038. * src/HttpRequest.cc
  4039. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4040. header is also held in this variable. Also renamed setUserHeaders as
  4041. addHeader and it was rewritten to add header not just to clear the old
  4042. value.
  4043. * src/HttpRequestCommand.cc
  4044. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4045. from "Accept-Features" list.
  4046. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4047. default.
  4048. * src/RequestGroup.h
  4049. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4050. * src/a2functional.h: Included <string> because Concat class depends on
  4051. it.
  4052. * test/HttpRequestTest.cc
  4053. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Added comment
  4055. * src/RequestGroup.cc (createNextCommand)
  4056. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Capitalized METHOD_GET and METHOD_HEAD
  4058. * src/Request.cc
  4059. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. Added getDownloadResults() method
  4061. * src/RequestGroupMan.cc
  4062. * src/RequestGroupMan.h
  4063. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Fixed the bug that aria2 exits when commands is empty() but
  4065. _routineCommands are not.
  4066. * src/DownloadEngine.cc
  4067. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4068. Use the default value pulled from Option object in HelpItemFactory.
  4069. except options whose defualt value is embedded in a usage text.
  4070. * src/HelpItemFactory.cc
  4071. * src/HelpItemFactory.h
  4072. * src/option_processing.cc
  4073. * src/version_usage.cc
  4074. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4075. Added --quiet option to make aria2 quiet (no console output).
  4076. --quiet option is tagged with ADVANCED.
  4077. * src/HelpItemFactory.cc
  4078. * src/LogFactory.cc
  4079. * src/LogFactory.h
  4080. * src/MultiUrlRequestInfo.cc
  4081. * src/MultiUrlRequestInfo.h
  4082. * src/NullStatCalc.h: New class. This class prints nothing.
  4083. * src/OptionHandlerFactory.cc
  4084. * src/main.cc
  4085. * src/option_processing.cc
  4086. * src/prefs.h
  4087. * src/usage_text.h
  4088. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4089. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4090. * src/HelpItemFactory.cc (createHelpItems):
  4091. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4092. Fixed compilation error in ExpatMetalinkProcessor.cc
  4093. * src/ExpatMetalinkProcessor.cc
  4094. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4095. Reuse socket if the origin server supports HTTP keep-alive and
  4096. --enable-http-keep-alive or --enable-http-pipelining is given.
  4097. The current implementation doesn't reuse the connections established
  4098. against proxy server.
  4099. * src/AbstractCommand.cc
  4100. * src/DownloadEngine.cc
  4101. * src/DownloadEngine.h
  4102. * src/HttpDownloadCommand.cc
  4103. * src/HttpInitiateConnectionCommand.cc
  4104. * src/HttpResponseCommand.cc
  4105. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4106. Rewritten HTTP keep-alive and pipelining routine.
  4107. * src/AbstractCommand.cc
  4108. * src/HttpConnection.cc
  4109. * src/HttpDownloadCommand.cc
  4110. * src/HttpRequest.cc
  4111. * src/HttpRequestCommand.cc
  4112. * src/HttpResponseCommand.cc
  4113. * src/Request.cc
  4114. * src/Request.h
  4115. * src/RequestGroup.cc
  4116. * test/HttpRequestTest.cc
  4117. * test/HttpResponseTest.cc
  4118. * test/RequestTest.cc
  4119. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4120. Added missing setUserHeaders call
  4121. * src/HttpRequestCommand.cc
  4122. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4123. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4124. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4125. waste of time because it is more likey false.
  4126. * src/FileAllocationDispatcherCommand.cc (execute)
  4127. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4128. Now HTTP status and version are a member variable of HttpHeader.
  4129. HTTP status is processed as a string, not integer.
  4130. * src/AbstractProxyResponseCommand.cc
  4131. * src/HttpConnection.cc
  4132. * src/HttpHeader.cc
  4133. * src/HttpHeader.h
  4134. * src/HttpHeaderProcessor.cc
  4135. * src/HttpHeaderProcessor.h
  4136. * src/HttpResponse.cc
  4137. * src/HttpResponse.h
  4138. * test/HttpHeaderProcessorTest.cc
  4139. * test/HttpResponseTest.cc
  4140. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. Added --header option. You can specify any number of additional HTTP headers
  4142. like:
  4143. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4144. Unlike other commad-line option, you can use --header option multiple times.
  4145. * src/HelpItemFactory.cc
  4146. * src/HttpRequest.{cc, h}
  4147. * src/HttpRequestCommand.cc
  4148. * src/OptionHandlerFactory.cc
  4149. * src/OptionHandlerImpl.h
  4150. * src/option_processing.cc
  4151. * src/prefs.h
  4152. * src/usage_text.h
  4153. * test/HttpRequestTest.cc (testUserHeaders)
  4154. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4155. Eliminates the time lag between sequential downloads and commands in
  4156. the same RequestGroup.
  4157. In old implementation, aria2 occasionally waits 1 seconds before
  4158. executing next command or RequestGroup.
  4159. This is really a waste of time, and new implementation eliminates
  4160. this unnecessary time lag.
  4161. * src/AbstractCommand.cc
  4162. * src/AutoSaveCommand.cc
  4163. * src/CheckIntegrityCommand.cc
  4164. * src/Command.{cc, h}
  4165. * src/DownloadEngine.{cc, h}
  4166. * src/DownloadEngineFactory.cc
  4167. * src/FileAllocationCommand.cc
  4168. * src/FileAllocationDispatcherCommand.cc
  4169. * src/FillRequestGroupCommand.cc
  4170. * src/FtpInitiateConnectionCommand.cc
  4171. * src/HaveEraseCommand.cc
  4172. * src/HttpInitiateConnectionCommand.cc
  4173. * src/HttpResponseCommand.cc
  4174. * src/RealtimeCommand.cc
  4175. * src/RequestGroup.cc
  4176. * src/RequestGroupMan.cc
  4177. * src/StreamFileAllocationEntry.cc
  4178. * src/TimeBasedCommand.{cc, h}
  4179. * src/TimedHaltCommand.cc
  4180. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4182. keyword explicit and SharedHandle's default constructor initializes
  4183. its internal obj to null, old implementation initializes it using
  4184. obj's default constructor.
  4185. To assign null, write SharedHandle<T> x(...); x.reset();
  4186. TODO: test/SharedHandleTest.cc needs more tests.
  4187. * src/SharedHandle.h
  4188. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Fixed type in man page.
  4190. * doc/aria2c.1.txt
  4191. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4193. * src/SimpleLogger.{cc, h}
  4194. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Implemented auto protocol detection.
  4196. Now you can do:
  4197. aria2c -Z http://host/file file1.torrent file2.metalink
  4198. (Note: -Z option is required for auto protcol detection.)
  4199. Then aria2c downloads 3 files simultaneously:
  4200. 1. http://host/file
  4201. 2. file1.torrent <-- read local torrent file
  4202. 3. file2.metalink <-- read local Metalink file.
  4203. Same thing goes with -i option. Assume your uris.txt contans:
  4204. http://host/file
  4205. file1.torrent
  4206. file2.metalink
  4207. Then you can do: aria2c -i uris.txt
  4208. (Note: -Z option is not needed if -i option is given.)
  4209. * src/main.cc
  4210. * src/ProtocolDetector.{cc, h}
  4211. * test/ProtocolDetectorTest.cc
  4212. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4213. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4214. installed
  4215. * src/ARC4Encryptor.h
  4216. * src/ARC4Decryptor.h
  4217. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Renamed argument from 'errno' to 'err', since errno is confused with
  4219. errno defined in errno.h.
  4220. * src/LibgcryptARC4Decryptor.h
  4221. * src/LibgcryptARC4Context.h
  4222. * src/LibgcryptDHKeyExchange.h
  4223. * src/LibgcryptARC4Encryptor.h
  4224. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4225. Rewritten choking algorithm.
  4226. * src/PeerChokeCommand.{cc, h}
  4227. * src/BtInterestedMessage.cc
  4228. * src/PeerSessionResource.{cc, h}
  4229. * src/DefaultPeerStorage.{cc, h}
  4230. * src/BtNotInterestedMessage.cc
  4231. * src/DefaultBtMessageDispatcher.{cc, h}
  4232. * src/BtMessageDispatcher.h
  4233. * src/Peer.{cc, h}
  4234. * src/BtLeecherStateChoke.{cc, h}
  4235. * src/BtSetup.cc
  4236. * src/BtSeederStateChoke.{cc, h}
  4237. * src/PeerStorage.h
  4238. * test/MockPeerStorage.h
  4239. * test/MockBtMessageDispatcher.h
  4240. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4241. Fixed compilation error on x84-64 platform.
  4242. * src/AuthConfig.cc: Included ostream.
  4243. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4244. Rewritten getBasename() and getDirname(), without standard library
  4245. basename(), dirname().
  4246. * src/File.cc
  4247. * test/FileTest.cc
  4248. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Added Simplified Chinese translation. Also updated the following
  4250. translations: Polish, Dutch, German. Great thanks to all translators.
  4251. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. Suppress content-range error when 'Content-Range' response header
  4253. doesn't contains bytes-unit specifier 'bytes'
  4254. * src/HttpHeader.cc (getRange)
  4255. * test/HttpHeaderTest.cc
  4256. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Fixed compilation error with g++-4.3
  4258. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4259. Added missing include files for MinGW
  4260. * test/HttpHeaderProcessorTest.cc
  4261. * test/DHTRoutingTableSerializerTest.cc
  4262. * test/DHTRoutingTableDeserializerTest.cc
  4263. * test/UriListParserTest.cc
  4264. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4265. Now download line is printed nicely with no garbage at the end of
  4266. line. I use ioctl to get the columns of terminal.
  4267. If stdout is redirected to another device, instead of carriage return,
  4268. end of line '\n' character is used. This is feature request#1909659
  4269. * src/ConsoleStatCalc.cc (calculateStat)
  4270. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4271. Included a2time.h
  4272. * src/DHTMessageDispatcher.h
  4273. * src/DHTMessageEntry.h
  4274. * src/DHTReplaceNodeTask.h
  4275. * src/DHTMessageTracker.h
  4276. * src/Util.h
  4277. * src/CookieBox.h
  4278. * src/SocketCore.h
  4279. * src/DefaultBtMessageDispatcher.h
  4280. * src/SocketCore.cc
  4281. * src/Util.cc
  4282. * src/DHTPingTask.h
  4283. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4284. Fixed high memory footprint when DHT is enabled.
  4285. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4286. queued than it is processed and the queue is getting longer. As a
  4287. consequence, momory usage is increased.
  4288. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4289. replacement cache in DHTBucket which is described in Kademlia paper.
  4290. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4291. DHTReplaceNodeTask.
  4292. * src/DHTBucket.{h, cc}
  4293. (cacheNode): New function.
  4294. (getCachedNodes): New function.
  4295. (dropNode): Push back cached node to _nodes.
  4296. * test/DHTBucketTest.cc
  4297. (testCacheNode): New test
  4298. (testDropNode): New test
  4299. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4300. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4301. the unused 4KB memory when ssl is not used.
  4302. * src/SocketCore.cc
  4303. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Added summary log for peer announce storage.
  4305. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4306. Removed cast
  4307. * src/DefaultPeerStorage.cc (addPeer)
  4308. Log exception message
  4309. * src/DHTMessageTracker.cc (handleTimeout)
  4310. Fixed casting
  4311. * test/HttpRequestTest.cc
  4312. * test/MetalinkProcessorTest.cc
  4313. * test/PieceTest.cc
  4314. * test/MetalinkEntryTest.cc
  4315. * test/SequenceTest.cc
  4316. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. * src/ParameterizedStringParser.cc (createLoop):
  4318. Removed unused variable sstep.
  4319. * src/AlphaNumberDecorator.h (decode): Rewritten.
  4320. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. * src/Util.{h, cc}
  4322. (parseUInt): New function.
  4323. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  4324. The actual range is uint32_t.
  4325. * test/UtilTest.cc
  4326. * src/ParameterizedStringParser.cc:
  4327. Use Util::parseUInt() for loop variables.
  4328. * test/ParameterizedStringParserTest.cc
  4329. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  4330. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Rewritten the functions for binding port.
  4332. * src/DHTConnectionImpl.{h, cc}
  4333. * src/PeerListenCommand.{h, cc}
  4334. * src/DHTSetup.cc
  4335. * src/BtSetup.cc
  4336. * test/DHTConnectionImplTest.cc
  4337. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. type cleanup for allmost all remaining files.
  4339. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. Type clarification
  4341. * src/PeerSessionResource.{h, cc}
  4342. * src/DefaultPieceStorage.{h, cc}
  4343. * src/Peer.{h, cc}
  4344. * test/PeerSessionResourceTest.cc
  4345. Use div function
  4346. * src/BtPieceMessage.cc (erasePieceOnDisk)
  4347. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4348. Type clarification
  4349. * src/DefaultPeerStorage.{h, cc}
  4350. * test/DefaultPeerStorageTest.cc
  4351. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Type clarification: size_t for length or size, uint64_t for file
  4353. length, off_t for file offset.
  4354. * src/DefaultBtProgressInfoFile.cc
  4355. * src/DefaultBtContext.{h, cc}
  4356. * src/DefaultBtInteractive.cc
  4357. * src/DownloadCommand.{h, cc}
  4358. * src/IteratableChunkChecksumValidator.{h, cc}
  4359. * src/SegmentMan.{h, cc}
  4360. * src/SingleFileDownloadContext.{h, cc}
  4361. * src/IteratableChecksumValidator.{h, cc}
  4362. * src/BtContext.h
  4363. * src/IteratableValidator.h
  4364. * src/DownloadContext.h
  4365. * test/SingleFileDownloadContextTest.cc
  4366. * test/DefaultBtContextTest.cc
  4367. * test/MockBtContext.h
  4368. * test/Metalink2RequestGroupTest.cc
  4369. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4370. Type clarification: size_t for length or size, uint64_t for file
  4371. length, off_t for file offset.
  4372. * src/PiecedSegment.cc
  4373. * src/GrowSegment.h
  4374. * src/DefaultBtRequestFactory.h
  4375. * src/DefaultBtProgressInfoFile.cc
  4376. * src/UnknownLengthPieceStorage.h
  4377. * src/DefaultPieceStorage.cc
  4378. * src/UnknownLengthPieceStorage.cc
  4379. * src/DefaultBtInteractive.cc
  4380. * src/GrowSegment.cc
  4381. * src/BitfieldMan.h
  4382. * src/DownloadCommand.cc
  4383. * src/BtRequestFactory.h
  4384. * src/PiecedSegment.h
  4385. * src/DefaultPieceStorage.h
  4386. * src/Piece.cc
  4387. * src/DefaultBtRequestFactory.cc
  4388. * src/PieceStorage.h
  4389. * src/Segment.h
  4390. * src/Piece.h
  4391. * src/BitfieldMan.cc
  4392. * src/Util.cc
  4393. * test/DefaultBtProgressInfoFileTest.cc
  4394. * test/DefaultPieceStorageTest.cc
  4395. * test/MockPieceStorage.h
  4396. * test/BtRequestMessageTest.cc
  4397. * test/DefaultBtMessageDispatcherTest.cc
  4398. * test/BitfieldManTest.cc
  4399. * test/GrowSegmentTest.cc
  4400. * test/PieceTest.cc
  4401. * test/SegmentTest.cc
  4402. * test/SegmentManTest.cc
  4403. * test/DefaultBtRequestFactoryTest.cc
  4404. * test/MockBtRequestFactory.h
  4405. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4406. Fixed compilation error with --disable-nls
  4407. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  4408. in gettext.h causes the problem.
  4409. * src/common.h
  4410. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Removed subPiece related functions.
  4412. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  4413. * src/DefaultPieceStorage.{h, cc}
  4414. * test/PieceTest.cc
  4415. * test/DefaultPieceStorageTest.cc
  4416. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4417. Use unsigned char for data store.
  4418. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Bump up version number to 0.13.0+1
  4420. * configure.ac
  4421. * Release 0.13.0+1
  4422. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Changed inactive connection timeout to 120.
  4424. To accept more mulually interested peers, disconnect peer when there
  4425. is no interest between us after certain time passed.
  4426. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  4427. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Fixed the bug that aria2 only uses first dns server in resolv.conf
  4429. when compiled with async DNS support.
  4430. * src/DownloadEngine.cc
  4431. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  4432. value '10' will be a little bit short when some DNS servers are
  4433. offline and several DNS servers are tried. It should be configured
  4434. by command-line option.
  4435. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. Merged Ross's mingw patch.
  4437. * src/DHTRoutingTableDeserializer.cc
  4438. * src/DHTRoutingTableSerializer.cc
  4439. * src/Platform.{h, cc}
  4440. * src/timegm.h
  4441. * src/gettimeofday.h
  4442. * src/getaddrinfo.h
  4443. * src/SocketCore.h
  4444. * src/common.h
  4445. * src/inet_aton.h
  4446. * src/DownloadEngine.h
  4447. * src/gai_strerror.h
  4448. * src/a2netcompat.h
  4449. * configure.ac
  4450. * configure
  4451. * aclocal.m4
  4452. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Included missing iostream.
  4454. * test/AllTest.cc
  4455. * test/BtDependencyTest.cc
  4456. * test/BtExtendedMessageTest.cc
  4457. * test/DHTConnectionImplTest.cc
  4458. * test/DHTMessageFactoryImplTest.cc
  4459. * test/DHTMessageTrackerEntryTest.cc
  4460. * test/DHTNodeTest.cc
  4461. * test/DHTRoutingTableSerializerTest.cc
  4462. * test/DefaultBtAnnounceTest.cc
  4463. * test/DefaultBtContextTest.cc
  4464. * test/DefaultBtMessageFactoryTest.cc
  4465. * test/DefaultExtensionMessageFactoryTest.cc
  4466. * test/HandshakeExtensionMessageTest.cc
  4467. * test/HttpResponseTest.cc
  4468. * test/MetalinkProcessorTest.cc
  4469. * test/MultiFileAllocationIteratorTest.cc
  4470. * test/SocketCoreTest.cc
  4471. * test/UTPexExtensionMessageTest.cc
  4472. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Reorganized includes.
  4474. * src/NameResolver.cc
  4475. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Fixed compilation error without ares/c-ares
  4477. * src/NameResolver.h:
  4478. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4479. Added a test for large file.
  4480. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  4481. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4482. Fixed the bug that file size is ignored if size > INT32_MAX
  4483. * src/SizeMetalinkParserState.cc (endElement):
  4484. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Bump up version number to 0.13.0
  4486. * configure.ac
  4487. * Release 0.13.0
  4488. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Updated Makfefile.am to make 'make dist' work.
  4490. Now packaged filename is aria2c-VERSION.tar.bz2.
  4491. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  4492. Added LICENSE.OpenSSL to dist_noinst_DATA.
  4493. Large file support is now configured by configure script.
  4494. * configure.ac
  4495. Removed unsused source files
  4496. * src/
  4497. * test/
  4498. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  4499. Peer.h and BtContext.h respectively.
  4500. * src/Peer.h
  4501. * src/BtContext.h
  4502. Updated translations.
  4503. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  4504. translations. Great thanks to all translators!;)
  4505. * po/*.{po, gmo}
  4506. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4507. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  4508. statically declared sha1 MessageDigestContext.
  4509. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  4510. initialization of short-lived MessageDigestContext.
  4511. * src/MessageDigestHelper.{h, cc}
  4512. * src/main.cc
  4513. Now DownloadCommand has a reference to MessageDigestContext to avoid
  4514. the initialization of MessageDigestContext every time in validating
  4515. chunk checksum.
  4516. * src/DownloadCommand.{h, cc}
  4517. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Add a file descriptor which connected to fast peer(latency<1500) to
  4519. select(). This change reduced CPU load.
  4520. * src/PeerInteractionCommand.cc
  4521. * src/DefaultBtInteractive.{h, cc}
  4522. * src/BtInteractive.h
  4523. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Fixed the previous insufficient fix for possible busy loop.
  4525. * src/MSEHandshake.cc (identifyHandshakeType)
  4526. Removed unused functions.
  4527. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  4528. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Fixed possible busy loop if first 20 bytes are not received for a few
  4530. minutes.
  4531. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  4532. * src/ReceiverMSEHandshakeCommand.cc
  4533. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Fixed compilation error
  4535. * src/ExpatMetalinkProcessor.cc
  4536. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  4538. * src/DHTBucket.cc
  4539. Removed unnecessary cast.
  4540. * src/HandshakeExtensionMessage.cc
  4541. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  4543. is missing.
  4544. * src/OptionHandlerFactory.cc
  4545. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4546. Fixed the bug that HAVE message is not sent for a piece they are
  4547. downloaded fom http/ftp server before any BitTorrent handshake is done
  4548. with peers.
  4549. * src/DefaultBtInteractive.cc
  4550. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  4552. * src/Makefile.am
  4553. * src/Makefile.in
  4554. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4555. Updated README. Added html version of README and man page.
  4556. * README
  4557. * README.html
  4558. * readme2html: Shell script to generate README.html from README using
  4559. asciidoc.
  4560. * doc/aria2c.1.html
  4561. * doc/makeman: Added the line to generate aria2c.1.html
  4562. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. Fixed offset calculation.
  4564. * src/LibgcryptDHKeyExchange.h (computeSecret)
  4565. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. Rewritten itos and uitos using template. llitos and ullitos are
  4567. replaced with itos and uitos respectively.
  4568. * src/Util.{h, cc}
  4569. * test/UtilTest.cc
  4570. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Fixed the bug that DH key exchange sometimes fails due to bad handling
  4572. of the number of bytes required for storing public key and shared
  4573. secret.
  4574. * src/LibgcryptDHKeyExchange.h
  4575. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  4576. * src/MSEHandshake.cc
  4577. * test/DHKeyExchangeTest.cc
  4578. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4579. Removed since they are not used.
  4580. * src/Xml2MetalinkProcessor.{h, cc}
  4581. * src/Socket.cc
  4582. * src/SegmentSplitter.{h, cc}
  4583. * test/Xml2MetalinkProcessorTest.cc
  4584. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. Fixed the bug that prevents aria2 from stopping other than by pressing
  4586. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  4587. option. aria2 doesn't stop even after --seed-time is satisfied and
  4588. continues to output blank lines in the console.
  4589. * src/ReceiverMSEHandshakeCommand.cc
  4590. * src/PeerReceiveHandshakeCommand.cc
  4591. * src/PeerListenCommand.cc
  4592. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Bump up version number to 0.13.0rc
  4594. * configure.ac
  4595. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Updated man page and some usage text.
  4597. * doc/aria2c.1.txt
  4598. * src/usage_text.h
  4599. * po/*.{po, gmo}
  4600. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Updated translations. Added Finnish and Hebrew translations.
  4602. Great thanks to all translators!
  4603. * po/*.{po, gmo}
  4604. * po/LINGUAS
  4605. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4606. Log more detailed information about each message.
  4607. * src/DHTQueryMessage.{h, cc}
  4608. * src/DHTGetPeersMessage.{h, cc}
  4609. * src/DHTFindNodeReplyMessage.{h, cc}
  4610. * src/DHTGetPeersReplyMessage.{h, cc}
  4611. * src/DHTAnnouncePeerMessage.{h, cc}
  4612. * src/DHTResponseMessage.{h, cc}
  4613. * src/DHTFindNodeMessage.{h, cc}
  4614. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Use constants defined in prefs.h
  4616. * src/option_processing.cc
  4617. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4618. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  4619. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4620. Make room for future enchancements for IPv6 addresses.
  4621. Bump up version number of dht.dat file format to 2.
  4622. Not compatible with previous version.
  4623. * src/DHTRoutingTableSerializer.cc
  4624. * src/DHTRoutingTableDeserializer.cc
  4625. * test/DHTRoutingTableSerializerTest.cc
  4626. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Added handling for the return values from
  4628. PeerMessageUtil::createcompact().
  4629. * src/DefaultBtContext.cc (computeFastSet):
  4630. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Fixed abort when peer's ip address is IPv4-mapped address.
  4632. * src/DefaultBtContext.cc (computeFastSet)
  4633. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  4634. cannot handle IPv4-mapped addresses.
  4635. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  4636. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4637. Proper return value handling for OpenSSL functions.
  4638. * src/LibsslDHKeyExchange.h
  4639. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4640. Random bytes generation using libgcrypt and OpenSSL.
  4641. * src/DHTUtil.{h, cc}
  4642. * test/DHTUtilTest.cc
  4643. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4644. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  4645. received.
  4646. * src/DHTMessageReceiver.cc (receiveMessage)
  4647. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4648. Fixed the bug that a return code is always 0. BUG#1897704
  4649. If error occurred during the download or there exist unfinished
  4650. downloads, aria2 returns with code 1.
  4651. * src/RequestGroupMan.{h, cc}
  4652. * src/MultiUrlRequestInfo.{h, cc}
  4653. * src/main.cc
  4654. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. IPv6 support for SocketCore class.
  4656. TODO: In SocketCore::establishConnection(), this is insufficient to
  4657. determin the failure of connect() here because the socket is
  4658. non-blocking state. The next addresses should be tried after select().
  4659. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  4660. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  4661. instead which address family independent.
  4662. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  4663. information in a compact peer format which is for IPv4 only.
  4664. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  4665. this is a spec of BitTorrent protocol.
  4666. * src/SocketCore.{h, cc}
  4667. * src/PeerMessageUtil.cc
  4668. * test/SocketCoreTest.cc
  4669. * test/PeerMessageUtilTest.cc
  4670. * test/DHTConnectionImplTest.cc
  4671. Handle IPv4-mapped addresses.
  4672. * src/DHTNode.cc: Now identity is determined by node id.
  4673. * src/DHTMessageTrackerEntry.cc
  4674. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  4675. should handle it.
  4676. * src/DHTRoutingTableDeserializer.cc
  4677. * src/DHTMessageFactoryImpl.cc
  4678. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4679. Change the unit of --stop option from a minute to a second.
  4680. * src/usage_text.h
  4681. * src/DownloadEngineFactory.cc
  4682. * src/OptionHandlerFactory.cc
  4683. * src/message.h
  4684. * src/TimedHaltCommand.cc
  4685. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Make listening socket non-block mode.
  4687. * src/FtpConnection.cc
  4688. * src/FtpNegotiationCommand.{h, cc}
  4689. * src/PeerListenCommand.cc
  4690. Fixed the bug that cause slow ftp negotiation.
  4691. * src/FtpNegotiationCommand.{h, cc}
  4692. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4693. Added basic tag to --enable-dht, --dht-listen-port option.
  4694. * src/HelpItemFactory.cc (createHelpItems)
  4695. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4696. Updated text.
  4697. * src/usage_text.h
  4698. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4699. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  4700. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4701. Determin _threadtholdSpeed in each constructor for
  4702. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  4703. * src/ActivePeerConnectionCommand.{h, cc}
  4704. * src/PeerReceiveHandshakeCommand.{h, cc}
  4705. * src/BtSetup.cc
  4706. * src/BtConstants.h
  4707. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4708. Added --bt-min-crypto-level and --bt-require-crypto options.
  4709. * src/OptionHandlerFactory.cc
  4710. * src/MSEHandshake.cc
  4711. * src/HelpItemFactory.cc
  4712. * src/option_processing.cc
  4713. * src/ReceiverMSEHandshakeCommand.cc
  4714. * src/prefs.h
  4715. * src/DefaultBtAnnounce.cc
  4716. * src/InitiatorMSEHandshakeCommand.cc
  4717. * src/usage_text.h
  4718. * test/MSEHandshakeTest.cc
  4719. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Bump version number to 0.13.0b
  4721. * configure.ac
  4722. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4723. Updated doc.
  4724. * src/MessageDigestHelper.h:
  4725. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4726. Use raw message digest as a token instead of its hexadecimal
  4727. representation.
  4728. * src/DHTTokenTracker.cc (generateToken)
  4729. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4730. Added Message Stream Encryption(MSE) support.
  4731. Currently, aria2 accepts incoming connections with Obfuscation Header
  4732. and legacy BitTorrent Header and establishes connections with
  4733. Obfuscation Header first and if failed then retry with legacy
  4734. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  4735. choose ARC4. The new option to change the default behavior is planned.
  4736. For tracker extension, "supportcrypto=1" is added statically.
  4737. * src/PeerInitiateConnectionCommand.{h, cc}
  4738. * src/PeerConnection.{h, cc}
  4739. * src/HandleRegistry.h
  4740. * src/SocketCore.h
  4741. * src/PeerReceiveHandshakeCommand.{h, cc}
  4742. * src/BtRegistry.{h, cc}
  4743. * src/PeerListenCommand.cc
  4744. * src/InitiatorMSEHandshakeCommand.{h, cc}
  4745. * src/ReceiverMSEHandshakeCommand.{h, cc}
  4746. * src/MSEHandshake.{h, cc}
  4747. * src/ARC4Encryptor.h
  4748. * src/ARC4Decryptor.h
  4749. * src/LibgcryptARC4Encryptor.h
  4750. * src/LibgcryptARC4Decryptor.h
  4751. * src/LibgcryptARC4Context.h
  4752. * src/LibsslARC4Encryptor.h
  4753. * src/LibsslARC4Decryptor.h
  4754. * src/LibsslARC4Context.h
  4755. * src/DHKeyExchange.h
  4756. * src/LibgcryptDHKeyExchange.h
  4757. * src/LibsslDHKeyExchange.h
  4758. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  4759. * test/DefaultBtAnnounceTest.cc
  4760. * test/ARC4Test.cc
  4761. * test/DHKeyExchangeTest.cc
  4762. Removed prepareForRetry() because it is not used.
  4763. * src/PeerAbstractCommand.{h, cc}
  4764. * src/PeerInteractionCommand.{h, cc}
  4765. * src/PeerInitiateConnectionCommand.{h, cc}
  4766. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4767. Added the ability to load nodes from torrent file. These nodes are
  4768. added to the routing table when downloading that torrent.
  4769. * src/BtContext.h
  4770. * src/DefaultBtContext.{h, cc}
  4771. * src/DHTSetup.cc
  4772. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  4773. hostname and port pair, and resolves all of them.
  4774. * src/NameResolver.{h, cc}: Added reset().
  4775. * src/RequestGroup.cc
  4776. * test/DefaultBtContextTest.cc
  4777. * test/MockBtContext.h
  4778. Removed assert() from DefaultBtContext and throw exception instead.
  4779. * src/DefaultBtContext.cc
  4780. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. Fixed segmentation fault bug when exiting if dht is disabled.
  4782. * src/RequestGroup.cc
  4783. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Fixed typo in log message and define the message in message.h
  4785. * src/TimedHaltCommand.cc
  4786. * src/message.h
  4787. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Included RecoverableException.h to fix compilation error.
  4789. * test/DHTMessageFactoryImplTest.cc
  4790. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4791. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  4792. * test/DHTPingMessageTest.cc
  4793. * test/DHTGetPeersMessageTest.cc
  4794. * test/DHTFindNodeMessageTest.cc
  4795. * test/DHTAnnouncePeerMessageTest.cc
  4796. * test/MockDHTMessage.h
  4797. * test/MockDHTMessageFactory.h
  4798. * test/MockDHTMessageDispatcher.h: New class.
  4799. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4800. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  4801. virtual.
  4802. * src/DHTMessageDispatcher.h
  4803. * src/DHTMessageDispatcherImpl.{h, cc}
  4804. * src/DHTSetup.cc
  4805. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Adding handling of DHT error message. Just log error message and
  4807. throw exception.
  4808. * src/DHTMessageFactoryImpl.cc
  4809. * test/DHTMessageFactoryImplTest.cc
  4810. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4811. Added handling of dynamic cast failure.
  4812. * src/DHTNodeLookupTask.cc
  4813. * src/DHTPeerLookupTask.cc
  4814. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4815. Added the ability to stop aria2 itself when given time has passed
  4816. from start. Use --stop option to specify time in minutes.
  4817. When 0 is given, this feature is disabled.
  4818. * src/OptionHandlerFactory.cc
  4819. * src/TimeBasedCommand.h: Make _interval protected scope.
  4820. * src/HelpItemFactory.cc
  4821. * src/option_processing.cc
  4822. * src/prefs.h
  4823. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  4824. before calling RequestGroupMan::fillRequestGroupFromReserver().
  4825. Without this modification, the result list shows "ERR" when aria2 is
  4826. stopped by --stop option. It should be "INPR".
  4827. * src/DownloadEngine.{h, cc}
  4828. * src/DownloadEngineFactory.cc
  4829. * src/usage_text.h
  4830. * src/TimedHaltCommand.{h, cc}: New class.
  4831. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4832. Bootstrap through node added by port message.
  4833. Currently bootstrap is executed if the number of buckets in routing
  4834. table is 1.
  4835. * src/BtPortMessage.{h, cc}
  4836. * src/DefaultBtMessageFactory.{h, cc}
  4837. * src/PeerInteractionCommand.cc
  4838. * test/BtPortMessageTest.cc
  4839. * test/MockDHTTask.h
  4840. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4841. Extract the Peer class's member variables, which are only needed after
  4842. PeerInteractionCommand, into PeerSessionResource class.
  4843. This class is instantiated in PeerInteractionCommand class's ctor and
  4844. released in its dtor.
  4845. This will make Peer class lightweight and uses less memory for peers
  4846. which are not connected and wait in the queue.
  4847. * src/PeerChokeCommand.cc
  4848. * src/PeerSessionResource.{h, cc}
  4849. * src/PeerInteractionCommand.cc
  4850. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  4851. * src/DefaultBtInteractive.cc
  4852. * src/BtPieceMessage.cc
  4853. * src/BtInterestedMessage.cc
  4854. * src/BtUnchokeMessage.cc
  4855. * src/DefaultPeerStorage.{h, cc}
  4856. * src/PeerInitiateConnectionCommand.cc
  4857. * src/ActivePeerConnectionCommand.cc
  4858. * src/BtNotInterestedMessage.cc
  4859. * src/DefaultBtMessageDispatcher.cc
  4860. * src/BtChokeMessage.cc
  4861. * src/BtRequestMessage.cc
  4862. * src/Peer.{h, cc}
  4863. * src/BtRegistry.h
  4864. * src/TrackerWatcherCommand.cc
  4865. * src/PeerReceiveHandshakeCommand.cc
  4866. * test/BtExtendedMessageTest.cc
  4867. * test/BtAllowedFastMessageTest.cc
  4868. * test/BtCancelMessageTest.cc
  4869. * test/DefaultPieceStorageTest.cc
  4870. * test/BtBitfieldMessageTest.cc
  4871. * test/BtHaveMessageTest.cc
  4872. * test/BtNotInterestedMessageTest.cc
  4873. * test/BtRequestMessageTest.cc
  4874. * test/PeerSessionResourceTest.cc
  4875. * test/DefaultBtMessageDispatcherTest.cc
  4876. * test/PeerTest.cc
  4877. * test/BtInterestedMessageTest.cc
  4878. * test/BtRejectMessageTest.cc
  4879. * test/BtChokeMessageTest.cc
  4880. * test/DefaultPeerStorageTest.cc
  4881. * test/BtHaveNoneMessageTest.cc
  4882. * test/BtHaveAllMessageTest.cc
  4883. * test/DefaultExtensionMessageFactoryTest.cc
  4884. * test/BtUnchokeMessageTest.cc
  4885. * test/DefaultBtMessageFactoryTest.cc
  4886. * test/HandshakeExtensionMessageTest.cc
  4887. * test/UTPexExtensionMessageTest.cc
  4888. * test/DefaultBtRequestFactoryTest.cc
  4889. * test/BtPieceMessageTest.cc
  4890. Removed typedef PeerStats.
  4891. * src/PeerStat.h
  4892. * src/SegmentMan.cc
  4893. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. Added std namespace to copy, remove_copy, back_inserter,
  4895. front_inserter.
  4896. * src/RequestGroupMan.cc
  4897. * src/DefaultPieceStorage.cc
  4898. * src/StreamFileAllocationEntry.cc
  4899. * src/BtFileAllocationEntry.cc
  4900. * src/RequestGroup.cc
  4901. * src/MetalinkEntry.cc
  4902. * src/DelegatingPeerListProcessor.cc
  4903. * src/DefaultBtRequestFactory.cc
  4904. * src/DefaultBtMessageDispatcher.cc
  4905. * src/version_usage.cc: Included <algorithm>
  4906. * src/main.cc
  4907. * src/MetalinkParserController.cc
  4908. * src/DefaultBtContext.cc
  4909. * src/DownloadEngineFactory.cc
  4910. * src/a2algo.h
  4911. Removed.
  4912. * test/StreamUriListParserTest.cc
  4913. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4915. ActivePeerConnectionCommand when it is given and
  4916. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4917. * src/ActivePeerConnectionCommand.{h, cc}
  4918. * src/BtSetup.cc
  4919. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4920. Only add socket to DownloadEngine's select routine when peer or
  4921. localhost is unchoked and interested. This lowers CPU usage a
  4922. little bit.
  4923. * src/PeerInteractionCommand.cc
  4924. * src/PeerAbstractCommand.{h, cc}
  4925. * src/BtInteractive.h
  4926. * src/DefaultBtInteractive.{h, cc}
  4927. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4928. Revert previous change because get_peers message is needed for
  4929. announce_peer anyway.
  4930. * src/DHTGetPeersCommand.cc
  4931. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Request peers thought DHT only when download hasn't finished.
  4933. * src/DHTGetPeersCommand.cc
  4934. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4936. * src/DHTBucketRefreshTask.{h, cc}
  4937. * src/DHTSetup.cc
  4938. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4940. standard classes.
  4941. Included string.h where mem* function are used.
  4942. Added namespace aria2.
  4943. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Create directory before saving DHT routing table.
  4945. Now ios::failure is now handled properly.
  4946. * src/DHTAutoSaveCommand.cc
  4947. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Removed unnecessary cerr.
  4949. * src/DownloadEngine.cc
  4950. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. Catch exception inside DHTMessageReceiver::receiveMessage().
  4952. Log unknown message.
  4953. * src/DHTMessageReceiver.{h, cc}
  4954. * src/DHTMessageFactory.h
  4955. * src/DHTMessageFactoryImpl.{h, cc}
  4956. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4957. * src/DHTInteractionCommand.cc
  4958. * src/DHTUnknownMessage.{h, cc}
  4959. * test/DHTUnknownMessageTest.cc
  4960. * test/MockDHTMessageFactory.h
  4961. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4962. Commented out ip address comparison because a host can have multiple
  4963. ip addresses and it is hard to predict the hostname is resolved into
  4964. which one.
  4965. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4966. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. * po/Makefile.in: Removed since this is generated by configure.
  4968. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Fixed compiler warning about redefinition of SIZE_MAX.
  4970. Use common.h instead of config.h directly here.
  4971. * src/Platform.{h, cc}
  4972. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4973. here.
  4974. * common.h
  4975. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  4976. Updated gettext related files.
  4977. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4978. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4979. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4980. Added DHT functionality, compatible with mainline.
  4981. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4982. You may need to specify entry point to DHT network using
  4983. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4984. Use --dht-listen-port to specify port number. Make sure that your
  4985. firewall configuration can pass through UDP traffic to the port.
  4986. The routing table is saved in $HOME/.aria2/dht.dat.
  4987. * src/DHT*
  4988. * src/BNode.{h, cc}
  4989. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4990. particular torrent.
  4991. * src/Data.cc: Rewritten ctor.
  4992. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4993. --dht-entry-point.
  4994. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4995. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4996. ends, remove BtContext from DHTPeerAnnounceStorage.
  4997. * src/BtPortMessage.{h, cc}: Rewritten.
  4998. * src/message.h
  4999. * src/OptionHandlerImpl.cc
  5000. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5001. --dht-entry-point.
  5002. * src/Dictionary.{h, cc} (remove): New function.
  5003. * src/prefs.h
  5004. * src/DefaultBtMessageFactory.h
  5005. * src/BtHandshakeMessage.cc
  5006. * src/ActivePeerConnectionCommand.cc
  5007. * src/SocketCore.{h, cc}: Added datagram socket support.
  5008. * src/DefaultBtMessageFactory.cc
  5009. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5010. Create DHT commands.
  5011. * src/BtMessageFactory.h
  5012. * src/PeerMessageUtil.{h, cc}
  5013. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. Fixed the bug that log file is not written when configuration file doesn't exist.
  5015. This is caused by using Logger class before LogFactory is not configured.
  5016. BUG #1875079
  5017. * src/option_processing.cc
  5018. Warning message "configuration doesn't exist" is only printed when --conf is
  5019. given.
  5020. * src/option_processing.cc
  5021. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5022. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5023. ShaVisitor is now deprecated and slated to be removed.
  5024. * src/DefaultBtContext.cc
  5025. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Externalize message to message.h
  5027. * src/Platform.cc
  5028. * src/message.h
  5029. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Set default domain and default path to cookie.
  5031. * src/HttpResponse.cc
  5032. * src/CookieBox.{h, cc}
  5033. * src/CookieParser.{h, cc}
  5034. * test/CookieParserTest.cc
  5035. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Added --no-conf and --conf-path command-line option.
  5037. --no-conf option disables loading aria2.conf file.
  5038. --conf-path option changes the configuration file path. The default
  5039. file path is $HOME/.aria2/aria2.conf
  5040. Added a warning message when the configuration file is not found.
  5041. * src/HelpItemFactory.cc
  5042. * src/option_processing.cc
  5043. * src/prefs.h
  5044. * src/usage_text.h
  5045. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5046. Added the message to inform users that other help categories are
  5047. available in -h option.
  5048. * src/version_usage.cc
  5049. * src/TagContainer.{h, cc}
  5050. * test/TagContainerTest.cc
  5051. * src/TaggedItem.{h, cc}
  5052. * test/TaggedItemTest.cc
  5053. * src/HelpItem.h
  5054. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5055. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5056. from PiecedSegment's ctor.
  5057. Previously Piece::getAllMissingBlockIndexes() is called from
  5058. PiecedSegment() but it is rather expensive since only first element is
  5059. used.
  5060. * src/PiecedSegment.cc
  5061. * src/Piece.{h, cc}
  5062. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5064. each time these functions are called.
  5065. * src/BitfieldMan.{h, cc}
  5066. * test/BitfieldManTest.cc
  5067. * src/array_fun.h
  5068. * test/array_funTest.cc
  5069. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5070. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5071. filtered. Removed unnecessary cast to int32_t.
  5072. * src/BitfieldMan.{h, cc}
  5073. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5075. payload length(4bytes) are received. This happens because lenbufLength
  5076. is not updated in this particular case and successive call of
  5077. receiveMessage() overwrites payload length with bytes recieved which
  5078. are payload body.
  5079. * src/PeerConnection.{h, cc}
  5080. * src/message.h
  5081. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5082. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5083. peer if there are peers that have same ipaddr and port.
  5084. I've experiened segmentation fault and "pure virtual function was
  5085. called" error.
  5086. * src/Peer.h
  5087. * test/PeerTest.cc
  5088. * src/DefaultPeerStorage.cc
  5089. * test/DefaultPeerStorageTest.cc
  5090. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Removed a call to isPowerOf() because it is no longer necessary here
  5092. and a request block is not always power of 2.
  5093. BUG#1866924
  5094. * src/PeerMessageUtil.cc (checkLength)
  5095. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. Fixed the bug that always first found Segment is removed from
  5097. usedSegmentEntries. Removed unused functions.
  5098. * src/SegmentMan.{h, cc}
  5099. * test/SegmentManTest.cc
  5100. Fixed the bug that ServerHost is not removed.
  5101. * src/RequestGroup.cc
  5102. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Fixed the bug that SegmentMan::completeSegment() is not called
  5104. even if Segment is complete when --lowest-speed-limit is enabled.
  5105. BUG#1864525
  5106. * src/DownloadCommand.{h, cc}
  5107. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Fixed: hash algorithm 'sha1' is always used.
  5109. * src/DownloadCommand.cc (validatePieceHash)
  5110. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Added --enable-peer-exchange command-line option.
  5112. * src/OptionHandlerFactory.cc
  5113. * src/HelpItemFactory.cc
  5114. * src/option_processing.cc
  5115. * src/usage_text.h
  5116. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Move extension from BtRuntime to ExtensionMessageFactory, because
  5118. extension can be specified per peer, not per torrent.
  5119. * src/DefaultBtInteractive.cc
  5120. * src/BtRuntime.h
  5121. * src/ExtendedMessagingAware.h
  5122. * src/ExtensionMessageFactory.h
  5123. * src/DefaultExtensionMessageFactory.cc
  5124. * test/DefaultExtensionMessageFactoryTest.cc
  5125. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5126. Added categorized option help. Specify category using --help option.
  5127. Also added the ability to search options in forward match.
  5128. * src/HelpItem.{h, cc}
  5129. * test/HelpItemTest.cc
  5130. * src/HelpItemFactory.{h, cc}
  5131. * src/TagContainer.{h, cc}
  5132. * test/TagContainerTest.cc
  5133. * src/option_processing.cc
  5134. * src/prefs.h
  5135. * src/TaggedItem.{h, cc}
  5136. * test/TaggedItemTest.cc
  5137. * src/version_usage.cc
  5138. * src/help_tags.h
  5139. * src/usage_text.h
  5140. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Fixed segmentation fault when bad torrent metainfo is parsed.
  5142. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5143. and then throw exception or skip it.
  5144. * src/DefaultBtContext.{h, cc}
  5145. * test/DefaultBtContextTest.cc
  5146. * src/AnnounceList.cc
  5147. * src/CompactPeerListProcessor.cc
  5148. * src/message.h
  5149. * src/DefaultBtAnnounce.{h, cc}
  5150. * test/DefaultBtAnnounceTest.cc
  5151. * src/BencodeVisitor.cc
  5152. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5153. Added missing "B"(=Byte). So now the message looks like this:
  5154. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5155. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5156. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5157. Show the seed ratio after torrent downloads.
  5158. For example, after torrent download completed and --seed-time and
  5159. --seed-ratio conditions are fulfilled, following message is printed
  5160. right after "Download complete: .....":
  5161. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5162. * src/RequestGroupMan.cc
  5163. * src/RequestGroup.{h, cc}
  5164. * src/message.h
  5165. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Remove a defunct control file. A defunct control file means that while
  5167. it exists, but the corresponding download file is missing.
  5168. After its removal, a download restarts from the beginning.
  5169. * src/RequestGroup.cc
  5170. * src/message.h
  5171. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Allocate bitfield in Peer when it is really used. More specifically,
  5173. bitfield in Peer is allocated after the connection is established and
  5174. deallocated when the connection is dropped.
  5175. Since 2 parameters(piece length and total length) was removed from the
  5176. constructor of Peer class, many test classes were modified accordingly.
  5177. See svn log for more detailed information.
  5178. * src/PeerInteractionCommand.cc
  5179. * src/CompactPeerListProcessor.cc
  5180. * src/Peer.cc
  5181. * src/DefaultPeerListProcessor.cc
  5182. * src/PeerListenCommand.cc
  5183. * src/PeerReceiveHandshakeCommand.cc
  5184. Fixed memory leak
  5185. * src/Piece.cc
  5186. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5187. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5188. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5189. command-line options.
  5190. * src/option_processing.cc
  5191. * src/ActivePeerConnectionCommand.cc
  5192. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5193. Send have message to peer if it already has the piece.
  5194. * src/BtHaveMessage.{h, cc}
  5195. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5197. port.
  5198. * src/DefaultPeerStorage.{h, cc}
  5199. * test/DefaultPeerStorageTest.cc
  5200. * src/HandshakeExtensionMessage.cc
  5201. * test/HandshakeExtensionMessageTest.cc
  5202. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5203. * src/PeerStorage.h
  5204. * test/MockPeerStorage.h
  5205. * src/PeerListenCommand.cc
  5206. * src/PeerReceiveHandshakeCommand.cc
  5207. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. Added --metalink-enable-unique-protocol option.
  5209. * src/Metalink2RequestGroup.cc
  5210. * src/option_processing.cc
  5211. * src/prefs.h
  5212. * src/version_usage.cc
  5213. * doc/aria2c.1.txt
  5214. * doc/aria2c.1
  5215. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Allow a peer in incomingPeer to be added peers.
  5217. * src/DefaultPeerStorage.cc
  5218. * test/DefaultPeerStorageTest.cc
  5219. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5221. I could reproduce this bug in following procedure:
  5222. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5223. 2. Restart aria2.
  5224. 3. You see the download stopped around 99%.
  5225. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5226. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5227. If timeout is reached, then _nextCommand is unused and it may contains
  5228. segments and they won't be canceled. Actually, timeout is not needed
  5229. here because if the server dropped connection, then retry is made.
  5230. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Added uTorrent compatible Peer Exchange.
  5232. * src/BencodeVisitor.{h, cc}
  5233. * test/BencodeVisitorTest.cc
  5234. * src/BtConstants.h
  5235. * src/BtContext.h: Added 'private' flag.
  5236. * src/BtExtendedMessage.{h, cc}
  5237. * test/BtExtendedMessageTest.cc
  5238. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5239. reserved field.
  5240. * test/BtHandshakeMessageTest.cc
  5241. * src/BtMessageFactory.h
  5242. * src/BtRegistry.h
  5243. * src/BtRuntime.h: This class holds default extension message IDs for
  5244. aria2. By default, aria2 uses ID 8 for ut_pex.
  5245. * src/DefaultBtContext.cc
  5246. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5247. When it is true, aria2 enables ut_pex. This value is set by
  5248. PeerInteractionCommand.
  5249. * src/DefaultBtMessageFactory.{h, cc}
  5250. * test/DefaultBtMessageFactoryTest.cc
  5251. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5252. handling to DefaultBtInteractive class.
  5253. * src/DefaultExtensionMessageFactory.{h, cc}
  5254. * test/DefaultExtensionMessageFactoryTest.cc
  5255. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5256. the container(peers and incomingPeers. The equality is determined by
  5257. Peer::id).
  5258. * test/DefaultPeerStorageTest.cc
  5259. * src/ExtensionMessage.h
  5260. * test/MockExtensionMessage.h
  5261. * src/ExtensionMessageFactory.h
  5262. * test/MockExtensionMessageFactory.h
  5263. * src/HandshakeExtensionMessage.{h, cc}
  5264. * test/HandshakeExtensionMessageTest.cc
  5265. * src/MetaEntry.h
  5266. * src/Peer.{h, cc}
  5267. * src/PeerInteractionCommand.cc
  5268. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5269. addIncomingPeer.
  5270. * src/PeerMessageUtil.{h, cc}
  5271. * src/PeerObject.h
  5272. * src/UTPexExtensionMessage.{h, cc}
  5273. * test/UTPexExtensionMessageTest.cc
  5274. * src/message.h
  5275. * src/prefs.h
  5276. Fixed the bug that returns incomplete data when it contains null
  5277. character. A convenient constructor was also added.
  5278. * src/Data.{h, cc}
  5279. Rewritten.
  5280. * src/CompactPeerListProcessor.cc
  5281. Fixed typos.
  5282. * src/message.h
  5283. * src/MetaFileUtil.cc
  5284. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Added "Status Legend" label to the explanation text of 'stat' in
  5286. download result and moved it to the last. BUG#1848214
  5287. * src/RequestGroupMan.cc
  5288. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5290. * src/Makefie.am
  5291. * test/Makefile.am
  5292. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Fixed the bug that prevents aria2 from loading cookie file when expire
  5294. value is greater than 2^31-1. BUG#1851066
  5295. * src/CookieBoxFactory.cc
  5296. * test/CookieBoxFactoryTest.cc
  5297. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5298. Fixed possible memory leak when an exception is thrown.
  5299. * src/XML2SAXMetalinkProcessor.cc
  5300. Added Expat support. If both libxml2 and Expat are installed, then
  5301. libxml2 is used by default.
  5302. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5303. ExpatMetalinkProcessor according to the configuration.
  5304. * src/ExpatMetalinkProcessor.{h, cc}
  5305. * src/main.cc: Removed libxml2 specific header and init/free function.
  5306. * src/MetalinkProcessorFactory.{h, cc}
  5307. * src/MetalinkHelper.cc
  5308. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5309. * src/MetalinkProcessor.h
  5310. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5311. MetalinkProcessorTest is used instead.
  5312. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5313. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  5314. MetalinkProcessorFactory::newInstance().
  5315. * m4/libexpat.m4
  5316. * configure.ac: Added configuration options for libexpat.
  5317. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Disabled -s option in metalink download.
  5319. * src/Metalink2RequestGroup.cc
  5320. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. If several protocols are available for a mirror in metalink file,
  5322. aria2 now use one of them. --metalink-preferred-protocol option was
  5323. added to specify the preference of protocol.
  5324. * src/AbstractCommand.cc
  5325. * src/OptionHandlerFactory.cc
  5326. * src/ServerHost.{h, cc}
  5327. * src/Metalink2RequestGroup.cc
  5328. * src/RequestGroup.{h, cc}
  5329. * test/RequestGroupTest.cc
  5330. * src/option_processing.cc
  5331. * src/prefs.h
  5332. * src/HttpResponseCommand.cc
  5333. * src/MetalinkResource.{h, cc}
  5334. * src/FtpNegotiationCommand.cc
  5335. * src/MetalinkEntry.{h, cc}
  5336. * src/MetalinkEntryTest.cc
  5337. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5338. Code cleanup and added debug log.
  5339. * src/PeerConnection.cc
  5340. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Compiler error fix: applied the patch by Tiziano Mueller
  5342. * src/RequestGroup.cc
  5343. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Fixed the bug: only first announce URL is tried in AnnounceTier,
  5345. in stopped and completed event.
  5346. * src/AnnounceList.{h, cc}
  5347. * test/AnnounceListTest.cc
  5348. * src/DefaultBtAnnounce.cc
  5349. * test/DefaultBtAnnounceTest.cc
  5350. Sorted URLs.
  5351. * test/Metalink2RequestGroupTest.cc
  5352. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5353. Removed unnecessary string copy. Updated doc and corrected indentation.
  5354. * src/Base64.cc
  5355. Fixed compilation warnings
  5356. * test/DataTest.cc
  5357. * test/HttpRequestTest.cc
  5358. * test/MetaFileUtilTest.cc
  5359. * test/RequestTest.cc
  5360. * Release 0.12.0
  5361. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Updated translations
  5363. * po/{de,fr,ja,nl,ru}.po
  5364. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  5365. translations. Many thanks to translators.
  5366. * po/{ca,es,it,pt_BR,sv}.po
  5367. * po/LINGUAS
  5368. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5369. Added a notice about URL
  5370. * src/version_usage.cc
  5371. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  5372. Fixed the bug#1845750; CTRL+C does not stop torrent.
  5373. aria2 repeatedly sends stopped request when tracker returns error code.
  5374. * src/AnnounceList.cc
  5375. * test/AnnounceListTest.cc
  5376. * src/AnnounceTier.h
  5377. Added a message when ctrl-c is hit.
  5378. Now second ctrl-c is also handled in signal handler.
  5379. * src/RequestGroupMan.{h, cc}
  5380. * src/RequestGroup.{h, cc}
  5381. * src/MultiUrlRequestInfo.cc
  5382. * src/DownloadEngine.cc
  5383. * src/TrackerWatcherCommand.cc
  5384. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Code cleanup
  5386. * src/Base64.cc (encode)
  5387. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Changed Direct/IO enable/disable procesure in file allocation routine.
  5389. * src/SingleFileAllocationIterator.cc
  5390. (SingleFileAllocationIterator):
  5391. Disable directIO if offset is not multiple of 512.
  5392. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  5393. * src/MultiFileAllocationIterator.cc (allocateChunk):
  5394. Enable created SingleFileAllocationIterator's directIO.
  5395. * src/FileAllocationEntry.cc
  5396. (FileAllocationEntry): Enable directIO here.
  5397. (~FileAllocationEntry): Disable directIO here.
  5398. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  5400. * src/Peer.{h, cc}
  5401. * src/DefaultPieceStorage.cc
  5402. * test/DefaultPieceStorageTest.cc
  5403. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Rewritten direct I/O support routine
  5405. * src/SingleFileAllocationIterator.cc
  5406. * src/MultiDiskAdaptor.{h, cc}
  5407. * src/ByteArrayDiskWriter.h
  5408. * src/AbstractSingleDiskAdaptor.h
  5409. * src/AbstractDiskWriter.cc
  5410. * src/DefaultPieceStorage.cc
  5411. * src/DiskWriter.h
  5412. * src/BinaryStream.h
  5413. * src/IteratableChunkChecksumValidator.cc
  5414. * src/IteratableChecksumValidator.cc
  5415. * src/CheckIntegrityEntry.cc
  5416. * src/FileAllocationEntry.cc
  5417. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5418. Fixed typo
  5419. * src/version_usage.cc
  5420. Updated doc
  5421. * doc/aria2c.1.txt
  5422. * doc/aria2c.1
  5423. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. Fixed compile error without message digest support.
  5425. * src/FileMetalinkParserState.cc
  5426. * src/MetalinkParserController.{h, cc}
  5427. * test/XML2SAXMetalinkProcessorTest.cc
  5428. * test/MetalinkParserControllerTest.cc
  5429. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5430. Enable direct I/O support in checksum checking.
  5431. * src/IteratableChunkChecksumValidator.{h, cc}
  5432. * test/IteratableChunkChecksumValidatorTest.cc
  5433. * src/CheckIntegrityEntry.cc
  5434. * src/PieceHashCheckIntegrityEntry.cc
  5435. * src/IteratableChecksumValidator.{h, cc}
  5436. * src/BtCheckIntegrityEntry.cc: Added doc.
  5437. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Added --allow-piece-length-change option.
  5439. * src/DefaultBtProgressInfoFile.cc
  5440. * test/DefaultBtProgressInfoFileTest.cc
  5441. * src/OptionHandlerFactory.cc
  5442. * src/option_processing.cc
  5443. * src/prefs.h
  5444. * src/version_usage.cc
  5445. * doc/aria2c.1.txt
  5446. * doc/aria2c.1
  5447. Fixed: duplicated result entry appears when exception is thrown in
  5448. RequestGroup::createInitiateConnectionCommand().
  5449. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  5450. Add RequestGroup to _requestGroup after RequetGroup::
  5451. createInitiateConnectionCommand() succeeds.
  5452. Externalized message
  5453. * src/XML2SAXMetalinkProcessor.cc
  5454. * src/message.h
  5455. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5456. Forced download abort when received negative response from http/ftp
  5457. server.
  5458. * src/HttpResponseCommand.cc
  5459. * src/FtpNegotiationCommand.cc
  5460. * src/HttpResponse.cc
  5461. * src/FtpConnection.cc
  5462. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  5464. the predecessor, Xml2MetalinkParser class.
  5465. I tested them against 94KB metalink file with 1234 chunk checksums.
  5466. The new one parsed it in 22msec, while it took 6000msec with old one.
  5467. * src/XML2SAXMetalinkProcessor.{h, cc}
  5468. * test/XML2SAXMetalinkProcessorTest.cc
  5469. * src/MetalinkParserController.{h, cc}
  5470. * test/MetalinkParserControllerTest.cc
  5471. * src/MetalinkParserState.h: Also added 16 subclasses.
  5472. * src/main.cc
  5473. * src/Metalink2RequestGroup.cc
  5474. * src/MetalinkHelper.cc
  5475. * src/MetalinkEntry.cc
  5476. * src/ChunkChecksum.h
  5477. Rewritten Base64 class for better performance.
  5478. * src/Base64.{h, cc}
  5479. * test/Base64Test.cc
  5480. * src/HttpRequest.cc
  5481. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5482. Fixed the bug#1841757: aria2 will connect to server to only get
  5483. file size.
  5484. * src/StreamFileAllocationEntry.cc
  5485. * src/option_processing.cc
  5486. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  5487. downloads.
  5488. * src/FtpNegotiationCommand.cc
  5489. Suppressed wrong message when finding PreDownloadHandler
  5490. * src/RequestGroup.cc
  5491. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. Updated usage
  5493. * src/version_usage.cc
  5494. Updated man page
  5495. * doc/aria2c.1.txt
  5496. * doc/aria2c.1
  5497. Updated po files
  5498. * po/aria2c.pot
  5499. * po/*.po
  5500. * po/*.gmo
  5501. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. Eliminated g++-4.2 warning
  5503. * src/DownloadHandlerConstants.{h, cc}
  5504. * src/Util.cc
  5505. * test/MetaFileUtilTest.cc
  5506. * test/PStringBuildVisitorTest.cc
  5507. Fixed bug: --check-integrity doesn't work for multi file torrent.
  5508. * src/RequestGroup.cc
  5509. * src/BtCheckIntegrityEntry.cc
  5510. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Fixed a2io.h
  5512. * src/a2io.h
  5513. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Added direct I/O support. The current implementation uses O_DIRECT,
  5515. which is not posix standard and is tested on linux 2.6.21.
  5516. Currently only file allocation uses direct I/O.
  5517. * src/SingleFileAllocationIterator.{h, cc}
  5518. * test/SingleFileAllocationIteratorTest.cc
  5519. * src/MultiFileAllocationIterator.{h, cc}
  5520. * test/MultiFileAllocationIteratorTest.cc
  5521. * src/BinaryStream.h
  5522. * src/DiskWriter.h
  5523. * src/AbstractDiskWriter.{h, cc}
  5524. * src/ByteArrayDiskWriter.h
  5525. * src/DiskAdaptor.h
  5526. * src/AbstractSingleDiskAdaptor.{h, cc}
  5527. * src/MultiDiskAdaptor.{h, cc}
  5528. * src/FileAllocationEntry.cc
  5529. * src/Util.{h, cc}
  5530. * src/OptionHandlerFactory.cc
  5531. * src/prefs.h
  5532. * src/version_usage.cc
  5533. * src/option_processing.cc
  5534. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  5535. handleException.
  5536. * src/MultiFileAllocationIterator.cc
  5537. Added EINTR handling
  5538. * src/SocketCore.cc
  5539. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5540. Updated usage
  5541. * src/version_usage.cc
  5542. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5543. Applied Ross's patch for MinGW port.
  5544. * src/DownloadEngine.h
  5545. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Set Content-Type to SingleFileDownloadContext when http response is
  5547. received.
  5548. * src/HttpResponseCommand.cc
  5549. * src/HttpResponse.{h, cc}
  5550. * test/HttpResponseTest.cc
  5551. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5552. Rewritten to add content-type support.
  5553. * src/DownloadHandler.{h, cc}
  5554. * src/BtPostDownloadHandler.{h, cc}
  5555. * test/BtPostDownloadHandlerTest.cc
  5556. * src/MetalinkPostDownloadHandler.{h, cc}
  5557. * test/MetalinkPostDownloadHandlerTest.cc
  5558. * src/PostDownloadHandler.{h, cc}
  5559. * src/DownloadHandlerConstants.{h, cc}
  5560. * src/RequestGroup.cc
  5561. * src/HttpResponseCommand.cc
  5562. * src/FtpNegotiationCommand.cc
  5563. * src/SingleFileDownloadContext.{h, cc}
  5564. * src/RequestGroup.h
  5565. * src/RequestGroupCriteria.h
  5566. * src/ContentTypeRequestGroupCriteria.h
  5567. Added 'mem' option value for --follow-metalink, --follow-torrent.
  5568. If it is give, metalink/torrent file is not written to the disk, but
  5569. just is kept in memory. Parsing is occurred on memory.
  5570. * src/MetalinkHelper.{h, cc}
  5571. * src/MetalinkProcessor.h
  5572. * src/Xml2MetalinkProcessor.{h, cc}
  5573. * test/Xml2MetalinkProcessorTest.cc
  5574. * src/DownloadHandlerFactory.{h, cc}
  5575. * test/DownloadHandlerFactoryTest.cc
  5576. * src/PreDownloadHandler.{h, cc}
  5577. * src/OptionHandlerFactory.cc
  5578. * src/DefaultBtContext.{h, cc}
  5579. * test/DefaultBtContextTest.cc
  5580. * src/version_usage.cc
  5581. * src/Metalink2RequestGroup.{h, cc}
  5582. * src/RequestGroup.{h, cc}
  5583. * src/a2functional.h
  5584. * test/a2functionalTest.cc
  5585. * src/MemoryBufferPreDownloadHandler.{h, cc}
  5586. * src/OptionHandlerImpl.h
  5587. * src/prefs.h
  5588. * src/Util.{h, cc}
  5589. * test/UtilTest.cc
  5590. Keep DownloadResult rather than RequestGroup after downloads to reduce
  5591. memory usage.
  5592. * src/RequestGroupMan.{h, cc}
  5593. * src/DownloadEngine.cc
  5594. * src/BtDependency.{h, cc}: Changed the type of dependee from
  5595. WeakHandle to SharedHandle because WeakHandle could be null.
  5596. * src/RequestGroup.{h, cc}
  5597. * src/DownloadEngineFactory.cc
  5598. * src/DownloadResult.h
  5599. Set totalLength after download finished
  5600. * src/UnknownLengthPieceStorage.{h, cc}
  5601. Keep torrent file specified in metalink in memory.
  5602. * src/Metalink2RequestGroup.cc
  5603. * src/BtDependency.cc
  5604. * src/TrueRequestGroupCriteria.h
  5605. Fixed the bug: seekg is used where seekp should be used.
  5606. * src/ByteArrayDiskWriter.cc
  5607. * test/ByteArraydiskWriterTest.cc
  5608. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Fixed syntax error
  5610. * test/SequenceTest.cc
  5611. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5613. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  5614. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5615. * src/RequestGroup.cc (downloadFinishedByFileLength)
  5616. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Added the check to see whether ares_host_callback accepts timeouts
  5618. with c-ares; only c-ares 1.5.0 or newer accepts it.
  5619. * src/NameResolver.{h, cc}
  5620. * m4/libcares.m4
  5621. * configure.ac: Set C++ for language choice.
  5622. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Fixed: compilation fails without c-ares/ares
  5624. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  5625. Generate http/ftp commands only when download is incomplete.
  5626. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  5627. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5628. Corrected typo. Examples are removed since they are available in man
  5629. page.
  5630. * src/version_usage.cc
  5631. Updated man page.
  5632. * doc/aria2c.1
  5633. * doc/aria2c.1.txt
  5634. * doc/makeman: Commented out sed command.
  5635. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5636. Throw DlAbortEx when a remote file is not found.
  5637. * src/HttpResponse.cc
  5638. * src/FtpNegotiationCommand.cc
  5639. * src/message.h
  5640. Overwrite an existing file if --allow-overwrite=true is given.
  5641. * src/RequestGroup.cc
  5642. Removed unused functions
  5643. * src/AbstractCommand.h
  5644. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5645. Removed 'extern' from 'extern typedef ...' in src/*.h
  5646. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5647. Updated usage
  5648. * src/version_usage.cc
  5649. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Trim announce URL
  5651. * src/DefaultBtContext.cc
  5652. * test/ShaVisitorTest.cc
  5653. Trim argument s. Give trimed s to exception constructor.
  5654. * src/Util.cc (parseInt)(parseLLInt)
  5655. * test/UtilTest.cc
  5656. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. Set precision back to 1.
  5658. * src/ConsoleStatCalc.cc (calculateStat)
  5659. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Replaced strtol with Util::parseInt
  5661. * src/ChunkedEncoding.cc
  5662. * src/HttpConnection.cc
  5663. * src/CookieBoxFactory.cc
  5664. * src/ParameterizedStringParser.cc
  5665. * src/Util.cc
  5666. * test/UtilTest.cc
  5667. * test/OptionHandlerTest.cc
  5668. * src/Request.cc
  5669. Throw exception when empty string is given. The message for exception
  5670. changed.
  5671. * src/Util.cc (parseInt)(parseLLInt)
  5672. * src/message.h
  5673. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Set precision to 2 because share ratio is rounded into 1.0 if precision
  5675. set to 1.
  5676. * src/ConsoleStatCalc.cc (calculateStat)
  5677. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Preallocate non-requested file which is adjacent forward to requested
  5679. file('requested' files means the files given in --select-file option)
  5680. if they share a same piece.
  5681. This fixes long pause in the file system which doesn't support sparse
  5682. files like FAT32 while downloading.
  5683. * src/MultiFileAllocationIterator.{h, cc}
  5684. * test/MultiFileAllocationIteratorTest.cc
  5685. * src/FileEntry.{h, cc}
  5686. Removed unused _option.
  5687. * src/MultiDiskAdaptor.h
  5688. * test/MultiDiskAdaptorTest.cc
  5689. * src/DefaultPieceStorage.cc
  5690. Set the default value of --seed-ratio to 1.0.
  5691. If 0.0 is given, then seeding continues regardless of share ratio.
  5692. * src/version_usage.cc
  5693. * src/option_processing.cc
  5694. * src/BtSetup.cc
  5695. * doc/aria2c.1.txt
  5696. * doc/aria2c.1
  5697. Fixed: Selective download is not working in BitTorrent
  5698. * src/RequestGroup.cc
  5699. Introduced Sequence class. Use this instead of Util::unfoldRange()
  5700. * src/PieceStorage.h
  5701. * test/MockPieceStorage.h
  5702. * src/UnknownLengthPieceStorage.h
  5703. * src/DefaultPieceStorage.{h, cc}
  5704. * src/Metalink2RequestGroup.cc
  5705. * src/RequestGroup.cc
  5706. * src/Sequence.h
  5707. * test/SequenceTest.cc
  5708. * src/IntSequence.h
  5709. * src/message.h
  5710. * src/Util.{h, cc}
  5711. * test/UtilTest.cc
  5712. Added new function 'parse' to catch exception thrown by subclass's
  5713. parseArg
  5714. * src/OptionHandler.h
  5715. * src/OptionParser.cc
  5716. * src/NameMatchOptionHandler.h
  5717. * src/OptionHandlerImpl.h
  5718. * test/OptionHandlerTest.cc
  5719. Added IntegerRangeOptionHandler. Used for --listen-port and
  5720. --select-file. Now --listen-port accepts range of port.
  5721. * src/OptionHandlerFactory.cc
  5722. * src/version_usage.cc
  5723. * src/OptionHandlerImpl.h
  5724. * src/option_processing.cc
  5725. * src/BtSetup.cc
  5726. * src/PeerListenCommand.{h, cc}
  5727. * doc/aria2c.1.txt
  5728. * doc/aria2c.1
  5729. Implemented operator< for Exception class to provide easy way to print
  5730. exception stack trace.
  5731. * src/Exception.{h, cc}
  5732. * src/main.cc
  5733. * src/option_processing.cc
  5734. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. * src/version_usage.cc
  5736. (showVersion): Reworked.
  5737. (showUsage): Added examples.
  5738. Removed Hint for total length and file name.
  5739. * src/Metalink2RequestGroup.cc
  5740. * src/RequestGroup.{h, cc}
  5741. * src/HttpResponseCommand.cc
  5742. * src/FtpNegotiationCommand.cc
  5743. Now --follow-torrent and --follow-metalink option work properly.
  5744. * src/RequestGroup.cc
  5745. Updated man page
  5746. * doc/aria2c.1.txt
  5747. * doc/aria2c.1
  5748. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Removed.
  5750. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  5751. Use Segment::operator==()
  5752. * src/HttpConnection.cc
  5753. * src/Segment.h
  5754. Updated usage
  5755. * src/version_usage.cc
  5756. Added EINTR treatment.
  5757. * src/SocketCore.cc
  5758. * src/AbstractDiskWriter.cc
  5759. Rewritten.
  5760. * src/Util.cc (rangedFileCopy)
  5761. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Fixed typo.
  5763. * src/version_usage.cc
  5764. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5765. Implemented. Now -c option works fine.
  5766. * src/DefaultPieceStorage.cc (markPiecesDone)
  5767. * test/DefaultPieceStorageTest.cc
  5768. Removed.
  5769. * src/SegmentMan.{h, cc}
  5770. (markAllPiecesDone)
  5771. (markPieceDone)
  5772. Synchronized po files with
  5773. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  5774. * src/fr.po
  5775. * src/ru.po
  5776. * src/de.po
  5777. * src/ja.po
  5778. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Added ifdef and some modifications to compile without BitTorrent,
  5780. Metalink, MessageDigest
  5781. support.
  5782. * src/PieceHashCheckIntegrityEntry.cc
  5783. * src/MetalinkEntry.h
  5784. * src/version_usage.cc
  5785. * src/main.cc
  5786. * src/DownloadEngine.{h, cc}
  5787. * src/Metalink2RequestGroup.cc
  5788. * src/Peer.cc
  5789. * src/RequestGroup.cc
  5790. * src/MetalinkHelper.cc
  5791. * test/DefaultPieceStorageTest.cc
  5792. * test/MetalinkPostDownloadHandlerTest.cc
  5793. * test/Metalink2RequestGroupTest.cc
  5794. Hide TOTAL SPD when all downloads complete.
  5795. * src/ConsoleStatCalc.cc
  5796. Log target system information.
  5797. * src/main.cc
  5798. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Now --metalink-location accepts a comma-deliminated list of locations.
  5800. * src/MetalinkEntry.{h, cc}
  5801. * test/MetalinkEntryTest.cc
  5802. * src/version_usage.cc
  5803. * src/Metalink2RequestGroup.cc
  5804. * src/Xml2MetalinkProcessor.cc
  5805. * test/Xml2MetalinkProcessorTest.cc
  5806. * doc/aria2c.1.txt
  5807. * doc/aria2c.1
  5808. * src/Util.cc (toUpper)(toLower): Rewritten.
  5809. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. Added the ability to detect duplicate download entry which is about to
  5811. download the same file other RequestGroup is downloading.
  5812. * src/RequestGroup.cc
  5813. * src/HttpResponseCommand.cc
  5814. * src/FtpNegotiationCommand.cc
  5815. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Recalculates download progress when loading a control file,
  5817. if the piece length of DownloadContext is different from the one saved
  5818. in the control file. Currently in-flight pieces are ignored.
  5819. * src/DefaultBtProgressInfoFile.cc
  5820. * test/DefaultBtProgressInfoFileTest.cc
  5821. * src/Util.{h, cc}
  5822. * test/UtilTest.cc
  5823. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Do not rotate tiers in announce-list.
  5825. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  5826. AnnounceList::allTiersFailed() used instead to detect whether all
  5827. tiers are tried and failed.
  5828. * test/DefaultBtAnnounceTest.cc
  5829. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  5830. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  5831. * test/AnnounceListTest.cc
  5832. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  5833. clause. Catch RecoverableException instead of DlRetryEx instead.
  5834. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Implemented checksum validation feature(1 checksum for each file)
  5836. The validation takes place after the download.
  5837. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  5838. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  5839. * src/CheckIntegrityCommand.cc: Changed log message.
  5840. * src/Metalink2RequestGroup.cc: Set checksum to
  5841. SingleFileDownloadContext.
  5842. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  5843. PieceHashCheckIntegrity class.
  5844. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  5845. PieceHashCheckIntegrity class.
  5846. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  5847. * src/IteratableValidator.h: New class.
  5848. * src/message.h
  5849. * src/CheckIntegrityEntry.{h, cc}
  5850. * src/IteratableChunkChecksumValidator.{h, cc}
  5851. * src/SingleFileDownloadContext.h
  5852. * src/DownloadCommand.cc
  5853. --allow-overwrite=true is no longer needed to check file integrity
  5854. before download in BitTorrent download.
  5855. * src/RequestGroup.cc (getInitialCommand)
  5856. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  5857. throws exception.
  5858. * src/RequestGroupMan.cc (getInitialCommands)
  5859. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5860. urlencode the given url inside Request::parseUrl(...)
  5861. * src/Request.{h, cc}
  5862. * src/Util.{h, cc}
  5863. * test/RequestTest.cc
  5864. Removed #!metalink3! notation support because it is deleted from
  5865. the metalink specification.
  5866. * src/Request.{h, cc}
  5867. * test/RequestTest.cc
  5868. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Don't connect server before checking file integrity at startup, if
  5870. filesize and output file path are known.
  5871. * src/AbstractCommand.cc
  5872. * src/StreamFileAllocationEntry.cc
  5873. * src/Metalink2RequestGroup.cc
  5874. * src/RequestGroup.{h, cc}
  5875. * src/HttpResponseCommand.cc
  5876. * src/FtpNegotiationCommand.cc
  5877. Added DownloadFailureException. If it is thrown, RequestGroup should
  5878. halt.
  5879. * src/AbstractCommand.cc
  5880. * src/DownloadFailureException.h
  5881. * src/RequestGroup.cc
  5882. Catch RecoverableException, instead of DlAbortEx.
  5883. * src/RequestGroupMan.cc
  5884. * src/FillRequestGroupCommand.cc
  5885. * src/MetaFileUtil.cc
  5886. * src/IteratableChunkChecksumValidator.cc
  5887. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  5888. getGID())
  5889. * src/CheckIntegrityCommand.cc
  5890. * src/message.h
  5891. Print gid instead of idx.
  5892. * src/RequestGroupMan.cc
  5893. Removed exception throwers declaration.
  5894. * src/DirectDiskAdaptor.{h, cc}
  5895. * src/SocketCore.{h, cc}
  5896. * src/MultiDiskAdaptor.{h, cc}
  5897. * src/HttpConnection.{h, cc}
  5898. * src/HttpResponse.{h, cc}
  5899. * src/DiskAdaptor.{h, cc}
  5900. * src/CopyDiskAdaptor.{h, cc}
  5901. * src/MultiDiskAdaptor.{h, cc}
  5902. * src/HttpHeaderProcessor.{h, cc}
  5903. * src/AbstractSingleDiskAdaptor.{h, cc}
  5904. * src/Util.{h, cc}
  5905. * test/UtilTest.cc
  5906. * src/DefaultDiskWriter.{h, cc}
  5907. * src/FtpConnection.{h, cc}
  5908. * src/AbstractDiskWriter.{h, cc}
  5909. Removed duplicate code.
  5910. * src/StreamCheckIntegrityEntry.cc
  5911. Removed unnecessary include.
  5912. * src/DiskWriter.h
  5913. Included Exception.h
  5914. * src/option_processing.cc
  5915. Included 2 files and added doc
  5916. * src/TrackerWatcherCommand.cc
  5917. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5918. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Changed CheckIntegrityEntry interface so that it can define
  5920. the action when all the chunk checksums are valid.
  5921. * src/CheckIntegrityEntry.h
  5922. * src/StreamCheckIntegrityEntry.{h, cc}
  5923. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5924. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5925. to exit rather than doing seeding. So, it would be good to toggle this
  5926. behavior.
  5927. * src/CheckIntegrityCommand.cc
  5928. * src/AbstractCommand.cc
  5929. * src/RequestGroup.cc
  5930. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Reflect the download length of in-flight pieces.
  5932. It makes the download length readout more precise.
  5933. * src/DefaultPieceStorage.{h, cc}
  5934. * test/DefaultPieceStorageTest.cc
  5935. * src/a2functional.h
  5936. * test/a2functionalTest.cc
  5937. Lower CPU load when --max-download-limit is used.
  5938. There is up and down in speed indicator when enabling
  5939. http-pipelining but a download goes well. I think the problem is that
  5940. because http-pipelining is enabled, DownloadCommand is created for
  5941. each segment and in its constructor, PeerStat::downloadStart() is
  5942. called. In PeerStat::downloadStart(), speed calculation object is
  5943. reseted, which makes download speed zero.
  5944. * src/DownloadCommand.cc
  5945. Rewritten using accumulate.
  5946. * src/RequestGroupMan.cc (calculateStat)
  5947. Code clearnup.
  5948. * src/FtpNegotiationCommand.cc
  5949. * src/HttpResponseCommand.cc
  5950. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Fixed: Can not resume: aria2 reports download already finished.
  5952. * src/AbstractCommand.{h, cc}
  5953. * src/HttpResponseCommand.cc
  5954. * src/FtpNegotiateCommand.cc
  5955. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Now a file is stored in the directory specified in .metalnk file
  5957. (file[@name]).
  5958. * src/Metalink2RequestGroup.cc
  5959. Create the directory structure when opening the file if it doesn't
  5960. exist.
  5961. * src/AbstractDiskWriter.cc
  5962. * src/Util.{h, cc}
  5963. * src/File.h
  5964. * test/UtilTest.cc
  5965. Removed file name comparison
  5966. * src/Metalink2RequestGroup.cc
  5967. * src/HttpResponseCommand.cc
  5968. Rewritten using Util::mkdirs()
  5969. * src/FileEntry.cc (setupDir)
  5970. * test/FileEntryTest.cc
  5971. Updated doc
  5972. * src/SingleFileDownloadContext.h
  5973. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Now SleepCommand dispatches nextCommand when halt is requested.
  5975. It avoids a possible long wait after hitting CTRL-C.
  5976. * src/SleepCommand.{h, cc}
  5977. * src/RequestGroupAware.{h, cc}
  5978. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5980. to open listen port, then remove the port number from the tracker
  5981. request.
  5982. * src/DefaultBtAnnounce.cc
  5983. * test/DefaultBtAnnounceTest.cc
  5984. * test/MockPieceStorage.h
  5985. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5986. them more testable.
  5987. * src/DefaultBtAnnounce.{h, cc}
  5988. * src/DefaultBtContext.{h, cc}
  5989. * src/Util.{h, cc}
  5990. * test/DefaultBtAnnounceTest.cc
  5991. * test/DefaultBtContextTest.cc
  5992. * test/UtilTest.cc
  5993. Added 'B' to upload bytes readout.
  5994. * src/ConsoleStatCalc.cc
  5995. Now the listen port for BitTorrent download is opened when it is
  5996. needed.
  5997. * src/DownloadEngineFactory.cc
  5998. * src/BtSetup.{h, cc}
  5999. * src/PeerListenCommand.{h, cc}
  6000. Now an exception thrown while parsing tracker response is now logged.
  6001. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6002. called, which means no retry is made in this case, assuming a tracker
  6003. has a problem.
  6004. * src/TrackerWatcherCommand.cc
  6005. Fixed: downloading a file whose length is unkown fails.
  6006. * src/DownloadCommand.cc
  6007. Simplified prepareForNextSegment()
  6008. * src/DownloadCommand.cc
  6009. Updated
  6010. * po/POTFILES.in
  6011. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Re-implemented a file listing for Metalink, which was dropped while
  6013. http/ftp/torrent integration was being implemented.
  6014. * src/MetalinkHelper.{h, cc}: New class.
  6015. * test/MetalinkHelperTest.cc
  6016. * src/main.cc
  6017. * src/Metalink2RequestGroup.cc
  6018. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6019. Added the ability to display the detailed torrent file information.
  6020. Now -S option gives not only a file listing, but also total download
  6021. length, info hash, announce URI, piece length, the number of pieces,
  6022. and mode(single or multi-torrent).
  6023. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6024. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6025. KiB)
  6026. * test/UtilTest.cc
  6027. * src/main.cc
  6028. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Added ftp://USER:PASSWD@Servername automatic parsing.
  6030. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6031. _password. Recognize username and password in URI.
  6032. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6033. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6034. * src/RequestFactory.{h, cc}: Removed.
  6035. * src/AuthConfigFactory.{h, cc}: New class.
  6036. * src/FtpConnection.cc: Use AuthConfigFactory.
  6037. * src/HttpRequest.cc: Use AuthConfigFactory.
  6038. * test/HttpRequestTest.cc: Updated.
  6039. * test/RequestTest.cc: Updated.
  6040. * test/AuthConfigFactoryTest.cc: New class.
  6041. * test/RequestFactoryTest.cc: Removed.
  6042. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Use RequestGroup::allDownloadFinished() to decide whether the control
  6044. file should be removed or saved.
  6045. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6046. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6047. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Use File::renameTo()
  6049. * src/DefaultBtProgressInfoFile.cc
  6050. Added --no-file-allocation-limit command-line option.
  6051. * src/version_usage.cc
  6052. * src/option_processing.cc
  6053. * src/OptionHandlerFactory.cc
  6054. * src/RequestGroup.{h, cc}
  6055. * src/BtCheckIntegrityEntry.cc
  6056. * src/StreamCheckIntegrityEntry.cc
  6057. * src/prefs.h
  6058. * doc/aria2c.1.txt
  6059. * doc/aria2c.1
  6060. Now prealloc is the default value for --file-allocation option.
  6061. * src/version_usage.cc
  6062. * src/option_processing.cc
  6063. * doc/aria2c.1.txt
  6064. * doc/aria2c.1
  6065. Don't URL-encode user-agent.
  6066. * src/HttpRequest.cc
  6067. Updated translations
  6068. * po/LINGUAS: Added nl for Dutch translation.
  6069. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6070. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6071. * po/POTFILES.in: Updated.
  6072. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Added the ability to recognize url-list in a torrent file.
  6074. The retrieved URLs are attached to the corresponding FileEntry.
  6075. * src/DefaultBtContext.{h, cc}
  6076. * src/FileEntry.{h, cc}
  6077. * test/DefaultBtContextTest.cc
  6078. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6080. after the download finishes.
  6081. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6083. the data smaller than block length.
  6084. A block length can be specified by constructor's argument.
  6085. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6086. Get a missing piece in the range of given FileEntry. This function is
  6087. not used in the program yet.
  6088. * src/Util.h: Added some macros.
  6089. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. Added HTTP/1.1 keep alive and pipelining support.
  6091. See --enable-http-keep-alive and --enable-http-pipelining option.
  6092. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6093. Segment.
  6094. * src/HttpDownloadCommand.{h, cc}
  6095. * src/OptionHandlerFactory.cc
  6096. * src/HttpConnection.{h, cc}
  6097. * src/version_usage.cc
  6098. * src/HttpInitiateConnectionCommand.cc
  6099. * src/FtpInitiateConnectionCommand.cc
  6100. * src/Segment.h
  6101. * src/HttpRequestCommand.{h, cc}
  6102. * src/option_processing.cc
  6103. * src/prefs.h
  6104. * src/HttpResponseCommand.cc
  6105. * src/SegmentMan.{h, cc}
  6106. * src/FtpNegotiateCommand.cc
  6107. * src/HttpProxyResponseCommand.cc
  6108. * src/Request.cc
  6109. * src/HttpRequest.cc
  6110. * src/DownloadCommand.cc
  6111. * test/HttpRequestTest.cc
  6112. * test/RequestTest.cc
  6113. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6115. finished.
  6116. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6118. catching it inside the method.
  6119. When no file entry is found in a metalink without querying user
  6120. preferences, throw the exception with the error message that suggests
  6121. metalink file is probably broken.
  6122. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6123. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6124. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6125. processed.
  6126. * src/RequestGroupMan.cc (removeStoppedGroup)
  6127. Added debug message.
  6128. * src/BtPostDownloadHandler.cc
  6129. * src/MetalinkPostDownloadHandler.cc
  6130. * src/PostDownloadHandler.{h, cc}
  6131. * src/RequestGroup.cc
  6132. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6133. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6134. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6136. stops and there are any unfinished or in-progress downloads.
  6137. Added the legend of "stat".
  6138. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. Throw exception when chunck checksum verification fails.
  6140. * src/DownloadCommand.cc (validatePieceHash): New function.
  6141. * src/PiecedSegment.{h, cc} (clear): New function.
  6142. * src/GrowSegment.{h, cc} (clear): New function.
  6143. * src/Segment.h (clear): New function.
  6144. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6145. * test/SegmentTest.cc
  6146. * test/GrowSegmentTest.cc
  6147. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. Do not send referer when redirected.
  6149. * src/Request.cc (redirectUrl)
  6150. * test/RequestTest.cc
  6151. * test/HttpRequestTest.cc
  6152. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Implemented BitTorrent/http/ftp integrated download.
  6154. I've rewritten lots of files and now some headers have forward
  6155. class declarations to reduce compile time.
  6156. The implementation is extremely alpha stage, I recommend to use this
  6157. for testing purpose only.
  6158. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Fixed the compilation error on 64bit platform.
  6160. * test/HttpHeaderProcessorTest.cc
  6161. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. Merged Ross's patch that fixes compilation problem in MinGW
  6163. * test/DefaultBtProgressInfoFileTest.cc
  6164. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Updated fr.po by sebone
  6166. * po/fr.po
  6167. Updated man page.
  6168. * doc/aria2c.1.txt
  6169. * Release 0.11.3
  6170. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6172. failure in Metalink.
  6173. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Automatically save *.aria2 control file of http/ftp download in every
  6175. 60 seconds.
  6176. * src/AutoSaveCommand.{h, cc}: New class.
  6177. * src/TimeBasedCommand.{h, cc}: New class.
  6178. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6179. Disable parameterized URI support by default. Added -P option to
  6180. enable the feature.
  6181. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6182. * src/OptionHandlerFactory.cc
  6183. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6184. Updated Japanese translation.
  6185. * po/ja.po
  6186. Updated man page.
  6187. * doc/aria2c.1.txt
  6188. * Release 0.11.3-rc
  6189. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6191. it is successful, then renamed to *.aria2.
  6192. This prevents *.aria2 file from being truncated or corrupted when
  6193. file system becomes out of space.
  6194. * src/DefaultBtProgressInfoFile.cc (save)
  6195. * src/SegmentMan.cc (save)
  6196. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6197. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Reduced the fragmentation of bitfield in http/ftp download.
  6199. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6200. * test/BitfieldManTest.cc
  6201. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Added the ability to disable segmented download in .metalink.
  6203. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6204. 'url' tag.
  6205. * src/MetalinkEntry.{h, cc}
  6206. * src/RequestResource.{h, cc}
  6207. * src/MetalinkRequestInfo.cc
  6208. * src/Xml2MetalinkProcessor.cc
  6209. * test/Xml2MetalinkProcessorTest.cc
  6210. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Added parameterized URI support.
  6212. * src/main.cc: -Z option added.
  6213. * src/OptionHandlerFactory.cc
  6214. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6215. * src/PStringDatum.h: New class.
  6216. * src/PStringSegment.{h,cc}: New class.
  6217. * src/PStringNumLoop.h: New class.
  6218. * src/PStringSelect.h: New class.
  6219. * src/NumberDecorator.h: New class.
  6220. * src/FixedWidthNumberDecorator.h: New class.
  6221. * src/AlphaNumberDecorator.h: New class.
  6222. * src/PStringVisitor.h: New class.
  6223. * src/PStringBuildVisitor.{h,cc}: New class.
  6224. * src/ParameterizedStringParser.{h,cc}: New class.
  6225. * src/Util.{h,cc}
  6226. (isNumber): New function.
  6227. (isLowercase): New function.
  6228. (isUppercase): New function.
  6229. (alphaToNum): New function.
  6230. * test/ParameterizedStringParserTest.cc: New class.
  6231. * test/AlphaNumberDecoratorTest.cc: New class.
  6232. * test/PStringBuildVisitorTest.cc: New class.
  6233. * test/UtilTest.cc
  6234. (testIsNumber): New function.
  6235. (testIsLowercase): New function.
  6236. (testIsUppercase): New function.
  6237. (testAlphaToNum): New function.
  6238. Added '\n' after the error message
  6239. * src/RequestInfo.h (printDownloadAbortMessage)
  6240. Added auto file renaming feature in http(s)/ftp download.
  6241. * src/main.cc: Added --auto-file-renaming command-line option.
  6242. * src/OptionHandlerFactory.cc
  6243. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6244. * src/RequestGroup.{h, cc}
  6245. (shouldCancelDownloadForSafety): Rewritten
  6246. (tryAutoFileRenaming): New function.
  6247. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6248. * src/HttpResponseCommand.cc
  6249. (executeInternal): Removed the call to RequestGroupMan::
  6250. isSameFileBeingDownloaded()
  6251. * src/FtpNegotiateCommand.cc
  6252. (recvSize): Removed the call to RequestGroupMan::
  6253. isSameFileBeingDownloaded()
  6254. * test/RequestGroupTest.cc: New class.
  6255. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6257. IO.
  6258. * src/DefaultBtProgressInfoFile.cc
  6259. * src/MetaFileUtil.cc
  6260. * src/SimpleLogger.cc
  6261. * src/SegmentMan.cc
  6262. * src/Util.cc
  6263. * src/Platform.cc
  6264. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6266. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6268. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6269. Fixed the bug that prevents file allocation is not done when
  6270. dowloading multi-torrent file.
  6271. * src/AbstractDiskWriter.cc (openFile)
  6272. Increase the maximum number of -j option from 15 to 45.
  6273. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6274. Added fr.po, thanks to Charles Landemaine.
  6275. * po/fr.po
  6276. * po/LINGUAS
  6277. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6278. gcc 3.4.4 support:
  6279. * src/DefaultBtContext.cc: int32_t -> int
  6280. * src/main.cc: int -> int32_t, int32_t -> int
  6281. * src/messageDigest.h: uint32_t -> unsigned int
  6282. * src/NameResolver.h: int32_t -> int
  6283. * src/PeerConnection.cc: int -> int32_t
  6284. * src/SpeedCalc.cc: int32_t -> int
  6285. * src/TrackerUpdateCommand.h: int -> int32_t
  6286. * src/Util.cc: int32_t -> int
  6287. * src/Util.h: int32_t -> int
  6288. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6289. * test/AnnounceListTest.cc: int -> int32_t
  6290. * test/ChunkedEncodingTest.cc: int -> int32_t
  6291. * test/DataTest.cc: int -> int32_t
  6292. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6293. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6294. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6295. * test/FeatureConfigTest.cc: int -> int32_t
  6296. * test/MetalinkEntryTest.cc: int -> int32_t
  6297. * test/MockBtRequestFactory.h: int -> int32_t
  6298. * test/MockPieceStorage.h: int -> int32_t
  6299. * test/OptionTest.cc: int -> int32_t
  6300. * test/RequestTest.cc: int -> int32_t
  6301. * test/SegmentManTest.cc: int -> int32_t
  6302. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6303. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6304. Move sleep functions to Util class:
  6305. * src/Util.cc
  6306. (sleep): New function.
  6307. (usleep): New function.
  6308. * src/DownloadCommand.cc: sleep -> Util::sleep
  6309. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6310. MinGW build enhancements. The following files are added:
  6311. * src/timegm.{c,h}
  6312. Changes to support the above new files:
  6313. * configure.ac
  6314. * src/Makefile.am
  6315. * src/a2time.h
  6316. * src/Util.cc:
  6317. * src/strptime.c: Added support for %Z option.
  6318. Fixed MinGW non-blocking bug.
  6319. * src/SocketCore.cc
  6320. * src/HttpRequestCommand.cc
  6321. Miscellenous build fixes/enhancements.
  6322. * configure.ac: Added summary report.
  6323. * src/Platform.h: Tweaked #include's.
  6324. * src/a2netcompat.h: Tweaked #include's.
  6325. * src/strptime.h: Tweaked #include's.
  6326. * src/gai_strerror.c: Tweaked #include's.
  6327. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  6328. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  6329. * src/gettimeofday.h: Added HAVE_CONFIG_H
  6330. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Increased the initial connection size in BitTorrent download to 40.
  6332. * src/BtRuntime.h
  6333. Added the usage message of --peer-id-prefix option.
  6334. * src/main.cc
  6335. * Release 0.11.2
  6336. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. MessageDigestHelper is introduced in order to simplify the use
  6338. of message digest. Removed repeated code.
  6339. The message digest algorithm is now specified by string, like "sha1",
  6340. "md5".
  6341. * src/messageDigest.{h, cc}
  6342. * src/MessageDigestHelper.{h, cc}: New class.
  6343. * src/DefaultPieceStorage.cc
  6344. * src/DefaultBtContext.{h, cc}
  6345. (computeFastSet): New function.
  6346. (setInfoHash): Added for unit testing.
  6347. (setNumPieces): Added for unit testing.
  6348. * src/DefaultBtInteractive.cc
  6349. * src/BtPieceMessage.cc
  6350. * src/Peer.cc
  6351. * src/Checksum.h
  6352. * src/message.h
  6353. * src/IteratableChecksumValidator.h
  6354. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  6355. inside it.
  6356. * src/SegmentMan.{h, cc}
  6357. (checkIntegrity): Removed.
  6358. * src/IteratableChunkChecksumValidator.{h, cc}
  6359. * src/Util.h
  6360. (sha1Sum): Removed.
  6361. (simpleMessageDigest): Removed.
  6362. (fileChecksum): Removed.
  6363. (computeFastSet): Removed.
  6364. * src/ShaVisitor.cc
  6365. * src/ChunkChecksum.h
  6366. * src/DownloadCommand.cc
  6367. Removed messageDigest virtual functions.
  6368. * src/MultiDiskAdaptor.{h, cc}
  6369. * src/DiskAdaptor.h
  6370. * src/ByteArrayDiskWriter.h
  6371. * src/DiskWriter.h
  6372. * src/DiskAdaptorWriter.h
  6373. * src/AbstractSingleDiskAdaptor.{h, cc}
  6374. * src/AbstractDiskWriter.{h, cc}
  6375. Fixed comilation error when message digest is disabled.
  6376. * src/MetalinkEntry.{h, cc}
  6377. * src/MetalinkRequestInfo.cc
  6378. Removed srandom and random.
  6379. * src/SimpleRandomizer.h
  6380. Added size() virtual function to DiskAdaptor
  6381. * src/MultiDiskAdaptor.h
  6382. Fixed the bug that causes that files are not opened correctly in
  6383. multi-file torrent.
  6384. * src/TorrentRequestInfo.cc
  6385. * src/MultiDiskAdaptor.cc
  6386. Added SHA256 support
  6387. * src/messageDigest.cc
  6388. * src/Xml2MetalinkProcessor.cc
  6389. Show supported message digest algorithms
  6390. * src/main.cc
  6391. Updated contact info.
  6392. * src/main.cc
  6393. Applied Ross's patch
  6394. * src/a2netcompat.h
  6395. * src/main.cc
  6396. Fixed the bug that prevents a remote metalink from not being processed
  6397. even if '-o foo.metalink' is specified.
  6398. * src/MetalinkRequestInfo.cc
  6399. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Merged Dan's patch:
  6401. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  6402. Use va_copy to avoid core dump on amd64:
  6403. * src/SimpleLogger.cc
  6404. Updated contact info.
  6405. * src/main.cc
  6406. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  6407. digest is not available.
  6408. * src/MetalinkEntry.h
  6409. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6410. Make a2netcompat.h include a2io.h to fix compilation error:
  6411. * src/a2netcompat.h
  6412. * src/SocketCore.cc: Removed include of a2io.h
  6413. * src/Util.cc: Removed include of a2io.h
  6414. Gather time related functions to a2time.h:
  6415. * src/a2time.h: New file.
  6416. * src/DefaultPeerStorage.cc
  6417. * src/SimpleLogger.cc
  6418. * src/Util.{h, cc}
  6419. * src/SimpleRandomizer.h
  6420. * src/TimeA2.{h,cc}
  6421. * src/DownloadCommand.cc
  6422. * src/main.cc
  6423. Removed #ifdef __MINGW32__ since gai_strerror is included in
  6424. a2netcompat.h:
  6425. * src/NameResolver.cc
  6426. Fixed compilation error without openssl:
  6427. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  6428. Added default block to suppress compiler warnings:
  6429. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  6430. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  6431. MinGW build enhancements. The following files are added:
  6432. * src/gai_strerror.{c,h}
  6433. * src/gettimeofday.{c,h}
  6434. Changes to support the above new files:
  6435. * configure.ac
  6436. * src/Makefile.am
  6437. * src/a2netcompat.h
  6438. * src/TimeA2.cc
  6439. * src/DefaultPeerStorage.cc
  6440. * src/NameResolver.cc: removed mingw_strerror() function.
  6441. * src/SocketCore.cc: removed mingw_strerror() function.
  6442. Miscellaneous MinGW build fixes.
  6443. * src/a2io.h: Use _lseeki64() instead of lseek()
  6444. * src/common.h
  6445. * src/DefaultFileAllocator.cc
  6446. * src/GlowFileAllocator.cc
  6447. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  6448. * src/NameResolver.cc
  6449. (callback): Changed int32_t to int.
  6450. (resolve): Changed int32_t to int.
  6451. * src/Platform.cc
  6452. * src/Platform.h
  6453. * test/MultiDiskWriterTest.cc
  6454. * test/PeerMessageUtilTest.cc
  6455. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  6456. Other enhancements and fixes.
  6457. * src/HttpRequestCommand.cc
  6458. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  6459. * src/SocketCore.cc:
  6460. (error): New function to abstract errno/WSAGetLastError().
  6461. (errorMsg): New function to abstract errno/WSAGetLastError().
  6462. (initiateSecureConnection): Added more detailed error reporting.
  6463. * src/SocketCore.h: Added private variable blocking, to allow
  6464. proper handling of OpenSSL psuedo-errors.
  6465. * src/message.h
  6466. (EX_SSL_INIT_FAILURE)
  6467. (EX_SSL_IO_ERROR)
  6468. (EX_SSL_PROTOCOL_ERROR)
  6469. (EX_SSL_UNKNOWN_ERROR)
  6470. (EX_SSL_CONNECT_ERROR)
  6471. (EX_SOCKET_BLOCKING)
  6472. (EX_SOCKET_NONBLOCKING)
  6473. (EX_SOCKET_UNKNOWN_ERROR)
  6474. * src/Util.cc
  6475. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  6476. reserved name.
  6477. (httpGMT): Fixed typo.
  6478. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Merged Ross's win32 patch(manually)
  6480. In the course of merging, following files are added.
  6481. * src/strptime.{h,c}
  6482. * src/libgen.{h,c}
  6483. * src/inet_aton.{h,c}
  6484. * src/Platform.{h,cc}
  6485. * src/localtime_r.{h,c}
  6486. * src/getaddrinfo.{h,c}
  6487. I've gethered network related things, and put them to following file:
  6488. * src/a2netcompat.h
  6489. Also io related things are put to following file:
  6490. * src/a2io.h
  6491. Changed %lld to %s because mingw32 doesn't recognize %lld.
  6492. * src/message.h
  6493. (MSG_ALLOCATION_COMPLETED)
  6494. (EX_TOO_LARGE_FILE)
  6495. (EX_SIZE_MISMATCH)
  6496. (EX_FILE_OFFSET_OUT_OF_RANGE)
  6497. (EX_INVALID_CHUNK_CHECKSUM)
  6498. (EX_INVALID_RANGE_HEADER)
  6499. * src/FileAllocationCommand.cc
  6500. * src/HttpResponse.cc
  6501. * src/RequestGroup.cc
  6502. * src/MultiDiskAdaptor.cc
  6503. * src/OptionHandlerImpl.h
  6504. * src/HttpResponseCommand.cc
  6505. * src/FtpNegotiateCommand.cc
  6506. * src/IteratableChecksumValidator.cc
  6507. * src/SegmentMan.cc
  6508. * src/ChunkChecksumValidator.cc
  6509. Added Randomizer::getRandomNumber(long int)
  6510. * src/Randomizer.h (getRandomNumber)
  6511. * src/SimpleRandomizer.h (getRandomNumber)
  6512. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  6513. * src/Util.cc (randomAlpha): Use this new function.
  6514. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. Converted int's to in32_t. long long int's are also converted to
  6516. int64_t
  6517. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Fixed the bug that prevents cookies from being sent to the server
  6519. if the domain of cookie is FQDN and starts with ".".
  6520. * src/Cookie.cc (match)
  6521. To add the ability to change peer id.
  6522. * src/DefaultBtContext.h
  6523. (_peerIdPrefix): New variable
  6524. (setPeerIdPrefix): New function.
  6525. * src/torrentRequestInfo.cc
  6526. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  6527. DefaultBtContext.
  6528. * src/main.cc (main): Added peer-id-prefix command-line option.
  6529. The usage message is not added yet.
  6530. * src/DefaultBtContext.cc
  6531. (generatePeerId): Use _peerIdPrefix.
  6532. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  6533. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6534. Fixed the bug that prevents filename in content-disposition from
  6535. being retrieved when filename is not quoted.
  6536. * src/Util.cc (getContentDispositionFilename)
  6537. Fixed the bug that causes infinate loop and memory leak when file open
  6538. operation failed.
  6539. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6540. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Fixed the bug that causes segfault when all URIs specified are
  6542. unsupported.
  6543. * src/RequestGroupMan.cc (getInitialCommands)
  6544. Check if RequestGroup::createNextCommand() returns empty list of
  6545. commands.
  6546. * src/RequestGroup.cc (createNextCommand)
  6547. Change log level from info to error so that users can notice that
  6548. an error occurred.
  6549. Fixed the bug that causes segfault when a zero-sized file is
  6550. downloaded.
  6551. * src/BitfieldMan.cc (isAllBitSet)
  6552. Return true if bitfieldLength is 0.
  6553. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. * src/main.cc
  6555. (showUsage): Added 3 usage examples for metalink download.
  6556. Replace MetalinkChunkChecksum with ChunkChecksum.
  6557. * src/MetalinkChunkChecksum.h: Removed.
  6558. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  6559. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  6560. * src/Xml2MetalinkProcessor.cc
  6561. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  6562. * src/MetalinkRequestInfo.cc (execute)
  6563. * Release 0.11.1
  6564. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. Reads URIs from stdin when "-i -" is specified.
  6566. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  6567. * src/UriListParser.h, src/UriListParser.cc: New class.
  6568. * src/StreamUriListParser.h: New class.
  6569. * src/FileUriListParser.h: New class.
  6570. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  6571. instead of UriFileListParser.
  6572. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. Made console readout more readable.
  6574. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6575. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. Fix the bug that causes -s option not to work.
  6577. * src/main.cc (main)
  6578. * src/a2algo.h: New file.
  6579. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6580. Create directory structure specified in metalink file.
  6581. * src/RequestGroup.h, src/RequestGroup.cc
  6582. (initAndOpenFile): Create a directory to store files if it does not
  6583. exist.
  6584. (getDir): New function.
  6585. Added ETA and download speed for an individual file to readout.
  6586. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6587. * src/RequestGroup.h
  6588. (calculateDownloadSpeed): New function.
  6589. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Made -S option work with metalink file and provided selective download
  6591. to metalink.
  6592. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  6593. (filename): Removed.
  6594. (file): New variable.
  6595. (size): Removed.
  6596. (operator=): Updated.
  6597. (getPath): New function.
  6598. (getLength): New function.
  6599. (toFileEntry): New function.
  6600. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  6601. (execute): Use toStream.
  6602. (showFileEntry): Removed.
  6603. * src/MetalinkRequestInfo.h
  6604. (targetFiles): New variable.
  6605. (setTargetFiles): New variable.
  6606. * src/MetalinkRequestInfo.cc
  6607. (execute): Added the ability to print file information included in
  6608. a metalink file.
  6609. Added selective download mode to metalink.
  6610. * src/main.cc
  6611. (showUsage): Updated to denote that -S and --select-file options are
  6612. applicable to metalink.
  6613. * src/FileEntry.h
  6614. (operator=): New function.
  6615. (getBasename): New function.
  6616. (getDirname): New function.
  6617. * src/Util.h, src/Util.cc
  6618. (toStream): New function.
  6619. * src/Xml2MetalinkProcessor.cc: Updated.
  6620. Made aria2 work with metalink with directory structure.
  6621. * src/File.h, src/File.cc
  6622. (getBasename): New function.
  6623. (getDirname): New function.
  6624. * src/RequestGroup.h, src/RequestGroup.cc
  6625. (_topDir): New variable.
  6626. (setTopDir): New function.
  6627. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  6628. Rewrote HTTP header parsing with stringstream.
  6629. * src/HttpConnection.h, src/HttpConnection.cc
  6630. (HttpRequestEntry): New class.
  6631. (headerBuf): Removed.
  6632. (headerBufLength): Removed.
  6633. (outstandingHttpRequests): Now its element type is
  6634. HttpRequestEntryHandle.
  6635. (findEndOfHeader): Removed.
  6636. (receiveResponse): Rewritten.
  6637. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  6638. Updated doc for -j option to notice that it should be used with -i
  6639. option.
  6640. * src/main.cc (showUsage)
  6641. Removed unused classes.
  6642. * src/RequestInfo.h
  6643. (FileInfo): Removed.
  6644. (checksum): Removed.
  6645. (fileInfo): Removed.
  6646. (setChecksum): Removed.
  6647. (getChecksum): Removed.
  6648. (getFileInfo): Removed.
  6649. Use ISO units.
  6650. * src/ConsoleDownloadEngine.cc
  6651. * src/TorrentConsoleDownloadEngine.cc
  6652. * src/Util.cc (abbrevSize)
  6653. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Added the default listening ports to the help message.
  6655. * src/main.cc (showUsage)
  6656. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Reduce the number of calls to gettimeofday to lower CPU load.
  6658. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  6659. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  6660. * src/Peer.h (calculateUploadSpeed): New function.
  6661. (calculateDownloadSpeed): New function.
  6662. * src/DefaultPeerStorage.cc
  6663. (CalculateStat): Added _now variable.
  6664. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  6665. and Peer::calculateUploadSpeed(const struct timeval&)
  6666. Drop connection if no request or piece message is exchanged in
  6667. a certain interval.
  6668. * src/DefaultBtInteractive.h
  6669. (btRuntime): New variable.
  6670. (inactiveCheckPoint): New variable.
  6671. (checkActiveInteraction): New function.
  6672. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  6673. request or piece message is received.
  6674. (checkActiveInteraction): New function.
  6675. (doInteractionProcessing): Call checkActiveInteraction.
  6676. Fixed the bug that causes remote Metalink and Torrent files are not
  6677. processed.
  6678. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  6679. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6680. Changed format of log file.
  6681. * src/SimpleLogger.cc
  6682. * Release 0.11.0
  6683. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. * src/AbstractCommand.cc
  6685. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  6686. MSG_MAX_TRY from error to info.
  6687. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  6688. * src/message.h
  6689. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  6690. (MSG_DOWNLOAD_ABORTED): Added %s.
  6691. (MSG_RESTARTING_DOWNLOAD): Added %s.
  6692. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  6693. * src/PeerAbstractCommand.cc
  6694. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  6695. * src/Request.h
  6696. (cookieBox): Made ShardHandle.
  6697. * src/RequestGroup.h, src/RequestGroup.cc
  6698. (createNextCommandWithAdj): New function.
  6699. * src/FileAllocationCommand.cc
  6700. (executeInternal): Use createNextCommandWithAdj().
  6701. * src/CheckIntegrityCommand.cc
  6702. (executeInternal): Use createNextCommandWithAdj().
  6703. Added --load-cookies command-option.
  6704. * src/OptionHandlerFactory.cc
  6705. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  6706. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  6707. Now aria2 can handle cookie's expiration date.
  6708. * src/Cookie.h (expires): Changed its type to time_t.
  6709. * src/main.cc: Added --load-cookies command-line option.
  6710. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  6711. * src/Util.h, src/Util.cc (httpGMT): New function.
  6712. * src/Request.cc (Request): Initialize cookieBox using
  6713. CookieBoxFactory.
  6714. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  6715. * src/CookieParser.h, src/CookieParser.cc: New class.
  6716. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  6717. * src/HttpResponseCommand.cc
  6718. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  6719. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  6720. download.
  6721. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6722. Added -j command-line option.
  6723. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6724. * src/main.cc
  6725. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  6726. Rewritten using stringstream.
  6727. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  6728. Rewritten using stringstream.
  6729. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Make download size shown in MB, KB.
  6731. * src/ConsoleDownloadEngine.h (sendStatistics)
  6732. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  6733. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6734. Accept incoming connections if download rate is low.
  6735. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  6736. (_lowestSpeedLimit): New variable.
  6737. (setLowestSpeedLimit): New function.
  6738. (execute): Accept incoming connections if download rate is low.
  6739. MAX_PEERS is ignored in this case.
  6740. Disable PREF_OUT in multiple concurrent download:
  6741. * src/RequestGroup.h, src/RequestGroup.cc
  6742. (setUserDefinedFilename): New function.
  6743. * src/DownloadEngineFactory.cc
  6744. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  6745. concurrent download.
  6746. * src/DefaultSegmentManFactory.cc
  6747. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  6748. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. RequestGroup::getNextCommand() was renamed to createNextCommand().
  6750. Added its overloaded method.
  6751. * src/RequestGroup.h
  6752. (_numConcurrentCommand): New variable.
  6753. (setNumConcurrentCommand): New function.
  6754. * src/RequestGroup.cc
  6755. Abort download if same file is being downloaded concurrently.
  6756. * src/RequestGroup.h, src/RequestGroupMan.cc
  6757. (isSameFileBeingDownloaded): New function.
  6758. * src/HttpResponseCommand.cc (executeInternal)
  6759. * src/FtpNegotiateCommand.cc (recvSize)
  6760. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  6761. * main.cc: Added help message for -i option.
  6762. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  6764. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  6765. * src/MetalinkEntry.h
  6766. (checksum): Changed to ChecksumHandle
  6767. * src/MetalinkRequestInfo.cc
  6768. (checksum): Changed to ChecksumHandle
  6769. * src/File.cc
  6770. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  6771. * src/common.h
  6772. (DIR_OPEN_MODE): New definition
  6773. * src/RequestGroup.cc
  6774. (prepareForNextAction): Added an argument.
  6775. * src/message.h
  6776. (MSG_GOOD_CHECKSUM): New definition
  6777. (MSG_BAD_CHECKSUM): New definition
  6778. * src/HttpResponseCommand.cc
  6779. (handleDefaultEncoding): Continue download sequence in new
  6780. non-segmented download.
  6781. * src/FileAllocationEntry.h
  6782. (_nextDownloadCommand): New variable.
  6783. * src/DownloadCommand.cc
  6784. (prepareForNextSegment): Create ChecksumCommand if checksum is
  6785. available.
  6786. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  6787. * src/IteratableChecksumValidator.h,
  6788. src/IteratableChecksumValidator.cc: New class.
  6789. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  6790. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Change file mode to 666:
  6792. * src/common.h (OPEN_MODE): New definition.
  6793. * src/File.cc
  6794. * src/Util.cc
  6795. * src/Directry.cc
  6796. * src/AbstractDiskWriter.cc
  6797. Change the level of log message "download aborted" to debug:
  6798. * src/PeerAbstractCommand.cc (execute)
  6799. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  6800. * src/TrackerWatcherCommand.cc
  6801. (createCommand): Sleep some seconds after request failed.
  6802. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  6803. then abort tracker request.
  6804. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. * Added the simultaneous download feature.
  6806. * src/main.cc: Print "Exception caught: " when exception is caught.
  6807. Use CUIDCounter instead of BtRuntime::getNewCuid():
  6808. * src/ActivePeerConnectionCommand.cc
  6809. * src/PeerInteractionCommand.cc
  6810. * src/BtRuntime.h
  6811. (cuidCounter): Removed.
  6812. (getNewCuid): Removed.
  6813. * src/DownloadEngineFactory.cc
  6814. * src/PeerListenCommand.cc
  6815. * src/TrackerUpdateCommand.cc
  6816. * src/PeerInitiateConnectionCommand.cc
  6817. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. * src/PeerAbstractCommand.cc
  6819. (onAbort): Call PeerStorage::returnPeer()
  6820. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  6821. (incomingPeers): New variable.
  6822. (addIncomingPeer): New function.
  6823. (returnPeer): New function.
  6824. (onErasingPeer): New function.
  6825. (addPeer): push_back -> push_front
  6826. (getActivePeers): Rewritten.
  6827. (calculateStat): Rewritten.
  6828. * src/PeerStorage.h
  6829. (TransferStat::copy): New function.
  6830. (TransferStat::TransferStat): New function.
  6831. (TransferStat::operator=): New function.
  6832. (addIncomingPeer): New function.
  6833. (returnPeer): New function.
  6834. * src/PeerListenCommand.cc
  6835. (execute): Use PeerStorage::addIncomingPeer() instead of
  6836. Peer::addPeer().
  6837. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6838. Connect to a peer actively when download speed is lower than specified
  6839. speed in torrent download:
  6840. * src/ActivePeerConnectionCommand.h: New class.
  6841. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. * src/HttpRequest.cc (createRequest): url-encode user-agent
  6843. * src/main.cc: Fixed the bug that prevents download if .netrc
  6844. doesn't exist.
  6845. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6846. To cache resolved hostname:
  6847. * src/AbstractCommand.h, src/AbstractCommand.cc
  6848. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  6849. Added dns cache.
  6850. * src/FtpInitiateConnectionCommand.cc
  6851. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  6852. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  6853. NameResolver working without ares.
  6854. * src/TorrentRequestInfo.cc
  6855. (execute): Don't cache dns in torrent download.
  6856. * src/HttpInitiateConnectionCommand.cc
  6857. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  6858. * src/DNSCache.h: New class.
  6859. * src/UrlRequestInfo.cc
  6860. (execute): Use dns cache.
  6861. In http request, suppress port number in http request header if port
  6862. is 80 or 443:
  6863. * src/HttpRequest.cc (getHostText): Suppress port number in http
  6864. request header if port is 80 or 443.
  6865. (createProxyRequest): Allways send port number.
  6866. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. To add the command-line option which disables netrc support:
  6868. * src/OptionHandlerFactory.cc
  6869. (createOptionHandlers): Added PREF_NO_NETRC.
  6870. * src/main.cc: Added -n option.
  6871. * src/prefs.h (PREF_NO_NETRC): New definition.
  6872. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  6873. V_TRUE.
  6874. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  6875. is V_FALSE. This may get configurable in the future release.
  6876. To clear peer's error status by time basis:
  6877. * src/PeerAbstractCommand.cc
  6878. (onAbort): Call Peer::startBadCondition().
  6879. * src/Peer.h, src/Peer.cc
  6880. (error): Removed.
  6881. (_badConditionStartTime): New variable.
  6882. (_badConditionInterval): New variable. Initialized to 10 seconds.
  6883. (startBadCondition): New function.
  6884. (isGood): New function.
  6885. * src/DefaultPeerStorage.cc
  6886. (addPeer): Use Peer::isGood().
  6887. (FindFinePeer): Use Peer::isGood().
  6888. Always include port number in http request header:
  6889. * src/HttpRequest.cc (getHostText): Always include port number in
  6890. http request header.
  6891. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. To the ability to read options from a config file:
  6893. * src/main.cc: Command-line parameter validation is delegated to
  6894. OptionHandler class.
  6895. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  6896. * src/Option.h, src/Option.cc (clear): New function.
  6897. * src/OptionParser.h, src/OptionParser.cc: New class.
  6898. * src/OptionHandler.h: New class.
  6899. * src/NameMatchOptionHandler.h: New class.
  6900. * src/OptionHandlerImpl.h: New classes.
  6901. * src/prefs.h: '_' -> '-'
  6902. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  6903. (FTP_PASV): New definition.
  6904. * src/Util.h, src/Util.cc (getRealSize): New function.
  6905. To disable netrc support if .netrc file does not have correct
  6906. permissions:
  6907. * src/File.h, src/File.cc (mode): New function.
  6908. To prevent confidential information to be logged:
  6909. * src/HttpConnection.h, src/HttpConnection.cc
  6910. (eraseConfidentialInfo): New function.
  6911. (sendRequest): Call eraseConfidentialInfo().
  6912. (sendProxyRequest): Call eraseConfidentialInfo().
  6913. * src/main.cc: Validate permissions of .netrc file.
  6914. To add --user-agent command-line option:
  6915. * src/main.cc: Added new command line option: --user-agent
  6916. * src/prefs.h (PREF_USER_AGENT): New definition.
  6917. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6918. parameter to HttpRequest object.
  6919. * src/AbstractProxyRequestCommand.cc
  6920. (executeInternal): Set user-agent option parameter to HttpRequest
  6921. object.
  6922. Marged the patches from Dan Fandrich.
  6923. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Use filename and size from Metalink file instead of sending HEAD
  6925. request:
  6926. * src/UrlRequestInfo.h
  6927. (_filename): New variable.
  6928. (_totalLength): New variable.
  6929. (setTotalLength): New variable.
  6930. (setFilename): New variable.
  6931. * src/MetalinkRequestInfo.cc
  6932. (execute): Set filename and size to UrlRequestInfo
  6933. * src/UrlRequestInfo.cc
  6934. (execute): Use filename and size from Metalink instead of seding
  6935. HEAD request to servers.
  6936. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. To add the ability to resume downloading a partially downloaded file
  6938. which is downloaded from the beginning:
  6939. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6940. takes this role.
  6941. * src/main.cc: Added -c option.
  6942. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6943. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6944. * src/prefs.h (PREF_CONTINUE): New definition.
  6945. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6946. * src/DefaultDiskWriter.cc
  6947. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6948. * src/AbstractDiskWriter.h
  6949. (glowFileAllocator): New variable.
  6950. * src/AbstractDiskWriter.cc
  6951. (openExistingFile): Now preallocate file space from the end of the
  6952. existing file if totalLength argument is specified and grater than 0.
  6953. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6954. to download exists in local, continue the download of the file.
  6955. --allow-overwrite=true is assumed in this context.
  6956. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6957. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6958. Throw exception if --check-integrity=true is specified but chunk
  6959. checksums are not provided:
  6960. * src/UrlRequestInfo.cc
  6961. Do not print URLs to stdout:
  6962. * src/UrlRequestInfo.cc
  6963. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6964. * src/Request.h: Use AuthResolver to get authentication information.
  6965. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6966. set to RequestFactory object.
  6967. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6968. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6969. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6970. create Request object.
  6971. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6972. To integrate Netrc into exsiting classes:
  6973. * src/Request.h
  6974. (_userDefinedAuthConfig): New variable.
  6975. (findNetrcAuthenticator): New function.
  6976. (segment): Removed.
  6977. (setUserDefinedAuthConfig): New function.
  6978. (resolveHttpAuthConfigItem): New function.
  6979. (resolveFtpAuthConfigItem): New function.
  6980. (resolveHttpProxyAuthConfigItem): New function.
  6981. * src/HttpRequest.h
  6982. (authConfig): Removed.
  6983. (proxyAuthConfig): Removed.
  6984. (setAuthConfig): Removed.
  6985. (setProxyAuthConfig): Removed.
  6986. * src/UrlRequest.h
  6987. (getHeadResult): Added a parameter: authConfigHandle
  6988. * src/common.h
  6989. (SingletonHolder.h): New include.
  6990. * src/main.cc
  6991. (Netrc.h): New include.
  6992. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6993. Added initial value of PREF_NETRC_PATH.
  6994. Added the initialization of netrc.
  6995. * src/AuthConfig.h: New class.
  6996. * src/prefs.h
  6997. (PREF_NETRC_PATH): New definition.
  6998. * src/HttpAuthConfig.h: Removed.
  6999. * src/Netrc.cc
  7000. (getRequiredNextToken): New function.
  7001. (skipMacdef): New function.
  7002. (parse): Rewritten.
  7003. * src/Netrc.h
  7004. (getRequiredNextToken): New function.
  7005. (skipMacdef): New function.
  7006. * src/Util.h, src/Util.cc
  7007. (getHomeDir): New function.
  7008. * src/TrackerWatcherComand.cc
  7009. (createRequestCommand): Use AuthConfig.
  7010. * src/FtpConnection.cc
  7011. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7012. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7013. * src/Request.cc
  7014. (findNetrcAuthenticator): New function.
  7015. (resolveHttpAuthConfigItem): New function.
  7016. (resolveFtpAuthConfigItem): New function.
  7017. (resolveHttpProxyAuthConfigItem): New function.
  7018. * src/UrlRequestInfo.cc: Use AuthConfig.
  7019. * src/HttpRequest.cc
  7020. (createRequest): Use authConfig.
  7021. (getProxyAuthString): Use authConfig.
  7022. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7023. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7024. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. To reduce overhead to find commands whose socket is either
  7026. readable or writable in the download engine loop:
  7027. * src/Command.h, src/Command.cc
  7028. (STATUS): New enum.
  7029. (status): New variable.
  7030. (statusMatch): New function.
  7031. (setStatusActive): New function.
  7032. (setStatusInactive): New function.
  7033. * src/DownloadEngine.h, src/DownloadEngine.cc
  7034. (executeCommand): New function.
  7035. (run): Simplified.
  7036. (waitData): Call Command::setStatusActive() when command's socket is
  7037. readable or writable.
  7038. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. To handle Segment as SegmentHandle:
  7040. * src/AbstractCommand.cc (execute): Rewritten.
  7041. * src/SegmentMan.h: Segment -> SegmentHandle
  7042. Introducded HttpResponse class, HttpRequest class to improve code
  7043. extensiveness and make it clear:
  7044. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7045. HttpResponse class.
  7046. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7047. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7048. * src/HttpConnection.cc: Contruction of http request were moved to
  7049. HttpRequest class.
  7050. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7051. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7052. * src/HttpAuthConfig.h: New class.
  7053. * src/Range.h: New class.
  7054. To make FtpTunnel{Request, Response}Command and
  7055. HttpProxy{Request, Response}Command derived from
  7056. AbstractProxy{Request, Response}Command:
  7057. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7058. Derived from AbstractProxyRequestCommand class.
  7059. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7060. Derived from AbstractProxyResponseCommand class.
  7061. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7062. Derived from AbstractProxyRequestCommand class.
  7063. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7064. Derived from AbstractProxyResponseCommand class.
  7065. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7066. : New class.
  7067. * src/AbstractProxyResponseCommand.h,
  7068. src/AbstractProxyResponseCommand.cc: New class.
  7069. To add netrc support:
  7070. * src/Netrc.h, src/Netrc.cc: New class.
  7071. * src/Util.h, src/Util.cc (split): New function.
  7072. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7073. "Content-Range" header instead of "Range" header.
  7074. * src/HttpHeader.h
  7075. (getStatus): Removed.
  7076. (setStatus): Removed.
  7077. * src/Segment.h
  7078. (getPositionToWrite): New function.
  7079. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. * src/HttpHeader.h
  7081. (Range.h): New include.
  7082. (status): New variable.
  7083. (HttpHeader): Initialized status with 0.
  7084. (getStatus): New function.
  7085. (setStatus): New function.
  7086. (getRange): New function.
  7087. (HttpHeaderHandle): New function.
  7088. * src/HttpHeader.cc
  7089. (getRange): New function.
  7090. * src/Request.h
  7091. (RequestWeakHandle): New definition.
  7092. * src/HttpConnection.h
  7093. (HttpConnectionHandle): New type definition.
  7094. * src/HttpConnection.cc
  7095. (receiveResponse): Set HTTP status to headers.
  7096. * src/main.cc
  7097. (showUsage): Fixed typo.
  7098. * src/Segment.h
  7099. (SegmentHandle): New type definition.
  7100. * src/BitfieldMan.h
  7101. (getMissingUnusedLength): New function.
  7102. * src/BitfieldMan.cc
  7103. (getMissingUnusedLength): New function.
  7104. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. To fix static initialization order problem:
  7106. * src/BitfieldManFactory.h
  7107. (defaultRandomizer): Removed.
  7108. (factory): New variable.
  7109. (getNewFactory): Removed.
  7110. (getFactoryInstance): New function.
  7111. (setDefaultRandomizer): Rewritten.
  7112. (getDefaultRandomizer): Rewritten.
  7113. * src/BitfieldManFactory.cc
  7114. (defaultRandomizer): Removed.
  7115. (factory): Initialized to 0.
  7116. (BitfieldManFactory): Initialized randomizer to 0.
  7117. * src/DefaultPieceStorage.cc
  7118. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7119. * src/Peer.cc
  7120. (Peer): getNewFactory() -> getFactoryInstance()
  7121. * src/SegmentMan.cc
  7122. (initBitfield): getNewFactory() -> getFactoryInstance()
  7123. * src/Piece.cc
  7124. (Piece): getNewFactory() -> getFactoryInstance()
  7125. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7126. To fix the bug that causes crash on Max OS X:
  7127. * src/SimpleRandomizer.h
  7128. (getInstance): Create new instance if the static variable is null.
  7129. * src/SimpleRandomizer.cc
  7130. (randomizer): Initialized to 0.
  7131. * src/BitfieldManFactory.h
  7132. (getNewFactory): Removed the call to setRandomizer().
  7133. To fix the miscalculation of the range of checksum:
  7134. * src/BitfieldMan.h
  7135. (isBitSetOffsetRange): New function.
  7136. * src/BitfieldMan.cc
  7137. (isBitSetOffsetRange): New function.
  7138. * src/SegmentMan.cc
  7139. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7140. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7141. * Release 0.10.1
  7142. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. To lower CPU usage in BitTorrent download when --max-upload-limit
  7144. command-line option specified:
  7145. * src/DefaultBtMessageDispatcher.cc
  7146. (sendMessages): Calculate uploading speed only when current message
  7147. is uploading data and is not sent yet.
  7148. * src/DefaultPeerStorage.h
  7149. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7150. * src/HttpResponseCommand.cc
  7151. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7152. This fixes compile error in Soralis 10.
  7153. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. To fix segfault in Metalink download:
  7155. * src/UrlRequestInfo.h
  7156. (filename): Removed.
  7157. (totalLength): Removed.
  7158. (setTotalLength): Removed.
  7159. (setFilename): Removed.
  7160. * src/MetalinkRequestInfo.cc
  7161. (execute): Do not set filename and totalLength to reqInfo.
  7162. Set chunk checksum to reqInfo if it is not null.
  7163. * src/HttpResponseCommand.cc
  7164. (executeInternal): Fixed filename in log.
  7165. (handleDefaultEncoding): Removed the call to initBitfield() and
  7166. markAllPiecesDone().
  7167. (handleOtherEncoding): Added HEAD method handling.
  7168. * src/FtpNegotiateCommand.cc
  7169. (executeInternal): Added SEQ_HEAD_OK handling.
  7170. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7171. return false.
  7172. * src/FtpNegotiateCommand.h
  7173. (SEQ_HEAD_OK): New definition.
  7174. * src/SegmentMan.cc
  7175. (initBitfield): Delete bitfield.
  7176. (isChunkChecksumValidationReady): Fixed the condition.
  7177. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7178. works fine.
  7179. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. * src/Xml2MetalinkProcessor.h
  7181. (xpathExists): New function.
  7182. * src/Xml2MetalinkProcessor.cc
  7183. (xpathExists): New function.
  7184. Not to send HEAD request if filename and size are available in Metalink
  7185. file:
  7186. * src/UrlRequestInfo.h
  7187. (filename): New variable.
  7188. (totalLength): New variable.
  7189. (setTotalLength): New function.
  7190. (setFilename): New function.
  7191. * src/MetalinkRequestInfo.cc
  7192. (execute): Set filename and size to UrlRequestInfo.
  7193. * src/MetalinkEntry.cc
  7194. (MetalinkEntry): Initialize size with 0.
  7195. * src/UrlRequestInfo.cc
  7196. (execute): Set filename and size to SegmentMan.
  7197. Not to download rest of the files after selected files are downloaded
  7198. in BitTorrent:
  7199. * src/PieceStorage.h
  7200. (allDownloadFinished): New function.
  7201. * src/DefaultBtAnnounce.cc
  7202. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7203. downloadFinished.
  7204. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7205. * src/DefaultPieceStorage.cc
  7206. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7207. Commented out the call to finishSelectiveDownloadingMode().
  7208. (downloadFinished): Call isFilteredAllBitSet() instead of
  7209. isAllBitSet().
  7210. (allDownloadFinished): New function.
  7211. * src/DefaultBtInteractive.cc
  7212. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7213. downloadFinished().
  7214. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7215. * src/TorrentDownloadEngine.cc
  7216. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7217. * src/BitfieldMan.h
  7218. (isFilteredAllBitSet): New function.
  7219. * src/ShareRatioSeedCriteria.h
  7220. (PieceStorage.h): New include.
  7221. (pieceStorage): New variable.
  7222. (evaluate):
  7223. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7224. * src/BitfieldMan.cc
  7225. (isFilteredAllBitSet): New function.
  7226. (isAllBitSet): Filter is not took into account.
  7227. Rename --force-truncate as --allow-overwrite:
  7228. * src/TorrentRequestInfo.cc
  7229. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7230. * src/main.cc
  7231. (showUsage): --force-truncate -> --allow-overwrite
  7232. * src/message.h
  7233. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7234. * src/prefs.h
  7235. (PREF_FORCE_TRUNCATE): Removed.
  7236. (PREF_ALLOW_OVERWRITE): New definition.
  7237. * src/SegmentMan.cc
  7238. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7239. * src/MetalinkRequestInfo.cc
  7240. (execute): Queueing message are now logged in info level.
  7241. * src/common.h
  7242. (LONG_LONG_MAX): Removed.
  7243. (LONG_LONG_MIN): Removed.
  7244. * src/HttpResponseCommand.cc
  7245. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7246. * src/FtpNegotiateCommand.cc
  7247. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7248. * src/main.cc
  7249. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7250. command-line option.
  7251. (main): Added --check-integriy and --realtime-chunk-checksum
  7252. command-line option.
  7253. --force-truncate -> --allow-overwrite
  7254. Set initial value of --check-integrity option to false.
  7255. Don't show usage when error occurs while persing command-line options.
  7256. Removed deprecated --upload-limit option.
  7257. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7259. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7260. * src/BtAllowedFastMessage.cc:
  7261. * src/BtBitfieldMessage.cc
  7262. * src/BtCancelMessage.cc
  7263. * src/BtChokeMessage.cc
  7264. * src/BtHaveAllMessage.cc
  7265. * src/BtHaveMessage.cc
  7266. * src/BtHaveNoneMessage.cc
  7267. * src/BtInterestedMessage.cc
  7268. * src/BtNotInterestedMessage.cc
  7269. * src/BtPieceMessage.cc
  7270. * src/BtPortMessage.cc
  7271. * src/BtRejectMessage.cc
  7272. * src/BtRequestMessage.cc
  7273. * src/BtSuggestPieceMessage.cc
  7274. * src/BtUnchokeMessage.cc
  7275. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7276. files are affected.
  7277. * src/ChunkChecksumValidator.cc
  7278. * src/SegmentMan.cc
  7279. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7280. To add chunk checksum validation:
  7281. * src/MetalinkEntry.h
  7282. (MetalinkChunkChecksum.h): New include.
  7283. (chunkChecksum): New variable.
  7284. * src/Request.h
  7285. (method): New variable.
  7286. (setMethod): New function.
  7287. (getMethod): New function.
  7288. (METHOD_GET): New static constant.
  7289. (METHOD_HEAD): New static constant.
  7290. * src/Xml2MetalinkProcessor.h
  7291. (getPieceHash): New function.
  7292. * src/PieceStorage.h
  7293. (markAllPiecesDone): New function.
  7294. (checkIntegrity): New function.
  7295. * src/FileAllocator.h
  7296. (NullFileAllocationMonitor.h): New include.
  7297. (FileAllocator): Initialize fileAllocationMonitor with new
  7298. NullFileAllocationMonitor().
  7299. * src/MultiDiskAdaptor.h
  7300. (messageDigest.h): Remove include.
  7301. (ctx): Removed.
  7302. (hashUpdate): Added ctx.
  7303. (MultiDiskAdaptor): Removed ctx.
  7304. (sha1Sum): Renamed as messageDigest.
  7305. (messageDigest): New function.
  7306. * src/UrlRequestInfo.h
  7307. (HeadResult): New class.
  7308. (digestAlgo): New variable.
  7309. (chunkChecksumLength): New variable.
  7310. (chunkChecksums): New variable.
  7311. (getHeadResult): New function.
  7312. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7313. (setDigestAlgo): New function.
  7314. (setChunkChecksumLength): New function.
  7315. (setChunkChecksums): New function.
  7316. * src/DefaultPieceStorage.cc
  7317. (DiskAdaptorWriter.h): New include.
  7318. (ChunkChecksumValidator.h): New include.
  7319. (markAllPiecesDone): New function.
  7320. (checkIntegrity): New function.
  7321. * src/DefaultBtContext.h
  7322. (getPieceHashes): New function.
  7323. * src/TorrentRequestInfo.cc
  7324. (execute): Try to validate chunk checksum if file already exists and
  7325. .aria2 file doesn't there and user allows aria2 to overwrite it.
  7326. * src/messageDigest.h
  7327. (~MessageDigestContext): Added digestFree().
  7328. * src/MetalinkRequestInfo.cc
  7329. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  7330. * src/DiskAdaptor.h
  7331. (messageDigest.h): New include.
  7332. (sha1Sum): Renamed as messageDigest.
  7333. (messageDigest): New function.
  7334. * src/DownloadCommand.h
  7335. (PeerStat.h): New include.
  7336. (maxDownloadSpeedLimit): New variable.
  7337. (startupIdleTime): New variable.
  7338. (lowestDownloadSpeedLimit): New variable.
  7339. (peerStat): New variable.
  7340. (setMaxDownloadSpeedLimit): New function.
  7341. (setStartupIdleTime): New function.
  7342. (setLowestDownloadSPeedLimit): New function.
  7343. * src/BtContext.h
  7344. (getPieceHashes): New function.
  7345. * src/main.cc
  7346. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  7347. option to true for testing purpose.
  7348. * src/BtPieceMessage.cc
  7349. (checkPieceHash): Use messageDigest
  7350. * src/DownloadEngine.cc
  7351. (SetDescriptor): Removed.
  7352. (AccumulateActiveCommand): Removed.
  7353. (waitData): Rewritten.
  7354. (updateFdSet): Rewritten.
  7355. * src/MultiDiskAdaptor.cc
  7356. (hashUpdate): Added ctx.
  7357. (sha1Sum): Renamed as messageDigest.
  7358. (messageDigest): New function.
  7359. * src/BitfieldMan.h
  7360. (isBitRangeSet): New function.
  7361. (unsetBitRange): New function.
  7362. * src/ByteArrayDiskWriter.h
  7363. (sha1Sum): Renamed as messageDigest.
  7364. (messageDigest): New function.
  7365. * src/ConsoleDownloadEngine.cc
  7366. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  7367. * src/DiskWriter.h
  7368. (messageDigest.h): New include.
  7369. (sha1Sum): Renamed as messageDigest.
  7370. (messageDigest): New function.
  7371. * src/ChunkChecksumValidator.h: New class.
  7372. * src/DiskAdaptorWriter.h: New class.
  7373. * src/prefs.h
  7374. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  7375. (PREF_CHECK_INTEGRITY): New definition.
  7376. * src/HttpResponseCommand.cc
  7377. (handleDefaultEncoding): Added method "HEAD" handling.
  7378. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7379. (handleOtherEncoding):
  7380. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  7381. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  7382. startupIdleTime, lowestDownloadSpeedLimit to command.
  7383. * src/SegmentMan.h
  7384. (getSegmentEntryByIndex): New function.
  7385. (getSegmentEntryByCuid): New function.
  7386. (getSegmentEntryIteratorByCuid): New function.
  7387. (diskWriter): DiskWriter -> DiskWriterHandle
  7388. (pieceHashes): New variable.
  7389. (chunkHashLength): New variable.
  7390. (digestAlgo): New variable.
  7391. (FindPeerStat): Removed.
  7392. (getPeerStat): Rewritten.
  7393. (markAllPiecesDone): New function.
  7394. (checkIntegrity): New function.
  7395. (tryChunkChecksumValidation): New function.
  7396. (isChunkChecksumValidationReady): New function.
  7397. * src/BitfieldMan.cc
  7398. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  7399. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  7400. blocks to 0.
  7401. (isBitRangeSet): New function.
  7402. (unsetBitRange): New function.
  7403. * src/FtpNegotiateCommand.cc
  7404. (executeInternal): Set maxDownloadSpeedLimit,
  7405. startupIdleTime, lowestDownloadSpeedLimit to command.
  7406. (recvSize): Added method "HEAD" handling.
  7407. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7408. * src/AbstractSingleDiskAdaptor.cc
  7409. (sha1Sum): Renamed as messageDigest.
  7410. (messageDigest): New function.
  7411. * src/AbstractSingleDiskAdaptor.h
  7412. (sha1Sum): Renamed as messageDigest.
  7413. (messageDigest): New function.
  7414. * src/Util.h
  7415. (indexRange): New function.
  7416. * src/MetalinkEntry.cc
  7417. (MetalinkEntry): Initialized chunkChecksum to 0.
  7418. * src/ShaVisitor.cc
  7419. (~ShaVisitor): Removed the call to ctx.digestFree().
  7420. * src/SegmentMan.cc
  7421. (ChunkChecksumValidator.h): New include.
  7422. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  7423. to DIGEST_ALGO_SHA1.
  7424. (~SegmentMan): Removed diskWriter.
  7425. (FindSegmentEntryByIndex): Removed.
  7426. (FindSegmentEntryByCuid): Removed.
  7427. (checkoutSegment): Rewritten.
  7428. (findSlowerSegmentEntry): Rewritten.
  7429. (getSegment): Rewritten.
  7430. (updateSegment): Rewritten.
  7431. (completeSegment): Rewritten.
  7432. (markAllPiecesDone): New function.
  7433. (checkIntegrity): New function.
  7434. (isChunkChecksumValidationReady): New function.
  7435. (tryChunkChecksumValidation): New function.
  7436. * src/Xml2MetalinkProcessor.cc
  7437. (getEntry): Get size and set it to entry.
  7438. Get chunk checksum and set it to entry.
  7439. (getPieceHash): New function.
  7440. * src/Util.cc
  7441. (sha1Sum): Removed ctx.digestFree()
  7442. (fileChecksum): Removed ctx.digestFree()
  7443. (indexRange): New function.
  7444. * src/Request.cc
  7445. (METHOD_GET): New variable.
  7446. (METHOD_HEAD): New variable.
  7447. (Request): Added method.
  7448. * src/UrlRequestInfo.cc
  7449. (FatalException.h): New include.
  7450. (message.h): New include.
  7451. (operator<<): Added operator<< for class HeadResult.
  7452. (getHeadResult): New function.
  7453. (execute): Get filename and size in separate download engine.
  7454. * src/ChunkChecksumValidator.cc: New class.
  7455. * src/DownloadCommand.cc:
  7456. (DownloadCommand): Added peerStat.
  7457. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  7458. the value from Option.
  7459. The buffer size is now 16KB.
  7460. Use peerStat member instead of getting it from SegmentMan.
  7461. Use startupIdleTime member instead of gettingit from Option.
  7462. Added chunk checksum validation.
  7463. * src/AbstractDiskWriter.cc
  7464. (AbstractDiskWriter): Removed ctx.
  7465. (~AbstractDiskWriter): Removed ctx.digestFree()
  7466. (writeDataInternal): Returns the return value of write.
  7467. (readDataInternal): Returns the return value of read.
  7468. (sha1Sum): Renamed as messageDigest
  7469. (messageDigest): New function.
  7470. * src/AbstractDiwkWriter.h
  7471. (messageDigest.h): Removed include.
  7472. (ctx): Removed.
  7473. (sha1Sum): Renamed as messageDigest
  7474. (messageDigest): New function.
  7475. * src/DefaultPieceStorage.h
  7476. (markAllPiecesDone): New function.
  7477. (checkIntegrity): New function.
  7478. * src/NullFileAllocationMonitor.h: New class.
  7479. * src/MetalinkChunkChecksum.h: New class.
  7480. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. To decrease CPU usage in bittorrent download, calculation results in
  7482. BitfieldMan were cached and realtime fetching PeerObject was removed
  7483. with WeakHandle introduced. Option values are set to the objects
  7484. by setter before download begins.
  7485. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  7486. * src/DefaultBtRequestFactory.h
  7487. (dispatcher): BtMessageDispatcherHandle ->
  7488. BtMessageDispatcherWeakHandle.
  7489. (messageFactory): New variable.
  7490. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  7491. BtMessageDispatcherWeakHandle.
  7492. (setBtMessageFactory): New function.
  7493. * src/DefaultBtMessageDispatcher.cc:
  7494. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  7495. from Option.
  7496. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  7497. feating the value from Option.
  7498. Use messageFactory member.
  7499. * src/PeerInteractionCommand.cc
  7500. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  7501. Add reverse dependencies to factory object.
  7502. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  7503. dispatcher.
  7504. Set messageFactory to receiver.
  7505. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  7506. btInteractive.
  7507. Set receiver to peerObject.
  7508. Set maxDownloadSpeedLimit to this.
  7509. (executeInternal): Use maxDownloadSpeedLimit member.
  7510. * src/BtChokeMessage.cc
  7511. (doReceivedAction): Use dispatcher, requestFactory member.
  7512. (onSendComplete): Use dispatcher member.
  7513. * src/PeerInteractionCommand.h
  7514. (maxDownloadSpeedLimit): New variable.
  7515. * src/DefaultBtMessageReceiver.h
  7516. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7517. (dispatcher):
  7518. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7519. (messageFactory): New variable.
  7520. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7521. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7522. (setDispatcher):
  7523. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7524. (setBtMessageFactory): New function.
  7525. * src/DefaultBtInteractive.cc
  7526. (initiateHandshake): Use messageFactory member.
  7527. (addBitfieldMessageToQueue): Use messageFactory member.
  7528. (addAllowedFastMessageToQueue): Use messageFactory member.
  7529. (decideChoking): Use messageFactory member.
  7530. (checkHave): Use messageFactory member.
  7531. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  7532. (receiveMessages): Use maxDownloadSpeedLimit member.
  7533. (decideInterest): Use messageFactory member.
  7534. * src/BtRequestMessage.cc
  7535. (doReceivedAction): Use messageFactory, dispatcher member.
  7536. (onQueued): Use dispatcher member.
  7537. * src/BtPieceMessage.cc
  7538. (doReceivedAction): Use dispatcher member.
  7539. (send): Use peerConnection member.
  7540. (onWrongPiece): Use requestFactory member.
  7541. (handleChokingEvent): Use messageFactory, dispatcher member.
  7542. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  7543. * src/BtMessageDispatcher.h
  7544. (BtMessageDispatcherWeakHandle): New type definition.
  7545. * src/SimpleBtMessage.cc
  7546. (send): Use peerConnection member.
  7547. * src/BtRejectMessage.cc
  7548. (doReceivedAction): Use dispatcher member.
  7549. * src/DefaultBtMessageDispatcher.h
  7550. (Option.h): Removed include.
  7551. (messageFactory): New variable.
  7552. (option): Removed.
  7553. (maxUploadSpeedLimit): New variable.
  7554. (requestTimeout): New variable.
  7555. (DefaultBtMessageDispatcher): Removed option.
  7556. Added maxUploadSpeedLimit, requestTimeout.
  7557. (setOption): Removed.
  7558. (getOption): Removed.
  7559. (setMaxUploadSpeedLimit): New function.
  7560. (setRequestTimeout): New function.
  7561. (setBtMessageFactory): New function.
  7562. * src/DefaultBtInteractive.h
  7563. (btMessageReceiver):
  7564. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7565. (dispatcher):
  7566. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7567. (btRequestFactory):
  7568. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7569. (peerConnection):
  7570. PeerConnectionHandle -> PeerConnectionWeakHandle
  7571. (messageFactory): New variable.
  7572. (option): Removed.
  7573. (keepAliveInterval): New variable.
  7574. (maxDownloadSpeedLimit): New variable.
  7575. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  7576. (setBtMessageReceiver):
  7577. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7578. (setDispatcher):
  7579. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7580. (setBtRequestFactory):
  7581. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7582. (setPeerConnection):
  7583. PeerConnectionHandle -> PeerConnectionWeakHandle
  7584. (setOption): Removed.
  7585. (setKeepAliveInterval): New function.
  7586. (setMaxDownloadSpeedLimit): New function.
  7587. (setBtMessageFactory): New function.
  7588. * src/BitfieldMan.h
  7589. (cachedNumMissingBlock): New variable.
  7590. (cachedNumFilteredBlock): New variable.
  7591. (cachedCompletedLength): New variable.
  7592. (cachedFilteredComletedLength): New variable.
  7593. (cachedFilteredTotalLength): New variable.
  7594. (countMissingBlockNow): New function.
  7595. (countFilteredBlockNow): New function.
  7596. (getFilteredTotalLengthNow): New function.
  7597. (getCompletedLengthNow): New function.
  7598. (getFilteredCompletedLengthNow): New function.
  7599. (updateCache): New function.
  7600. * src/AbstractBtMessage.h
  7601. (BtMessageDispatcher.h): New include.
  7602. (PeerConnection.h): New include.
  7603. (BtRequestFactory.h): New include
  7604. (BtMessageFactory.h): New include.
  7605. (dispatcher): New variable.
  7606. (messageFactory): New variable.
  7607. (peerConnection: New variable.
  7608. (setBtMessageDispatcher): New function.
  7609. (setPeerConnection): New function.
  7610. (setBtMessageFactory): New function.
  7611. (setBtRequestFactory): New function.
  7612. * src/DefaultBtMessageFactory.cc
  7613. (setCommonProperty): Set dispatcher, requestFactory, this,
  7614. peerConnection to msg.
  7615. * src/BtRegistry.h
  7616. (BT_MESSAGE_RECEIVER): New macro.
  7617. * src/PeerConnection.h
  7618. (PeerConnectionWeakHandle): New type definition.
  7619. * src/BtMessageFactory.h
  7620. (BtMessageFactoryWeakHandle): New type definition.
  7621. * src/BitfieldMan.cc
  7622. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  7623. cachedCompletedLength, cachedFilteredComletedLength,
  7624. cachedFilteredTotalLength.
  7625. Call updateCache().
  7626. (countMissingBlock): Return cachedNumMissingBlock.
  7627. (countMissingBlockNow): New function.
  7628. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  7629. (countFilteredBlockNow): New function.
  7630. (setBit): Call updateCache().
  7631. (unsetBit): Call updateCache().
  7632. (setBitfield): Call updateCache().
  7633. (clearAllBit): Call updateCache().
  7634. (setAllBit): Use setBitInternal instead of setBit.
  7635. Call updateCache().
  7636. (addFilter): Call updateCache().
  7637. (enableFilter): Call updateCache().
  7638. (disableFilter): Call updateCache().
  7639. (clearFilter): Call updateCache().
  7640. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  7641. (getFilteredTotalLengthNow): New function.
  7642. (getCompletedLength): Return cachedCompletedLength.
  7643. (getCompletedLengthNow): New function.
  7644. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  7645. (getFilteredCompletedLengthNow): New function.
  7646. (updateCache): New function.
  7647. * src/BtMessageReceiver.h
  7648. (BtMessageReceiverWeakHandle): New type definition.
  7649. * src/DefaultBtMessageReceiver.cc
  7650. (receiveHandshake): Use messageFactory member.
  7651. (sendHandshake): Use messageFactory member.
  7652. (receiveMessage): Use messageFactory member.
  7653. * src/DefaultBtMessageFactory.h
  7654. (dispatcher): New variable.
  7655. (requestFactory): New variable.
  7656. (peerConnection): New variablle.
  7657. (setBtMessageDispatcher): New function.
  7658. (setBtRequestFactory): New function.
  7659. (setPeerConnection): New function.
  7660. * src/SharedHandle.h
  7661. (RefCount): New class.
  7662. (WeakHandle): New class.
  7663. * src/PeerObject.h
  7664. (BtMessageReceiver.h): New include.
  7665. (PeerObject): Added btMessageReceiver.
  7666. (btMessageReceiver): New variable.
  7667. * src/Util.cc
  7668. (countBit): Simplified.
  7669. * src/BtCancelMessage.cc
  7670. (doReceivedAction): Use dispatcher member.
  7671. * src/BtRequestFactory.h
  7672. (BtRequestFactoryWeakHandle): New type definition.
  7673. * src/PeerStorage.h
  7674. (downloadSpeed): int -> uint32_t
  7675. (uploadSpeed): int -> uint32_t
  7676. (sessionDownloadLength): long long int -> uint64_t
  7677. (sessionUploadLength): long long int -> uint64_t
  7678. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. To add RecoverableException, FatalException:
  7680. * src/AbstractCommand.cc
  7681. (onAbort): Exception -> RecoverableException
  7682. * src/PeerAbstractCommand.h
  7683. (RecoverableException.h): New include.
  7684. (onAbort): Exception -> RecoverableException.
  7685. * src/PeerInteractionCommand.cc
  7686. (onAbort): Exception -> RecoverableException.
  7687. * src/PeerAbstractCommand.cc
  7688. (execute): Exception -> RecoverableException.
  7689. (onAbort): Exception -> RecoverableException.
  7690. * src/TorrentRequestInfo.cc
  7691. (execute): Exception -> RecoverableException.
  7692. * src/MetalinkRequestInfo.cc
  7693. (execute): Exception -> RecoverableException.
  7694. * src/MetaFileUtil.cc: RecoverableException.
  7695. * src/AbstractCommand.h
  7696. (onAbort): Exception -> RecoverableException.
  7697. * src/DlRetryEx.h: Exception -> RecoverableException.
  7698. * src/DlAbortEx.h: Exception -> RecoverableException.
  7699. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  7700. * src/Util.cc: Exception -> RecoverableException.
  7701. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  7702. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  7703. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  7704. To make ID static const int
  7705. * src/BtInterestedMessage.h
  7706. (ID_t): Removed.
  7707. (ID): New variable.
  7708. (getId): Made non-const.
  7709. * src/BtPieceMessage.h
  7710. (ID_t): Removed.
  7711. (ID): New variable.
  7712. (getId): Made non-const.
  7713. * src/BtChokeMessage.h
  7714. (ID_t): Removed.
  7715. (ID): New variable.
  7716. (getId): Made non-const.
  7717. * src/BtHaveAllMessage.h
  7718. (ID_t): Removed.
  7719. (ID): New variable.
  7720. (getId): Made non-const.
  7721. * src/BtKeepAliveMessage.h
  7722. (ID_t): Removed.
  7723. (ID): New variable.
  7724. (getId): Made non-const.
  7725. * src/BtHandshakeMessage.h
  7726. (ID): New variable.
  7727. (getId): Made non-const.
  7728. * src/BtSuggestPieceMessage.h
  7729. (ID_t): Removed.
  7730. (ID): New variable.
  7731. (getId): Made non-const.
  7732. * src/BtPortMessage.h
  7733. (ID_t): Removed.
  7734. (ID): New variable.
  7735. (getId): Made non-const.
  7736. * src/AbstractBtMessage.h
  7737. (id): Removed.
  7738. (AbstractBtMessage): Removed id.
  7739. (getId): Removed.
  7740. * src/BtHaveMessage.h
  7741. (ID_t): Removed.
  7742. (ID): New variable.
  7743. (getId): Made non-const.
  7744. * src/BtAllowedFastMessage.h
  7745. (ID_t): Removed.
  7746. (ID): New variable.
  7747. (getId): Made non-const.
  7748. * src/BtCancelMessage.h
  7749. (ID_t): Removed.
  7750. (ID): New variable.
  7751. (getId): Made non-const.
  7752. * src/BtNotInterestedMessage.h
  7753. (ID_t): Removed.
  7754. (ID): New variable.
  7755. (getId): Made non-const.
  7756. * src/BtChokeMessage.h
  7757. (ID_t): Removed.
  7758. (ID): New variable.
  7759. (getId): Made non-const.
  7760. * src/BtRejectMessage.h
  7761. (ID_t): Removed.
  7762. (ID): New variable.
  7763. (getId): Made non-const.
  7764. * src/BtBitfieldMessage.h
  7765. (ID_t): Removed.
  7766. (ID): New variable.
  7767. (getId): Made non-const.
  7768. * src/BtUnchokeMessage.h
  7769. (ID_t): Removed.
  7770. (ID): New variable.
  7771. (getId): Made non-const.
  7772. * src/BtRequestMessage.h
  7773. (ID_t): Removed.
  7774. (ID): New variable.
  7775. (getId): Made non-const.
  7776. * src/BtHaveMessage.h
  7777. (ID_t): Removed.
  7778. (ID): New variable.
  7779. (getId): Made non-const.
  7780. To add --force-truncate command-line option and a check whether
  7781. the file already exists:
  7782. * src/DirectDiskAdaptor.h
  7783. (getFilePath): Made virtual public.
  7784. * src/MultiDiskAdaptor.h
  7785. (File.h): New include.
  7786. (DiskWriterEntry::fileEntry): Made private.
  7787. (DiskWriterEntry::fileExists): New function.
  7788. (DiskWriterEntry::getFileEntry): New function.
  7789. (fileExists): New function.
  7790. (getFilePath): New function.
  7791. * src/TorrentRequestInfo.cc
  7792. (FatalException.h): New include.
  7793. (message.h): New include.
  7794. (RecoverableException.h): New include.
  7795. (execute): Added a check whether file is already exists or not.
  7796. * src/DiskAdaptor.h
  7797. (fileExists): New function.
  7798. (getFilePath): New function.
  7799. * src/main.cc
  7800. (showUsage): Added an explanation of --force-truncate command-line
  7801. option.
  7802. (main): Added --force-truncate command-line option.
  7803. * src/Exception.h
  7804. (setMsg): buf[256] -> buf[1024]
  7805. * src/CopyDiskWriter.h
  7806. (getFilePath): Made public virtual.
  7807. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  7808. (fileExists): New function.
  7809. * src/DownloadEngineFactory.cc
  7810. (newTorrentConsoleEngine): Don't open file here.
  7811. * src/message.h
  7812. (EX_FILE_ALREADY_EXISTS): New definition.
  7813. * src/prefs.h
  7814. (PREF_FOECE_TRUNCATE): New definition.
  7815. * src/HttpResponseCommand.cc
  7816. (handleDefaultEncoding): Added a check whether the file already exists.
  7817. * src/SegmentMan.h
  7818. (fileExists): New function.
  7819. (shouldCancelDownloadForSafety): New function.
  7820. * src/FtpNegotiateCommand.cc
  7821. (recvSize): Added a check whether the file already exists.
  7822. * src/AbstractSingleDiskAdaptor.cc
  7823. (File.h): New include.
  7824. (fileExists): New function.
  7825. * src/AbstractSingleDiskAdaptor.h
  7826. (getFilePath): Removed.
  7827. (fileExists): New function.
  7828. * src/SegmentMan.cc
  7829. (fileExists): New function.
  7830. (shouldCancelDownloadForSafety): New function.
  7831. To fix regression bug in torrent downloading:
  7832. * src/DefaultBtRequestFactory.cc
  7833. (doChokedAction): New function.
  7834. * src/DefaultBtRequestFactory.h
  7835. (doChokedAction): New function.
  7836. * src/DefaultBtMessageDispatcher.cc
  7837. (doChokedAction): Do not delete request if its target is in allowed
  7838. fast set.
  7839. * src/DefaultBtInteractive.cc
  7840. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  7841. (sendKeepAlive): Send keep alive message even if the outgoing message
  7842. queue is not empty.
  7843. (decideInterest): Simplified the code.
  7844. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  7845. it is already called when BtChokeMessage is received from a peer.
  7846. * src/BtRequestFactory.h
  7847. (doChokedAction): New function.
  7848. To clean up code:
  7849. * src/PeerInteractionCommand.h
  7850. (executeInternal): Added virtual keyword explicitly.
  7851. (prepareForRetry): Added virtual keyword explicitly.
  7852. (prepareForNextPeer): Added virtual keyword explicitly.
  7853. (onAbort): Added virtual keyword explicitly.
  7854. * src/RequestSlot.cc
  7855. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  7856. * src/BtPieceMessage.cc
  7857. (doReceivedAction): Added a debug log of piece's bitfield.
  7858. * src/Piece.h
  7859. (getBitfieldLength): New function.
  7860. * src/ByteArrayDiskWriter.cc
  7861. (clear): Added buf = 0 to avoid double free corruption.
  7862. * src/FileAllocator.cc
  7863. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  7864. Added cp.reset().
  7865. * src/BitfieldMan.h
  7866. (operator=): Rewritten.
  7867. * src/BitfieldMan.cc
  7868. (BitfieldMan): Initialized bitfield, useBitfield.
  7869. * src/PeerConnection.cc
  7870. (receiveMessage): Added a call to socket->readable() after getting
  7871. message length to avoid possible EOF.
  7872. * src/Util.cc
  7873. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  7874. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. To add an ability to pre-allocate file space:
  7876. * src/DirectDiskAdaptor.h: Rewritten.
  7877. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  7878. * src/MultiDiskAdaptor.h: Rewritten.
  7879. * src/DefaultPieceStorage.cc
  7880. (MultiDiskWriter.h): Removed include.
  7881. (PreAllocationDiskWriter.h): Removed include.
  7882. (FileAllocationMonitor.h): New include.
  7883. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  7884. (initStorage): Rewritten.
  7885. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7886. * src/FileAllocator.h: New class.
  7887. * src/FileAllocator.cc: New class.
  7888. * src/FileAllocationMonitor.h: New class.
  7889. * src/FileAllocationMonitor.cc: New class.
  7890. * src/ConsoleFileAllocationMonitor.h: New class.
  7891. * src/ConsoleFileAllocationMonitor.cc: New class.
  7892. * src/AbstractSingleDiskAdaptor.h: New class.
  7893. * src/AbstractSingleDiskAdaptor.cc: New class.
  7894. * src/DiskAdaptor.h
  7895. (Directory.h): Removed include.
  7896. (DiskWriter.h): Removed include.
  7897. (FileEntry.h): Removed include.
  7898. (diskWriter): Removed.
  7899. (DiskAdaptor): Removed diskWriter.
  7900. (openFile): Made pure virtual.
  7901. (closeFile): Made pure virtual.
  7902. (openExistingFile): Made pure virtual.
  7903. (initAndOpenFile): Made pure virtual.
  7904. (writeData): Made pure virtual.
  7905. (readData): Made pure virtual.
  7906. (sha1Sum): Made pure virtual.
  7907. (getStoreDir): Returns const reference of storeDir.
  7908. (DiskAdaptorHandle): New type definition.
  7909. * src/main.cc
  7910. (ConsoleFileAllocationMonitor.h): New include.
  7911. (showUsage): Added default value description of -s option.
  7912. Added the description of --file-allocation option.
  7913. (main): Set default value of --file-allocation option to 'none'.
  7914. Added --file-allocation command-line option.
  7915. Setup FileAllocationMonitorFactory.
  7916. * src/FtpInitiateConnectionCommand.cc
  7917. (executeInternal): Removed diskWriter related processing, which was
  7918. moved to FtpNegotiationCommand.cc.
  7919. * src/DirectDiskAdaptor.cc
  7920. (getFilePath): Made non-const.
  7921. * src/CopyDiskAdaptor.h
  7922. (DiskAdaptor.h): Removed include.
  7923. (DiskWriter.h): Removed include.
  7924. (AbstractSingleDiskAdaptor.h): New include.
  7925. (getFilePath): Made non-const. Added virtual keyword.
  7926. (CopyDiskAdaptor): Removed diskWriter.
  7927. (getTempFile): Returns const reference.
  7928. (CopyDiskAdaptorHandle): New type definition.
  7929. * src/ByteArrayDiskWriter.cc
  7930. (clear): Simplified.
  7931. (initAndOpenFile): Rewritten.
  7932. (openFile): Call initAndOpenFile()
  7933. * src/MultiDiskAdaptor.cc: Rewritten.
  7934. * src/DownloadEngineFactory.cc
  7935. (FileAllocator.h): New include.
  7936. (FileAllocationMonitor.h): New include.
  7937. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7938. create DefaultDiskWriter with file allocator.
  7939. * src/DiskWriter.h
  7940. (initAndOpenFile): Added totalLength argument.
  7941. (openFile): Added totalLength argument.
  7942. * src/prefs.h
  7943. (PREF_FILE_ALLOCATION): New definition.
  7944. (V_PREALLOC): New definition.
  7945. (V_NONE): New definition.
  7946. * src/HttpResponseCommand.cc
  7947. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7948. size.
  7949. * src/FtpNegotiateCommand.cc
  7950. (Util.h): New include.
  7951. (recvSize): Open file here.
  7952. * src/Util.h
  7953. (ullitos): New function.
  7954. * src/CopyDiskWriter.h
  7955. (getFilePath): Made non-const.
  7956. * src/DefaultDiskWriter.h
  7957. (Option.h): New include.
  7958. (totalLength): Removed.
  7959. (DefaultDiskWriter): Removed totalLength.
  7960. (initAndOpenFile): Added totalLength argument.
  7961. (DefaultDiskWriterHandle): New type definition.
  7962. (createNewDiskWriter): New function.
  7963. * src/Util.cc
  7964. (ullitos): New function.
  7965. * src/DefaultDiskWriter.cc
  7966. (message.h): New include.
  7967. (FileAllocator.h): New include.
  7968. (prefs.h): New include.
  7969. (Util.h): New include.
  7970. (DefaultDiskWriter): Removed totalLength.
  7971. (initAndOpenFile): Added file allocation.
  7972. (createNewDiskWriter): New function. Just for temporary solution.
  7973. It will be rewritten later.
  7974. * src/DiskAdaptor.cc
  7975. (DiskAdaptor): Removed diskWriter.
  7976. * src/AbstractDiskWriter.cc
  7977. (LogFactory.h): New include.
  7978. (AbstractDiskWriter): Added fileAllocator, logger.
  7979. (openFile): Added totalLength argument.
  7980. * src/AbstractDiskWriter.h
  7981. (FileAllocator.h): New include.
  7982. (Logger.h): New include.
  7983. (fileAllocator): New variable.
  7984. (logger): New variable.
  7985. (openFile): Added totalLength argument. Added virtual keyword
  7986. explicitly.
  7987. (openExistingFile): Added totalLength argument. Added virtual keyword
  7988. explicitly.
  7989. (closeFile): Added virtual keyword explicitly.
  7990. (sha1Sum): Added virtual keyword explicitly.
  7991. (writeData): Added virtual keyword explicitly.
  7992. (readData): Added virtual keyword explicitly.
  7993. (setFileAllocator): New function.
  7994. * src/DefaultPieceStorage.h
  7995. (FileAllocator.h): New include.
  7996. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7997. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7998. * src/FileProgressMonitor.h: New class.
  7999. To compile aria2 on PC-BSD:
  8000. * src/DefaultBtContext.cc
  8001. (libgen.h): New include.
  8002. To fix memory leak:
  8003. * src/Exception.h
  8004. (~Exception): Delete cause. Fixed memory leak.
  8005. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Rewritten a portion of bittorrent implementation:
  8007. * src/BtMessageValidator.h: New class.
  8008. * src/BtBitfieldMessageValidator.h: New class.
  8009. * src/BtHandshakeMessageValidator.h: New class.
  8010. * src/BtRequestMessageValidator.h: New class.
  8011. * src/BtSuggestPieceMessageValidator.h: New class.
  8012. * src/BtAllowedFastMessageValidator.h: New class.
  8013. * src/BtRejectMessageValidator.h: New class.
  8014. * src/BtCancelMessageValidator.h: New class.
  8015. * src/BtPieceMessageValidator.h: New class.
  8016. * src/BtHaveMessageValidator.h: New class.
  8017. * src/BtEventListener.h: New class.
  8018. * src/AbstractBtEventListener.h: New class.
  8019. * src/BtEvent.h: New class.
  8020. * src/BtChokingEvent.h: New class.
  8021. * src/BtChokedEvent.h: New class.
  8022. * src/BtCancelSendingPieceEvent.h: New class.
  8023. * src/BtAbortOutstandingRequestEvent.h: New class.
  8024. * src/Randomizer.h: New class.
  8025. * src/SimpleRandomizer.h: New class.
  8026. * src/BtMessage.h: New class.
  8027. * src/AbstractBtMessage.h: New class.
  8028. * src/SimpleBtMessage.h: New class.
  8029. * src/BtHaveMessage.h: New class.
  8030. * src/BtInterestedMessage.h: New class.
  8031. * src/BtAllowedFastMessage.h: New class.
  8032. * src/BtUnchokeMessage.h: New class.
  8033. * src/BtCancelMessage.h: New class.
  8034. * src/BtNotInterestedMessage.h: New class.
  8035. * src/BtChokeMessage.h: New class.
  8036. * src/BtHaveNoneMessage.h: New class.
  8037. * src/BtHandshakeMessage.h: New class.
  8038. * src/BtSuggestPieceMessage.h: New class.
  8039. * src/BtHaveMessage.h: New class.
  8040. * src/BtPieceMessage.h: New class.
  8041. * src/BtHaveAllMessage.h: New class.
  8042. * src/BtKeepAliveMessage.h: New class.
  8043. * src/BtPortMessage.h: New class.
  8044. * src/BtRejectMessage.h: New class.
  8045. * src/BtBitfieldMessage.h: New class.
  8046. * src/BtRequestMessage.h: New class.
  8047. * src/DefaultBtRequestFactory.h: New class.
  8048. * src/DefaultBtMessageReceiver.h: New class.
  8049. * src/BtInteractive.h: New class.
  8050. * src/BtMessageDispatcher.h: New class.
  8051. * src/DefaultBtMessageDispatcher.h: New class.
  8052. * src/DefaultBtInteractive.h: New class.
  8053. * src/BitfieldManFactory.h: New class.
  8054. * src/HandleRegistry.h: New class.
  8055. * src/BtMessageFactory.h: New class.
  8056. * src/BtMessageReceiver.h: New class.
  8057. * src/DefaultBtMessageFactory.h: New class.
  8058. * src/PeerObject.h: New class.
  8059. * src/BtRequestFactory.h: New class.
  8060. * src/SuggestPieceMessage.h: Removed.
  8061. * src/PortMessage.h: Removed.
  8062. * src/SuggestPieceMessage.h: Removed.
  8063. * src/KeepAliveMessage.h: Removed.
  8064. * src/HandshakeMessage.h: Removed.
  8065. * src/PeerInteraction.h: Removed.
  8066. * src/UnchokeMessage.h: Removed.
  8067. * src/PieceMessage.h: Removed.
  8068. * src/RequestMessage.h: Removed.
  8069. * src/InterestedMessage.h: Removed.
  8070. * src/HaveMessage.h: Removed.
  8071. * src/CancelMessage.h: Removed.
  8072. * src/RejectMessage.h: Removed.
  8073. * src/AllowedFastMessage.h: Removed.
  8074. * src/HaveNoneMessage.h: Removed.
  8075. * src/SimplePeerMessage.h: Removed.
  8076. * src/HaveAllMessage.h: Removed.
  8077. * src/BitfieldMessage.h: Removed.
  8078. * src/PeerMessageFactory.h: Removed.
  8079. * src/NotInterestedMessage.h: Removed.
  8080. * src/ChokeMessage.h: Removed.
  8081. * src/PeerMessage.h: Removed.
  8082. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. To know root cause of exception:
  8084. * src/Exception.h
  8085. (cause): New variable.
  8086. (Exception): Added a parameter.
  8087. (getMsg): Return const reference to msg.
  8088. (getCause): New function.
  8089. * src/DlRetryEx.h
  8090. (DlRetryEx): Added a parameter 'cause'.
  8091. Added an overloaded constructor.
  8092. (DlAbortEx): Added a parameter 'cause'.
  8093. Added an overloaded constructor.
  8094. * src/SimpleLogger.cc
  8095. (writeLog): Log nested exception messages recursively.
  8096. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. * src/DefaultBtProgressInfoFile.cc
  8098. (load): Fixed memory leak when the infohash doesn't match.
  8099. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. * src/DefaultPeerStorage.cc
  8101. (calculateStat): Simplified the code by combining 2 loops into 1.
  8102. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8104. for BitTorrent download:
  8105. * src/PeerAbstractCommand.cc
  8106. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8107. * src/main.cc:
  8108. (timeoutSpecified): Removed.
  8109. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8110. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8111. * src/TorrentRequestInfo.cc
  8112. (timeoutSpecified): Removed.
  8113. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8114. timeout value.
  8115. * src/prefs.h
  8116. (PREF_BT_TIMEOUT): New definition.
  8117. Delete unused variables:
  8118. * src/TorrentRequestInfo.cc
  8119. (requestInfo): Removed.
  8120. Move setSignalHander to Util::setGlobalSignalHandler:
  8121. * src/TorrentRequestInfo.cc:
  8122. setSignalHander -> Util::setGlobalSignalHandler
  8123. * src/main.cc
  8124. (setSignalHander): Removed.
  8125. (main): setSignalHander -> Util::setGlobalSignalHandler
  8126. * src/Util.h
  8127. (setGlobalSignalHandler): New function.
  8128. * src/Util.cc
  8129. (setGlobalSignalHandler): New function.
  8130. * src/UrlRequestInfo.cc:
  8131. setSignalHander -> Util::setGlobalSignalHandler
  8132. Reset peer status in order to exit gracefully:
  8133. * src/PeerAbstractCommand.cc
  8134. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8135. To fix the bug that causes the number of bytes uploaded is not saved
  8136. to .aria2 file:
  8137. * src/DefaultPeerStorage.h
  8138. (removedPeerSessionDownloadLength): New variable.
  8139. (removedPeerSessionUploadLength): New variable.
  8140. * src/DefaultPeerStorage.cc
  8141. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8142. removedPeerSessionUploadLength(0).
  8143. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8144. through all peers, and then add removedPeerSessionDownloadLength(
  8145. removedPeerSessionUploadLength) to it.
  8146. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8147. (to) the peer to removedPeerSessionDownloadLength
  8148. (removedPeerSessionUploadLength).
  8149. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. To add Metalink location option:
  8151. * src/MetalinkRequestInfo.cc
  8152. (execute): Call MetalinkEntry::setLocationPreference()
  8153. * src/main.cc
  8154. (showUsage): Added the help message for --metalink-location option.
  8155. (main): Added --metalink-location option.
  8156. * src/prefs.h
  8157. (PREF_METALINK_LOCATION): New definition.
  8158. * src/MetalinkEntry.cc
  8159. (AddLocationPreference): New function object.
  8160. (setLocationPreference): New function.
  8161. * src/Xml2MetalinkProcessor.cc
  8162. (getResource): Set location attribute to MetalinkResource
  8163. To show URLs to download
  8164. * src/UrlRequestInfo.h
  8165. (printUrls): New function.
  8166. To add multiple <file> Metalink support:
  8167. * src/MetalinkEntry.h
  8168. (MetalinkResources): Removed.
  8169. (setLocationPreference): New function.
  8170. (MetalinkEntryHandle): New type definition.
  8171. (MetalinkEntries): New type definition.
  8172. * src/Xml2MetalinkProcessor.h
  8173. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8174. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8175. (parseFile): Metalinker* -> MetalinkerHandle
  8176. * src/UrlRequestInfo.h
  8177. (execute): RequestInfo* -> RequestInfos
  8178. * src/MetalinkRequestInfo.cc
  8179. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8180. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8181. (execute): RequestInfo* -> RequestInfos
  8182. Added multiple <file> support. Print filename when it is queued.
  8183. * src/MetalinkRequestInfo.h
  8184. (execute): RequestInfo* -> RequestInfos
  8185. (getDownloadEngine): Removed.
  8186. * src/RequestInfo.h
  8187. (RequestInfoHandle): New type definition.
  8188. (RequestInfos): New type definition.
  8189. (execute): RequestInfo* -> RequestInfos
  8190. (getDownloadEngine): Removed.
  8191. * src/MetalinkResource.h
  8192. (MetalinkResourceHandle): New type definition.
  8193. (MetalinkResources): New type definition.
  8194. * src/MetalinkEntry.cc
  8195. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8196. because the element is now of type MetalinkResourceHandle.
  8197. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8198. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8199. (dropUnsupportedResource): Removed the deletion of the elements of
  8200. resources because the element is now of type MetalinkResourceHandle.
  8201. * src/Xml2MetalinkProcessor.cc
  8202. (parseFile): Metalinker* -> MetalinkerHandle
  8203. MetalinkEntry* -> MetalinkEntryHandle
  8204. Removed try-catch block.
  8205. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8206. MetalinkResource* -> MetalinkResourceHandle
  8207. Removed try-catch block.
  8208. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8209. Free result by using xmlXPathFreeObject()
  8210. * src/Metalinker.cc
  8211. (~Metalinker): Removed the deletion of entries.
  8212. MetalinkEntry* -> MetalinkEntryHandle
  8213. (queryEntry): Add multiple <file> Metalink support.
  8214. * src/Metalinker.h
  8215. (MetalinkEntries): Removed.
  8216. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8217. * src/MetalinkProcessor.h
  8218. (parseFile): Metalinker* -> MetalinkerHandle
  8219. Bug fixes:
  8220. * src/PeerChokeCommand.cc
  8221. (execute): cat01->cat02
  8222. * src/DefaultPieceStorage.cc
  8223. (DefaultPieceStorage): Added diskAdaptor(0)
  8224. * src/TrackerWatcherComand.cc:
  8225. (execute): Use btAnnounce->noMoreAnnounce()
  8226. to determin whether the function returns true or not.
  8227. * src/TrackerUpdateCommand.cc:
  8228. (execute): Use btAnnounce->noMoreAnnounce()
  8229. to determin whether the function returns true or not.
  8230. * src/FtpConnection.cc
  8231. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8232. This is the fix of the busy loop bug.
  8233. * src/DownloadCommand.cc
  8234. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8235. cached PeerStat.
  8236. The value of "name" entry in torrent file is now set by
  8237. *DiskAdaptor::setTopDir(...) methods.
  8238. * src/MultiDiskAdaptor.h
  8239. (topDir): New variable.
  8240. (setTopDir): New function.
  8241. (getTopDir): New function.
  8242. * src/MultiDiskAdaptor.cc
  8243. (getFilePath): Concat storDir, "/" and topDir.
  8244. (mkdir): Use getFilePath() to get the directory path for output.
  8245. * src/DefaultPieceStorage.cc
  8246. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8247. CopyDiskAdaptor.
  8248. * src/CopyDiskAdaptor.h
  8249. (topDir): New variable.
  8250. (setTopDir): New function.
  8251. (getTopDir): New function.
  8252. * src/CopyDiskAdaptor.cc
  8253. (fixFilename): Updated.
  8254. Misc
  8255. * src/UrlRequestInfo.h
  8256. (e): Removed.
  8257. (UrlRequestInfo): Removed e.
  8258. (getDownloadEngine): Removed.
  8259. * src/UrlRequestInfo.cc
  8260. (handler): Rewritten.
  8261. (printUrls): New function.
  8262. (execute): Call printUrls().
  8263. * src/HandshakeMessage.cc
  8264. (check): peerinteraction->getBtContext() -> btContext
  8265. * src/PeerInteraction.h
  8266. (getBtContext): Removed.
  8267. * src/TorrentRequestInfo.h
  8268. (execute): RequestInfo* -> RequestInfos
  8269. (getDownloadEngine): Removed.
  8270. * src/TorrentRequestInfo.cc
  8271. (haltRequested): Removed.
  8272. (btHaltRequested): New variable.
  8273. (torrentHandler): haltRequested -> btHaltRequested
  8274. (execute): RequestInfo* -> RequestInfos
  8275. * src/TorrentConsoleDownloadEngine.cc
  8276. (afterEachIteration): haltRequested -> btHaltRequested.
  8277. * src/ConsoleDownloadEngine.h
  8278. (initStatistics): Added virtual.
  8279. (calculateStatistics): Added virtual.
  8280. (onEndOfRun): Added virtual.
  8281. (afterEachIteration): Added virtual.
  8282. * src/ConsoleDownloadEngine.cc
  8283. (haltRequested): New variable.
  8284. (afterEachIteration): New function.
  8285. * src/main.cc
  8286. (requestInfo): Removed.
  8287. * src/SegmentMan.cc
  8288. (findSlowerSegmentEntry): Refactored.
  8289. * Release 0.9.0
  8290. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8292. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8293. * src/TorrentMan.h: Removed.
  8294. * src/TorrentMan.cc: Removed.
  8295. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8296. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8297. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8298. * src/PeerAbstractCommand.cc: Use btRuntime.
  8299. * src/BtContextAwareCommand.h: New class.
  8300. * src/FileEntry.h: Added accessor methods for following variables.
  8301. (path): Made private.
  8302. (length): Made private.
  8303. (offset): Made private.
  8304. (extracted): Made private.
  8305. (requested): Made private.
  8306. (FileEntries): New definition.
  8307. (FileEntryHandle): New definition.
  8308. * src/FileEntry.cc: New file.
  8309. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8310. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8311. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8312. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8313. * src/PieceStorage.h: New file.
  8314. * src/PeerInteractionCommand.h: Use btContext.
  8315. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  8316. btRuntime.
  8317. * src/DefaultBtProgressInfoFile.h: New file.
  8318. * src/DefaultBtProgressInfoFile.cc: New file.
  8319. * src/File.cc
  8320. (Util.h): New include.
  8321. (mkdirs): New function.
  8322. * src/MultiDiskAdaptor.h
  8323. (mkdir): New function.
  8324. * src/PeerListProcessor.h
  8325. (Peers): Removed.
  8326. * src/PeerInteraction.h
  8327. (torrentMan): Removed.
  8328. (btContext): New variable.
  8329. (peerStorage): New variable.
  8330. (pieceStorage): New variable.
  8331. (btAnnounce): New variable.
  8332. (getTorrentMan): Removed.
  8333. (getBtContext): New function.
  8334. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  8335. btAnnounce.
  8336. * src/HandshakeMessage.h
  8337. (TorrentMan.h): Removed.
  8338. * src/HandshakeMessage.cc: Use btContext.
  8339. * src/DefaultBtAnnounce.cc: New file.
  8340. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  8341. * src/DefaultPieceStorage.cc: New file.
  8342. * src/DefaultBtContext.h: New file.
  8343. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  8344. Use the accessor methods of FileEntry.
  8345. * src/CookieBox.cc: Updated to use Util::slice().
  8346. * src/PieceMessage.cc: Use btContext, pieceStorage.
  8347. * src/common.h (SharedHandle.h): New include.
  8348. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  8349. pieceStorage.
  8350. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  8351. * src/DiskAdaptor.h
  8352. (topDir): Removed.
  8353. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  8354. (setTopDir): Removed.
  8355. (getTopDir): Removed.
  8356. * src/BtContext.h: New file.
  8357. * src/DefaultPeerStorage.h: New file.
  8358. * src/PieceMessage.h (TorrentMan.h): Removed.
  8359. * src/RequestMessage.h (TorrentMan.h): Removed.
  8360. * src/TorrentDownloadEngine.h
  8361. (uploadLength): New variable.
  8362. (btContext): New variable.
  8363. (btRuntime): New variable.
  8364. (pieceStorage): New variable.
  8365. (peerStorage): New variable.
  8366. (btAnnounce): New variable.
  8367. (btProgressInfoFile): New variable.
  8368. (torrentMan): Removed.
  8369. (setBtContext): New function.
  8370. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  8371. peerStorage, btAnnounce, btProgressInfoFile.
  8372. * src/Piece.h
  8373. (toString): New function.
  8374. (Pieces): New type definition.
  8375. * src/Peer.h
  8376. (active): New variable.
  8377. (Peer): Added active.
  8378. (activate): Set active to true.
  8379. (deactivate): Set active to false.
  8380. (isActive): New function.
  8381. (Peers): New type definition.
  8382. * src/DirectDiskAdaptor.cc
  8383. (getFilePath): Use the accessor methods of FileEntry.
  8384. * src/TorrentConsoleDownloadEngine.h
  8385. (afterEachIteration): New function.
  8386. * src/TorrentConsoleDownloadEngine.cc
  8387. (haltRequested): New variable.
  8388. (sendStatistics): Use pieceStorage, btRuntime.
  8389. (afterEachIteration): New function.
  8390. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  8391. * src/Directry.h
  8392. (Directory): New function.
  8393. (DirectoryHandle): New type definition.
  8394. * src/BtProgressInfoFile.h: New file.
  8395. * src/RequestMessage.cc: Use pieceStorage.
  8396. * src/BtRuntime.h: New file.
  8397. * src/DefaultBtContext.cc: New file.
  8398. * src/BitfieldMan.h
  8399. (getCompletedLength): New function(private).
  8400. (getCompletedLength): New function.
  8401. (getFilteredCompletedLength): New function.
  8402. * src/BitfieldMan.h
  8403. (getCompletedLength): New function(private).
  8404. (getCompletedLength): New function.
  8405. (getFilteredCompletedLength): New function.
  8406. * src/MultiDiskAdaptor.cc
  8407. (mkdir): New function.
  8408. (openFile): Call mkdir().
  8409. (initAndOpenFile): Call mkdir().
  8410. * src/CancelMessage.h
  8411. (TorrentMan.h): Removed.
  8412. * src/RejectMessage.h
  8413. (TorrentMan.h): Removed.
  8414. * src/DownloadEngineFactory.cc
  8415. (DefaultPieceStorage.h): New include.
  8416. (DefaultPeerStorage.h): New include.
  8417. (DefaultBtAnnounce.h): New include.
  8418. (DefaultBtProgressInfoFile.h): New include.
  8419. (newTorrentConsoleEngine): Rewritten.
  8420. * src/ShareRatioSeedCriteria.h
  8421. (torrentMan): Removed.
  8422. (btContext): New variable.
  8423. (peerStorage): New variable.
  8424. (btRuntime): New variable.
  8425. (evaluate): Use btContext, btRuntime, peerStorage.
  8426. * src/AnnounceTier.h: New file.
  8427. * src/BtAnnounce.h: New file.
  8428. * src/BtRegistry.h: New file.
  8429. * src/PeerInitiateConnectionCommand.h: Added btContext.
  8430. * src/PeerConnection.h (TorrentMan.h): Removed.
  8431. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  8432. * src/Util.h
  8433. (slice): Added an argument.
  8434. * src/Util.cc
  8435. (slice): Added an argument to control whether trim is made or not.
  8436. * src/PeerStorage.h: New file.
  8437. * src/BtRegistry.cc: New file.
  8438. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  8439. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  8440. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  8441. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  8442. * src/TorrentRequestInfo.h
  8443. (e): Removed.
  8444. (showFileEntry): Added an argument.
  8445. (getDownloadEngine): Return 0.
  8446. * src/DefaultBtAnnounce.h: New file.
  8447. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  8448. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  8449. * src/PeerMessageFactory.h
  8450. (btContext): New variable.
  8451. (pieceStorage): New variable.
  8452. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  8453. btAnnounce.
  8454. * src/DiskAdaptor.cc
  8455. (DiskAdaptor): Removed topDir.
  8456. (~DiskAdaptor): Removed topDir.
  8457. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  8458. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  8459. * src/File.h (mkdirs): New function.
  8460. * src/DefaultPeerStorage): New file.
  8461. * src/DownloadEngineFactory.h
  8462. (newTorrentConsoleEngine): Use btContext.
  8463. * src/BtContextAwareCommand.cc: New file.
  8464. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  8465. * src/PeerMessage.h
  8466. (btContext): New variable.
  8467. (peerStorage): New variable.
  8468. (pieceStorage): New variable.
  8469. (setBtContext): New function.
  8470. * src/Directry.cc
  8471. (Directory): New function.
  8472. (createDir): Do nothing if name.size() == 0.
  8473. * src/AnnounceList.h
  8474. (AnnounceTier): Removed.
  8475. (AnnounceTiers): Removed.
  8476. * src/DefaultPieceStorage.h: New file.
  8477. * src/Piece.cc (toString): New function.
  8478. To fix typo:
  8479. * src/main.cc (showVersion): Fixed typo.
  8480. To fix compile warning:
  8481. * src/DelegatingPeerListProcessor.cc
  8482. (canHandle): Added "return false".
  8483. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  8485. make the process of announce request testable.
  8486. * src/TrackerWatcherCommand.h
  8487. (TimeA2.h): Removed.
  8488. (interval): Removed.
  8489. (checkPoint): Removed.
  8490. (createRequestCommand): Added an argument 'url'.
  8491. (TrackerWatherCommand): Removed interval.
  8492. (createCommand): New function.
  8493. * src/DownloadEngineFactory.cc
  8494. (newTorrentConsoleEngine): Updated according to the changes in
  8495. TrackerWatherCommand.
  8496. * src/TorrentMan.cc
  8497. (DelegatingPeerListProcessor.h): New includes.
  8498. (TorrentMan): Added the initialization of announceInterval.
  8499. (isStoppedAnnounceReady): New function.
  8500. (isCompletedAnnounceReady): New function.
  8501. (isDefaultAnnounceReady): New function.
  8502. (isAnnounceReady): New function.
  8503. (getAnnounceUrl): New function.
  8504. (announceStart): New function.
  8505. (announceFailure): New function.
  8506. (announceSuccess): New function.
  8507. (isAllAnnounceFailed): New function.
  8508. (resetAnnounce): New function.
  8509. (processAnnounceResponse): New function.
  8510. (needMorePeerConnection): New function.
  8511. (noMoreAnnounce): New function.
  8512. * src/TrackerUpdateCommand.h
  8513. (getTrackerResponse): int->size_t
  8514. * src/TorrentMan.h
  8515. (isStoppedAnnounceReady): New function.
  8516. (isCompletedAnnounceReady): New function.
  8517. (isDefaultAnnounceReady): New function.
  8518. (announceInterval): New variable.
  8519. (isAnnounceReady): New function.
  8520. (getAnnounceUrl): New function.
  8521. (announceStart): New function.
  8522. (announceFailure): New function.
  8523. (announceSuccess): New function.
  8524. (isAllAnnounceFailed): New function.
  8525. (resetAnnounce): New function.
  8526. (processAnnounceResponse): New function.
  8527. (needMorePeerConnection): New function.
  8528. (noMoreAnnounce): New function.
  8529. * src/TrackerWatcherCommand.cc
  8530. (TrackerWatherCommand): Removed interval and checkPoint.
  8531. (execute): Rewritten.
  8532. (createCommand): New function.
  8533. (createRequestCommand): Rewritten.
  8534. * src/TrackerUpdateCommand.cc
  8535. (MetaFileUtil.h): Removed.
  8536. (DelegatingPeerListProcessor.h): Removed.
  8537. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  8538. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Request -> RequestHandle:
  8540. * src/HttpResponseCommand.h: Request->RequestHandle
  8541. * src/AbstractCommand.cc: Request->RequestHandle
  8542. * src/HttpDownloadCommand.cc: Request->RequestHandle
  8543. * src/HttpRequestCommand.cc: Request->RequestHandle
  8544. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  8545. * src/AbstractCommand.h: Request->RequestHandle
  8546. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  8547. * src/HttpResponseCommand.cc: Request->RequestHandle
  8548. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  8549. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  8550. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  8551. * src/HttpConnection.h: Request->RequestHandle
  8552. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  8553. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  8554. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8555. * src/DownloadCommand.h: Request->RequestHandle
  8556. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  8557. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  8558. * src/HttpRequestCommand.h: Request->RequestHandle
  8559. * src/FtpNegotiateCommand.h: Request->RequestHandle
  8560. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8561. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  8562. * src/HttpDownloadCommand.h: Request->RequestHandle
  8563. * src/FtpConnection.cc: Request->RequestHandle
  8564. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  8565. * src/UrlRequestInfo.cc: Request->RequestHandle
  8566. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  8567. * src/HttpConnection.h: Request->RequestHandle
  8568. * src/DownloadCommand.cc: Request->RequestHandle
  8569. * src/FtpConnection.h: Request->RequestHandle
  8570. * src/FtpDowndloadCommand.h: Request->RequestHandle
  8571. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  8572. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  8573. * src/Request.h
  8574. (SharedHandle.h): New include.
  8575. (RequestHandle): New type definition.
  8576. (Requests): Redefined.
  8577. To add MULTITRACKER support:
  8578. * src/TrackerWatcherCommand.h
  8579. (createRequestCommand): New function.
  8580. * src/DownloadEngineFactory.cc
  8581. (newTorrentConsoleEngine): Removed req.
  8582. * src/prefs.h
  8583. (PREF_TRACKER_MAX_TRIES): New definition.
  8584. * src/TorrentMan.cc
  8585. (TorrentMan): Removed req. Added trackerNumTry.
  8586. (~TorrentMan): Removed req.
  8587. (setupInternal1): Added announceList.
  8588. * src/TorrentRequestInfo.cc
  8589. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  8590. announces is now specified by PREF_TRACKER_MAX_TRIES.
  8591. * src/main.cc
  8592. (main): Added PREF_TRACKER_MAX_TRIES.
  8593. * src/TorrentMan.h
  8594. (Request.h): Removed.
  8595. (AnnounceList.h): New include.
  8596. (trackerNumTry): New variable.
  8597. (req): Removed.
  8598. (announceList): New variable.
  8599. * src/TrackerWatcherCommand.cc
  8600. (execute): Rewritten.
  8601. (createRequestCommand): New function.
  8602. * src/TrackerUpdateCommand.cc
  8603. (execute): Updated with the use of AnnounceList.
  8604. * src/AnnounceList.cc: New class.
  8605. * src/AnnounceList.h: New class.
  8606. To fix typo:
  8607. * src/prefs.h
  8608. (PREF_MAX_TRIES): max_try->max_tries
  8609. To not to decode "+" as space in URL decode:
  8610. * src/Util.cc
  8611. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  8612. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. To add timeout to async name resolution:
  8614. * src/AbstractCommand.h
  8615. (nameResolveFinished): New function. This is not elegant way. It needs
  8616. to be more refined.
  8617. (nameResolverCheck): New variable.
  8618. * src/AbstractCommand.cc
  8619. (AbstractCommand): Added nameResolverCheck.
  8620. (execute): Added the check whether the name resolution has finished.
  8621. (setNameResolverCheck): Set nameResolverCheck to true.
  8622. (disableNameResolverCheck): Set nameResolverCheck to false.
  8623. (nameResolverFinished): New function.
  8624. * src/FtpInitiateConnectionCommand.h
  8625. (nameResolverFinished): New function.
  8626. * src/FtpInitiateConnectionCommand.cc
  8627. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8628. * src/HttpInitiateConnectionCommand.h
  8629. (nameResolverFinished): New function.
  8630. * src/HttpInitiateConnectionCommand.cc
  8631. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8632. * src/prefs.h
  8633. (PREF_DNS_TIMEOUT): New definition.
  8634. * src/main.cc
  8635. (main): Added PREF_DNS_TIMEOUT.
  8636. To add the support for a non-compact response from a tracker:
  8637. * src/PeerListProcessor.h: New class.
  8638. * src/DefaultPeerListProcessor.h: New class.
  8639. * src/DefaultPeerListProcessor.cc: New class.
  8640. * src/CompactPeerListProcessor.h: New class.
  8641. * src/CompactPeerListProcessor.cc: New class.
  8642. * src/DelegatingPeerListProcessor.h: New class.
  8643. * src/DelegatingPeerListProcessor.cc: New class.
  8644. * src/TorrentMan.cc
  8645. (addPeer): New function(overload).
  8646. (addPeer): Delete unused peers only when new peer is added.
  8647. * src/TorrentMan.h
  8648. (PeerListProcessor.h): Included.
  8649. (Peers): Removed.
  8650. (addPeer): New function(overload).
  8651. * src/TrackerUpdateCommand.cc
  8652. (netinet/in.h): Removed.
  8653. (DelegatingPeerListProcessor.h): Included.
  8654. (execute): Updated to use DelegatingPeerListProcessor.
  8655. To fix the memory leak in TorrentMan::peers:
  8656. * src/PeerAbstractCommand.cc
  8657. (onAbort): Added peer->resetStatus().
  8658. * src/Peer.h
  8659. (resetStatus): Made public.
  8660. To improve the precision of the speed calculation:
  8661. * src/SpeedCalc.h
  8662. (nextInterval): New variable.
  8663. * src/SpeedCalc.cc
  8664. (reset): Added nextInterval.
  8665. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  8666. (changeSw): Set nextInterval to 15 seconds relative to the current
  8667. instant time.
  8668. * src/main.cc
  8669. (showVersion): Updated.
  8670. (showUsage): Updated.
  8671. * Release 0.8.1
  8672. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. * src/main.cc
  8674. (showUsage): Commented out --min-segment-size option.
  8675. (main): Commented out --min-segment-size option.
  8676. * Release 0.8.0
  8677. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. * src/*.{h,cc}:
  8679. Added an exception to the license which allows linking with OpenSSL.
  8680. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. * src/AbstractCommand.cc
  8682. (execute): Check whether the download has finished before checking
  8683. socket status.
  8684. Return true if peerStat->getStatus() == REQUEST_IDLE.
  8685. Do not exit even if no segment is available.
  8686. * src/prefs.h
  8687. (PREF_STARTUP_IDLE_TIME): New definition.
  8688. * src/PeerInteractionCommand.cc
  8689. (executeInternal): Removed max speed limit. Because it performs bad.
  8690. (receiveMessages): Added max speed limit. This was better than above,
  8691. but still a little bit to be desired. Sometimes the download speed
  8692. became much faster than I specified.
  8693. * src/SpeedCalc.h
  8694. (start): New variable.
  8695. (accumulatedLength): New variable.
  8696. (getAvgSpeed): New function.
  8697. * src/SpeedCalc.cc
  8698. (reset): Added start, accumulatedLength.
  8699. (update): Added calculation of an average speed.
  8700. (getAvgSpeed): New function.
  8701. * src/DownloadCommand.h
  8702. (sw): Removed.
  8703. * src/main.cc
  8704. (main): Added PREF_STARTUP_IDLE_TIME.
  8705. * src/PeerStat.h
  8706. (STATUS): Added REQUEST_IDLE.
  8707. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  8708. (getAvgDownloadSpeed): New function
  8709. (requestIdle): New function.
  8710. * src/SegmentMan.h
  8711. (SegmentEntryHandle): New type definition.
  8712. (SegmentEntries): Now holds SegmentEntryHandle.
  8713. (findSlowerSegmentEntry): New funtion.
  8714. * src/SegmentMan.cc
  8715. (save): Updated according to the changes in SegmentEntries.
  8716. (read): Updated according to the changes in SegmentEntries.
  8717. (FindSegmentEntryByIndex): Updated according to the changes in
  8718. SegmentEntries.
  8719. (FindSegmentEntryByCuid): Updated according to the changes in
  8720. SegmentEntries.
  8721. (checkoutSegment): Updated according to the changes in SegmentEntries.
  8722. (onNullBitfield): Updated according to the changes in SegmentEntries.
  8723. Renamed uitr as itr.
  8724. (findSlowerSegmentEntry): New function.
  8725. (getSegment): Updated according to the changes in SegmentEntries.
  8726. Added the feature that cancels the segment with slow server and fast
  8727. one takes it over.
  8728. (cancelSegment): Updated according to the changes in SegmentEntries.
  8729. (getDownloadLength): Updated according to the changes in
  8730. SegmentEntries.
  8731. (init): Assigned 0 to bitfield after deleting it.
  8732. * src/DownloadCommand.cc
  8733. (STARTUP_IDLE_TIME): Removed.
  8734. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  8735. * src/PeerChokeCommand.cc
  8736. (optUnchokingPeer): Updated according to the changes in Peer.
  8737. (ResetDelta): Removed.
  8738. (UploadFaster): Updated according to the changes in Peer.
  8739. (DownloadFaster): Updated according to the changes in Peer.
  8740. (execute): I clarify the meaning of "upload" and "download" here.
  8741. "upload" means the transfer from localhost to remote host.
  8742. "download" means the transfer from remote host to localhost.
  8743. Based on this rule, I swapped orderByUploadRate and
  8744. orderByDownloadRate.
  8745. * src/PeerInteractionCommand.cc
  8746. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  8747. (executeInternal): Removed the argument of
  8748. peerInteraction->sendMessages().
  8749. (receiveMessages): Rewritten download speed limit.
  8750. (sendKeepAlive): Removed peerInteraction->sendMessages().
  8751. * src/HttpResponseCommand.cc
  8752. (handleDefaultEncoding): If file size is unknown in torrent request,
  8753. do not call segmentMan->initBitfield() here.
  8754. Disabled persistent connection feature in torrent request.
  8755. * src/UrlRequestInfo.h
  8756. (UrlRequestInfo): Removed const qualifier from option.
  8757. * src/TorrentMan.h
  8758. (TransferStat): New class.
  8759. (deltaDownloadLength): Removed.
  8760. (deltaUploadLength): Removed.
  8761. (addDeltaDownloadLength): Removed.
  8762. (getDeltaDownloadLength): Removed.
  8763. (resetDeltaDownloadLength): Removed.
  8764. (addDeltaUploadLength): Removed.
  8765. (getDeltaUploadLength): Removed.
  8766. (resetDeltaUploadLength): Removed.
  8767. (addActivePeer): Added peer->activate().
  8768. (deleteActivePeer): Added peer->deactivate().
  8769. (calculateStat): New function.
  8770. * src/TorrentMan.cc
  8771. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  8772. (calculateStat): New function.
  8773. * src/PeerInteraction.h
  8774. (uploadLimit): Removed.
  8775. (option): New variable.
  8776. (setUploadLimit): Removed.
  8777. (getUploadSpeed): Removed.
  8778. (sendMessages): Removed the argument "currentUploadSpeed".
  8779. * src/PeerInteraction.cc
  8780. (prefs.h): Included.
  8781. (PeerInteraction): Removed uploadLimit. Added option.
  8782. (sendMessages): Rewritten upload speed limit.
  8783. (sendHandshake): Removed the argument from sendMessages().
  8784. (sendBitfield): Removed the argument from sendMessages().
  8785. * src/PeerAbstractCommand.cc
  8786. (execute): Commented out the portion of upload limit.
  8787. (onAbort): Removed peer->resetStatus().
  8788. * src/TorrentRequestInfo.cc
  8789. (timeoutSpecified): Declared extern.
  8790. (execute): Set timeout to 180 if timeout is not specified by.
  8791. command-line.
  8792. * src/PieceMessage.cc
  8793. (receivedAction): Added peer->updateDownloadLength().
  8794. Removed peer->addPeerUpload().
  8795. Removed torrentMan->addDeltaDownloadLength().
  8796. (send): Added peer->updateUploadLength().
  8797. Removed peer->addPeerDownload().
  8798. Removed torrentMan->addDeltaUploadLength().
  8799. * src/main.cc
  8800. (timeoutSpecified): New variable.
  8801. (main): Set timeoutSpecified to false.
  8802. If the command-line option "--upload-limit" is specified, then
  8803. timeoutSpecified is set to true. This option will remain in the next
  8804. release, but be deprecated in the future release.
  8805. * src/TorrentRequestInfo.h
  8806. (TorrentRequestInfo): Removed const qualifier from op.
  8807. * src/PeerStat.h
  8808. (uploadSpeed): New variable.
  8809. (PeerStat): Added default value to cuid.
  8810. (calculateUploadSpeed): New function.
  8811. (updateUploadLength): New function.
  8812. (getMaxUploadSpeed): New function.
  8813. (getAvgUploadSpeed): New function.
  8814. (reset): Added uploadSpeed. Set status to IDLE.
  8815. * src/TorrentDownloadEngine.h
  8816. (cp): Declared as Time.
  8817. (sessionDownloadLengthArray): Removed.
  8818. (sessionUploadLengthArray): Removed.
  8819. (currentCp): Removed.
  8820. (lastCalcStat): New variable
  8821. (lastElapsed): Removed.
  8822. (sessionDownloadLength): Removed.
  8823. (calculateStat): New function.
  8824. * src/TorrentDownloadEngine.cc
  8825. (initStatistics): Removed lastElapsed, cp[],
  8826. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  8827. currentCp, sessionDownloadLength.
  8828. Added cp.reset() and lastCalcStat.reset().
  8829. (calculateSpeed): Changed the name of the argument.
  8830. (calculateStatistics): Rewritten.
  8831. (calculateStat): New function.
  8832. * src/Peer.h
  8833. (PeerStat.h): Included.
  8834. (peerUpload): Removed.
  8835. (peerDownload): Removed.
  8836. (peerStat): New variable.
  8837. (sessionUploadLength): New variable.
  8838. (sessionDownloadLength): New variable.
  8839. (deltaUpload): Removed.
  8840. (deltaDownload): Removed.
  8841. (resetStatus): Made private.
  8842. (Peer): Added sessionUploadLength, sessionDownloadLength.
  8843. Removed peerUpload, peerDownload.
  8844. (updateUploadLength): New function.
  8845. (addDeltaUpload): Removed.
  8846. (updateDownloadLength): New function.
  8847. (resetDeltaUpload): Removed.
  8848. (getDeltaUpload): Removed.
  8849. (addDeltaDownload): Removed.
  8850. (calculateUploadSpeed): New function.
  8851. (resetDeltaDownload): Removed.
  8852. (getDeltaDownload): Removed.
  8853. (calculateDownloadSpeed): New function.
  8854. (getSessionUploadLength): New function.
  8855. (getSessionDownloadLength): New function.
  8856. (activate): New function.
  8857. (deactivate): New function.
  8858. (addPeerUpload): Removed.
  8859. (setPeerUpload): Removed.
  8860. (getPeerUpload): Removed.
  8861. (addPeerDownload): Removed.
  8862. (setPeerDownload): Removed.
  8863. (getPeerDownload): Removed.
  8864. * src/Peer.cc
  8865. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  8866. * src/MetalinkRequestInfo.h
  8867. (MetalinkRequestInfo): Removed const qualifier from op.
  8868. * src/RequestInfo.h
  8869. (op): Removed const qualifier.
  8870. (RequestInfo): Removed const qualifier from op.
  8871. * src/prefs.h
  8872. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  8873. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  8874. * src/PeerInteractionCommand.cc
  8875. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  8876. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  8877. * src/PeerInteraction.cc
  8878. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  8879. * src/main.cc
  8880. (showUsage): Updated the description of "--lowest-speed-limit" option.
  8881. Added the description of "--max-download-limit" option.
  8882. Removed the description of "--upload-limit" option.
  8883. Added the description of "--max-upload-limit" option.
  8884. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  8885. Added "--max-download-limit" option and "--max-upload-limit" option.
  8886. Added the warning message if "--upload-limit" option is used.
  8887. * src/DownloadCommand.cc
  8888. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  8889. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. To rewrite segment download mechanism for HTTP/FTP download.
  8891. Use BitfieldMan to manage segment download.
  8892. * src/HttpResponseCommand.h
  8893. (executeInternal): Pass the reference of segment.
  8894. * src/AbstractCommand.cc
  8895. (prepareForRetry): Call segmentMan->cancelSegment here.
  8896. (onAbort): Call segmentMan->cancelSegment here.
  8897. * src/HttpDownloadCommand.cc
  8898. (prepareForNextSegment): New function.
  8899. * src/DownloadEngineFactory.cc
  8900. (newConsoleEngine): Removed splitter.
  8901. (newTorrentConsoleEngine): Removed splitter.
  8902. * src/Request.h
  8903. (segment): Renamed from seg.
  8904. * src/FtpInitiateConnectionCommand.h
  8905. (executeInternal): Pass the reference of segment.
  8906. * src/AbstractCommand.h
  8907. (executeInternal): Pass the reference of segment.
  8908. * src/pref.h
  8909. (PREF_SEGMENT_SIZE): New definition.
  8910. * src/HttpProxyRequestCommand.h
  8911. (executeInternal): Pass the reference of segment.
  8912. * src/HttpResponseCommand.cc
  8913. (checkResponse): Allowed status 206 when a request range starts 0.
  8914. (handleDefaultEncoding): Rewritten the code related to Segment.
  8915. (handleOtherEncoding): Rewritten the code related to Segment.
  8916. * src/SegmentMan.h
  8917. (SegmentEntry): New class.
  8918. (SegmentEntries): New type definition.
  8919. (bitfield): New variable.
  8920. (usedSegmentEntries): New variable.
  8921. (onNullBitfield): New function.
  8922. (checkoutSegment): New function.
  8923. (segments): Removed.
  8924. (splitter): Removed.
  8925. (unregisterId): Removed.
  8926. (getSegment): New function(overload)
  8927. (getDownloadedSize): Removed.
  8928. (cancelSegment): New function.
  8929. (completeSegment): New function.
  8930. (initBitfield): New function.
  8931. (hasSegment): New function.
  8932. (getDownloadLength): New function.
  8933. * src/BitfieldMan.h
  8934. (getStartIndex): New function.
  8935. (getEndIndex): New function.
  8936. (getMissingUnusedIndex): New function(overload).
  8937. (getSparseMissingUnusedIndex): New function.
  8938. * src/BitfieldMan.cc
  8939. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8940. (getMissingUnusedIndex): New function(overload).
  8941. (Range): New class.
  8942. (getStartIndex): New function.
  8943. (getEndIndex): New function.
  8944. (getSparseMissingUnusedIndex): New function.
  8945. (isBitSetInternal): Return false if the given index is less than 0.
  8946. * src/HttpInitiateConnectionCommand.h
  8947. (executeInternal): Pass the reference of segment.
  8948. * src/FtpNegotiateCommand.h
  8949. (executeInternal): Pass the reference of segment.
  8950. * src/FtpNegotiateCommand.cc
  8951. (recvSize): Initialize bitfield here.
  8952. * src/FtpTunnelResponseCommand.h
  8953. (executeInternal): Pass the reference of segment.
  8954. * src/HttpConnection.cc
  8955. (createRequest): Rewritten range header processing.
  8956. * src/DownloadCommand.h
  8957. (executeInternal): Pass the reference of segment.
  8958. (prepareForRetry): Removed.
  8959. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8960. function.
  8961. * src/main.cc
  8962. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8963. * src/SegmentMan.cc
  8964. (SegmentMan): Added bitfield. Removed splitter.
  8965. (~SegmentMan): Added bitfield. Removed splitter.
  8966. (unregisterId): Removed.
  8967. (getSegment): Rewritten.
  8968. (updateSegment): Rewritten.
  8969. (save): Rewritten.
  8970. (read): Rewritten.
  8971. (finished): Rewritten.
  8972. (getDownloadedSize): Removed.
  8973. (initBitfield): New function.
  8974. (FindSegmentEntryByIndex): New function object.
  8975. (FindSegmentEntryByCuid): New function object.
  8976. (checkoutSegment): New function.
  8977. (onNullBitfield): New function.
  8978. (getSegment): New function(overload).
  8979. (CancelSegment): New function object.
  8980. (cancelSegment): New function.
  8981. (completeSegment): New function.
  8982. (hasSegment): New function.
  8983. (getDownloadLength): New function.
  8984. * src/FtpInitiateConnectionCommand.cc
  8985. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8986. * src/Segment.h: Rewritten.
  8987. * src/Segment.cc (operator<<): New function.
  8988. * src/HttpDownloadCommand.h
  8989. (prepareForNextSegment): New function.
  8990. * src/Request.cc
  8991. (resetUrl): Made segment null.
  8992. * src/DownloadEngine.cc
  8993. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8994. * src/HttpProxyRequestCommand.h
  8995. (executeInternal): Pass the reference of segment.
  8996. * src/DownloadCommand.cc
  8997. (executeInternal): Rewritten the code related to Segment.
  8998. (prepareForRetry): Removed.
  8999. (prepareForNextSegment): Rewritten.
  9000. * src/FtpTunnelResponseCommand.h
  9001. (executeInternal): Pass the reference of segment.
  9002. To add HTTP 1.1 persistent connection support(experimental)
  9003. * src/HttpRequestCommand.cc
  9004. (executeInternal): Disable keep alive if it is disabled by
  9005. configuration.
  9006. * src/Request.h
  9007. (keepAlive): New variable.
  9008. (isKeepAlive): New function.
  9009. (setKeepAlive): New function.
  9010. * src/pref.h
  9011. (PREF_HTTP_KEEP_ALIVE): New definition.
  9012. * src/HttpResponseCommand.cc
  9013. (executeInternal): Check the remote server supports keep alive.
  9014. * src/HttpConnection.cc
  9015. (createRequest): Send "Connection: close" only if keep alive is
  9016. disabled.
  9017. * src/main.cc
  9018. (main):
  9019. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9020. To add max download speed limit:
  9021. * src/pref.h
  9022. (PREF_MAX_SPEED_LIMIT): New definition.
  9023. * src/PeerInteractionCommand.cc
  9024. (executeInternal): Added max download speed limit. Not tested yet.
  9025. * src/SegmentMan.h
  9026. (PeerStats): New type definition.
  9027. (peerStats): New variable.
  9028. (registerPeerStat): New function.
  9029. (FindPeerStat): New function object.
  9030. (getPeerStat): New function.
  9031. (calculateDownloadSpeed): New function.
  9032. * src/SpeedCalc.h: New class.
  9033. * src/SpeedCalc.cc: New class.
  9034. * src/main.cc
  9035. (main):
  9036. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9037. download speed is not restricted).
  9038. * src/PeerStat.h: New class.
  9039. * src/SegmentMan.cc
  9040. (registerPeerStat): New function.
  9041. (calculateDownloadSpeed): New function.
  9042. * src/DownloadCommand.cc
  9043. (STARTUP_IDLE_TIME): New definition.
  9044. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9045. downloadStart.
  9046. (~DownloadCommand): Call peerStat->downloadStop.
  9047. (executeInternal): Added download speed limitter. Rewritten lowest
  9048. speed limitter.
  9049. * src/HttpConnection.cc
  9050. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9051. * src/AbstractCommand.cc
  9052. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9053. Added hostname to the error message.
  9054. * src/ConsoleDownloadEngine.cc
  9055. (calculateStatistics): Initialize psize with dlSize.
  9056. * src/PieceMessage.cc
  9057. (receivedAction): Do not call peerInteraction->abortPiece here.
  9058. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9059. * src/BitfieldMan.h
  9060. (clearAllUseBit): New function.
  9061. (setAllUseBit): New function.
  9062. * src/BitfieldMan.cc
  9063. (clearAllBit): Do not clear useBitfield here.
  9064. (clearAllUseBit): New function.
  9065. (setAllUseBit): New function.
  9066. * src/Piece.cc
  9067. (clearAllBlock): Call bitfield->clearAllUseBit().
  9068. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9069. To make filename URL-decoded:
  9070. * src/HttpResponseCommand.h: Updated doc.
  9071. * src/HttpResponseCommand.cc
  9072. (determinFilename): Made filename URL-decoded.
  9073. * src/FtpInitiateConnectionCommand.cc
  9074. (executeInternal): Made filename URL-decoded.
  9075. * src/Util.h (urldecode): New function.
  9076. * src/Util.cc (urldecode): New function.
  9077. To fix a bug that caused assertion failure in ares_strerror:
  9078. * src/NameResolver.cc (callback): Fixed the bug.
  9079. * Release 0.7.3
  9080. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9081. To add --seed-time and --seed-ratio command-line option:
  9082. * src/Option.h (getAsDouble): New function.
  9083. * src/Option.cc (getAsDouble): New function.
  9084. * src/SeedCheckCommand.h: New class.
  9085. * src/SeedCheckCommand.cc: New class.
  9086. * src/DownloadEngineFactory.cc
  9087. (SeedCheckCommand.h): Included.
  9088. (UnionSeedCriteria.h): Included.
  9089. (TimeSeedCriteria.h): Included.
  9090. (ShareRatioSeedCriteria.h): Included.
  9091. (newTorrentConsoleEngine): Added the processing of seed option.
  9092. * src/SeedCriteria.h: New class.
  9093. * src/ShareRatioSeedCriteria.h: New class.
  9094. * src/TimeSeedCriteria.h: New class.
  9095. * src/UnionSeedCriteria.h: New class.
  9096. * src/prefs.h
  9097. (PREF_SEED_TIME): New definition.
  9098. (PREF_SEED_RATIO): New definition.
  9099. * src/main.cc
  9100. (showUsage): Added --seed-time and --seed-ratio option.
  9101. (main): Added --seed-time and --seed-ratio option.
  9102. Made default log file name "/dev/null".
  9103. * src/SharedHandle.h
  9104. (SharedHandle): Copy constructor. Made it assignable from the
  9105. SharedHandle of the subclasses.
  9106. (operator=): Made it assignable from the SharedHandle of the
  9107. subclasses.
  9108. (getRefCount): New function.
  9109. To add notice log level and the switch to write log to stdout. This
  9110. switch is configurable per log level.
  9111. * src/Logger.h
  9112. (notice): New function.
  9113. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9114. constant.
  9115. * src/LogFactory.cc
  9116. (getInstance): The use of NullLogger was removed. A log message with
  9117. notice log level was made written to stdout along with log file.
  9118. * src/NullLogger.h
  9119. (notice): New function.
  9120. * src/SimpleLogger.h
  9121. (writeHeader): Added the 'file' argument.
  9122. (writeLog): Added the 'file' argument.
  9123. (writeFile): New function.
  9124. (stdoutField): New variable.
  9125. (SimpleLogger): Removed the default constructor.
  9126. (SimpleLogger): Made the default value of logfile 0.
  9127. (debug): Added 'virtual' keyword.
  9128. (info): Added 'virtual' keyword.
  9129. (warn): Added 'virtual' keyword.
  9130. (error): Added 'virtual' keyword.
  9131. (notice): New function.
  9132. (setStdout): New function.
  9133. * src/SimpleLogger.cc
  9134. (WRITE_LOG): Replaced writeLog with writeFile.
  9135. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9136. (SimpleLogger): Removed the default constructor.
  9137. (setStdout): New function.
  9138. (writeLog): Added the handling of NOTICE log level.
  9139. (writeFile): New function.
  9140. (notice): New function.
  9141. * src/TorrentMan.h: Updated doc.
  9142. * src/BitfieldMan.h: Updated doc.
  9143. * src/TrackerWatcherCommand.cc
  9144. (execute): Return true if error occurred in the request to the tracker
  9145. and halt is requested.
  9146. * src/TrackerUpdateCommand.cc
  9147. (execute): Return true if error occurred in the request to the tracker
  9148. and halt is requested.
  9149. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9150. DownloadEngine:
  9151. * src/TorrentConsoleDownloadEngine.h
  9152. (onSelectiveDownloadingCompletes): Removed.
  9153. * src/TorrentConsoleDownloadEngine.cc
  9154. (onSelectiveDownloadingCompletes): Removed.
  9155. * src/TorrentDownloadEngine.h
  9156. (onEndOfRun): Added 'virtual' keyword.
  9157. (afterEachIteration): Removed.
  9158. (onSelectiveDownloadingCompletes): Removed.
  9159. * src/TorrentDownloadEngine.cc
  9160. (onEndOfRun): Removed filenameFixed.
  9161. (afterEachIteration): Removed.
  9162. * src/TorrentMan.cc
  9163. (completePiece): Call onDownloadComplete here.
  9164. (onDownloadComplete): Added 2 log messages.
  9165. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9166. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9167. * src/NameResolver.h: Added the prototype declaration of callback().
  9168. To support c-ares library:
  9169. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9170. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9171. * src/FtpInitiateConnectionCommand.h:
  9172. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9173. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9174. * src/HttpInitiateConnectionCommand.h:
  9175. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9176. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9177. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9178. #1542285 by tizianomueller)
  9179. * src/HttpInitiateConnectionCommand.cc:
  9180. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9181. * src/FtpInitiateConnectionCommand.cc:
  9182. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9183. * src/DownloadEngine.h:
  9184. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9185. * src/DownloadEngine.cc:
  9186. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9187. To fix the bug that causes compilation failure with metalink-support
  9188. disabled(bug#1543587):
  9189. * src/main.cc: Fixed with the patch by tizianomueller.
  9190. * Release 0.7.2
  9191. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. * src/main.cc
  9193. (main): Added a message to inform users that aria2 is starting to
  9194. verify checksum.
  9195. * src/RequestInfo.cc
  9196. (printDownloadAbortMessage): Added a message to inform users that
  9197. transfer can be resumed.
  9198. * src/FeatureConfig.cc
  9199. (FEATURE_ASYNC_DNS): New definition.
  9200. (FeatureConfig): Added aysnc DNS entry.
  9201. To replace CommandUuid with Command* in SocketEntry and
  9202. NameResolverEntry:
  9203. * src/DownloadEngine.h
  9204. (CommandUuids): Removed.
  9205. (SocketEntry::commandUuid): Removed.
  9206. (SocketEntry::command): New variable.
  9207. (SocketEntry::SocketEntry): Updated.
  9208. (SocketEntry::operator==): Updated.
  9209. (NameResolverEntry::commandUuid): Removed.
  9210. (NameResolverEntry::command): New variable.
  9211. (NameResolverEntry::NameResolverEntry): Updated.
  9212. (NameResolverEntry::operator==): Updated.
  9213. (waitData): Changed the argument type.
  9214. (addSocketForReadCheck): Changed the argument type.
  9215. (deleteSocketForReadCheck): Changed the argument type.
  9216. (addSocketForWriteCheck): Changed the argument type.
  9217. (deleteSocketForWriteCheck): Changed the argument type.
  9218. (addNameResolverCheck): Changed the argument type.
  9219. (deleteNameResolverCheck): Changed the argument type.
  9220. * src/DownloadEngine.cc
  9221. (FindCommand): Removed.
  9222. (run): Removed activeUuid. Added activeCommands instead.
  9223. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9224. (AccumulateActiveCommand): New function object.
  9225. (waitData): Use AccumulateActiveCommand.
  9226. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9227. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9228. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9229. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9230. (addNameResolverCheck): Use Command instead of CommandUuid.
  9231. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9232. * src/AbstractCommand.cc
  9233. (disableReadCheckSocket): Updated according to the changes in
  9234. DownloadEngine.
  9235. (setReadCheckSocket): Updated according to the changes in
  9236. DownloadEngine.
  9237. (disableWriteCheckSocket): Updated according to the changes in
  9238. DownloadEngine.
  9239. (setWriteCheckSocket): Updated according to the changes in
  9240. DownloadEngine.
  9241. (setNameResolverCheck): Updated according to the changes in
  9242. DownloadEngine.
  9243. (disableNameResolverCheck): Updated according to the changes in
  9244. DownloadEngine.
  9245. * src/AbstractCommand.cc
  9246. (disableReadCheckSocket): Updated according to the changes in
  9247. DownloadEngine.
  9248. (setReadCheckSocket): Updated according to the changes in
  9249. DownloadEngine.
  9250. (disableWriteCheckSocket): Updated according to the changes in
  9251. DownloadEngine.
  9252. (setWriteCheckSocket): Updated according to the changes in
  9253. DownloadEngine.
  9254. * release 0.7.1
  9255. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. To handle the case where some BitTorrent tracker requires all letters
  9257. except for [A-Za-z0-9] is URL encoded.
  9258. * src/Util.h
  9259. (torrentUrlencode): New function.
  9260. * src/Util.cc
  9261. (ctype.h): Included.
  9262. (torrentUrlencode): New function.
  9263. * src/TrackerWatcherCommand.cc
  9264. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9265. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. To add asynchronous DNS support(libares):
  9267. * src/AbstractCommand.h
  9268. (setNameResolverCheck): New function.
  9269. (disableNameResolverCheck): New function
  9270. (resolveHostname): New function.
  9271. * src/AbstractCommand.cc
  9272. (setNameResolverCheck): New function.
  9273. (disableNameResolverCheck): New function
  9274. (resolveHostname): New function.
  9275. * src/FtpInitiateConnectionCommand.h
  9276. (nameResolver): New function.
  9277. * src/FtpInitiateConnectionCommand.cc
  9278. (Util.h): Included.
  9279. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9280. disableWriteCheckSocket.
  9281. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9282. (executeInternal): Added async DNS support.
  9283. * src/HttpInitiateConnectionCommand.h
  9284. (nameResolver): New function.
  9285. * src/HttpInitiateConnectionCommand.cc
  9286. (DlRetryEx.h): Included.
  9287. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9288. disableWriteCheckSocket.
  9289. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9290. (executeInternal): Added async DNS support.
  9291. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9292. by extern "C" declaration.
  9293. * src/NameResolver.cc: New class.
  9294. * src/Util.h:
  9295. (isNumberAndDotsNotation): New function
  9296. * src/Util.cc
  9297. (isNumberAndDotsNotation): New function.
  9298. * src/DownloadEngine.h
  9299. (NameResolver.h): Included.
  9300. (NameResolverEntry): New class.
  9301. (NameResolverEntries): New type definition.
  9302. (addNameResolverCheck): New function.
  9303. (deleteNameResolverCheck): New function.
  9304. * src/DownloadEngine.cc
  9305. (run): Initialize cp with 0.
  9306. (SetDescriptor::operator()): Added for NameResolverEntry.
  9307. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9308. (waitData): Check nameResolver entries.
  9309. (updateFdSet): Update fds in nameResolver entries.
  9310. (addNameResolverCheck): New function.
  9311. (deleteNameResolverCheck): new function.
  9312. * src/PeerInteractionCommand.cc
  9313. (executeInternal): Fixed wrong socket handling.
  9314. * src/main.cc
  9315. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  9316. * src/Util.cc
  9317. (fileChecksum): Removed the call to ctx.digestReset().
  9318. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. * po/ru.po: Azamat sent me Russian translation.
  9320. * src/FtpNegotiateCommand.cc
  9321. (recvGreeting): Call disableWriteCheckSocket just after
  9322. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  9323. (recvRetr): Recognized status code 125 as a acceptable response code.
  9324. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  9325. case-insesitive filesystem(BUG#1531057).
  9326. * src/Time.h: Renamed as TimeA2.h.
  9327. * src/Time.cc: Renamed as TimeA2.cc.
  9328. * src/TimeA2.h: New class.
  9329. * src/TimeA2.cc: New class.
  9330. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  9331. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  9332. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  9333. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  9334. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  9335. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9336. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  9337. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  9338. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  9339. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9340. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  9341. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  9342. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  9343. * release 0.7.0
  9344. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9345. * src/PeerChokeCommand.h
  9346. (PeerChokeCommand): Rearranged the arguments.
  9347. * src/PeerChokeCommand.cc
  9348. (PeerChokeCommand): Rearranged the arguments.
  9349. * src/MetalinkEntry.h
  9350. (Checksum.h): Included.
  9351. (md5): Removed.
  9352. (sha1): Removed.
  9353. (checksum): New variable.
  9354. (operator=): Updated.
  9355. (check): Removed.
  9356. * src/prefs.h
  9357. (PREF_LOWEST_SPEED_LIMIT): New definition.
  9358. (PREF_FOLLOW_TORRENT): New definition.
  9359. (PREF_SELECT_FILE): New definition.
  9360. (PREF_FOLLOW_METALINK): New definition.
  9361. * src/MetalinkResource.h
  9362. (TYPE_HTTPS): Added to enum TYPE.
  9363. * src/TorrentMan.cc
  9364. (~TorrentMan): Rewritten.
  9365. * src/MultiDiskWriter.cc
  9366. (MultiDiskAdaptor): Updated according to the changes in
  9367. MessageDigestContext.
  9368. (~MultiDiskAdaptor): Updated according to the changes in
  9369. MessageDigestContext.
  9370. (hashUpdate): Updated according to the changes in MessageDigestContext.
  9371. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9372. * src/Util.h
  9373. (fileChecksum): Updated according to the changes in
  9374. MessageDigestContext.
  9375. * src/Util.cc
  9376. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9377. (fileChecksum): Updated according to the changes in
  9378. MessageDigestContext.
  9379. * src/messageDigest.h: Rewritten.
  9380. * src/MetalinkEntry.cc
  9381. (check): Removed.
  9382. (Supported): Updated.
  9383. (dropUnsupportedResource): Fixed a memory leak.
  9384. * src/ShaVisitor.cc
  9385. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  9386. (~ShaVisitor): Updated according to the changes in
  9387. MessageDigestContext.
  9388. (visit): Updated according to the changes in MessageDigestContext.
  9389. * src/main.cc
  9390. (main): Rewritten the portion of download loop. --lowest-speed-limit
  9391. command-line option added.
  9392. * src/DownloadEngine.h
  9393. (SocketEntry): New class.
  9394. (SocketEntries): New definition.
  9395. (PairFind): Removed.
  9396. (SockCmdMap): Removed.
  9397. * src/DownloadEngine.cc
  9398. (DownloadEngine): Rewritten.
  9399. (~DownloadEngine): Rewritten.
  9400. (run): Renamed activeCommandUuids as activeUuids.
  9401. (SetDescriptor): Rewritten.
  9402. (AccumulateActiveCommandUuid): Removed.
  9403. (AccumulateActiveUuid): New function object.
  9404. (waitData): Rewritten.
  9405. (updateFdSet): Rewritten.
  9406. (addSocket): Rewritten.
  9407. (deleteSocket): Rewritten.
  9408. (addSocketForReadCheck): Rewritten.
  9409. (deleteSocketForReadCheck): Rewritten.
  9410. (addSocketForWriteCheck): Rewritten.
  9411. (deleteSocketForWriteCheck): Rewritten.
  9412. * src/Xml2MetalinkProcessor.cc
  9413. (getEntry): Rewritten the portion of MetalinkEntry creation.
  9414. * src/DownloadCommand.cc
  9415. (executeInternal): Added the check routine for lowest speed limit.
  9416. * src/AbstractDiskWriter.cc
  9417. (AbstractDiskWriter): Updated according to the changes in
  9418. MessageDigestContext.
  9419. (~AbstractDiskWriter): Updated according to the changes in
  9420. MessageDigestContext.
  9421. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9422. * src/RequestInfo.h: New class.
  9423. * src/UrlRequestInfo.h: New class.
  9424. * src/UrlRequestInfo.cc: New class.
  9425. * src/TorrentRequestInfo.h: New class.
  9426. * src/TorrentRequestInfo.cc: New class.
  9427. * src/MetalinkRequestInfo.h: New class.
  9428. * src/MetalinkRequestInfo.cc: New class.
  9429. * src/Checksum.h: New class.
  9430. * src/DownloadEngineFactory.h: New class.
  9431. * src/DownloadEngineFactory.cc: New class.
  9432. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. * src/Option.h
  9434. (getAsBool): New function.
  9435. * src/Option.cc
  9436. (prefs.h): Included.
  9437. (defined): 0-length value is now recognized as undefined.
  9438. (getAsInt): Rewritten.
  9439. (getAsLLInt): Rewritten.
  9440. (getAsBool): New function.
  9441. * src/FeatureConfig.h: Rewritten.
  9442. * src/FeatureConfig.cc: Rewritten.
  9443. * src/prefs.h
  9444. (PREF_STDOUT_LOG): New definition.
  9445. (PREF_LOG): New definition.
  9446. (PREF_DIR): New definition.
  9447. (PREF_OUT): New definition.
  9448. (PREF_SPLIT): New definition.
  9449. (PREF_DAEMON): New definition.
  9450. (PREF_REFERER): New definition.
  9451. (PREF_TORRENT_FILE): New definition.
  9452. (PREF_LISTEN_PORT): New definition.
  9453. (PREF_METALINK_FILE): New definition.
  9454. (PREF_METALINK_VERSION): New definition.
  9455. (PREF_METALINK_LANGUAGE): New definition.
  9456. (PREF_METALINK_OS): New definition.
  9457. (PREF_METALINK_SERVERS): New definition.
  9458. * src/main.cc
  9459. (main): Following command-line parameters are now put into Option
  9460. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  9461. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  9462. metalinkLanguage, metalinkOs, metalinkServers
  9463. To fix the bug that aria2 can not handle http response header properly.
  9464. * src/HttpHeader.cc
  9465. (put): Made name lowercased.
  9466. (defined): Made name lowercased.
  9467. (getFirst): Made name lowercased.
  9468. (get): Made name lowercased.
  9469. (getFirstAsInt): Rewritten.
  9470. (getFirstAsLLInt): Rewritten.
  9471. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9472. * src/TorrentMan.h:
  9473. (advertisePiece): Updated doc.
  9474. (getAdvertisedPieceIndexes): Updated doc.
  9475. (removeAdvertisedPiece); New function.
  9476. * src/TorrentMan.cc
  9477. (FindElapsedHave): New function object.
  9478. (removeAdvertisedPiece): New function.
  9479. * src/HaveEraseCommand.h: New class.
  9480. * src/HaveEraseCommand.cc: New class.
  9481. * src/FeatureConfig.h: New class.
  9482. * src/FeatureConfig.cc: New class.
  9483. * src/Request.h
  9484. (defaultPorts): Removed.
  9485. * src/Request.cc
  9486. (FeatureConfig.h): Included.
  9487. (Request): Removed the statements related to defaultPorts.
  9488. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  9489. A default port number is now retrieved from FeatureConfig.
  9490. * src/main.cc
  9491. (HaveEraseCommand.h): Included.
  9492. (showVersion): Added the output of feature list.
  9493. (main): Added HaveEraseCommand to command queue in BitTorrent
  9494. downloading.
  9495. * src/PeerInteractionCommand.h
  9496. (chokeCheckPoint): Commented out.
  9497. (periodicExecPoint): New variable.
  9498. * src/PeerInteractionCommand.cc
  9499. (executeInternal): Following methods are now called in at least every
  9500. 0.5 seconds to reduce CPU usage:
  9501. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  9502. checkHave(), sendKeepAlive().
  9503. (checkLongTimePeerChoking): Commented out.
  9504. * src/BitfieldMan.h
  9505. (getNthBitIndex): Changed the method signature.
  9506. (getMissingIndexRandomly): Changed the method signature.
  9507. * src/BitfieldMan.cc
  9508. (getNthBitIndex): Rewritten
  9509. (getMissingIndexRandomly): Rewritten.
  9510. (hasMissingPiece): Rewritten.
  9511. (getMissingIndex): Refactored.
  9512. (getMissingUnusedIndex); Refactored.
  9513. (getMissingIndex): Refactored.
  9514. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. * src/PeerMessage.h
  9516. (Piece.h): Included.
  9517. (SharedHandle.h): Included.
  9518. (invalidate): New variable.
  9519. (uploading): New variable.
  9520. (isInvalidate): New function.
  9521. (isUploading): New function.
  9522. (onPush): New function.
  9523. (onChoked): New function.
  9524. (onCanceled): New function.
  9525. (onAbortPiece): New function.
  9526. (PeerMessageHandle): New type definition.
  9527. * src/PeerMessage.cc
  9528. (PeerMessage): Added the initialization for invalidate and uploading.
  9529. * src/CancelMessage.h
  9530. (CancelMessage): Rewritten.
  9531. * src/RejectMessage.h
  9532. (RejectMessage): Rewritten.
  9533. * src/Metalinker.h
  9534. (operator=): Defined.
  9535. * src/MetaEntry.h
  9536. (operator=): Defined.
  9537. * src/MetalinkResource.h
  9538. (operator=): Defined.
  9539. * src/AllowedFastMessage.h
  9540. (AllowedFastMessage): Rewritten.
  9541. * src/HandshakeMessage.h
  9542. (HandshakeMessage): New function(overload).
  9543. * src/HandshakeMessage.cc
  9544. (HandshakeMessage): Rewritten.
  9545. (init): New function.
  9546. * src/HaveMessage.h
  9547. (HaveMessage): Rewritten.
  9548. * src/Time.h
  9549. (operator=): Defined the function body here.
  9550. * src/Time.cc
  9551. (operator=): Removed.
  9552. * src/SocketCore.h
  9553. (operator==): Defined here.
  9554. (operator!=): Defined here.
  9555. (operator<): Defined here.
  9556. * src/SocketCore.cc
  9557. (operator==): Removed.
  9558. (operator<): Removed.
  9559. * src/BitfieldMan.h
  9560. (operator=): Defined the function body here.
  9561. * src/BitfieldMan.cc
  9562. (operator=): Removed.
  9563. * src/TorrentMan.h
  9564. (deleteErrorPeer): Removed.
  9565. (deleteUnusedPeer); New function.
  9566. * src/TorrentMan.cc
  9567. (addPeer): Call deleteUnusedPeer.
  9568. (deleteErrorPeer): Removed.
  9569. (deleteUnusedPeer): New function.
  9570. * src/PeerAbstractCommand.h
  9571. (setNoCheck): New function.
  9572. (noCheck): New variable.
  9573. * src/PeerAbstractCommand.cc
  9574. (PeerAbstractCommand): Added the initialization of noCheck.
  9575. (execute): Added a check for noCheck.
  9576. (setNoCheck): New function.
  9577. * src/Util.h
  9578. (stdio.h): Included.
  9579. * src/Util.cc
  9580. (unistd.h): Included.
  9581. * src/DefaultDiskWriter.cc
  9582. (unistd.h): Included.
  9583. * src/Peer.h
  9584. (operator==): Defined the function body here.
  9585. (operator!=): Defined the function body here.
  9586. * src/Peer.cc
  9587. (operator==): Removed.
  9588. (operator!=): Removed.
  9589. * src/Piece.h
  9590. (Piece): Defined the function body here(copy constructor).
  9591. (operator=): Defined the function body here.
  9592. (operator==): Defined the function body here.
  9593. * src/Piece.cc
  9594. (Piece): Removed(copy constructor).
  9595. (operator=): Removed.
  9596. (operator==): Removed.
  9597. * src/PeerMessageUtil.h
  9598. (ChokeMessage.h): Removed.
  9599. (UnchokeMessage.h): Removed.
  9600. (InterestedMessage.h): Removed.
  9601. (NotInterestedMessage.h): Removed.
  9602. (HaveMessage.h): Removed.
  9603. (BitfieldMessage.h): Removed.
  9604. (RequestMessage.h): Removed.
  9605. (CancelMessage.h): Removed.
  9606. (PieceMessage.h): Removed.
  9607. (HandshakeMessage.h): Removed.
  9608. (KeepAliveMessage.h): Removed.
  9609. (PortMessage.h): Removed.
  9610. (HaveAllMessage.h): Removed.
  9611. (HaveNoneMessage.h): Removed.
  9612. (PeerConnection.h): Removed.
  9613. (HandshakeMessage.h): Included.
  9614. * src/BitfieldMessage.h
  9615. (init): New function.
  9616. (BitfieldMessage): Rewritten.
  9617. (BitfieldMessage): New function(overload).
  9618. * src/RequestSlot.h
  9619. (operator=): Defined the function body here.
  9620. (operator==): Defined the function body here.
  9621. * src/RequestSlot.cc
  9622. (operator=): Removed.
  9623. (operator==): Removed.
  9624. To remove the dependency on the PeerMessage subclass from
  9625. PeerInteraction:
  9626. * src/PeerMessageFactory.h: New class.
  9627. * src/PeerMessageFactory.cc: New class.
  9628. * src/SimplePeerMessage.cc
  9629. (send): If invalidate is true then do nothing.
  9630. * src/PeerInteractionCommand.cc
  9631. (HandshakeMessage.h): Included.
  9632. (KeepAliveMessage.h): Included.
  9633. (ChokeMessage.h): Included.
  9634. (UnchokeMessage.h): Included.
  9635. (HaveMessage.h): Included.
  9636. (executeInternal): Call setNoCheck().
  9637. Removed setWriteCheckSocket(socket).
  9638. * src/PeerInteraction.h
  9639. (ChokeMessage.h): Removed.
  9640. (UnchokeMessage.h): Removed.
  9641. (InterestedMessage.h): Removed.
  9642. (NotInterestedMessage.h): Removed.
  9643. (HaveMessage.h): Removed.
  9644. (BitfieldMessage.h): Removed.
  9645. (RequestMessage.h): Removed.
  9646. (CancelMessage.h): Removed.
  9647. (PieceMessage.h): Removed.
  9648. (HandshakeMessage.h): Removed.
  9649. (KeepAliveMessage.h): Removed.
  9650. (PortMessage.h): Removed.
  9651. (HaveAllMessage.h): Removed.
  9652. (HaveNoneMessage.h): Removed.
  9653. (RejectMessage.h): Removed.
  9654. (AllowedFastMessage.h): Removed.
  9655. (SuggestPieceMessage.h): Removed.
  9656. (PeerMessageFactory.h): Included.
  9657. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  9658. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  9659. (PeerMessageFactory): New variable.
  9660. (createPeerMessage): Removed.
  9661. (createHandshakeMessage): Removed.
  9662. (setPeerMessageCommonProperty): Removed.
  9663. (addRequestSlot): New function.
  9664. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9665. (getPeerMessageFactory): New function.
  9666. (createRequestMessage): Removed.
  9667. (createCancelMessage): Removed.
  9668. (createPieceMessage): Removed.
  9669. (createHaveMessage): Removed.
  9670. (createChokeMessage): Removed.
  9671. (createUnchokeMessage): Removed.
  9672. (createInterestedMessage): Removed.
  9673. (createNotInterestedMessage): Removed.
  9674. (createBitfieldMessage): Removed.
  9675. (createKeepAliveMessage): Removed.
  9676. (createHaveAllMessage): Removed.
  9677. (createHaveNoneMessage): Removed.
  9678. (createRejectMessage): Removed.
  9679. (createAllowedFastMessage): Removed.
  9680. * src/PeerInteraction.cc
  9681. (PeerInteraction): Allocate PeerMessageFactory here.
  9682. (~PeerInteraction): Deallocate PeerMessageFactory here.
  9683. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  9684. PieceMessage::ID.
  9685. (addMessage): Simplified by using PeerMessage::onPush().
  9686. (addRequestSlot): New function.
  9687. (rejectAllPieceMessageInQueue): Simplified by using
  9688. PeerMessage::onChoked().
  9689. (rejectPieceMessageInQueue): Simplified by using
  9690. PeerMessage::onCanceled().
  9691. (abortPiece): Simplified by using PeerMessage::abortPiece().
  9692. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9693. (createHandshakeMessage): Removed.
  9694. (createPeerMessage): Removed.
  9695. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  9696. (setPeerMessageCommonProperty): Removed.
  9697. (createRequestMessage): Removed.
  9698. (createCancelMessage): Removed.
  9699. (createPieceMessage): Removed.
  9700. (createHaveMessage): Removed.
  9701. (createChokeMessage): Removed.
  9702. (createUnchokeMessage): Removed.
  9703. (createInterestedMessage): Removed.
  9704. (createNotInterestedMessage): Removed.
  9705. (createBitfieldMessage): Removed.
  9706. (createKeepAliveMessage): Removed.
  9707. (createHaveAllMessage): Removed.
  9708. (createHaveNoneMessage): Removed.
  9709. (createRejectMessage): Removed.
  9710. (createAllowedFastMessage): Removed.
  9711. * src/PieceMessage.h
  9712. (createRejectMessage): New function.
  9713. (PieceMessage): Rewritten.
  9714. (onChoked): New function.
  9715. (onCanceled): New function.
  9716. * src/PieceMessage.cc
  9717. (send): If invalidate is true then do nothing, just return.
  9718. (createRejectMessage): New function.
  9719. (onChoked): New function.
  9720. (onCanceled): New function.
  9721. * src/RequestMessage.h
  9722. (RequestMessage): Rewritten.
  9723. (onPush): New function.
  9724. (onAbortPiece): New function.
  9725. * src/RequestMessage.cc
  9726. (onPush): New function.
  9727. (onAbortPiece): New function.
  9728. Update fd_set when a socket is added or deleted in order to improve
  9729. performance:
  9730. * src/DownloadEngine.h
  9731. (rfdset): New variable.
  9732. (wfdset): New variable.
  9733. (updateFdSet): New function.
  9734. * src/DownloadEngine.cc
  9735. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  9736. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  9737. (waitData): Copy rfdset and wfdset.
  9738. (updateFdSet): New function.
  9739. (addSocket): Call updateFdSet.
  9740. (deleteSocket): Call updateFdSet.
  9741. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9742. To add the support for Metalink3.0 backward compatible links:
  9743. * src/Request.h
  9744. (SAFE_CHARS): Added '#'.
  9745. (METALINK_MARK): New definition.
  9746. * src/Request.cc
  9747. (parseUrl): Added the support for Metalink3.0 backward compatible
  9748. links.
  9749. etc
  9750. * src/PeerInteraction.cc
  9751. (MsgPushBack): Removed.
  9752. (sendMessages): Use STL copy and back_inserter.
  9753. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  9754. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  9755. * src/TorrentMan.h
  9756. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  9757. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. * src/SharedHandle.h: New class.
  9759. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  9760. * src/HttpResponseCommand.h
  9761. (HttpResponseCommand): Wrapped Socket.
  9762. * src/SocketCore.h
  9763. (operator==): New function.
  9764. (operator!=): New function.
  9765. (operator<): New function.
  9766. (getSockfd): New function.
  9767. (isOpen): New function.
  9768. (writeData): New function.
  9769. * src/SocketCore.cc
  9770. (operator==): New function.
  9771. (operator!=): New function.
  9772. (operator<): New function.
  9773. * src/AbstractCommand.h
  9774. (socket): Changed its type to SocketHandle.
  9775. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9776. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9777. (disableReadCheckSocket): New function.
  9778. (disableWriteCheckSocket): New function.
  9779. (readCheckTarget): Changed its type to SocketHandle.
  9780. (writeCheckTarget): Changed its type to SocketHandle.
  9781. (AbstractCommand): Replaced Socket with SocketHandle.
  9782. * src/AbstractCommand.cc
  9783. (AbstractCommand): Replaced Socket with SocketHandle.
  9784. (~AbstractCommand): Removed the deallocation for Socket object.
  9785. (disableReadCheckSocket): New function.
  9786. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9787. (disableWriteCheckSocket): New function.
  9788. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9789. * src/HttpDownloadCommand.cc
  9790. (DownloadCommand): Replaced Socket with SocketHandle.
  9791. * src/PeerAbstractCommand.h
  9792. (socket): Changed its type to SocketHandle.
  9793. (peer): Changed its type to PeerHandle.
  9794. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9795. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9796. (disableReadCheckSocket): New function.
  9797. (disableWriteCheckSocket): New function.
  9798. (readCheckTarget): Changed its type to SocketHandle.
  9799. (writeCheckTarget): Changed its type to SocketHandle.
  9800. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9801. Replaced Peer with PeerHandle.
  9802. * src/HttpRequestCommand.cc
  9803. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9804. Use disableReadCheckSocket.
  9805. * src/PeerInitiateConnectionCommand.h
  9806. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9807. * src/PeerChokeCommand.cc
  9808. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  9809. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  9810. (execute): Use PeerHandle.
  9811. * src/PeerConnection.h
  9812. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  9813. (socket): Changed its type to SocketHandle.
  9814. (PeerConnection): Replaced Socket with SocketHandle.
  9815. * src/PeerConnection.cc
  9816. (PeerConnection): Replaced Socket with SocketHandle.
  9817. * src/PeerInteractionCommand.h
  9818. (PeerInteractionCommand): Replaced socket with SocketHandle.
  9819. Replaced Peer with PeerHandle.
  9820. * src/PeerInteractionCommand.cc
  9821. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  9822. Replaced Peer with PeerHandle.
  9823. (executeInternal): Use disableWriteCheckSocket.
  9824. Use HandshakeMessageHandle.
  9825. (receiveMessages): Use PeerMessageHandle.
  9826. (prepareForNextPeer): Use PeerHandle.
  9827. * src/HttpProxyRequestCommand.h
  9828. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9829. * src/HttpResponseCommand.cc
  9830. (HttpResponseCommand): Replaced Socket with SocketHandle.
  9831. * src/TorrentMan.cc
  9832. (nullPeer): Added external reference.
  9833. (~TorrentMan): Removed the deallocation of the elements of peers.
  9834. (addPeer): Rewritten.
  9835. (isPeerAvailable): Use nullPeer.
  9836. (deleteOldpeers): Replaced with deleteErrorPeer.
  9837. (deleteErrorPeer): New function.
  9838. (getPeer): Use PeerHandle and nullPeer.
  9839. (hasMissingPiece): Replaced Peer with PeerHandle.
  9840. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9841. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9842. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9843. (getMissingPiece): Replaced Peer with PeerHandle.
  9844. * src/FtpNegotiateCommand.cc
  9845. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  9846. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  9847. (recvGreeting): Use disableWriteCheckSocket.
  9848. (recvPasv): Removed the allocation of Socket.
  9849. Use disableReadCheckSocket.
  9850. (sendRestPasv): Use disableWriteCheckSocket.
  9851. (recvRetr): Changed assertion.
  9852. * src/PeerInteraction.h
  9853. (SharedHandle.h): Included SharedHandle.h.
  9854. (PeerMessageHandle): New type definition.
  9855. (HandshakeMessageHandle): New type definition.
  9856. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  9857. (peer): Changed its type to PeerHandle.
  9858. (createHandshakeMessage): Replaced HandshakeMessage with
  9859. HandshakeMessageHandle.
  9860. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  9861. (PeerInteraction): Replaced Peer with PeerHandle.
  9862. Replaced Socket with SocketHandle.
  9863. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9864. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9865. (receiveHandshake): Replaced HandshakeMessage with
  9866. HandshakeMessageHandle.
  9867. * src/PeerInteraction.cc
  9868. (PeerInteraction): Replaced Peer with PeerHandle.
  9869. Replaced Socket with SocketHandle.
  9870. (~PeerInteraction): Removed the deallocation of the elements of
  9871. messageQueue.
  9872. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  9873. (isSendingMessageInProgress): Replaced PeerMessage with
  9874. PeerMessageHandle.
  9875. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  9876. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9877. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  9878. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  9879. (abortPiece): Use PeerMessageHandle.
  9880. (receiveHandshake): Replaced HandshakeMessage with
  9881. HandshakeMessageHandle. Removed try-catch block.
  9882. (createHandshakeMessage): Replaced HandshakeMessage with
  9883. HandshakeMessageHandle.
  9884. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9885. Removed try-catch block.
  9886. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  9887. * src/HttpProxyResponseCommand.cc
  9888. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9889. * src/FtpTunnelResponseCommand.h
  9890. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9891. * src/HttpConnection.cc
  9892. (HttpConnection): Replaced Socket with SocketHandle.
  9893. * src/PeerAbstractCommand.cc
  9894. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9895. (~PeerAbstractCommand): Removed the deallocation of socket.
  9896. Use disableReadCheckSocket, disableWriteCheckSocket.
  9897. (disableReadCheckSocket): New function.
  9898. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9899. (disableWriteCheckSocket): New function.
  9900. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9901. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  9902. * src/FtpTunnelRequestCommand.cc
  9903. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9904. (~FtpTunnelRequestCommand): Corrected indentation.
  9905. * src/DownloadCommand.h
  9906. (DownloadCommand): Replaced Socket with SocketHandle.
  9907. * src/PeerListenCommand.cc
  9908. (PeerListenCommand): Removed the initialization of socket.
  9909. (~PeerListenCommand): Removed the deallocation of socket.
  9910. (bindPort): Use SocketHandle.
  9911. (execute): Use SocketHandle and PeerHandle.
  9912. * src/FtpDowndloadCommand.cc
  9913. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9914. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9915. * src/main.cc
  9916. (main): Corrected indentation.
  9917. * src/HttpInitiateConnectionCommand.cc
  9918. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9919. (executeInternal): Removed the allocation of socket.
  9920. * src/HttpRequestCommand.h
  9921. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9922. * src/FtpNegotiationCommand.h
  9923. (dataSocket): Changed its type to SocketHandle.
  9924. (serverSocket): Changed its type to SocketHandle.
  9925. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9926. * src/TorrentMan.h
  9927. (MAX_PEER_UPDATE): Removed.
  9928. (MAX_PEERS): New definition.
  9929. (Peers): The element is now of type PeerHandle.
  9930. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9931. (getPeer): Replaced Peer with PeerHandle.
  9932. (deleteOldErrorPeers): Removed.
  9933. (deleteErrorPeer): New function.
  9934. (hasMissingPiece): Replaced Peer with PeerHandle.
  9935. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9936. (getMissingPiece): Replaced Peer with PeerHandle.
  9937. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9938. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9939. (addActivePeer): Replaced Peer with PeerHandle.
  9940. (deleteActivePeer): Replaced Peer with PeerHandle.
  9941. Added a check for the return value of find.
  9942. * src/FtpTunnelResponseCommand.cc
  9943. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9944. * src/FtpInitiateConnectionCommand.cc
  9945. (executeInternal): Removed the allocation of socket.
  9946. * src/DownloadEngine.h
  9947. (Sockets): An element is now of type SocketHandle.
  9948. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9949. (CommandUuids): New type definition.
  9950. (rsockets): Changed its type to SockCmdMap.
  9951. (wsockets): Changed its type to SockCmdMap.
  9952. (addSocket): Rewritten.
  9953. (deleteSocket): Rewritten.
  9954. (addSocketForReadCheck): Rewritten.
  9955. (deleteSocketForReadCheck): Rewritten.
  9956. (addSocketForWriteCheck): Rewritten.
  9957. (deleteSocketForWriteCheck): Rewritten.
  9958. (PairFind): New template class.
  9959. * src/HttpDownloadCommand.h
  9960. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9961. * src/FtpConnection.cc
  9962. (FtpConnection): Replaced Socket with SocketHandle.
  9963. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9964. block.
  9965. * src/InitiateConnectionCommandFactory.cc
  9966. (DlAbortEx.h): Included DlAbortEx.h.
  9967. (createInitiateConnectionCommand): Throw exception if the protocol of
  9968. requested URI is not supported.
  9969. * src/Peer.cc
  9970. (nullPeer): Changed its type to PeerHandle.
  9971. (operator==): New function.
  9972. (operator!=): New function.
  9973. * src/Peer.h
  9974. (SharedHandle.h): Included SharedHandle.h.
  9975. (operator==): New function.
  9976. (operator!=): New function.
  9977. (Peer): Added the default constructor.
  9978. Use resetStatus() to initialize member variables.
  9979. (nullPeer): Removed.
  9980. * src/TrackerUpdateCommand.cc
  9981. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9982. with MIN_PEERS.
  9983. * src/PeerListenCommand.h
  9984. (socket): Changed its type to SocketHandle.
  9985. * src/Command.h
  9986. (CommandUuid): New type definition.
  9987. (uuid): New variable.
  9988. (uuidGen): New variable.
  9989. (Command): Added the initialization of uuid.
  9990. (getUuid): New function.
  9991. * src/Socket.h
  9992. (Socket): Removed.
  9993. (SocketHandle): New type definition.
  9994. * src/DownloadEngine.h
  9995. (FindCommand): New function object.
  9996. (run): The portion of socket check was rewritten.
  9997. (SetDescriptor): New function object.
  9998. (AccumulateActiveCommandUuid): New function object.
  9999. (waitData): Rewritten.
  10000. (addSocket): Rewritten.
  10001. (deleteSocket): Rewritten.
  10002. (addSocketForReadCheck): Rewritten.
  10003. (addSocketForWriteCheck): Rewritten.
  10004. (deleteSocketForReadCheck): Rewritten.
  10005. (deleteSocketForWriteCheck): Rewritten.
  10006. * src/HttpProxyResponseCommand.h
  10007. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10008. * src/HttpConnection.h
  10009. (socket): Changed its type to SocketHandle.
  10010. (HttpConnection): Replaced Socket with SocketHandle.
  10011. * src/PeerInitiateConnectionCommand.cc
  10012. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10013. (executeInternal): Removed the allocation of socket.
  10014. (prepareForNextPeer): Use PeerHandle.
  10015. * src/PeerMessage.h
  10016. (peer): Changed its type to PeerHandle.
  10017. (getPeer): Replaced Peer with PeerHandle.
  10018. (setPeer): Replaced Peer with PeerHandle.
  10019. * src/DownloadCommand.cc
  10020. (DownloadCommand): Replaced Socket with SocketHandle.
  10021. * src/FtpConnection.h
  10022. (socket): Changed its type to SocketHandle.
  10023. (FtpConnection): Replaced Socket with SocketHandle.
  10024. (sendPort); Replaced Socket with SocketHandle.
  10025. * src/FtpDowndloadCommand.h
  10026. (ctrlSocket): Changed its type to SocketHandle.
  10027. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10028. * src/HttpProxyRequestCommand.cc
  10029. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10030. * src/FtpTunnelRequestCommand.h
  10031. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10032. etc
  10033. * src/PeerChokeCommand.h
  10034. (setAllPeerChoked): Removed.
  10035. (setAllPeerResetDelta): Removed.
  10036. * src/PeerChokeCommand.cc
  10037. (setAllPeerChoked): Removed.
  10038. (ChokePeer): New function object.
  10039. (setAllPeerResetDelta): Removed.
  10040. (ResetDelta): New function object.
  10041. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10042. (execute): Show download speed when the local node is a seeder.
  10043. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10044. using STL.
  10045. * src/TrackerWatcherCommand.h
  10046. (MIN_PEERS): Removed.
  10047. * src/TorrentMan.cc
  10048. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10049. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. To fix the bug that .aria2 file is not saved if downloading is stopped
  10051. by the errors:it results that aria2 can not resume downloading:
  10052. * src/main.cc
  10053. (normalDownload): Added the call to save().
  10054. (main): Added the deletion of the elements in 'reserved'.
  10055. To fix log:
  10056. * src/PeerInteraction.cc
  10057. (receiveHandshake): Fixed log.
  10058. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. To improve download performance in BitTorrent:
  10060. * src/TorrentMan.cc
  10061. (getPeer): Check the number of connections. Return nullPeer if
  10062. it is greater than MAX_PEER_UPDATE.
  10063. This code was originally here, but was removed in 0.5.1.
  10064. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10065. To improve the conditional compilation:
  10066. * src/MultiDiskWriter.h:
  10067. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10068. * src/MultiDiskWriter.cc:
  10069. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10070. * src/Util.h:
  10071. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10072. Added ENABLE_BITTORRENT around computeFastSet().
  10073. * src/Util.cc:
  10074. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10075. Added ENABLE_BITTORRENT around computeFastSet().
  10076. * src/messageDigest.h:
  10077. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10078. * src/ShaVisitor.h:
  10079. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10080. * src/ShaVisitor.cc:
  10081. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10082. * src/main.cc:
  10083. Added ENABLE_BITTORRENT around includes and blocks related to
  10084. BitTorrent.
  10085. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10086. digest support is not available.
  10087. * src/AbstractDiskWriter.h:
  10088. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10089. * src/AbstractDiskWriter.cc:
  10090. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10091. * src/MetalinkEntry.cc
  10092. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10093. support is not available.
  10094. To add command-line options for Metalink:
  10095. * src/main.cc:
  10096. Added metalink-version, metalink-language, metalink-os,
  10097. follow-metalink.
  10098. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10099. * src/main.cc: Use these definition.
  10100. * Release 0.6.0
  10101. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. To add Metalink support(http/ftp only):
  10103. * src/AbstractCommand.h
  10104. (tryReserved): New function.
  10105. * src/AbstractCommand.cc
  10106. (execute): Call tryReserved().
  10107. (tryReserved): New function.
  10108. * src/Request.h
  10109. (Requests): New type definition.
  10110. * src/SegmentMan.h
  10111. (reserved): New variable.
  10112. * src/Util.h
  10113. (fileChecksum): New function.
  10114. (toUpper): New function.
  10115. (toLower): New function.
  10116. * src/Util.cc
  10117. (messageDigest.h): Included.
  10118. (trim): Trim \r\n\t.
  10119. (fileChecksum): New function.
  10120. (toUpper): New function.
  10121. (toLower): New function.
  10122. * src/main.cc
  10123. (normalDownload): New function.
  10124. (main): Added 2 command-line options: metalink-file,
  10125. metalink-connection. Their usage has not been written yet.
  10126. * src/MetalinkProcessor.h: New class.
  10127. * src/Xml2MetalinkProcessor.h: New class.
  10128. * src/Xml2MetalinkProcessor.cc: New class.
  10129. * src/MetalinkEntry.h: New class.
  10130. * src/MetalinkEntry.cc: New class.
  10131. * src/MetalinkResource.h: New class.
  10132. * src/MetalinkResource.cc: New class.
  10133. To add md5 message digest checking:
  10134. * src/messageDigest.h: Rewritten.
  10135. * src/MultiDiskWriter.cc: Updated according to the changes in
  10136. messageDigest.h.
  10137. * src/ShaVisitor.cc: Updated according to the changes in
  10138. messageDigest.h.
  10139. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10140. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10141. messageDigest.h.
  10142. To fix a bug that causes segfault when the payload length in peer
  10143. message is less than 0:
  10144. * src/PeerConnection.cc:
  10145. (receiveMessage): Fixed the bug.
  10146. * src/PeerMessageUtil.cc
  10147. (checkLength): Throw an exception if length is less than or equals to
  10148. 0.
  10149. To add new interfaces to Base64 encoding/decoding:
  10150. * src/Base64.h
  10151. (part_encode): Changed the method signature.
  10152. (encode): New function(overload).
  10153. (decode): New function(overload).
  10154. * src/Base64.cc
  10155. (part_encode): Rewritten.
  10156. (encode): Rewritten.
  10157. (encode): New function(overload).
  10158. To prevent a peer to download same piece if there is an error in
  10159. checksum:
  10160. * src/PieceMessage.cc
  10161. (receivedAction): Call peerInteraction->abortPiece().
  10162. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. To fix the bug that causes same have message is sent many times to
  10164. a single peer.
  10165. * src/Time.cc
  10166. (isNewer): Use Util::difftv().
  10167. * src/Util.cc
  10168. (difftv): Added a cast to (long long int).
  10169. * src/TorrentMan.cc
  10170. (advertisePiece): Use push_front.
  10171. (getAdvertisedPieceIndexes): A performance improvement was made.
  10172. To fix the bug that sends tracker requests without a sleep interval
  10173. when the number of connections is less than 15.
  10174. * src/TrackerWatcherCommand.cc
  10175. (execute): Now the number of connections is not a factor to decide
  10176. whether or not a tracker request should be sent or not.
  10177. * src/Time.h
  10178. (setTimeInSec): New function.
  10179. * src/Time.cc
  10180. (setTimeInSec): New function.
  10181. etc.
  10182. * src/ChokeMessage.cc
  10183. (receivedAction): Removed peer->snubbing = false
  10184. * src/PeerConnection.h
  10185. (receiveHandshake): Updated doc.
  10186. * src/TorrentMan.h
  10187. (getAdvertisedPieceIndexes): Updated the method signature.
  10188. * src/TorrentMan.cc
  10189. (getAdvertisedPieceIndexes): Updated the method signature.
  10190. * src/Time.h
  10191. (getTimeInMicros): Added a cast to (long long int).
  10192. (getTimeInMillis): Added a cast to (long long int).
  10193. * Release 0.5.2
  10194. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. To make a listening socket non-block:
  10196. * src/SocketCore.h
  10197. (setNonBlockingMode): New function.
  10198. * src/SocketCore.cc
  10199. (setNonBlockingMode): New function.
  10200. (beginListen): Added a call to setNonBlockingMode().
  10201. (acceptConnection): Call setNonBlockingMode().
  10202. (setBlockingMode): Updated.
  10203. To handle tracker's NAT-checking:
  10204. * src/PeerConnection.cc
  10205. (receiveHandshake): 'msg' param is filled with received data and
  10206. its length is assigned to 'length' param, even if all handshake
  10207. message is not yet received.
  10208. * src/PeerInteractionCommand.cc
  10209. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10210. a new peer connects to localhost.
  10211. A call to peerInteraction->sendHandshake() was removed because
  10212. it is called from peerInteraction->receiveHandshake(true).
  10213. * src/PeerInteraction.h
  10214. (quickReplied): New variable.
  10215. (receiveHandshake): Added an argument.
  10216. * src/PeerInteraction.cc
  10217. (PeerInteraction): Added the initialization of quickReplied.
  10218. (receiveHandshake): Send handshake message as soon as the info hash
  10219. in a handshake message from a peer is correct.
  10220. To change the random part of peer id and key parameter:
  10221. * src/TorrentMan.h
  10222. (key): New variable.
  10223. * src/TorrentMan.cc
  10224. (setupInternal1): Use Util::randomAlpha() to generate random part
  10225. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10226. key is also generated by Util::randomAlpha() and it is now 8 character
  10227. long.
  10228. * src/Util.h
  10229. (randomAlpha): New function.
  10230. * src/Util.cc
  10231. (randomAlpha): New function.
  10232. * src/TrackerWatcherCommand.cc
  10233. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10234. Added no_peer_id=1.
  10235. Set snubbing flag to false when a choke message is received from a
  10236. snubbed peer.
  10237. * src/ChokeMessage.cc
  10238. (receivedAction): Set snubbing flag to false.
  10239. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10241. * src/SimpleLogger.h (writeHeader): New function.
  10242. * src/SimpleLogger.cc (writeHeader): New function.
  10243. (writeLog): Fixed the bug that causes segfaults if exception message
  10244. contains an unescaped "%" character.
  10245. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10246. when a tracker request fails.
  10247. * src/Request.cc (parseUrl): Query string is now handled properly.
  10248. * Release 0.5.1
  10249. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. To add Time class which represents a specific instant in time and
  10251. its precision is microseconds. Time checking procedures were rewritten
  10252. using this object.
  10253. * src/Time.h: New class.
  10254. * src/Time.cc: New class.
  10255. * src/AbstractCommand.h
  10256. (updateCheckPoint): Removed.
  10257. (isTimeoutDetected): Removed.
  10258. (checkPoint): Changed the type to Time.
  10259. (timeout): New variable.
  10260. (setTimeout): New function.
  10261. * src/AbstractCommand.cc
  10262. (AbstractCommand): Removed the initialization of checkPoint.
  10263. Added the initialization of timeout.
  10264. (updateCheckPoint): Removed.
  10265. (isTimeoutDetected): Removed.
  10266. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10267. * src/PeerChokeCommand.h
  10268. (checkPoint): Changed the type to Time.
  10269. * src/PeerChokeCommand.cc
  10270. (PeerChokeCommand): Removed the initialization of checkPoint.
  10271. (execute): Rewritten using Time object.
  10272. * src/TrackerWatcherCommand.h
  10273. (checkPoint): Changed the type to Time.
  10274. * src/TrackerWatcherCommand.cc
  10275. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10276. (execute): Rewritten.
  10277. * src/ConsoleDownloadEngine.h
  10278. (cp): Changed the type to Time.
  10279. (startup): Changed the type to Time.
  10280. * src/ConsoleDownloadEngine.cc
  10281. (initStatistics): Use cp.reset(), startup.reset().
  10282. (calculateStatistics): Rewritten using Time object.
  10283. * src/PeerAbstractCommand.h
  10284. (updateCheckPoint): Removed.
  10285. (isTimeoutDetected): Removed.
  10286. (checkPoint): Changed the type to Time.
  10287. * src/PeerAbstractCommand.cc
  10288. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10289. (updateCheckPoint): Removed.
  10290. (isTimeoutDetected): Removed.
  10291. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10292. * src/PeerInteractionCommand.cc
  10293. (PeerInteractionCommand): Removed the initializations of struct
  10294. timeval variables.
  10295. * src/PeerInteractionCommand.h
  10296. (keepAliveCheckPoint): Changed the type to Time.
  10297. (chokeCheckPoint): Changed the type to Time.
  10298. (freqCheckPoint): Changed the type to Time.
  10299. (haveCheckTime): Changed the type to Time.
  10300. * src/PeerInteractionCommand.cc
  10301. (executeInternal): Rewritten using Time object.
  10302. (detectMessageFlooding): Rewritten using Time object.
  10303. (checkLongTimePeerChoking): Rewritten using Time object.
  10304. (sendKeepAlive): Rewritten using Time object.
  10305. (checkHave): Rewritten using Time object.
  10306. * src/SleepCommand.h
  10307. (checkPoint): Changed the type to Time.
  10308. * src/SleepCommand.cc
  10309. (SleepCommand): Removed the initialization of checkPoint.
  10310. (execute): Rewritten using Time object.
  10311. * src/TorrentAutoSaveCommand.h
  10312. (checkPoint): Changed the type to Time.
  10313. * src/TorrentAutoSaveCommand.cc
  10314. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  10315. (execute): Rewritten.
  10316. * src/DownloadCommand.h
  10317. (sw): Changed the type to Time.
  10318. * src/DownloadCommand.cc
  10319. (DownloadCommand): Removed the initialization of sw.
  10320. (executeInternal): Rewritten.
  10321. * src/RequestSlot.h
  10322. (dispatchedTime): Changed the type to Time.
  10323. * src/RequestSlot.cc
  10324. (RequestSlot): Removed the call to setDispatchedTime().
  10325. (setDispatchedTime): Rewirtten.
  10326. (isTimeout): Rewritten.
  10327. (getLatencyInMillis): Rewritten.
  10328. * src/TorrentDownloadEngine.h
  10329. (cp): Changed the type to Time[2].
  10330. (startup): Changed the type to Time.
  10331. * src/TorrentDownloadEngine.cc
  10332. (initStatistics): Rewritten.
  10333. (calculateStatistics): Rewritten.
  10334. * src/DownloadEngine.cc
  10335. (run): Rewritten.
  10336. To detect all attempts to connect to the tracker are failed:
  10337. * src/AbstractCommand.cc
  10338. (execute): Increment e->segmentMan->errors if a command aborted.
  10339. * src/SegmentMan.h
  10340. (errors): New variable.
  10341. * src/SegmentMan.cc
  10342. (SegmentMan): Added the initialization of errors.
  10343. (init): Added the initialization of errors.
  10344. * src/TrackerWatcherCommand.cc
  10345. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  10346. request was failed.
  10347. To handle snubbed peers:
  10348. * src/PeerChokeCommand.cc
  10349. (optUnchokingPeer): Snubbed peers don't get unchoked.
  10350. (execute): Snubbed peers don't get unchoked.
  10351. * src/PeerInteraction.h
  10352. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  10353. * src/PeerInteraction.cc
  10354. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  10355. back the requested 16k block in 60 seconds.
  10356. * src/PieceMessage.cc
  10357. (receivedAction): A peer's snubbed state is cleard if it sends
  10358. the requested 16k block in 60 seconds.
  10359. * src/Peer.h
  10360. (snubbing): New variable.
  10361. * src/Peer.cc
  10362. (resetStatus): Added snubbed = false.
  10363. To fix the bug that causes have message is not sent:
  10364. * src/PeerInteractionCommand.cc
  10365. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  10366. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  10367. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  10368. * src/TorrentMan.h
  10369. (HaveEntry): New class.
  10370. (advertisePiece): Rewritten.
  10371. (getAdvertisedPieceIndexes): Rewritten.
  10372. (Haves): Changed the type.
  10373. (getAdvertisedPieceIndexes): Added an argument.
  10374. Others:
  10375. * src/TorrentMan.h
  10376. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  10377. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  10378. * src/TorrentMan.cc
  10379. (getPeer): Don't check the number of connections here.
  10380. (setupInternal1): Changed peerId.
  10381. * src/PeerInteractionCommand.h
  10382. (KEEP_ALIVE_INTERVAL): New definition.
  10383. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  10384. * src/main.cc
  10385. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  10386. * src/DownloadEngine.h: Removed unnecessary header includes.
  10387. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10388. To fix the bug that causes segfaults if a tracker returns a zero-length
  10389. list as "peers":
  10390. * src/TrackerUpdateCommand.cc
  10391. (execute): Added a check to see wether the type of peers is Data*.
  10392. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10393. * Release 0.5.0
  10394. To fix compile issue with gcc3:
  10395. * src/CancelMessage.h
  10396. (ID): Renamed as ID_t
  10397. (ID_t): New enum.
  10398. * src/RejectMessage.h
  10399. (ID): Renamed as ID_t
  10400. (ID_t): New enum.
  10401. * src/SuggestPieceMessage.h
  10402. (ID): Renamed as ID_t
  10403. (ID_t): New enum.
  10404. * src/AllowedFastMessage.h
  10405. (ID): Renamed as ID_t
  10406. (ID_t): New enum.
  10407. * src/PortMessage.h
  10408. (ID): Renamed as ID_t
  10409. (ID_t): New enum.
  10410. * src/HaveNoneMessage.h
  10411. (ID): Renamed as ID_t
  10412. (ID_t): New enum.
  10413. * src/KeepAliveMessage.h
  10414. (ID): Renamed as ID_t
  10415. (ID_t): New enum.
  10416. * src/HaveAllMessage.h
  10417. (ID): Renamed as ID_t
  10418. (ID_t): New enum.
  10419. * src/UnchokeMessage.h
  10420. (ID): Renamed as ID_t
  10421. (ID_t): New enum.
  10422. * src/BitfieldMessage.h
  10423. (ID): Renamed as ID_t
  10424. (ID_t): New enum.
  10425. * src/PieceMessage.h
  10426. (ID): Renamed as ID_t
  10427. (ID_t): New enum.
  10428. * src/RequestMessage.h
  10429. (ID): Renamed as ID_t
  10430. (ID_t): New enum.
  10431. * src/NotInterestedMessage.h
  10432. (ID): Renamed as ID_t
  10433. (ID_t): New enum.
  10434. * src/ChokeMessage.h
  10435. (ID): Renamed as ID_t
  10436. (ID_t): New enum.
  10437. * src/InterestedMessage.h
  10438. (ID): Renamed as ID_t
  10439. (ID_t): New enum.
  10440. * src/HaveMessage.h
  10441. (ID): Renamed as ID_t
  10442. (ID_t): New enum.
  10443. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. * src/PeerAbstractCommand.h
  10445. (beforeSocketCheck): Removed.
  10446. * src/PeerAbstractCommand.cc
  10447. Modified in order to call executeInternal() even if socket check
  10448. and upload limit check fail.
  10449. * src/PeerInteractionCommand.h
  10450. (keepAlive): Removed.
  10451. (sendKeepAlive): New function.
  10452. (checkHave): New function.
  10453. (beforeSocketCheck): Removed.
  10454. * src/PeerInteractionCommand.cc
  10455. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  10456. calls to checkHave() and sendKeepAlive().
  10457. (keepAlive): Renamed to sendKeepAlive().
  10458. (sendKeepAlive): New function.
  10459. (beforeSocketCheck): Removed.
  10460. (checkHave): New function.
  10461. * src/BitfieldMan.cc
  10462. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  10463. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  10464. 0.
  10465. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  10466. * src/TorrentMan.h
  10467. (UsedPieces): Removed.
  10468. (Pieces): New type definition.
  10469. * src/Piece.h: Updated doc.
  10470. * src/Peer.h
  10471. (totalLength): Removed.
  10472. * src/Peer.cc
  10473. (updateLatency): Fixed the latency calculation.
  10474. * src/TorrentMan.cc
  10475. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  10476. than or equal to MAX_PEER_LIST_SIZE.
  10477. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  10478. then return false.
  10479. (deleteOldErrorPeers): Rewritten.
  10480. (deleteUsedPiece): Fixed the miss use of STL remove.
  10481. * src/PeerInteraction.h
  10482. (Pieces): Removed.
  10483. (deleteTimeoutRequestSlot): Removed.
  10484. (deleteCompletedRequestSlot): Removed.
  10485. (checkRequestSlot): New function.
  10486. * src/PeerInteraction.cc
  10487. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  10488. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  10489. (checkRequestSlot): New function.
  10490. * src/DownloadEngine.cc
  10491. (run): Clear activeSockets before calling waitData().
  10492. (waitData): Removed a call to activeSockets.clear().
  10493. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10494. To attempt to handle EINTR:
  10495. * src/SocketCore.cc
  10496. (isReadable): Added EINTR handling.
  10497. (isWritable): Added EINTR handling.
  10498. To improve the performance:
  10499. * src/AbstractCommand.cc
  10500. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10501. * src/PeerInteractionCommand.h
  10502. (receiveMessage): Renamed as receiveMessages().
  10503. (receiveMessages): New function.
  10504. * src/PeerInteractionCommand.cc
  10505. (executeInternal): receiveMessage loop is moved to new receiveMessages
  10506. () function. detectMessageFlooding() is moved here.
  10507. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  10508. (). The flooding detection for have message is comment out.
  10509. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  10510. Util::difftv().
  10511. (receiveMessage): Renamed as receiveMessages().
  10512. (receiveMessages): New function.
  10513. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  10514. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  10515. * src/SleepCommand.cc
  10516. (execute): Use Util::difftvsec() instead of Util::difftv().
  10517. * src/BitfieldMan.h
  10518. (getNthBitIndex): New function.
  10519. (hasMissingPiece): New function.
  10520. (getAllMissingIndexes): New function.
  10521. * src/BitfieldMan.cc
  10522. (countSetBit): Rewritten.
  10523. (getNthBitIndex): New function.
  10524. (getMissingIndexRandomly): Rewritten.
  10525. (hasMissingPiece): New function.
  10526. (getAllMissingIndexes): New function.
  10527. * src/TorrentMan.cc
  10528. (hasMissingPiece): New function.
  10529. (deleteUsedPiece): Rewritten using STL.
  10530. * src/PeerInteraction.cc
  10531. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  10532. is a little bit faster then TorrentMan::getMissingPieceIndex().
  10533. (addRequests): Updated the number of pending requests.
  10534. * src/PeerAbstractCommand.cc
  10535. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10536. (execute): Returns true if TorrentMan::isHalt() is true.
  10537. Corrected the condition of upload limit checking.
  10538. * src/Util.h
  10539. (countBit): New function.
  10540. * src/Util.cc
  10541. (nbits): New variable.
  10542. (countBit): New function.
  10543. * src/DownloadEngine.h
  10544. (SockCmdMap): New type definition.
  10545. (waitData): Added an argument.
  10546. (addSocket): Added an argument.
  10547. (addSocketForReadCheck): Added an argument.
  10548. (addSocketForWriteCheck): Added an argument.
  10549. * src/DownloadEngine.cc
  10550. (run): Executes only commands whose sockets are ready to read or write.
  10551. All commands are executed in every 1 second.
  10552. (waitData): Calls select() again if it returned
  10553. EINTR.
  10554. (addSocket): Saves socket and command object pair to the map.
  10555. (deleteSocket): Deletes socket and command object pair from the map.
  10556. (addSocketForReadCheck): Added an argument.
  10557. (addSocketForWriteCheck): Added an argument.
  10558. * src/DownloadCommand.cc
  10559. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  10560. To send "event=stopped" to the tracker when the application finishes:
  10561. * src/PeerChokeCommand.h
  10562. (checkPoint): New variable.
  10563. * src/PeerChokeCommand.cc
  10564. (PeerChokeCommand): Added the initialization of checkPoint.
  10565. (execute): The interval check is now done by checkPoint, not
  10566. SleepCommand. Return true if TorrentMan::isHalt() is true.
  10567. * src/TorrentMan.h
  10568. (halt): New function.
  10569. (hasMissingPiece): New function.
  10570. (isHalt): New function.
  10571. (setHalt): New function.
  10572. * src/TorrentMan.cc
  10573. (TorrentMan): Added the initialization of halt.
  10574. * src/TorrentAutoSaveCommand.h
  10575. (checkPoint): New variable.
  10576. * src/PeerListenCommand.cc
  10577. (execute): Returns true if TorrentMan::isHalt() is true.
  10578. * src/main.cc
  10579. (setSignalHander): Added flags argument.
  10580. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  10581. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  10582. Removed printDownloadAbortMessage() after torrent downloading loop.
  10583. * src/TorrentAutoSaveCommand.cc
  10584. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  10585. (execute): Returns true if TorrentMan::isHalt() is true.
  10586. The interval check is now done by checkPoint, not SleepCommand.
  10587. * src/TrackerWatcherCommand.cc
  10588. (execute): If TorrentMan::isHalt(), then create a tracker request with
  10589. event=stopped.
  10590. * src/TrackerUpdateCommand.cc
  10591. (prepareForRetry): Do not use SleepCommand here.
  10592. (execute): Returns true if TorrentMan::isHalt() is true.
  10593. Others:
  10594. * src/TorrentMan.cc
  10595. (getMissingPieceIndex): Updated log message.
  10596. * src/PeerInteraction.cc
  10597. (createPeerMessag): Updated log message.
  10598. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10599. To add the ability to download several pieces in mix in a command and
  10600. increase the number of request slots according to request-cancel
  10601. latency:
  10602. * src/PeerInteractionCommand.cc
  10603. (executeInternal): The number of messages to be received at a time
  10604. is increased from 10 to 50.
  10605. * src/LogFactory
  10606. (getInstance): Added NullLogger.
  10607. * src/NullLogger.h: New class.
  10608. * src/BitfieldMan.h
  10609. (getMissingIndex): New function.
  10610. * src/BitfieldMan.cc
  10611. (getMissingIndex): New function.
  10612. * src/TorrentMan.h
  10613. (checkOutPiece): New function.
  10614. (getMissingPieceIndex): New function.
  10615. (getMissingFastPieceIndex): New function.
  10616. (getMissingFastPiece): New function.
  10617. * src/TorrentMan.cc
  10618. (updatePiece): Rewritten using STL.
  10619. (syncPiece): Rewritten using STL.
  10620. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  10621. checkOutPiece().
  10622. (getMissingPieceIndex): New function.
  10623. (getMissingFastPieceIndex): New function.
  10624. (getMissingFastPiece): New function.
  10625. (checkOutPiece): New function.
  10626. * src/PeerInteraction.h
  10627. (Pieces): New type definition.
  10628. (piece): Removed.
  10629. (pieces): New variable.
  10630. (getNewPieceAndSendInterest): Added the "piece" argument.
  10631. (abortPiece): Added the "piece" argument.
  10632. (abortAllPieces): New function.
  10633. (isInRequestSlot): New function.
  10634. (hasDownloadPiece): Added the "index" argument.
  10635. (setDownloadPiece): Removed.
  10636. (getDownloadPiece): Added the "index" argument.
  10637. (updatePiece): New function.
  10638. (createRequestMessage): Added the "index" argument.
  10639. * src/PeerInteraction.cc
  10640. (onChoked): Rewritten.
  10641. (abortPiece): Rewirtten.
  10642. (abortAllPieces): New function.
  10643. (deleteTimeoutRequestSlot): Rewritten.
  10644. Clarified code a little bit.
  10645. (deleteCompletedRequestSlot): Rewritten.
  10646. (isInRequestSlot): New function.
  10647. (syncPiece): Rewritten.
  10648. (updatePiece): New function.
  10649. (getNewPieceAndSendInterest): Rewritten.
  10650. (addRequests): Rewritten.
  10651. (getDownloadPiece): Rewritten.
  10652. (hasDownloadPiece): Rewritten.
  10653. (createRequestMessage): Added the "index" argument.
  10654. * src/common.h
  10655. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  10656. (DIV_FLOOR): New definition.
  10657. * src/PieceMessage.cc
  10658. (receivedAction): Update request-piece latency here.
  10659. * src/RequestSlot.h
  10660. (getLatencyInMillis): New function.
  10661. * src/RequestSlot.cc
  10662. (isTimeout): Rewritten using getLatencyInMillis.
  10663. (getLatencyInMillis): New function.
  10664. * src/Piece.h
  10665. (operator==): New function.
  10666. (getMissingBlockIndex): New function.
  10667. * src/Piece.cc
  10668. (operator==): New function.
  10669. (getMissingBlockIndex): New function.
  10670. * src/Peer.h
  10671. (DEFAULT_LATENCY): New definition.
  10672. (latency): New variable.
  10673. (updateLatency): New function.
  10674. (getLatency): New function.
  10675. * src/Peer.cc
  10676. (resetStatus): Reset latecy.
  10677. (updateLatency): New function.
  10678. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10679. * src/SocketCore.cc
  10680. (isReadable): Added secure to the condition.
  10681. * src/HttpConnection.cc
  10682. (receiveResponse): Fixed a bug that causes no response header
  10683. exception.
  10684. * src/Peer.h
  10685. (getFastSet): Fixed the return value type.
  10686. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. To remove a wait from download loop:
  10688. * src/DownloadEngine.cc
  10689. (run): Comment out shortSleep.
  10690. To rewrite the message handling:
  10691. * src/SimplePeerMessage.h: New class.
  10692. * src/SimplePeerMessage.cc: New class.
  10693. * src/CancelMessage.h: Derived from SimplePeerMessage.
  10694. (msg): New variable.
  10695. (create): New function.
  10696. (send): Removed.
  10697. (getMessage): New function.
  10698. (getMessageLength): New function.
  10699. * src/CancelMessage.cc
  10700. (create): New function.
  10701. (receivedAction): Replaced deleteRequestMessageInQueue with
  10702. rejectPieceMessageInQueue.
  10703. (send): Removed.
  10704. (getMessage): New function.
  10705. (getMessageLength): New function.
  10706. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  10707. (msg): New variable.
  10708. (msgLength): New variable.
  10709. (~BitfieldMessage): Deleted msg.
  10710. (send): Removed.
  10711. (getMessage): New function.
  10712. (getMessageLength): New function.
  10713. * src/BitfieldMessage.cc
  10714. (create): New function.
  10715. (send): Removed.
  10716. (getMessage): New function.
  10717. (getMessageLength): New function.
  10718. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  10719. (msg): New variable.
  10720. (sendPredicate): New function.
  10721. (onSendComplete): New function.
  10722. (send): Removed.
  10723. (getMessage): New function.
  10724. (getMessageLength): New function.
  10725. (create): New function.
  10726. * src/ChokeMessage.cc
  10727. (create): New function.
  10728. (send): Removed.
  10729. (sendPredicate): New function.
  10730. (getMessage): New function.
  10731. (getMessageLength): New function.
  10732. (onSendComplete): New function.
  10733. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  10734. (msg): New variable.
  10735. (send): Removed.
  10736. (getMessage): New function.
  10737. (getMessageLength): New function.
  10738. * src/KeepAliveMessage.cc
  10739. (send): Removed.
  10740. (getMessage): New function.
  10741. (getMessageLength): New function.
  10742. * src/PortMessage.h
  10743. (create): New function.
  10744. (receivedAction): Updated log message.
  10745. * src/PortMessage.cc: New file.
  10746. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  10747. (msg): New variable.
  10748. (sendPredicate): New function.
  10749. (onSendComplete): New function.
  10750. (create): New function.
  10751. (send): Removed.
  10752. (getMessage): New function.
  10753. (getMessageLength): New function.
  10754. * src/UnchokeMessage.cc
  10755. (create): New function.
  10756. (send): Removed.
  10757. (sendPredicate): New function.
  10758. (getMessage): New function.
  10759. (getMessageLength): New function.
  10760. (onSendComplete): New function.
  10761. * src/PieceMessage.h
  10762. (leftPieceDataLength): Removed.
  10763. (leftDataLength): New variable.
  10764. (headerSend): New variable.
  10765. (pendingCount): New variable.
  10766. (msgHeader): New variable.
  10767. (sendPieceData): New function.
  10768. (incrementPendingCount): New function.
  10769. (isPendingCountMax): New function.
  10770. (create): New function.
  10771. (getMessageHeader): New function.
  10772. (getMessageHeaderLength): New function.
  10773. * src/PieceMessage.cc
  10774. (create): New function.
  10775. (getMessageHeader): New function.
  10776. (getMessageHeaderLength): New function.
  10777. (send): Rewritten.
  10778. (sendPieceData): New function.
  10779. * src/HaveMessage.h: Derived from SimplePeerMessage.
  10780. (msg): New variable.
  10781. (create): New function.
  10782. (getMessage): New function.
  10783. (getMessageLength): New function.
  10784. * src/HaveMessage.cc
  10785. (create): New function.
  10786. (send): Removed.
  10787. (sendPieceData): New function.
  10788. (getMessage): New function.
  10789. (getMessageLength): New function.
  10790. * src/RequestMessage.h: Derived from SimplePeerMessage.
  10791. (msg): New variable.
  10792. (create): New function.
  10793. (send): Removed.
  10794. (getMessage): New function.
  10795. (getMessageLength): New function.
  10796. * src/RequestMessage.cc
  10797. (create): New function.
  10798. (receivedAction): Added the handling of fast extension.
  10799. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  10800. (send): Removed.
  10801. (getMessage): New function.
  10802. (getMessageLength): New function.
  10803. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  10804. (msg): New variable.
  10805. (sendPredicate): New function.
  10806. (onSendComplete): New function.
  10807. (create): New function.
  10808. (getMessage): New function.
  10809. (getMessageLength): New function.
  10810. * src/InterestedMessage.cc
  10811. (create): New function.
  10812. (send): Removed.
  10813. (sendPieceData): New function.
  10814. (getMessage): New function.
  10815. (getMessageLength): New function.
  10816. (onSendComplete): New function.
  10817. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  10818. (msg): New variable.
  10819. (sendPieceData): New function.
  10820. (onSendComplete): New function.
  10821. (create): New function.
  10822. (send): Removed.
  10823. (getMessage): New function.
  10824. (getMessageLength): New function.
  10825. * src/NotInterestedMessage.cc
  10826. (create): New function.
  10827. (send): Removed.
  10828. (sendPredicate): New function.
  10829. (getMessage): New function.
  10830. (getMessageLength): New function.
  10831. (onSendComplete): New function.
  10832. * src/AllowedFastMessage.h: New class.
  10833. * src/AllowedFastMessage.cc: New class.
  10834. * src/RejectMessage.h: New class.
  10835. * src/RejectMessage.cc: New class.
  10836. * src/SuggestPieceMessage.h: New class.
  10837. * src/SuggestPieceMessage.cc: New class.
  10838. * src/HaveAllMessage.h: New class.
  10839. * src/HaveAllMessage.cc: New class.
  10840. * src/HaveNoneMessage.h: New class.
  10841. * src/HaveNoneMessage.cc: New class.
  10842. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  10843. (msg): New variable.
  10844. (reserved): New variable.
  10845. (create): New function.
  10846. (getId): New function.
  10847. (receivedAction): New function.
  10848. (getMessage): New function.
  10849. (getMessageLength): New function.
  10850. (isFastExtensionSupported): New function.
  10851. * src/HandshakeMessage.cc
  10852. (HandshakeMessage): Moved here from HandshakeMessage.h.
  10853. (create): New function.
  10854. (getMessage): New function.
  10855. (getMessageLength): New function.
  10856. (toString): Added the output of reserved field.
  10857. (check): Added const qualifier.
  10858. (isFastExtensionSupported): New function.
  10859. * src/PeerMessageUtil.h
  10860. (createChokeMessage): Removed.
  10861. (createUnchokeMessage): Removed.
  10862. (createInterestedMessage): Removed.
  10863. (createNotInterestedMessage): Removed.
  10864. (createHaveMessage): Removed.
  10865. (createBitfieldMessage): Removed.
  10866. (createRequestMessage): Removed.
  10867. (createCancelMessage): Removed.
  10868. (createPieceMessage): Removed.
  10869. (createPortMessage): Removed.
  10870. (createChokeMessage): Removed.
  10871. (createUnchokeMessage): Removed.
  10872. (createInterestedMessage): Removed.
  10873. (createNotInterestedMessage): Removed.
  10874. (createHaveMessage): Removed.
  10875. (createBitfieldMessage): Removed.
  10876. (createRequestMessage): Removed.
  10877. (createCancelMessage): Removed.
  10878. (createPieceMessage): Removed.
  10879. (createKeepAliveMessage): Removed.
  10880. (createHandshakeMessage): Removed.
  10881. (setIntParam): New function.
  10882. (createPeerMessageString): New function.
  10883. * src/PeerMessageUtil.cc
  10884. (createChokeMessage): Removed.
  10885. (createUnchokeMessage): Removed.
  10886. (createInterestedMessage): Removed.
  10887. (createNotInterestedMessage): Removed.
  10888. (createHaveMessage): Removed.
  10889. (createBitfieldMessage): Removed.
  10890. (createRequestMessage): Removed.
  10891. (createCancelMessage): Removed.
  10892. (createPieceMessage): Removed.
  10893. (createPortMessage): Removed.
  10894. (createRequestMessage): Removed.
  10895. (createCancelMessage): Removed.
  10896. (createPieceMessage): Removed.
  10897. (createHaveMessage): Removed.
  10898. (createChokeMessage): Removed.
  10899. (createUnchokeMessage): Removed.
  10900. (createInterestedMessage): Removed.
  10901. (createNotInterestedMessage): Removed.
  10902. (createBitfieldMessage): Removed.
  10903. (createKeepAliveMessage): Removed.
  10904. (createHandshakeMessage): Removed.
  10905. (setIntParam): New function.
  10906. (createPeerMessageString): New function.
  10907. * src/PeerConnection.h
  10908. (peer): Removed.
  10909. (torrentMan): Removed.
  10910. (createNLengthMessage): Removed.
  10911. (setIntParam): Removed.
  10912. (writeOutgoingMessageLog): Removed all overloaded functions.
  10913. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10914. (sendMessage): New function.
  10915. (sendHandshake): Removed.
  10916. (sendKeepAlive): Removed.
  10917. (sendChoke): Removed.
  10918. (sendUnchoke): Removed.
  10919. (sendInterested): Removed.
  10920. (sendNotInterested): Removed.
  10921. (sendHave): Removed.
  10922. (sendBitfield): Removed.
  10923. (sendRequest): Removed.
  10924. (sendPiece): Removed.
  10925. (sendPieceHeader): Removed.
  10926. (sendPieceData): Removed.
  10927. (sendCancel): Removed.
  10928. (getPeer): Removed.
  10929. * src/PeerConnection.cc
  10930. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10931. (sendHandshake): Removed.
  10932. (sendKeepAlive): Removed.
  10933. (createNLengthMessage): Removed.
  10934. (setIntParam): Removed.
  10935. (writeOutgoingMessageLog): Removed all overloaded functions.
  10936. (sendChoke): Removed.
  10937. (sendUnchoke): Removed.
  10938. (sendInterested): Removed.
  10939. (sendNotInterested): Removed.
  10940. (sendHave): Removed.
  10941. (sendBitfield): Removed.
  10942. (sendRequest): Removed.
  10943. (sendPiece): Removed.
  10944. (sendPieceHeader): Removed.
  10945. (sendPieceData): Removed.
  10946. (sendMessage): New function.
  10947. (sendCancel): Removed.
  10948. * src/PeerInteractionCommand.cc
  10949. (PeerInteractionCommand): Call setUploadLimit.
  10950. (executeInternal): Call setUploadLimit.
  10951. Added the handling of "inProgress" state of handshake message.
  10952. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10953. sendNow().
  10954. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10955. sendNow().
  10956. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10957. * src/TorrentMan.h
  10958. (PEER_ID_LENGTH): New definition.
  10959. (hasAllPieces): New function.
  10960. * src/TorrentMan.cc
  10961. (getMissingPiece): Added the handling of fast extension.
  10962. (cancelPiece): Call updatePiece().
  10963. (hasAllPieces): New function.
  10964. * src/PeerInteraction.h
  10965. (fastSet): New variable.
  10966. (getNewPieceAndSendInterest): Changed the return type to void.
  10967. (send): Renamed as sendMessages.
  10968. (deleteAllRequestSlot): Removed.
  10969. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10970. (cancelAllRequest): Removed all overloaded functions.
  10971. (deleteAllRequestSlot): Removed.
  10972. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10973. (rejectPieceMessageInQueue): New function.
  10974. (rejectAllPieceMessageInQueue): New function.
  10975. (onChoked): New function.
  10976. (isSendingMessageInProgress): New function.
  10977. (getCorrespondingRequestSlot): Changed its arguments.
  10978. (isInFastSet): New function.
  10979. (addFastSetIndex): New function.
  10980. (addRequests): New function.
  10981. (sendNow): Removed.
  10982. (trySendNow): Removed.
  10983. (sendBitfield): New function.
  10984. (sendAllowdFast): New function.
  10985. (createHaveAllMessage): New function.
  10986. (createHaveNoneMessage): New function.
  10987. (createRejectMessage): New function.
  10988. (createAllowedFastMessage): New function.
  10989. * src/PeerInteraction.cc
  10990. (send): Renamed as sendMessages.
  10991. (sendMessages): New function.
  10992. (MsgPushBack): New class.
  10993. (isSendingMessageInProgress): New function.
  10994. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10995. (rejectAllPieceMessageInQueue): New function.
  10996. Added the handling of fast extension.
  10997. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10998. (rejectPieceMessageInQueue): New function.
  10999. Added the handling of fast extension.
  11000. (deleteRequestSlot): Replaced for loop with std::find.
  11001. (onChoked): New function.
  11002. (deleteAllRequestSlot): Removed.
  11003. (abortPiece): Rewirtten.
  11004. (deleteTimeoutRequestSlot): Updated log messages.
  11005. (getCorrespondingRequestSlot): Changed its arguments.
  11006. (cancelAllRequest): Removed all overloaded functions.
  11007. (receiveHandshake): Added the check to see whether an incoming peer
  11008. supports fast extension.
  11009. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11010. PeerMessageUtil.
  11011. (createPeerMessage): Use create() of each message class instead of
  11012. PeerMessageUtil.
  11013. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11014. AllowedFastMessage were added.
  11015. (getNewPieceAndSendInterest): Changed its return value type to void.
  11016. Added the handling of fast extension.
  11017. (addRequests): New function.
  11018. (sendNow): Removed.
  11019. (sendHandshake): Rewritten.
  11020. (trySendNow): Removed.
  11021. (sendBitfield): New function.
  11022. (sendAllowdFast): New function.
  11023. (isInFastSet): New function.
  11024. (addFastSetIndex): New function.
  11025. (createRequestMessage): Use RequestMessage::create instead of
  11026. PeerMessageUtil.
  11027. (createCancelMessage): Use CancelMessage::create instead of
  11028. PeerMessageUtil.
  11029. (createPieceMessage): Use PieceMessage::create instead of
  11030. PeerMessageUtil.
  11031. (createHaveMessage): Use HaveMessage::create instead of
  11032. PeerMessageUtil.
  11033. (createChokeMessage): Use ChokeMessage::create instead of
  11034. PeerMessageUtil.
  11035. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11036. PeerMessageUtil.
  11037. (createInterestedMessage): Use InterestedMessage::create instead of
  11038. PeerMessageUtil.
  11039. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11040. of PeerMessageUtil.
  11041. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11042. PeerMessageUtil.
  11043. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11044. PeerMessageUtil.
  11045. (createHaveAllMessage): New function.
  11046. (createHaveNoneMessage): New function.
  11047. (createRejectMessage): New function.
  11048. (createAllowedFastMessage: New function.
  11049. * src/Util.h
  11050. (sha1Sum): New function.
  11051. (computeFastSet): New function.
  11052. * src/Util.cc
  11053. (sha1Sum): New function.
  11054. (computeFastSet): New function.
  11055. * src/Peer.h
  11056. (fastExtensionEnabled): New variable.
  11057. (fastSet): New variable.
  11058. (setAllBitfield): New function.
  11059. (setFastExtensionEnabled): New function.
  11060. (isFastExtensionEnabled): New function.
  11061. (addFastSetIndex): New function.
  11062. (getFastSet): New function.
  11063. (isInFastSet): New function.
  11064. (countFastSet): New function.
  11065. * src/Peer.cc
  11066. (isInFastSet): New function.
  11067. (addFastSetIndex): New function.
  11068. (setAllBitfield): New function.
  11069. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11070. sockets.
  11071. * src/PeerAbstractCommand.cc
  11072. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11073. and uploadLimit.
  11074. (execute): Changed the procedure of checking sockets. The upload speed
  11075. checking were added.
  11076. (setUploadLimit): New function.
  11077. (setUploadLimitCheck): New function.
  11078. * src/PeerAbstractCommand.h
  11079. (setUploadLimit): New function.
  11080. (setUploadLimitCheck): New function.
  11081. (uploadLimit): New variable.
  11082. (uploadLimitCheck): New variable.
  11083. To contact a tracker regularly:
  11084. * src/TrackerWatcherCommand.h (interval): New variable.
  11085. (checkPoint): New variable.
  11086. (TrackerWatcherCommand): Added interval argument.
  11087. * src/TrackerWatcherCommand.cc
  11088. (TrackerWatcherCommand): Initialized checkPoint.
  11089. (execute): Now a tracker is contacted in every specified period.
  11090. If peer list is not needed, send request with numwant=0.
  11091. * src/TrackerUpdateCommand.cc
  11092. (execute): Updated log messages.
  11093. * src/DownloadEngine.cc
  11094. (~DownloadEngine): Removed two asserts.
  11095. (waitData): Uncommented wfds. May be a bug fix.
  11096. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11097. * src/PeerInteractionCommand.h
  11098. (checkInactiveConnection): Removed.
  11099. * src/PeerInteractionCommand.cc
  11100. (executeInternal): Removed following function calls:
  11101. detectMessageFlooding(), checkLongTimePeerChoking and
  11102. checkInactiveConnection().
  11103. (checkInactiveConnection): Removed.
  11104. (detectMessageFlooding): Removed function call to
  11105. checkInactiveConnection().
  11106. * src/PeerMessageUtil.h
  11107. (createChokeMessage): New function. Overload.
  11108. (createUnchokeMessage): New function. Overload.
  11109. (createInterestedMessage): New function. Overload.
  11110. (createNotInterestedMessage): New function. Overload.
  11111. (createHaveMessage): New function. Overload.
  11112. (createBitfieldMessage): New function. Overload.
  11113. (createRequestMessage): New function. Overload.
  11114. (createCancelMessage): New function. Overload.
  11115. (createPieceMessage): New function. Overload.
  11116. (createKeepAliveMessage): New function. Overload.
  11117. * src/PeerMessageUtil.cc
  11118. (createChokeMessage): New function. Overload.
  11119. (createUnchokeMessage): New function. Overload.
  11120. (createInterestedMessage): New function. Overload.
  11121. (createNotInterestedMessage): New function. Overload.
  11122. (createHaveMessage): New function. Overload.
  11123. (createBitfieldMessage): New function. Overload.
  11124. (createRequestMessage): New function. Overload.
  11125. (createCancelMessage): New function. Overload.
  11126. (createPieceMessage): New function. Overload.
  11127. (createKeepAliveMessage): New function. Overload.
  11128. * src/SendMessageQueue.cc
  11129. (createRequestMessage): Use PeerMessageUtil.
  11130. (createCancelMessage): Use PeerMessageUtil.
  11131. (createPieceMessage): Use PeerMessageUtil.
  11132. (createHaveMessage): Use PeerMessageUtil.
  11133. (createChokeMessage): Use PeerMessageUtil.
  11134. (createUnchokeMessage): Use PeerMessageUtil.
  11135. (createInterestedMessage): Use PeerMessageUtil.
  11136. (createNotInterestedMessage): Use PeerMessageUtil.
  11137. (createBitfieldMessage): Use PeerMessageUtil.
  11138. (createKeepAliveMessage): Use PeerMessageUtil.
  11139. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11140. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11141. * src/PeerInteraction.h: New class.
  11142. * src/PeerInteraction.cc: New class.
  11143. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11144. Each peer message has its own class.
  11145. * src/PendingMessages.h: Removed.
  11146. * src/PendingMessages.cc: Removed. The sending process was moved to
  11147. each message class.
  11148. * src/RequestSlotMan.h: Removed.
  11149. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11150. SendMessageQueue.
  11151. * src/RequestMessage.h: New class.
  11152. * src/RequestMessage.cc: New class.
  11153. * src/CancelMessage.h: New class.
  11154. * src/CancelMessage.cc: New class.
  11155. * src/BitfieldMessage.h: New class.
  11156. * src/BitfieldMessage.cc: New class.
  11157. * src/ChokeMessage.h: New class.
  11158. * src/ChokeMessage.cc: New class.
  11159. * src/KeepAliveMessage.h: New class.
  11160. * src/KeepAliveMessage.cc: New class.
  11161. * src/PortMessage.h: New class.
  11162. * src/UnchokeMessage.h: New class.
  11163. * src/UnchokeMessage.cc: New class.
  11164. * src/PieceMessage.h: New class.
  11165. * src/PieceMessage.cc: New class.
  11166. * src/HaveMessage.h: New class.
  11167. * src/HaveMessage.cc: New class.
  11168. * src/BitfieldMessage.h: New class.
  11169. * src/BitfieldMessage.cc: New class.
  11170. * src/NotInterestedMessage.h: New class.
  11171. * src/NotInterestedMessage.cc: New class.
  11172. * src/InterestedMessage.h: New class.
  11173. * src/InterestedMessage.cc: New class.
  11174. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11175. (getSendMessageQueue): New function.
  11176. (setSendMessageQueue): New function.
  11177. * src/HandshakeMessage.cc: New class.
  11178. * src/PeerConnection.h (receiveMessage): Changed return value and
  11179. arguments.
  11180. (receiveHandshake): Changed return value and arguments.
  11181. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11182. here.
  11183. (receiveHandshake): Do not create handshake class here.
  11184. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11185. (piece): Removed.
  11186. (syncPiece): Removed.
  11187. (sendInterest): Removed.
  11188. (sendMessages): Removed.
  11189. (createRequestPendingMessage): Removed.
  11190. (checkPieceHash): Removed.
  11191. (erasePieceOnDisk): Removed.
  11192. (getNewPieceAndSendInterest): Removed.
  11193. (onGotNewPice): Removed.
  11194. (onGotWrongPiece): Removed.
  11195. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11196. Removed peerConnection, piece.
  11197. (~PeerInteractionCommand): Removed peerConnection.
  11198. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11199. (syncPiece): Moved to SendMessageQueue.
  11200. (decideChoking): Removed PendingMessage.
  11201. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11202. The action after receiving peer message was moved to each message
  11203. class.
  11204. (onGotNewPice): Moved to SendMessageQueue.
  11205. (onGotWrongPiece): Moved to SendMessageQueue.
  11206. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11207. (sendInterest): Moved to SendMessageQueue.
  11208. (createRequestPendingMessage): Removed.
  11209. (sendMessages): Moved to SendMessageQueue.
  11210. (onAbort): Use SendMessageQueue::abortPiece()
  11211. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11212. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11213. (checkPieceHash): Moved to SendMessageQueue.
  11214. (erasePieceOnDisk): Moved to SendMessageQueue.
  11215. * src/PeerMessageUtil.h
  11216. (createBitfieldMessage): Removed.
  11217. (createHaveMessage): Changed return value and arguments.
  11218. (createBitfieldMessage): Changed return value and arguments.
  11219. (createRequestCancelMessage): Removed.
  11220. (createPieceMessage): Changed return value and arguments.
  11221. (getShortIntParam): New function.
  11222. (checkIndex): Changed arguments.
  11223. (checkBegin): Changed arguments.
  11224. (checkLength): Changed arguments.
  11225. (checkPieceOffset): Removed.
  11226. (checkRange): New function.
  11227. (checkBitfield): Changed arguments.
  11228. (createPeerMessage): Removed.
  11229. (checkIntegrity): Removed.
  11230. (createHandshakeMessage): Changed arguments.
  11231. (createChokeMessage): New function.
  11232. (createUnchokeMessage): New function.
  11233. (createInterestedMessage): New function.
  11234. (createNotInterestedMessage): New function.
  11235. (createRequestMessage): New function.
  11236. (createCancelMessage): New function.
  11237. (createPortMessage): New function.
  11238. * src/PeerMessageUtil.cc
  11239. (createBitfieldMessage): Removed.
  11240. (createHaveMessage): Changed return value and arguments.
  11241. (createBitfieldMessage): Changed return value and arguments.
  11242. (createRequestCancelMessage): Removed.
  11243. (createPieceMessage): Changed return value and arguments.
  11244. (getShortIntParam): New function.
  11245. (checkIndex): Changed arguments.
  11246. (checkBegin): Changed arguments.
  11247. (checkLength): Changed arguments.
  11248. (checkPieceOffset): Removed.
  11249. (checkRange): New function.
  11250. (checkBitfield): Changed arguments.
  11251. (createPeerMessage): Removed.
  11252. (checkIntegrity): Removed.
  11253. (createHandshakeMessage): Changed arguments.
  11254. (createChokeMessage): New function.
  11255. (createUnchokeMessage): New function.
  11256. (createInterestedMessage): New function.
  11257. (createNotInterestedMessage): New function.
  11258. (createRequestMessage): New function.
  11259. (createCancelMessage): New function.
  11260. (createPortMessage): New function.
  11261. * src/PeerMessage.h
  11262. (id): Removed.
  11263. (index): Removed.
  11264. (begin): Removed.
  11265. (length): Removed.
  11266. (bitfield): Removed.
  11267. (bitfieldLength): Removed.
  11268. (block): Removed.
  11269. (blockLength): Removed.
  11270. (inProgress): New variable.
  11271. (cuid): New variable.
  11272. (peer): New variable.
  11273. (sendMessageQueue): New variable.
  11274. (logger): New variable.
  11275. (setBitfield): Removed.
  11276. (getBitfield): Removed.
  11277. (setBlock): Removed.
  11278. (getBlock): Removed.
  11279. (getBitfieldLength): Removed.
  11280. (getBlockLength): Removed.
  11281. (isInProgress): New function.
  11282. (toString): Made pure virtual.
  11283. (check): New function.
  11284. (send): New function.
  11285. (receivedAction): New function.
  11286. (getId): Made pure virtual.
  11287. (setId): Removed.
  11288. (getIndex): Removed.
  11289. (setIndex): Removed.
  11290. (getBegin): Removed.
  11291. (setBegin): Removed.
  11292. (getLength): Removed.
  11293. (setLength): Removed.
  11294. (getCuid): New function.
  11295. (setCuid): New function.
  11296. (getPeer): New function.
  11297. (setPeer): New function.
  11298. (getSendMessageQueue): New function.
  11299. (setSendMessageQueue): New function.
  11300. (ID): Removed.
  11301. * src/PeerMessage.cc
  11302. (setBitfield): Removed.
  11303. (setBlock): Removed.
  11304. (toString): Removed.
  11305. * src/TorrentMan.h
  11306. (getPieceLength): New function.
  11307. (getPieceLength): New function.
  11308. * src/SendMessageQueue.h
  11309. (REQUEST_TIME_OUT): New definition.
  11310. (RequestSlots): New definition.
  11311. (MessageQueue): New definition.
  11312. (requestSlotMan): Removed.
  11313. (pendingMessages): Removed.
  11314. (requestSlots): New variable.
  11315. (messageQueue): New variable.
  11316. (torrentMan): New variable.
  11317. (peerConnection): New variable.
  11318. (peer): New variable.
  11319. (piece): New variable.
  11320. (getNewPieceAndSendInterest): New function.
  11321. (createPeerMessage): New function.
  11322. (createHandshakeMessage): New function.
  11323. (send): Made private.
  11324. (setPeerMessageCommonProperty): New function.
  11325. (deleteAllRequestSlot): New function.
  11326. (deleteRequestMessageInQueue): New function.
  11327. (cancelAllRequest): Made private.
  11328. (cancelAllRequest): Made private.
  11329. (countRequestSlot): Made private.
  11330. (addPendingMessage): Removed.
  11331. (deletePendingPieceMessage): Removed.
  11332. (deletePendingRequestMessage): Removed.
  11333. (addMessage): New function.
  11334. (deletePieceMessageInQueue): New function.
  11335. (deleteTimeoutRequestSlot): Changed argument.
  11336. (deleteCompletedRequestSlot): Changed argument.
  11337. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  11338. (getCorrespondingRequestSlot): New function.
  11339. (countPendingMessage): Removed.
  11340. (countMessageInQueue): New function.
  11341. (getTorrentMan): New function.
  11342. (getPeerConnection): New function.
  11343. (hasDownloadPiece): New function.
  11344. (getDownloadPiece): New function.
  11345. (setDownloadPiece): New function.
  11346. (syncPiece): New function.
  11347. (sendMessages): New function.
  11348. (sendNow): New function.
  11349. (trySendNow): New function.
  11350. (abortPiece): New function.
  11351. (sendHandshake): New function.
  11352. (receiveMessage): New function.
  11353. (receiveHandshake): New function.
  11354. (createRequestMessage): New function.
  11355. (createCancelMessage): New function.
  11356. (createPieceMessage): New function.
  11357. (createHaveMessage): New function.
  11358. (createChokeMessage): New function.
  11359. (createUnchokeMessage): New function.
  11360. (createInterestedMessage): New function.
  11361. (createNotInterestedMessage): New function.
  11362. (createBitfieldMessage): New function.
  11363. (createKeepAliveMessage): New function.
  11364. * src/SendMessageQueue.cc
  11365. (SendMessageQueue): Removed requestSlotMan.
  11366. Instantiated peerConnection here.
  11367. (~SendMessageQueue): Removed requestSlotMan.
  11368. Added deletion of peerConnection and the contents of messageQueue.
  11369. (send): Updated according to the change of messageQueue.
  11370. (addPendingMessage): Renamed to addMessage.
  11371. (addMessage): New function.
  11372. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  11373. (deletePieceMessageInQueue): New function.
  11374. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  11375. (deleteRequestMessageInQueue): New function.
  11376. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  11377. here.
  11378. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  11379. (...) was moved here.
  11380. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  11381. moved here.
  11382. (deleteCompletedRequestSlot):
  11383. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  11384. (getCorrespondingRequestSlot):
  11385. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  11386. And renamed to getCorrespondingRequestSlot, correcting a typo.
  11387. (countPendingMessage): Renamed to countMessageInQueue.
  11388. (countMessageInQueue): New function.
  11389. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  11390. (receiveHandshake): New function.
  11391. (createHandshakeMessage): New function.
  11392. (receiveMessage): New function.
  11393. (createPeerMessage): New function.
  11394. (syncPiece): New function.
  11395. (getNewPieceAndSendInterest): New function.
  11396. (sendMessages): New function.
  11397. (sendNow): New function.
  11398. (trySendNow): New function.
  11399. (sendHandshake): New function.
  11400. (abortPiece): New function.
  11401. (getDownloadPiece): New function.
  11402. (getPeerMessageCommonProperty): New function.
  11403. (createRequestMessage): New function.
  11404. (createCancelMessage): New function.
  11405. (createPieceMessage): New function.
  11406. (createHaveMessage): New function.
  11407. (createChokeMessage): New function.
  11408. (createUnchokeMessage): New function.
  11409. (createInterestedMessage): New function.
  11410. (createNotInterestedMessage): New function.
  11411. (createBitfieldMessage): New function.
  11412. (createKeepAliveMessage): New function.
  11413. To add simple Content-Disposition support:
  11414. * src/HttpResponseCommand.h (determinFilename): New function.
  11415. * src/HttpResponseCommand.cc (executeInternal):
  11416. Use determinFilename(headers) instead of req->getFile() when comparing
  11417. filename.
  11418. (determinFilename): New function.
  11419. (handleDefaultEncoding): Use determinFilename(headers) instead of
  11420. req->getFile().
  11421. (handleOtherEncoding): Use determinFilename(headers) instead of
  11422. req->getFile().
  11423. * src/Util.h (getContentDispositionFilename): New function.
  11424. * src/Util.cc (getContentDispositionFilename): New function.
  11425. * src/LogFactory.h (release): New function.
  11426. * src/LogFactory.cc (release): New function.
  11427. To fix a bug that causes out-of-bound exception when HTTP status
  11428. line is wrong:
  11429. * src/HttpConnection.cc (receiveResponse): Added a check for header
  11430. size.
  11431. * src/common.h (Deleter): New class.
  11432. * src/SegmentMan.cc
  11433. (~SegmentMan): Added deletion of splitter and diskWriter.
  11434. * src/DownloadEngine.h
  11435. (Commands): Use deque.
  11436. (clearQueue): New function.
  11437. * src/DownloadEngine.cc
  11438. (~DownloadEngine): Added deletion of segmentMan.
  11439. (cleanQueue): New function.
  11440. * src/TorrentDownloadEngine.h
  11441. (TorrentDownloadEngine): The implementation was moved to
  11442. TorrentDownloadEngine.cc.
  11443. (~TorrentDownloadEngine): The implementation was moved to
  11444. TorrentDownloadEngine.cc.
  11445. * src/TorrentDownloadEngine.cc
  11446. (~TorrentDownloadEngine): Added deletion of torrentMan.
  11447. * src/main.cc
  11448. (clearRequest): Removed.
  11449. (handler): Added deletion of e.
  11450. (torrentHandler): Added deletion of te.
  11451. (main): Do not share splitter.
  11452. Use Deleter instead of clearRequest.
  11453. Deletion of classes were updated.
  11454. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. * src/main.cc (main): Fixed typo.
  11456. * src/message.h: Fixed typo.
  11457. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  11458. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11459. To add --select-file command-line option:
  11460. * src/Util.cc
  11461. (unfoldRange): New function.
  11462. (getNum): New function.
  11463. (unfoldSubRange): New function
  11464. * src/main.cc
  11465. (showUsage): Added help message.
  11466. (main): Added --select-file command-line option. Updated the layout of
  11467. file listing.
  11468. * src/common.h
  11469. (Integers): New definition.
  11470. * src/SocketCore.cc
  11471. (writeData): Removed timeout argument.
  11472. (readData): Removed timeout argument.
  11473. (peekData): Removed timeout argument.
  11474. * src/Socket.cc
  11475. (writeData): Removed timeout argument.
  11476. (readData): Removed timeout argument.
  11477. (peekData): Removed timeout argument.
  11478. * Release 0.4.1
  11479. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. To deploy upload rate based choking algorithm:
  11481. * src/PeerInteractionCommand.cc
  11482. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  11483. peer currently used.
  11484. (decideChoking): Deleted the choke/unchoke decision algorithm when
  11485. download completes. Simplified.
  11486. (receiveMessage): Updated.
  11487. * src/TorrentMan.h
  11488. (activePeers): New variable.
  11489. (addActivePeer): New function.
  11490. (getActivePeers): New function.
  11491. (deleteActivePeer): New function.
  11492. * src/TorrentMan.cc
  11493. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  11494. * src/PeerAbstractCommand.cc
  11495. (onAbort): Use peer->resetStatus().
  11496. * src/main.cc
  11497. (PeerChokeCommand.h): Included.
  11498. (main): Added the instance of ChokingCommand to the command queue.
  11499. * src/Peer.h
  11500. (amChoking): Renamed from amChocking
  11501. (chokingRequired): New variable.
  11502. (optUnchoking): New variable.
  11503. (deltaUpload): New variable.
  11504. (deltaDownload): New variable.
  11505. (addDeltaUpload): New function.
  11506. (resetDeltaUpload): New function.
  11507. (addDeltaDownload): New function.
  11508. (resetDeltaDownload): New function.
  11509. (addPeerUpload): Added a call to addDeltaUpload.
  11510. (addPeerDownload): Added a call to addDeltaDownload.
  11511. * src/Peer.cc
  11512. (shouldBeChoking): Renamed from shouldChoke.
  11513. (resetStatus): New function.
  11514. * src/PeerChokeCommand.h: New class.
  11515. * src/PeerChokeCommand.cc: New class.
  11516. To add lazy upload speed limiter:
  11517. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  11518. statistics calculation to TorrentDownloadEngine.
  11519. * src/TorrentConsoleDownloadEngine.cc
  11520. (sendStatistics): Renamed from printStatistics.
  11521. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  11522. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  11523. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  11524. * src/TorrentDownloadEngine.h: Added the variables for statistics
  11525. calculation.
  11526. (sendStatistics): New function as pure virtual function.
  11527. (getUploadSpeed): New function.
  11528. * src/TorrentDownloadEngine.cc
  11529. (initStatistics): New function.
  11530. (calculateSpeed): New function.
  11531. (calculateStatistics): New function.
  11532. * src/SendMessageQueue.h
  11533. (uploadLength): New variable.
  11534. (send): Added an argument.
  11535. (setUploadLimit): New function.
  11536. (getUploadLimit): New function.
  11537. * src/SendMessageQueue.cc
  11538. (send): Added upload speed limiter.
  11539. * src/prefs.h
  11540. (PREF_UPLOAD_LIMIT): New definition.
  11541. * src/PeerInteractionCommand.cc
  11542. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  11543. * src/main.cc
  11544. (main): Added --upload-limit option
  11545. For bug fixes:
  11546. * src/main.cc
  11547. (showUsage): Corrected --listen-port help
  11548. Other changes:
  11549. * src/TorrentMan.cc
  11550. (getPeer): Return nullPeer if connection is grather than
  11551. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  11552. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11553. To add some useful information to the exception message:
  11554. * src/SocketCore.cc : Updated messages.
  11555. * src/SegmentMan.cc :
  11556. * src/TorrentMan.cc : Updated messages.
  11557. * src/MultiDiskWriter.cc : Updated messages.
  11558. * src/Util.cc : Updated messages.
  11559. * src/AbstractDiskWriter.cc : Updated messages.
  11560. * src/PreAllocationDiskWriter.cc : Updated messages.
  11561. * src/message.cc : Added new messages. Updated some messages.
  11562. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  11563. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  11564. Updated threshold from 30 to 15.
  11565. * src/AbstractDiskWriter.h (filename): New variable.
  11566. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  11567. (createFile): Assigned filename.
  11568. * src/main.cc: Updated the help message for http-auth-scheme.
  11569. * Release 0.4.0
  11570. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11571. To add TrackerUpdateCommand with which replaces
  11572. CompactTrackerResponseProcessor:
  11573. * src/TrackerWatcherCommand.h (req): Removed.
  11574. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  11575. if the number of peer connections are less than 30.
  11576. * src/ByteArrayDiskWriter.h (readData): Implemented.
  11577. * src/SegmentMan.h (diskWriter): New function.
  11578. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  11579. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  11580. (main): Use TrackerUpdateCommand.
  11581. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  11582. (req): New variable.
  11583. (setTrackerResponseProcessor): Removed.
  11584. (getTrackerResponseProcessor): Removed.
  11585. (processTrackerResponse): Removed.
  11586. * src/DownloadEngine.h (diskWriter): Removed.
  11587. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  11588. to torrentMan->processTrackerResponse().
  11589. To add Util::expandBuffer:
  11590. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  11591. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  11592. * src/Util.h (expandBuffer): New function.
  11593. To fix the bug that causes segmentation fault when "-l ." is specified
  11594. in command-line option:
  11595. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  11596. (openFile): New function.
  11597. (closeFile): New function.
  11598. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  11599. (~SimpleLogger): Call closeFile();
  11600. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  11601. * src/main.cc (main): Added a check to see logger is configured
  11602. properly.
  11603. To enable HTTP authentication without specifying "--http-auth-scheme"
  11604. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  11605. * src/HttpConnection.cc (createRequest): Send Authorization header
  11606. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  11607. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  11608. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  11609. * src/Peer.cc (shouldChoke): Updated algorithm.
  11610. * src/message.h (EX_AUTH_FAILED): New definition.
  11611. (EX_FILE_OPEN): New definition.
  11612. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  11613. if status == 401.
  11614. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  11615. if req->isTorrent == true.
  11616. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  11617. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  11618. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  11619. (createFile): Updated message.
  11620. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11621. To add a readout of estimated remaining time to normal HTTP/FTP
  11622. downloads:
  11623. * src/ConsoleDownloadEngine.h (startup): New variable.
  11624. (startupLength): New variable.
  11625. (isStartupLengthSet): New variable.
  11626. (avgSpeed): New variable.
  11627. (eta): New variable.
  11628. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  11629. estimated remaining time.
  11630. (initStatistics): Initialized newly added variables.
  11631. (calculateStatistics): Calculate average speed and estimated remaining
  11632. time.
  11633. To decouple TorrentDownloadEngine from HttpResponseCommand:
  11634. * src/TrackerDownloadCommand.h: Removed.
  11635. * src/TrackerDownloadCommand.cc: Removed.
  11636. * src/TrackerInitCommand.h: Removed.
  11637. * src/TrackerInitCommand.cc: Removed.
  11638. * src/TrackerUpdateCommand.h: Removed.
  11639. * src/TrackerUpdateCommand.cc: Removed.
  11640. * src/TrackerWatcherCommand.cc (execute): The construction of request
  11641. url written in TrackerInitCommand was moved here. Do not create
  11642. tracker request command if torrentMan->trackers != 0.
  11643. * src/CompactTrackerResponseProcessor.h: New class.
  11644. * src/CompactTrackerResponseProcessor.cc: New class.
  11645. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  11646. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  11647. Decoupled TorrentDownloadEngine from this.
  11648. * src/SegmentMan.h (init): New function.
  11649. * src/SegmentMan.cc (init): New function.
  11650. * src/TorrentMan.h (responseProcessor): New variable.
  11651. (trackers): New variable.
  11652. (setTrackerResponseProcessor): New function.
  11653. (getTrackerResponseProcessor): New function.
  11654. (processTrackerResponse): New function.
  11655. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  11656. (processTrackerResponse): New function.
  11657. * src/main.cc (main): Use ByteArrayDiskWriter and
  11658. CompactTrackerResponseProcessor.
  11659. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  11660. processTrackerResponse().
  11661. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  11662. readout.
  11663. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  11664. which indicates download has completed.
  11665. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  11666. (closeFile): fd >= 0, not fd > 0
  11667. * src/main.cc (main): Added short cut for show-files.
  11668. Added short cut for torrent-file.
  11669. Added new command-line option listen-port.
  11670. Updated i18n messages.
  11671. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11672. To add LogFactory which creates singleton logger:
  11673. * src/LogFactory.h: New class.
  11674. * src/LogFactory.cc: New class.
  11675. * src/Command.h (logger): New variable.
  11676. (Constructor): Use LogFactory.
  11677. * src/AbstractCommand.cc: Use Command::logger
  11678. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  11679. Use LogFactory.
  11680. * src/SegmentSplitter.h : Made logger protected.
  11681. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  11682. * src/SegmentMan.cc (Constructor): Use LogFactory.
  11683. * src/DownloadEngine.h : Made logger protected.
  11684. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  11685. * src/PeerInteractionCommand.cc : Use Command::logger.
  11686. * src/HttpResponseCommand.cc : Use Command::logger.
  11687. * src/SegmentMan.h : Made logger private.
  11688. * src/TorrentMan.h : Made logger private.
  11689. * src/TorrentMan.cc : Use LogFactory.
  11690. * src/FtpNegotiateCommand.cc : Use Command::logger.
  11691. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  11692. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  11693. Use LogFactory.
  11694. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  11695. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  11696. Use LogFactory.
  11697. * src/DownloadCommand.cc : Use Command::logger.
  11698. * src/PeerAbstractCommand.cc : Use Command::logger.
  11699. * src/PeerListenCommand.cc : Use Command::logger.
  11700. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  11701. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  11702. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  11703. * src/TrackerWatcherCommand.cc : Use Command::logger.
  11704. * src/TrackerUpdateCommand.cc : Use Command::logger.
  11705. * src/TrackerDownloadCommand.cc : Use Command::logger.
  11706. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  11707. Use LogFactory.
  11708. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  11709. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  11710. Use LogFactory.
  11711. * src/main.cc (main): Use LogFactory.
  11712. * src/DiskAdaptor.h (logger): New variable.
  11713. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  11714. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  11715. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11716. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  11717. parameter to a tracker request.
  11718. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  11719. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  11720. * src/main.cc (setSignalHander): New function.
  11721. (main): Added a handler for SIGTERM.
  11722. (handler): Updated message.
  11723. (torrentHandler): Updated message.
  11724. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11725. * src/TorrentConsoleDownloadEngine.cc
  11726. (onPartialDownloadingCompletes): Renamed as
  11727. onSelectiveDownloadingCompletes.
  11728. (onSelectiveDownloadingCompletes): Updated message.
  11729. To add DiskAdaptor which abstract DiskWriter family:
  11730. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  11731. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  11732. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  11733. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  11734. MultiDiskAdaptor.h.
  11735. (readFileEntry): Changed its arguments.
  11736. (setup): setupDiskWriter is merged into this function.
  11737. (setupDiskWriter): Removed.
  11738. (setFileFilter): New function.
  11739. (readFileEntryFromMetaInfoFile): Updated according to the changes
  11740. made in readFileEntry.
  11741. (getFilePath): Removed.
  11742. (getTempFilePath): Removed.
  11743. (getSegmentFilePath): Updated due to the removal of getFilePath.
  11744. (fixFilename): Removed.
  11745. (copySingleFile): Removed.
  11746. (splitMultiFile): Removed.
  11747. (deleteTempFile): Removed.
  11748. (setFileEntriesToDownload): Removed.
  11749. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  11750. (isSelectiveDownloadingMode): New function.
  11751. (setAllMultiFileRequestedState): Removed.
  11752. (finishPartialDownloadingMode): Renamed as
  11753. finishSelectiveDownloadingMode.
  11754. (finishSelectiveDownloadingMode): New function.
  11755. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  11756. (getSelectedTotalLength): New function.
  11757. (onDownloadComplete): Use diskAdaptor.
  11758. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  11759. (Range): Removed.
  11760. (setMultiFileEntries): Renamed as setFileEntries.
  11761. (setFileEntries): New function.
  11762. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  11763. (pieceLength): New variable.
  11764. * src/main.cc (printDownloadCompeleteMessage): New function.
  11765. (torrentHandler): Use diskAdaptor instead of diskWriter.
  11766. (main): Renamed torrent-show-files to show-files.
  11767. Rewritten file contents listing.
  11768. * src/TorrentMan.h (FileEntry): Removed.
  11769. (multiFileTopDir): Removed.
  11770. (multiFileEntries): Removed.
  11771. (diskWriter): Removed.
  11772. (diskAdaptor): New variable.
  11773. * src/DefaultDiskWriter.h (totalLength): New variable.
  11774. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  11775. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  11776. diskWriter.
  11777. * src/TorrentConsoleDownloadEngine.h
  11778. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  11779. (partialTotalLength): Renamed as selectedTotalLength.
  11780. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  11781. openExistingFile, otherwise call initAndOpenFile.
  11782. (closeFile): fd > 0, not fd != 0.
  11783. * src/DirectDiskAdaptor.h: New class.
  11784. * src/DirectDiskAdaptor.cc: New class.
  11785. * src/MultiDiskAdaptor.h: New class.
  11786. * src/MultiDiskAdaptor.cc: New class.
  11787. * src/CopyDiskAdaptor.h: New class.
  11788. * src/CopyDiskAdaptor.cc: New class.
  11789. * src/DiskAdaptor.h: New class.
  11790. * src/DiskAdaptor.cc: New class.
  11791. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  11792. (PREF_SHOW_FILES): New definition.
  11793. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11794. To add the ability to download multi torrent into respective files
  11795. directly:
  11796. * src/DiskWriter.h (openFile): New function.
  11797. (seek): Removed.
  11798. * src/MultiDiskWriter.h: New class.
  11799. * src/MultiDiskWriter.cc: New class.
  11800. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  11801. protected.
  11802. (openFile): New function.
  11803. * src/AbstractDiskWriter.cc (openFile): New function.
  11804. * src/prefs.h (V_FALSE): New definition.
  11805. (PREF_DIRECT_FILE_MAPPING): New definition.
  11806. * src/TorrentMan.h (setupDiskWriter): New function.
  11807. (setAllMultiFileRequestedState): New function.
  11808. (onDownloadComplete): New function.
  11809. * src/TorrentMan.cc : Included MultiDiskWriter.h
  11810. (setupDiskWriter): New function.
  11811. (getFilePath): Updated.
  11812. (getTempFilePath): Updated.
  11813. (getSegmentFilePath): Updated.
  11814. (fixFilename): Updated.
  11815. (deleteTempFile): Updated.
  11816. (setAllMultiFileRequestedState): New function.
  11817. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  11818. (finishPartialDownloadingMode): Reset requested flags.
  11819. (onDownloadComplete): New function.
  11820. * src/main.cc: Added --direct-file-mapping option.
  11821. Use TorrentMan::setupDiskWriter().
  11822. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  11823. onDownloadComplete().
  11824. To fix ETA bug:
  11825. * src/Util.h (difftvsec): New function.
  11826. * src/Util.cc (difftvsec): New function.
  11827. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  11828. type of "elapsed" instead of long long int.
  11829. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  11830. The updates of statistics takes place every 1 seconds.
  11831. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  11832. (calculateSpeed): Changed its argument signature.
  11833. * src/PeerMessage.cc (toString): Fixed message.
  11834. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11835. To print ETA:
  11836. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  11837. completion handling when dealing with
  11838. TorrentMan::isPartialDownloadingMode() == true.
  11839. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  11840. New function.
  11841. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  11842. (sessionDownloadLength): New variable.
  11843. (avgSpeed): New variable.
  11844. (eta): New variable.
  11845. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  11846. new variables: eta, avgSpeed, startup.
  11847. (calculateSpeed): Calculate average speed and ETA.
  11848. (printStatistics): Added ETA.
  11849. * src/Util.h (secfmt): New function.
  11850. * src/Util.cc (secfmt): New function.
  11851. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. To detect "keep alive" flooding:
  11853. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  11854. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  11855. variable: keepAliveCount.
  11856. (detectMessageFlooding): Added "keep alive" flooding detection.
  11857. (receiveMessage): Increase keepAliveCount when "keep alive" message
  11858. received.
  11859. To add the ability to download only specified files in multi-file
  11860. torrent:
  11861. * src/BitfieldMan.h (filterBitfield): New variable.
  11862. (filterEnabled): New variable.
  11863. (setFilterBit): New function.
  11864. (enableFilter): New function.
  11865. (disableFilter): New function.
  11866. (isFilterEnabled): New function.
  11867. (getFilteredTotalLength): New function.
  11868. (getCompletedLength): New function.
  11869. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  11870. filterBitfield, filterEnabled.
  11871. (CopyConstructor): Added filterBitfield and filterEnabled.
  11872. (operator==): Added filterBitfield and filterEnabled.
  11873. (Destructor): Added filterBitfield.
  11874. (getMissingIndex): Use filterBitfield.
  11875. (getMissingUnusedIndex): Use filterBitfield.
  11876. (getFirstMissingUnusedIndex): Use filterBitfield.
  11877. (getFirstMissingUnusedIndex): Use filterBitfield.
  11878. (getAllMissingIndexes): Use filterBitfield.
  11879. (countMissingBlock): Use filterBitfield.
  11880. (countBlock): Use filterBitfield.
  11881. (setBitInternal): Added new argument on.
  11882. (setUseBit): Use setBitInternal.
  11883. (unsetUseBit): Use setBitInternal.
  11884. (setBit): Use setBitInternal.
  11885. (unsetBit): Use setBitInternal.
  11886. (isAllBitSet): Use filterBitfield.
  11887. (setFilterBit): New function.
  11888. (addFilter): New function.
  11889. (enableFilter): New function.
  11890. (disableFilter): New function.
  11891. (clearFilter): New function.
  11892. (isFilterEnabled): New function.
  11893. (getFilteredTotalLength): New function.
  11894. (getCompletedLength): New function.
  11895. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  11896. Initalized newly added variables.
  11897. [FileEntry](offset): New variable.
  11898. [FileEntry](extracted): New variable.
  11899. [FileEntry](requested): New variable.
  11900. (readFileEntry): New function.
  11901. (option): New variable.
  11902. (splitMultiFile): Removed const qualifier.
  11903. (fixFilename): Removed const qualifier.
  11904. (readFileEntryFromMetaInfoFile): New function.
  11905. (finishPartialDownloadingMode): New function.
  11906. (isPartialDownloadingMode): New function.
  11907. (setFileEntriesToDownload): New function.
  11908. (getCompletedLength): New function.
  11909. (getPartialTotalLength): New function.
  11910. * src/TorrentMan.cc (readFileEntry): New function.
  11911. (setup): Use readFileEntry. If no-preallocation option is specified,
  11912. use DefaultDiskWriter.
  11913. (readFileEntryFromMetaInfoFile): New function.
  11914. (fixFilename): Removed const qualifier.
  11915. (splitMultiFile): Removed const qualifier.
  11916. (setFileEntriesToDownload): New function.
  11917. (isPartialDownloadingMode): New function.
  11918. (finishPartialDownloadingMode): New function.
  11919. (getCompletedLength): New function.
  11920. (getPartialTotalLength): New function.
  11921. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11922. New variable.
  11923. (partialTotalLength): New variable.
  11924. (downloadLength): New variable.
  11925. (totalLength): New variable.
  11926. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11927. Added log.
  11928. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11929. partialTotalLength, downloadLength, totalLength.
  11930. (calculate): Calculate downloadLength and totalLength.
  11931. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11932. * src/main.cc (addCommand): Changed argument signature.
  11933. (main): Added new variable: args. Added new option "torrent-show-files"
  11934. "no-preallocation". Usage is not updated yet.
  11935. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11936. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11937. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11938. Attempt to add the ability to listing file entries in a .torrent file.
  11939. This feature is not yet complete.
  11940. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11941. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11942. (getName): New function.
  11943. * src/TorrentMan.h (getMultiFileEntries): New function.
  11944. (getName): New function.
  11945. * src/main.cc (main): Use above 2 funtion.
  11946. * Release 0.3.2
  11947. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11948. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11949. (detectMessageFlooding): Updated threshold value.
  11950. (checkLongTimePeerChoking): Updated timeout value.
  11951. (getNewPieceAndSendInterest): Added debug log.
  11952. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11953. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11954. (getPeer): Updated.
  11955. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11956. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11957. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11958. is localhost.
  11959. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11960. * src/PendingMessage.cc (processMessage): Not to send piece message
  11961. if peer is not interested in the pieces localhost has.
  11962. * src/Peer.cc (shouldChoke): Updated.
  11963. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11964. * src/Util.cc (isPowerOf): New function.
  11965. * src/Util.h (isPowerOf): New function.
  11966. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11967. whether or not it is power of 2.
  11968. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11969. Added new class SendMessageQueue that includes PendingMessages and
  11970. RequestSlotMan.
  11971. * src/SendMessageQueue.h: New class.
  11972. * src/SendMessageQueue.cc: New class.
  11973. * src/PendingMessage.h: Added new member variable blockIndex and its
  11974. accessors.
  11975. (createRequestMessage): Updated.
  11976. * src/PendingMessage.cc (createRequestMessage): Updated.
  11977. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11978. SendMessageQueue.
  11979. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11980. (receiveMessage): Updated with SendMessageQueue.
  11981. (deletePendingPieceMessage): Removed.
  11982. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11983. (sendInterest): Updated with SendMessageQueue.
  11984. (createRequestPendingMessage): Updated with SendMessageQueue.
  11985. (sendMessages): Updated with SendMessageQueue.
  11986. (onAbort): Updated with SendMessageQueue.
  11987. (keepAlive): Updated with SendMessageQueue.
  11988. (beforeSocketCheck): Updated SendMessageQueue.
  11989. * src/PeerInteractionCommand (sendMessages): Shuffle
  11990. missingBLockIndexes before using it.
  11991. Added its own timeout for peer connection.
  11992. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11993. setter.
  11994. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11995. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11996. Added setTimeout() call.
  11997. (executeInternal): Added setTimeout() call.
  11998. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11999. Added timeout.
  12000. (isTimeoutDetected): Updated.
  12001. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12002. option.
  12003. Added *simple* message flooding checker.
  12004. * src/PeerInteractionCommand.cc (executeInternal):
  12005. Added detectMessageFlooding() call.
  12006. (detectMessageFlooding): New function.
  12007. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12008. (beforeSocketCheck): Added detectMessageFlooding() call.
  12009. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12010. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12011. Removed deletePendingPieceMessage(), getRequestSlot(),
  12012. deleteRequestSlot(), deleteAllRequestSlot().
  12013. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12014. Added checkLongTimePeerChoking() call.
  12015. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12016. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12017. if duplicate == false.
  12018. The parameter "uploaded" and "downloaded" in the tracker request are
  12019. the size since the client sent the "started" event to the tracker.
  12020. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12021. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12022. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12023. getSessionDownloadedSize(), getSessionUploadedSize().
  12024. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12025. getSessionUploadedSize() instead of getDownloadedSize(),
  12026. getUploadedSize().
  12027. * src/PendingMessage.cc (processMessage): Do not send request message
  12028. if the peer is choking the client.
  12029. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12030. less than interval.
  12031. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12032. * configure.in: Added gnutls support. Added several CPP macros.
  12033. * m4/openssl.m4: Added.
  12034. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12035. readData(), peekData(). Added gnutls support.
  12036. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12037. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12038. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12039. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12040. Instead, added a check for whether setup method has executed
  12041. successfully.
  12042. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12043. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12044. * src/Makefile.am: Updated.
  12045. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12046. using whether OpenSSL or gcrypt, depending on the result of configure
  12047. script.
  12048. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12049. messageDigest.h.
  12050. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12051. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12052. Fixed memory leak.
  12053. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12054. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12055. Removed instantiation of TrackerInitCommand. Instead,
  12056. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12057. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12058. ENABLE_SSL.
  12059. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12060. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12061. If a piece is already acquired by another command, delete the request
  12062. slots for the piece.
  12063. * src/TrackerUpdateCommand.cc (execute):
  12064. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12065. Added a check whether peer list is null.
  12066. Fixed the bug that causes sending completed event to the tracker
  12067. several times.
  12068. * src/TrackerInitCommand.cc (execute):
  12069. Fixed the bug that causes sending completed event to the tracker
  12070. several times.
  12071. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12072. by using messageDigest.h.
  12073. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12074. * PeerConnection.cc: Replaced log message "keep-alive" with
  12075. "keep alive".
  12076. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12077. localhost long time.
  12078. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12079. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12080. at most 100 failure entry from the list. If with duplicate = false,
  12081. MAX_PEER_LIST is not checked.
  12082. * PeerListenCommand.cc: Fixed the argument order of log message.
  12083. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12084. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12085. Added warn().
  12086. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12087. Implemented warn().
  12088. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12089. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12090. * Request.h: Added AFTER_COMPLETED event.
  12091. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12092. instead of downloaded size and progress(%) after download completes.
  12093. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12094. message to the peer if it is interested in what localhost has
  12095. downloaded.
  12096. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12097. destination instead of just renaming it.
  12098. * TorrentMan.cc: Added deleteTempFile().
  12099. * PeerAbstractCommand.cc: do not stop execution after download
  12100. completes. This makes localhost a seeder.
  12101. * Util.{h,cc}: Added fileCopy().
  12102. * PeerListenCommand.cc: do not stop execution after download completes.
  12103. This makes localhost a seeder.
  12104. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12105. Added TorrentMan::deleteTempFile() to torrentHandler.
  12106. Initialized the variable dir as ".".
  12107. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12108. Deleted renameSingleFile().
  12109. Added copySingleFile(), deleteTempFile().
  12110. * DownloadEngine.h: Added virtual function afterEachIteration().
  12111. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12112. in onEndOfRun() to afterEachIteration().
  12113. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12114. true.
  12115. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12116. In rangedFileCopy(), added try-catch block to properly close file
  12117. descriptors.
  12118. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12119. Added afterEachIteration(), isFilenameFixed().
  12120. * Peer.cc: Changed choking strategy.
  12121. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12122. * TrackerInitCommand.cc: Send completed event only once.
  12123. * DownloadEngine.cc: Added a call to afterEachIteration().
  12124. * TrackerUpdateCommand.cc: Do not stop execution after download
  12125. completes.
  12126. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12127. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12128. received from a tracker.
  12129. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12130. Decreased the number of failure peers to delete to 0(just comment out
  12131. the line).
  12132. * Release 0.3.1
  12133. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12134. * PeerInteractionCommand.cc: added a call to
  12135. TorrentMan::unadvertisePiece in Destructor.
  12136. * PeerInteractionCommand.cc: make have message sent immediately
  12137. if the size of pending message queue is zero.
  12138. * TorrentMan.cc: set the maximum size of peer list to 250.
  12139. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12140. to deque.
  12141. * Util.cc: fixed rangedFileCopy.
  12142. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12143. to Constructor. Also, moved digest cleanup to Destructor.
  12144. * MetaFileUtil.cc: fixed memory leak
  12145. * replaced std::vector with std::deque.
  12146. * AbstractCommand.cc: casted timeout value to long long int.
  12147. * ChunkedEncoding.cc: fixed memory leak.
  12148. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12149. * SleepCommand.cc: casted timeout value to long long int.
  12150. * Data.cc: fixed memory leak.
  12151. * Data.cc: fixed toLLInt().
  12152. * BitfieldMan.cc: fixed memory leak.
  12153. * TorrentMan.cc: initialized storeDir to ".".
  12154. * TorrentMan.cc: fixed memory leak.
  12155. * TorrentMan.cc: corrected file paths of splitted files.
  12156. * PeerAbstractCommand.cc: casted timeout to long long int.
  12157. * main.cc: added delete(req) and delete(te->diskWriter).
  12158. * RequestSlot.cc: casted timeout value to long long int.
  12159. * Request.cc: fixed memory leak.
  12160. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12161. have the piece.
  12162. * Peer.{h,cc}: added hasPiece(int index).
  12163. * main.cc: corrected addCommand.
  12164. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12165. * BitTorrent protocol support added.
  12166. * Release 0.3.0
  12167. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12168. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12169. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12170. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12171. decoding did not work properly.
  12172. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. * DownloadEngine.h: included sys/time.h
  12174. * DownloadEngine.cc: remove sys/time.h
  12175. * Makefile.am (SUBDIRS): Add intl.
  12176. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12177. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12178. * main.cc: correct help message for --http-auth-scheme.
  12179. * main.cc: changed e-mail address for bug reports.
  12180. * ja.po: added japanese translation.
  12181. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12182. * SimpleLogger.cc: flush log file instead of stdout.
  12183. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12184. * main.cc: Fixed command-line option: max-tries
  12185. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12186. does not equal to seg.sp.
  12187. * DownloadCommand.cc: If EOF is got from the server and the total size
  12188. of file is not zero, then throw DlRetryEx.
  12189. * main.cc: Set the minium value of min-segment-size to 1024.
  12190. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12191. fails because of a regression since 0.2.0 release.
  12192. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12193. * HttpConnection.cc:
  12194. * common.h: defined the user agent name as macro
  12195. * DownloadEngine.{h, cc}:
  12196. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12197. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12198. * main.cc: Download complete/abort message is now generated by main.
  12199. * Makefile.am (SUBDIRS): Add m4.
  12200. (ACLOCAL_AMFLAGS): New variable.
  12201. (EXTRA_DIST): New variable.
  12202. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12203. * gettext: added gettext functionality
  12204. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12205. * AbstractCommand.cc:
  12206. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12207. unregister its cuid from SegmentMan.
  12208. * DownloadEngine.cc: .aria2 file was written when a downloading
  12209. failed with errors.
  12210. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12211. Added "User-Agent" header to CONNECT proxy request.
  12212. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12213. properly.
  12214. * Logger.h:
  12215. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12216. * ChunkedEncoding.cc: Added #include directive for strings.h
  12217. * Release 0.2.1
  12218. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12219. * Util.{h,cc}: added startsWith().
  12220. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12221. Util::endsWith().
  12222. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12223. * common.h: added #include directive of limit.h.
  12224. * DownloadEngine.cc: added #include directive of sys/time.h and
  12225. algorithm.
  12226. * Exception.h: added #include directive of stdio.h.
  12227. * AbstractCommand.h: added #include directive of sys/time.h.
  12228. * DownloadCommand.h: added #include directive of sys/time.h.
  12229. * *.h: added #include directive of common.h to all base classes.
  12230. subclasses' one was removed.
  12231. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12232. does not define these macros.
  12233. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12234. * Release 0.2.0
  12235. * main.cc:
  12236. * HttpInitiateConnectionCommand.{h,cc}:
  12237. * prefs.h:
  12238. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12239. We can now use GET command in http proxy.
  12240. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12241. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12242. that splits slowest segment of SegmentMan::commands vector.
  12243. This is the default split algorithm of aria2.
  12244. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12245. that splits first segment of SegmentMan::commands vector.
  12246. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12247. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12248. * Segment.h:
  12249. * SegmentMan.cc: Added speed field to Segment.h
  12250. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12251. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12252. * message.h: Change file size related %d to %lld.
  12253. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12254. * FtpInitiateConnectionCommand.{h,cc}:
  12255. * FtpNegotiationCommand.{h,cc}:
  12256. * FtpDownloadCommand.{h,cc}:
  12257. * FtpConnection.{h,cc}: Added FTP support
  12258. * SimpleLogger.cc: Log message now includes time information.
  12259. * main.cc: The value of --http-auth-scheme option is chagned from
  12260. 'BASIC' to 'basic'
  12261. * main.cc: Added --timeout command-line option.
  12262. * main.cc: Added --min-segment-size command-line option.
  12263. * main.cc: Added --max-retries command-line option.
  12264. * prefs.h: option string constants are now defined in prefs.h
  12265. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12266. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12267. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12268. with version 0.1.0's one.
  12269. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12270. * configure.in: Added --enable-ssl option to configure script.
  12271. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12272. cannot permit absoluteURI as Request-URI.
  12273. * HttpConnection.cc: Added Referer support.
  12274. * main.cc: Added referer command-line option.
  12275. * main.cc: Added rety-wait command-line option.
  12276. * Exception.h: Fixed formating bug in Exception::setMsg()
  12277. * SocketCore.{h,cc}:
  12278. * Socket.{h, cc}:
  12279. * Request.cc:
  12280. * InitiateConnectionCommandFactory.cc:
  12281. * HttpRequestCommand.cc: Added HTTPS support.
  12282. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12283. for SocketCore.
  12284. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12285. size is wrong
  12286. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12287. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12288. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12289. * Release 0.1.0