ChangeLog 438 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642
  1. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Execute choking algorithm when unchoked and interested peer is
  3. disconected.
  4. * src/DefaultPeerStorage.cc
  5. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6. Added testcase for BtNotInterestedMessage from unchoked peer.
  7. * test/BtNotInterestedMessageTest.cc
  8. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9. Execute choking algorithm when BtInterestedMessage arrives from
  10. unchoked peer.
  11. * src/BtInterestedMessage.cc
  12. * src/BtInterestedMessage.h
  13. * src/DefaultBtMessageFactory.cc
  14. * test/BtInterestedMessageTest.cc
  15. * test/MockPeerStorage.h
  16. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17. AuthConfigFactory is now part of DownloadEngine.
  18. * src/AbstractProxyRequestCommand.cc
  19. * src/AuthConfigFactory.h
  20. * src/DownloadEngine.cc
  21. * src/DownloadEngine.h
  22. * src/FtpConnection.cc
  23. * src/FtpConnection.h
  24. * src/FtpNegotiationCommand.cc
  25. * src/HttpConnection.cc
  26. * src/HttpRequest.cc
  27. * src/HttpRequest.h
  28. * src/HttpRequestCommand.cc
  29. * src/HttpResponse.cc
  30. * src/HttpResponseCommand.cc
  31. * src/HttpSkipResponseCommand.cc
  32. * src/MultiUrlRequestInfo.cc
  33. * src/main.cc
  34. * test/FtpConnectionTest.cc
  35. * test/HttpRequestTest.cc
  36. * test/HttpResponseTest.cc
  37. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  38. Corrected catched exception type.
  39. * src/ServerStatMan.cc
  40. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  41. DNSCache is now part of DownloadEngine.
  42. * src/DNSCache.h
  43. * src/DownloadEngine.cc
  44. * src/DownloadEngine.h
  45. * src/InitiateConnectionCommand.cc
  46. * src/MultiUrlRequestInfo.cc
  47. * test/Makefile.am
  48. * test/Makefile.in
  49. * test/SimpleDNSCacheTest.cc
  50. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  51. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  52. DownloadEngine.
  53. * src/ActivePeerConnectionCommand.cc
  54. * src/BtSetup.cc
  55. * src/CUIDCounter.h
  56. * src/DHTSetup.cc
  57. * src/DownloadCommand.cc
  58. * src/DownloadEngine.cc
  59. * src/DownloadEngine.h
  60. * src/DownloadEngineFactory.cc
  61. * src/FileAllocationDispatcherCommand.cc
  62. * src/InitiatorMSEHandshakeCommand.cc
  63. * src/PeerInitiateConnectionCommand.cc
  64. * src/PeerInteractionCommand.cc
  65. * src/PeerListenCommand.cc
  66. * src/RequestGroup.cc
  67. * src/StreamFileAllocationEntry.cc
  68. * src/TrackerWatcherCommand.cc
  69. * src/main.cc
  70. * test/RequestGroupManTest.cc
  71. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  72. Implemented commented code in BtSeederStateChoke
  73. * src/BtSeederStateChoke.cc
  74. * src/Peer.cc
  75. * src/Peer.h
  76. * src/PeerInteractionCommand.cc
  77. * src/PeerSessionResource.cc
  78. * src/PeerSessionResource.h
  79. * test/MockBtMessageDispatcher.h
  80. * test/PeerSessionResourceTest.cc
  81. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  82. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  83. its object.
  84. * src/AbstractBtMessage.cc
  85. * src/ActivePeerConnectionCommand.cc
  86. * src/ActivePeerConnectionCommand.h
  87. * src/BtContextAwareCommand.cc
  88. * src/BtContextAwareCommand.h
  89. * src/BtExtendedMessage.cc
  90. * src/BtExtendedMessage.h
  91. * src/BtInterestedMessage.cc
  92. * src/BtInterestedMessage.h
  93. * src/BtNotInterestedMessage.cc
  94. * src/BtNotInterestedMessage.h
  95. * src/BtRegistry.cc
  96. * src/BtRegistry.h
  97. * src/BtSeederStateChoke.cc
  98. * src/BtSetup.cc
  99. * src/DHTGetPeersCommand.cc
  100. * src/DHTGetPeersCommand.h
  101. * src/DHTPeerAnnounceEntry.cc
  102. * src/DHTPeerAnnounceEntry.h
  103. * src/DHTPeerAnnounceStorage.cc
  104. * src/DHTPeerAnnounceStorage.h
  105. * src/DHTPeerLookupTask.cc
  106. * src/DHTPeerLookupTask.h
  107. * src/DHTSetup.cc
  108. * src/DHTSetup.h
  109. * src/DHTTaskFactory.h
  110. * src/DHTTaskFactoryImpl.cc
  111. * src/DHTTaskFactoryImpl.h
  112. * src/DefaultBtAnnounce.cc
  113. * src/DefaultBtInteractive.cc
  114. * src/DefaultBtInteractive.h
  115. * src/DefaultBtMessageDispatcher.cc
  116. * src/DefaultBtMessageDispatcher.h
  117. * src/DefaultBtMessageFactory.cc
  118. * src/DefaultBtMessageFactory.h
  119. * src/DefaultBtMessageReceiver.cc
  120. * src/DefaultBtProgressInfoFile.cc
  121. * src/DefaultBtProgressInfoFile.h
  122. * src/DefaultBtRequestFactory.cc
  123. * src/DefaultBtRequestFactory.h
  124. * src/DefaultExtensionMessageFactory.cc
  125. * src/DefaultExtensionMessageFactory.h
  126. * src/DefaultPeerStorage.cc
  127. * src/DefaultPeerStorage.h
  128. * src/DownloadEngine.cc
  129. * src/DownloadEngine.h
  130. * src/InitiatorMSEHandshakeCommand.cc
  131. * src/InitiatorMSEHandshakeCommand.h
  132. * src/MSEHandshake.cc
  133. * src/MSEHandshake.h
  134. * src/Makefile.am
  135. * src/Makefile.in
  136. * src/PeerChokeCommand.cc
  137. * src/PeerChokeCommand.h
  138. * src/PeerInitiateConnectionCommand.cc
  139. * src/PeerInitiateConnectionCommand.h
  140. * src/PeerInteractionCommand.cc
  141. * src/PeerInteractionCommand.h
  142. * src/PeerObject.h
  143. * src/PeerReceiveHandshakeCommand.cc
  144. * src/PeerReceiveHandshakeCommand.h
  145. * src/ReceiverMSEHandshakeCommand.cc
  146. * src/RequestGroup.cc
  147. * src/RequestGroup.h
  148. * src/RequestGroupMan.cc
  149. * src/RequestGroupMan.h
  150. * src/SeedCheckCommand.cc
  151. * src/SeedCheckCommand.h
  152. * src/ShareRatioSeedCriteria.h
  153. * src/SimpleBtMessage.cc
  154. * src/TrackerWatcherCommand.cc
  155. * src/TrackerWatcherCommand.h
  156. * src/UTPexExtensionMessage.cc
  157. * src/UTPexExtensionMessage.h
  158. * test/BtCancelMessageTest.cc
  159. * test/BtChokeMessageTest.cc
  160. * test/BtExtendedMessageTest.cc
  161. * test/BtInterestedMessageTest.cc
  162. * test/BtNotInterestedMessageTest.cc
  163. * test/BtPieceMessageTest.cc
  164. * test/BtPortMessageTest.cc
  165. * test/BtRegistryTest.cc
  166. * test/BtRejectMessageTest.cc
  167. * test/BtRequestMessageTest.cc
  168. * test/DHTPeerAnnounceEntryTest.cc
  169. * test/DHTPeerAnnounceStorageTest.cc
  170. * test/DefaultBtMessageDispatcherTest.cc
  171. * test/DefaultBtMessageFactoryTest.cc
  172. * test/DefaultBtProgressInfoFileTest.cc
  173. * test/DefaultBtRequestFactoryTest.cc
  174. * test/DefaultExtensionMessageFactoryTest.cc
  175. * test/MSEHandshakeTest.cc
  176. * test/MockDHTTaskFactory.h
  177. * test/ShareRatioSeedCriteriaTest.cc
  178. * test/UTPexExtensionMessageTest.cc
  179. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  180. Fixed compiler warning.
  181. * test/UtilTest.cc
  182. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  183. Treat Cookie object as session cookie if expiry = 0 is given.
  184. With this change, you can specify session scoped cookies in an external
  185. file setting expiry value to 0.
  186. * src/Cookie.cc
  187. * src/Cookie.h
  188. * test/CookieParserTest.cc
  189. * test/CookieStorageTest.cc
  190. * test/CookieTest.cc
  191. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  192. Changed signature of DHTMessageFactory::createResponseMessage().
  193. Removed unused validateIDMatch.
  194. * src/DHTMessageFactory.h
  195. * src/DHTMessageFactoryImpl.cc
  196. * src/DHTMessageFactoryImpl.h
  197. * src/DHTMessageTracker.cc
  198. * test/DHTMessageFactoryImplTest.cc
  199. * test/MockDHTMessageFactory.h
  200. Dropped DHT message coming from same ID of localhost.
  201. * src/DHTMessageReceiver.cc
  202. Rejected adding node whose ID is the same as localhost's.
  203. * src/DHTRoutingTable.cc
  204. * test/BtPortMessageTest.cc
  205. * test/DHTRoutingTableTest.cc
  206. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  207. Pool connection when redirection occurs with Content-Length = 0.
  208. * src/HttpSkipResponseCommand.cc
  209. * src/HttpSkipResponseCommand.h
  210. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  211. Fixed the bug that causes time out when redirection occurs with
  212. content-length 0.
  213. * src/HttpResponseCommand.cc
  214. * src/HttpSkipResponseCommand.cc
  215. * src/HttpSkipResponseCommand.h
  216. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  217. Now each status legends is shown only when it appears in Download
  218. Result. If Download Result has no item, then status legend will not
  219. be printed.
  220. * src/RequestGroupMan.cc
  221. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  222. Removed duplicate creation of OptionHandlers.
  223. * src/option_processing.cc
  224. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  225. Fixed the bug that causes segmentation fault when accessing files which
  226. don't exist or are not included in --select-file option while
  227. validating chunk checksum.
  228. * src/MultiDiskAdaptor.cc
  229. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  230. Fixed compiler warning.
  231. * test/UtilTest.cc
  232. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  233. Included cstdlib. This fixed the compile error with g++-4.3.2.
  234. * src/IteratableChecksumValidator.cc
  235. * src/IteratableChunkChecksumValidator.cc
  236. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  237. * Release 0.16.2
  238. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  239. Added Serbian translation. Updated Ukrainian translation.
  240. Thanks to all translators.
  241. * po/sr.po
  242. * po/uk.po
  243. * po/LINGUAS
  244. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  245. Bump up version number to 0.16.2
  246. * configure.ac
  247. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  248. Added length equality test to operator== to drop a piece message
  249. whose length does not match to the requested one.
  250. * src/RequestSlot.cc
  251. * test/DefaultBtMessageDispatcherTest.cc
  252. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  253. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  254. recieved.
  255. In this fix, if a request larger than 16KiB length is received, aria2
  256. disconnects the peer.
  257. * src/BtConstants.h
  258. * src/PeerMessageUtil.cc
  259. * src/PeerMessageUtil.h
  260. * test/BtRequestMessageTest.cc
  261. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  262. * Release 0.16.1
  263. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  264. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  265. * doc/aria2c.1.txt
  266. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  267. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  268. Updated French, Simplified Chinese and Japanese translations.
  269. Thanks to all translators.
  270. en@quot and en@boldquot are also added.
  271. * po/LINGUAS
  272. * po/fr.po
  273. * po/ja.po
  274. * po/uk.po
  275. * po/vi.po
  276. * po/zh_CN.po
  277. * po/zh_TW.po
  278. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  279. Bump up version number to 0.16.1.
  280. * configure.ac
  281. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  282. Updated README.
  283. * README
  284. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  285. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  286. not to replace '--' with em dash character.
  287. * doc/aria2c.1.txt
  288. * doc/makeman
  289. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  290. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  291. every SEC seconds.
  292. * src/DownloadEngineFactory.cc
  293. * src/OptionHandlerFactory.cc
  294. * src/option_processing.cc
  295. * src/usage_text.h
  296. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  297. Fixed compile warning on linux-amd64
  298. * src/FtpConnection.cc
  299. * src/IteratableChunkChecksumValidator.cc
  300. * src/MultiDiskAdaptor.cc
  301. Fixed the bug that unit test fails on linux-amd64
  302. * test/UtilTest.cc
  303. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  304. Added --dht-file-path option to change the path to dht.dat, which is a
  305. serialized DHT routing table.
  306. * src/OptionHandlerFactory.cc
  307. * src/option_processing.cc
  308. * src/usage_text.h
  309. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  310. Fixed possible underflow.
  311. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  312. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  313. Fixed the bug that last character in URI is not encoded.
  314. * src/Request.cc
  315. * test/RequestTest.cc
  316. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  317. Fixed the bug that referer header field contains fragment.
  318. Now Request class removes fragment part of URI and encodes it
  319. in Request::setUri() and setReferer().
  320. * src/Request.h
  321. * src/Request.cc
  322. * test/RequestTest.cc
  323. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  324. Added missing m4 macros.
  325. * m4/cppunit.m4
  326. * m4/libgcrypt.m4
  327. * m4/libgnutls-extra.m4
  328. * m4/libgnutls.m4
  329. * m4/libxml2.m4
  330. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  331. Fixed compile error with gcc-4.4(snapshot)
  332. * src/File.cc
  333. * src/FtpConnection.cc
  334. * src/OptionHandlerImpl.h
  335. * src/Util.cc
  336. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  337. Removed assert()
  338. * src/SocketBuffer.cc (SocketBuffer::send)
  339. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  340. Changed the type of _numNewConnection to unsigned int.
  341. * src/ActivePeerConnectionCommand.cc
  342. * src/ActivePeerConnectionCommand.h
  343. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  344. * Release 0.16.0
  345. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  346. Updated doc
  347. * README
  348. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  349. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  350. translations. Thanks to all translators.
  351. * po/bg.po
  352. * po/de.po
  353. * po/fr.po
  354. * po/ja.po
  355. * po/zh_CN.po
  356. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  357. Bump up version number to 0.16.0.
  358. * configure.ac
  359. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  360. Casted entry->maxConnections to int32_t for std::min<T> with T =
  361. int32_t.
  362. Changed the type of count to int32_t.
  363. * src/Metalink2RequestGroup.cc
  364. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  365. Added test for Time::elapsed(time_t).
  366. * test/TimeTest.cc
  367. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  368. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  369. Util::difftv() should be used instead.
  370. * src/TimeA2.cc
  371. * src/TimeA2.h
  372. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  373. Made socket for dht connections non-blocking
  374. * src/DHTAbstractMessage.cc
  375. * src/DHTAbstractMessage.h
  376. * src/DHTConnection.h
  377. * src/DHTConnectionImpl.cc
  378. * src/DHTConnectionImpl.h
  379. * src/DHTMessage.h
  380. * src/DHTMessageDispatcherImpl.cc
  381. * src/DHTMessageDispatcherImpl.h
  382. * src/DHTUnknownMessage.cc
  383. * src/DHTUnknownMessage.h
  384. * src/SocketCore.cc
  385. * src/SocketCore.h
  386. * test/MockDHTMessage.h
  387. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  388. Changed the type of offset to int.
  389. * src/ParameterizedStringParser.cc
  390. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  391. Made getAsInt() return int32_t
  392. * src/Option.h
  393. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  394. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  395. build.
  396. * configure.ac
  397. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  398. Use sqlite3_open if sqlite3_open_v2 is not available.
  399. * src/Sqlite3MozCookieParser.cc
  400. * src/Sqlite3MozCookieParser.h
  401. * m4/sqlite3.m4
  402. * test/Sqlite3MozCookieParserTest.cc
  403. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  404. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  405. * src/BtPieceMessage.cc
  406. * src/DHTPeerAnnounceStorage.cc
  407. * src/DefaultPieceStorage.cc
  408. * src/DownloadCommand.cc
  409. * src/DownloadEngine.cc
  410. * src/FtpConnection.cc
  411. * src/PeerConnection.cc
  412. * src/PeerMessageUtil.cc
  413. * src/RequestGroup.cc
  414. * src/RequestGroupMan.cc
  415. * src/SimpleBtMessage.cc
  416. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  417. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  418. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  419. * src/AbstractDiskWriter.cc
  420. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  421. Don't set Request::supportsPersistentConnection() in HttpConnection
  422. since this code is also used in AbstractProxyResponseCommand.
  423. Moved those code to HttpResponse.
  424. * src/HttpResponse.cc
  425. * src/HttpResponse.h
  426. * src/HttpConnection.cc
  427. * src/HttpConnection.h
  428. * src/HttpResponseCommand.cc
  429. * test/HttpResponseTest.cc
  430. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  431. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  432. The configuration is minimum: no torrent, no metalink, so there may be
  433. other compile error on their code.
  434. * src/a2netcompat.h
  435. * src/File.cc
  436. * src/File.h
  437. * src/SocketCore.cc
  438. * src/SocketCore.h
  439. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  440. Made a socket of incoming peer non-blocking.
  441. * src/PeerListenCommand.cc
  442. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  443. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  444. whole message data is not sent in one send() call.
  445. * src/BtPieceMessage.cc
  446. * src/BtPieceMessage.h
  447. * src/PeerConnection.cc
  448. * src/PeerConnection.h
  449. * src/SimpleBtMessage.cc
  450. * src/SimpleBtMessage.h
  451. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  452. Fixed the bug that aria2 downloads faster than max-download-limit when
  453. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  454. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  455. , instead of sum of them.
  456. * src/ActivePeerConnectionCommand.cc
  457. * src/DefaultBtInteractive.cc
  458. * src/DownloadCommand.cc
  459. * src/PeerInteractionCommand.cc
  460. * src/PeerReceiveHandshakeCommand.cc
  461. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  462. Fixed the bug that HTTPS download fails.
  463. * src/AbstractCommand.cc
  464. * src/AbstractCommand.h
  465. * src/DownloadCommand.cc
  466. * src/FtpConnection.cc
  467. * src/HttpConnection.cc
  468. * src/HttpRequestCommand.cc
  469. * src/HttpResponseCommand.cc
  470. * src/HttpSkipResponseCommand.cc
  471. * src/MSEHandshake.cc
  472. * src/PeerConnection.cc
  473. * src/SocketCore.cc
  474. * src/SocketCore.h
  475. Fixed the bug that aria2 doesn't download whole content body and cannot
  476. reuse connection if chunked transfer encoding and gzip content encoding
  477. are set.
  478. * src/DownloadCommand.cc
  479. * src/HttpSkipResponseCommand.cc
  480. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  481. Updated man page.
  482. * doc/aria2c.1.txt
  483. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  484. When error occurred while aria2 was parsing an .aria2.conf file, print
  485. the usage of the option that caused error.
  486. * src/option_processing.cc
  487. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  488. Fixed compile error on OptionHandlerException
  489. * src/Makefile.am
  490. * src/OptionHandlerException.cc
  491. * src/OptionHandlerException.h
  492. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  493. Moved message of the error to OptionHandlerException.h
  494. * src/NameMatchOptionHandler.h
  495. * src/OptionHandlerException.h
  496. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  497. When error occurs while aria2 is parsing an command-line option, print
  498. the usage of the option.
  499. * src/Makefile.am
  500. * src/NameMatchOptionHandler.h
  501. * src/OptionHandlerException.h
  502. * src/option_processing.cc
  503. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  504. Reverted previous change.
  505. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  506. username is not in URI.
  507. * src/HttpRequest.cc
  508. * src/Request.cc
  509. * test/HttpRequestTest.cc
  510. * test/RequestTest.cc
  511. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  512. Now colon is required for username and password in FTP URL, like:
  513. ftp://username:password@host.
  514. If colon is not there, aria2 don't parse it as a username. For example,
  515. aria2 don't retrieve username from ftp://username@host.
  516. This fix was made in order to login FTP server via non-transparent ftp
  517. proxy.
  518. * src/Request.cc
  519. * test/RequestTest.cc
  520. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  521. Use netrc for HTTP.
  522. Now FTP user/password is sent in Authorization header when
  523. --ftp-via-http-proxy=get is given.
  524. * src/AuthConfigFactory.cc
  525. * src/HttpRequest.cc
  526. * src/HttpRequest.h
  527. * src/NetrcAuthResolver.cc
  528. * src/NetrcAuthResolver.h
  529. * src/OptionHandlerFactory.cc
  530. * src/option_processing.cc
  531. * src/prefs.cc
  532. * src/prefs.h
  533. * test/AuthConfigFactoryTest.cc
  534. * test/HttpRequestTest.cc
  535. * test/NetrcAuthResolverTest.cc
  536. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  537. Issue PWD command first and get working directory and use it as a prefix
  538. for CWD command.
  539. * src/DownloadEngine.cc
  540. * src/DownloadEngine.h
  541. * src/FtpConnection.cc
  542. * src/FtpConnection.h
  543. * src/FtpFinishDownloadCommand.cc
  544. * src/FtpInitiateConnectionCommand.cc
  545. * src/FtpNegotiationCommand.cc
  546. * src/FtpNegotiationCommand.h
  547. * test/FtpConnectionTest.cc
  548. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  549. Removed default user/pass for FTP user/pass, since it should not have
  550. precedence over netrc configuration by default.
  551. * src/OptionHandlerFactory.cc
  552. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  553. Added debug log for socket event.
  554. * src/AbstractCommand.cc
  555. * src/PeerAbstractCommand.cc
  556. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  557. Log microseconds.
  558. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  559. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  560. Replaced HelpItem.cc with OptionHandler.cc.
  561. * po/POTFILES.in
  562. Updated po files with 'make update-po'
  563. * po/aria2c.pot
  564. * po/*.po
  565. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  566. Removed possible values from the text.
  567. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  568. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  569. Removed unused preferences:
  570. PREF_NO_PREALLOCATION
  571. PREF_STDOUT_LOG
  572. PREF_TRACKER_MAX_TRIES
  573. PREF_DIRECT_DOWNLOAD_TIMEOUT
  574. PREF_MIN_SEGMENT_SIZE
  575. * src/option_processing.cc
  576. * src/prefs.cc
  577. * src/prefs.h
  578. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  579. Integrated HelpItem into OptionParser to ease the workload for adding
  580. new options. Removed default value from usage text.
  581. * src/HelpItem.cc: Removed.
  582. * src/HelpItem.h: Removed.
  583. * src/HelpItemFactory.cc: Removed.
  584. * src/HelpItemFactory.h: Removed.
  585. * src/Makefile.am
  586. * src/Makefile.in
  587. * src/NameMatchOptionHandler.h
  588. * src/OptionHandler.cc
  589. * src/OptionHandler.h
  590. * src/OptionHandlerFactory.cc
  591. * src/OptionHandlerImpl.h
  592. * src/OptionParser.cc
  593. * src/OptionParser.h
  594. * src/TagContainer.cc: Removed.
  595. * src/TagContainer.h: Removed.
  596. * src/TaggedItem.cc: Removed.
  597. * src/TaggedItem.h: Removed.
  598. * src/main.cc
  599. * src/option_processing.cc
  600. * src/usage_text.h
  601. * src/version_usage.cc
  602. * test/HelpItemTest.cc: Removed.
  603. * test/Makefile.am
  604. * test/Makefile.in
  605. * test/OptionHandlerTest.cc
  606. * test/OptionParserTest.cc
  607. * test/TagContainerTest.cc: Removed.
  608. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  609. Moved `TransferStat stat = ...' to inside the `if' clause.
  610. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  611. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  612. Fixed the bug that a block in a piece is requested when same block is
  613. already requested to the same peer in end game mode.
  614. * src/BtRequestFactory.h
  615. * src/DefaultBtInteractive.cc
  616. * src/DefaultBtRequestFactory.cc
  617. * src/DefaultBtRequestFactory.h
  618. * src/DefaultPieceStorage.cc
  619. * src/DefaultPieceStorage.h
  620. * src/PieceStorage.h
  621. * src/UnknownLengthPieceStorage.cc
  622. * src/UnknownLengthPieceStorage.h
  623. * test/DefaultBtRequestFactoryTest.cc
  624. * test/DefaultPieceStorageTest.cc
  625. * test/MockBtRequestFactory.h
  626. * test/MockPieceStorage.h
  627. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  628. Removed _uploadLength and _downloadLength from PeerSessionResource
  629. and use PeerStat::_sessionUploadLength and
  630. PeerStat::_sessionDownloadLength.
  631. * src/PeerSessionResource.cc
  632. * src/PeerSessionResource.h
  633. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  634. Fixed the bug that prefixLength of split bucket which doesn't include
  635. local node ID is incremented.
  636. * src/DHTBucket.cc
  637. * src/DHTBucket.h
  638. * test/DHTBucketTest.cc
  639. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  640. Added cookies.sqlite to EXTRA_DIST
  641. * test/Makefile.am
  642. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  643. Added Turkish translation. Updated French, German, Russian and
  644. Simplified Chinese translations. Thanks to all translators.
  645. * po/LINGUAS
  646. * po/de.po
  647. * po/fr.po
  648. * po/ru.po
  649. * po/tr.po
  650. * po/zh_CN.po
  651. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  652. Added deliminating text to the beginning of the log so that one can find
  653. where the log starts easily.
  654. * src/main.cc
  655. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  656. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  657. to fix compile error when async DNS is not enabled by configuration.
  658. * src/AbstractCommand.cc
  659. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  660. If establishing conneciton to a server is failed, then mark error on
  661. its ServerStat.
  662. Added the cause of error to log when error event occurred.
  663. Moved message string to message.h for translation.
  664. * src/AbstractCommand.cc
  665. * src/AbstractCommand.h
  666. * src/FtpNegotiationCommand.cc
  667. * src/HttpRequestCommand.cc
  668. * src/PeerAbstractCommand.cc
  669. * src/message.h
  670. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  671. Added the function to get error message from socket.
  672. * src/SocketCore.cc
  673. * src/SocketCore.h
  674. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  675. Added convenient method RequestGroupMan::getOrCreateServerStat()
  676. * src/RequestGroupMan.cc
  677. * src/RequestGroupMan.h
  678. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  679. If error event is received in epoll, then abort download immediately.
  680. * src/AbstractCommand.cc
  681. * src/Command.cc
  682. * src/Command.h
  683. * src/DownloadEngine.cc
  684. * src/PeerAbstractCommand.cc
  685. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  686. Added usage message for --uri-selector, --server-stat-of,
  687. --server-stat-in, --server-stat-timeout options.
  688. * src/HelpItemFactory.cc
  689. * src/usage_text.h
  690. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  691. Added upper limit of FTP response buffer. The current implementation
  692. uses 4096bytes as a limit.
  693. * src/FtpConnection.cc
  694. * src/FtpConnection.h
  695. * test/FtpConnectionTest.cc
  696. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  697. Use non-blocking socket for TCP communication to avoid possible
  698. blocking due to buffer full.
  699. * src/AbstractProxyRequestCommand.cc
  700. * src/FtpConnection.cc
  701. * src/FtpConnection.h
  702. * src/FtpNegotiationCommand.cc
  703. * src/FtpNegotiationCommand.h
  704. * src/HttpConnection.cc
  705. * src/HttpConnection.h
  706. * src/HttpRequestCommand.cc
  707. * src/InitiatorMSEHandshakeCommand.cc
  708. * src/InitiatorMSEHandshakeCommand.h
  709. * src/MSEHandshake.cc
  710. * src/MSEHandshake.h
  711. * src/Makefile.am
  712. * src/PeerConnection.cc
  713. * src/PeerConnection.h
  714. * src/PeerInteractionCommand.cc
  715. * src/PeerListenCommand.cc
  716. * src/ReceiverMSEHandshakeCommand.cc
  717. * src/ReceiverMSEHandshakeCommand.h
  718. * src/SocketBuffer.cc
  719. * src/SocketBuffer.h
  720. * src/SocketCore.cc
  721. * src/SocketCore.h
  722. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  723. Call setStatusRealtime() in constructor.
  724. * src/RealtimeCommand.cc
  725. * src/RealtimeCommand.h
  726. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  727. Call Download::setNoWait(true) to execute newly created command without
  728. a pause.
  729. * src/AbstractCommand.cc
  730. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  731. Added --max-file-not-found=NUM option. If aria2 receives `file not
  732. found' error from HTTP/FTP server NUM times without getting single
  733. bytes of data, then force the download to fail.
  734. Basically aria2 tris all URIs available. So if long list of URIs are
  735. specified in Metalink, then aria2 will take a long time to fail
  736. eventually if all URIs are outdated. This option eases this situation
  737. to limit the number of servers to try.
  738. * src/FtpNegotiationCommand.cc
  739. * src/HelpItemFactory.cc
  740. * src/HttpResponseCommand.cc
  741. * src/OptionHandlerFactory.cc
  742. * src/PeerStat.h
  743. * src/RequestGroup.cc
  744. * src/RequestGroup.h
  745. * src/SegmentMan.cc
  746. * src/SegmentMan.h
  747. * src/option_processing.cc
  748. * src/prefs.cc
  749. * src/prefs.h
  750. * src/usage_text.h
  751. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  752. Fixed the bug that bulkReceiveResponse() reads all received data as a
  753. response even if more than one response is in it.
  754. * src/FtpConnection.cc
  755. * src/FtpConnection.h
  756. * test/FtpConnectionTest.cc
  757. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  758. Merged from stable-0.15
  759. * m4/libcares.m4
  760. Use pkg-config
  761. * m4/sqlite3.m4
  762. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  763. Removed unnecessary if statement.
  764. * src/DefaultPieceStorage.cc (initPieceStorage)
  765. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  766. Added --connect-timeout option to specify connect timeout in seconds.
  767. This option is in effect for HTTP/FTP/proxy server. The timeout for
  768. connecting to BitTorrent peer is not controlled by this option.
  769. * src/AbstractProxyRequestCommand.cc
  770. * src/FtpNegotiationCommand.cc
  771. * src/HelpItemFactory.cc
  772. * src/HttpRequestCommand.cc
  773. * src/OptionHandlerFactory.cc
  774. * src/option_processing.cc
  775. * src/prefs.cc
  776. * src/prefs.h
  777. * src/usage_text.h
  778. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  779. Added help message for -R option.
  780. * src/HelpItemFactory.cc
  781. * src/usage_text.h
  782. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  783. Added the message that the time is in local time zone.
  784. * src/RequestGroup.cc
  785. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  786. Implemented the ability to get timestamp from remote FTP server using
  787. MDTM command described in RFC3659.
  788. * src/FtpConnection.cc
  789. * src/FtpConnection.h
  790. * src/FtpNegotiationCommand.cc
  791. * src/FtpNegotiationCommand.h
  792. * test/FtpConnectionTest.cc
  793. * test/Makefile.am
  794. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  795. Implemented the ability to get timestamp from remote HTTP server and
  796. apply it to local file. To enable this feature, --remote-time option
  797. is added. No usage text has been written yet.
  798. If several servers returns difference timestamp, then aria2 uses latest
  799. one.
  800. * src/CopyDiskAdaptor.cc
  801. * src/CopyDiskAdaptor.h
  802. * src/DirectDiskAdaptor.cc
  803. * src/DirectDiskAdaptor.h
  804. * src/DiskAdaptor.h
  805. * src/File.cc
  806. * src/File.h
  807. * src/HttpHeader.cc
  808. * src/HttpHeader.h
  809. * src/HttpResponse.cc
  810. * src/HttpResponse.h
  811. * src/HttpResponseCommand.cc
  812. * src/HttpResponseCommand.h
  813. * src/MultiDiskAdaptor.cc
  814. * src/MultiDiskAdaptor.h
  815. * src/OptionHandlerFactory.cc
  816. * src/RequestGroup.cc
  817. * src/RequestGroup.h
  818. * src/RequestGroupMan.cc
  819. * src/option_processing.cc
  820. * src/prefs.cc
  821. * src/prefs.h
  822. * test/CopyDiskAdaptorTest.cc
  823. * test/FileTest.cc
  824. * test/Makefile.am
  825. * test/Makefile.in
  826. * test/MultiDiskAdaptorTest.cc
  827. * test/TestUtil.cc
  828. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  829. Fixed the bug that DiskWriterEntry is not created when its
  830. FileEntry.isRequested() is false and it doesn't share a piece with
  831. other FileEntries that are requested. This bug causes segmentation fault
  832. in the end.
  833. * src/MultiDiskAdaptor.cc
  834. * src/MultiDiskAdaptor.h
  835. * src/MultiFileAllocationIterator.cc
  836. * test/MultiDiskAdaptorTest.cc
  837. * test/MultiFileAllocationIteratorTest.cc
  838. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  839. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  840. called if the number of file entries are greater than max open files.
  841. * src/AbstractSingleDiskAdaptor.cc
  842. * src/AbstractSingleDiskAdaptor.h
  843. * src/DiskAdaptor.h
  844. * src/MultiDiskAdaptor.cc
  845. * src/MultiDiskAdaptor.h
  846. * test/MultiDiskAdaptorTest.cc
  847. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  848. Added a constuctor that receives struct timeval.
  849. Added operator<.
  850. * src/TimeA2.cc
  851. * src/TimeA2.h
  852. * test/TimeTest.cc
  853. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  854. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  855. * src/CookieParser.cc
  856. * test/CookieParserTest.cc
  857. * test/HttpResponseTest.cc
  858. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  859. Implmented the functions to parse date.
  860. * src/TimeA2.cc
  861. * src/TimeA2.h
  862. * test/TimeTest.cc
  863. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  864. Added "Firefox3 Cookie" feature to FeatureConfig
  865. * src/FeatureConfig.cc
  866. * src/FeatureConfig.h
  867. * test/FeatureConfigTest.cc
  868. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  869. Bump up version number to 0.16.0b
  870. * configure.ac
  871. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  872. Use pkg-config if is is available.
  873. * m4/openssl.m4
  874. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  875. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  876. * src/BtAnnounce.h
  877. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  878. If an error occurred with a URI, remove identical URI from remaining
  879. URI list because it is likely that same error occurred in the end and it
  880. is waste of time.
  881. * src/AbstractCommand.cc
  882. * src/RequestGroup.cc
  883. * src/RequestGroup.h
  884. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  885. Removed wrong comment.
  886. * src/DefaultPeerStorage.cc
  887. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  888. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  889. Added return value of getpid() to argument of srand() to achieve more
  890. randomized value.
  891. * src/SimpleRandomizer.cc
  892. * src/SimpleRandomizer.h
  893. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  894. Contact tracker frequently when the number of connections are 0 and
  895. download is not finished yet.
  896. * src/ActivePeerConnectionCommand.cc
  897. * src/BtAnnounce.h
  898. * src/DefaultBtAnnounce.cc
  899. * src/DefaultBtAnnounce.h
  900. * test/MockBtAnnounce.h
  901. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  902. Moved threshold values to UTPexExtensionMessage.
  903. * src/DefaultBtInteractive.cc
  904. * src/Peer.cc
  905. * src/Peer.h
  906. * src/UTPexExtensionMessage.cc
  907. * src/UTPexExtensionMessage.h
  908. * test/UTPexExtensionMessageTest.cc
  909. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  910. Added _incoming member to Peer class and made it true if the peer
  911. initiated connection. Don't add those peer to UTPex message.
  912. If extended handshake is received, assign _incoming to false.
  913. * src/DefaultBtInteractive.cc
  914. * src/HandshakeExtensionMessage.cc
  915. * src/Peer.cc
  916. * src/Peer.h
  917. * src/PeerListenCommand.cc
  918. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  919. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  920. Encoding Decoder. Removed size threshold for turning off on the fly
  921. inflation because resulting file may or may not be inflated depending
  922. on the file size and I think it is not expected by users.
  923. This change fixes segmentation fault when Metalink file contains gzipped
  924. file and its filesize is provided.
  925. * src/HttpResponseCommand.cc
  926. * src/HttpResponseCommand.h
  927. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Made Cookie immutable.
  929. * src/Cookie.cc
  930. * src/Cookie.h
  931. * src/CookieParser.cc
  932. * src/CookieParser.h
  933. * src/CookieStorage.cc
  934. * test/CookieParserTest.cc
  935. * test/CookieStorageTest.cc
  936. * test/NsCookieParserTest.cc
  937. * test/Sqlite3MozCookieParserTest.cc
  938. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  939. Removed CookieBox, CookieBoxFactory.
  940. * src/CookieBox.cc
  941. * src/CookieBox.h
  942. * src/CookieBoxFactory.cc
  943. * src/CookieBoxFactory.h
  944. * src/Makefile.am
  945. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  946. Use CookieStorage class instead of CookieBox class.
  947. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  948. * src/AbstractProxyRequestCommand.cc
  949. * src/CookieStorage.cc
  950. * src/DownloadEngine.cc
  951. * src/DownloadEngine.h
  952. * src/HttpConnection.cc
  953. * src/HttpConnection.h
  954. * src/HttpRequest.cc
  955. * src/HttpRequest.h
  956. * src/HttpRequestCommand.cc
  957. * src/HttpResponse.cc
  958. * src/HttpResponseCommand.cc
  959. * src/HttpSkipResponseCommand.cc
  960. * src/Makefile.am
  961. * src/MultiUrlRequestInfo.cc
  962. * src/Request.cc
  963. * src/Request.h
  964. * src/main.cc
  965. * test/AllTest.cc
  966. * test/CookieStorageTest.cc
  967. * test/CookieTest.cc
  968. * test/HttpRequestTest.cc
  969. * test/HttpResponseTest.cc
  970. * test/Makefile.am
  971. * test/NsCookieParserTest.cc
  972. * test/Sqlite3MozCookieParserTest.cc
  973. * test/nscookietest.txt
  974. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  975. Updated
  976. * test/Cookies.sqlite
  977. * test/nscookietest.txt
  978. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  979. Added tests for CookieStorage::load()
  980. * test/CookieStorageTest.cc
  981. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  982. Added CookieStorage class which is based on RFC2109 and manages cookies
  983. more strictly than CookieBox and CookieBoxFactory class.
  984. * src/CookieStorage.cc
  985. * src/CookieStorage.h
  986. * src/Cookie.cc
  987. * src/Cookie.h
  988. * test/CookieStorageTest.cc
  989. * test/CookieTest.cc
  990. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  991. Fixed the bug that commands are created more than the number of pieces.
  992. * src/RequestGroup.cc
  993. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  994. Fixed infinite loop bug in FTP when SIZE command failed.
  995. * src/FtpNegotiationCommand.cc
  996. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  997. Removed DirectDiskAdaptorTest.h
  998. * test/Makefile.am
  999. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1000. Fixed chunk checksum validation cannot detect trailing garbage data.
  1001. BUG#2074141
  1002. * src/AbstractSingleDiskAdaptor.cc
  1003. * src/AbstractSingleDiskAdaptor.h
  1004. * src/CheckIntegrityEntry.cc
  1005. * src/CheckIntegrityEntry.h
  1006. * src/DiskAdaptor.h
  1007. * src/MultiDiskAdaptor.cc
  1008. * src/MultiDiskAdaptor.h
  1009. * src/RequestGroup.cc
  1010. * test/DirectDiskAdaptorTest.cc
  1011. * test/MultiDiskAdaptorTest.cc
  1012. * test/TestUtil.cc
  1013. * test/TestUtil.h
  1014. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1015. Bump up version number of dht.dat file to 3. In version 3 format, time
  1016. is stored in 64bit, network byte order.
  1017. New build can load old format(version 2) but it saves the file in new
  1018. format. It means once you used new build, your dht.dat becomes
  1019. incompatible with older build.
  1020. * src/DHTRoutingTableDeserializer.cc
  1021. * src/DHTRoutingTableSerializer.cc
  1022. * test/DHTRoutingTableSerializerTest.cc
  1023. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1024. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1025. * test/Makefile.am
  1026. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1027. Bump up version number of .aria2 control file to 0001.
  1028. New aria2 can still load version 0000 file but it saves the file in
  1029. version 0001 format. It means that new aria2 can resume download
  1030. started by old aria2 but the opposite is not true.
  1031. * src/DefaultBtProgressInfoFile.cc
  1032. * src/DefaultBtProgressInfoFile.h
  1033. * test/DefaultBtProgressInfoFileTest.cc
  1034. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1035. Added ntoh64 and hton64 as inline functions.
  1036. * src/Util.cc
  1037. * test/UtilTest.cc
  1038. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1039. Added sqlite3 depenency and Firefox3 cookie support.
  1040. * README
  1041. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1042. State that firefox3 cookie is supported explicitly in the usage.
  1043. * src/usage_text.h
  1044. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1045. Externalized message.
  1046. * src/RequestGroupMan.cc
  1047. * src/message.h
  1048. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1049. Save temporary file first and rename to the destination on success.
  1050. Added test cases.
  1051. * src/RequestGroupMan.cc
  1052. * test/RequestGroupManTest.cc
  1053. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1054. Fixed the bug that the number of connected peer is exceeding the limit
  1055. (55 by default) in seeding mode.
  1056. Multiplied 0.8 to _maxUploadSpeedLimit.
  1057. * src/ActivePeerConnectionCommand.cc
  1058. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1059. Clear table item.
  1060. * src/Dictionary.cc
  1061. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1062. Fixed error handling of lseek.
  1063. * src/AbstractDiskWriter.cc
  1064. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1065. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1066. style cookie file.
  1067. * src/usage_text.h
  1068. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1069. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1070. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1071. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1072. * src/Util.cc
  1073. * src/Util.h
  1074. * src/CookieParser.cc
  1075. * test/UtilTest.cc
  1076. * test/CookieParserTest.cc
  1077. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1078. Separate the implementation to load old mozilla format of cookie to
  1079. NsCookieParser class.
  1080. * src/CookieBoxFactory.cc
  1081. * src/CookieBoxFactory.h
  1082. * src/NsCookieParser.cc
  1083. * src/NsCookieParser.h
  1084. * test/NsCookieParserTest.cc
  1085. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1086. Made parse() const
  1087. * src/Sqlite3MozCookieParser.cc
  1088. * src/Sqlite3MozCookieParser.h
  1089. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1090. Added firefox3 cookie support based on the patch submitted by
  1091. tizianomueller.
  1092. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  1093. this functionality.
  1094. * configure.ac
  1095. * m4/sqlite3.m4
  1096. * src/CookieBoxFactory.cc
  1097. * src/CookieBoxFactory.h
  1098. * src/Makefile.am
  1099. * src/Makefile.in
  1100. * src/Sqlite3MozCookieParser.cc
  1101. * src/Sqlite3MozCookieParser.h
  1102. * src/main.cc
  1103. * test/CookieBoxFactoryTest.cc
  1104. * test/Makefile.am
  1105. * test/Makefile.in
  1106. * test/Sqlite3MozCookieParserTest.cc
  1107. * test/badcookies.sqlite
  1108. * test/cookies.sqlite
  1109. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1110. Added Danish and Greek translations.
  1111. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  1112. Great thanks to all translators.
  1113. * po/LINGUAS
  1114. * po/el.po
  1115. * po/da.po
  1116. * po/es.po
  1117. * po/ca.po
  1118. * po/nn.po
  1119. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1120. Fixed man page: --follow-bittorrent should be --follow-torrent
  1121. * doc/aria2c.1.txt
  1122. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1123. Fixed: numCommand is less than the value specified in -C option.
  1124. * src/RequestGroup.cc
  1125. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1126. Fixed occasional assertion failure in PieceSegment.
  1127. Calling PieceStorage::getMissingPiece(size_t) was missing after
  1128. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  1129. creation of duplicate segments and one of the segment was finished then
  1130. assertion failure was caused.
  1131. * src/SegmentMan.cc
  1132. * test/SegmentManTest.cc
  1133. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1134. Added options to load/save the server's performance/status to a file
  1135. and the timeout to drop their data.
  1136. --server-stat-of=FILE specifies the file to which performance data
  1137. is saved.
  1138. --server-stat-if=FILE specifies the file to read previously saved
  1139. by --server-stat-of option. Might be used with --uri-selector=feedback.
  1140. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  1141. TIMEOUT is specified in seconds and the default value is 24hours.
  1142. * src/MultiUrlRequestInfo.cc
  1143. * src/OptionHandlerFactory.cc
  1144. * src/RequestGroupMan.cc
  1145. * src/RequestGroupMan.h
  1146. * src/ServerStatMan.cc
  1147. * src/ServerStatMan.h
  1148. * src/option_processing.cc
  1149. * src/prefs.cc
  1150. * src/prefs.h
  1151. * test/ServerStatManTest.cc
  1152. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1153. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  1154. * src/ServerStatMan.cc
  1155. * src/ServerStatMan.h
  1156. * test/ServerStatManTest.cc
  1157. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1158. Implemented ServerStatMan::load(...) function and its test case.
  1159. * src/ServerStat.cc
  1160. * src/ServerStat.h
  1161. * src/ServerStatMan.cc
  1162. * test/ServerStatManTest.cc
  1163. * test/ServerStatTest.cc
  1164. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1165. Use time_t instead of int32_t. Use int64_t where milli second is
  1166. expected.
  1167. * src/TimeA2.cc
  1168. * src/TimeA2.h
  1169. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1170. Implemented ServerStatMan::save(...) function and its test case.
  1171. * src/ServerStat.cc
  1172. * src/ServerStat.h
  1173. * src/ServerStatMan.cc
  1174. * src/ServerStatMan.h
  1175. * test/ServerStatManTest.cc
  1176. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1177. Now aria2 uses name attribute in Metalink as local filename in
  1178. BitTorrent downloads. BUG#2033999
  1179. * src/BtContext.h
  1180. * src/BtDependency.cc
  1181. * src/DefaultBtContext.cc
  1182. * src/DefaultBtContext.h
  1183. * src/SingleFileDownloadContext.cc
  1184. * src/SingleFileDownloadContext.h
  1185. * test/BtDependencyTest.cc
  1186. * test/DefaultBtContextTest.cc
  1187. * test/MockBtContext.h
  1188. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1189. Added AC_C_BIGENDIAN
  1190. * src/configure.ac
  1191. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1192. Limited numCommand less than or equal to the number of piece.
  1193. * src/RequestGroup.cc
  1194. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1195. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  1196. directive.
  1197. * test/DefaultPieceStorageTest.cc
  1198. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1199. Fixed memory leak in test code
  1200. * test/AnnounceListTest.cc
  1201. * test/DefaultPeerListProcessorTest.cc
  1202. * test/DefaultPeerStorageTest.cc
  1203. * test/MetaFileUtilTest.cc
  1204. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1205. Fixed wrong argument passing to BitfieldMan::isBitSet()
  1206. * src/DefaultPieceStorage.cc
  1207. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1208. Initialized _directIOAllowed
  1209. * src/MultiDiskAdaptor.cc
  1210. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1211. Fixed memory leak
  1212. * src/GZipDecoder.cc
  1213. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1214. Fixed memory leak
  1215. * src/MetalinkParserStateMachine.cc
  1216. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1217. Fixed memory leak
  1218. * src/Dictionary.cc
  1219. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1220. Fixed memory leak
  1221. * src/IteratableChunkChecksumValidator.h
  1222. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1223. Fixed unmatched malloc/free.
  1224. * src/IteratableChunkChecksumValidator.cc
  1225. * src/IteratableChecksumValidator.cc
  1226. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1227. Removed max chunk size check. This change fixes BUG#2040169
  1228. * src/ChunkedDecoder.cc
  1229. * src/ChunkedDecoder.h
  1230. * test/ChunkedDecoderTest.cc
  1231. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1232. Implemented download speed based URI selection algorithm.
  1233. Introduced new option --uri-selector.
  1234. If --uri-selector=feedback is given, aria2 uses download speed observed
  1235. in the previous downloads and chooses fastest server in the URI list.
  1236. Currently at most 10 URIs are considered to introduce randomeness for
  1237. finding better servers. The speed is average download speed in the
  1238. downloads.
  1239. On the other hand, if --uri-selector=inorder is given, which is default,
  1240. URI is tried in order in URI list.
  1241. The usage text for the new option has not been written yet.
  1242. * src/AbstractCommand.cc
  1243. * src/DownloadCommand.cc
  1244. * src/DownloadEngine.cc
  1245. * src/DownloadEngineFactory.cc
  1246. * src/InOrderURISelector.cc
  1247. * src/InOrderURISelector.h
  1248. * src/OptionHandlerFactory.cc
  1249. * src/PeerStat.h
  1250. * src/RequestGroup.cc
  1251. * src/RequestGroup.h
  1252. * src/RequestGroupMan.cc
  1253. * src/RequestGroupMan.h
  1254. * src/SegmentMan.cc
  1255. * src/SegmentMan.h
  1256. * src/ServerStat.cc
  1257. * src/ServerStat.h
  1258. * src/ServerStatMan.cc
  1259. * src/ServerStatMan.h
  1260. * src/ServerStatURISelector.cc
  1261. * src/ServerStatURISelector.h
  1262. * src/URISelector.h
  1263. * src/option_processing.cc
  1264. * src/prefs.cc
  1265. * src/prefs.h
  1266. * test/InOrderURISelectorTest.cc
  1267. * test/RequestGroupManTest.cc
  1268. * test/ServerStatManTest.cc
  1269. * test/ServerStatURISelectorTest.cc
  1270. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1271. * Release 0.15.1+2
  1272. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1273. Bump up version number to 0.15.1+2
  1274. * configure.ac
  1275. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1276. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  1277. * m4/aria2_arg.m4
  1278. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1279. * Release 0.15.1+1
  1280. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1281. Bump up version number to 0.15.1+1
  1282. * configure.ac
  1283. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1284. Fixed the bug that causes segmentaion fault when resuming download
  1285. using metalink without size tag. Reproducible only using HTTP URI.
  1286. * src/HttpResponseCommand.cc
  1287. * src/FtpNegotiationCommand.cc
  1288. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1289. * Release 0.15.1
  1290. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1291. Updated Bulgarian and French translations, thanks to all translators.
  1292. * po/bg.po
  1293. * po/fr.po
  1294. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1295. Bump up version number to 0.15.1
  1296. * configure.ac
  1297. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1298. Avoid repeated call of gettimeofday() when calculating speed.
  1299. * src/SpeedCalc.cc
  1300. * src/SpeedCalc.h
  1301. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1302. Removed writable check when socket's send buffer is full in BitTorrent
  1303. downloads to lower CPU usage.
  1304. * src/PeerInteractionCommand.cc
  1305. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1306. Fixed broken gzip inflation.
  1307. Turn off segmented downloading if gzip content is smaller than or equal
  1308. to 1MiB and inflate the data on the fly, because HTTP response header
  1309. doesn't contain the length of inflated file we can't determin where
  1310. the chunk of data should be written.
  1311. On the other hand, if gzip content is larger than 1MB, then turn off
  1312. on the fly inflation, because some servers returns "content-type: gzip"
  1313. for *.tgz, *.gz files.
  1314. * src/DownloadCommand.cc
  1315. * src/HttpResponseCommand.cc
  1316. * src/HttpResponseCommand.h
  1317. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1318. Applied tizianomueller's patch to fix compile error.
  1319. * test/BitfieldManTest.cc
  1320. * test/BtRequestMessageTest.cc
  1321. * test/DefaultBtContextTest.cc
  1322. * test/DefaultDiskWriterTest.cc
  1323. * test/DefaultPieceStorageTest.cc
  1324. * test/HttpHeaderProcessorTest.cc
  1325. * test/HttpResponseTest.cc
  1326. * test/Metalink2RequestGroupTest.cc
  1327. * test/MetalinkParserControllerTest.cc
  1328. * test/MetalinkProcessorTest.cc
  1329. * test/PeerSessionResourceTest.cc
  1330. * test/UtilTest.cc
  1331. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1332. * Release 0.15.0
  1333. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1334. Reordered src files in POTFILES.in so that usage text appears first.
  1335. * po/POTFILES.in
  1336. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1337. Bump up version number to 0.15.0
  1338. * configure.ac
  1339. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1340. Added Bulgarian translation.
  1341. Updated Catalan, Spanish, French and Japanese translations.
  1342. Thanks to all translators.
  1343. * po/LINGUAS
  1344. * po/bg.po
  1345. * po/ca.po
  1346. * po/es.po
  1347. * po/fr.po
  1348. * po/ja.po
  1349. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1350. Updated feature list. Added libz for dependency section.
  1351. Added a description about unit testing using CppUnit.
  1352. * README
  1353. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1354. Added a test for libz. Quoted where it is necessary.
  1355. * build_test.sh
  1356. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1357. Added GZip to `Enabled Features' list.
  1358. * src/FeatureConfig.cc
  1359. * src/FeatureConfig.h
  1360. * test/FeatureConfigTest.cc
  1361. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1362. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1363. the transfer has not yet started.
  1364. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1365. * src/SegmentMan.cc
  1366. * src/SegmentMan.h
  1367. * test/SegmentManTest.cc
  1368. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1369. Cache last calculated average download/upload speed.
  1370. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1371. cached value.
  1372. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1373. * src/PeerStat.h
  1374. * src/SpeedCalc.cc
  1375. * src/SpeedCalc.h
  1376. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1377. Call parseUrl directly.
  1378. * src/Request.cc (resetUrl)
  1379. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1380. Supported absolute/relative path in Location header field.
  1381. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1382. * src/HttpHeader.cc
  1383. * src/HttpHeader.h
  1384. * src/HttpResponse.cc
  1385. * src/HttpSkipResponseCommand.cc
  1386. * src/Request.cc
  1387. * test/HttpHeaderTest.cc
  1388. * test/HttpResponseTest.cc
  1389. * test/RequestTest.cc
  1390. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1391. Changed help text for --load-cookie option.
  1392. * doc/aria2c.1.txt
  1393. * src/usage_text.h
  1394. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1395. Regenerated test/Makefile.in to remove stale ChangeLog.
  1396. * test/Makefile.in
  1397. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1398. Updated po files.
  1399. * po/aria2c.pot
  1400. * po/*.po
  1401. * po/*.gmo
  1402. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1403. Bump up version number to 0.15.0b
  1404. * configure.ac
  1405. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1406. Externalize messages.
  1407. * src/RequestGroupMan.cc
  1408. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1409. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1410. Use File::exists() instead of File::isFile() to allow non-regular file
  1411. such as block special files.
  1412. * src/AbstractDiskWriter.cc
  1413. * src/MultiDiskWriter.cc
  1414. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1415. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1416. * src/gai_strerror.h
  1417. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1418. Fixed compile error. Thanks gknauf for the patch.
  1419. * src/asctime_r.c
  1420. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1421. Included asctime_r.h from a2time.h.
  1422. * src/a2time.h
  1423. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1424. Added a message "aria2 doesn't verify signature" to log message when
  1425. signature file is saved.
  1426. * src/RequestGroupMan.cc
  1427. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1428. Added the ability to save signature when download is completed if
  1429. signature is available. The filename of signature file is the path to
  1430. download file followed by ".sig". If it already exists, then signature
  1431. will not be saved.
  1432. * src/RequestGroupMan.cc
  1433. * src/Signature.cc
  1434. * test/SignatureTest.cc
  1435. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1436. Updated the descriptions for --bt-seed-unverified.
  1437. * doc/aria2c.1
  1438. * doc/aria2c.1.html
  1439. * doc/aria2c.1.txt
  1440. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1441. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1442. that this is not going to verify files using piece hashes.
  1443. * src/HelpItemFactory.cc
  1444. * src/OptionHandlerFactory.cc
  1445. * src/RequestGroup.cc
  1446. * src/option_processing.cc
  1447. * src/prefs.cc
  1448. * src/prefs.h
  1449. * src/usage_text.h
  1450. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1451. Added the ability to retrieve signature from Metalink file.
  1452. A retrieved signature is stored in Signature class and it is held by
  1453. DownloadContext class. Note that aria2 doesn't verify signature.
  1454. * src/DownloadContext.cc
  1455. * src/DownloadContext.h
  1456. * src/Makefile.am
  1457. * src/Makefile.in
  1458. * src/Metalink2RequestGroup.cc
  1459. * src/MetalinkEntry.cc
  1460. * src/MetalinkEntry.h
  1461. * src/MetalinkParserController.cc
  1462. * src/MetalinkParserController.h
  1463. * src/MetalinkParserStateMachine.cc
  1464. * src/MetalinkParserStateMachine.h
  1465. * src/Signature.cc
  1466. * src/Signature.h
  1467. * src/SignatureMetalinkParserState.cc
  1468. * src/SignatureMetalinkParserState.h
  1469. * src/VerificationMetalinkParserState.cc
  1470. * src/VerificationMetalinkParserState.h
  1471. * test/Metalink2RequestGroupTest.cc
  1472. * test/MetalinkParserControllerTest.cc
  1473. * test/MetalinkProcessorTest.cc
  1474. * test/test.xml
  1475. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1476. Close DiskAdaptor after renaming file.
  1477. * src/RequestGroup.cc
  1478. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1479. Corrected indentation
  1480. * src/DefaultBtProgressInfoFile.cc
  1481. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1482. Moved the calls of std::ios::exceptions() inside of try-catch block
  1483. because if an error occurred in constructor of std::fstream, then
  1484. exception is thrown immediately when std::ios::exceptions() is called
  1485. which results unhandled exception and aria2c aborts.
  1486. * src/DefaultBtProgressInfoFile.cc
  1487. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1488. Added the test for the previous change in DefaultBtContext.cc
  1489. * test/DefaultBtContextTest.cc
  1490. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1491. Fixed the bug that causes infinite loop when the number of pieces are
  1492. fewer than allowed fast set size which is 10 by default.
  1493. * src/DefaultBtContext.cc
  1494. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1495. Updated the descriptions for -j, -s. Added --bt-seed.
  1496. * doc/aria2c.1
  1497. * doc/aria2c.1.html
  1498. * doc/aria2c.1.txt
  1499. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1500. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1501. aria2 seeds previously downloaded files without validating piece hashs.
  1502. * src/HelpItemFactory.cc
  1503. * src/OptionHandlerFactory.cc
  1504. * src/RequestGroup.cc
  1505. * src/option_processing.cc
  1506. * src/prefs.cc
  1507. * src/prefs.h
  1508. * src/usage_text.h
  1509. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1510. Updated DESCRIPTION of man page.
  1511. * doc/aria2c.1
  1512. * doc/aria2c.1.html
  1513. * doc/aria2c.1.txt
  1514. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1515. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1516. Don't define `struct addrinfo' when __sun is defined.
  1517. * src/getaddrinfo.h
  1518. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1519. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1520. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1521. second argument is of type `struct _stati64'. Otherwise it is defined as
  1522. `struct stat'.
  1523. * src/AbstractDiskWriter.cc
  1524. * src/File.cc
  1525. * src/File.h
  1526. * src/a2io.h
  1527. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1528. Fixed the compile error in hurd-i386
  1529. See the original bug report:
  1530. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1531. * src/a2io.h
  1532. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1533. Code cleanup.
  1534. * src/PeerAbstractCommand.cc
  1535. * src/PeerAbstractCommand.h
  1536. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1537. Removed TransferEncoding.
  1538. * src/DownloadCommand.cc
  1539. * src/DownloadCommand.h
  1540. * src/HttpResponseCommand.cc
  1541. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1542. Updated po files.
  1543. * po/aria2c.pot
  1544. * po/*.po
  1545. * po/*.gmo
  1546. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1547. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1548. * src/A2STR.cc
  1549. * src/A2STR.h
  1550. * src/ChunkedDecoder.cc
  1551. * src/ChunkedDecoder.h
  1552. * src/ChunkedEncoding.cc: Removed
  1553. * src/ChunkedEncoding.h: Removed
  1554. * src/DownloadCommand.cc
  1555. * src/DownloadCommand.h
  1556. * src/HttpDownloadCommand.cc
  1557. * src/HttpResponse.cc
  1558. * src/HttpResponse.h
  1559. * src/HttpResponseCommand.cc
  1560. * src/HttpSkipResponseCommand.cc
  1561. * src/HttpSkipResponseCommand.h
  1562. * src/Makefile.am
  1563. * src/TransferEncoding.h: Removed
  1564. * test/ChunkedDecoderTest.cc
  1565. * test/ChunkedEncodingTest.cc: Removed
  1566. * test/HttpResponseTest.cc
  1567. * test/Makefile.am
  1568. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1569. Use append instead of insert.
  1570. * src/GZipDecoder.cc
  1571. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1572. Updated doc
  1573. * src/Decoder.h
  1574. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1575. Updated usage text for -s option.
  1576. * src/usage_text.h
  1577. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1578. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1579. * src/Request.cc
  1580. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1581. Cleaned up configure.ac.
  1582. * configure.ac
  1583. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1584. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1585. AC_ARG_ENABLE.
  1586. * configure.ac
  1587. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1588. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1589. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1590. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1591. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1592. fly and writes decoded data to a local disk.
  1593. * README
  1594. * README.html
  1595. * configure.ac
  1596. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1597. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1598. * m4/libz.m4
  1599. * src/Decoder.h
  1600. * src/DownloadCommand.cc
  1601. * src/DownloadCommand.h
  1602. * src/Exception.h
  1603. * src/GZipDecoder.cc
  1604. * src/GZipDecoder.h
  1605. * src/HttpHeader.cc
  1606. * src/HttpHeader.h
  1607. * src/HttpRequest.cc
  1608. * src/HttpRequest.h
  1609. * src/HttpResponse.cc
  1610. * src/HttpResponse.h
  1611. * src/HttpResponseCommand.cc
  1612. * src/Makefile.am
  1613. * test/GZipDecoderTest.cc
  1614. * test/HttpRequestTest.cc
  1615. * test/HttpResponseTest.cc
  1616. * test/Makefile.am
  1617. * test/Makefile.in
  1618. * test/gzip_decode_test.gz
  1619. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1620. Clarified usage of -j option.
  1621. * src/usage_text.h
  1622. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1623. Disabled getting size from the response of RETR.
  1624. If SIZE command failed, then disable resuming and segmented downloading.
  1625. * src/FtpConnection.cc
  1626. * src/FtpConnection.h
  1627. * src/FtpNegotiationCommand.cc
  1628. * src/FtpNegotiationCommand.h
  1629. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1630. Use digits to find first byte of file size, which makes the intention
  1631. of the code clearer.
  1632. * src/FtpConnection.cc
  1633. Don't call validateTotalLength() when size is 0.
  1634. * src/FtpNegotiationCommand.cc
  1635. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1636. Updated po files.
  1637. * po/aria2c.pot
  1638. * po/*.gmo
  1639. * po/*.po
  1640. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1641. Clarified usage text for --split option.
  1642. * src/usage_text.h
  1643. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1644. Bump up version number to 0.15.0dev. "dev" means "development"
  1645. version, which means I started the development of the next release!
  1646. * src/configure.ac
  1647. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1648. If FTP server returns negative response with REST raw command and
  1649. requested range is not 0, throw exception. If requested range is 0,
  1650. continue download a file from 0 byte.
  1651. * src/FtpNegotiationCommand.cc
  1652. * src/FtpNegotiationCommand.h
  1653. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1654. Supported FTP server which don't recognize SIZE raw command.
  1655. If SIZE raw command is failed, aria2 will try to get file size
  1656. from the response of RETR raw command. If both attempts are failed,
  1657. then resuming and segmented downloading are disabled.
  1658. * src/FtpConnection.cc
  1659. * src/FtpConnection.h
  1660. * src/FtpNegotiationCommand.cc
  1661. * src/FtpNegotiationCommand.h
  1662. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1663. * Release 0.14.0+1
  1664. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1665. Bump up version number to 0.14.0+1
  1666. * src/configure.ac
  1667. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1668. Fixed the code that refers static member variable from non-static
  1669. context.
  1670. * src/DefaultPeerStorage.cc
  1671. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1672. * Release 0.14.0
  1673. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1674. Added build test script
  1675. * build_test.sh
  1676. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1677. Updated ja.po
  1678. * src/ja.po
  1679. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1680. Bump up version number to 0.14.0
  1681. * src/configure.ac
  1682. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1683. Updated ja.po and fr.po. Great thanks for french translators and
  1684. Sebastien WILLEMIJNS.
  1685. * po/fr.po
  1686. * po/ja.po
  1687. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1688. Added configure option to enable/disable epoll support.
  1689. * configure.ac
  1690. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1691. Updated man page.
  1692. * doc/aria2c.1.txt
  1693. * doc/aria2c.1
  1694. * doc/aria2c.1.html
  1695. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1696. Added missing default value '5' to the usage of --split option.
  1697. * src/HelpItemFactory.cc
  1698. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1699. Filled up pieces based on the number of missing blocks, rather than
  1700. simplay the number of piece * block length.
  1701. * src/BtRequestFactory.h
  1702. * src/DefaultBtInteractive.cc
  1703. * src/DefaultBtInteractive.h
  1704. * src/DefaultBtRequestFactory.cc
  1705. * src/DefaultBtRequestFactory.h
  1706. * src/Piece.cc
  1707. * src/Piece.h
  1708. * test/BitfieldManTest.cc
  1709. * test/DefaultBtRequestFactoryTest.cc
  1710. * test/MockBtRequestFactory.h
  1711. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1712. Made _epEvents a member variable.
  1713. * src/DownloadEngine.cc
  1714. * src/DownloadEngine.h
  1715. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1716. Cancel download if http redirect is bounded more than 20 times.
  1717. * src/AbstractCommand.cc
  1718. * src/HttpSkipResponseCommand.cc
  1719. * src/Request.cc
  1720. * src/Request.h
  1721. * test/RequestTest.cc
  1722. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1723. Fixed unhandled exception(removed keyword `new').
  1724. * src/SocketCore.cc (initEPOLL)
  1725. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1726. Removed visit(const MetaEntry*)
  1727. * src/MetaEntryVisitor.h:
  1728. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1729. and made them virtual.
  1730. * src/BencodeVisitor.h
  1731. * src/BencodeVisitor.cc
  1732. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1733. Updated po files.
  1734. * po/aria2c.pot
  1735. * po/*.po
  1736. * po/*.gmo
  1737. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1738. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1739. the number of socket to watch out.
  1740. * src/PeerInteractionCommand.cc
  1741. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1742. When there is not enough space in disk when writing a chunk of data,
  1743. aria2 now prints the message to the console to warn user and aborts
  1744. its download. Not all downloads are canceled because some downloads
  1745. may use another disk or partition. BUG#1640332
  1746. * src/AbstractDiskWriter.cc
  1747. * src/PeerAbstractCommand.cc
  1748. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1749. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1750. setHaltRequested(true) to cancel download.
  1751. * src/PeerInteractionCommand.h
  1752. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1753. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1754. socket from int to sock_t as sockets are unsigned in Windows.
  1755. For AsyncNameResolver, DownloadEngine, I did additional modification
  1756. for the portion of the code changed according to epoll support.
  1757. I defined sock_t in a2netcompat.h to use sock_t without including
  1758. SocketCore.h.
  1759. * src/AsyncNameResolver.cc
  1760. * src/AsyncNameResolver.h
  1761. * src/DownloadEngine.cc
  1762. * src/DownloadEngine.h
  1763. * src/SocketCore.cc
  1764. * src/SocketCore.h
  1765. * src/a2netcompat.h
  1766. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1767. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1768. changes in the patch were applied.
  1769. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1770. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1771. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1772. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1773. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1774. a2io.h and common.h were modified.
  1775. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1776. MinGW.
  1777. * src/common.h: Changed off_t to 64 bit in MinGW.
  1778. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1779. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1780. only a2netcompat.h is modified.
  1781. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1782. directives.
  1783. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1784. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1785. only gai_strerror.h is modified.
  1786. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1787. winsock errors in MinGW.
  1788. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1789. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1790. follow sources are applied.
  1791. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1792. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1793. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1794. I included locale.h from Platform.cc.
  1795. * src/main.cc: Moved common setup/teardown code to Platform class.
  1796. * test/AllTest.cc: Use Platform class.
  1797. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1798. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1799. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1800. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1801. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1802. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1804. aria2-0.13.2+1-mingw-2.patch.
  1805. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1806. systems which don't have termious.h. I moved the directive inside of
  1807. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1808. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1809. anyway.
  1810. * src/asctime_r.h
  1811. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1812. I added 2nd argument to the prototype declaration.
  1813. * src/StringFormat.cc: Get rid of vasprintf.
  1814. * src/getaddrinfo.h: Fixed constants.
  1815. * configure.ac: Added the check for asctime_r function.
  1816. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1817. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1818. Added writable test for Socket when the sending message is in progress.
  1819. Usually the sending message is piece message. Without wriable check,
  1820. upload latency is dropped to more than 1sec.
  1821. * src/PeerInteractionCommand.cc
  1822. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1823. Create only requested files and files which shares a piece with
  1824. requested file in multi-torrent downloads. Directory structures are
  1825. also created in the same rule.
  1826. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1827. DiskWriterEntry as in the previous implementation.
  1828. * src/MultiDiskWriter.cc
  1829. * src/MultiFileAllocationIterator.cc
  1830. * src/MultiFileAllocationIterator.h
  1831. * test/MultiFileAllocationIteratorTest.cc
  1832. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1833. Commented out -lprofiler
  1834. * src/Makefile.am
  1835. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1836. Bump up version number to 0.14.0b.
  1837. * src/configure.ac
  1838. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1839. Actively establish connection to peers in seeding, when peer cache
  1840. is not full and max upload speed limit is not reached.
  1841. * src/ActivePeerConnectionCommand.cc
  1842. * src/ActivePeerConnectionCommand.h
  1843. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1844. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1845. to make room more fleshy, recently found peers.
  1846. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1847. it.
  1848. * src/DefaultPeerStorage.cc
  1849. * test/DefaultPeerStorageTest.cc
  1850. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1851. Returns cached data only when the previous receiveHandshake() is called
  1852. with peek = true.
  1853. * src/PeerConnection.cc (receiveHandshake)
  1854. * src/PeerConnection.h (receiveHandshake)
  1855. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1856. Changed default value of -s option from 1 to 5.
  1857. Also max value of -s option is changed from 5 to 16.
  1858. * src/HelpItemFactory.cc
  1859. * src/OptionHandlerFactory.cc
  1860. * src/option_processing.cc
  1861. * src/usage_text.h
  1862. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1863. Changed -s options behavior. Now it means the number of connections
  1864. made simultaneously in each http/ftp download.
  1865. If 1 URL is specified, the behavior is the same with old implementation.
  1866. If -s N is given and more than N URLs are specified, first N URLs are
  1867. used and remaining URLs are used for backup. If less than N URLs are
  1868. specified, some of URLs are used more than once so that totally N
  1869. connections are made simultaneously.
  1870. * src/main.cc
  1871. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1872. Included missing iosfwd or ostream header.
  1873. * src/RequestGroupMan.cc
  1874. * src/TaggedItem.cc
  1875. * src/TaggedItem.h
  1876. * src/Util.cc
  1877. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1878. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  1879. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  1880. * src/HttpConnection.cc: Included missing sstream.
  1881. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Added --bt-max-open-files option.
  1883. * src/DefaultPieceStorage.cc
  1884. * src/HelpItemFactory.cc
  1885. * src/MultiDiskAdaptor.cc
  1886. * src/MultiDiskAdaptor.h
  1887. * src/OptionHandlerFactory.cc
  1888. * src/option_processing.cc
  1889. * src/prefs.cc
  1890. * src/prefs.h
  1891. * src/usage_text.h
  1892. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1893. Fixed the bug that aria2 aborts when a path to a directory is given
  1894. in command-line.
  1895. * src/ProtocolDetector.cc
  1896. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1897. Limited the number files opened in each BitTorrent download. The default
  1898. value is 100. The option to change this value will be added.
  1899. * src/MultiDiskAdaptor.cc
  1900. * src/MultiDiskAdaptor.h
  1901. * src/MultiFileAllocationIterator.cc
  1902. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1903. Fixed the bug that HTTP downloads don't start with old libraries.
  1904. * src/HttpHeaderProcessor.cc
  1905. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1906. Use empty() instead of size() > 0.
  1907. * src/HttpConnection.cc
  1908. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. Drop connection if the incoming peer ID is the same with localhost's
  1910. one. The previous implementation drops connection when incoming peer's
  1911. IP address is the same with localhost's one.
  1912. * src/PeerListenCommand.cc
  1913. * src/DefaultBtInteractive.cc
  1914. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1915. Returns cached data without checking whether socket is readable
  1916. if the cache is available.
  1917. * src/PeerConnection.cc (receiveHandshake)
  1918. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1919. Included stdint.h
  1920. * src/common.h
  1921. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Removed duplicate HAVE_GETTIMEOFDAY
  1923. * src/Makefile.am
  1924. * src/Makefile.in
  1925. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1926. Use interval as a minInterval when minInterval is not supplied.
  1927. * src/DefaultBtAnnounce.cc
  1928. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1929. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  1930. attempt is failed, then 2nd attempt get kicked out more quickly.
  1931. And it is now static const member of DefaultBtAnnounce.
  1932. * src/DefaultBtAnnounce.h
  1933. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1934. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  1935. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  1936. * src/ActivePeerConnectionCommand.cc
  1937. * src/BtConstants.h
  1938. * src/BtRuntime.h
  1939. * src/DHTGetPeersCommand.cc
  1940. * src/DefaultBtAnnounce.cc
  1941. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  1942. BtRuntime::MAX_PEERS.
  1943. * src/DefaultPeerStorage.h
  1944. * src/InitiatorMSEHandshakeCommand.cc
  1945. * src/PeerInitiateConnectionCommand.cc
  1946. * src/PeerInteractionCommand.cc
  1947. * src/PeerReceiveHandshakeCommand.cc
  1948. * src/TrackerWatcherCommand.cc
  1949. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1950. Always Connect to _numNewConnection
  1951. * src/ActivePeerConnectionCommand.cc
  1952. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1953. Made `begin' unsigned int.
  1954. * src/GrowSegment.h
  1955. * src/Piece.cc
  1956. * src/Piece.h
  1957. * src/PiecedSegment.cc
  1958. * src/PiecedSegment.h
  1959. * src/Segment.h
  1960. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1961. Calculate piece hash when data is arrived if the data is arrived in
  1962. order. This removes additional read operation for hash calculation.
  1963. If the data is arrived in out of order, the hash is calucated when the
  1964. piece is completed. This is the same behavior as the old implementation.
  1965. * src/BtPieceMessage.cc
  1966. * src/DefaultBtProgressInfoFile.cc
  1967. * src/DefaultPieceStorage.cc
  1968. * src/DownloadCommand.cc
  1969. * src/DownloadCommand.h
  1970. * src/DownloadEngine.cc
  1971. * src/GrowSegment.cc
  1972. * src/GrowSegment.h
  1973. * src/Piece.cc
  1974. * src/Piece.h
  1975. * src/PiecedSegment.cc
  1976. * src/PiecedSegment.h
  1977. * src/Segment.h
  1978. * test/PieceTest.cc
  1979. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1980. Try to keep the ordering of outgoing piece message.
  1981. * src/DefaultBtMessageDispatcher.cc
  1982. (DefaultBtMessageDispatcher::sendMessages)
  1983. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1984. Fixed busy loop when error/hup epoll events occur.
  1985. * src/AbstractCommand.cc
  1986. * src/PeerAbstractCommand.cc
  1987. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1988. Added --bt-request-peer-speed-limit option, which was a constant
  1989. SLOW_SPEED_THRESHOLD.
  1990. * src/ActivePeerConnectionCommand.cc
  1991. * src/ActivePeerConnectionCommand.h
  1992. * src/BtConstants.h
  1993. * src/HelpItemFactory.cc
  1994. * src/OptionHandlerFactory.cc
  1995. * src/PeerReceiveHandshakeCommand.cc
  1996. * src/option_processing.cc
  1997. * src/prefs.cc
  1998. * src/prefs.h
  1999. * src/usage_text.h
  2000. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2001. Removed repeated call of getTopDirPath(). Instead, call it once and
  2002. cache the result.
  2003. * src/MultiDiskAdaptor.cc
  2004. * src/MultiDiskAdaptor.h
  2005. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2006. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2007. Fixed compile error on debian etch.
  2008. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2009. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2010. it is undefined.
  2011. * src/Util.cc (ULLONG_MAX)
  2012. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2013. Added epoll support. Use epoll if it is available. If not, use select.
  2014. When async dns is enabled in compile time, epoll support is enabled
  2015. only when aria2 is built with c-ares. This condition statement is
  2016. defined in a2io.h.
  2017. Currently aria2 supports both c-ares and ares, but ares is maintained
  2018. for quite a while and debian already has c-ares package, ares support
  2019. will be dropped in the future version.
  2020. * configure.ac
  2021. * src/AbstractCommand.cc
  2022. * src/AsyncNameResolver.cc
  2023. * src/AsyncNameResolver.h
  2024. * src/Command.cc
  2025. * src/Command.h
  2026. * src/DownloadEngine.cc
  2027. * src/DownloadEngine.h
  2028. * src/PeerAbstractCommand.cc
  2029. * src/SocketCore.cc
  2030. * src/SocketCore.h
  2031. * src/a2io.h
  2032. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2033. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2034. directive.
  2035. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2036. Do not do write operation to /dev/null file.
  2037. * src/LogFactory.cc
  2038. * src/SimpleLogger.cc
  2039. Replaced vasprintf with vsnprintf
  2040. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2041. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2042. * src/BtRequestMessage.cc
  2043. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2044. for segmentation fault caused by previous commit.
  2045. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2046. Reduced the usage of gettimeofday().
  2047. * src/DefaultBtMessageDispatcher.cc
  2048. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2049. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2050. * src/RequestSlot.cc
  2051. * src/RequestSlot.h
  2052. (RequestSlot::isTimeout)
  2053. Made RequestSlot have a reference to Piece object to avoid find
  2054. Piece repeatedly.
  2055. * src/DefaultBtMessageDispatcher.cc
  2056. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2057. * src/RequestSlot.cc
  2058. * src/RequestSlot.h
  2059. (RequestSlot::getPiece)
  2060. * test/DefaultBtMessageDispatcherTest.cc
  2061. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2062. * src/TimeA2.cc
  2063. * src/TimeA2.h
  2064. (Time::difference): New function.
  2065. (Time::elapsed): Done optimization.
  2066. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2067. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2068. directive.
  2069. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2070. * src/option_processing.cc: Added missing `defined' keyword to #if
  2071. directive.
  2072. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2073. Bump up version number to 0.13.2+1
  2074. * src/configure.ac
  2075. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2076. Refactored broken outstanding piece handling.
  2077. * src/DefaultPieceStorage.cc
  2078. * src/DefaultPieceStorage.h
  2079. * src/Piece.cc
  2080. * src/Piece.h
  2081. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2082. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2083. name collision of static variable and predefined macro.
  2084. * src/BtContext.cc
  2085. * src/BtContext.h
  2086. * src/CookieBoxFactory.cc
  2087. * src/CookieBoxFactory.h
  2088. * src/CookieParser.cc
  2089. * src/CookieParser.h
  2090. * src/DefaultBtContext.cc
  2091. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2092. * src/RequestGroup.cc
  2093. (RequestGroup::createInitialCommand): Use empty() instead of size().
  2094. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2095. * Release 0.13.2
  2096. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2097. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  2098. * po/fr.po
  2099. * po/ja.po
  2100. * po/aria2c.pot
  2101. * po/*.po
  2102. * po/*.gmo
  2103. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2104. Bump up version number to 0.13.2
  2105. * src/configure.ac
  2106. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2107. Refactord.
  2108. * src/RequestGroupMan.cc
  2109. (removeStoppedGroup)
  2110. (fillRequestGroupFromReserver)
  2111. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2112. Fixed compile error on Ubuntu.
  2113. * src/BtPieceMessage.cc
  2114. * src/MessageDigestHelper.cc
  2115. * src/Util.cc
  2116. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2117. Fixed compile error when configured with --disable-bittorrent
  2118. * test/DownloadHandlerFactoryTest.cc
  2119. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2120. Done make update-po
  2121. * po/aria2c.pot
  2122. * po/*.po
  2123. * po/*.gmo
  2124. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2125. Bump up version number to 0.13.2rc.
  2126. * src/configure.ac
  2127. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2128. Made option name bold. Updated SYNOPSIS to make it more readable.
  2129. * doc/aria2c.1.txt
  2130. * doc/aria2c.1
  2131. * doc/aria2c.1.html
  2132. * src/version_usage.cc
  2133. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2134. Refactored. Use std::string instead of size and char*.
  2135. * Data.cc
  2136. * Data.h
  2137. * test/Data.cc
  2138. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2139. Added trimSelf(). Rewritten trim() to use trimSelf().
  2140. * Util.cc
  2141. * Util.h
  2142. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2143. * src/ChunkChecksum.h (getChecksum): Return const reference.
  2144. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2145. Fixed compile error when configured with --disable-metalink.
  2146. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  2147. * test/FeatureConfigTest.cc
  2148. * test/DownloadHandlerFactoryTest.cc
  2149. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2150. Fixed compile error when configured with --without-gnutls
  2151. --without-openssl
  2152. * src/main.cc
  2153. * test/DefaultBtProgressInfoFileTest.cc
  2154. * test/SegmentManTest.cc
  2155. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2156. Fixed compile error with OpenSSL.
  2157. * src/IteratableChunkChecksumValidator.cc
  2158. * src/LibsslDHKeyExchange.h
  2159. * src/MessageDigestHelper.cc
  2160. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2161. Revert the default value of --max-concurrent-downloads to 5.
  2162. Revert the default value of --metalink-servers to 5.
  2163. Man pages was also updated.
  2164. * src/option_processing.cc
  2165. * doc/aria2c.1.txt
  2166. * doc/aria2c.1.html
  2167. * doc/aria2c.1
  2168. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2169. Returns const reference:
  2170. DownloadContext::getPieceHash, DownloadContext::getName,
  2171. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  2172. BtContext::getInfoHashAsString,
  2173. * src/BtContext.h
  2174. * src/DefaultBtContext.cc
  2175. * src/DefaultBtContext.h
  2176. * src/DownloadContext.h
  2177. * src/SingleFileDownloadContext.h
  2178. * test/MockBtContext.h
  2179. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2180. * src/RequestGroup.h (getDir): Removed.
  2181. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2182. Returns const reference. The internal urlencode function was optimized
  2183. a little bit.
  2184. * src/Request.cc
  2185. * src/Request.h
  2186. * src/HttpRequest.cc
  2187. * src/HttpRequest.h
  2188. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2189. Defined option name and possible values as std::string to reduce
  2190. temporary string object creation in runtime.
  2191. * src/HelpItemFactory.cc
  2192. * src/LogFactory.cc
  2193. * src/Option.cc
  2194. * src/OptionHandlerFactory.cc
  2195. * src/option_processing.cc
  2196. * src/prefs.cc
  2197. * src/prefs.h
  2198. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2199. Return const reference.
  2200. * src/DownloadHandlerConstants.cc
  2201. * src/DownloadHandlerConstants.h
  2202. (getMetalinkExtensions)
  2203. (getMetalinkContentTypes)
  2204. (getBtExtensions)
  2205. (getBtContentTypes)
  2206. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2207. * src/HttpHeader.cc (get): Rewritten.
  2208. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2209. Make HttpHeader::getFirst(...) return const reference.
  2210. * src/HttpHeader.cc
  2211. * src/HttpHeader.h
  2212. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2213. Use Option::getAsBool(...) instead of Option::get(...) and compare
  2214. it with V_TRUE.
  2215. * src/DefaultPieceStorage.cc
  2216. * src/DownloadCommand.cc
  2217. * src/FtpNegotiationCommand.cc
  2218. * src/HttpRequest.cc
  2219. * src/InitiateConnectionCommand.cc
  2220. * src/RequestGroup.cc
  2221. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2222. Made Option::get(...) return const reference of std::string.
  2223. * src/Option.cc
  2224. * src/Option.h
  2225. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2226. Replaced std:copy with insert.
  2227. * src/DefaultBtMessageDispatcher.cc
  2228. * src/DefaultPieceStorage.cc
  2229. * src/DownloadEngineFactory.cc
  2230. * src/RequestGroup.cc
  2231. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2232. Included SocketCore.h to fix compiler warning.
  2233. * src/InitiateConnectionCommand.cc
  2234. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2235. Put piece selection strategy algorithm to RarestPieceSelector class,
  2236. Added a switch to choose whether randomized selection so that unit
  2237. tests emit same results in, possibly, win32.
  2238. * src/DefaultPieceStorage.cc
  2239. * src/DefaultPieceStorage.h
  2240. * src/RarestPieceSelector.cc
  2241. * src/RarestPieceSelector.h
  2242. * test/DefaultPieceStorageTest.cc
  2243. * test/RarestPieceSelectorTest.cc
  2244. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2245. Don't pool connection if HTTP proxy is enabled.
  2246. * src/FtpFinishDownloadCommand.cc
  2247. * src/FtpNegotiationCommand.cc
  2248. * src/HttpSkipResponseCommand.cc
  2249. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2250. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  2251. * src/AbstractCommand.cc
  2252. * src/AbstractCommand.h
  2253. * src/ActivePeerConnectionCommand.cc
  2254. * src/FtpInitiateConnectionCommand.cc
  2255. * src/HttpInitiateConnectionCommand.cc
  2256. * src/InitiateConnectionCommandFactory.cc
  2257. * src/PeerAbstractCommand.cc
  2258. * src/PeerAbstractCommand.h
  2259. * src/PeerInitiateConnectionCommand.cc
  2260. * src/TrackerWatcherCommand.cc
  2261. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2262. Sort RequestSlot in ascending order and manipulate them using
  2263. lower_bound.
  2264. * src/DefaultBtMessageDispatcher.cc
  2265. * src/DefaultBtMessageDispatcher.h
  2266. (getMessageQueue): Added const qualifier.
  2267. (getRequestSlots): Added const qualifier.
  2268. (sendMessages): Use empty() instead of size().
  2269. (doCancelSendingPieceAction): Use HandleEvent object.
  2270. (doAbortOutstandingRequestAction): Rewritten.
  2271. (doChokedAction): Rewritten.
  2272. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  2273. (isOutstandingRequest): Rewritten.
  2274. (getOutstandingRequest): Rewritten.
  2275. (removeOutstandingRequest): Rewritten.
  2276. (addOutstandingRequest): Rewritten.
  2277. * src/RequestSlot.cc
  2278. * src/RequestSlot.h
  2279. (operator=): Rewritten.
  2280. (operator!=): New function.
  2281. (operator<): New function.
  2282. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2283. * src/DefaultBtRequestFactory.cc
  2284. (doChokedAction): Rewritten.
  2285. (removeCompletedPiece): Rewritten.
  2286. (removeTargetPiece): Rewritten.
  2287. (createRequestMessages): Added the debug log.
  2288. (createRequestMessagesOnEndGame: Added the debug log.
  2289. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2290. Added the debug log message.
  2291. * src/BtPieceMessage.cc (doReceivedAction)
  2292. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2293. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2294. used lower_bound to process them rather than linear search.
  2295. * src/DHTPeerAnnounceStorage.cc
  2296. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2297. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2298. peer has at least one completed piece.
  2299. * src/Peer.cc
  2300. * src/Peer.h
  2301. * src/PeerInteractionCommand.cc
  2302. * src/PeerSessionResource.cc
  2303. * src/PeerSessionResource.h
  2304. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2305. Removed unnecessary sorting
  2306. * src/DefaultPieceStorage (DefaultPieceStorage)
  2307. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2308. Rewritten the portion of the code that mangaes allowed fast indexes.
  2309. * src/PeerSessionResource.cc
  2310. * src/PeerSessionResource.h
  2311. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2312. Removed the invalid string including '\r' from ru.po and
  2313. did make update-po.
  2314. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2315. Added --log-level and --summary-interval to man page.
  2316. * doc/aria2c.1.txt
  2317. * doc/aria2c.1.html
  2318. * doc/aria2c.1
  2319. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2320. Added --log-level option to specify log level. Log messages under
  2321. the specified level are not output. Default value is `debug'.
  2322. * src/HelpItemFactory.cc
  2323. * src/LogFactory.cc
  2324. * src/LogFactory.h
  2325. * src/Logger.h
  2326. * src/OptionHandlerFactory.cc
  2327. * src/SimpleLogger.cc
  2328. * src/SimpleLogger.h
  2329. * src/main.cc
  2330. * src/option_processing.cc
  2331. * src/prefs.h
  2332. * src/usage_text.h
  2333. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2334. Print download progress summary of all parallel downloads in specified
  2335. interval, default 60 secs. While aria2 could download several files
  2336. in parallel (see -j option), it displayed just first download progress,
  2337. and the other downloads are hidden from the users. This new feature
  2338. prints all downloads currently in-progress to the console so that you
  2339. can check the status of all downloads. The interval can be adjusted
  2340. by --summary-interval option.
  2341. The progress readout is now cut so that all fits in the one line of
  2342. console.
  2343. * src/ConsoleStatCalc.cc
  2344. * src/ConsoleStatCalc.h
  2345. * src/HelpItemFactory.cc
  2346. * src/OptionHandlerFactory.cc
  2347. * src/RequestGroupMan.cc
  2348. * src/RequestGroupMan.h
  2349. * src/main.cc
  2350. * src/option_processing.cc
  2351. * src/prefs.h
  2352. * src/usage_text.h
  2353. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2355. * src/DownloadEngine.cc (DownloadEngine)
  2356. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2357. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2358. defined.
  2359. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2360. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2361. Use erase+lower_bound+insert instead of sort.
  2362. * src/DefaultPieceStorage.cc (addPieceStats)
  2363. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2364. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2365. * src/A2STR.cc
  2366. * src/A2STR.h
  2367. * src/OptionParser.cc (parse)
  2368. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2369. Defined fake filename `[tracker.announce]' as static const std::string.
  2370. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2371. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2372. Defined default filename `index.html' as static const std::string
  2373. * src/SingleFileDownloadContext.cc
  2374. * src/SingleFileDownloadContext.h
  2375. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2376. Defined "[MEMORY]" as static const std::string.
  2377. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2378. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2379. Defined control file's version number as static const std::string.
  2380. * src/DefaultBtProgressInfoFile.cc
  2381. * src/DefaultBtProgressInfoFile.h
  2382. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2383. Use Request::METHOD_GET
  2384. * src/RequestGroup.cc (createNextCommandWithAdj)
  2385. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2386. Defined "OK", "ERR", "INPR" as static const std::string
  2387. * src/RequestGroupMan.cc (showDownloadResults)
  2388. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2389. Defined default client used in extended handshake as static const
  2390. std::string
  2391. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2392. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2393. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2394. * src/HttpConnection.cc (eraseConfidentialInfo)
  2395. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2396. Defined default ftp user and password as static const std::string
  2397. * src/AuthConfigFactory.cc
  2398. * src/AuthConfigFactory.h
  2399. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2400. Defined strings used in netrc as static const std::string
  2401. * src/Netrc.cc
  2402. * src/Netrc.h
  2403. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2404. Defined HTTP status as static const std::string
  2405. * src/AbstractProxyResponseCommand.cc
  2406. * src/HttpHeader.cc
  2407. * src/HttpHeader.h
  2408. * src/HttpResponse.cc
  2409. * src/HttpResponseCommand.cc
  2410. * src/HttpSkipResponseCommand.cc
  2411. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2412. Defined "\r\n", "A", "I" as static const std::string
  2413. * src/A2STR.cc
  2414. * src/A2STR.h
  2415. * src/FtpConnection.cc
  2416. * src/FtpConnection.h
  2417. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2418. Added COLON_C(".") and used it in Request::parseUrl()
  2419. * src/A2STR.cc
  2420. * src/A2STR.h
  2421. * src/Request.cc (parseUrl)
  2422. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2423. Changed the type of padName from `const std::string&' to `const char*'.
  2424. * src/MSEHandshake.cc (verifyPadLength)
  2425. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2426. Defined "sha1" as static const std::string.
  2427. * src/MetalinkParserController.cc
  2428. * src/MetalinkParserController.h
  2429. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2430. Defined message digest algorithm name as static const std::string
  2431. * src/DHTTokenTracker.cc
  2432. * src/DHTUtil.cc
  2433. * src/DefaultBtContext.cc
  2434. * src/MSEHandshake.cc
  2435. * src/MessageDigestHelper.cc
  2436. * src/Peer.cc
  2437. * src/messageDigest.cc
  2438. * src/messageDigest.h
  2439. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2440. Made string literals used in SAX parser static const std::string.
  2441. * src/FileMetalinkParserState.cc
  2442. * src/FileMetalinkParserState.h
  2443. * src/FilesMetalinkParserState.cc
  2444. * src/FilesMetalinkParserState.h
  2445. * src/InitialMetalinkParserState.cc
  2446. * src/InitialMetalinkParserState.h
  2447. * src/MetalinkMetalinkParserState.cc
  2448. * src/MetalinkMetalinkParserState.h
  2449. * src/PiecesMetalinkParserState.cc
  2450. * src/PiecesMetalinkParserState.h
  2451. * src/ResourcesMetalinkParserState.cc
  2452. * src/ResourcesMetalinkParserState.h
  2453. * src/VerificationMetalinkParserState.cc
  2454. * src/VerificationMetalinkParserState.h
  2455. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2456. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2457. * src/A2STR.cc
  2458. * src/A2STR.h
  2459. * src/File.cc
  2460. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2461. Defined static const std::string IP("ip"), PORT("port") and use them
  2462. instead of string literals.
  2463. * src/DefaultPeerListProcessor.cc
  2464. * src/DefaultPeerListProcessor.h
  2465. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2466. Made string literals for torrent file processing static const
  2467. std::string.
  2468. * src/BtContext.cc
  2469. * src/BtContext.h
  2470. * src/DefaultBtContext.cc
  2471. * src/DefaultBtContext.h
  2472. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2473. Made string literal for tracker response static const std::string
  2474. * src/BtAnnounce.cc
  2475. * src/BtAnnounce.h
  2476. * src/DefaultBtAnnounce.cc
  2477. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2478. Use DHTMessage::T instead of "t".
  2479. * src/DHTMessageTracker.cc (messageArrived)
  2480. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2481. Made keyName static const. Made trimmed charset static const
  2482. std::string.
  2483. * src/Util.cc (getContentDispositionFilename)
  2484. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2485. Made USER_AGENT const. Made "/" static const std::string.
  2486. * src/A2STR.cc
  2487. * src/A2STR.h
  2488. * src/HttpRequest.cc
  2489. * src/HttpRequest.h
  2490. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2491. Made string listeral to static const std::string:
  2492. "Content-Range", "Content-Length"
  2493. * src/HttpHeader.cc
  2494. * src/HttpHeader.h
  2495. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2496. Made string listeral to static const std::string.
  2497. * src/HttpConnection.cc
  2498. * src/HttpHeader.cc
  2499. * src/HttpHeader.h
  2500. * src/HttpResponse.cc
  2501. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2502. Made string listeral to static const std::string.
  2503. * src/A2STR.cc
  2504. * src/A2STR.h
  2505. * src/SimpleLogger.cc
  2506. * src/SimpleLogger.h
  2507. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2508. Made string literal to static const std::string.
  2509. Rewritten CookieParser::setField.
  2510. * src/A2STR.cc
  2511. * src/A2STR.h
  2512. * src/CookieBoxFactory.cc
  2513. * src/CookieBoxFactory.h
  2514. * src/CookieParser.cc
  2515. * src/CookieParser.h
  2516. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2517. Made string literal to static const std::string
  2518. * src/DHTAbstractMessage.cc
  2519. * src/DHTAnnouncePeerMessage.cc
  2520. * src/DHTAnnouncePeerMessage.h
  2521. * src/DHTAnnouncePeerReplyMessage.cc
  2522. * src/DHTAnnouncePeerReplyMessage.h
  2523. * src/DHTFindNodeMessage.cc
  2524. * src/DHTFindNodeMessage.h
  2525. * src/DHTFindNodeReplyMessage.cc
  2526. * src/DHTFindNodeReplyMessage.h
  2527. * src/DHTGetPeersMessage.cc
  2528. * src/DHTGetPeersMessage.h
  2529. * src/DHTGetPeersReplyMessage.cc
  2530. * src/DHTGetPeersReplyMessage.h
  2531. * src/DHTMessage.cc
  2532. * src/DHTMessage.h
  2533. * src/DHTMessageFactoryImpl.cc
  2534. * src/DHTMessageReceiver.cc
  2535. * src/DHTPingMessage.cc
  2536. * src/DHTPingMessage.h
  2537. * src/DHTPingReplyMessage.cc
  2538. * src/DHTPingReplyMessage.h
  2539. * src/DHTQueryMessage.cc
  2540. * src/DHTQueryMessage.h
  2541. * src/DHTResponseMessage.cc
  2542. * src/DHTResponseMessage.h
  2543. * src/DHTUnknownMessage.cc
  2544. * src/DHTUnknownMessage.h
  2545. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2546. Made string literal to static const std::string
  2547. * src/BtChokeMessage.cc (toString)
  2548. * src/BtHaveAllMessage.cc (toString)
  2549. * src/BtHaveNoneMessage.cc (toString)
  2550. * src/BtInterestedMessage.cc (toString)
  2551. * src/BtNotInterestedMessage.cc (toString)
  2552. * src/BtUnchokeMessage.cc (toString)
  2553. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. Replaced "" with static const variable A2STR::NIL.
  2555. Replaced string comparison against "" with std::string::empty().
  2556. Added PROTO_* to Request class and use them as a protocol string
  2557. constant.
  2558. Made "started", "stopped", "completed" static const variable in
  2559. AnnounceList class.
  2560. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2561. Updated translations. Great thanks to translators.
  2562. * po/ca.po
  2563. * po/de.po
  2564. * po/fr.po
  2565. * po/it.po
  2566. * po/ja.po
  2567. * po/ru.po
  2568. * po/zh_CN.po
  2569. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Updated man page; categorized options and fixed typo.
  2571. * doc/aria2c.1.txt
  2572. * doc/aria2c.1.html
  2573. * doc/aria2c.1
  2574. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2575. Removed const ref
  2576. * src/MetalinkEntry.cc (AddProtocolPreference)
  2577. * src/RequestGroup.cc (FindServerHostByHostname)
  2578. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2579. Rewritten Accept-Features handling.
  2580. * src/HttpRequestCommand.cc (createHttpRequest)
  2581. * src/a2functional.h
  2582. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2583. Changed method signature:
  2584. DHTAbstractNodeLookupTask::toEntries
  2585. * src/DHTAbstractNodeLookupTask.cc
  2586. * src/DHTAbstractNodeLookupTask.h
  2587. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2588. Changed method signature:
  2589. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2590. * src/BtContext.h
  2591. * src/DefaultBtContext.cc
  2592. * src/DefaultBtContext.h
  2593. * src/DefaultBtInteractive.cc
  2594. * test/DefaultBtContextTest.cc
  2595. * test/MockBtContext.h
  2596. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2597. Changed method signature:
  2598. MultiFileAllocationIterator::makeDiskWriterEntries
  2599. * src/MultiFileAllocationIterator.cc
  2600. * src/MultiFileAllocationIterator.h
  2601. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2602. Changed method sinature:
  2603. MetalinkEntry::toFileEntry,
  2604. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2605. Metalinker::queryEntry
  2606. * src/Metalink2RequestGroup.cc
  2607. * src/MetalinkEntry.cc
  2608. * src/MetalinkEntry.h
  2609. * src/MetalinkHelper.cc
  2610. * src/MetalinkHelper.h
  2611. * src/Metalinker.cc
  2612. * src/Metalinker.h
  2613. * src/main.cc
  2614. * test/MetalinkHelperTest.cc
  2615. * test/MetalinkerTest.cc
  2616. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2617. Changed method sinature:
  2618. RequestGroup::getURIs
  2619. * src/RequestGroup.cc
  2620. * src/RequestGroup.h
  2621. * test/Metalink2RequestGroupTest.cc
  2622. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2623. Changed method signature:
  2624. PeerListProcessor::extractPeer
  2625. * src/CompactPeerListProcessor.cc
  2626. * src/CompactPeerListProcessor.h
  2627. * src/DefaultBtAnnounce.cc
  2628. * src/DefaultPeerListProcessor.cc
  2629. * src/DefaultPeerListProcessor.h
  2630. * src/DelegatingPeerListProcessor.cc
  2631. * src/DelegatingPeerListProcessor.h
  2632. * src/PeerListProcessor.h
  2633. * src/UTPexExtensionMessage.cc
  2634. * test/DefaultPeerListProcessorTest.cc
  2635. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2636. Changed method signature:
  2637. BtRequestFactory::createRequestMessages,
  2638. BtRequestFactory::createRequestMessagesOnEndGame
  2639. * src/BtRequestFactory.h
  2640. * src/DefaultBtInteractive.cc
  2641. * src/DefaultBtRequestFactory.cc
  2642. * src/DefaultBtRequestFactory.h
  2643. * test/DefaultBtRequestFactoryTest.cc
  2644. * test/MockBtRequestFactory.h
  2645. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2646. Changed method signature:
  2647. PieceStorage::getInFlightPieces
  2648. * src/DefaultBtProgressInfoFile.cc
  2649. * src/DefaultPieceStorage.cc
  2650. * src/DefaultPieceStorage.h
  2651. * src/PieceStorage.h
  2652. * src/UnknownLengthPieceStorage.cc
  2653. * src/UnknownLengthPieceStorage.h
  2654. * test/DefaultBtProgressInfoFileTest.cc
  2655. * test/MockPieceStorage.h
  2656. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Changed method signature:
  2658. PostDownloadHandler::getNextRequestGroups
  2659. Metalink2RequestGroup::generate
  2660. RequestGroup::postDownloadProcessing
  2661. * src/BtPostDownloadHandler.cc
  2662. * src/BtPostDownloadHandler.h
  2663. * src/Metalink2RequestGroup.cc
  2664. * src/Metalink2RequestGroup.h
  2665. * src/MetalinkPostDownloadHandler.cc
  2666. * src/MetalinkPostDownloadHandler.h
  2667. * src/PostDownloadHandler.h
  2668. * src/RequestGroup.cc
  2669. * src/RequestGroup.h
  2670. * src/RequestGroupMan.cc
  2671. * src/main.cc
  2672. * test/BtPostDownloadHandlerTest.cc
  2673. * test/Metalink2RequestGroupTest.cc
  2674. * test/MetalinkPostDownloadHandlerTest.cc
  2675. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2676. Rewritten AccRequestGroup
  2677. * src/main.cc
  2678. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. Rewritten.
  2680. * src/TaggedItem.cc (toTagString)
  2681. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2682. Rewritten Accept-Features handling.
  2683. * src/HttpRequestCommand.cc (createHttpRequest)
  2684. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. Rewritten accept types handling.
  2686. * HttpRequest.cc (createRequest)
  2687. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Rewritten
  2689. * src/FeatureConfig.cc (featureSummary)
  2690. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2691. Changed method signature:
  2692. PeerStorage::getActivePeers
  2693. * src/DHTPeerAnnounceEntry.cc
  2694. * src/DefaultPeerStorage.cc
  2695. * src/DefaultPeerStorage.h
  2696. * src/PeerStorage.h
  2697. * test/DefaultPeerStorageTest.cc
  2698. * test/MockPeerStorage.h
  2699. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2700. Changed method signature:
  2701. DHTPeerAnnounceStorage::getPeers,
  2702. DHTPeerAnnounceEntry::getPeers
  2703. * src/DHTGetPeersMessage.cc
  2704. * src/DHTPeerAnnounceEntry.cc
  2705. * src/DHTPeerAnnounceEntry.h
  2706. * src/DHTPeerAnnounceStorage.cc
  2707. * src/DHTPeerAnnounceStorage.h
  2708. * test/DHTAnnouncePeerMessageTest.cc
  2709. * test/DHTPeerAnnounceEntryTest.cc
  2710. * test/DHTPeerAnnounceStorageTest.cc
  2711. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2712. Changed method signature:
  2713. NameResolver::resolve
  2714. * src/DHTEntryPointNameResolveCommand.cc
  2715. * src/InitiateConnectionCommand.cc
  2716. * src/NameResolver.cc
  2717. * src/NameResolver.h
  2718. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2719. Changed method signature:
  2720. PieceStorage::getAdvertisedPieceIndexes
  2721. * src/DefaultBtInteractive.cc
  2722. * src/DefaultPieceStorage.cc
  2723. * src/DefaultPieceStorage.h
  2724. * src/PieceStorage.h
  2725. * src/UnknownLengthPieceStorage.h
  2726. * test/MockPieceStorage.h
  2727. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2728. Changed method signature:
  2729. SegmentMan::getInFlightSegment
  2730. * src/AbstractCommand.cc
  2731. * src/SegmentMan.cc
  2732. * src/SegmentMan.h
  2733. * test/SegmentManTest.cc
  2734. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2735. Changed method signature:
  2736. DHTAbstractNodeLookupTask::getNodesFromMessage
  2737. * src/DHTAbstractNodeLookupTask.cc
  2738. * src/DHTAbstractNodeLookupTask.h
  2739. * src/DHTNodeLookupTask.cc
  2740. * src/DHTNodeLookupTask.h
  2741. * src/DHTPeerLookupTask.cc
  2742. * src/DHTPeerLookupTask.h
  2743. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2744. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2745. * src/AbstractCommand.cc
  2746. * src/BtCheckIntegrityEntry.cc
  2747. * src/BtCheckIntegrityEntry.h
  2748. * src/BtFileAllocationEntry.cc
  2749. * src/BtFileAllocationEntry.h
  2750. * src/BtSetup.cc
  2751. * src/BtSetup.h
  2752. * src/CheckIntegrityCommand.cc
  2753. * src/CheckIntegrityEntry.h
  2754. * src/ChecksumCheckIntegrityEntry.cc
  2755. * src/ChecksumCheckIntegrityEntry.h
  2756. * src/DHTSetup.cc
  2757. * src/DHTSetup.h
  2758. * src/DownloadEngine.cc
  2759. * src/FileAllocationCommand.cc
  2760. * src/FileAllocationEntry.h
  2761. * src/RequestGroup.cc
  2762. * src/RequestGroup.h
  2763. * src/RequestGroupMan.cc
  2764. * src/RequestGroupMan.h
  2765. * src/StreamCheckIntegrityEntry.cc
  2766. * src/StreamCheckIntegrityEntry.h
  2767. * src/StreamFileAllocationEntry.cc
  2768. * src/StreamFileAllocationEntry.h
  2769. * src/TrackerWatcherCommand.cc
  2770. * src/a2functional.h
  2771. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2772. Changed method signature:
  2773. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2774. DHTBucket::getGoodNodes,
  2775. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2776. * src/BNode.cc
  2777. * src/BNode.h
  2778. * src/DHTAbstractNodeLookupTask.cc
  2779. * src/DHTAutoSaveCommand.cc
  2780. * src/DHTBucket.cc
  2781. * src/DHTBucket.h
  2782. * src/DHTBucketRefreshTask.cc
  2783. * src/DHTFindNodeMessage.cc
  2784. * src/DHTGetPeersMessage.cc
  2785. * src/DHTRoutingTable.cc
  2786. * src/DHTRoutingTable.h
  2787. * test/BNodeTest.cc
  2788. * test/DHTBucketTest.cc
  2789. * test/DHTRoutingTableTest.cc
  2790. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2791. In piece selection functions, Pass std::deque<...> by reference rather
  2792. than returning it.
  2793. * src/BitfieldMan.cc
  2794. * src/BitfieldMan.h
  2795. * src/DefaultBtRequestFactory.cc
  2796. * src/DefaultPieceStorage.cc
  2797. * src/Piece.cc
  2798. * src/Piece.h
  2799. * test/BitfieldManTest.cc
  2800. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2801. Implemented rarest piece first piece selection strategy.
  2802. * src/AbstractBtMessage.cc
  2803. * src/AbstractBtMessage.h
  2804. * src/BitfieldMan.cc
  2805. * src/BitfieldMan.h
  2806. * src/BtBitfieldMessage.cc
  2807. * src/BtHaveAllMessage.cc
  2808. * src/BtHaveMessage.cc
  2809. * src/DefaultPieceStorage.cc
  2810. * src/DefaultPieceStorage.h
  2811. * src/PeerInteractionCommand.cc
  2812. * src/PieceStorage.h
  2813. * src/UnknownLengthPieceStorage.h
  2814. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2815. Rewritten readData and writeData.
  2816. * src/MultiDiskAdaptor.cc
  2817. * src/MultiDiskAdaptor.h
  2818. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2819. Move \n out of the message "Usage: ...".
  2820. * src/version_usage.cc
  2821. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2822. Bump up version number to 0.13.2b.
  2823. * configure.ac
  2824. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Added const qualifier to argument Exception& e.
  2826. * src/Logger.h
  2827. * src/SimpleLogger.cc
  2828. * src/SimpleLogger.h
  2829. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2830. Pool connection when CWD, SIZE command fails.
  2831. * src/FtpNegotiationCommand.cc
  2832. * src/FtpNegotiationCommand.h
  2833. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2834. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2835. * src/HttpResponseCommand.cc
  2836. * src/HttpSkipResponseCommand.cc
  2837. * src/HttpSkipResponseCommand.h
  2838. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2839. Pool connection when a server returns 4xx, 5xx responses.
  2840. * src/HttpNullDownloadCommand.cc
  2841. * src/HttpNullDownloadCommand.h
  2842. * src/HttpResponse.cc
  2843. * src/HttpResponse.h
  2844. * src/HttpResponseCommand.cc
  2845. * src/HttpResponseCommand.h
  2846. * test/HttpResponseTest.cc
  2847. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2848. Print usage when no URL is specifed or bad command-line option is
  2849. specified.
  2850. * src/HelpItemFactory.cc
  2851. * src/help_tags.h
  2852. * src/option_processing.cc
  2853. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2854. Removed duplicate log message.
  2855. * src/AbstractCommand.cc (asyncResolveHostname)
  2856. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2857. Updated man page: --async-dns and --ftp-reuse-connection were added.
  2858. Changed -j option's default value from 5 to 1.
  2859. Added new examples using protocol auto detection feature.
  2860. Removed -T, -M usage where it can be omitted.
  2861. * doc/aria2c.1.txt
  2862. * doc/aria2c.1.html
  2863. * doc/aria2c.1.txt
  2864. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2865. Updated command-line usage text, so that it tells users that they
  2866. can specify any number of torrent files and metalink files in
  2867. command-line.
  2868. * src/version_usage.cc
  2869. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2870. Changed the default value of -j option to 1.
  2871. * src/HelpItemFactory.cc
  2872. * src/option_processing.cc
  2873. * src/usage_text.h
  2874. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2875. Added the ability to reuse connection in FTP and it is enabled by
  2876. default. It can be disabled by --ftp-reuse-connection=false option.
  2877. * src/Command.cc
  2878. * src/DownloadCommand.cc
  2879. * src/FtpDownloadCommand.cc
  2880. * src/FtpDownloadCommand.h
  2881. * src/FtpFinishDownloadCommand.cc
  2882. * src/FtpFinishDownloadCommand.h
  2883. * src/FtpInitiateConnectionCommand.cc
  2884. * src/FtpNegotiationCommand.cc
  2885. * src/FtpNegotiationCommand.h
  2886. * src/HelpItemFactory.cc
  2887. * src/Makefile.am
  2888. * src/Makefile.in
  2889. * src/OptionHandlerFactory.cc
  2890. * src/option_processing.cc
  2891. * src/prefs.h
  2892. * src/usage_text.h
  2893. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Call Command::transitStatus() before calling Command::execute(),
  2895. so that the status change made in execute() is not cleared.
  2896. * src/DownloadEngine.cc
  2897. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2898. Removed forward declaration of SocketCore class.
  2899. * src/HttpDownloadCommand.h
  2900. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2901. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  2902. in InitiateConnectionCommandFactory. They should be set only when
  2903. the protocol is HTTP or HTTPS.
  2904. * src/InitiateConnectionCommandFactory.cc
  2905. * src/RequestGroup.cc
  2906. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2907. Fixed infinite loop in checksum checking.
  2908. * src/IteratableChecksumValidator.cc
  2909. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2910. Set _supportsPersistentConnection to true by default.
  2911. * src/Request.cc
  2912. * src/RequestGroup.cc
  2913. * test/HttpRequestTest.cc
  2914. * test/RequestTest.cc
  2915. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2916. Added timeout to socket pool. The default timeout is 15 seconds,
  2917. which is the same value Apache uses.
  2918. * src/DownloadEngine.cc
  2919. * src/DownloadEngine.h
  2920. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2921. Fixed misuse of multimap::find()
  2922. * src/HttpHeader.cc
  2923. * test/HttpHeaderTest.cc
  2924. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2925. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  2926. option.
  2927. The asynchronous DNS is not capable of IPv6 yet.
  2928. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  2929. least for HTTP download.
  2930. * src/AbstractCommand.cc
  2931. * src/AbstractCommand.h
  2932. * src/AsyncNameResolver.cc
  2933. * src/AsyncNameResolver.h
  2934. * src/DHTEntryPointNameResolveCommand.cc
  2935. * src/DHTEntryPointNameResolveCommand.h
  2936. * src/DownloadEngine.cc
  2937. * src/DownloadEngine.h
  2938. * src/FtpInitiateConnectionCommand.cc
  2939. * src/FtpInitiateConnectionCommand.h
  2940. * src/HelpItemFactory.cc
  2941. * src/HttpInitiateConnectionCommand.cc
  2942. * src/HttpInitiateConnectionCommand.h
  2943. * src/InitiateConnectionCommand.cc
  2944. * src/InitiateConnectionCommand.h
  2945. * src/Makefile.am
  2946. * src/Makefile.in
  2947. * src/NameResolver.cc
  2948. * src/NameResolver.h
  2949. * src/OptionHandlerFactory.cc
  2950. * src/SocketCore.cc
  2951. * src/SocketCore.h
  2952. * src/Util.cc
  2953. * src/Util.h
  2954. * src/option_processing.cc
  2955. * src/prefs.h
  2956. * src/usage_text.h
  2957. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Updated man page: --quiet, --header were added.
  2959. --metalink-servers and --enable-http-keep-alive option were updated.
  2960. * doc/aria2c.1
  2961. * doc/aria2c.1.html
  2962. * doc/aria2c.1.txt
  2963. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2964. Enable HTTP keep-alive by default.
  2965. * src/HelpItemFactory.cc
  2966. * src/option_processing.cc
  2967. * src/usage_text.h
  2968. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2969. Disable http keep-alive if the remote server is not HTTP/1.1.
  2970. * src/HttpConnection.cc
  2971. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2972. Receive content body of 302 response so that the connection can be
  2973. reused later when http keep-alive is enabled.
  2974. * src/HttpNullDownloadCommand.cc
  2975. * src/HttpNullDownloadCommand.h
  2976. * src/HttpResponseCommand.cc
  2977. * src/HttpResponseCommand.h
  2978. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. const SharedHandle<Request> -> const SharedHandle<Request>&
  2980. * src/FtpDowndloadCommand.cc
  2981. * src/FtpDowndloadCommand.h
  2982. * src/HttpDownloadCommand.cc
  2983. * src/HttpDownloadCommand.h
  2984. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2985. Fixed the bug that the control file(.aria2 file) is not renamed
  2986. according to tryAutoFileRenaming().
  2987. tryAutoFileRenaming() was rewritten so that if both renamed file and
  2988. its control file exist, use them and continue download.
  2989. The old implementation didn't take into account of control file's
  2990. existence, so basically you couldn't continue download of renamed file.
  2991. * src/BtProgressInfoFile.h
  2992. * src/DefaultBtProgressInfoFile.cc
  2993. * src/DefaultBtProgressInfoFile.h
  2994. * src/NullProgressInfoFile.h
  2995. * src/RequestGroup.cc
  2996. * test/DefaultBtProgressInfoFileTest.cc
  2997. * test/MockBtProgressInfoFile.h
  2998. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Change the default value of --metalink-servers option from `5' to `1'.
  3000. * src/HelpItemFactory.cc
  3001. * src/option_processing.cc
  3002. * src/usage_text.h
  3003. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Reimplemented transparent metalink using Accept request header.
  3005. * src/HttpRequest.cc
  3006. * src/HttpRequest.h
  3007. * src/HttpRequestCommand.cc
  3008. * src/Metalink2RequestGroup.cc
  3009. * src/RequestGroup.cc
  3010. * src/RequestGroup.h
  3011. * test/HttpRequestTest.cc
  3012. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. Bump up version number to 0.13.2a
  3014. * configure.ac
  3015. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3016. Updated configure.ac using the result of autoscan.
  3017. * configure.ac
  3018. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Fixed compilation error without gcrypt/openssl.
  3020. * src/DownloadCommand.cc
  3021. * src/DownloadCommand.h
  3022. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3023. Reorganized version information so that it can be displayed in a
  3024. standard terminal screen without scrolling.
  3025. Removed http, ftp from Configuration section, because they are always
  3026. enabled.
  3027. * src/FeatureConfig.cc
  3028. * src/FeatureConfig.h
  3029. * src/main.cc
  3030. * src/messageDigest.cc
  3031. * src/messageDigest.h
  3032. * src/version_usage.cc
  3033. * test/FeatureConfigTest.cc
  3034. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3035. Masked user ID in log.
  3036. * src/FtpConnection.cc (sendUser)
  3037. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3038. Removed query part from filename in HTTP download. The query part means
  3039. the substring after "?" in URL. Firefox seems do the same thing.
  3040. A query part is sometimes very long and not suitable to filename,
  3041. so I think it is better to remove it from filename.
  3042. * src/HttpRequest.cc
  3043. * src/HttpRequest.h
  3044. * src/Request.cc
  3045. * src/Request.h
  3046. * test/HttpRequestTest.cc
  3047. * test/RequestTest.cc
  3048. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Rewritten Exception class. Throw exception object, not its pointer and
  3050. catch by reference, so that remove problematic delete operator for
  3051. catched exception.
  3052. * src/Exception.cc
  3053. * src/Exception.h
  3054. * test/ExceptionTest.cc
  3055. * src/*: All files throwing/catching exception.
  3056. * test/*: All files throwing/catching exception.
  3057. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3058. Now auto protocol detection is enabled without -Z option.
  3059. But there is a important difference between with/without -Z optoin.
  3060. For example, if you type:
  3061. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3062. then, aria2 interprets there are 3 request groups:
  3063. (1) http://host/file, http://mirror/file <-- multi-source download
  3064. (2) file1.torrent
  3065. (3) file2.metalink
  3066. On the other hand, if you invoke above command with -Z option, it is
  3067. interpreted as 4 request groups:
  3068. (1) http://host/file
  3069. (2) file1.torrent
  3070. (3) file2.metalink
  3071. (4) http://mirror/file
  3072. I think usually user don't mix multi-source URLs and torrent files, so
  3073. there is no big problem here.
  3074. * src/main.cc
  3075. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3076. Fixed the bug that causes segmentaion fault when reading XML containing
  3077. unescapsed character like '&'.
  3078. Also a modification was made which avoids adding unnecessary
  3079. characters stack and appending unused string.
  3080. * src/ExpatMetalinkProcessor.cc
  3081. * src/FileMetalinkParserState.h
  3082. * src/FilesMetalinkParserState.h
  3083. * src/FinMetalinkParserState.h
  3084. * src/HashMetalinkParserState.h
  3085. * src/InitialMetalinkParserState.h
  3086. * src/LanguageMetalinkParserState.h
  3087. * src/MetalinkMetalinkParserState.h
  3088. * src/MetalinkParserState.h
  3089. * src/MetalinkParserStateMachine.cc
  3090. * src/MetalinkParserStateMachine.h
  3091. * src/OSMetalinkParserState.h
  3092. * src/PieceHashMetalinkParserState.h
  3093. * src/PiecesMetalinkParserState.h
  3094. * src/ResourcesMetalinkParserState.h
  3095. * src/SizeMetalinkParserState.h
  3096. * src/SkipTagMetalinkParserState.h
  3097. * src/URLMetalinkParserState.h
  3098. * src/VerificationMetalinkParserState.h
  3099. * src/VersionMetalinkParserState.h
  3100. * src/XML2SAXMetalinkProcessor.cc
  3101. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3102. Added StringFormat class, which internally calls vasprintf.
  3103. operator<< is defined for this class, so it can be used with iostream
  3104. classes nicely. SimpleLogger and following functions are rewritten
  3105. using StringFormat class.
  3106. Besides, now Logger class's methods are non-const, many classes
  3107. that has a const Logger* as a member variable are modified to remove
  3108. const qualifier from the variable declaration.
  3109. * src/HelpItemFactory.cc
  3110. * src/Request.cc
  3111. * src/SimpleLogger.cc
  3112. * src/StringFormat.cc
  3113. * src/StringFormat.h
  3114. * src/Util.cc
  3115. * src/option_processing.cc
  3116. * src/version_usage.cc
  3117. * test/StringFormatTest.cc
  3118. * src/*.h: The classes that has const Logger* as a member variable.
  3119. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3120. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  3121. failed. Also fixed memory link when exception is thrown there.
  3122. * src/main.cc (AccRequestGroup)
  3123. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3124. Added build-in "Accept-Features" support. For now only "metalink" is
  3125. used in this header field.
  3126. This "metalink" value is removed from the list when connecting URLs
  3127. fed by metalink file to avoid loop in "transparent" metlaink.
  3128. * src/HttpRequest.cc
  3129. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  3130. header is also held in this variable. Also renamed setUserHeaders as
  3131. addHeader and it was rewritten to add header not just to clear the old
  3132. value.
  3133. * src/HttpRequestCommand.cc
  3134. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  3135. from "Accept-Features" list.
  3136. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  3137. default.
  3138. * src/RequestGroup.h
  3139. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  3140. * src/a2functional.h: Included <string> because Concat class depends on
  3141. it.
  3142. * test/HttpRequestTest.cc
  3143. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3144. Added comment
  3145. * src/RequestGroup.cc (createNextCommand)
  3146. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3147. Capitalized METHOD_GET and METHOD_HEAD
  3148. * src/Request.cc
  3149. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3150. Added getDownloadResults() method
  3151. * src/RequestGroupMan.cc
  3152. * src/RequestGroupMan.h
  3153. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3154. Fixed the bug that aria2 exits when commands is empty() but
  3155. _routineCommands are not.
  3156. * src/DownloadEngine.cc
  3157. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3158. Use the default value pulled from Option object in HelpItemFactory.
  3159. except options whose defualt value is embedded in a usage text.
  3160. * src/HelpItemFactory.cc
  3161. * src/HelpItemFactory.h
  3162. * src/option_processing.cc
  3163. * src/version_usage.cc
  3164. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Added --quiet option to make aria2 quiet (no console output).
  3166. --quiet option is tagged with ADVANCED.
  3167. * src/HelpItemFactory.cc
  3168. * src/LogFactory.cc
  3169. * src/LogFactory.h
  3170. * src/MultiUrlRequestInfo.cc
  3171. * src/MultiUrlRequestInfo.h
  3172. * src/NullStatCalc.h: New class. This class prints nothing.
  3173. * src/OptionHandlerFactory.cc
  3174. * src/main.cc
  3175. * src/option_processing.cc
  3176. * src/prefs.h
  3177. * src/usage_text.h
  3178. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  3180. * src/HelpItemFactory.cc (createHelpItems):
  3181. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3182. Fixed compilation error in ExpatMetalinkProcessor.cc
  3183. * src/ExpatMetalinkProcessor.cc
  3184. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. Reuse socket if the origin server supports HTTP keep-alive and
  3186. --enable-http-keep-alive or --enable-http-pipelining is given.
  3187. The current implementation doesn't reuse the connections established
  3188. against proxy server.
  3189. * src/AbstractCommand.cc
  3190. * src/DownloadEngine.cc
  3191. * src/DownloadEngine.h
  3192. * src/HttpDownloadCommand.cc
  3193. * src/HttpInitiateConnectionCommand.cc
  3194. * src/HttpResponseCommand.cc
  3195. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3196. Rewritten HTTP keep-alive and pipelining routine.
  3197. * src/AbstractCommand.cc
  3198. * src/HttpConnection.cc
  3199. * src/HttpDownloadCommand.cc
  3200. * src/HttpRequest.cc
  3201. * src/HttpRequestCommand.cc
  3202. * src/HttpResponseCommand.cc
  3203. * src/Request.cc
  3204. * src/Request.h
  3205. * src/RequestGroup.cc
  3206. * test/HttpRequestTest.cc
  3207. * test/HttpResponseTest.cc
  3208. * test/RequestTest.cc
  3209. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Added missing setUserHeaders call
  3211. * src/HttpRequestCommand.cc
  3212. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3213. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  3214. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  3215. waste of time because it is more likey false.
  3216. * src/FileAllocationDispatcherCommand.cc (execute)
  3217. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Now HTTP status and version are a member variable of HttpHeader.
  3219. HTTP status is processed as a string, not integer.
  3220. * src/AbstractProxyResponseCommand.cc
  3221. * src/HttpConnection.cc
  3222. * src/HttpHeader.cc
  3223. * src/HttpHeader.h
  3224. * src/HttpHeaderProcessor.cc
  3225. * src/HttpHeaderProcessor.h
  3226. * src/HttpResponse.cc
  3227. * src/HttpResponse.h
  3228. * test/HttpHeaderProcessorTest.cc
  3229. * test/HttpResponseTest.cc
  3230. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3231. Added --header option. You can specify any number of additional HTTP headers
  3232. like:
  3233. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  3234. Unlike other commad-line option, you can use --header option multiple times.
  3235. * src/HelpItemFactory.cc
  3236. * src/HttpRequest.{cc, h}
  3237. * src/HttpRequestCommand.cc
  3238. * src/OptionHandlerFactory.cc
  3239. * src/OptionHandlerImpl.h
  3240. * src/option_processing.cc
  3241. * src/prefs.h
  3242. * src/usage_text.h
  3243. * test/HttpRequestTest.cc (testUserHeaders)
  3244. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3245. Eliminates the time lag between sequential downloads and commands in
  3246. the same RequestGroup.
  3247. In old implementation, aria2 occasionally waits 1 seconds before
  3248. executing next command or RequestGroup.
  3249. This is really a waste of time, and new implementation eliminates
  3250. this unnecessary time lag.
  3251. * src/AbstractCommand.cc
  3252. * src/AutoSaveCommand.cc
  3253. * src/CheckIntegrityCommand.cc
  3254. * src/Command.{cc, h}
  3255. * src/DownloadEngine.{cc, h}
  3256. * src/DownloadEngineFactory.cc
  3257. * src/FileAllocationCommand.cc
  3258. * src/FileAllocationDispatcherCommand.cc
  3259. * src/FillRequestGroupCommand.cc
  3260. * src/FtpInitiateConnectionCommand.cc
  3261. * src/HaveEraseCommand.cc
  3262. * src/HttpInitiateConnectionCommand.cc
  3263. * src/HttpResponseCommand.cc
  3264. * src/RealtimeCommand.cc
  3265. * src/RequestGroup.cc
  3266. * src/RequestGroupMan.cc
  3267. * src/StreamFileAllocationEntry.cc
  3268. * src/TimeBasedCommand.{cc, h}
  3269. * src/TimedHaltCommand.cc
  3270. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  3272. keyword explicit and SharedHandle's default constructor initializes
  3273. its internal obj to null, old implementation initializes it using
  3274. obj's default constructor.
  3275. To assign null, write SharedHandle<T> x(...); x.reset();
  3276. TODO: test/SharedHandleTest.cc needs more tests.
  3277. * src/SharedHandle.h
  3278. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Fixed type in man page.
  3280. * doc/aria2c.1.txt
  3281. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3283. * src/SimpleLogger.{cc, h}
  3284. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3285. Implemented auto protocol detection.
  3286. Now you can do:
  3287. aria2c -Z http://host/file file1.torrent file2.metalink
  3288. (Note: -Z option is required for auto protcol detection.)
  3289. Then aria2c downloads 3 files simultaneously:
  3290. 1. http://host/file
  3291. 2. file1.torrent <-- read local torrent file
  3292. 3. file2.metalink <-- read local Metalink file.
  3293. Same thing goes with -i option. Assume your uris.txt contans:
  3294. http://host/file
  3295. file1.torrent
  3296. file2.metalink
  3297. Then you can do: aria2c -i uris.txt
  3298. (Note: -Z option is not needed if -i option is given.)
  3299. * src/main.cc
  3300. * src/ProtocolDetector.{cc, h}
  3301. * test/ProtocolDetectorTest.cc
  3302. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3303. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3304. installed
  3305. * src/ARC4Encryptor.h
  3306. * src/ARC4Decryptor.h
  3307. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3308. Renamed argument from 'errno' to 'err', since errno is confused with
  3309. errno defined in errno.h.
  3310. * src/LibgcryptARC4Decryptor.h
  3311. * src/LibgcryptARC4Context.h
  3312. * src/LibgcryptDHKeyExchange.h
  3313. * src/LibgcryptARC4Encryptor.h
  3314. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3315. Rewritten choking algorithm.
  3316. * src/PeerChokeCommand.{cc, h}
  3317. * src/BtInterestedMessage.cc
  3318. * src/PeerSessionResource.{cc, h}
  3319. * src/DefaultPeerStorage.{cc, h}
  3320. * src/BtNotInterestedMessage.cc
  3321. * src/DefaultBtMessageDispatcher.{cc, h}
  3322. * src/BtMessageDispatcher.h
  3323. * src/Peer.{cc, h}
  3324. * src/BtLeecherStateChoke.{cc, h}
  3325. * src/BtSetup.cc
  3326. * src/BtSeederStateChoke.{cc, h}
  3327. * src/PeerStorage.h
  3328. * test/MockPeerStorage.h
  3329. * test/MockBtMessageDispatcher.h
  3330. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3331. Fixed compilation error on x84-64 platform.
  3332. * src/AuthConfig.cc: Included ostream.
  3333. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. Rewritten getBasename() and getDirname(), without standard library
  3335. basename(), dirname().
  3336. * src/File.cc
  3337. * test/FileTest.cc
  3338. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3339. Added Simplified Chinese translation. Also updated the following
  3340. translations: Polish, Dutch, German. Great thanks to all translators.
  3341. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3342. Suppress content-range error when 'Content-Range' response header
  3343. doesn't contains bytes-unit specifier 'bytes'
  3344. * src/HttpHeader.cc (getRange)
  3345. * test/HttpHeaderTest.cc
  3346. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3347. Fixed compilation error with g++-4.3
  3348. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3349. Added missing include files for MinGW
  3350. * test/HttpHeaderProcessorTest.cc
  3351. * test/DHTRoutingTableSerializerTest.cc
  3352. * test/DHTRoutingTableDeserializerTest.cc
  3353. * test/UriListParserTest.cc
  3354. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Now download line is printed nicely with no garbage at the end of
  3356. line. I use ioctl to get the columns of terminal.
  3357. If stdout is redirected to another device, instead of carriage return,
  3358. end of line '\n' character is used. This is feature request#1909659
  3359. * src/ConsoleStatCalc.cc (calculateStat)
  3360. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3361. Included a2time.h
  3362. * src/DHTMessageDispatcher.h
  3363. * src/DHTMessageEntry.h
  3364. * src/DHTReplaceNodeTask.h
  3365. * src/DHTMessageTracker.h
  3366. * src/Util.h
  3367. * src/CookieBox.h
  3368. * src/SocketCore.h
  3369. * src/DefaultBtMessageDispatcher.h
  3370. * src/SocketCore.cc
  3371. * src/Util.cc
  3372. * src/DHTPingTask.h
  3373. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3374. Fixed high memory footprint when DHT is enabled.
  3375. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3376. queued than it is processed and the queue is getting longer. As a
  3377. consequence, momory usage is increased.
  3378. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3379. replacement cache in DHTBucket which is described in Kademlia paper.
  3380. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3381. DHTReplaceNodeTask.
  3382. * src/DHTBucket.{h, cc}
  3383. (cacheNode): New function.
  3384. (getCachedNodes): New function.
  3385. (dropNode): Push back cached node to _nodes.
  3386. * test/DHTBucketTest.cc
  3387. (testCacheNode): New test
  3388. (testDropNode): New test
  3389. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3391. the unused 4KB memory when ssl is not used.
  3392. * src/SocketCore.cc
  3393. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3394. Added summary log for peer announce storage.
  3395. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3396. Removed cast
  3397. * src/DefaultPeerStorage.cc (addPeer)
  3398. Log exception message
  3399. * src/DHTMessageTracker.cc (handleTimeout)
  3400. Fixed casting
  3401. * test/HttpRequestTest.cc
  3402. * test/MetalinkProcessorTest.cc
  3403. * test/PieceTest.cc
  3404. * test/MetalinkEntryTest.cc
  3405. * test/SequenceTest.cc
  3406. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3407. * src/ParameterizedStringParser.cc (createLoop):
  3408. Removed unused variable sstep.
  3409. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3410. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3411. * src/Util.{h, cc}
  3412. (parseUInt): New function.
  3413. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3414. The actual range is uint32_t.
  3415. * test/UtilTest.cc
  3416. * src/ParameterizedStringParser.cc:
  3417. Use Util::parseUInt() for loop variables.
  3418. * test/ParameterizedStringParserTest.cc
  3419. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3420. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3421. Rewritten the functions for binding port.
  3422. * src/DHTConnectionImpl.{h, cc}
  3423. * src/PeerListenCommand.{h, cc}
  3424. * src/DHTSetup.cc
  3425. * src/BtSetup.cc
  3426. * test/DHTConnectionImplTest.cc
  3427. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. type cleanup for allmost all remaining files.
  3429. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3430. Type clarification
  3431. * src/PeerSessionResource.{h, cc}
  3432. * src/DefaultPieceStorage.{h, cc}
  3433. * src/Peer.{h, cc}
  3434. * test/PeerSessionResourceTest.cc
  3435. Use div function
  3436. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3437. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3438. Type clarification
  3439. * src/DefaultPeerStorage.{h, cc}
  3440. * test/DefaultPeerStorageTest.cc
  3441. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3442. Type clarification: size_t for length or size, uint64_t for file
  3443. length, off_t for file offset.
  3444. * src/DefaultBtProgressInfoFile.cc
  3445. * src/DefaultBtContext.{h, cc}
  3446. * src/DefaultBtInteractive.cc
  3447. * src/DownloadCommand.{h, cc}
  3448. * src/IteratableChunkChecksumValidator.{h, cc}
  3449. * src/SegmentMan.{h, cc}
  3450. * src/SingleFileDownloadContext.{h, cc}
  3451. * src/IteratableChecksumValidator.{h, cc}
  3452. * src/BtContext.h
  3453. * src/IteratableValidator.h
  3454. * src/DownloadContext.h
  3455. * test/SingleFileDownloadContextTest.cc
  3456. * test/DefaultBtContextTest.cc
  3457. * test/MockBtContext.h
  3458. * test/Metalink2RequestGroupTest.cc
  3459. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3460. Type clarification: size_t for length or size, uint64_t for file
  3461. length, off_t for file offset.
  3462. * src/PiecedSegment.cc
  3463. * src/GrowSegment.h
  3464. * src/DefaultBtRequestFactory.h
  3465. * src/DefaultBtProgressInfoFile.cc
  3466. * src/UnknownLengthPieceStorage.h
  3467. * src/DefaultPieceStorage.cc
  3468. * src/UnknownLengthPieceStorage.cc
  3469. * src/DefaultBtInteractive.cc
  3470. * src/GrowSegment.cc
  3471. * src/BitfieldMan.h
  3472. * src/DownloadCommand.cc
  3473. * src/BtRequestFactory.h
  3474. * src/PiecedSegment.h
  3475. * src/DefaultPieceStorage.h
  3476. * src/Piece.cc
  3477. * src/DefaultBtRequestFactory.cc
  3478. * src/PieceStorage.h
  3479. * src/Segment.h
  3480. * src/Piece.h
  3481. * src/BitfieldMan.cc
  3482. * src/Util.cc
  3483. * test/DefaultBtProgressInfoFileTest.cc
  3484. * test/DefaultPieceStorageTest.cc
  3485. * test/MockPieceStorage.h
  3486. * test/BtRequestMessageTest.cc
  3487. * test/DefaultBtMessageDispatcherTest.cc
  3488. * test/BitfieldManTest.cc
  3489. * test/GrowSegmentTest.cc
  3490. * test/PieceTest.cc
  3491. * test/SegmentTest.cc
  3492. * test/SegmentManTest.cc
  3493. * test/DefaultBtRequestFactoryTest.cc
  3494. * test/MockBtRequestFactory.h
  3495. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Fixed compilation error with --disable-nls
  3497. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3498. in gettext.h causes the problem.
  3499. * src/common.h
  3500. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3501. Removed subPiece related functions.
  3502. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3503. * src/DefaultPieceStorage.{h, cc}
  3504. * test/PieceTest.cc
  3505. * test/DefaultPieceStorageTest.cc
  3506. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3507. Use unsigned char for data store.
  3508. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3509. Bump up version number to 0.13.0+1
  3510. * configure.ac
  3511. * Release 0.13.0+1
  3512. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3513. Changed inactive connection timeout to 120.
  3514. To accept more mulually interested peers, disconnect peer when there
  3515. is no interest between us after certain time passed.
  3516. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3517. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3519. when compiled with async DNS support.
  3520. * src/DownloadEngine.cc
  3521. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3522. value '10' will be a little bit short when some DNS servers are
  3523. offline and several DNS servers are tried. It should be configured
  3524. by command-line option.
  3525. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Merged Ross's mingw patch.
  3527. * src/DHTRoutingTableDeserializer.cc
  3528. * src/DHTRoutingTableSerializer.cc
  3529. * src/Platform.{h, cc}
  3530. * src/timegm.h
  3531. * src/gettimeofday.h
  3532. * src/getaddrinfo.h
  3533. * src/SocketCore.h
  3534. * src/common.h
  3535. * src/inet_aton.h
  3536. * src/DownloadEngine.h
  3537. * src/gai_strerror.h
  3538. * src/a2netcompat.h
  3539. * configure.ac
  3540. * configure
  3541. * aclocal.m4
  3542. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Included missing iostream.
  3544. * test/AllTest.cc
  3545. * test/BtDependencyTest.cc
  3546. * test/BtExtendedMessageTest.cc
  3547. * test/DHTConnectionImplTest.cc
  3548. * test/DHTMessageFactoryImplTest.cc
  3549. * test/DHTMessageTrackerEntryTest.cc
  3550. * test/DHTNodeTest.cc
  3551. * test/DHTRoutingTableSerializerTest.cc
  3552. * test/DefaultBtAnnounceTest.cc
  3553. * test/DefaultBtContextTest.cc
  3554. * test/DefaultBtMessageFactoryTest.cc
  3555. * test/DefaultExtensionMessageFactoryTest.cc
  3556. * test/HandshakeExtensionMessageTest.cc
  3557. * test/HttpResponseTest.cc
  3558. * test/MetalinkProcessorTest.cc
  3559. * test/MultiFileAllocationIteratorTest.cc
  3560. * test/SocketCoreTest.cc
  3561. * test/UTPexExtensionMessageTest.cc
  3562. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3563. Reorganized includes.
  3564. * src/NameResolver.cc
  3565. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3566. Fixed compilation error without ares/c-ares
  3567. * src/NameResolver.h:
  3568. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3569. Added a test for large file.
  3570. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3571. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3572. Fixed the bug that file size is ignored if size > INT32_MAX
  3573. * src/SizeMetalinkParserState.cc (endElement):
  3574. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Bump up version number to 0.13.0
  3576. * configure.ac
  3577. * Release 0.13.0
  3578. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Updated Makfefile.am to make 'make dist' work.
  3580. Now packaged filename is aria2c-VERSION.tar.bz2.
  3581. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3582. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3583. Large file support is now configured by configure script.
  3584. * configure.ac
  3585. Removed unsused source files
  3586. * src/
  3587. * test/
  3588. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3589. Peer.h and BtContext.h respectively.
  3590. * src/Peer.h
  3591. * src/BtContext.h
  3592. Updated translations.
  3593. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3594. translations. Great thanks to all translators!;)
  3595. * po/*.{po, gmo}
  3596. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3597. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3598. statically declared sha1 MessageDigestContext.
  3599. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3600. initialization of short-lived MessageDigestContext.
  3601. * src/MessageDigestHelper.{h, cc}
  3602. * src/main.cc
  3603. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3604. the initialization of MessageDigestContext every time in validating
  3605. chunk checksum.
  3606. * src/DownloadCommand.{h, cc}
  3607. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Add a file descriptor which connected to fast peer(latency<1500) to
  3609. select(). This change reduced CPU load.
  3610. * src/PeerInteractionCommand.cc
  3611. * src/DefaultBtInteractive.{h, cc}
  3612. * src/BtInteractive.h
  3613. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3614. Fixed the previous insufficient fix for possible busy loop.
  3615. * src/MSEHandshake.cc (identifyHandshakeType)
  3616. Removed unused functions.
  3617. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  3618. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Fixed possible busy loop if first 20 bytes are not received for a few
  3620. minutes.
  3621. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  3622. * src/ReceiverMSEHandshakeCommand.cc
  3623. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3624. Fixed compilation error
  3625. * src/ExpatMetalinkProcessor.cc
  3626. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3627. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3628. * src/DHTBucket.cc
  3629. Removed unnecessary cast.
  3630. * src/HandshakeExtensionMessage.cc
  3631. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3633. is missing.
  3634. * src/OptionHandlerFactory.cc
  3635. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. Fixed the bug that HAVE message is not sent for a piece they are
  3637. downloaded fom http/ftp server before any BitTorrent handshake is done
  3638. with peers.
  3639. * src/DefaultBtInteractive.cc
  3640. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3641. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3642. * src/Makefile.am
  3643. * src/Makefile.in
  3644. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3645. Updated README. Added html version of README and man page.
  3646. * README
  3647. * README.html
  3648. * readme2html: Shell script to generate README.html from README using
  3649. asciidoc.
  3650. * doc/aria2c.1.html
  3651. * doc/makeman: Added the line to generate aria2c.1.html
  3652. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3653. Fixed offset calculation.
  3654. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3655. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3656. Rewritten itos and uitos using template. llitos and ullitos are
  3657. replaced with itos and uitos respectively.
  3658. * src/Util.{h, cc}
  3659. * test/UtilTest.cc
  3660. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3661. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3662. of the number of bytes required for storing public key and shared
  3663. secret.
  3664. * src/LibgcryptDHKeyExchange.h
  3665. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3666. * src/MSEHandshake.cc
  3667. * test/DHKeyExchangeTest.cc
  3668. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Removed since they are not used.
  3670. * src/Xml2MetalinkProcessor.{h, cc}
  3671. * src/Socket.cc
  3672. * src/SegmentSplitter.{h, cc}
  3673. * test/Xml2MetalinkProcessorTest.cc
  3674. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3675. Fixed the bug that prevents aria2 from stopping other than by pressing
  3676. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3677. option. aria2 doesn't stop even after --seed-time is satisfied and
  3678. continues to output blank lines in the console.
  3679. * src/ReceiverMSEHandshakeCommand.cc
  3680. * src/PeerReceiveHandshakeCommand.cc
  3681. * src/PeerListenCommand.cc
  3682. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3683. Bump up version number to 0.13.0rc
  3684. * configure.ac
  3685. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3686. Updated man page and some usage text.
  3687. * doc/aria2c.1.txt
  3688. * src/usage_text.h
  3689. * po/*.{po, gmo}
  3690. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3691. Updated translations. Added Finnish and Hebrew translations.
  3692. Great thanks to all translators!
  3693. * po/*.{po, gmo}
  3694. * po/LINGUAS
  3695. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3696. Log more detailed information about each message.
  3697. * src/DHTQueryMessage.{h, cc}
  3698. * src/DHTGetPeersMessage.{h, cc}
  3699. * src/DHTFindNodeReplyMessage.{h, cc}
  3700. * src/DHTGetPeersReplyMessage.{h, cc}
  3701. * src/DHTAnnouncePeerMessage.{h, cc}
  3702. * src/DHTResponseMessage.{h, cc}
  3703. * src/DHTFindNodeMessage.{h, cc}
  3704. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3705. Use constants defined in prefs.h
  3706. * src/option_processing.cc
  3707. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3708. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3709. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Make room for future enchancements for IPv6 addresses.
  3711. Bump up version number of dht.dat file format to 2.
  3712. Not compatible with previous version.
  3713. * src/DHTRoutingTableSerializer.cc
  3714. * src/DHTRoutingTableDeserializer.cc
  3715. * test/DHTRoutingTableSerializerTest.cc
  3716. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3717. Added handling for the return values from
  3718. PeerMessageUtil::createcompact().
  3719. * src/DefaultBtContext.cc (computeFastSet):
  3720. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. Fixed abort when peer's ip address is IPv4-mapped address.
  3722. * src/DefaultBtContext.cc (computeFastSet)
  3723. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3724. cannot handle IPv4-mapped addresses.
  3725. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3726. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3727. Proper return value handling for OpenSSL functions.
  3728. * src/LibsslDHKeyExchange.h
  3729. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3730. Random bytes generation using libgcrypt and OpenSSL.
  3731. * src/DHTUtil.{h, cc}
  3732. * test/DHTUtilTest.cc
  3733. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3734. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3735. received.
  3736. * src/DHTMessageReceiver.cc (receiveMessage)
  3737. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Fixed the bug that a return code is always 0. BUG#1897704
  3739. If error occurred during the download or there exist unfinished
  3740. downloads, aria2 returns with code 1.
  3741. * src/RequestGroupMan.{h, cc}
  3742. * src/MultiUrlRequestInfo.{h, cc}
  3743. * src/main.cc
  3744. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. IPv6 support for SocketCore class.
  3746. TODO: In SocketCore::establishConnection(), this is insufficient to
  3747. determin the failure of connect() here because the socket is
  3748. non-blocking state. The next addresses should be tried after select().
  3749. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3750. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3751. instead which address family independent.
  3752. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3753. information in a compact peer format which is for IPv4 only.
  3754. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3755. this is a spec of BitTorrent protocol.
  3756. * src/SocketCore.{h, cc}
  3757. * src/PeerMessageUtil.cc
  3758. * test/SocketCoreTest.cc
  3759. * test/PeerMessageUtilTest.cc
  3760. * test/DHTConnectionImplTest.cc
  3761. Handle IPv4-mapped addresses.
  3762. * src/DHTNode.cc: Now identity is determined by node id.
  3763. * src/DHTMessageTrackerEntry.cc
  3764. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3765. should handle it.
  3766. * src/DHTRoutingTableDeserializer.cc
  3767. * src/DHTMessageFactoryImpl.cc
  3768. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3769. Change the unit of --stop option from a minute to a second.
  3770. * src/usage_text.h
  3771. * src/DownloadEngineFactory.cc
  3772. * src/OptionHandlerFactory.cc
  3773. * src/message.h
  3774. * src/TimedHaltCommand.cc
  3775. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Make listening socket non-block mode.
  3777. * src/FtpConnection.cc
  3778. * src/FtpNegotiationCommand.{h, cc}
  3779. * src/PeerListenCommand.cc
  3780. Fixed the bug that cause slow ftp negotiation.
  3781. * src/FtpNegotiationCommand.{h, cc}
  3782. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Added basic tag to --enable-dht, --dht-listen-port option.
  3784. * src/HelpItemFactory.cc (createHelpItems)
  3785. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3786. Updated text.
  3787. * src/usage_text.h
  3788. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3790. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. Determin _threadtholdSpeed in each constructor for
  3792. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3793. * src/ActivePeerConnectionCommand.{h, cc}
  3794. * src/PeerReceiveHandshakeCommand.{h, cc}
  3795. * src/BtSetup.cc
  3796. * src/BtConstants.h
  3797. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3798. Added --bt-min-crypto-level and --bt-require-crypto options.
  3799. * src/OptionHandlerFactory.cc
  3800. * src/MSEHandshake.cc
  3801. * src/HelpItemFactory.cc
  3802. * src/option_processing.cc
  3803. * src/ReceiverMSEHandshakeCommand.cc
  3804. * src/prefs.h
  3805. * src/DefaultBtAnnounce.cc
  3806. * src/InitiatorMSEHandshakeCommand.cc
  3807. * src/usage_text.h
  3808. * test/MSEHandshakeTest.cc
  3809. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3810. Bump version number to 0.13.0b
  3811. * configure.ac
  3812. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3813. Updated doc.
  3814. * src/MessageDigestHelper.h:
  3815. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Use raw message digest as a token instead of its hexadecimal
  3817. representation.
  3818. * src/DHTTokenTracker.cc (generateToken)
  3819. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3820. Added Message Stream Encryption(MSE) support.
  3821. Currently, aria2 accepts incoming connections with Obfuscation Header
  3822. and legacy BitTorrent Header and establishes connections with
  3823. Obfuscation Header first and if failed then retry with legacy
  3824. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3825. choose ARC4. The new option to change the default behavior is planned.
  3826. For tracker extension, "supportcrypto=1" is added statically.
  3827. * src/PeerInitiateConnectionCommand.{h, cc}
  3828. * src/PeerConnection.{h, cc}
  3829. * src/HandleRegistry.h
  3830. * src/SocketCore.h
  3831. * src/PeerReceiveHandshakeCommand.{h, cc}
  3832. * src/BtRegistry.{h, cc}
  3833. * src/PeerListenCommand.cc
  3834. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3835. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3836. * src/MSEHandshake.{h, cc}
  3837. * src/ARC4Encryptor.h
  3838. * src/ARC4Decryptor.h
  3839. * src/LibgcryptARC4Encryptor.h
  3840. * src/LibgcryptARC4Decryptor.h
  3841. * src/LibgcryptARC4Context.h
  3842. * src/LibsslARC4Encryptor.h
  3843. * src/LibsslARC4Decryptor.h
  3844. * src/LibsslARC4Context.h
  3845. * src/DHKeyExchange.h
  3846. * src/LibgcryptDHKeyExchange.h
  3847. * src/LibsslDHKeyExchange.h
  3848. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3849. * test/DefaultBtAnnounceTest.cc
  3850. * test/ARC4Test.cc
  3851. * test/DHKeyExchangeTest.cc
  3852. Removed prepareForRetry() because it is not used.
  3853. * src/PeerAbstractCommand.{h, cc}
  3854. * src/PeerInteractionCommand.{h, cc}
  3855. * src/PeerInitiateConnectionCommand.{h, cc}
  3856. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3857. Added the ability to load nodes from torrent file. These nodes are
  3858. added to the routing table when downloading that torrent.
  3859. * src/BtContext.h
  3860. * src/DefaultBtContext.{h, cc}
  3861. * src/DHTSetup.cc
  3862. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  3863. hostname and port pair, and resolves all of them.
  3864. * src/NameResolver.{h, cc}: Added reset().
  3865. * src/RequestGroup.cc
  3866. * test/DefaultBtContextTest.cc
  3867. * test/MockBtContext.h
  3868. Removed assert() from DefaultBtContext and throw exception instead.
  3869. * src/DefaultBtContext.cc
  3870. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Fixed segmentation fault bug when exiting if dht is disabled.
  3872. * src/RequestGroup.cc
  3873. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Fixed typo in log message and define the message in message.h
  3875. * src/TimedHaltCommand.cc
  3876. * src/message.h
  3877. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3878. Included RecoverableException.h to fix compilation error.
  3879. * test/DHTMessageFactoryImplTest.cc
  3880. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  3882. * test/DHTPingMessageTest.cc
  3883. * test/DHTGetPeersMessageTest.cc
  3884. * test/DHTFindNodeMessageTest.cc
  3885. * test/DHTAnnouncePeerMessageTest.cc
  3886. * test/MockDHTMessage.h
  3887. * test/MockDHTMessageFactory.h
  3888. * test/MockDHTMessageDispatcher.h: New class.
  3889. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  3891. virtual.
  3892. * src/DHTMessageDispatcher.h
  3893. * src/DHTMessageDispatcherImpl.{h, cc}
  3894. * src/DHTSetup.cc
  3895. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3896. Adding handling of DHT error message. Just log error message and
  3897. throw exception.
  3898. * src/DHTMessageFactoryImpl.cc
  3899. * test/DHTMessageFactoryImplTest.cc
  3900. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Added handling of dynamic cast failure.
  3902. * src/DHTNodeLookupTask.cc
  3903. * src/DHTPeerLookupTask.cc
  3904. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Added the ability to stop aria2 itself when given time has passed
  3906. from start. Use --stop option to specify time in minutes.
  3907. When 0 is given, this feature is disabled.
  3908. * src/OptionHandlerFactory.cc
  3909. * src/TimeBasedCommand.h: Make _interval protected scope.
  3910. * src/HelpItemFactory.cc
  3911. * src/option_processing.cc
  3912. * src/prefs.h
  3913. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  3914. before calling RequestGroupMan::fillRequestGroupFromReserver().
  3915. Without this modification, the result list shows "ERR" when aria2 is
  3916. stopped by --stop option. It should be "INPR".
  3917. * src/DownloadEngine.{h, cc}
  3918. * src/DownloadEngineFactory.cc
  3919. * src/usage_text.h
  3920. * src/TimedHaltCommand.{h, cc}: New class.
  3921. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3922. Bootstrap through node added by port message.
  3923. Currently bootstrap is executed if the number of buckets in routing
  3924. table is 1.
  3925. * src/BtPortMessage.{h, cc}
  3926. * src/DefaultBtMessageFactory.{h, cc}
  3927. * src/PeerInteractionCommand.cc
  3928. * test/BtPortMessageTest.cc
  3929. * test/MockDHTTask.h
  3930. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3931. Extract the Peer class's member variables, which are only needed after
  3932. PeerInteractionCommand, into PeerSessionResource class.
  3933. This class is instantiated in PeerInteractionCommand class's ctor and
  3934. released in its dtor.
  3935. This will make Peer class lightweight and uses less memory for peers
  3936. which are not connected and wait in the queue.
  3937. * src/PeerChokeCommand.cc
  3938. * src/PeerSessionResource.{h, cc}
  3939. * src/PeerInteractionCommand.cc
  3940. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  3941. * src/DefaultBtInteractive.cc
  3942. * src/BtPieceMessage.cc
  3943. * src/BtInterestedMessage.cc
  3944. * src/BtUnchokeMessage.cc
  3945. * src/DefaultPeerStorage.{h, cc}
  3946. * src/PeerInitiateConnectionCommand.cc
  3947. * src/ActivePeerConnectionCommand.cc
  3948. * src/BtNotInterestedMessage.cc
  3949. * src/DefaultBtMessageDispatcher.cc
  3950. * src/BtChokeMessage.cc
  3951. * src/BtRequestMessage.cc
  3952. * src/Peer.{h, cc}
  3953. * src/BtRegistry.h
  3954. * src/TrackerWatcherCommand.cc
  3955. * src/PeerReceiveHandshakeCommand.cc
  3956. * test/BtExtendedMessageTest.cc
  3957. * test/BtAllowedFastMessageTest.cc
  3958. * test/BtCancelMessageTest.cc
  3959. * test/DefaultPieceStorageTest.cc
  3960. * test/BtBitfieldMessageTest.cc
  3961. * test/BtHaveMessageTest.cc
  3962. * test/BtNotInterestedMessageTest.cc
  3963. * test/BtRequestMessageTest.cc
  3964. * test/PeerSessionResourceTest.cc
  3965. * test/DefaultBtMessageDispatcherTest.cc
  3966. * test/PeerTest.cc
  3967. * test/BtInterestedMessageTest.cc
  3968. * test/BtRejectMessageTest.cc
  3969. * test/BtChokeMessageTest.cc
  3970. * test/DefaultPeerStorageTest.cc
  3971. * test/BtHaveNoneMessageTest.cc
  3972. * test/BtHaveAllMessageTest.cc
  3973. * test/DefaultExtensionMessageFactoryTest.cc
  3974. * test/BtUnchokeMessageTest.cc
  3975. * test/DefaultBtMessageFactoryTest.cc
  3976. * test/HandshakeExtensionMessageTest.cc
  3977. * test/UTPexExtensionMessageTest.cc
  3978. * test/DefaultBtRequestFactoryTest.cc
  3979. * test/BtPieceMessageTest.cc
  3980. Removed typedef PeerStats.
  3981. * src/PeerStat.h
  3982. * src/SegmentMan.cc
  3983. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Added std namespace to copy, remove_copy, back_inserter,
  3985. front_inserter.
  3986. * src/RequestGroupMan.cc
  3987. * src/DefaultPieceStorage.cc
  3988. * src/StreamFileAllocationEntry.cc
  3989. * src/BtFileAllocationEntry.cc
  3990. * src/RequestGroup.cc
  3991. * src/MetalinkEntry.cc
  3992. * src/DelegatingPeerListProcessor.cc
  3993. * src/DefaultBtRequestFactory.cc
  3994. * src/DefaultBtMessageDispatcher.cc
  3995. * src/version_usage.cc: Included <algorithm>
  3996. * src/main.cc
  3997. * src/MetalinkParserController.cc
  3998. * src/DefaultBtContext.cc
  3999. * src/DownloadEngineFactory.cc
  4000. * src/a2algo.h
  4001. Removed.
  4002. * test/StreamUriListParserTest.cc
  4003. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4005. ActivePeerConnectionCommand when it is given and
  4006. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4007. * src/ActivePeerConnectionCommand.{h, cc}
  4008. * src/BtSetup.cc
  4009. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4010. Only add socket to DownloadEngine's select routine when peer or
  4011. localhost is unchoked and interested. This lowers CPU usage a
  4012. little bit.
  4013. * src/PeerInteractionCommand.cc
  4014. * src/PeerAbstractCommand.{h, cc}
  4015. * src/BtInteractive.h
  4016. * src/DefaultBtInteractive.{h, cc}
  4017. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Revert previous change because get_peers message is needed for
  4019. announce_peer anyway.
  4020. * src/DHTGetPeersCommand.cc
  4021. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4022. Request peers thought DHT only when download hasn't finished.
  4023. * src/DHTGetPeersCommand.cc
  4024. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4025. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4026. * src/DHTBucketRefreshTask.{h, cc}
  4027. * src/DHTSetup.cc
  4028. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4030. standard classes.
  4031. Included string.h where mem* function are used.
  4032. Added namespace aria2.
  4033. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4034. Create directory before saving DHT routing table.
  4035. Now ios::failure is now handled properly.
  4036. * src/DHTAutoSaveCommand.cc
  4037. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Removed unnecessary cerr.
  4039. * src/DownloadEngine.cc
  4040. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Catch exception inside DHTMessageReceiver::receiveMessage().
  4042. Log unknown message.
  4043. * src/DHTMessageReceiver.{h, cc}
  4044. * src/DHTMessageFactory.h
  4045. * src/DHTMessageFactoryImpl.{h, cc}
  4046. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4047. * src/DHTInteractionCommand.cc
  4048. * src/DHTUnknownMessage.{h, cc}
  4049. * test/DHTUnknownMessageTest.cc
  4050. * test/MockDHTMessageFactory.h
  4051. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Commented out ip address comparison because a host can have multiple
  4053. ip addresses and it is hard to predict the hostname is resolved into
  4054. which one.
  4055. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4056. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. * po/Makefile.in: Removed since this is generated by configure.
  4058. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. Fixed compiler warning about redefinition of SIZE_MAX.
  4060. Use common.h instead of config.h directly here.
  4061. * src/Platform.{h, cc}
  4062. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4063. here.
  4064. * common.h
  4065. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  4066. Updated gettext related files.
  4067. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4068. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4069. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Added DHT functionality, compatible with mainline.
  4071. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4072. You may need to specify entry point to DHT network using
  4073. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4074. Use --dht-listen-port to specify port number. Make sure that your
  4075. firewall configuration can pass through UDP traffic to the port.
  4076. The routing table is saved in $HOME/.aria2/dht.dat.
  4077. * src/DHT*
  4078. * src/BNode.{h, cc}
  4079. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4080. particular torrent.
  4081. * src/Data.cc: Rewritten ctor.
  4082. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4083. --dht-entry-point.
  4084. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4085. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4086. ends, remove BtContext from DHTPeerAnnounceStorage.
  4087. * src/BtPortMessage.{h, cc}: Rewritten.
  4088. * src/message.h
  4089. * src/OptionHandlerImpl.cc
  4090. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  4091. --dht-entry-point.
  4092. * src/Dictionary.{h, cc} (remove): New function.
  4093. * src/prefs.h
  4094. * src/DefaultBtMessageFactory.h
  4095. * src/BtHandshakeMessage.cc
  4096. * src/ActivePeerConnectionCommand.cc
  4097. * src/SocketCore.{h, cc}: Added datagram socket support.
  4098. * src/DefaultBtMessageFactory.cc
  4099. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  4100. Create DHT commands.
  4101. * src/BtMessageFactory.h
  4102. * src/PeerMessageUtil.{h, cc}
  4103. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4104. Fixed the bug that log file is not written when configuration file doesn't exist.
  4105. This is caused by using Logger class before LogFactory is not configured.
  4106. BUG #1875079
  4107. * src/option_processing.cc
  4108. Warning message "configuration doesn't exist" is only printed when --conf is
  4109. given.
  4110. * src/option_processing.cc
  4111. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4112. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  4113. ShaVisitor is now deprecated and slated to be removed.
  4114. * src/DefaultBtContext.cc
  4115. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. Externalize message to message.h
  4117. * src/Platform.cc
  4118. * src/message.h
  4119. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4120. Set default domain and default path to cookie.
  4121. * src/HttpResponse.cc
  4122. * src/CookieBox.{h, cc}
  4123. * src/CookieParser.{h, cc}
  4124. * test/CookieParserTest.cc
  4125. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4126. Added --no-conf and --conf-path command-line option.
  4127. --no-conf option disables loading aria2.conf file.
  4128. --conf-path option changes the configuration file path. The default
  4129. file path is $HOME/.aria2/aria2.conf
  4130. Added a warning message when the configuration file is not found.
  4131. * src/HelpItemFactory.cc
  4132. * src/option_processing.cc
  4133. * src/prefs.h
  4134. * src/usage_text.h
  4135. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4136. Added the message to inform users that other help categories are
  4137. available in -h option.
  4138. * src/version_usage.cc
  4139. * src/TagContainer.{h, cc}
  4140. * test/TagContainerTest.cc
  4141. * src/TaggedItem.{h, cc}
  4142. * test/TaggedItemTest.cc
  4143. * src/HelpItem.h
  4144. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4145. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  4146. from PiecedSegment's ctor.
  4147. Previously Piece::getAllMissingBlockIndexes() is called from
  4148. PiecedSegment() but it is rather expensive since only first element is
  4149. used.
  4150. * src/PiecedSegment.cc
  4151. * src/Piece.{h, cc}
  4152. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Rewritten get*Missing*Index functions. Now no need to allocate memory
  4154. each time these functions are called.
  4155. * src/BitfieldMan.{h, cc}
  4156. * test/BitfieldManTest.cc
  4157. * src/array_fun.h
  4158. * test/array_funTest.cc
  4159. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  4160. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  4161. filtered. Removed unnecessary cast to int32_t.
  4162. * src/BitfieldMan.{h, cc}
  4163. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4164. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  4165. payload length(4bytes) are received. This happens because lenbufLength
  4166. is not updated in this particular case and successive call of
  4167. receiveMessage() overwrites payload length with bytes recieved which
  4168. are payload body.
  4169. * src/PeerConnection.{h, cc}
  4170. * src/message.h
  4171. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  4173. peer if there are peers that have same ipaddr and port.
  4174. I've experiened segmentation fault and "pure virtual function was
  4175. called" error.
  4176. * src/Peer.h
  4177. * test/PeerTest.cc
  4178. * src/DefaultPeerStorage.cc
  4179. * test/DefaultPeerStorageTest.cc
  4180. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Removed a call to isPowerOf() because it is no longer necessary here
  4182. and a request block is not always power of 2.
  4183. BUG#1866924
  4184. * src/PeerMessageUtil.cc (checkLength)
  4185. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4186. Fixed the bug that always first found Segment is removed from
  4187. usedSegmentEntries. Removed unused functions.
  4188. * src/SegmentMan.{h, cc}
  4189. * test/SegmentManTest.cc
  4190. Fixed the bug that ServerHost is not removed.
  4191. * src/RequestGroup.cc
  4192. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4193. Fixed the bug that SegmentMan::completeSegment() is not called
  4194. even if Segment is complete when --lowest-speed-limit is enabled.
  4195. BUG#1864525
  4196. * src/DownloadCommand.{h, cc}
  4197. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Fixed: hash algorithm 'sha1' is always used.
  4199. * src/DownloadCommand.cc (validatePieceHash)
  4200. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Added --enable-peer-exchange command-line option.
  4202. * src/OptionHandlerFactory.cc
  4203. * src/HelpItemFactory.cc
  4204. * src/option_processing.cc
  4205. * src/usage_text.h
  4206. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. Move extension from BtRuntime to ExtensionMessageFactory, because
  4208. extension can be specified per peer, not per torrent.
  4209. * src/DefaultBtInteractive.cc
  4210. * src/BtRuntime.h
  4211. * src/ExtendedMessagingAware.h
  4212. * src/ExtensionMessageFactory.h
  4213. * src/DefaultExtensionMessageFactory.cc
  4214. * test/DefaultExtensionMessageFactoryTest.cc
  4215. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4216. Added categorized option help. Specify category using --help option.
  4217. Also added the ability to search options in forward match.
  4218. * src/HelpItem.{h, cc}
  4219. * test/HelpItemTest.cc
  4220. * src/HelpItemFactory.{h, cc}
  4221. * src/TagContainer.{h, cc}
  4222. * test/TagContainerTest.cc
  4223. * src/option_processing.cc
  4224. * src/prefs.h
  4225. * src/TaggedItem.{h, cc}
  4226. * test/TaggedItemTest.cc
  4227. * src/version_usage.cc
  4228. * src/help_tags.h
  4229. * src/usage_text.h
  4230. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Fixed segmentation fault when bad torrent metainfo is parsed.
  4232. Added dynamic_cast properly to detect the misconfiguration of metainfo
  4233. and then throw exception or skip it.
  4234. * src/DefaultBtContext.{h, cc}
  4235. * test/DefaultBtContextTest.cc
  4236. * src/AnnounceList.cc
  4237. * src/CompactPeerListProcessor.cc
  4238. * src/message.h
  4239. * src/DefaultBtAnnounce.{h, cc}
  4240. * test/DefaultBtAnnounceTest.cc
  4241. * src/BencodeVisitor.cc
  4242. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4243. Added missing "B"(=Byte). So now the message looks like this:
  4244. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  4245. * src/message.h (MSG_SHARE_RATIO_REPORT)
  4246. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4247. Show the seed ratio after torrent downloads.
  4248. For example, after torrent download completed and --seed-time and
  4249. --seed-ratio conditions are fulfilled, following message is printed
  4250. right after "Download complete: .....":
  4251. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  4252. * src/RequestGroupMan.cc
  4253. * src/RequestGroup.{h, cc}
  4254. * src/message.h
  4255. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4256. Remove a defunct control file. A defunct control file means that while
  4257. it exists, but the corresponding download file is missing.
  4258. After its removal, a download restarts from the beginning.
  4259. * src/RequestGroup.cc
  4260. * src/message.h
  4261. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. Allocate bitfield in Peer when it is really used. More specifically,
  4263. bitfield in Peer is allocated after the connection is established and
  4264. deallocated when the connection is dropped.
  4265. Since 2 parameters(piece length and total length) was removed from the
  4266. constructor of Peer class, many test classes were modified accordingly.
  4267. See svn log for more detailed information.
  4268. * src/PeerInteractionCommand.cc
  4269. * src/CompactPeerListProcessor.cc
  4270. * src/Peer.cc
  4271. * src/DefaultPeerListProcessor.cc
  4272. * src/PeerListenCommand.cc
  4273. * src/PeerReceiveHandshakeCommand.cc
  4274. Fixed memory leak
  4275. * src/Piece.cc
  4276. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4277. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  4278. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  4279. command-line options.
  4280. * src/option_processing.cc
  4281. * src/ActivePeerConnectionCommand.cc
  4282. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4283. Send have message to peer if it already has the piece.
  4284. * src/BtHaveMessage.{h, cc}
  4285. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4287. port.
  4288. * src/DefaultPeerStorage.{h, cc}
  4289. * test/DefaultPeerStorageTest.cc
  4290. * src/HandshakeExtensionMessage.cc
  4291. * test/HandshakeExtensionMessageTest.cc
  4292. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4293. * src/PeerStorage.h
  4294. * test/MockPeerStorage.h
  4295. * src/PeerListenCommand.cc
  4296. * src/PeerReceiveHandshakeCommand.cc
  4297. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4298. Added --metalink-enable-unique-protocol option.
  4299. * src/Metalink2RequestGroup.cc
  4300. * src/option_processing.cc
  4301. * src/prefs.h
  4302. * src/version_usage.cc
  4303. * doc/aria2c.1.txt
  4304. * doc/aria2c.1
  4305. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Allow a peer in incomingPeer to be added peers.
  4307. * src/DefaultPeerStorage.cc
  4308. * test/DefaultPeerStorageTest.cc
  4309. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4311. I could reproduce this bug in following procedure:
  4312. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4313. 2. Restart aria2.
  4314. 3. You see the download stopped around 99%.
  4315. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4316. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4317. If timeout is reached, then _nextCommand is unused and it may contains
  4318. segments and they won't be canceled. Actually, timeout is not needed
  4319. here because if the server dropped connection, then retry is made.
  4320. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Added uTorrent compatible Peer Exchange.
  4322. * src/BencodeVisitor.{h, cc}
  4323. * test/BencodeVisitorTest.cc
  4324. * src/BtConstants.h
  4325. * src/BtContext.h: Added 'private' flag.
  4326. * src/BtExtendedMessage.{h, cc}
  4327. * test/BtExtendedMessageTest.cc
  4328. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4329. reserved field.
  4330. * test/BtHandshakeMessageTest.cc
  4331. * src/BtMessageFactory.h
  4332. * src/BtRegistry.h
  4333. * src/BtRuntime.h: This class holds default extension message IDs for
  4334. aria2. By default, aria2 uses ID 8 for ut_pex.
  4335. * src/DefaultBtContext.cc
  4336. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4337. When it is true, aria2 enables ut_pex. This value is set by
  4338. PeerInteractionCommand.
  4339. * src/DefaultBtMessageFactory.{h, cc}
  4340. * test/DefaultBtMessageFactoryTest.cc
  4341. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4342. handling to DefaultBtInteractive class.
  4343. * src/DefaultExtensionMessageFactory.{h, cc}
  4344. * test/DefaultExtensionMessageFactoryTest.cc
  4345. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4346. the container(peers and incomingPeers. The equality is determined by
  4347. Peer::id).
  4348. * test/DefaultPeerStorageTest.cc
  4349. * src/ExtensionMessage.h
  4350. * test/MockExtensionMessage.h
  4351. * src/ExtensionMessageFactory.h
  4352. * test/MockExtensionMessageFactory.h
  4353. * src/HandshakeExtensionMessage.{h, cc}
  4354. * test/HandshakeExtensionMessageTest.cc
  4355. * src/MetaEntry.h
  4356. * src/Peer.{h, cc}
  4357. * src/PeerInteractionCommand.cc
  4358. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4359. addIncomingPeer.
  4360. * src/PeerMessageUtil.{h, cc}
  4361. * src/PeerObject.h
  4362. * src/UTPexExtensionMessage.{h, cc}
  4363. * test/UTPexExtensionMessageTest.cc
  4364. * src/message.h
  4365. * src/prefs.h
  4366. Fixed the bug that returns incomplete data when it contains null
  4367. character. A convenient constructor was also added.
  4368. * src/Data.{h, cc}
  4369. Rewritten.
  4370. * src/CompactPeerListProcessor.cc
  4371. Fixed typos.
  4372. * src/message.h
  4373. * src/MetaFileUtil.cc
  4374. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4375. Added "Status Legend" label to the explanation text of 'stat' in
  4376. download result and moved it to the last. BUG#1848214
  4377. * src/RequestGroupMan.cc
  4378. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4379. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4380. * src/Makefie.am
  4381. * test/Makefile.am
  4382. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4383. Fixed the bug that prevents aria2 from loading cookie file when expire
  4384. value is greater than 2^31-1. BUG#1851066
  4385. * src/CookieBoxFactory.cc
  4386. * test/CookieBoxFactoryTest.cc
  4387. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Fixed possible memory leak when an exception is thrown.
  4389. * src/XML2SAXMetalinkProcessor.cc
  4390. Added Expat support. If both libxml2 and Expat are installed, then
  4391. libxml2 is used by default.
  4392. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4393. ExpatMetalinkProcessor according to the configuration.
  4394. * src/ExpatMetalinkProcessor.{h, cc}
  4395. * src/main.cc: Removed libxml2 specific header and init/free function.
  4396. * src/MetalinkProcessorFactory.{h, cc}
  4397. * src/MetalinkHelper.cc
  4398. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4399. * src/MetalinkProcessor.h
  4400. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4401. MetalinkProcessorTest is used instead.
  4402. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4403. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4404. MetalinkProcessorFactory::newInstance().
  4405. * m4/libexpat.m4
  4406. * configure.ac: Added configuration options for libexpat.
  4407. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Disabled -s option in metalink download.
  4409. * src/Metalink2RequestGroup.cc
  4410. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. If several protocols are available for a mirror in metalink file,
  4412. aria2 now use one of them. --metalink-preferred-protocol option was
  4413. added to specify the preference of protocol.
  4414. * src/AbstractCommand.cc
  4415. * src/OptionHandlerFactory.cc
  4416. * src/ServerHost.{h, cc}
  4417. * src/Metalink2RequestGroup.cc
  4418. * src/RequestGroup.{h, cc}
  4419. * test/RequestGroupTest.cc
  4420. * src/option_processing.cc
  4421. * src/prefs.h
  4422. * src/HttpResponseCommand.cc
  4423. * src/MetalinkResource.{h, cc}
  4424. * src/FtpNegotiationCommand.cc
  4425. * src/MetalinkEntry.{h, cc}
  4426. * src/MetalinkEntryTest.cc
  4427. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Code cleanup and added debug log.
  4429. * src/PeerConnection.cc
  4430. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4431. Compiler error fix: applied the patch by Tiziano Mueller
  4432. * src/RequestGroup.cc
  4433. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4435. in stopped and completed event.
  4436. * src/AnnounceList.{h, cc}
  4437. * test/AnnounceListTest.cc
  4438. * src/DefaultBtAnnounce.cc
  4439. * test/DefaultBtAnnounceTest.cc
  4440. Sorted URLs.
  4441. * test/Metalink2RequestGroupTest.cc
  4442. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Removed unnecessary string copy. Updated doc and corrected indentation.
  4444. * src/Base64.cc
  4445. Fixed compilation warnings
  4446. * test/DataTest.cc
  4447. * test/HttpRequestTest.cc
  4448. * test/MetaFileUtilTest.cc
  4449. * test/RequestTest.cc
  4450. * Release 0.12.0
  4451. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4452. Updated translations
  4453. * po/{de,fr,ja,nl,ru}.po
  4454. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4455. translations. Many thanks to translators.
  4456. * po/{ca,es,it,pt_BR,sv}.po
  4457. * po/LINGUAS
  4458. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4459. Added a notice about URL
  4460. * src/version_usage.cc
  4461. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4462. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4463. aria2 repeatedly sends stopped request when tracker returns error code.
  4464. * src/AnnounceList.cc
  4465. * test/AnnounceListTest.cc
  4466. * src/AnnounceTier.h
  4467. Added a message when ctrl-c is hit.
  4468. Now second ctrl-c is also handled in signal handler.
  4469. * src/RequestGroupMan.{h, cc}
  4470. * src/RequestGroup.{h, cc}
  4471. * src/MultiUrlRequestInfo.cc
  4472. * src/DownloadEngine.cc
  4473. * src/TrackerWatcherCommand.cc
  4474. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Code cleanup
  4476. * src/Base64.cc (encode)
  4477. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4478. Changed Direct/IO enable/disable procesure in file allocation routine.
  4479. * src/SingleFileAllocationIterator.cc
  4480. (SingleFileAllocationIterator):
  4481. Disable directIO if offset is not multiple of 512.
  4482. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4483. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4484. Enable created SingleFileAllocationIterator's directIO.
  4485. * src/FileAllocationEntry.cc
  4486. (FileAllocationEntry): Enable directIO here.
  4487. (~FileAllocationEntry): Disable directIO here.
  4488. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4490. * src/Peer.{h, cc}
  4491. * src/DefaultPieceStorage.cc
  4492. * test/DefaultPieceStorageTest.cc
  4493. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Rewritten direct I/O support routine
  4495. * src/SingleFileAllocationIterator.cc
  4496. * src/MultiDiskAdaptor.{h, cc}
  4497. * src/ByteArrayDiskWriter.h
  4498. * src/AbstractSingleDiskAdaptor.h
  4499. * src/AbstractDiskWriter.cc
  4500. * src/DefaultPieceStorage.cc
  4501. * src/DiskWriter.h
  4502. * src/BinaryStream.h
  4503. * src/IteratableChunkChecksumValidator.cc
  4504. * src/IteratableChecksumValidator.cc
  4505. * src/CheckIntegrityEntry.cc
  4506. * src/FileAllocationEntry.cc
  4507. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Fixed typo
  4509. * src/version_usage.cc
  4510. Updated doc
  4511. * doc/aria2c.1.txt
  4512. * doc/aria2c.1
  4513. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4514. Fixed compile error without message digest support.
  4515. * src/FileMetalinkParserState.cc
  4516. * src/MetalinkParserController.{h, cc}
  4517. * test/XML2SAXMetalinkProcessorTest.cc
  4518. * test/MetalinkParserControllerTest.cc
  4519. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4520. Enable direct I/O support in checksum checking.
  4521. * src/IteratableChunkChecksumValidator.{h, cc}
  4522. * test/IteratableChunkChecksumValidatorTest.cc
  4523. * src/CheckIntegrityEntry.cc
  4524. * src/PieceHashCheckIntegrityEntry.cc
  4525. * src/IteratableChecksumValidator.{h, cc}
  4526. * src/BtCheckIntegrityEntry.cc: Added doc.
  4527. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4528. Added --allow-piece-length-change option.
  4529. * src/DefaultBtProgressInfoFile.cc
  4530. * test/DefaultBtProgressInfoFileTest.cc
  4531. * src/OptionHandlerFactory.cc
  4532. * src/option_processing.cc
  4533. * src/prefs.h
  4534. * src/version_usage.cc
  4535. * doc/aria2c.1.txt
  4536. * doc/aria2c.1
  4537. Fixed: duplicated result entry appears when exception is thrown in
  4538. RequestGroup::createInitiateConnectionCommand().
  4539. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4540. Add RequestGroup to _requestGroup after RequetGroup::
  4541. createInitiateConnectionCommand() succeeds.
  4542. Externalized message
  4543. * src/XML2SAXMetalinkProcessor.cc
  4544. * src/message.h
  4545. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4546. Forced download abort when received negative response from http/ftp
  4547. server.
  4548. * src/HttpResponseCommand.cc
  4549. * src/FtpNegotiationCommand.cc
  4550. * src/HttpResponse.cc
  4551. * src/FtpConnection.cc
  4552. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4553. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4554. the predecessor, Xml2MetalinkParser class.
  4555. I tested them against 94KB metalink file with 1234 chunk checksums.
  4556. The new one parsed it in 22msec, while it took 6000msec with old one.
  4557. * src/XML2SAXMetalinkProcessor.{h, cc}
  4558. * test/XML2SAXMetalinkProcessorTest.cc
  4559. * src/MetalinkParserController.{h, cc}
  4560. * test/MetalinkParserControllerTest.cc
  4561. * src/MetalinkParserState.h: Also added 16 subclasses.
  4562. * src/main.cc
  4563. * src/Metalink2RequestGroup.cc
  4564. * src/MetalinkHelper.cc
  4565. * src/MetalinkEntry.cc
  4566. * src/ChunkChecksum.h
  4567. Rewritten Base64 class for better performance.
  4568. * src/Base64.{h, cc}
  4569. * test/Base64Test.cc
  4570. * src/HttpRequest.cc
  4571. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Fixed the bug#1841757: aria2 will connect to server to only get
  4573. file size.
  4574. * src/StreamFileAllocationEntry.cc
  4575. * src/option_processing.cc
  4576. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4577. downloads.
  4578. * src/FtpNegotiationCommand.cc
  4579. Suppressed wrong message when finding PreDownloadHandler
  4580. * src/RequestGroup.cc
  4581. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4582. Updated usage
  4583. * src/version_usage.cc
  4584. Updated man page
  4585. * doc/aria2c.1.txt
  4586. * doc/aria2c.1
  4587. Updated po files
  4588. * po/aria2c.pot
  4589. * po/*.po
  4590. * po/*.gmo
  4591. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Eliminated g++-4.2 warning
  4593. * src/DownloadHandlerConstants.{h, cc}
  4594. * src/Util.cc
  4595. * test/MetaFileUtilTest.cc
  4596. * test/PStringBuildVisitorTest.cc
  4597. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4598. * src/RequestGroup.cc
  4599. * src/BtCheckIntegrityEntry.cc
  4600. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Fixed a2io.h
  4602. * src/a2io.h
  4603. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4604. Added direct I/O support. The current implementation uses O_DIRECT,
  4605. which is not posix standard and is tested on linux 2.6.21.
  4606. Currently only file allocation uses direct I/O.
  4607. * src/SingleFileAllocationIterator.{h, cc}
  4608. * test/SingleFileAllocationIteratorTest.cc
  4609. * src/MultiFileAllocationIterator.{h, cc}
  4610. * test/MultiFileAllocationIteratorTest.cc
  4611. * src/BinaryStream.h
  4612. * src/DiskWriter.h
  4613. * src/AbstractDiskWriter.{h, cc}
  4614. * src/ByteArrayDiskWriter.h
  4615. * src/DiskAdaptor.h
  4616. * src/AbstractSingleDiskAdaptor.{h, cc}
  4617. * src/MultiDiskAdaptor.{h, cc}
  4618. * src/FileAllocationEntry.cc
  4619. * src/Util.{h, cc}
  4620. * src/OptionHandlerFactory.cc
  4621. * src/prefs.h
  4622. * src/version_usage.cc
  4623. * src/option_processing.cc
  4624. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  4625. handleException.
  4626. * src/MultiFileAllocationIterator.cc
  4627. Added EINTR handling
  4628. * src/SocketCore.cc
  4629. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Updated usage
  4631. * src/version_usage.cc
  4632. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4633. Applied Ross's patch for MinGW port.
  4634. * src/DownloadEngine.h
  4635. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4636. Set Content-Type to SingleFileDownloadContext when http response is
  4637. received.
  4638. * src/HttpResponseCommand.cc
  4639. * src/HttpResponse.{h, cc}
  4640. * test/HttpResponseTest.cc
  4641. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4642. Rewritten to add content-type support.
  4643. * src/DownloadHandler.{h, cc}
  4644. * src/BtPostDownloadHandler.{h, cc}
  4645. * test/BtPostDownloadHandlerTest.cc
  4646. * src/MetalinkPostDownloadHandler.{h, cc}
  4647. * test/MetalinkPostDownloadHandlerTest.cc
  4648. * src/PostDownloadHandler.{h, cc}
  4649. * src/DownloadHandlerConstants.{h, cc}
  4650. * src/RequestGroup.cc
  4651. * src/HttpResponseCommand.cc
  4652. * src/FtpNegotiationCommand.cc
  4653. * src/SingleFileDownloadContext.{h, cc}
  4654. * src/RequestGroup.h
  4655. * src/RequestGroupCriteria.h
  4656. * src/ContentTypeRequestGroupCriteria.h
  4657. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4658. If it is give, metalink/torrent file is not written to the disk, but
  4659. just is kept in memory. Parsing is occurred on memory.
  4660. * src/MetalinkHelper.{h, cc}
  4661. * src/MetalinkProcessor.h
  4662. * src/Xml2MetalinkProcessor.{h, cc}
  4663. * test/Xml2MetalinkProcessorTest.cc
  4664. * src/DownloadHandlerFactory.{h, cc}
  4665. * test/DownloadHandlerFactoryTest.cc
  4666. * src/PreDownloadHandler.{h, cc}
  4667. * src/OptionHandlerFactory.cc
  4668. * src/DefaultBtContext.{h, cc}
  4669. * test/DefaultBtContextTest.cc
  4670. * src/version_usage.cc
  4671. * src/Metalink2RequestGroup.{h, cc}
  4672. * src/RequestGroup.{h, cc}
  4673. * src/a2functional.h
  4674. * test/a2functionalTest.cc
  4675. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4676. * src/OptionHandlerImpl.h
  4677. * src/prefs.h
  4678. * src/Util.{h, cc}
  4679. * test/UtilTest.cc
  4680. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4681. memory usage.
  4682. * src/RequestGroupMan.{h, cc}
  4683. * src/DownloadEngine.cc
  4684. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4685. WeakHandle to SharedHandle because WeakHandle could be null.
  4686. * src/RequestGroup.{h, cc}
  4687. * src/DownloadEngineFactory.cc
  4688. * src/DownloadResult.h
  4689. Set totalLength after download finished
  4690. * src/UnknownLengthPieceStorage.{h, cc}
  4691. Keep torrent file specified in metalink in memory.
  4692. * src/Metalink2RequestGroup.cc
  4693. * src/BtDependency.cc
  4694. * src/TrueRequestGroupCriteria.h
  4695. Fixed the bug: seekg is used where seekp should be used.
  4696. * src/ByteArrayDiskWriter.cc
  4697. * test/ByteArraydiskWriterTest.cc
  4698. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4699. Fixed syntax error
  4700. * test/SequenceTest.cc
  4701. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4703. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4704. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4705. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4706. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4707. Added the check to see whether ares_host_callback accepts timeouts
  4708. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4709. * src/NameResolver.{h, cc}
  4710. * m4/libcares.m4
  4711. * configure.ac: Set C++ for language choice.
  4712. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Fixed: compilation fails without c-ares/ares
  4714. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4715. Generate http/ftp commands only when download is incomplete.
  4716. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4717. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Corrected typo. Examples are removed since they are available in man
  4719. page.
  4720. * src/version_usage.cc
  4721. Updated man page.
  4722. * doc/aria2c.1
  4723. * doc/aria2c.1.txt
  4724. * doc/makeman: Commented out sed command.
  4725. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4726. Throw DlAbortEx when a remote file is not found.
  4727. * src/HttpResponse.cc
  4728. * src/FtpNegotiationCommand.cc
  4729. * src/message.h
  4730. Overwrite an existing file if --allow-overwrite=true is given.
  4731. * src/RequestGroup.cc
  4732. Removed unused functions
  4733. * src/AbstractCommand.h
  4734. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Removed 'extern' from 'extern typedef ...' in src/*.h
  4736. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4737. Updated usage
  4738. * src/version_usage.cc
  4739. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Trim announce URL
  4741. * src/DefaultBtContext.cc
  4742. * test/ShaVisitorTest.cc
  4743. Trim argument s. Give trimed s to exception constructor.
  4744. * src/Util.cc (parseInt)(parseLLInt)
  4745. * test/UtilTest.cc
  4746. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4747. Set precision back to 1.
  4748. * src/ConsoleStatCalc.cc (calculateStat)
  4749. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Replaced strtol with Util::parseInt
  4751. * src/ChunkedEncoding.cc
  4752. * src/HttpConnection.cc
  4753. * src/CookieBoxFactory.cc
  4754. * src/ParameterizedStringParser.cc
  4755. * src/Util.cc
  4756. * test/UtilTest.cc
  4757. * test/OptionHandlerTest.cc
  4758. * src/Request.cc
  4759. Throw exception when empty string is given. The message for exception
  4760. changed.
  4761. * src/Util.cc (parseInt)(parseLLInt)
  4762. * src/message.h
  4763. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4765. set to 1.
  4766. * src/ConsoleStatCalc.cc (calculateStat)
  4767. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4768. Preallocate non-requested file which is adjacent forward to requested
  4769. file('requested' files means the files given in --select-file option)
  4770. if they share a same piece.
  4771. This fixes long pause in the file system which doesn't support sparse
  4772. files like FAT32 while downloading.
  4773. * src/MultiFileAllocationIterator.{h, cc}
  4774. * test/MultiFileAllocationIteratorTest.cc
  4775. * src/FileEntry.{h, cc}
  4776. Removed unused _option.
  4777. * src/MultiDiskAdaptor.h
  4778. * test/MultiDiskAdaptorTest.cc
  4779. * src/DefaultPieceStorage.cc
  4780. Set the default value of --seed-ratio to 1.0.
  4781. If 0.0 is given, then seeding continues regardless of share ratio.
  4782. * src/version_usage.cc
  4783. * src/option_processing.cc
  4784. * src/BtSetup.cc
  4785. * doc/aria2c.1.txt
  4786. * doc/aria2c.1
  4787. Fixed: Selective download is not working in BitTorrent
  4788. * src/RequestGroup.cc
  4789. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4790. * src/PieceStorage.h
  4791. * test/MockPieceStorage.h
  4792. * src/UnknownLengthPieceStorage.h
  4793. * src/DefaultPieceStorage.{h, cc}
  4794. * src/Metalink2RequestGroup.cc
  4795. * src/RequestGroup.cc
  4796. * src/Sequence.h
  4797. * test/SequenceTest.cc
  4798. * src/IntSequence.h
  4799. * src/message.h
  4800. * src/Util.{h, cc}
  4801. * test/UtilTest.cc
  4802. Added new function 'parse' to catch exception thrown by subclass's
  4803. parseArg
  4804. * src/OptionHandler.h
  4805. * src/OptionParser.cc
  4806. * src/NameMatchOptionHandler.h
  4807. * src/OptionHandlerImpl.h
  4808. * test/OptionHandlerTest.cc
  4809. Added IntegerRangeOptionHandler. Used for --listen-port and
  4810. --select-file. Now --listen-port accepts range of port.
  4811. * src/OptionHandlerFactory.cc
  4812. * src/version_usage.cc
  4813. * src/OptionHandlerImpl.h
  4814. * src/option_processing.cc
  4815. * src/BtSetup.cc
  4816. * src/PeerListenCommand.{h, cc}
  4817. * doc/aria2c.1.txt
  4818. * doc/aria2c.1
  4819. Implemented operator< for Exception class to provide easy way to print
  4820. exception stack trace.
  4821. * src/Exception.{h, cc}
  4822. * src/main.cc
  4823. * src/option_processing.cc
  4824. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. * src/version_usage.cc
  4826. (showVersion): Reworked.
  4827. (showUsage): Added examples.
  4828. Removed Hint for total length and file name.
  4829. * src/Metalink2RequestGroup.cc
  4830. * src/RequestGroup.{h, cc}
  4831. * src/HttpResponseCommand.cc
  4832. * src/FtpNegotiationCommand.cc
  4833. Now --follow-torrent and --follow-metalink option work properly.
  4834. * src/RequestGroup.cc
  4835. Updated man page
  4836. * doc/aria2c.1.txt
  4837. * doc/aria2c.1
  4838. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Removed.
  4840. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4841. Use Segment::operator==()
  4842. * src/HttpConnection.cc
  4843. * src/Segment.h
  4844. Updated usage
  4845. * src/version_usage.cc
  4846. Added EINTR treatment.
  4847. * src/SocketCore.cc
  4848. * src/AbstractDiskWriter.cc
  4849. Rewritten.
  4850. * src/Util.cc (rangedFileCopy)
  4851. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4852. Fixed typo.
  4853. * src/version_usage.cc
  4854. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Implemented. Now -c option works fine.
  4856. * src/DefaultPieceStorage.cc (markPiecesDone)
  4857. * test/DefaultPieceStorageTest.cc
  4858. Removed.
  4859. * src/SegmentMan.{h, cc}
  4860. (markAllPiecesDone)
  4861. (markPieceDone)
  4862. Synchronized po files with
  4863. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  4864. * src/fr.po
  4865. * src/ru.po
  4866. * src/de.po
  4867. * src/ja.po
  4868. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. Added ifdef and some modifications to compile without BitTorrent,
  4870. Metalink, MessageDigest
  4871. support.
  4872. * src/PieceHashCheckIntegrityEntry.cc
  4873. * src/MetalinkEntry.h
  4874. * src/version_usage.cc
  4875. * src/main.cc
  4876. * src/DownloadEngine.{h, cc}
  4877. * src/Metalink2RequestGroup.cc
  4878. * src/Peer.cc
  4879. * src/RequestGroup.cc
  4880. * src/MetalinkHelper.cc
  4881. * test/DefaultPieceStorageTest.cc
  4882. * test/MetalinkPostDownloadHandlerTest.cc
  4883. * test/Metalink2RequestGroupTest.cc
  4884. Hide TOTAL SPD when all downloads complete.
  4885. * src/ConsoleStatCalc.cc
  4886. Log target system information.
  4887. * src/main.cc
  4888. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Now --metalink-location accepts a comma-deliminated list of locations.
  4890. * src/MetalinkEntry.{h, cc}
  4891. * test/MetalinkEntryTest.cc
  4892. * src/version_usage.cc
  4893. * src/Metalink2RequestGroup.cc
  4894. * src/Xml2MetalinkProcessor.cc
  4895. * test/Xml2MetalinkProcessorTest.cc
  4896. * doc/aria2c.1.txt
  4897. * doc/aria2c.1
  4898. * src/Util.cc (toUpper)(toLower): Rewritten.
  4899. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Added the ability to detect duplicate download entry which is about to
  4901. download the same file other RequestGroup is downloading.
  4902. * src/RequestGroup.cc
  4903. * src/HttpResponseCommand.cc
  4904. * src/FtpNegotiationCommand.cc
  4905. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4906. Recalculates download progress when loading a control file,
  4907. if the piece length of DownloadContext is different from the one saved
  4908. in the control file. Currently in-flight pieces are ignored.
  4909. * src/DefaultBtProgressInfoFile.cc
  4910. * test/DefaultBtProgressInfoFileTest.cc
  4911. * src/Util.{h, cc}
  4912. * test/UtilTest.cc
  4913. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Do not rotate tiers in announce-list.
  4915. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  4916. AnnounceList::allTiersFailed() used instead to detect whether all
  4917. tiers are tried and failed.
  4918. * test/DefaultBtAnnounceTest.cc
  4919. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  4920. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  4921. * test/AnnounceListTest.cc
  4922. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  4923. clause. Catch RecoverableException instead of DlRetryEx instead.
  4924. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4925. Implemented checksum validation feature(1 checksum for each file)
  4926. The validation takes place after the download.
  4927. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  4928. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  4929. * src/CheckIntegrityCommand.cc: Changed log message.
  4930. * src/Metalink2RequestGroup.cc: Set checksum to
  4931. SingleFileDownloadContext.
  4932. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  4933. PieceHashCheckIntegrity class.
  4934. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  4935. PieceHashCheckIntegrity class.
  4936. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  4937. * src/IteratableValidator.h: New class.
  4938. * src/message.h
  4939. * src/CheckIntegrityEntry.{h, cc}
  4940. * src/IteratableChunkChecksumValidator.{h, cc}
  4941. * src/SingleFileDownloadContext.h
  4942. * src/DownloadCommand.cc
  4943. --allow-overwrite=true is no longer needed to check file integrity
  4944. before download in BitTorrent download.
  4945. * src/RequestGroup.cc (getInitialCommand)
  4946. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  4947. throws exception.
  4948. * src/RequestGroupMan.cc (getInitialCommands)
  4949. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. urlencode the given url inside Request::parseUrl(...)
  4951. * src/Request.{h, cc}
  4952. * src/Util.{h, cc}
  4953. * test/RequestTest.cc
  4954. Removed #!metalink3! notation support because it is deleted from
  4955. the metalink specification.
  4956. * src/Request.{h, cc}
  4957. * test/RequestTest.cc
  4958. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Don't connect server before checking file integrity at startup, if
  4960. filesize and output file path are known.
  4961. * src/AbstractCommand.cc
  4962. * src/StreamFileAllocationEntry.cc
  4963. * src/Metalink2RequestGroup.cc
  4964. * src/RequestGroup.{h, cc}
  4965. * src/HttpResponseCommand.cc
  4966. * src/FtpNegotiationCommand.cc
  4967. Added DownloadFailureException. If it is thrown, RequestGroup should
  4968. halt.
  4969. * src/AbstractCommand.cc
  4970. * src/DownloadFailureException.h
  4971. * src/RequestGroup.cc
  4972. Catch RecoverableException, instead of DlAbortEx.
  4973. * src/RequestGroupMan.cc
  4974. * src/FillRequestGroupCommand.cc
  4975. * src/MetaFileUtil.cc
  4976. * src/IteratableChunkChecksumValidator.cc
  4977. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  4978. getGID())
  4979. * src/CheckIntegrityCommand.cc
  4980. * src/message.h
  4981. Print gid instead of idx.
  4982. * src/RequestGroupMan.cc
  4983. Removed exception throwers declaration.
  4984. * src/DirectDiskAdaptor.{h, cc}
  4985. * src/SocketCore.{h, cc}
  4986. * src/MultiDiskAdaptor.{h, cc}
  4987. * src/HttpConnection.{h, cc}
  4988. * src/HttpResponse.{h, cc}
  4989. * src/DiskAdaptor.{h, cc}
  4990. * src/CopyDiskAdaptor.{h, cc}
  4991. * src/MultiDiskAdaptor.{h, cc}
  4992. * src/HttpHeaderProcessor.{h, cc}
  4993. * src/AbstractSingleDiskAdaptor.{h, cc}
  4994. * src/Util.{h, cc}
  4995. * test/UtilTest.cc
  4996. * src/DefaultDiskWriter.{h, cc}
  4997. * src/FtpConnection.{h, cc}
  4998. * src/AbstractDiskWriter.{h, cc}
  4999. Removed duplicate code.
  5000. * src/StreamCheckIntegrityEntry.cc
  5001. Removed unnecessary include.
  5002. * src/DiskWriter.h
  5003. Included Exception.h
  5004. * src/option_processing.cc
  5005. Included 2 files and added doc
  5006. * src/TrackerWatcherCommand.cc
  5007. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5008. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Changed CheckIntegrityEntry interface so that it can define
  5010. the action when all the chunk checksums are valid.
  5011. * src/CheckIntegrityEntry.h
  5012. * src/StreamCheckIntegrityEntry.{h, cc}
  5013. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5014. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5015. to exit rather than doing seeding. So, it would be good to toggle this
  5016. behavior.
  5017. * src/CheckIntegrityCommand.cc
  5018. * src/AbstractCommand.cc
  5019. * src/RequestGroup.cc
  5020. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Reflect the download length of in-flight pieces.
  5022. It makes the download length readout more precise.
  5023. * src/DefaultPieceStorage.{h, cc}
  5024. * test/DefaultPieceStorageTest.cc
  5025. * src/a2functional.h
  5026. * test/a2functionalTest.cc
  5027. Lower CPU load when --max-download-limit is used.
  5028. There is up and down in speed indicator when enabling
  5029. http-pipelining but a download goes well. I think the problem is that
  5030. because http-pipelining is enabled, DownloadCommand is created for
  5031. each segment and in its constructor, PeerStat::downloadStart() is
  5032. called. In PeerStat::downloadStart(), speed calculation object is
  5033. reseted, which makes download speed zero.
  5034. * src/DownloadCommand.cc
  5035. Rewritten using accumulate.
  5036. * src/RequestGroupMan.cc (calculateStat)
  5037. Code clearnup.
  5038. * src/FtpNegotiationCommand.cc
  5039. * src/HttpResponseCommand.cc
  5040. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5041. Fixed: Can not resume: aria2 reports download already finished.
  5042. * src/AbstractCommand.{h, cc}
  5043. * src/HttpResponseCommand.cc
  5044. * src/FtpNegotiateCommand.cc
  5045. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5046. Now a file is stored in the directory specified in .metalnk file
  5047. (file[@name]).
  5048. * src/Metalink2RequestGroup.cc
  5049. Create the directory structure when opening the file if it doesn't
  5050. exist.
  5051. * src/AbstractDiskWriter.cc
  5052. * src/Util.{h, cc}
  5053. * src/File.h
  5054. * test/UtilTest.cc
  5055. Removed file name comparison
  5056. * src/Metalink2RequestGroup.cc
  5057. * src/HttpResponseCommand.cc
  5058. Rewritten using Util::mkdirs()
  5059. * src/FileEntry.cc (setupDir)
  5060. * test/FileEntryTest.cc
  5061. Updated doc
  5062. * src/SingleFileDownloadContext.h
  5063. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5064. Now SleepCommand dispatches nextCommand when halt is requested.
  5065. It avoids a possible long wait after hitting CTRL-C.
  5066. * src/SleepCommand.{h, cc}
  5067. * src/RequestGroupAware.{h, cc}
  5068. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5070. to open listen port, then remove the port number from the tracker
  5071. request.
  5072. * src/DefaultBtAnnounce.cc
  5073. * test/DefaultBtAnnounceTest.cc
  5074. * test/MockPieceStorage.h
  5075. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5076. them more testable.
  5077. * src/DefaultBtAnnounce.{h, cc}
  5078. * src/DefaultBtContext.{h, cc}
  5079. * src/Util.{h, cc}
  5080. * test/DefaultBtAnnounceTest.cc
  5081. * test/DefaultBtContextTest.cc
  5082. * test/UtilTest.cc
  5083. Added 'B' to upload bytes readout.
  5084. * src/ConsoleStatCalc.cc
  5085. Now the listen port for BitTorrent download is opened when it is
  5086. needed.
  5087. * src/DownloadEngineFactory.cc
  5088. * src/BtSetup.{h, cc}
  5089. * src/PeerListenCommand.{h, cc}
  5090. Now an exception thrown while parsing tracker response is now logged.
  5091. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  5092. called, which means no retry is made in this case, assuming a tracker
  5093. has a problem.
  5094. * src/TrackerWatcherCommand.cc
  5095. Fixed: downloading a file whose length is unkown fails.
  5096. * src/DownloadCommand.cc
  5097. Simplified prepareForNextSegment()
  5098. * src/DownloadCommand.cc
  5099. Updated
  5100. * po/POTFILES.in
  5101. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5102. Re-implemented a file listing for Metalink, which was dropped while
  5103. http/ftp/torrent integration was being implemented.
  5104. * src/MetalinkHelper.{h, cc}: New class.
  5105. * test/MetalinkHelperTest.cc
  5106. * src/main.cc
  5107. * src/Metalink2RequestGroup.cc
  5108. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Added the ability to display the detailed torrent file information.
  5110. Now -S option gives not only a file listing, but also total download
  5111. length, info hash, announce URI, piece length, the number of pieces,
  5112. and mode(single or multi-torrent).
  5113. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  5114. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  5115. KiB)
  5116. * test/UtilTest.cc
  5117. * src/main.cc
  5118. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Added ftp://USER:PASSWD@Servername automatic parsing.
  5120. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  5121. _password. Recognize username and password in URI.
  5122. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  5123. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  5124. * src/RequestFactory.{h, cc}: Removed.
  5125. * src/AuthConfigFactory.{h, cc}: New class.
  5126. * src/FtpConnection.cc: Use AuthConfigFactory.
  5127. * src/HttpRequest.cc: Use AuthConfigFactory.
  5128. * test/HttpRequestTest.cc: Updated.
  5129. * test/RequestTest.cc: Updated.
  5130. * test/AuthConfigFactoryTest.cc: New class.
  5131. * test/RequestFactoryTest.cc: Removed.
  5132. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5133. Use RequestGroup::allDownloadFinished() to decide whether the control
  5134. file should be removed or saved.
  5135. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  5136. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  5137. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5138. Use File::renameTo()
  5139. * src/DefaultBtProgressInfoFile.cc
  5140. Added --no-file-allocation-limit command-line option.
  5141. * src/version_usage.cc
  5142. * src/option_processing.cc
  5143. * src/OptionHandlerFactory.cc
  5144. * src/RequestGroup.{h, cc}
  5145. * src/BtCheckIntegrityEntry.cc
  5146. * src/StreamCheckIntegrityEntry.cc
  5147. * src/prefs.h
  5148. * doc/aria2c.1.txt
  5149. * doc/aria2c.1
  5150. Now prealloc is the default value for --file-allocation option.
  5151. * src/version_usage.cc
  5152. * src/option_processing.cc
  5153. * doc/aria2c.1.txt
  5154. * doc/aria2c.1
  5155. Don't URL-encode user-agent.
  5156. * src/HttpRequest.cc
  5157. Updated translations
  5158. * po/LINGUAS: Added nl for Dutch translation.
  5159. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  5160. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  5161. * po/POTFILES.in: Updated.
  5162. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5163. Added the ability to recognize url-list in a torrent file.
  5164. The retrieved URLs are attached to the corresponding FileEntry.
  5165. * src/DefaultBtContext.{h, cc}
  5166. * src/FileEntry.{h, cc}
  5167. * test/DefaultBtContextTest.cc
  5168. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  5170. after the download finishes.
  5171. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  5173. the data smaller than block length.
  5174. A block length can be specified by constructor's argument.
  5175. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  5176. Get a missing piece in the range of given FileEntry. This function is
  5177. not used in the program yet.
  5178. * src/Util.h: Added some macros.
  5179. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5180. Added HTTP/1.1 keep alive and pipelining support.
  5181. See --enable-http-keep-alive and --enable-http-pipelining option.
  5182. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  5183. Segment.
  5184. * src/HttpDownloadCommand.{h, cc}
  5185. * src/OptionHandlerFactory.cc
  5186. * src/HttpConnection.{h, cc}
  5187. * src/version_usage.cc
  5188. * src/HttpInitiateConnectionCommand.cc
  5189. * src/FtpInitiateConnectionCommand.cc
  5190. * src/Segment.h
  5191. * src/HttpRequestCommand.{h, cc}
  5192. * src/option_processing.cc
  5193. * src/prefs.h
  5194. * src/HttpResponseCommand.cc
  5195. * src/SegmentMan.{h, cc}
  5196. * src/FtpNegotiateCommand.cc
  5197. * src/HttpProxyResponseCommand.cc
  5198. * src/Request.cc
  5199. * src/HttpRequest.cc
  5200. * src/DownloadCommand.cc
  5201. * test/HttpRequestTest.cc
  5202. * test/RequestTest.cc
  5203. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  5205. finished.
  5206. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  5208. catching it inside the method.
  5209. When no file entry is found in a metalink without querying user
  5210. preferences, throw the exception with the error message that suggests
  5211. metalink file is probably broken.
  5212. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  5213. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Fixed the bug that prevents remote Metalink/Torrent file from begin
  5215. processed.
  5216. * src/RequestGroupMan.cc (removeStoppedGroup)
  5217. Added debug message.
  5218. * src/BtPostDownloadHandler.cc
  5219. * src/MetalinkPostDownloadHandler.cc
  5220. * src/PostDownloadHandler.{h, cc}
  5221. * src/RequestGroup.cc
  5222. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5223. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  5224. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  5226. stops and there are any unfinished or in-progress downloads.
  5227. Added the legend of "stat".
  5228. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Throw exception when chunck checksum verification fails.
  5230. * src/DownloadCommand.cc (validatePieceHash): New function.
  5231. * src/PiecedSegment.{h, cc} (clear): New function.
  5232. * src/GrowSegment.{h, cc} (clear): New function.
  5233. * src/Segment.h (clear): New function.
  5234. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  5235. * test/SegmentTest.cc
  5236. * test/GrowSegmentTest.cc
  5237. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. Do not send referer when redirected.
  5239. * src/Request.cc (redirectUrl)
  5240. * test/RequestTest.cc
  5241. * test/HttpRequestTest.cc
  5242. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Implemented BitTorrent/http/ftp integrated download.
  5244. I've rewritten lots of files and now some headers have forward
  5245. class declarations to reduce compile time.
  5246. The implementation is extremely alpha stage, I recommend to use this
  5247. for testing purpose only.
  5248. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Fixed the compilation error on 64bit platform.
  5250. * test/HttpHeaderProcessorTest.cc
  5251. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Merged Ross's patch that fixes compilation problem in MinGW
  5253. * test/DefaultBtProgressInfoFileTest.cc
  5254. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Updated fr.po by sebone
  5256. * po/fr.po
  5257. Updated man page.
  5258. * doc/aria2c.1.txt
  5259. * Release 0.11.3
  5260. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  5262. failure in Metalink.
  5263. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5264. Automatically save *.aria2 control file of http/ftp download in every
  5265. 60 seconds.
  5266. * src/AutoSaveCommand.{h, cc}: New class.
  5267. * src/TimeBasedCommand.{h, cc}: New class.
  5268. * src/DownloadEngineFactory.cc (newConsoleEngine)
  5269. Disable parameterized URI support by default. Added -P option to
  5270. enable the feature.
  5271. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  5272. * src/OptionHandlerFactory.cc
  5273. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  5274. Updated Japanese translation.
  5275. * po/ja.po
  5276. Updated man page.
  5277. * doc/aria2c.1.txt
  5278. * Release 0.11.3-rc
  5279. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5281. it is successful, then renamed to *.aria2.
  5282. This prevents *.aria2 file from being truncated or corrupted when
  5283. file system becomes out of space.
  5284. * src/DefaultBtProgressInfoFile.cc (save)
  5285. * src/SegmentMan.cc (save)
  5286. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5287. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5288. Reduced the fragmentation of bitfield in http/ftp download.
  5289. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5290. * test/BitfieldManTest.cc
  5291. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. Added the ability to disable segmented download in .metalink.
  5293. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5294. 'url' tag.
  5295. * src/MetalinkEntry.{h, cc}
  5296. * src/RequestResource.{h, cc}
  5297. * src/MetalinkRequestInfo.cc
  5298. * src/Xml2MetalinkProcessor.cc
  5299. * test/Xml2MetalinkProcessorTest.cc
  5300. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Added parameterized URI support.
  5302. * src/main.cc: -Z option added.
  5303. * src/OptionHandlerFactory.cc
  5304. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5305. * src/PStringDatum.h: New class.
  5306. * src/PStringSegment.{h,cc}: New class.
  5307. * src/PStringNumLoop.h: New class.
  5308. * src/PStringSelect.h: New class.
  5309. * src/NumberDecorator.h: New class.
  5310. * src/FixedWidthNumberDecorator.h: New class.
  5311. * src/AlphaNumberDecorator.h: New class.
  5312. * src/PStringVisitor.h: New class.
  5313. * src/PStringBuildVisitor.{h,cc}: New class.
  5314. * src/ParameterizedStringParser.{h,cc}: New class.
  5315. * src/Util.{h,cc}
  5316. (isNumber): New function.
  5317. (isLowercase): New function.
  5318. (isUppercase): New function.
  5319. (alphaToNum): New function.
  5320. * test/ParameterizedStringParserTest.cc: New class.
  5321. * test/AlphaNumberDecoratorTest.cc: New class.
  5322. * test/PStringBuildVisitorTest.cc: New class.
  5323. * test/UtilTest.cc
  5324. (testIsNumber): New function.
  5325. (testIsLowercase): New function.
  5326. (testIsUppercase): New function.
  5327. (testAlphaToNum): New function.
  5328. Added '\n' after the error message
  5329. * src/RequestInfo.h (printDownloadAbortMessage)
  5330. Added auto file renaming feature in http(s)/ftp download.
  5331. * src/main.cc: Added --auto-file-renaming command-line option.
  5332. * src/OptionHandlerFactory.cc
  5333. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5334. * src/RequestGroup.{h, cc}
  5335. (shouldCancelDownloadForSafety): Rewritten
  5336. (tryAutoFileRenaming): New function.
  5337. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5338. * src/HttpResponseCommand.cc
  5339. (executeInternal): Removed the call to RequestGroupMan::
  5340. isSameFileBeingDownloaded()
  5341. * src/FtpNegotiateCommand.cc
  5342. (recvSize): Removed the call to RequestGroupMan::
  5343. isSameFileBeingDownloaded()
  5344. * test/RequestGroupTest.cc: New class.
  5345. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5347. IO.
  5348. * src/DefaultBtProgressInfoFile.cc
  5349. * src/MetaFileUtil.cc
  5350. * src/SimpleLogger.cc
  5351. * src/SegmentMan.cc
  5352. * src/Util.cc
  5353. * src/Platform.cc
  5354. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5356. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5357. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5358. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5359. Fixed the bug that prevents file allocation is not done when
  5360. dowloading multi-torrent file.
  5361. * src/AbstractDiskWriter.cc (openFile)
  5362. Increase the maximum number of -j option from 15 to 45.
  5363. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5364. Added fr.po, thanks to Charles Landemaine.
  5365. * po/fr.po
  5366. * po/LINGUAS
  5367. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5368. gcc 3.4.4 support:
  5369. * src/DefaultBtContext.cc: int32_t -> int
  5370. * src/main.cc: int -> int32_t, int32_t -> int
  5371. * src/messageDigest.h: uint32_t -> unsigned int
  5372. * src/NameResolver.h: int32_t -> int
  5373. * src/PeerConnection.cc: int -> int32_t
  5374. * src/SpeedCalc.cc: int32_t -> int
  5375. * src/TrackerUpdateCommand.h: int -> int32_t
  5376. * src/Util.cc: int32_t -> int
  5377. * src/Util.h: int32_t -> int
  5378. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5379. * test/AnnounceListTest.cc: int -> int32_t
  5380. * test/ChunkedEncodingTest.cc: int -> int32_t
  5381. * test/DataTest.cc: int -> int32_t
  5382. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5383. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5384. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5385. * test/FeatureConfigTest.cc: int -> int32_t
  5386. * test/MetalinkEntryTest.cc: int -> int32_t
  5387. * test/MockBtRequestFactory.h: int -> int32_t
  5388. * test/MockPieceStorage.h: int -> int32_t
  5389. * test/OptionTest.cc: int -> int32_t
  5390. * test/RequestTest.cc: int -> int32_t
  5391. * test/SegmentManTest.cc: int -> int32_t
  5392. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5393. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5394. Move sleep functions to Util class:
  5395. * src/Util.cc
  5396. (sleep): New function.
  5397. (usleep): New function.
  5398. * src/DownloadCommand.cc: sleep -> Util::sleep
  5399. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5400. MinGW build enhancements. The following files are added:
  5401. * src/timegm.{c,h}
  5402. Changes to support the above new files:
  5403. * configure.ac
  5404. * src/Makefile.am
  5405. * src/a2time.h
  5406. * src/Util.cc:
  5407. * src/strptime.c: Added support for %Z option.
  5408. Fixed MinGW non-blocking bug.
  5409. * src/SocketCore.cc
  5410. * src/HttpRequestCommand.cc
  5411. Miscellenous build fixes/enhancements.
  5412. * configure.ac: Added summary report.
  5413. * src/Platform.h: Tweaked #include's.
  5414. * src/a2netcompat.h: Tweaked #include's.
  5415. * src/strptime.h: Tweaked #include's.
  5416. * src/gai_strerror.c: Tweaked #include's.
  5417. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5418. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5419. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5420. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5421. Increased the initial connection size in BitTorrent download to 40.
  5422. * src/BtRuntime.h
  5423. Added the usage message of --peer-id-prefix option.
  5424. * src/main.cc
  5425. * Release 0.11.2
  5426. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. MessageDigestHelper is introduced in order to simplify the use
  5428. of message digest. Removed repeated code.
  5429. The message digest algorithm is now specified by string, like "sha1",
  5430. "md5".
  5431. * src/messageDigest.{h, cc}
  5432. * src/MessageDigestHelper.{h, cc}: New class.
  5433. * src/DefaultPieceStorage.cc
  5434. * src/DefaultBtContext.{h, cc}
  5435. (computeFastSet): New function.
  5436. (setInfoHash): Added for unit testing.
  5437. (setNumPieces): Added for unit testing.
  5438. * src/DefaultBtInteractive.cc
  5439. * src/BtPieceMessage.cc
  5440. * src/Peer.cc
  5441. * src/Checksum.h
  5442. * src/message.h
  5443. * src/IteratableChecksumValidator.h
  5444. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5445. inside it.
  5446. * src/SegmentMan.{h, cc}
  5447. (checkIntegrity): Removed.
  5448. * src/IteratableChunkChecksumValidator.{h, cc}
  5449. * src/Util.h
  5450. (sha1Sum): Removed.
  5451. (simpleMessageDigest): Removed.
  5452. (fileChecksum): Removed.
  5453. (computeFastSet): Removed.
  5454. * src/ShaVisitor.cc
  5455. * src/ChunkChecksum.h
  5456. * src/DownloadCommand.cc
  5457. Removed messageDigest virtual functions.
  5458. * src/MultiDiskAdaptor.{h, cc}
  5459. * src/DiskAdaptor.h
  5460. * src/ByteArrayDiskWriter.h
  5461. * src/DiskWriter.h
  5462. * src/DiskAdaptorWriter.h
  5463. * src/AbstractSingleDiskAdaptor.{h, cc}
  5464. * src/AbstractDiskWriter.{h, cc}
  5465. Fixed comilation error when message digest is disabled.
  5466. * src/MetalinkEntry.{h, cc}
  5467. * src/MetalinkRequestInfo.cc
  5468. Removed srandom and random.
  5469. * src/SimpleRandomizer.h
  5470. Added size() virtual function to DiskAdaptor
  5471. * src/MultiDiskAdaptor.h
  5472. Fixed the bug that causes that files are not opened correctly in
  5473. multi-file torrent.
  5474. * src/TorrentRequestInfo.cc
  5475. * src/MultiDiskAdaptor.cc
  5476. Added SHA256 support
  5477. * src/messageDigest.cc
  5478. * src/Xml2MetalinkProcessor.cc
  5479. Show supported message digest algorithms
  5480. * src/main.cc
  5481. Updated contact info.
  5482. * src/main.cc
  5483. Applied Ross's patch
  5484. * src/a2netcompat.h
  5485. * src/main.cc
  5486. Fixed the bug that prevents a remote metalink from not being processed
  5487. even if '-o foo.metalink' is specified.
  5488. * src/MetalinkRequestInfo.cc
  5489. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5490. Merged Dan's patch:
  5491. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5492. Use va_copy to avoid core dump on amd64:
  5493. * src/SimpleLogger.cc
  5494. Updated contact info.
  5495. * src/main.cc
  5496. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5497. digest is not available.
  5498. * src/MetalinkEntry.h
  5499. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Make a2netcompat.h include a2io.h to fix compilation error:
  5501. * src/a2netcompat.h
  5502. * src/SocketCore.cc: Removed include of a2io.h
  5503. * src/Util.cc: Removed include of a2io.h
  5504. Gather time related functions to a2time.h:
  5505. * src/a2time.h: New file.
  5506. * src/DefaultPeerStorage.cc
  5507. * src/SimpleLogger.cc
  5508. * src/Util.{h, cc}
  5509. * src/SimpleRandomizer.h
  5510. * src/TimeA2.{h,cc}
  5511. * src/DownloadCommand.cc
  5512. * src/main.cc
  5513. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5514. a2netcompat.h:
  5515. * src/NameResolver.cc
  5516. Fixed compilation error without openssl:
  5517. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5518. Added default block to suppress compiler warnings:
  5519. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5520. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5521. MinGW build enhancements. The following files are added:
  5522. * src/gai_strerror.{c,h}
  5523. * src/gettimeofday.{c,h}
  5524. Changes to support the above new files:
  5525. * configure.ac
  5526. * src/Makefile.am
  5527. * src/a2netcompat.h
  5528. * src/TimeA2.cc
  5529. * src/DefaultPeerStorage.cc
  5530. * src/NameResolver.cc: removed mingw_strerror() function.
  5531. * src/SocketCore.cc: removed mingw_strerror() function.
  5532. Miscellaneous MinGW build fixes.
  5533. * src/a2io.h: Use _lseeki64() instead of lseek()
  5534. * src/common.h
  5535. * src/DefaultFileAllocator.cc
  5536. * src/GlowFileAllocator.cc
  5537. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5538. * src/NameResolver.cc
  5539. (callback): Changed int32_t to int.
  5540. (resolve): Changed int32_t to int.
  5541. * src/Platform.cc
  5542. * src/Platform.h
  5543. * test/MultiDiskWriterTest.cc
  5544. * test/PeerMessageUtilTest.cc
  5545. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5546. Other enhancements and fixes.
  5547. * src/HttpRequestCommand.cc
  5548. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5549. * src/SocketCore.cc:
  5550. (error): New function to abstract errno/WSAGetLastError().
  5551. (errorMsg): New function to abstract errno/WSAGetLastError().
  5552. (initiateSecureConnection): Added more detailed error reporting.
  5553. * src/SocketCore.h: Added private variable blocking, to allow
  5554. proper handling of OpenSSL psuedo-errors.
  5555. * src/message.h
  5556. (EX_SSL_INIT_FAILURE)
  5557. (EX_SSL_IO_ERROR)
  5558. (EX_SSL_PROTOCOL_ERROR)
  5559. (EX_SSL_UNKNOWN_ERROR)
  5560. (EX_SSL_CONNECT_ERROR)
  5561. (EX_SOCKET_BLOCKING)
  5562. (EX_SOCKET_NONBLOCKING)
  5563. (EX_SOCKET_UNKNOWN_ERROR)
  5564. * src/Util.cc
  5565. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5566. reserved name.
  5567. (httpGMT): Fixed typo.
  5568. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Merged Ross's win32 patch(manually)
  5570. In the course of merging, following files are added.
  5571. * src/strptime.{h,c}
  5572. * src/libgen.{h,c}
  5573. * src/inet_aton.{h,c}
  5574. * src/Platform.{h,cc}
  5575. * src/localtime_r.{h,c}
  5576. * src/getaddrinfo.{h,c}
  5577. I've gethered network related things, and put them to following file:
  5578. * src/a2netcompat.h
  5579. Also io related things are put to following file:
  5580. * src/a2io.h
  5581. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5582. * src/message.h
  5583. (MSG_ALLOCATION_COMPLETED)
  5584. (EX_TOO_LARGE_FILE)
  5585. (EX_SIZE_MISMATCH)
  5586. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5587. (EX_INVALID_CHUNK_CHECKSUM)
  5588. (EX_INVALID_RANGE_HEADER)
  5589. * src/FileAllocationCommand.cc
  5590. * src/HttpResponse.cc
  5591. * src/RequestGroup.cc
  5592. * src/MultiDiskAdaptor.cc
  5593. * src/OptionHandlerImpl.h
  5594. * src/HttpResponseCommand.cc
  5595. * src/FtpNegotiateCommand.cc
  5596. * src/IteratableChecksumValidator.cc
  5597. * src/SegmentMan.cc
  5598. * src/ChunkChecksumValidator.cc
  5599. Added Randomizer::getRandomNumber(long int)
  5600. * src/Randomizer.h (getRandomNumber)
  5601. * src/SimpleRandomizer.h (getRandomNumber)
  5602. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5603. * src/Util.cc (randomAlpha): Use this new function.
  5604. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5605. Converted int's to in32_t. long long int's are also converted to
  5606. int64_t
  5607. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5608. Fixed the bug that prevents cookies from being sent to the server
  5609. if the domain of cookie is FQDN and starts with ".".
  5610. * src/Cookie.cc (match)
  5611. To add the ability to change peer id.
  5612. * src/DefaultBtContext.h
  5613. (_peerIdPrefix): New variable
  5614. (setPeerIdPrefix): New function.
  5615. * src/torrentRequestInfo.cc
  5616. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  5617. DefaultBtContext.
  5618. * src/main.cc (main): Added peer-id-prefix command-line option.
  5619. The usage message is not added yet.
  5620. * src/DefaultBtContext.cc
  5621. (generatePeerId): Use _peerIdPrefix.
  5622. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  5623. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Fixed the bug that prevents filename in content-disposition from
  5625. being retrieved when filename is not quoted.
  5626. * src/Util.cc (getContentDispositionFilename)
  5627. Fixed the bug that causes infinate loop and memory leak when file open
  5628. operation failed.
  5629. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5630. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. Fixed the bug that causes segfault when all URIs specified are
  5632. unsupported.
  5633. * src/RequestGroupMan.cc (getInitialCommands)
  5634. Check if RequestGroup::createNextCommand() returns empty list of
  5635. commands.
  5636. * src/RequestGroup.cc (createNextCommand)
  5637. Change log level from info to error so that users can notice that
  5638. an error occurred.
  5639. Fixed the bug that causes segfault when a zero-sized file is
  5640. downloaded.
  5641. * src/BitfieldMan.cc (isAllBitSet)
  5642. Return true if bitfieldLength is 0.
  5643. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. * src/main.cc
  5645. (showUsage): Added 3 usage examples for metalink download.
  5646. Replace MetalinkChunkChecksum with ChunkChecksum.
  5647. * src/MetalinkChunkChecksum.h: Removed.
  5648. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5649. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5650. * src/Xml2MetalinkProcessor.cc
  5651. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5652. * src/MetalinkRequestInfo.cc (execute)
  5653. * Release 0.11.1
  5654. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Reads URIs from stdin when "-i -" is specified.
  5656. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5657. * src/UriListParser.h, src/UriListParser.cc: New class.
  5658. * src/StreamUriListParser.h: New class.
  5659. * src/FileUriListParser.h: New class.
  5660. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5661. instead of UriFileListParser.
  5662. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Made console readout more readable.
  5664. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5665. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Fix the bug that causes -s option not to work.
  5667. * src/main.cc (main)
  5668. * src/a2algo.h: New file.
  5669. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5670. Create directory structure specified in metalink file.
  5671. * src/RequestGroup.h, src/RequestGroup.cc
  5672. (initAndOpenFile): Create a directory to store files if it does not
  5673. exist.
  5674. (getDir): New function.
  5675. Added ETA and download speed for an individual file to readout.
  5676. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5677. * src/RequestGroup.h
  5678. (calculateDownloadSpeed): New function.
  5679. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Made -S option work with metalink file and provided selective download
  5681. to metalink.
  5682. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5683. (filename): Removed.
  5684. (file): New variable.
  5685. (size): Removed.
  5686. (operator=): Updated.
  5687. (getPath): New function.
  5688. (getLength): New function.
  5689. (toFileEntry): New function.
  5690. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5691. (execute): Use toStream.
  5692. (showFileEntry): Removed.
  5693. * src/MetalinkRequestInfo.h
  5694. (targetFiles): New variable.
  5695. (setTargetFiles): New variable.
  5696. * src/MetalinkRequestInfo.cc
  5697. (execute): Added the ability to print file information included in
  5698. a metalink file.
  5699. Added selective download mode to metalink.
  5700. * src/main.cc
  5701. (showUsage): Updated to denote that -S and --select-file options are
  5702. applicable to metalink.
  5703. * src/FileEntry.h
  5704. (operator=): New function.
  5705. (getBasename): New function.
  5706. (getDirname): New function.
  5707. * src/Util.h, src/Util.cc
  5708. (toStream): New function.
  5709. * src/Xml2MetalinkProcessor.cc: Updated.
  5710. Made aria2 work with metalink with directory structure.
  5711. * src/File.h, src/File.cc
  5712. (getBasename): New function.
  5713. (getDirname): New function.
  5714. * src/RequestGroup.h, src/RequestGroup.cc
  5715. (_topDir): New variable.
  5716. (setTopDir): New function.
  5717. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5718. Rewrote HTTP header parsing with stringstream.
  5719. * src/HttpConnection.h, src/HttpConnection.cc
  5720. (HttpRequestEntry): New class.
  5721. (headerBuf): Removed.
  5722. (headerBufLength): Removed.
  5723. (outstandingHttpRequests): Now its element type is
  5724. HttpRequestEntryHandle.
  5725. (findEndOfHeader): Removed.
  5726. (receiveResponse): Rewritten.
  5727. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5728. Updated doc for -j option to notice that it should be used with -i
  5729. option.
  5730. * src/main.cc (showUsage)
  5731. Removed unused classes.
  5732. * src/RequestInfo.h
  5733. (FileInfo): Removed.
  5734. (checksum): Removed.
  5735. (fileInfo): Removed.
  5736. (setChecksum): Removed.
  5737. (getChecksum): Removed.
  5738. (getFileInfo): Removed.
  5739. Use ISO units.
  5740. * src/ConsoleDownloadEngine.cc
  5741. * src/TorrentConsoleDownloadEngine.cc
  5742. * src/Util.cc (abbrevSize)
  5743. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Added the default listening ports to the help message.
  5745. * src/main.cc (showUsage)
  5746. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Reduce the number of calls to gettimeofday to lower CPU load.
  5748. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5749. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5750. * src/Peer.h (calculateUploadSpeed): New function.
  5751. (calculateDownloadSpeed): New function.
  5752. * src/DefaultPeerStorage.cc
  5753. (CalculateStat): Added _now variable.
  5754. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5755. and Peer::calculateUploadSpeed(const struct timeval&)
  5756. Drop connection if no request or piece message is exchanged in
  5757. a certain interval.
  5758. * src/DefaultBtInteractive.h
  5759. (btRuntime): New variable.
  5760. (inactiveCheckPoint): New variable.
  5761. (checkActiveInteraction): New function.
  5762. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5763. request or piece message is received.
  5764. (checkActiveInteraction): New function.
  5765. (doInteractionProcessing): Call checkActiveInteraction.
  5766. Fixed the bug that causes remote Metalink and Torrent files are not
  5767. processed.
  5768. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5769. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Changed format of log file.
  5771. * src/SimpleLogger.cc
  5772. * Release 0.11.0
  5773. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. * src/AbstractCommand.cc
  5775. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5776. MSG_MAX_TRY from error to info.
  5777. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5778. * src/message.h
  5779. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5780. (MSG_DOWNLOAD_ABORTED): Added %s.
  5781. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5782. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5783. * src/PeerAbstractCommand.cc
  5784. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5785. * src/Request.h
  5786. (cookieBox): Made ShardHandle.
  5787. * src/RequestGroup.h, src/RequestGroup.cc
  5788. (createNextCommandWithAdj): New function.
  5789. * src/FileAllocationCommand.cc
  5790. (executeInternal): Use createNextCommandWithAdj().
  5791. * src/CheckIntegrityCommand.cc
  5792. (executeInternal): Use createNextCommandWithAdj().
  5793. Added --load-cookies command-option.
  5794. * src/OptionHandlerFactory.cc
  5795. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5796. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5797. Now aria2 can handle cookie's expiration date.
  5798. * src/Cookie.h (expires): Changed its type to time_t.
  5799. * src/main.cc: Added --load-cookies command-line option.
  5800. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5801. * src/Util.h, src/Util.cc (httpGMT): New function.
  5802. * src/Request.cc (Request): Initialize cookieBox using
  5803. CookieBoxFactory.
  5804. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5805. * src/CookieParser.h, src/CookieParser.cc: New class.
  5806. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5807. * src/HttpResponseCommand.cc
  5808. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5809. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5810. download.
  5811. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Added -j command-line option.
  5813. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5814. * src/main.cc
  5815. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5816. Rewritten using stringstream.
  5817. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5818. Rewritten using stringstream.
  5819. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Make download size shown in MB, KB.
  5821. * src/ConsoleDownloadEngine.h (sendStatistics)
  5822. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5823. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Accept incoming connections if download rate is low.
  5825. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5826. (_lowestSpeedLimit): New variable.
  5827. (setLowestSpeedLimit): New function.
  5828. (execute): Accept incoming connections if download rate is low.
  5829. MAX_PEERS is ignored in this case.
  5830. Disable PREF_OUT in multiple concurrent download:
  5831. * src/RequestGroup.h, src/RequestGroup.cc
  5832. (setUserDefinedFilename): New function.
  5833. * src/DownloadEngineFactory.cc
  5834. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5835. concurrent download.
  5836. * src/DefaultSegmentManFactory.cc
  5837. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5838. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5840. Added its overloaded method.
  5841. * src/RequestGroup.h
  5842. (_numConcurrentCommand): New variable.
  5843. (setNumConcurrentCommand): New function.
  5844. * src/RequestGroup.cc
  5845. Abort download if same file is being downloaded concurrently.
  5846. * src/RequestGroup.h, src/RequestGroupMan.cc
  5847. (isSameFileBeingDownloaded): New function.
  5848. * src/HttpResponseCommand.cc (executeInternal)
  5849. * src/FtpNegotiateCommand.cc (recvSize)
  5850. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  5851. * main.cc: Added help message for -i option.
  5852. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5853. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  5854. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  5855. * src/MetalinkEntry.h
  5856. (checksum): Changed to ChecksumHandle
  5857. * src/MetalinkRequestInfo.cc
  5858. (checksum): Changed to ChecksumHandle
  5859. * src/File.cc
  5860. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  5861. * src/common.h
  5862. (DIR_OPEN_MODE): New definition
  5863. * src/RequestGroup.cc
  5864. (prepareForNextAction): Added an argument.
  5865. * src/message.h
  5866. (MSG_GOOD_CHECKSUM): New definition
  5867. (MSG_BAD_CHECKSUM): New definition
  5868. * src/HttpResponseCommand.cc
  5869. (handleDefaultEncoding): Continue download sequence in new
  5870. non-segmented download.
  5871. * src/FileAllocationEntry.h
  5872. (_nextDownloadCommand): New variable.
  5873. * src/DownloadCommand.cc
  5874. (prepareForNextSegment): Create ChecksumCommand if checksum is
  5875. available.
  5876. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  5877. * src/IteratableChecksumValidator.h,
  5878. src/IteratableChecksumValidator.cc: New class.
  5879. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  5880. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Change file mode to 666:
  5882. * src/common.h (OPEN_MODE): New definition.
  5883. * src/File.cc
  5884. * src/Util.cc
  5885. * src/Directry.cc
  5886. * src/AbstractDiskWriter.cc
  5887. Change the level of log message "download aborted" to debug:
  5888. * src/PeerAbstractCommand.cc (execute)
  5889. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  5890. * src/TrackerWatcherCommand.cc
  5891. (createCommand): Sleep some seconds after request failed.
  5892. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  5893. then abort tracker request.
  5894. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. * Added the simultaneous download feature.
  5896. * src/main.cc: Print "Exception caught: " when exception is caught.
  5897. Use CUIDCounter instead of BtRuntime::getNewCuid():
  5898. * src/ActivePeerConnectionCommand.cc
  5899. * src/PeerInteractionCommand.cc
  5900. * src/BtRuntime.h
  5901. (cuidCounter): Removed.
  5902. (getNewCuid): Removed.
  5903. * src/DownloadEngineFactory.cc
  5904. * src/PeerListenCommand.cc
  5905. * src/TrackerUpdateCommand.cc
  5906. * src/PeerInitiateConnectionCommand.cc
  5907. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. * src/PeerAbstractCommand.cc
  5909. (onAbort): Call PeerStorage::returnPeer()
  5910. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  5911. (incomingPeers): New variable.
  5912. (addIncomingPeer): New function.
  5913. (returnPeer): New function.
  5914. (onErasingPeer): New function.
  5915. (addPeer): push_back -> push_front
  5916. (getActivePeers): Rewritten.
  5917. (calculateStat): Rewritten.
  5918. * src/PeerStorage.h
  5919. (TransferStat::copy): New function.
  5920. (TransferStat::TransferStat): New function.
  5921. (TransferStat::operator=): New function.
  5922. (addIncomingPeer): New function.
  5923. (returnPeer): New function.
  5924. * src/PeerListenCommand.cc
  5925. (execute): Use PeerStorage::addIncomingPeer() instead of
  5926. Peer::addPeer().
  5927. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5928. Connect to a peer actively when download speed is lower than specified
  5929. speed in torrent download:
  5930. * src/ActivePeerConnectionCommand.h: New class.
  5931. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. * src/HttpRequest.cc (createRequest): url-encode user-agent
  5933. * src/main.cc: Fixed the bug that prevents download if .netrc
  5934. doesn't exist.
  5935. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. To cache resolved hostname:
  5937. * src/AbstractCommand.h, src/AbstractCommand.cc
  5938. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  5939. Added dns cache.
  5940. * src/FtpInitiateConnectionCommand.cc
  5941. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  5942. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  5943. NameResolver working without ares.
  5944. * src/TorrentRequestInfo.cc
  5945. (execute): Don't cache dns in torrent download.
  5946. * src/HttpInitiateConnectionCommand.cc
  5947. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  5948. * src/DNSCache.h: New class.
  5949. * src/UrlRequestInfo.cc
  5950. (execute): Use dns cache.
  5951. In http request, suppress port number in http request header if port
  5952. is 80 or 443:
  5953. * src/HttpRequest.cc (getHostText): Suppress port number in http
  5954. request header if port is 80 or 443.
  5955. (createProxyRequest): Allways send port number.
  5956. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5957. To add the command-line option which disables netrc support:
  5958. * src/OptionHandlerFactory.cc
  5959. (createOptionHandlers): Added PREF_NO_NETRC.
  5960. * src/main.cc: Added -n option.
  5961. * src/prefs.h (PREF_NO_NETRC): New definition.
  5962. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  5963. V_TRUE.
  5964. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  5965. is V_FALSE. This may get configurable in the future release.
  5966. To clear peer's error status by time basis:
  5967. * src/PeerAbstractCommand.cc
  5968. (onAbort): Call Peer::startBadCondition().
  5969. * src/Peer.h, src/Peer.cc
  5970. (error): Removed.
  5971. (_badConditionStartTime): New variable.
  5972. (_badConditionInterval): New variable. Initialized to 10 seconds.
  5973. (startBadCondition): New function.
  5974. (isGood): New function.
  5975. * src/DefaultPeerStorage.cc
  5976. (addPeer): Use Peer::isGood().
  5977. (FindFinePeer): Use Peer::isGood().
  5978. Always include port number in http request header:
  5979. * src/HttpRequest.cc (getHostText): Always include port number in
  5980. http request header.
  5981. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. To the ability to read options from a config file:
  5983. * src/main.cc: Command-line parameter validation is delegated to
  5984. OptionHandler class.
  5985. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  5986. * src/Option.h, src/Option.cc (clear): New function.
  5987. * src/OptionParser.h, src/OptionParser.cc: New class.
  5988. * src/OptionHandler.h: New class.
  5989. * src/NameMatchOptionHandler.h: New class.
  5990. * src/OptionHandlerImpl.h: New classes.
  5991. * src/prefs.h: '_' -> '-'
  5992. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  5993. (FTP_PASV): New definition.
  5994. * src/Util.h, src/Util.cc (getRealSize): New function.
  5995. To disable netrc support if .netrc file does not have correct
  5996. permissions:
  5997. * src/File.h, src/File.cc (mode): New function.
  5998. To prevent confidential information to be logged:
  5999. * src/HttpConnection.h, src/HttpConnection.cc
  6000. (eraseConfidentialInfo): New function.
  6001. (sendRequest): Call eraseConfidentialInfo().
  6002. (sendProxyRequest): Call eraseConfidentialInfo().
  6003. * src/main.cc: Validate permissions of .netrc file.
  6004. To add --user-agent command-line option:
  6005. * src/main.cc: Added new command line option: --user-agent
  6006. * src/prefs.h (PREF_USER_AGENT): New definition.
  6007. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6008. parameter to HttpRequest object.
  6009. * src/AbstractProxyRequestCommand.cc
  6010. (executeInternal): Set user-agent option parameter to HttpRequest
  6011. object.
  6012. Marged the patches from Dan Fandrich.
  6013. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Use filename and size from Metalink file instead of sending HEAD
  6015. request:
  6016. * src/UrlRequestInfo.h
  6017. (_filename): New variable.
  6018. (_totalLength): New variable.
  6019. (setTotalLength): New variable.
  6020. (setFilename): New variable.
  6021. * src/MetalinkRequestInfo.cc
  6022. (execute): Set filename and size to UrlRequestInfo
  6023. * src/UrlRequestInfo.cc
  6024. (execute): Use filename and size from Metalink instead of seding
  6025. HEAD request to servers.
  6026. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. To add the ability to resume downloading a partially downloaded file
  6028. which is downloaded from the beginning:
  6029. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6030. takes this role.
  6031. * src/main.cc: Added -c option.
  6032. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6033. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6034. * src/prefs.h (PREF_CONTINUE): New definition.
  6035. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6036. * src/DefaultDiskWriter.cc
  6037. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6038. * src/AbstractDiskWriter.h
  6039. (glowFileAllocator): New variable.
  6040. * src/AbstractDiskWriter.cc
  6041. (openExistingFile): Now preallocate file space from the end of the
  6042. existing file if totalLength argument is specified and grater than 0.
  6043. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6044. to download exists in local, continue the download of the file.
  6045. --allow-overwrite=true is assumed in this context.
  6046. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6047. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6048. Throw exception if --check-integrity=true is specified but chunk
  6049. checksums are not provided:
  6050. * src/UrlRequestInfo.cc
  6051. Do not print URLs to stdout:
  6052. * src/UrlRequestInfo.cc
  6053. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. * src/Request.h: Use AuthResolver to get authentication information.
  6055. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6056. set to RequestFactory object.
  6057. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6058. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6059. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6060. create Request object.
  6061. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6062. To integrate Netrc into exsiting classes:
  6063. * src/Request.h
  6064. (_userDefinedAuthConfig): New variable.
  6065. (findNetrcAuthenticator): New function.
  6066. (segment): Removed.
  6067. (setUserDefinedAuthConfig): New function.
  6068. (resolveHttpAuthConfigItem): New function.
  6069. (resolveFtpAuthConfigItem): New function.
  6070. (resolveHttpProxyAuthConfigItem): New function.
  6071. * src/HttpRequest.h
  6072. (authConfig): Removed.
  6073. (proxyAuthConfig): Removed.
  6074. (setAuthConfig): Removed.
  6075. (setProxyAuthConfig): Removed.
  6076. * src/UrlRequest.h
  6077. (getHeadResult): Added a parameter: authConfigHandle
  6078. * src/common.h
  6079. (SingletonHolder.h): New include.
  6080. * src/main.cc
  6081. (Netrc.h): New include.
  6082. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6083. Added initial value of PREF_NETRC_PATH.
  6084. Added the initialization of netrc.
  6085. * src/AuthConfig.h: New class.
  6086. * src/prefs.h
  6087. (PREF_NETRC_PATH): New definition.
  6088. * src/HttpAuthConfig.h: Removed.
  6089. * src/Netrc.cc
  6090. (getRequiredNextToken): New function.
  6091. (skipMacdef): New function.
  6092. (parse): Rewritten.
  6093. * src/Netrc.h
  6094. (getRequiredNextToken): New function.
  6095. (skipMacdef): New function.
  6096. * src/Util.h, src/Util.cc
  6097. (getHomeDir): New function.
  6098. * src/TrackerWatcherComand.cc
  6099. (createRequestCommand): Use AuthConfig.
  6100. * src/FtpConnection.cc
  6101. (sendUser): Use Request::resolveFtpAuthConfigItem().
  6102. (sendPass): Use Request::resolveFtpAuthConfigItem().
  6103. * src/Request.cc
  6104. (findNetrcAuthenticator): New function.
  6105. (resolveHttpAuthConfigItem): New function.
  6106. (resolveFtpAuthConfigItem): New function.
  6107. (resolveHttpProxyAuthConfigItem): New function.
  6108. * src/UrlRequestInfo.cc: Use AuthConfig.
  6109. * src/HttpRequest.cc
  6110. (createRequest): Use authConfig.
  6111. (getProxyAuthString): Use authConfig.
  6112. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  6113. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  6114. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. To reduce overhead to find commands whose socket is either
  6116. readable or writable in the download engine loop:
  6117. * src/Command.h, src/Command.cc
  6118. (STATUS): New enum.
  6119. (status): New variable.
  6120. (statusMatch): New function.
  6121. (setStatusActive): New function.
  6122. (setStatusInactive): New function.
  6123. * src/DownloadEngine.h, src/DownloadEngine.cc
  6124. (executeCommand): New function.
  6125. (run): Simplified.
  6126. (waitData): Call Command::setStatusActive() when command's socket is
  6127. readable or writable.
  6128. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6129. To handle Segment as SegmentHandle:
  6130. * src/AbstractCommand.cc (execute): Rewritten.
  6131. * src/SegmentMan.h: Segment -> SegmentHandle
  6132. Introducded HttpResponse class, HttpRequest class to improve code
  6133. extensiveness and make it clear:
  6134. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  6135. HttpResponse class.
  6136. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  6137. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  6138. * src/HttpConnection.cc: Contruction of http request were moved to
  6139. HttpRequest class.
  6140. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  6141. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  6142. * src/HttpAuthConfig.h: New class.
  6143. * src/Range.h: New class.
  6144. To make FtpTunnel{Request, Response}Command and
  6145. HttpProxy{Request, Response}Command derived from
  6146. AbstractProxy{Request, Response}Command:
  6147. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  6148. Derived from AbstractProxyRequestCommand class.
  6149. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  6150. Derived from AbstractProxyResponseCommand class.
  6151. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  6152. Derived from AbstractProxyRequestCommand class.
  6153. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  6154. Derived from AbstractProxyResponseCommand class.
  6155. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  6156. : New class.
  6157. * src/AbstractProxyResponseCommand.h,
  6158. src/AbstractProxyResponseCommand.cc: New class.
  6159. To add netrc support:
  6160. * src/Netrc.h, src/Netrc.cc: New class.
  6161. * src/Util.h, src/Util.cc (split): New function.
  6162. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  6163. "Content-Range" header instead of "Range" header.
  6164. * src/HttpHeader.h
  6165. (getStatus): Removed.
  6166. (setStatus): Removed.
  6167. * src/Segment.h
  6168. (getPositionToWrite): New function.
  6169. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6170. * src/HttpHeader.h
  6171. (Range.h): New include.
  6172. (status): New variable.
  6173. (HttpHeader): Initialized status with 0.
  6174. (getStatus): New function.
  6175. (setStatus): New function.
  6176. (getRange): New function.
  6177. (HttpHeaderHandle): New function.
  6178. * src/HttpHeader.cc
  6179. (getRange): New function.
  6180. * src/Request.h
  6181. (RequestWeakHandle): New definition.
  6182. * src/HttpConnection.h
  6183. (HttpConnectionHandle): New type definition.
  6184. * src/HttpConnection.cc
  6185. (receiveResponse): Set HTTP status to headers.
  6186. * src/main.cc
  6187. (showUsage): Fixed typo.
  6188. * src/Segment.h
  6189. (SegmentHandle): New type definition.
  6190. * src/BitfieldMan.h
  6191. (getMissingUnusedLength): New function.
  6192. * src/BitfieldMan.cc
  6193. (getMissingUnusedLength): New function.
  6194. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. To fix static initialization order problem:
  6196. * src/BitfieldManFactory.h
  6197. (defaultRandomizer): Removed.
  6198. (factory): New variable.
  6199. (getNewFactory): Removed.
  6200. (getFactoryInstance): New function.
  6201. (setDefaultRandomizer): Rewritten.
  6202. (getDefaultRandomizer): Rewritten.
  6203. * src/BitfieldManFactory.cc
  6204. (defaultRandomizer): Removed.
  6205. (factory): Initialized to 0.
  6206. (BitfieldManFactory): Initialized randomizer to 0.
  6207. * src/DefaultPieceStorage.cc
  6208. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  6209. * src/Peer.cc
  6210. (Peer): getNewFactory() -> getFactoryInstance()
  6211. * src/SegmentMan.cc
  6212. (initBitfield): getNewFactory() -> getFactoryInstance()
  6213. * src/Piece.cc
  6214. (Piece): getNewFactory() -> getFactoryInstance()
  6215. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. To fix the bug that causes crash on Max OS X:
  6217. * src/SimpleRandomizer.h
  6218. (getInstance): Create new instance if the static variable is null.
  6219. * src/SimpleRandomizer.cc
  6220. (randomizer): Initialized to 0.
  6221. * src/BitfieldManFactory.h
  6222. (getNewFactory): Removed the call to setRandomizer().
  6223. To fix the miscalculation of the range of checksum:
  6224. * src/BitfieldMan.h
  6225. (isBitSetOffsetRange): New function.
  6226. * src/BitfieldMan.cc
  6227. (isBitSetOffsetRange): New function.
  6228. * src/SegmentMan.cc
  6229. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  6230. Use bitfield->getBlockLength() instead of segment.segmentLength.
  6231. * Release 0.10.1
  6232. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. To lower CPU usage in BitTorrent download when --max-upload-limit
  6234. command-line option specified:
  6235. * src/DefaultBtMessageDispatcher.cc
  6236. (sendMessages): Calculate uploading speed only when current message
  6237. is uploading data and is not sent yet.
  6238. * src/DefaultPeerStorage.h
  6239. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  6240. * src/HttpResponseCommand.cc
  6241. (handleDefaultEncoding): Added the cast to int32_t to itos.
  6242. This fixes compile error in Soralis 10.
  6243. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. To fix segfault in Metalink download:
  6245. * src/UrlRequestInfo.h
  6246. (filename): Removed.
  6247. (totalLength): Removed.
  6248. (setTotalLength): Removed.
  6249. (setFilename): Removed.
  6250. * src/MetalinkRequestInfo.cc
  6251. (execute): Do not set filename and totalLength to reqInfo.
  6252. Set chunk checksum to reqInfo if it is not null.
  6253. * src/HttpResponseCommand.cc
  6254. (executeInternal): Fixed filename in log.
  6255. (handleDefaultEncoding): Removed the call to initBitfield() and
  6256. markAllPiecesDone().
  6257. (handleOtherEncoding): Added HEAD method handling.
  6258. * src/FtpNegotiateCommand.cc
  6259. (executeInternal): Added SEQ_HEAD_OK handling.
  6260. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  6261. return false.
  6262. * src/FtpNegotiateCommand.h
  6263. (SEQ_HEAD_OK): New definition.
  6264. * src/SegmentMan.cc
  6265. (initBitfield): Delete bitfield.
  6266. (isChunkChecksumValidationReady): Fixed the condition.
  6267. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  6268. works fine.
  6269. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. * src/Xml2MetalinkProcessor.h
  6271. (xpathExists): New function.
  6272. * src/Xml2MetalinkProcessor.cc
  6273. (xpathExists): New function.
  6274. Not to send HEAD request if filename and size are available in Metalink
  6275. file:
  6276. * src/UrlRequestInfo.h
  6277. (filename): New variable.
  6278. (totalLength): New variable.
  6279. (setTotalLength): New function.
  6280. (setFilename): New function.
  6281. * src/MetalinkRequestInfo.cc
  6282. (execute): Set filename and size to UrlRequestInfo.
  6283. * src/MetalinkEntry.cc
  6284. (MetalinkEntry): Initialize size with 0.
  6285. * src/UrlRequestInfo.cc
  6286. (execute): Set filename and size to SegmentMan.
  6287. Not to download rest of the files after selected files are downloaded
  6288. in BitTorrent:
  6289. * src/PieceStorage.h
  6290. (allDownloadFinished): New function.
  6291. * src/DefaultBtAnnounce.cc
  6292. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6293. downloadFinished.
  6294. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6295. * src/DefaultPieceStorage.cc
  6296. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6297. Commented out the call to finishSelectiveDownloadingMode().
  6298. (downloadFinished): Call isFilteredAllBitSet() instead of
  6299. isAllBitSet().
  6300. (allDownloadFinished): New function.
  6301. * src/DefaultBtInteractive.cc
  6302. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6303. downloadFinished().
  6304. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6305. * src/TorrentDownloadEngine.cc
  6306. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6307. * src/BitfieldMan.h
  6308. (isFilteredAllBitSet): New function.
  6309. * src/ShareRatioSeedCriteria.h
  6310. (PieceStorage.h): New include.
  6311. (pieceStorage): New variable.
  6312. (evaluate):
  6313. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6314. * src/BitfieldMan.cc
  6315. (isFilteredAllBitSet): New function.
  6316. (isAllBitSet): Filter is not took into account.
  6317. Rename --force-truncate as --allow-overwrite:
  6318. * src/TorrentRequestInfo.cc
  6319. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6320. * src/main.cc
  6321. (showUsage): --force-truncate -> --allow-overwrite
  6322. * src/message.h
  6323. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6324. * src/prefs.h
  6325. (PREF_FORCE_TRUNCATE): Removed.
  6326. (PREF_ALLOW_OVERWRITE): New definition.
  6327. * src/SegmentMan.cc
  6328. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6329. * src/MetalinkRequestInfo.cc
  6330. (execute): Queueing message are now logged in info level.
  6331. * src/common.h
  6332. (LONG_LONG_MAX): Removed.
  6333. (LONG_LONG_MIN): Removed.
  6334. * src/HttpResponseCommand.cc
  6335. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6336. * src/FtpNegotiateCommand.cc
  6337. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6338. * src/main.cc
  6339. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6340. command-line option.
  6341. (main): Added --check-integriy and --realtime-chunk-checksum
  6342. command-line option.
  6343. --force-truncate -> --allow-overwrite
  6344. Set initial value of --check-integrity option to false.
  6345. Don't show usage when error occurs while persing command-line options.
  6346. Removed deprecated --upload-limit option.
  6347. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6349. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6350. * src/BtAllowedFastMessage.cc:
  6351. * src/BtBitfieldMessage.cc
  6352. * src/BtCancelMessage.cc
  6353. * src/BtChokeMessage.cc
  6354. * src/BtHaveAllMessage.cc
  6355. * src/BtHaveMessage.cc
  6356. * src/BtHaveNoneMessage.cc
  6357. * src/BtInterestedMessage.cc
  6358. * src/BtNotInterestedMessage.cc
  6359. * src/BtPieceMessage.cc
  6360. * src/BtPortMessage.cc
  6361. * src/BtRejectMessage.cc
  6362. * src/BtRequestMessage.cc
  6363. * src/BtSuggestPieceMessage.cc
  6364. * src/BtUnchokeMessage.cc
  6365. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6366. files are affected.
  6367. * src/ChunkChecksumValidator.cc
  6368. * src/SegmentMan.cc
  6369. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. To add chunk checksum validation:
  6371. * src/MetalinkEntry.h
  6372. (MetalinkChunkChecksum.h): New include.
  6373. (chunkChecksum): New variable.
  6374. * src/Request.h
  6375. (method): New variable.
  6376. (setMethod): New function.
  6377. (getMethod): New function.
  6378. (METHOD_GET): New static constant.
  6379. (METHOD_HEAD): New static constant.
  6380. * src/Xml2MetalinkProcessor.h
  6381. (getPieceHash): New function.
  6382. * src/PieceStorage.h
  6383. (markAllPiecesDone): New function.
  6384. (checkIntegrity): New function.
  6385. * src/FileAllocator.h
  6386. (NullFileAllocationMonitor.h): New include.
  6387. (FileAllocator): Initialize fileAllocationMonitor with new
  6388. NullFileAllocationMonitor().
  6389. * src/MultiDiskAdaptor.h
  6390. (messageDigest.h): Remove include.
  6391. (ctx): Removed.
  6392. (hashUpdate): Added ctx.
  6393. (MultiDiskAdaptor): Removed ctx.
  6394. (sha1Sum): Renamed as messageDigest.
  6395. (messageDigest): New function.
  6396. * src/UrlRequestInfo.h
  6397. (HeadResult): New class.
  6398. (digestAlgo): New variable.
  6399. (chunkChecksumLength): New variable.
  6400. (chunkChecksums): New variable.
  6401. (getHeadResult): New function.
  6402. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6403. (setDigestAlgo): New function.
  6404. (setChunkChecksumLength): New function.
  6405. (setChunkChecksums): New function.
  6406. * src/DefaultPieceStorage.cc
  6407. (DiskAdaptorWriter.h): New include.
  6408. (ChunkChecksumValidator.h): New include.
  6409. (markAllPiecesDone): New function.
  6410. (checkIntegrity): New function.
  6411. * src/DefaultBtContext.h
  6412. (getPieceHashes): New function.
  6413. * src/TorrentRequestInfo.cc
  6414. (execute): Try to validate chunk checksum if file already exists and
  6415. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6416. * src/messageDigest.h
  6417. (~MessageDigestContext): Added digestFree().
  6418. * src/MetalinkRequestInfo.cc
  6419. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6420. * src/DiskAdaptor.h
  6421. (messageDigest.h): New include.
  6422. (sha1Sum): Renamed as messageDigest.
  6423. (messageDigest): New function.
  6424. * src/DownloadCommand.h
  6425. (PeerStat.h): New include.
  6426. (maxDownloadSpeedLimit): New variable.
  6427. (startupIdleTime): New variable.
  6428. (lowestDownloadSpeedLimit): New variable.
  6429. (peerStat): New variable.
  6430. (setMaxDownloadSpeedLimit): New function.
  6431. (setStartupIdleTime): New function.
  6432. (setLowestDownloadSPeedLimit): New function.
  6433. * src/BtContext.h
  6434. (getPieceHashes): New function.
  6435. * src/main.cc
  6436. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6437. option to true for testing purpose.
  6438. * src/BtPieceMessage.cc
  6439. (checkPieceHash): Use messageDigest
  6440. * src/DownloadEngine.cc
  6441. (SetDescriptor): Removed.
  6442. (AccumulateActiveCommand): Removed.
  6443. (waitData): Rewritten.
  6444. (updateFdSet): Rewritten.
  6445. * src/MultiDiskAdaptor.cc
  6446. (hashUpdate): Added ctx.
  6447. (sha1Sum): Renamed as messageDigest.
  6448. (messageDigest): New function.
  6449. * src/BitfieldMan.h
  6450. (isBitRangeSet): New function.
  6451. (unsetBitRange): New function.
  6452. * src/ByteArrayDiskWriter.h
  6453. (sha1Sum): Renamed as messageDigest.
  6454. (messageDigest): New function.
  6455. * src/ConsoleDownloadEngine.cc
  6456. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6457. * src/DiskWriter.h
  6458. (messageDigest.h): New include.
  6459. (sha1Sum): Renamed as messageDigest.
  6460. (messageDigest): New function.
  6461. * src/ChunkChecksumValidator.h: New class.
  6462. * src/DiskAdaptorWriter.h: New class.
  6463. * src/prefs.h
  6464. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6465. (PREF_CHECK_INTEGRITY): New definition.
  6466. * src/HttpResponseCommand.cc
  6467. (handleDefaultEncoding): Added method "HEAD" handling.
  6468. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6469. (handleOtherEncoding):
  6470. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6471. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6472. startupIdleTime, lowestDownloadSpeedLimit to command.
  6473. * src/SegmentMan.h
  6474. (getSegmentEntryByIndex): New function.
  6475. (getSegmentEntryByCuid): New function.
  6476. (getSegmentEntryIteratorByCuid): New function.
  6477. (diskWriter): DiskWriter -> DiskWriterHandle
  6478. (pieceHashes): New variable.
  6479. (chunkHashLength): New variable.
  6480. (digestAlgo): New variable.
  6481. (FindPeerStat): Removed.
  6482. (getPeerStat): Rewritten.
  6483. (markAllPiecesDone): New function.
  6484. (checkIntegrity): New function.
  6485. (tryChunkChecksumValidation): New function.
  6486. (isChunkChecksumValidationReady): New function.
  6487. * src/BitfieldMan.cc
  6488. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6489. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6490. blocks to 0.
  6491. (isBitRangeSet): New function.
  6492. (unsetBitRange): New function.
  6493. * src/FtpNegotiateCommand.cc
  6494. (executeInternal): Set maxDownloadSpeedLimit,
  6495. startupIdleTime, lowestDownloadSpeedLimit to command.
  6496. (recvSize): Added method "HEAD" handling.
  6497. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6498. * src/AbstractSingleDiskAdaptor.cc
  6499. (sha1Sum): Renamed as messageDigest.
  6500. (messageDigest): New function.
  6501. * src/AbstractSingleDiskAdaptor.h
  6502. (sha1Sum): Renamed as messageDigest.
  6503. (messageDigest): New function.
  6504. * src/Util.h
  6505. (indexRange): New function.
  6506. * src/MetalinkEntry.cc
  6507. (MetalinkEntry): Initialized chunkChecksum to 0.
  6508. * src/ShaVisitor.cc
  6509. (~ShaVisitor): Removed the call to ctx.digestFree().
  6510. * src/SegmentMan.cc
  6511. (ChunkChecksumValidator.h): New include.
  6512. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6513. to DIGEST_ALGO_SHA1.
  6514. (~SegmentMan): Removed diskWriter.
  6515. (FindSegmentEntryByIndex): Removed.
  6516. (FindSegmentEntryByCuid): Removed.
  6517. (checkoutSegment): Rewritten.
  6518. (findSlowerSegmentEntry): Rewritten.
  6519. (getSegment): Rewritten.
  6520. (updateSegment): Rewritten.
  6521. (completeSegment): Rewritten.
  6522. (markAllPiecesDone): New function.
  6523. (checkIntegrity): New function.
  6524. (isChunkChecksumValidationReady): New function.
  6525. (tryChunkChecksumValidation): New function.
  6526. * src/Xml2MetalinkProcessor.cc
  6527. (getEntry): Get size and set it to entry.
  6528. Get chunk checksum and set it to entry.
  6529. (getPieceHash): New function.
  6530. * src/Util.cc
  6531. (sha1Sum): Removed ctx.digestFree()
  6532. (fileChecksum): Removed ctx.digestFree()
  6533. (indexRange): New function.
  6534. * src/Request.cc
  6535. (METHOD_GET): New variable.
  6536. (METHOD_HEAD): New variable.
  6537. (Request): Added method.
  6538. * src/UrlRequestInfo.cc
  6539. (FatalException.h): New include.
  6540. (message.h): New include.
  6541. (operator<<): Added operator<< for class HeadResult.
  6542. (getHeadResult): New function.
  6543. (execute): Get filename and size in separate download engine.
  6544. * src/ChunkChecksumValidator.cc: New class.
  6545. * src/DownloadCommand.cc:
  6546. (DownloadCommand): Added peerStat.
  6547. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6548. the value from Option.
  6549. The buffer size is now 16KB.
  6550. Use peerStat member instead of getting it from SegmentMan.
  6551. Use startupIdleTime member instead of gettingit from Option.
  6552. Added chunk checksum validation.
  6553. * src/AbstractDiskWriter.cc
  6554. (AbstractDiskWriter): Removed ctx.
  6555. (~AbstractDiskWriter): Removed ctx.digestFree()
  6556. (writeDataInternal): Returns the return value of write.
  6557. (readDataInternal): Returns the return value of read.
  6558. (sha1Sum): Renamed as messageDigest
  6559. (messageDigest): New function.
  6560. * src/AbstractDiwkWriter.h
  6561. (messageDigest.h): Removed include.
  6562. (ctx): Removed.
  6563. (sha1Sum): Renamed as messageDigest
  6564. (messageDigest): New function.
  6565. * src/DefaultPieceStorage.h
  6566. (markAllPiecesDone): New function.
  6567. (checkIntegrity): New function.
  6568. * src/NullFileAllocationMonitor.h: New class.
  6569. * src/MetalinkChunkChecksum.h: New class.
  6570. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6571. To decrease CPU usage in bittorrent download, calculation results in
  6572. BitfieldMan were cached and realtime fetching PeerObject was removed
  6573. with WeakHandle introduced. Option values are set to the objects
  6574. by setter before download begins.
  6575. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6576. * src/DefaultBtRequestFactory.h
  6577. (dispatcher): BtMessageDispatcherHandle ->
  6578. BtMessageDispatcherWeakHandle.
  6579. (messageFactory): New variable.
  6580. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6581. BtMessageDispatcherWeakHandle.
  6582. (setBtMessageFactory): New function.
  6583. * src/DefaultBtMessageDispatcher.cc:
  6584. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6585. from Option.
  6586. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6587. feating the value from Option.
  6588. Use messageFactory member.
  6589. * src/PeerInteractionCommand.cc
  6590. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6591. Add reverse dependencies to factory object.
  6592. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6593. dispatcher.
  6594. Set messageFactory to receiver.
  6595. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6596. btInteractive.
  6597. Set receiver to peerObject.
  6598. Set maxDownloadSpeedLimit to this.
  6599. (executeInternal): Use maxDownloadSpeedLimit member.
  6600. * src/BtChokeMessage.cc
  6601. (doReceivedAction): Use dispatcher, requestFactory member.
  6602. (onSendComplete): Use dispatcher member.
  6603. * src/PeerInteractionCommand.h
  6604. (maxDownloadSpeedLimit): New variable.
  6605. * src/DefaultBtMessageReceiver.h
  6606. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6607. (dispatcher):
  6608. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6609. (messageFactory): New variable.
  6610. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6611. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6612. (setDispatcher):
  6613. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6614. (setBtMessageFactory): New function.
  6615. * src/DefaultBtInteractive.cc
  6616. (initiateHandshake): Use messageFactory member.
  6617. (addBitfieldMessageToQueue): Use messageFactory member.
  6618. (addAllowedFastMessageToQueue): Use messageFactory member.
  6619. (decideChoking): Use messageFactory member.
  6620. (checkHave): Use messageFactory member.
  6621. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  6622. (receiveMessages): Use maxDownloadSpeedLimit member.
  6623. (decideInterest): Use messageFactory member.
  6624. * src/BtRequestMessage.cc
  6625. (doReceivedAction): Use messageFactory, dispatcher member.
  6626. (onQueued): Use dispatcher member.
  6627. * src/BtPieceMessage.cc
  6628. (doReceivedAction): Use dispatcher member.
  6629. (send): Use peerConnection member.
  6630. (onWrongPiece): Use requestFactory member.
  6631. (handleChokingEvent): Use messageFactory, dispatcher member.
  6632. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6633. * src/BtMessageDispatcher.h
  6634. (BtMessageDispatcherWeakHandle): New type definition.
  6635. * src/SimpleBtMessage.cc
  6636. (send): Use peerConnection member.
  6637. * src/BtRejectMessage.cc
  6638. (doReceivedAction): Use dispatcher member.
  6639. * src/DefaultBtMessageDispatcher.h
  6640. (Option.h): Removed include.
  6641. (messageFactory): New variable.
  6642. (option): Removed.
  6643. (maxUploadSpeedLimit): New variable.
  6644. (requestTimeout): New variable.
  6645. (DefaultBtMessageDispatcher): Removed option.
  6646. Added maxUploadSpeedLimit, requestTimeout.
  6647. (setOption): Removed.
  6648. (getOption): Removed.
  6649. (setMaxUploadSpeedLimit): New function.
  6650. (setRequestTimeout): New function.
  6651. (setBtMessageFactory): New function.
  6652. * src/DefaultBtInteractive.h
  6653. (btMessageReceiver):
  6654. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6655. (dispatcher):
  6656. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6657. (btRequestFactory):
  6658. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6659. (peerConnection):
  6660. PeerConnectionHandle -> PeerConnectionWeakHandle
  6661. (messageFactory): New variable.
  6662. (option): Removed.
  6663. (keepAliveInterval): New variable.
  6664. (maxDownloadSpeedLimit): New variable.
  6665. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6666. (setBtMessageReceiver):
  6667. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6668. (setDispatcher):
  6669. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6670. (setBtRequestFactory):
  6671. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6672. (setPeerConnection):
  6673. PeerConnectionHandle -> PeerConnectionWeakHandle
  6674. (setOption): Removed.
  6675. (setKeepAliveInterval): New function.
  6676. (setMaxDownloadSpeedLimit): New function.
  6677. (setBtMessageFactory): New function.
  6678. * src/BitfieldMan.h
  6679. (cachedNumMissingBlock): New variable.
  6680. (cachedNumFilteredBlock): New variable.
  6681. (cachedCompletedLength): New variable.
  6682. (cachedFilteredComletedLength): New variable.
  6683. (cachedFilteredTotalLength): New variable.
  6684. (countMissingBlockNow): New function.
  6685. (countFilteredBlockNow): New function.
  6686. (getFilteredTotalLengthNow): New function.
  6687. (getCompletedLengthNow): New function.
  6688. (getFilteredCompletedLengthNow): New function.
  6689. (updateCache): New function.
  6690. * src/AbstractBtMessage.h
  6691. (BtMessageDispatcher.h): New include.
  6692. (PeerConnection.h): New include.
  6693. (BtRequestFactory.h): New include
  6694. (BtMessageFactory.h): New include.
  6695. (dispatcher): New variable.
  6696. (messageFactory): New variable.
  6697. (peerConnection: New variable.
  6698. (setBtMessageDispatcher): New function.
  6699. (setPeerConnection): New function.
  6700. (setBtMessageFactory): New function.
  6701. (setBtRequestFactory): New function.
  6702. * src/DefaultBtMessageFactory.cc
  6703. (setCommonProperty): Set dispatcher, requestFactory, this,
  6704. peerConnection to msg.
  6705. * src/BtRegistry.h
  6706. (BT_MESSAGE_RECEIVER): New macro.
  6707. * src/PeerConnection.h
  6708. (PeerConnectionWeakHandle): New type definition.
  6709. * src/BtMessageFactory.h
  6710. (BtMessageFactoryWeakHandle): New type definition.
  6711. * src/BitfieldMan.cc
  6712. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6713. cachedCompletedLength, cachedFilteredComletedLength,
  6714. cachedFilteredTotalLength.
  6715. Call updateCache().
  6716. (countMissingBlock): Return cachedNumMissingBlock.
  6717. (countMissingBlockNow): New function.
  6718. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6719. (countFilteredBlockNow): New function.
  6720. (setBit): Call updateCache().
  6721. (unsetBit): Call updateCache().
  6722. (setBitfield): Call updateCache().
  6723. (clearAllBit): Call updateCache().
  6724. (setAllBit): Use setBitInternal instead of setBit.
  6725. Call updateCache().
  6726. (addFilter): Call updateCache().
  6727. (enableFilter): Call updateCache().
  6728. (disableFilter): Call updateCache().
  6729. (clearFilter): Call updateCache().
  6730. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6731. (getFilteredTotalLengthNow): New function.
  6732. (getCompletedLength): Return cachedCompletedLength.
  6733. (getCompletedLengthNow): New function.
  6734. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6735. (getFilteredCompletedLengthNow): New function.
  6736. (updateCache): New function.
  6737. * src/BtMessageReceiver.h
  6738. (BtMessageReceiverWeakHandle): New type definition.
  6739. * src/DefaultBtMessageReceiver.cc
  6740. (receiveHandshake): Use messageFactory member.
  6741. (sendHandshake): Use messageFactory member.
  6742. (receiveMessage): Use messageFactory member.
  6743. * src/DefaultBtMessageFactory.h
  6744. (dispatcher): New variable.
  6745. (requestFactory): New variable.
  6746. (peerConnection): New variablle.
  6747. (setBtMessageDispatcher): New function.
  6748. (setBtRequestFactory): New function.
  6749. (setPeerConnection): New function.
  6750. * src/SharedHandle.h
  6751. (RefCount): New class.
  6752. (WeakHandle): New class.
  6753. * src/PeerObject.h
  6754. (BtMessageReceiver.h): New include.
  6755. (PeerObject): Added btMessageReceiver.
  6756. (btMessageReceiver): New variable.
  6757. * src/Util.cc
  6758. (countBit): Simplified.
  6759. * src/BtCancelMessage.cc
  6760. (doReceivedAction): Use dispatcher member.
  6761. * src/BtRequestFactory.h
  6762. (BtRequestFactoryWeakHandle): New type definition.
  6763. * src/PeerStorage.h
  6764. (downloadSpeed): int -> uint32_t
  6765. (uploadSpeed): int -> uint32_t
  6766. (sessionDownloadLength): long long int -> uint64_t
  6767. (sessionUploadLength): long long int -> uint64_t
  6768. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. To add RecoverableException, FatalException:
  6770. * src/AbstractCommand.cc
  6771. (onAbort): Exception -> RecoverableException
  6772. * src/PeerAbstractCommand.h
  6773. (RecoverableException.h): New include.
  6774. (onAbort): Exception -> RecoverableException.
  6775. * src/PeerInteractionCommand.cc
  6776. (onAbort): Exception -> RecoverableException.
  6777. * src/PeerAbstractCommand.cc
  6778. (execute): Exception -> RecoverableException.
  6779. (onAbort): Exception -> RecoverableException.
  6780. * src/TorrentRequestInfo.cc
  6781. (execute): Exception -> RecoverableException.
  6782. * src/MetalinkRequestInfo.cc
  6783. (execute): Exception -> RecoverableException.
  6784. * src/MetaFileUtil.cc: RecoverableException.
  6785. * src/AbstractCommand.h
  6786. (onAbort): Exception -> RecoverableException.
  6787. * src/DlRetryEx.h: Exception -> RecoverableException.
  6788. * src/DlAbortEx.h: Exception -> RecoverableException.
  6789. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6790. * src/Util.cc: Exception -> RecoverableException.
  6791. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6792. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6793. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6794. To make ID static const int
  6795. * src/BtInterestedMessage.h
  6796. (ID_t): Removed.
  6797. (ID): New variable.
  6798. (getId): Made non-const.
  6799. * src/BtPieceMessage.h
  6800. (ID_t): Removed.
  6801. (ID): New variable.
  6802. (getId): Made non-const.
  6803. * src/BtChokeMessage.h
  6804. (ID_t): Removed.
  6805. (ID): New variable.
  6806. (getId): Made non-const.
  6807. * src/BtHaveAllMessage.h
  6808. (ID_t): Removed.
  6809. (ID): New variable.
  6810. (getId): Made non-const.
  6811. * src/BtKeepAliveMessage.h
  6812. (ID_t): Removed.
  6813. (ID): New variable.
  6814. (getId): Made non-const.
  6815. * src/BtHandshakeMessage.h
  6816. (ID): New variable.
  6817. (getId): Made non-const.
  6818. * src/BtSuggestPieceMessage.h
  6819. (ID_t): Removed.
  6820. (ID): New variable.
  6821. (getId): Made non-const.
  6822. * src/BtPortMessage.h
  6823. (ID_t): Removed.
  6824. (ID): New variable.
  6825. (getId): Made non-const.
  6826. * src/AbstractBtMessage.h
  6827. (id): Removed.
  6828. (AbstractBtMessage): Removed id.
  6829. (getId): Removed.
  6830. * src/BtHaveMessage.h
  6831. (ID_t): Removed.
  6832. (ID): New variable.
  6833. (getId): Made non-const.
  6834. * src/BtAllowedFastMessage.h
  6835. (ID_t): Removed.
  6836. (ID): New variable.
  6837. (getId): Made non-const.
  6838. * src/BtCancelMessage.h
  6839. (ID_t): Removed.
  6840. (ID): New variable.
  6841. (getId): Made non-const.
  6842. * src/BtNotInterestedMessage.h
  6843. (ID_t): Removed.
  6844. (ID): New variable.
  6845. (getId): Made non-const.
  6846. * src/BtChokeMessage.h
  6847. (ID_t): Removed.
  6848. (ID): New variable.
  6849. (getId): Made non-const.
  6850. * src/BtRejectMessage.h
  6851. (ID_t): Removed.
  6852. (ID): New variable.
  6853. (getId): Made non-const.
  6854. * src/BtBitfieldMessage.h
  6855. (ID_t): Removed.
  6856. (ID): New variable.
  6857. (getId): Made non-const.
  6858. * src/BtUnchokeMessage.h
  6859. (ID_t): Removed.
  6860. (ID): New variable.
  6861. (getId): Made non-const.
  6862. * src/BtRequestMessage.h
  6863. (ID_t): Removed.
  6864. (ID): New variable.
  6865. (getId): Made non-const.
  6866. * src/BtHaveMessage.h
  6867. (ID_t): Removed.
  6868. (ID): New variable.
  6869. (getId): Made non-const.
  6870. To add --force-truncate command-line option and a check whether
  6871. the file already exists:
  6872. * src/DirectDiskAdaptor.h
  6873. (getFilePath): Made virtual public.
  6874. * src/MultiDiskAdaptor.h
  6875. (File.h): New include.
  6876. (DiskWriterEntry::fileEntry): Made private.
  6877. (DiskWriterEntry::fileExists): New function.
  6878. (DiskWriterEntry::getFileEntry): New function.
  6879. (fileExists): New function.
  6880. (getFilePath): New function.
  6881. * src/TorrentRequestInfo.cc
  6882. (FatalException.h): New include.
  6883. (message.h): New include.
  6884. (RecoverableException.h): New include.
  6885. (execute): Added a check whether file is already exists or not.
  6886. * src/DiskAdaptor.h
  6887. (fileExists): New function.
  6888. (getFilePath): New function.
  6889. * src/main.cc
  6890. (showUsage): Added an explanation of --force-truncate command-line
  6891. option.
  6892. (main): Added --force-truncate command-line option.
  6893. * src/Exception.h
  6894. (setMsg): buf[256] -> buf[1024]
  6895. * src/CopyDiskWriter.h
  6896. (getFilePath): Made public virtual.
  6897. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  6898. (fileExists): New function.
  6899. * src/DownloadEngineFactory.cc
  6900. (newTorrentConsoleEngine): Don't open file here.
  6901. * src/message.h
  6902. (EX_FILE_ALREADY_EXISTS): New definition.
  6903. * src/prefs.h
  6904. (PREF_FOECE_TRUNCATE): New definition.
  6905. * src/HttpResponseCommand.cc
  6906. (handleDefaultEncoding): Added a check whether the file already exists.
  6907. * src/SegmentMan.h
  6908. (fileExists): New function.
  6909. (shouldCancelDownloadForSafety): New function.
  6910. * src/FtpNegotiateCommand.cc
  6911. (recvSize): Added a check whether the file already exists.
  6912. * src/AbstractSingleDiskAdaptor.cc
  6913. (File.h): New include.
  6914. (fileExists): New function.
  6915. * src/AbstractSingleDiskAdaptor.h
  6916. (getFilePath): Removed.
  6917. (fileExists): New function.
  6918. * src/SegmentMan.cc
  6919. (fileExists): New function.
  6920. (shouldCancelDownloadForSafety): New function.
  6921. To fix regression bug in torrent downloading:
  6922. * src/DefaultBtRequestFactory.cc
  6923. (doChokedAction): New function.
  6924. * src/DefaultBtRequestFactory.h
  6925. (doChokedAction): New function.
  6926. * src/DefaultBtMessageDispatcher.cc
  6927. (doChokedAction): Do not delete request if its target is in allowed
  6928. fast set.
  6929. * src/DefaultBtInteractive.cc
  6930. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  6931. (sendKeepAlive): Send keep alive message even if the outgoing message
  6932. queue is not empty.
  6933. (decideInterest): Simplified the code.
  6934. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  6935. it is already called when BtChokeMessage is received from a peer.
  6936. * src/BtRequestFactory.h
  6937. (doChokedAction): New function.
  6938. To clean up code:
  6939. * src/PeerInteractionCommand.h
  6940. (executeInternal): Added virtual keyword explicitly.
  6941. (prepareForRetry): Added virtual keyword explicitly.
  6942. (prepareForNextPeer): Added virtual keyword explicitly.
  6943. (onAbort): Added virtual keyword explicitly.
  6944. * src/RequestSlot.cc
  6945. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  6946. * src/BtPieceMessage.cc
  6947. (doReceivedAction): Added a debug log of piece's bitfield.
  6948. * src/Piece.h
  6949. (getBitfieldLength): New function.
  6950. * src/ByteArrayDiskWriter.cc
  6951. (clear): Added buf = 0 to avoid double free corruption.
  6952. * src/FileAllocator.cc
  6953. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  6954. Added cp.reset().
  6955. * src/BitfieldMan.h
  6956. (operator=): Rewritten.
  6957. * src/BitfieldMan.cc
  6958. (BitfieldMan): Initialized bitfield, useBitfield.
  6959. * src/PeerConnection.cc
  6960. (receiveMessage): Added a call to socket->readable() after getting
  6961. message length to avoid possible EOF.
  6962. * src/Util.cc
  6963. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  6964. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. To add an ability to pre-allocate file space:
  6966. * src/DirectDiskAdaptor.h: Rewritten.
  6967. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  6968. * src/MultiDiskAdaptor.h: Rewritten.
  6969. * src/DefaultPieceStorage.cc
  6970. (MultiDiskWriter.h): Removed include.
  6971. (PreAllocationDiskWriter.h): Removed include.
  6972. (FileAllocationMonitor.h): New include.
  6973. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  6974. (initStorage): Rewritten.
  6975. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6976. * src/FileAllocator.h: New class.
  6977. * src/FileAllocator.cc: New class.
  6978. * src/FileAllocationMonitor.h: New class.
  6979. * src/FileAllocationMonitor.cc: New class.
  6980. * src/ConsoleFileAllocationMonitor.h: New class.
  6981. * src/ConsoleFileAllocationMonitor.cc: New class.
  6982. * src/AbstractSingleDiskAdaptor.h: New class.
  6983. * src/AbstractSingleDiskAdaptor.cc: New class.
  6984. * src/DiskAdaptor.h
  6985. (Directory.h): Removed include.
  6986. (DiskWriter.h): Removed include.
  6987. (FileEntry.h): Removed include.
  6988. (diskWriter): Removed.
  6989. (DiskAdaptor): Removed diskWriter.
  6990. (openFile): Made pure virtual.
  6991. (closeFile): Made pure virtual.
  6992. (openExistingFile): Made pure virtual.
  6993. (initAndOpenFile): Made pure virtual.
  6994. (writeData): Made pure virtual.
  6995. (readData): Made pure virtual.
  6996. (sha1Sum): Made pure virtual.
  6997. (getStoreDir): Returns const reference of storeDir.
  6998. (DiskAdaptorHandle): New type definition.
  6999. * src/main.cc
  7000. (ConsoleFileAllocationMonitor.h): New include.
  7001. (showUsage): Added default value description of -s option.
  7002. Added the description of --file-allocation option.
  7003. (main): Set default value of --file-allocation option to 'none'.
  7004. Added --file-allocation command-line option.
  7005. Setup FileAllocationMonitorFactory.
  7006. * src/FtpInitiateConnectionCommand.cc
  7007. (executeInternal): Removed diskWriter related processing, which was
  7008. moved to FtpNegotiationCommand.cc.
  7009. * src/DirectDiskAdaptor.cc
  7010. (getFilePath): Made non-const.
  7011. * src/CopyDiskAdaptor.h
  7012. (DiskAdaptor.h): Removed include.
  7013. (DiskWriter.h): Removed include.
  7014. (AbstractSingleDiskAdaptor.h): New include.
  7015. (getFilePath): Made non-const. Added virtual keyword.
  7016. (CopyDiskAdaptor): Removed diskWriter.
  7017. (getTempFile): Returns const reference.
  7018. (CopyDiskAdaptorHandle): New type definition.
  7019. * src/ByteArrayDiskWriter.cc
  7020. (clear): Simplified.
  7021. (initAndOpenFile): Rewritten.
  7022. (openFile): Call initAndOpenFile()
  7023. * src/MultiDiskAdaptor.cc: Rewritten.
  7024. * src/DownloadEngineFactory.cc
  7025. (FileAllocator.h): New include.
  7026. (FileAllocationMonitor.h): New include.
  7027. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7028. create DefaultDiskWriter with file allocator.
  7029. * src/DiskWriter.h
  7030. (initAndOpenFile): Added totalLength argument.
  7031. (openFile): Added totalLength argument.
  7032. * src/prefs.h
  7033. (PREF_FILE_ALLOCATION): New definition.
  7034. (V_PREALLOC): New definition.
  7035. (V_NONE): New definition.
  7036. * src/HttpResponseCommand.cc
  7037. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7038. size.
  7039. * src/FtpNegotiateCommand.cc
  7040. (Util.h): New include.
  7041. (recvSize): Open file here.
  7042. * src/Util.h
  7043. (ullitos): New function.
  7044. * src/CopyDiskWriter.h
  7045. (getFilePath): Made non-const.
  7046. * src/DefaultDiskWriter.h
  7047. (Option.h): New include.
  7048. (totalLength): Removed.
  7049. (DefaultDiskWriter): Removed totalLength.
  7050. (initAndOpenFile): Added totalLength argument.
  7051. (DefaultDiskWriterHandle): New type definition.
  7052. (createNewDiskWriter): New function.
  7053. * src/Util.cc
  7054. (ullitos): New function.
  7055. * src/DefaultDiskWriter.cc
  7056. (message.h): New include.
  7057. (FileAllocator.h): New include.
  7058. (prefs.h): New include.
  7059. (Util.h): New include.
  7060. (DefaultDiskWriter): Removed totalLength.
  7061. (initAndOpenFile): Added file allocation.
  7062. (createNewDiskWriter): New function. Just for temporary solution.
  7063. It will be rewritten later.
  7064. * src/DiskAdaptor.cc
  7065. (DiskAdaptor): Removed diskWriter.
  7066. * src/AbstractDiskWriter.cc
  7067. (LogFactory.h): New include.
  7068. (AbstractDiskWriter): Added fileAllocator, logger.
  7069. (openFile): Added totalLength argument.
  7070. * src/AbstractDiskWriter.h
  7071. (FileAllocator.h): New include.
  7072. (Logger.h): New include.
  7073. (fileAllocator): New variable.
  7074. (logger): New variable.
  7075. (openFile): Added totalLength argument. Added virtual keyword
  7076. explicitly.
  7077. (openExistingFile): Added totalLength argument. Added virtual keyword
  7078. explicitly.
  7079. (closeFile): Added virtual keyword explicitly.
  7080. (sha1Sum): Added virtual keyword explicitly.
  7081. (writeData): Added virtual keyword explicitly.
  7082. (readData): Added virtual keyword explicitly.
  7083. (setFileAllocator): New function.
  7084. * src/DefaultPieceStorage.h
  7085. (FileAllocator.h): New include.
  7086. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7087. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7088. * src/FileProgressMonitor.h: New class.
  7089. To compile aria2 on PC-BSD:
  7090. * src/DefaultBtContext.cc
  7091. (libgen.h): New include.
  7092. To fix memory leak:
  7093. * src/Exception.h
  7094. (~Exception): Delete cause. Fixed memory leak.
  7095. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. Rewritten a portion of bittorrent implementation:
  7097. * src/BtMessageValidator.h: New class.
  7098. * src/BtBitfieldMessageValidator.h: New class.
  7099. * src/BtHandshakeMessageValidator.h: New class.
  7100. * src/BtRequestMessageValidator.h: New class.
  7101. * src/BtSuggestPieceMessageValidator.h: New class.
  7102. * src/BtAllowedFastMessageValidator.h: New class.
  7103. * src/BtRejectMessageValidator.h: New class.
  7104. * src/BtCancelMessageValidator.h: New class.
  7105. * src/BtPieceMessageValidator.h: New class.
  7106. * src/BtHaveMessageValidator.h: New class.
  7107. * src/BtEventListener.h: New class.
  7108. * src/AbstractBtEventListener.h: New class.
  7109. * src/BtEvent.h: New class.
  7110. * src/BtChokingEvent.h: New class.
  7111. * src/BtChokedEvent.h: New class.
  7112. * src/BtCancelSendingPieceEvent.h: New class.
  7113. * src/BtAbortOutstandingRequestEvent.h: New class.
  7114. * src/Randomizer.h: New class.
  7115. * src/SimpleRandomizer.h: New class.
  7116. * src/BtMessage.h: New class.
  7117. * src/AbstractBtMessage.h: New class.
  7118. * src/SimpleBtMessage.h: New class.
  7119. * src/BtHaveMessage.h: New class.
  7120. * src/BtInterestedMessage.h: New class.
  7121. * src/BtAllowedFastMessage.h: New class.
  7122. * src/BtUnchokeMessage.h: New class.
  7123. * src/BtCancelMessage.h: New class.
  7124. * src/BtNotInterestedMessage.h: New class.
  7125. * src/BtChokeMessage.h: New class.
  7126. * src/BtHaveNoneMessage.h: New class.
  7127. * src/BtHandshakeMessage.h: New class.
  7128. * src/BtSuggestPieceMessage.h: New class.
  7129. * src/BtHaveMessage.h: New class.
  7130. * src/BtPieceMessage.h: New class.
  7131. * src/BtHaveAllMessage.h: New class.
  7132. * src/BtKeepAliveMessage.h: New class.
  7133. * src/BtPortMessage.h: New class.
  7134. * src/BtRejectMessage.h: New class.
  7135. * src/BtBitfieldMessage.h: New class.
  7136. * src/BtRequestMessage.h: New class.
  7137. * src/DefaultBtRequestFactory.h: New class.
  7138. * src/DefaultBtMessageReceiver.h: New class.
  7139. * src/BtInteractive.h: New class.
  7140. * src/BtMessageDispatcher.h: New class.
  7141. * src/DefaultBtMessageDispatcher.h: New class.
  7142. * src/DefaultBtInteractive.h: New class.
  7143. * src/BitfieldManFactory.h: New class.
  7144. * src/HandleRegistry.h: New class.
  7145. * src/BtMessageFactory.h: New class.
  7146. * src/BtMessageReceiver.h: New class.
  7147. * src/DefaultBtMessageFactory.h: New class.
  7148. * src/PeerObject.h: New class.
  7149. * src/BtRequestFactory.h: New class.
  7150. * src/SuggestPieceMessage.h: Removed.
  7151. * src/PortMessage.h: Removed.
  7152. * src/SuggestPieceMessage.h: Removed.
  7153. * src/KeepAliveMessage.h: Removed.
  7154. * src/HandshakeMessage.h: Removed.
  7155. * src/PeerInteraction.h: Removed.
  7156. * src/UnchokeMessage.h: Removed.
  7157. * src/PieceMessage.h: Removed.
  7158. * src/RequestMessage.h: Removed.
  7159. * src/InterestedMessage.h: Removed.
  7160. * src/HaveMessage.h: Removed.
  7161. * src/CancelMessage.h: Removed.
  7162. * src/RejectMessage.h: Removed.
  7163. * src/AllowedFastMessage.h: Removed.
  7164. * src/HaveNoneMessage.h: Removed.
  7165. * src/SimplePeerMessage.h: Removed.
  7166. * src/HaveAllMessage.h: Removed.
  7167. * src/BitfieldMessage.h: Removed.
  7168. * src/PeerMessageFactory.h: Removed.
  7169. * src/NotInterestedMessage.h: Removed.
  7170. * src/ChokeMessage.h: Removed.
  7171. * src/PeerMessage.h: Removed.
  7172. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. To know root cause of exception:
  7174. * src/Exception.h
  7175. (cause): New variable.
  7176. (Exception): Added a parameter.
  7177. (getMsg): Return const reference to msg.
  7178. (getCause): New function.
  7179. * src/DlRetryEx.h
  7180. (DlRetryEx): Added a parameter 'cause'.
  7181. Added an overloaded constructor.
  7182. (DlAbortEx): Added a parameter 'cause'.
  7183. Added an overloaded constructor.
  7184. * src/SimpleLogger.cc
  7185. (writeLog): Log nested exception messages recursively.
  7186. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. * src/DefaultBtProgressInfoFile.cc
  7188. (load): Fixed memory leak when the infohash doesn't match.
  7189. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. * src/DefaultPeerStorage.cc
  7191. (calculateStat): Simplified the code by combining 2 loops into 1.
  7192. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  7194. for BitTorrent download:
  7195. * src/PeerAbstractCommand.cc
  7196. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  7197. * src/main.cc:
  7198. (timeoutSpecified): Removed.
  7199. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  7200. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  7201. * src/TorrentRequestInfo.cc
  7202. (timeoutSpecified): Removed.
  7203. (torrentHandler): Removed timeoutSpecified and the adjustment of
  7204. timeout value.
  7205. * src/prefs.h
  7206. (PREF_BT_TIMEOUT): New definition.
  7207. Delete unused variables:
  7208. * src/TorrentRequestInfo.cc
  7209. (requestInfo): Removed.
  7210. Move setSignalHander to Util::setGlobalSignalHandler:
  7211. * src/TorrentRequestInfo.cc:
  7212. setSignalHander -> Util::setGlobalSignalHandler
  7213. * src/main.cc
  7214. (setSignalHander): Removed.
  7215. (main): setSignalHander -> Util::setGlobalSignalHandler
  7216. * src/Util.h
  7217. (setGlobalSignalHandler): New function.
  7218. * src/Util.cc
  7219. (setGlobalSignalHandler): New function.
  7220. * src/UrlRequestInfo.cc:
  7221. setSignalHander -> Util::setGlobalSignalHandler
  7222. Reset peer status in order to exit gracefully:
  7223. * src/PeerAbstractCommand.cc
  7224. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  7225. To fix the bug that causes the number of bytes uploaded is not saved
  7226. to .aria2 file:
  7227. * src/DefaultPeerStorage.h
  7228. (removedPeerSessionDownloadLength): New variable.
  7229. (removedPeerSessionUploadLength): New variable.
  7230. * src/DefaultPeerStorage.cc
  7231. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  7232. removedPeerSessionUploadLength(0).
  7233. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  7234. through all peers, and then add removedPeerSessionDownloadLength(
  7235. removedPeerSessionUploadLength) to it.
  7236. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  7237. (to) the peer to removedPeerSessionDownloadLength
  7238. (removedPeerSessionUploadLength).
  7239. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. To add Metalink location option:
  7241. * src/MetalinkRequestInfo.cc
  7242. (execute): Call MetalinkEntry::setLocationPreference()
  7243. * src/main.cc
  7244. (showUsage): Added the help message for --metalink-location option.
  7245. (main): Added --metalink-location option.
  7246. * src/prefs.h
  7247. (PREF_METALINK_LOCATION): New definition.
  7248. * src/MetalinkEntry.cc
  7249. (AddLocationPreference): New function object.
  7250. (setLocationPreference): New function.
  7251. * src/Xml2MetalinkProcessor.cc
  7252. (getResource): Set location attribute to MetalinkResource
  7253. To show URLs to download
  7254. * src/UrlRequestInfo.h
  7255. (printUrls): New function.
  7256. To add multiple <file> Metalink support:
  7257. * src/MetalinkEntry.h
  7258. (MetalinkResources): Removed.
  7259. (setLocationPreference): New function.
  7260. (MetalinkEntryHandle): New type definition.
  7261. (MetalinkEntries): New type definition.
  7262. * src/Xml2MetalinkProcessor.h
  7263. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7264. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7265. (parseFile): Metalinker* -> MetalinkerHandle
  7266. * src/UrlRequestInfo.h
  7267. (execute): RequestInfo* -> RequestInfos
  7268. * src/MetalinkRequestInfo.cc
  7269. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  7270. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  7271. (execute): RequestInfo* -> RequestInfos
  7272. Added multiple <file> support. Print filename when it is queued.
  7273. * src/MetalinkRequestInfo.h
  7274. (execute): RequestInfo* -> RequestInfos
  7275. (getDownloadEngine): Removed.
  7276. * src/RequestInfo.h
  7277. (RequestInfoHandle): New type definition.
  7278. (RequestInfos): New type definition.
  7279. (execute): RequestInfo* -> RequestInfos
  7280. (getDownloadEngine): Removed.
  7281. * src/MetalinkResource.h
  7282. (MetalinkResourceHandle): New type definition.
  7283. (MetalinkResources): New type definition.
  7284. * src/MetalinkEntry.cc
  7285. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7286. because the element is now of type MetalinkResourceHandle.
  7287. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7288. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7289. (dropUnsupportedResource): Removed the deletion of the elements of
  7290. resources because the element is now of type MetalinkResourceHandle.
  7291. * src/Xml2MetalinkProcessor.cc
  7292. (parseFile): Metalinker* -> MetalinkerHandle
  7293. MetalinkEntry* -> MetalinkEntryHandle
  7294. Removed try-catch block.
  7295. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7296. MetalinkResource* -> MetalinkResourceHandle
  7297. Removed try-catch block.
  7298. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7299. Free result by using xmlXPathFreeObject()
  7300. * src/Metalinker.cc
  7301. (~Metalinker): Removed the deletion of entries.
  7302. MetalinkEntry* -> MetalinkEntryHandle
  7303. (queryEntry): Add multiple <file> Metalink support.
  7304. * src/Metalinker.h
  7305. (MetalinkEntries): Removed.
  7306. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7307. * src/MetalinkProcessor.h
  7308. (parseFile): Metalinker* -> MetalinkerHandle
  7309. Bug fixes:
  7310. * src/PeerChokeCommand.cc
  7311. (execute): cat01->cat02
  7312. * src/DefaultPieceStorage.cc
  7313. (DefaultPieceStorage): Added diskAdaptor(0)
  7314. * src/TrackerWatcherComand.cc:
  7315. (execute): Use btAnnounce->noMoreAnnounce()
  7316. to determin whether the function returns true or not.
  7317. * src/TrackerUpdateCommand.cc:
  7318. (execute): Use btAnnounce->noMoreAnnounce()
  7319. to determin whether the function returns true or not.
  7320. * src/FtpConnection.cc
  7321. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7322. This is the fix of the busy loop bug.
  7323. * src/DownloadCommand.cc
  7324. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7325. cached PeerStat.
  7326. The value of "name" entry in torrent file is now set by
  7327. *DiskAdaptor::setTopDir(...) methods.
  7328. * src/MultiDiskAdaptor.h
  7329. (topDir): New variable.
  7330. (setTopDir): New function.
  7331. (getTopDir): New function.
  7332. * src/MultiDiskAdaptor.cc
  7333. (getFilePath): Concat storDir, "/" and topDir.
  7334. (mkdir): Use getFilePath() to get the directory path for output.
  7335. * src/DefaultPieceStorage.cc
  7336. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7337. CopyDiskAdaptor.
  7338. * src/CopyDiskAdaptor.h
  7339. (topDir): New variable.
  7340. (setTopDir): New function.
  7341. (getTopDir): New function.
  7342. * src/CopyDiskAdaptor.cc
  7343. (fixFilename): Updated.
  7344. Misc
  7345. * src/UrlRequestInfo.h
  7346. (e): Removed.
  7347. (UrlRequestInfo): Removed e.
  7348. (getDownloadEngine): Removed.
  7349. * src/UrlRequestInfo.cc
  7350. (handler): Rewritten.
  7351. (printUrls): New function.
  7352. (execute): Call printUrls().
  7353. * src/HandshakeMessage.cc
  7354. (check): peerinteraction->getBtContext() -> btContext
  7355. * src/PeerInteraction.h
  7356. (getBtContext): Removed.
  7357. * src/TorrentRequestInfo.h
  7358. (execute): RequestInfo* -> RequestInfos
  7359. (getDownloadEngine): Removed.
  7360. * src/TorrentRequestInfo.cc
  7361. (haltRequested): Removed.
  7362. (btHaltRequested): New variable.
  7363. (torrentHandler): haltRequested -> btHaltRequested
  7364. (execute): RequestInfo* -> RequestInfos
  7365. * src/TorrentConsoleDownloadEngine.cc
  7366. (afterEachIteration): haltRequested -> btHaltRequested.
  7367. * src/ConsoleDownloadEngine.h
  7368. (initStatistics): Added virtual.
  7369. (calculateStatistics): Added virtual.
  7370. (onEndOfRun): Added virtual.
  7371. (afterEachIteration): Added virtual.
  7372. * src/ConsoleDownloadEngine.cc
  7373. (haltRequested): New variable.
  7374. (afterEachIteration): New function.
  7375. * src/main.cc
  7376. (requestInfo): Removed.
  7377. * src/SegmentMan.cc
  7378. (findSlowerSegmentEntry): Refactored.
  7379. * Release 0.9.0
  7380. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7382. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7383. * src/TorrentMan.h: Removed.
  7384. * src/TorrentMan.cc: Removed.
  7385. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7386. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7387. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7388. * src/PeerAbstractCommand.cc: Use btRuntime.
  7389. * src/BtContextAwareCommand.h: New class.
  7390. * src/FileEntry.h: Added accessor methods for following variables.
  7391. (path): Made private.
  7392. (length): Made private.
  7393. (offset): Made private.
  7394. (extracted): Made private.
  7395. (requested): Made private.
  7396. (FileEntries): New definition.
  7397. (FileEntryHandle): New definition.
  7398. * src/FileEntry.cc: New file.
  7399. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7400. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7401. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7402. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7403. * src/PieceStorage.h: New file.
  7404. * src/PeerInteractionCommand.h: Use btContext.
  7405. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7406. btRuntime.
  7407. * src/DefaultBtProgressInfoFile.h: New file.
  7408. * src/DefaultBtProgressInfoFile.cc: New file.
  7409. * src/File.cc
  7410. (Util.h): New include.
  7411. (mkdirs): New function.
  7412. * src/MultiDiskAdaptor.h
  7413. (mkdir): New function.
  7414. * src/PeerListProcessor.h
  7415. (Peers): Removed.
  7416. * src/PeerInteraction.h
  7417. (torrentMan): Removed.
  7418. (btContext): New variable.
  7419. (peerStorage): New variable.
  7420. (pieceStorage): New variable.
  7421. (btAnnounce): New variable.
  7422. (getTorrentMan): Removed.
  7423. (getBtContext): New function.
  7424. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7425. btAnnounce.
  7426. * src/HandshakeMessage.h
  7427. (TorrentMan.h): Removed.
  7428. * src/HandshakeMessage.cc: Use btContext.
  7429. * src/DefaultBtAnnounce.cc: New file.
  7430. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7431. * src/DefaultPieceStorage.cc: New file.
  7432. * src/DefaultBtContext.h: New file.
  7433. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7434. Use the accessor methods of FileEntry.
  7435. * src/CookieBox.cc: Updated to use Util::slice().
  7436. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7437. * src/common.h (SharedHandle.h): New include.
  7438. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7439. pieceStorage.
  7440. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7441. * src/DiskAdaptor.h
  7442. (topDir): Removed.
  7443. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7444. (setTopDir): Removed.
  7445. (getTopDir): Removed.
  7446. * src/BtContext.h: New file.
  7447. * src/DefaultPeerStorage.h: New file.
  7448. * src/PieceMessage.h (TorrentMan.h): Removed.
  7449. * src/RequestMessage.h (TorrentMan.h): Removed.
  7450. * src/TorrentDownloadEngine.h
  7451. (uploadLength): New variable.
  7452. (btContext): New variable.
  7453. (btRuntime): New variable.
  7454. (pieceStorage): New variable.
  7455. (peerStorage): New variable.
  7456. (btAnnounce): New variable.
  7457. (btProgressInfoFile): New variable.
  7458. (torrentMan): Removed.
  7459. (setBtContext): New function.
  7460. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7461. peerStorage, btAnnounce, btProgressInfoFile.
  7462. * src/Piece.h
  7463. (toString): New function.
  7464. (Pieces): New type definition.
  7465. * src/Peer.h
  7466. (active): New variable.
  7467. (Peer): Added active.
  7468. (activate): Set active to true.
  7469. (deactivate): Set active to false.
  7470. (isActive): New function.
  7471. (Peers): New type definition.
  7472. * src/DirectDiskAdaptor.cc
  7473. (getFilePath): Use the accessor methods of FileEntry.
  7474. * src/TorrentConsoleDownloadEngine.h
  7475. (afterEachIteration): New function.
  7476. * src/TorrentConsoleDownloadEngine.cc
  7477. (haltRequested): New variable.
  7478. (sendStatistics): Use pieceStorage, btRuntime.
  7479. (afterEachIteration): New function.
  7480. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7481. * src/Directry.h
  7482. (Directory): New function.
  7483. (DirectoryHandle): New type definition.
  7484. * src/BtProgressInfoFile.h: New file.
  7485. * src/RequestMessage.cc: Use pieceStorage.
  7486. * src/BtRuntime.h: New file.
  7487. * src/DefaultBtContext.cc: New file.
  7488. * src/BitfieldMan.h
  7489. (getCompletedLength): New function(private).
  7490. (getCompletedLength): New function.
  7491. (getFilteredCompletedLength): New function.
  7492. * src/BitfieldMan.h
  7493. (getCompletedLength): New function(private).
  7494. (getCompletedLength): New function.
  7495. (getFilteredCompletedLength): New function.
  7496. * src/MultiDiskAdaptor.cc
  7497. (mkdir): New function.
  7498. (openFile): Call mkdir().
  7499. (initAndOpenFile): Call mkdir().
  7500. * src/CancelMessage.h
  7501. (TorrentMan.h): Removed.
  7502. * src/RejectMessage.h
  7503. (TorrentMan.h): Removed.
  7504. * src/DownloadEngineFactory.cc
  7505. (DefaultPieceStorage.h): New include.
  7506. (DefaultPeerStorage.h): New include.
  7507. (DefaultBtAnnounce.h): New include.
  7508. (DefaultBtProgressInfoFile.h): New include.
  7509. (newTorrentConsoleEngine): Rewritten.
  7510. * src/ShareRatioSeedCriteria.h
  7511. (torrentMan): Removed.
  7512. (btContext): New variable.
  7513. (peerStorage): New variable.
  7514. (btRuntime): New variable.
  7515. (evaluate): Use btContext, btRuntime, peerStorage.
  7516. * src/AnnounceTier.h: New file.
  7517. * src/BtAnnounce.h: New file.
  7518. * src/BtRegistry.h: New file.
  7519. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7520. * src/PeerConnection.h (TorrentMan.h): Removed.
  7521. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7522. * src/Util.h
  7523. (slice): Added an argument.
  7524. * src/Util.cc
  7525. (slice): Added an argument to control whether trim is made or not.
  7526. * src/PeerStorage.h: New file.
  7527. * src/BtRegistry.cc: New file.
  7528. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7529. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7530. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7531. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7532. * src/TorrentRequestInfo.h
  7533. (e): Removed.
  7534. (showFileEntry): Added an argument.
  7535. (getDownloadEngine): Return 0.
  7536. * src/DefaultBtAnnounce.h: New file.
  7537. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7538. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7539. * src/PeerMessageFactory.h
  7540. (btContext): New variable.
  7541. (pieceStorage): New variable.
  7542. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7543. btAnnounce.
  7544. * src/DiskAdaptor.cc
  7545. (DiskAdaptor): Removed topDir.
  7546. (~DiskAdaptor): Removed topDir.
  7547. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7548. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7549. * src/File.h (mkdirs): New function.
  7550. * src/DefaultPeerStorage): New file.
  7551. * src/DownloadEngineFactory.h
  7552. (newTorrentConsoleEngine): Use btContext.
  7553. * src/BtContextAwareCommand.cc: New file.
  7554. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7555. * src/PeerMessage.h
  7556. (btContext): New variable.
  7557. (peerStorage): New variable.
  7558. (pieceStorage): New variable.
  7559. (setBtContext): New function.
  7560. * src/Directry.cc
  7561. (Directory): New function.
  7562. (createDir): Do nothing if name.size() == 0.
  7563. * src/AnnounceList.h
  7564. (AnnounceTier): Removed.
  7565. (AnnounceTiers): Removed.
  7566. * src/DefaultPieceStorage.h: New file.
  7567. * src/Piece.cc (toString): New function.
  7568. To fix typo:
  7569. * src/main.cc (showVersion): Fixed typo.
  7570. To fix compile warning:
  7571. * src/DelegatingPeerListProcessor.cc
  7572. (canHandle): Added "return false".
  7573. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7575. make the process of announce request testable.
  7576. * src/TrackerWatcherCommand.h
  7577. (TimeA2.h): Removed.
  7578. (interval): Removed.
  7579. (checkPoint): Removed.
  7580. (createRequestCommand): Added an argument 'url'.
  7581. (TrackerWatherCommand): Removed interval.
  7582. (createCommand): New function.
  7583. * src/DownloadEngineFactory.cc
  7584. (newTorrentConsoleEngine): Updated according to the changes in
  7585. TrackerWatherCommand.
  7586. * src/TorrentMan.cc
  7587. (DelegatingPeerListProcessor.h): New includes.
  7588. (TorrentMan): Added the initialization of announceInterval.
  7589. (isStoppedAnnounceReady): New function.
  7590. (isCompletedAnnounceReady): New function.
  7591. (isDefaultAnnounceReady): New function.
  7592. (isAnnounceReady): New function.
  7593. (getAnnounceUrl): New function.
  7594. (announceStart): New function.
  7595. (announceFailure): New function.
  7596. (announceSuccess): New function.
  7597. (isAllAnnounceFailed): New function.
  7598. (resetAnnounce): New function.
  7599. (processAnnounceResponse): New function.
  7600. (needMorePeerConnection): New function.
  7601. (noMoreAnnounce): New function.
  7602. * src/TrackerUpdateCommand.h
  7603. (getTrackerResponse): int->size_t
  7604. * src/TorrentMan.h
  7605. (isStoppedAnnounceReady): New function.
  7606. (isCompletedAnnounceReady): New function.
  7607. (isDefaultAnnounceReady): New function.
  7608. (announceInterval): New variable.
  7609. (isAnnounceReady): New function.
  7610. (getAnnounceUrl): New function.
  7611. (announceStart): New function.
  7612. (announceFailure): New function.
  7613. (announceSuccess): New function.
  7614. (isAllAnnounceFailed): New function.
  7615. (resetAnnounce): New function.
  7616. (processAnnounceResponse): New function.
  7617. (needMorePeerConnection): New function.
  7618. (noMoreAnnounce): New function.
  7619. * src/TrackerWatcherCommand.cc
  7620. (TrackerWatherCommand): Removed interval and checkPoint.
  7621. (execute): Rewritten.
  7622. (createCommand): New function.
  7623. (createRequestCommand): Rewritten.
  7624. * src/TrackerUpdateCommand.cc
  7625. (MetaFileUtil.h): Removed.
  7626. (DelegatingPeerListProcessor.h): Removed.
  7627. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7628. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Request -> RequestHandle:
  7630. * src/HttpResponseCommand.h: Request->RequestHandle
  7631. * src/AbstractCommand.cc: Request->RequestHandle
  7632. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7633. * src/HttpRequestCommand.cc: Request->RequestHandle
  7634. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7635. * src/AbstractCommand.h: Request->RequestHandle
  7636. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7637. * src/HttpResponseCommand.cc: Request->RequestHandle
  7638. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7639. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7640. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7641. * src/HttpConnection.h: Request->RequestHandle
  7642. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7643. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7644. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7645. * src/DownloadCommand.h: Request->RequestHandle
  7646. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7647. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7648. * src/HttpRequestCommand.h: Request->RequestHandle
  7649. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7650. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7651. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7652. * src/HttpDownloadCommand.h: Request->RequestHandle
  7653. * src/FtpConnection.cc: Request->RequestHandle
  7654. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7655. * src/UrlRequestInfo.cc: Request->RequestHandle
  7656. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7657. * src/HttpConnection.h: Request->RequestHandle
  7658. * src/DownloadCommand.cc: Request->RequestHandle
  7659. * src/FtpConnection.h: Request->RequestHandle
  7660. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7661. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7662. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7663. * src/Request.h
  7664. (SharedHandle.h): New include.
  7665. (RequestHandle): New type definition.
  7666. (Requests): Redefined.
  7667. To add MULTITRACKER support:
  7668. * src/TrackerWatcherCommand.h
  7669. (createRequestCommand): New function.
  7670. * src/DownloadEngineFactory.cc
  7671. (newTorrentConsoleEngine): Removed req.
  7672. * src/prefs.h
  7673. (PREF_TRACKER_MAX_TRIES): New definition.
  7674. * src/TorrentMan.cc
  7675. (TorrentMan): Removed req. Added trackerNumTry.
  7676. (~TorrentMan): Removed req.
  7677. (setupInternal1): Added announceList.
  7678. * src/TorrentRequestInfo.cc
  7679. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7680. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7681. * src/main.cc
  7682. (main): Added PREF_TRACKER_MAX_TRIES.
  7683. * src/TorrentMan.h
  7684. (Request.h): Removed.
  7685. (AnnounceList.h): New include.
  7686. (trackerNumTry): New variable.
  7687. (req): Removed.
  7688. (announceList): New variable.
  7689. * src/TrackerWatcherCommand.cc
  7690. (execute): Rewritten.
  7691. (createRequestCommand): New function.
  7692. * src/TrackerUpdateCommand.cc
  7693. (execute): Updated with the use of AnnounceList.
  7694. * src/AnnounceList.cc: New class.
  7695. * src/AnnounceList.h: New class.
  7696. To fix typo:
  7697. * src/prefs.h
  7698. (PREF_MAX_TRIES): max_try->max_tries
  7699. To not to decode "+" as space in URL decode:
  7700. * src/Util.cc
  7701. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7702. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. To add timeout to async name resolution:
  7704. * src/AbstractCommand.h
  7705. (nameResolveFinished): New function. This is not elegant way. It needs
  7706. to be more refined.
  7707. (nameResolverCheck): New variable.
  7708. * src/AbstractCommand.cc
  7709. (AbstractCommand): Added nameResolverCheck.
  7710. (execute): Added the check whether the name resolution has finished.
  7711. (setNameResolverCheck): Set nameResolverCheck to true.
  7712. (disableNameResolverCheck): Set nameResolverCheck to false.
  7713. (nameResolverFinished): New function.
  7714. * src/FtpInitiateConnectionCommand.h
  7715. (nameResolverFinished): New function.
  7716. * src/FtpInitiateConnectionCommand.cc
  7717. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7718. * src/HttpInitiateConnectionCommand.h
  7719. (nameResolverFinished): New function.
  7720. * src/HttpInitiateConnectionCommand.cc
  7721. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7722. * src/prefs.h
  7723. (PREF_DNS_TIMEOUT): New definition.
  7724. * src/main.cc
  7725. (main): Added PREF_DNS_TIMEOUT.
  7726. To add the support for a non-compact response from a tracker:
  7727. * src/PeerListProcessor.h: New class.
  7728. * src/DefaultPeerListProcessor.h: New class.
  7729. * src/DefaultPeerListProcessor.cc: New class.
  7730. * src/CompactPeerListProcessor.h: New class.
  7731. * src/CompactPeerListProcessor.cc: New class.
  7732. * src/DelegatingPeerListProcessor.h: New class.
  7733. * src/DelegatingPeerListProcessor.cc: New class.
  7734. * src/TorrentMan.cc
  7735. (addPeer): New function(overload).
  7736. (addPeer): Delete unused peers only when new peer is added.
  7737. * src/TorrentMan.h
  7738. (PeerListProcessor.h): Included.
  7739. (Peers): Removed.
  7740. (addPeer): New function(overload).
  7741. * src/TrackerUpdateCommand.cc
  7742. (netinet/in.h): Removed.
  7743. (DelegatingPeerListProcessor.h): Included.
  7744. (execute): Updated to use DelegatingPeerListProcessor.
  7745. To fix the memory leak in TorrentMan::peers:
  7746. * src/PeerAbstractCommand.cc
  7747. (onAbort): Added peer->resetStatus().
  7748. * src/Peer.h
  7749. (resetStatus): Made public.
  7750. To improve the precision of the speed calculation:
  7751. * src/SpeedCalc.h
  7752. (nextInterval): New variable.
  7753. * src/SpeedCalc.cc
  7754. (reset): Added nextInterval.
  7755. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7756. (changeSw): Set nextInterval to 15 seconds relative to the current
  7757. instant time.
  7758. * src/main.cc
  7759. (showVersion): Updated.
  7760. (showUsage): Updated.
  7761. * Release 0.8.1
  7762. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. * src/main.cc
  7764. (showUsage): Commented out --min-segment-size option.
  7765. (main): Commented out --min-segment-size option.
  7766. * Release 0.8.0
  7767. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. * src/*.{h,cc}:
  7769. Added an exception to the license which allows linking with OpenSSL.
  7770. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7771. * src/AbstractCommand.cc
  7772. (execute): Check whether the download has finished before checking
  7773. socket status.
  7774. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7775. Do not exit even if no segment is available.
  7776. * src/prefs.h
  7777. (PREF_STARTUP_IDLE_TIME): New definition.
  7778. * src/PeerInteractionCommand.cc
  7779. (executeInternal): Removed max speed limit. Because it performs bad.
  7780. (receiveMessages): Added max speed limit. This was better than above,
  7781. but still a little bit to be desired. Sometimes the download speed
  7782. became much faster than I specified.
  7783. * src/SpeedCalc.h
  7784. (start): New variable.
  7785. (accumulatedLength): New variable.
  7786. (getAvgSpeed): New function.
  7787. * src/SpeedCalc.cc
  7788. (reset): Added start, accumulatedLength.
  7789. (update): Added calculation of an average speed.
  7790. (getAvgSpeed): New function.
  7791. * src/DownloadCommand.h
  7792. (sw): Removed.
  7793. * src/main.cc
  7794. (main): Added PREF_STARTUP_IDLE_TIME.
  7795. * src/PeerStat.h
  7796. (STATUS): Added REQUEST_IDLE.
  7797. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7798. (getAvgDownloadSpeed): New function
  7799. (requestIdle): New function.
  7800. * src/SegmentMan.h
  7801. (SegmentEntryHandle): New type definition.
  7802. (SegmentEntries): Now holds SegmentEntryHandle.
  7803. (findSlowerSegmentEntry): New funtion.
  7804. * src/SegmentMan.cc
  7805. (save): Updated according to the changes in SegmentEntries.
  7806. (read): Updated according to the changes in SegmentEntries.
  7807. (FindSegmentEntryByIndex): Updated according to the changes in
  7808. SegmentEntries.
  7809. (FindSegmentEntryByCuid): Updated according to the changes in
  7810. SegmentEntries.
  7811. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7812. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7813. Renamed uitr as itr.
  7814. (findSlowerSegmentEntry): New function.
  7815. (getSegment): Updated according to the changes in SegmentEntries.
  7816. Added the feature that cancels the segment with slow server and fast
  7817. one takes it over.
  7818. (cancelSegment): Updated according to the changes in SegmentEntries.
  7819. (getDownloadLength): Updated according to the changes in
  7820. SegmentEntries.
  7821. (init): Assigned 0 to bitfield after deleting it.
  7822. * src/DownloadCommand.cc
  7823. (STARTUP_IDLE_TIME): Removed.
  7824. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7825. * src/PeerChokeCommand.cc
  7826. (optUnchokingPeer): Updated according to the changes in Peer.
  7827. (ResetDelta): Removed.
  7828. (UploadFaster): Updated according to the changes in Peer.
  7829. (DownloadFaster): Updated according to the changes in Peer.
  7830. (execute): I clarify the meaning of "upload" and "download" here.
  7831. "upload" means the transfer from localhost to remote host.
  7832. "download" means the transfer from remote host to localhost.
  7833. Based on this rule, I swapped orderByUploadRate and
  7834. orderByDownloadRate.
  7835. * src/PeerInteractionCommand.cc
  7836. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7837. (executeInternal): Removed the argument of
  7838. peerInteraction->sendMessages().
  7839. (receiveMessages): Rewritten download speed limit.
  7840. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7841. * src/HttpResponseCommand.cc
  7842. (handleDefaultEncoding): If file size is unknown in torrent request,
  7843. do not call segmentMan->initBitfield() here.
  7844. Disabled persistent connection feature in torrent request.
  7845. * src/UrlRequestInfo.h
  7846. (UrlRequestInfo): Removed const qualifier from option.
  7847. * src/TorrentMan.h
  7848. (TransferStat): New class.
  7849. (deltaDownloadLength): Removed.
  7850. (deltaUploadLength): Removed.
  7851. (addDeltaDownloadLength): Removed.
  7852. (getDeltaDownloadLength): Removed.
  7853. (resetDeltaDownloadLength): Removed.
  7854. (addDeltaUploadLength): Removed.
  7855. (getDeltaUploadLength): Removed.
  7856. (resetDeltaUploadLength): Removed.
  7857. (addActivePeer): Added peer->activate().
  7858. (deleteActivePeer): Added peer->deactivate().
  7859. (calculateStat): New function.
  7860. * src/TorrentMan.cc
  7861. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  7862. (calculateStat): New function.
  7863. * src/PeerInteraction.h
  7864. (uploadLimit): Removed.
  7865. (option): New variable.
  7866. (setUploadLimit): Removed.
  7867. (getUploadSpeed): Removed.
  7868. (sendMessages): Removed the argument "currentUploadSpeed".
  7869. * src/PeerInteraction.cc
  7870. (prefs.h): Included.
  7871. (PeerInteraction): Removed uploadLimit. Added option.
  7872. (sendMessages): Rewritten upload speed limit.
  7873. (sendHandshake): Removed the argument from sendMessages().
  7874. (sendBitfield): Removed the argument from sendMessages().
  7875. * src/PeerAbstractCommand.cc
  7876. (execute): Commented out the portion of upload limit.
  7877. (onAbort): Removed peer->resetStatus().
  7878. * src/TorrentRequestInfo.cc
  7879. (timeoutSpecified): Declared extern.
  7880. (execute): Set timeout to 180 if timeout is not specified by.
  7881. command-line.
  7882. * src/PieceMessage.cc
  7883. (receivedAction): Added peer->updateDownloadLength().
  7884. Removed peer->addPeerUpload().
  7885. Removed torrentMan->addDeltaDownloadLength().
  7886. (send): Added peer->updateUploadLength().
  7887. Removed peer->addPeerDownload().
  7888. Removed torrentMan->addDeltaUploadLength().
  7889. * src/main.cc
  7890. (timeoutSpecified): New variable.
  7891. (main): Set timeoutSpecified to false.
  7892. If the command-line option "--upload-limit" is specified, then
  7893. timeoutSpecified is set to true. This option will remain in the next
  7894. release, but be deprecated in the future release.
  7895. * src/TorrentRequestInfo.h
  7896. (TorrentRequestInfo): Removed const qualifier from op.
  7897. * src/PeerStat.h
  7898. (uploadSpeed): New variable.
  7899. (PeerStat): Added default value to cuid.
  7900. (calculateUploadSpeed): New function.
  7901. (updateUploadLength): New function.
  7902. (getMaxUploadSpeed): New function.
  7903. (getAvgUploadSpeed): New function.
  7904. (reset): Added uploadSpeed. Set status to IDLE.
  7905. * src/TorrentDownloadEngine.h
  7906. (cp): Declared as Time.
  7907. (sessionDownloadLengthArray): Removed.
  7908. (sessionUploadLengthArray): Removed.
  7909. (currentCp): Removed.
  7910. (lastCalcStat): New variable
  7911. (lastElapsed): Removed.
  7912. (sessionDownloadLength): Removed.
  7913. (calculateStat): New function.
  7914. * src/TorrentDownloadEngine.cc
  7915. (initStatistics): Removed lastElapsed, cp[],
  7916. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  7917. currentCp, sessionDownloadLength.
  7918. Added cp.reset() and lastCalcStat.reset().
  7919. (calculateSpeed): Changed the name of the argument.
  7920. (calculateStatistics): Rewritten.
  7921. (calculateStat): New function.
  7922. * src/Peer.h
  7923. (PeerStat.h): Included.
  7924. (peerUpload): Removed.
  7925. (peerDownload): Removed.
  7926. (peerStat): New variable.
  7927. (sessionUploadLength): New variable.
  7928. (sessionDownloadLength): New variable.
  7929. (deltaUpload): Removed.
  7930. (deltaDownload): Removed.
  7931. (resetStatus): Made private.
  7932. (Peer): Added sessionUploadLength, sessionDownloadLength.
  7933. Removed peerUpload, peerDownload.
  7934. (updateUploadLength): New function.
  7935. (addDeltaUpload): Removed.
  7936. (updateDownloadLength): New function.
  7937. (resetDeltaUpload): Removed.
  7938. (getDeltaUpload): Removed.
  7939. (addDeltaDownload): Removed.
  7940. (calculateUploadSpeed): New function.
  7941. (resetDeltaDownload): Removed.
  7942. (getDeltaDownload): Removed.
  7943. (calculateDownloadSpeed): New function.
  7944. (getSessionUploadLength): New function.
  7945. (getSessionDownloadLength): New function.
  7946. (activate): New function.
  7947. (deactivate): New function.
  7948. (addPeerUpload): Removed.
  7949. (setPeerUpload): Removed.
  7950. (getPeerUpload): Removed.
  7951. (addPeerDownload): Removed.
  7952. (setPeerDownload): Removed.
  7953. (getPeerDownload): Removed.
  7954. * src/Peer.cc
  7955. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  7956. * src/MetalinkRequestInfo.h
  7957. (MetalinkRequestInfo): Removed const qualifier from op.
  7958. * src/RequestInfo.h
  7959. (op): Removed const qualifier.
  7960. (RequestInfo): Removed const qualifier from op.
  7961. * src/prefs.h
  7962. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  7963. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  7964. * src/PeerInteractionCommand.cc
  7965. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  7966. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  7967. * src/PeerInteraction.cc
  7968. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  7969. * src/main.cc
  7970. (showUsage): Updated the description of "--lowest-speed-limit" option.
  7971. Added the description of "--max-download-limit" option.
  7972. Removed the description of "--upload-limit" option.
  7973. Added the description of "--max-upload-limit" option.
  7974. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  7975. Added "--max-download-limit" option and "--max-upload-limit" option.
  7976. Added the warning message if "--upload-limit" option is used.
  7977. * src/DownloadCommand.cc
  7978. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  7979. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. To rewrite segment download mechanism for HTTP/FTP download.
  7981. Use BitfieldMan to manage segment download.
  7982. * src/HttpResponseCommand.h
  7983. (executeInternal): Pass the reference of segment.
  7984. * src/AbstractCommand.cc
  7985. (prepareForRetry): Call segmentMan->cancelSegment here.
  7986. (onAbort): Call segmentMan->cancelSegment here.
  7987. * src/HttpDownloadCommand.cc
  7988. (prepareForNextSegment): New function.
  7989. * src/DownloadEngineFactory.cc
  7990. (newConsoleEngine): Removed splitter.
  7991. (newTorrentConsoleEngine): Removed splitter.
  7992. * src/Request.h
  7993. (segment): Renamed from seg.
  7994. * src/FtpInitiateConnectionCommand.h
  7995. (executeInternal): Pass the reference of segment.
  7996. * src/AbstractCommand.h
  7997. (executeInternal): Pass the reference of segment.
  7998. * src/pref.h
  7999. (PREF_SEGMENT_SIZE): New definition.
  8000. * src/HttpProxyRequestCommand.h
  8001. (executeInternal): Pass the reference of segment.
  8002. * src/HttpResponseCommand.cc
  8003. (checkResponse): Allowed status 206 when a request range starts 0.
  8004. (handleDefaultEncoding): Rewritten the code related to Segment.
  8005. (handleOtherEncoding): Rewritten the code related to Segment.
  8006. * src/SegmentMan.h
  8007. (SegmentEntry): New class.
  8008. (SegmentEntries): New type definition.
  8009. (bitfield): New variable.
  8010. (usedSegmentEntries): New variable.
  8011. (onNullBitfield): New function.
  8012. (checkoutSegment): New function.
  8013. (segments): Removed.
  8014. (splitter): Removed.
  8015. (unregisterId): Removed.
  8016. (getSegment): New function(overload)
  8017. (getDownloadedSize): Removed.
  8018. (cancelSegment): New function.
  8019. (completeSegment): New function.
  8020. (initBitfield): New function.
  8021. (hasSegment): New function.
  8022. (getDownloadLength): New function.
  8023. * src/BitfieldMan.h
  8024. (getStartIndex): New function.
  8025. (getEndIndex): New function.
  8026. (getMissingUnusedIndex): New function(overload).
  8027. (getSparseMissingUnusedIndex): New function.
  8028. * src/BitfieldMan.cc
  8029. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8030. (getMissingUnusedIndex): New function(overload).
  8031. (Range): New class.
  8032. (getStartIndex): New function.
  8033. (getEndIndex): New function.
  8034. (getSparseMissingUnusedIndex): New function.
  8035. (isBitSetInternal): Return false if the given index is less than 0.
  8036. * src/HttpInitiateConnectionCommand.h
  8037. (executeInternal): Pass the reference of segment.
  8038. * src/FtpNegotiateCommand.h
  8039. (executeInternal): Pass the reference of segment.
  8040. * src/FtpNegotiateCommand.cc
  8041. (recvSize): Initialize bitfield here.
  8042. * src/FtpTunnelResponseCommand.h
  8043. (executeInternal): Pass the reference of segment.
  8044. * src/HttpConnection.cc
  8045. (createRequest): Rewritten range header processing.
  8046. * src/DownloadCommand.h
  8047. (executeInternal): Pass the reference of segment.
  8048. (prepareForRetry): Removed.
  8049. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8050. function.
  8051. * src/main.cc
  8052. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8053. * src/SegmentMan.cc
  8054. (SegmentMan): Added bitfield. Removed splitter.
  8055. (~SegmentMan): Added bitfield. Removed splitter.
  8056. (unregisterId): Removed.
  8057. (getSegment): Rewritten.
  8058. (updateSegment): Rewritten.
  8059. (save): Rewritten.
  8060. (read): Rewritten.
  8061. (finished): Rewritten.
  8062. (getDownloadedSize): Removed.
  8063. (initBitfield): New function.
  8064. (FindSegmentEntryByIndex): New function object.
  8065. (FindSegmentEntryByCuid): New function object.
  8066. (checkoutSegment): New function.
  8067. (onNullBitfield): New function.
  8068. (getSegment): New function(overload).
  8069. (CancelSegment): New function object.
  8070. (cancelSegment): New function.
  8071. (completeSegment): New function.
  8072. (hasSegment): New function.
  8073. (getDownloadLength): New function.
  8074. * src/FtpInitiateConnectionCommand.cc
  8075. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8076. * src/Segment.h: Rewritten.
  8077. * src/Segment.cc (operator<<): New function.
  8078. * src/HttpDownloadCommand.h
  8079. (prepareForNextSegment): New function.
  8080. * src/Request.cc
  8081. (resetUrl): Made segment null.
  8082. * src/DownloadEngine.cc
  8083. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8084. * src/HttpProxyRequestCommand.h
  8085. (executeInternal): Pass the reference of segment.
  8086. * src/DownloadCommand.cc
  8087. (executeInternal): Rewritten the code related to Segment.
  8088. (prepareForRetry): Removed.
  8089. (prepareForNextSegment): Rewritten.
  8090. * src/FtpTunnelResponseCommand.h
  8091. (executeInternal): Pass the reference of segment.
  8092. To add HTTP 1.1 persistent connection support(experimental)
  8093. * src/HttpRequestCommand.cc
  8094. (executeInternal): Disable keep alive if it is disabled by
  8095. configuration.
  8096. * src/Request.h
  8097. (keepAlive): New variable.
  8098. (isKeepAlive): New function.
  8099. (setKeepAlive): New function.
  8100. * src/pref.h
  8101. (PREF_HTTP_KEEP_ALIVE): New definition.
  8102. * src/HttpResponseCommand.cc
  8103. (executeInternal): Check the remote server supports keep alive.
  8104. * src/HttpConnection.cc
  8105. (createRequest): Send "Connection: close" only if keep alive is
  8106. disabled.
  8107. * src/main.cc
  8108. (main):
  8109. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  8110. To add max download speed limit:
  8111. * src/pref.h
  8112. (PREF_MAX_SPEED_LIMIT): New definition.
  8113. * src/PeerInteractionCommand.cc
  8114. (executeInternal): Added max download speed limit. Not tested yet.
  8115. * src/SegmentMan.h
  8116. (PeerStats): New type definition.
  8117. (peerStats): New variable.
  8118. (registerPeerStat): New function.
  8119. (FindPeerStat): New function object.
  8120. (getPeerStat): New function.
  8121. (calculateDownloadSpeed): New function.
  8122. * src/SpeedCalc.h: New class.
  8123. * src/SpeedCalc.cc: New class.
  8124. * src/main.cc
  8125. (main):
  8126. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  8127. download speed is not restricted).
  8128. * src/PeerStat.h: New class.
  8129. * src/SegmentMan.cc
  8130. (registerPeerStat): New function.
  8131. (calculateDownloadSpeed): New function.
  8132. * src/DownloadCommand.cc
  8133. (STARTUP_IDLE_TIME): New definition.
  8134. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  8135. downloadStart.
  8136. (~DownloadCommand): Call peerStat->downloadStop.
  8137. (executeInternal): Added download speed limitter. Rewritten lowest
  8138. speed limitter.
  8139. * src/HttpConnection.cc
  8140. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  8141. * src/AbstractCommand.cc
  8142. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  8143. Added hostname to the error message.
  8144. * src/ConsoleDownloadEngine.cc
  8145. (calculateStatistics): Initialize psize with dlSize.
  8146. * src/PieceMessage.cc
  8147. (receivedAction): Do not call peerInteraction->abortPiece here.
  8148. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  8149. * src/BitfieldMan.h
  8150. (clearAllUseBit): New function.
  8151. (setAllUseBit): New function.
  8152. * src/BitfieldMan.cc
  8153. (clearAllBit): Do not clear useBitfield here.
  8154. (clearAllUseBit): New function.
  8155. (setAllUseBit): New function.
  8156. * src/Piece.cc
  8157. (clearAllBlock): Call bitfield->clearAllUseBit().
  8158. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. To make filename URL-decoded:
  8160. * src/HttpResponseCommand.h: Updated doc.
  8161. * src/HttpResponseCommand.cc
  8162. (determinFilename): Made filename URL-decoded.
  8163. * src/FtpInitiateConnectionCommand.cc
  8164. (executeInternal): Made filename URL-decoded.
  8165. * src/Util.h (urldecode): New function.
  8166. * src/Util.cc (urldecode): New function.
  8167. To fix a bug that caused assertion failure in ares_strerror:
  8168. * src/NameResolver.cc (callback): Fixed the bug.
  8169. * Release 0.7.3
  8170. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. To add --seed-time and --seed-ratio command-line option:
  8172. * src/Option.h (getAsDouble): New function.
  8173. * src/Option.cc (getAsDouble): New function.
  8174. * src/SeedCheckCommand.h: New class.
  8175. * src/SeedCheckCommand.cc: New class.
  8176. * src/DownloadEngineFactory.cc
  8177. (SeedCheckCommand.h): Included.
  8178. (UnionSeedCriteria.h): Included.
  8179. (TimeSeedCriteria.h): Included.
  8180. (ShareRatioSeedCriteria.h): Included.
  8181. (newTorrentConsoleEngine): Added the processing of seed option.
  8182. * src/SeedCriteria.h: New class.
  8183. * src/ShareRatioSeedCriteria.h: New class.
  8184. * src/TimeSeedCriteria.h: New class.
  8185. * src/UnionSeedCriteria.h: New class.
  8186. * src/prefs.h
  8187. (PREF_SEED_TIME): New definition.
  8188. (PREF_SEED_RATIO): New definition.
  8189. * src/main.cc
  8190. (showUsage): Added --seed-time and --seed-ratio option.
  8191. (main): Added --seed-time and --seed-ratio option.
  8192. Made default log file name "/dev/null".
  8193. * src/SharedHandle.h
  8194. (SharedHandle): Copy constructor. Made it assignable from the
  8195. SharedHandle of the subclasses.
  8196. (operator=): Made it assignable from the SharedHandle of the
  8197. subclasses.
  8198. (getRefCount): New function.
  8199. To add notice log level and the switch to write log to stdout. This
  8200. switch is configurable per log level.
  8201. * src/Logger.h
  8202. (notice): New function.
  8203. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  8204. constant.
  8205. * src/LogFactory.cc
  8206. (getInstance): The use of NullLogger was removed. A log message with
  8207. notice log level was made written to stdout along with log file.
  8208. * src/NullLogger.h
  8209. (notice): New function.
  8210. * src/SimpleLogger.h
  8211. (writeHeader): Added the 'file' argument.
  8212. (writeLog): Added the 'file' argument.
  8213. (writeFile): New function.
  8214. (stdoutField): New variable.
  8215. (SimpleLogger): Removed the default constructor.
  8216. (SimpleLogger): Made the default value of logfile 0.
  8217. (debug): Added 'virtual' keyword.
  8218. (info): Added 'virtual' keyword.
  8219. (warn): Added 'virtual' keyword.
  8220. (error): Added 'virtual' keyword.
  8221. (notice): New function.
  8222. (setStdout): New function.
  8223. * src/SimpleLogger.cc
  8224. (WRITE_LOG): Replaced writeLog with writeFile.
  8225. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  8226. (SimpleLogger): Removed the default constructor.
  8227. (setStdout): New function.
  8228. (writeLog): Added the handling of NOTICE log level.
  8229. (writeFile): New function.
  8230. (notice): New function.
  8231. * src/TorrentMan.h: Updated doc.
  8232. * src/BitfieldMan.h: Updated doc.
  8233. * src/TrackerWatcherCommand.cc
  8234. (execute): Return true if error occurred in the request to the tracker
  8235. and halt is requested.
  8236. * src/TrackerUpdateCommand.cc
  8237. (execute): Return true if error occurred in the request to the tracker
  8238. and halt is requested.
  8239. To call onDownloadComplete from TorrentMan::completePiece(), not from
  8240. DownloadEngine:
  8241. * src/TorrentConsoleDownloadEngine.h
  8242. (onSelectiveDownloadingCompletes): Removed.
  8243. * src/TorrentConsoleDownloadEngine.cc
  8244. (onSelectiveDownloadingCompletes): Removed.
  8245. * src/TorrentDownloadEngine.h
  8246. (onEndOfRun): Added 'virtual' keyword.
  8247. (afterEachIteration): Removed.
  8248. (onSelectiveDownloadingCompletes): Removed.
  8249. * src/TorrentDownloadEngine.cc
  8250. (onEndOfRun): Removed filenameFixed.
  8251. (afterEachIteration): Removed.
  8252. * src/TorrentMan.cc
  8253. (completePiece): Call onDownloadComplete here.
  8254. (onDownloadComplete): Added 2 log messages.
  8255. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  8257. * src/NameResolver.h: Added the prototype declaration of callback().
  8258. To support c-ares library:
  8259. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8260. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8261. * src/FtpInitiateConnectionCommand.h:
  8262. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8263. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8264. * src/HttpInitiateConnectionCommand.h:
  8265. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8266. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  8267. Added thes upport of c-ares's ares_strerror(the idea came from patch
  8268. #1542285 by tizianomueller)
  8269. * src/HttpInitiateConnectionCommand.cc:
  8270. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8271. * src/FtpInitiateConnectionCommand.cc:
  8272. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8273. * src/DownloadEngine.h:
  8274. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8275. * src/DownloadEngine.cc:
  8276. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8277. To fix the bug that causes compilation failure with metalink-support
  8278. disabled(bug#1543587):
  8279. * src/main.cc: Fixed with the patch by tizianomueller.
  8280. * Release 0.7.2
  8281. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. * src/main.cc
  8283. (main): Added a message to inform users that aria2 is starting to
  8284. verify checksum.
  8285. * src/RequestInfo.cc
  8286. (printDownloadAbortMessage): Added a message to inform users that
  8287. transfer can be resumed.
  8288. * src/FeatureConfig.cc
  8289. (FEATURE_ASYNC_DNS): New definition.
  8290. (FeatureConfig): Added aysnc DNS entry.
  8291. To replace CommandUuid with Command* in SocketEntry and
  8292. NameResolverEntry:
  8293. * src/DownloadEngine.h
  8294. (CommandUuids): Removed.
  8295. (SocketEntry::commandUuid): Removed.
  8296. (SocketEntry::command): New variable.
  8297. (SocketEntry::SocketEntry): Updated.
  8298. (SocketEntry::operator==): Updated.
  8299. (NameResolverEntry::commandUuid): Removed.
  8300. (NameResolverEntry::command): New variable.
  8301. (NameResolverEntry::NameResolverEntry): Updated.
  8302. (NameResolverEntry::operator==): Updated.
  8303. (waitData): Changed the argument type.
  8304. (addSocketForReadCheck): Changed the argument type.
  8305. (deleteSocketForReadCheck): Changed the argument type.
  8306. (addSocketForWriteCheck): Changed the argument type.
  8307. (deleteSocketForWriteCheck): Changed the argument type.
  8308. (addNameResolverCheck): Changed the argument type.
  8309. (deleteNameResolverCheck): Changed the argument type.
  8310. * src/DownloadEngine.cc
  8311. (FindCommand): Removed.
  8312. (run): Removed activeUuid. Added activeCommands instead.
  8313. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8314. (AccumulateActiveCommand): New function object.
  8315. (waitData): Use AccumulateActiveCommand.
  8316. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8317. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8318. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8319. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8320. (addNameResolverCheck): Use Command instead of CommandUuid.
  8321. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8322. * src/AbstractCommand.cc
  8323. (disableReadCheckSocket): Updated according to the changes in
  8324. DownloadEngine.
  8325. (setReadCheckSocket): Updated according to the changes in
  8326. DownloadEngine.
  8327. (disableWriteCheckSocket): Updated according to the changes in
  8328. DownloadEngine.
  8329. (setWriteCheckSocket): Updated according to the changes in
  8330. DownloadEngine.
  8331. (setNameResolverCheck): Updated according to the changes in
  8332. DownloadEngine.
  8333. (disableNameResolverCheck): Updated according to the changes in
  8334. DownloadEngine.
  8335. * src/AbstractCommand.cc
  8336. (disableReadCheckSocket): Updated according to the changes in
  8337. DownloadEngine.
  8338. (setReadCheckSocket): Updated according to the changes in
  8339. DownloadEngine.
  8340. (disableWriteCheckSocket): Updated according to the changes in
  8341. DownloadEngine.
  8342. (setWriteCheckSocket): Updated according to the changes in
  8343. DownloadEngine.
  8344. * release 0.7.1
  8345. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. To handle the case where some BitTorrent tracker requires all letters
  8347. except for [A-Za-z0-9] is URL encoded.
  8348. * src/Util.h
  8349. (torrentUrlencode): New function.
  8350. * src/Util.cc
  8351. (ctype.h): Included.
  8352. (torrentUrlencode): New function.
  8353. * src/TrackerWatcherCommand.cc
  8354. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8355. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. To add asynchronous DNS support(libares):
  8357. * src/AbstractCommand.h
  8358. (setNameResolverCheck): New function.
  8359. (disableNameResolverCheck): New function
  8360. (resolveHostname): New function.
  8361. * src/AbstractCommand.cc
  8362. (setNameResolverCheck): New function.
  8363. (disableNameResolverCheck): New function
  8364. (resolveHostname): New function.
  8365. * src/FtpInitiateConnectionCommand.h
  8366. (nameResolver): New function.
  8367. * src/FtpInitiateConnectionCommand.cc
  8368. (Util.h): Included.
  8369. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8370. disableWriteCheckSocket.
  8371. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8372. (executeInternal): Added async DNS support.
  8373. * src/HttpInitiateConnectionCommand.h
  8374. (nameResolver): New function.
  8375. * src/HttpInitiateConnectionCommand.cc
  8376. (DlRetryEx.h): Included.
  8377. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8378. disableWriteCheckSocket.
  8379. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8380. (executeInternal): Added async DNS support.
  8381. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8382. by extern "C" declaration.
  8383. * src/NameResolver.cc: New class.
  8384. * src/Util.h:
  8385. (isNumberAndDotsNotation): New function
  8386. * src/Util.cc
  8387. (isNumberAndDotsNotation): New function.
  8388. * src/DownloadEngine.h
  8389. (NameResolver.h): Included.
  8390. (NameResolverEntry): New class.
  8391. (NameResolverEntries): New type definition.
  8392. (addNameResolverCheck): New function.
  8393. (deleteNameResolverCheck): New function.
  8394. * src/DownloadEngine.cc
  8395. (run): Initialize cp with 0.
  8396. (SetDescriptor::operator()): Added for NameResolverEntry.
  8397. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8398. (waitData): Check nameResolver entries.
  8399. (updateFdSet): Update fds in nameResolver entries.
  8400. (addNameResolverCheck): New function.
  8401. (deleteNameResolverCheck): new function.
  8402. * src/PeerInteractionCommand.cc
  8403. (executeInternal): Fixed wrong socket handling.
  8404. * src/main.cc
  8405. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8406. * src/Util.cc
  8407. (fileChecksum): Removed the call to ctx.digestReset().
  8408. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. * po/ru.po: Azamat sent me Russian translation.
  8410. * src/FtpNegotiateCommand.cc
  8411. (recvGreeting): Call disableWriteCheckSocket just after
  8412. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8413. (recvRetr): Recognized status code 125 as a acceptable response code.
  8414. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8415. case-insesitive filesystem(BUG#1531057).
  8416. * src/Time.h: Renamed as TimeA2.h.
  8417. * src/Time.cc: Renamed as TimeA2.cc.
  8418. * src/TimeA2.h: New class.
  8419. * src/TimeA2.cc: New class.
  8420. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8421. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8422. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8423. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8424. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8425. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8426. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8427. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8428. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8429. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8430. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8431. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8432. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8433. * release 0.7.0
  8434. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. * src/PeerChokeCommand.h
  8436. (PeerChokeCommand): Rearranged the arguments.
  8437. * src/PeerChokeCommand.cc
  8438. (PeerChokeCommand): Rearranged the arguments.
  8439. * src/MetalinkEntry.h
  8440. (Checksum.h): Included.
  8441. (md5): Removed.
  8442. (sha1): Removed.
  8443. (checksum): New variable.
  8444. (operator=): Updated.
  8445. (check): Removed.
  8446. * src/prefs.h
  8447. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8448. (PREF_FOLLOW_TORRENT): New definition.
  8449. (PREF_SELECT_FILE): New definition.
  8450. (PREF_FOLLOW_METALINK): New definition.
  8451. * src/MetalinkResource.h
  8452. (TYPE_HTTPS): Added to enum TYPE.
  8453. * src/TorrentMan.cc
  8454. (~TorrentMan): Rewritten.
  8455. * src/MultiDiskWriter.cc
  8456. (MultiDiskAdaptor): Updated according to the changes in
  8457. MessageDigestContext.
  8458. (~MultiDiskAdaptor): Updated according to the changes in
  8459. MessageDigestContext.
  8460. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8461. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8462. * src/Util.h
  8463. (fileChecksum): Updated according to the changes in
  8464. MessageDigestContext.
  8465. * src/Util.cc
  8466. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8467. (fileChecksum): Updated according to the changes in
  8468. MessageDigestContext.
  8469. * src/messageDigest.h: Rewritten.
  8470. * src/MetalinkEntry.cc
  8471. (check): Removed.
  8472. (Supported): Updated.
  8473. (dropUnsupportedResource): Fixed a memory leak.
  8474. * src/ShaVisitor.cc
  8475. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8476. (~ShaVisitor): Updated according to the changes in
  8477. MessageDigestContext.
  8478. (visit): Updated according to the changes in MessageDigestContext.
  8479. * src/main.cc
  8480. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8481. command-line option added.
  8482. * src/DownloadEngine.h
  8483. (SocketEntry): New class.
  8484. (SocketEntries): New definition.
  8485. (PairFind): Removed.
  8486. (SockCmdMap): Removed.
  8487. * src/DownloadEngine.cc
  8488. (DownloadEngine): Rewritten.
  8489. (~DownloadEngine): Rewritten.
  8490. (run): Renamed activeCommandUuids as activeUuids.
  8491. (SetDescriptor): Rewritten.
  8492. (AccumulateActiveCommandUuid): Removed.
  8493. (AccumulateActiveUuid): New function object.
  8494. (waitData): Rewritten.
  8495. (updateFdSet): Rewritten.
  8496. (addSocket): Rewritten.
  8497. (deleteSocket): Rewritten.
  8498. (addSocketForReadCheck): Rewritten.
  8499. (deleteSocketForReadCheck): Rewritten.
  8500. (addSocketForWriteCheck): Rewritten.
  8501. (deleteSocketForWriteCheck): Rewritten.
  8502. * src/Xml2MetalinkProcessor.cc
  8503. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8504. * src/DownloadCommand.cc
  8505. (executeInternal): Added the check routine for lowest speed limit.
  8506. * src/AbstractDiskWriter.cc
  8507. (AbstractDiskWriter): Updated according to the changes in
  8508. MessageDigestContext.
  8509. (~AbstractDiskWriter): Updated according to the changes in
  8510. MessageDigestContext.
  8511. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8512. * src/RequestInfo.h: New class.
  8513. * src/UrlRequestInfo.h: New class.
  8514. * src/UrlRequestInfo.cc: New class.
  8515. * src/TorrentRequestInfo.h: New class.
  8516. * src/TorrentRequestInfo.cc: New class.
  8517. * src/MetalinkRequestInfo.h: New class.
  8518. * src/MetalinkRequestInfo.cc: New class.
  8519. * src/Checksum.h: New class.
  8520. * src/DownloadEngineFactory.h: New class.
  8521. * src/DownloadEngineFactory.cc: New class.
  8522. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. * src/Option.h
  8524. (getAsBool): New function.
  8525. * src/Option.cc
  8526. (prefs.h): Included.
  8527. (defined): 0-length value is now recognized as undefined.
  8528. (getAsInt): Rewritten.
  8529. (getAsLLInt): Rewritten.
  8530. (getAsBool): New function.
  8531. * src/FeatureConfig.h: Rewritten.
  8532. * src/FeatureConfig.cc: Rewritten.
  8533. * src/prefs.h
  8534. (PREF_STDOUT_LOG): New definition.
  8535. (PREF_LOG): New definition.
  8536. (PREF_DIR): New definition.
  8537. (PREF_OUT): New definition.
  8538. (PREF_SPLIT): New definition.
  8539. (PREF_DAEMON): New definition.
  8540. (PREF_REFERER): New definition.
  8541. (PREF_TORRENT_FILE): New definition.
  8542. (PREF_LISTEN_PORT): New definition.
  8543. (PREF_METALINK_FILE): New definition.
  8544. (PREF_METALINK_VERSION): New definition.
  8545. (PREF_METALINK_LANGUAGE): New definition.
  8546. (PREF_METALINK_OS): New definition.
  8547. (PREF_METALINK_SERVERS): New definition.
  8548. * src/main.cc
  8549. (main): Following command-line parameters are now put into Option
  8550. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8551. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8552. metalinkLanguage, metalinkOs, metalinkServers
  8553. To fix the bug that aria2 can not handle http response header properly.
  8554. * src/HttpHeader.cc
  8555. (put): Made name lowercased.
  8556. (defined): Made name lowercased.
  8557. (getFirst): Made name lowercased.
  8558. (get): Made name lowercased.
  8559. (getFirstAsInt): Rewritten.
  8560. (getFirstAsLLInt): Rewritten.
  8561. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. * src/TorrentMan.h:
  8563. (advertisePiece): Updated doc.
  8564. (getAdvertisedPieceIndexes): Updated doc.
  8565. (removeAdvertisedPiece); New function.
  8566. * src/TorrentMan.cc
  8567. (FindElapsedHave): New function object.
  8568. (removeAdvertisedPiece): New function.
  8569. * src/HaveEraseCommand.h: New class.
  8570. * src/HaveEraseCommand.cc: New class.
  8571. * src/FeatureConfig.h: New class.
  8572. * src/FeatureConfig.cc: New class.
  8573. * src/Request.h
  8574. (defaultPorts): Removed.
  8575. * src/Request.cc
  8576. (FeatureConfig.h): Included.
  8577. (Request): Removed the statements related to defaultPorts.
  8578. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8579. A default port number is now retrieved from FeatureConfig.
  8580. * src/main.cc
  8581. (HaveEraseCommand.h): Included.
  8582. (showVersion): Added the output of feature list.
  8583. (main): Added HaveEraseCommand to command queue in BitTorrent
  8584. downloading.
  8585. * src/PeerInteractionCommand.h
  8586. (chokeCheckPoint): Commented out.
  8587. (periodicExecPoint): New variable.
  8588. * src/PeerInteractionCommand.cc
  8589. (executeInternal): Following methods are now called in at least every
  8590. 0.5 seconds to reduce CPU usage:
  8591. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8592. checkHave(), sendKeepAlive().
  8593. (checkLongTimePeerChoking): Commented out.
  8594. * src/BitfieldMan.h
  8595. (getNthBitIndex): Changed the method signature.
  8596. (getMissingIndexRandomly): Changed the method signature.
  8597. * src/BitfieldMan.cc
  8598. (getNthBitIndex): Rewritten
  8599. (getMissingIndexRandomly): Rewritten.
  8600. (hasMissingPiece): Rewritten.
  8601. (getMissingIndex): Refactored.
  8602. (getMissingUnusedIndex); Refactored.
  8603. (getMissingIndex): Refactored.
  8604. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. * src/PeerMessage.h
  8606. (Piece.h): Included.
  8607. (SharedHandle.h): Included.
  8608. (invalidate): New variable.
  8609. (uploading): New variable.
  8610. (isInvalidate): New function.
  8611. (isUploading): New function.
  8612. (onPush): New function.
  8613. (onChoked): New function.
  8614. (onCanceled): New function.
  8615. (onAbortPiece): New function.
  8616. (PeerMessageHandle): New type definition.
  8617. * src/PeerMessage.cc
  8618. (PeerMessage): Added the initialization for invalidate and uploading.
  8619. * src/CancelMessage.h
  8620. (CancelMessage): Rewritten.
  8621. * src/RejectMessage.h
  8622. (RejectMessage): Rewritten.
  8623. * src/Metalinker.h
  8624. (operator=): Defined.
  8625. * src/MetaEntry.h
  8626. (operator=): Defined.
  8627. * src/MetalinkResource.h
  8628. (operator=): Defined.
  8629. * src/AllowedFastMessage.h
  8630. (AllowedFastMessage): Rewritten.
  8631. * src/HandshakeMessage.h
  8632. (HandshakeMessage): New function(overload).
  8633. * src/HandshakeMessage.cc
  8634. (HandshakeMessage): Rewritten.
  8635. (init): New function.
  8636. * src/HaveMessage.h
  8637. (HaveMessage): Rewritten.
  8638. * src/Time.h
  8639. (operator=): Defined the function body here.
  8640. * src/Time.cc
  8641. (operator=): Removed.
  8642. * src/SocketCore.h
  8643. (operator==): Defined here.
  8644. (operator!=): Defined here.
  8645. (operator<): Defined here.
  8646. * src/SocketCore.cc
  8647. (operator==): Removed.
  8648. (operator<): Removed.
  8649. * src/BitfieldMan.h
  8650. (operator=): Defined the function body here.
  8651. * src/BitfieldMan.cc
  8652. (operator=): Removed.
  8653. * src/TorrentMan.h
  8654. (deleteErrorPeer): Removed.
  8655. (deleteUnusedPeer); New function.
  8656. * src/TorrentMan.cc
  8657. (addPeer): Call deleteUnusedPeer.
  8658. (deleteErrorPeer): Removed.
  8659. (deleteUnusedPeer): New function.
  8660. * src/PeerAbstractCommand.h
  8661. (setNoCheck): New function.
  8662. (noCheck): New variable.
  8663. * src/PeerAbstractCommand.cc
  8664. (PeerAbstractCommand): Added the initialization of noCheck.
  8665. (execute): Added a check for noCheck.
  8666. (setNoCheck): New function.
  8667. * src/Util.h
  8668. (stdio.h): Included.
  8669. * src/Util.cc
  8670. (unistd.h): Included.
  8671. * src/DefaultDiskWriter.cc
  8672. (unistd.h): Included.
  8673. * src/Peer.h
  8674. (operator==): Defined the function body here.
  8675. (operator!=): Defined the function body here.
  8676. * src/Peer.cc
  8677. (operator==): Removed.
  8678. (operator!=): Removed.
  8679. * src/Piece.h
  8680. (Piece): Defined the function body here(copy constructor).
  8681. (operator=): Defined the function body here.
  8682. (operator==): Defined the function body here.
  8683. * src/Piece.cc
  8684. (Piece): Removed(copy constructor).
  8685. (operator=): Removed.
  8686. (operator==): Removed.
  8687. * src/PeerMessageUtil.h
  8688. (ChokeMessage.h): Removed.
  8689. (UnchokeMessage.h): Removed.
  8690. (InterestedMessage.h): Removed.
  8691. (NotInterestedMessage.h): Removed.
  8692. (HaveMessage.h): Removed.
  8693. (BitfieldMessage.h): Removed.
  8694. (RequestMessage.h): Removed.
  8695. (CancelMessage.h): Removed.
  8696. (PieceMessage.h): Removed.
  8697. (HandshakeMessage.h): Removed.
  8698. (KeepAliveMessage.h): Removed.
  8699. (PortMessage.h): Removed.
  8700. (HaveAllMessage.h): Removed.
  8701. (HaveNoneMessage.h): Removed.
  8702. (PeerConnection.h): Removed.
  8703. (HandshakeMessage.h): Included.
  8704. * src/BitfieldMessage.h
  8705. (init): New function.
  8706. (BitfieldMessage): Rewritten.
  8707. (BitfieldMessage): New function(overload).
  8708. * src/RequestSlot.h
  8709. (operator=): Defined the function body here.
  8710. (operator==): Defined the function body here.
  8711. * src/RequestSlot.cc
  8712. (operator=): Removed.
  8713. (operator==): Removed.
  8714. To remove the dependency on the PeerMessage subclass from
  8715. PeerInteraction:
  8716. * src/PeerMessageFactory.h: New class.
  8717. * src/PeerMessageFactory.cc: New class.
  8718. * src/SimplePeerMessage.cc
  8719. (send): If invalidate is true then do nothing.
  8720. * src/PeerInteractionCommand.cc
  8721. (HandshakeMessage.h): Included.
  8722. (KeepAliveMessage.h): Included.
  8723. (ChokeMessage.h): Included.
  8724. (UnchokeMessage.h): Included.
  8725. (HaveMessage.h): Included.
  8726. (executeInternal): Call setNoCheck().
  8727. Removed setWriteCheckSocket(socket).
  8728. * src/PeerInteraction.h
  8729. (ChokeMessage.h): Removed.
  8730. (UnchokeMessage.h): Removed.
  8731. (InterestedMessage.h): Removed.
  8732. (NotInterestedMessage.h): Removed.
  8733. (HaveMessage.h): Removed.
  8734. (BitfieldMessage.h): Removed.
  8735. (RequestMessage.h): Removed.
  8736. (CancelMessage.h): Removed.
  8737. (PieceMessage.h): Removed.
  8738. (HandshakeMessage.h): Removed.
  8739. (KeepAliveMessage.h): Removed.
  8740. (PortMessage.h): Removed.
  8741. (HaveAllMessage.h): Removed.
  8742. (HaveNoneMessage.h): Removed.
  8743. (RejectMessage.h): Removed.
  8744. (AllowedFastMessage.h): Removed.
  8745. (SuggestPieceMessage.h): Removed.
  8746. (PeerMessageFactory.h): Included.
  8747. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8748. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8749. (PeerMessageFactory): New variable.
  8750. (createPeerMessage): Removed.
  8751. (createHandshakeMessage): Removed.
  8752. (setPeerMessageCommonProperty): Removed.
  8753. (addRequestSlot): New function.
  8754. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8755. (getPeerMessageFactory): New function.
  8756. (createRequestMessage): Removed.
  8757. (createCancelMessage): Removed.
  8758. (createPieceMessage): Removed.
  8759. (createHaveMessage): Removed.
  8760. (createChokeMessage): Removed.
  8761. (createUnchokeMessage): Removed.
  8762. (createInterestedMessage): Removed.
  8763. (createNotInterestedMessage): Removed.
  8764. (createBitfieldMessage): Removed.
  8765. (createKeepAliveMessage): Removed.
  8766. (createHaveAllMessage): Removed.
  8767. (createHaveNoneMessage): Removed.
  8768. (createRejectMessage): Removed.
  8769. (createAllowedFastMessage): Removed.
  8770. * src/PeerInteraction.cc
  8771. (PeerInteraction): Allocate PeerMessageFactory here.
  8772. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8773. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8774. PieceMessage::ID.
  8775. (addMessage): Simplified by using PeerMessage::onPush().
  8776. (addRequestSlot): New function.
  8777. (rejectAllPieceMessageInQueue): Simplified by using
  8778. PeerMessage::onChoked().
  8779. (rejectPieceMessageInQueue): Simplified by using
  8780. PeerMessage::onCanceled().
  8781. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8782. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8783. (createHandshakeMessage): Removed.
  8784. (createPeerMessage): Removed.
  8785. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8786. (setPeerMessageCommonProperty): Removed.
  8787. (createRequestMessage): Removed.
  8788. (createCancelMessage): Removed.
  8789. (createPieceMessage): Removed.
  8790. (createHaveMessage): Removed.
  8791. (createChokeMessage): Removed.
  8792. (createUnchokeMessage): Removed.
  8793. (createInterestedMessage): Removed.
  8794. (createNotInterestedMessage): Removed.
  8795. (createBitfieldMessage): Removed.
  8796. (createKeepAliveMessage): Removed.
  8797. (createHaveAllMessage): Removed.
  8798. (createHaveNoneMessage): Removed.
  8799. (createRejectMessage): Removed.
  8800. (createAllowedFastMessage): Removed.
  8801. * src/PieceMessage.h
  8802. (createRejectMessage): New function.
  8803. (PieceMessage): Rewritten.
  8804. (onChoked): New function.
  8805. (onCanceled): New function.
  8806. * src/PieceMessage.cc
  8807. (send): If invalidate is true then do nothing, just return.
  8808. (createRejectMessage): New function.
  8809. (onChoked): New function.
  8810. (onCanceled): New function.
  8811. * src/RequestMessage.h
  8812. (RequestMessage): Rewritten.
  8813. (onPush): New function.
  8814. (onAbortPiece): New function.
  8815. * src/RequestMessage.cc
  8816. (onPush): New function.
  8817. (onAbortPiece): New function.
  8818. Update fd_set when a socket is added or deleted in order to improve
  8819. performance:
  8820. * src/DownloadEngine.h
  8821. (rfdset): New variable.
  8822. (wfdset): New variable.
  8823. (updateFdSet): New function.
  8824. * src/DownloadEngine.cc
  8825. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8826. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8827. (waitData): Copy rfdset and wfdset.
  8828. (updateFdSet): New function.
  8829. (addSocket): Call updateFdSet.
  8830. (deleteSocket): Call updateFdSet.
  8831. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. To add the support for Metalink3.0 backward compatible links:
  8833. * src/Request.h
  8834. (SAFE_CHARS): Added '#'.
  8835. (METALINK_MARK): New definition.
  8836. * src/Request.cc
  8837. (parseUrl): Added the support for Metalink3.0 backward compatible
  8838. links.
  8839. etc
  8840. * src/PeerInteraction.cc
  8841. (MsgPushBack): Removed.
  8842. (sendMessages): Use STL copy and back_inserter.
  8843. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8844. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8845. * src/TorrentMan.h
  8846. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8847. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. * src/SharedHandle.h: New class.
  8849. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8850. * src/HttpResponseCommand.h
  8851. (HttpResponseCommand): Wrapped Socket.
  8852. * src/SocketCore.h
  8853. (operator==): New function.
  8854. (operator!=): New function.
  8855. (operator<): New function.
  8856. (getSockfd): New function.
  8857. (isOpen): New function.
  8858. (writeData): New function.
  8859. * src/SocketCore.cc
  8860. (operator==): New function.
  8861. (operator!=): New function.
  8862. (operator<): New function.
  8863. * src/AbstractCommand.h
  8864. (socket): Changed its type to SocketHandle.
  8865. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8866. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8867. (disableReadCheckSocket): New function.
  8868. (disableWriteCheckSocket): New function.
  8869. (readCheckTarget): Changed its type to SocketHandle.
  8870. (writeCheckTarget): Changed its type to SocketHandle.
  8871. (AbstractCommand): Replaced Socket with SocketHandle.
  8872. * src/AbstractCommand.cc
  8873. (AbstractCommand): Replaced Socket with SocketHandle.
  8874. (~AbstractCommand): Removed the deallocation for Socket object.
  8875. (disableReadCheckSocket): New function.
  8876. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8877. (disableWriteCheckSocket): New function.
  8878. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8879. * src/HttpDownloadCommand.cc
  8880. (DownloadCommand): Replaced Socket with SocketHandle.
  8881. * src/PeerAbstractCommand.h
  8882. (socket): Changed its type to SocketHandle.
  8883. (peer): Changed its type to PeerHandle.
  8884. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8885. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8886. (disableReadCheckSocket): New function.
  8887. (disableWriteCheckSocket): New function.
  8888. (readCheckTarget): Changed its type to SocketHandle.
  8889. (writeCheckTarget): Changed its type to SocketHandle.
  8890. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8891. Replaced Peer with PeerHandle.
  8892. * src/HttpRequestCommand.cc
  8893. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8894. Use disableReadCheckSocket.
  8895. * src/PeerInitiateConnectionCommand.h
  8896. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8897. * src/PeerChokeCommand.cc
  8898. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  8899. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  8900. (execute): Use PeerHandle.
  8901. * src/PeerConnection.h
  8902. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  8903. (socket): Changed its type to SocketHandle.
  8904. (PeerConnection): Replaced Socket with SocketHandle.
  8905. * src/PeerConnection.cc
  8906. (PeerConnection): Replaced Socket with SocketHandle.
  8907. * src/PeerInteractionCommand.h
  8908. (PeerInteractionCommand): Replaced socket with SocketHandle.
  8909. Replaced Peer with PeerHandle.
  8910. * src/PeerInteractionCommand.cc
  8911. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  8912. Replaced Peer with PeerHandle.
  8913. (executeInternal): Use disableWriteCheckSocket.
  8914. Use HandshakeMessageHandle.
  8915. (receiveMessages): Use PeerMessageHandle.
  8916. (prepareForNextPeer): Use PeerHandle.
  8917. * src/HttpProxyRequestCommand.h
  8918. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8919. * src/HttpResponseCommand.cc
  8920. (HttpResponseCommand): Replaced Socket with SocketHandle.
  8921. * src/TorrentMan.cc
  8922. (nullPeer): Added external reference.
  8923. (~TorrentMan): Removed the deallocation of the elements of peers.
  8924. (addPeer): Rewritten.
  8925. (isPeerAvailable): Use nullPeer.
  8926. (deleteOldpeers): Replaced with deleteErrorPeer.
  8927. (deleteErrorPeer): New function.
  8928. (getPeer): Use PeerHandle and nullPeer.
  8929. (hasMissingPiece): Replaced Peer with PeerHandle.
  8930. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8931. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8932. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8933. (getMissingPiece): Replaced Peer with PeerHandle.
  8934. * src/FtpNegotiateCommand.cc
  8935. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  8936. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  8937. (recvGreeting): Use disableWriteCheckSocket.
  8938. (recvPasv): Removed the allocation of Socket.
  8939. Use disableReadCheckSocket.
  8940. (sendRestPasv): Use disableWriteCheckSocket.
  8941. (recvRetr): Changed assertion.
  8942. * src/PeerInteraction.h
  8943. (SharedHandle.h): Included SharedHandle.h.
  8944. (PeerMessageHandle): New type definition.
  8945. (HandshakeMessageHandle): New type definition.
  8946. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  8947. (peer): Changed its type to PeerHandle.
  8948. (createHandshakeMessage): Replaced HandshakeMessage with
  8949. HandshakeMessageHandle.
  8950. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  8951. (PeerInteraction): Replaced Peer with PeerHandle.
  8952. Replaced Socket with SocketHandle.
  8953. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8954. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8955. (receiveHandshake): Replaced HandshakeMessage with
  8956. HandshakeMessageHandle.
  8957. * src/PeerInteraction.cc
  8958. (PeerInteraction): Replaced Peer with PeerHandle.
  8959. Replaced Socket with SocketHandle.
  8960. (~PeerInteraction): Removed the deallocation of the elements of
  8961. messageQueue.
  8962. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  8963. (isSendingMessageInProgress): Replaced PeerMessage with
  8964. PeerMessageHandle.
  8965. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  8966. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8967. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  8968. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  8969. (abortPiece): Use PeerMessageHandle.
  8970. (receiveHandshake): Replaced HandshakeMessage with
  8971. HandshakeMessageHandle. Removed try-catch block.
  8972. (createHandshakeMessage): Replaced HandshakeMessage with
  8973. HandshakeMessageHandle.
  8974. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8975. Removed try-catch block.
  8976. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  8977. * src/HttpProxyResponseCommand.cc
  8978. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8979. * src/FtpTunnelResponseCommand.h
  8980. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8981. * src/HttpConnection.cc
  8982. (HttpConnection): Replaced Socket with SocketHandle.
  8983. * src/PeerAbstractCommand.cc
  8984. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8985. (~PeerAbstractCommand): Removed the deallocation of socket.
  8986. Use disableReadCheckSocket, disableWriteCheckSocket.
  8987. (disableReadCheckSocket): New function.
  8988. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8989. (disableWriteCheckSocket): New function.
  8990. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8991. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  8992. * src/FtpTunnelRequestCommand.cc
  8993. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8994. (~FtpTunnelRequestCommand): Corrected indentation.
  8995. * src/DownloadCommand.h
  8996. (DownloadCommand): Replaced Socket with SocketHandle.
  8997. * src/PeerListenCommand.cc
  8998. (PeerListenCommand): Removed the initialization of socket.
  8999. (~PeerListenCommand): Removed the deallocation of socket.
  9000. (bindPort): Use SocketHandle.
  9001. (execute): Use SocketHandle and PeerHandle.
  9002. * src/FtpDowndloadCommand.cc
  9003. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9004. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9005. * src/main.cc
  9006. (main): Corrected indentation.
  9007. * src/HttpInitiateConnectionCommand.cc
  9008. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9009. (executeInternal): Removed the allocation of socket.
  9010. * src/HttpRequestCommand.h
  9011. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9012. * src/FtpNegotiationCommand.h
  9013. (dataSocket): Changed its type to SocketHandle.
  9014. (serverSocket): Changed its type to SocketHandle.
  9015. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9016. * src/TorrentMan.h
  9017. (MAX_PEER_UPDATE): Removed.
  9018. (MAX_PEERS): New definition.
  9019. (Peers): The element is now of type PeerHandle.
  9020. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9021. (getPeer): Replaced Peer with PeerHandle.
  9022. (deleteOldErrorPeers): Removed.
  9023. (deleteErrorPeer): New function.
  9024. (hasMissingPiece): Replaced Peer with PeerHandle.
  9025. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9026. (getMissingPiece): Replaced Peer with PeerHandle.
  9027. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9028. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9029. (addActivePeer): Replaced Peer with PeerHandle.
  9030. (deleteActivePeer): Replaced Peer with PeerHandle.
  9031. Added a check for the return value of find.
  9032. * src/FtpTunnelResponseCommand.cc
  9033. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9034. * src/FtpInitiateConnectionCommand.cc
  9035. (executeInternal): Removed the allocation of socket.
  9036. * src/DownloadEngine.h
  9037. (Sockets): An element is now of type SocketHandle.
  9038. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9039. (CommandUuids): New type definition.
  9040. (rsockets): Changed its type to SockCmdMap.
  9041. (wsockets): Changed its type to SockCmdMap.
  9042. (addSocket): Rewritten.
  9043. (deleteSocket): Rewritten.
  9044. (addSocketForReadCheck): Rewritten.
  9045. (deleteSocketForReadCheck): Rewritten.
  9046. (addSocketForWriteCheck): Rewritten.
  9047. (deleteSocketForWriteCheck): Rewritten.
  9048. (PairFind): New template class.
  9049. * src/HttpDownloadCommand.h
  9050. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9051. * src/FtpConnection.cc
  9052. (FtpConnection): Replaced Socket with SocketHandle.
  9053. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9054. block.
  9055. * src/InitiateConnectionCommandFactory.cc
  9056. (DlAbortEx.h): Included DlAbortEx.h.
  9057. (createInitiateConnectionCommand): Throw exception if the protocol of
  9058. requested URI is not supported.
  9059. * src/Peer.cc
  9060. (nullPeer): Changed its type to PeerHandle.
  9061. (operator==): New function.
  9062. (operator!=): New function.
  9063. * src/Peer.h
  9064. (SharedHandle.h): Included SharedHandle.h.
  9065. (operator==): New function.
  9066. (operator!=): New function.
  9067. (Peer): Added the default constructor.
  9068. Use resetStatus() to initialize member variables.
  9069. (nullPeer): Removed.
  9070. * src/TrackerUpdateCommand.cc
  9071. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9072. with MIN_PEERS.
  9073. * src/PeerListenCommand.h
  9074. (socket): Changed its type to SocketHandle.
  9075. * src/Command.h
  9076. (CommandUuid): New type definition.
  9077. (uuid): New variable.
  9078. (uuidGen): New variable.
  9079. (Command): Added the initialization of uuid.
  9080. (getUuid): New function.
  9081. * src/Socket.h
  9082. (Socket): Removed.
  9083. (SocketHandle): New type definition.
  9084. * src/DownloadEngine.h
  9085. (FindCommand): New function object.
  9086. (run): The portion of socket check was rewritten.
  9087. (SetDescriptor): New function object.
  9088. (AccumulateActiveCommandUuid): New function object.
  9089. (waitData): Rewritten.
  9090. (addSocket): Rewritten.
  9091. (deleteSocket): Rewritten.
  9092. (addSocketForReadCheck): Rewritten.
  9093. (addSocketForWriteCheck): Rewritten.
  9094. (deleteSocketForReadCheck): Rewritten.
  9095. (deleteSocketForWriteCheck): Rewritten.
  9096. * src/HttpProxyResponseCommand.h
  9097. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  9098. * src/HttpConnection.h
  9099. (socket): Changed its type to SocketHandle.
  9100. (HttpConnection): Replaced Socket with SocketHandle.
  9101. * src/PeerInitiateConnectionCommand.cc
  9102. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9103. (executeInternal): Removed the allocation of socket.
  9104. (prepareForNextPeer): Use PeerHandle.
  9105. * src/PeerMessage.h
  9106. (peer): Changed its type to PeerHandle.
  9107. (getPeer): Replaced Peer with PeerHandle.
  9108. (setPeer): Replaced Peer with PeerHandle.
  9109. * src/DownloadCommand.cc
  9110. (DownloadCommand): Replaced Socket with SocketHandle.
  9111. * src/FtpConnection.h
  9112. (socket): Changed its type to SocketHandle.
  9113. (FtpConnection): Replaced Socket with SocketHandle.
  9114. (sendPort); Replaced Socket with SocketHandle.
  9115. * src/FtpDowndloadCommand.h
  9116. (ctrlSocket): Changed its type to SocketHandle.
  9117. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9118. * src/HttpProxyRequestCommand.cc
  9119. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9120. * src/FtpTunnelRequestCommand.h
  9121. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9122. etc
  9123. * src/PeerChokeCommand.h
  9124. (setAllPeerChoked): Removed.
  9125. (setAllPeerResetDelta): Removed.
  9126. * src/PeerChokeCommand.cc
  9127. (setAllPeerChoked): Removed.
  9128. (ChokePeer): New function object.
  9129. (setAllPeerResetDelta): Removed.
  9130. (ResetDelta): New function object.
  9131. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  9132. (execute): Show download speed when the local node is a seeder.
  9133. setAllPeerChoked and setAllPeerResetDelta were rewritten
  9134. using STL.
  9135. * src/TrackerWatcherCommand.h
  9136. (MIN_PEERS): Removed.
  9137. * src/TorrentMan.cc
  9138. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  9139. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. To fix the bug that .aria2 file is not saved if downloading is stopped
  9141. by the errors:it results that aria2 can not resume downloading:
  9142. * src/main.cc
  9143. (normalDownload): Added the call to save().
  9144. (main): Added the deletion of the elements in 'reserved'.
  9145. To fix log:
  9146. * src/PeerInteraction.cc
  9147. (receiveHandshake): Fixed log.
  9148. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. To improve download performance in BitTorrent:
  9150. * src/TorrentMan.cc
  9151. (getPeer): Check the number of connections. Return nullPeer if
  9152. it is greater than MAX_PEER_UPDATE.
  9153. This code was originally here, but was removed in 0.5.1.
  9154. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9155. To improve the conditional compilation:
  9156. * src/MultiDiskWriter.h:
  9157. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9158. * src/MultiDiskWriter.cc:
  9159. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9160. * src/Util.h:
  9161. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9162. Added ENABLE_BITTORRENT around computeFastSet().
  9163. * src/Util.cc:
  9164. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9165. Added ENABLE_BITTORRENT around computeFastSet().
  9166. * src/messageDigest.h:
  9167. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  9168. * src/ShaVisitor.h:
  9169. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9170. * src/ShaVisitor.cc:
  9171. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9172. * src/main.cc:
  9173. Added ENABLE_BITTORRENT around includes and blocks related to
  9174. BitTorrent.
  9175. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  9176. digest support is not available.
  9177. * src/AbstractDiskWriter.h:
  9178. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9179. * src/AbstractDiskWriter.cc:
  9180. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9181. * src/MetalinkEntry.cc
  9182. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  9183. support is not available.
  9184. To add command-line options for Metalink:
  9185. * src/main.cc:
  9186. Added metalink-version, metalink-language, metalink-os,
  9187. follow-metalink.
  9188. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  9189. * src/main.cc: Use these definition.
  9190. * Release 0.6.0
  9191. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. To add Metalink support(http/ftp only):
  9193. * src/AbstractCommand.h
  9194. (tryReserved): New function.
  9195. * src/AbstractCommand.cc
  9196. (execute): Call tryReserved().
  9197. (tryReserved): New function.
  9198. * src/Request.h
  9199. (Requests): New type definition.
  9200. * src/SegmentMan.h
  9201. (reserved): New variable.
  9202. * src/Util.h
  9203. (fileChecksum): New function.
  9204. (toUpper): New function.
  9205. (toLower): New function.
  9206. * src/Util.cc
  9207. (messageDigest.h): Included.
  9208. (trim): Trim \r\n\t.
  9209. (fileChecksum): New function.
  9210. (toUpper): New function.
  9211. (toLower): New function.
  9212. * src/main.cc
  9213. (normalDownload): New function.
  9214. (main): Added 2 command-line options: metalink-file,
  9215. metalink-connection. Their usage has not been written yet.
  9216. * src/MetalinkProcessor.h: New class.
  9217. * src/Xml2MetalinkProcessor.h: New class.
  9218. * src/Xml2MetalinkProcessor.cc: New class.
  9219. * src/MetalinkEntry.h: New class.
  9220. * src/MetalinkEntry.cc: New class.
  9221. * src/MetalinkResource.h: New class.
  9222. * src/MetalinkResource.cc: New class.
  9223. To add md5 message digest checking:
  9224. * src/messageDigest.h: Rewritten.
  9225. * src/MultiDiskWriter.cc: Updated according to the changes in
  9226. messageDigest.h.
  9227. * src/ShaVisitor.cc: Updated according to the changes in
  9228. messageDigest.h.
  9229. * src/Util.cc: Updated according to the changes in messageDigest.h.
  9230. * src/AbstractDiskWriter.cc: Updated according to the changes in
  9231. messageDigest.h.
  9232. To fix a bug that causes segfault when the payload length in peer
  9233. message is less than 0:
  9234. * src/PeerConnection.cc:
  9235. (receiveMessage): Fixed the bug.
  9236. * src/PeerMessageUtil.cc
  9237. (checkLength): Throw an exception if length is less than or equals to
  9238. 0.
  9239. To add new interfaces to Base64 encoding/decoding:
  9240. * src/Base64.h
  9241. (part_encode): Changed the method signature.
  9242. (encode): New function(overload).
  9243. (decode): New function(overload).
  9244. * src/Base64.cc
  9245. (part_encode): Rewritten.
  9246. (encode): Rewritten.
  9247. (encode): New function(overload).
  9248. To prevent a peer to download same piece if there is an error in
  9249. checksum:
  9250. * src/PieceMessage.cc
  9251. (receivedAction): Call peerInteraction->abortPiece().
  9252. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. To fix the bug that causes same have message is sent many times to
  9254. a single peer.
  9255. * src/Time.cc
  9256. (isNewer): Use Util::difftv().
  9257. * src/Util.cc
  9258. (difftv): Added a cast to (long long int).
  9259. * src/TorrentMan.cc
  9260. (advertisePiece): Use push_front.
  9261. (getAdvertisedPieceIndexes): A performance improvement was made.
  9262. To fix the bug that sends tracker requests without a sleep interval
  9263. when the number of connections is less than 15.
  9264. * src/TrackerWatcherCommand.cc
  9265. (execute): Now the number of connections is not a factor to decide
  9266. whether or not a tracker request should be sent or not.
  9267. * src/Time.h
  9268. (setTimeInSec): New function.
  9269. * src/Time.cc
  9270. (setTimeInSec): New function.
  9271. etc.
  9272. * src/ChokeMessage.cc
  9273. (receivedAction): Removed peer->snubbing = false
  9274. * src/PeerConnection.h
  9275. (receiveHandshake): Updated doc.
  9276. * src/TorrentMan.h
  9277. (getAdvertisedPieceIndexes): Updated the method signature.
  9278. * src/TorrentMan.cc
  9279. (getAdvertisedPieceIndexes): Updated the method signature.
  9280. * src/Time.h
  9281. (getTimeInMicros): Added a cast to (long long int).
  9282. (getTimeInMillis): Added a cast to (long long int).
  9283. * Release 0.5.2
  9284. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. To make a listening socket non-block:
  9286. * src/SocketCore.h
  9287. (setNonBlockingMode): New function.
  9288. * src/SocketCore.cc
  9289. (setNonBlockingMode): New function.
  9290. (beginListen): Added a call to setNonBlockingMode().
  9291. (acceptConnection): Call setNonBlockingMode().
  9292. (setBlockingMode): Updated.
  9293. To handle tracker's NAT-checking:
  9294. * src/PeerConnection.cc
  9295. (receiveHandshake): 'msg' param is filled with received data and
  9296. its length is assigned to 'length' param, even if all handshake
  9297. message is not yet received.
  9298. * src/PeerInteractionCommand.cc
  9299. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9300. a new peer connects to localhost.
  9301. A call to peerInteraction->sendHandshake() was removed because
  9302. it is called from peerInteraction->receiveHandshake(true).
  9303. * src/PeerInteraction.h
  9304. (quickReplied): New variable.
  9305. (receiveHandshake): Added an argument.
  9306. * src/PeerInteraction.cc
  9307. (PeerInteraction): Added the initialization of quickReplied.
  9308. (receiveHandshake): Send handshake message as soon as the info hash
  9309. in a handshake message from a peer is correct.
  9310. To change the random part of peer id and key parameter:
  9311. * src/TorrentMan.h
  9312. (key): New variable.
  9313. * src/TorrentMan.cc
  9314. (setupInternal1): Use Util::randomAlpha() to generate random part
  9315. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9316. key is also generated by Util::randomAlpha() and it is now 8 character
  9317. long.
  9318. * src/Util.h
  9319. (randomAlpha): New function.
  9320. * src/Util.cc
  9321. (randomAlpha): New function.
  9322. * src/TrackerWatcherCommand.cc
  9323. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9324. Added no_peer_id=1.
  9325. Set snubbing flag to false when a choke message is received from a
  9326. snubbed peer.
  9327. * src/ChokeMessage.cc
  9328. (receivedAction): Set snubbing flag to false.
  9329. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9331. * src/SimpleLogger.h (writeHeader): New function.
  9332. * src/SimpleLogger.cc (writeHeader): New function.
  9333. (writeLog): Fixed the bug that causes segfaults if exception message
  9334. contains an unescaped "%" character.
  9335. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9336. when a tracker request fails.
  9337. * src/Request.cc (parseUrl): Query string is now handled properly.
  9338. * Release 0.5.1
  9339. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. To add Time class which represents a specific instant in time and
  9341. its precision is microseconds. Time checking procedures were rewritten
  9342. using this object.
  9343. * src/Time.h: New class.
  9344. * src/Time.cc: New class.
  9345. * src/AbstractCommand.h
  9346. (updateCheckPoint): Removed.
  9347. (isTimeoutDetected): Removed.
  9348. (checkPoint): Changed the type to Time.
  9349. (timeout): New variable.
  9350. (setTimeout): New function.
  9351. * src/AbstractCommand.cc
  9352. (AbstractCommand): Removed the initialization of checkPoint.
  9353. Added the initialization of timeout.
  9354. (updateCheckPoint): Removed.
  9355. (isTimeoutDetected): Removed.
  9356. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9357. * src/PeerChokeCommand.h
  9358. (checkPoint): Changed the type to Time.
  9359. * src/PeerChokeCommand.cc
  9360. (PeerChokeCommand): Removed the initialization of checkPoint.
  9361. (execute): Rewritten using Time object.
  9362. * src/TrackerWatcherCommand.h
  9363. (checkPoint): Changed the type to Time.
  9364. * src/TrackerWatcherCommand.cc
  9365. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9366. (execute): Rewritten.
  9367. * src/ConsoleDownloadEngine.h
  9368. (cp): Changed the type to Time.
  9369. (startup): Changed the type to Time.
  9370. * src/ConsoleDownloadEngine.cc
  9371. (initStatistics): Use cp.reset(), startup.reset().
  9372. (calculateStatistics): Rewritten using Time object.
  9373. * src/PeerAbstractCommand.h
  9374. (updateCheckPoint): Removed.
  9375. (isTimeoutDetected): Removed.
  9376. (checkPoint): Changed the type to Time.
  9377. * src/PeerAbstractCommand.cc
  9378. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9379. (updateCheckPoint): Removed.
  9380. (isTimeoutDetected): Removed.
  9381. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9382. * src/PeerInteractionCommand.cc
  9383. (PeerInteractionCommand): Removed the initializations of struct
  9384. timeval variables.
  9385. * src/PeerInteractionCommand.h
  9386. (keepAliveCheckPoint): Changed the type to Time.
  9387. (chokeCheckPoint): Changed the type to Time.
  9388. (freqCheckPoint): Changed the type to Time.
  9389. (haveCheckTime): Changed the type to Time.
  9390. * src/PeerInteractionCommand.cc
  9391. (executeInternal): Rewritten using Time object.
  9392. (detectMessageFlooding): Rewritten using Time object.
  9393. (checkLongTimePeerChoking): Rewritten using Time object.
  9394. (sendKeepAlive): Rewritten using Time object.
  9395. (checkHave): Rewritten using Time object.
  9396. * src/SleepCommand.h
  9397. (checkPoint): Changed the type to Time.
  9398. * src/SleepCommand.cc
  9399. (SleepCommand): Removed the initialization of checkPoint.
  9400. (execute): Rewritten using Time object.
  9401. * src/TorrentAutoSaveCommand.h
  9402. (checkPoint): Changed the type to Time.
  9403. * src/TorrentAutoSaveCommand.cc
  9404. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9405. (execute): Rewritten.
  9406. * src/DownloadCommand.h
  9407. (sw): Changed the type to Time.
  9408. * src/DownloadCommand.cc
  9409. (DownloadCommand): Removed the initialization of sw.
  9410. (executeInternal): Rewritten.
  9411. * src/RequestSlot.h
  9412. (dispatchedTime): Changed the type to Time.
  9413. * src/RequestSlot.cc
  9414. (RequestSlot): Removed the call to setDispatchedTime().
  9415. (setDispatchedTime): Rewirtten.
  9416. (isTimeout): Rewritten.
  9417. (getLatencyInMillis): Rewritten.
  9418. * src/TorrentDownloadEngine.h
  9419. (cp): Changed the type to Time[2].
  9420. (startup): Changed the type to Time.
  9421. * src/TorrentDownloadEngine.cc
  9422. (initStatistics): Rewritten.
  9423. (calculateStatistics): Rewritten.
  9424. * src/DownloadEngine.cc
  9425. (run): Rewritten.
  9426. To detect all attempts to connect to the tracker are failed:
  9427. * src/AbstractCommand.cc
  9428. (execute): Increment e->segmentMan->errors if a command aborted.
  9429. * src/SegmentMan.h
  9430. (errors): New variable.
  9431. * src/SegmentMan.cc
  9432. (SegmentMan): Added the initialization of errors.
  9433. (init): Added the initialization of errors.
  9434. * src/TrackerWatcherCommand.cc
  9435. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9436. request was failed.
  9437. To handle snubbed peers:
  9438. * src/PeerChokeCommand.cc
  9439. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9440. (execute): Snubbed peers don't get unchoked.
  9441. * src/PeerInteraction.h
  9442. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9443. * src/PeerInteraction.cc
  9444. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9445. back the requested 16k block in 60 seconds.
  9446. * src/PieceMessage.cc
  9447. (receivedAction): A peer's snubbed state is cleard if it sends
  9448. the requested 16k block in 60 seconds.
  9449. * src/Peer.h
  9450. (snubbing): New variable.
  9451. * src/Peer.cc
  9452. (resetStatus): Added snubbed = false.
  9453. To fix the bug that causes have message is not sent:
  9454. * src/PeerInteractionCommand.cc
  9455. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9456. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9457. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9458. * src/TorrentMan.h
  9459. (HaveEntry): New class.
  9460. (advertisePiece): Rewritten.
  9461. (getAdvertisedPieceIndexes): Rewritten.
  9462. (Haves): Changed the type.
  9463. (getAdvertisedPieceIndexes): Added an argument.
  9464. Others:
  9465. * src/TorrentMan.h
  9466. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9467. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9468. * src/TorrentMan.cc
  9469. (getPeer): Don't check the number of connections here.
  9470. (setupInternal1): Changed peerId.
  9471. * src/PeerInteractionCommand.h
  9472. (KEEP_ALIVE_INTERVAL): New definition.
  9473. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9474. * src/main.cc
  9475. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9476. * src/DownloadEngine.h: Removed unnecessary header includes.
  9477. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9478. To fix the bug that causes segfaults if a tracker returns a zero-length
  9479. list as "peers":
  9480. * src/TrackerUpdateCommand.cc
  9481. (execute): Added a check to see wether the type of peers is Data*.
  9482. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. * Release 0.5.0
  9484. To fix compile issue with gcc3:
  9485. * src/CancelMessage.h
  9486. (ID): Renamed as ID_t
  9487. (ID_t): New enum.
  9488. * src/RejectMessage.h
  9489. (ID): Renamed as ID_t
  9490. (ID_t): New enum.
  9491. * src/SuggestPieceMessage.h
  9492. (ID): Renamed as ID_t
  9493. (ID_t): New enum.
  9494. * src/AllowedFastMessage.h
  9495. (ID): Renamed as ID_t
  9496. (ID_t): New enum.
  9497. * src/PortMessage.h
  9498. (ID): Renamed as ID_t
  9499. (ID_t): New enum.
  9500. * src/HaveNoneMessage.h
  9501. (ID): Renamed as ID_t
  9502. (ID_t): New enum.
  9503. * src/KeepAliveMessage.h
  9504. (ID): Renamed as ID_t
  9505. (ID_t): New enum.
  9506. * src/HaveAllMessage.h
  9507. (ID): Renamed as ID_t
  9508. (ID_t): New enum.
  9509. * src/UnchokeMessage.h
  9510. (ID): Renamed as ID_t
  9511. (ID_t): New enum.
  9512. * src/BitfieldMessage.h
  9513. (ID): Renamed as ID_t
  9514. (ID_t): New enum.
  9515. * src/PieceMessage.h
  9516. (ID): Renamed as ID_t
  9517. (ID_t): New enum.
  9518. * src/RequestMessage.h
  9519. (ID): Renamed as ID_t
  9520. (ID_t): New enum.
  9521. * src/NotInterestedMessage.h
  9522. (ID): Renamed as ID_t
  9523. (ID_t): New enum.
  9524. * src/ChokeMessage.h
  9525. (ID): Renamed as ID_t
  9526. (ID_t): New enum.
  9527. * src/InterestedMessage.h
  9528. (ID): Renamed as ID_t
  9529. (ID_t): New enum.
  9530. * src/HaveMessage.h
  9531. (ID): Renamed as ID_t
  9532. (ID_t): New enum.
  9533. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9534. * src/PeerAbstractCommand.h
  9535. (beforeSocketCheck): Removed.
  9536. * src/PeerAbstractCommand.cc
  9537. Modified in order to call executeInternal() even if socket check
  9538. and upload limit check fail.
  9539. * src/PeerInteractionCommand.h
  9540. (keepAlive): Removed.
  9541. (sendKeepAlive): New function.
  9542. (checkHave): New function.
  9543. (beforeSocketCheck): Removed.
  9544. * src/PeerInteractionCommand.cc
  9545. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9546. calls to checkHave() and sendKeepAlive().
  9547. (keepAlive): Renamed to sendKeepAlive().
  9548. (sendKeepAlive): New function.
  9549. (beforeSocketCheck): Removed.
  9550. (checkHave): New function.
  9551. * src/BitfieldMan.cc
  9552. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9553. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9554. 0.
  9555. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9556. * src/TorrentMan.h
  9557. (UsedPieces): Removed.
  9558. (Pieces): New type definition.
  9559. * src/Piece.h: Updated doc.
  9560. * src/Peer.h
  9561. (totalLength): Removed.
  9562. * src/Peer.cc
  9563. (updateLatency): Fixed the latency calculation.
  9564. * src/TorrentMan.cc
  9565. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9566. than or equal to MAX_PEER_LIST_SIZE.
  9567. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9568. then return false.
  9569. (deleteOldErrorPeers): Rewritten.
  9570. (deleteUsedPiece): Fixed the miss use of STL remove.
  9571. * src/PeerInteraction.h
  9572. (Pieces): Removed.
  9573. (deleteTimeoutRequestSlot): Removed.
  9574. (deleteCompletedRequestSlot): Removed.
  9575. (checkRequestSlot): New function.
  9576. * src/PeerInteraction.cc
  9577. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9578. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9579. (checkRequestSlot): New function.
  9580. * src/DownloadEngine.cc
  9581. (run): Clear activeSockets before calling waitData().
  9582. (waitData): Removed a call to activeSockets.clear().
  9583. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. To attempt to handle EINTR:
  9585. * src/SocketCore.cc
  9586. (isReadable): Added EINTR handling.
  9587. (isWritable): Added EINTR handling.
  9588. To improve the performance:
  9589. * src/AbstractCommand.cc
  9590. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9591. * src/PeerInteractionCommand.h
  9592. (receiveMessage): Renamed as receiveMessages().
  9593. (receiveMessages): New function.
  9594. * src/PeerInteractionCommand.cc
  9595. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9596. () function. detectMessageFlooding() is moved here.
  9597. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9598. (). The flooding detection for have message is comment out.
  9599. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9600. Util::difftv().
  9601. (receiveMessage): Renamed as receiveMessages().
  9602. (receiveMessages): New function.
  9603. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9604. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9605. * src/SleepCommand.cc
  9606. (execute): Use Util::difftvsec() instead of Util::difftv().
  9607. * src/BitfieldMan.h
  9608. (getNthBitIndex): New function.
  9609. (hasMissingPiece): New function.
  9610. (getAllMissingIndexes): New function.
  9611. * src/BitfieldMan.cc
  9612. (countSetBit): Rewritten.
  9613. (getNthBitIndex): New function.
  9614. (getMissingIndexRandomly): Rewritten.
  9615. (hasMissingPiece): New function.
  9616. (getAllMissingIndexes): New function.
  9617. * src/TorrentMan.cc
  9618. (hasMissingPiece): New function.
  9619. (deleteUsedPiece): Rewritten using STL.
  9620. * src/PeerInteraction.cc
  9621. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  9622. is a little bit faster then TorrentMan::getMissingPieceIndex().
  9623. (addRequests): Updated the number of pending requests.
  9624. * src/PeerAbstractCommand.cc
  9625. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9626. (execute): Returns true if TorrentMan::isHalt() is true.
  9627. Corrected the condition of upload limit checking.
  9628. * src/Util.h
  9629. (countBit): New function.
  9630. * src/Util.cc
  9631. (nbits): New variable.
  9632. (countBit): New function.
  9633. * src/DownloadEngine.h
  9634. (SockCmdMap): New type definition.
  9635. (waitData): Added an argument.
  9636. (addSocket): Added an argument.
  9637. (addSocketForReadCheck): Added an argument.
  9638. (addSocketForWriteCheck): Added an argument.
  9639. * src/DownloadEngine.cc
  9640. (run): Executes only commands whose sockets are ready to read or write.
  9641. All commands are executed in every 1 second.
  9642. (waitData): Calls select() again if it returned
  9643. EINTR.
  9644. (addSocket): Saves socket and command object pair to the map.
  9645. (deleteSocket): Deletes socket and command object pair from the map.
  9646. (addSocketForReadCheck): Added an argument.
  9647. (addSocketForWriteCheck): Added an argument.
  9648. * src/DownloadCommand.cc
  9649. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9650. To send "event=stopped" to the tracker when the application finishes:
  9651. * src/PeerChokeCommand.h
  9652. (checkPoint): New variable.
  9653. * src/PeerChokeCommand.cc
  9654. (PeerChokeCommand): Added the initialization of checkPoint.
  9655. (execute): The interval check is now done by checkPoint, not
  9656. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9657. * src/TorrentMan.h
  9658. (halt): New function.
  9659. (hasMissingPiece): New function.
  9660. (isHalt): New function.
  9661. (setHalt): New function.
  9662. * src/TorrentMan.cc
  9663. (TorrentMan): Added the initialization of halt.
  9664. * src/TorrentAutoSaveCommand.h
  9665. (checkPoint): New variable.
  9666. * src/PeerListenCommand.cc
  9667. (execute): Returns true if TorrentMan::isHalt() is true.
  9668. * src/main.cc
  9669. (setSignalHander): Added flags argument.
  9670. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9671. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9672. Removed printDownloadAbortMessage() after torrent downloading loop.
  9673. * src/TorrentAutoSaveCommand.cc
  9674. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9675. (execute): Returns true if TorrentMan::isHalt() is true.
  9676. The interval check is now done by checkPoint, not SleepCommand.
  9677. * src/TrackerWatcherCommand.cc
  9678. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9679. event=stopped.
  9680. * src/TrackerUpdateCommand.cc
  9681. (prepareForRetry): Do not use SleepCommand here.
  9682. (execute): Returns true if TorrentMan::isHalt() is true.
  9683. Others:
  9684. * src/TorrentMan.cc
  9685. (getMissingPieceIndex): Updated log message.
  9686. * src/PeerInteraction.cc
  9687. (createPeerMessag): Updated log message.
  9688. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. To add the ability to download several pieces in mix in a command and
  9690. increase the number of request slots according to request-cancel
  9691. latency:
  9692. * src/PeerInteractionCommand.cc
  9693. (executeInternal): The number of messages to be received at a time
  9694. is increased from 10 to 50.
  9695. * src/LogFactory
  9696. (getInstance): Added NullLogger.
  9697. * src/NullLogger.h: New class.
  9698. * src/BitfieldMan.h
  9699. (getMissingIndex): New function.
  9700. * src/BitfieldMan.cc
  9701. (getMissingIndex): New function.
  9702. * src/TorrentMan.h
  9703. (checkOutPiece): New function.
  9704. (getMissingPieceIndex): New function.
  9705. (getMissingFastPieceIndex): New function.
  9706. (getMissingFastPiece): New function.
  9707. * src/TorrentMan.cc
  9708. (updatePiece): Rewritten using STL.
  9709. (syncPiece): Rewritten using STL.
  9710. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9711. checkOutPiece().
  9712. (getMissingPieceIndex): New function.
  9713. (getMissingFastPieceIndex): New function.
  9714. (getMissingFastPiece): New function.
  9715. (checkOutPiece): New function.
  9716. * src/PeerInteraction.h
  9717. (Pieces): New type definition.
  9718. (piece): Removed.
  9719. (pieces): New variable.
  9720. (getNewPieceAndSendInterest): Added the "piece" argument.
  9721. (abortPiece): Added the "piece" argument.
  9722. (abortAllPieces): New function.
  9723. (isInRequestSlot): New function.
  9724. (hasDownloadPiece): Added the "index" argument.
  9725. (setDownloadPiece): Removed.
  9726. (getDownloadPiece): Added the "index" argument.
  9727. (updatePiece): New function.
  9728. (createRequestMessage): Added the "index" argument.
  9729. * src/PeerInteraction.cc
  9730. (onChoked): Rewritten.
  9731. (abortPiece): Rewirtten.
  9732. (abortAllPieces): New function.
  9733. (deleteTimeoutRequestSlot): Rewritten.
  9734. Clarified code a little bit.
  9735. (deleteCompletedRequestSlot): Rewritten.
  9736. (isInRequestSlot): New function.
  9737. (syncPiece): Rewritten.
  9738. (updatePiece): New function.
  9739. (getNewPieceAndSendInterest): Rewritten.
  9740. (addRequests): Rewritten.
  9741. (getDownloadPiece): Rewritten.
  9742. (hasDownloadPiece): Rewritten.
  9743. (createRequestMessage): Added the "index" argument.
  9744. * src/common.h
  9745. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9746. (DIV_FLOOR): New definition.
  9747. * src/PieceMessage.cc
  9748. (receivedAction): Update request-piece latency here.
  9749. * src/RequestSlot.h
  9750. (getLatencyInMillis): New function.
  9751. * src/RequestSlot.cc
  9752. (isTimeout): Rewritten using getLatencyInMillis.
  9753. (getLatencyInMillis): New function.
  9754. * src/Piece.h
  9755. (operator==): New function.
  9756. (getMissingBlockIndex): New function.
  9757. * src/Piece.cc
  9758. (operator==): New function.
  9759. (getMissingBlockIndex): New function.
  9760. * src/Peer.h
  9761. (DEFAULT_LATENCY): New definition.
  9762. (latency): New variable.
  9763. (updateLatency): New function.
  9764. (getLatency): New function.
  9765. * src/Peer.cc
  9766. (resetStatus): Reset latecy.
  9767. (updateLatency): New function.
  9768. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. * src/SocketCore.cc
  9770. (isReadable): Added secure to the condition.
  9771. * src/HttpConnection.cc
  9772. (receiveResponse): Fixed a bug that causes no response header
  9773. exception.
  9774. * src/Peer.h
  9775. (getFastSet): Fixed the return value type.
  9776. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. To remove a wait from download loop:
  9778. * src/DownloadEngine.cc
  9779. (run): Comment out shortSleep.
  9780. To rewrite the message handling:
  9781. * src/SimplePeerMessage.h: New class.
  9782. * src/SimplePeerMessage.cc: New class.
  9783. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9784. (msg): New variable.
  9785. (create): New function.
  9786. (send): Removed.
  9787. (getMessage): New function.
  9788. (getMessageLength): New function.
  9789. * src/CancelMessage.cc
  9790. (create): New function.
  9791. (receivedAction): Replaced deleteRequestMessageInQueue with
  9792. rejectPieceMessageInQueue.
  9793. (send): Removed.
  9794. (getMessage): New function.
  9795. (getMessageLength): New function.
  9796. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9797. (msg): New variable.
  9798. (msgLength): New variable.
  9799. (~BitfieldMessage): Deleted msg.
  9800. (send): Removed.
  9801. (getMessage): New function.
  9802. (getMessageLength): New function.
  9803. * src/BitfieldMessage.cc
  9804. (create): New function.
  9805. (send): Removed.
  9806. (getMessage): New function.
  9807. (getMessageLength): New function.
  9808. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9809. (msg): New variable.
  9810. (sendPredicate): New function.
  9811. (onSendComplete): New function.
  9812. (send): Removed.
  9813. (getMessage): New function.
  9814. (getMessageLength): New function.
  9815. (create): New function.
  9816. * src/ChokeMessage.cc
  9817. (create): New function.
  9818. (send): Removed.
  9819. (sendPredicate): New function.
  9820. (getMessage): New function.
  9821. (getMessageLength): New function.
  9822. (onSendComplete): New function.
  9823. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9824. (msg): New variable.
  9825. (send): Removed.
  9826. (getMessage): New function.
  9827. (getMessageLength): New function.
  9828. * src/KeepAliveMessage.cc
  9829. (send): Removed.
  9830. (getMessage): New function.
  9831. (getMessageLength): New function.
  9832. * src/PortMessage.h
  9833. (create): New function.
  9834. (receivedAction): Updated log message.
  9835. * src/PortMessage.cc: New file.
  9836. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9837. (msg): New variable.
  9838. (sendPredicate): New function.
  9839. (onSendComplete): New function.
  9840. (create): New function.
  9841. (send): Removed.
  9842. (getMessage): New function.
  9843. (getMessageLength): New function.
  9844. * src/UnchokeMessage.cc
  9845. (create): New function.
  9846. (send): Removed.
  9847. (sendPredicate): New function.
  9848. (getMessage): New function.
  9849. (getMessageLength): New function.
  9850. (onSendComplete): New function.
  9851. * src/PieceMessage.h
  9852. (leftPieceDataLength): Removed.
  9853. (leftDataLength): New variable.
  9854. (headerSend): New variable.
  9855. (pendingCount): New variable.
  9856. (msgHeader): New variable.
  9857. (sendPieceData): New function.
  9858. (incrementPendingCount): New function.
  9859. (isPendingCountMax): New function.
  9860. (create): New function.
  9861. (getMessageHeader): New function.
  9862. (getMessageHeaderLength): New function.
  9863. * src/PieceMessage.cc
  9864. (create): New function.
  9865. (getMessageHeader): New function.
  9866. (getMessageHeaderLength): New function.
  9867. (send): Rewritten.
  9868. (sendPieceData): New function.
  9869. * src/HaveMessage.h: Derived from SimplePeerMessage.
  9870. (msg): New variable.
  9871. (create): New function.
  9872. (getMessage): New function.
  9873. (getMessageLength): New function.
  9874. * src/HaveMessage.cc
  9875. (create): New function.
  9876. (send): Removed.
  9877. (sendPieceData): New function.
  9878. (getMessage): New function.
  9879. (getMessageLength): New function.
  9880. * src/RequestMessage.h: Derived from SimplePeerMessage.
  9881. (msg): New variable.
  9882. (create): New function.
  9883. (send): Removed.
  9884. (getMessage): New function.
  9885. (getMessageLength): New function.
  9886. * src/RequestMessage.cc
  9887. (create): New function.
  9888. (receivedAction): Added the handling of fast extension.
  9889. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  9890. (send): Removed.
  9891. (getMessage): New function.
  9892. (getMessageLength): New function.
  9893. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  9894. (msg): New variable.
  9895. (sendPredicate): New function.
  9896. (onSendComplete): New function.
  9897. (create): New function.
  9898. (getMessage): New function.
  9899. (getMessageLength): New function.
  9900. * src/InterestedMessage.cc
  9901. (create): New function.
  9902. (send): Removed.
  9903. (sendPieceData): New function.
  9904. (getMessage): New function.
  9905. (getMessageLength): New function.
  9906. (onSendComplete): New function.
  9907. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  9908. (msg): New variable.
  9909. (sendPieceData): New function.
  9910. (onSendComplete): New function.
  9911. (create): New function.
  9912. (send): Removed.
  9913. (getMessage): New function.
  9914. (getMessageLength): New function.
  9915. * src/NotInterestedMessage.cc
  9916. (create): New function.
  9917. (send): Removed.
  9918. (sendPredicate): New function.
  9919. (getMessage): New function.
  9920. (getMessageLength): New function.
  9921. (onSendComplete): New function.
  9922. * src/AllowedFastMessage.h: New class.
  9923. * src/AllowedFastMessage.cc: New class.
  9924. * src/RejectMessage.h: New class.
  9925. * src/RejectMessage.cc: New class.
  9926. * src/SuggestPieceMessage.h: New class.
  9927. * src/SuggestPieceMessage.cc: New class.
  9928. * src/HaveAllMessage.h: New class.
  9929. * src/HaveAllMessage.cc: New class.
  9930. * src/HaveNoneMessage.h: New class.
  9931. * src/HaveNoneMessage.cc: New class.
  9932. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  9933. (msg): New variable.
  9934. (reserved): New variable.
  9935. (create): New function.
  9936. (getId): New function.
  9937. (receivedAction): New function.
  9938. (getMessage): New function.
  9939. (getMessageLength): New function.
  9940. (isFastExtensionSupported): New function.
  9941. * src/HandshakeMessage.cc
  9942. (HandshakeMessage): Moved here from HandshakeMessage.h.
  9943. (create): New function.
  9944. (getMessage): New function.
  9945. (getMessageLength): New function.
  9946. (toString): Added the output of reserved field.
  9947. (check): Added const qualifier.
  9948. (isFastExtensionSupported): New function.
  9949. * src/PeerMessageUtil.h
  9950. (createChokeMessage): Removed.
  9951. (createUnchokeMessage): Removed.
  9952. (createInterestedMessage): Removed.
  9953. (createNotInterestedMessage): Removed.
  9954. (createHaveMessage): Removed.
  9955. (createBitfieldMessage): Removed.
  9956. (createRequestMessage): Removed.
  9957. (createCancelMessage): Removed.
  9958. (createPieceMessage): Removed.
  9959. (createPortMessage): Removed.
  9960. (createChokeMessage): Removed.
  9961. (createUnchokeMessage): Removed.
  9962. (createInterestedMessage): Removed.
  9963. (createNotInterestedMessage): Removed.
  9964. (createHaveMessage): Removed.
  9965. (createBitfieldMessage): Removed.
  9966. (createRequestMessage): Removed.
  9967. (createCancelMessage): Removed.
  9968. (createPieceMessage): Removed.
  9969. (createKeepAliveMessage): Removed.
  9970. (createHandshakeMessage): Removed.
  9971. (setIntParam): New function.
  9972. (createPeerMessageString): New function.
  9973. * src/PeerMessageUtil.cc
  9974. (createChokeMessage): Removed.
  9975. (createUnchokeMessage): Removed.
  9976. (createInterestedMessage): Removed.
  9977. (createNotInterestedMessage): Removed.
  9978. (createHaveMessage): Removed.
  9979. (createBitfieldMessage): Removed.
  9980. (createRequestMessage): Removed.
  9981. (createCancelMessage): Removed.
  9982. (createPieceMessage): Removed.
  9983. (createPortMessage): Removed.
  9984. (createRequestMessage): Removed.
  9985. (createCancelMessage): Removed.
  9986. (createPieceMessage): Removed.
  9987. (createHaveMessage): Removed.
  9988. (createChokeMessage): Removed.
  9989. (createUnchokeMessage): Removed.
  9990. (createInterestedMessage): Removed.
  9991. (createNotInterestedMessage): Removed.
  9992. (createBitfieldMessage): Removed.
  9993. (createKeepAliveMessage): Removed.
  9994. (createHandshakeMessage): Removed.
  9995. (setIntParam): New function.
  9996. (createPeerMessageString): New function.
  9997. * src/PeerConnection.h
  9998. (peer): Removed.
  9999. (torrentMan): Removed.
  10000. (createNLengthMessage): Removed.
  10001. (setIntParam): Removed.
  10002. (writeOutgoingMessageLog): Removed all overloaded functions.
  10003. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10004. (sendMessage): New function.
  10005. (sendHandshake): Removed.
  10006. (sendKeepAlive): Removed.
  10007. (sendChoke): Removed.
  10008. (sendUnchoke): Removed.
  10009. (sendInterested): Removed.
  10010. (sendNotInterested): Removed.
  10011. (sendHave): Removed.
  10012. (sendBitfield): Removed.
  10013. (sendRequest): Removed.
  10014. (sendPiece): Removed.
  10015. (sendPieceHeader): Removed.
  10016. (sendPieceData): Removed.
  10017. (sendCancel): Removed.
  10018. (getPeer): Removed.
  10019. * src/PeerConnection.cc
  10020. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10021. (sendHandshake): Removed.
  10022. (sendKeepAlive): Removed.
  10023. (createNLengthMessage): Removed.
  10024. (setIntParam): Removed.
  10025. (writeOutgoingMessageLog): Removed all overloaded functions.
  10026. (sendChoke): Removed.
  10027. (sendUnchoke): Removed.
  10028. (sendInterested): Removed.
  10029. (sendNotInterested): Removed.
  10030. (sendHave): Removed.
  10031. (sendBitfield): Removed.
  10032. (sendRequest): Removed.
  10033. (sendPiece): Removed.
  10034. (sendPieceHeader): Removed.
  10035. (sendPieceData): Removed.
  10036. (sendMessage): New function.
  10037. (sendCancel): Removed.
  10038. * src/PeerInteractionCommand.cc
  10039. (PeerInteractionCommand): Call setUploadLimit.
  10040. (executeInternal): Call setUploadLimit.
  10041. Added the handling of "inProgress" state of handshake message.
  10042. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10043. sendNow().
  10044. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10045. sendNow().
  10046. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10047. * src/TorrentMan.h
  10048. (PEER_ID_LENGTH): New definition.
  10049. (hasAllPieces): New function.
  10050. * src/TorrentMan.cc
  10051. (getMissingPiece): Added the handling of fast extension.
  10052. (cancelPiece): Call updatePiece().
  10053. (hasAllPieces): New function.
  10054. * src/PeerInteraction.h
  10055. (fastSet): New variable.
  10056. (getNewPieceAndSendInterest): Changed the return type to void.
  10057. (send): Renamed as sendMessages.
  10058. (deleteAllRequestSlot): Removed.
  10059. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10060. (cancelAllRequest): Removed all overloaded functions.
  10061. (deleteAllRequestSlot): Removed.
  10062. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10063. (rejectPieceMessageInQueue): New function.
  10064. (rejectAllPieceMessageInQueue): New function.
  10065. (onChoked): New function.
  10066. (isSendingMessageInProgress): New function.
  10067. (getCorrespondingRequestSlot): Changed its arguments.
  10068. (isInFastSet): New function.
  10069. (addFastSetIndex): New function.
  10070. (addRequests): New function.
  10071. (sendNow): Removed.
  10072. (trySendNow): Removed.
  10073. (sendBitfield): New function.
  10074. (sendAllowdFast): New function.
  10075. (createHaveAllMessage): New function.
  10076. (createHaveNoneMessage): New function.
  10077. (createRejectMessage): New function.
  10078. (createAllowedFastMessage): New function.
  10079. * src/PeerInteraction.cc
  10080. (send): Renamed as sendMessages.
  10081. (sendMessages): New function.
  10082. (MsgPushBack): New class.
  10083. (isSendingMessageInProgress): New function.
  10084. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10085. (rejectAllPieceMessageInQueue): New function.
  10086. Added the handling of fast extension.
  10087. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10088. (rejectPieceMessageInQueue): New function.
  10089. Added the handling of fast extension.
  10090. (deleteRequestSlot): Replaced for loop with std::find.
  10091. (onChoked): New function.
  10092. (deleteAllRequestSlot): Removed.
  10093. (abortPiece): Rewirtten.
  10094. (deleteTimeoutRequestSlot): Updated log messages.
  10095. (getCorrespondingRequestSlot): Changed its arguments.
  10096. (cancelAllRequest): Removed all overloaded functions.
  10097. (receiveHandshake): Added the check to see whether an incoming peer
  10098. supports fast extension.
  10099. (createHandshakeMessage): Use HandshakeMessage::create instead of
  10100. PeerMessageUtil.
  10101. (createPeerMessage): Use create() of each message class instead of
  10102. PeerMessageUtil.
  10103. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  10104. AllowedFastMessage were added.
  10105. (getNewPieceAndSendInterest): Changed its return value type to void.
  10106. Added the handling of fast extension.
  10107. (addRequests): New function.
  10108. (sendNow): Removed.
  10109. (sendHandshake): Rewritten.
  10110. (trySendNow): Removed.
  10111. (sendBitfield): New function.
  10112. (sendAllowdFast): New function.
  10113. (isInFastSet): New function.
  10114. (addFastSetIndex): New function.
  10115. (createRequestMessage): Use RequestMessage::create instead of
  10116. PeerMessageUtil.
  10117. (createCancelMessage): Use CancelMessage::create instead of
  10118. PeerMessageUtil.
  10119. (createPieceMessage): Use PieceMessage::create instead of
  10120. PeerMessageUtil.
  10121. (createHaveMessage): Use HaveMessage::create instead of
  10122. PeerMessageUtil.
  10123. (createChokeMessage): Use ChokeMessage::create instead of
  10124. PeerMessageUtil.
  10125. (createUnchokeMessage): Use UnchokeMessage::create instead of
  10126. PeerMessageUtil.
  10127. (createInterestedMessage): Use InterestedMessage::create instead of
  10128. PeerMessageUtil.
  10129. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  10130. of PeerMessageUtil.
  10131. (createBitfieldMessage): Use BitfieldMessage::create instead of
  10132. PeerMessageUtil.
  10133. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  10134. PeerMessageUtil.
  10135. (createHaveAllMessage): New function.
  10136. (createHaveNoneMessage): New function.
  10137. (createRejectMessage): New function.
  10138. (createAllowedFastMessage: New function.
  10139. * src/Util.h
  10140. (sha1Sum): New function.
  10141. (computeFastSet): New function.
  10142. * src/Util.cc
  10143. (sha1Sum): New function.
  10144. (computeFastSet): New function.
  10145. * src/Peer.h
  10146. (fastExtensionEnabled): New variable.
  10147. (fastSet): New variable.
  10148. (setAllBitfield): New function.
  10149. (setFastExtensionEnabled): New function.
  10150. (isFastExtensionEnabled): New function.
  10151. (addFastSetIndex): New function.
  10152. (getFastSet): New function.
  10153. (isInFastSet): New function.
  10154. (countFastSet): New function.
  10155. * src/Peer.cc
  10156. (isInFastSet): New function.
  10157. (addFastSetIndex): New function.
  10158. (setAllBitfield): New function.
  10159. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  10160. sockets.
  10161. * src/PeerAbstractCommand.cc
  10162. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  10163. and uploadLimit.
  10164. (execute): Changed the procedure of checking sockets. The upload speed
  10165. checking were added.
  10166. (setUploadLimit): New function.
  10167. (setUploadLimitCheck): New function.
  10168. * src/PeerAbstractCommand.h
  10169. (setUploadLimit): New function.
  10170. (setUploadLimitCheck): New function.
  10171. (uploadLimit): New variable.
  10172. (uploadLimitCheck): New variable.
  10173. To contact a tracker regularly:
  10174. * src/TrackerWatcherCommand.h (interval): New variable.
  10175. (checkPoint): New variable.
  10176. (TrackerWatcherCommand): Added interval argument.
  10177. * src/TrackerWatcherCommand.cc
  10178. (TrackerWatcherCommand): Initialized checkPoint.
  10179. (execute): Now a tracker is contacted in every specified period.
  10180. If peer list is not needed, send request with numwant=0.
  10181. * src/TrackerUpdateCommand.cc
  10182. (execute): Updated log messages.
  10183. * src/DownloadEngine.cc
  10184. (~DownloadEngine): Removed two asserts.
  10185. (waitData): Uncommented wfds. May be a bug fix.
  10186. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. * src/PeerInteractionCommand.h
  10188. (checkInactiveConnection): Removed.
  10189. * src/PeerInteractionCommand.cc
  10190. (executeInternal): Removed following function calls:
  10191. detectMessageFlooding(), checkLongTimePeerChoking and
  10192. checkInactiveConnection().
  10193. (checkInactiveConnection): Removed.
  10194. (detectMessageFlooding): Removed function call to
  10195. checkInactiveConnection().
  10196. * src/PeerMessageUtil.h
  10197. (createChokeMessage): New function. Overload.
  10198. (createUnchokeMessage): New function. Overload.
  10199. (createInterestedMessage): New function. Overload.
  10200. (createNotInterestedMessage): New function. Overload.
  10201. (createHaveMessage): New function. Overload.
  10202. (createBitfieldMessage): New function. Overload.
  10203. (createRequestMessage): New function. Overload.
  10204. (createCancelMessage): New function. Overload.
  10205. (createPieceMessage): New function. Overload.
  10206. (createKeepAliveMessage): New function. Overload.
  10207. * src/PeerMessageUtil.cc
  10208. (createChokeMessage): New function. Overload.
  10209. (createUnchokeMessage): New function. Overload.
  10210. (createInterestedMessage): New function. Overload.
  10211. (createNotInterestedMessage): New function. Overload.
  10212. (createHaveMessage): New function. Overload.
  10213. (createBitfieldMessage): New function. Overload.
  10214. (createRequestMessage): New function. Overload.
  10215. (createCancelMessage): New function. Overload.
  10216. (createPieceMessage): New function. Overload.
  10217. (createKeepAliveMessage): New function. Overload.
  10218. * src/SendMessageQueue.cc
  10219. (createRequestMessage): Use PeerMessageUtil.
  10220. (createCancelMessage): Use PeerMessageUtil.
  10221. (createPieceMessage): Use PeerMessageUtil.
  10222. (createHaveMessage): Use PeerMessageUtil.
  10223. (createChokeMessage): Use PeerMessageUtil.
  10224. (createUnchokeMessage): Use PeerMessageUtil.
  10225. (createInterestedMessage): Use PeerMessageUtil.
  10226. (createNotInterestedMessage): Use PeerMessageUtil.
  10227. (createBitfieldMessage): Use PeerMessageUtil.
  10228. (createKeepAliveMessage): Use PeerMessageUtil.
  10229. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  10230. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  10231. * src/PeerInteraction.h: New class.
  10232. * src/PeerInteraction.cc: New class.
  10233. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10234. Each peer message has its own class.
  10235. * src/PendingMessages.h: Removed.
  10236. * src/PendingMessages.cc: Removed. The sending process was moved to
  10237. each message class.
  10238. * src/RequestSlotMan.h: Removed.
  10239. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  10240. SendMessageQueue.
  10241. * src/RequestMessage.h: New class.
  10242. * src/RequestMessage.cc: New class.
  10243. * src/CancelMessage.h: New class.
  10244. * src/CancelMessage.cc: New class.
  10245. * src/BitfieldMessage.h: New class.
  10246. * src/BitfieldMessage.cc: New class.
  10247. * src/ChokeMessage.h: New class.
  10248. * src/ChokeMessage.cc: New class.
  10249. * src/KeepAliveMessage.h: New class.
  10250. * src/KeepAliveMessage.cc: New class.
  10251. * src/PortMessage.h: New class.
  10252. * src/UnchokeMessage.h: New class.
  10253. * src/UnchokeMessage.cc: New class.
  10254. * src/PieceMessage.h: New class.
  10255. * src/PieceMessage.cc: New class.
  10256. * src/HaveMessage.h: New class.
  10257. * src/HaveMessage.cc: New class.
  10258. * src/BitfieldMessage.h: New class.
  10259. * src/BitfieldMessage.cc: New class.
  10260. * src/NotInterestedMessage.h: New class.
  10261. * src/NotInterestedMessage.cc: New class.
  10262. * src/InterestedMessage.h: New class.
  10263. * src/InterestedMessage.cc: New class.
  10264. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  10265. (getSendMessageQueue): New function.
  10266. (setSendMessageQueue): New function.
  10267. * src/HandshakeMessage.cc: New class.
  10268. * src/PeerConnection.h (receiveMessage): Changed return value and
  10269. arguments.
  10270. (receiveHandshake): Changed return value and arguments.
  10271. * src/PeerConnection.cc (receiveMessage): Do not create message class
  10272. here.
  10273. (receiveHandshake): Do not create handshake class here.
  10274. * src/PeerInteractionCommand.h (peerConnection): Removed.
  10275. (piece): Removed.
  10276. (syncPiece): Removed.
  10277. (sendInterest): Removed.
  10278. (sendMessages): Removed.
  10279. (createRequestPendingMessage): Removed.
  10280. (checkPieceHash): Removed.
  10281. (erasePieceOnDisk): Removed.
  10282. (getNewPieceAndSendInterest): Removed.
  10283. (onGotNewPice): Removed.
  10284. (onGotWrongPiece): Removed.
  10285. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10286. Removed peerConnection, piece.
  10287. (~PeerInteractionCommand): Removed peerConnection.
  10288. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10289. (syncPiece): Moved to SendMessageQueue.
  10290. (decideChoking): Removed PendingMessage.
  10291. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10292. The action after receiving peer message was moved to each message
  10293. class.
  10294. (onGotNewPice): Moved to SendMessageQueue.
  10295. (onGotWrongPiece): Moved to SendMessageQueue.
  10296. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10297. (sendInterest): Moved to SendMessageQueue.
  10298. (createRequestPendingMessage): Removed.
  10299. (sendMessages): Moved to SendMessageQueue.
  10300. (onAbort): Use SendMessageQueue::abortPiece()
  10301. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10302. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10303. (checkPieceHash): Moved to SendMessageQueue.
  10304. (erasePieceOnDisk): Moved to SendMessageQueue.
  10305. * src/PeerMessageUtil.h
  10306. (createBitfieldMessage): Removed.
  10307. (createHaveMessage): Changed return value and arguments.
  10308. (createBitfieldMessage): Changed return value and arguments.
  10309. (createRequestCancelMessage): Removed.
  10310. (createPieceMessage): Changed return value and arguments.
  10311. (getShortIntParam): New function.
  10312. (checkIndex): Changed arguments.
  10313. (checkBegin): Changed arguments.
  10314. (checkLength): Changed arguments.
  10315. (checkPieceOffset): Removed.
  10316. (checkRange): New function.
  10317. (checkBitfield): Changed arguments.
  10318. (createPeerMessage): Removed.
  10319. (checkIntegrity): Removed.
  10320. (createHandshakeMessage): Changed arguments.
  10321. (createChokeMessage): New function.
  10322. (createUnchokeMessage): New function.
  10323. (createInterestedMessage): New function.
  10324. (createNotInterestedMessage): New function.
  10325. (createRequestMessage): New function.
  10326. (createCancelMessage): New function.
  10327. (createPortMessage): New function.
  10328. * src/PeerMessageUtil.cc
  10329. (createBitfieldMessage): Removed.
  10330. (createHaveMessage): Changed return value and arguments.
  10331. (createBitfieldMessage): Changed return value and arguments.
  10332. (createRequestCancelMessage): Removed.
  10333. (createPieceMessage): Changed return value and arguments.
  10334. (getShortIntParam): New function.
  10335. (checkIndex): Changed arguments.
  10336. (checkBegin): Changed arguments.
  10337. (checkLength): Changed arguments.
  10338. (checkPieceOffset): Removed.
  10339. (checkRange): New function.
  10340. (checkBitfield): Changed arguments.
  10341. (createPeerMessage): Removed.
  10342. (checkIntegrity): Removed.
  10343. (createHandshakeMessage): Changed arguments.
  10344. (createChokeMessage): New function.
  10345. (createUnchokeMessage): New function.
  10346. (createInterestedMessage): New function.
  10347. (createNotInterestedMessage): New function.
  10348. (createRequestMessage): New function.
  10349. (createCancelMessage): New function.
  10350. (createPortMessage): New function.
  10351. * src/PeerMessage.h
  10352. (id): Removed.
  10353. (index): Removed.
  10354. (begin): Removed.
  10355. (length): Removed.
  10356. (bitfield): Removed.
  10357. (bitfieldLength): Removed.
  10358. (block): Removed.
  10359. (blockLength): Removed.
  10360. (inProgress): New variable.
  10361. (cuid): New variable.
  10362. (peer): New variable.
  10363. (sendMessageQueue): New variable.
  10364. (logger): New variable.
  10365. (setBitfield): Removed.
  10366. (getBitfield): Removed.
  10367. (setBlock): Removed.
  10368. (getBlock): Removed.
  10369. (getBitfieldLength): Removed.
  10370. (getBlockLength): Removed.
  10371. (isInProgress): New function.
  10372. (toString): Made pure virtual.
  10373. (check): New function.
  10374. (send): New function.
  10375. (receivedAction): New function.
  10376. (getId): Made pure virtual.
  10377. (setId): Removed.
  10378. (getIndex): Removed.
  10379. (setIndex): Removed.
  10380. (getBegin): Removed.
  10381. (setBegin): Removed.
  10382. (getLength): Removed.
  10383. (setLength): Removed.
  10384. (getCuid): New function.
  10385. (setCuid): New function.
  10386. (getPeer): New function.
  10387. (setPeer): New function.
  10388. (getSendMessageQueue): New function.
  10389. (setSendMessageQueue): New function.
  10390. (ID): Removed.
  10391. * src/PeerMessage.cc
  10392. (setBitfield): Removed.
  10393. (setBlock): Removed.
  10394. (toString): Removed.
  10395. * src/TorrentMan.h
  10396. (getPieceLength): New function.
  10397. (getPieceLength): New function.
  10398. * src/SendMessageQueue.h
  10399. (REQUEST_TIME_OUT): New definition.
  10400. (RequestSlots): New definition.
  10401. (MessageQueue): New definition.
  10402. (requestSlotMan): Removed.
  10403. (pendingMessages): Removed.
  10404. (requestSlots): New variable.
  10405. (messageQueue): New variable.
  10406. (torrentMan): New variable.
  10407. (peerConnection): New variable.
  10408. (peer): New variable.
  10409. (piece): New variable.
  10410. (getNewPieceAndSendInterest): New function.
  10411. (createPeerMessage): New function.
  10412. (createHandshakeMessage): New function.
  10413. (send): Made private.
  10414. (setPeerMessageCommonProperty): New function.
  10415. (deleteAllRequestSlot): New function.
  10416. (deleteRequestMessageInQueue): New function.
  10417. (cancelAllRequest): Made private.
  10418. (cancelAllRequest): Made private.
  10419. (countRequestSlot): Made private.
  10420. (addPendingMessage): Removed.
  10421. (deletePendingPieceMessage): Removed.
  10422. (deletePendingRequestMessage): Removed.
  10423. (addMessage): New function.
  10424. (deletePieceMessageInQueue): New function.
  10425. (deleteTimeoutRequestSlot): Changed argument.
  10426. (deleteCompletedRequestSlot): Changed argument.
  10427. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10428. (getCorrespondingRequestSlot): New function.
  10429. (countPendingMessage): Removed.
  10430. (countMessageInQueue): New function.
  10431. (getTorrentMan): New function.
  10432. (getPeerConnection): New function.
  10433. (hasDownloadPiece): New function.
  10434. (getDownloadPiece): New function.
  10435. (setDownloadPiece): New function.
  10436. (syncPiece): New function.
  10437. (sendMessages): New function.
  10438. (sendNow): New function.
  10439. (trySendNow): New function.
  10440. (abortPiece): New function.
  10441. (sendHandshake): New function.
  10442. (receiveMessage): New function.
  10443. (receiveHandshake): New function.
  10444. (createRequestMessage): New function.
  10445. (createCancelMessage): New function.
  10446. (createPieceMessage): New function.
  10447. (createHaveMessage): New function.
  10448. (createChokeMessage): New function.
  10449. (createUnchokeMessage): New function.
  10450. (createInterestedMessage): New function.
  10451. (createNotInterestedMessage): New function.
  10452. (createBitfieldMessage): New function.
  10453. (createKeepAliveMessage): New function.
  10454. * src/SendMessageQueue.cc
  10455. (SendMessageQueue): Removed requestSlotMan.
  10456. Instantiated peerConnection here.
  10457. (~SendMessageQueue): Removed requestSlotMan.
  10458. Added deletion of peerConnection and the contents of messageQueue.
  10459. (send): Updated according to the change of messageQueue.
  10460. (addPendingMessage): Renamed to addMessage.
  10461. (addMessage): New function.
  10462. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10463. (deletePieceMessageInQueue): New function.
  10464. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10465. (deleteRequestMessageInQueue): New function.
  10466. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10467. here.
  10468. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10469. (...) was moved here.
  10470. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10471. moved here.
  10472. (deleteCompletedRequestSlot):
  10473. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10474. (getCorrespondingRequestSlot):
  10475. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10476. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10477. (countPendingMessage): Renamed to countMessageInQueue.
  10478. (countMessageInQueue): New function.
  10479. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10480. (receiveHandshake): New function.
  10481. (createHandshakeMessage): New function.
  10482. (receiveMessage): New function.
  10483. (createPeerMessage): New function.
  10484. (syncPiece): New function.
  10485. (getNewPieceAndSendInterest): New function.
  10486. (sendMessages): New function.
  10487. (sendNow): New function.
  10488. (trySendNow): New function.
  10489. (sendHandshake): New function.
  10490. (abortPiece): New function.
  10491. (getDownloadPiece): New function.
  10492. (getPeerMessageCommonProperty): New function.
  10493. (createRequestMessage): New function.
  10494. (createCancelMessage): New function.
  10495. (createPieceMessage): New function.
  10496. (createHaveMessage): New function.
  10497. (createChokeMessage): New function.
  10498. (createUnchokeMessage): New function.
  10499. (createInterestedMessage): New function.
  10500. (createNotInterestedMessage): New function.
  10501. (createBitfieldMessage): New function.
  10502. (createKeepAliveMessage): New function.
  10503. To add simple Content-Disposition support:
  10504. * src/HttpResponseCommand.h (determinFilename): New function.
  10505. * src/HttpResponseCommand.cc (executeInternal):
  10506. Use determinFilename(headers) instead of req->getFile() when comparing
  10507. filename.
  10508. (determinFilename): New function.
  10509. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10510. req->getFile().
  10511. (handleOtherEncoding): Use determinFilename(headers) instead of
  10512. req->getFile().
  10513. * src/Util.h (getContentDispositionFilename): New function.
  10514. * src/Util.cc (getContentDispositionFilename): New function.
  10515. * src/LogFactory.h (release): New function.
  10516. * src/LogFactory.cc (release): New function.
  10517. To fix a bug that causes out-of-bound exception when HTTP status
  10518. line is wrong:
  10519. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10520. size.
  10521. * src/common.h (Deleter): New class.
  10522. * src/SegmentMan.cc
  10523. (~SegmentMan): Added deletion of splitter and diskWriter.
  10524. * src/DownloadEngine.h
  10525. (Commands): Use deque.
  10526. (clearQueue): New function.
  10527. * src/DownloadEngine.cc
  10528. (~DownloadEngine): Added deletion of segmentMan.
  10529. (cleanQueue): New function.
  10530. * src/TorrentDownloadEngine.h
  10531. (TorrentDownloadEngine): The implementation was moved to
  10532. TorrentDownloadEngine.cc.
  10533. (~TorrentDownloadEngine): The implementation was moved to
  10534. TorrentDownloadEngine.cc.
  10535. * src/TorrentDownloadEngine.cc
  10536. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10537. * src/main.cc
  10538. (clearRequest): Removed.
  10539. (handler): Added deletion of e.
  10540. (torrentHandler): Added deletion of te.
  10541. (main): Do not share splitter.
  10542. Use Deleter instead of clearRequest.
  10543. Deletion of classes were updated.
  10544. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. * src/main.cc (main): Fixed typo.
  10546. * src/message.h: Fixed typo.
  10547. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10548. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. To add --select-file command-line option:
  10550. * src/Util.cc
  10551. (unfoldRange): New function.
  10552. (getNum): New function.
  10553. (unfoldSubRange): New function
  10554. * src/main.cc
  10555. (showUsage): Added help message.
  10556. (main): Added --select-file command-line option. Updated the layout of
  10557. file listing.
  10558. * src/common.h
  10559. (Integers): New definition.
  10560. * src/SocketCore.cc
  10561. (writeData): Removed timeout argument.
  10562. (readData): Removed timeout argument.
  10563. (peekData): Removed timeout argument.
  10564. * src/Socket.cc
  10565. (writeData): Removed timeout argument.
  10566. (readData): Removed timeout argument.
  10567. (peekData): Removed timeout argument.
  10568. * Release 0.4.1
  10569. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10570. To deploy upload rate based choking algorithm:
  10571. * src/PeerInteractionCommand.cc
  10572. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10573. peer currently used.
  10574. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10575. download completes. Simplified.
  10576. (receiveMessage): Updated.
  10577. * src/TorrentMan.h
  10578. (activePeers): New variable.
  10579. (addActivePeer): New function.
  10580. (getActivePeers): New function.
  10581. (deleteActivePeer): New function.
  10582. * src/TorrentMan.cc
  10583. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10584. * src/PeerAbstractCommand.cc
  10585. (onAbort): Use peer->resetStatus().
  10586. * src/main.cc
  10587. (PeerChokeCommand.h): Included.
  10588. (main): Added the instance of ChokingCommand to the command queue.
  10589. * src/Peer.h
  10590. (amChoking): Renamed from amChocking
  10591. (chokingRequired): New variable.
  10592. (optUnchoking): New variable.
  10593. (deltaUpload): New variable.
  10594. (deltaDownload): New variable.
  10595. (addDeltaUpload): New function.
  10596. (resetDeltaUpload): New function.
  10597. (addDeltaDownload): New function.
  10598. (resetDeltaDownload): New function.
  10599. (addPeerUpload): Added a call to addDeltaUpload.
  10600. (addPeerDownload): Added a call to addDeltaDownload.
  10601. * src/Peer.cc
  10602. (shouldBeChoking): Renamed from shouldChoke.
  10603. (resetStatus): New function.
  10604. * src/PeerChokeCommand.h: New class.
  10605. * src/PeerChokeCommand.cc: New class.
  10606. To add lazy upload speed limiter:
  10607. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  10608. statistics calculation to TorrentDownloadEngine.
  10609. * src/TorrentConsoleDownloadEngine.cc
  10610. (sendStatistics): Renamed from printStatistics.
  10611. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  10612. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  10613. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  10614. * src/TorrentDownloadEngine.h: Added the variables for statistics
  10615. calculation.
  10616. (sendStatistics): New function as pure virtual function.
  10617. (getUploadSpeed): New function.
  10618. * src/TorrentDownloadEngine.cc
  10619. (initStatistics): New function.
  10620. (calculateSpeed): New function.
  10621. (calculateStatistics): New function.
  10622. * src/SendMessageQueue.h
  10623. (uploadLength): New variable.
  10624. (send): Added an argument.
  10625. (setUploadLimit): New function.
  10626. (getUploadLimit): New function.
  10627. * src/SendMessageQueue.cc
  10628. (send): Added upload speed limiter.
  10629. * src/prefs.h
  10630. (PREF_UPLOAD_LIMIT): New definition.
  10631. * src/PeerInteractionCommand.cc
  10632. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10633. * src/main.cc
  10634. (main): Added --upload-limit option
  10635. For bug fixes:
  10636. * src/main.cc
  10637. (showUsage): Corrected --listen-port help
  10638. Other changes:
  10639. * src/TorrentMan.cc
  10640. (getPeer): Return nullPeer if connection is grather than
  10641. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10642. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. To add some useful information to the exception message:
  10644. * src/SocketCore.cc : Updated messages.
  10645. * src/SegmentMan.cc :
  10646. * src/TorrentMan.cc : Updated messages.
  10647. * src/MultiDiskWriter.cc : Updated messages.
  10648. * src/Util.cc : Updated messages.
  10649. * src/AbstractDiskWriter.cc : Updated messages.
  10650. * src/PreAllocationDiskWriter.cc : Updated messages.
  10651. * src/message.cc : Added new messages. Updated some messages.
  10652. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10653. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10654. Updated threshold from 30 to 15.
  10655. * src/AbstractDiskWriter.h (filename): New variable.
  10656. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10657. (createFile): Assigned filename.
  10658. * src/main.cc: Updated the help message for http-auth-scheme.
  10659. * Release 0.4.0
  10660. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. To add TrackerUpdateCommand with which replaces
  10662. CompactTrackerResponseProcessor:
  10663. * src/TrackerWatcherCommand.h (req): Removed.
  10664. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10665. if the number of peer connections are less than 30.
  10666. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10667. * src/SegmentMan.h (diskWriter): New function.
  10668. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10669. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10670. (main): Use TrackerUpdateCommand.
  10671. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10672. (req): New variable.
  10673. (setTrackerResponseProcessor): Removed.
  10674. (getTrackerResponseProcessor): Removed.
  10675. (processTrackerResponse): Removed.
  10676. * src/DownloadEngine.h (diskWriter): Removed.
  10677. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10678. to torrentMan->processTrackerResponse().
  10679. To add Util::expandBuffer:
  10680. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10681. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10682. * src/Util.h (expandBuffer): New function.
  10683. To fix the bug that causes segmentation fault when "-l ." is specified
  10684. in command-line option:
  10685. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10686. (openFile): New function.
  10687. (closeFile): New function.
  10688. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10689. (~SimpleLogger): Call closeFile();
  10690. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10691. * src/main.cc (main): Added a check to see logger is configured
  10692. properly.
  10693. To enable HTTP authentication without specifying "--http-auth-scheme"
  10694. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10695. * src/HttpConnection.cc (createRequest): Send Authorization header
  10696. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10697. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10698. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10699. * src/Peer.cc (shouldChoke): Updated algorithm.
  10700. * src/message.h (EX_AUTH_FAILED): New definition.
  10701. (EX_FILE_OPEN): New definition.
  10702. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10703. if status == 401.
  10704. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10705. if req->isTorrent == true.
  10706. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10707. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10708. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10709. (createFile): Updated message.
  10710. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10711. To add a readout of estimated remaining time to normal HTTP/FTP
  10712. downloads:
  10713. * src/ConsoleDownloadEngine.h (startup): New variable.
  10714. (startupLength): New variable.
  10715. (isStartupLengthSet): New variable.
  10716. (avgSpeed): New variable.
  10717. (eta): New variable.
  10718. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10719. estimated remaining time.
  10720. (initStatistics): Initialized newly added variables.
  10721. (calculateStatistics): Calculate average speed and estimated remaining
  10722. time.
  10723. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10724. * src/TrackerDownloadCommand.h: Removed.
  10725. * src/TrackerDownloadCommand.cc: Removed.
  10726. * src/TrackerInitCommand.h: Removed.
  10727. * src/TrackerInitCommand.cc: Removed.
  10728. * src/TrackerUpdateCommand.h: Removed.
  10729. * src/TrackerUpdateCommand.cc: Removed.
  10730. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10731. url written in TrackerInitCommand was moved here. Do not create
  10732. tracker request command if torrentMan->trackers != 0.
  10733. * src/CompactTrackerResponseProcessor.h: New class.
  10734. * src/CompactTrackerResponseProcessor.cc: New class.
  10735. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10736. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10737. Decoupled TorrentDownloadEngine from this.
  10738. * src/SegmentMan.h (init): New function.
  10739. * src/SegmentMan.cc (init): New function.
  10740. * src/TorrentMan.h (responseProcessor): New variable.
  10741. (trackers): New variable.
  10742. (setTrackerResponseProcessor): New function.
  10743. (getTrackerResponseProcessor): New function.
  10744. (processTrackerResponse): New function.
  10745. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10746. (processTrackerResponse): New function.
  10747. * src/main.cc (main): Use ByteArrayDiskWriter and
  10748. CompactTrackerResponseProcessor.
  10749. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10750. processTrackerResponse().
  10751. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10752. readout.
  10753. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10754. which indicates download has completed.
  10755. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10756. (closeFile): fd >= 0, not fd > 0
  10757. * src/main.cc (main): Added short cut for show-files.
  10758. Added short cut for torrent-file.
  10759. Added new command-line option listen-port.
  10760. Updated i18n messages.
  10761. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10762. To add LogFactory which creates singleton logger:
  10763. * src/LogFactory.h: New class.
  10764. * src/LogFactory.cc: New class.
  10765. * src/Command.h (logger): New variable.
  10766. (Constructor): Use LogFactory.
  10767. * src/AbstractCommand.cc: Use Command::logger
  10768. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10769. Use LogFactory.
  10770. * src/SegmentSplitter.h : Made logger protected.
  10771. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10772. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10773. * src/DownloadEngine.h : Made logger protected.
  10774. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10775. * src/PeerInteractionCommand.cc : Use Command::logger.
  10776. * src/HttpResponseCommand.cc : Use Command::logger.
  10777. * src/SegmentMan.h : Made logger private.
  10778. * src/TorrentMan.h : Made logger private.
  10779. * src/TorrentMan.cc : Use LogFactory.
  10780. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10781. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10782. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10783. Use LogFactory.
  10784. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10785. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10786. Use LogFactory.
  10787. * src/DownloadCommand.cc : Use Command::logger.
  10788. * src/PeerAbstractCommand.cc : Use Command::logger.
  10789. * src/PeerListenCommand.cc : Use Command::logger.
  10790. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10791. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10792. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10793. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10794. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10795. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10796. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10797. Use LogFactory.
  10798. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10799. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10800. Use LogFactory.
  10801. * src/main.cc (main): Use LogFactory.
  10802. * src/DiskAdaptor.h (logger): New variable.
  10803. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10804. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10805. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10807. parameter to a tracker request.
  10808. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10809. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10810. * src/main.cc (setSignalHander): New function.
  10811. (main): Added a handler for SIGTERM.
  10812. (handler): Updated message.
  10813. (torrentHandler): Updated message.
  10814. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. * src/TorrentConsoleDownloadEngine.cc
  10816. (onPartialDownloadingCompletes): Renamed as
  10817. onSelectiveDownloadingCompletes.
  10818. (onSelectiveDownloadingCompletes): Updated message.
  10819. To add DiskAdaptor which abstract DiskWriter family:
  10820. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10821. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10822. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10823. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10824. MultiDiskAdaptor.h.
  10825. (readFileEntry): Changed its arguments.
  10826. (setup): setupDiskWriter is merged into this function.
  10827. (setupDiskWriter): Removed.
  10828. (setFileFilter): New function.
  10829. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10830. made in readFileEntry.
  10831. (getFilePath): Removed.
  10832. (getTempFilePath): Removed.
  10833. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10834. (fixFilename): Removed.
  10835. (copySingleFile): Removed.
  10836. (splitMultiFile): Removed.
  10837. (deleteTempFile): Removed.
  10838. (setFileEntriesToDownload): Removed.
  10839. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10840. (isSelectiveDownloadingMode): New function.
  10841. (setAllMultiFileRequestedState): Removed.
  10842. (finishPartialDownloadingMode): Renamed as
  10843. finishSelectiveDownloadingMode.
  10844. (finishSelectiveDownloadingMode): New function.
  10845. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10846. (getSelectedTotalLength): New function.
  10847. (onDownloadComplete): Use diskAdaptor.
  10848. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10849. (Range): Removed.
  10850. (setMultiFileEntries): Renamed as setFileEntries.
  10851. (setFileEntries): New function.
  10852. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  10853. (pieceLength): New variable.
  10854. * src/main.cc (printDownloadCompeleteMessage): New function.
  10855. (torrentHandler): Use diskAdaptor instead of diskWriter.
  10856. (main): Renamed torrent-show-files to show-files.
  10857. Rewritten file contents listing.
  10858. * src/TorrentMan.h (FileEntry): Removed.
  10859. (multiFileTopDir): Removed.
  10860. (multiFileEntries): Removed.
  10861. (diskWriter): Removed.
  10862. (diskAdaptor): New variable.
  10863. * src/DefaultDiskWriter.h (totalLength): New variable.
  10864. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  10865. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  10866. diskWriter.
  10867. * src/TorrentConsoleDownloadEngine.h
  10868. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  10869. (partialTotalLength): Renamed as selectedTotalLength.
  10870. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  10871. openExistingFile, otherwise call initAndOpenFile.
  10872. (closeFile): fd > 0, not fd != 0.
  10873. * src/DirectDiskAdaptor.h: New class.
  10874. * src/DirectDiskAdaptor.cc: New class.
  10875. * src/MultiDiskAdaptor.h: New class.
  10876. * src/MultiDiskAdaptor.cc: New class.
  10877. * src/CopyDiskAdaptor.h: New class.
  10878. * src/CopyDiskAdaptor.cc: New class.
  10879. * src/DiskAdaptor.h: New class.
  10880. * src/DiskAdaptor.cc: New class.
  10881. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  10882. (PREF_SHOW_FILES): New definition.
  10883. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10884. To add the ability to download multi torrent into respective files
  10885. directly:
  10886. * src/DiskWriter.h (openFile): New function.
  10887. (seek): Removed.
  10888. * src/MultiDiskWriter.h: New class.
  10889. * src/MultiDiskWriter.cc: New class.
  10890. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  10891. protected.
  10892. (openFile): New function.
  10893. * src/AbstractDiskWriter.cc (openFile): New function.
  10894. * src/prefs.h (V_FALSE): New definition.
  10895. (PREF_DIRECT_FILE_MAPPING): New definition.
  10896. * src/TorrentMan.h (setupDiskWriter): New function.
  10897. (setAllMultiFileRequestedState): New function.
  10898. (onDownloadComplete): New function.
  10899. * src/TorrentMan.cc : Included MultiDiskWriter.h
  10900. (setupDiskWriter): New function.
  10901. (getFilePath): Updated.
  10902. (getTempFilePath): Updated.
  10903. (getSegmentFilePath): Updated.
  10904. (fixFilename): Updated.
  10905. (deleteTempFile): Updated.
  10906. (setAllMultiFileRequestedState): New function.
  10907. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  10908. (finishPartialDownloadingMode): Reset requested flags.
  10909. (onDownloadComplete): New function.
  10910. * src/main.cc: Added --direct-file-mapping option.
  10911. Use TorrentMan::setupDiskWriter().
  10912. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  10913. onDownloadComplete().
  10914. To fix ETA bug:
  10915. * src/Util.h (difftvsec): New function.
  10916. * src/Util.cc (difftvsec): New function.
  10917. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  10918. type of "elapsed" instead of long long int.
  10919. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  10920. The updates of statistics takes place every 1 seconds.
  10921. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  10922. (calculateSpeed): Changed its argument signature.
  10923. * src/PeerMessage.cc (toString): Fixed message.
  10924. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10925. To print ETA:
  10926. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  10927. completion handling when dealing with
  10928. TorrentMan::isPartialDownloadingMode() == true.
  10929. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  10930. New function.
  10931. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  10932. (sessionDownloadLength): New variable.
  10933. (avgSpeed): New variable.
  10934. (eta): New variable.
  10935. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  10936. new variables: eta, avgSpeed, startup.
  10937. (calculateSpeed): Calculate average speed and ETA.
  10938. (printStatistics): Added ETA.
  10939. * src/Util.h (secfmt): New function.
  10940. * src/Util.cc (secfmt): New function.
  10941. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. To detect "keep alive" flooding:
  10943. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  10944. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  10945. variable: keepAliveCount.
  10946. (detectMessageFlooding): Added "keep alive" flooding detection.
  10947. (receiveMessage): Increase keepAliveCount when "keep alive" message
  10948. received.
  10949. To add the ability to download only specified files in multi-file
  10950. torrent:
  10951. * src/BitfieldMan.h (filterBitfield): New variable.
  10952. (filterEnabled): New variable.
  10953. (setFilterBit): New function.
  10954. (enableFilter): New function.
  10955. (disableFilter): New function.
  10956. (isFilterEnabled): New function.
  10957. (getFilteredTotalLength): New function.
  10958. (getCompletedLength): New function.
  10959. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  10960. filterBitfield, filterEnabled.
  10961. (CopyConstructor): Added filterBitfield and filterEnabled.
  10962. (operator==): Added filterBitfield and filterEnabled.
  10963. (Destructor): Added filterBitfield.
  10964. (getMissingIndex): Use filterBitfield.
  10965. (getMissingUnusedIndex): Use filterBitfield.
  10966. (getFirstMissingUnusedIndex): Use filterBitfield.
  10967. (getFirstMissingUnusedIndex): Use filterBitfield.
  10968. (getAllMissingIndexes): Use filterBitfield.
  10969. (countMissingBlock): Use filterBitfield.
  10970. (countBlock): Use filterBitfield.
  10971. (setBitInternal): Added new argument on.
  10972. (setUseBit): Use setBitInternal.
  10973. (unsetUseBit): Use setBitInternal.
  10974. (setBit): Use setBitInternal.
  10975. (unsetBit): Use setBitInternal.
  10976. (isAllBitSet): Use filterBitfield.
  10977. (setFilterBit): New function.
  10978. (addFilter): New function.
  10979. (enableFilter): New function.
  10980. (disableFilter): New function.
  10981. (clearFilter): New function.
  10982. (isFilterEnabled): New function.
  10983. (getFilteredTotalLength): New function.
  10984. (getCompletedLength): New function.
  10985. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  10986. Initalized newly added variables.
  10987. [FileEntry](offset): New variable.
  10988. [FileEntry](extracted): New variable.
  10989. [FileEntry](requested): New variable.
  10990. (readFileEntry): New function.
  10991. (option): New variable.
  10992. (splitMultiFile): Removed const qualifier.
  10993. (fixFilename): Removed const qualifier.
  10994. (readFileEntryFromMetaInfoFile): New function.
  10995. (finishPartialDownloadingMode): New function.
  10996. (isPartialDownloadingMode): New function.
  10997. (setFileEntriesToDownload): New function.
  10998. (getCompletedLength): New function.
  10999. (getPartialTotalLength): New function.
  11000. * src/TorrentMan.cc (readFileEntry): New function.
  11001. (setup): Use readFileEntry. If no-preallocation option is specified,
  11002. use DefaultDiskWriter.
  11003. (readFileEntryFromMetaInfoFile): New function.
  11004. (fixFilename): Removed const qualifier.
  11005. (splitMultiFile): Removed const qualifier.
  11006. (setFileEntriesToDownload): New function.
  11007. (isPartialDownloadingMode): New function.
  11008. (finishPartialDownloadingMode): New function.
  11009. (getCompletedLength): New function.
  11010. (getPartialTotalLength): New function.
  11011. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11012. New variable.
  11013. (partialTotalLength): New variable.
  11014. (downloadLength): New variable.
  11015. (totalLength): New variable.
  11016. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11017. Added log.
  11018. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11019. partialTotalLength, downloadLength, totalLength.
  11020. (calculate): Calculate downloadLength and totalLength.
  11021. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11022. * src/main.cc (addCommand): Changed argument signature.
  11023. (main): Added new variable: args. Added new option "torrent-show-files"
  11024. "no-preallocation". Usage is not updated yet.
  11025. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11026. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11027. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11028. Attempt to add the ability to listing file entries in a .torrent file.
  11029. This feature is not yet complete.
  11030. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11031. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11032. (getName): New function.
  11033. * src/TorrentMan.h (getMultiFileEntries): New function.
  11034. (getName): New function.
  11035. * src/main.cc (main): Use above 2 funtion.
  11036. * Release 0.3.2
  11037. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11038. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11039. (detectMessageFlooding): Updated threshold value.
  11040. (checkLongTimePeerChoking): Updated timeout value.
  11041. (getNewPieceAndSendInterest): Added debug log.
  11042. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11043. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11044. (getPeer): Updated.
  11045. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11046. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11047. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11048. is localhost.
  11049. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11050. * src/PendingMessage.cc (processMessage): Not to send piece message
  11051. if peer is not interested in the pieces localhost has.
  11052. * src/Peer.cc (shouldChoke): Updated.
  11053. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11054. * src/Util.cc (isPowerOf): New function.
  11055. * src/Util.h (isPowerOf): New function.
  11056. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11057. whether or not it is power of 2.
  11058. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11059. Added new class SendMessageQueue that includes PendingMessages and
  11060. RequestSlotMan.
  11061. * src/SendMessageQueue.h: New class.
  11062. * src/SendMessageQueue.cc: New class.
  11063. * src/PendingMessage.h: Added new member variable blockIndex and its
  11064. accessors.
  11065. (createRequestMessage): Updated.
  11066. * src/PendingMessage.cc (createRequestMessage): Updated.
  11067. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11068. SendMessageQueue.
  11069. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11070. (receiveMessage): Updated with SendMessageQueue.
  11071. (deletePendingPieceMessage): Removed.
  11072. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11073. (sendInterest): Updated with SendMessageQueue.
  11074. (createRequestPendingMessage): Updated with SendMessageQueue.
  11075. (sendMessages): Updated with SendMessageQueue.
  11076. (onAbort): Updated with SendMessageQueue.
  11077. (keepAlive): Updated with SendMessageQueue.
  11078. (beforeSocketCheck): Updated SendMessageQueue.
  11079. * src/PeerInteractionCommand (sendMessages): Shuffle
  11080. missingBLockIndexes before using it.
  11081. Added its own timeout for peer connection.
  11082. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11083. setter.
  11084. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11085. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11086. Added setTimeout() call.
  11087. (executeInternal): Added setTimeout() call.
  11088. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11089. Added timeout.
  11090. (isTimeoutDetected): Updated.
  11091. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  11092. option.
  11093. Added *simple* message flooding checker.
  11094. * src/PeerInteractionCommand.cc (executeInternal):
  11095. Added detectMessageFlooding() call.
  11096. (detectMessageFlooding): New function.
  11097. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  11098. (beforeSocketCheck): Added detectMessageFlooding() call.
  11099. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  11100. chokeUnchokeCount, haveCount, detectMessageFlooding().
  11101. Removed deletePendingPieceMessage(), getRequestSlot(),
  11102. deleteRequestSlot(), deleteAllRequestSlot().
  11103. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  11104. Added checkLongTimePeerChoking() call.
  11105. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  11106. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  11107. if duplicate == false.
  11108. The parameter "uploaded" and "downloaded" in the tracker request are
  11109. the size since the client sent the "started" event to the tracker.
  11110. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  11111. uploaded size to preDownloadedSize, preUploadedSize respectively.
  11112. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  11113. getSessionDownloadedSize(), getSessionUploadedSize().
  11114. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  11115. getSessionUploadedSize() instead of getDownloadedSize(),
  11116. getUploadedSize().
  11117. * src/PendingMessage.cc (processMessage): Do not send request message
  11118. if the peer is choking the client.
  11119. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  11120. less than interval.
  11121. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. * configure.in: Added gnutls support. Added several CPP macros.
  11123. * m4/openssl.m4: Added.
  11124. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  11125. readData(), peekData(). Added gnutls support.
  11126. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  11127. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  11128. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  11129. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  11130. Instead, added a check for whether setup method has executed
  11131. successfully.
  11132. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  11133. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  11134. * src/Makefile.am: Updated.
  11135. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  11136. using whether OpenSSL or gcrypt, depending on the result of configure
  11137. script.
  11138. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  11139. messageDigest.h.
  11140. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  11141. * src/PeerListenCommand.cc: Added log about port binded successfully.
  11142. Fixed memory leak.
  11143. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  11144. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  11145. Removed instantiation of TrackerInitCommand. Instead,
  11146. TrackerWatcherCommand is instantiated and pushed to the command queue.
  11147. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  11148. ENABLE_SSL.
  11149. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  11150. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  11151. If a piece is already acquired by another command, delete the request
  11152. slots for the piece.
  11153. * src/TrackerUpdateCommand.cc (execute):
  11154. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  11155. Added a check whether peer list is null.
  11156. Fixed the bug that causes sending completed event to the tracker
  11157. several times.
  11158. * src/TrackerInitCommand.cc (execute):
  11159. Fixed the bug that causes sending completed event to the tracker
  11160. several times.
  11161. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  11162. by using messageDigest.h.
  11163. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11164. * PeerConnection.cc: Replaced log message "keep-alive" with
  11165. "keep alive".
  11166. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  11167. localhost long time.
  11168. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  11169. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  11170. at most 100 failure entry from the list. If with duplicate = false,
  11171. MAX_PEER_LIST is not checked.
  11172. * PeerListenCommand.cc: Fixed the argument order of log message.
  11173. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11174. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  11175. Added warn().
  11176. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  11177. Implemented warn().
  11178. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  11179. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11180. * Request.h: Added AFTER_COMPLETED event.
  11181. * TorrentDownloadEngine.cc: Prints "Download complete" message
  11182. instead of downloaded size and progress(%) after download completes.
  11183. * PeerInteractionCommand.cc: After download completes, sends unchoke
  11184. message to the peer if it is interested in what localhost has
  11185. downloaded.
  11186. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  11187. destination instead of just renaming it.
  11188. * TorrentMan.cc: Added deleteTempFile().
  11189. * PeerAbstractCommand.cc: do not stop execution after download
  11190. completes. This makes localhost a seeder.
  11191. * Util.{h,cc}: Added fileCopy().
  11192. * PeerListenCommand.cc: do not stop execution after download completes.
  11193. This makes localhost a seeder.
  11194. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  11195. Added TorrentMan::deleteTempFile() to torrentHandler.
  11196. Initialized the variable dir as ".".
  11197. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  11198. Deleted renameSingleFile().
  11199. Added copySingleFile(), deleteTempFile().
  11200. * DownloadEngine.h: Added virtual function afterEachIteration().
  11201. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  11202. in onEndOfRun() to afterEachIteration().
  11203. In onEndOfRun(), changed if condition to check whether filenameFixed is
  11204. true.
  11205. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  11206. In rangedFileCopy(), added try-catch block to properly close file
  11207. descriptors.
  11208. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  11209. Added afterEachIteration(), isFilenameFixed().
  11210. * Peer.cc: Changed choking strategy.
  11211. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  11212. * TrackerInitCommand.cc: Send completed event only once.
  11213. * DownloadEngine.cc: Added a call to afterEachIteration().
  11214. * TrackerUpdateCommand.cc: Do not stop execution after download
  11215. completes.
  11216. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  11217. connect the peers at most MAX_PEER_UPDATE when a peer list is
  11218. received from a tracker.
  11219. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  11220. Decreased the number of failure peers to delete to 0(just comment out
  11221. the line).
  11222. * Release 0.3.1
  11223. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11224. * PeerInteractionCommand.cc: added a call to
  11225. TorrentMan::unadvertisePiece in Destructor.
  11226. * PeerInteractionCommand.cc: make have message sent immediately
  11227. if the size of pending message queue is zero.
  11228. * TorrentMan.cc: set the maximum size of peer list to 250.
  11229. * TorrentMan.h: changed the container type of Peers and UsedPieces
  11230. to deque.
  11231. * Util.cc: fixed rangedFileCopy.
  11232. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  11233. to Constructor. Also, moved digest cleanup to Destructor.
  11234. * MetaFileUtil.cc: fixed memory leak
  11235. * replaced std::vector with std::deque.
  11236. * AbstractCommand.cc: casted timeout value to long long int.
  11237. * ChunkedEncoding.cc: fixed memory leak.
  11238. * PeerInteractionCommand.cc: casted timeout value to long long int.
  11239. * SleepCommand.cc: casted timeout value to long long int.
  11240. * Data.cc: fixed memory leak.
  11241. * Data.cc: fixed toLLInt().
  11242. * BitfieldMan.cc: fixed memory leak.
  11243. * TorrentMan.cc: initialized storeDir to ".".
  11244. * TorrentMan.cc: fixed memory leak.
  11245. * TorrentMan.cc: corrected file paths of splitted files.
  11246. * PeerAbstractCommand.cc: casted timeout to long long int.
  11247. * main.cc: added delete(req) and delete(te->diskWriter).
  11248. * RequestSlot.cc: casted timeout value to long long int.
  11249. * Request.cc: fixed memory leak.
  11250. * PendingMessage.cc: make HAVE messages sent only when peer does not
  11251. have the piece.
  11252. * Peer.{h,cc}: added hasPiece(int index).
  11253. * main.cc: corrected addCommand.
  11254. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11255. * BitTorrent protocol support added.
  11256. * Release 0.3.0
  11257. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11258. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  11259. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11260. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  11261. decoding did not work properly.
  11262. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11263. * DownloadEngine.h: included sys/time.h
  11264. * DownloadEngine.cc: remove sys/time.h
  11265. * Makefile.am (SUBDIRS): Add intl.
  11266. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  11267. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11268. * main.cc: correct help message for --http-auth-scheme.
  11269. * main.cc: changed e-mail address for bug reports.
  11270. * ja.po: added japanese translation.
  11271. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11272. * SimpleLogger.cc: flush log file instead of stdout.
  11273. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. * main.cc: Fixed command-line option: max-tries
  11275. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  11276. does not equal to seg.sp.
  11277. * DownloadCommand.cc: If EOF is got from the server and the total size
  11278. of file is not zero, then throw DlRetryEx.
  11279. * main.cc: Set the minium value of min-segment-size to 1024.
  11280. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11281. fails because of a regression since 0.2.0 release.
  11282. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. * HttpConnection.cc:
  11284. * common.h: defined the user agent name as macro
  11285. * DownloadEngine.{h, cc}:
  11286. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11287. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11288. * main.cc: Download complete/abort message is now generated by main.
  11289. * Makefile.am (SUBDIRS): Add m4.
  11290. (ACLOCAL_AMFLAGS): New variable.
  11291. (EXTRA_DIST): New variable.
  11292. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11293. * gettext: added gettext functionality
  11294. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11295. * AbstractCommand.cc:
  11296. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11297. unregister its cuid from SegmentMan.
  11298. * DownloadEngine.cc: .aria2 file was written when a downloading
  11299. failed with errors.
  11300. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11301. Added "User-Agent" header to CONNECT proxy request.
  11302. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11303. properly.
  11304. * Logger.h:
  11305. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11306. * ChunkedEncoding.cc: Added #include directive for strings.h
  11307. * Release 0.2.1
  11308. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. * Util.{h,cc}: added startsWith().
  11310. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11311. Util::endsWith().
  11312. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11313. * common.h: added #include directive of limit.h.
  11314. * DownloadEngine.cc: added #include directive of sys/time.h and
  11315. algorithm.
  11316. * Exception.h: added #include directive of stdio.h.
  11317. * AbstractCommand.h: added #include directive of sys/time.h.
  11318. * DownloadCommand.h: added #include directive of sys/time.h.
  11319. * *.h: added #include directive of common.h to all base classes.
  11320. subclasses' one was removed.
  11321. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11322. does not define these macros.
  11323. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11324. * Release 0.2.0
  11325. * main.cc:
  11326. * HttpInitiateConnectionCommand.{h,cc}:
  11327. * prefs.h:
  11328. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11329. We can now use GET command in http proxy.
  11330. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11331. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11332. that splits slowest segment of SegmentMan::commands vector.
  11333. This is the default split algorithm of aria2.
  11334. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11335. that splits first segment of SegmentMan::commands vector.
  11336. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11337. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11338. * Segment.h:
  11339. * SegmentMan.cc: Added speed field to Segment.h
  11340. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11341. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11342. * message.h: Change file size related %d to %lld.
  11343. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. * FtpInitiateConnectionCommand.{h,cc}:
  11345. * FtpNegotiationCommand.{h,cc}:
  11346. * FtpDownloadCommand.{h,cc}:
  11347. * FtpConnection.{h,cc}: Added FTP support
  11348. * SimpleLogger.cc: Log message now includes time information.
  11349. * main.cc: The value of --http-auth-scheme option is chagned from
  11350. 'BASIC' to 'basic'
  11351. * main.cc: Added --timeout command-line option.
  11352. * main.cc: Added --min-segment-size command-line option.
  11353. * main.cc: Added --max-retries command-line option.
  11354. * prefs.h: option string constants are now defined in prefs.h
  11355. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11356. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11357. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11358. with version 0.1.0's one.
  11359. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11360. * configure.in: Added --enable-ssl option to configure script.
  11361. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11362. cannot permit absoluteURI as Request-URI.
  11363. * HttpConnection.cc: Added Referer support.
  11364. * main.cc: Added referer command-line option.
  11365. * main.cc: Added rety-wait command-line option.
  11366. * Exception.h: Fixed formating bug in Exception::setMsg()
  11367. * SocketCore.{h,cc}:
  11368. * Socket.{h, cc}:
  11369. * Request.cc:
  11370. * InitiateConnectionCommandFactory.cc:
  11371. * HttpRequestCommand.cc: Added HTTPS support.
  11372. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11373. for SocketCore.
  11374. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11375. size is wrong
  11376. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11377. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11378. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11379. * Release 0.1.0