ChangeLog 459 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332
  1. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed typos and updated doc.
  3. * README
  4. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Fixed typos
  6. * doc/aria2c.1.txt
  7. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Fixed typos
  9. * src/usage_text.h
  10. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Print a message when no files to download.
  12. * src/download_helper.cc
  13. * src/main.cc
  14. * src/message.h
  15. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. RFC3986 complied Percent-Encoding(urlencode).
  17. Use uppercase hexadecimal digits for encoded text instead of lowercase
  18. ones.
  19. * src/Request.cc
  20. * src/Util.cc
  21. * src/Util.h
  22. * test/BtHandshakeMessageTest.cc
  23. * test/DefaultBtAnnounceTest.cc
  24. * test/DefaultBtContextTest.cc
  25. * test/RequestTest.cc
  26. * test/UtilTest.cc
  27. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Fixed the bug that prevents aria2 from downloading 0-length files
  29. via HTTP/FTP.
  30. * src/DefaultBtContext.cc
  31. * src/DefaultBtContext.h
  32. * src/DownloadContext.h
  33. * src/FtpNegotiationCommand.cc
  34. * src/HttpResponseCommand.cc
  35. * src/HttpResponseCommand.h
  36. * src/RequestGroup.cc
  37. * src/SingleFileDownloadContext.cc
  38. * src/SingleFileDownloadContext.h
  39. * test/BtPostDownloadHandlerTest.cc
  40. * test/MetalinkPostDownloadHandlerTest.cc
  41. * test/MockBtContext.h
  42. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  44. * src/option_processing.cc
  45. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Applied aria2-1.0.1-mingw.patch.
  47. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  48. mingw.
  49. Collected 4th and 5th argument types for getsockopt and setsockopt.
  50. * src/SocketCore.cc
  51. * src/a2netcompat.h
  52. * test/SocketCoreTest.cc
  53. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. * Release 1.0.1
  55. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Updated Ukrainian and Norwegian Nynorsk translations.
  57. Thanks to all translators.
  58. * po/nn.po
  59. * po/uk.po
  60. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Don't show download result when -S option is used.
  62. * src/main.cc
  63. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Bump up version number to 1.0.1
  65. * configure.ac
  66. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Closed files after the test cases in MultiDiskWriterTest::
  68. testResetDiskWriterEntries(). This will fix the unit test error
  69. in mingw32 build.
  70. * test/MultiDiskWriterTest.cc
  71. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Use HEAD method to get file size from HTTP server for segmented
  73. downloading.
  74. The request to the BitTorrent Tracker always uses GET method because
  75. the response of the tracker is small and it doesn't need segmented
  76. download.
  77. * src/FtpNegotiationCommand.cc
  78. * src/HttpRequest.cc
  79. * src/HttpResponseCommand.cc
  80. * src/HttpSkipResponseCommand.cc
  81. * src/RequestGroup.cc
  82. * src/RequestGroup.h
  83. * src/TrackerWatcherCommand.cc
  84. * test/HttpRequestTest.cc
  85. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Fixed the bug that causes floating exception when -T option is used and
  87. no URIs are given.
  88. * src/download_helper.cc
  89. * test/DownloadHelperTest.cc
  90. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  91. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  92. errors in MinGW:
  93. Closed file after saving server stats (RequestGroupMan.cc)
  94. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  95. Ignored case & handled 2-digit years (strptime.c)
  96. Added missing suseconds_t definition (a2time.h)
  97. Fixed socket CLOSE() define (SocketCore.cc)
  98. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  99. Changed utime() test values from x000 to x00000 as MinGW failed on
  100. values less than timezone offset from Unix epoch
  101. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  102. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  103. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  104. handle negative dates (CookieParserTest.cc)
  105. * src/a2time.h
  106. * src/FtpConnection.cc
  107. * src/RequestGroupMan.cc
  108. * src/SocketCore.cc
  109. * src/strptime.c
  110. * test/CookieParserTest.cc
  111. * test/CopyDiskAdaptorTest.cc
  112. * test/FileTest.cc
  113. * test/FtpConnectionTest.cc
  114. * test/MultiDiskAdaptorTest.cc
  115. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  117. * doc/aria2c.1.txt
  118. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. * Release 1.0.0
  120. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Added '~' to reserved characters.
  122. * src/Util.cc
  123. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Do not urlencode Request::url in setUrl() because we want unmodified
  125. URL using Request::getUrl()
  126. * src/Request.cc
  127. * src/Request.h
  128. * test/RequestTest.cc
  129. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  131. Thanks to all translators.
  132. * po/bg.po
  133. * po/fr.po
  134. * po/ja.po
  135. * po/ru.po
  136. * po/uk.po
  137. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Bump up version number to 1.0.0
  139. * configure.ac
  140. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Added nosqlite3 build to build_test.sh.
  142. Renamed noxml as expat.
  143. * build_test.sh
  144. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Updated INPUT FILE section.
  146. * doc/aria2c.1.txt
  147. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  149. on big endian systems because test .aria2 files are made for little
  150. endian systems.
  151. * test/DefaultBtProgressInfoFileTest.cc
  152. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Dropped ares support.
  154. * README
  155. * configure.ac
  156. * m4/libares.m4: Removed.
  157. * src/AsyncNameResolver.cc
  158. * src/Makefile.am
  159. * test/Makefile.am
  160. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  162. Removed const qualifier from DiskWriter::size().
  163. * src/AbstractDiskWriter.cc
  164. * src/AbstractDiskWriter.h
  165. * src/ByteArrayDiskWriter.cc
  166. * src/ByteArrayDiskWriter.h
  167. * src/DiskWriter.h
  168. * test/ByteArrayDiskWriterTest.cc
  169. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Fixed the bug that causes segmentation fault/bus error during executing
  171. choking algorithm while seeding. This is caused by improper
  172. implementation of compare function which returns inconsistent results
  173. depending on the timing of last unchoke.
  174. * src/BtSeederStateChoke.cc
  175. * src/BtSeederStateChoke.h
  176. * src/DefaultPeerStorage.cc
  177. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Removed TODO
  179. * TODO
  180. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Added a section that explains how to pass argument to options that
  182. takes optional arguments with its short form.
  183. * doc/aria2c.1.txt
  184. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Added -u for the short form of --max-upload-limit option.
  186. * doc/aria2c.1.txt
  187. * src/option_processing.cc
  188. * src/usage_text.h
  189. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Added -V for the short form of --check-integrity option.
  191. Now the argument of --check-integrity option is optional:
  192. if it is omitted, it is evaluated as true.
  193. * doc/aria2c.1.txt
  194. * src/option_processing.cc
  195. * src/usage_text.h
  196. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Made the default value of --ftp-pasv option set to true and it can take
  198. true/false values.
  199. * src/OptionHandlerFactory.cc
  200. * src/option_processing.cc
  201. * src/usage_text.h
  202. * doc/aria2c.1.txt
  203. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Given custom random number generator to std::random_shuffle.
  205. * src/AnnounceList.cc
  206. * src/BtLeecherStateChoke.cc
  207. * src/BtSeederStateChoke.cc
  208. * src/DefaultBtRequestFactory.cc
  209. * src/MetalinkEntry.cc
  210. * src/RarestPieceSelector.cc
  211. * src/SimpleRandomizer.cc
  212. * src/SimpleRandomizer.h
  213. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Now the default value of --enable-direct-io is true.
  215. * src/OptionHandlerFactory.cc
  216. * doc/aria2c.1.txt
  217. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Erase peer before executing onReturningPeer and onErasingPeer
  219. because choking algorithm called from onReturningPeer doesn't
  220. like erasing peer in the active peer list.
  221. * src/DefaultPeerStorage.cc
  222. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Instead of creating special filename in createDownloadResult() if
  224. inMemoryDownload() is true, now it is done in getFilePath().
  225. * src/RequestGroup.cc
  226. * test/RequestGroupTest.cc
  227. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Print "[MEMORY]" and filename if a file is not saved in disk and just
  229. processed in memory. This is the fix for previous comment out.
  230. * src/MemoryBufferPreDownloadHandler.cc
  231. * src/RequestGroup.cc
  232. * src/RequestGroup.h
  233. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Commented out the code which sets virtual directory path "[MEMORY]"
  235. propagate directory to store to following RequestGroup.
  236. * src/MemoryBufferPreDownloadHandler.cc
  237. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Bump up version number to 1.0.0b
  239. * configure.ac
  240. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Added input_uris.txt to EXTRA_DIST
  242. * test/Makefile.am
  243. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Removed PeerObject.h from Makefile.am
  245. * src/Makefile.am
  246. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Avoid slow seeding
  248. * src/PeerInteractionCommand.cc
  249. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Updated usage for -i option.
  251. * src/usage_text.h (TEXT_INPUT_FILE)
  252. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Added INPUT FILE section to man page.
  254. Escaped fake URLs.
  255. * doc/aria2c.1.txt
  256. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Fixed wrong note position for -o option.
  258. * doc/aria2c.1.txt
  259. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Fixed compile error without SSL/XML library.
  261. * src/DefaultBtProgressInfoFile.cc
  262. * src/DefaultBtProgressInfoFile.h
  263. * src/FileMetalinkParserState.cc
  264. * src/RequestGroup.h
  265. * src/SocketCore.cc
  266. * src/SocketCore.h
  267. * src/VerificationMetalinkParserState.cc
  268. * src/download_helper.h
  269. * src/main.cc
  270. * test/DefaultBtProgressInfoFileTest.cc
  271. * test/DownloadHelperTest.cc
  272. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Rewritten URI handling functions. They are now provided as a testable
  274. functions.
  275. * src/Makefile.am
  276. * src/RequestGroup.cc
  277. * src/RequestGroup.h
  278. * src/download_helper.cc
  279. * src/download_helper.h
  280. * src/main.cc
  281. * test/DownloadHelperTest.cc
  282. * test/Makefile.am
  283. * test/input_uris.txt
  284. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Quickly terminate commands when ctrl-c is pressed.
  286. * src/DownloadEngine.cc
  287. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Quickly terminate idle commands when download finished.
  289. * src/AbstractCommand.cc
  290. * src/DownloadCommand.cc
  291. * src/DownloadEngine.cc
  292. * src/DownloadEngine.h
  293. * src/SleepCommand.cc
  294. * src/SleepCommand.h
  295. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Added the ability to specify output filename and directory in input
  297. file.
  298. Additional parameters are added in the following line of URIs
  299. with proceeding white space(s), 1 parameter in 1 line.
  300. The parameter names are the same with the command-line option name
  301. without proceeding "--". Not all the options are available here:
  302. at the moment, 'dir' and 'out' options are avialable.
  303. Please note that out option has no effect against Metalink or BitTorrent
  304. downloads.
  305. Example input file:
  306. http://host/foo-1.1.tar.bz2
  307. out=foo.tar.bz2
  308. dir=/tmp/downloads
  309. http://host/thundermonkey-2.0.tar.bz2
  310. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  311. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  312. thundermonkey-2.0.tar.bz2 is saved as
  313. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  314. * src/BtPostDownloadHandler.cc
  315. * src/Metalink2RequestGroup.cc
  316. * src/Metalink2RequestGroup.h
  317. * src/MetalinkPostDownloadHandler.cc
  318. * src/UriListParser.cc
  319. * src/UriListParser.h
  320. * src/main.cc
  321. * test/Metalink2RequestGroupTest.cc
  322. * test/UriListParserTest.cc
  323. * test/filelist1.txt
  324. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Fixed error when SSL library is not found.
  326. * configure.ac
  327. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Cross referenced among -s, -C and -j options.
  329. Updated usage of -C and -s options.
  330. * src/usage_text.h
  331. * doc/aria2c.1.txt
  332. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Fixed bad cast in 32bit platforms.
  334. * test/DefaultPieceStorageTest.cc
  335. (DefaultPieceStorageTest::testGetCompletedLength)
  336. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Fixed unit test fails on 32bit platforms.
  338. * test/CookieParserTest.cc
  339. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Show an average download speed in Download results.
  341. * src/BtFileAllocationEntry.cc
  342. * src/DefaultPieceStorage.cc
  343. * src/DownloadContext.cc
  344. * src/DownloadContext.h
  345. * src/DownloadResult.h
  346. * src/RequestGroup.cc
  347. * src/RequestGroupMan.cc
  348. * src/StreamFileAllocationEntry.cc
  349. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Fixed the bug that metalink file is not processed if Content-Type
  351. field has a paramter.
  352. * src/HttpResponse.cc
  353. * src/HttpResponse.h
  354. * test/HttpResponseTest.cc
  355. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Removed unused code.
  357. * src/DefaultBtAnnounce.cc
  358. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  360. the value larger than DefaultPieceStorage::getTotalLength() when
  361. in flight pieces are involved.
  362. * src/DefaultPieceStorage.cc
  363. * test/DefaultPieceStorageTest.cc
  364. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Bump up version number to 1.0.0a.
  366. * configure.ac
  367. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Updated configure.ac
  369. * configure.ac
  370. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Added usege for proxy.
  372. * doc/aria2c.1.txt
  373. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Added usage for --ca-certificate, --certificate, --private-key and
  375. --check-certificate options.
  376. * doc/aria2c.1.txt
  377. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Updated man page
  379. * doc/aria2c.1.txt
  380. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Added --no-proxy option. It receives comman separated hostname or
  382. domains to which proxy should not be used.
  383. aria2 honors the environment variable no_proxy to override no-proxy
  384. value in configuration file. The user can override the environment
  385. variable no_proxy with --no-proxy command-line option.
  386. * src/AbstractCommand.cc
  387. * src/OptionHandlerFactory.cc
  388. * src/option_processing.cc
  389. * src/prefs.cc
  390. * src/prefs.h
  391. * src/usage_text.h
  392. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Added the ability to verify peer in SSL/TLS using given CA certificates.
  394. The CA certificates are specified in --ca-certificate option.
  395. By default, the verification is disabled. Use --check-certificate
  396. option to enable it.
  397. * src/HttpRequestCommand.cc
  398. * src/LibgnutlsTLSContext.cc
  399. * src/LibgnutlsTLSContext.h
  400. * src/LibsslTLSContext.cc
  401. * src/LibsslTLSContext.h
  402. * src/MultiUrlRequestInfo.cc
  403. * src/OptionHandlerFactory.cc
  404. * src/SocketCore.cc
  405. * src/SocketCore.h
  406. * src/a2functional.h
  407. * src/message.h
  408. * src/option_processing.cc
  409. * src/prefs.cc
  410. * src/prefs.h
  411. * src/usage_text.h
  412. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Added client certificate authentication for SSL/TLS.
  414. Currently a private key must be decrypted for use with aria2.
  415. If a user accidentally gives encrypted file to aria2 then following
  416. thing happens:
  417. If encrypted private key is given to aria2, it behaves differently
  418. depending on the ssl library it uses. If aria2 built with openssl then
  419. openssl prompts the user for password. If aria2 build with gnutls then
  420. aria2 exists with error at start up.
  421. * src/DownloadEngineFactory.cc
  422. * src/MultiUrlRequestInfo.cc
  423. * src/OptionHandlerFactory.cc
  424. * src/option_processing.cc
  425. * src/prefs.cc
  426. * src/prefs.h
  427. * src/usage_text.h
  428. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Introduced TLSContext that holds TLS related data that can be shared
  430. with multiple SSL connections.
  431. * src/DownloadEngineFactory.cc
  432. * src/LibgnutlsTLSContext.cc
  433. * src/LibgnutlsTLSContext.h
  434. * src/LibsslTLSContext.cc
  435. * src/LibsslTLSContext.h
  436. * src/Makefile.am
  437. * src/SocketCore.cc
  438. * src/SocketCore.h
  439. * src/TLSContext.h
  440. * src/message.h
  441. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Fixed the bug that the DiskWriter of the first FileEntry whose
  443. `needsFileAllocation' property is false is not created
  444. even if it shares a piece with next FileEntry which `requested' property
  445. is true.
  446. Fixed the bug that zero-length file is not created if pre file
  447. allocation is not done.
  448. * src/MultiDiskAdaptor.cc
  449. * src/MultiDiskAdaptor.h
  450. * test/MultiDiskAdaptorTest.cc
  451. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  452. Added the ability to pool proxy connection.
  453. The conneciton in FTP with proxy-method=GET is not pooled.
  454. Proxy-Connection header will not be sent when sending CONNECT method.
  455. * src/DownloadEngine.cc
  456. * src/DownloadEngine.h
  457. * src/FtpFinishDownloadCommand.cc
  458. * src/FtpInitiateConnectionCommand.cc
  459. * src/FtpNegotiationCommand.cc
  460. * src/HttpDownloadCommand.cc
  461. * src/HttpInitiateConnectionCommand.cc
  462. * src/HttpRequest.cc
  463. * src/HttpRequest.h
  464. * src/HttpResponse.cc
  465. * src/HttpSkipResponseCommand.cc
  466. * test/HttpRequestTest.cc
  467. * test/HttpResponseTest.cc
  468. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  469. Handle date before epoch.
  470. To create *bad* Time object, call Time::null().
  471. * src/CookieParser.cc
  472. * src/FtpConnection.cc
  473. * src/FtpConnection.h
  474. * src/FtpNegotiationCommand.cc
  475. * src/RequestGroup.cc
  476. * src/TimeA2.cc
  477. * src/TimeA2.h
  478. * test/CookieParserTest.cc
  479. * test/FtpConnectionTest.cc
  480. * test/TimeTest.cc
  481. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  482. Added support for following envrionment variables: http_proxy,
  483. https_proxy, ftp_proxy and all_proxy.
  484. Each variable is equivalent to the aria2 option whose name is the
  485. variable name with '_' replaced with '-'.
  486. They overrides options specified in aria2.conf file.
  487. The envrionment variables can be overrode using command-line option.
  488. * src/option_processing.cc
  489. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  490. Renamed --http-proxy-method as --proxy-method.
  491. * src/AbstractCommand.cc
  492. * src/FtpInitiateConnectionCommand.cc
  493. * src/HttpInitiateConnectionCommand.cc
  494. * src/OptionHandlerFactory.cc
  495. * src/option_processing.cc
  496. * src/prefs.cc
  497. * src/prefs.h
  498. * src/usage_text.h
  499. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  500. Deprecated --http-proxy-user and --http-proxy-passwd options.
  501. Added --https-proxy, --ftp-proxy and --all-proxy options.
  502. Above 3 options and --http-proxy option can handle proxy in URL format
  503. like: http://user:passwd@host:port.
  504. If a proxy requires user/password, they must be specified in a URL.
  505. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  506. instead.
  507. * src/AbstractCommand.cc
  508. * src/AbstractCommand.h
  509. * src/AbstractProxyRequestCommand.cc
  510. * src/AbstractProxyRequestCommand.h
  511. * src/AuthConfigFactory.cc
  512. * src/AuthConfigFactory.h
  513. * src/FtpFinishDownloadCommand.cc
  514. * src/FtpInitiateConnectionCommand.cc
  515. * src/FtpInitiateConnectionCommand.h
  516. * src/FtpNegotiationCommand.cc
  517. * src/FtpTunnelRequestCommand.cc
  518. * src/FtpTunnelRequestCommand.h
  519. * src/HttpDownloadCommand.cc
  520. * src/HttpInitiateConnectionCommand.cc
  521. * src/HttpInitiateConnectionCommand.h
  522. * src/HttpProxyRequestCommand.cc
  523. * src/HttpProxyRequestCommand.h
  524. * src/HttpRequest.cc
  525. * src/HttpRequest.h
  526. * src/HttpRequestCommand.cc
  527. * src/HttpRequestCommand.h
  528. * src/HttpSkipResponseCommand.cc
  529. * src/InitiateConnectionCommand.cc
  530. * src/InitiateConnectionCommand.h
  531. * src/OptionHandlerFactory.cc
  532. * src/OptionHandlerImpl.h
  533. * src/Request.cc
  534. * src/option_processing.cc
  535. * src/prefs.cc
  536. * src/prefs.h
  537. * src/usage_text.h
  538. * test/AuthConfigFactoryTest.cc
  539. * test/HttpRequestTest.cc
  540. * test/OptionHandlerTest.cc
  541. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  542. Execute choking algorithm when unchoked and interested peer is
  543. disconected.
  544. * src/DefaultPeerStorage.cc
  545. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  546. Added testcase for BtNotInterestedMessage from unchoked peer.
  547. * test/BtNotInterestedMessageTest.cc
  548. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  549. Execute choking algorithm when BtInterestedMessage arrives from
  550. unchoked peer.
  551. * src/BtInterestedMessage.cc
  552. * src/BtInterestedMessage.h
  553. * src/DefaultBtMessageFactory.cc
  554. * test/BtInterestedMessageTest.cc
  555. * test/MockPeerStorage.h
  556. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  557. AuthConfigFactory is now part of DownloadEngine.
  558. * src/AbstractProxyRequestCommand.cc
  559. * src/AuthConfigFactory.h
  560. * src/DownloadEngine.cc
  561. * src/DownloadEngine.h
  562. * src/FtpConnection.cc
  563. * src/FtpConnection.h
  564. * src/FtpNegotiationCommand.cc
  565. * src/HttpConnection.cc
  566. * src/HttpRequest.cc
  567. * src/HttpRequest.h
  568. * src/HttpRequestCommand.cc
  569. * src/HttpResponse.cc
  570. * src/HttpResponseCommand.cc
  571. * src/HttpSkipResponseCommand.cc
  572. * src/MultiUrlRequestInfo.cc
  573. * src/main.cc
  574. * test/FtpConnectionTest.cc
  575. * test/HttpRequestTest.cc
  576. * test/HttpResponseTest.cc
  577. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  578. Corrected catched exception type.
  579. * src/ServerStatMan.cc
  580. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  581. DNSCache is now part of DownloadEngine.
  582. * src/DNSCache.h
  583. * src/DownloadEngine.cc
  584. * src/DownloadEngine.h
  585. * src/InitiateConnectionCommand.cc
  586. * src/MultiUrlRequestInfo.cc
  587. * test/Makefile.am
  588. * test/Makefile.in
  589. * test/SimpleDNSCacheTest.cc
  590. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  591. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  592. DownloadEngine.
  593. * src/ActivePeerConnectionCommand.cc
  594. * src/BtSetup.cc
  595. * src/CUIDCounter.h
  596. * src/DHTSetup.cc
  597. * src/DownloadCommand.cc
  598. * src/DownloadEngine.cc
  599. * src/DownloadEngine.h
  600. * src/DownloadEngineFactory.cc
  601. * src/FileAllocationDispatcherCommand.cc
  602. * src/InitiatorMSEHandshakeCommand.cc
  603. * src/PeerInitiateConnectionCommand.cc
  604. * src/PeerInteractionCommand.cc
  605. * src/PeerListenCommand.cc
  606. * src/RequestGroup.cc
  607. * src/StreamFileAllocationEntry.cc
  608. * src/TrackerWatcherCommand.cc
  609. * src/main.cc
  610. * test/RequestGroupManTest.cc
  611. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  612. Implemented commented code in BtSeederStateChoke
  613. * src/BtSeederStateChoke.cc
  614. * src/Peer.cc
  615. * src/Peer.h
  616. * src/PeerInteractionCommand.cc
  617. * src/PeerSessionResource.cc
  618. * src/PeerSessionResource.h
  619. * test/MockBtMessageDispatcher.h
  620. * test/PeerSessionResourceTest.cc
  621. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  622. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  623. its object.
  624. * src/AbstractBtMessage.cc
  625. * src/ActivePeerConnectionCommand.cc
  626. * src/ActivePeerConnectionCommand.h
  627. * src/BtContextAwareCommand.cc
  628. * src/BtContextAwareCommand.h
  629. * src/BtExtendedMessage.cc
  630. * src/BtExtendedMessage.h
  631. * src/BtInterestedMessage.cc
  632. * src/BtInterestedMessage.h
  633. * src/BtNotInterestedMessage.cc
  634. * src/BtNotInterestedMessage.h
  635. * src/BtRegistry.cc
  636. * src/BtRegistry.h
  637. * src/BtSeederStateChoke.cc
  638. * src/BtSetup.cc
  639. * src/DHTGetPeersCommand.cc
  640. * src/DHTGetPeersCommand.h
  641. * src/DHTPeerAnnounceEntry.cc
  642. * src/DHTPeerAnnounceEntry.h
  643. * src/DHTPeerAnnounceStorage.cc
  644. * src/DHTPeerAnnounceStorage.h
  645. * src/DHTPeerLookupTask.cc
  646. * src/DHTPeerLookupTask.h
  647. * src/DHTSetup.cc
  648. * src/DHTSetup.h
  649. * src/DHTTaskFactory.h
  650. * src/DHTTaskFactoryImpl.cc
  651. * src/DHTTaskFactoryImpl.h
  652. * src/DefaultBtAnnounce.cc
  653. * src/DefaultBtInteractive.cc
  654. * src/DefaultBtInteractive.h
  655. * src/DefaultBtMessageDispatcher.cc
  656. * src/DefaultBtMessageDispatcher.h
  657. * src/DefaultBtMessageFactory.cc
  658. * src/DefaultBtMessageFactory.h
  659. * src/DefaultBtMessageReceiver.cc
  660. * src/DefaultBtProgressInfoFile.cc
  661. * src/DefaultBtProgressInfoFile.h
  662. * src/DefaultBtRequestFactory.cc
  663. * src/DefaultBtRequestFactory.h
  664. * src/DefaultExtensionMessageFactory.cc
  665. * src/DefaultExtensionMessageFactory.h
  666. * src/DefaultPeerStorage.cc
  667. * src/DefaultPeerStorage.h
  668. * src/DownloadEngine.cc
  669. * src/DownloadEngine.h
  670. * src/InitiatorMSEHandshakeCommand.cc
  671. * src/InitiatorMSEHandshakeCommand.h
  672. * src/MSEHandshake.cc
  673. * src/MSEHandshake.h
  674. * src/Makefile.am
  675. * src/Makefile.in
  676. * src/PeerChokeCommand.cc
  677. * src/PeerChokeCommand.h
  678. * src/PeerInitiateConnectionCommand.cc
  679. * src/PeerInitiateConnectionCommand.h
  680. * src/PeerInteractionCommand.cc
  681. * src/PeerInteractionCommand.h
  682. * src/PeerObject.h
  683. * src/PeerReceiveHandshakeCommand.cc
  684. * src/PeerReceiveHandshakeCommand.h
  685. * src/ReceiverMSEHandshakeCommand.cc
  686. * src/RequestGroup.cc
  687. * src/RequestGroup.h
  688. * src/RequestGroupMan.cc
  689. * src/RequestGroupMan.h
  690. * src/SeedCheckCommand.cc
  691. * src/SeedCheckCommand.h
  692. * src/ShareRatioSeedCriteria.h
  693. * src/SimpleBtMessage.cc
  694. * src/TrackerWatcherCommand.cc
  695. * src/TrackerWatcherCommand.h
  696. * src/UTPexExtensionMessage.cc
  697. * src/UTPexExtensionMessage.h
  698. * test/BtCancelMessageTest.cc
  699. * test/BtChokeMessageTest.cc
  700. * test/BtExtendedMessageTest.cc
  701. * test/BtInterestedMessageTest.cc
  702. * test/BtNotInterestedMessageTest.cc
  703. * test/BtPieceMessageTest.cc
  704. * test/BtPortMessageTest.cc
  705. * test/BtRegistryTest.cc
  706. * test/BtRejectMessageTest.cc
  707. * test/BtRequestMessageTest.cc
  708. * test/DHTPeerAnnounceEntryTest.cc
  709. * test/DHTPeerAnnounceStorageTest.cc
  710. * test/DefaultBtMessageDispatcherTest.cc
  711. * test/DefaultBtMessageFactoryTest.cc
  712. * test/DefaultBtProgressInfoFileTest.cc
  713. * test/DefaultBtRequestFactoryTest.cc
  714. * test/DefaultExtensionMessageFactoryTest.cc
  715. * test/MSEHandshakeTest.cc
  716. * test/MockDHTTaskFactory.h
  717. * test/ShareRatioSeedCriteriaTest.cc
  718. * test/UTPexExtensionMessageTest.cc
  719. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  720. Fixed compiler warning.
  721. * test/UtilTest.cc
  722. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  723. Treat Cookie object as session cookie if expiry = 0 is given.
  724. With this change, you can specify session scoped cookies in an external
  725. file setting expiry value to 0.
  726. * src/Cookie.cc
  727. * src/Cookie.h
  728. * test/CookieParserTest.cc
  729. * test/CookieStorageTest.cc
  730. * test/CookieTest.cc
  731. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  732. Changed signature of DHTMessageFactory::createResponseMessage().
  733. Removed unused validateIDMatch.
  734. * src/DHTMessageFactory.h
  735. * src/DHTMessageFactoryImpl.cc
  736. * src/DHTMessageFactoryImpl.h
  737. * src/DHTMessageTracker.cc
  738. * test/DHTMessageFactoryImplTest.cc
  739. * test/MockDHTMessageFactory.h
  740. Dropped DHT message coming from same ID of localhost.
  741. * src/DHTMessageReceiver.cc
  742. Rejected adding node whose ID is the same as localhost's.
  743. * src/DHTRoutingTable.cc
  744. * test/BtPortMessageTest.cc
  745. * test/DHTRoutingTableTest.cc
  746. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  747. Pool connection when redirection occurs with Content-Length = 0.
  748. * src/HttpSkipResponseCommand.cc
  749. * src/HttpSkipResponseCommand.h
  750. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  751. Fixed the bug that causes time out when redirection occurs with
  752. content-length 0.
  753. * src/HttpResponseCommand.cc
  754. * src/HttpSkipResponseCommand.cc
  755. * src/HttpSkipResponseCommand.h
  756. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  757. Now each status legends is shown only when it appears in Download
  758. Result. If Download Result has no item, then status legend will not
  759. be printed.
  760. * src/RequestGroupMan.cc
  761. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  762. Removed duplicate creation of OptionHandlers.
  763. * src/option_processing.cc
  764. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  765. Fixed the bug that causes segmentation fault when accessing files which
  766. don't exist or are not included in --select-file option while
  767. validating chunk checksum.
  768. * src/MultiDiskAdaptor.cc
  769. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  770. Fixed compiler warning.
  771. * test/UtilTest.cc
  772. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  773. Included cstdlib. This fixed the compile error with g++-4.3.2.
  774. * src/IteratableChecksumValidator.cc
  775. * src/IteratableChunkChecksumValidator.cc
  776. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  777. * Release 0.16.2
  778. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  779. Added Serbian translation. Updated Ukrainian translation.
  780. Thanks to all translators.
  781. * po/sr.po
  782. * po/uk.po
  783. * po/LINGUAS
  784. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  785. Bump up version number to 0.16.2
  786. * configure.ac
  787. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  788. Added length equality test to operator== to drop a piece message
  789. whose length does not match to the requested one.
  790. * src/RequestSlot.cc
  791. * test/DefaultBtMessageDispatcherTest.cc
  792. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  793. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  794. recieved.
  795. In this fix, if a request larger than 16KiB length is received, aria2
  796. disconnects the peer.
  797. * src/BtConstants.h
  798. * src/PeerMessageUtil.cc
  799. * src/PeerMessageUtil.h
  800. * test/BtRequestMessageTest.cc
  801. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  802. * Release 0.16.1
  803. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  804. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  805. * doc/aria2c.1.txt
  806. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  807. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  808. Updated French, Simplified Chinese and Japanese translations.
  809. Thanks to all translators.
  810. en@quot and en@boldquot are also added.
  811. * po/LINGUAS
  812. * po/fr.po
  813. * po/ja.po
  814. * po/uk.po
  815. * po/vi.po
  816. * po/zh_CN.po
  817. * po/zh_TW.po
  818. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  819. Bump up version number to 0.16.1.
  820. * configure.ac
  821. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  822. Updated README.
  823. * README
  824. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  825. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  826. not to replace '--' with em dash character.
  827. * doc/aria2c.1.txt
  828. * doc/makeman
  829. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  830. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  831. every SEC seconds.
  832. * src/DownloadEngineFactory.cc
  833. * src/OptionHandlerFactory.cc
  834. * src/option_processing.cc
  835. * src/usage_text.h
  836. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  837. Fixed compile warning on linux-amd64
  838. * src/FtpConnection.cc
  839. * src/IteratableChunkChecksumValidator.cc
  840. * src/MultiDiskAdaptor.cc
  841. Fixed the bug that unit test fails on linux-amd64
  842. * test/UtilTest.cc
  843. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  844. Added --dht-file-path option to change the path to dht.dat, which is a
  845. serialized DHT routing table.
  846. * src/OptionHandlerFactory.cc
  847. * src/option_processing.cc
  848. * src/usage_text.h
  849. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  850. Fixed possible underflow.
  851. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  852. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  853. Fixed the bug that last character in URI is not encoded.
  854. * src/Request.cc
  855. * test/RequestTest.cc
  856. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  857. Fixed the bug that referer header field contains fragment.
  858. Now Request class removes fragment part of URI and encodes it
  859. in Request::setUri() and setReferer().
  860. * src/Request.h
  861. * src/Request.cc
  862. * test/RequestTest.cc
  863. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  864. Added missing m4 macros.
  865. * m4/cppunit.m4
  866. * m4/libgcrypt.m4
  867. * m4/libgnutls-extra.m4
  868. * m4/libgnutls.m4
  869. * m4/libxml2.m4
  870. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  871. Fixed compile error with gcc-4.4(snapshot)
  872. * src/File.cc
  873. * src/FtpConnection.cc
  874. * src/OptionHandlerImpl.h
  875. * src/Util.cc
  876. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  877. Removed assert()
  878. * src/SocketBuffer.cc (SocketBuffer::send)
  879. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  880. Changed the type of _numNewConnection to unsigned int.
  881. * src/ActivePeerConnectionCommand.cc
  882. * src/ActivePeerConnectionCommand.h
  883. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  884. * Release 0.16.0
  885. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  886. Updated doc
  887. * README
  888. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  889. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  890. translations. Thanks to all translators.
  891. * po/bg.po
  892. * po/de.po
  893. * po/fr.po
  894. * po/ja.po
  895. * po/zh_CN.po
  896. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  897. Bump up version number to 0.16.0.
  898. * configure.ac
  899. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  900. Casted entry->maxConnections to int32_t for std::min<T> with T =
  901. int32_t.
  902. Changed the type of count to int32_t.
  903. * src/Metalink2RequestGroup.cc
  904. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  905. Added test for Time::elapsed(time_t).
  906. * test/TimeTest.cc
  907. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  908. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  909. Util::difftv() should be used instead.
  910. * src/TimeA2.cc
  911. * src/TimeA2.h
  912. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  913. Made socket for dht connections non-blocking
  914. * src/DHTAbstractMessage.cc
  915. * src/DHTAbstractMessage.h
  916. * src/DHTConnection.h
  917. * src/DHTConnectionImpl.cc
  918. * src/DHTConnectionImpl.h
  919. * src/DHTMessage.h
  920. * src/DHTMessageDispatcherImpl.cc
  921. * src/DHTMessageDispatcherImpl.h
  922. * src/DHTUnknownMessage.cc
  923. * src/DHTUnknownMessage.h
  924. * src/SocketCore.cc
  925. * src/SocketCore.h
  926. * test/MockDHTMessage.h
  927. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Changed the type of offset to int.
  929. * src/ParameterizedStringParser.cc
  930. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  931. Made getAsInt() return int32_t
  932. * src/Option.h
  933. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  934. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  935. build.
  936. * configure.ac
  937. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  938. Use sqlite3_open if sqlite3_open_v2 is not available.
  939. * src/Sqlite3MozCookieParser.cc
  940. * src/Sqlite3MozCookieParser.h
  941. * m4/sqlite3.m4
  942. * test/Sqlite3MozCookieParserTest.cc
  943. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  944. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  945. * src/BtPieceMessage.cc
  946. * src/DHTPeerAnnounceStorage.cc
  947. * src/DefaultPieceStorage.cc
  948. * src/DownloadCommand.cc
  949. * src/DownloadEngine.cc
  950. * src/FtpConnection.cc
  951. * src/PeerConnection.cc
  952. * src/PeerMessageUtil.cc
  953. * src/RequestGroup.cc
  954. * src/RequestGroupMan.cc
  955. * src/SimpleBtMessage.cc
  956. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  957. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  958. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  959. * src/AbstractDiskWriter.cc
  960. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  961. Don't set Request::supportsPersistentConnection() in HttpConnection
  962. since this code is also used in AbstractProxyResponseCommand.
  963. Moved those code to HttpResponse.
  964. * src/HttpResponse.cc
  965. * src/HttpResponse.h
  966. * src/HttpConnection.cc
  967. * src/HttpConnection.h
  968. * src/HttpResponseCommand.cc
  969. * test/HttpResponseTest.cc
  970. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  971. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  972. The configuration is minimum: no torrent, no metalink, so there may be
  973. other compile error on their code.
  974. * src/a2netcompat.h
  975. * src/File.cc
  976. * src/File.h
  977. * src/SocketCore.cc
  978. * src/SocketCore.h
  979. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  980. Made a socket of incoming peer non-blocking.
  981. * src/PeerListenCommand.cc
  982. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  983. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  984. whole message data is not sent in one send() call.
  985. * src/BtPieceMessage.cc
  986. * src/BtPieceMessage.h
  987. * src/PeerConnection.cc
  988. * src/PeerConnection.h
  989. * src/SimpleBtMessage.cc
  990. * src/SimpleBtMessage.h
  991. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  992. Fixed the bug that aria2 downloads faster than max-download-limit when
  993. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  994. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  995. , instead of sum of them.
  996. * src/ActivePeerConnectionCommand.cc
  997. * src/DefaultBtInteractive.cc
  998. * src/DownloadCommand.cc
  999. * src/PeerInteractionCommand.cc
  1000. * src/PeerReceiveHandshakeCommand.cc
  1001. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1002. Fixed the bug that HTTPS download fails.
  1003. * src/AbstractCommand.cc
  1004. * src/AbstractCommand.h
  1005. * src/DownloadCommand.cc
  1006. * src/FtpConnection.cc
  1007. * src/HttpConnection.cc
  1008. * src/HttpRequestCommand.cc
  1009. * src/HttpResponseCommand.cc
  1010. * src/HttpSkipResponseCommand.cc
  1011. * src/MSEHandshake.cc
  1012. * src/PeerConnection.cc
  1013. * src/SocketCore.cc
  1014. * src/SocketCore.h
  1015. Fixed the bug that aria2 doesn't download whole content body and cannot
  1016. reuse connection if chunked transfer encoding and gzip content encoding
  1017. are set.
  1018. * src/DownloadCommand.cc
  1019. * src/HttpSkipResponseCommand.cc
  1020. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1021. Updated man page.
  1022. * doc/aria2c.1.txt
  1023. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1024. When error occurred while aria2 was parsing an .aria2.conf file, print
  1025. the usage of the option that caused error.
  1026. * src/option_processing.cc
  1027. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1028. Fixed compile error on OptionHandlerException
  1029. * src/Makefile.am
  1030. * src/OptionHandlerException.cc
  1031. * src/OptionHandlerException.h
  1032. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1033. Moved message of the error to OptionHandlerException.h
  1034. * src/NameMatchOptionHandler.h
  1035. * src/OptionHandlerException.h
  1036. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1037. When error occurs while aria2 is parsing an command-line option, print
  1038. the usage of the option.
  1039. * src/Makefile.am
  1040. * src/NameMatchOptionHandler.h
  1041. * src/OptionHandlerException.h
  1042. * src/option_processing.cc
  1043. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1044. Reverted previous change.
  1045. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  1046. username is not in URI.
  1047. * src/HttpRequest.cc
  1048. * src/Request.cc
  1049. * test/HttpRequestTest.cc
  1050. * test/RequestTest.cc
  1051. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1052. Now colon is required for username and password in FTP URL, like:
  1053. ftp://username:password@host.
  1054. If colon is not there, aria2 don't parse it as a username. For example,
  1055. aria2 don't retrieve username from ftp://username@host.
  1056. This fix was made in order to login FTP server via non-transparent ftp
  1057. proxy.
  1058. * src/Request.cc
  1059. * test/RequestTest.cc
  1060. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1061. Use netrc for HTTP.
  1062. Now FTP user/password is sent in Authorization header when
  1063. --ftp-via-http-proxy=get is given.
  1064. * src/AuthConfigFactory.cc
  1065. * src/HttpRequest.cc
  1066. * src/HttpRequest.h
  1067. * src/NetrcAuthResolver.cc
  1068. * src/NetrcAuthResolver.h
  1069. * src/OptionHandlerFactory.cc
  1070. * src/option_processing.cc
  1071. * src/prefs.cc
  1072. * src/prefs.h
  1073. * test/AuthConfigFactoryTest.cc
  1074. * test/HttpRequestTest.cc
  1075. * test/NetrcAuthResolverTest.cc
  1076. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1077. Issue PWD command first and get working directory and use it as a prefix
  1078. for CWD command.
  1079. * src/DownloadEngine.cc
  1080. * src/DownloadEngine.h
  1081. * src/FtpConnection.cc
  1082. * src/FtpConnection.h
  1083. * src/FtpFinishDownloadCommand.cc
  1084. * src/FtpInitiateConnectionCommand.cc
  1085. * src/FtpNegotiationCommand.cc
  1086. * src/FtpNegotiationCommand.h
  1087. * test/FtpConnectionTest.cc
  1088. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1089. Removed default user/pass for FTP user/pass, since it should not have
  1090. precedence over netrc configuration by default.
  1091. * src/OptionHandlerFactory.cc
  1092. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1093. Added debug log for socket event.
  1094. * src/AbstractCommand.cc
  1095. * src/PeerAbstractCommand.cc
  1096. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1097. Log microseconds.
  1098. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1099. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1100. Replaced HelpItem.cc with OptionHandler.cc.
  1101. * po/POTFILES.in
  1102. Updated po files with 'make update-po'
  1103. * po/aria2c.pot
  1104. * po/*.po
  1105. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1106. Removed possible values from the text.
  1107. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  1108. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1109. Removed unused preferences:
  1110. PREF_NO_PREALLOCATION
  1111. PREF_STDOUT_LOG
  1112. PREF_TRACKER_MAX_TRIES
  1113. PREF_DIRECT_DOWNLOAD_TIMEOUT
  1114. PREF_MIN_SEGMENT_SIZE
  1115. * src/option_processing.cc
  1116. * src/prefs.cc
  1117. * src/prefs.h
  1118. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1119. Integrated HelpItem into OptionParser to ease the workload for adding
  1120. new options. Removed default value from usage text.
  1121. * src/HelpItem.cc: Removed.
  1122. * src/HelpItem.h: Removed.
  1123. * src/HelpItemFactory.cc: Removed.
  1124. * src/HelpItemFactory.h: Removed.
  1125. * src/Makefile.am
  1126. * src/Makefile.in
  1127. * src/NameMatchOptionHandler.h
  1128. * src/OptionHandler.cc
  1129. * src/OptionHandler.h
  1130. * src/OptionHandlerFactory.cc
  1131. * src/OptionHandlerImpl.h
  1132. * src/OptionParser.cc
  1133. * src/OptionParser.h
  1134. * src/TagContainer.cc: Removed.
  1135. * src/TagContainer.h: Removed.
  1136. * src/TaggedItem.cc: Removed.
  1137. * src/TaggedItem.h: Removed.
  1138. * src/main.cc
  1139. * src/option_processing.cc
  1140. * src/usage_text.h
  1141. * src/version_usage.cc
  1142. * test/HelpItemTest.cc: Removed.
  1143. * test/Makefile.am
  1144. * test/Makefile.in
  1145. * test/OptionHandlerTest.cc
  1146. * test/OptionParserTest.cc
  1147. * test/TagContainerTest.cc: Removed.
  1148. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1149. Moved `TransferStat stat = ...' to inside the `if' clause.
  1150. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  1151. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1152. Fixed the bug that a block in a piece is requested when same block is
  1153. already requested to the same peer in end game mode.
  1154. * src/BtRequestFactory.h
  1155. * src/DefaultBtInteractive.cc
  1156. * src/DefaultBtRequestFactory.cc
  1157. * src/DefaultBtRequestFactory.h
  1158. * src/DefaultPieceStorage.cc
  1159. * src/DefaultPieceStorage.h
  1160. * src/PieceStorage.h
  1161. * src/UnknownLengthPieceStorage.cc
  1162. * src/UnknownLengthPieceStorage.h
  1163. * test/DefaultBtRequestFactoryTest.cc
  1164. * test/DefaultPieceStorageTest.cc
  1165. * test/MockBtRequestFactory.h
  1166. * test/MockPieceStorage.h
  1167. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1168. Removed _uploadLength and _downloadLength from PeerSessionResource
  1169. and use PeerStat::_sessionUploadLength and
  1170. PeerStat::_sessionDownloadLength.
  1171. * src/PeerSessionResource.cc
  1172. * src/PeerSessionResource.h
  1173. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1174. Fixed the bug that prefixLength of split bucket which doesn't include
  1175. local node ID is incremented.
  1176. * src/DHTBucket.cc
  1177. * src/DHTBucket.h
  1178. * test/DHTBucketTest.cc
  1179. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1180. Added cookies.sqlite to EXTRA_DIST
  1181. * test/Makefile.am
  1182. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1183. Added Turkish translation. Updated French, German, Russian and
  1184. Simplified Chinese translations. Thanks to all translators.
  1185. * po/LINGUAS
  1186. * po/de.po
  1187. * po/fr.po
  1188. * po/ru.po
  1189. * po/tr.po
  1190. * po/zh_CN.po
  1191. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1192. Added deliminating text to the beginning of the log so that one can find
  1193. where the log starts easily.
  1194. * src/main.cc
  1195. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1196. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  1197. to fix compile error when async DNS is not enabled by configuration.
  1198. * src/AbstractCommand.cc
  1199. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1200. If establishing conneciton to a server is failed, then mark error on
  1201. its ServerStat.
  1202. Added the cause of error to log when error event occurred.
  1203. Moved message string to message.h for translation.
  1204. * src/AbstractCommand.cc
  1205. * src/AbstractCommand.h
  1206. * src/FtpNegotiationCommand.cc
  1207. * src/HttpRequestCommand.cc
  1208. * src/PeerAbstractCommand.cc
  1209. * src/message.h
  1210. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1211. Added the function to get error message from socket.
  1212. * src/SocketCore.cc
  1213. * src/SocketCore.h
  1214. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1215. Added convenient method RequestGroupMan::getOrCreateServerStat()
  1216. * src/RequestGroupMan.cc
  1217. * src/RequestGroupMan.h
  1218. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1219. If error event is received in epoll, then abort download immediately.
  1220. * src/AbstractCommand.cc
  1221. * src/Command.cc
  1222. * src/Command.h
  1223. * src/DownloadEngine.cc
  1224. * src/PeerAbstractCommand.cc
  1225. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1226. Added usage message for --uri-selector, --server-stat-of,
  1227. --server-stat-in, --server-stat-timeout options.
  1228. * src/HelpItemFactory.cc
  1229. * src/usage_text.h
  1230. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1231. Added upper limit of FTP response buffer. The current implementation
  1232. uses 4096bytes as a limit.
  1233. * src/FtpConnection.cc
  1234. * src/FtpConnection.h
  1235. * test/FtpConnectionTest.cc
  1236. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1237. Use non-blocking socket for TCP communication to avoid possible
  1238. blocking due to buffer full.
  1239. * src/AbstractProxyRequestCommand.cc
  1240. * src/FtpConnection.cc
  1241. * src/FtpConnection.h
  1242. * src/FtpNegotiationCommand.cc
  1243. * src/FtpNegotiationCommand.h
  1244. * src/HttpConnection.cc
  1245. * src/HttpConnection.h
  1246. * src/HttpRequestCommand.cc
  1247. * src/InitiatorMSEHandshakeCommand.cc
  1248. * src/InitiatorMSEHandshakeCommand.h
  1249. * src/MSEHandshake.cc
  1250. * src/MSEHandshake.h
  1251. * src/Makefile.am
  1252. * src/PeerConnection.cc
  1253. * src/PeerConnection.h
  1254. * src/PeerInteractionCommand.cc
  1255. * src/PeerListenCommand.cc
  1256. * src/ReceiverMSEHandshakeCommand.cc
  1257. * src/ReceiverMSEHandshakeCommand.h
  1258. * src/SocketBuffer.cc
  1259. * src/SocketBuffer.h
  1260. * src/SocketCore.cc
  1261. * src/SocketCore.h
  1262. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1263. Call setStatusRealtime() in constructor.
  1264. * src/RealtimeCommand.cc
  1265. * src/RealtimeCommand.h
  1266. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1267. Call Download::setNoWait(true) to execute newly created command without
  1268. a pause.
  1269. * src/AbstractCommand.cc
  1270. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1271. Added --max-file-not-found=NUM option. If aria2 receives `file not
  1272. found' error from HTTP/FTP server NUM times without getting single
  1273. bytes of data, then force the download to fail.
  1274. Basically aria2 tris all URIs available. So if long list of URIs are
  1275. specified in Metalink, then aria2 will take a long time to fail
  1276. eventually if all URIs are outdated. This option eases this situation
  1277. to limit the number of servers to try.
  1278. * src/FtpNegotiationCommand.cc
  1279. * src/HelpItemFactory.cc
  1280. * src/HttpResponseCommand.cc
  1281. * src/OptionHandlerFactory.cc
  1282. * src/PeerStat.h
  1283. * src/RequestGroup.cc
  1284. * src/RequestGroup.h
  1285. * src/SegmentMan.cc
  1286. * src/SegmentMan.h
  1287. * src/option_processing.cc
  1288. * src/prefs.cc
  1289. * src/prefs.h
  1290. * src/usage_text.h
  1291. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1292. Fixed the bug that bulkReceiveResponse() reads all received data as a
  1293. response even if more than one response is in it.
  1294. * src/FtpConnection.cc
  1295. * src/FtpConnection.h
  1296. * test/FtpConnectionTest.cc
  1297. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1298. Merged from stable-0.15
  1299. * m4/libcares.m4
  1300. Use pkg-config
  1301. * m4/sqlite3.m4
  1302. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1303. Removed unnecessary if statement.
  1304. * src/DefaultPieceStorage.cc (initPieceStorage)
  1305. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1306. Added --connect-timeout option to specify connect timeout in seconds.
  1307. This option is in effect for HTTP/FTP/proxy server. The timeout for
  1308. connecting to BitTorrent peer is not controlled by this option.
  1309. * src/AbstractProxyRequestCommand.cc
  1310. * src/FtpNegotiationCommand.cc
  1311. * src/HelpItemFactory.cc
  1312. * src/HttpRequestCommand.cc
  1313. * src/OptionHandlerFactory.cc
  1314. * src/option_processing.cc
  1315. * src/prefs.cc
  1316. * src/prefs.h
  1317. * src/usage_text.h
  1318. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1319. Added help message for -R option.
  1320. * src/HelpItemFactory.cc
  1321. * src/usage_text.h
  1322. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1323. Added the message that the time is in local time zone.
  1324. * src/RequestGroup.cc
  1325. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1326. Implemented the ability to get timestamp from remote FTP server using
  1327. MDTM command described in RFC3659.
  1328. * src/FtpConnection.cc
  1329. * src/FtpConnection.h
  1330. * src/FtpNegotiationCommand.cc
  1331. * src/FtpNegotiationCommand.h
  1332. * test/FtpConnectionTest.cc
  1333. * test/Makefile.am
  1334. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1335. Implemented the ability to get timestamp from remote HTTP server and
  1336. apply it to local file. To enable this feature, --remote-time option
  1337. is added. No usage text has been written yet.
  1338. If several servers returns difference timestamp, then aria2 uses latest
  1339. one.
  1340. * src/CopyDiskAdaptor.cc
  1341. * src/CopyDiskAdaptor.h
  1342. * src/DirectDiskAdaptor.cc
  1343. * src/DirectDiskAdaptor.h
  1344. * src/DiskAdaptor.h
  1345. * src/File.cc
  1346. * src/File.h
  1347. * src/HttpHeader.cc
  1348. * src/HttpHeader.h
  1349. * src/HttpResponse.cc
  1350. * src/HttpResponse.h
  1351. * src/HttpResponseCommand.cc
  1352. * src/HttpResponseCommand.h
  1353. * src/MultiDiskAdaptor.cc
  1354. * src/MultiDiskAdaptor.h
  1355. * src/OptionHandlerFactory.cc
  1356. * src/RequestGroup.cc
  1357. * src/RequestGroup.h
  1358. * src/RequestGroupMan.cc
  1359. * src/option_processing.cc
  1360. * src/prefs.cc
  1361. * src/prefs.h
  1362. * test/CopyDiskAdaptorTest.cc
  1363. * test/FileTest.cc
  1364. * test/Makefile.am
  1365. * test/Makefile.in
  1366. * test/MultiDiskAdaptorTest.cc
  1367. * test/TestUtil.cc
  1368. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1369. Fixed the bug that DiskWriterEntry is not created when its
  1370. FileEntry.isRequested() is false and it doesn't share a piece with
  1371. other FileEntries that are requested. This bug causes segmentation fault
  1372. in the end.
  1373. * src/MultiDiskAdaptor.cc
  1374. * src/MultiDiskAdaptor.h
  1375. * src/MultiFileAllocationIterator.cc
  1376. * test/MultiDiskAdaptorTest.cc
  1377. * test/MultiFileAllocationIteratorTest.cc
  1378. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1379. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  1380. called if the number of file entries are greater than max open files.
  1381. * src/AbstractSingleDiskAdaptor.cc
  1382. * src/AbstractSingleDiskAdaptor.h
  1383. * src/DiskAdaptor.h
  1384. * src/MultiDiskAdaptor.cc
  1385. * src/MultiDiskAdaptor.h
  1386. * test/MultiDiskAdaptorTest.cc
  1387. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1388. Added a constuctor that receives struct timeval.
  1389. Added operator<.
  1390. * src/TimeA2.cc
  1391. * src/TimeA2.h
  1392. * test/TimeTest.cc
  1393. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1394. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  1395. * src/CookieParser.cc
  1396. * test/CookieParserTest.cc
  1397. * test/HttpResponseTest.cc
  1398. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1399. Implmented the functions to parse date.
  1400. * src/TimeA2.cc
  1401. * src/TimeA2.h
  1402. * test/TimeTest.cc
  1403. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1404. Added "Firefox3 Cookie" feature to FeatureConfig
  1405. * src/FeatureConfig.cc
  1406. * src/FeatureConfig.h
  1407. * test/FeatureConfigTest.cc
  1408. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1409. Bump up version number to 0.16.0b
  1410. * configure.ac
  1411. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1412. Use pkg-config if is is available.
  1413. * m4/openssl.m4
  1414. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1415. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  1416. * src/BtAnnounce.h
  1417. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1418. If an error occurred with a URI, remove identical URI from remaining
  1419. URI list because it is likely that same error occurred in the end and it
  1420. is waste of time.
  1421. * src/AbstractCommand.cc
  1422. * src/RequestGroup.cc
  1423. * src/RequestGroup.h
  1424. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1425. Removed wrong comment.
  1426. * src/DefaultPeerStorage.cc
  1427. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1428. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  1429. Added return value of getpid() to argument of srand() to achieve more
  1430. randomized value.
  1431. * src/SimpleRandomizer.cc
  1432. * src/SimpleRandomizer.h
  1433. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1434. Contact tracker frequently when the number of connections are 0 and
  1435. download is not finished yet.
  1436. * src/ActivePeerConnectionCommand.cc
  1437. * src/BtAnnounce.h
  1438. * src/DefaultBtAnnounce.cc
  1439. * src/DefaultBtAnnounce.h
  1440. * test/MockBtAnnounce.h
  1441. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1442. Moved threshold values to UTPexExtensionMessage.
  1443. * src/DefaultBtInteractive.cc
  1444. * src/Peer.cc
  1445. * src/Peer.h
  1446. * src/UTPexExtensionMessage.cc
  1447. * src/UTPexExtensionMessage.h
  1448. * test/UTPexExtensionMessageTest.cc
  1449. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1450. Added _incoming member to Peer class and made it true if the peer
  1451. initiated connection. Don't add those peer to UTPex message.
  1452. If extended handshake is received, assign _incoming to false.
  1453. * src/DefaultBtInteractive.cc
  1454. * src/HandshakeExtensionMessage.cc
  1455. * src/Peer.cc
  1456. * src/Peer.h
  1457. * src/PeerListenCommand.cc
  1458. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1459. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  1460. Encoding Decoder. Removed size threshold for turning off on the fly
  1461. inflation because resulting file may or may not be inflated depending
  1462. on the file size and I think it is not expected by users.
  1463. This change fixes segmentation fault when Metalink file contains gzipped
  1464. file and its filesize is provided.
  1465. * src/HttpResponseCommand.cc
  1466. * src/HttpResponseCommand.h
  1467. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1468. Made Cookie immutable.
  1469. * src/Cookie.cc
  1470. * src/Cookie.h
  1471. * src/CookieParser.cc
  1472. * src/CookieParser.h
  1473. * src/CookieStorage.cc
  1474. * test/CookieParserTest.cc
  1475. * test/CookieStorageTest.cc
  1476. * test/NsCookieParserTest.cc
  1477. * test/Sqlite3MozCookieParserTest.cc
  1478. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1479. Removed CookieBox, CookieBoxFactory.
  1480. * src/CookieBox.cc
  1481. * src/CookieBox.h
  1482. * src/CookieBoxFactory.cc
  1483. * src/CookieBoxFactory.h
  1484. * src/Makefile.am
  1485. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1486. Use CookieStorage class instead of CookieBox class.
  1487. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  1488. * src/AbstractProxyRequestCommand.cc
  1489. * src/CookieStorage.cc
  1490. * src/DownloadEngine.cc
  1491. * src/DownloadEngine.h
  1492. * src/HttpConnection.cc
  1493. * src/HttpConnection.h
  1494. * src/HttpRequest.cc
  1495. * src/HttpRequest.h
  1496. * src/HttpRequestCommand.cc
  1497. * src/HttpResponse.cc
  1498. * src/HttpResponseCommand.cc
  1499. * src/HttpSkipResponseCommand.cc
  1500. * src/Makefile.am
  1501. * src/MultiUrlRequestInfo.cc
  1502. * src/Request.cc
  1503. * src/Request.h
  1504. * src/main.cc
  1505. * test/AllTest.cc
  1506. * test/CookieStorageTest.cc
  1507. * test/CookieTest.cc
  1508. * test/HttpRequestTest.cc
  1509. * test/HttpResponseTest.cc
  1510. * test/Makefile.am
  1511. * test/NsCookieParserTest.cc
  1512. * test/Sqlite3MozCookieParserTest.cc
  1513. * test/nscookietest.txt
  1514. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1515. Updated
  1516. * test/Cookies.sqlite
  1517. * test/nscookietest.txt
  1518. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1519. Added tests for CookieStorage::load()
  1520. * test/CookieStorageTest.cc
  1521. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1522. Added CookieStorage class which is based on RFC2109 and manages cookies
  1523. more strictly than CookieBox and CookieBoxFactory class.
  1524. * src/CookieStorage.cc
  1525. * src/CookieStorage.h
  1526. * src/Cookie.cc
  1527. * src/Cookie.h
  1528. * test/CookieStorageTest.cc
  1529. * test/CookieTest.cc
  1530. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1531. Fixed the bug that commands are created more than the number of pieces.
  1532. * src/RequestGroup.cc
  1533. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1534. Fixed infinite loop bug in FTP when SIZE command failed.
  1535. * src/FtpNegotiationCommand.cc
  1536. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1537. Removed DirectDiskAdaptorTest.h
  1538. * test/Makefile.am
  1539. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1540. Fixed chunk checksum validation cannot detect trailing garbage data.
  1541. BUG#2074141
  1542. * src/AbstractSingleDiskAdaptor.cc
  1543. * src/AbstractSingleDiskAdaptor.h
  1544. * src/CheckIntegrityEntry.cc
  1545. * src/CheckIntegrityEntry.h
  1546. * src/DiskAdaptor.h
  1547. * src/MultiDiskAdaptor.cc
  1548. * src/MultiDiskAdaptor.h
  1549. * src/RequestGroup.cc
  1550. * test/DirectDiskAdaptorTest.cc
  1551. * test/MultiDiskAdaptorTest.cc
  1552. * test/TestUtil.cc
  1553. * test/TestUtil.h
  1554. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1555. Bump up version number of dht.dat file to 3. In version 3 format, time
  1556. is stored in 64bit, network byte order.
  1557. New build can load old format(version 2) but it saves the file in new
  1558. format. It means once you used new build, your dht.dat becomes
  1559. incompatible with older build.
  1560. * src/DHTRoutingTableDeserializer.cc
  1561. * src/DHTRoutingTableSerializer.cc
  1562. * test/DHTRoutingTableSerializerTest.cc
  1563. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1564. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1565. * test/Makefile.am
  1566. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1567. Bump up version number of .aria2 control file to 0001.
  1568. New aria2 can still load version 0000 file but it saves the file in
  1569. version 0001 format. It means that new aria2 can resume download
  1570. started by old aria2 but the opposite is not true.
  1571. * src/DefaultBtProgressInfoFile.cc
  1572. * src/DefaultBtProgressInfoFile.h
  1573. * test/DefaultBtProgressInfoFileTest.cc
  1574. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1575. Added ntoh64 and hton64 as inline functions.
  1576. * src/Util.cc
  1577. * test/UtilTest.cc
  1578. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1579. Added sqlite3 depenency and Firefox3 cookie support.
  1580. * README
  1581. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1582. State that firefox3 cookie is supported explicitly in the usage.
  1583. * src/usage_text.h
  1584. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1585. Externalized message.
  1586. * src/RequestGroupMan.cc
  1587. * src/message.h
  1588. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1589. Save temporary file first and rename to the destination on success.
  1590. Added test cases.
  1591. * src/RequestGroupMan.cc
  1592. * test/RequestGroupManTest.cc
  1593. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1594. Fixed the bug that the number of connected peer is exceeding the limit
  1595. (55 by default) in seeding mode.
  1596. Multiplied 0.8 to _maxUploadSpeedLimit.
  1597. * src/ActivePeerConnectionCommand.cc
  1598. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1599. Clear table item.
  1600. * src/Dictionary.cc
  1601. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1602. Fixed error handling of lseek.
  1603. * src/AbstractDiskWriter.cc
  1604. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1605. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1606. style cookie file.
  1607. * src/usage_text.h
  1608. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1609. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1610. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1611. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1612. * src/Util.cc
  1613. * src/Util.h
  1614. * src/CookieParser.cc
  1615. * test/UtilTest.cc
  1616. * test/CookieParserTest.cc
  1617. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1618. Separate the implementation to load old mozilla format of cookie to
  1619. NsCookieParser class.
  1620. * src/CookieBoxFactory.cc
  1621. * src/CookieBoxFactory.h
  1622. * src/NsCookieParser.cc
  1623. * src/NsCookieParser.h
  1624. * test/NsCookieParserTest.cc
  1625. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1626. Made parse() const
  1627. * src/Sqlite3MozCookieParser.cc
  1628. * src/Sqlite3MozCookieParser.h
  1629. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1630. Added firefox3 cookie support based on the patch submitted by
  1631. tizianomueller.
  1632. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  1633. this functionality.
  1634. * configure.ac
  1635. * m4/sqlite3.m4
  1636. * src/CookieBoxFactory.cc
  1637. * src/CookieBoxFactory.h
  1638. * src/Makefile.am
  1639. * src/Makefile.in
  1640. * src/Sqlite3MozCookieParser.cc
  1641. * src/Sqlite3MozCookieParser.h
  1642. * src/main.cc
  1643. * test/CookieBoxFactoryTest.cc
  1644. * test/Makefile.am
  1645. * test/Makefile.in
  1646. * test/Sqlite3MozCookieParserTest.cc
  1647. * test/badcookies.sqlite
  1648. * test/cookies.sqlite
  1649. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1650. Added Danish and Greek translations.
  1651. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  1652. Great thanks to all translators.
  1653. * po/LINGUAS
  1654. * po/el.po
  1655. * po/da.po
  1656. * po/es.po
  1657. * po/ca.po
  1658. * po/nn.po
  1659. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1660. Fixed man page: --follow-bittorrent should be --follow-torrent
  1661. * doc/aria2c.1.txt
  1662. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1663. Fixed: numCommand is less than the value specified in -C option.
  1664. * src/RequestGroup.cc
  1665. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1666. Fixed occasional assertion failure in PieceSegment.
  1667. Calling PieceStorage::getMissingPiece(size_t) was missing after
  1668. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  1669. creation of duplicate segments and one of the segment was finished then
  1670. assertion failure was caused.
  1671. * src/SegmentMan.cc
  1672. * test/SegmentManTest.cc
  1673. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1674. Added options to load/save the server's performance/status to a file
  1675. and the timeout to drop their data.
  1676. --server-stat-of=FILE specifies the file to which performance data
  1677. is saved.
  1678. --server-stat-if=FILE specifies the file to read previously saved
  1679. by --server-stat-of option. Might be used with --uri-selector=feedback.
  1680. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  1681. TIMEOUT is specified in seconds and the default value is 24hours.
  1682. * src/MultiUrlRequestInfo.cc
  1683. * src/OptionHandlerFactory.cc
  1684. * src/RequestGroupMan.cc
  1685. * src/RequestGroupMan.h
  1686. * src/ServerStatMan.cc
  1687. * src/ServerStatMan.h
  1688. * src/option_processing.cc
  1689. * src/prefs.cc
  1690. * src/prefs.h
  1691. * test/ServerStatManTest.cc
  1692. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1693. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  1694. * src/ServerStatMan.cc
  1695. * src/ServerStatMan.h
  1696. * test/ServerStatManTest.cc
  1697. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1698. Implemented ServerStatMan::load(...) function and its test case.
  1699. * src/ServerStat.cc
  1700. * src/ServerStat.h
  1701. * src/ServerStatMan.cc
  1702. * test/ServerStatManTest.cc
  1703. * test/ServerStatTest.cc
  1704. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1705. Use time_t instead of int32_t. Use int64_t where milli second is
  1706. expected.
  1707. * src/TimeA2.cc
  1708. * src/TimeA2.h
  1709. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1710. Implemented ServerStatMan::save(...) function and its test case.
  1711. * src/ServerStat.cc
  1712. * src/ServerStat.h
  1713. * src/ServerStatMan.cc
  1714. * src/ServerStatMan.h
  1715. * test/ServerStatManTest.cc
  1716. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1717. Now aria2 uses name attribute in Metalink as local filename in
  1718. BitTorrent downloads. BUG#2033999
  1719. * src/BtContext.h
  1720. * src/BtDependency.cc
  1721. * src/DefaultBtContext.cc
  1722. * src/DefaultBtContext.h
  1723. * src/SingleFileDownloadContext.cc
  1724. * src/SingleFileDownloadContext.h
  1725. * test/BtDependencyTest.cc
  1726. * test/DefaultBtContextTest.cc
  1727. * test/MockBtContext.h
  1728. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1729. Added AC_C_BIGENDIAN
  1730. * src/configure.ac
  1731. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1732. Limited numCommand less than or equal to the number of piece.
  1733. * src/RequestGroup.cc
  1734. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1735. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  1736. directive.
  1737. * test/DefaultPieceStorageTest.cc
  1738. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1739. Fixed memory leak in test code
  1740. * test/AnnounceListTest.cc
  1741. * test/DefaultPeerListProcessorTest.cc
  1742. * test/DefaultPeerStorageTest.cc
  1743. * test/MetaFileUtilTest.cc
  1744. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1745. Fixed wrong argument passing to BitfieldMan::isBitSet()
  1746. * src/DefaultPieceStorage.cc
  1747. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1748. Initialized _directIOAllowed
  1749. * src/MultiDiskAdaptor.cc
  1750. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1751. Fixed memory leak
  1752. * src/GZipDecoder.cc
  1753. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1754. Fixed memory leak
  1755. * src/MetalinkParserStateMachine.cc
  1756. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1757. Fixed memory leak
  1758. * src/Dictionary.cc
  1759. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1760. Fixed memory leak
  1761. * src/IteratableChunkChecksumValidator.h
  1762. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1763. Fixed unmatched malloc/free.
  1764. * src/IteratableChunkChecksumValidator.cc
  1765. * src/IteratableChecksumValidator.cc
  1766. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1767. Removed max chunk size check. This change fixes BUG#2040169
  1768. * src/ChunkedDecoder.cc
  1769. * src/ChunkedDecoder.h
  1770. * test/ChunkedDecoderTest.cc
  1771. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. Implemented download speed based URI selection algorithm.
  1773. Introduced new option --uri-selector.
  1774. If --uri-selector=feedback is given, aria2 uses download speed observed
  1775. in the previous downloads and chooses fastest server in the URI list.
  1776. Currently at most 10 URIs are considered to introduce randomeness for
  1777. finding better servers. The speed is average download speed in the
  1778. downloads.
  1779. On the other hand, if --uri-selector=inorder is given, which is default,
  1780. URI is tried in order in URI list.
  1781. The usage text for the new option has not been written yet.
  1782. * src/AbstractCommand.cc
  1783. * src/DownloadCommand.cc
  1784. * src/DownloadEngine.cc
  1785. * src/DownloadEngineFactory.cc
  1786. * src/InOrderURISelector.cc
  1787. * src/InOrderURISelector.h
  1788. * src/OptionHandlerFactory.cc
  1789. * src/PeerStat.h
  1790. * src/RequestGroup.cc
  1791. * src/RequestGroup.h
  1792. * src/RequestGroupMan.cc
  1793. * src/RequestGroupMan.h
  1794. * src/SegmentMan.cc
  1795. * src/SegmentMan.h
  1796. * src/ServerStat.cc
  1797. * src/ServerStat.h
  1798. * src/ServerStatMan.cc
  1799. * src/ServerStatMan.h
  1800. * src/ServerStatURISelector.cc
  1801. * src/ServerStatURISelector.h
  1802. * src/URISelector.h
  1803. * src/option_processing.cc
  1804. * src/prefs.cc
  1805. * src/prefs.h
  1806. * test/InOrderURISelectorTest.cc
  1807. * test/RequestGroupManTest.cc
  1808. * test/ServerStatManTest.cc
  1809. * test/ServerStatURISelectorTest.cc
  1810. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1811. * Release 0.15.1+2
  1812. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1813. Bump up version number to 0.15.1+2
  1814. * configure.ac
  1815. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1816. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  1817. * m4/aria2_arg.m4
  1818. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1819. * Release 0.15.1+1
  1820. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1821. Bump up version number to 0.15.1+1
  1822. * configure.ac
  1823. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1824. Fixed the bug that causes segmentaion fault when resuming download
  1825. using metalink without size tag. Reproducible only using HTTP URI.
  1826. * src/HttpResponseCommand.cc
  1827. * src/FtpNegotiationCommand.cc
  1828. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1829. * Release 0.15.1
  1830. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1831. Updated Bulgarian and French translations, thanks to all translators.
  1832. * po/bg.po
  1833. * po/fr.po
  1834. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1835. Bump up version number to 0.15.1
  1836. * configure.ac
  1837. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1838. Avoid repeated call of gettimeofday() when calculating speed.
  1839. * src/SpeedCalc.cc
  1840. * src/SpeedCalc.h
  1841. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1842. Removed writable check when socket's send buffer is full in BitTorrent
  1843. downloads to lower CPU usage.
  1844. * src/PeerInteractionCommand.cc
  1845. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1846. Fixed broken gzip inflation.
  1847. Turn off segmented downloading if gzip content is smaller than or equal
  1848. to 1MiB and inflate the data on the fly, because HTTP response header
  1849. doesn't contain the length of inflated file we can't determin where
  1850. the chunk of data should be written.
  1851. On the other hand, if gzip content is larger than 1MB, then turn off
  1852. on the fly inflation, because some servers returns "content-type: gzip"
  1853. for *.tgz, *.gz files.
  1854. * src/DownloadCommand.cc
  1855. * src/HttpResponseCommand.cc
  1856. * src/HttpResponseCommand.h
  1857. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1858. Applied tizianomueller's patch to fix compile error.
  1859. * test/BitfieldManTest.cc
  1860. * test/BtRequestMessageTest.cc
  1861. * test/DefaultBtContextTest.cc
  1862. * test/DefaultDiskWriterTest.cc
  1863. * test/DefaultPieceStorageTest.cc
  1864. * test/HttpHeaderProcessorTest.cc
  1865. * test/HttpResponseTest.cc
  1866. * test/Metalink2RequestGroupTest.cc
  1867. * test/MetalinkParserControllerTest.cc
  1868. * test/MetalinkProcessorTest.cc
  1869. * test/PeerSessionResourceTest.cc
  1870. * test/UtilTest.cc
  1871. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1872. * Release 0.15.0
  1873. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1874. Reordered src files in POTFILES.in so that usage text appears first.
  1875. * po/POTFILES.in
  1876. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1877. Bump up version number to 0.15.0
  1878. * configure.ac
  1879. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1880. Added Bulgarian translation.
  1881. Updated Catalan, Spanish, French and Japanese translations.
  1882. Thanks to all translators.
  1883. * po/LINGUAS
  1884. * po/bg.po
  1885. * po/ca.po
  1886. * po/es.po
  1887. * po/fr.po
  1888. * po/ja.po
  1889. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1890. Updated feature list. Added libz for dependency section.
  1891. Added a description about unit testing using CppUnit.
  1892. * README
  1893. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1894. Added a test for libz. Quoted where it is necessary.
  1895. * build_test.sh
  1896. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1897. Added GZip to `Enabled Features' list.
  1898. * src/FeatureConfig.cc
  1899. * src/FeatureConfig.h
  1900. * test/FeatureConfigTest.cc
  1901. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1902. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1903. the transfer has not yet started.
  1904. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1905. * src/SegmentMan.cc
  1906. * src/SegmentMan.h
  1907. * test/SegmentManTest.cc
  1908. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. Cache last calculated average download/upload speed.
  1910. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1911. cached value.
  1912. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1913. * src/PeerStat.h
  1914. * src/SpeedCalc.cc
  1915. * src/SpeedCalc.h
  1916. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1917. Call parseUrl directly.
  1918. * src/Request.cc (resetUrl)
  1919. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1920. Supported absolute/relative path in Location header field.
  1921. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1922. * src/HttpHeader.cc
  1923. * src/HttpHeader.h
  1924. * src/HttpResponse.cc
  1925. * src/HttpSkipResponseCommand.cc
  1926. * src/Request.cc
  1927. * test/HttpHeaderTest.cc
  1928. * test/HttpResponseTest.cc
  1929. * test/RequestTest.cc
  1930. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1931. Changed help text for --load-cookie option.
  1932. * doc/aria2c.1.txt
  1933. * src/usage_text.h
  1934. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1935. Regenerated test/Makefile.in to remove stale ChangeLog.
  1936. * test/Makefile.in
  1937. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1938. Updated po files.
  1939. * po/aria2c.pot
  1940. * po/*.po
  1941. * po/*.gmo
  1942. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1943. Bump up version number to 0.15.0b
  1944. * configure.ac
  1945. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1946. Externalize messages.
  1947. * src/RequestGroupMan.cc
  1948. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1949. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1950. Use File::exists() instead of File::isFile() to allow non-regular file
  1951. such as block special files.
  1952. * src/AbstractDiskWriter.cc
  1953. * src/MultiDiskWriter.cc
  1954. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1955. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1956. * src/gai_strerror.h
  1957. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1958. Fixed compile error. Thanks gknauf for the patch.
  1959. * src/asctime_r.c
  1960. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1961. Included asctime_r.h from a2time.h.
  1962. * src/a2time.h
  1963. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1964. Added a message "aria2 doesn't verify signature" to log message when
  1965. signature file is saved.
  1966. * src/RequestGroupMan.cc
  1967. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1968. Added the ability to save signature when download is completed if
  1969. signature is available. The filename of signature file is the path to
  1970. download file followed by ".sig". If it already exists, then signature
  1971. will not be saved.
  1972. * src/RequestGroupMan.cc
  1973. * src/Signature.cc
  1974. * test/SignatureTest.cc
  1975. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1976. Updated the descriptions for --bt-seed-unverified.
  1977. * doc/aria2c.1
  1978. * doc/aria2c.1.html
  1979. * doc/aria2c.1.txt
  1980. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1981. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1982. that this is not going to verify files using piece hashes.
  1983. * src/HelpItemFactory.cc
  1984. * src/OptionHandlerFactory.cc
  1985. * src/RequestGroup.cc
  1986. * src/option_processing.cc
  1987. * src/prefs.cc
  1988. * src/prefs.h
  1989. * src/usage_text.h
  1990. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1991. Added the ability to retrieve signature from Metalink file.
  1992. A retrieved signature is stored in Signature class and it is held by
  1993. DownloadContext class. Note that aria2 doesn't verify signature.
  1994. * src/DownloadContext.cc
  1995. * src/DownloadContext.h
  1996. * src/Makefile.am
  1997. * src/Makefile.in
  1998. * src/Metalink2RequestGroup.cc
  1999. * src/MetalinkEntry.cc
  2000. * src/MetalinkEntry.h
  2001. * src/MetalinkParserController.cc
  2002. * src/MetalinkParserController.h
  2003. * src/MetalinkParserStateMachine.cc
  2004. * src/MetalinkParserStateMachine.h
  2005. * src/Signature.cc
  2006. * src/Signature.h
  2007. * src/SignatureMetalinkParserState.cc
  2008. * src/SignatureMetalinkParserState.h
  2009. * src/VerificationMetalinkParserState.cc
  2010. * src/VerificationMetalinkParserState.h
  2011. * test/Metalink2RequestGroupTest.cc
  2012. * test/MetalinkParserControllerTest.cc
  2013. * test/MetalinkProcessorTest.cc
  2014. * test/test.xml
  2015. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2016. Close DiskAdaptor after renaming file.
  2017. * src/RequestGroup.cc
  2018. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2019. Corrected indentation
  2020. * src/DefaultBtProgressInfoFile.cc
  2021. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2022. Moved the calls of std::ios::exceptions() inside of try-catch block
  2023. because if an error occurred in constructor of std::fstream, then
  2024. exception is thrown immediately when std::ios::exceptions() is called
  2025. which results unhandled exception and aria2c aborts.
  2026. * src/DefaultBtProgressInfoFile.cc
  2027. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2028. Added the test for the previous change in DefaultBtContext.cc
  2029. * test/DefaultBtContextTest.cc
  2030. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2031. Fixed the bug that causes infinite loop when the number of pieces are
  2032. fewer than allowed fast set size which is 10 by default.
  2033. * src/DefaultBtContext.cc
  2034. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2035. Updated the descriptions for -j, -s. Added --bt-seed.
  2036. * doc/aria2c.1
  2037. * doc/aria2c.1.html
  2038. * doc/aria2c.1.txt
  2039. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2040. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  2041. aria2 seeds previously downloaded files without validating piece hashs.
  2042. * src/HelpItemFactory.cc
  2043. * src/OptionHandlerFactory.cc
  2044. * src/RequestGroup.cc
  2045. * src/option_processing.cc
  2046. * src/prefs.cc
  2047. * src/prefs.h
  2048. * src/usage_text.h
  2049. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2050. Updated DESCRIPTION of man page.
  2051. * doc/aria2c.1
  2052. * doc/aria2c.1.html
  2053. * doc/aria2c.1.txt
  2054. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2055. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  2056. Don't define `struct addrinfo' when __sun is defined.
  2057. * src/getaddrinfo.h
  2058. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2059. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  2060. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  2061. second argument is of type `struct _stati64'. Otherwise it is defined as
  2062. `struct stat'.
  2063. * src/AbstractDiskWriter.cc
  2064. * src/File.cc
  2065. * src/File.h
  2066. * src/a2io.h
  2067. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2068. Fixed the compile error in hurd-i386
  2069. See the original bug report:
  2070. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  2071. * src/a2io.h
  2072. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2073. Code cleanup.
  2074. * src/PeerAbstractCommand.cc
  2075. * src/PeerAbstractCommand.h
  2076. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Removed TransferEncoding.
  2078. * src/DownloadCommand.cc
  2079. * src/DownloadCommand.h
  2080. * src/HttpResponseCommand.cc
  2081. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2082. Updated po files.
  2083. * po/aria2c.pot
  2084. * po/*.po
  2085. * po/*.gmo
  2086. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2087. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  2088. * src/A2STR.cc
  2089. * src/A2STR.h
  2090. * src/ChunkedDecoder.cc
  2091. * src/ChunkedDecoder.h
  2092. * src/ChunkedEncoding.cc: Removed
  2093. * src/ChunkedEncoding.h: Removed
  2094. * src/DownloadCommand.cc
  2095. * src/DownloadCommand.h
  2096. * src/HttpDownloadCommand.cc
  2097. * src/HttpResponse.cc
  2098. * src/HttpResponse.h
  2099. * src/HttpResponseCommand.cc
  2100. * src/HttpSkipResponseCommand.cc
  2101. * src/HttpSkipResponseCommand.h
  2102. * src/Makefile.am
  2103. * src/TransferEncoding.h: Removed
  2104. * test/ChunkedDecoderTest.cc
  2105. * test/ChunkedEncodingTest.cc: Removed
  2106. * test/HttpResponseTest.cc
  2107. * test/Makefile.am
  2108. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2109. Use append instead of insert.
  2110. * src/GZipDecoder.cc
  2111. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2112. Updated doc
  2113. * src/Decoder.h
  2114. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2115. Updated usage text for -s option.
  2116. * src/usage_text.h
  2117. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2118. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  2119. * src/Request.cc
  2120. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2121. Cleaned up configure.ac.
  2122. * configure.ac
  2123. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2124. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  2125. AC_ARG_ENABLE.
  2126. * configure.ac
  2127. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2128. Added gzip, deflate decoding support in HTTP using libz. If compiled
  2129. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  2130. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  2131. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  2132. fly and writes decoded data to a local disk.
  2133. * README
  2134. * README.html
  2135. * configure.ac
  2136. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  2137. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  2138. * m4/libz.m4
  2139. * src/Decoder.h
  2140. * src/DownloadCommand.cc
  2141. * src/DownloadCommand.h
  2142. * src/Exception.h
  2143. * src/GZipDecoder.cc
  2144. * src/GZipDecoder.h
  2145. * src/HttpHeader.cc
  2146. * src/HttpHeader.h
  2147. * src/HttpRequest.cc
  2148. * src/HttpRequest.h
  2149. * src/HttpResponse.cc
  2150. * src/HttpResponse.h
  2151. * src/HttpResponseCommand.cc
  2152. * src/Makefile.am
  2153. * test/GZipDecoderTest.cc
  2154. * test/HttpRequestTest.cc
  2155. * test/HttpResponseTest.cc
  2156. * test/Makefile.am
  2157. * test/Makefile.in
  2158. * test/gzip_decode_test.gz
  2159. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2160. Clarified usage of -j option.
  2161. * src/usage_text.h
  2162. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2163. Disabled getting size from the response of RETR.
  2164. If SIZE command failed, then disable resuming and segmented downloading.
  2165. * src/FtpConnection.cc
  2166. * src/FtpConnection.h
  2167. * src/FtpNegotiationCommand.cc
  2168. * src/FtpNegotiationCommand.h
  2169. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2170. Use digits to find first byte of file size, which makes the intention
  2171. of the code clearer.
  2172. * src/FtpConnection.cc
  2173. Don't call validateTotalLength() when size is 0.
  2174. * src/FtpNegotiationCommand.cc
  2175. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2176. Updated po files.
  2177. * po/aria2c.pot
  2178. * po/*.gmo
  2179. * po/*.po
  2180. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2181. Clarified usage text for --split option.
  2182. * src/usage_text.h
  2183. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2184. Bump up version number to 0.15.0dev. "dev" means "development"
  2185. version, which means I started the development of the next release!
  2186. * src/configure.ac
  2187. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2188. If FTP server returns negative response with REST raw command and
  2189. requested range is not 0, throw exception. If requested range is 0,
  2190. continue download a file from 0 byte.
  2191. * src/FtpNegotiationCommand.cc
  2192. * src/FtpNegotiationCommand.h
  2193. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2194. Supported FTP server which don't recognize SIZE raw command.
  2195. If SIZE raw command is failed, aria2 will try to get file size
  2196. from the response of RETR raw command. If both attempts are failed,
  2197. then resuming and segmented downloading are disabled.
  2198. * src/FtpConnection.cc
  2199. * src/FtpConnection.h
  2200. * src/FtpNegotiationCommand.cc
  2201. * src/FtpNegotiationCommand.h
  2202. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2203. * Release 0.14.0+1
  2204. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2205. Bump up version number to 0.14.0+1
  2206. * src/configure.ac
  2207. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2208. Fixed the code that refers static member variable from non-static
  2209. context.
  2210. * src/DefaultPeerStorage.cc
  2211. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2212. * Release 0.14.0
  2213. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2214. Added build test script
  2215. * build_test.sh
  2216. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2217. Updated ja.po
  2218. * src/ja.po
  2219. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2220. Bump up version number to 0.14.0
  2221. * src/configure.ac
  2222. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2223. Updated ja.po and fr.po. Great thanks for french translators and
  2224. Sebastien WILLEMIJNS.
  2225. * po/fr.po
  2226. * po/ja.po
  2227. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2228. Added configure option to enable/disable epoll support.
  2229. * configure.ac
  2230. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2231. Updated man page.
  2232. * doc/aria2c.1.txt
  2233. * doc/aria2c.1
  2234. * doc/aria2c.1.html
  2235. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2236. Added missing default value '5' to the usage of --split option.
  2237. * src/HelpItemFactory.cc
  2238. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2239. Filled up pieces based on the number of missing blocks, rather than
  2240. simplay the number of piece * block length.
  2241. * src/BtRequestFactory.h
  2242. * src/DefaultBtInteractive.cc
  2243. * src/DefaultBtInteractive.h
  2244. * src/DefaultBtRequestFactory.cc
  2245. * src/DefaultBtRequestFactory.h
  2246. * src/Piece.cc
  2247. * src/Piece.h
  2248. * test/BitfieldManTest.cc
  2249. * test/DefaultBtRequestFactoryTest.cc
  2250. * test/MockBtRequestFactory.h
  2251. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2252. Made _epEvents a member variable.
  2253. * src/DownloadEngine.cc
  2254. * src/DownloadEngine.h
  2255. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2256. Cancel download if http redirect is bounded more than 20 times.
  2257. * src/AbstractCommand.cc
  2258. * src/HttpSkipResponseCommand.cc
  2259. * src/Request.cc
  2260. * src/Request.h
  2261. * test/RequestTest.cc
  2262. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2263. Fixed unhandled exception(removed keyword `new').
  2264. * src/SocketCore.cc (initEPOLL)
  2265. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2266. Removed visit(const MetaEntry*)
  2267. * src/MetaEntryVisitor.h:
  2268. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  2269. and made them virtual.
  2270. * src/BencodeVisitor.h
  2271. * src/BencodeVisitor.cc
  2272. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2273. Updated po files.
  2274. * po/aria2c.pot
  2275. * po/*.po
  2276. * po/*.gmo
  2277. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2278. Moved the call setWriteCheckSocket inside the previous clause to reduce
  2279. the number of socket to watch out.
  2280. * src/PeerInteractionCommand.cc
  2281. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2282. When there is not enough space in disk when writing a chunk of data,
  2283. aria2 now prints the message to the console to warn user and aborts
  2284. its download. Not all downloads are canceled because some downloads
  2285. may use another disk or partition. BUG#1640332
  2286. * src/AbstractDiskWriter.cc
  2287. * src/PeerAbstractCommand.cc
  2288. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  2289. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  2290. setHaltRequested(true) to cancel download.
  2291. * src/PeerInteractionCommand.h
  2292. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2293. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  2294. socket from int to sock_t as sockets are unsigned in Windows.
  2295. For AsyncNameResolver, DownloadEngine, I did additional modification
  2296. for the portion of the code changed according to epoll support.
  2297. I defined sock_t in a2netcompat.h to use sock_t without including
  2298. SocketCore.h.
  2299. * src/AsyncNameResolver.cc
  2300. * src/AsyncNameResolver.h
  2301. * src/DownloadEngine.cc
  2302. * src/DownloadEngine.h
  2303. * src/SocketCore.cc
  2304. * src/SocketCore.h
  2305. * src/a2netcompat.h
  2306. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2307. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  2308. changes in the patch were applied.
  2309. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  2310. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  2311. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  2312. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2313. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  2314. a2io.h and common.h were modified.
  2315. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  2316. MinGW.
  2317. * src/common.h: Changed off_t to 64 bit in MinGW.
  2318. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2319. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2320. only a2netcompat.h is modified.
  2321. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  2322. directives.
  2323. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2324. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2325. only gai_strerror.h is modified.
  2326. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  2327. winsock errors in MinGW.
  2328. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2329. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  2330. follow sources are applied.
  2331. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  2332. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  2333. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  2334. I included locale.h from Platform.cc.
  2335. * src/main.cc: Moved common setup/teardown code to Platform class.
  2336. * test/AllTest.cc: Use Platform class.
  2337. Set locale to C in AllTest.cc to prevent the messages to be localized.
  2338. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2339. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  2340. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  2341. * test/HttpRequestTest.cc: Casted to off_t where it should.
  2342. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2343. Applied Ross's aria2-0.13.2+1-mingw.patch and
  2344. aria2-0.13.2+1-mingw-2.patch.
  2345. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  2346. systems which don't have termious.h. I moved the directive inside of
  2347. if(isTTY) { ... clause so that line is wiped out without termious.h.
  2348. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  2349. anyway.
  2350. * src/asctime_r.h
  2351. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  2352. I added 2nd argument to the prototype declaration.
  2353. * src/StringFormat.cc: Get rid of vasprintf.
  2354. * src/getaddrinfo.h: Fixed constants.
  2355. * configure.ac: Added the check for asctime_r function.
  2356. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  2357. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2358. Added writable test for Socket when the sending message is in progress.
  2359. Usually the sending message is piece message. Without wriable check,
  2360. upload latency is dropped to more than 1sec.
  2361. * src/PeerInteractionCommand.cc
  2362. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2363. Create only requested files and files which shares a piece with
  2364. requested file in multi-torrent downloads. Directory structures are
  2365. also created in the same rule.
  2366. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  2367. DiskWriterEntry as in the previous implementation.
  2368. * src/MultiDiskWriter.cc
  2369. * src/MultiFileAllocationIterator.cc
  2370. * src/MultiFileAllocationIterator.h
  2371. * test/MultiFileAllocationIteratorTest.cc
  2372. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2373. Commented out -lprofiler
  2374. * src/Makefile.am
  2375. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2376. Bump up version number to 0.14.0b.
  2377. * src/configure.ac
  2378. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2379. Actively establish connection to peers in seeding, when peer cache
  2380. is not full and max upload speed limit is not reached.
  2381. * src/ActivePeerConnectionCommand.cc
  2382. * src/ActivePeerConnectionCommand.h
  2383. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2384. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  2385. to make room more fleshy, recently found peers.
  2386. Peer::_badConditionStartTime is not used anymore. Consider to remove
  2387. it.
  2388. * src/DefaultPeerStorage.cc
  2389. * test/DefaultPeerStorageTest.cc
  2390. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2391. Returns cached data only when the previous receiveHandshake() is called
  2392. with peek = true.
  2393. * src/PeerConnection.cc (receiveHandshake)
  2394. * src/PeerConnection.h (receiveHandshake)
  2395. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2396. Changed default value of -s option from 1 to 5.
  2397. Also max value of -s option is changed from 5 to 16.
  2398. * src/HelpItemFactory.cc
  2399. * src/OptionHandlerFactory.cc
  2400. * src/option_processing.cc
  2401. * src/usage_text.h
  2402. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2403. Changed -s options behavior. Now it means the number of connections
  2404. made simultaneously in each http/ftp download.
  2405. If 1 URL is specified, the behavior is the same with old implementation.
  2406. If -s N is given and more than N URLs are specified, first N URLs are
  2407. used and remaining URLs are used for backup. If less than N URLs are
  2408. specified, some of URLs are used more than once so that totally N
  2409. connections are made simultaneously.
  2410. * src/main.cc
  2411. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2412. Included missing iosfwd or ostream header.
  2413. * src/RequestGroupMan.cc
  2414. * src/TaggedItem.cc
  2415. * src/TaggedItem.h
  2416. * src/Util.cc
  2417. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2418. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  2419. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  2420. * src/HttpConnection.cc: Included missing sstream.
  2421. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2422. Added --bt-max-open-files option.
  2423. * src/DefaultPieceStorage.cc
  2424. * src/HelpItemFactory.cc
  2425. * src/MultiDiskAdaptor.cc
  2426. * src/MultiDiskAdaptor.h
  2427. * src/OptionHandlerFactory.cc
  2428. * src/option_processing.cc
  2429. * src/prefs.cc
  2430. * src/prefs.h
  2431. * src/usage_text.h
  2432. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2433. Fixed the bug that aria2 aborts when a path to a directory is given
  2434. in command-line.
  2435. * src/ProtocolDetector.cc
  2436. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2437. Limited the number files opened in each BitTorrent download. The default
  2438. value is 100. The option to change this value will be added.
  2439. * src/MultiDiskAdaptor.cc
  2440. * src/MultiDiskAdaptor.h
  2441. * src/MultiFileAllocationIterator.cc
  2442. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2443. Fixed the bug that HTTP downloads don't start with old libraries.
  2444. * src/HttpHeaderProcessor.cc
  2445. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2446. Use empty() instead of size() > 0.
  2447. * src/HttpConnection.cc
  2448. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2449. Drop connection if the incoming peer ID is the same with localhost's
  2450. one. The previous implementation drops connection when incoming peer's
  2451. IP address is the same with localhost's one.
  2452. * src/PeerListenCommand.cc
  2453. * src/DefaultBtInteractive.cc
  2454. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2455. Returns cached data without checking whether socket is readable
  2456. if the cache is available.
  2457. * src/PeerConnection.cc (receiveHandshake)
  2458. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2459. Included stdint.h
  2460. * src/common.h
  2461. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2462. Removed duplicate HAVE_GETTIMEOFDAY
  2463. * src/Makefile.am
  2464. * src/Makefile.in
  2465. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2466. Use interval as a minInterval when minInterval is not supplied.
  2467. * src/DefaultBtAnnounce.cc
  2468. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2469. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  2470. attempt is failed, then 2nd attempt get kicked out more quickly.
  2471. And it is now static const member of DefaultBtAnnounce.
  2472. * src/DefaultBtAnnounce.h
  2473. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2474. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  2475. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  2476. * src/ActivePeerConnectionCommand.cc
  2477. * src/BtConstants.h
  2478. * src/BtRuntime.h
  2479. * src/DHTGetPeersCommand.cc
  2480. * src/DefaultBtAnnounce.cc
  2481. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  2482. BtRuntime::MAX_PEERS.
  2483. * src/DefaultPeerStorage.h
  2484. * src/InitiatorMSEHandshakeCommand.cc
  2485. * src/PeerInitiateConnectionCommand.cc
  2486. * src/PeerInteractionCommand.cc
  2487. * src/PeerReceiveHandshakeCommand.cc
  2488. * src/TrackerWatcherCommand.cc
  2489. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2490. Always Connect to _numNewConnection
  2491. * src/ActivePeerConnectionCommand.cc
  2492. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Made `begin' unsigned int.
  2494. * src/GrowSegment.h
  2495. * src/Piece.cc
  2496. * src/Piece.h
  2497. * src/PiecedSegment.cc
  2498. * src/PiecedSegment.h
  2499. * src/Segment.h
  2500. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2501. Calculate piece hash when data is arrived if the data is arrived in
  2502. order. This removes additional read operation for hash calculation.
  2503. If the data is arrived in out of order, the hash is calucated when the
  2504. piece is completed. This is the same behavior as the old implementation.
  2505. * src/BtPieceMessage.cc
  2506. * src/DefaultBtProgressInfoFile.cc
  2507. * src/DefaultPieceStorage.cc
  2508. * src/DownloadCommand.cc
  2509. * src/DownloadCommand.h
  2510. * src/DownloadEngine.cc
  2511. * src/GrowSegment.cc
  2512. * src/GrowSegment.h
  2513. * src/Piece.cc
  2514. * src/Piece.h
  2515. * src/PiecedSegment.cc
  2516. * src/PiecedSegment.h
  2517. * src/Segment.h
  2518. * test/PieceTest.cc
  2519. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2520. Try to keep the ordering of outgoing piece message.
  2521. * src/DefaultBtMessageDispatcher.cc
  2522. (DefaultBtMessageDispatcher::sendMessages)
  2523. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2524. Fixed busy loop when error/hup epoll events occur.
  2525. * src/AbstractCommand.cc
  2526. * src/PeerAbstractCommand.cc
  2527. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2528. Added --bt-request-peer-speed-limit option, which was a constant
  2529. SLOW_SPEED_THRESHOLD.
  2530. * src/ActivePeerConnectionCommand.cc
  2531. * src/ActivePeerConnectionCommand.h
  2532. * src/BtConstants.h
  2533. * src/HelpItemFactory.cc
  2534. * src/OptionHandlerFactory.cc
  2535. * src/PeerReceiveHandshakeCommand.cc
  2536. * src/option_processing.cc
  2537. * src/prefs.cc
  2538. * src/prefs.h
  2539. * src/usage_text.h
  2540. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2541. Removed repeated call of getTopDirPath(). Instead, call it once and
  2542. cache the result.
  2543. * src/MultiDiskAdaptor.cc
  2544. * src/MultiDiskAdaptor.h
  2545. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2546. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2547. Fixed compile error on debian etch.
  2548. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2549. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2550. it is undefined.
  2551. * src/Util.cc (ULLONG_MAX)
  2552. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2553. Added epoll support. Use epoll if it is available. If not, use select.
  2554. When async dns is enabled in compile time, epoll support is enabled
  2555. only when aria2 is built with c-ares. This condition statement is
  2556. defined in a2io.h.
  2557. Currently aria2 supports both c-ares and ares, but ares is maintained
  2558. for quite a while and debian already has c-ares package, ares support
  2559. will be dropped in the future version.
  2560. * configure.ac
  2561. * src/AbstractCommand.cc
  2562. * src/AsyncNameResolver.cc
  2563. * src/AsyncNameResolver.h
  2564. * src/Command.cc
  2565. * src/Command.h
  2566. * src/DownloadEngine.cc
  2567. * src/DownloadEngine.h
  2568. * src/PeerAbstractCommand.cc
  2569. * src/SocketCore.cc
  2570. * src/SocketCore.h
  2571. * src/a2io.h
  2572. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2573. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2574. directive.
  2575. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2576. Do not do write operation to /dev/null file.
  2577. * src/LogFactory.cc
  2578. * src/SimpleLogger.cc
  2579. Replaced vasprintf with vsnprintf
  2580. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2581. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2582. * src/BtRequestMessage.cc
  2583. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2584. for segmentation fault caused by previous commit.
  2585. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2586. Reduced the usage of gettimeofday().
  2587. * src/DefaultBtMessageDispatcher.cc
  2588. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2589. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2590. * src/RequestSlot.cc
  2591. * src/RequestSlot.h
  2592. (RequestSlot::isTimeout)
  2593. Made RequestSlot have a reference to Piece object to avoid find
  2594. Piece repeatedly.
  2595. * src/DefaultBtMessageDispatcher.cc
  2596. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2597. * src/RequestSlot.cc
  2598. * src/RequestSlot.h
  2599. (RequestSlot::getPiece)
  2600. * test/DefaultBtMessageDispatcherTest.cc
  2601. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2602. * src/TimeA2.cc
  2603. * src/TimeA2.h
  2604. (Time::difference): New function.
  2605. (Time::elapsed): Done optimization.
  2606. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2607. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2608. directive.
  2609. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2610. * src/option_processing.cc: Added missing `defined' keyword to #if
  2611. directive.
  2612. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2613. Bump up version number to 0.13.2+1
  2614. * src/configure.ac
  2615. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2616. Refactored broken outstanding piece handling.
  2617. * src/DefaultPieceStorage.cc
  2618. * src/DefaultPieceStorage.h
  2619. * src/Piece.cc
  2620. * src/Piece.h
  2621. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2623. name collision of static variable and predefined macro.
  2624. * src/BtContext.cc
  2625. * src/BtContext.h
  2626. * src/CookieBoxFactory.cc
  2627. * src/CookieBoxFactory.h
  2628. * src/CookieParser.cc
  2629. * src/CookieParser.h
  2630. * src/DefaultBtContext.cc
  2631. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2632. * src/RequestGroup.cc
  2633. (RequestGroup::createInitialCommand): Use empty() instead of size().
  2634. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2635. * Release 0.13.2
  2636. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2637. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  2638. * po/fr.po
  2639. * po/ja.po
  2640. * po/aria2c.pot
  2641. * po/*.po
  2642. * po/*.gmo
  2643. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Bump up version number to 0.13.2
  2645. * src/configure.ac
  2646. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2647. Refactord.
  2648. * src/RequestGroupMan.cc
  2649. (removeStoppedGroup)
  2650. (fillRequestGroupFromReserver)
  2651. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2652. Fixed compile error on Ubuntu.
  2653. * src/BtPieceMessage.cc
  2654. * src/MessageDigestHelper.cc
  2655. * src/Util.cc
  2656. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Fixed compile error when configured with --disable-bittorrent
  2658. * test/DownloadHandlerFactoryTest.cc
  2659. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2660. Done make update-po
  2661. * po/aria2c.pot
  2662. * po/*.po
  2663. * po/*.gmo
  2664. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2665. Bump up version number to 0.13.2rc.
  2666. * src/configure.ac
  2667. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2668. Made option name bold. Updated SYNOPSIS to make it more readable.
  2669. * doc/aria2c.1.txt
  2670. * doc/aria2c.1
  2671. * doc/aria2c.1.html
  2672. * src/version_usage.cc
  2673. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2674. Refactored. Use std::string instead of size and char*.
  2675. * Data.cc
  2676. * Data.h
  2677. * test/Data.cc
  2678. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. Added trimSelf(). Rewritten trim() to use trimSelf().
  2680. * Util.cc
  2681. * Util.h
  2682. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2683. * src/ChunkChecksum.h (getChecksum): Return const reference.
  2684. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. Fixed compile error when configured with --disable-metalink.
  2686. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  2687. * test/FeatureConfigTest.cc
  2688. * test/DownloadHandlerFactoryTest.cc
  2689. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. Fixed compile error when configured with --without-gnutls
  2691. --without-openssl
  2692. * src/main.cc
  2693. * test/DefaultBtProgressInfoFileTest.cc
  2694. * test/SegmentManTest.cc
  2695. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2696. Fixed compile error with OpenSSL.
  2697. * src/IteratableChunkChecksumValidator.cc
  2698. * src/LibsslDHKeyExchange.h
  2699. * src/MessageDigestHelper.cc
  2700. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2701. Revert the default value of --max-concurrent-downloads to 5.
  2702. Revert the default value of --metalink-servers to 5.
  2703. Man pages was also updated.
  2704. * src/option_processing.cc
  2705. * doc/aria2c.1.txt
  2706. * doc/aria2c.1.html
  2707. * doc/aria2c.1
  2708. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Returns const reference:
  2710. DownloadContext::getPieceHash, DownloadContext::getName,
  2711. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  2712. BtContext::getInfoHashAsString,
  2713. * src/BtContext.h
  2714. * src/DefaultBtContext.cc
  2715. * src/DefaultBtContext.h
  2716. * src/DownloadContext.h
  2717. * src/SingleFileDownloadContext.h
  2718. * test/MockBtContext.h
  2719. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2720. * src/RequestGroup.h (getDir): Removed.
  2721. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2722. Returns const reference. The internal urlencode function was optimized
  2723. a little bit.
  2724. * src/Request.cc
  2725. * src/Request.h
  2726. * src/HttpRequest.cc
  2727. * src/HttpRequest.h
  2728. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Defined option name and possible values as std::string to reduce
  2730. temporary string object creation in runtime.
  2731. * src/HelpItemFactory.cc
  2732. * src/LogFactory.cc
  2733. * src/Option.cc
  2734. * src/OptionHandlerFactory.cc
  2735. * src/option_processing.cc
  2736. * src/prefs.cc
  2737. * src/prefs.h
  2738. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2739. Return const reference.
  2740. * src/DownloadHandlerConstants.cc
  2741. * src/DownloadHandlerConstants.h
  2742. (getMetalinkExtensions)
  2743. (getMetalinkContentTypes)
  2744. (getBtExtensions)
  2745. (getBtContentTypes)
  2746. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2747. * src/HttpHeader.cc (get): Rewritten.
  2748. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2749. Make HttpHeader::getFirst(...) return const reference.
  2750. * src/HttpHeader.cc
  2751. * src/HttpHeader.h
  2752. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2753. Use Option::getAsBool(...) instead of Option::get(...) and compare
  2754. it with V_TRUE.
  2755. * src/DefaultPieceStorage.cc
  2756. * src/DownloadCommand.cc
  2757. * src/FtpNegotiationCommand.cc
  2758. * src/HttpRequest.cc
  2759. * src/InitiateConnectionCommand.cc
  2760. * src/RequestGroup.cc
  2761. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2762. Made Option::get(...) return const reference of std::string.
  2763. * src/Option.cc
  2764. * src/Option.h
  2765. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Replaced std:copy with insert.
  2767. * src/DefaultBtMessageDispatcher.cc
  2768. * src/DefaultPieceStorage.cc
  2769. * src/DownloadEngineFactory.cc
  2770. * src/RequestGroup.cc
  2771. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2772. Included SocketCore.h to fix compiler warning.
  2773. * src/InitiateConnectionCommand.cc
  2774. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2775. Put piece selection strategy algorithm to RarestPieceSelector class,
  2776. Added a switch to choose whether randomized selection so that unit
  2777. tests emit same results in, possibly, win32.
  2778. * src/DefaultPieceStorage.cc
  2779. * src/DefaultPieceStorage.h
  2780. * src/RarestPieceSelector.cc
  2781. * src/RarestPieceSelector.h
  2782. * test/DefaultPieceStorageTest.cc
  2783. * test/RarestPieceSelectorTest.cc
  2784. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2785. Don't pool connection if HTTP proxy is enabled.
  2786. * src/FtpFinishDownloadCommand.cc
  2787. * src/FtpNegotiationCommand.cc
  2788. * src/HttpSkipResponseCommand.cc
  2789. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2790. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  2791. * src/AbstractCommand.cc
  2792. * src/AbstractCommand.h
  2793. * src/ActivePeerConnectionCommand.cc
  2794. * src/FtpInitiateConnectionCommand.cc
  2795. * src/HttpInitiateConnectionCommand.cc
  2796. * src/InitiateConnectionCommandFactory.cc
  2797. * src/PeerAbstractCommand.cc
  2798. * src/PeerAbstractCommand.h
  2799. * src/PeerInitiateConnectionCommand.cc
  2800. * src/TrackerWatcherCommand.cc
  2801. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2802. Sort RequestSlot in ascending order and manipulate them using
  2803. lower_bound.
  2804. * src/DefaultBtMessageDispatcher.cc
  2805. * src/DefaultBtMessageDispatcher.h
  2806. (getMessageQueue): Added const qualifier.
  2807. (getRequestSlots): Added const qualifier.
  2808. (sendMessages): Use empty() instead of size().
  2809. (doCancelSendingPieceAction): Use HandleEvent object.
  2810. (doAbortOutstandingRequestAction): Rewritten.
  2811. (doChokedAction): Rewritten.
  2812. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  2813. (isOutstandingRequest): Rewritten.
  2814. (getOutstandingRequest): Rewritten.
  2815. (removeOutstandingRequest): Rewritten.
  2816. (addOutstandingRequest): Rewritten.
  2817. * src/RequestSlot.cc
  2818. * src/RequestSlot.h
  2819. (operator=): Rewritten.
  2820. (operator!=): New function.
  2821. (operator<): New function.
  2822. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2823. * src/DefaultBtRequestFactory.cc
  2824. (doChokedAction): Rewritten.
  2825. (removeCompletedPiece): Rewritten.
  2826. (removeTargetPiece): Rewritten.
  2827. (createRequestMessages): Added the debug log.
  2828. (createRequestMessagesOnEndGame: Added the debug log.
  2829. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2830. Added the debug log message.
  2831. * src/BtPieceMessage.cc (doReceivedAction)
  2832. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2833. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2834. used lower_bound to process them rather than linear search.
  2835. * src/DHTPeerAnnounceStorage.cc
  2836. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2837. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2838. peer has at least one completed piece.
  2839. * src/Peer.cc
  2840. * src/Peer.h
  2841. * src/PeerInteractionCommand.cc
  2842. * src/PeerSessionResource.cc
  2843. * src/PeerSessionResource.h
  2844. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2845. Removed unnecessary sorting
  2846. * src/DefaultPieceStorage (DefaultPieceStorage)
  2847. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2848. Rewritten the portion of the code that mangaes allowed fast indexes.
  2849. * src/PeerSessionResource.cc
  2850. * src/PeerSessionResource.h
  2851. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2852. Removed the invalid string including '\r' from ru.po and
  2853. did make update-po.
  2854. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2855. Added --log-level and --summary-interval to man page.
  2856. * doc/aria2c.1.txt
  2857. * doc/aria2c.1.html
  2858. * doc/aria2c.1
  2859. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2860. Added --log-level option to specify log level. Log messages under
  2861. the specified level are not output. Default value is `debug'.
  2862. * src/HelpItemFactory.cc
  2863. * src/LogFactory.cc
  2864. * src/LogFactory.h
  2865. * src/Logger.h
  2866. * src/OptionHandlerFactory.cc
  2867. * src/SimpleLogger.cc
  2868. * src/SimpleLogger.h
  2869. * src/main.cc
  2870. * src/option_processing.cc
  2871. * src/prefs.h
  2872. * src/usage_text.h
  2873. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2874. Print download progress summary of all parallel downloads in specified
  2875. interval, default 60 secs. While aria2 could download several files
  2876. in parallel (see -j option), it displayed just first download progress,
  2877. and the other downloads are hidden from the users. This new feature
  2878. prints all downloads currently in-progress to the console so that you
  2879. can check the status of all downloads. The interval can be adjusted
  2880. by --summary-interval option.
  2881. The progress readout is now cut so that all fits in the one line of
  2882. console.
  2883. * src/ConsoleStatCalc.cc
  2884. * src/ConsoleStatCalc.h
  2885. * src/HelpItemFactory.cc
  2886. * src/OptionHandlerFactory.cc
  2887. * src/RequestGroupMan.cc
  2888. * src/RequestGroupMan.h
  2889. * src/main.cc
  2890. * src/option_processing.cc
  2891. * src/prefs.h
  2892. * src/usage_text.h
  2893. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2895. * src/DownloadEngine.cc (DownloadEngine)
  2896. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2897. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2898. defined.
  2899. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2900. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2901. Use erase+lower_bound+insert instead of sort.
  2902. * src/DefaultPieceStorage.cc (addPieceStats)
  2903. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2904. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2905. * src/A2STR.cc
  2906. * src/A2STR.h
  2907. * src/OptionParser.cc (parse)
  2908. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2909. Defined fake filename `[tracker.announce]' as static const std::string.
  2910. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2911. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. Defined default filename `index.html' as static const std::string
  2913. * src/SingleFileDownloadContext.cc
  2914. * src/SingleFileDownloadContext.h
  2915. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2916. Defined "[MEMORY]" as static const std::string.
  2917. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2918. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2919. Defined control file's version number as static const std::string.
  2920. * src/DefaultBtProgressInfoFile.cc
  2921. * src/DefaultBtProgressInfoFile.h
  2922. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2923. Use Request::METHOD_GET
  2924. * src/RequestGroup.cc (createNextCommandWithAdj)
  2925. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2926. Defined "OK", "ERR", "INPR" as static const std::string
  2927. * src/RequestGroupMan.cc (showDownloadResults)
  2928. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. Defined default client used in extended handshake as static const
  2930. std::string
  2931. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2932. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2933. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2934. * src/HttpConnection.cc (eraseConfidentialInfo)
  2935. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2936. Defined default ftp user and password as static const std::string
  2937. * src/AuthConfigFactory.cc
  2938. * src/AuthConfigFactory.h
  2939. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Defined strings used in netrc as static const std::string
  2941. * src/Netrc.cc
  2942. * src/Netrc.h
  2943. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2944. Defined HTTP status as static const std::string
  2945. * src/AbstractProxyResponseCommand.cc
  2946. * src/HttpHeader.cc
  2947. * src/HttpHeader.h
  2948. * src/HttpResponse.cc
  2949. * src/HttpResponseCommand.cc
  2950. * src/HttpSkipResponseCommand.cc
  2951. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2952. Defined "\r\n", "A", "I" as static const std::string
  2953. * src/A2STR.cc
  2954. * src/A2STR.h
  2955. * src/FtpConnection.cc
  2956. * src/FtpConnection.h
  2957. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Added COLON_C(".") and used it in Request::parseUrl()
  2959. * src/A2STR.cc
  2960. * src/A2STR.h
  2961. * src/Request.cc (parseUrl)
  2962. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2963. Changed the type of padName from `const std::string&' to `const char*'.
  2964. * src/MSEHandshake.cc (verifyPadLength)
  2965. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2966. Defined "sha1" as static const std::string.
  2967. * src/MetalinkParserController.cc
  2968. * src/MetalinkParserController.h
  2969. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2970. Defined message digest algorithm name as static const std::string
  2971. * src/DHTTokenTracker.cc
  2972. * src/DHTUtil.cc
  2973. * src/DefaultBtContext.cc
  2974. * src/MSEHandshake.cc
  2975. * src/MessageDigestHelper.cc
  2976. * src/Peer.cc
  2977. * src/messageDigest.cc
  2978. * src/messageDigest.h
  2979. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2980. Made string literals used in SAX parser static const std::string.
  2981. * src/FileMetalinkParserState.cc
  2982. * src/FileMetalinkParserState.h
  2983. * src/FilesMetalinkParserState.cc
  2984. * src/FilesMetalinkParserState.h
  2985. * src/InitialMetalinkParserState.cc
  2986. * src/InitialMetalinkParserState.h
  2987. * src/MetalinkMetalinkParserState.cc
  2988. * src/MetalinkMetalinkParserState.h
  2989. * src/PiecesMetalinkParserState.cc
  2990. * src/PiecesMetalinkParserState.h
  2991. * src/ResourcesMetalinkParserState.cc
  2992. * src/ResourcesMetalinkParserState.h
  2993. * src/VerificationMetalinkParserState.cc
  2994. * src/VerificationMetalinkParserState.h
  2995. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2997. * src/A2STR.cc
  2998. * src/A2STR.h
  2999. * src/File.cc
  3000. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. Defined static const std::string IP("ip"), PORT("port") and use them
  3002. instead of string literals.
  3003. * src/DefaultPeerListProcessor.cc
  3004. * src/DefaultPeerListProcessor.h
  3005. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Made string literals for torrent file processing static const
  3007. std::string.
  3008. * src/BtContext.cc
  3009. * src/BtContext.h
  3010. * src/DefaultBtContext.cc
  3011. * src/DefaultBtContext.h
  3012. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. Made string literal for tracker response static const std::string
  3014. * src/BtAnnounce.cc
  3015. * src/BtAnnounce.h
  3016. * src/DefaultBtAnnounce.cc
  3017. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3018. Use DHTMessage::T instead of "t".
  3019. * src/DHTMessageTracker.cc (messageArrived)
  3020. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. Made keyName static const. Made trimmed charset static const
  3022. std::string.
  3023. * src/Util.cc (getContentDispositionFilename)
  3024. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3025. Made USER_AGENT const. Made "/" static const std::string.
  3026. * src/A2STR.cc
  3027. * src/A2STR.h
  3028. * src/HttpRequest.cc
  3029. * src/HttpRequest.h
  3030. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3031. Made string listeral to static const std::string:
  3032. "Content-Range", "Content-Length"
  3033. * src/HttpHeader.cc
  3034. * src/HttpHeader.h
  3035. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3036. Made string listeral to static const std::string.
  3037. * src/HttpConnection.cc
  3038. * src/HttpHeader.cc
  3039. * src/HttpHeader.h
  3040. * src/HttpResponse.cc
  3041. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3042. Made string listeral to static const std::string.
  3043. * src/A2STR.cc
  3044. * src/A2STR.h
  3045. * src/SimpleLogger.cc
  3046. * src/SimpleLogger.h
  3047. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3048. Made string literal to static const std::string.
  3049. Rewritten CookieParser::setField.
  3050. * src/A2STR.cc
  3051. * src/A2STR.h
  3052. * src/CookieBoxFactory.cc
  3053. * src/CookieBoxFactory.h
  3054. * src/CookieParser.cc
  3055. * src/CookieParser.h
  3056. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3057. Made string literal to static const std::string
  3058. * src/DHTAbstractMessage.cc
  3059. * src/DHTAnnouncePeerMessage.cc
  3060. * src/DHTAnnouncePeerMessage.h
  3061. * src/DHTAnnouncePeerReplyMessage.cc
  3062. * src/DHTAnnouncePeerReplyMessage.h
  3063. * src/DHTFindNodeMessage.cc
  3064. * src/DHTFindNodeMessage.h
  3065. * src/DHTFindNodeReplyMessage.cc
  3066. * src/DHTFindNodeReplyMessage.h
  3067. * src/DHTGetPeersMessage.cc
  3068. * src/DHTGetPeersMessage.h
  3069. * src/DHTGetPeersReplyMessage.cc
  3070. * src/DHTGetPeersReplyMessage.h
  3071. * src/DHTMessage.cc
  3072. * src/DHTMessage.h
  3073. * src/DHTMessageFactoryImpl.cc
  3074. * src/DHTMessageReceiver.cc
  3075. * src/DHTPingMessage.cc
  3076. * src/DHTPingMessage.h
  3077. * src/DHTPingReplyMessage.cc
  3078. * src/DHTPingReplyMessage.h
  3079. * src/DHTQueryMessage.cc
  3080. * src/DHTQueryMessage.h
  3081. * src/DHTResponseMessage.cc
  3082. * src/DHTResponseMessage.h
  3083. * src/DHTUnknownMessage.cc
  3084. * src/DHTUnknownMessage.h
  3085. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3086. Made string literal to static const std::string
  3087. * src/BtChokeMessage.cc (toString)
  3088. * src/BtHaveAllMessage.cc (toString)
  3089. * src/BtHaveNoneMessage.cc (toString)
  3090. * src/BtInterestedMessage.cc (toString)
  3091. * src/BtNotInterestedMessage.cc (toString)
  3092. * src/BtUnchokeMessage.cc (toString)
  3093. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3094. Replaced "" with static const variable A2STR::NIL.
  3095. Replaced string comparison against "" with std::string::empty().
  3096. Added PROTO_* to Request class and use them as a protocol string
  3097. constant.
  3098. Made "started", "stopped", "completed" static const variable in
  3099. AnnounceList class.
  3100. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3101. Updated translations. Great thanks to translators.
  3102. * po/ca.po
  3103. * po/de.po
  3104. * po/fr.po
  3105. * po/it.po
  3106. * po/ja.po
  3107. * po/ru.po
  3108. * po/zh_CN.po
  3109. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3110. Updated man page; categorized options and fixed typo.
  3111. * doc/aria2c.1.txt
  3112. * doc/aria2c.1.html
  3113. * doc/aria2c.1
  3114. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3115. Removed const ref
  3116. * src/MetalinkEntry.cc (AddProtocolPreference)
  3117. * src/RequestGroup.cc (FindServerHostByHostname)
  3118. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. Rewritten Accept-Features handling.
  3120. * src/HttpRequestCommand.cc (createHttpRequest)
  3121. * src/a2functional.h
  3122. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. Changed method signature:
  3124. DHTAbstractNodeLookupTask::toEntries
  3125. * src/DHTAbstractNodeLookupTask.cc
  3126. * src/DHTAbstractNodeLookupTask.h
  3127. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Changed method signature:
  3129. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  3130. * src/BtContext.h
  3131. * src/DefaultBtContext.cc
  3132. * src/DefaultBtContext.h
  3133. * src/DefaultBtInteractive.cc
  3134. * test/DefaultBtContextTest.cc
  3135. * test/MockBtContext.h
  3136. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3137. Changed method signature:
  3138. MultiFileAllocationIterator::makeDiskWriterEntries
  3139. * src/MultiFileAllocationIterator.cc
  3140. * src/MultiFileAllocationIterator.h
  3141. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3142. Changed method sinature:
  3143. MetalinkEntry::toFileEntry,
  3144. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  3145. Metalinker::queryEntry
  3146. * src/Metalink2RequestGroup.cc
  3147. * src/MetalinkEntry.cc
  3148. * src/MetalinkEntry.h
  3149. * src/MetalinkHelper.cc
  3150. * src/MetalinkHelper.h
  3151. * src/Metalinker.cc
  3152. * src/Metalinker.h
  3153. * src/main.cc
  3154. * test/MetalinkHelperTest.cc
  3155. * test/MetalinkerTest.cc
  3156. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3157. Changed method sinature:
  3158. RequestGroup::getURIs
  3159. * src/RequestGroup.cc
  3160. * src/RequestGroup.h
  3161. * test/Metalink2RequestGroupTest.cc
  3162. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3163. Changed method signature:
  3164. PeerListProcessor::extractPeer
  3165. * src/CompactPeerListProcessor.cc
  3166. * src/CompactPeerListProcessor.h
  3167. * src/DefaultBtAnnounce.cc
  3168. * src/DefaultPeerListProcessor.cc
  3169. * src/DefaultPeerListProcessor.h
  3170. * src/DelegatingPeerListProcessor.cc
  3171. * src/DelegatingPeerListProcessor.h
  3172. * src/PeerListProcessor.h
  3173. * src/UTPexExtensionMessage.cc
  3174. * test/DefaultPeerListProcessorTest.cc
  3175. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Changed method signature:
  3177. BtRequestFactory::createRequestMessages,
  3178. BtRequestFactory::createRequestMessagesOnEndGame
  3179. * src/BtRequestFactory.h
  3180. * src/DefaultBtInteractive.cc
  3181. * src/DefaultBtRequestFactory.cc
  3182. * src/DefaultBtRequestFactory.h
  3183. * test/DefaultBtRequestFactoryTest.cc
  3184. * test/MockBtRequestFactory.h
  3185. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. Changed method signature:
  3187. PieceStorage::getInFlightPieces
  3188. * src/DefaultBtProgressInfoFile.cc
  3189. * src/DefaultPieceStorage.cc
  3190. * src/DefaultPieceStorage.h
  3191. * src/PieceStorage.h
  3192. * src/UnknownLengthPieceStorage.cc
  3193. * src/UnknownLengthPieceStorage.h
  3194. * test/DefaultBtProgressInfoFileTest.cc
  3195. * test/MockPieceStorage.h
  3196. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3197. Changed method signature:
  3198. PostDownloadHandler::getNextRequestGroups
  3199. Metalink2RequestGroup::generate
  3200. RequestGroup::postDownloadProcessing
  3201. * src/BtPostDownloadHandler.cc
  3202. * src/BtPostDownloadHandler.h
  3203. * src/Metalink2RequestGroup.cc
  3204. * src/Metalink2RequestGroup.h
  3205. * src/MetalinkPostDownloadHandler.cc
  3206. * src/MetalinkPostDownloadHandler.h
  3207. * src/PostDownloadHandler.h
  3208. * src/RequestGroup.cc
  3209. * src/RequestGroup.h
  3210. * src/RequestGroupMan.cc
  3211. * src/main.cc
  3212. * test/BtPostDownloadHandlerTest.cc
  3213. * test/Metalink2RequestGroupTest.cc
  3214. * test/MetalinkPostDownloadHandlerTest.cc
  3215. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Rewritten AccRequestGroup
  3217. * src/main.cc
  3218. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Rewritten.
  3220. * src/TaggedItem.cc (toTagString)
  3221. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3222. Rewritten Accept-Features handling.
  3223. * src/HttpRequestCommand.cc (createHttpRequest)
  3224. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Rewritten accept types handling.
  3226. * HttpRequest.cc (createRequest)
  3227. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3228. Rewritten
  3229. * src/FeatureConfig.cc (featureSummary)
  3230. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3231. Changed method signature:
  3232. PeerStorage::getActivePeers
  3233. * src/DHTPeerAnnounceEntry.cc
  3234. * src/DefaultPeerStorage.cc
  3235. * src/DefaultPeerStorage.h
  3236. * src/PeerStorage.h
  3237. * test/DefaultPeerStorageTest.cc
  3238. * test/MockPeerStorage.h
  3239. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Changed method signature:
  3241. DHTPeerAnnounceStorage::getPeers,
  3242. DHTPeerAnnounceEntry::getPeers
  3243. * src/DHTGetPeersMessage.cc
  3244. * src/DHTPeerAnnounceEntry.cc
  3245. * src/DHTPeerAnnounceEntry.h
  3246. * src/DHTPeerAnnounceStorage.cc
  3247. * src/DHTPeerAnnounceStorage.h
  3248. * test/DHTAnnouncePeerMessageTest.cc
  3249. * test/DHTPeerAnnounceEntryTest.cc
  3250. * test/DHTPeerAnnounceStorageTest.cc
  3251. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Changed method signature:
  3253. NameResolver::resolve
  3254. * src/DHTEntryPointNameResolveCommand.cc
  3255. * src/InitiateConnectionCommand.cc
  3256. * src/NameResolver.cc
  3257. * src/NameResolver.h
  3258. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3259. Changed method signature:
  3260. PieceStorage::getAdvertisedPieceIndexes
  3261. * src/DefaultBtInteractive.cc
  3262. * src/DefaultPieceStorage.cc
  3263. * src/DefaultPieceStorage.h
  3264. * src/PieceStorage.h
  3265. * src/UnknownLengthPieceStorage.h
  3266. * test/MockPieceStorage.h
  3267. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Changed method signature:
  3269. SegmentMan::getInFlightSegment
  3270. * src/AbstractCommand.cc
  3271. * src/SegmentMan.cc
  3272. * src/SegmentMan.h
  3273. * test/SegmentManTest.cc
  3274. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3275. Changed method signature:
  3276. DHTAbstractNodeLookupTask::getNodesFromMessage
  3277. * src/DHTAbstractNodeLookupTask.cc
  3278. * src/DHTAbstractNodeLookupTask.h
  3279. * src/DHTNodeLookupTask.cc
  3280. * src/DHTNodeLookupTask.h
  3281. * src/DHTPeerLookupTask.cc
  3282. * src/DHTPeerLookupTask.h
  3283. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  3285. * src/AbstractCommand.cc
  3286. * src/BtCheckIntegrityEntry.cc
  3287. * src/BtCheckIntegrityEntry.h
  3288. * src/BtFileAllocationEntry.cc
  3289. * src/BtFileAllocationEntry.h
  3290. * src/BtSetup.cc
  3291. * src/BtSetup.h
  3292. * src/CheckIntegrityCommand.cc
  3293. * src/CheckIntegrityEntry.h
  3294. * src/ChecksumCheckIntegrityEntry.cc
  3295. * src/ChecksumCheckIntegrityEntry.h
  3296. * src/DHTSetup.cc
  3297. * src/DHTSetup.h
  3298. * src/DownloadEngine.cc
  3299. * src/FileAllocationCommand.cc
  3300. * src/FileAllocationEntry.h
  3301. * src/RequestGroup.cc
  3302. * src/RequestGroup.h
  3303. * src/RequestGroupMan.cc
  3304. * src/RequestGroupMan.h
  3305. * src/StreamCheckIntegrityEntry.cc
  3306. * src/StreamCheckIntegrityEntry.h
  3307. * src/StreamFileAllocationEntry.cc
  3308. * src/StreamFileAllocationEntry.h
  3309. * src/TrackerWatcherCommand.cc
  3310. * src/a2functional.h
  3311. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Changed method signature:
  3313. BNode::findClosestKNodes, BNode:: enumerateBucket,
  3314. DHTBucket::getGoodNodes,
  3315. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  3316. * src/BNode.cc
  3317. * src/BNode.h
  3318. * src/DHTAbstractNodeLookupTask.cc
  3319. * src/DHTAutoSaveCommand.cc
  3320. * src/DHTBucket.cc
  3321. * src/DHTBucket.h
  3322. * src/DHTBucketRefreshTask.cc
  3323. * src/DHTFindNodeMessage.cc
  3324. * src/DHTGetPeersMessage.cc
  3325. * src/DHTRoutingTable.cc
  3326. * src/DHTRoutingTable.h
  3327. * test/BNodeTest.cc
  3328. * test/DHTBucketTest.cc
  3329. * test/DHTRoutingTableTest.cc
  3330. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3331. In piece selection functions, Pass std::deque<...> by reference rather
  3332. than returning it.
  3333. * src/BitfieldMan.cc
  3334. * src/BitfieldMan.h
  3335. * src/DefaultBtRequestFactory.cc
  3336. * src/DefaultPieceStorage.cc
  3337. * src/Piece.cc
  3338. * src/Piece.h
  3339. * test/BitfieldManTest.cc
  3340. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3341. Implemented rarest piece first piece selection strategy.
  3342. * src/AbstractBtMessage.cc
  3343. * src/AbstractBtMessage.h
  3344. * src/BitfieldMan.cc
  3345. * src/BitfieldMan.h
  3346. * src/BtBitfieldMessage.cc
  3347. * src/BtHaveAllMessage.cc
  3348. * src/BtHaveMessage.cc
  3349. * src/DefaultPieceStorage.cc
  3350. * src/DefaultPieceStorage.h
  3351. * src/PeerInteractionCommand.cc
  3352. * src/PieceStorage.h
  3353. * src/UnknownLengthPieceStorage.h
  3354. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Rewritten readData and writeData.
  3356. * src/MultiDiskAdaptor.cc
  3357. * src/MultiDiskAdaptor.h
  3358. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Move \n out of the message "Usage: ...".
  3360. * src/version_usage.cc
  3361. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3362. Bump up version number to 0.13.2b.
  3363. * configure.ac
  3364. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. Added const qualifier to argument Exception& e.
  3366. * src/Logger.h
  3367. * src/SimpleLogger.cc
  3368. * src/SimpleLogger.h
  3369. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3370. Pool connection when CWD, SIZE command fails.
  3371. * src/FtpNegotiationCommand.cc
  3372. * src/FtpNegotiationCommand.h
  3373. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3374. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  3375. * src/HttpResponseCommand.cc
  3376. * src/HttpSkipResponseCommand.cc
  3377. * src/HttpSkipResponseCommand.h
  3378. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3379. Pool connection when a server returns 4xx, 5xx responses.
  3380. * src/HttpNullDownloadCommand.cc
  3381. * src/HttpNullDownloadCommand.h
  3382. * src/HttpResponse.cc
  3383. * src/HttpResponse.h
  3384. * src/HttpResponseCommand.cc
  3385. * src/HttpResponseCommand.h
  3386. * test/HttpResponseTest.cc
  3387. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Print usage when no URL is specifed or bad command-line option is
  3389. specified.
  3390. * src/HelpItemFactory.cc
  3391. * src/help_tags.h
  3392. * src/option_processing.cc
  3393. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3394. Removed duplicate log message.
  3395. * src/AbstractCommand.cc (asyncResolveHostname)
  3396. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3397. Updated man page: --async-dns and --ftp-reuse-connection were added.
  3398. Changed -j option's default value from 5 to 1.
  3399. Added new examples using protocol auto detection feature.
  3400. Removed -T, -M usage where it can be omitted.
  3401. * doc/aria2c.1.txt
  3402. * doc/aria2c.1.html
  3403. * doc/aria2c.1.txt
  3404. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3405. Updated command-line usage text, so that it tells users that they
  3406. can specify any number of torrent files and metalink files in
  3407. command-line.
  3408. * src/version_usage.cc
  3409. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Changed the default value of -j option to 1.
  3411. * src/HelpItemFactory.cc
  3412. * src/option_processing.cc
  3413. * src/usage_text.h
  3414. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3415. Added the ability to reuse connection in FTP and it is enabled by
  3416. default. It can be disabled by --ftp-reuse-connection=false option.
  3417. * src/Command.cc
  3418. * src/DownloadCommand.cc
  3419. * src/FtpDownloadCommand.cc
  3420. * src/FtpDownloadCommand.h
  3421. * src/FtpFinishDownloadCommand.cc
  3422. * src/FtpFinishDownloadCommand.h
  3423. * src/FtpInitiateConnectionCommand.cc
  3424. * src/FtpNegotiationCommand.cc
  3425. * src/FtpNegotiationCommand.h
  3426. * src/HelpItemFactory.cc
  3427. * src/Makefile.am
  3428. * src/Makefile.in
  3429. * src/OptionHandlerFactory.cc
  3430. * src/option_processing.cc
  3431. * src/prefs.h
  3432. * src/usage_text.h
  3433. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3434. Call Command::transitStatus() before calling Command::execute(),
  3435. so that the status change made in execute() is not cleared.
  3436. * src/DownloadEngine.cc
  3437. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3438. Removed forward declaration of SocketCore class.
  3439. * src/HttpDownloadCommand.h
  3440. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3441. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  3442. in InitiateConnectionCommandFactory. They should be set only when
  3443. the protocol is HTTP or HTTPS.
  3444. * src/InitiateConnectionCommandFactory.cc
  3445. * src/RequestGroup.cc
  3446. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3447. Fixed infinite loop in checksum checking.
  3448. * src/IteratableChecksumValidator.cc
  3449. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3450. Set _supportsPersistentConnection to true by default.
  3451. * src/Request.cc
  3452. * src/RequestGroup.cc
  3453. * test/HttpRequestTest.cc
  3454. * test/RequestTest.cc
  3455. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3456. Added timeout to socket pool. The default timeout is 15 seconds,
  3457. which is the same value Apache uses.
  3458. * src/DownloadEngine.cc
  3459. * src/DownloadEngine.h
  3460. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3461. Fixed misuse of multimap::find()
  3462. * src/HttpHeader.cc
  3463. * test/HttpHeaderTest.cc
  3464. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3465. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  3466. option.
  3467. The asynchronous DNS is not capable of IPv6 yet.
  3468. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  3469. least for HTTP download.
  3470. * src/AbstractCommand.cc
  3471. * src/AbstractCommand.h
  3472. * src/AsyncNameResolver.cc
  3473. * src/AsyncNameResolver.h
  3474. * src/DHTEntryPointNameResolveCommand.cc
  3475. * src/DHTEntryPointNameResolveCommand.h
  3476. * src/DownloadEngine.cc
  3477. * src/DownloadEngine.h
  3478. * src/FtpInitiateConnectionCommand.cc
  3479. * src/FtpInitiateConnectionCommand.h
  3480. * src/HelpItemFactory.cc
  3481. * src/HttpInitiateConnectionCommand.cc
  3482. * src/HttpInitiateConnectionCommand.h
  3483. * src/InitiateConnectionCommand.cc
  3484. * src/InitiateConnectionCommand.h
  3485. * src/Makefile.am
  3486. * src/Makefile.in
  3487. * src/NameResolver.cc
  3488. * src/NameResolver.h
  3489. * src/OptionHandlerFactory.cc
  3490. * src/SocketCore.cc
  3491. * src/SocketCore.h
  3492. * src/Util.cc
  3493. * src/Util.h
  3494. * src/option_processing.cc
  3495. * src/prefs.h
  3496. * src/usage_text.h
  3497. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Updated man page: --quiet, --header were added.
  3499. --metalink-servers and --enable-http-keep-alive option were updated.
  3500. * doc/aria2c.1
  3501. * doc/aria2c.1.html
  3502. * doc/aria2c.1.txt
  3503. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3504. Enable HTTP keep-alive by default.
  3505. * src/HelpItemFactory.cc
  3506. * src/option_processing.cc
  3507. * src/usage_text.h
  3508. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3509. Disable http keep-alive if the remote server is not HTTP/1.1.
  3510. * src/HttpConnection.cc
  3511. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Receive content body of 302 response so that the connection can be
  3513. reused later when http keep-alive is enabled.
  3514. * src/HttpNullDownloadCommand.cc
  3515. * src/HttpNullDownloadCommand.h
  3516. * src/HttpResponseCommand.cc
  3517. * src/HttpResponseCommand.h
  3518. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3519. const SharedHandle<Request> -> const SharedHandle<Request>&
  3520. * src/FtpDowndloadCommand.cc
  3521. * src/FtpDowndloadCommand.h
  3522. * src/HttpDownloadCommand.cc
  3523. * src/HttpDownloadCommand.h
  3524. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3525. Fixed the bug that the control file(.aria2 file) is not renamed
  3526. according to tryAutoFileRenaming().
  3527. tryAutoFileRenaming() was rewritten so that if both renamed file and
  3528. its control file exist, use them and continue download.
  3529. The old implementation didn't take into account of control file's
  3530. existence, so basically you couldn't continue download of renamed file.
  3531. * src/BtProgressInfoFile.h
  3532. * src/DefaultBtProgressInfoFile.cc
  3533. * src/DefaultBtProgressInfoFile.h
  3534. * src/NullProgressInfoFile.h
  3535. * src/RequestGroup.cc
  3536. * test/DefaultBtProgressInfoFileTest.cc
  3537. * test/MockBtProgressInfoFile.h
  3538. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3539. Change the default value of --metalink-servers option from `5' to `1'.
  3540. * src/HelpItemFactory.cc
  3541. * src/option_processing.cc
  3542. * src/usage_text.h
  3543. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3544. Reimplemented transparent metalink using Accept request header.
  3545. * src/HttpRequest.cc
  3546. * src/HttpRequest.h
  3547. * src/HttpRequestCommand.cc
  3548. * src/Metalink2RequestGroup.cc
  3549. * src/RequestGroup.cc
  3550. * src/RequestGroup.h
  3551. * test/HttpRequestTest.cc
  3552. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3553. Bump up version number to 0.13.2a
  3554. * configure.ac
  3555. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3556. Updated configure.ac using the result of autoscan.
  3557. * configure.ac
  3558. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3559. Fixed compilation error without gcrypt/openssl.
  3560. * src/DownloadCommand.cc
  3561. * src/DownloadCommand.h
  3562. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3563. Reorganized version information so that it can be displayed in a
  3564. standard terminal screen without scrolling.
  3565. Removed http, ftp from Configuration section, because they are always
  3566. enabled.
  3567. * src/FeatureConfig.cc
  3568. * src/FeatureConfig.h
  3569. * src/main.cc
  3570. * src/messageDigest.cc
  3571. * src/messageDigest.h
  3572. * src/version_usage.cc
  3573. * test/FeatureConfigTest.cc
  3574. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Masked user ID in log.
  3576. * src/FtpConnection.cc (sendUser)
  3577. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3578. Removed query part from filename in HTTP download. The query part means
  3579. the substring after "?" in URL. Firefox seems do the same thing.
  3580. A query part is sometimes very long and not suitable to filename,
  3581. so I think it is better to remove it from filename.
  3582. * src/HttpRequest.cc
  3583. * src/HttpRequest.h
  3584. * src/Request.cc
  3585. * src/Request.h
  3586. * test/HttpRequestTest.cc
  3587. * test/RequestTest.cc
  3588. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3589. Rewritten Exception class. Throw exception object, not its pointer and
  3590. catch by reference, so that remove problematic delete operator for
  3591. catched exception.
  3592. * src/Exception.cc
  3593. * src/Exception.h
  3594. * test/ExceptionTest.cc
  3595. * src/*: All files throwing/catching exception.
  3596. * test/*: All files throwing/catching exception.
  3597. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Now auto protocol detection is enabled without -Z option.
  3599. But there is a important difference between with/without -Z optoin.
  3600. For example, if you type:
  3601. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3602. then, aria2 interprets there are 3 request groups:
  3603. (1) http://host/file, http://mirror/file <-- multi-source download
  3604. (2) file1.torrent
  3605. (3) file2.metalink
  3606. On the other hand, if you invoke above command with -Z option, it is
  3607. interpreted as 4 request groups:
  3608. (1) http://host/file
  3609. (2) file1.torrent
  3610. (3) file2.metalink
  3611. (4) http://mirror/file
  3612. I think usually user don't mix multi-source URLs and torrent files, so
  3613. there is no big problem here.
  3614. * src/main.cc
  3615. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3616. Fixed the bug that causes segmentaion fault when reading XML containing
  3617. unescapsed character like '&'.
  3618. Also a modification was made which avoids adding unnecessary
  3619. characters stack and appending unused string.
  3620. * src/ExpatMetalinkProcessor.cc
  3621. * src/FileMetalinkParserState.h
  3622. * src/FilesMetalinkParserState.h
  3623. * src/FinMetalinkParserState.h
  3624. * src/HashMetalinkParserState.h
  3625. * src/InitialMetalinkParserState.h
  3626. * src/LanguageMetalinkParserState.h
  3627. * src/MetalinkMetalinkParserState.h
  3628. * src/MetalinkParserState.h
  3629. * src/MetalinkParserStateMachine.cc
  3630. * src/MetalinkParserStateMachine.h
  3631. * src/OSMetalinkParserState.h
  3632. * src/PieceHashMetalinkParserState.h
  3633. * src/PiecesMetalinkParserState.h
  3634. * src/ResourcesMetalinkParserState.h
  3635. * src/SizeMetalinkParserState.h
  3636. * src/SkipTagMetalinkParserState.h
  3637. * src/URLMetalinkParserState.h
  3638. * src/VerificationMetalinkParserState.h
  3639. * src/VersionMetalinkParserState.h
  3640. * src/XML2SAXMetalinkProcessor.cc
  3641. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3642. Added StringFormat class, which internally calls vasprintf.
  3643. operator<< is defined for this class, so it can be used with iostream
  3644. classes nicely. SimpleLogger and following functions are rewritten
  3645. using StringFormat class.
  3646. Besides, now Logger class's methods are non-const, many classes
  3647. that has a const Logger* as a member variable are modified to remove
  3648. const qualifier from the variable declaration.
  3649. * src/HelpItemFactory.cc
  3650. * src/Request.cc
  3651. * src/SimpleLogger.cc
  3652. * src/StringFormat.cc
  3653. * src/StringFormat.h
  3654. * src/Util.cc
  3655. * src/option_processing.cc
  3656. * src/version_usage.cc
  3657. * test/StringFormatTest.cc
  3658. * src/*.h: The classes that has const Logger* as a member variable.
  3659. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3660. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  3661. failed. Also fixed memory link when exception is thrown there.
  3662. * src/main.cc (AccRequestGroup)
  3663. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Added build-in "Accept-Features" support. For now only "metalink" is
  3665. used in this header field.
  3666. This "metalink" value is removed from the list when connecting URLs
  3667. fed by metalink file to avoid loop in "transparent" metlaink.
  3668. * src/HttpRequest.cc
  3669. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  3670. header is also held in this variable. Also renamed setUserHeaders as
  3671. addHeader and it was rewritten to add header not just to clear the old
  3672. value.
  3673. * src/HttpRequestCommand.cc
  3674. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  3675. from "Accept-Features" list.
  3676. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  3677. default.
  3678. * src/RequestGroup.h
  3679. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  3680. * src/a2functional.h: Included <string> because Concat class depends on
  3681. it.
  3682. * test/HttpRequestTest.cc
  3683. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. Added comment
  3685. * src/RequestGroup.cc (createNextCommand)
  3686. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3687. Capitalized METHOD_GET and METHOD_HEAD
  3688. * src/Request.cc
  3689. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3690. Added getDownloadResults() method
  3691. * src/RequestGroupMan.cc
  3692. * src/RequestGroupMan.h
  3693. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3694. Fixed the bug that aria2 exits when commands is empty() but
  3695. _routineCommands are not.
  3696. * src/DownloadEngine.cc
  3697. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3698. Use the default value pulled from Option object in HelpItemFactory.
  3699. except options whose defualt value is embedded in a usage text.
  3700. * src/HelpItemFactory.cc
  3701. * src/HelpItemFactory.h
  3702. * src/option_processing.cc
  3703. * src/version_usage.cc
  3704. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3705. Added --quiet option to make aria2 quiet (no console output).
  3706. --quiet option is tagged with ADVANCED.
  3707. * src/HelpItemFactory.cc
  3708. * src/LogFactory.cc
  3709. * src/LogFactory.h
  3710. * src/MultiUrlRequestInfo.cc
  3711. * src/MultiUrlRequestInfo.h
  3712. * src/NullStatCalc.h: New class. This class prints nothing.
  3713. * src/OptionHandlerFactory.cc
  3714. * src/main.cc
  3715. * src/option_processing.cc
  3716. * src/prefs.h
  3717. * src/usage_text.h
  3718. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  3720. * src/HelpItemFactory.cc (createHelpItems):
  3721. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Fixed compilation error in ExpatMetalinkProcessor.cc
  3723. * src/ExpatMetalinkProcessor.cc
  3724. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Reuse socket if the origin server supports HTTP keep-alive and
  3726. --enable-http-keep-alive or --enable-http-pipelining is given.
  3727. The current implementation doesn't reuse the connections established
  3728. against proxy server.
  3729. * src/AbstractCommand.cc
  3730. * src/DownloadEngine.cc
  3731. * src/DownloadEngine.h
  3732. * src/HttpDownloadCommand.cc
  3733. * src/HttpInitiateConnectionCommand.cc
  3734. * src/HttpResponseCommand.cc
  3735. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. Rewritten HTTP keep-alive and pipelining routine.
  3737. * src/AbstractCommand.cc
  3738. * src/HttpConnection.cc
  3739. * src/HttpDownloadCommand.cc
  3740. * src/HttpRequest.cc
  3741. * src/HttpRequestCommand.cc
  3742. * src/HttpResponseCommand.cc
  3743. * src/Request.cc
  3744. * src/Request.h
  3745. * src/RequestGroup.cc
  3746. * test/HttpRequestTest.cc
  3747. * test/HttpResponseTest.cc
  3748. * test/RequestTest.cc
  3749. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3750. Added missing setUserHeaders call
  3751. * src/HttpRequestCommand.cc
  3752. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  3754. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  3755. waste of time because it is more likey false.
  3756. * src/FileAllocationDispatcherCommand.cc (execute)
  3757. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3758. Now HTTP status and version are a member variable of HttpHeader.
  3759. HTTP status is processed as a string, not integer.
  3760. * src/AbstractProxyResponseCommand.cc
  3761. * src/HttpConnection.cc
  3762. * src/HttpHeader.cc
  3763. * src/HttpHeader.h
  3764. * src/HttpHeaderProcessor.cc
  3765. * src/HttpHeaderProcessor.h
  3766. * src/HttpResponse.cc
  3767. * src/HttpResponse.h
  3768. * test/HttpHeaderProcessorTest.cc
  3769. * test/HttpResponseTest.cc
  3770. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3771. Added --header option. You can specify any number of additional HTTP headers
  3772. like:
  3773. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  3774. Unlike other commad-line option, you can use --header option multiple times.
  3775. * src/HelpItemFactory.cc
  3776. * src/HttpRequest.{cc, h}
  3777. * src/HttpRequestCommand.cc
  3778. * src/OptionHandlerFactory.cc
  3779. * src/OptionHandlerImpl.h
  3780. * src/option_processing.cc
  3781. * src/prefs.h
  3782. * src/usage_text.h
  3783. * test/HttpRequestTest.cc (testUserHeaders)
  3784. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. Eliminates the time lag between sequential downloads and commands in
  3786. the same RequestGroup.
  3787. In old implementation, aria2 occasionally waits 1 seconds before
  3788. executing next command or RequestGroup.
  3789. This is really a waste of time, and new implementation eliminates
  3790. this unnecessary time lag.
  3791. * src/AbstractCommand.cc
  3792. * src/AutoSaveCommand.cc
  3793. * src/CheckIntegrityCommand.cc
  3794. * src/Command.{cc, h}
  3795. * src/DownloadEngine.{cc, h}
  3796. * src/DownloadEngineFactory.cc
  3797. * src/FileAllocationCommand.cc
  3798. * src/FileAllocationDispatcherCommand.cc
  3799. * src/FillRequestGroupCommand.cc
  3800. * src/FtpInitiateConnectionCommand.cc
  3801. * src/HaveEraseCommand.cc
  3802. * src/HttpInitiateConnectionCommand.cc
  3803. * src/HttpResponseCommand.cc
  3804. * src/RealtimeCommand.cc
  3805. * src/RequestGroup.cc
  3806. * src/RequestGroupMan.cc
  3807. * src/StreamFileAllocationEntry.cc
  3808. * src/TimeBasedCommand.{cc, h}
  3809. * src/TimedHaltCommand.cc
  3810. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  3812. keyword explicit and SharedHandle's default constructor initializes
  3813. its internal obj to null, old implementation initializes it using
  3814. obj's default constructor.
  3815. To assign null, write SharedHandle<T> x(...); x.reset();
  3816. TODO: test/SharedHandleTest.cc needs more tests.
  3817. * src/SharedHandle.h
  3818. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Fixed type in man page.
  3820. * doc/aria2c.1.txt
  3821. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3822. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3823. * src/SimpleLogger.{cc, h}
  3824. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Implemented auto protocol detection.
  3826. Now you can do:
  3827. aria2c -Z http://host/file file1.torrent file2.metalink
  3828. (Note: -Z option is required for auto protcol detection.)
  3829. Then aria2c downloads 3 files simultaneously:
  3830. 1. http://host/file
  3831. 2. file1.torrent <-- read local torrent file
  3832. 3. file2.metalink <-- read local Metalink file.
  3833. Same thing goes with -i option. Assume your uris.txt contans:
  3834. http://host/file
  3835. file1.torrent
  3836. file2.metalink
  3837. Then you can do: aria2c -i uris.txt
  3838. (Note: -Z option is not needed if -i option is given.)
  3839. * src/main.cc
  3840. * src/ProtocolDetector.{cc, h}
  3841. * test/ProtocolDetectorTest.cc
  3842. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3843. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3844. installed
  3845. * src/ARC4Encryptor.h
  3846. * src/ARC4Decryptor.h
  3847. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Renamed argument from 'errno' to 'err', since errno is confused with
  3849. errno defined in errno.h.
  3850. * src/LibgcryptARC4Decryptor.h
  3851. * src/LibgcryptARC4Context.h
  3852. * src/LibgcryptDHKeyExchange.h
  3853. * src/LibgcryptARC4Encryptor.h
  3854. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3855. Rewritten choking algorithm.
  3856. * src/PeerChokeCommand.{cc, h}
  3857. * src/BtInterestedMessage.cc
  3858. * src/PeerSessionResource.{cc, h}
  3859. * src/DefaultPeerStorage.{cc, h}
  3860. * src/BtNotInterestedMessage.cc
  3861. * src/DefaultBtMessageDispatcher.{cc, h}
  3862. * src/BtMessageDispatcher.h
  3863. * src/Peer.{cc, h}
  3864. * src/BtLeecherStateChoke.{cc, h}
  3865. * src/BtSetup.cc
  3866. * src/BtSeederStateChoke.{cc, h}
  3867. * src/PeerStorage.h
  3868. * test/MockPeerStorage.h
  3869. * test/MockBtMessageDispatcher.h
  3870. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Fixed compilation error on x84-64 platform.
  3872. * src/AuthConfig.cc: Included ostream.
  3873. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Rewritten getBasename() and getDirname(), without standard library
  3875. basename(), dirname().
  3876. * src/File.cc
  3877. * test/FileTest.cc
  3878. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. Added Simplified Chinese translation. Also updated the following
  3880. translations: Polish, Dutch, German. Great thanks to all translators.
  3881. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3882. Suppress content-range error when 'Content-Range' response header
  3883. doesn't contains bytes-unit specifier 'bytes'
  3884. * src/HttpHeader.cc (getRange)
  3885. * test/HttpHeaderTest.cc
  3886. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Fixed compilation error with g++-4.3
  3888. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3889. Added missing include files for MinGW
  3890. * test/HttpHeaderProcessorTest.cc
  3891. * test/DHTRoutingTableSerializerTest.cc
  3892. * test/DHTRoutingTableDeserializerTest.cc
  3893. * test/UriListParserTest.cc
  3894. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Now download line is printed nicely with no garbage at the end of
  3896. line. I use ioctl to get the columns of terminal.
  3897. If stdout is redirected to another device, instead of carriage return,
  3898. end of line '\n' character is used. This is feature request#1909659
  3899. * src/ConsoleStatCalc.cc (calculateStat)
  3900. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Included a2time.h
  3902. * src/DHTMessageDispatcher.h
  3903. * src/DHTMessageEntry.h
  3904. * src/DHTReplaceNodeTask.h
  3905. * src/DHTMessageTracker.h
  3906. * src/Util.h
  3907. * src/CookieBox.h
  3908. * src/SocketCore.h
  3909. * src/DefaultBtMessageDispatcher.h
  3910. * src/SocketCore.cc
  3911. * src/Util.cc
  3912. * src/DHTPingTask.h
  3913. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3914. Fixed high memory footprint when DHT is enabled.
  3915. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3916. queued than it is processed and the queue is getting longer. As a
  3917. consequence, momory usage is increased.
  3918. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3919. replacement cache in DHTBucket which is described in Kademlia paper.
  3920. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3921. DHTReplaceNodeTask.
  3922. * src/DHTBucket.{h, cc}
  3923. (cacheNode): New function.
  3924. (getCachedNodes): New function.
  3925. (dropNode): Push back cached node to _nodes.
  3926. * test/DHTBucketTest.cc
  3927. (testCacheNode): New test
  3928. (testDropNode): New test
  3929. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3931. the unused 4KB memory when ssl is not used.
  3932. * src/SocketCore.cc
  3933. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3934. Added summary log for peer announce storage.
  3935. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3936. Removed cast
  3937. * src/DefaultPeerStorage.cc (addPeer)
  3938. Log exception message
  3939. * src/DHTMessageTracker.cc (handleTimeout)
  3940. Fixed casting
  3941. * test/HttpRequestTest.cc
  3942. * test/MetalinkProcessorTest.cc
  3943. * test/PieceTest.cc
  3944. * test/MetalinkEntryTest.cc
  3945. * test/SequenceTest.cc
  3946. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. * src/ParameterizedStringParser.cc (createLoop):
  3948. Removed unused variable sstep.
  3949. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3950. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. * src/Util.{h, cc}
  3952. (parseUInt): New function.
  3953. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3954. The actual range is uint32_t.
  3955. * test/UtilTest.cc
  3956. * src/ParameterizedStringParser.cc:
  3957. Use Util::parseUInt() for loop variables.
  3958. * test/ParameterizedStringParserTest.cc
  3959. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3960. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Rewritten the functions for binding port.
  3962. * src/DHTConnectionImpl.{h, cc}
  3963. * src/PeerListenCommand.{h, cc}
  3964. * src/DHTSetup.cc
  3965. * src/BtSetup.cc
  3966. * test/DHTConnectionImplTest.cc
  3967. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. type cleanup for allmost all remaining files.
  3969. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3970. Type clarification
  3971. * src/PeerSessionResource.{h, cc}
  3972. * src/DefaultPieceStorage.{h, cc}
  3973. * src/Peer.{h, cc}
  3974. * test/PeerSessionResourceTest.cc
  3975. Use div function
  3976. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3977. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Type clarification
  3979. * src/DefaultPeerStorage.{h, cc}
  3980. * test/DefaultPeerStorageTest.cc
  3981. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. Type clarification: size_t for length or size, uint64_t for file
  3983. length, off_t for file offset.
  3984. * src/DefaultBtProgressInfoFile.cc
  3985. * src/DefaultBtContext.{h, cc}
  3986. * src/DefaultBtInteractive.cc
  3987. * src/DownloadCommand.{h, cc}
  3988. * src/IteratableChunkChecksumValidator.{h, cc}
  3989. * src/SegmentMan.{h, cc}
  3990. * src/SingleFileDownloadContext.{h, cc}
  3991. * src/IteratableChecksumValidator.{h, cc}
  3992. * src/BtContext.h
  3993. * src/IteratableValidator.h
  3994. * src/DownloadContext.h
  3995. * test/SingleFileDownloadContextTest.cc
  3996. * test/DefaultBtContextTest.cc
  3997. * test/MockBtContext.h
  3998. * test/Metalink2RequestGroupTest.cc
  3999. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Type clarification: size_t for length or size, uint64_t for file
  4001. length, off_t for file offset.
  4002. * src/PiecedSegment.cc
  4003. * src/GrowSegment.h
  4004. * src/DefaultBtRequestFactory.h
  4005. * src/DefaultBtProgressInfoFile.cc
  4006. * src/UnknownLengthPieceStorage.h
  4007. * src/DefaultPieceStorage.cc
  4008. * src/UnknownLengthPieceStorage.cc
  4009. * src/DefaultBtInteractive.cc
  4010. * src/GrowSegment.cc
  4011. * src/BitfieldMan.h
  4012. * src/DownloadCommand.cc
  4013. * src/BtRequestFactory.h
  4014. * src/PiecedSegment.h
  4015. * src/DefaultPieceStorage.h
  4016. * src/Piece.cc
  4017. * src/DefaultBtRequestFactory.cc
  4018. * src/PieceStorage.h
  4019. * src/Segment.h
  4020. * src/Piece.h
  4021. * src/BitfieldMan.cc
  4022. * src/Util.cc
  4023. * test/DefaultBtProgressInfoFileTest.cc
  4024. * test/DefaultPieceStorageTest.cc
  4025. * test/MockPieceStorage.h
  4026. * test/BtRequestMessageTest.cc
  4027. * test/DefaultBtMessageDispatcherTest.cc
  4028. * test/BitfieldManTest.cc
  4029. * test/GrowSegmentTest.cc
  4030. * test/PieceTest.cc
  4031. * test/SegmentTest.cc
  4032. * test/SegmentManTest.cc
  4033. * test/DefaultBtRequestFactoryTest.cc
  4034. * test/MockBtRequestFactory.h
  4035. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. Fixed compilation error with --disable-nls
  4037. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  4038. in gettext.h causes the problem.
  4039. * src/common.h
  4040. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Removed subPiece related functions.
  4042. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  4043. * src/DefaultPieceStorage.{h, cc}
  4044. * test/PieceTest.cc
  4045. * test/DefaultPieceStorageTest.cc
  4046. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4047. Use unsigned char for data store.
  4048. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4049. Bump up version number to 0.13.0+1
  4050. * configure.ac
  4051. * Release 0.13.0+1
  4052. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Changed inactive connection timeout to 120.
  4054. To accept more mulually interested peers, disconnect peer when there
  4055. is no interest between us after certain time passed.
  4056. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  4057. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4058. Fixed the bug that aria2 only uses first dns server in resolv.conf
  4059. when compiled with async DNS support.
  4060. * src/DownloadEngine.cc
  4061. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  4062. value '10' will be a little bit short when some DNS servers are
  4063. offline and several DNS servers are tried. It should be configured
  4064. by command-line option.
  4065. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4066. Merged Ross's mingw patch.
  4067. * src/DHTRoutingTableDeserializer.cc
  4068. * src/DHTRoutingTableSerializer.cc
  4069. * src/Platform.{h, cc}
  4070. * src/timegm.h
  4071. * src/gettimeofday.h
  4072. * src/getaddrinfo.h
  4073. * src/SocketCore.h
  4074. * src/common.h
  4075. * src/inet_aton.h
  4076. * src/DownloadEngine.h
  4077. * src/gai_strerror.h
  4078. * src/a2netcompat.h
  4079. * configure.ac
  4080. * configure
  4081. * aclocal.m4
  4082. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Included missing iostream.
  4084. * test/AllTest.cc
  4085. * test/BtDependencyTest.cc
  4086. * test/BtExtendedMessageTest.cc
  4087. * test/DHTConnectionImplTest.cc
  4088. * test/DHTMessageFactoryImplTest.cc
  4089. * test/DHTMessageTrackerEntryTest.cc
  4090. * test/DHTNodeTest.cc
  4091. * test/DHTRoutingTableSerializerTest.cc
  4092. * test/DefaultBtAnnounceTest.cc
  4093. * test/DefaultBtContextTest.cc
  4094. * test/DefaultBtMessageFactoryTest.cc
  4095. * test/DefaultExtensionMessageFactoryTest.cc
  4096. * test/HandshakeExtensionMessageTest.cc
  4097. * test/HttpResponseTest.cc
  4098. * test/MetalinkProcessorTest.cc
  4099. * test/MultiFileAllocationIteratorTest.cc
  4100. * test/SocketCoreTest.cc
  4101. * test/UTPexExtensionMessageTest.cc
  4102. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Reorganized includes.
  4104. * src/NameResolver.cc
  4105. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4106. Fixed compilation error without ares/c-ares
  4107. * src/NameResolver.h:
  4108. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4109. Added a test for large file.
  4110. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  4111. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4112. Fixed the bug that file size is ignored if size > INT32_MAX
  4113. * src/SizeMetalinkParserState.cc (endElement):
  4114. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Bump up version number to 0.13.0
  4116. * configure.ac
  4117. * Release 0.13.0
  4118. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4119. Updated Makfefile.am to make 'make dist' work.
  4120. Now packaged filename is aria2c-VERSION.tar.bz2.
  4121. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  4122. Added LICENSE.OpenSSL to dist_noinst_DATA.
  4123. Large file support is now configured by configure script.
  4124. * configure.ac
  4125. Removed unsused source files
  4126. * src/
  4127. * test/
  4128. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  4129. Peer.h and BtContext.h respectively.
  4130. * src/Peer.h
  4131. * src/BtContext.h
  4132. Updated translations.
  4133. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  4134. translations. Great thanks to all translators!;)
  4135. * po/*.{po, gmo}
  4136. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4137. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  4138. statically declared sha1 MessageDigestContext.
  4139. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  4140. initialization of short-lived MessageDigestContext.
  4141. * src/MessageDigestHelper.{h, cc}
  4142. * src/main.cc
  4143. Now DownloadCommand has a reference to MessageDigestContext to avoid
  4144. the initialization of MessageDigestContext every time in validating
  4145. chunk checksum.
  4146. * src/DownloadCommand.{h, cc}
  4147. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4148. Add a file descriptor which connected to fast peer(latency<1500) to
  4149. select(). This change reduced CPU load.
  4150. * src/PeerInteractionCommand.cc
  4151. * src/DefaultBtInteractive.{h, cc}
  4152. * src/BtInteractive.h
  4153. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4154. Fixed the previous insufficient fix for possible busy loop.
  4155. * src/MSEHandshake.cc (identifyHandshakeType)
  4156. Removed unused functions.
  4157. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  4158. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4159. Fixed possible busy loop if first 20 bytes are not received for a few
  4160. minutes.
  4161. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  4162. * src/ReceiverMSEHandshakeCommand.cc
  4163. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4164. Fixed compilation error
  4165. * src/ExpatMetalinkProcessor.cc
  4166. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  4168. * src/DHTBucket.cc
  4169. Removed unnecessary cast.
  4170. * src/HandshakeExtensionMessage.cc
  4171. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  4173. is missing.
  4174. * src/OptionHandlerFactory.cc
  4175. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4176. Fixed the bug that HAVE message is not sent for a piece they are
  4177. downloaded fom http/ftp server before any BitTorrent handshake is done
  4178. with peers.
  4179. * src/DefaultBtInteractive.cc
  4180. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  4182. * src/Makefile.am
  4183. * src/Makefile.in
  4184. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4185. Updated README. Added html version of README and man page.
  4186. * README
  4187. * README.html
  4188. * readme2html: Shell script to generate README.html from README using
  4189. asciidoc.
  4190. * doc/aria2c.1.html
  4191. * doc/makeman: Added the line to generate aria2c.1.html
  4192. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4193. Fixed offset calculation.
  4194. * src/LibgcryptDHKeyExchange.h (computeSecret)
  4195. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4196. Rewritten itos and uitos using template. llitos and ullitos are
  4197. replaced with itos and uitos respectively.
  4198. * src/Util.{h, cc}
  4199. * test/UtilTest.cc
  4200. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Fixed the bug that DH key exchange sometimes fails due to bad handling
  4202. of the number of bytes required for storing public key and shared
  4203. secret.
  4204. * src/LibgcryptDHKeyExchange.h
  4205. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  4206. * src/MSEHandshake.cc
  4207. * test/DHKeyExchangeTest.cc
  4208. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Removed since they are not used.
  4210. * src/Xml2MetalinkProcessor.{h, cc}
  4211. * src/Socket.cc
  4212. * src/SegmentSplitter.{h, cc}
  4213. * test/Xml2MetalinkProcessorTest.cc
  4214. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Fixed the bug that prevents aria2 from stopping other than by pressing
  4216. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  4217. option. aria2 doesn't stop even after --seed-time is satisfied and
  4218. continues to output blank lines in the console.
  4219. * src/ReceiverMSEHandshakeCommand.cc
  4220. * src/PeerReceiveHandshakeCommand.cc
  4221. * src/PeerListenCommand.cc
  4222. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Bump up version number to 0.13.0rc
  4224. * configure.ac
  4225. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Updated man page and some usage text.
  4227. * doc/aria2c.1.txt
  4228. * src/usage_text.h
  4229. * po/*.{po, gmo}
  4230. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Updated translations. Added Finnish and Hebrew translations.
  4232. Great thanks to all translators!
  4233. * po/*.{po, gmo}
  4234. * po/LINGUAS
  4235. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. Log more detailed information about each message.
  4237. * src/DHTQueryMessage.{h, cc}
  4238. * src/DHTGetPeersMessage.{h, cc}
  4239. * src/DHTFindNodeReplyMessage.{h, cc}
  4240. * src/DHTGetPeersReplyMessage.{h, cc}
  4241. * src/DHTAnnouncePeerMessage.{h, cc}
  4242. * src/DHTResponseMessage.{h, cc}
  4243. * src/DHTFindNodeMessage.{h, cc}
  4244. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Use constants defined in prefs.h
  4246. * src/option_processing.cc
  4247. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  4249. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4250. Make room for future enchancements for IPv6 addresses.
  4251. Bump up version number of dht.dat file format to 2.
  4252. Not compatible with previous version.
  4253. * src/DHTRoutingTableSerializer.cc
  4254. * src/DHTRoutingTableDeserializer.cc
  4255. * test/DHTRoutingTableSerializerTest.cc
  4256. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Added handling for the return values from
  4258. PeerMessageUtil::createcompact().
  4259. * src/DefaultBtContext.cc (computeFastSet):
  4260. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4261. Fixed abort when peer's ip address is IPv4-mapped address.
  4262. * src/DefaultBtContext.cc (computeFastSet)
  4263. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  4264. cannot handle IPv4-mapped addresses.
  4265. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  4266. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Proper return value handling for OpenSSL functions.
  4268. * src/LibsslDHKeyExchange.h
  4269. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4270. Random bytes generation using libgcrypt and OpenSSL.
  4271. * src/DHTUtil.{h, cc}
  4272. * test/DHTUtilTest.cc
  4273. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4274. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  4275. received.
  4276. * src/DHTMessageReceiver.cc (receiveMessage)
  4277. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Fixed the bug that a return code is always 0. BUG#1897704
  4279. If error occurred during the download or there exist unfinished
  4280. downloads, aria2 returns with code 1.
  4281. * src/RequestGroupMan.{h, cc}
  4282. * src/MultiUrlRequestInfo.{h, cc}
  4283. * src/main.cc
  4284. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. IPv6 support for SocketCore class.
  4286. TODO: In SocketCore::establishConnection(), this is insufficient to
  4287. determin the failure of connect() here because the socket is
  4288. non-blocking state. The next addresses should be tried after select().
  4289. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  4290. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  4291. instead which address family independent.
  4292. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  4293. information in a compact peer format which is for IPv4 only.
  4294. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  4295. this is a spec of BitTorrent protocol.
  4296. * src/SocketCore.{h, cc}
  4297. * src/PeerMessageUtil.cc
  4298. * test/SocketCoreTest.cc
  4299. * test/PeerMessageUtilTest.cc
  4300. * test/DHTConnectionImplTest.cc
  4301. Handle IPv4-mapped addresses.
  4302. * src/DHTNode.cc: Now identity is determined by node id.
  4303. * src/DHTMessageTrackerEntry.cc
  4304. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  4305. should handle it.
  4306. * src/DHTRoutingTableDeserializer.cc
  4307. * src/DHTMessageFactoryImpl.cc
  4308. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Change the unit of --stop option from a minute to a second.
  4310. * src/usage_text.h
  4311. * src/DownloadEngineFactory.cc
  4312. * src/OptionHandlerFactory.cc
  4313. * src/message.h
  4314. * src/TimedHaltCommand.cc
  4315. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Make listening socket non-block mode.
  4317. * src/FtpConnection.cc
  4318. * src/FtpNegotiationCommand.{h, cc}
  4319. * src/PeerListenCommand.cc
  4320. Fixed the bug that cause slow ftp negotiation.
  4321. * src/FtpNegotiationCommand.{h, cc}
  4322. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4323. Added basic tag to --enable-dht, --dht-listen-port option.
  4324. * src/HelpItemFactory.cc (createHelpItems)
  4325. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4326. Updated text.
  4327. * src/usage_text.h
  4328. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4329. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  4330. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Determin _threadtholdSpeed in each constructor for
  4332. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  4333. * src/ActivePeerConnectionCommand.{h, cc}
  4334. * src/PeerReceiveHandshakeCommand.{h, cc}
  4335. * src/BtSetup.cc
  4336. * src/BtConstants.h
  4337. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Added --bt-min-crypto-level and --bt-require-crypto options.
  4339. * src/OptionHandlerFactory.cc
  4340. * src/MSEHandshake.cc
  4341. * src/HelpItemFactory.cc
  4342. * src/option_processing.cc
  4343. * src/ReceiverMSEHandshakeCommand.cc
  4344. * src/prefs.h
  4345. * src/DefaultBtAnnounce.cc
  4346. * src/InitiatorMSEHandshakeCommand.cc
  4347. * src/usage_text.h
  4348. * test/MSEHandshakeTest.cc
  4349. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Bump version number to 0.13.0b
  4351. * configure.ac
  4352. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Updated doc.
  4354. * src/MessageDigestHelper.h:
  4355. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4356. Use raw message digest as a token instead of its hexadecimal
  4357. representation.
  4358. * src/DHTTokenTracker.cc (generateToken)
  4359. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4360. Added Message Stream Encryption(MSE) support.
  4361. Currently, aria2 accepts incoming connections with Obfuscation Header
  4362. and legacy BitTorrent Header and establishes connections with
  4363. Obfuscation Header first and if failed then retry with legacy
  4364. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  4365. choose ARC4. The new option to change the default behavior is planned.
  4366. For tracker extension, "supportcrypto=1" is added statically.
  4367. * src/PeerInitiateConnectionCommand.{h, cc}
  4368. * src/PeerConnection.{h, cc}
  4369. * src/HandleRegistry.h
  4370. * src/SocketCore.h
  4371. * src/PeerReceiveHandshakeCommand.{h, cc}
  4372. * src/BtRegistry.{h, cc}
  4373. * src/PeerListenCommand.cc
  4374. * src/InitiatorMSEHandshakeCommand.{h, cc}
  4375. * src/ReceiverMSEHandshakeCommand.{h, cc}
  4376. * src/MSEHandshake.{h, cc}
  4377. * src/ARC4Encryptor.h
  4378. * src/ARC4Decryptor.h
  4379. * src/LibgcryptARC4Encryptor.h
  4380. * src/LibgcryptARC4Decryptor.h
  4381. * src/LibgcryptARC4Context.h
  4382. * src/LibsslARC4Encryptor.h
  4383. * src/LibsslARC4Decryptor.h
  4384. * src/LibsslARC4Context.h
  4385. * src/DHKeyExchange.h
  4386. * src/LibgcryptDHKeyExchange.h
  4387. * src/LibsslDHKeyExchange.h
  4388. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  4389. * test/DefaultBtAnnounceTest.cc
  4390. * test/ARC4Test.cc
  4391. * test/DHKeyExchangeTest.cc
  4392. Removed prepareForRetry() because it is not used.
  4393. * src/PeerAbstractCommand.{h, cc}
  4394. * src/PeerInteractionCommand.{h, cc}
  4395. * src/PeerInitiateConnectionCommand.{h, cc}
  4396. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4397. Added the ability to load nodes from torrent file. These nodes are
  4398. added to the routing table when downloading that torrent.
  4399. * src/BtContext.h
  4400. * src/DefaultBtContext.{h, cc}
  4401. * src/DHTSetup.cc
  4402. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  4403. hostname and port pair, and resolves all of them.
  4404. * src/NameResolver.{h, cc}: Added reset().
  4405. * src/RequestGroup.cc
  4406. * test/DefaultBtContextTest.cc
  4407. * test/MockBtContext.h
  4408. Removed assert() from DefaultBtContext and throw exception instead.
  4409. * src/DefaultBtContext.cc
  4410. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Fixed segmentation fault bug when exiting if dht is disabled.
  4412. * src/RequestGroup.cc
  4413. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Fixed typo in log message and define the message in message.h
  4415. * src/TimedHaltCommand.cc
  4416. * src/message.h
  4417. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Included RecoverableException.h to fix compilation error.
  4419. * test/DHTMessageFactoryImplTest.cc
  4420. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  4422. * test/DHTPingMessageTest.cc
  4423. * test/DHTGetPeersMessageTest.cc
  4424. * test/DHTFindNodeMessageTest.cc
  4425. * test/DHTAnnouncePeerMessageTest.cc
  4426. * test/MockDHTMessage.h
  4427. * test/MockDHTMessageFactory.h
  4428. * test/MockDHTMessageDispatcher.h: New class.
  4429. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  4431. virtual.
  4432. * src/DHTMessageDispatcher.h
  4433. * src/DHTMessageDispatcherImpl.{h, cc}
  4434. * src/DHTSetup.cc
  4435. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. Adding handling of DHT error message. Just log error message and
  4437. throw exception.
  4438. * src/DHTMessageFactoryImpl.cc
  4439. * test/DHTMessageFactoryImplTest.cc
  4440. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4441. Added handling of dynamic cast failure.
  4442. * src/DHTNodeLookupTask.cc
  4443. * src/DHTPeerLookupTask.cc
  4444. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4445. Added the ability to stop aria2 itself when given time has passed
  4446. from start. Use --stop option to specify time in minutes.
  4447. When 0 is given, this feature is disabled.
  4448. * src/OptionHandlerFactory.cc
  4449. * src/TimeBasedCommand.h: Make _interval protected scope.
  4450. * src/HelpItemFactory.cc
  4451. * src/option_processing.cc
  4452. * src/prefs.h
  4453. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  4454. before calling RequestGroupMan::fillRequestGroupFromReserver().
  4455. Without this modification, the result list shows "ERR" when aria2 is
  4456. stopped by --stop option. It should be "INPR".
  4457. * src/DownloadEngine.{h, cc}
  4458. * src/DownloadEngineFactory.cc
  4459. * src/usage_text.h
  4460. * src/TimedHaltCommand.{h, cc}: New class.
  4461. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Bootstrap through node added by port message.
  4463. Currently bootstrap is executed if the number of buckets in routing
  4464. table is 1.
  4465. * src/BtPortMessage.{h, cc}
  4466. * src/DefaultBtMessageFactory.{h, cc}
  4467. * src/PeerInteractionCommand.cc
  4468. * test/BtPortMessageTest.cc
  4469. * test/MockDHTTask.h
  4470. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. Extract the Peer class's member variables, which are only needed after
  4472. PeerInteractionCommand, into PeerSessionResource class.
  4473. This class is instantiated in PeerInteractionCommand class's ctor and
  4474. released in its dtor.
  4475. This will make Peer class lightweight and uses less memory for peers
  4476. which are not connected and wait in the queue.
  4477. * src/PeerChokeCommand.cc
  4478. * src/PeerSessionResource.{h, cc}
  4479. * src/PeerInteractionCommand.cc
  4480. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  4481. * src/DefaultBtInteractive.cc
  4482. * src/BtPieceMessage.cc
  4483. * src/BtInterestedMessage.cc
  4484. * src/BtUnchokeMessage.cc
  4485. * src/DefaultPeerStorage.{h, cc}
  4486. * src/PeerInitiateConnectionCommand.cc
  4487. * src/ActivePeerConnectionCommand.cc
  4488. * src/BtNotInterestedMessage.cc
  4489. * src/DefaultBtMessageDispatcher.cc
  4490. * src/BtChokeMessage.cc
  4491. * src/BtRequestMessage.cc
  4492. * src/Peer.{h, cc}
  4493. * src/BtRegistry.h
  4494. * src/TrackerWatcherCommand.cc
  4495. * src/PeerReceiveHandshakeCommand.cc
  4496. * test/BtExtendedMessageTest.cc
  4497. * test/BtAllowedFastMessageTest.cc
  4498. * test/BtCancelMessageTest.cc
  4499. * test/DefaultPieceStorageTest.cc
  4500. * test/BtBitfieldMessageTest.cc
  4501. * test/BtHaveMessageTest.cc
  4502. * test/BtNotInterestedMessageTest.cc
  4503. * test/BtRequestMessageTest.cc
  4504. * test/PeerSessionResourceTest.cc
  4505. * test/DefaultBtMessageDispatcherTest.cc
  4506. * test/PeerTest.cc
  4507. * test/BtInterestedMessageTest.cc
  4508. * test/BtRejectMessageTest.cc
  4509. * test/BtChokeMessageTest.cc
  4510. * test/DefaultPeerStorageTest.cc
  4511. * test/BtHaveNoneMessageTest.cc
  4512. * test/BtHaveAllMessageTest.cc
  4513. * test/DefaultExtensionMessageFactoryTest.cc
  4514. * test/BtUnchokeMessageTest.cc
  4515. * test/DefaultBtMessageFactoryTest.cc
  4516. * test/HandshakeExtensionMessageTest.cc
  4517. * test/UTPexExtensionMessageTest.cc
  4518. * test/DefaultBtRequestFactoryTest.cc
  4519. * test/BtPieceMessageTest.cc
  4520. Removed typedef PeerStats.
  4521. * src/PeerStat.h
  4522. * src/SegmentMan.cc
  4523. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Added std namespace to copy, remove_copy, back_inserter,
  4525. front_inserter.
  4526. * src/RequestGroupMan.cc
  4527. * src/DefaultPieceStorage.cc
  4528. * src/StreamFileAllocationEntry.cc
  4529. * src/BtFileAllocationEntry.cc
  4530. * src/RequestGroup.cc
  4531. * src/MetalinkEntry.cc
  4532. * src/DelegatingPeerListProcessor.cc
  4533. * src/DefaultBtRequestFactory.cc
  4534. * src/DefaultBtMessageDispatcher.cc
  4535. * src/version_usage.cc: Included <algorithm>
  4536. * src/main.cc
  4537. * src/MetalinkParserController.cc
  4538. * src/DefaultBtContext.cc
  4539. * src/DownloadEngineFactory.cc
  4540. * src/a2algo.h
  4541. Removed.
  4542. * test/StreamUriListParserTest.cc
  4543. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4544. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4545. ActivePeerConnectionCommand when it is given and
  4546. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4547. * src/ActivePeerConnectionCommand.{h, cc}
  4548. * src/BtSetup.cc
  4549. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Only add socket to DownloadEngine's select routine when peer or
  4551. localhost is unchoked and interested. This lowers CPU usage a
  4552. little bit.
  4553. * src/PeerInteractionCommand.cc
  4554. * src/PeerAbstractCommand.{h, cc}
  4555. * src/BtInteractive.h
  4556. * src/DefaultBtInteractive.{h, cc}
  4557. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Revert previous change because get_peers message is needed for
  4559. announce_peer anyway.
  4560. * src/DHTGetPeersCommand.cc
  4561. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Request peers thought DHT only when download hasn't finished.
  4563. * src/DHTGetPeersCommand.cc
  4564. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4566. * src/DHTBucketRefreshTask.{h, cc}
  4567. * src/DHTSetup.cc
  4568. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4570. standard classes.
  4571. Included string.h where mem* function are used.
  4572. Added namespace aria2.
  4573. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4574. Create directory before saving DHT routing table.
  4575. Now ios::failure is now handled properly.
  4576. * src/DHTAutoSaveCommand.cc
  4577. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Removed unnecessary cerr.
  4579. * src/DownloadEngine.cc
  4580. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Catch exception inside DHTMessageReceiver::receiveMessage().
  4582. Log unknown message.
  4583. * src/DHTMessageReceiver.{h, cc}
  4584. * src/DHTMessageFactory.h
  4585. * src/DHTMessageFactoryImpl.{h, cc}
  4586. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4587. * src/DHTInteractionCommand.cc
  4588. * src/DHTUnknownMessage.{h, cc}
  4589. * test/DHTUnknownMessageTest.cc
  4590. * test/MockDHTMessageFactory.h
  4591. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Commented out ip address comparison because a host can have multiple
  4593. ip addresses and it is hard to predict the hostname is resolved into
  4594. which one.
  4595. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4596. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4597. * po/Makefile.in: Removed since this is generated by configure.
  4598. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4599. Fixed compiler warning about redefinition of SIZE_MAX.
  4600. Use common.h instead of config.h directly here.
  4601. * src/Platform.{h, cc}
  4602. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4603. here.
  4604. * common.h
  4605. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  4606. Updated gettext related files.
  4607. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4608. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4609. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Added DHT functionality, compatible with mainline.
  4611. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4612. You may need to specify entry point to DHT network using
  4613. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4614. Use --dht-listen-port to specify port number. Make sure that your
  4615. firewall configuration can pass through UDP traffic to the port.
  4616. The routing table is saved in $HOME/.aria2/dht.dat.
  4617. * src/DHT*
  4618. * src/BNode.{h, cc}
  4619. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4620. particular torrent.
  4621. * src/Data.cc: Rewritten ctor.
  4622. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4623. --dht-entry-point.
  4624. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4625. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4626. ends, remove BtContext from DHTPeerAnnounceStorage.
  4627. * src/BtPortMessage.{h, cc}: Rewritten.
  4628. * src/message.h
  4629. * src/OptionHandlerImpl.cc
  4630. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  4631. --dht-entry-point.
  4632. * src/Dictionary.{h, cc} (remove): New function.
  4633. * src/prefs.h
  4634. * src/DefaultBtMessageFactory.h
  4635. * src/BtHandshakeMessage.cc
  4636. * src/ActivePeerConnectionCommand.cc
  4637. * src/SocketCore.{h, cc}: Added datagram socket support.
  4638. * src/DefaultBtMessageFactory.cc
  4639. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  4640. Create DHT commands.
  4641. * src/BtMessageFactory.h
  4642. * src/PeerMessageUtil.{h, cc}
  4643. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4644. Fixed the bug that log file is not written when configuration file doesn't exist.
  4645. This is caused by using Logger class before LogFactory is not configured.
  4646. BUG #1875079
  4647. * src/option_processing.cc
  4648. Warning message "configuration doesn't exist" is only printed when --conf is
  4649. given.
  4650. * src/option_processing.cc
  4651. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  4653. ShaVisitor is now deprecated and slated to be removed.
  4654. * src/DefaultBtContext.cc
  4655. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Externalize message to message.h
  4657. * src/Platform.cc
  4658. * src/message.h
  4659. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4660. Set default domain and default path to cookie.
  4661. * src/HttpResponse.cc
  4662. * src/CookieBox.{h, cc}
  4663. * src/CookieParser.{h, cc}
  4664. * test/CookieParserTest.cc
  4665. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4666. Added --no-conf and --conf-path command-line option.
  4667. --no-conf option disables loading aria2.conf file.
  4668. --conf-path option changes the configuration file path. The default
  4669. file path is $HOME/.aria2/aria2.conf
  4670. Added a warning message when the configuration file is not found.
  4671. * src/HelpItemFactory.cc
  4672. * src/option_processing.cc
  4673. * src/prefs.h
  4674. * src/usage_text.h
  4675. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4676. Added the message to inform users that other help categories are
  4677. available in -h option.
  4678. * src/version_usage.cc
  4679. * src/TagContainer.{h, cc}
  4680. * test/TagContainerTest.cc
  4681. * src/TaggedItem.{h, cc}
  4682. * test/TaggedItemTest.cc
  4683. * src/HelpItem.h
  4684. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  4686. from PiecedSegment's ctor.
  4687. Previously Piece::getAllMissingBlockIndexes() is called from
  4688. PiecedSegment() but it is rather expensive since only first element is
  4689. used.
  4690. * src/PiecedSegment.cc
  4691. * src/Piece.{h, cc}
  4692. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4693. Rewritten get*Missing*Index functions. Now no need to allocate memory
  4694. each time these functions are called.
  4695. * src/BitfieldMan.{h, cc}
  4696. * test/BitfieldManTest.cc
  4697. * src/array_fun.h
  4698. * test/array_funTest.cc
  4699. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  4700. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  4701. filtered. Removed unnecessary cast to int32_t.
  4702. * src/BitfieldMan.{h, cc}
  4703. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4704. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  4705. payload length(4bytes) are received. This happens because lenbufLength
  4706. is not updated in this particular case and successive call of
  4707. receiveMessage() overwrites payload length with bytes recieved which
  4708. are payload body.
  4709. * src/PeerConnection.{h, cc}
  4710. * src/message.h
  4711. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4712. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  4713. peer if there are peers that have same ipaddr and port.
  4714. I've experiened segmentation fault and "pure virtual function was
  4715. called" error.
  4716. * src/Peer.h
  4717. * test/PeerTest.cc
  4718. * src/DefaultPeerStorage.cc
  4719. * test/DefaultPeerStorageTest.cc
  4720. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Removed a call to isPowerOf() because it is no longer necessary here
  4722. and a request block is not always power of 2.
  4723. BUG#1866924
  4724. * src/PeerMessageUtil.cc (checkLength)
  4725. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4726. Fixed the bug that always first found Segment is removed from
  4727. usedSegmentEntries. Removed unused functions.
  4728. * src/SegmentMan.{h, cc}
  4729. * test/SegmentManTest.cc
  4730. Fixed the bug that ServerHost is not removed.
  4731. * src/RequestGroup.cc
  4732. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4733. Fixed the bug that SegmentMan::completeSegment() is not called
  4734. even if Segment is complete when --lowest-speed-limit is enabled.
  4735. BUG#1864525
  4736. * src/DownloadCommand.{h, cc}
  4737. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4738. Fixed: hash algorithm 'sha1' is always used.
  4739. * src/DownloadCommand.cc (validatePieceHash)
  4740. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Added --enable-peer-exchange command-line option.
  4742. * src/OptionHandlerFactory.cc
  4743. * src/HelpItemFactory.cc
  4744. * src/option_processing.cc
  4745. * src/usage_text.h
  4746. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4747. Move extension from BtRuntime to ExtensionMessageFactory, because
  4748. extension can be specified per peer, not per torrent.
  4749. * src/DefaultBtInteractive.cc
  4750. * src/BtRuntime.h
  4751. * src/ExtendedMessagingAware.h
  4752. * src/ExtensionMessageFactory.h
  4753. * src/DefaultExtensionMessageFactory.cc
  4754. * test/DefaultExtensionMessageFactoryTest.cc
  4755. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4756. Added categorized option help. Specify category using --help option.
  4757. Also added the ability to search options in forward match.
  4758. * src/HelpItem.{h, cc}
  4759. * test/HelpItemTest.cc
  4760. * src/HelpItemFactory.{h, cc}
  4761. * src/TagContainer.{h, cc}
  4762. * test/TagContainerTest.cc
  4763. * src/option_processing.cc
  4764. * src/prefs.h
  4765. * src/TaggedItem.{h, cc}
  4766. * test/TaggedItemTest.cc
  4767. * src/version_usage.cc
  4768. * src/help_tags.h
  4769. * src/usage_text.h
  4770. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4771. Fixed segmentation fault when bad torrent metainfo is parsed.
  4772. Added dynamic_cast properly to detect the misconfiguration of metainfo
  4773. and then throw exception or skip it.
  4774. * src/DefaultBtContext.{h, cc}
  4775. * test/DefaultBtContextTest.cc
  4776. * src/AnnounceList.cc
  4777. * src/CompactPeerListProcessor.cc
  4778. * src/message.h
  4779. * src/DefaultBtAnnounce.{h, cc}
  4780. * test/DefaultBtAnnounceTest.cc
  4781. * src/BencodeVisitor.cc
  4782. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Added missing "B"(=Byte). So now the message looks like this:
  4784. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  4785. * src/message.h (MSG_SHARE_RATIO_REPORT)
  4786. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Show the seed ratio after torrent downloads.
  4788. For example, after torrent download completed and --seed-time and
  4789. --seed-ratio conditions are fulfilled, following message is printed
  4790. right after "Download complete: .....":
  4791. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  4792. * src/RequestGroupMan.cc
  4793. * src/RequestGroup.{h, cc}
  4794. * src/message.h
  4795. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Remove a defunct control file. A defunct control file means that while
  4797. it exists, but the corresponding download file is missing.
  4798. After its removal, a download restarts from the beginning.
  4799. * src/RequestGroup.cc
  4800. * src/message.h
  4801. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Allocate bitfield in Peer when it is really used. More specifically,
  4803. bitfield in Peer is allocated after the connection is established and
  4804. deallocated when the connection is dropped.
  4805. Since 2 parameters(piece length and total length) was removed from the
  4806. constructor of Peer class, many test classes were modified accordingly.
  4807. See svn log for more detailed information.
  4808. * src/PeerInteractionCommand.cc
  4809. * src/CompactPeerListProcessor.cc
  4810. * src/Peer.cc
  4811. * src/DefaultPeerListProcessor.cc
  4812. * src/PeerListenCommand.cc
  4813. * src/PeerReceiveHandshakeCommand.cc
  4814. Fixed memory leak
  4815. * src/Piece.cc
  4816. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4817. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  4818. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  4819. command-line options.
  4820. * src/option_processing.cc
  4821. * src/ActivePeerConnectionCommand.cc
  4822. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Send have message to peer if it already has the piece.
  4824. * src/BtHaveMessage.{h, cc}
  4825. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4826. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4827. port.
  4828. * src/DefaultPeerStorage.{h, cc}
  4829. * test/DefaultPeerStorageTest.cc
  4830. * src/HandshakeExtensionMessage.cc
  4831. * test/HandshakeExtensionMessageTest.cc
  4832. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4833. * src/PeerStorage.h
  4834. * test/MockPeerStorage.h
  4835. * src/PeerListenCommand.cc
  4836. * src/PeerReceiveHandshakeCommand.cc
  4837. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Added --metalink-enable-unique-protocol option.
  4839. * src/Metalink2RequestGroup.cc
  4840. * src/option_processing.cc
  4841. * src/prefs.h
  4842. * src/version_usage.cc
  4843. * doc/aria2c.1.txt
  4844. * doc/aria2c.1
  4845. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Allow a peer in incomingPeer to be added peers.
  4847. * src/DefaultPeerStorage.cc
  4848. * test/DefaultPeerStorageTest.cc
  4849. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4851. I could reproduce this bug in following procedure:
  4852. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4853. 2. Restart aria2.
  4854. 3. You see the download stopped around 99%.
  4855. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4856. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4857. If timeout is reached, then _nextCommand is unused and it may contains
  4858. segments and they won't be canceled. Actually, timeout is not needed
  4859. here because if the server dropped connection, then retry is made.
  4860. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Added uTorrent compatible Peer Exchange.
  4862. * src/BencodeVisitor.{h, cc}
  4863. * test/BencodeVisitorTest.cc
  4864. * src/BtConstants.h
  4865. * src/BtContext.h: Added 'private' flag.
  4866. * src/BtExtendedMessage.{h, cc}
  4867. * test/BtExtendedMessageTest.cc
  4868. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4869. reserved field.
  4870. * test/BtHandshakeMessageTest.cc
  4871. * src/BtMessageFactory.h
  4872. * src/BtRegistry.h
  4873. * src/BtRuntime.h: This class holds default extension message IDs for
  4874. aria2. By default, aria2 uses ID 8 for ut_pex.
  4875. * src/DefaultBtContext.cc
  4876. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4877. When it is true, aria2 enables ut_pex. This value is set by
  4878. PeerInteractionCommand.
  4879. * src/DefaultBtMessageFactory.{h, cc}
  4880. * test/DefaultBtMessageFactoryTest.cc
  4881. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4882. handling to DefaultBtInteractive class.
  4883. * src/DefaultExtensionMessageFactory.{h, cc}
  4884. * test/DefaultExtensionMessageFactoryTest.cc
  4885. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4886. the container(peers and incomingPeers. The equality is determined by
  4887. Peer::id).
  4888. * test/DefaultPeerStorageTest.cc
  4889. * src/ExtensionMessage.h
  4890. * test/MockExtensionMessage.h
  4891. * src/ExtensionMessageFactory.h
  4892. * test/MockExtensionMessageFactory.h
  4893. * src/HandshakeExtensionMessage.{h, cc}
  4894. * test/HandshakeExtensionMessageTest.cc
  4895. * src/MetaEntry.h
  4896. * src/Peer.{h, cc}
  4897. * src/PeerInteractionCommand.cc
  4898. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4899. addIncomingPeer.
  4900. * src/PeerMessageUtil.{h, cc}
  4901. * src/PeerObject.h
  4902. * src/UTPexExtensionMessage.{h, cc}
  4903. * test/UTPexExtensionMessageTest.cc
  4904. * src/message.h
  4905. * src/prefs.h
  4906. Fixed the bug that returns incomplete data when it contains null
  4907. character. A convenient constructor was also added.
  4908. * src/Data.{h, cc}
  4909. Rewritten.
  4910. * src/CompactPeerListProcessor.cc
  4911. Fixed typos.
  4912. * src/message.h
  4913. * src/MetaFileUtil.cc
  4914. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4915. Added "Status Legend" label to the explanation text of 'stat' in
  4916. download result and moved it to the last. BUG#1848214
  4917. * src/RequestGroupMan.cc
  4918. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4920. * src/Makefie.am
  4921. * test/Makefile.am
  4922. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4923. Fixed the bug that prevents aria2 from loading cookie file when expire
  4924. value is greater than 2^31-1. BUG#1851066
  4925. * src/CookieBoxFactory.cc
  4926. * test/CookieBoxFactoryTest.cc
  4927. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4928. Fixed possible memory leak when an exception is thrown.
  4929. * src/XML2SAXMetalinkProcessor.cc
  4930. Added Expat support. If both libxml2 and Expat are installed, then
  4931. libxml2 is used by default.
  4932. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4933. ExpatMetalinkProcessor according to the configuration.
  4934. * src/ExpatMetalinkProcessor.{h, cc}
  4935. * src/main.cc: Removed libxml2 specific header and init/free function.
  4936. * src/MetalinkProcessorFactory.{h, cc}
  4937. * src/MetalinkHelper.cc
  4938. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4939. * src/MetalinkProcessor.h
  4940. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4941. MetalinkProcessorTest is used instead.
  4942. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4943. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4944. MetalinkProcessorFactory::newInstance().
  4945. * m4/libexpat.m4
  4946. * configure.ac: Added configuration options for libexpat.
  4947. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Disabled -s option in metalink download.
  4949. * src/Metalink2RequestGroup.cc
  4950. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. If several protocols are available for a mirror in metalink file,
  4952. aria2 now use one of them. --metalink-preferred-protocol option was
  4953. added to specify the preference of protocol.
  4954. * src/AbstractCommand.cc
  4955. * src/OptionHandlerFactory.cc
  4956. * src/ServerHost.{h, cc}
  4957. * src/Metalink2RequestGroup.cc
  4958. * src/RequestGroup.{h, cc}
  4959. * test/RequestGroupTest.cc
  4960. * src/option_processing.cc
  4961. * src/prefs.h
  4962. * src/HttpResponseCommand.cc
  4963. * src/MetalinkResource.{h, cc}
  4964. * src/FtpNegotiationCommand.cc
  4965. * src/MetalinkEntry.{h, cc}
  4966. * src/MetalinkEntryTest.cc
  4967. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Code cleanup and added debug log.
  4969. * src/PeerConnection.cc
  4970. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4971. Compiler error fix: applied the patch by Tiziano Mueller
  4972. * src/RequestGroup.cc
  4973. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4975. in stopped and completed event.
  4976. * src/AnnounceList.{h, cc}
  4977. * test/AnnounceListTest.cc
  4978. * src/DefaultBtAnnounce.cc
  4979. * test/DefaultBtAnnounceTest.cc
  4980. Sorted URLs.
  4981. * test/Metalink2RequestGroupTest.cc
  4982. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Removed unnecessary string copy. Updated doc and corrected indentation.
  4984. * src/Base64.cc
  4985. Fixed compilation warnings
  4986. * test/DataTest.cc
  4987. * test/HttpRequestTest.cc
  4988. * test/MetaFileUtilTest.cc
  4989. * test/RequestTest.cc
  4990. * Release 0.12.0
  4991. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Updated translations
  4993. * po/{de,fr,ja,nl,ru}.po
  4994. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4995. translations. Many thanks to translators.
  4996. * po/{ca,es,it,pt_BR,sv}.po
  4997. * po/LINGUAS
  4998. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Added a notice about URL
  5000. * src/version_usage.cc
  5001. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  5002. Fixed the bug#1845750; CTRL+C does not stop torrent.
  5003. aria2 repeatedly sends stopped request when tracker returns error code.
  5004. * src/AnnounceList.cc
  5005. * test/AnnounceListTest.cc
  5006. * src/AnnounceTier.h
  5007. Added a message when ctrl-c is hit.
  5008. Now second ctrl-c is also handled in signal handler.
  5009. * src/RequestGroupMan.{h, cc}
  5010. * src/RequestGroup.{h, cc}
  5011. * src/MultiUrlRequestInfo.cc
  5012. * src/DownloadEngine.cc
  5013. * src/TrackerWatcherCommand.cc
  5014. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. Code cleanup
  5016. * src/Base64.cc (encode)
  5017. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Changed Direct/IO enable/disable procesure in file allocation routine.
  5019. * src/SingleFileAllocationIterator.cc
  5020. (SingleFileAllocationIterator):
  5021. Disable directIO if offset is not multiple of 512.
  5022. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  5023. * src/MultiFileAllocationIterator.cc (allocateChunk):
  5024. Enable created SingleFileAllocationIterator's directIO.
  5025. * src/FileAllocationEntry.cc
  5026. (FileAllocationEntry): Enable directIO here.
  5027. (~FileAllocationEntry): Disable directIO here.
  5028. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  5030. * src/Peer.{h, cc}
  5031. * src/DefaultPieceStorage.cc
  5032. * test/DefaultPieceStorageTest.cc
  5033. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Rewritten direct I/O support routine
  5035. * src/SingleFileAllocationIterator.cc
  5036. * src/MultiDiskAdaptor.{h, cc}
  5037. * src/ByteArrayDiskWriter.h
  5038. * src/AbstractSingleDiskAdaptor.h
  5039. * src/AbstractDiskWriter.cc
  5040. * src/DefaultPieceStorage.cc
  5041. * src/DiskWriter.h
  5042. * src/BinaryStream.h
  5043. * src/IteratableChunkChecksumValidator.cc
  5044. * src/IteratableChecksumValidator.cc
  5045. * src/CheckIntegrityEntry.cc
  5046. * src/FileAllocationEntry.cc
  5047. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Fixed typo
  5049. * src/version_usage.cc
  5050. Updated doc
  5051. * doc/aria2c.1.txt
  5052. * doc/aria2c.1
  5053. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Fixed compile error without message digest support.
  5055. * src/FileMetalinkParserState.cc
  5056. * src/MetalinkParserController.{h, cc}
  5057. * test/XML2SAXMetalinkProcessorTest.cc
  5058. * test/MetalinkParserControllerTest.cc
  5059. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Enable direct I/O support in checksum checking.
  5061. * src/IteratableChunkChecksumValidator.{h, cc}
  5062. * test/IteratableChunkChecksumValidatorTest.cc
  5063. * src/CheckIntegrityEntry.cc
  5064. * src/PieceHashCheckIntegrityEntry.cc
  5065. * src/IteratableChecksumValidator.{h, cc}
  5066. * src/BtCheckIntegrityEntry.cc: Added doc.
  5067. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5068. Added --allow-piece-length-change option.
  5069. * src/DefaultBtProgressInfoFile.cc
  5070. * test/DefaultBtProgressInfoFileTest.cc
  5071. * src/OptionHandlerFactory.cc
  5072. * src/option_processing.cc
  5073. * src/prefs.h
  5074. * src/version_usage.cc
  5075. * doc/aria2c.1.txt
  5076. * doc/aria2c.1
  5077. Fixed: duplicated result entry appears when exception is thrown in
  5078. RequestGroup::createInitiateConnectionCommand().
  5079. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  5080. Add RequestGroup to _requestGroup after RequetGroup::
  5081. createInitiateConnectionCommand() succeeds.
  5082. Externalized message
  5083. * src/XML2SAXMetalinkProcessor.cc
  5084. * src/message.h
  5085. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. Forced download abort when received negative response from http/ftp
  5087. server.
  5088. * src/HttpResponseCommand.cc
  5089. * src/FtpNegotiationCommand.cc
  5090. * src/HttpResponse.cc
  5091. * src/FtpConnection.cc
  5092. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  5094. the predecessor, Xml2MetalinkParser class.
  5095. I tested them against 94KB metalink file with 1234 chunk checksums.
  5096. The new one parsed it in 22msec, while it took 6000msec with old one.
  5097. * src/XML2SAXMetalinkProcessor.{h, cc}
  5098. * test/XML2SAXMetalinkProcessorTest.cc
  5099. * src/MetalinkParserController.{h, cc}
  5100. * test/MetalinkParserControllerTest.cc
  5101. * src/MetalinkParserState.h: Also added 16 subclasses.
  5102. * src/main.cc
  5103. * src/Metalink2RequestGroup.cc
  5104. * src/MetalinkHelper.cc
  5105. * src/MetalinkEntry.cc
  5106. * src/ChunkChecksum.h
  5107. Rewritten Base64 class for better performance.
  5108. * src/Base64.{h, cc}
  5109. * test/Base64Test.cc
  5110. * src/HttpRequest.cc
  5111. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. Fixed the bug#1841757: aria2 will connect to server to only get
  5113. file size.
  5114. * src/StreamFileAllocationEntry.cc
  5115. * src/option_processing.cc
  5116. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  5117. downloads.
  5118. * src/FtpNegotiationCommand.cc
  5119. Suppressed wrong message when finding PreDownloadHandler
  5120. * src/RequestGroup.cc
  5121. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5122. Updated usage
  5123. * src/version_usage.cc
  5124. Updated man page
  5125. * doc/aria2c.1.txt
  5126. * doc/aria2c.1
  5127. Updated po files
  5128. * po/aria2c.pot
  5129. * po/*.po
  5130. * po/*.gmo
  5131. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Eliminated g++-4.2 warning
  5133. * src/DownloadHandlerConstants.{h, cc}
  5134. * src/Util.cc
  5135. * test/MetaFileUtilTest.cc
  5136. * test/PStringBuildVisitorTest.cc
  5137. Fixed bug: --check-integrity doesn't work for multi file torrent.
  5138. * src/RequestGroup.cc
  5139. * src/BtCheckIntegrityEntry.cc
  5140. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Fixed a2io.h
  5142. * src/a2io.h
  5143. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Added direct I/O support. The current implementation uses O_DIRECT,
  5145. which is not posix standard and is tested on linux 2.6.21.
  5146. Currently only file allocation uses direct I/O.
  5147. * src/SingleFileAllocationIterator.{h, cc}
  5148. * test/SingleFileAllocationIteratorTest.cc
  5149. * src/MultiFileAllocationIterator.{h, cc}
  5150. * test/MultiFileAllocationIteratorTest.cc
  5151. * src/BinaryStream.h
  5152. * src/DiskWriter.h
  5153. * src/AbstractDiskWriter.{h, cc}
  5154. * src/ByteArrayDiskWriter.h
  5155. * src/DiskAdaptor.h
  5156. * src/AbstractSingleDiskAdaptor.{h, cc}
  5157. * src/MultiDiskAdaptor.{h, cc}
  5158. * src/FileAllocationEntry.cc
  5159. * src/Util.{h, cc}
  5160. * src/OptionHandlerFactory.cc
  5161. * src/prefs.h
  5162. * src/version_usage.cc
  5163. * src/option_processing.cc
  5164. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  5165. handleException.
  5166. * src/MultiFileAllocationIterator.cc
  5167. Added EINTR handling
  5168. * src/SocketCore.cc
  5169. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5170. Updated usage
  5171. * src/version_usage.cc
  5172. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Applied Ross's patch for MinGW port.
  5174. * src/DownloadEngine.h
  5175. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5176. Set Content-Type to SingleFileDownloadContext when http response is
  5177. received.
  5178. * src/HttpResponseCommand.cc
  5179. * src/HttpResponse.{h, cc}
  5180. * test/HttpResponseTest.cc
  5181. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. Rewritten to add content-type support.
  5183. * src/DownloadHandler.{h, cc}
  5184. * src/BtPostDownloadHandler.{h, cc}
  5185. * test/BtPostDownloadHandlerTest.cc
  5186. * src/MetalinkPostDownloadHandler.{h, cc}
  5187. * test/MetalinkPostDownloadHandlerTest.cc
  5188. * src/PostDownloadHandler.{h, cc}
  5189. * src/DownloadHandlerConstants.{h, cc}
  5190. * src/RequestGroup.cc
  5191. * src/HttpResponseCommand.cc
  5192. * src/FtpNegotiationCommand.cc
  5193. * src/SingleFileDownloadContext.{h, cc}
  5194. * src/RequestGroup.h
  5195. * src/RequestGroupCriteria.h
  5196. * src/ContentTypeRequestGroupCriteria.h
  5197. Added 'mem' option value for --follow-metalink, --follow-torrent.
  5198. If it is give, metalink/torrent file is not written to the disk, but
  5199. just is kept in memory. Parsing is occurred on memory.
  5200. * src/MetalinkHelper.{h, cc}
  5201. * src/MetalinkProcessor.h
  5202. * src/Xml2MetalinkProcessor.{h, cc}
  5203. * test/Xml2MetalinkProcessorTest.cc
  5204. * src/DownloadHandlerFactory.{h, cc}
  5205. * test/DownloadHandlerFactoryTest.cc
  5206. * src/PreDownloadHandler.{h, cc}
  5207. * src/OptionHandlerFactory.cc
  5208. * src/DefaultBtContext.{h, cc}
  5209. * test/DefaultBtContextTest.cc
  5210. * src/version_usage.cc
  5211. * src/Metalink2RequestGroup.{h, cc}
  5212. * src/RequestGroup.{h, cc}
  5213. * src/a2functional.h
  5214. * test/a2functionalTest.cc
  5215. * src/MemoryBufferPreDownloadHandler.{h, cc}
  5216. * src/OptionHandlerImpl.h
  5217. * src/prefs.h
  5218. * src/Util.{h, cc}
  5219. * test/UtilTest.cc
  5220. Keep DownloadResult rather than RequestGroup after downloads to reduce
  5221. memory usage.
  5222. * src/RequestGroupMan.{h, cc}
  5223. * src/DownloadEngine.cc
  5224. * src/BtDependency.{h, cc}: Changed the type of dependee from
  5225. WeakHandle to SharedHandle because WeakHandle could be null.
  5226. * src/RequestGroup.{h, cc}
  5227. * src/DownloadEngineFactory.cc
  5228. * src/DownloadResult.h
  5229. Set totalLength after download finished
  5230. * src/UnknownLengthPieceStorage.{h, cc}
  5231. Keep torrent file specified in metalink in memory.
  5232. * src/Metalink2RequestGroup.cc
  5233. * src/BtDependency.cc
  5234. * src/TrueRequestGroupCriteria.h
  5235. Fixed the bug: seekg is used where seekp should be used.
  5236. * src/ByteArrayDiskWriter.cc
  5237. * test/ByteArraydiskWriterTest.cc
  5238. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5239. Fixed syntax error
  5240. * test/SequenceTest.cc
  5241. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5242. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5243. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  5244. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5245. * src/RequestGroup.cc (downloadFinishedByFileLength)
  5246. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5247. Added the check to see whether ares_host_callback accepts timeouts
  5248. with c-ares; only c-ares 1.5.0 or newer accepts it.
  5249. * src/NameResolver.{h, cc}
  5250. * m4/libcares.m4
  5251. * configure.ac: Set C++ for language choice.
  5252. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5253. Fixed: compilation fails without c-ares/ares
  5254. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  5255. Generate http/ftp commands only when download is incomplete.
  5256. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  5257. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Corrected typo. Examples are removed since they are available in man
  5259. page.
  5260. * src/version_usage.cc
  5261. Updated man page.
  5262. * doc/aria2c.1
  5263. * doc/aria2c.1.txt
  5264. * doc/makeman: Commented out sed command.
  5265. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5266. Throw DlAbortEx when a remote file is not found.
  5267. * src/HttpResponse.cc
  5268. * src/FtpNegotiationCommand.cc
  5269. * src/message.h
  5270. Overwrite an existing file if --allow-overwrite=true is given.
  5271. * src/RequestGroup.cc
  5272. Removed unused functions
  5273. * src/AbstractCommand.h
  5274. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Removed 'extern' from 'extern typedef ...' in src/*.h
  5276. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Updated usage
  5278. * src/version_usage.cc
  5279. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Trim announce URL
  5281. * src/DefaultBtContext.cc
  5282. * test/ShaVisitorTest.cc
  5283. Trim argument s. Give trimed s to exception constructor.
  5284. * src/Util.cc (parseInt)(parseLLInt)
  5285. * test/UtilTest.cc
  5286. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. Set precision back to 1.
  5288. * src/ConsoleStatCalc.cc (calculateStat)
  5289. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. Replaced strtol with Util::parseInt
  5291. * src/ChunkedEncoding.cc
  5292. * src/HttpConnection.cc
  5293. * src/CookieBoxFactory.cc
  5294. * src/ParameterizedStringParser.cc
  5295. * src/Util.cc
  5296. * test/UtilTest.cc
  5297. * test/OptionHandlerTest.cc
  5298. * src/Request.cc
  5299. Throw exception when empty string is given. The message for exception
  5300. changed.
  5301. * src/Util.cc (parseInt)(parseLLInt)
  5302. * src/message.h
  5303. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Set precision to 2 because share ratio is rounded into 1.0 if precision
  5305. set to 1.
  5306. * src/ConsoleStatCalc.cc (calculateStat)
  5307. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Preallocate non-requested file which is adjacent forward to requested
  5309. file('requested' files means the files given in --select-file option)
  5310. if they share a same piece.
  5311. This fixes long pause in the file system which doesn't support sparse
  5312. files like FAT32 while downloading.
  5313. * src/MultiFileAllocationIterator.{h, cc}
  5314. * test/MultiFileAllocationIteratorTest.cc
  5315. * src/FileEntry.{h, cc}
  5316. Removed unused _option.
  5317. * src/MultiDiskAdaptor.h
  5318. * test/MultiDiskAdaptorTest.cc
  5319. * src/DefaultPieceStorage.cc
  5320. Set the default value of --seed-ratio to 1.0.
  5321. If 0.0 is given, then seeding continues regardless of share ratio.
  5322. * src/version_usage.cc
  5323. * src/option_processing.cc
  5324. * src/BtSetup.cc
  5325. * doc/aria2c.1.txt
  5326. * doc/aria2c.1
  5327. Fixed: Selective download is not working in BitTorrent
  5328. * src/RequestGroup.cc
  5329. Introduced Sequence class. Use this instead of Util::unfoldRange()
  5330. * src/PieceStorage.h
  5331. * test/MockPieceStorage.h
  5332. * src/UnknownLengthPieceStorage.h
  5333. * src/DefaultPieceStorage.{h, cc}
  5334. * src/Metalink2RequestGroup.cc
  5335. * src/RequestGroup.cc
  5336. * src/Sequence.h
  5337. * test/SequenceTest.cc
  5338. * src/IntSequence.h
  5339. * src/message.h
  5340. * src/Util.{h, cc}
  5341. * test/UtilTest.cc
  5342. Added new function 'parse' to catch exception thrown by subclass's
  5343. parseArg
  5344. * src/OptionHandler.h
  5345. * src/OptionParser.cc
  5346. * src/NameMatchOptionHandler.h
  5347. * src/OptionHandlerImpl.h
  5348. * test/OptionHandlerTest.cc
  5349. Added IntegerRangeOptionHandler. Used for --listen-port and
  5350. --select-file. Now --listen-port accepts range of port.
  5351. * src/OptionHandlerFactory.cc
  5352. * src/version_usage.cc
  5353. * src/OptionHandlerImpl.h
  5354. * src/option_processing.cc
  5355. * src/BtSetup.cc
  5356. * src/PeerListenCommand.{h, cc}
  5357. * doc/aria2c.1.txt
  5358. * doc/aria2c.1
  5359. Implemented operator< for Exception class to provide easy way to print
  5360. exception stack trace.
  5361. * src/Exception.{h, cc}
  5362. * src/main.cc
  5363. * src/option_processing.cc
  5364. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. * src/version_usage.cc
  5366. (showVersion): Reworked.
  5367. (showUsage): Added examples.
  5368. Removed Hint for total length and file name.
  5369. * src/Metalink2RequestGroup.cc
  5370. * src/RequestGroup.{h, cc}
  5371. * src/HttpResponseCommand.cc
  5372. * src/FtpNegotiationCommand.cc
  5373. Now --follow-torrent and --follow-metalink option work properly.
  5374. * src/RequestGroup.cc
  5375. Updated man page
  5376. * doc/aria2c.1.txt
  5377. * doc/aria2c.1
  5378. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Removed.
  5380. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  5381. Use Segment::operator==()
  5382. * src/HttpConnection.cc
  5383. * src/Segment.h
  5384. Updated usage
  5385. * src/version_usage.cc
  5386. Added EINTR treatment.
  5387. * src/SocketCore.cc
  5388. * src/AbstractDiskWriter.cc
  5389. Rewritten.
  5390. * src/Util.cc (rangedFileCopy)
  5391. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Fixed typo.
  5393. * src/version_usage.cc
  5394. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Implemented. Now -c option works fine.
  5396. * src/DefaultPieceStorage.cc (markPiecesDone)
  5397. * test/DefaultPieceStorageTest.cc
  5398. Removed.
  5399. * src/SegmentMan.{h, cc}
  5400. (markAllPiecesDone)
  5401. (markPieceDone)
  5402. Synchronized po files with
  5403. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  5404. * src/fr.po
  5405. * src/ru.po
  5406. * src/de.po
  5407. * src/ja.po
  5408. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Added ifdef and some modifications to compile without BitTorrent,
  5410. Metalink, MessageDigest
  5411. support.
  5412. * src/PieceHashCheckIntegrityEntry.cc
  5413. * src/MetalinkEntry.h
  5414. * src/version_usage.cc
  5415. * src/main.cc
  5416. * src/DownloadEngine.{h, cc}
  5417. * src/Metalink2RequestGroup.cc
  5418. * src/Peer.cc
  5419. * src/RequestGroup.cc
  5420. * src/MetalinkHelper.cc
  5421. * test/DefaultPieceStorageTest.cc
  5422. * test/MetalinkPostDownloadHandlerTest.cc
  5423. * test/Metalink2RequestGroupTest.cc
  5424. Hide TOTAL SPD when all downloads complete.
  5425. * src/ConsoleStatCalc.cc
  5426. Log target system information.
  5427. * src/main.cc
  5428. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Now --metalink-location accepts a comma-deliminated list of locations.
  5430. * src/MetalinkEntry.{h, cc}
  5431. * test/MetalinkEntryTest.cc
  5432. * src/version_usage.cc
  5433. * src/Metalink2RequestGroup.cc
  5434. * src/Xml2MetalinkProcessor.cc
  5435. * test/Xml2MetalinkProcessorTest.cc
  5436. * doc/aria2c.1.txt
  5437. * doc/aria2c.1
  5438. * src/Util.cc (toUpper)(toLower): Rewritten.
  5439. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Added the ability to detect duplicate download entry which is about to
  5441. download the same file other RequestGroup is downloading.
  5442. * src/RequestGroup.cc
  5443. * src/HttpResponseCommand.cc
  5444. * src/FtpNegotiationCommand.cc
  5445. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Recalculates download progress when loading a control file,
  5447. if the piece length of DownloadContext is different from the one saved
  5448. in the control file. Currently in-flight pieces are ignored.
  5449. * src/DefaultBtProgressInfoFile.cc
  5450. * test/DefaultBtProgressInfoFileTest.cc
  5451. * src/Util.{h, cc}
  5452. * test/UtilTest.cc
  5453. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Do not rotate tiers in announce-list.
  5455. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  5456. AnnounceList::allTiersFailed() used instead to detect whether all
  5457. tiers are tried and failed.
  5458. * test/DefaultBtAnnounceTest.cc
  5459. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  5460. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  5461. * test/AnnounceListTest.cc
  5462. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  5463. clause. Catch RecoverableException instead of DlRetryEx instead.
  5464. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Implemented checksum validation feature(1 checksum for each file)
  5466. The validation takes place after the download.
  5467. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  5468. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  5469. * src/CheckIntegrityCommand.cc: Changed log message.
  5470. * src/Metalink2RequestGroup.cc: Set checksum to
  5471. SingleFileDownloadContext.
  5472. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  5473. PieceHashCheckIntegrity class.
  5474. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  5475. PieceHashCheckIntegrity class.
  5476. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  5477. * src/IteratableValidator.h: New class.
  5478. * src/message.h
  5479. * src/CheckIntegrityEntry.{h, cc}
  5480. * src/IteratableChunkChecksumValidator.{h, cc}
  5481. * src/SingleFileDownloadContext.h
  5482. * src/DownloadCommand.cc
  5483. --allow-overwrite=true is no longer needed to check file integrity
  5484. before download in BitTorrent download.
  5485. * src/RequestGroup.cc (getInitialCommand)
  5486. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  5487. throws exception.
  5488. * src/RequestGroupMan.cc (getInitialCommands)
  5489. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5490. urlencode the given url inside Request::parseUrl(...)
  5491. * src/Request.{h, cc}
  5492. * src/Util.{h, cc}
  5493. * test/RequestTest.cc
  5494. Removed #!metalink3! notation support because it is deleted from
  5495. the metalink specification.
  5496. * src/Request.{h, cc}
  5497. * test/RequestTest.cc
  5498. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5499. Don't connect server before checking file integrity at startup, if
  5500. filesize and output file path are known.
  5501. * src/AbstractCommand.cc
  5502. * src/StreamFileAllocationEntry.cc
  5503. * src/Metalink2RequestGroup.cc
  5504. * src/RequestGroup.{h, cc}
  5505. * src/HttpResponseCommand.cc
  5506. * src/FtpNegotiationCommand.cc
  5507. Added DownloadFailureException. If it is thrown, RequestGroup should
  5508. halt.
  5509. * src/AbstractCommand.cc
  5510. * src/DownloadFailureException.h
  5511. * src/RequestGroup.cc
  5512. Catch RecoverableException, instead of DlAbortEx.
  5513. * src/RequestGroupMan.cc
  5514. * src/FillRequestGroupCommand.cc
  5515. * src/MetaFileUtil.cc
  5516. * src/IteratableChunkChecksumValidator.cc
  5517. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  5518. getGID())
  5519. * src/CheckIntegrityCommand.cc
  5520. * src/message.h
  5521. Print gid instead of idx.
  5522. * src/RequestGroupMan.cc
  5523. Removed exception throwers declaration.
  5524. * src/DirectDiskAdaptor.{h, cc}
  5525. * src/SocketCore.{h, cc}
  5526. * src/MultiDiskAdaptor.{h, cc}
  5527. * src/HttpConnection.{h, cc}
  5528. * src/HttpResponse.{h, cc}
  5529. * src/DiskAdaptor.{h, cc}
  5530. * src/CopyDiskAdaptor.{h, cc}
  5531. * src/MultiDiskAdaptor.{h, cc}
  5532. * src/HttpHeaderProcessor.{h, cc}
  5533. * src/AbstractSingleDiskAdaptor.{h, cc}
  5534. * src/Util.{h, cc}
  5535. * test/UtilTest.cc
  5536. * src/DefaultDiskWriter.{h, cc}
  5537. * src/FtpConnection.{h, cc}
  5538. * src/AbstractDiskWriter.{h, cc}
  5539. Removed duplicate code.
  5540. * src/StreamCheckIntegrityEntry.cc
  5541. Removed unnecessary include.
  5542. * src/DiskWriter.h
  5543. Included Exception.h
  5544. * src/option_processing.cc
  5545. Included 2 files and added doc
  5546. * src/TrackerWatcherCommand.cc
  5547. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5548. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5549. Changed CheckIntegrityEntry interface so that it can define
  5550. the action when all the chunk checksums are valid.
  5551. * src/CheckIntegrityEntry.h
  5552. * src/StreamCheckIntegrityEntry.{h, cc}
  5553. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5554. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5555. to exit rather than doing seeding. So, it would be good to toggle this
  5556. behavior.
  5557. * src/CheckIntegrityCommand.cc
  5558. * src/AbstractCommand.cc
  5559. * src/RequestGroup.cc
  5560. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Reflect the download length of in-flight pieces.
  5562. It makes the download length readout more precise.
  5563. * src/DefaultPieceStorage.{h, cc}
  5564. * test/DefaultPieceStorageTest.cc
  5565. * src/a2functional.h
  5566. * test/a2functionalTest.cc
  5567. Lower CPU load when --max-download-limit is used.
  5568. There is up and down in speed indicator when enabling
  5569. http-pipelining but a download goes well. I think the problem is that
  5570. because http-pipelining is enabled, DownloadCommand is created for
  5571. each segment and in its constructor, PeerStat::downloadStart() is
  5572. called. In PeerStat::downloadStart(), speed calculation object is
  5573. reseted, which makes download speed zero.
  5574. * src/DownloadCommand.cc
  5575. Rewritten using accumulate.
  5576. * src/RequestGroupMan.cc (calculateStat)
  5577. Code clearnup.
  5578. * src/FtpNegotiationCommand.cc
  5579. * src/HttpResponseCommand.cc
  5580. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5581. Fixed: Can not resume: aria2 reports download already finished.
  5582. * src/AbstractCommand.{h, cc}
  5583. * src/HttpResponseCommand.cc
  5584. * src/FtpNegotiateCommand.cc
  5585. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Now a file is stored in the directory specified in .metalnk file
  5587. (file[@name]).
  5588. * src/Metalink2RequestGroup.cc
  5589. Create the directory structure when opening the file if it doesn't
  5590. exist.
  5591. * src/AbstractDiskWriter.cc
  5592. * src/Util.{h, cc}
  5593. * src/File.h
  5594. * test/UtilTest.cc
  5595. Removed file name comparison
  5596. * src/Metalink2RequestGroup.cc
  5597. * src/HttpResponseCommand.cc
  5598. Rewritten using Util::mkdirs()
  5599. * src/FileEntry.cc (setupDir)
  5600. * test/FileEntryTest.cc
  5601. Updated doc
  5602. * src/SingleFileDownloadContext.h
  5603. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5604. Now SleepCommand dispatches nextCommand when halt is requested.
  5605. It avoids a possible long wait after hitting CTRL-C.
  5606. * src/SleepCommand.{h, cc}
  5607. * src/RequestGroupAware.{h, cc}
  5608. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5610. to open listen port, then remove the port number from the tracker
  5611. request.
  5612. * src/DefaultBtAnnounce.cc
  5613. * test/DefaultBtAnnounceTest.cc
  5614. * test/MockPieceStorage.h
  5615. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5616. them more testable.
  5617. * src/DefaultBtAnnounce.{h, cc}
  5618. * src/DefaultBtContext.{h, cc}
  5619. * src/Util.{h, cc}
  5620. * test/DefaultBtAnnounceTest.cc
  5621. * test/DefaultBtContextTest.cc
  5622. * test/UtilTest.cc
  5623. Added 'B' to upload bytes readout.
  5624. * src/ConsoleStatCalc.cc
  5625. Now the listen port for BitTorrent download is opened when it is
  5626. needed.
  5627. * src/DownloadEngineFactory.cc
  5628. * src/BtSetup.{h, cc}
  5629. * src/PeerListenCommand.{h, cc}
  5630. Now an exception thrown while parsing tracker response is now logged.
  5631. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  5632. called, which means no retry is made in this case, assuming a tracker
  5633. has a problem.
  5634. * src/TrackerWatcherCommand.cc
  5635. Fixed: downloading a file whose length is unkown fails.
  5636. * src/DownloadCommand.cc
  5637. Simplified prepareForNextSegment()
  5638. * src/DownloadCommand.cc
  5639. Updated
  5640. * po/POTFILES.in
  5641. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Re-implemented a file listing for Metalink, which was dropped while
  5643. http/ftp/torrent integration was being implemented.
  5644. * src/MetalinkHelper.{h, cc}: New class.
  5645. * test/MetalinkHelperTest.cc
  5646. * src/main.cc
  5647. * src/Metalink2RequestGroup.cc
  5648. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. Added the ability to display the detailed torrent file information.
  5650. Now -S option gives not only a file listing, but also total download
  5651. length, info hash, announce URI, piece length, the number of pieces,
  5652. and mode(single or multi-torrent).
  5653. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  5654. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  5655. KiB)
  5656. * test/UtilTest.cc
  5657. * src/main.cc
  5658. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Added ftp://USER:PASSWD@Servername automatic parsing.
  5660. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  5661. _password. Recognize username and password in URI.
  5662. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  5663. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  5664. * src/RequestFactory.{h, cc}: Removed.
  5665. * src/AuthConfigFactory.{h, cc}: New class.
  5666. * src/FtpConnection.cc: Use AuthConfigFactory.
  5667. * src/HttpRequest.cc: Use AuthConfigFactory.
  5668. * test/HttpRequestTest.cc: Updated.
  5669. * test/RequestTest.cc: Updated.
  5670. * test/AuthConfigFactoryTest.cc: New class.
  5671. * test/RequestFactoryTest.cc: Removed.
  5672. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Use RequestGroup::allDownloadFinished() to decide whether the control
  5674. file should be removed or saved.
  5675. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  5676. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  5677. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Use File::renameTo()
  5679. * src/DefaultBtProgressInfoFile.cc
  5680. Added --no-file-allocation-limit command-line option.
  5681. * src/version_usage.cc
  5682. * src/option_processing.cc
  5683. * src/OptionHandlerFactory.cc
  5684. * src/RequestGroup.{h, cc}
  5685. * src/BtCheckIntegrityEntry.cc
  5686. * src/StreamCheckIntegrityEntry.cc
  5687. * src/prefs.h
  5688. * doc/aria2c.1.txt
  5689. * doc/aria2c.1
  5690. Now prealloc is the default value for --file-allocation option.
  5691. * src/version_usage.cc
  5692. * src/option_processing.cc
  5693. * doc/aria2c.1.txt
  5694. * doc/aria2c.1
  5695. Don't URL-encode user-agent.
  5696. * src/HttpRequest.cc
  5697. Updated translations
  5698. * po/LINGUAS: Added nl for Dutch translation.
  5699. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  5700. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  5701. * po/POTFILES.in: Updated.
  5702. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Added the ability to recognize url-list in a torrent file.
  5704. The retrieved URLs are attached to the corresponding FileEntry.
  5705. * src/DefaultBtContext.{h, cc}
  5706. * src/FileEntry.{h, cc}
  5707. * test/DefaultBtContextTest.cc
  5708. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  5710. after the download finishes.
  5711. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  5713. the data smaller than block length.
  5714. A block length can be specified by constructor's argument.
  5715. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  5716. Get a missing piece in the range of given FileEntry. This function is
  5717. not used in the program yet.
  5718. * src/Util.h: Added some macros.
  5719. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5720. Added HTTP/1.1 keep alive and pipelining support.
  5721. See --enable-http-keep-alive and --enable-http-pipelining option.
  5722. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  5723. Segment.
  5724. * src/HttpDownloadCommand.{h, cc}
  5725. * src/OptionHandlerFactory.cc
  5726. * src/HttpConnection.{h, cc}
  5727. * src/version_usage.cc
  5728. * src/HttpInitiateConnectionCommand.cc
  5729. * src/FtpInitiateConnectionCommand.cc
  5730. * src/Segment.h
  5731. * src/HttpRequestCommand.{h, cc}
  5732. * src/option_processing.cc
  5733. * src/prefs.h
  5734. * src/HttpResponseCommand.cc
  5735. * src/SegmentMan.{h, cc}
  5736. * src/FtpNegotiateCommand.cc
  5737. * src/HttpProxyResponseCommand.cc
  5738. * src/Request.cc
  5739. * src/HttpRequest.cc
  5740. * src/DownloadCommand.cc
  5741. * test/HttpRequestTest.cc
  5742. * test/RequestTest.cc
  5743. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  5745. finished.
  5746. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  5748. catching it inside the method.
  5749. When no file entry is found in a metalink without querying user
  5750. preferences, throw the exception with the error message that suggests
  5751. metalink file is probably broken.
  5752. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  5753. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Fixed the bug that prevents remote Metalink/Torrent file from begin
  5755. processed.
  5756. * src/RequestGroupMan.cc (removeStoppedGroup)
  5757. Added debug message.
  5758. * src/BtPostDownloadHandler.cc
  5759. * src/MetalinkPostDownloadHandler.cc
  5760. * src/PostDownloadHandler.{h, cc}
  5761. * src/RequestGroup.cc
  5762. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  5764. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5765. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  5766. stops and there are any unfinished or in-progress downloads.
  5767. Added the legend of "stat".
  5768. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Throw exception when chunck checksum verification fails.
  5770. * src/DownloadCommand.cc (validatePieceHash): New function.
  5771. * src/PiecedSegment.{h, cc} (clear): New function.
  5772. * src/GrowSegment.{h, cc} (clear): New function.
  5773. * src/Segment.h (clear): New function.
  5774. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  5775. * test/SegmentTest.cc
  5776. * test/GrowSegmentTest.cc
  5777. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Do not send referer when redirected.
  5779. * src/Request.cc (redirectUrl)
  5780. * test/RequestTest.cc
  5781. * test/HttpRequestTest.cc
  5782. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Implemented BitTorrent/http/ftp integrated download.
  5784. I've rewritten lots of files and now some headers have forward
  5785. class declarations to reduce compile time.
  5786. The implementation is extremely alpha stage, I recommend to use this
  5787. for testing purpose only.
  5788. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Fixed the compilation error on 64bit platform.
  5790. * test/HttpHeaderProcessorTest.cc
  5791. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Merged Ross's patch that fixes compilation problem in MinGW
  5793. * test/DefaultBtProgressInfoFileTest.cc
  5794. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Updated fr.po by sebone
  5796. * po/fr.po
  5797. Updated man page.
  5798. * doc/aria2c.1.txt
  5799. * Release 0.11.3
  5800. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  5802. failure in Metalink.
  5803. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Automatically save *.aria2 control file of http/ftp download in every
  5805. 60 seconds.
  5806. * src/AutoSaveCommand.{h, cc}: New class.
  5807. * src/TimeBasedCommand.{h, cc}: New class.
  5808. * src/DownloadEngineFactory.cc (newConsoleEngine)
  5809. Disable parameterized URI support by default. Added -P option to
  5810. enable the feature.
  5811. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  5812. * src/OptionHandlerFactory.cc
  5813. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  5814. Updated Japanese translation.
  5815. * po/ja.po
  5816. Updated man page.
  5817. * doc/aria2c.1.txt
  5818. * Release 0.11.3-rc
  5819. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5821. it is successful, then renamed to *.aria2.
  5822. This prevents *.aria2 file from being truncated or corrupted when
  5823. file system becomes out of space.
  5824. * src/DefaultBtProgressInfoFile.cc (save)
  5825. * src/SegmentMan.cc (save)
  5826. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5827. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Reduced the fragmentation of bitfield in http/ftp download.
  5829. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5830. * test/BitfieldManTest.cc
  5831. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. Added the ability to disable segmented download in .metalink.
  5833. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5834. 'url' tag.
  5835. * src/MetalinkEntry.{h, cc}
  5836. * src/RequestResource.{h, cc}
  5837. * src/MetalinkRequestInfo.cc
  5838. * src/Xml2MetalinkProcessor.cc
  5839. * test/Xml2MetalinkProcessorTest.cc
  5840. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Added parameterized URI support.
  5842. * src/main.cc: -Z option added.
  5843. * src/OptionHandlerFactory.cc
  5844. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5845. * src/PStringDatum.h: New class.
  5846. * src/PStringSegment.{h,cc}: New class.
  5847. * src/PStringNumLoop.h: New class.
  5848. * src/PStringSelect.h: New class.
  5849. * src/NumberDecorator.h: New class.
  5850. * src/FixedWidthNumberDecorator.h: New class.
  5851. * src/AlphaNumberDecorator.h: New class.
  5852. * src/PStringVisitor.h: New class.
  5853. * src/PStringBuildVisitor.{h,cc}: New class.
  5854. * src/ParameterizedStringParser.{h,cc}: New class.
  5855. * src/Util.{h,cc}
  5856. (isNumber): New function.
  5857. (isLowercase): New function.
  5858. (isUppercase): New function.
  5859. (alphaToNum): New function.
  5860. * test/ParameterizedStringParserTest.cc: New class.
  5861. * test/AlphaNumberDecoratorTest.cc: New class.
  5862. * test/PStringBuildVisitorTest.cc: New class.
  5863. * test/UtilTest.cc
  5864. (testIsNumber): New function.
  5865. (testIsLowercase): New function.
  5866. (testIsUppercase): New function.
  5867. (testAlphaToNum): New function.
  5868. Added '\n' after the error message
  5869. * src/RequestInfo.h (printDownloadAbortMessage)
  5870. Added auto file renaming feature in http(s)/ftp download.
  5871. * src/main.cc: Added --auto-file-renaming command-line option.
  5872. * src/OptionHandlerFactory.cc
  5873. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5874. * src/RequestGroup.{h, cc}
  5875. (shouldCancelDownloadForSafety): Rewritten
  5876. (tryAutoFileRenaming): New function.
  5877. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5878. * src/HttpResponseCommand.cc
  5879. (executeInternal): Removed the call to RequestGroupMan::
  5880. isSameFileBeingDownloaded()
  5881. * src/FtpNegotiateCommand.cc
  5882. (recvSize): Removed the call to RequestGroupMan::
  5883. isSameFileBeingDownloaded()
  5884. * test/RequestGroupTest.cc: New class.
  5885. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5887. IO.
  5888. * src/DefaultBtProgressInfoFile.cc
  5889. * src/MetaFileUtil.cc
  5890. * src/SimpleLogger.cc
  5891. * src/SegmentMan.cc
  5892. * src/Util.cc
  5893. * src/Platform.cc
  5894. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5896. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5898. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5899. Fixed the bug that prevents file allocation is not done when
  5900. dowloading multi-torrent file.
  5901. * src/AbstractDiskWriter.cc (openFile)
  5902. Increase the maximum number of -j option from 15 to 45.
  5903. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5904. Added fr.po, thanks to Charles Landemaine.
  5905. * po/fr.po
  5906. * po/LINGUAS
  5907. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5908. gcc 3.4.4 support:
  5909. * src/DefaultBtContext.cc: int32_t -> int
  5910. * src/main.cc: int -> int32_t, int32_t -> int
  5911. * src/messageDigest.h: uint32_t -> unsigned int
  5912. * src/NameResolver.h: int32_t -> int
  5913. * src/PeerConnection.cc: int -> int32_t
  5914. * src/SpeedCalc.cc: int32_t -> int
  5915. * src/TrackerUpdateCommand.h: int -> int32_t
  5916. * src/Util.cc: int32_t -> int
  5917. * src/Util.h: int32_t -> int
  5918. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5919. * test/AnnounceListTest.cc: int -> int32_t
  5920. * test/ChunkedEncodingTest.cc: int -> int32_t
  5921. * test/DataTest.cc: int -> int32_t
  5922. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5923. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5924. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5925. * test/FeatureConfigTest.cc: int -> int32_t
  5926. * test/MetalinkEntryTest.cc: int -> int32_t
  5927. * test/MockBtRequestFactory.h: int -> int32_t
  5928. * test/MockPieceStorage.h: int -> int32_t
  5929. * test/OptionTest.cc: int -> int32_t
  5930. * test/RequestTest.cc: int -> int32_t
  5931. * test/SegmentManTest.cc: int -> int32_t
  5932. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5933. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5934. Move sleep functions to Util class:
  5935. * src/Util.cc
  5936. (sleep): New function.
  5937. (usleep): New function.
  5938. * src/DownloadCommand.cc: sleep -> Util::sleep
  5939. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5940. MinGW build enhancements. The following files are added:
  5941. * src/timegm.{c,h}
  5942. Changes to support the above new files:
  5943. * configure.ac
  5944. * src/Makefile.am
  5945. * src/a2time.h
  5946. * src/Util.cc:
  5947. * src/strptime.c: Added support for %Z option.
  5948. Fixed MinGW non-blocking bug.
  5949. * src/SocketCore.cc
  5950. * src/HttpRequestCommand.cc
  5951. Miscellenous build fixes/enhancements.
  5952. * configure.ac: Added summary report.
  5953. * src/Platform.h: Tweaked #include's.
  5954. * src/a2netcompat.h: Tweaked #include's.
  5955. * src/strptime.h: Tweaked #include's.
  5956. * src/gai_strerror.c: Tweaked #include's.
  5957. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5958. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5959. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5960. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5961. Increased the initial connection size in BitTorrent download to 40.
  5962. * src/BtRuntime.h
  5963. Added the usage message of --peer-id-prefix option.
  5964. * src/main.cc
  5965. * Release 0.11.2
  5966. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5967. MessageDigestHelper is introduced in order to simplify the use
  5968. of message digest. Removed repeated code.
  5969. The message digest algorithm is now specified by string, like "sha1",
  5970. "md5".
  5971. * src/messageDigest.{h, cc}
  5972. * src/MessageDigestHelper.{h, cc}: New class.
  5973. * src/DefaultPieceStorage.cc
  5974. * src/DefaultBtContext.{h, cc}
  5975. (computeFastSet): New function.
  5976. (setInfoHash): Added for unit testing.
  5977. (setNumPieces): Added for unit testing.
  5978. * src/DefaultBtInteractive.cc
  5979. * src/BtPieceMessage.cc
  5980. * src/Peer.cc
  5981. * src/Checksum.h
  5982. * src/message.h
  5983. * src/IteratableChecksumValidator.h
  5984. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5985. inside it.
  5986. * src/SegmentMan.{h, cc}
  5987. (checkIntegrity): Removed.
  5988. * src/IteratableChunkChecksumValidator.{h, cc}
  5989. * src/Util.h
  5990. (sha1Sum): Removed.
  5991. (simpleMessageDigest): Removed.
  5992. (fileChecksum): Removed.
  5993. (computeFastSet): Removed.
  5994. * src/ShaVisitor.cc
  5995. * src/ChunkChecksum.h
  5996. * src/DownloadCommand.cc
  5997. Removed messageDigest virtual functions.
  5998. * src/MultiDiskAdaptor.{h, cc}
  5999. * src/DiskAdaptor.h
  6000. * src/ByteArrayDiskWriter.h
  6001. * src/DiskWriter.h
  6002. * src/DiskAdaptorWriter.h
  6003. * src/AbstractSingleDiskAdaptor.{h, cc}
  6004. * src/AbstractDiskWriter.{h, cc}
  6005. Fixed comilation error when message digest is disabled.
  6006. * src/MetalinkEntry.{h, cc}
  6007. * src/MetalinkRequestInfo.cc
  6008. Removed srandom and random.
  6009. * src/SimpleRandomizer.h
  6010. Added size() virtual function to DiskAdaptor
  6011. * src/MultiDiskAdaptor.h
  6012. Fixed the bug that causes that files are not opened correctly in
  6013. multi-file torrent.
  6014. * src/TorrentRequestInfo.cc
  6015. * src/MultiDiskAdaptor.cc
  6016. Added SHA256 support
  6017. * src/messageDigest.cc
  6018. * src/Xml2MetalinkProcessor.cc
  6019. Show supported message digest algorithms
  6020. * src/main.cc
  6021. Updated contact info.
  6022. * src/main.cc
  6023. Applied Ross's patch
  6024. * src/a2netcompat.h
  6025. * src/main.cc
  6026. Fixed the bug that prevents a remote metalink from not being processed
  6027. even if '-o foo.metalink' is specified.
  6028. * src/MetalinkRequestInfo.cc
  6029. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Merged Dan's patch:
  6031. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  6032. Use va_copy to avoid core dump on amd64:
  6033. * src/SimpleLogger.cc
  6034. Updated contact info.
  6035. * src/main.cc
  6036. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  6037. digest is not available.
  6038. * src/MetalinkEntry.h
  6039. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Make a2netcompat.h include a2io.h to fix compilation error:
  6041. * src/a2netcompat.h
  6042. * src/SocketCore.cc: Removed include of a2io.h
  6043. * src/Util.cc: Removed include of a2io.h
  6044. Gather time related functions to a2time.h:
  6045. * src/a2time.h: New file.
  6046. * src/DefaultPeerStorage.cc
  6047. * src/SimpleLogger.cc
  6048. * src/Util.{h, cc}
  6049. * src/SimpleRandomizer.h
  6050. * src/TimeA2.{h,cc}
  6051. * src/DownloadCommand.cc
  6052. * src/main.cc
  6053. Removed #ifdef __MINGW32__ since gai_strerror is included in
  6054. a2netcompat.h:
  6055. * src/NameResolver.cc
  6056. Fixed compilation error without openssl:
  6057. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  6058. Added default block to suppress compiler warnings:
  6059. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  6060. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  6061. MinGW build enhancements. The following files are added:
  6062. * src/gai_strerror.{c,h}
  6063. * src/gettimeofday.{c,h}
  6064. Changes to support the above new files:
  6065. * configure.ac
  6066. * src/Makefile.am
  6067. * src/a2netcompat.h
  6068. * src/TimeA2.cc
  6069. * src/DefaultPeerStorage.cc
  6070. * src/NameResolver.cc: removed mingw_strerror() function.
  6071. * src/SocketCore.cc: removed mingw_strerror() function.
  6072. Miscellaneous MinGW build fixes.
  6073. * src/a2io.h: Use _lseeki64() instead of lseek()
  6074. * src/common.h
  6075. * src/DefaultFileAllocator.cc
  6076. * src/GlowFileAllocator.cc
  6077. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  6078. * src/NameResolver.cc
  6079. (callback): Changed int32_t to int.
  6080. (resolve): Changed int32_t to int.
  6081. * src/Platform.cc
  6082. * src/Platform.h
  6083. * test/MultiDiskWriterTest.cc
  6084. * test/PeerMessageUtilTest.cc
  6085. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  6086. Other enhancements and fixes.
  6087. * src/HttpRequestCommand.cc
  6088. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  6089. * src/SocketCore.cc:
  6090. (error): New function to abstract errno/WSAGetLastError().
  6091. (errorMsg): New function to abstract errno/WSAGetLastError().
  6092. (initiateSecureConnection): Added more detailed error reporting.
  6093. * src/SocketCore.h: Added private variable blocking, to allow
  6094. proper handling of OpenSSL psuedo-errors.
  6095. * src/message.h
  6096. (EX_SSL_INIT_FAILURE)
  6097. (EX_SSL_IO_ERROR)
  6098. (EX_SSL_PROTOCOL_ERROR)
  6099. (EX_SSL_UNKNOWN_ERROR)
  6100. (EX_SSL_CONNECT_ERROR)
  6101. (EX_SOCKET_BLOCKING)
  6102. (EX_SOCKET_NONBLOCKING)
  6103. (EX_SOCKET_UNKNOWN_ERROR)
  6104. * src/Util.cc
  6105. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  6106. reserved name.
  6107. (httpGMT): Fixed typo.
  6108. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6109. Merged Ross's win32 patch(manually)
  6110. In the course of merging, following files are added.
  6111. * src/strptime.{h,c}
  6112. * src/libgen.{h,c}
  6113. * src/inet_aton.{h,c}
  6114. * src/Platform.{h,cc}
  6115. * src/localtime_r.{h,c}
  6116. * src/getaddrinfo.{h,c}
  6117. I've gethered network related things, and put them to following file:
  6118. * src/a2netcompat.h
  6119. Also io related things are put to following file:
  6120. * src/a2io.h
  6121. Changed %lld to %s because mingw32 doesn't recognize %lld.
  6122. * src/message.h
  6123. (MSG_ALLOCATION_COMPLETED)
  6124. (EX_TOO_LARGE_FILE)
  6125. (EX_SIZE_MISMATCH)
  6126. (EX_FILE_OFFSET_OUT_OF_RANGE)
  6127. (EX_INVALID_CHUNK_CHECKSUM)
  6128. (EX_INVALID_RANGE_HEADER)
  6129. * src/FileAllocationCommand.cc
  6130. * src/HttpResponse.cc
  6131. * src/RequestGroup.cc
  6132. * src/MultiDiskAdaptor.cc
  6133. * src/OptionHandlerImpl.h
  6134. * src/HttpResponseCommand.cc
  6135. * src/FtpNegotiateCommand.cc
  6136. * src/IteratableChecksumValidator.cc
  6137. * src/SegmentMan.cc
  6138. * src/ChunkChecksumValidator.cc
  6139. Added Randomizer::getRandomNumber(long int)
  6140. * src/Randomizer.h (getRandomNumber)
  6141. * src/SimpleRandomizer.h (getRandomNumber)
  6142. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  6143. * src/Util.cc (randomAlpha): Use this new function.
  6144. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Converted int's to in32_t. long long int's are also converted to
  6146. int64_t
  6147. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. Fixed the bug that prevents cookies from being sent to the server
  6149. if the domain of cookie is FQDN and starts with ".".
  6150. * src/Cookie.cc (match)
  6151. To add the ability to change peer id.
  6152. * src/DefaultBtContext.h
  6153. (_peerIdPrefix): New variable
  6154. (setPeerIdPrefix): New function.
  6155. * src/torrentRequestInfo.cc
  6156. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  6157. DefaultBtContext.
  6158. * src/main.cc (main): Added peer-id-prefix command-line option.
  6159. The usage message is not added yet.
  6160. * src/DefaultBtContext.cc
  6161. (generatePeerId): Use _peerIdPrefix.
  6162. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  6163. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Fixed the bug that prevents filename in content-disposition from
  6165. being retrieved when filename is not quoted.
  6166. * src/Util.cc (getContentDispositionFilename)
  6167. Fixed the bug that causes infinate loop and memory leak when file open
  6168. operation failed.
  6169. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6170. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Fixed the bug that causes segfault when all URIs specified are
  6172. unsupported.
  6173. * src/RequestGroupMan.cc (getInitialCommands)
  6174. Check if RequestGroup::createNextCommand() returns empty list of
  6175. commands.
  6176. * src/RequestGroup.cc (createNextCommand)
  6177. Change log level from info to error so that users can notice that
  6178. an error occurred.
  6179. Fixed the bug that causes segfault when a zero-sized file is
  6180. downloaded.
  6181. * src/BitfieldMan.cc (isAllBitSet)
  6182. Return true if bitfieldLength is 0.
  6183. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. * src/main.cc
  6185. (showUsage): Added 3 usage examples for metalink download.
  6186. Replace MetalinkChunkChecksum with ChunkChecksum.
  6187. * src/MetalinkChunkChecksum.h: Removed.
  6188. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  6189. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  6190. * src/Xml2MetalinkProcessor.cc
  6191. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  6192. * src/MetalinkRequestInfo.cc (execute)
  6193. * Release 0.11.1
  6194. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Reads URIs from stdin when "-i -" is specified.
  6196. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  6197. * src/UriListParser.h, src/UriListParser.cc: New class.
  6198. * src/StreamUriListParser.h: New class.
  6199. * src/FileUriListParser.h: New class.
  6200. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  6201. instead of UriFileListParser.
  6202. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. Made console readout more readable.
  6204. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6205. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Fix the bug that causes -s option not to work.
  6207. * src/main.cc (main)
  6208. * src/a2algo.h: New file.
  6209. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Create directory structure specified in metalink file.
  6211. * src/RequestGroup.h, src/RequestGroup.cc
  6212. (initAndOpenFile): Create a directory to store files if it does not
  6213. exist.
  6214. (getDir): New function.
  6215. Added ETA and download speed for an individual file to readout.
  6216. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6217. * src/RequestGroup.h
  6218. (calculateDownloadSpeed): New function.
  6219. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Made -S option work with metalink file and provided selective download
  6221. to metalink.
  6222. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  6223. (filename): Removed.
  6224. (file): New variable.
  6225. (size): Removed.
  6226. (operator=): Updated.
  6227. (getPath): New function.
  6228. (getLength): New function.
  6229. (toFileEntry): New function.
  6230. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  6231. (execute): Use toStream.
  6232. (showFileEntry): Removed.
  6233. * src/MetalinkRequestInfo.h
  6234. (targetFiles): New variable.
  6235. (setTargetFiles): New variable.
  6236. * src/MetalinkRequestInfo.cc
  6237. (execute): Added the ability to print file information included in
  6238. a metalink file.
  6239. Added selective download mode to metalink.
  6240. * src/main.cc
  6241. (showUsage): Updated to denote that -S and --select-file options are
  6242. applicable to metalink.
  6243. * src/FileEntry.h
  6244. (operator=): New function.
  6245. (getBasename): New function.
  6246. (getDirname): New function.
  6247. * src/Util.h, src/Util.cc
  6248. (toStream): New function.
  6249. * src/Xml2MetalinkProcessor.cc: Updated.
  6250. Made aria2 work with metalink with directory structure.
  6251. * src/File.h, src/File.cc
  6252. (getBasename): New function.
  6253. (getDirname): New function.
  6254. * src/RequestGroup.h, src/RequestGroup.cc
  6255. (_topDir): New variable.
  6256. (setTopDir): New function.
  6257. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  6258. Rewrote HTTP header parsing with stringstream.
  6259. * src/HttpConnection.h, src/HttpConnection.cc
  6260. (HttpRequestEntry): New class.
  6261. (headerBuf): Removed.
  6262. (headerBufLength): Removed.
  6263. (outstandingHttpRequests): Now its element type is
  6264. HttpRequestEntryHandle.
  6265. (findEndOfHeader): Removed.
  6266. (receiveResponse): Rewritten.
  6267. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  6268. Updated doc for -j option to notice that it should be used with -i
  6269. option.
  6270. * src/main.cc (showUsage)
  6271. Removed unused classes.
  6272. * src/RequestInfo.h
  6273. (FileInfo): Removed.
  6274. (checksum): Removed.
  6275. (fileInfo): Removed.
  6276. (setChecksum): Removed.
  6277. (getChecksum): Removed.
  6278. (getFileInfo): Removed.
  6279. Use ISO units.
  6280. * src/ConsoleDownloadEngine.cc
  6281. * src/TorrentConsoleDownloadEngine.cc
  6282. * src/Util.cc (abbrevSize)
  6283. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6284. Added the default listening ports to the help message.
  6285. * src/main.cc (showUsage)
  6286. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Reduce the number of calls to gettimeofday to lower CPU load.
  6288. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  6289. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  6290. * src/Peer.h (calculateUploadSpeed): New function.
  6291. (calculateDownloadSpeed): New function.
  6292. * src/DefaultPeerStorage.cc
  6293. (CalculateStat): Added _now variable.
  6294. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  6295. and Peer::calculateUploadSpeed(const struct timeval&)
  6296. Drop connection if no request or piece message is exchanged in
  6297. a certain interval.
  6298. * src/DefaultBtInteractive.h
  6299. (btRuntime): New variable.
  6300. (inactiveCheckPoint): New variable.
  6301. (checkActiveInteraction): New function.
  6302. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  6303. request or piece message is received.
  6304. (checkActiveInteraction): New function.
  6305. (doInteractionProcessing): Call checkActiveInteraction.
  6306. Fixed the bug that causes remote Metalink and Torrent files are not
  6307. processed.
  6308. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  6309. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Changed format of log file.
  6311. * src/SimpleLogger.cc
  6312. * Release 0.11.0
  6313. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. * src/AbstractCommand.cc
  6315. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  6316. MSG_MAX_TRY from error to info.
  6317. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  6318. * src/message.h
  6319. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  6320. (MSG_DOWNLOAD_ABORTED): Added %s.
  6321. (MSG_RESTARTING_DOWNLOAD): Added %s.
  6322. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  6323. * src/PeerAbstractCommand.cc
  6324. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  6325. * src/Request.h
  6326. (cookieBox): Made ShardHandle.
  6327. * src/RequestGroup.h, src/RequestGroup.cc
  6328. (createNextCommandWithAdj): New function.
  6329. * src/FileAllocationCommand.cc
  6330. (executeInternal): Use createNextCommandWithAdj().
  6331. * src/CheckIntegrityCommand.cc
  6332. (executeInternal): Use createNextCommandWithAdj().
  6333. Added --load-cookies command-option.
  6334. * src/OptionHandlerFactory.cc
  6335. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  6336. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  6337. Now aria2 can handle cookie's expiration date.
  6338. * src/Cookie.h (expires): Changed its type to time_t.
  6339. * src/main.cc: Added --load-cookies command-line option.
  6340. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  6341. * src/Util.h, src/Util.cc (httpGMT): New function.
  6342. * src/Request.cc (Request): Initialize cookieBox using
  6343. CookieBoxFactory.
  6344. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  6345. * src/CookieParser.h, src/CookieParser.cc: New class.
  6346. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  6347. * src/HttpResponseCommand.cc
  6348. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  6349. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  6350. download.
  6351. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6352. Added -j command-line option.
  6353. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6354. * src/main.cc
  6355. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  6356. Rewritten using stringstream.
  6357. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  6358. Rewritten using stringstream.
  6359. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Make download size shown in MB, KB.
  6361. * src/ConsoleDownloadEngine.h (sendStatistics)
  6362. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  6363. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Accept incoming connections if download rate is low.
  6365. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  6366. (_lowestSpeedLimit): New variable.
  6367. (setLowestSpeedLimit): New function.
  6368. (execute): Accept incoming connections if download rate is low.
  6369. MAX_PEERS is ignored in this case.
  6370. Disable PREF_OUT in multiple concurrent download:
  6371. * src/RequestGroup.h, src/RequestGroup.cc
  6372. (setUserDefinedFilename): New function.
  6373. * src/DownloadEngineFactory.cc
  6374. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  6375. concurrent download.
  6376. * src/DefaultSegmentManFactory.cc
  6377. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  6378. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. RequestGroup::getNextCommand() was renamed to createNextCommand().
  6380. Added its overloaded method.
  6381. * src/RequestGroup.h
  6382. (_numConcurrentCommand): New variable.
  6383. (setNumConcurrentCommand): New function.
  6384. * src/RequestGroup.cc
  6385. Abort download if same file is being downloaded concurrently.
  6386. * src/RequestGroup.h, src/RequestGroupMan.cc
  6387. (isSameFileBeingDownloaded): New function.
  6388. * src/HttpResponseCommand.cc (executeInternal)
  6389. * src/FtpNegotiateCommand.cc (recvSize)
  6390. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  6391. * main.cc: Added help message for -i option.
  6392. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  6394. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  6395. * src/MetalinkEntry.h
  6396. (checksum): Changed to ChecksumHandle
  6397. * src/MetalinkRequestInfo.cc
  6398. (checksum): Changed to ChecksumHandle
  6399. * src/File.cc
  6400. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  6401. * src/common.h
  6402. (DIR_OPEN_MODE): New definition
  6403. * src/RequestGroup.cc
  6404. (prepareForNextAction): Added an argument.
  6405. * src/message.h
  6406. (MSG_GOOD_CHECKSUM): New definition
  6407. (MSG_BAD_CHECKSUM): New definition
  6408. * src/HttpResponseCommand.cc
  6409. (handleDefaultEncoding): Continue download sequence in new
  6410. non-segmented download.
  6411. * src/FileAllocationEntry.h
  6412. (_nextDownloadCommand): New variable.
  6413. * src/DownloadCommand.cc
  6414. (prepareForNextSegment): Create ChecksumCommand if checksum is
  6415. available.
  6416. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  6417. * src/IteratableChecksumValidator.h,
  6418. src/IteratableChecksumValidator.cc: New class.
  6419. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  6420. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Change file mode to 666:
  6422. * src/common.h (OPEN_MODE): New definition.
  6423. * src/File.cc
  6424. * src/Util.cc
  6425. * src/Directry.cc
  6426. * src/AbstractDiskWriter.cc
  6427. Change the level of log message "download aborted" to debug:
  6428. * src/PeerAbstractCommand.cc (execute)
  6429. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  6430. * src/TrackerWatcherCommand.cc
  6431. (createCommand): Sleep some seconds after request failed.
  6432. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  6433. then abort tracker request.
  6434. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. * Added the simultaneous download feature.
  6436. * src/main.cc: Print "Exception caught: " when exception is caught.
  6437. Use CUIDCounter instead of BtRuntime::getNewCuid():
  6438. * src/ActivePeerConnectionCommand.cc
  6439. * src/PeerInteractionCommand.cc
  6440. * src/BtRuntime.h
  6441. (cuidCounter): Removed.
  6442. (getNewCuid): Removed.
  6443. * src/DownloadEngineFactory.cc
  6444. * src/PeerListenCommand.cc
  6445. * src/TrackerUpdateCommand.cc
  6446. * src/PeerInitiateConnectionCommand.cc
  6447. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. * src/PeerAbstractCommand.cc
  6449. (onAbort): Call PeerStorage::returnPeer()
  6450. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  6451. (incomingPeers): New variable.
  6452. (addIncomingPeer): New function.
  6453. (returnPeer): New function.
  6454. (onErasingPeer): New function.
  6455. (addPeer): push_back -> push_front
  6456. (getActivePeers): Rewritten.
  6457. (calculateStat): Rewritten.
  6458. * src/PeerStorage.h
  6459. (TransferStat::copy): New function.
  6460. (TransferStat::TransferStat): New function.
  6461. (TransferStat::operator=): New function.
  6462. (addIncomingPeer): New function.
  6463. (returnPeer): New function.
  6464. * src/PeerListenCommand.cc
  6465. (execute): Use PeerStorage::addIncomingPeer() instead of
  6466. Peer::addPeer().
  6467. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Connect to a peer actively when download speed is lower than specified
  6469. speed in torrent download:
  6470. * src/ActivePeerConnectionCommand.h: New class.
  6471. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. * src/HttpRequest.cc (createRequest): url-encode user-agent
  6473. * src/main.cc: Fixed the bug that prevents download if .netrc
  6474. doesn't exist.
  6475. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. To cache resolved hostname:
  6477. * src/AbstractCommand.h, src/AbstractCommand.cc
  6478. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  6479. Added dns cache.
  6480. * src/FtpInitiateConnectionCommand.cc
  6481. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  6482. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  6483. NameResolver working without ares.
  6484. * src/TorrentRequestInfo.cc
  6485. (execute): Don't cache dns in torrent download.
  6486. * src/HttpInitiateConnectionCommand.cc
  6487. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  6488. * src/DNSCache.h: New class.
  6489. * src/UrlRequestInfo.cc
  6490. (execute): Use dns cache.
  6491. In http request, suppress port number in http request header if port
  6492. is 80 or 443:
  6493. * src/HttpRequest.cc (getHostText): Suppress port number in http
  6494. request header if port is 80 or 443.
  6495. (createProxyRequest): Allways send port number.
  6496. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6497. To add the command-line option which disables netrc support:
  6498. * src/OptionHandlerFactory.cc
  6499. (createOptionHandlers): Added PREF_NO_NETRC.
  6500. * src/main.cc: Added -n option.
  6501. * src/prefs.h (PREF_NO_NETRC): New definition.
  6502. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  6503. V_TRUE.
  6504. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  6505. is V_FALSE. This may get configurable in the future release.
  6506. To clear peer's error status by time basis:
  6507. * src/PeerAbstractCommand.cc
  6508. (onAbort): Call Peer::startBadCondition().
  6509. * src/Peer.h, src/Peer.cc
  6510. (error): Removed.
  6511. (_badConditionStartTime): New variable.
  6512. (_badConditionInterval): New variable. Initialized to 10 seconds.
  6513. (startBadCondition): New function.
  6514. (isGood): New function.
  6515. * src/DefaultPeerStorage.cc
  6516. (addPeer): Use Peer::isGood().
  6517. (FindFinePeer): Use Peer::isGood().
  6518. Always include port number in http request header:
  6519. * src/HttpRequest.cc (getHostText): Always include port number in
  6520. http request header.
  6521. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. To the ability to read options from a config file:
  6523. * src/main.cc: Command-line parameter validation is delegated to
  6524. OptionHandler class.
  6525. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  6526. * src/Option.h, src/Option.cc (clear): New function.
  6527. * src/OptionParser.h, src/OptionParser.cc: New class.
  6528. * src/OptionHandler.h: New class.
  6529. * src/NameMatchOptionHandler.h: New class.
  6530. * src/OptionHandlerImpl.h: New classes.
  6531. * src/prefs.h: '_' -> '-'
  6532. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  6533. (FTP_PASV): New definition.
  6534. * src/Util.h, src/Util.cc (getRealSize): New function.
  6535. To disable netrc support if .netrc file does not have correct
  6536. permissions:
  6537. * src/File.h, src/File.cc (mode): New function.
  6538. To prevent confidential information to be logged:
  6539. * src/HttpConnection.h, src/HttpConnection.cc
  6540. (eraseConfidentialInfo): New function.
  6541. (sendRequest): Call eraseConfidentialInfo().
  6542. (sendProxyRequest): Call eraseConfidentialInfo().
  6543. * src/main.cc: Validate permissions of .netrc file.
  6544. To add --user-agent command-line option:
  6545. * src/main.cc: Added new command line option: --user-agent
  6546. * src/prefs.h (PREF_USER_AGENT): New definition.
  6547. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6548. parameter to HttpRequest object.
  6549. * src/AbstractProxyRequestCommand.cc
  6550. (executeInternal): Set user-agent option parameter to HttpRequest
  6551. object.
  6552. Marged the patches from Dan Fandrich.
  6553. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Use filename and size from Metalink file instead of sending HEAD
  6555. request:
  6556. * src/UrlRequestInfo.h
  6557. (_filename): New variable.
  6558. (_totalLength): New variable.
  6559. (setTotalLength): New variable.
  6560. (setFilename): New variable.
  6561. * src/MetalinkRequestInfo.cc
  6562. (execute): Set filename and size to UrlRequestInfo
  6563. * src/UrlRequestInfo.cc
  6564. (execute): Use filename and size from Metalink instead of seding
  6565. HEAD request to servers.
  6566. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. To add the ability to resume downloading a partially downloaded file
  6568. which is downloaded from the beginning:
  6569. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6570. takes this role.
  6571. * src/main.cc: Added -c option.
  6572. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6573. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6574. * src/prefs.h (PREF_CONTINUE): New definition.
  6575. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6576. * src/DefaultDiskWriter.cc
  6577. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6578. * src/AbstractDiskWriter.h
  6579. (glowFileAllocator): New variable.
  6580. * src/AbstractDiskWriter.cc
  6581. (openExistingFile): Now preallocate file space from the end of the
  6582. existing file if totalLength argument is specified and grater than 0.
  6583. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6584. to download exists in local, continue the download of the file.
  6585. --allow-overwrite=true is assumed in this context.
  6586. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6587. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6588. Throw exception if --check-integrity=true is specified but chunk
  6589. checksums are not provided:
  6590. * src/UrlRequestInfo.cc
  6591. Do not print URLs to stdout:
  6592. * src/UrlRequestInfo.cc
  6593. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. * src/Request.h: Use AuthResolver to get authentication information.
  6595. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6596. set to RequestFactory object.
  6597. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6598. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6599. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6600. create Request object.
  6601. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6602. To integrate Netrc into exsiting classes:
  6603. * src/Request.h
  6604. (_userDefinedAuthConfig): New variable.
  6605. (findNetrcAuthenticator): New function.
  6606. (segment): Removed.
  6607. (setUserDefinedAuthConfig): New function.
  6608. (resolveHttpAuthConfigItem): New function.
  6609. (resolveFtpAuthConfigItem): New function.
  6610. (resolveHttpProxyAuthConfigItem): New function.
  6611. * src/HttpRequest.h
  6612. (authConfig): Removed.
  6613. (proxyAuthConfig): Removed.
  6614. (setAuthConfig): Removed.
  6615. (setProxyAuthConfig): Removed.
  6616. * src/UrlRequest.h
  6617. (getHeadResult): Added a parameter: authConfigHandle
  6618. * src/common.h
  6619. (SingletonHolder.h): New include.
  6620. * src/main.cc
  6621. (Netrc.h): New include.
  6622. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6623. Added initial value of PREF_NETRC_PATH.
  6624. Added the initialization of netrc.
  6625. * src/AuthConfig.h: New class.
  6626. * src/prefs.h
  6627. (PREF_NETRC_PATH): New definition.
  6628. * src/HttpAuthConfig.h: Removed.
  6629. * src/Netrc.cc
  6630. (getRequiredNextToken): New function.
  6631. (skipMacdef): New function.
  6632. (parse): Rewritten.
  6633. * src/Netrc.h
  6634. (getRequiredNextToken): New function.
  6635. (skipMacdef): New function.
  6636. * src/Util.h, src/Util.cc
  6637. (getHomeDir): New function.
  6638. * src/TrackerWatcherComand.cc
  6639. (createRequestCommand): Use AuthConfig.
  6640. * src/FtpConnection.cc
  6641. (sendUser): Use Request::resolveFtpAuthConfigItem().
  6642. (sendPass): Use Request::resolveFtpAuthConfigItem().
  6643. * src/Request.cc
  6644. (findNetrcAuthenticator): New function.
  6645. (resolveHttpAuthConfigItem): New function.
  6646. (resolveFtpAuthConfigItem): New function.
  6647. (resolveHttpProxyAuthConfigItem): New function.
  6648. * src/UrlRequestInfo.cc: Use AuthConfig.
  6649. * src/HttpRequest.cc
  6650. (createRequest): Use authConfig.
  6651. (getProxyAuthString): Use authConfig.
  6652. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  6653. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  6654. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. To reduce overhead to find commands whose socket is either
  6656. readable or writable in the download engine loop:
  6657. * src/Command.h, src/Command.cc
  6658. (STATUS): New enum.
  6659. (status): New variable.
  6660. (statusMatch): New function.
  6661. (setStatusActive): New function.
  6662. (setStatusInactive): New function.
  6663. * src/DownloadEngine.h, src/DownloadEngine.cc
  6664. (executeCommand): New function.
  6665. (run): Simplified.
  6666. (waitData): Call Command::setStatusActive() when command's socket is
  6667. readable or writable.
  6668. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. To handle Segment as SegmentHandle:
  6670. * src/AbstractCommand.cc (execute): Rewritten.
  6671. * src/SegmentMan.h: Segment -> SegmentHandle
  6672. Introducded HttpResponse class, HttpRequest class to improve code
  6673. extensiveness and make it clear:
  6674. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  6675. HttpResponse class.
  6676. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  6677. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  6678. * src/HttpConnection.cc: Contruction of http request were moved to
  6679. HttpRequest class.
  6680. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  6681. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  6682. * src/HttpAuthConfig.h: New class.
  6683. * src/Range.h: New class.
  6684. To make FtpTunnel{Request, Response}Command and
  6685. HttpProxy{Request, Response}Command derived from
  6686. AbstractProxy{Request, Response}Command:
  6687. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  6688. Derived from AbstractProxyRequestCommand class.
  6689. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  6690. Derived from AbstractProxyResponseCommand class.
  6691. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  6692. Derived from AbstractProxyRequestCommand class.
  6693. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  6694. Derived from AbstractProxyResponseCommand class.
  6695. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  6696. : New class.
  6697. * src/AbstractProxyResponseCommand.h,
  6698. src/AbstractProxyResponseCommand.cc: New class.
  6699. To add netrc support:
  6700. * src/Netrc.h, src/Netrc.cc: New class.
  6701. * src/Util.h, src/Util.cc (split): New function.
  6702. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  6703. "Content-Range" header instead of "Range" header.
  6704. * src/HttpHeader.h
  6705. (getStatus): Removed.
  6706. (setStatus): Removed.
  6707. * src/Segment.h
  6708. (getPositionToWrite): New function.
  6709. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. * src/HttpHeader.h
  6711. (Range.h): New include.
  6712. (status): New variable.
  6713. (HttpHeader): Initialized status with 0.
  6714. (getStatus): New function.
  6715. (setStatus): New function.
  6716. (getRange): New function.
  6717. (HttpHeaderHandle): New function.
  6718. * src/HttpHeader.cc
  6719. (getRange): New function.
  6720. * src/Request.h
  6721. (RequestWeakHandle): New definition.
  6722. * src/HttpConnection.h
  6723. (HttpConnectionHandle): New type definition.
  6724. * src/HttpConnection.cc
  6725. (receiveResponse): Set HTTP status to headers.
  6726. * src/main.cc
  6727. (showUsage): Fixed typo.
  6728. * src/Segment.h
  6729. (SegmentHandle): New type definition.
  6730. * src/BitfieldMan.h
  6731. (getMissingUnusedLength): New function.
  6732. * src/BitfieldMan.cc
  6733. (getMissingUnusedLength): New function.
  6734. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. To fix static initialization order problem:
  6736. * src/BitfieldManFactory.h
  6737. (defaultRandomizer): Removed.
  6738. (factory): New variable.
  6739. (getNewFactory): Removed.
  6740. (getFactoryInstance): New function.
  6741. (setDefaultRandomizer): Rewritten.
  6742. (getDefaultRandomizer): Rewritten.
  6743. * src/BitfieldManFactory.cc
  6744. (defaultRandomizer): Removed.
  6745. (factory): Initialized to 0.
  6746. (BitfieldManFactory): Initialized randomizer to 0.
  6747. * src/DefaultPieceStorage.cc
  6748. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  6749. * src/Peer.cc
  6750. (Peer): getNewFactory() -> getFactoryInstance()
  6751. * src/SegmentMan.cc
  6752. (initBitfield): getNewFactory() -> getFactoryInstance()
  6753. * src/Piece.cc
  6754. (Piece): getNewFactory() -> getFactoryInstance()
  6755. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6756. To fix the bug that causes crash on Max OS X:
  6757. * src/SimpleRandomizer.h
  6758. (getInstance): Create new instance if the static variable is null.
  6759. * src/SimpleRandomizer.cc
  6760. (randomizer): Initialized to 0.
  6761. * src/BitfieldManFactory.h
  6762. (getNewFactory): Removed the call to setRandomizer().
  6763. To fix the miscalculation of the range of checksum:
  6764. * src/BitfieldMan.h
  6765. (isBitSetOffsetRange): New function.
  6766. * src/BitfieldMan.cc
  6767. (isBitSetOffsetRange): New function.
  6768. * src/SegmentMan.cc
  6769. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  6770. Use bitfield->getBlockLength() instead of segment.segmentLength.
  6771. * Release 0.10.1
  6772. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6773. To lower CPU usage in BitTorrent download when --max-upload-limit
  6774. command-line option specified:
  6775. * src/DefaultBtMessageDispatcher.cc
  6776. (sendMessages): Calculate uploading speed only when current message
  6777. is uploading data and is not sent yet.
  6778. * src/DefaultPeerStorage.h
  6779. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  6780. * src/HttpResponseCommand.cc
  6781. (handleDefaultEncoding): Added the cast to int32_t to itos.
  6782. This fixes compile error in Soralis 10.
  6783. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. To fix segfault in Metalink download:
  6785. * src/UrlRequestInfo.h
  6786. (filename): Removed.
  6787. (totalLength): Removed.
  6788. (setTotalLength): Removed.
  6789. (setFilename): Removed.
  6790. * src/MetalinkRequestInfo.cc
  6791. (execute): Do not set filename and totalLength to reqInfo.
  6792. Set chunk checksum to reqInfo if it is not null.
  6793. * src/HttpResponseCommand.cc
  6794. (executeInternal): Fixed filename in log.
  6795. (handleDefaultEncoding): Removed the call to initBitfield() and
  6796. markAllPiecesDone().
  6797. (handleOtherEncoding): Added HEAD method handling.
  6798. * src/FtpNegotiateCommand.cc
  6799. (executeInternal): Added SEQ_HEAD_OK handling.
  6800. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  6801. return false.
  6802. * src/FtpNegotiateCommand.h
  6803. (SEQ_HEAD_OK): New definition.
  6804. * src/SegmentMan.cc
  6805. (initBitfield): Delete bitfield.
  6806. (isChunkChecksumValidationReady): Fixed the condition.
  6807. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  6808. works fine.
  6809. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6810. * src/Xml2MetalinkProcessor.h
  6811. (xpathExists): New function.
  6812. * src/Xml2MetalinkProcessor.cc
  6813. (xpathExists): New function.
  6814. Not to send HEAD request if filename and size are available in Metalink
  6815. file:
  6816. * src/UrlRequestInfo.h
  6817. (filename): New variable.
  6818. (totalLength): New variable.
  6819. (setTotalLength): New function.
  6820. (setFilename): New function.
  6821. * src/MetalinkRequestInfo.cc
  6822. (execute): Set filename and size to UrlRequestInfo.
  6823. * src/MetalinkEntry.cc
  6824. (MetalinkEntry): Initialize size with 0.
  6825. * src/UrlRequestInfo.cc
  6826. (execute): Set filename and size to SegmentMan.
  6827. Not to download rest of the files after selected files are downloaded
  6828. in BitTorrent:
  6829. * src/PieceStorage.h
  6830. (allDownloadFinished): New function.
  6831. * src/DefaultBtAnnounce.cc
  6832. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6833. downloadFinished.
  6834. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6835. * src/DefaultPieceStorage.cc
  6836. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6837. Commented out the call to finishSelectiveDownloadingMode().
  6838. (downloadFinished): Call isFilteredAllBitSet() instead of
  6839. isAllBitSet().
  6840. (allDownloadFinished): New function.
  6841. * src/DefaultBtInteractive.cc
  6842. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6843. downloadFinished().
  6844. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6845. * src/TorrentDownloadEngine.cc
  6846. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6847. * src/BitfieldMan.h
  6848. (isFilteredAllBitSet): New function.
  6849. * src/ShareRatioSeedCriteria.h
  6850. (PieceStorage.h): New include.
  6851. (pieceStorage): New variable.
  6852. (evaluate):
  6853. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6854. * src/BitfieldMan.cc
  6855. (isFilteredAllBitSet): New function.
  6856. (isAllBitSet): Filter is not took into account.
  6857. Rename --force-truncate as --allow-overwrite:
  6858. * src/TorrentRequestInfo.cc
  6859. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6860. * src/main.cc
  6861. (showUsage): --force-truncate -> --allow-overwrite
  6862. * src/message.h
  6863. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6864. * src/prefs.h
  6865. (PREF_FORCE_TRUNCATE): Removed.
  6866. (PREF_ALLOW_OVERWRITE): New definition.
  6867. * src/SegmentMan.cc
  6868. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6869. * src/MetalinkRequestInfo.cc
  6870. (execute): Queueing message are now logged in info level.
  6871. * src/common.h
  6872. (LONG_LONG_MAX): Removed.
  6873. (LONG_LONG_MIN): Removed.
  6874. * src/HttpResponseCommand.cc
  6875. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6876. * src/FtpNegotiateCommand.cc
  6877. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6878. * src/main.cc
  6879. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6880. command-line option.
  6881. (main): Added --check-integriy and --realtime-chunk-checksum
  6882. command-line option.
  6883. --force-truncate -> --allow-overwrite
  6884. Set initial value of --check-integrity option to false.
  6885. Don't show usage when error occurs while persing command-line options.
  6886. Removed deprecated --upload-limit option.
  6887. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6888. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6889. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6890. * src/BtAllowedFastMessage.cc:
  6891. * src/BtBitfieldMessage.cc
  6892. * src/BtCancelMessage.cc
  6893. * src/BtChokeMessage.cc
  6894. * src/BtHaveAllMessage.cc
  6895. * src/BtHaveMessage.cc
  6896. * src/BtHaveNoneMessage.cc
  6897. * src/BtInterestedMessage.cc
  6898. * src/BtNotInterestedMessage.cc
  6899. * src/BtPieceMessage.cc
  6900. * src/BtPortMessage.cc
  6901. * src/BtRejectMessage.cc
  6902. * src/BtRequestMessage.cc
  6903. * src/BtSuggestPieceMessage.cc
  6904. * src/BtUnchokeMessage.cc
  6905. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6906. files are affected.
  6907. * src/ChunkChecksumValidator.cc
  6908. * src/SegmentMan.cc
  6909. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6910. To add chunk checksum validation:
  6911. * src/MetalinkEntry.h
  6912. (MetalinkChunkChecksum.h): New include.
  6913. (chunkChecksum): New variable.
  6914. * src/Request.h
  6915. (method): New variable.
  6916. (setMethod): New function.
  6917. (getMethod): New function.
  6918. (METHOD_GET): New static constant.
  6919. (METHOD_HEAD): New static constant.
  6920. * src/Xml2MetalinkProcessor.h
  6921. (getPieceHash): New function.
  6922. * src/PieceStorage.h
  6923. (markAllPiecesDone): New function.
  6924. (checkIntegrity): New function.
  6925. * src/FileAllocator.h
  6926. (NullFileAllocationMonitor.h): New include.
  6927. (FileAllocator): Initialize fileAllocationMonitor with new
  6928. NullFileAllocationMonitor().
  6929. * src/MultiDiskAdaptor.h
  6930. (messageDigest.h): Remove include.
  6931. (ctx): Removed.
  6932. (hashUpdate): Added ctx.
  6933. (MultiDiskAdaptor): Removed ctx.
  6934. (sha1Sum): Renamed as messageDigest.
  6935. (messageDigest): New function.
  6936. * src/UrlRequestInfo.h
  6937. (HeadResult): New class.
  6938. (digestAlgo): New variable.
  6939. (chunkChecksumLength): New variable.
  6940. (chunkChecksums): New variable.
  6941. (getHeadResult): New function.
  6942. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6943. (setDigestAlgo): New function.
  6944. (setChunkChecksumLength): New function.
  6945. (setChunkChecksums): New function.
  6946. * src/DefaultPieceStorage.cc
  6947. (DiskAdaptorWriter.h): New include.
  6948. (ChunkChecksumValidator.h): New include.
  6949. (markAllPiecesDone): New function.
  6950. (checkIntegrity): New function.
  6951. * src/DefaultBtContext.h
  6952. (getPieceHashes): New function.
  6953. * src/TorrentRequestInfo.cc
  6954. (execute): Try to validate chunk checksum if file already exists and
  6955. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6956. * src/messageDigest.h
  6957. (~MessageDigestContext): Added digestFree().
  6958. * src/MetalinkRequestInfo.cc
  6959. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6960. * src/DiskAdaptor.h
  6961. (messageDigest.h): New include.
  6962. (sha1Sum): Renamed as messageDigest.
  6963. (messageDigest): New function.
  6964. * src/DownloadCommand.h
  6965. (PeerStat.h): New include.
  6966. (maxDownloadSpeedLimit): New variable.
  6967. (startupIdleTime): New variable.
  6968. (lowestDownloadSpeedLimit): New variable.
  6969. (peerStat): New variable.
  6970. (setMaxDownloadSpeedLimit): New function.
  6971. (setStartupIdleTime): New function.
  6972. (setLowestDownloadSPeedLimit): New function.
  6973. * src/BtContext.h
  6974. (getPieceHashes): New function.
  6975. * src/main.cc
  6976. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6977. option to true for testing purpose.
  6978. * src/BtPieceMessage.cc
  6979. (checkPieceHash): Use messageDigest
  6980. * src/DownloadEngine.cc
  6981. (SetDescriptor): Removed.
  6982. (AccumulateActiveCommand): Removed.
  6983. (waitData): Rewritten.
  6984. (updateFdSet): Rewritten.
  6985. * src/MultiDiskAdaptor.cc
  6986. (hashUpdate): Added ctx.
  6987. (sha1Sum): Renamed as messageDigest.
  6988. (messageDigest): New function.
  6989. * src/BitfieldMan.h
  6990. (isBitRangeSet): New function.
  6991. (unsetBitRange): New function.
  6992. * src/ByteArrayDiskWriter.h
  6993. (sha1Sum): Renamed as messageDigest.
  6994. (messageDigest): New function.
  6995. * src/ConsoleDownloadEngine.cc
  6996. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6997. * src/DiskWriter.h
  6998. (messageDigest.h): New include.
  6999. (sha1Sum): Renamed as messageDigest.
  7000. (messageDigest): New function.
  7001. * src/ChunkChecksumValidator.h: New class.
  7002. * src/DiskAdaptorWriter.h: New class.
  7003. * src/prefs.h
  7004. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  7005. (PREF_CHECK_INTEGRITY): New definition.
  7006. * src/HttpResponseCommand.cc
  7007. (handleDefaultEncoding): Added method "HEAD" handling.
  7008. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7009. (handleOtherEncoding):
  7010. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  7011. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  7012. startupIdleTime, lowestDownloadSpeedLimit to command.
  7013. * src/SegmentMan.h
  7014. (getSegmentEntryByIndex): New function.
  7015. (getSegmentEntryByCuid): New function.
  7016. (getSegmentEntryIteratorByCuid): New function.
  7017. (diskWriter): DiskWriter -> DiskWriterHandle
  7018. (pieceHashes): New variable.
  7019. (chunkHashLength): New variable.
  7020. (digestAlgo): New variable.
  7021. (FindPeerStat): Removed.
  7022. (getPeerStat): Rewritten.
  7023. (markAllPiecesDone): New function.
  7024. (checkIntegrity): New function.
  7025. (tryChunkChecksumValidation): New function.
  7026. (isChunkChecksumValidationReady): New function.
  7027. * src/BitfieldMan.cc
  7028. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  7029. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  7030. blocks to 0.
  7031. (isBitRangeSet): New function.
  7032. (unsetBitRange): New function.
  7033. * src/FtpNegotiateCommand.cc
  7034. (executeInternal): Set maxDownloadSpeedLimit,
  7035. startupIdleTime, lowestDownloadSpeedLimit to command.
  7036. (recvSize): Added method "HEAD" handling.
  7037. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7038. * src/AbstractSingleDiskAdaptor.cc
  7039. (sha1Sum): Renamed as messageDigest.
  7040. (messageDigest): New function.
  7041. * src/AbstractSingleDiskAdaptor.h
  7042. (sha1Sum): Renamed as messageDigest.
  7043. (messageDigest): New function.
  7044. * src/Util.h
  7045. (indexRange): New function.
  7046. * src/MetalinkEntry.cc
  7047. (MetalinkEntry): Initialized chunkChecksum to 0.
  7048. * src/ShaVisitor.cc
  7049. (~ShaVisitor): Removed the call to ctx.digestFree().
  7050. * src/SegmentMan.cc
  7051. (ChunkChecksumValidator.h): New include.
  7052. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  7053. to DIGEST_ALGO_SHA1.
  7054. (~SegmentMan): Removed diskWriter.
  7055. (FindSegmentEntryByIndex): Removed.
  7056. (FindSegmentEntryByCuid): Removed.
  7057. (checkoutSegment): Rewritten.
  7058. (findSlowerSegmentEntry): Rewritten.
  7059. (getSegment): Rewritten.
  7060. (updateSegment): Rewritten.
  7061. (completeSegment): Rewritten.
  7062. (markAllPiecesDone): New function.
  7063. (checkIntegrity): New function.
  7064. (isChunkChecksumValidationReady): New function.
  7065. (tryChunkChecksumValidation): New function.
  7066. * src/Xml2MetalinkProcessor.cc
  7067. (getEntry): Get size and set it to entry.
  7068. Get chunk checksum and set it to entry.
  7069. (getPieceHash): New function.
  7070. * src/Util.cc
  7071. (sha1Sum): Removed ctx.digestFree()
  7072. (fileChecksum): Removed ctx.digestFree()
  7073. (indexRange): New function.
  7074. * src/Request.cc
  7075. (METHOD_GET): New variable.
  7076. (METHOD_HEAD): New variable.
  7077. (Request): Added method.
  7078. * src/UrlRequestInfo.cc
  7079. (FatalException.h): New include.
  7080. (message.h): New include.
  7081. (operator<<): Added operator<< for class HeadResult.
  7082. (getHeadResult): New function.
  7083. (execute): Get filename and size in separate download engine.
  7084. * src/ChunkChecksumValidator.cc: New class.
  7085. * src/DownloadCommand.cc:
  7086. (DownloadCommand): Added peerStat.
  7087. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  7088. the value from Option.
  7089. The buffer size is now 16KB.
  7090. Use peerStat member instead of getting it from SegmentMan.
  7091. Use startupIdleTime member instead of gettingit from Option.
  7092. Added chunk checksum validation.
  7093. * src/AbstractDiskWriter.cc
  7094. (AbstractDiskWriter): Removed ctx.
  7095. (~AbstractDiskWriter): Removed ctx.digestFree()
  7096. (writeDataInternal): Returns the return value of write.
  7097. (readDataInternal): Returns the return value of read.
  7098. (sha1Sum): Renamed as messageDigest
  7099. (messageDigest): New function.
  7100. * src/AbstractDiwkWriter.h
  7101. (messageDigest.h): Removed include.
  7102. (ctx): Removed.
  7103. (sha1Sum): Renamed as messageDigest
  7104. (messageDigest): New function.
  7105. * src/DefaultPieceStorage.h
  7106. (markAllPiecesDone): New function.
  7107. (checkIntegrity): New function.
  7108. * src/NullFileAllocationMonitor.h: New class.
  7109. * src/MetalinkChunkChecksum.h: New class.
  7110. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. To decrease CPU usage in bittorrent download, calculation results in
  7112. BitfieldMan were cached and realtime fetching PeerObject was removed
  7113. with WeakHandle introduced. Option values are set to the objects
  7114. by setter before download begins.
  7115. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  7116. * src/DefaultBtRequestFactory.h
  7117. (dispatcher): BtMessageDispatcherHandle ->
  7118. BtMessageDispatcherWeakHandle.
  7119. (messageFactory): New variable.
  7120. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  7121. BtMessageDispatcherWeakHandle.
  7122. (setBtMessageFactory): New function.
  7123. * src/DefaultBtMessageDispatcher.cc:
  7124. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  7125. from Option.
  7126. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  7127. feating the value from Option.
  7128. Use messageFactory member.
  7129. * src/PeerInteractionCommand.cc
  7130. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  7131. Add reverse dependencies to factory object.
  7132. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  7133. dispatcher.
  7134. Set messageFactory to receiver.
  7135. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  7136. btInteractive.
  7137. Set receiver to peerObject.
  7138. Set maxDownloadSpeedLimit to this.
  7139. (executeInternal): Use maxDownloadSpeedLimit member.
  7140. * src/BtChokeMessage.cc
  7141. (doReceivedAction): Use dispatcher, requestFactory member.
  7142. (onSendComplete): Use dispatcher member.
  7143. * src/PeerInteractionCommand.h
  7144. (maxDownloadSpeedLimit): New variable.
  7145. * src/DefaultBtMessageReceiver.h
  7146. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7147. (dispatcher):
  7148. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7149. (messageFactory): New variable.
  7150. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7151. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7152. (setDispatcher):
  7153. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7154. (setBtMessageFactory): New function.
  7155. * src/DefaultBtInteractive.cc
  7156. (initiateHandshake): Use messageFactory member.
  7157. (addBitfieldMessageToQueue): Use messageFactory member.
  7158. (addAllowedFastMessageToQueue): Use messageFactory member.
  7159. (decideChoking): Use messageFactory member.
  7160. (checkHave): Use messageFactory member.
  7161. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  7162. (receiveMessages): Use maxDownloadSpeedLimit member.
  7163. (decideInterest): Use messageFactory member.
  7164. * src/BtRequestMessage.cc
  7165. (doReceivedAction): Use messageFactory, dispatcher member.
  7166. (onQueued): Use dispatcher member.
  7167. * src/BtPieceMessage.cc
  7168. (doReceivedAction): Use dispatcher member.
  7169. (send): Use peerConnection member.
  7170. (onWrongPiece): Use requestFactory member.
  7171. (handleChokingEvent): Use messageFactory, dispatcher member.
  7172. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  7173. * src/BtMessageDispatcher.h
  7174. (BtMessageDispatcherWeakHandle): New type definition.
  7175. * src/SimpleBtMessage.cc
  7176. (send): Use peerConnection member.
  7177. * src/BtRejectMessage.cc
  7178. (doReceivedAction): Use dispatcher member.
  7179. * src/DefaultBtMessageDispatcher.h
  7180. (Option.h): Removed include.
  7181. (messageFactory): New variable.
  7182. (option): Removed.
  7183. (maxUploadSpeedLimit): New variable.
  7184. (requestTimeout): New variable.
  7185. (DefaultBtMessageDispatcher): Removed option.
  7186. Added maxUploadSpeedLimit, requestTimeout.
  7187. (setOption): Removed.
  7188. (getOption): Removed.
  7189. (setMaxUploadSpeedLimit): New function.
  7190. (setRequestTimeout): New function.
  7191. (setBtMessageFactory): New function.
  7192. * src/DefaultBtInteractive.h
  7193. (btMessageReceiver):
  7194. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7195. (dispatcher):
  7196. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7197. (btRequestFactory):
  7198. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7199. (peerConnection):
  7200. PeerConnectionHandle -> PeerConnectionWeakHandle
  7201. (messageFactory): New variable.
  7202. (option): Removed.
  7203. (keepAliveInterval): New variable.
  7204. (maxDownloadSpeedLimit): New variable.
  7205. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  7206. (setBtMessageReceiver):
  7207. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7208. (setDispatcher):
  7209. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7210. (setBtRequestFactory):
  7211. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7212. (setPeerConnection):
  7213. PeerConnectionHandle -> PeerConnectionWeakHandle
  7214. (setOption): Removed.
  7215. (setKeepAliveInterval): New function.
  7216. (setMaxDownloadSpeedLimit): New function.
  7217. (setBtMessageFactory): New function.
  7218. * src/BitfieldMan.h
  7219. (cachedNumMissingBlock): New variable.
  7220. (cachedNumFilteredBlock): New variable.
  7221. (cachedCompletedLength): New variable.
  7222. (cachedFilteredComletedLength): New variable.
  7223. (cachedFilteredTotalLength): New variable.
  7224. (countMissingBlockNow): New function.
  7225. (countFilteredBlockNow): New function.
  7226. (getFilteredTotalLengthNow): New function.
  7227. (getCompletedLengthNow): New function.
  7228. (getFilteredCompletedLengthNow): New function.
  7229. (updateCache): New function.
  7230. * src/AbstractBtMessage.h
  7231. (BtMessageDispatcher.h): New include.
  7232. (PeerConnection.h): New include.
  7233. (BtRequestFactory.h): New include
  7234. (BtMessageFactory.h): New include.
  7235. (dispatcher): New variable.
  7236. (messageFactory): New variable.
  7237. (peerConnection: New variable.
  7238. (setBtMessageDispatcher): New function.
  7239. (setPeerConnection): New function.
  7240. (setBtMessageFactory): New function.
  7241. (setBtRequestFactory): New function.
  7242. * src/DefaultBtMessageFactory.cc
  7243. (setCommonProperty): Set dispatcher, requestFactory, this,
  7244. peerConnection to msg.
  7245. * src/BtRegistry.h
  7246. (BT_MESSAGE_RECEIVER): New macro.
  7247. * src/PeerConnection.h
  7248. (PeerConnectionWeakHandle): New type definition.
  7249. * src/BtMessageFactory.h
  7250. (BtMessageFactoryWeakHandle): New type definition.
  7251. * src/BitfieldMan.cc
  7252. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  7253. cachedCompletedLength, cachedFilteredComletedLength,
  7254. cachedFilteredTotalLength.
  7255. Call updateCache().
  7256. (countMissingBlock): Return cachedNumMissingBlock.
  7257. (countMissingBlockNow): New function.
  7258. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  7259. (countFilteredBlockNow): New function.
  7260. (setBit): Call updateCache().
  7261. (unsetBit): Call updateCache().
  7262. (setBitfield): Call updateCache().
  7263. (clearAllBit): Call updateCache().
  7264. (setAllBit): Use setBitInternal instead of setBit.
  7265. Call updateCache().
  7266. (addFilter): Call updateCache().
  7267. (enableFilter): Call updateCache().
  7268. (disableFilter): Call updateCache().
  7269. (clearFilter): Call updateCache().
  7270. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  7271. (getFilteredTotalLengthNow): New function.
  7272. (getCompletedLength): Return cachedCompletedLength.
  7273. (getCompletedLengthNow): New function.
  7274. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  7275. (getFilteredCompletedLengthNow): New function.
  7276. (updateCache): New function.
  7277. * src/BtMessageReceiver.h
  7278. (BtMessageReceiverWeakHandle): New type definition.
  7279. * src/DefaultBtMessageReceiver.cc
  7280. (receiveHandshake): Use messageFactory member.
  7281. (sendHandshake): Use messageFactory member.
  7282. (receiveMessage): Use messageFactory member.
  7283. * src/DefaultBtMessageFactory.h
  7284. (dispatcher): New variable.
  7285. (requestFactory): New variable.
  7286. (peerConnection): New variablle.
  7287. (setBtMessageDispatcher): New function.
  7288. (setBtRequestFactory): New function.
  7289. (setPeerConnection): New function.
  7290. * src/SharedHandle.h
  7291. (RefCount): New class.
  7292. (WeakHandle): New class.
  7293. * src/PeerObject.h
  7294. (BtMessageReceiver.h): New include.
  7295. (PeerObject): Added btMessageReceiver.
  7296. (btMessageReceiver): New variable.
  7297. * src/Util.cc
  7298. (countBit): Simplified.
  7299. * src/BtCancelMessage.cc
  7300. (doReceivedAction): Use dispatcher member.
  7301. * src/BtRequestFactory.h
  7302. (BtRequestFactoryWeakHandle): New type definition.
  7303. * src/PeerStorage.h
  7304. (downloadSpeed): int -> uint32_t
  7305. (uploadSpeed): int -> uint32_t
  7306. (sessionDownloadLength): long long int -> uint64_t
  7307. (sessionUploadLength): long long int -> uint64_t
  7308. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. To add RecoverableException, FatalException:
  7310. * src/AbstractCommand.cc
  7311. (onAbort): Exception -> RecoverableException
  7312. * src/PeerAbstractCommand.h
  7313. (RecoverableException.h): New include.
  7314. (onAbort): Exception -> RecoverableException.
  7315. * src/PeerInteractionCommand.cc
  7316. (onAbort): Exception -> RecoverableException.
  7317. * src/PeerAbstractCommand.cc
  7318. (execute): Exception -> RecoverableException.
  7319. (onAbort): Exception -> RecoverableException.
  7320. * src/TorrentRequestInfo.cc
  7321. (execute): Exception -> RecoverableException.
  7322. * src/MetalinkRequestInfo.cc
  7323. (execute): Exception -> RecoverableException.
  7324. * src/MetaFileUtil.cc: RecoverableException.
  7325. * src/AbstractCommand.h
  7326. (onAbort): Exception -> RecoverableException.
  7327. * src/DlRetryEx.h: Exception -> RecoverableException.
  7328. * src/DlAbortEx.h: Exception -> RecoverableException.
  7329. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  7330. * src/Util.cc: Exception -> RecoverableException.
  7331. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  7332. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  7333. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  7334. To make ID static const int
  7335. * src/BtInterestedMessage.h
  7336. (ID_t): Removed.
  7337. (ID): New variable.
  7338. (getId): Made non-const.
  7339. * src/BtPieceMessage.h
  7340. (ID_t): Removed.
  7341. (ID): New variable.
  7342. (getId): Made non-const.
  7343. * src/BtChokeMessage.h
  7344. (ID_t): Removed.
  7345. (ID): New variable.
  7346. (getId): Made non-const.
  7347. * src/BtHaveAllMessage.h
  7348. (ID_t): Removed.
  7349. (ID): New variable.
  7350. (getId): Made non-const.
  7351. * src/BtKeepAliveMessage.h
  7352. (ID_t): Removed.
  7353. (ID): New variable.
  7354. (getId): Made non-const.
  7355. * src/BtHandshakeMessage.h
  7356. (ID): New variable.
  7357. (getId): Made non-const.
  7358. * src/BtSuggestPieceMessage.h
  7359. (ID_t): Removed.
  7360. (ID): New variable.
  7361. (getId): Made non-const.
  7362. * src/BtPortMessage.h
  7363. (ID_t): Removed.
  7364. (ID): New variable.
  7365. (getId): Made non-const.
  7366. * src/AbstractBtMessage.h
  7367. (id): Removed.
  7368. (AbstractBtMessage): Removed id.
  7369. (getId): Removed.
  7370. * src/BtHaveMessage.h
  7371. (ID_t): Removed.
  7372. (ID): New variable.
  7373. (getId): Made non-const.
  7374. * src/BtAllowedFastMessage.h
  7375. (ID_t): Removed.
  7376. (ID): New variable.
  7377. (getId): Made non-const.
  7378. * src/BtCancelMessage.h
  7379. (ID_t): Removed.
  7380. (ID): New variable.
  7381. (getId): Made non-const.
  7382. * src/BtNotInterestedMessage.h
  7383. (ID_t): Removed.
  7384. (ID): New variable.
  7385. (getId): Made non-const.
  7386. * src/BtChokeMessage.h
  7387. (ID_t): Removed.
  7388. (ID): New variable.
  7389. (getId): Made non-const.
  7390. * src/BtRejectMessage.h
  7391. (ID_t): Removed.
  7392. (ID): New variable.
  7393. (getId): Made non-const.
  7394. * src/BtBitfieldMessage.h
  7395. (ID_t): Removed.
  7396. (ID): New variable.
  7397. (getId): Made non-const.
  7398. * src/BtUnchokeMessage.h
  7399. (ID_t): Removed.
  7400. (ID): New variable.
  7401. (getId): Made non-const.
  7402. * src/BtRequestMessage.h
  7403. (ID_t): Removed.
  7404. (ID): New variable.
  7405. (getId): Made non-const.
  7406. * src/BtHaveMessage.h
  7407. (ID_t): Removed.
  7408. (ID): New variable.
  7409. (getId): Made non-const.
  7410. To add --force-truncate command-line option and a check whether
  7411. the file already exists:
  7412. * src/DirectDiskAdaptor.h
  7413. (getFilePath): Made virtual public.
  7414. * src/MultiDiskAdaptor.h
  7415. (File.h): New include.
  7416. (DiskWriterEntry::fileEntry): Made private.
  7417. (DiskWriterEntry::fileExists): New function.
  7418. (DiskWriterEntry::getFileEntry): New function.
  7419. (fileExists): New function.
  7420. (getFilePath): New function.
  7421. * src/TorrentRequestInfo.cc
  7422. (FatalException.h): New include.
  7423. (message.h): New include.
  7424. (RecoverableException.h): New include.
  7425. (execute): Added a check whether file is already exists or not.
  7426. * src/DiskAdaptor.h
  7427. (fileExists): New function.
  7428. (getFilePath): New function.
  7429. * src/main.cc
  7430. (showUsage): Added an explanation of --force-truncate command-line
  7431. option.
  7432. (main): Added --force-truncate command-line option.
  7433. * src/Exception.h
  7434. (setMsg): buf[256] -> buf[1024]
  7435. * src/CopyDiskWriter.h
  7436. (getFilePath): Made public virtual.
  7437. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  7438. (fileExists): New function.
  7439. * src/DownloadEngineFactory.cc
  7440. (newTorrentConsoleEngine): Don't open file here.
  7441. * src/message.h
  7442. (EX_FILE_ALREADY_EXISTS): New definition.
  7443. * src/prefs.h
  7444. (PREF_FOECE_TRUNCATE): New definition.
  7445. * src/HttpResponseCommand.cc
  7446. (handleDefaultEncoding): Added a check whether the file already exists.
  7447. * src/SegmentMan.h
  7448. (fileExists): New function.
  7449. (shouldCancelDownloadForSafety): New function.
  7450. * src/FtpNegotiateCommand.cc
  7451. (recvSize): Added a check whether the file already exists.
  7452. * src/AbstractSingleDiskAdaptor.cc
  7453. (File.h): New include.
  7454. (fileExists): New function.
  7455. * src/AbstractSingleDiskAdaptor.h
  7456. (getFilePath): Removed.
  7457. (fileExists): New function.
  7458. * src/SegmentMan.cc
  7459. (fileExists): New function.
  7460. (shouldCancelDownloadForSafety): New function.
  7461. To fix regression bug in torrent downloading:
  7462. * src/DefaultBtRequestFactory.cc
  7463. (doChokedAction): New function.
  7464. * src/DefaultBtRequestFactory.h
  7465. (doChokedAction): New function.
  7466. * src/DefaultBtMessageDispatcher.cc
  7467. (doChokedAction): Do not delete request if its target is in allowed
  7468. fast set.
  7469. * src/DefaultBtInteractive.cc
  7470. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  7471. (sendKeepAlive): Send keep alive message even if the outgoing message
  7472. queue is not empty.
  7473. (decideInterest): Simplified the code.
  7474. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  7475. it is already called when BtChokeMessage is received from a peer.
  7476. * src/BtRequestFactory.h
  7477. (doChokedAction): New function.
  7478. To clean up code:
  7479. * src/PeerInteractionCommand.h
  7480. (executeInternal): Added virtual keyword explicitly.
  7481. (prepareForRetry): Added virtual keyword explicitly.
  7482. (prepareForNextPeer): Added virtual keyword explicitly.
  7483. (onAbort): Added virtual keyword explicitly.
  7484. * src/RequestSlot.cc
  7485. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  7486. * src/BtPieceMessage.cc
  7487. (doReceivedAction): Added a debug log of piece's bitfield.
  7488. * src/Piece.h
  7489. (getBitfieldLength): New function.
  7490. * src/ByteArrayDiskWriter.cc
  7491. (clear): Added buf = 0 to avoid double free corruption.
  7492. * src/FileAllocator.cc
  7493. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  7494. Added cp.reset().
  7495. * src/BitfieldMan.h
  7496. (operator=): Rewritten.
  7497. * src/BitfieldMan.cc
  7498. (BitfieldMan): Initialized bitfield, useBitfield.
  7499. * src/PeerConnection.cc
  7500. (receiveMessage): Added a call to socket->readable() after getting
  7501. message length to avoid possible EOF.
  7502. * src/Util.cc
  7503. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  7504. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7505. To add an ability to pre-allocate file space:
  7506. * src/DirectDiskAdaptor.h: Rewritten.
  7507. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  7508. * src/MultiDiskAdaptor.h: Rewritten.
  7509. * src/DefaultPieceStorage.cc
  7510. (MultiDiskWriter.h): Removed include.
  7511. (PreAllocationDiskWriter.h): Removed include.
  7512. (FileAllocationMonitor.h): New include.
  7513. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  7514. (initStorage): Rewritten.
  7515. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7516. * src/FileAllocator.h: New class.
  7517. * src/FileAllocator.cc: New class.
  7518. * src/FileAllocationMonitor.h: New class.
  7519. * src/FileAllocationMonitor.cc: New class.
  7520. * src/ConsoleFileAllocationMonitor.h: New class.
  7521. * src/ConsoleFileAllocationMonitor.cc: New class.
  7522. * src/AbstractSingleDiskAdaptor.h: New class.
  7523. * src/AbstractSingleDiskAdaptor.cc: New class.
  7524. * src/DiskAdaptor.h
  7525. (Directory.h): Removed include.
  7526. (DiskWriter.h): Removed include.
  7527. (FileEntry.h): Removed include.
  7528. (diskWriter): Removed.
  7529. (DiskAdaptor): Removed diskWriter.
  7530. (openFile): Made pure virtual.
  7531. (closeFile): Made pure virtual.
  7532. (openExistingFile): Made pure virtual.
  7533. (initAndOpenFile): Made pure virtual.
  7534. (writeData): Made pure virtual.
  7535. (readData): Made pure virtual.
  7536. (sha1Sum): Made pure virtual.
  7537. (getStoreDir): Returns const reference of storeDir.
  7538. (DiskAdaptorHandle): New type definition.
  7539. * src/main.cc
  7540. (ConsoleFileAllocationMonitor.h): New include.
  7541. (showUsage): Added default value description of -s option.
  7542. Added the description of --file-allocation option.
  7543. (main): Set default value of --file-allocation option to 'none'.
  7544. Added --file-allocation command-line option.
  7545. Setup FileAllocationMonitorFactory.
  7546. * src/FtpInitiateConnectionCommand.cc
  7547. (executeInternal): Removed diskWriter related processing, which was
  7548. moved to FtpNegotiationCommand.cc.
  7549. * src/DirectDiskAdaptor.cc
  7550. (getFilePath): Made non-const.
  7551. * src/CopyDiskAdaptor.h
  7552. (DiskAdaptor.h): Removed include.
  7553. (DiskWriter.h): Removed include.
  7554. (AbstractSingleDiskAdaptor.h): New include.
  7555. (getFilePath): Made non-const. Added virtual keyword.
  7556. (CopyDiskAdaptor): Removed diskWriter.
  7557. (getTempFile): Returns const reference.
  7558. (CopyDiskAdaptorHandle): New type definition.
  7559. * src/ByteArrayDiskWriter.cc
  7560. (clear): Simplified.
  7561. (initAndOpenFile): Rewritten.
  7562. (openFile): Call initAndOpenFile()
  7563. * src/MultiDiskAdaptor.cc: Rewritten.
  7564. * src/DownloadEngineFactory.cc
  7565. (FileAllocator.h): New include.
  7566. (FileAllocationMonitor.h): New include.
  7567. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7568. create DefaultDiskWriter with file allocator.
  7569. * src/DiskWriter.h
  7570. (initAndOpenFile): Added totalLength argument.
  7571. (openFile): Added totalLength argument.
  7572. * src/prefs.h
  7573. (PREF_FILE_ALLOCATION): New definition.
  7574. (V_PREALLOC): New definition.
  7575. (V_NONE): New definition.
  7576. * src/HttpResponseCommand.cc
  7577. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7578. size.
  7579. * src/FtpNegotiateCommand.cc
  7580. (Util.h): New include.
  7581. (recvSize): Open file here.
  7582. * src/Util.h
  7583. (ullitos): New function.
  7584. * src/CopyDiskWriter.h
  7585. (getFilePath): Made non-const.
  7586. * src/DefaultDiskWriter.h
  7587. (Option.h): New include.
  7588. (totalLength): Removed.
  7589. (DefaultDiskWriter): Removed totalLength.
  7590. (initAndOpenFile): Added totalLength argument.
  7591. (DefaultDiskWriterHandle): New type definition.
  7592. (createNewDiskWriter): New function.
  7593. * src/Util.cc
  7594. (ullitos): New function.
  7595. * src/DefaultDiskWriter.cc
  7596. (message.h): New include.
  7597. (FileAllocator.h): New include.
  7598. (prefs.h): New include.
  7599. (Util.h): New include.
  7600. (DefaultDiskWriter): Removed totalLength.
  7601. (initAndOpenFile): Added file allocation.
  7602. (createNewDiskWriter): New function. Just for temporary solution.
  7603. It will be rewritten later.
  7604. * src/DiskAdaptor.cc
  7605. (DiskAdaptor): Removed diskWriter.
  7606. * src/AbstractDiskWriter.cc
  7607. (LogFactory.h): New include.
  7608. (AbstractDiskWriter): Added fileAllocator, logger.
  7609. (openFile): Added totalLength argument.
  7610. * src/AbstractDiskWriter.h
  7611. (FileAllocator.h): New include.
  7612. (Logger.h): New include.
  7613. (fileAllocator): New variable.
  7614. (logger): New variable.
  7615. (openFile): Added totalLength argument. Added virtual keyword
  7616. explicitly.
  7617. (openExistingFile): Added totalLength argument. Added virtual keyword
  7618. explicitly.
  7619. (closeFile): Added virtual keyword explicitly.
  7620. (sha1Sum): Added virtual keyword explicitly.
  7621. (writeData): Added virtual keyword explicitly.
  7622. (readData): Added virtual keyword explicitly.
  7623. (setFileAllocator): New function.
  7624. * src/DefaultPieceStorage.h
  7625. (FileAllocator.h): New include.
  7626. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7627. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7628. * src/FileProgressMonitor.h: New class.
  7629. To compile aria2 on PC-BSD:
  7630. * src/DefaultBtContext.cc
  7631. (libgen.h): New include.
  7632. To fix memory leak:
  7633. * src/Exception.h
  7634. (~Exception): Delete cause. Fixed memory leak.
  7635. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Rewritten a portion of bittorrent implementation:
  7637. * src/BtMessageValidator.h: New class.
  7638. * src/BtBitfieldMessageValidator.h: New class.
  7639. * src/BtHandshakeMessageValidator.h: New class.
  7640. * src/BtRequestMessageValidator.h: New class.
  7641. * src/BtSuggestPieceMessageValidator.h: New class.
  7642. * src/BtAllowedFastMessageValidator.h: New class.
  7643. * src/BtRejectMessageValidator.h: New class.
  7644. * src/BtCancelMessageValidator.h: New class.
  7645. * src/BtPieceMessageValidator.h: New class.
  7646. * src/BtHaveMessageValidator.h: New class.
  7647. * src/BtEventListener.h: New class.
  7648. * src/AbstractBtEventListener.h: New class.
  7649. * src/BtEvent.h: New class.
  7650. * src/BtChokingEvent.h: New class.
  7651. * src/BtChokedEvent.h: New class.
  7652. * src/BtCancelSendingPieceEvent.h: New class.
  7653. * src/BtAbortOutstandingRequestEvent.h: New class.
  7654. * src/Randomizer.h: New class.
  7655. * src/SimpleRandomizer.h: New class.
  7656. * src/BtMessage.h: New class.
  7657. * src/AbstractBtMessage.h: New class.
  7658. * src/SimpleBtMessage.h: New class.
  7659. * src/BtHaveMessage.h: New class.
  7660. * src/BtInterestedMessage.h: New class.
  7661. * src/BtAllowedFastMessage.h: New class.
  7662. * src/BtUnchokeMessage.h: New class.
  7663. * src/BtCancelMessage.h: New class.
  7664. * src/BtNotInterestedMessage.h: New class.
  7665. * src/BtChokeMessage.h: New class.
  7666. * src/BtHaveNoneMessage.h: New class.
  7667. * src/BtHandshakeMessage.h: New class.
  7668. * src/BtSuggestPieceMessage.h: New class.
  7669. * src/BtHaveMessage.h: New class.
  7670. * src/BtPieceMessage.h: New class.
  7671. * src/BtHaveAllMessage.h: New class.
  7672. * src/BtKeepAliveMessage.h: New class.
  7673. * src/BtPortMessage.h: New class.
  7674. * src/BtRejectMessage.h: New class.
  7675. * src/BtBitfieldMessage.h: New class.
  7676. * src/BtRequestMessage.h: New class.
  7677. * src/DefaultBtRequestFactory.h: New class.
  7678. * src/DefaultBtMessageReceiver.h: New class.
  7679. * src/BtInteractive.h: New class.
  7680. * src/BtMessageDispatcher.h: New class.
  7681. * src/DefaultBtMessageDispatcher.h: New class.
  7682. * src/DefaultBtInteractive.h: New class.
  7683. * src/BitfieldManFactory.h: New class.
  7684. * src/HandleRegistry.h: New class.
  7685. * src/BtMessageFactory.h: New class.
  7686. * src/BtMessageReceiver.h: New class.
  7687. * src/DefaultBtMessageFactory.h: New class.
  7688. * src/PeerObject.h: New class.
  7689. * src/BtRequestFactory.h: New class.
  7690. * src/SuggestPieceMessage.h: Removed.
  7691. * src/PortMessage.h: Removed.
  7692. * src/SuggestPieceMessage.h: Removed.
  7693. * src/KeepAliveMessage.h: Removed.
  7694. * src/HandshakeMessage.h: Removed.
  7695. * src/PeerInteraction.h: Removed.
  7696. * src/UnchokeMessage.h: Removed.
  7697. * src/PieceMessage.h: Removed.
  7698. * src/RequestMessage.h: Removed.
  7699. * src/InterestedMessage.h: Removed.
  7700. * src/HaveMessage.h: Removed.
  7701. * src/CancelMessage.h: Removed.
  7702. * src/RejectMessage.h: Removed.
  7703. * src/AllowedFastMessage.h: Removed.
  7704. * src/HaveNoneMessage.h: Removed.
  7705. * src/SimplePeerMessage.h: Removed.
  7706. * src/HaveAllMessage.h: Removed.
  7707. * src/BitfieldMessage.h: Removed.
  7708. * src/PeerMessageFactory.h: Removed.
  7709. * src/NotInterestedMessage.h: Removed.
  7710. * src/ChokeMessage.h: Removed.
  7711. * src/PeerMessage.h: Removed.
  7712. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. To know root cause of exception:
  7714. * src/Exception.h
  7715. (cause): New variable.
  7716. (Exception): Added a parameter.
  7717. (getMsg): Return const reference to msg.
  7718. (getCause): New function.
  7719. * src/DlRetryEx.h
  7720. (DlRetryEx): Added a parameter 'cause'.
  7721. Added an overloaded constructor.
  7722. (DlAbortEx): Added a parameter 'cause'.
  7723. Added an overloaded constructor.
  7724. * src/SimpleLogger.cc
  7725. (writeLog): Log nested exception messages recursively.
  7726. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. * src/DefaultBtProgressInfoFile.cc
  7728. (load): Fixed memory leak when the infohash doesn't match.
  7729. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. * src/DefaultPeerStorage.cc
  7731. (calculateStat): Simplified the code by combining 2 loops into 1.
  7732. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  7734. for BitTorrent download:
  7735. * src/PeerAbstractCommand.cc
  7736. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  7737. * src/main.cc:
  7738. (timeoutSpecified): Removed.
  7739. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  7740. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  7741. * src/TorrentRequestInfo.cc
  7742. (timeoutSpecified): Removed.
  7743. (torrentHandler): Removed timeoutSpecified and the adjustment of
  7744. timeout value.
  7745. * src/prefs.h
  7746. (PREF_BT_TIMEOUT): New definition.
  7747. Delete unused variables:
  7748. * src/TorrentRequestInfo.cc
  7749. (requestInfo): Removed.
  7750. Move setSignalHander to Util::setGlobalSignalHandler:
  7751. * src/TorrentRequestInfo.cc:
  7752. setSignalHander -> Util::setGlobalSignalHandler
  7753. * src/main.cc
  7754. (setSignalHander): Removed.
  7755. (main): setSignalHander -> Util::setGlobalSignalHandler
  7756. * src/Util.h
  7757. (setGlobalSignalHandler): New function.
  7758. * src/Util.cc
  7759. (setGlobalSignalHandler): New function.
  7760. * src/UrlRequestInfo.cc:
  7761. setSignalHander -> Util::setGlobalSignalHandler
  7762. Reset peer status in order to exit gracefully:
  7763. * src/PeerAbstractCommand.cc
  7764. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  7765. To fix the bug that causes the number of bytes uploaded is not saved
  7766. to .aria2 file:
  7767. * src/DefaultPeerStorage.h
  7768. (removedPeerSessionDownloadLength): New variable.
  7769. (removedPeerSessionUploadLength): New variable.
  7770. * src/DefaultPeerStorage.cc
  7771. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  7772. removedPeerSessionUploadLength(0).
  7773. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  7774. through all peers, and then add removedPeerSessionDownloadLength(
  7775. removedPeerSessionUploadLength) to it.
  7776. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  7777. (to) the peer to removedPeerSessionDownloadLength
  7778. (removedPeerSessionUploadLength).
  7779. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. To add Metalink location option:
  7781. * src/MetalinkRequestInfo.cc
  7782. (execute): Call MetalinkEntry::setLocationPreference()
  7783. * src/main.cc
  7784. (showUsage): Added the help message for --metalink-location option.
  7785. (main): Added --metalink-location option.
  7786. * src/prefs.h
  7787. (PREF_METALINK_LOCATION): New definition.
  7788. * src/MetalinkEntry.cc
  7789. (AddLocationPreference): New function object.
  7790. (setLocationPreference): New function.
  7791. * src/Xml2MetalinkProcessor.cc
  7792. (getResource): Set location attribute to MetalinkResource
  7793. To show URLs to download
  7794. * src/UrlRequestInfo.h
  7795. (printUrls): New function.
  7796. To add multiple <file> Metalink support:
  7797. * src/MetalinkEntry.h
  7798. (MetalinkResources): Removed.
  7799. (setLocationPreference): New function.
  7800. (MetalinkEntryHandle): New type definition.
  7801. (MetalinkEntries): New type definition.
  7802. * src/Xml2MetalinkProcessor.h
  7803. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7804. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7805. (parseFile): Metalinker* -> MetalinkerHandle
  7806. * src/UrlRequestInfo.h
  7807. (execute): RequestInfo* -> RequestInfos
  7808. * src/MetalinkRequestInfo.cc
  7809. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  7810. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  7811. (execute): RequestInfo* -> RequestInfos
  7812. Added multiple <file> support. Print filename when it is queued.
  7813. * src/MetalinkRequestInfo.h
  7814. (execute): RequestInfo* -> RequestInfos
  7815. (getDownloadEngine): Removed.
  7816. * src/RequestInfo.h
  7817. (RequestInfoHandle): New type definition.
  7818. (RequestInfos): New type definition.
  7819. (execute): RequestInfo* -> RequestInfos
  7820. (getDownloadEngine): Removed.
  7821. * src/MetalinkResource.h
  7822. (MetalinkResourceHandle): New type definition.
  7823. (MetalinkResources): New type definition.
  7824. * src/MetalinkEntry.cc
  7825. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7826. because the element is now of type MetalinkResourceHandle.
  7827. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7828. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7829. (dropUnsupportedResource): Removed the deletion of the elements of
  7830. resources because the element is now of type MetalinkResourceHandle.
  7831. * src/Xml2MetalinkProcessor.cc
  7832. (parseFile): Metalinker* -> MetalinkerHandle
  7833. MetalinkEntry* -> MetalinkEntryHandle
  7834. Removed try-catch block.
  7835. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7836. MetalinkResource* -> MetalinkResourceHandle
  7837. Removed try-catch block.
  7838. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7839. Free result by using xmlXPathFreeObject()
  7840. * src/Metalinker.cc
  7841. (~Metalinker): Removed the deletion of entries.
  7842. MetalinkEntry* -> MetalinkEntryHandle
  7843. (queryEntry): Add multiple <file> Metalink support.
  7844. * src/Metalinker.h
  7845. (MetalinkEntries): Removed.
  7846. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7847. * src/MetalinkProcessor.h
  7848. (parseFile): Metalinker* -> MetalinkerHandle
  7849. Bug fixes:
  7850. * src/PeerChokeCommand.cc
  7851. (execute): cat01->cat02
  7852. * src/DefaultPieceStorage.cc
  7853. (DefaultPieceStorage): Added diskAdaptor(0)
  7854. * src/TrackerWatcherComand.cc:
  7855. (execute): Use btAnnounce->noMoreAnnounce()
  7856. to determin whether the function returns true or not.
  7857. * src/TrackerUpdateCommand.cc:
  7858. (execute): Use btAnnounce->noMoreAnnounce()
  7859. to determin whether the function returns true or not.
  7860. * src/FtpConnection.cc
  7861. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7862. This is the fix of the busy loop bug.
  7863. * src/DownloadCommand.cc
  7864. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7865. cached PeerStat.
  7866. The value of "name" entry in torrent file is now set by
  7867. *DiskAdaptor::setTopDir(...) methods.
  7868. * src/MultiDiskAdaptor.h
  7869. (topDir): New variable.
  7870. (setTopDir): New function.
  7871. (getTopDir): New function.
  7872. * src/MultiDiskAdaptor.cc
  7873. (getFilePath): Concat storDir, "/" and topDir.
  7874. (mkdir): Use getFilePath() to get the directory path for output.
  7875. * src/DefaultPieceStorage.cc
  7876. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7877. CopyDiskAdaptor.
  7878. * src/CopyDiskAdaptor.h
  7879. (topDir): New variable.
  7880. (setTopDir): New function.
  7881. (getTopDir): New function.
  7882. * src/CopyDiskAdaptor.cc
  7883. (fixFilename): Updated.
  7884. Misc
  7885. * src/UrlRequestInfo.h
  7886. (e): Removed.
  7887. (UrlRequestInfo): Removed e.
  7888. (getDownloadEngine): Removed.
  7889. * src/UrlRequestInfo.cc
  7890. (handler): Rewritten.
  7891. (printUrls): New function.
  7892. (execute): Call printUrls().
  7893. * src/HandshakeMessage.cc
  7894. (check): peerinteraction->getBtContext() -> btContext
  7895. * src/PeerInteraction.h
  7896. (getBtContext): Removed.
  7897. * src/TorrentRequestInfo.h
  7898. (execute): RequestInfo* -> RequestInfos
  7899. (getDownloadEngine): Removed.
  7900. * src/TorrentRequestInfo.cc
  7901. (haltRequested): Removed.
  7902. (btHaltRequested): New variable.
  7903. (torrentHandler): haltRequested -> btHaltRequested
  7904. (execute): RequestInfo* -> RequestInfos
  7905. * src/TorrentConsoleDownloadEngine.cc
  7906. (afterEachIteration): haltRequested -> btHaltRequested.
  7907. * src/ConsoleDownloadEngine.h
  7908. (initStatistics): Added virtual.
  7909. (calculateStatistics): Added virtual.
  7910. (onEndOfRun): Added virtual.
  7911. (afterEachIteration): Added virtual.
  7912. * src/ConsoleDownloadEngine.cc
  7913. (haltRequested): New variable.
  7914. (afterEachIteration): New function.
  7915. * src/main.cc
  7916. (requestInfo): Removed.
  7917. * src/SegmentMan.cc
  7918. (findSlowerSegmentEntry): Refactored.
  7919. * Release 0.9.0
  7920. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7922. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7923. * src/TorrentMan.h: Removed.
  7924. * src/TorrentMan.cc: Removed.
  7925. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7926. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7927. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7928. * src/PeerAbstractCommand.cc: Use btRuntime.
  7929. * src/BtContextAwareCommand.h: New class.
  7930. * src/FileEntry.h: Added accessor methods for following variables.
  7931. (path): Made private.
  7932. (length): Made private.
  7933. (offset): Made private.
  7934. (extracted): Made private.
  7935. (requested): Made private.
  7936. (FileEntries): New definition.
  7937. (FileEntryHandle): New definition.
  7938. * src/FileEntry.cc: New file.
  7939. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7940. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7941. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7942. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7943. * src/PieceStorage.h: New file.
  7944. * src/PeerInteractionCommand.h: Use btContext.
  7945. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7946. btRuntime.
  7947. * src/DefaultBtProgressInfoFile.h: New file.
  7948. * src/DefaultBtProgressInfoFile.cc: New file.
  7949. * src/File.cc
  7950. (Util.h): New include.
  7951. (mkdirs): New function.
  7952. * src/MultiDiskAdaptor.h
  7953. (mkdir): New function.
  7954. * src/PeerListProcessor.h
  7955. (Peers): Removed.
  7956. * src/PeerInteraction.h
  7957. (torrentMan): Removed.
  7958. (btContext): New variable.
  7959. (peerStorage): New variable.
  7960. (pieceStorage): New variable.
  7961. (btAnnounce): New variable.
  7962. (getTorrentMan): Removed.
  7963. (getBtContext): New function.
  7964. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7965. btAnnounce.
  7966. * src/HandshakeMessage.h
  7967. (TorrentMan.h): Removed.
  7968. * src/HandshakeMessage.cc: Use btContext.
  7969. * src/DefaultBtAnnounce.cc: New file.
  7970. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7971. * src/DefaultPieceStorage.cc: New file.
  7972. * src/DefaultBtContext.h: New file.
  7973. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7974. Use the accessor methods of FileEntry.
  7975. * src/CookieBox.cc: Updated to use Util::slice().
  7976. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7977. * src/common.h (SharedHandle.h): New include.
  7978. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7979. pieceStorage.
  7980. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7981. * src/DiskAdaptor.h
  7982. (topDir): Removed.
  7983. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7984. (setTopDir): Removed.
  7985. (getTopDir): Removed.
  7986. * src/BtContext.h: New file.
  7987. * src/DefaultPeerStorage.h: New file.
  7988. * src/PieceMessage.h (TorrentMan.h): Removed.
  7989. * src/RequestMessage.h (TorrentMan.h): Removed.
  7990. * src/TorrentDownloadEngine.h
  7991. (uploadLength): New variable.
  7992. (btContext): New variable.
  7993. (btRuntime): New variable.
  7994. (pieceStorage): New variable.
  7995. (peerStorage): New variable.
  7996. (btAnnounce): New variable.
  7997. (btProgressInfoFile): New variable.
  7998. (torrentMan): Removed.
  7999. (setBtContext): New function.
  8000. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  8001. peerStorage, btAnnounce, btProgressInfoFile.
  8002. * src/Piece.h
  8003. (toString): New function.
  8004. (Pieces): New type definition.
  8005. * src/Peer.h
  8006. (active): New variable.
  8007. (Peer): Added active.
  8008. (activate): Set active to true.
  8009. (deactivate): Set active to false.
  8010. (isActive): New function.
  8011. (Peers): New type definition.
  8012. * src/DirectDiskAdaptor.cc
  8013. (getFilePath): Use the accessor methods of FileEntry.
  8014. * src/TorrentConsoleDownloadEngine.h
  8015. (afterEachIteration): New function.
  8016. * src/TorrentConsoleDownloadEngine.cc
  8017. (haltRequested): New variable.
  8018. (sendStatistics): Use pieceStorage, btRuntime.
  8019. (afterEachIteration): New function.
  8020. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  8021. * src/Directry.h
  8022. (Directory): New function.
  8023. (DirectoryHandle): New type definition.
  8024. * src/BtProgressInfoFile.h: New file.
  8025. * src/RequestMessage.cc: Use pieceStorage.
  8026. * src/BtRuntime.h: New file.
  8027. * src/DefaultBtContext.cc: New file.
  8028. * src/BitfieldMan.h
  8029. (getCompletedLength): New function(private).
  8030. (getCompletedLength): New function.
  8031. (getFilteredCompletedLength): New function.
  8032. * src/BitfieldMan.h
  8033. (getCompletedLength): New function(private).
  8034. (getCompletedLength): New function.
  8035. (getFilteredCompletedLength): New function.
  8036. * src/MultiDiskAdaptor.cc
  8037. (mkdir): New function.
  8038. (openFile): Call mkdir().
  8039. (initAndOpenFile): Call mkdir().
  8040. * src/CancelMessage.h
  8041. (TorrentMan.h): Removed.
  8042. * src/RejectMessage.h
  8043. (TorrentMan.h): Removed.
  8044. * src/DownloadEngineFactory.cc
  8045. (DefaultPieceStorage.h): New include.
  8046. (DefaultPeerStorage.h): New include.
  8047. (DefaultBtAnnounce.h): New include.
  8048. (DefaultBtProgressInfoFile.h): New include.
  8049. (newTorrentConsoleEngine): Rewritten.
  8050. * src/ShareRatioSeedCriteria.h
  8051. (torrentMan): Removed.
  8052. (btContext): New variable.
  8053. (peerStorage): New variable.
  8054. (btRuntime): New variable.
  8055. (evaluate): Use btContext, btRuntime, peerStorage.
  8056. * src/AnnounceTier.h: New file.
  8057. * src/BtAnnounce.h: New file.
  8058. * src/BtRegistry.h: New file.
  8059. * src/PeerInitiateConnectionCommand.h: Added btContext.
  8060. * src/PeerConnection.h (TorrentMan.h): Removed.
  8061. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  8062. * src/Util.h
  8063. (slice): Added an argument.
  8064. * src/Util.cc
  8065. (slice): Added an argument to control whether trim is made or not.
  8066. * src/PeerStorage.h: New file.
  8067. * src/BtRegistry.cc: New file.
  8068. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  8069. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  8070. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  8071. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  8072. * src/TorrentRequestInfo.h
  8073. (e): Removed.
  8074. (showFileEntry): Added an argument.
  8075. (getDownloadEngine): Return 0.
  8076. * src/DefaultBtAnnounce.h: New file.
  8077. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  8078. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  8079. * src/PeerMessageFactory.h
  8080. (btContext): New variable.
  8081. (pieceStorage): New variable.
  8082. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  8083. btAnnounce.
  8084. * src/DiskAdaptor.cc
  8085. (DiskAdaptor): Removed topDir.
  8086. (~DiskAdaptor): Removed topDir.
  8087. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  8088. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  8089. * src/File.h (mkdirs): New function.
  8090. * src/DefaultPeerStorage): New file.
  8091. * src/DownloadEngineFactory.h
  8092. (newTorrentConsoleEngine): Use btContext.
  8093. * src/BtContextAwareCommand.cc: New file.
  8094. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  8095. * src/PeerMessage.h
  8096. (btContext): New variable.
  8097. (peerStorage): New variable.
  8098. (pieceStorage): New variable.
  8099. (setBtContext): New function.
  8100. * src/Directry.cc
  8101. (Directory): New function.
  8102. (createDir): Do nothing if name.size() == 0.
  8103. * src/AnnounceList.h
  8104. (AnnounceTier): Removed.
  8105. (AnnounceTiers): Removed.
  8106. * src/DefaultPieceStorage.h: New file.
  8107. * src/Piece.cc (toString): New function.
  8108. To fix typo:
  8109. * src/main.cc (showVersion): Fixed typo.
  8110. To fix compile warning:
  8111. * src/DelegatingPeerListProcessor.cc
  8112. (canHandle): Added "return false".
  8113. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  8115. make the process of announce request testable.
  8116. * src/TrackerWatcherCommand.h
  8117. (TimeA2.h): Removed.
  8118. (interval): Removed.
  8119. (checkPoint): Removed.
  8120. (createRequestCommand): Added an argument 'url'.
  8121. (TrackerWatherCommand): Removed interval.
  8122. (createCommand): New function.
  8123. * src/DownloadEngineFactory.cc
  8124. (newTorrentConsoleEngine): Updated according to the changes in
  8125. TrackerWatherCommand.
  8126. * src/TorrentMan.cc
  8127. (DelegatingPeerListProcessor.h): New includes.
  8128. (TorrentMan): Added the initialization of announceInterval.
  8129. (isStoppedAnnounceReady): New function.
  8130. (isCompletedAnnounceReady): New function.
  8131. (isDefaultAnnounceReady): New function.
  8132. (isAnnounceReady): New function.
  8133. (getAnnounceUrl): New function.
  8134. (announceStart): New function.
  8135. (announceFailure): New function.
  8136. (announceSuccess): New function.
  8137. (isAllAnnounceFailed): New function.
  8138. (resetAnnounce): New function.
  8139. (processAnnounceResponse): New function.
  8140. (needMorePeerConnection): New function.
  8141. (noMoreAnnounce): New function.
  8142. * src/TrackerUpdateCommand.h
  8143. (getTrackerResponse): int->size_t
  8144. * src/TorrentMan.h
  8145. (isStoppedAnnounceReady): New function.
  8146. (isCompletedAnnounceReady): New function.
  8147. (isDefaultAnnounceReady): New function.
  8148. (announceInterval): New variable.
  8149. (isAnnounceReady): New function.
  8150. (getAnnounceUrl): New function.
  8151. (announceStart): New function.
  8152. (announceFailure): New function.
  8153. (announceSuccess): New function.
  8154. (isAllAnnounceFailed): New function.
  8155. (resetAnnounce): New function.
  8156. (processAnnounceResponse): New function.
  8157. (needMorePeerConnection): New function.
  8158. (noMoreAnnounce): New function.
  8159. * src/TrackerWatcherCommand.cc
  8160. (TrackerWatherCommand): Removed interval and checkPoint.
  8161. (execute): Rewritten.
  8162. (createCommand): New function.
  8163. (createRequestCommand): Rewritten.
  8164. * src/TrackerUpdateCommand.cc
  8165. (MetaFileUtil.h): Removed.
  8166. (DelegatingPeerListProcessor.h): Removed.
  8167. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  8168. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Request -> RequestHandle:
  8170. * src/HttpResponseCommand.h: Request->RequestHandle
  8171. * src/AbstractCommand.cc: Request->RequestHandle
  8172. * src/HttpDownloadCommand.cc: Request->RequestHandle
  8173. * src/HttpRequestCommand.cc: Request->RequestHandle
  8174. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  8175. * src/AbstractCommand.h: Request->RequestHandle
  8176. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  8177. * src/HttpResponseCommand.cc: Request->RequestHandle
  8178. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  8179. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  8180. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  8181. * src/HttpConnection.h: Request->RequestHandle
  8182. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  8183. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  8184. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8185. * src/DownloadCommand.h: Request->RequestHandle
  8186. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  8187. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  8188. * src/HttpRequestCommand.h: Request->RequestHandle
  8189. * src/FtpNegotiateCommand.h: Request->RequestHandle
  8190. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8191. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  8192. * src/HttpDownloadCommand.h: Request->RequestHandle
  8193. * src/FtpConnection.cc: Request->RequestHandle
  8194. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  8195. * src/UrlRequestInfo.cc: Request->RequestHandle
  8196. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  8197. * src/HttpConnection.h: Request->RequestHandle
  8198. * src/DownloadCommand.cc: Request->RequestHandle
  8199. * src/FtpConnection.h: Request->RequestHandle
  8200. * src/FtpDowndloadCommand.h: Request->RequestHandle
  8201. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  8202. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  8203. * src/Request.h
  8204. (SharedHandle.h): New include.
  8205. (RequestHandle): New type definition.
  8206. (Requests): Redefined.
  8207. To add MULTITRACKER support:
  8208. * src/TrackerWatcherCommand.h
  8209. (createRequestCommand): New function.
  8210. * src/DownloadEngineFactory.cc
  8211. (newTorrentConsoleEngine): Removed req.
  8212. * src/prefs.h
  8213. (PREF_TRACKER_MAX_TRIES): New definition.
  8214. * src/TorrentMan.cc
  8215. (TorrentMan): Removed req. Added trackerNumTry.
  8216. (~TorrentMan): Removed req.
  8217. (setupInternal1): Added announceList.
  8218. * src/TorrentRequestInfo.cc
  8219. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  8220. announces is now specified by PREF_TRACKER_MAX_TRIES.
  8221. * src/main.cc
  8222. (main): Added PREF_TRACKER_MAX_TRIES.
  8223. * src/TorrentMan.h
  8224. (Request.h): Removed.
  8225. (AnnounceList.h): New include.
  8226. (trackerNumTry): New variable.
  8227. (req): Removed.
  8228. (announceList): New variable.
  8229. * src/TrackerWatcherCommand.cc
  8230. (execute): Rewritten.
  8231. (createRequestCommand): New function.
  8232. * src/TrackerUpdateCommand.cc
  8233. (execute): Updated with the use of AnnounceList.
  8234. * src/AnnounceList.cc: New class.
  8235. * src/AnnounceList.h: New class.
  8236. To fix typo:
  8237. * src/prefs.h
  8238. (PREF_MAX_TRIES): max_try->max_tries
  8239. To not to decode "+" as space in URL decode:
  8240. * src/Util.cc
  8241. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  8242. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. To add timeout to async name resolution:
  8244. * src/AbstractCommand.h
  8245. (nameResolveFinished): New function. This is not elegant way. It needs
  8246. to be more refined.
  8247. (nameResolverCheck): New variable.
  8248. * src/AbstractCommand.cc
  8249. (AbstractCommand): Added nameResolverCheck.
  8250. (execute): Added the check whether the name resolution has finished.
  8251. (setNameResolverCheck): Set nameResolverCheck to true.
  8252. (disableNameResolverCheck): Set nameResolverCheck to false.
  8253. (nameResolverFinished): New function.
  8254. * src/FtpInitiateConnectionCommand.h
  8255. (nameResolverFinished): New function.
  8256. * src/FtpInitiateConnectionCommand.cc
  8257. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8258. * src/HttpInitiateConnectionCommand.h
  8259. (nameResolverFinished): New function.
  8260. * src/HttpInitiateConnectionCommand.cc
  8261. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8262. * src/prefs.h
  8263. (PREF_DNS_TIMEOUT): New definition.
  8264. * src/main.cc
  8265. (main): Added PREF_DNS_TIMEOUT.
  8266. To add the support for a non-compact response from a tracker:
  8267. * src/PeerListProcessor.h: New class.
  8268. * src/DefaultPeerListProcessor.h: New class.
  8269. * src/DefaultPeerListProcessor.cc: New class.
  8270. * src/CompactPeerListProcessor.h: New class.
  8271. * src/CompactPeerListProcessor.cc: New class.
  8272. * src/DelegatingPeerListProcessor.h: New class.
  8273. * src/DelegatingPeerListProcessor.cc: New class.
  8274. * src/TorrentMan.cc
  8275. (addPeer): New function(overload).
  8276. (addPeer): Delete unused peers only when new peer is added.
  8277. * src/TorrentMan.h
  8278. (PeerListProcessor.h): Included.
  8279. (Peers): Removed.
  8280. (addPeer): New function(overload).
  8281. * src/TrackerUpdateCommand.cc
  8282. (netinet/in.h): Removed.
  8283. (DelegatingPeerListProcessor.h): Included.
  8284. (execute): Updated to use DelegatingPeerListProcessor.
  8285. To fix the memory leak in TorrentMan::peers:
  8286. * src/PeerAbstractCommand.cc
  8287. (onAbort): Added peer->resetStatus().
  8288. * src/Peer.h
  8289. (resetStatus): Made public.
  8290. To improve the precision of the speed calculation:
  8291. * src/SpeedCalc.h
  8292. (nextInterval): New variable.
  8293. * src/SpeedCalc.cc
  8294. (reset): Added nextInterval.
  8295. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  8296. (changeSw): Set nextInterval to 15 seconds relative to the current
  8297. instant time.
  8298. * src/main.cc
  8299. (showVersion): Updated.
  8300. (showUsage): Updated.
  8301. * Release 0.8.1
  8302. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. * src/main.cc
  8304. (showUsage): Commented out --min-segment-size option.
  8305. (main): Commented out --min-segment-size option.
  8306. * Release 0.8.0
  8307. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. * src/*.{h,cc}:
  8309. Added an exception to the license which allows linking with OpenSSL.
  8310. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. * src/AbstractCommand.cc
  8312. (execute): Check whether the download has finished before checking
  8313. socket status.
  8314. Return true if peerStat->getStatus() == REQUEST_IDLE.
  8315. Do not exit even if no segment is available.
  8316. * src/prefs.h
  8317. (PREF_STARTUP_IDLE_TIME): New definition.
  8318. * src/PeerInteractionCommand.cc
  8319. (executeInternal): Removed max speed limit. Because it performs bad.
  8320. (receiveMessages): Added max speed limit. This was better than above,
  8321. but still a little bit to be desired. Sometimes the download speed
  8322. became much faster than I specified.
  8323. * src/SpeedCalc.h
  8324. (start): New variable.
  8325. (accumulatedLength): New variable.
  8326. (getAvgSpeed): New function.
  8327. * src/SpeedCalc.cc
  8328. (reset): Added start, accumulatedLength.
  8329. (update): Added calculation of an average speed.
  8330. (getAvgSpeed): New function.
  8331. * src/DownloadCommand.h
  8332. (sw): Removed.
  8333. * src/main.cc
  8334. (main): Added PREF_STARTUP_IDLE_TIME.
  8335. * src/PeerStat.h
  8336. (STATUS): Added REQUEST_IDLE.
  8337. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  8338. (getAvgDownloadSpeed): New function
  8339. (requestIdle): New function.
  8340. * src/SegmentMan.h
  8341. (SegmentEntryHandle): New type definition.
  8342. (SegmentEntries): Now holds SegmentEntryHandle.
  8343. (findSlowerSegmentEntry): New funtion.
  8344. * src/SegmentMan.cc
  8345. (save): Updated according to the changes in SegmentEntries.
  8346. (read): Updated according to the changes in SegmentEntries.
  8347. (FindSegmentEntryByIndex): Updated according to the changes in
  8348. SegmentEntries.
  8349. (FindSegmentEntryByCuid): Updated according to the changes in
  8350. SegmentEntries.
  8351. (checkoutSegment): Updated according to the changes in SegmentEntries.
  8352. (onNullBitfield): Updated according to the changes in SegmentEntries.
  8353. Renamed uitr as itr.
  8354. (findSlowerSegmentEntry): New function.
  8355. (getSegment): Updated according to the changes in SegmentEntries.
  8356. Added the feature that cancels the segment with slow server and fast
  8357. one takes it over.
  8358. (cancelSegment): Updated according to the changes in SegmentEntries.
  8359. (getDownloadLength): Updated according to the changes in
  8360. SegmentEntries.
  8361. (init): Assigned 0 to bitfield after deleting it.
  8362. * src/DownloadCommand.cc
  8363. (STARTUP_IDLE_TIME): Removed.
  8364. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  8365. * src/PeerChokeCommand.cc
  8366. (optUnchokingPeer): Updated according to the changes in Peer.
  8367. (ResetDelta): Removed.
  8368. (UploadFaster): Updated according to the changes in Peer.
  8369. (DownloadFaster): Updated according to the changes in Peer.
  8370. (execute): I clarify the meaning of "upload" and "download" here.
  8371. "upload" means the transfer from localhost to remote host.
  8372. "download" means the transfer from remote host to localhost.
  8373. Based on this rule, I swapped orderByUploadRate and
  8374. orderByDownloadRate.
  8375. * src/PeerInteractionCommand.cc
  8376. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  8377. (executeInternal): Removed the argument of
  8378. peerInteraction->sendMessages().
  8379. (receiveMessages): Rewritten download speed limit.
  8380. (sendKeepAlive): Removed peerInteraction->sendMessages().
  8381. * src/HttpResponseCommand.cc
  8382. (handleDefaultEncoding): If file size is unknown in torrent request,
  8383. do not call segmentMan->initBitfield() here.
  8384. Disabled persistent connection feature in torrent request.
  8385. * src/UrlRequestInfo.h
  8386. (UrlRequestInfo): Removed const qualifier from option.
  8387. * src/TorrentMan.h
  8388. (TransferStat): New class.
  8389. (deltaDownloadLength): Removed.
  8390. (deltaUploadLength): Removed.
  8391. (addDeltaDownloadLength): Removed.
  8392. (getDeltaDownloadLength): Removed.
  8393. (resetDeltaDownloadLength): Removed.
  8394. (addDeltaUploadLength): Removed.
  8395. (getDeltaUploadLength): Removed.
  8396. (resetDeltaUploadLength): Removed.
  8397. (addActivePeer): Added peer->activate().
  8398. (deleteActivePeer): Added peer->deactivate().
  8399. (calculateStat): New function.
  8400. * src/TorrentMan.cc
  8401. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  8402. (calculateStat): New function.
  8403. * src/PeerInteraction.h
  8404. (uploadLimit): Removed.
  8405. (option): New variable.
  8406. (setUploadLimit): Removed.
  8407. (getUploadSpeed): Removed.
  8408. (sendMessages): Removed the argument "currentUploadSpeed".
  8409. * src/PeerInteraction.cc
  8410. (prefs.h): Included.
  8411. (PeerInteraction): Removed uploadLimit. Added option.
  8412. (sendMessages): Rewritten upload speed limit.
  8413. (sendHandshake): Removed the argument from sendMessages().
  8414. (sendBitfield): Removed the argument from sendMessages().
  8415. * src/PeerAbstractCommand.cc
  8416. (execute): Commented out the portion of upload limit.
  8417. (onAbort): Removed peer->resetStatus().
  8418. * src/TorrentRequestInfo.cc
  8419. (timeoutSpecified): Declared extern.
  8420. (execute): Set timeout to 180 if timeout is not specified by.
  8421. command-line.
  8422. * src/PieceMessage.cc
  8423. (receivedAction): Added peer->updateDownloadLength().
  8424. Removed peer->addPeerUpload().
  8425. Removed torrentMan->addDeltaDownloadLength().
  8426. (send): Added peer->updateUploadLength().
  8427. Removed peer->addPeerDownload().
  8428. Removed torrentMan->addDeltaUploadLength().
  8429. * src/main.cc
  8430. (timeoutSpecified): New variable.
  8431. (main): Set timeoutSpecified to false.
  8432. If the command-line option "--upload-limit" is specified, then
  8433. timeoutSpecified is set to true. This option will remain in the next
  8434. release, but be deprecated in the future release.
  8435. * src/TorrentRequestInfo.h
  8436. (TorrentRequestInfo): Removed const qualifier from op.
  8437. * src/PeerStat.h
  8438. (uploadSpeed): New variable.
  8439. (PeerStat): Added default value to cuid.
  8440. (calculateUploadSpeed): New function.
  8441. (updateUploadLength): New function.
  8442. (getMaxUploadSpeed): New function.
  8443. (getAvgUploadSpeed): New function.
  8444. (reset): Added uploadSpeed. Set status to IDLE.
  8445. * src/TorrentDownloadEngine.h
  8446. (cp): Declared as Time.
  8447. (sessionDownloadLengthArray): Removed.
  8448. (sessionUploadLengthArray): Removed.
  8449. (currentCp): Removed.
  8450. (lastCalcStat): New variable
  8451. (lastElapsed): Removed.
  8452. (sessionDownloadLength): Removed.
  8453. (calculateStat): New function.
  8454. * src/TorrentDownloadEngine.cc
  8455. (initStatistics): Removed lastElapsed, cp[],
  8456. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  8457. currentCp, sessionDownloadLength.
  8458. Added cp.reset() and lastCalcStat.reset().
  8459. (calculateSpeed): Changed the name of the argument.
  8460. (calculateStatistics): Rewritten.
  8461. (calculateStat): New function.
  8462. * src/Peer.h
  8463. (PeerStat.h): Included.
  8464. (peerUpload): Removed.
  8465. (peerDownload): Removed.
  8466. (peerStat): New variable.
  8467. (sessionUploadLength): New variable.
  8468. (sessionDownloadLength): New variable.
  8469. (deltaUpload): Removed.
  8470. (deltaDownload): Removed.
  8471. (resetStatus): Made private.
  8472. (Peer): Added sessionUploadLength, sessionDownloadLength.
  8473. Removed peerUpload, peerDownload.
  8474. (updateUploadLength): New function.
  8475. (addDeltaUpload): Removed.
  8476. (updateDownloadLength): New function.
  8477. (resetDeltaUpload): Removed.
  8478. (getDeltaUpload): Removed.
  8479. (addDeltaDownload): Removed.
  8480. (calculateUploadSpeed): New function.
  8481. (resetDeltaDownload): Removed.
  8482. (getDeltaDownload): Removed.
  8483. (calculateDownloadSpeed): New function.
  8484. (getSessionUploadLength): New function.
  8485. (getSessionDownloadLength): New function.
  8486. (activate): New function.
  8487. (deactivate): New function.
  8488. (addPeerUpload): Removed.
  8489. (setPeerUpload): Removed.
  8490. (getPeerUpload): Removed.
  8491. (addPeerDownload): Removed.
  8492. (setPeerDownload): Removed.
  8493. (getPeerDownload): Removed.
  8494. * src/Peer.cc
  8495. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  8496. * src/MetalinkRequestInfo.h
  8497. (MetalinkRequestInfo): Removed const qualifier from op.
  8498. * src/RequestInfo.h
  8499. (op): Removed const qualifier.
  8500. (RequestInfo): Removed const qualifier from op.
  8501. * src/prefs.h
  8502. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  8503. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  8504. * src/PeerInteractionCommand.cc
  8505. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  8506. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  8507. * src/PeerInteraction.cc
  8508. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  8509. * src/main.cc
  8510. (showUsage): Updated the description of "--lowest-speed-limit" option.
  8511. Added the description of "--max-download-limit" option.
  8512. Removed the description of "--upload-limit" option.
  8513. Added the description of "--max-upload-limit" option.
  8514. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  8515. Added "--max-download-limit" option and "--max-upload-limit" option.
  8516. Added the warning message if "--upload-limit" option is used.
  8517. * src/DownloadCommand.cc
  8518. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  8519. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8520. To rewrite segment download mechanism for HTTP/FTP download.
  8521. Use BitfieldMan to manage segment download.
  8522. * src/HttpResponseCommand.h
  8523. (executeInternal): Pass the reference of segment.
  8524. * src/AbstractCommand.cc
  8525. (prepareForRetry): Call segmentMan->cancelSegment here.
  8526. (onAbort): Call segmentMan->cancelSegment here.
  8527. * src/HttpDownloadCommand.cc
  8528. (prepareForNextSegment): New function.
  8529. * src/DownloadEngineFactory.cc
  8530. (newConsoleEngine): Removed splitter.
  8531. (newTorrentConsoleEngine): Removed splitter.
  8532. * src/Request.h
  8533. (segment): Renamed from seg.
  8534. * src/FtpInitiateConnectionCommand.h
  8535. (executeInternal): Pass the reference of segment.
  8536. * src/AbstractCommand.h
  8537. (executeInternal): Pass the reference of segment.
  8538. * src/pref.h
  8539. (PREF_SEGMENT_SIZE): New definition.
  8540. * src/HttpProxyRequestCommand.h
  8541. (executeInternal): Pass the reference of segment.
  8542. * src/HttpResponseCommand.cc
  8543. (checkResponse): Allowed status 206 when a request range starts 0.
  8544. (handleDefaultEncoding): Rewritten the code related to Segment.
  8545. (handleOtherEncoding): Rewritten the code related to Segment.
  8546. * src/SegmentMan.h
  8547. (SegmentEntry): New class.
  8548. (SegmentEntries): New type definition.
  8549. (bitfield): New variable.
  8550. (usedSegmentEntries): New variable.
  8551. (onNullBitfield): New function.
  8552. (checkoutSegment): New function.
  8553. (segments): Removed.
  8554. (splitter): Removed.
  8555. (unregisterId): Removed.
  8556. (getSegment): New function(overload)
  8557. (getDownloadedSize): Removed.
  8558. (cancelSegment): New function.
  8559. (completeSegment): New function.
  8560. (initBitfield): New function.
  8561. (hasSegment): New function.
  8562. (getDownloadLength): New function.
  8563. * src/BitfieldMan.h
  8564. (getStartIndex): New function.
  8565. (getEndIndex): New function.
  8566. (getMissingUnusedIndex): New function(overload).
  8567. (getSparseMissingUnusedIndex): New function.
  8568. * src/BitfieldMan.cc
  8569. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8570. (getMissingUnusedIndex): New function(overload).
  8571. (Range): New class.
  8572. (getStartIndex): New function.
  8573. (getEndIndex): New function.
  8574. (getSparseMissingUnusedIndex): New function.
  8575. (isBitSetInternal): Return false if the given index is less than 0.
  8576. * src/HttpInitiateConnectionCommand.h
  8577. (executeInternal): Pass the reference of segment.
  8578. * src/FtpNegotiateCommand.h
  8579. (executeInternal): Pass the reference of segment.
  8580. * src/FtpNegotiateCommand.cc
  8581. (recvSize): Initialize bitfield here.
  8582. * src/FtpTunnelResponseCommand.h
  8583. (executeInternal): Pass the reference of segment.
  8584. * src/HttpConnection.cc
  8585. (createRequest): Rewritten range header processing.
  8586. * src/DownloadCommand.h
  8587. (executeInternal): Pass the reference of segment.
  8588. (prepareForRetry): Removed.
  8589. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8590. function.
  8591. * src/main.cc
  8592. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8593. * src/SegmentMan.cc
  8594. (SegmentMan): Added bitfield. Removed splitter.
  8595. (~SegmentMan): Added bitfield. Removed splitter.
  8596. (unregisterId): Removed.
  8597. (getSegment): Rewritten.
  8598. (updateSegment): Rewritten.
  8599. (save): Rewritten.
  8600. (read): Rewritten.
  8601. (finished): Rewritten.
  8602. (getDownloadedSize): Removed.
  8603. (initBitfield): New function.
  8604. (FindSegmentEntryByIndex): New function object.
  8605. (FindSegmentEntryByCuid): New function object.
  8606. (checkoutSegment): New function.
  8607. (onNullBitfield): New function.
  8608. (getSegment): New function(overload).
  8609. (CancelSegment): New function object.
  8610. (cancelSegment): New function.
  8611. (completeSegment): New function.
  8612. (hasSegment): New function.
  8613. (getDownloadLength): New function.
  8614. * src/FtpInitiateConnectionCommand.cc
  8615. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8616. * src/Segment.h: Rewritten.
  8617. * src/Segment.cc (operator<<): New function.
  8618. * src/HttpDownloadCommand.h
  8619. (prepareForNextSegment): New function.
  8620. * src/Request.cc
  8621. (resetUrl): Made segment null.
  8622. * src/DownloadEngine.cc
  8623. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8624. * src/HttpProxyRequestCommand.h
  8625. (executeInternal): Pass the reference of segment.
  8626. * src/DownloadCommand.cc
  8627. (executeInternal): Rewritten the code related to Segment.
  8628. (prepareForRetry): Removed.
  8629. (prepareForNextSegment): Rewritten.
  8630. * src/FtpTunnelResponseCommand.h
  8631. (executeInternal): Pass the reference of segment.
  8632. To add HTTP 1.1 persistent connection support(experimental)
  8633. * src/HttpRequestCommand.cc
  8634. (executeInternal): Disable keep alive if it is disabled by
  8635. configuration.
  8636. * src/Request.h
  8637. (keepAlive): New variable.
  8638. (isKeepAlive): New function.
  8639. (setKeepAlive): New function.
  8640. * src/pref.h
  8641. (PREF_HTTP_KEEP_ALIVE): New definition.
  8642. * src/HttpResponseCommand.cc
  8643. (executeInternal): Check the remote server supports keep alive.
  8644. * src/HttpConnection.cc
  8645. (createRequest): Send "Connection: close" only if keep alive is
  8646. disabled.
  8647. * src/main.cc
  8648. (main):
  8649. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  8650. To add max download speed limit:
  8651. * src/pref.h
  8652. (PREF_MAX_SPEED_LIMIT): New definition.
  8653. * src/PeerInteractionCommand.cc
  8654. (executeInternal): Added max download speed limit. Not tested yet.
  8655. * src/SegmentMan.h
  8656. (PeerStats): New type definition.
  8657. (peerStats): New variable.
  8658. (registerPeerStat): New function.
  8659. (FindPeerStat): New function object.
  8660. (getPeerStat): New function.
  8661. (calculateDownloadSpeed): New function.
  8662. * src/SpeedCalc.h: New class.
  8663. * src/SpeedCalc.cc: New class.
  8664. * src/main.cc
  8665. (main):
  8666. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  8667. download speed is not restricted).
  8668. * src/PeerStat.h: New class.
  8669. * src/SegmentMan.cc
  8670. (registerPeerStat): New function.
  8671. (calculateDownloadSpeed): New function.
  8672. * src/DownloadCommand.cc
  8673. (STARTUP_IDLE_TIME): New definition.
  8674. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  8675. downloadStart.
  8676. (~DownloadCommand): Call peerStat->downloadStop.
  8677. (executeInternal): Added download speed limitter. Rewritten lowest
  8678. speed limitter.
  8679. * src/HttpConnection.cc
  8680. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  8681. * src/AbstractCommand.cc
  8682. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  8683. Added hostname to the error message.
  8684. * src/ConsoleDownloadEngine.cc
  8685. (calculateStatistics): Initialize psize with dlSize.
  8686. * src/PieceMessage.cc
  8687. (receivedAction): Do not call peerInteraction->abortPiece here.
  8688. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  8689. * src/BitfieldMan.h
  8690. (clearAllUseBit): New function.
  8691. (setAllUseBit): New function.
  8692. * src/BitfieldMan.cc
  8693. (clearAllBit): Do not clear useBitfield here.
  8694. (clearAllUseBit): New function.
  8695. (setAllUseBit): New function.
  8696. * src/Piece.cc
  8697. (clearAllBlock): Call bitfield->clearAllUseBit().
  8698. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. To make filename URL-decoded:
  8700. * src/HttpResponseCommand.h: Updated doc.
  8701. * src/HttpResponseCommand.cc
  8702. (determinFilename): Made filename URL-decoded.
  8703. * src/FtpInitiateConnectionCommand.cc
  8704. (executeInternal): Made filename URL-decoded.
  8705. * src/Util.h (urldecode): New function.
  8706. * src/Util.cc (urldecode): New function.
  8707. To fix a bug that caused assertion failure in ares_strerror:
  8708. * src/NameResolver.cc (callback): Fixed the bug.
  8709. * Release 0.7.3
  8710. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. To add --seed-time and --seed-ratio command-line option:
  8712. * src/Option.h (getAsDouble): New function.
  8713. * src/Option.cc (getAsDouble): New function.
  8714. * src/SeedCheckCommand.h: New class.
  8715. * src/SeedCheckCommand.cc: New class.
  8716. * src/DownloadEngineFactory.cc
  8717. (SeedCheckCommand.h): Included.
  8718. (UnionSeedCriteria.h): Included.
  8719. (TimeSeedCriteria.h): Included.
  8720. (ShareRatioSeedCriteria.h): Included.
  8721. (newTorrentConsoleEngine): Added the processing of seed option.
  8722. * src/SeedCriteria.h: New class.
  8723. * src/ShareRatioSeedCriteria.h: New class.
  8724. * src/TimeSeedCriteria.h: New class.
  8725. * src/UnionSeedCriteria.h: New class.
  8726. * src/prefs.h
  8727. (PREF_SEED_TIME): New definition.
  8728. (PREF_SEED_RATIO): New definition.
  8729. * src/main.cc
  8730. (showUsage): Added --seed-time and --seed-ratio option.
  8731. (main): Added --seed-time and --seed-ratio option.
  8732. Made default log file name "/dev/null".
  8733. * src/SharedHandle.h
  8734. (SharedHandle): Copy constructor. Made it assignable from the
  8735. SharedHandle of the subclasses.
  8736. (operator=): Made it assignable from the SharedHandle of the
  8737. subclasses.
  8738. (getRefCount): New function.
  8739. To add notice log level and the switch to write log to stdout. This
  8740. switch is configurable per log level.
  8741. * src/Logger.h
  8742. (notice): New function.
  8743. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  8744. constant.
  8745. * src/LogFactory.cc
  8746. (getInstance): The use of NullLogger was removed. A log message with
  8747. notice log level was made written to stdout along with log file.
  8748. * src/NullLogger.h
  8749. (notice): New function.
  8750. * src/SimpleLogger.h
  8751. (writeHeader): Added the 'file' argument.
  8752. (writeLog): Added the 'file' argument.
  8753. (writeFile): New function.
  8754. (stdoutField): New variable.
  8755. (SimpleLogger): Removed the default constructor.
  8756. (SimpleLogger): Made the default value of logfile 0.
  8757. (debug): Added 'virtual' keyword.
  8758. (info): Added 'virtual' keyword.
  8759. (warn): Added 'virtual' keyword.
  8760. (error): Added 'virtual' keyword.
  8761. (notice): New function.
  8762. (setStdout): New function.
  8763. * src/SimpleLogger.cc
  8764. (WRITE_LOG): Replaced writeLog with writeFile.
  8765. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  8766. (SimpleLogger): Removed the default constructor.
  8767. (setStdout): New function.
  8768. (writeLog): Added the handling of NOTICE log level.
  8769. (writeFile): New function.
  8770. (notice): New function.
  8771. * src/TorrentMan.h: Updated doc.
  8772. * src/BitfieldMan.h: Updated doc.
  8773. * src/TrackerWatcherCommand.cc
  8774. (execute): Return true if error occurred in the request to the tracker
  8775. and halt is requested.
  8776. * src/TrackerUpdateCommand.cc
  8777. (execute): Return true if error occurred in the request to the tracker
  8778. and halt is requested.
  8779. To call onDownloadComplete from TorrentMan::completePiece(), not from
  8780. DownloadEngine:
  8781. * src/TorrentConsoleDownloadEngine.h
  8782. (onSelectiveDownloadingCompletes): Removed.
  8783. * src/TorrentConsoleDownloadEngine.cc
  8784. (onSelectiveDownloadingCompletes): Removed.
  8785. * src/TorrentDownloadEngine.h
  8786. (onEndOfRun): Added 'virtual' keyword.
  8787. (afterEachIteration): Removed.
  8788. (onSelectiveDownloadingCompletes): Removed.
  8789. * src/TorrentDownloadEngine.cc
  8790. (onEndOfRun): Removed filenameFixed.
  8791. (afterEachIteration): Removed.
  8792. * src/TorrentMan.cc
  8793. (completePiece): Call onDownloadComplete here.
  8794. (onDownloadComplete): Added 2 log messages.
  8795. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  8797. * src/NameResolver.h: Added the prototype declaration of callback().
  8798. To support c-ares library:
  8799. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8800. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8801. * src/FtpInitiateConnectionCommand.h:
  8802. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8803. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8804. * src/HttpInitiateConnectionCommand.h:
  8805. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8806. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  8807. Added thes upport of c-ares's ares_strerror(the idea came from patch
  8808. #1542285 by tizianomueller)
  8809. * src/HttpInitiateConnectionCommand.cc:
  8810. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8811. * src/FtpInitiateConnectionCommand.cc:
  8812. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8813. * src/DownloadEngine.h:
  8814. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8815. * src/DownloadEngine.cc:
  8816. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8817. To fix the bug that causes compilation failure with metalink-support
  8818. disabled(bug#1543587):
  8819. * src/main.cc: Fixed with the patch by tizianomueller.
  8820. * Release 0.7.2
  8821. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. * src/main.cc
  8823. (main): Added a message to inform users that aria2 is starting to
  8824. verify checksum.
  8825. * src/RequestInfo.cc
  8826. (printDownloadAbortMessage): Added a message to inform users that
  8827. transfer can be resumed.
  8828. * src/FeatureConfig.cc
  8829. (FEATURE_ASYNC_DNS): New definition.
  8830. (FeatureConfig): Added aysnc DNS entry.
  8831. To replace CommandUuid with Command* in SocketEntry and
  8832. NameResolverEntry:
  8833. * src/DownloadEngine.h
  8834. (CommandUuids): Removed.
  8835. (SocketEntry::commandUuid): Removed.
  8836. (SocketEntry::command): New variable.
  8837. (SocketEntry::SocketEntry): Updated.
  8838. (SocketEntry::operator==): Updated.
  8839. (NameResolverEntry::commandUuid): Removed.
  8840. (NameResolverEntry::command): New variable.
  8841. (NameResolverEntry::NameResolverEntry): Updated.
  8842. (NameResolverEntry::operator==): Updated.
  8843. (waitData): Changed the argument type.
  8844. (addSocketForReadCheck): Changed the argument type.
  8845. (deleteSocketForReadCheck): Changed the argument type.
  8846. (addSocketForWriteCheck): Changed the argument type.
  8847. (deleteSocketForWriteCheck): Changed the argument type.
  8848. (addNameResolverCheck): Changed the argument type.
  8849. (deleteNameResolverCheck): Changed the argument type.
  8850. * src/DownloadEngine.cc
  8851. (FindCommand): Removed.
  8852. (run): Removed activeUuid. Added activeCommands instead.
  8853. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8854. (AccumulateActiveCommand): New function object.
  8855. (waitData): Use AccumulateActiveCommand.
  8856. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8857. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8858. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8859. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8860. (addNameResolverCheck): Use Command instead of CommandUuid.
  8861. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8862. * src/AbstractCommand.cc
  8863. (disableReadCheckSocket): Updated according to the changes in
  8864. DownloadEngine.
  8865. (setReadCheckSocket): Updated according to the changes in
  8866. DownloadEngine.
  8867. (disableWriteCheckSocket): Updated according to the changes in
  8868. DownloadEngine.
  8869. (setWriteCheckSocket): Updated according to the changes in
  8870. DownloadEngine.
  8871. (setNameResolverCheck): Updated according to the changes in
  8872. DownloadEngine.
  8873. (disableNameResolverCheck): Updated according to the changes in
  8874. DownloadEngine.
  8875. * src/AbstractCommand.cc
  8876. (disableReadCheckSocket): Updated according to the changes in
  8877. DownloadEngine.
  8878. (setReadCheckSocket): Updated according to the changes in
  8879. DownloadEngine.
  8880. (disableWriteCheckSocket): Updated according to the changes in
  8881. DownloadEngine.
  8882. (setWriteCheckSocket): Updated according to the changes in
  8883. DownloadEngine.
  8884. * release 0.7.1
  8885. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. To handle the case where some BitTorrent tracker requires all letters
  8887. except for [A-Za-z0-9] is URL encoded.
  8888. * src/Util.h
  8889. (torrentUrlencode): New function.
  8890. * src/Util.cc
  8891. (ctype.h): Included.
  8892. (torrentUrlencode): New function.
  8893. * src/TrackerWatcherCommand.cc
  8894. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8895. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. To add asynchronous DNS support(libares):
  8897. * src/AbstractCommand.h
  8898. (setNameResolverCheck): New function.
  8899. (disableNameResolverCheck): New function
  8900. (resolveHostname): New function.
  8901. * src/AbstractCommand.cc
  8902. (setNameResolverCheck): New function.
  8903. (disableNameResolverCheck): New function
  8904. (resolveHostname): New function.
  8905. * src/FtpInitiateConnectionCommand.h
  8906. (nameResolver): New function.
  8907. * src/FtpInitiateConnectionCommand.cc
  8908. (Util.h): Included.
  8909. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8910. disableWriteCheckSocket.
  8911. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8912. (executeInternal): Added async DNS support.
  8913. * src/HttpInitiateConnectionCommand.h
  8914. (nameResolver): New function.
  8915. * src/HttpInitiateConnectionCommand.cc
  8916. (DlRetryEx.h): Included.
  8917. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8918. disableWriteCheckSocket.
  8919. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8920. (executeInternal): Added async DNS support.
  8921. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8922. by extern "C" declaration.
  8923. * src/NameResolver.cc: New class.
  8924. * src/Util.h:
  8925. (isNumberAndDotsNotation): New function
  8926. * src/Util.cc
  8927. (isNumberAndDotsNotation): New function.
  8928. * src/DownloadEngine.h
  8929. (NameResolver.h): Included.
  8930. (NameResolverEntry): New class.
  8931. (NameResolverEntries): New type definition.
  8932. (addNameResolverCheck): New function.
  8933. (deleteNameResolverCheck): New function.
  8934. * src/DownloadEngine.cc
  8935. (run): Initialize cp with 0.
  8936. (SetDescriptor::operator()): Added for NameResolverEntry.
  8937. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8938. (waitData): Check nameResolver entries.
  8939. (updateFdSet): Update fds in nameResolver entries.
  8940. (addNameResolverCheck): New function.
  8941. (deleteNameResolverCheck): new function.
  8942. * src/PeerInteractionCommand.cc
  8943. (executeInternal): Fixed wrong socket handling.
  8944. * src/main.cc
  8945. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8946. * src/Util.cc
  8947. (fileChecksum): Removed the call to ctx.digestReset().
  8948. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. * po/ru.po: Azamat sent me Russian translation.
  8950. * src/FtpNegotiateCommand.cc
  8951. (recvGreeting): Call disableWriteCheckSocket just after
  8952. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8953. (recvRetr): Recognized status code 125 as a acceptable response code.
  8954. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8955. case-insesitive filesystem(BUG#1531057).
  8956. * src/Time.h: Renamed as TimeA2.h.
  8957. * src/Time.cc: Renamed as TimeA2.cc.
  8958. * src/TimeA2.h: New class.
  8959. * src/TimeA2.cc: New class.
  8960. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8961. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8962. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8963. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8964. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8965. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8966. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8967. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8968. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8969. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8970. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8971. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8972. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8973. * release 0.7.0
  8974. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. * src/PeerChokeCommand.h
  8976. (PeerChokeCommand): Rearranged the arguments.
  8977. * src/PeerChokeCommand.cc
  8978. (PeerChokeCommand): Rearranged the arguments.
  8979. * src/MetalinkEntry.h
  8980. (Checksum.h): Included.
  8981. (md5): Removed.
  8982. (sha1): Removed.
  8983. (checksum): New variable.
  8984. (operator=): Updated.
  8985. (check): Removed.
  8986. * src/prefs.h
  8987. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8988. (PREF_FOLLOW_TORRENT): New definition.
  8989. (PREF_SELECT_FILE): New definition.
  8990. (PREF_FOLLOW_METALINK): New definition.
  8991. * src/MetalinkResource.h
  8992. (TYPE_HTTPS): Added to enum TYPE.
  8993. * src/TorrentMan.cc
  8994. (~TorrentMan): Rewritten.
  8995. * src/MultiDiskWriter.cc
  8996. (MultiDiskAdaptor): Updated according to the changes in
  8997. MessageDigestContext.
  8998. (~MultiDiskAdaptor): Updated according to the changes in
  8999. MessageDigestContext.
  9000. (hashUpdate): Updated according to the changes in MessageDigestContext.
  9001. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9002. * src/Util.h
  9003. (fileChecksum): Updated according to the changes in
  9004. MessageDigestContext.
  9005. * src/Util.cc
  9006. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9007. (fileChecksum): Updated according to the changes in
  9008. MessageDigestContext.
  9009. * src/messageDigest.h: Rewritten.
  9010. * src/MetalinkEntry.cc
  9011. (check): Removed.
  9012. (Supported): Updated.
  9013. (dropUnsupportedResource): Fixed a memory leak.
  9014. * src/ShaVisitor.cc
  9015. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  9016. (~ShaVisitor): Updated according to the changes in
  9017. MessageDigestContext.
  9018. (visit): Updated according to the changes in MessageDigestContext.
  9019. * src/main.cc
  9020. (main): Rewritten the portion of download loop. --lowest-speed-limit
  9021. command-line option added.
  9022. * src/DownloadEngine.h
  9023. (SocketEntry): New class.
  9024. (SocketEntries): New definition.
  9025. (PairFind): Removed.
  9026. (SockCmdMap): Removed.
  9027. * src/DownloadEngine.cc
  9028. (DownloadEngine): Rewritten.
  9029. (~DownloadEngine): Rewritten.
  9030. (run): Renamed activeCommandUuids as activeUuids.
  9031. (SetDescriptor): Rewritten.
  9032. (AccumulateActiveCommandUuid): Removed.
  9033. (AccumulateActiveUuid): New function object.
  9034. (waitData): Rewritten.
  9035. (updateFdSet): Rewritten.
  9036. (addSocket): Rewritten.
  9037. (deleteSocket): Rewritten.
  9038. (addSocketForReadCheck): Rewritten.
  9039. (deleteSocketForReadCheck): Rewritten.
  9040. (addSocketForWriteCheck): Rewritten.
  9041. (deleteSocketForWriteCheck): Rewritten.
  9042. * src/Xml2MetalinkProcessor.cc
  9043. (getEntry): Rewritten the portion of MetalinkEntry creation.
  9044. * src/DownloadCommand.cc
  9045. (executeInternal): Added the check routine for lowest speed limit.
  9046. * src/AbstractDiskWriter.cc
  9047. (AbstractDiskWriter): Updated according to the changes in
  9048. MessageDigestContext.
  9049. (~AbstractDiskWriter): Updated according to the changes in
  9050. MessageDigestContext.
  9051. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9052. * src/RequestInfo.h: New class.
  9053. * src/UrlRequestInfo.h: New class.
  9054. * src/UrlRequestInfo.cc: New class.
  9055. * src/TorrentRequestInfo.h: New class.
  9056. * src/TorrentRequestInfo.cc: New class.
  9057. * src/MetalinkRequestInfo.h: New class.
  9058. * src/MetalinkRequestInfo.cc: New class.
  9059. * src/Checksum.h: New class.
  9060. * src/DownloadEngineFactory.h: New class.
  9061. * src/DownloadEngineFactory.cc: New class.
  9062. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. * src/Option.h
  9064. (getAsBool): New function.
  9065. * src/Option.cc
  9066. (prefs.h): Included.
  9067. (defined): 0-length value is now recognized as undefined.
  9068. (getAsInt): Rewritten.
  9069. (getAsLLInt): Rewritten.
  9070. (getAsBool): New function.
  9071. * src/FeatureConfig.h: Rewritten.
  9072. * src/FeatureConfig.cc: Rewritten.
  9073. * src/prefs.h
  9074. (PREF_STDOUT_LOG): New definition.
  9075. (PREF_LOG): New definition.
  9076. (PREF_DIR): New definition.
  9077. (PREF_OUT): New definition.
  9078. (PREF_SPLIT): New definition.
  9079. (PREF_DAEMON): New definition.
  9080. (PREF_REFERER): New definition.
  9081. (PREF_TORRENT_FILE): New definition.
  9082. (PREF_LISTEN_PORT): New definition.
  9083. (PREF_METALINK_FILE): New definition.
  9084. (PREF_METALINK_VERSION): New definition.
  9085. (PREF_METALINK_LANGUAGE): New definition.
  9086. (PREF_METALINK_OS): New definition.
  9087. (PREF_METALINK_SERVERS): New definition.
  9088. * src/main.cc
  9089. (main): Following command-line parameters are now put into Option
  9090. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  9091. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  9092. metalinkLanguage, metalinkOs, metalinkServers
  9093. To fix the bug that aria2 can not handle http response header properly.
  9094. * src/HttpHeader.cc
  9095. (put): Made name lowercased.
  9096. (defined): Made name lowercased.
  9097. (getFirst): Made name lowercased.
  9098. (get): Made name lowercased.
  9099. (getFirstAsInt): Rewritten.
  9100. (getFirstAsLLInt): Rewritten.
  9101. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. * src/TorrentMan.h:
  9103. (advertisePiece): Updated doc.
  9104. (getAdvertisedPieceIndexes): Updated doc.
  9105. (removeAdvertisedPiece); New function.
  9106. * src/TorrentMan.cc
  9107. (FindElapsedHave): New function object.
  9108. (removeAdvertisedPiece): New function.
  9109. * src/HaveEraseCommand.h: New class.
  9110. * src/HaveEraseCommand.cc: New class.
  9111. * src/FeatureConfig.h: New class.
  9112. * src/FeatureConfig.cc: New class.
  9113. * src/Request.h
  9114. (defaultPorts): Removed.
  9115. * src/Request.cc
  9116. (FeatureConfig.h): Included.
  9117. (Request): Removed the statements related to defaultPorts.
  9118. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  9119. A default port number is now retrieved from FeatureConfig.
  9120. * src/main.cc
  9121. (HaveEraseCommand.h): Included.
  9122. (showVersion): Added the output of feature list.
  9123. (main): Added HaveEraseCommand to command queue in BitTorrent
  9124. downloading.
  9125. * src/PeerInteractionCommand.h
  9126. (chokeCheckPoint): Commented out.
  9127. (periodicExecPoint): New variable.
  9128. * src/PeerInteractionCommand.cc
  9129. (executeInternal): Following methods are now called in at least every
  9130. 0.5 seconds to reduce CPU usage:
  9131. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  9132. checkHave(), sendKeepAlive().
  9133. (checkLongTimePeerChoking): Commented out.
  9134. * src/BitfieldMan.h
  9135. (getNthBitIndex): Changed the method signature.
  9136. (getMissingIndexRandomly): Changed the method signature.
  9137. * src/BitfieldMan.cc
  9138. (getNthBitIndex): Rewritten
  9139. (getMissingIndexRandomly): Rewritten.
  9140. (hasMissingPiece): Rewritten.
  9141. (getMissingIndex): Refactored.
  9142. (getMissingUnusedIndex); Refactored.
  9143. (getMissingIndex): Refactored.
  9144. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. * src/PeerMessage.h
  9146. (Piece.h): Included.
  9147. (SharedHandle.h): Included.
  9148. (invalidate): New variable.
  9149. (uploading): New variable.
  9150. (isInvalidate): New function.
  9151. (isUploading): New function.
  9152. (onPush): New function.
  9153. (onChoked): New function.
  9154. (onCanceled): New function.
  9155. (onAbortPiece): New function.
  9156. (PeerMessageHandle): New type definition.
  9157. * src/PeerMessage.cc
  9158. (PeerMessage): Added the initialization for invalidate and uploading.
  9159. * src/CancelMessage.h
  9160. (CancelMessage): Rewritten.
  9161. * src/RejectMessage.h
  9162. (RejectMessage): Rewritten.
  9163. * src/Metalinker.h
  9164. (operator=): Defined.
  9165. * src/MetaEntry.h
  9166. (operator=): Defined.
  9167. * src/MetalinkResource.h
  9168. (operator=): Defined.
  9169. * src/AllowedFastMessage.h
  9170. (AllowedFastMessage): Rewritten.
  9171. * src/HandshakeMessage.h
  9172. (HandshakeMessage): New function(overload).
  9173. * src/HandshakeMessage.cc
  9174. (HandshakeMessage): Rewritten.
  9175. (init): New function.
  9176. * src/HaveMessage.h
  9177. (HaveMessage): Rewritten.
  9178. * src/Time.h
  9179. (operator=): Defined the function body here.
  9180. * src/Time.cc
  9181. (operator=): Removed.
  9182. * src/SocketCore.h
  9183. (operator==): Defined here.
  9184. (operator!=): Defined here.
  9185. (operator<): Defined here.
  9186. * src/SocketCore.cc
  9187. (operator==): Removed.
  9188. (operator<): Removed.
  9189. * src/BitfieldMan.h
  9190. (operator=): Defined the function body here.
  9191. * src/BitfieldMan.cc
  9192. (operator=): Removed.
  9193. * src/TorrentMan.h
  9194. (deleteErrorPeer): Removed.
  9195. (deleteUnusedPeer); New function.
  9196. * src/TorrentMan.cc
  9197. (addPeer): Call deleteUnusedPeer.
  9198. (deleteErrorPeer): Removed.
  9199. (deleteUnusedPeer): New function.
  9200. * src/PeerAbstractCommand.h
  9201. (setNoCheck): New function.
  9202. (noCheck): New variable.
  9203. * src/PeerAbstractCommand.cc
  9204. (PeerAbstractCommand): Added the initialization of noCheck.
  9205. (execute): Added a check for noCheck.
  9206. (setNoCheck): New function.
  9207. * src/Util.h
  9208. (stdio.h): Included.
  9209. * src/Util.cc
  9210. (unistd.h): Included.
  9211. * src/DefaultDiskWriter.cc
  9212. (unistd.h): Included.
  9213. * src/Peer.h
  9214. (operator==): Defined the function body here.
  9215. (operator!=): Defined the function body here.
  9216. * src/Peer.cc
  9217. (operator==): Removed.
  9218. (operator!=): Removed.
  9219. * src/Piece.h
  9220. (Piece): Defined the function body here(copy constructor).
  9221. (operator=): Defined the function body here.
  9222. (operator==): Defined the function body here.
  9223. * src/Piece.cc
  9224. (Piece): Removed(copy constructor).
  9225. (operator=): Removed.
  9226. (operator==): Removed.
  9227. * src/PeerMessageUtil.h
  9228. (ChokeMessage.h): Removed.
  9229. (UnchokeMessage.h): Removed.
  9230. (InterestedMessage.h): Removed.
  9231. (NotInterestedMessage.h): Removed.
  9232. (HaveMessage.h): Removed.
  9233. (BitfieldMessage.h): Removed.
  9234. (RequestMessage.h): Removed.
  9235. (CancelMessage.h): Removed.
  9236. (PieceMessage.h): Removed.
  9237. (HandshakeMessage.h): Removed.
  9238. (KeepAliveMessage.h): Removed.
  9239. (PortMessage.h): Removed.
  9240. (HaveAllMessage.h): Removed.
  9241. (HaveNoneMessage.h): Removed.
  9242. (PeerConnection.h): Removed.
  9243. (HandshakeMessage.h): Included.
  9244. * src/BitfieldMessage.h
  9245. (init): New function.
  9246. (BitfieldMessage): Rewritten.
  9247. (BitfieldMessage): New function(overload).
  9248. * src/RequestSlot.h
  9249. (operator=): Defined the function body here.
  9250. (operator==): Defined the function body here.
  9251. * src/RequestSlot.cc
  9252. (operator=): Removed.
  9253. (operator==): Removed.
  9254. To remove the dependency on the PeerMessage subclass from
  9255. PeerInteraction:
  9256. * src/PeerMessageFactory.h: New class.
  9257. * src/PeerMessageFactory.cc: New class.
  9258. * src/SimplePeerMessage.cc
  9259. (send): If invalidate is true then do nothing.
  9260. * src/PeerInteractionCommand.cc
  9261. (HandshakeMessage.h): Included.
  9262. (KeepAliveMessage.h): Included.
  9263. (ChokeMessage.h): Included.
  9264. (UnchokeMessage.h): Included.
  9265. (HaveMessage.h): Included.
  9266. (executeInternal): Call setNoCheck().
  9267. Removed setWriteCheckSocket(socket).
  9268. * src/PeerInteraction.h
  9269. (ChokeMessage.h): Removed.
  9270. (UnchokeMessage.h): Removed.
  9271. (InterestedMessage.h): Removed.
  9272. (NotInterestedMessage.h): Removed.
  9273. (HaveMessage.h): Removed.
  9274. (BitfieldMessage.h): Removed.
  9275. (RequestMessage.h): Removed.
  9276. (CancelMessage.h): Removed.
  9277. (PieceMessage.h): Removed.
  9278. (HandshakeMessage.h): Removed.
  9279. (KeepAliveMessage.h): Removed.
  9280. (PortMessage.h): Removed.
  9281. (HaveAllMessage.h): Removed.
  9282. (HaveNoneMessage.h): Removed.
  9283. (RejectMessage.h): Removed.
  9284. (AllowedFastMessage.h): Removed.
  9285. (SuggestPieceMessage.h): Removed.
  9286. (PeerMessageFactory.h): Included.
  9287. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  9288. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  9289. (PeerMessageFactory): New variable.
  9290. (createPeerMessage): Removed.
  9291. (createHandshakeMessage): Removed.
  9292. (setPeerMessageCommonProperty): Removed.
  9293. (addRequestSlot): New function.
  9294. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9295. (getPeerMessageFactory): New function.
  9296. (createRequestMessage): Removed.
  9297. (createCancelMessage): Removed.
  9298. (createPieceMessage): Removed.
  9299. (createHaveMessage): Removed.
  9300. (createChokeMessage): Removed.
  9301. (createUnchokeMessage): Removed.
  9302. (createInterestedMessage): Removed.
  9303. (createNotInterestedMessage): Removed.
  9304. (createBitfieldMessage): Removed.
  9305. (createKeepAliveMessage): Removed.
  9306. (createHaveAllMessage): Removed.
  9307. (createHaveNoneMessage): Removed.
  9308. (createRejectMessage): Removed.
  9309. (createAllowedFastMessage): Removed.
  9310. * src/PeerInteraction.cc
  9311. (PeerInteraction): Allocate PeerMessageFactory here.
  9312. (~PeerInteraction): Deallocate PeerMessageFactory here.
  9313. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  9314. PieceMessage::ID.
  9315. (addMessage): Simplified by using PeerMessage::onPush().
  9316. (addRequestSlot): New function.
  9317. (rejectAllPieceMessageInQueue): Simplified by using
  9318. PeerMessage::onChoked().
  9319. (rejectPieceMessageInQueue): Simplified by using
  9320. PeerMessage::onCanceled().
  9321. (abortPiece): Simplified by using PeerMessage::abortPiece().
  9322. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9323. (createHandshakeMessage): Removed.
  9324. (createPeerMessage): Removed.
  9325. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  9326. (setPeerMessageCommonProperty): Removed.
  9327. (createRequestMessage): Removed.
  9328. (createCancelMessage): Removed.
  9329. (createPieceMessage): Removed.
  9330. (createHaveMessage): Removed.
  9331. (createChokeMessage): Removed.
  9332. (createUnchokeMessage): Removed.
  9333. (createInterestedMessage): Removed.
  9334. (createNotInterestedMessage): Removed.
  9335. (createBitfieldMessage): Removed.
  9336. (createKeepAliveMessage): Removed.
  9337. (createHaveAllMessage): Removed.
  9338. (createHaveNoneMessage): Removed.
  9339. (createRejectMessage): Removed.
  9340. (createAllowedFastMessage): Removed.
  9341. * src/PieceMessage.h
  9342. (createRejectMessage): New function.
  9343. (PieceMessage): Rewritten.
  9344. (onChoked): New function.
  9345. (onCanceled): New function.
  9346. * src/PieceMessage.cc
  9347. (send): If invalidate is true then do nothing, just return.
  9348. (createRejectMessage): New function.
  9349. (onChoked): New function.
  9350. (onCanceled): New function.
  9351. * src/RequestMessage.h
  9352. (RequestMessage): Rewritten.
  9353. (onPush): New function.
  9354. (onAbortPiece): New function.
  9355. * src/RequestMessage.cc
  9356. (onPush): New function.
  9357. (onAbortPiece): New function.
  9358. Update fd_set when a socket is added or deleted in order to improve
  9359. performance:
  9360. * src/DownloadEngine.h
  9361. (rfdset): New variable.
  9362. (wfdset): New variable.
  9363. (updateFdSet): New function.
  9364. * src/DownloadEngine.cc
  9365. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  9366. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  9367. (waitData): Copy rfdset and wfdset.
  9368. (updateFdSet): New function.
  9369. (addSocket): Call updateFdSet.
  9370. (deleteSocket): Call updateFdSet.
  9371. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. To add the support for Metalink3.0 backward compatible links:
  9373. * src/Request.h
  9374. (SAFE_CHARS): Added '#'.
  9375. (METALINK_MARK): New definition.
  9376. * src/Request.cc
  9377. (parseUrl): Added the support for Metalink3.0 backward compatible
  9378. links.
  9379. etc
  9380. * src/PeerInteraction.cc
  9381. (MsgPushBack): Removed.
  9382. (sendMessages): Use STL copy and back_inserter.
  9383. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  9384. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  9385. * src/TorrentMan.h
  9386. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  9387. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9388. * src/SharedHandle.h: New class.
  9389. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  9390. * src/HttpResponseCommand.h
  9391. (HttpResponseCommand): Wrapped Socket.
  9392. * src/SocketCore.h
  9393. (operator==): New function.
  9394. (operator!=): New function.
  9395. (operator<): New function.
  9396. (getSockfd): New function.
  9397. (isOpen): New function.
  9398. (writeData): New function.
  9399. * src/SocketCore.cc
  9400. (operator==): New function.
  9401. (operator!=): New function.
  9402. (operator<): New function.
  9403. * src/AbstractCommand.h
  9404. (socket): Changed its type to SocketHandle.
  9405. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9406. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9407. (disableReadCheckSocket): New function.
  9408. (disableWriteCheckSocket): New function.
  9409. (readCheckTarget): Changed its type to SocketHandle.
  9410. (writeCheckTarget): Changed its type to SocketHandle.
  9411. (AbstractCommand): Replaced Socket with SocketHandle.
  9412. * src/AbstractCommand.cc
  9413. (AbstractCommand): Replaced Socket with SocketHandle.
  9414. (~AbstractCommand): Removed the deallocation for Socket object.
  9415. (disableReadCheckSocket): New function.
  9416. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9417. (disableWriteCheckSocket): New function.
  9418. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9419. * src/HttpDownloadCommand.cc
  9420. (DownloadCommand): Replaced Socket with SocketHandle.
  9421. * src/PeerAbstractCommand.h
  9422. (socket): Changed its type to SocketHandle.
  9423. (peer): Changed its type to PeerHandle.
  9424. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9425. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9426. (disableReadCheckSocket): New function.
  9427. (disableWriteCheckSocket): New function.
  9428. (readCheckTarget): Changed its type to SocketHandle.
  9429. (writeCheckTarget): Changed its type to SocketHandle.
  9430. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9431. Replaced Peer with PeerHandle.
  9432. * src/HttpRequestCommand.cc
  9433. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9434. Use disableReadCheckSocket.
  9435. * src/PeerInitiateConnectionCommand.h
  9436. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9437. * src/PeerChokeCommand.cc
  9438. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  9439. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  9440. (execute): Use PeerHandle.
  9441. * src/PeerConnection.h
  9442. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  9443. (socket): Changed its type to SocketHandle.
  9444. (PeerConnection): Replaced Socket with SocketHandle.
  9445. * src/PeerConnection.cc
  9446. (PeerConnection): Replaced Socket with SocketHandle.
  9447. * src/PeerInteractionCommand.h
  9448. (PeerInteractionCommand): Replaced socket with SocketHandle.
  9449. Replaced Peer with PeerHandle.
  9450. * src/PeerInteractionCommand.cc
  9451. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  9452. Replaced Peer with PeerHandle.
  9453. (executeInternal): Use disableWriteCheckSocket.
  9454. Use HandshakeMessageHandle.
  9455. (receiveMessages): Use PeerMessageHandle.
  9456. (prepareForNextPeer): Use PeerHandle.
  9457. * src/HttpProxyRequestCommand.h
  9458. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9459. * src/HttpResponseCommand.cc
  9460. (HttpResponseCommand): Replaced Socket with SocketHandle.
  9461. * src/TorrentMan.cc
  9462. (nullPeer): Added external reference.
  9463. (~TorrentMan): Removed the deallocation of the elements of peers.
  9464. (addPeer): Rewritten.
  9465. (isPeerAvailable): Use nullPeer.
  9466. (deleteOldpeers): Replaced with deleteErrorPeer.
  9467. (deleteErrorPeer): New function.
  9468. (getPeer): Use PeerHandle and nullPeer.
  9469. (hasMissingPiece): Replaced Peer with PeerHandle.
  9470. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9471. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9472. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9473. (getMissingPiece): Replaced Peer with PeerHandle.
  9474. * src/FtpNegotiateCommand.cc
  9475. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  9476. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  9477. (recvGreeting): Use disableWriteCheckSocket.
  9478. (recvPasv): Removed the allocation of Socket.
  9479. Use disableReadCheckSocket.
  9480. (sendRestPasv): Use disableWriteCheckSocket.
  9481. (recvRetr): Changed assertion.
  9482. * src/PeerInteraction.h
  9483. (SharedHandle.h): Included SharedHandle.h.
  9484. (PeerMessageHandle): New type definition.
  9485. (HandshakeMessageHandle): New type definition.
  9486. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  9487. (peer): Changed its type to PeerHandle.
  9488. (createHandshakeMessage): Replaced HandshakeMessage with
  9489. HandshakeMessageHandle.
  9490. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  9491. (PeerInteraction): Replaced Peer with PeerHandle.
  9492. Replaced Socket with SocketHandle.
  9493. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9494. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9495. (receiveHandshake): Replaced HandshakeMessage with
  9496. HandshakeMessageHandle.
  9497. * src/PeerInteraction.cc
  9498. (PeerInteraction): Replaced Peer with PeerHandle.
  9499. Replaced Socket with SocketHandle.
  9500. (~PeerInteraction): Removed the deallocation of the elements of
  9501. messageQueue.
  9502. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  9503. (isSendingMessageInProgress): Replaced PeerMessage with
  9504. PeerMessageHandle.
  9505. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  9506. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9507. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  9508. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  9509. (abortPiece): Use PeerMessageHandle.
  9510. (receiveHandshake): Replaced HandshakeMessage with
  9511. HandshakeMessageHandle. Removed try-catch block.
  9512. (createHandshakeMessage): Replaced HandshakeMessage with
  9513. HandshakeMessageHandle.
  9514. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9515. Removed try-catch block.
  9516. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  9517. * src/HttpProxyResponseCommand.cc
  9518. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9519. * src/FtpTunnelResponseCommand.h
  9520. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9521. * src/HttpConnection.cc
  9522. (HttpConnection): Replaced Socket with SocketHandle.
  9523. * src/PeerAbstractCommand.cc
  9524. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9525. (~PeerAbstractCommand): Removed the deallocation of socket.
  9526. Use disableReadCheckSocket, disableWriteCheckSocket.
  9527. (disableReadCheckSocket): New function.
  9528. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9529. (disableWriteCheckSocket): New function.
  9530. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9531. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  9532. * src/FtpTunnelRequestCommand.cc
  9533. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9534. (~FtpTunnelRequestCommand): Corrected indentation.
  9535. * src/DownloadCommand.h
  9536. (DownloadCommand): Replaced Socket with SocketHandle.
  9537. * src/PeerListenCommand.cc
  9538. (PeerListenCommand): Removed the initialization of socket.
  9539. (~PeerListenCommand): Removed the deallocation of socket.
  9540. (bindPort): Use SocketHandle.
  9541. (execute): Use SocketHandle and PeerHandle.
  9542. * src/FtpDowndloadCommand.cc
  9543. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9544. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9545. * src/main.cc
  9546. (main): Corrected indentation.
  9547. * src/HttpInitiateConnectionCommand.cc
  9548. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9549. (executeInternal): Removed the allocation of socket.
  9550. * src/HttpRequestCommand.h
  9551. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9552. * src/FtpNegotiationCommand.h
  9553. (dataSocket): Changed its type to SocketHandle.
  9554. (serverSocket): Changed its type to SocketHandle.
  9555. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9556. * src/TorrentMan.h
  9557. (MAX_PEER_UPDATE): Removed.
  9558. (MAX_PEERS): New definition.
  9559. (Peers): The element is now of type PeerHandle.
  9560. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9561. (getPeer): Replaced Peer with PeerHandle.
  9562. (deleteOldErrorPeers): Removed.
  9563. (deleteErrorPeer): New function.
  9564. (hasMissingPiece): Replaced Peer with PeerHandle.
  9565. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9566. (getMissingPiece): Replaced Peer with PeerHandle.
  9567. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9568. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9569. (addActivePeer): Replaced Peer with PeerHandle.
  9570. (deleteActivePeer): Replaced Peer with PeerHandle.
  9571. Added a check for the return value of find.
  9572. * src/FtpTunnelResponseCommand.cc
  9573. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9574. * src/FtpInitiateConnectionCommand.cc
  9575. (executeInternal): Removed the allocation of socket.
  9576. * src/DownloadEngine.h
  9577. (Sockets): An element is now of type SocketHandle.
  9578. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9579. (CommandUuids): New type definition.
  9580. (rsockets): Changed its type to SockCmdMap.
  9581. (wsockets): Changed its type to SockCmdMap.
  9582. (addSocket): Rewritten.
  9583. (deleteSocket): Rewritten.
  9584. (addSocketForReadCheck): Rewritten.
  9585. (deleteSocketForReadCheck): Rewritten.
  9586. (addSocketForWriteCheck): Rewritten.
  9587. (deleteSocketForWriteCheck): Rewritten.
  9588. (PairFind): New template class.
  9589. * src/HttpDownloadCommand.h
  9590. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9591. * src/FtpConnection.cc
  9592. (FtpConnection): Replaced Socket with SocketHandle.
  9593. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9594. block.
  9595. * src/InitiateConnectionCommandFactory.cc
  9596. (DlAbortEx.h): Included DlAbortEx.h.
  9597. (createInitiateConnectionCommand): Throw exception if the protocol of
  9598. requested URI is not supported.
  9599. * src/Peer.cc
  9600. (nullPeer): Changed its type to PeerHandle.
  9601. (operator==): New function.
  9602. (operator!=): New function.
  9603. * src/Peer.h
  9604. (SharedHandle.h): Included SharedHandle.h.
  9605. (operator==): New function.
  9606. (operator!=): New function.
  9607. (Peer): Added the default constructor.
  9608. Use resetStatus() to initialize member variables.
  9609. (nullPeer): Removed.
  9610. * src/TrackerUpdateCommand.cc
  9611. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9612. with MIN_PEERS.
  9613. * src/PeerListenCommand.h
  9614. (socket): Changed its type to SocketHandle.
  9615. * src/Command.h
  9616. (CommandUuid): New type definition.
  9617. (uuid): New variable.
  9618. (uuidGen): New variable.
  9619. (Command): Added the initialization of uuid.
  9620. (getUuid): New function.
  9621. * src/Socket.h
  9622. (Socket): Removed.
  9623. (SocketHandle): New type definition.
  9624. * src/DownloadEngine.h
  9625. (FindCommand): New function object.
  9626. (run): The portion of socket check was rewritten.
  9627. (SetDescriptor): New function object.
  9628. (AccumulateActiveCommandUuid): New function object.
  9629. (waitData): Rewritten.
  9630. (addSocket): Rewritten.
  9631. (deleteSocket): Rewritten.
  9632. (addSocketForReadCheck): Rewritten.
  9633. (addSocketForWriteCheck): Rewritten.
  9634. (deleteSocketForReadCheck): Rewritten.
  9635. (deleteSocketForWriteCheck): Rewritten.
  9636. * src/HttpProxyResponseCommand.h
  9637. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  9638. * src/HttpConnection.h
  9639. (socket): Changed its type to SocketHandle.
  9640. (HttpConnection): Replaced Socket with SocketHandle.
  9641. * src/PeerInitiateConnectionCommand.cc
  9642. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9643. (executeInternal): Removed the allocation of socket.
  9644. (prepareForNextPeer): Use PeerHandle.
  9645. * src/PeerMessage.h
  9646. (peer): Changed its type to PeerHandle.
  9647. (getPeer): Replaced Peer with PeerHandle.
  9648. (setPeer): Replaced Peer with PeerHandle.
  9649. * src/DownloadCommand.cc
  9650. (DownloadCommand): Replaced Socket with SocketHandle.
  9651. * src/FtpConnection.h
  9652. (socket): Changed its type to SocketHandle.
  9653. (FtpConnection): Replaced Socket with SocketHandle.
  9654. (sendPort); Replaced Socket with SocketHandle.
  9655. * src/FtpDowndloadCommand.h
  9656. (ctrlSocket): Changed its type to SocketHandle.
  9657. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9658. * src/HttpProxyRequestCommand.cc
  9659. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9660. * src/FtpTunnelRequestCommand.h
  9661. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9662. etc
  9663. * src/PeerChokeCommand.h
  9664. (setAllPeerChoked): Removed.
  9665. (setAllPeerResetDelta): Removed.
  9666. * src/PeerChokeCommand.cc
  9667. (setAllPeerChoked): Removed.
  9668. (ChokePeer): New function object.
  9669. (setAllPeerResetDelta): Removed.
  9670. (ResetDelta): New function object.
  9671. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  9672. (execute): Show download speed when the local node is a seeder.
  9673. setAllPeerChoked and setAllPeerResetDelta were rewritten
  9674. using STL.
  9675. * src/TrackerWatcherCommand.h
  9676. (MIN_PEERS): Removed.
  9677. * src/TorrentMan.cc
  9678. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  9679. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. To fix the bug that .aria2 file is not saved if downloading is stopped
  9681. by the errors:it results that aria2 can not resume downloading:
  9682. * src/main.cc
  9683. (normalDownload): Added the call to save().
  9684. (main): Added the deletion of the elements in 'reserved'.
  9685. To fix log:
  9686. * src/PeerInteraction.cc
  9687. (receiveHandshake): Fixed log.
  9688. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. To improve download performance in BitTorrent:
  9690. * src/TorrentMan.cc
  9691. (getPeer): Check the number of connections. Return nullPeer if
  9692. it is greater than MAX_PEER_UPDATE.
  9693. This code was originally here, but was removed in 0.5.1.
  9694. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. To improve the conditional compilation:
  9696. * src/MultiDiskWriter.h:
  9697. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9698. * src/MultiDiskWriter.cc:
  9699. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9700. * src/Util.h:
  9701. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9702. Added ENABLE_BITTORRENT around computeFastSet().
  9703. * src/Util.cc:
  9704. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9705. Added ENABLE_BITTORRENT around computeFastSet().
  9706. * src/messageDigest.h:
  9707. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  9708. * src/ShaVisitor.h:
  9709. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9710. * src/ShaVisitor.cc:
  9711. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9712. * src/main.cc:
  9713. Added ENABLE_BITTORRENT around includes and blocks related to
  9714. BitTorrent.
  9715. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  9716. digest support is not available.
  9717. * src/AbstractDiskWriter.h:
  9718. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9719. * src/AbstractDiskWriter.cc:
  9720. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9721. * src/MetalinkEntry.cc
  9722. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  9723. support is not available.
  9724. To add command-line options for Metalink:
  9725. * src/main.cc:
  9726. Added metalink-version, metalink-language, metalink-os,
  9727. follow-metalink.
  9728. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  9729. * src/main.cc: Use these definition.
  9730. * Release 0.6.0
  9731. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. To add Metalink support(http/ftp only):
  9733. * src/AbstractCommand.h
  9734. (tryReserved): New function.
  9735. * src/AbstractCommand.cc
  9736. (execute): Call tryReserved().
  9737. (tryReserved): New function.
  9738. * src/Request.h
  9739. (Requests): New type definition.
  9740. * src/SegmentMan.h
  9741. (reserved): New variable.
  9742. * src/Util.h
  9743. (fileChecksum): New function.
  9744. (toUpper): New function.
  9745. (toLower): New function.
  9746. * src/Util.cc
  9747. (messageDigest.h): Included.
  9748. (trim): Trim \r\n\t.
  9749. (fileChecksum): New function.
  9750. (toUpper): New function.
  9751. (toLower): New function.
  9752. * src/main.cc
  9753. (normalDownload): New function.
  9754. (main): Added 2 command-line options: metalink-file,
  9755. metalink-connection. Their usage has not been written yet.
  9756. * src/MetalinkProcessor.h: New class.
  9757. * src/Xml2MetalinkProcessor.h: New class.
  9758. * src/Xml2MetalinkProcessor.cc: New class.
  9759. * src/MetalinkEntry.h: New class.
  9760. * src/MetalinkEntry.cc: New class.
  9761. * src/MetalinkResource.h: New class.
  9762. * src/MetalinkResource.cc: New class.
  9763. To add md5 message digest checking:
  9764. * src/messageDigest.h: Rewritten.
  9765. * src/MultiDiskWriter.cc: Updated according to the changes in
  9766. messageDigest.h.
  9767. * src/ShaVisitor.cc: Updated according to the changes in
  9768. messageDigest.h.
  9769. * src/Util.cc: Updated according to the changes in messageDigest.h.
  9770. * src/AbstractDiskWriter.cc: Updated according to the changes in
  9771. messageDigest.h.
  9772. To fix a bug that causes segfault when the payload length in peer
  9773. message is less than 0:
  9774. * src/PeerConnection.cc:
  9775. (receiveMessage): Fixed the bug.
  9776. * src/PeerMessageUtil.cc
  9777. (checkLength): Throw an exception if length is less than or equals to
  9778. 0.
  9779. To add new interfaces to Base64 encoding/decoding:
  9780. * src/Base64.h
  9781. (part_encode): Changed the method signature.
  9782. (encode): New function(overload).
  9783. (decode): New function(overload).
  9784. * src/Base64.cc
  9785. (part_encode): Rewritten.
  9786. (encode): Rewritten.
  9787. (encode): New function(overload).
  9788. To prevent a peer to download same piece if there is an error in
  9789. checksum:
  9790. * src/PieceMessage.cc
  9791. (receivedAction): Call peerInteraction->abortPiece().
  9792. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9793. To fix the bug that causes same have message is sent many times to
  9794. a single peer.
  9795. * src/Time.cc
  9796. (isNewer): Use Util::difftv().
  9797. * src/Util.cc
  9798. (difftv): Added a cast to (long long int).
  9799. * src/TorrentMan.cc
  9800. (advertisePiece): Use push_front.
  9801. (getAdvertisedPieceIndexes): A performance improvement was made.
  9802. To fix the bug that sends tracker requests without a sleep interval
  9803. when the number of connections is less than 15.
  9804. * src/TrackerWatcherCommand.cc
  9805. (execute): Now the number of connections is not a factor to decide
  9806. whether or not a tracker request should be sent or not.
  9807. * src/Time.h
  9808. (setTimeInSec): New function.
  9809. * src/Time.cc
  9810. (setTimeInSec): New function.
  9811. etc.
  9812. * src/ChokeMessage.cc
  9813. (receivedAction): Removed peer->snubbing = false
  9814. * src/PeerConnection.h
  9815. (receiveHandshake): Updated doc.
  9816. * src/TorrentMan.h
  9817. (getAdvertisedPieceIndexes): Updated the method signature.
  9818. * src/TorrentMan.cc
  9819. (getAdvertisedPieceIndexes): Updated the method signature.
  9820. * src/Time.h
  9821. (getTimeInMicros): Added a cast to (long long int).
  9822. (getTimeInMillis): Added a cast to (long long int).
  9823. * Release 0.5.2
  9824. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. To make a listening socket non-block:
  9826. * src/SocketCore.h
  9827. (setNonBlockingMode): New function.
  9828. * src/SocketCore.cc
  9829. (setNonBlockingMode): New function.
  9830. (beginListen): Added a call to setNonBlockingMode().
  9831. (acceptConnection): Call setNonBlockingMode().
  9832. (setBlockingMode): Updated.
  9833. To handle tracker's NAT-checking:
  9834. * src/PeerConnection.cc
  9835. (receiveHandshake): 'msg' param is filled with received data and
  9836. its length is assigned to 'length' param, even if all handshake
  9837. message is not yet received.
  9838. * src/PeerInteractionCommand.cc
  9839. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9840. a new peer connects to localhost.
  9841. A call to peerInteraction->sendHandshake() was removed because
  9842. it is called from peerInteraction->receiveHandshake(true).
  9843. * src/PeerInteraction.h
  9844. (quickReplied): New variable.
  9845. (receiveHandshake): Added an argument.
  9846. * src/PeerInteraction.cc
  9847. (PeerInteraction): Added the initialization of quickReplied.
  9848. (receiveHandshake): Send handshake message as soon as the info hash
  9849. in a handshake message from a peer is correct.
  9850. To change the random part of peer id and key parameter:
  9851. * src/TorrentMan.h
  9852. (key): New variable.
  9853. * src/TorrentMan.cc
  9854. (setupInternal1): Use Util::randomAlpha() to generate random part
  9855. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9856. key is also generated by Util::randomAlpha() and it is now 8 character
  9857. long.
  9858. * src/Util.h
  9859. (randomAlpha): New function.
  9860. * src/Util.cc
  9861. (randomAlpha): New function.
  9862. * src/TrackerWatcherCommand.cc
  9863. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9864. Added no_peer_id=1.
  9865. Set snubbing flag to false when a choke message is received from a
  9866. snubbed peer.
  9867. * src/ChokeMessage.cc
  9868. (receivedAction): Set snubbing flag to false.
  9869. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9871. * src/SimpleLogger.h (writeHeader): New function.
  9872. * src/SimpleLogger.cc (writeHeader): New function.
  9873. (writeLog): Fixed the bug that causes segfaults if exception message
  9874. contains an unescaped "%" character.
  9875. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9876. when a tracker request fails.
  9877. * src/Request.cc (parseUrl): Query string is now handled properly.
  9878. * Release 0.5.1
  9879. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. To add Time class which represents a specific instant in time and
  9881. its precision is microseconds. Time checking procedures were rewritten
  9882. using this object.
  9883. * src/Time.h: New class.
  9884. * src/Time.cc: New class.
  9885. * src/AbstractCommand.h
  9886. (updateCheckPoint): Removed.
  9887. (isTimeoutDetected): Removed.
  9888. (checkPoint): Changed the type to Time.
  9889. (timeout): New variable.
  9890. (setTimeout): New function.
  9891. * src/AbstractCommand.cc
  9892. (AbstractCommand): Removed the initialization of checkPoint.
  9893. Added the initialization of timeout.
  9894. (updateCheckPoint): Removed.
  9895. (isTimeoutDetected): Removed.
  9896. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9897. * src/PeerChokeCommand.h
  9898. (checkPoint): Changed the type to Time.
  9899. * src/PeerChokeCommand.cc
  9900. (PeerChokeCommand): Removed the initialization of checkPoint.
  9901. (execute): Rewritten using Time object.
  9902. * src/TrackerWatcherCommand.h
  9903. (checkPoint): Changed the type to Time.
  9904. * src/TrackerWatcherCommand.cc
  9905. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9906. (execute): Rewritten.
  9907. * src/ConsoleDownloadEngine.h
  9908. (cp): Changed the type to Time.
  9909. (startup): Changed the type to Time.
  9910. * src/ConsoleDownloadEngine.cc
  9911. (initStatistics): Use cp.reset(), startup.reset().
  9912. (calculateStatistics): Rewritten using Time object.
  9913. * src/PeerAbstractCommand.h
  9914. (updateCheckPoint): Removed.
  9915. (isTimeoutDetected): Removed.
  9916. (checkPoint): Changed the type to Time.
  9917. * src/PeerAbstractCommand.cc
  9918. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9919. (updateCheckPoint): Removed.
  9920. (isTimeoutDetected): Removed.
  9921. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9922. * src/PeerInteractionCommand.cc
  9923. (PeerInteractionCommand): Removed the initializations of struct
  9924. timeval variables.
  9925. * src/PeerInteractionCommand.h
  9926. (keepAliveCheckPoint): Changed the type to Time.
  9927. (chokeCheckPoint): Changed the type to Time.
  9928. (freqCheckPoint): Changed the type to Time.
  9929. (haveCheckTime): Changed the type to Time.
  9930. * src/PeerInteractionCommand.cc
  9931. (executeInternal): Rewritten using Time object.
  9932. (detectMessageFlooding): Rewritten using Time object.
  9933. (checkLongTimePeerChoking): Rewritten using Time object.
  9934. (sendKeepAlive): Rewritten using Time object.
  9935. (checkHave): Rewritten using Time object.
  9936. * src/SleepCommand.h
  9937. (checkPoint): Changed the type to Time.
  9938. * src/SleepCommand.cc
  9939. (SleepCommand): Removed the initialization of checkPoint.
  9940. (execute): Rewritten using Time object.
  9941. * src/TorrentAutoSaveCommand.h
  9942. (checkPoint): Changed the type to Time.
  9943. * src/TorrentAutoSaveCommand.cc
  9944. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9945. (execute): Rewritten.
  9946. * src/DownloadCommand.h
  9947. (sw): Changed the type to Time.
  9948. * src/DownloadCommand.cc
  9949. (DownloadCommand): Removed the initialization of sw.
  9950. (executeInternal): Rewritten.
  9951. * src/RequestSlot.h
  9952. (dispatchedTime): Changed the type to Time.
  9953. * src/RequestSlot.cc
  9954. (RequestSlot): Removed the call to setDispatchedTime().
  9955. (setDispatchedTime): Rewirtten.
  9956. (isTimeout): Rewritten.
  9957. (getLatencyInMillis): Rewritten.
  9958. * src/TorrentDownloadEngine.h
  9959. (cp): Changed the type to Time[2].
  9960. (startup): Changed the type to Time.
  9961. * src/TorrentDownloadEngine.cc
  9962. (initStatistics): Rewritten.
  9963. (calculateStatistics): Rewritten.
  9964. * src/DownloadEngine.cc
  9965. (run): Rewritten.
  9966. To detect all attempts to connect to the tracker are failed:
  9967. * src/AbstractCommand.cc
  9968. (execute): Increment e->segmentMan->errors if a command aborted.
  9969. * src/SegmentMan.h
  9970. (errors): New variable.
  9971. * src/SegmentMan.cc
  9972. (SegmentMan): Added the initialization of errors.
  9973. (init): Added the initialization of errors.
  9974. * src/TrackerWatcherCommand.cc
  9975. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9976. request was failed.
  9977. To handle snubbed peers:
  9978. * src/PeerChokeCommand.cc
  9979. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9980. (execute): Snubbed peers don't get unchoked.
  9981. * src/PeerInteraction.h
  9982. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9983. * src/PeerInteraction.cc
  9984. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9985. back the requested 16k block in 60 seconds.
  9986. * src/PieceMessage.cc
  9987. (receivedAction): A peer's snubbed state is cleard if it sends
  9988. the requested 16k block in 60 seconds.
  9989. * src/Peer.h
  9990. (snubbing): New variable.
  9991. * src/Peer.cc
  9992. (resetStatus): Added snubbed = false.
  9993. To fix the bug that causes have message is not sent:
  9994. * src/PeerInteractionCommand.cc
  9995. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9996. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9997. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9998. * src/TorrentMan.h
  9999. (HaveEntry): New class.
  10000. (advertisePiece): Rewritten.
  10001. (getAdvertisedPieceIndexes): Rewritten.
  10002. (Haves): Changed the type.
  10003. (getAdvertisedPieceIndexes): Added an argument.
  10004. Others:
  10005. * src/TorrentMan.h
  10006. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  10007. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  10008. * src/TorrentMan.cc
  10009. (getPeer): Don't check the number of connections here.
  10010. (setupInternal1): Changed peerId.
  10011. * src/PeerInteractionCommand.h
  10012. (KEEP_ALIVE_INTERVAL): New definition.
  10013. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  10014. * src/main.cc
  10015. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  10016. * src/DownloadEngine.h: Removed unnecessary header includes.
  10017. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. To fix the bug that causes segfaults if a tracker returns a zero-length
  10019. list as "peers":
  10020. * src/TrackerUpdateCommand.cc
  10021. (execute): Added a check to see wether the type of peers is Data*.
  10022. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. * Release 0.5.0
  10024. To fix compile issue with gcc3:
  10025. * src/CancelMessage.h
  10026. (ID): Renamed as ID_t
  10027. (ID_t): New enum.
  10028. * src/RejectMessage.h
  10029. (ID): Renamed as ID_t
  10030. (ID_t): New enum.
  10031. * src/SuggestPieceMessage.h
  10032. (ID): Renamed as ID_t
  10033. (ID_t): New enum.
  10034. * src/AllowedFastMessage.h
  10035. (ID): Renamed as ID_t
  10036. (ID_t): New enum.
  10037. * src/PortMessage.h
  10038. (ID): Renamed as ID_t
  10039. (ID_t): New enum.
  10040. * src/HaveNoneMessage.h
  10041. (ID): Renamed as ID_t
  10042. (ID_t): New enum.
  10043. * src/KeepAliveMessage.h
  10044. (ID): Renamed as ID_t
  10045. (ID_t): New enum.
  10046. * src/HaveAllMessage.h
  10047. (ID): Renamed as ID_t
  10048. (ID_t): New enum.
  10049. * src/UnchokeMessage.h
  10050. (ID): Renamed as ID_t
  10051. (ID_t): New enum.
  10052. * src/BitfieldMessage.h
  10053. (ID): Renamed as ID_t
  10054. (ID_t): New enum.
  10055. * src/PieceMessage.h
  10056. (ID): Renamed as ID_t
  10057. (ID_t): New enum.
  10058. * src/RequestMessage.h
  10059. (ID): Renamed as ID_t
  10060. (ID_t): New enum.
  10061. * src/NotInterestedMessage.h
  10062. (ID): Renamed as ID_t
  10063. (ID_t): New enum.
  10064. * src/ChokeMessage.h
  10065. (ID): Renamed as ID_t
  10066. (ID_t): New enum.
  10067. * src/InterestedMessage.h
  10068. (ID): Renamed as ID_t
  10069. (ID_t): New enum.
  10070. * src/HaveMessage.h
  10071. (ID): Renamed as ID_t
  10072. (ID_t): New enum.
  10073. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. * src/PeerAbstractCommand.h
  10075. (beforeSocketCheck): Removed.
  10076. * src/PeerAbstractCommand.cc
  10077. Modified in order to call executeInternal() even if socket check
  10078. and upload limit check fail.
  10079. * src/PeerInteractionCommand.h
  10080. (keepAlive): Removed.
  10081. (sendKeepAlive): New function.
  10082. (checkHave): New function.
  10083. (beforeSocketCheck): Removed.
  10084. * src/PeerInteractionCommand.cc
  10085. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  10086. calls to checkHave() and sendKeepAlive().
  10087. (keepAlive): Renamed to sendKeepAlive().
  10088. (sendKeepAlive): New function.
  10089. (beforeSocketCheck): Removed.
  10090. (checkHave): New function.
  10091. * src/BitfieldMan.cc
  10092. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  10093. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  10094. 0.
  10095. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  10096. * src/TorrentMan.h
  10097. (UsedPieces): Removed.
  10098. (Pieces): New type definition.
  10099. * src/Piece.h: Updated doc.
  10100. * src/Peer.h
  10101. (totalLength): Removed.
  10102. * src/Peer.cc
  10103. (updateLatency): Fixed the latency calculation.
  10104. * src/TorrentMan.cc
  10105. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  10106. than or equal to MAX_PEER_LIST_SIZE.
  10107. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  10108. then return false.
  10109. (deleteOldErrorPeers): Rewritten.
  10110. (deleteUsedPiece): Fixed the miss use of STL remove.
  10111. * src/PeerInteraction.h
  10112. (Pieces): Removed.
  10113. (deleteTimeoutRequestSlot): Removed.
  10114. (deleteCompletedRequestSlot): Removed.
  10115. (checkRequestSlot): New function.
  10116. * src/PeerInteraction.cc
  10117. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  10118. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  10119. (checkRequestSlot): New function.
  10120. * src/DownloadEngine.cc
  10121. (run): Clear activeSockets before calling waitData().
  10122. (waitData): Removed a call to activeSockets.clear().
  10123. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. To attempt to handle EINTR:
  10125. * src/SocketCore.cc
  10126. (isReadable): Added EINTR handling.
  10127. (isWritable): Added EINTR handling.
  10128. To improve the performance:
  10129. * src/AbstractCommand.cc
  10130. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10131. * src/PeerInteractionCommand.h
  10132. (receiveMessage): Renamed as receiveMessages().
  10133. (receiveMessages): New function.
  10134. * src/PeerInteractionCommand.cc
  10135. (executeInternal): receiveMessage loop is moved to new receiveMessages
  10136. () function. detectMessageFlooding() is moved here.
  10137. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  10138. (). The flooding detection for have message is comment out.
  10139. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  10140. Util::difftv().
  10141. (receiveMessage): Renamed as receiveMessages().
  10142. (receiveMessages): New function.
  10143. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  10144. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  10145. * src/SleepCommand.cc
  10146. (execute): Use Util::difftvsec() instead of Util::difftv().
  10147. * src/BitfieldMan.h
  10148. (getNthBitIndex): New function.
  10149. (hasMissingPiece): New function.
  10150. (getAllMissingIndexes): New function.
  10151. * src/BitfieldMan.cc
  10152. (countSetBit): Rewritten.
  10153. (getNthBitIndex): New function.
  10154. (getMissingIndexRandomly): Rewritten.
  10155. (hasMissingPiece): New function.
  10156. (getAllMissingIndexes): New function.
  10157. * src/TorrentMan.cc
  10158. (hasMissingPiece): New function.
  10159. (deleteUsedPiece): Rewritten using STL.
  10160. * src/PeerInteraction.cc
  10161. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  10162. is a little bit faster then TorrentMan::getMissingPieceIndex().
  10163. (addRequests): Updated the number of pending requests.
  10164. * src/PeerAbstractCommand.cc
  10165. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10166. (execute): Returns true if TorrentMan::isHalt() is true.
  10167. Corrected the condition of upload limit checking.
  10168. * src/Util.h
  10169. (countBit): New function.
  10170. * src/Util.cc
  10171. (nbits): New variable.
  10172. (countBit): New function.
  10173. * src/DownloadEngine.h
  10174. (SockCmdMap): New type definition.
  10175. (waitData): Added an argument.
  10176. (addSocket): Added an argument.
  10177. (addSocketForReadCheck): Added an argument.
  10178. (addSocketForWriteCheck): Added an argument.
  10179. * src/DownloadEngine.cc
  10180. (run): Executes only commands whose sockets are ready to read or write.
  10181. All commands are executed in every 1 second.
  10182. (waitData): Calls select() again if it returned
  10183. EINTR.
  10184. (addSocket): Saves socket and command object pair to the map.
  10185. (deleteSocket): Deletes socket and command object pair from the map.
  10186. (addSocketForReadCheck): Added an argument.
  10187. (addSocketForWriteCheck): Added an argument.
  10188. * src/DownloadCommand.cc
  10189. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  10190. To send "event=stopped" to the tracker when the application finishes:
  10191. * src/PeerChokeCommand.h
  10192. (checkPoint): New variable.
  10193. * src/PeerChokeCommand.cc
  10194. (PeerChokeCommand): Added the initialization of checkPoint.
  10195. (execute): The interval check is now done by checkPoint, not
  10196. SleepCommand. Return true if TorrentMan::isHalt() is true.
  10197. * src/TorrentMan.h
  10198. (halt): New function.
  10199. (hasMissingPiece): New function.
  10200. (isHalt): New function.
  10201. (setHalt): New function.
  10202. * src/TorrentMan.cc
  10203. (TorrentMan): Added the initialization of halt.
  10204. * src/TorrentAutoSaveCommand.h
  10205. (checkPoint): New variable.
  10206. * src/PeerListenCommand.cc
  10207. (execute): Returns true if TorrentMan::isHalt() is true.
  10208. * src/main.cc
  10209. (setSignalHander): Added flags argument.
  10210. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  10211. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  10212. Removed printDownloadAbortMessage() after torrent downloading loop.
  10213. * src/TorrentAutoSaveCommand.cc
  10214. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  10215. (execute): Returns true if TorrentMan::isHalt() is true.
  10216. The interval check is now done by checkPoint, not SleepCommand.
  10217. * src/TrackerWatcherCommand.cc
  10218. (execute): If TorrentMan::isHalt(), then create a tracker request with
  10219. event=stopped.
  10220. * src/TrackerUpdateCommand.cc
  10221. (prepareForRetry): Do not use SleepCommand here.
  10222. (execute): Returns true if TorrentMan::isHalt() is true.
  10223. Others:
  10224. * src/TorrentMan.cc
  10225. (getMissingPieceIndex): Updated log message.
  10226. * src/PeerInteraction.cc
  10227. (createPeerMessag): Updated log message.
  10228. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. To add the ability to download several pieces in mix in a command and
  10230. increase the number of request slots according to request-cancel
  10231. latency:
  10232. * src/PeerInteractionCommand.cc
  10233. (executeInternal): The number of messages to be received at a time
  10234. is increased from 10 to 50.
  10235. * src/LogFactory
  10236. (getInstance): Added NullLogger.
  10237. * src/NullLogger.h: New class.
  10238. * src/BitfieldMan.h
  10239. (getMissingIndex): New function.
  10240. * src/BitfieldMan.cc
  10241. (getMissingIndex): New function.
  10242. * src/TorrentMan.h
  10243. (checkOutPiece): New function.
  10244. (getMissingPieceIndex): New function.
  10245. (getMissingFastPieceIndex): New function.
  10246. (getMissingFastPiece): New function.
  10247. * src/TorrentMan.cc
  10248. (updatePiece): Rewritten using STL.
  10249. (syncPiece): Rewritten using STL.
  10250. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  10251. checkOutPiece().
  10252. (getMissingPieceIndex): New function.
  10253. (getMissingFastPieceIndex): New function.
  10254. (getMissingFastPiece): New function.
  10255. (checkOutPiece): New function.
  10256. * src/PeerInteraction.h
  10257. (Pieces): New type definition.
  10258. (piece): Removed.
  10259. (pieces): New variable.
  10260. (getNewPieceAndSendInterest): Added the "piece" argument.
  10261. (abortPiece): Added the "piece" argument.
  10262. (abortAllPieces): New function.
  10263. (isInRequestSlot): New function.
  10264. (hasDownloadPiece): Added the "index" argument.
  10265. (setDownloadPiece): Removed.
  10266. (getDownloadPiece): Added the "index" argument.
  10267. (updatePiece): New function.
  10268. (createRequestMessage): Added the "index" argument.
  10269. * src/PeerInteraction.cc
  10270. (onChoked): Rewritten.
  10271. (abortPiece): Rewirtten.
  10272. (abortAllPieces): New function.
  10273. (deleteTimeoutRequestSlot): Rewritten.
  10274. Clarified code a little bit.
  10275. (deleteCompletedRequestSlot): Rewritten.
  10276. (isInRequestSlot): New function.
  10277. (syncPiece): Rewritten.
  10278. (updatePiece): New function.
  10279. (getNewPieceAndSendInterest): Rewritten.
  10280. (addRequests): Rewritten.
  10281. (getDownloadPiece): Rewritten.
  10282. (hasDownloadPiece): Rewritten.
  10283. (createRequestMessage): Added the "index" argument.
  10284. * src/common.h
  10285. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  10286. (DIV_FLOOR): New definition.
  10287. * src/PieceMessage.cc
  10288. (receivedAction): Update request-piece latency here.
  10289. * src/RequestSlot.h
  10290. (getLatencyInMillis): New function.
  10291. * src/RequestSlot.cc
  10292. (isTimeout): Rewritten using getLatencyInMillis.
  10293. (getLatencyInMillis): New function.
  10294. * src/Piece.h
  10295. (operator==): New function.
  10296. (getMissingBlockIndex): New function.
  10297. * src/Piece.cc
  10298. (operator==): New function.
  10299. (getMissingBlockIndex): New function.
  10300. * src/Peer.h
  10301. (DEFAULT_LATENCY): New definition.
  10302. (latency): New variable.
  10303. (updateLatency): New function.
  10304. (getLatency): New function.
  10305. * src/Peer.cc
  10306. (resetStatus): Reset latecy.
  10307. (updateLatency): New function.
  10308. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. * src/SocketCore.cc
  10310. (isReadable): Added secure to the condition.
  10311. * src/HttpConnection.cc
  10312. (receiveResponse): Fixed a bug that causes no response header
  10313. exception.
  10314. * src/Peer.h
  10315. (getFastSet): Fixed the return value type.
  10316. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10317. To remove a wait from download loop:
  10318. * src/DownloadEngine.cc
  10319. (run): Comment out shortSleep.
  10320. To rewrite the message handling:
  10321. * src/SimplePeerMessage.h: New class.
  10322. * src/SimplePeerMessage.cc: New class.
  10323. * src/CancelMessage.h: Derived from SimplePeerMessage.
  10324. (msg): New variable.
  10325. (create): New function.
  10326. (send): Removed.
  10327. (getMessage): New function.
  10328. (getMessageLength): New function.
  10329. * src/CancelMessage.cc
  10330. (create): New function.
  10331. (receivedAction): Replaced deleteRequestMessageInQueue with
  10332. rejectPieceMessageInQueue.
  10333. (send): Removed.
  10334. (getMessage): New function.
  10335. (getMessageLength): New function.
  10336. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  10337. (msg): New variable.
  10338. (msgLength): New variable.
  10339. (~BitfieldMessage): Deleted msg.
  10340. (send): Removed.
  10341. (getMessage): New function.
  10342. (getMessageLength): New function.
  10343. * src/BitfieldMessage.cc
  10344. (create): New function.
  10345. (send): Removed.
  10346. (getMessage): New function.
  10347. (getMessageLength): New function.
  10348. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  10349. (msg): New variable.
  10350. (sendPredicate): New function.
  10351. (onSendComplete): New function.
  10352. (send): Removed.
  10353. (getMessage): New function.
  10354. (getMessageLength): New function.
  10355. (create): New function.
  10356. * src/ChokeMessage.cc
  10357. (create): New function.
  10358. (send): Removed.
  10359. (sendPredicate): New function.
  10360. (getMessage): New function.
  10361. (getMessageLength): New function.
  10362. (onSendComplete): New function.
  10363. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  10364. (msg): New variable.
  10365. (send): Removed.
  10366. (getMessage): New function.
  10367. (getMessageLength): New function.
  10368. * src/KeepAliveMessage.cc
  10369. (send): Removed.
  10370. (getMessage): New function.
  10371. (getMessageLength): New function.
  10372. * src/PortMessage.h
  10373. (create): New function.
  10374. (receivedAction): Updated log message.
  10375. * src/PortMessage.cc: New file.
  10376. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  10377. (msg): New variable.
  10378. (sendPredicate): New function.
  10379. (onSendComplete): New function.
  10380. (create): New function.
  10381. (send): Removed.
  10382. (getMessage): New function.
  10383. (getMessageLength): New function.
  10384. * src/UnchokeMessage.cc
  10385. (create): New function.
  10386. (send): Removed.
  10387. (sendPredicate): New function.
  10388. (getMessage): New function.
  10389. (getMessageLength): New function.
  10390. (onSendComplete): New function.
  10391. * src/PieceMessage.h
  10392. (leftPieceDataLength): Removed.
  10393. (leftDataLength): New variable.
  10394. (headerSend): New variable.
  10395. (pendingCount): New variable.
  10396. (msgHeader): New variable.
  10397. (sendPieceData): New function.
  10398. (incrementPendingCount): New function.
  10399. (isPendingCountMax): New function.
  10400. (create): New function.
  10401. (getMessageHeader): New function.
  10402. (getMessageHeaderLength): New function.
  10403. * src/PieceMessage.cc
  10404. (create): New function.
  10405. (getMessageHeader): New function.
  10406. (getMessageHeaderLength): New function.
  10407. (send): Rewritten.
  10408. (sendPieceData): New function.
  10409. * src/HaveMessage.h: Derived from SimplePeerMessage.
  10410. (msg): New variable.
  10411. (create): New function.
  10412. (getMessage): New function.
  10413. (getMessageLength): New function.
  10414. * src/HaveMessage.cc
  10415. (create): New function.
  10416. (send): Removed.
  10417. (sendPieceData): New function.
  10418. (getMessage): New function.
  10419. (getMessageLength): New function.
  10420. * src/RequestMessage.h: Derived from SimplePeerMessage.
  10421. (msg): New variable.
  10422. (create): New function.
  10423. (send): Removed.
  10424. (getMessage): New function.
  10425. (getMessageLength): New function.
  10426. * src/RequestMessage.cc
  10427. (create): New function.
  10428. (receivedAction): Added the handling of fast extension.
  10429. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  10430. (send): Removed.
  10431. (getMessage): New function.
  10432. (getMessageLength): New function.
  10433. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  10434. (msg): New variable.
  10435. (sendPredicate): New function.
  10436. (onSendComplete): New function.
  10437. (create): New function.
  10438. (getMessage): New function.
  10439. (getMessageLength): New function.
  10440. * src/InterestedMessage.cc
  10441. (create): New function.
  10442. (send): Removed.
  10443. (sendPieceData): New function.
  10444. (getMessage): New function.
  10445. (getMessageLength): New function.
  10446. (onSendComplete): New function.
  10447. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  10448. (msg): New variable.
  10449. (sendPieceData): New function.
  10450. (onSendComplete): New function.
  10451. (create): New function.
  10452. (send): Removed.
  10453. (getMessage): New function.
  10454. (getMessageLength): New function.
  10455. * src/NotInterestedMessage.cc
  10456. (create): New function.
  10457. (send): Removed.
  10458. (sendPredicate): New function.
  10459. (getMessage): New function.
  10460. (getMessageLength): New function.
  10461. (onSendComplete): New function.
  10462. * src/AllowedFastMessage.h: New class.
  10463. * src/AllowedFastMessage.cc: New class.
  10464. * src/RejectMessage.h: New class.
  10465. * src/RejectMessage.cc: New class.
  10466. * src/SuggestPieceMessage.h: New class.
  10467. * src/SuggestPieceMessage.cc: New class.
  10468. * src/HaveAllMessage.h: New class.
  10469. * src/HaveAllMessage.cc: New class.
  10470. * src/HaveNoneMessage.h: New class.
  10471. * src/HaveNoneMessage.cc: New class.
  10472. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  10473. (msg): New variable.
  10474. (reserved): New variable.
  10475. (create): New function.
  10476. (getId): New function.
  10477. (receivedAction): New function.
  10478. (getMessage): New function.
  10479. (getMessageLength): New function.
  10480. (isFastExtensionSupported): New function.
  10481. * src/HandshakeMessage.cc
  10482. (HandshakeMessage): Moved here from HandshakeMessage.h.
  10483. (create): New function.
  10484. (getMessage): New function.
  10485. (getMessageLength): New function.
  10486. (toString): Added the output of reserved field.
  10487. (check): Added const qualifier.
  10488. (isFastExtensionSupported): New function.
  10489. * src/PeerMessageUtil.h
  10490. (createChokeMessage): Removed.
  10491. (createUnchokeMessage): Removed.
  10492. (createInterestedMessage): Removed.
  10493. (createNotInterestedMessage): Removed.
  10494. (createHaveMessage): Removed.
  10495. (createBitfieldMessage): Removed.
  10496. (createRequestMessage): Removed.
  10497. (createCancelMessage): Removed.
  10498. (createPieceMessage): Removed.
  10499. (createPortMessage): Removed.
  10500. (createChokeMessage): Removed.
  10501. (createUnchokeMessage): Removed.
  10502. (createInterestedMessage): Removed.
  10503. (createNotInterestedMessage): Removed.
  10504. (createHaveMessage): Removed.
  10505. (createBitfieldMessage): Removed.
  10506. (createRequestMessage): Removed.
  10507. (createCancelMessage): Removed.
  10508. (createPieceMessage): Removed.
  10509. (createKeepAliveMessage): Removed.
  10510. (createHandshakeMessage): Removed.
  10511. (setIntParam): New function.
  10512. (createPeerMessageString): New function.
  10513. * src/PeerMessageUtil.cc
  10514. (createChokeMessage): Removed.
  10515. (createUnchokeMessage): Removed.
  10516. (createInterestedMessage): Removed.
  10517. (createNotInterestedMessage): Removed.
  10518. (createHaveMessage): Removed.
  10519. (createBitfieldMessage): Removed.
  10520. (createRequestMessage): Removed.
  10521. (createCancelMessage): Removed.
  10522. (createPieceMessage): Removed.
  10523. (createPortMessage): Removed.
  10524. (createRequestMessage): Removed.
  10525. (createCancelMessage): Removed.
  10526. (createPieceMessage): Removed.
  10527. (createHaveMessage): Removed.
  10528. (createChokeMessage): Removed.
  10529. (createUnchokeMessage): Removed.
  10530. (createInterestedMessage): Removed.
  10531. (createNotInterestedMessage): Removed.
  10532. (createBitfieldMessage): Removed.
  10533. (createKeepAliveMessage): Removed.
  10534. (createHandshakeMessage): Removed.
  10535. (setIntParam): New function.
  10536. (createPeerMessageString): New function.
  10537. * src/PeerConnection.h
  10538. (peer): Removed.
  10539. (torrentMan): Removed.
  10540. (createNLengthMessage): Removed.
  10541. (setIntParam): Removed.
  10542. (writeOutgoingMessageLog): Removed all overloaded functions.
  10543. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10544. (sendMessage): New function.
  10545. (sendHandshake): Removed.
  10546. (sendKeepAlive): Removed.
  10547. (sendChoke): Removed.
  10548. (sendUnchoke): Removed.
  10549. (sendInterested): Removed.
  10550. (sendNotInterested): Removed.
  10551. (sendHave): Removed.
  10552. (sendBitfield): Removed.
  10553. (sendRequest): Removed.
  10554. (sendPiece): Removed.
  10555. (sendPieceHeader): Removed.
  10556. (sendPieceData): Removed.
  10557. (sendCancel): Removed.
  10558. (getPeer): Removed.
  10559. * src/PeerConnection.cc
  10560. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10561. (sendHandshake): Removed.
  10562. (sendKeepAlive): Removed.
  10563. (createNLengthMessage): Removed.
  10564. (setIntParam): Removed.
  10565. (writeOutgoingMessageLog): Removed all overloaded functions.
  10566. (sendChoke): Removed.
  10567. (sendUnchoke): Removed.
  10568. (sendInterested): Removed.
  10569. (sendNotInterested): Removed.
  10570. (sendHave): Removed.
  10571. (sendBitfield): Removed.
  10572. (sendRequest): Removed.
  10573. (sendPiece): Removed.
  10574. (sendPieceHeader): Removed.
  10575. (sendPieceData): Removed.
  10576. (sendMessage): New function.
  10577. (sendCancel): Removed.
  10578. * src/PeerInteractionCommand.cc
  10579. (PeerInteractionCommand): Call setUploadLimit.
  10580. (executeInternal): Call setUploadLimit.
  10581. Added the handling of "inProgress" state of handshake message.
  10582. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10583. sendNow().
  10584. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10585. sendNow().
  10586. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10587. * src/TorrentMan.h
  10588. (PEER_ID_LENGTH): New definition.
  10589. (hasAllPieces): New function.
  10590. * src/TorrentMan.cc
  10591. (getMissingPiece): Added the handling of fast extension.
  10592. (cancelPiece): Call updatePiece().
  10593. (hasAllPieces): New function.
  10594. * src/PeerInteraction.h
  10595. (fastSet): New variable.
  10596. (getNewPieceAndSendInterest): Changed the return type to void.
  10597. (send): Renamed as sendMessages.
  10598. (deleteAllRequestSlot): Removed.
  10599. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10600. (cancelAllRequest): Removed all overloaded functions.
  10601. (deleteAllRequestSlot): Removed.
  10602. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10603. (rejectPieceMessageInQueue): New function.
  10604. (rejectAllPieceMessageInQueue): New function.
  10605. (onChoked): New function.
  10606. (isSendingMessageInProgress): New function.
  10607. (getCorrespondingRequestSlot): Changed its arguments.
  10608. (isInFastSet): New function.
  10609. (addFastSetIndex): New function.
  10610. (addRequests): New function.
  10611. (sendNow): Removed.
  10612. (trySendNow): Removed.
  10613. (sendBitfield): New function.
  10614. (sendAllowdFast): New function.
  10615. (createHaveAllMessage): New function.
  10616. (createHaveNoneMessage): New function.
  10617. (createRejectMessage): New function.
  10618. (createAllowedFastMessage): New function.
  10619. * src/PeerInteraction.cc
  10620. (send): Renamed as sendMessages.
  10621. (sendMessages): New function.
  10622. (MsgPushBack): New class.
  10623. (isSendingMessageInProgress): New function.
  10624. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10625. (rejectAllPieceMessageInQueue): New function.
  10626. Added the handling of fast extension.
  10627. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10628. (rejectPieceMessageInQueue): New function.
  10629. Added the handling of fast extension.
  10630. (deleteRequestSlot): Replaced for loop with std::find.
  10631. (onChoked): New function.
  10632. (deleteAllRequestSlot): Removed.
  10633. (abortPiece): Rewirtten.
  10634. (deleteTimeoutRequestSlot): Updated log messages.
  10635. (getCorrespondingRequestSlot): Changed its arguments.
  10636. (cancelAllRequest): Removed all overloaded functions.
  10637. (receiveHandshake): Added the check to see whether an incoming peer
  10638. supports fast extension.
  10639. (createHandshakeMessage): Use HandshakeMessage::create instead of
  10640. PeerMessageUtil.
  10641. (createPeerMessage): Use create() of each message class instead of
  10642. PeerMessageUtil.
  10643. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  10644. AllowedFastMessage were added.
  10645. (getNewPieceAndSendInterest): Changed its return value type to void.
  10646. Added the handling of fast extension.
  10647. (addRequests): New function.
  10648. (sendNow): Removed.
  10649. (sendHandshake): Rewritten.
  10650. (trySendNow): Removed.
  10651. (sendBitfield): New function.
  10652. (sendAllowdFast): New function.
  10653. (isInFastSet): New function.
  10654. (addFastSetIndex): New function.
  10655. (createRequestMessage): Use RequestMessage::create instead of
  10656. PeerMessageUtil.
  10657. (createCancelMessage): Use CancelMessage::create instead of
  10658. PeerMessageUtil.
  10659. (createPieceMessage): Use PieceMessage::create instead of
  10660. PeerMessageUtil.
  10661. (createHaveMessage): Use HaveMessage::create instead of
  10662. PeerMessageUtil.
  10663. (createChokeMessage): Use ChokeMessage::create instead of
  10664. PeerMessageUtil.
  10665. (createUnchokeMessage): Use UnchokeMessage::create instead of
  10666. PeerMessageUtil.
  10667. (createInterestedMessage): Use InterestedMessage::create instead of
  10668. PeerMessageUtil.
  10669. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  10670. of PeerMessageUtil.
  10671. (createBitfieldMessage): Use BitfieldMessage::create instead of
  10672. PeerMessageUtil.
  10673. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  10674. PeerMessageUtil.
  10675. (createHaveAllMessage): New function.
  10676. (createHaveNoneMessage): New function.
  10677. (createRejectMessage): New function.
  10678. (createAllowedFastMessage: New function.
  10679. * src/Util.h
  10680. (sha1Sum): New function.
  10681. (computeFastSet): New function.
  10682. * src/Util.cc
  10683. (sha1Sum): New function.
  10684. (computeFastSet): New function.
  10685. * src/Peer.h
  10686. (fastExtensionEnabled): New variable.
  10687. (fastSet): New variable.
  10688. (setAllBitfield): New function.
  10689. (setFastExtensionEnabled): New function.
  10690. (isFastExtensionEnabled): New function.
  10691. (addFastSetIndex): New function.
  10692. (getFastSet): New function.
  10693. (isInFastSet): New function.
  10694. (countFastSet): New function.
  10695. * src/Peer.cc
  10696. (isInFastSet): New function.
  10697. (addFastSetIndex): New function.
  10698. (setAllBitfield): New function.
  10699. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  10700. sockets.
  10701. * src/PeerAbstractCommand.cc
  10702. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  10703. and uploadLimit.
  10704. (execute): Changed the procedure of checking sockets. The upload speed
  10705. checking were added.
  10706. (setUploadLimit): New function.
  10707. (setUploadLimitCheck): New function.
  10708. * src/PeerAbstractCommand.h
  10709. (setUploadLimit): New function.
  10710. (setUploadLimitCheck): New function.
  10711. (uploadLimit): New variable.
  10712. (uploadLimitCheck): New variable.
  10713. To contact a tracker regularly:
  10714. * src/TrackerWatcherCommand.h (interval): New variable.
  10715. (checkPoint): New variable.
  10716. (TrackerWatcherCommand): Added interval argument.
  10717. * src/TrackerWatcherCommand.cc
  10718. (TrackerWatcherCommand): Initialized checkPoint.
  10719. (execute): Now a tracker is contacted in every specified period.
  10720. If peer list is not needed, send request with numwant=0.
  10721. * src/TrackerUpdateCommand.cc
  10722. (execute): Updated log messages.
  10723. * src/DownloadEngine.cc
  10724. (~DownloadEngine): Removed two asserts.
  10725. (waitData): Uncommented wfds. May be a bug fix.
  10726. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10727. * src/PeerInteractionCommand.h
  10728. (checkInactiveConnection): Removed.
  10729. * src/PeerInteractionCommand.cc
  10730. (executeInternal): Removed following function calls:
  10731. detectMessageFlooding(), checkLongTimePeerChoking and
  10732. checkInactiveConnection().
  10733. (checkInactiveConnection): Removed.
  10734. (detectMessageFlooding): Removed function call to
  10735. checkInactiveConnection().
  10736. * src/PeerMessageUtil.h
  10737. (createChokeMessage): New function. Overload.
  10738. (createUnchokeMessage): New function. Overload.
  10739. (createInterestedMessage): New function. Overload.
  10740. (createNotInterestedMessage): New function. Overload.
  10741. (createHaveMessage): New function. Overload.
  10742. (createBitfieldMessage): New function. Overload.
  10743. (createRequestMessage): New function. Overload.
  10744. (createCancelMessage): New function. Overload.
  10745. (createPieceMessage): New function. Overload.
  10746. (createKeepAliveMessage): New function. Overload.
  10747. * src/PeerMessageUtil.cc
  10748. (createChokeMessage): New function. Overload.
  10749. (createUnchokeMessage): New function. Overload.
  10750. (createInterestedMessage): New function. Overload.
  10751. (createNotInterestedMessage): New function. Overload.
  10752. (createHaveMessage): New function. Overload.
  10753. (createBitfieldMessage): New function. Overload.
  10754. (createRequestMessage): New function. Overload.
  10755. (createCancelMessage): New function. Overload.
  10756. (createPieceMessage): New function. Overload.
  10757. (createKeepAliveMessage): New function. Overload.
  10758. * src/SendMessageQueue.cc
  10759. (createRequestMessage): Use PeerMessageUtil.
  10760. (createCancelMessage): Use PeerMessageUtil.
  10761. (createPieceMessage): Use PeerMessageUtil.
  10762. (createHaveMessage): Use PeerMessageUtil.
  10763. (createChokeMessage): Use PeerMessageUtil.
  10764. (createUnchokeMessage): Use PeerMessageUtil.
  10765. (createInterestedMessage): Use PeerMessageUtil.
  10766. (createNotInterestedMessage): Use PeerMessageUtil.
  10767. (createBitfieldMessage): Use PeerMessageUtil.
  10768. (createKeepAliveMessage): Use PeerMessageUtil.
  10769. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  10770. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  10771. * src/PeerInteraction.h: New class.
  10772. * src/PeerInteraction.cc: New class.
  10773. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10774. Each peer message has its own class.
  10775. * src/PendingMessages.h: Removed.
  10776. * src/PendingMessages.cc: Removed. The sending process was moved to
  10777. each message class.
  10778. * src/RequestSlotMan.h: Removed.
  10779. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  10780. SendMessageQueue.
  10781. * src/RequestMessage.h: New class.
  10782. * src/RequestMessage.cc: New class.
  10783. * src/CancelMessage.h: New class.
  10784. * src/CancelMessage.cc: New class.
  10785. * src/BitfieldMessage.h: New class.
  10786. * src/BitfieldMessage.cc: New class.
  10787. * src/ChokeMessage.h: New class.
  10788. * src/ChokeMessage.cc: New class.
  10789. * src/KeepAliveMessage.h: New class.
  10790. * src/KeepAliveMessage.cc: New class.
  10791. * src/PortMessage.h: New class.
  10792. * src/UnchokeMessage.h: New class.
  10793. * src/UnchokeMessage.cc: New class.
  10794. * src/PieceMessage.h: New class.
  10795. * src/PieceMessage.cc: New class.
  10796. * src/HaveMessage.h: New class.
  10797. * src/HaveMessage.cc: New class.
  10798. * src/BitfieldMessage.h: New class.
  10799. * src/BitfieldMessage.cc: New class.
  10800. * src/NotInterestedMessage.h: New class.
  10801. * src/NotInterestedMessage.cc: New class.
  10802. * src/InterestedMessage.h: New class.
  10803. * src/InterestedMessage.cc: New class.
  10804. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  10805. (getSendMessageQueue): New function.
  10806. (setSendMessageQueue): New function.
  10807. * src/HandshakeMessage.cc: New class.
  10808. * src/PeerConnection.h (receiveMessage): Changed return value and
  10809. arguments.
  10810. (receiveHandshake): Changed return value and arguments.
  10811. * src/PeerConnection.cc (receiveMessage): Do not create message class
  10812. here.
  10813. (receiveHandshake): Do not create handshake class here.
  10814. * src/PeerInteractionCommand.h (peerConnection): Removed.
  10815. (piece): Removed.
  10816. (syncPiece): Removed.
  10817. (sendInterest): Removed.
  10818. (sendMessages): Removed.
  10819. (createRequestPendingMessage): Removed.
  10820. (checkPieceHash): Removed.
  10821. (erasePieceOnDisk): Removed.
  10822. (getNewPieceAndSendInterest): Removed.
  10823. (onGotNewPice): Removed.
  10824. (onGotWrongPiece): Removed.
  10825. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10826. Removed peerConnection, piece.
  10827. (~PeerInteractionCommand): Removed peerConnection.
  10828. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10829. (syncPiece): Moved to SendMessageQueue.
  10830. (decideChoking): Removed PendingMessage.
  10831. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10832. The action after receiving peer message was moved to each message
  10833. class.
  10834. (onGotNewPice): Moved to SendMessageQueue.
  10835. (onGotWrongPiece): Moved to SendMessageQueue.
  10836. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10837. (sendInterest): Moved to SendMessageQueue.
  10838. (createRequestPendingMessage): Removed.
  10839. (sendMessages): Moved to SendMessageQueue.
  10840. (onAbort): Use SendMessageQueue::abortPiece()
  10841. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10842. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10843. (checkPieceHash): Moved to SendMessageQueue.
  10844. (erasePieceOnDisk): Moved to SendMessageQueue.
  10845. * src/PeerMessageUtil.h
  10846. (createBitfieldMessage): Removed.
  10847. (createHaveMessage): Changed return value and arguments.
  10848. (createBitfieldMessage): Changed return value and arguments.
  10849. (createRequestCancelMessage): Removed.
  10850. (createPieceMessage): Changed return value and arguments.
  10851. (getShortIntParam): New function.
  10852. (checkIndex): Changed arguments.
  10853. (checkBegin): Changed arguments.
  10854. (checkLength): Changed arguments.
  10855. (checkPieceOffset): Removed.
  10856. (checkRange): New function.
  10857. (checkBitfield): Changed arguments.
  10858. (createPeerMessage): Removed.
  10859. (checkIntegrity): Removed.
  10860. (createHandshakeMessage): Changed arguments.
  10861. (createChokeMessage): New function.
  10862. (createUnchokeMessage): New function.
  10863. (createInterestedMessage): New function.
  10864. (createNotInterestedMessage): New function.
  10865. (createRequestMessage): New function.
  10866. (createCancelMessage): New function.
  10867. (createPortMessage): New function.
  10868. * src/PeerMessageUtil.cc
  10869. (createBitfieldMessage): Removed.
  10870. (createHaveMessage): Changed return value and arguments.
  10871. (createBitfieldMessage): Changed return value and arguments.
  10872. (createRequestCancelMessage): Removed.
  10873. (createPieceMessage): Changed return value and arguments.
  10874. (getShortIntParam): New function.
  10875. (checkIndex): Changed arguments.
  10876. (checkBegin): Changed arguments.
  10877. (checkLength): Changed arguments.
  10878. (checkPieceOffset): Removed.
  10879. (checkRange): New function.
  10880. (checkBitfield): Changed arguments.
  10881. (createPeerMessage): Removed.
  10882. (checkIntegrity): Removed.
  10883. (createHandshakeMessage): Changed arguments.
  10884. (createChokeMessage): New function.
  10885. (createUnchokeMessage): New function.
  10886. (createInterestedMessage): New function.
  10887. (createNotInterestedMessage): New function.
  10888. (createRequestMessage): New function.
  10889. (createCancelMessage): New function.
  10890. (createPortMessage): New function.
  10891. * src/PeerMessage.h
  10892. (id): Removed.
  10893. (index): Removed.
  10894. (begin): Removed.
  10895. (length): Removed.
  10896. (bitfield): Removed.
  10897. (bitfieldLength): Removed.
  10898. (block): Removed.
  10899. (blockLength): Removed.
  10900. (inProgress): New variable.
  10901. (cuid): New variable.
  10902. (peer): New variable.
  10903. (sendMessageQueue): New variable.
  10904. (logger): New variable.
  10905. (setBitfield): Removed.
  10906. (getBitfield): Removed.
  10907. (setBlock): Removed.
  10908. (getBlock): Removed.
  10909. (getBitfieldLength): Removed.
  10910. (getBlockLength): Removed.
  10911. (isInProgress): New function.
  10912. (toString): Made pure virtual.
  10913. (check): New function.
  10914. (send): New function.
  10915. (receivedAction): New function.
  10916. (getId): Made pure virtual.
  10917. (setId): Removed.
  10918. (getIndex): Removed.
  10919. (setIndex): Removed.
  10920. (getBegin): Removed.
  10921. (setBegin): Removed.
  10922. (getLength): Removed.
  10923. (setLength): Removed.
  10924. (getCuid): New function.
  10925. (setCuid): New function.
  10926. (getPeer): New function.
  10927. (setPeer): New function.
  10928. (getSendMessageQueue): New function.
  10929. (setSendMessageQueue): New function.
  10930. (ID): Removed.
  10931. * src/PeerMessage.cc
  10932. (setBitfield): Removed.
  10933. (setBlock): Removed.
  10934. (toString): Removed.
  10935. * src/TorrentMan.h
  10936. (getPieceLength): New function.
  10937. (getPieceLength): New function.
  10938. * src/SendMessageQueue.h
  10939. (REQUEST_TIME_OUT): New definition.
  10940. (RequestSlots): New definition.
  10941. (MessageQueue): New definition.
  10942. (requestSlotMan): Removed.
  10943. (pendingMessages): Removed.
  10944. (requestSlots): New variable.
  10945. (messageQueue): New variable.
  10946. (torrentMan): New variable.
  10947. (peerConnection): New variable.
  10948. (peer): New variable.
  10949. (piece): New variable.
  10950. (getNewPieceAndSendInterest): New function.
  10951. (createPeerMessage): New function.
  10952. (createHandshakeMessage): New function.
  10953. (send): Made private.
  10954. (setPeerMessageCommonProperty): New function.
  10955. (deleteAllRequestSlot): New function.
  10956. (deleteRequestMessageInQueue): New function.
  10957. (cancelAllRequest): Made private.
  10958. (cancelAllRequest): Made private.
  10959. (countRequestSlot): Made private.
  10960. (addPendingMessage): Removed.
  10961. (deletePendingPieceMessage): Removed.
  10962. (deletePendingRequestMessage): Removed.
  10963. (addMessage): New function.
  10964. (deletePieceMessageInQueue): New function.
  10965. (deleteTimeoutRequestSlot): Changed argument.
  10966. (deleteCompletedRequestSlot): Changed argument.
  10967. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10968. (getCorrespondingRequestSlot): New function.
  10969. (countPendingMessage): Removed.
  10970. (countMessageInQueue): New function.
  10971. (getTorrentMan): New function.
  10972. (getPeerConnection): New function.
  10973. (hasDownloadPiece): New function.
  10974. (getDownloadPiece): New function.
  10975. (setDownloadPiece): New function.
  10976. (syncPiece): New function.
  10977. (sendMessages): New function.
  10978. (sendNow): New function.
  10979. (trySendNow): New function.
  10980. (abortPiece): New function.
  10981. (sendHandshake): New function.
  10982. (receiveMessage): New function.
  10983. (receiveHandshake): New function.
  10984. (createRequestMessage): New function.
  10985. (createCancelMessage): New function.
  10986. (createPieceMessage): New function.
  10987. (createHaveMessage): New function.
  10988. (createChokeMessage): New function.
  10989. (createUnchokeMessage): New function.
  10990. (createInterestedMessage): New function.
  10991. (createNotInterestedMessage): New function.
  10992. (createBitfieldMessage): New function.
  10993. (createKeepAliveMessage): New function.
  10994. * src/SendMessageQueue.cc
  10995. (SendMessageQueue): Removed requestSlotMan.
  10996. Instantiated peerConnection here.
  10997. (~SendMessageQueue): Removed requestSlotMan.
  10998. Added deletion of peerConnection and the contents of messageQueue.
  10999. (send): Updated according to the change of messageQueue.
  11000. (addPendingMessage): Renamed to addMessage.
  11001. (addMessage): New function.
  11002. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  11003. (deletePieceMessageInQueue): New function.
  11004. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  11005. (deleteRequestMessageInQueue): New function.
  11006. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  11007. here.
  11008. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  11009. (...) was moved here.
  11010. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  11011. moved here.
  11012. (deleteCompletedRequestSlot):
  11013. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  11014. (getCorrespondingRequestSlot):
  11015. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  11016. And renamed to getCorrespondingRequestSlot, correcting a typo.
  11017. (countPendingMessage): Renamed to countMessageInQueue.
  11018. (countMessageInQueue): New function.
  11019. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  11020. (receiveHandshake): New function.
  11021. (createHandshakeMessage): New function.
  11022. (receiveMessage): New function.
  11023. (createPeerMessage): New function.
  11024. (syncPiece): New function.
  11025. (getNewPieceAndSendInterest): New function.
  11026. (sendMessages): New function.
  11027. (sendNow): New function.
  11028. (trySendNow): New function.
  11029. (sendHandshake): New function.
  11030. (abortPiece): New function.
  11031. (getDownloadPiece): New function.
  11032. (getPeerMessageCommonProperty): New function.
  11033. (createRequestMessage): New function.
  11034. (createCancelMessage): New function.
  11035. (createPieceMessage): New function.
  11036. (createHaveMessage): New function.
  11037. (createChokeMessage): New function.
  11038. (createUnchokeMessage): New function.
  11039. (createInterestedMessage): New function.
  11040. (createNotInterestedMessage): New function.
  11041. (createBitfieldMessage): New function.
  11042. (createKeepAliveMessage): New function.
  11043. To add simple Content-Disposition support:
  11044. * src/HttpResponseCommand.h (determinFilename): New function.
  11045. * src/HttpResponseCommand.cc (executeInternal):
  11046. Use determinFilename(headers) instead of req->getFile() when comparing
  11047. filename.
  11048. (determinFilename): New function.
  11049. (handleDefaultEncoding): Use determinFilename(headers) instead of
  11050. req->getFile().
  11051. (handleOtherEncoding): Use determinFilename(headers) instead of
  11052. req->getFile().
  11053. * src/Util.h (getContentDispositionFilename): New function.
  11054. * src/Util.cc (getContentDispositionFilename): New function.
  11055. * src/LogFactory.h (release): New function.
  11056. * src/LogFactory.cc (release): New function.
  11057. To fix a bug that causes out-of-bound exception when HTTP status
  11058. line is wrong:
  11059. * src/HttpConnection.cc (receiveResponse): Added a check for header
  11060. size.
  11061. * src/common.h (Deleter): New class.
  11062. * src/SegmentMan.cc
  11063. (~SegmentMan): Added deletion of splitter and diskWriter.
  11064. * src/DownloadEngine.h
  11065. (Commands): Use deque.
  11066. (clearQueue): New function.
  11067. * src/DownloadEngine.cc
  11068. (~DownloadEngine): Added deletion of segmentMan.
  11069. (cleanQueue): New function.
  11070. * src/TorrentDownloadEngine.h
  11071. (TorrentDownloadEngine): The implementation was moved to
  11072. TorrentDownloadEngine.cc.
  11073. (~TorrentDownloadEngine): The implementation was moved to
  11074. TorrentDownloadEngine.cc.
  11075. * src/TorrentDownloadEngine.cc
  11076. (~TorrentDownloadEngine): Added deletion of torrentMan.
  11077. * src/main.cc
  11078. (clearRequest): Removed.
  11079. (handler): Added deletion of e.
  11080. (torrentHandler): Added deletion of te.
  11081. (main): Do not share splitter.
  11082. Use Deleter instead of clearRequest.
  11083. Deletion of classes were updated.
  11084. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11085. * src/main.cc (main): Fixed typo.
  11086. * src/message.h: Fixed typo.
  11087. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  11088. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. To add --select-file command-line option:
  11090. * src/Util.cc
  11091. (unfoldRange): New function.
  11092. (getNum): New function.
  11093. (unfoldSubRange): New function
  11094. * src/main.cc
  11095. (showUsage): Added help message.
  11096. (main): Added --select-file command-line option. Updated the layout of
  11097. file listing.
  11098. * src/common.h
  11099. (Integers): New definition.
  11100. * src/SocketCore.cc
  11101. (writeData): Removed timeout argument.
  11102. (readData): Removed timeout argument.
  11103. (peekData): Removed timeout argument.
  11104. * src/Socket.cc
  11105. (writeData): Removed timeout argument.
  11106. (readData): Removed timeout argument.
  11107. (peekData): Removed timeout argument.
  11108. * Release 0.4.1
  11109. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11110. To deploy upload rate based choking algorithm:
  11111. * src/PeerInteractionCommand.cc
  11112. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  11113. peer currently used.
  11114. (decideChoking): Deleted the choke/unchoke decision algorithm when
  11115. download completes. Simplified.
  11116. (receiveMessage): Updated.
  11117. * src/TorrentMan.h
  11118. (activePeers): New variable.
  11119. (addActivePeer): New function.
  11120. (getActivePeers): New function.
  11121. (deleteActivePeer): New function.
  11122. * src/TorrentMan.cc
  11123. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  11124. * src/PeerAbstractCommand.cc
  11125. (onAbort): Use peer->resetStatus().
  11126. * src/main.cc
  11127. (PeerChokeCommand.h): Included.
  11128. (main): Added the instance of ChokingCommand to the command queue.
  11129. * src/Peer.h
  11130. (amChoking): Renamed from amChocking
  11131. (chokingRequired): New variable.
  11132. (optUnchoking): New variable.
  11133. (deltaUpload): New variable.
  11134. (deltaDownload): New variable.
  11135. (addDeltaUpload): New function.
  11136. (resetDeltaUpload): New function.
  11137. (addDeltaDownload): New function.
  11138. (resetDeltaDownload): New function.
  11139. (addPeerUpload): Added a call to addDeltaUpload.
  11140. (addPeerDownload): Added a call to addDeltaDownload.
  11141. * src/Peer.cc
  11142. (shouldBeChoking): Renamed from shouldChoke.
  11143. (resetStatus): New function.
  11144. * src/PeerChokeCommand.h: New class.
  11145. * src/PeerChokeCommand.cc: New class.
  11146. To add lazy upload speed limiter:
  11147. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  11148. statistics calculation to TorrentDownloadEngine.
  11149. * src/TorrentConsoleDownloadEngine.cc
  11150. (sendStatistics): Renamed from printStatistics.
  11151. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  11152. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  11153. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  11154. * src/TorrentDownloadEngine.h: Added the variables for statistics
  11155. calculation.
  11156. (sendStatistics): New function as pure virtual function.
  11157. (getUploadSpeed): New function.
  11158. * src/TorrentDownloadEngine.cc
  11159. (initStatistics): New function.
  11160. (calculateSpeed): New function.
  11161. (calculateStatistics): New function.
  11162. * src/SendMessageQueue.h
  11163. (uploadLength): New variable.
  11164. (send): Added an argument.
  11165. (setUploadLimit): New function.
  11166. (getUploadLimit): New function.
  11167. * src/SendMessageQueue.cc
  11168. (send): Added upload speed limiter.
  11169. * src/prefs.h
  11170. (PREF_UPLOAD_LIMIT): New definition.
  11171. * src/PeerInteractionCommand.cc
  11172. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  11173. * src/main.cc
  11174. (main): Added --upload-limit option
  11175. For bug fixes:
  11176. * src/main.cc
  11177. (showUsage): Corrected --listen-port help
  11178. Other changes:
  11179. * src/TorrentMan.cc
  11180. (getPeer): Return nullPeer if connection is grather than
  11181. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  11182. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11183. To add some useful information to the exception message:
  11184. * src/SocketCore.cc : Updated messages.
  11185. * src/SegmentMan.cc :
  11186. * src/TorrentMan.cc : Updated messages.
  11187. * src/MultiDiskWriter.cc : Updated messages.
  11188. * src/Util.cc : Updated messages.
  11189. * src/AbstractDiskWriter.cc : Updated messages.
  11190. * src/PreAllocationDiskWriter.cc : Updated messages.
  11191. * src/message.cc : Added new messages. Updated some messages.
  11192. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  11193. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  11194. Updated threshold from 30 to 15.
  11195. * src/AbstractDiskWriter.h (filename): New variable.
  11196. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  11197. (createFile): Assigned filename.
  11198. * src/main.cc: Updated the help message for http-auth-scheme.
  11199. * Release 0.4.0
  11200. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11201. To add TrackerUpdateCommand with which replaces
  11202. CompactTrackerResponseProcessor:
  11203. * src/TrackerWatcherCommand.h (req): Removed.
  11204. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  11205. if the number of peer connections are less than 30.
  11206. * src/ByteArrayDiskWriter.h (readData): Implemented.
  11207. * src/SegmentMan.h (diskWriter): New function.
  11208. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  11209. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  11210. (main): Use TrackerUpdateCommand.
  11211. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  11212. (req): New variable.
  11213. (setTrackerResponseProcessor): Removed.
  11214. (getTrackerResponseProcessor): Removed.
  11215. (processTrackerResponse): Removed.
  11216. * src/DownloadEngine.h (diskWriter): Removed.
  11217. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  11218. to torrentMan->processTrackerResponse().
  11219. To add Util::expandBuffer:
  11220. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  11221. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  11222. * src/Util.h (expandBuffer): New function.
  11223. To fix the bug that causes segmentation fault when "-l ." is specified
  11224. in command-line option:
  11225. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  11226. (openFile): New function.
  11227. (closeFile): New function.
  11228. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  11229. (~SimpleLogger): Call closeFile();
  11230. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  11231. * src/main.cc (main): Added a check to see logger is configured
  11232. properly.
  11233. To enable HTTP authentication without specifying "--http-auth-scheme"
  11234. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  11235. * src/HttpConnection.cc (createRequest): Send Authorization header
  11236. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  11237. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  11238. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  11239. * src/Peer.cc (shouldChoke): Updated algorithm.
  11240. * src/message.h (EX_AUTH_FAILED): New definition.
  11241. (EX_FILE_OPEN): New definition.
  11242. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  11243. if status == 401.
  11244. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  11245. if req->isTorrent == true.
  11246. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  11247. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  11248. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  11249. (createFile): Updated message.
  11250. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11251. To add a readout of estimated remaining time to normal HTTP/FTP
  11252. downloads:
  11253. * src/ConsoleDownloadEngine.h (startup): New variable.
  11254. (startupLength): New variable.
  11255. (isStartupLengthSet): New variable.
  11256. (avgSpeed): New variable.
  11257. (eta): New variable.
  11258. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  11259. estimated remaining time.
  11260. (initStatistics): Initialized newly added variables.
  11261. (calculateStatistics): Calculate average speed and estimated remaining
  11262. time.
  11263. To decouple TorrentDownloadEngine from HttpResponseCommand:
  11264. * src/TrackerDownloadCommand.h: Removed.
  11265. * src/TrackerDownloadCommand.cc: Removed.
  11266. * src/TrackerInitCommand.h: Removed.
  11267. * src/TrackerInitCommand.cc: Removed.
  11268. * src/TrackerUpdateCommand.h: Removed.
  11269. * src/TrackerUpdateCommand.cc: Removed.
  11270. * src/TrackerWatcherCommand.cc (execute): The construction of request
  11271. url written in TrackerInitCommand was moved here. Do not create
  11272. tracker request command if torrentMan->trackers != 0.
  11273. * src/CompactTrackerResponseProcessor.h: New class.
  11274. * src/CompactTrackerResponseProcessor.cc: New class.
  11275. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  11276. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  11277. Decoupled TorrentDownloadEngine from this.
  11278. * src/SegmentMan.h (init): New function.
  11279. * src/SegmentMan.cc (init): New function.
  11280. * src/TorrentMan.h (responseProcessor): New variable.
  11281. (trackers): New variable.
  11282. (setTrackerResponseProcessor): New function.
  11283. (getTrackerResponseProcessor): New function.
  11284. (processTrackerResponse): New function.
  11285. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  11286. (processTrackerResponse): New function.
  11287. * src/main.cc (main): Use ByteArrayDiskWriter and
  11288. CompactTrackerResponseProcessor.
  11289. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  11290. processTrackerResponse().
  11291. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  11292. readout.
  11293. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  11294. which indicates download has completed.
  11295. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  11296. (closeFile): fd >= 0, not fd > 0
  11297. * src/main.cc (main): Added short cut for show-files.
  11298. Added short cut for torrent-file.
  11299. Added new command-line option listen-port.
  11300. Updated i18n messages.
  11301. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11302. To add LogFactory which creates singleton logger:
  11303. * src/LogFactory.h: New class.
  11304. * src/LogFactory.cc: New class.
  11305. * src/Command.h (logger): New variable.
  11306. (Constructor): Use LogFactory.
  11307. * src/AbstractCommand.cc: Use Command::logger
  11308. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  11309. Use LogFactory.
  11310. * src/SegmentSplitter.h : Made logger protected.
  11311. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  11312. * src/SegmentMan.cc (Constructor): Use LogFactory.
  11313. * src/DownloadEngine.h : Made logger protected.
  11314. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  11315. * src/PeerInteractionCommand.cc : Use Command::logger.
  11316. * src/HttpResponseCommand.cc : Use Command::logger.
  11317. * src/SegmentMan.h : Made logger private.
  11318. * src/TorrentMan.h : Made logger private.
  11319. * src/TorrentMan.cc : Use LogFactory.
  11320. * src/FtpNegotiateCommand.cc : Use Command::logger.
  11321. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  11322. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  11323. Use LogFactory.
  11324. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  11325. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  11326. Use LogFactory.
  11327. * src/DownloadCommand.cc : Use Command::logger.
  11328. * src/PeerAbstractCommand.cc : Use Command::logger.
  11329. * src/PeerListenCommand.cc : Use Command::logger.
  11330. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  11331. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  11332. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  11333. * src/TrackerWatcherCommand.cc : Use Command::logger.
  11334. * src/TrackerUpdateCommand.cc : Use Command::logger.
  11335. * src/TrackerDownloadCommand.cc : Use Command::logger.
  11336. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  11337. Use LogFactory.
  11338. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  11339. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  11340. Use LogFactory.
  11341. * src/main.cc (main): Use LogFactory.
  11342. * src/DiskAdaptor.h (logger): New variable.
  11343. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  11344. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  11345. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11346. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  11347. parameter to a tracker request.
  11348. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  11349. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  11350. * src/main.cc (setSignalHander): New function.
  11351. (main): Added a handler for SIGTERM.
  11352. (handler): Updated message.
  11353. (torrentHandler): Updated message.
  11354. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11355. * src/TorrentConsoleDownloadEngine.cc
  11356. (onPartialDownloadingCompletes): Renamed as
  11357. onSelectiveDownloadingCompletes.
  11358. (onSelectiveDownloadingCompletes): Updated message.
  11359. To add DiskAdaptor which abstract DiskWriter family:
  11360. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  11361. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  11362. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  11363. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  11364. MultiDiskAdaptor.h.
  11365. (readFileEntry): Changed its arguments.
  11366. (setup): setupDiskWriter is merged into this function.
  11367. (setupDiskWriter): Removed.
  11368. (setFileFilter): New function.
  11369. (readFileEntryFromMetaInfoFile): Updated according to the changes
  11370. made in readFileEntry.
  11371. (getFilePath): Removed.
  11372. (getTempFilePath): Removed.
  11373. (getSegmentFilePath): Updated due to the removal of getFilePath.
  11374. (fixFilename): Removed.
  11375. (copySingleFile): Removed.
  11376. (splitMultiFile): Removed.
  11377. (deleteTempFile): Removed.
  11378. (setFileEntriesToDownload): Removed.
  11379. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  11380. (isSelectiveDownloadingMode): New function.
  11381. (setAllMultiFileRequestedState): Removed.
  11382. (finishPartialDownloadingMode): Renamed as
  11383. finishSelectiveDownloadingMode.
  11384. (finishSelectiveDownloadingMode): New function.
  11385. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  11386. (getSelectedTotalLength): New function.
  11387. (onDownloadComplete): Use diskAdaptor.
  11388. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  11389. (Range): Removed.
  11390. (setMultiFileEntries): Renamed as setFileEntries.
  11391. (setFileEntries): New function.
  11392. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  11393. (pieceLength): New variable.
  11394. * src/main.cc (printDownloadCompeleteMessage): New function.
  11395. (torrentHandler): Use diskAdaptor instead of diskWriter.
  11396. (main): Renamed torrent-show-files to show-files.
  11397. Rewritten file contents listing.
  11398. * src/TorrentMan.h (FileEntry): Removed.
  11399. (multiFileTopDir): Removed.
  11400. (multiFileEntries): Removed.
  11401. (diskWriter): Removed.
  11402. (diskAdaptor): New variable.
  11403. * src/DefaultDiskWriter.h (totalLength): New variable.
  11404. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  11405. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  11406. diskWriter.
  11407. * src/TorrentConsoleDownloadEngine.h
  11408. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  11409. (partialTotalLength): Renamed as selectedTotalLength.
  11410. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  11411. openExistingFile, otherwise call initAndOpenFile.
  11412. (closeFile): fd > 0, not fd != 0.
  11413. * src/DirectDiskAdaptor.h: New class.
  11414. * src/DirectDiskAdaptor.cc: New class.
  11415. * src/MultiDiskAdaptor.h: New class.
  11416. * src/MultiDiskAdaptor.cc: New class.
  11417. * src/CopyDiskAdaptor.h: New class.
  11418. * src/CopyDiskAdaptor.cc: New class.
  11419. * src/DiskAdaptor.h: New class.
  11420. * src/DiskAdaptor.cc: New class.
  11421. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  11422. (PREF_SHOW_FILES): New definition.
  11423. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11424. To add the ability to download multi torrent into respective files
  11425. directly:
  11426. * src/DiskWriter.h (openFile): New function.
  11427. (seek): Removed.
  11428. * src/MultiDiskWriter.h: New class.
  11429. * src/MultiDiskWriter.cc: New class.
  11430. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  11431. protected.
  11432. (openFile): New function.
  11433. * src/AbstractDiskWriter.cc (openFile): New function.
  11434. * src/prefs.h (V_FALSE): New definition.
  11435. (PREF_DIRECT_FILE_MAPPING): New definition.
  11436. * src/TorrentMan.h (setupDiskWriter): New function.
  11437. (setAllMultiFileRequestedState): New function.
  11438. (onDownloadComplete): New function.
  11439. * src/TorrentMan.cc : Included MultiDiskWriter.h
  11440. (setupDiskWriter): New function.
  11441. (getFilePath): Updated.
  11442. (getTempFilePath): Updated.
  11443. (getSegmentFilePath): Updated.
  11444. (fixFilename): Updated.
  11445. (deleteTempFile): Updated.
  11446. (setAllMultiFileRequestedState): New function.
  11447. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  11448. (finishPartialDownloadingMode): Reset requested flags.
  11449. (onDownloadComplete): New function.
  11450. * src/main.cc: Added --direct-file-mapping option.
  11451. Use TorrentMan::setupDiskWriter().
  11452. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  11453. onDownloadComplete().
  11454. To fix ETA bug:
  11455. * src/Util.h (difftvsec): New function.
  11456. * src/Util.cc (difftvsec): New function.
  11457. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  11458. type of "elapsed" instead of long long int.
  11459. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  11460. The updates of statistics takes place every 1 seconds.
  11461. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  11462. (calculateSpeed): Changed its argument signature.
  11463. * src/PeerMessage.cc (toString): Fixed message.
  11464. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11465. To print ETA:
  11466. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  11467. completion handling when dealing with
  11468. TorrentMan::isPartialDownloadingMode() == true.
  11469. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  11470. New function.
  11471. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  11472. (sessionDownloadLength): New variable.
  11473. (avgSpeed): New variable.
  11474. (eta): New variable.
  11475. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  11476. new variables: eta, avgSpeed, startup.
  11477. (calculateSpeed): Calculate average speed and ETA.
  11478. (printStatistics): Added ETA.
  11479. * src/Util.h (secfmt): New function.
  11480. * src/Util.cc (secfmt): New function.
  11481. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. To detect "keep alive" flooding:
  11483. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  11484. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  11485. variable: keepAliveCount.
  11486. (detectMessageFlooding): Added "keep alive" flooding detection.
  11487. (receiveMessage): Increase keepAliveCount when "keep alive" message
  11488. received.
  11489. To add the ability to download only specified files in multi-file
  11490. torrent:
  11491. * src/BitfieldMan.h (filterBitfield): New variable.
  11492. (filterEnabled): New variable.
  11493. (setFilterBit): New function.
  11494. (enableFilter): New function.
  11495. (disableFilter): New function.
  11496. (isFilterEnabled): New function.
  11497. (getFilteredTotalLength): New function.
  11498. (getCompletedLength): New function.
  11499. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  11500. filterBitfield, filterEnabled.
  11501. (CopyConstructor): Added filterBitfield and filterEnabled.
  11502. (operator==): Added filterBitfield and filterEnabled.
  11503. (Destructor): Added filterBitfield.
  11504. (getMissingIndex): Use filterBitfield.
  11505. (getMissingUnusedIndex): Use filterBitfield.
  11506. (getFirstMissingUnusedIndex): Use filterBitfield.
  11507. (getFirstMissingUnusedIndex): Use filterBitfield.
  11508. (getAllMissingIndexes): Use filterBitfield.
  11509. (countMissingBlock): Use filterBitfield.
  11510. (countBlock): Use filterBitfield.
  11511. (setBitInternal): Added new argument on.
  11512. (setUseBit): Use setBitInternal.
  11513. (unsetUseBit): Use setBitInternal.
  11514. (setBit): Use setBitInternal.
  11515. (unsetBit): Use setBitInternal.
  11516. (isAllBitSet): Use filterBitfield.
  11517. (setFilterBit): New function.
  11518. (addFilter): New function.
  11519. (enableFilter): New function.
  11520. (disableFilter): New function.
  11521. (clearFilter): New function.
  11522. (isFilterEnabled): New function.
  11523. (getFilteredTotalLength): New function.
  11524. (getCompletedLength): New function.
  11525. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  11526. Initalized newly added variables.
  11527. [FileEntry](offset): New variable.
  11528. [FileEntry](extracted): New variable.
  11529. [FileEntry](requested): New variable.
  11530. (readFileEntry): New function.
  11531. (option): New variable.
  11532. (splitMultiFile): Removed const qualifier.
  11533. (fixFilename): Removed const qualifier.
  11534. (readFileEntryFromMetaInfoFile): New function.
  11535. (finishPartialDownloadingMode): New function.
  11536. (isPartialDownloadingMode): New function.
  11537. (setFileEntriesToDownload): New function.
  11538. (getCompletedLength): New function.
  11539. (getPartialTotalLength): New function.
  11540. * src/TorrentMan.cc (readFileEntry): New function.
  11541. (setup): Use readFileEntry. If no-preallocation option is specified,
  11542. use DefaultDiskWriter.
  11543. (readFileEntryFromMetaInfoFile): New function.
  11544. (fixFilename): Removed const qualifier.
  11545. (splitMultiFile): Removed const qualifier.
  11546. (setFileEntriesToDownload): New function.
  11547. (isPartialDownloadingMode): New function.
  11548. (finishPartialDownloadingMode): New function.
  11549. (getCompletedLength): New function.
  11550. (getPartialTotalLength): New function.
  11551. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11552. New variable.
  11553. (partialTotalLength): New variable.
  11554. (downloadLength): New variable.
  11555. (totalLength): New variable.
  11556. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11557. Added log.
  11558. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11559. partialTotalLength, downloadLength, totalLength.
  11560. (calculate): Calculate downloadLength and totalLength.
  11561. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11562. * src/main.cc (addCommand): Changed argument signature.
  11563. (main): Added new variable: args. Added new option "torrent-show-files"
  11564. "no-preallocation". Usage is not updated yet.
  11565. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11566. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11567. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11568. Attempt to add the ability to listing file entries in a .torrent file.
  11569. This feature is not yet complete.
  11570. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11571. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11572. (getName): New function.
  11573. * src/TorrentMan.h (getMultiFileEntries): New function.
  11574. (getName): New function.
  11575. * src/main.cc (main): Use above 2 funtion.
  11576. * Release 0.3.2
  11577. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11578. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11579. (detectMessageFlooding): Updated threshold value.
  11580. (checkLongTimePeerChoking): Updated timeout value.
  11581. (getNewPieceAndSendInterest): Added debug log.
  11582. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11583. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11584. (getPeer): Updated.
  11585. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11586. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11587. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11588. is localhost.
  11589. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11590. * src/PendingMessage.cc (processMessage): Not to send piece message
  11591. if peer is not interested in the pieces localhost has.
  11592. * src/Peer.cc (shouldChoke): Updated.
  11593. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11594. * src/Util.cc (isPowerOf): New function.
  11595. * src/Util.h (isPowerOf): New function.
  11596. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11597. whether or not it is power of 2.
  11598. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. Added new class SendMessageQueue that includes PendingMessages and
  11600. RequestSlotMan.
  11601. * src/SendMessageQueue.h: New class.
  11602. * src/SendMessageQueue.cc: New class.
  11603. * src/PendingMessage.h: Added new member variable blockIndex and its
  11604. accessors.
  11605. (createRequestMessage): Updated.
  11606. * src/PendingMessage.cc (createRequestMessage): Updated.
  11607. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11608. SendMessageQueue.
  11609. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11610. (receiveMessage): Updated with SendMessageQueue.
  11611. (deletePendingPieceMessage): Removed.
  11612. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11613. (sendInterest): Updated with SendMessageQueue.
  11614. (createRequestPendingMessage): Updated with SendMessageQueue.
  11615. (sendMessages): Updated with SendMessageQueue.
  11616. (onAbort): Updated with SendMessageQueue.
  11617. (keepAlive): Updated with SendMessageQueue.
  11618. (beforeSocketCheck): Updated SendMessageQueue.
  11619. * src/PeerInteractionCommand (sendMessages): Shuffle
  11620. missingBLockIndexes before using it.
  11621. Added its own timeout for peer connection.
  11622. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11623. setter.
  11624. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11625. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11626. Added setTimeout() call.
  11627. (executeInternal): Added setTimeout() call.
  11628. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11629. Added timeout.
  11630. (isTimeoutDetected): Updated.
  11631. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  11632. option.
  11633. Added *simple* message flooding checker.
  11634. * src/PeerInteractionCommand.cc (executeInternal):
  11635. Added detectMessageFlooding() call.
  11636. (detectMessageFlooding): New function.
  11637. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  11638. (beforeSocketCheck): Added detectMessageFlooding() call.
  11639. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  11640. chokeUnchokeCount, haveCount, detectMessageFlooding().
  11641. Removed deletePendingPieceMessage(), getRequestSlot(),
  11642. deleteRequestSlot(), deleteAllRequestSlot().
  11643. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  11644. Added checkLongTimePeerChoking() call.
  11645. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  11646. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  11647. if duplicate == false.
  11648. The parameter "uploaded" and "downloaded" in the tracker request are
  11649. the size since the client sent the "started" event to the tracker.
  11650. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  11651. uploaded size to preDownloadedSize, preUploadedSize respectively.
  11652. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  11653. getSessionDownloadedSize(), getSessionUploadedSize().
  11654. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  11655. getSessionUploadedSize() instead of getDownloadedSize(),
  11656. getUploadedSize().
  11657. * src/PendingMessage.cc (processMessage): Do not send request message
  11658. if the peer is choking the client.
  11659. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  11660. less than interval.
  11661. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. * configure.in: Added gnutls support. Added several CPP macros.
  11663. * m4/openssl.m4: Added.
  11664. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  11665. readData(), peekData(). Added gnutls support.
  11666. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  11667. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  11668. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  11669. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  11670. Instead, added a check for whether setup method has executed
  11671. successfully.
  11672. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  11673. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  11674. * src/Makefile.am: Updated.
  11675. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  11676. using whether OpenSSL or gcrypt, depending on the result of configure
  11677. script.
  11678. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  11679. messageDigest.h.
  11680. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  11681. * src/PeerListenCommand.cc: Added log about port binded successfully.
  11682. Fixed memory leak.
  11683. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  11684. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  11685. Removed instantiation of TrackerInitCommand. Instead,
  11686. TrackerWatcherCommand is instantiated and pushed to the command queue.
  11687. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  11688. ENABLE_SSL.
  11689. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  11690. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  11691. If a piece is already acquired by another command, delete the request
  11692. slots for the piece.
  11693. * src/TrackerUpdateCommand.cc (execute):
  11694. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  11695. Added a check whether peer list is null.
  11696. Fixed the bug that causes sending completed event to the tracker
  11697. several times.
  11698. * src/TrackerInitCommand.cc (execute):
  11699. Fixed the bug that causes sending completed event to the tracker
  11700. several times.
  11701. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  11702. by using messageDigest.h.
  11703. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11704. * PeerConnection.cc: Replaced log message "keep-alive" with
  11705. "keep alive".
  11706. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  11707. localhost long time.
  11708. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  11709. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  11710. at most 100 failure entry from the list. If with duplicate = false,
  11711. MAX_PEER_LIST is not checked.
  11712. * PeerListenCommand.cc: Fixed the argument order of log message.
  11713. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11714. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  11715. Added warn().
  11716. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  11717. Implemented warn().
  11718. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  11719. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11720. * Request.h: Added AFTER_COMPLETED event.
  11721. * TorrentDownloadEngine.cc: Prints "Download complete" message
  11722. instead of downloaded size and progress(%) after download completes.
  11723. * PeerInteractionCommand.cc: After download completes, sends unchoke
  11724. message to the peer if it is interested in what localhost has
  11725. downloaded.
  11726. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  11727. destination instead of just renaming it.
  11728. * TorrentMan.cc: Added deleteTempFile().
  11729. * PeerAbstractCommand.cc: do not stop execution after download
  11730. completes. This makes localhost a seeder.
  11731. * Util.{h,cc}: Added fileCopy().
  11732. * PeerListenCommand.cc: do not stop execution after download completes.
  11733. This makes localhost a seeder.
  11734. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  11735. Added TorrentMan::deleteTempFile() to torrentHandler.
  11736. Initialized the variable dir as ".".
  11737. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  11738. Deleted renameSingleFile().
  11739. Added copySingleFile(), deleteTempFile().
  11740. * DownloadEngine.h: Added virtual function afterEachIteration().
  11741. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  11742. in onEndOfRun() to afterEachIteration().
  11743. In onEndOfRun(), changed if condition to check whether filenameFixed is
  11744. true.
  11745. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  11746. In rangedFileCopy(), added try-catch block to properly close file
  11747. descriptors.
  11748. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  11749. Added afterEachIteration(), isFilenameFixed().
  11750. * Peer.cc: Changed choking strategy.
  11751. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  11752. * TrackerInitCommand.cc: Send completed event only once.
  11753. * DownloadEngine.cc: Added a call to afterEachIteration().
  11754. * TrackerUpdateCommand.cc: Do not stop execution after download
  11755. completes.
  11756. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  11757. connect the peers at most MAX_PEER_UPDATE when a peer list is
  11758. received from a tracker.
  11759. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  11760. Decreased the number of failure peers to delete to 0(just comment out
  11761. the line).
  11762. * Release 0.3.1
  11763. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11764. * PeerInteractionCommand.cc: added a call to
  11765. TorrentMan::unadvertisePiece in Destructor.
  11766. * PeerInteractionCommand.cc: make have message sent immediately
  11767. if the size of pending message queue is zero.
  11768. * TorrentMan.cc: set the maximum size of peer list to 250.
  11769. * TorrentMan.h: changed the container type of Peers and UsedPieces
  11770. to deque.
  11771. * Util.cc: fixed rangedFileCopy.
  11772. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  11773. to Constructor. Also, moved digest cleanup to Destructor.
  11774. * MetaFileUtil.cc: fixed memory leak
  11775. * replaced std::vector with std::deque.
  11776. * AbstractCommand.cc: casted timeout value to long long int.
  11777. * ChunkedEncoding.cc: fixed memory leak.
  11778. * PeerInteractionCommand.cc: casted timeout value to long long int.
  11779. * SleepCommand.cc: casted timeout value to long long int.
  11780. * Data.cc: fixed memory leak.
  11781. * Data.cc: fixed toLLInt().
  11782. * BitfieldMan.cc: fixed memory leak.
  11783. * TorrentMan.cc: initialized storeDir to ".".
  11784. * TorrentMan.cc: fixed memory leak.
  11785. * TorrentMan.cc: corrected file paths of splitted files.
  11786. * PeerAbstractCommand.cc: casted timeout to long long int.
  11787. * main.cc: added delete(req) and delete(te->diskWriter).
  11788. * RequestSlot.cc: casted timeout value to long long int.
  11789. * Request.cc: fixed memory leak.
  11790. * PendingMessage.cc: make HAVE messages sent only when peer does not
  11791. have the piece.
  11792. * Peer.{h,cc}: added hasPiece(int index).
  11793. * main.cc: corrected addCommand.
  11794. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11795. * BitTorrent protocol support added.
  11796. * Release 0.3.0
  11797. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11798. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  11799. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  11801. decoding did not work properly.
  11802. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11803. * DownloadEngine.h: included sys/time.h
  11804. * DownloadEngine.cc: remove sys/time.h
  11805. * Makefile.am (SUBDIRS): Add intl.
  11806. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  11807. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. * main.cc: correct help message for --http-auth-scheme.
  11809. * main.cc: changed e-mail address for bug reports.
  11810. * ja.po: added japanese translation.
  11811. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11812. * SimpleLogger.cc: flush log file instead of stdout.
  11813. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11814. * main.cc: Fixed command-line option: max-tries
  11815. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  11816. does not equal to seg.sp.
  11817. * DownloadCommand.cc: If EOF is got from the server and the total size
  11818. of file is not zero, then throw DlRetryEx.
  11819. * main.cc: Set the minium value of min-segment-size to 1024.
  11820. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11821. fails because of a regression since 0.2.0 release.
  11822. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11823. * HttpConnection.cc:
  11824. * common.h: defined the user agent name as macro
  11825. * DownloadEngine.{h, cc}:
  11826. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11827. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11828. * main.cc: Download complete/abort message is now generated by main.
  11829. * Makefile.am (SUBDIRS): Add m4.
  11830. (ACLOCAL_AMFLAGS): New variable.
  11831. (EXTRA_DIST): New variable.
  11832. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11833. * gettext: added gettext functionality
  11834. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11835. * AbstractCommand.cc:
  11836. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11837. unregister its cuid from SegmentMan.
  11838. * DownloadEngine.cc: .aria2 file was written when a downloading
  11839. failed with errors.
  11840. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11841. Added "User-Agent" header to CONNECT proxy request.
  11842. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11843. properly.
  11844. * Logger.h:
  11845. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11846. * ChunkedEncoding.cc: Added #include directive for strings.h
  11847. * Release 0.2.1
  11848. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. * Util.{h,cc}: added startsWith().
  11850. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11851. Util::endsWith().
  11852. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11853. * common.h: added #include directive of limit.h.
  11854. * DownloadEngine.cc: added #include directive of sys/time.h and
  11855. algorithm.
  11856. * Exception.h: added #include directive of stdio.h.
  11857. * AbstractCommand.h: added #include directive of sys/time.h.
  11858. * DownloadCommand.h: added #include directive of sys/time.h.
  11859. * *.h: added #include directive of common.h to all base classes.
  11860. subclasses' one was removed.
  11861. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11862. does not define these macros.
  11863. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11864. * Release 0.2.0
  11865. * main.cc:
  11866. * HttpInitiateConnectionCommand.{h,cc}:
  11867. * prefs.h:
  11868. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11869. We can now use GET command in http proxy.
  11870. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11872. that splits slowest segment of SegmentMan::commands vector.
  11873. This is the default split algorithm of aria2.
  11874. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11875. that splits first segment of SegmentMan::commands vector.
  11876. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11877. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11878. * Segment.h:
  11879. * SegmentMan.cc: Added speed field to Segment.h
  11880. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11881. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11882. * message.h: Change file size related %d to %lld.
  11883. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11884. * FtpInitiateConnectionCommand.{h,cc}:
  11885. * FtpNegotiationCommand.{h,cc}:
  11886. * FtpDownloadCommand.{h,cc}:
  11887. * FtpConnection.{h,cc}: Added FTP support
  11888. * SimpleLogger.cc: Log message now includes time information.
  11889. * main.cc: The value of --http-auth-scheme option is chagned from
  11890. 'BASIC' to 'basic'
  11891. * main.cc: Added --timeout command-line option.
  11892. * main.cc: Added --min-segment-size command-line option.
  11893. * main.cc: Added --max-retries command-line option.
  11894. * prefs.h: option string constants are now defined in prefs.h
  11895. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11896. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11897. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11898. with version 0.1.0's one.
  11899. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11900. * configure.in: Added --enable-ssl option to configure script.
  11901. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11902. cannot permit absoluteURI as Request-URI.
  11903. * HttpConnection.cc: Added Referer support.
  11904. * main.cc: Added referer command-line option.
  11905. * main.cc: Added rety-wait command-line option.
  11906. * Exception.h: Fixed formating bug in Exception::setMsg()
  11907. * SocketCore.{h,cc}:
  11908. * Socket.{h, cc}:
  11909. * Request.cc:
  11910. * InitiateConnectionCommandFactory.cc:
  11911. * HttpRequestCommand.cc: Added HTTPS support.
  11912. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11913. for SocketCore.
  11914. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11915. size is wrong
  11916. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11917. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11918. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11919. * Release 0.1.0