ChangeLog 453 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138
  1. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3. on big endian systems because test .aria2 files are made for little
  4. endian systems.
  5. * test/DefaultBtProgressInfoFileTest.cc
  6. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  7. Dropped ares support.
  8. * README
  9. * configure.ac
  10. * m4/libares.m4: Removed.
  11. * src/AsyncNameResolver.cc
  12. * src/Makefile.am
  13. * test/Makefile.am
  14. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  15. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  16. Removed const qualifier from DiskWriter::size().
  17. * src/AbstractDiskWriter.cc
  18. * src/AbstractDiskWriter.h
  19. * src/ByteArrayDiskWriter.cc
  20. * src/ByteArrayDiskWriter.h
  21. * src/DiskWriter.h
  22. * test/ByteArrayDiskWriterTest.cc
  23. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  24. Fixed the bug that causes segmentation fault/bus error during executing
  25. choking algorithm while seeding. This is caused by improper
  26. implementation of compare function which returns inconsistent results
  27. depending on the timing of last unchoke.
  28. * src/BtSeederStateChoke.cc
  29. * src/BtSeederStateChoke.h
  30. * src/DefaultPeerStorage.cc
  31. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  32. Removed TODO
  33. * TODO
  34. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  35. Added a section that explains how to pass argument to options that
  36. takes optional arguments with its short form.
  37. * doc/aria2c.1.txt
  38. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  39. Added -u for the short form of --max-upload-limit option.
  40. * doc/aria2c.1.txt
  41. * src/option_processing.cc
  42. * src/usage_text.h
  43. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  44. Added -V for the short form of --check-integrity option.
  45. Now the argument of --check-integrity option is optional:
  46. if it is omitted, it is evaluated as true.
  47. * doc/aria2c.1.txt
  48. * src/option_processing.cc
  49. * src/usage_text.h
  50. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  51. Made the default value of --ftp-pasv option set to true and it can take
  52. true/false values.
  53. * src/OptionHandlerFactory.cc
  54. * src/option_processing.cc
  55. * src/usage_text.h
  56. * doc/aria2c.1.txt
  57. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  58. Given custom random number generator to std::random_shuffle.
  59. * src/AnnounceList.cc
  60. * src/BtLeecherStateChoke.cc
  61. * src/BtSeederStateChoke.cc
  62. * src/DefaultBtRequestFactory.cc
  63. * src/MetalinkEntry.cc
  64. * src/RarestPieceSelector.cc
  65. * src/SimpleRandomizer.cc
  66. * src/SimpleRandomizer.h
  67. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  68. Now the default value of --enable-direct-io is true.
  69. * src/OptionHandlerFactory.cc
  70. * doc/aria2c.1.txt
  71. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  72. Erase peer before executing onReturningPeer and onErasingPeer
  73. because choking algorithm called from onReturningPeer doesn't
  74. like erasing peer in the active peer list.
  75. * src/DefaultPeerStorage.cc
  76. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  77. Instead of creating special filename in createDownloadResult() if
  78. inMemoryDownload() is true, now it is done in getFilePath().
  79. * src/RequestGroup.cc
  80. * test/RequestGroupTest.cc
  81. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  82. Print "[MEMORY]" and filename if a file is not saved in disk and just
  83. processed in memory. This is the fix for previous comment out.
  84. * src/MemoryBufferPreDownloadHandler.cc
  85. * src/RequestGroup.cc
  86. * src/RequestGroup.h
  87. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  88. Commented out the code which sets virtual directory path "[MEMORY]"
  89. propagate directory to store to following RequestGroup.
  90. * src/MemoryBufferPreDownloadHandler.cc
  91. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  92. Bump up version number to 1.0.0b
  93. * configure.ac
  94. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  95. Added input_uris.txt to EXTRA_DIST
  96. * test/Makefile.am
  97. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  98. Removed PeerObject.h from Makefile.am
  99. * src/Makefile.am
  100. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  101. Avoid slow seeding
  102. * src/PeerInteractionCommand.cc
  103. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  104. Updated usage for -i option.
  105. * src/usage_text.h (TEXT_INPUT_FILE)
  106. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  107. Added INPUT FILE section to man page.
  108. Escaped fake URLs.
  109. * doc/aria2c.1.txt
  110. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  111. Fixed wrong note position for -o option.
  112. * doc/aria2c.1.txt
  113. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  114. Fixed compile error without SSL/XML library.
  115. * src/DefaultBtProgressInfoFile.cc
  116. * src/DefaultBtProgressInfoFile.h
  117. * src/FileMetalinkParserState.cc
  118. * src/RequestGroup.h
  119. * src/SocketCore.cc
  120. * src/SocketCore.h
  121. * src/VerificationMetalinkParserState.cc
  122. * src/download_helper.h
  123. * src/main.cc
  124. * test/DefaultBtProgressInfoFileTest.cc
  125. * test/DownloadHelperTest.cc
  126. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  127. Rewritten URI handling functions. They are now provided as a testable
  128. functions.
  129. * src/Makefile.am
  130. * src/RequestGroup.cc
  131. * src/RequestGroup.h
  132. * src/download_helper.cc
  133. * src/download_helper.h
  134. * src/main.cc
  135. * test/DownloadHelperTest.cc
  136. * test/Makefile.am
  137. * test/input_uris.txt
  138. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  139. Quickly terminate commands when ctrl-c is pressed.
  140. * src/DownloadEngine.cc
  141. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  142. Quickly terminate idle commands when download finished.
  143. * src/AbstractCommand.cc
  144. * src/DownloadCommand.cc
  145. * src/DownloadEngine.cc
  146. * src/DownloadEngine.h
  147. * src/SleepCommand.cc
  148. * src/SleepCommand.h
  149. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  150. Added the ability to specify output filename and directory in input
  151. file.
  152. Additional parameters are added in the following line of URIs
  153. with proceeding white space(s), 1 parameter in 1 line.
  154. The parameter names are the same with the command-line option name
  155. without proceeding "--". Not all the options are available here:
  156. at the moment, 'dir' and 'out' options are avialable.
  157. Please note that out option has no effect against Metalink or BitTorrent
  158. downloads.
  159. Example input file:
  160. http://host/foo-1.1.tar.bz2
  161. out=foo.tar.bz2
  162. dir=/tmp/downloads
  163. http://host/thundermonkey-2.0.tar.bz2
  164. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  165. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  166. thundermonkey-2.0.tar.bz2 is saved as
  167. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  168. * src/BtPostDownloadHandler.cc
  169. * src/Metalink2RequestGroup.cc
  170. * src/Metalink2RequestGroup.h
  171. * src/MetalinkPostDownloadHandler.cc
  172. * src/UriListParser.cc
  173. * src/UriListParser.h
  174. * src/main.cc
  175. * test/Metalink2RequestGroupTest.cc
  176. * test/UriListParserTest.cc
  177. * test/filelist1.txt
  178. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  179. Fixed error when SSL library is not found.
  180. * configure.ac
  181. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  182. Cross referenced among -s, -C and -j options.
  183. Updated usage of -C and -s options.
  184. * src/usage_text.h
  185. * doc/aria2c.1.txt
  186. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  187. Fixed bad cast in 32bit platforms.
  188. * test/DefaultPieceStorageTest.cc
  189. (DefaultPieceStorageTest::testGetCompletedLength)
  190. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  191. Fixed unit test fails on 32bit platforms.
  192. * test/CookieParserTest.cc
  193. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  194. Show an average download speed in Download results.
  195. * src/BtFileAllocationEntry.cc
  196. * src/DefaultPieceStorage.cc
  197. * src/DownloadContext.cc
  198. * src/DownloadContext.h
  199. * src/DownloadResult.h
  200. * src/RequestGroup.cc
  201. * src/RequestGroupMan.cc
  202. * src/StreamFileAllocationEntry.cc
  203. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  204. Fixed the bug that metalink file is not processed if Content-Type
  205. field has a paramter.
  206. * src/HttpResponse.cc
  207. * src/HttpResponse.h
  208. * test/HttpResponseTest.cc
  209. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  210. Removed unused code.
  211. * src/DefaultBtAnnounce.cc
  212. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  213. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  214. the value larger than DefaultPieceStorage::getTotalLength() when
  215. in flight pieces are involved.
  216. * src/DefaultPieceStorage.cc
  217. * test/DefaultPieceStorageTest.cc
  218. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  219. Bump up version number to 1.0.0a.
  220. * configure.ac
  221. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  222. Updated configure.ac
  223. * configure.ac
  224. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  225. Added usege for proxy.
  226. * doc/aria2c.1.txt
  227. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  228. Added usage for --ca-certificate, --certificate, --private-key and
  229. --check-certificate options.
  230. * doc/aria2c.1.txt
  231. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  232. Updated man page
  233. * doc/aria2c.1.txt
  234. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  235. Added --no-proxy option. It receives comman separated hostname or
  236. domains to which proxy should not be used.
  237. aria2 honors the environment variable no_proxy to override no-proxy
  238. value in configuration file. The user can override the environment
  239. variable no_proxy with --no-proxy command-line option.
  240. * src/AbstractCommand.cc
  241. * src/OptionHandlerFactory.cc
  242. * src/option_processing.cc
  243. * src/prefs.cc
  244. * src/prefs.h
  245. * src/usage_text.h
  246. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  247. Added the ability to verify peer in SSL/TLS using given CA certificates.
  248. The CA certificates are specified in --ca-certificate option.
  249. By default, the verification is disabled. Use --check-certificate
  250. option to enable it.
  251. * src/HttpRequestCommand.cc
  252. * src/LibgnutlsTLSContext.cc
  253. * src/LibgnutlsTLSContext.h
  254. * src/LibsslTLSContext.cc
  255. * src/LibsslTLSContext.h
  256. * src/MultiUrlRequestInfo.cc
  257. * src/OptionHandlerFactory.cc
  258. * src/SocketCore.cc
  259. * src/SocketCore.h
  260. * src/a2functional.h
  261. * src/message.h
  262. * src/option_processing.cc
  263. * src/prefs.cc
  264. * src/prefs.h
  265. * src/usage_text.h
  266. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  267. Added client certificate authentication for SSL/TLS.
  268. Currently a private key must be decrypted for use with aria2.
  269. If a user accidentally gives encrypted file to aria2 then following
  270. thing happens:
  271. If encrypted private key is given to aria2, it behaves differently
  272. depending on the ssl library it uses. If aria2 built with openssl then
  273. openssl prompts the user for password. If aria2 build with gnutls then
  274. aria2 exists with error at start up.
  275. * src/DownloadEngineFactory.cc
  276. * src/MultiUrlRequestInfo.cc
  277. * src/OptionHandlerFactory.cc
  278. * src/option_processing.cc
  279. * src/prefs.cc
  280. * src/prefs.h
  281. * src/usage_text.h
  282. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  283. Introduced TLSContext that holds TLS related data that can be shared
  284. with multiple SSL connections.
  285. * src/DownloadEngineFactory.cc
  286. * src/LibgnutlsTLSContext.cc
  287. * src/LibgnutlsTLSContext.h
  288. * src/LibsslTLSContext.cc
  289. * src/LibsslTLSContext.h
  290. * src/Makefile.am
  291. * src/SocketCore.cc
  292. * src/SocketCore.h
  293. * src/TLSContext.h
  294. * src/message.h
  295. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  296. Fixed the bug that the DiskWriter of the first FileEntry whose
  297. `needsFileAllocation' property is false is not created
  298. even if it shares a piece with next FileEntry which `requested' property
  299. is true.
  300. Fixed the bug that zero-length file is not created if pre file
  301. allocation is not done.
  302. * src/MultiDiskAdaptor.cc
  303. * src/MultiDiskAdaptor.h
  304. * test/MultiDiskAdaptorTest.cc
  305. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  306. Added the ability to pool proxy connection.
  307. The conneciton in FTP with proxy-method=GET is not pooled.
  308. Proxy-Connection header will not be sent when sending CONNECT method.
  309. * src/DownloadEngine.cc
  310. * src/DownloadEngine.h
  311. * src/FtpFinishDownloadCommand.cc
  312. * src/FtpInitiateConnectionCommand.cc
  313. * src/FtpNegotiationCommand.cc
  314. * src/HttpDownloadCommand.cc
  315. * src/HttpInitiateConnectionCommand.cc
  316. * src/HttpRequest.cc
  317. * src/HttpRequest.h
  318. * src/HttpResponse.cc
  319. * src/HttpSkipResponseCommand.cc
  320. * test/HttpRequestTest.cc
  321. * test/HttpResponseTest.cc
  322. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  323. Handle date before epoch.
  324. To create *bad* Time object, call Time::null().
  325. * src/CookieParser.cc
  326. * src/FtpConnection.cc
  327. * src/FtpConnection.h
  328. * src/FtpNegotiationCommand.cc
  329. * src/RequestGroup.cc
  330. * src/TimeA2.cc
  331. * src/TimeA2.h
  332. * test/CookieParserTest.cc
  333. * test/FtpConnectionTest.cc
  334. * test/TimeTest.cc
  335. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  336. Added support for following envrionment variables: http_proxy,
  337. https_proxy, ftp_proxy and all_proxy.
  338. Each variable is equivalent to the aria2 option whose name is the
  339. variable name with '_' replaced with '-'.
  340. They overrides options specified in aria2.conf file.
  341. The envrionment variables can be overrode using command-line option.
  342. * src/option_processing.cc
  343. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  344. Renamed --http-proxy-method as --proxy-method.
  345. * src/AbstractCommand.cc
  346. * src/FtpInitiateConnectionCommand.cc
  347. * src/HttpInitiateConnectionCommand.cc
  348. * src/OptionHandlerFactory.cc
  349. * src/option_processing.cc
  350. * src/prefs.cc
  351. * src/prefs.h
  352. * src/usage_text.h
  353. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  354. Deprecated --http-proxy-user and --http-proxy-passwd options.
  355. Added --https-proxy, --ftp-proxy and --all-proxy options.
  356. Above 3 options and --http-proxy option can handle proxy in URL format
  357. like: http://user:passwd@host:port.
  358. If a proxy requires user/password, they must be specified in a URL.
  359. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  360. instead.
  361. * src/AbstractCommand.cc
  362. * src/AbstractCommand.h
  363. * src/AbstractProxyRequestCommand.cc
  364. * src/AbstractProxyRequestCommand.h
  365. * src/AuthConfigFactory.cc
  366. * src/AuthConfigFactory.h
  367. * src/FtpFinishDownloadCommand.cc
  368. * src/FtpInitiateConnectionCommand.cc
  369. * src/FtpInitiateConnectionCommand.h
  370. * src/FtpNegotiationCommand.cc
  371. * src/FtpTunnelRequestCommand.cc
  372. * src/FtpTunnelRequestCommand.h
  373. * src/HttpDownloadCommand.cc
  374. * src/HttpInitiateConnectionCommand.cc
  375. * src/HttpInitiateConnectionCommand.h
  376. * src/HttpProxyRequestCommand.cc
  377. * src/HttpProxyRequestCommand.h
  378. * src/HttpRequest.cc
  379. * src/HttpRequest.h
  380. * src/HttpRequestCommand.cc
  381. * src/HttpRequestCommand.h
  382. * src/HttpSkipResponseCommand.cc
  383. * src/InitiateConnectionCommand.cc
  384. * src/InitiateConnectionCommand.h
  385. * src/OptionHandlerFactory.cc
  386. * src/OptionHandlerImpl.h
  387. * src/Request.cc
  388. * src/option_processing.cc
  389. * src/prefs.cc
  390. * src/prefs.h
  391. * src/usage_text.h
  392. * test/AuthConfigFactoryTest.cc
  393. * test/HttpRequestTest.cc
  394. * test/OptionHandlerTest.cc
  395. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  396. Execute choking algorithm when unchoked and interested peer is
  397. disconected.
  398. * src/DefaultPeerStorage.cc
  399. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  400. Added testcase for BtNotInterestedMessage from unchoked peer.
  401. * test/BtNotInterestedMessageTest.cc
  402. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  403. Execute choking algorithm when BtInterestedMessage arrives from
  404. unchoked peer.
  405. * src/BtInterestedMessage.cc
  406. * src/BtInterestedMessage.h
  407. * src/DefaultBtMessageFactory.cc
  408. * test/BtInterestedMessageTest.cc
  409. * test/MockPeerStorage.h
  410. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  411. AuthConfigFactory is now part of DownloadEngine.
  412. * src/AbstractProxyRequestCommand.cc
  413. * src/AuthConfigFactory.h
  414. * src/DownloadEngine.cc
  415. * src/DownloadEngine.h
  416. * src/FtpConnection.cc
  417. * src/FtpConnection.h
  418. * src/FtpNegotiationCommand.cc
  419. * src/HttpConnection.cc
  420. * src/HttpRequest.cc
  421. * src/HttpRequest.h
  422. * src/HttpRequestCommand.cc
  423. * src/HttpResponse.cc
  424. * src/HttpResponseCommand.cc
  425. * src/HttpSkipResponseCommand.cc
  426. * src/MultiUrlRequestInfo.cc
  427. * src/main.cc
  428. * test/FtpConnectionTest.cc
  429. * test/HttpRequestTest.cc
  430. * test/HttpResponseTest.cc
  431. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  432. Corrected catched exception type.
  433. * src/ServerStatMan.cc
  434. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  435. DNSCache is now part of DownloadEngine.
  436. * src/DNSCache.h
  437. * src/DownloadEngine.cc
  438. * src/DownloadEngine.h
  439. * src/InitiateConnectionCommand.cc
  440. * src/MultiUrlRequestInfo.cc
  441. * test/Makefile.am
  442. * test/Makefile.in
  443. * test/SimpleDNSCacheTest.cc
  444. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  445. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  446. DownloadEngine.
  447. * src/ActivePeerConnectionCommand.cc
  448. * src/BtSetup.cc
  449. * src/CUIDCounter.h
  450. * src/DHTSetup.cc
  451. * src/DownloadCommand.cc
  452. * src/DownloadEngine.cc
  453. * src/DownloadEngine.h
  454. * src/DownloadEngineFactory.cc
  455. * src/FileAllocationDispatcherCommand.cc
  456. * src/InitiatorMSEHandshakeCommand.cc
  457. * src/PeerInitiateConnectionCommand.cc
  458. * src/PeerInteractionCommand.cc
  459. * src/PeerListenCommand.cc
  460. * src/RequestGroup.cc
  461. * src/StreamFileAllocationEntry.cc
  462. * src/TrackerWatcherCommand.cc
  463. * src/main.cc
  464. * test/RequestGroupManTest.cc
  465. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  466. Implemented commented code in BtSeederStateChoke
  467. * src/BtSeederStateChoke.cc
  468. * src/Peer.cc
  469. * src/Peer.h
  470. * src/PeerInteractionCommand.cc
  471. * src/PeerSessionResource.cc
  472. * src/PeerSessionResource.h
  473. * test/MockBtMessageDispatcher.h
  474. * test/PeerSessionResourceTest.cc
  475. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  476. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  477. its object.
  478. * src/AbstractBtMessage.cc
  479. * src/ActivePeerConnectionCommand.cc
  480. * src/ActivePeerConnectionCommand.h
  481. * src/BtContextAwareCommand.cc
  482. * src/BtContextAwareCommand.h
  483. * src/BtExtendedMessage.cc
  484. * src/BtExtendedMessage.h
  485. * src/BtInterestedMessage.cc
  486. * src/BtInterestedMessage.h
  487. * src/BtNotInterestedMessage.cc
  488. * src/BtNotInterestedMessage.h
  489. * src/BtRegistry.cc
  490. * src/BtRegistry.h
  491. * src/BtSeederStateChoke.cc
  492. * src/BtSetup.cc
  493. * src/DHTGetPeersCommand.cc
  494. * src/DHTGetPeersCommand.h
  495. * src/DHTPeerAnnounceEntry.cc
  496. * src/DHTPeerAnnounceEntry.h
  497. * src/DHTPeerAnnounceStorage.cc
  498. * src/DHTPeerAnnounceStorage.h
  499. * src/DHTPeerLookupTask.cc
  500. * src/DHTPeerLookupTask.h
  501. * src/DHTSetup.cc
  502. * src/DHTSetup.h
  503. * src/DHTTaskFactory.h
  504. * src/DHTTaskFactoryImpl.cc
  505. * src/DHTTaskFactoryImpl.h
  506. * src/DefaultBtAnnounce.cc
  507. * src/DefaultBtInteractive.cc
  508. * src/DefaultBtInteractive.h
  509. * src/DefaultBtMessageDispatcher.cc
  510. * src/DefaultBtMessageDispatcher.h
  511. * src/DefaultBtMessageFactory.cc
  512. * src/DefaultBtMessageFactory.h
  513. * src/DefaultBtMessageReceiver.cc
  514. * src/DefaultBtProgressInfoFile.cc
  515. * src/DefaultBtProgressInfoFile.h
  516. * src/DefaultBtRequestFactory.cc
  517. * src/DefaultBtRequestFactory.h
  518. * src/DefaultExtensionMessageFactory.cc
  519. * src/DefaultExtensionMessageFactory.h
  520. * src/DefaultPeerStorage.cc
  521. * src/DefaultPeerStorage.h
  522. * src/DownloadEngine.cc
  523. * src/DownloadEngine.h
  524. * src/InitiatorMSEHandshakeCommand.cc
  525. * src/InitiatorMSEHandshakeCommand.h
  526. * src/MSEHandshake.cc
  527. * src/MSEHandshake.h
  528. * src/Makefile.am
  529. * src/Makefile.in
  530. * src/PeerChokeCommand.cc
  531. * src/PeerChokeCommand.h
  532. * src/PeerInitiateConnectionCommand.cc
  533. * src/PeerInitiateConnectionCommand.h
  534. * src/PeerInteractionCommand.cc
  535. * src/PeerInteractionCommand.h
  536. * src/PeerObject.h
  537. * src/PeerReceiveHandshakeCommand.cc
  538. * src/PeerReceiveHandshakeCommand.h
  539. * src/ReceiverMSEHandshakeCommand.cc
  540. * src/RequestGroup.cc
  541. * src/RequestGroup.h
  542. * src/RequestGroupMan.cc
  543. * src/RequestGroupMan.h
  544. * src/SeedCheckCommand.cc
  545. * src/SeedCheckCommand.h
  546. * src/ShareRatioSeedCriteria.h
  547. * src/SimpleBtMessage.cc
  548. * src/TrackerWatcherCommand.cc
  549. * src/TrackerWatcherCommand.h
  550. * src/UTPexExtensionMessage.cc
  551. * src/UTPexExtensionMessage.h
  552. * test/BtCancelMessageTest.cc
  553. * test/BtChokeMessageTest.cc
  554. * test/BtExtendedMessageTest.cc
  555. * test/BtInterestedMessageTest.cc
  556. * test/BtNotInterestedMessageTest.cc
  557. * test/BtPieceMessageTest.cc
  558. * test/BtPortMessageTest.cc
  559. * test/BtRegistryTest.cc
  560. * test/BtRejectMessageTest.cc
  561. * test/BtRequestMessageTest.cc
  562. * test/DHTPeerAnnounceEntryTest.cc
  563. * test/DHTPeerAnnounceStorageTest.cc
  564. * test/DefaultBtMessageDispatcherTest.cc
  565. * test/DefaultBtMessageFactoryTest.cc
  566. * test/DefaultBtProgressInfoFileTest.cc
  567. * test/DefaultBtRequestFactoryTest.cc
  568. * test/DefaultExtensionMessageFactoryTest.cc
  569. * test/MSEHandshakeTest.cc
  570. * test/MockDHTTaskFactory.h
  571. * test/ShareRatioSeedCriteriaTest.cc
  572. * test/UTPexExtensionMessageTest.cc
  573. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  574. Fixed compiler warning.
  575. * test/UtilTest.cc
  576. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  577. Treat Cookie object as session cookie if expiry = 0 is given.
  578. With this change, you can specify session scoped cookies in an external
  579. file setting expiry value to 0.
  580. * src/Cookie.cc
  581. * src/Cookie.h
  582. * test/CookieParserTest.cc
  583. * test/CookieStorageTest.cc
  584. * test/CookieTest.cc
  585. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  586. Changed signature of DHTMessageFactory::createResponseMessage().
  587. Removed unused validateIDMatch.
  588. * src/DHTMessageFactory.h
  589. * src/DHTMessageFactoryImpl.cc
  590. * src/DHTMessageFactoryImpl.h
  591. * src/DHTMessageTracker.cc
  592. * test/DHTMessageFactoryImplTest.cc
  593. * test/MockDHTMessageFactory.h
  594. Dropped DHT message coming from same ID of localhost.
  595. * src/DHTMessageReceiver.cc
  596. Rejected adding node whose ID is the same as localhost's.
  597. * src/DHTRoutingTable.cc
  598. * test/BtPortMessageTest.cc
  599. * test/DHTRoutingTableTest.cc
  600. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  601. Pool connection when redirection occurs with Content-Length = 0.
  602. * src/HttpSkipResponseCommand.cc
  603. * src/HttpSkipResponseCommand.h
  604. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  605. Fixed the bug that causes time out when redirection occurs with
  606. content-length 0.
  607. * src/HttpResponseCommand.cc
  608. * src/HttpSkipResponseCommand.cc
  609. * src/HttpSkipResponseCommand.h
  610. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  611. Now each status legends is shown only when it appears in Download
  612. Result. If Download Result has no item, then status legend will not
  613. be printed.
  614. * src/RequestGroupMan.cc
  615. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  616. Removed duplicate creation of OptionHandlers.
  617. * src/option_processing.cc
  618. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  619. Fixed the bug that causes segmentation fault when accessing files which
  620. don't exist or are not included in --select-file option while
  621. validating chunk checksum.
  622. * src/MultiDiskAdaptor.cc
  623. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  624. Fixed compiler warning.
  625. * test/UtilTest.cc
  626. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  627. Included cstdlib. This fixed the compile error with g++-4.3.2.
  628. * src/IteratableChecksumValidator.cc
  629. * src/IteratableChunkChecksumValidator.cc
  630. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  631. * Release 0.16.2
  632. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  633. Added Serbian translation. Updated Ukrainian translation.
  634. Thanks to all translators.
  635. * po/sr.po
  636. * po/uk.po
  637. * po/LINGUAS
  638. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  639. Bump up version number to 0.16.2
  640. * configure.ac
  641. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  642. Added length equality test to operator== to drop a piece message
  643. whose length does not match to the requested one.
  644. * src/RequestSlot.cc
  645. * test/DefaultBtMessageDispatcherTest.cc
  646. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  647. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  648. recieved.
  649. In this fix, if a request larger than 16KiB length is received, aria2
  650. disconnects the peer.
  651. * src/BtConstants.h
  652. * src/PeerMessageUtil.cc
  653. * src/PeerMessageUtil.h
  654. * test/BtRequestMessageTest.cc
  655. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  656. * Release 0.16.1
  657. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  658. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  659. * doc/aria2c.1.txt
  660. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  661. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  662. Updated French, Simplified Chinese and Japanese translations.
  663. Thanks to all translators.
  664. en@quot and en@boldquot are also added.
  665. * po/LINGUAS
  666. * po/fr.po
  667. * po/ja.po
  668. * po/uk.po
  669. * po/vi.po
  670. * po/zh_CN.po
  671. * po/zh_TW.po
  672. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  673. Bump up version number to 0.16.1.
  674. * configure.ac
  675. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  676. Updated README.
  677. * README
  678. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  679. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  680. not to replace '--' with em dash character.
  681. * doc/aria2c.1.txt
  682. * doc/makeman
  683. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  684. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  685. every SEC seconds.
  686. * src/DownloadEngineFactory.cc
  687. * src/OptionHandlerFactory.cc
  688. * src/option_processing.cc
  689. * src/usage_text.h
  690. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  691. Fixed compile warning on linux-amd64
  692. * src/FtpConnection.cc
  693. * src/IteratableChunkChecksumValidator.cc
  694. * src/MultiDiskAdaptor.cc
  695. Fixed the bug that unit test fails on linux-amd64
  696. * test/UtilTest.cc
  697. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  698. Added --dht-file-path option to change the path to dht.dat, which is a
  699. serialized DHT routing table.
  700. * src/OptionHandlerFactory.cc
  701. * src/option_processing.cc
  702. * src/usage_text.h
  703. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  704. Fixed possible underflow.
  705. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  706. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  707. Fixed the bug that last character in URI is not encoded.
  708. * src/Request.cc
  709. * test/RequestTest.cc
  710. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  711. Fixed the bug that referer header field contains fragment.
  712. Now Request class removes fragment part of URI and encodes it
  713. in Request::setUri() and setReferer().
  714. * src/Request.h
  715. * src/Request.cc
  716. * test/RequestTest.cc
  717. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  718. Added missing m4 macros.
  719. * m4/cppunit.m4
  720. * m4/libgcrypt.m4
  721. * m4/libgnutls-extra.m4
  722. * m4/libgnutls.m4
  723. * m4/libxml2.m4
  724. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  725. Fixed compile error with gcc-4.4(snapshot)
  726. * src/File.cc
  727. * src/FtpConnection.cc
  728. * src/OptionHandlerImpl.h
  729. * src/Util.cc
  730. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  731. Removed assert()
  732. * src/SocketBuffer.cc (SocketBuffer::send)
  733. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  734. Changed the type of _numNewConnection to unsigned int.
  735. * src/ActivePeerConnectionCommand.cc
  736. * src/ActivePeerConnectionCommand.h
  737. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  738. * Release 0.16.0
  739. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  740. Updated doc
  741. * README
  742. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  743. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  744. translations. Thanks to all translators.
  745. * po/bg.po
  746. * po/de.po
  747. * po/fr.po
  748. * po/ja.po
  749. * po/zh_CN.po
  750. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  751. Bump up version number to 0.16.0.
  752. * configure.ac
  753. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  754. Casted entry->maxConnections to int32_t for std::min<T> with T =
  755. int32_t.
  756. Changed the type of count to int32_t.
  757. * src/Metalink2RequestGroup.cc
  758. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  759. Added test for Time::elapsed(time_t).
  760. * test/TimeTest.cc
  761. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  762. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  763. Util::difftv() should be used instead.
  764. * src/TimeA2.cc
  765. * src/TimeA2.h
  766. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  767. Made socket for dht connections non-blocking
  768. * src/DHTAbstractMessage.cc
  769. * src/DHTAbstractMessage.h
  770. * src/DHTConnection.h
  771. * src/DHTConnectionImpl.cc
  772. * src/DHTConnectionImpl.h
  773. * src/DHTMessage.h
  774. * src/DHTMessageDispatcherImpl.cc
  775. * src/DHTMessageDispatcherImpl.h
  776. * src/DHTUnknownMessage.cc
  777. * src/DHTUnknownMessage.h
  778. * src/SocketCore.cc
  779. * src/SocketCore.h
  780. * test/MockDHTMessage.h
  781. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  782. Changed the type of offset to int.
  783. * src/ParameterizedStringParser.cc
  784. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  785. Made getAsInt() return int32_t
  786. * src/Option.h
  787. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  788. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  789. build.
  790. * configure.ac
  791. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  792. Use sqlite3_open if sqlite3_open_v2 is not available.
  793. * src/Sqlite3MozCookieParser.cc
  794. * src/Sqlite3MozCookieParser.h
  795. * m4/sqlite3.m4
  796. * test/Sqlite3MozCookieParserTest.cc
  797. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  798. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  799. * src/BtPieceMessage.cc
  800. * src/DHTPeerAnnounceStorage.cc
  801. * src/DefaultPieceStorage.cc
  802. * src/DownloadCommand.cc
  803. * src/DownloadEngine.cc
  804. * src/FtpConnection.cc
  805. * src/PeerConnection.cc
  806. * src/PeerMessageUtil.cc
  807. * src/RequestGroup.cc
  808. * src/RequestGroupMan.cc
  809. * src/SimpleBtMessage.cc
  810. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  811. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  812. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  813. * src/AbstractDiskWriter.cc
  814. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  815. Don't set Request::supportsPersistentConnection() in HttpConnection
  816. since this code is also used in AbstractProxyResponseCommand.
  817. Moved those code to HttpResponse.
  818. * src/HttpResponse.cc
  819. * src/HttpResponse.h
  820. * src/HttpConnection.cc
  821. * src/HttpConnection.h
  822. * src/HttpResponseCommand.cc
  823. * test/HttpResponseTest.cc
  824. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  825. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  826. The configuration is minimum: no torrent, no metalink, so there may be
  827. other compile error on their code.
  828. * src/a2netcompat.h
  829. * src/File.cc
  830. * src/File.h
  831. * src/SocketCore.cc
  832. * src/SocketCore.h
  833. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  834. Made a socket of incoming peer non-blocking.
  835. * src/PeerListenCommand.cc
  836. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  837. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  838. whole message data is not sent in one send() call.
  839. * src/BtPieceMessage.cc
  840. * src/BtPieceMessage.h
  841. * src/PeerConnection.cc
  842. * src/PeerConnection.h
  843. * src/SimpleBtMessage.cc
  844. * src/SimpleBtMessage.h
  845. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  846. Fixed the bug that aria2 downloads faster than max-download-limit when
  847. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  848. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  849. , instead of sum of them.
  850. * src/ActivePeerConnectionCommand.cc
  851. * src/DefaultBtInteractive.cc
  852. * src/DownloadCommand.cc
  853. * src/PeerInteractionCommand.cc
  854. * src/PeerReceiveHandshakeCommand.cc
  855. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  856. Fixed the bug that HTTPS download fails.
  857. * src/AbstractCommand.cc
  858. * src/AbstractCommand.h
  859. * src/DownloadCommand.cc
  860. * src/FtpConnection.cc
  861. * src/HttpConnection.cc
  862. * src/HttpRequestCommand.cc
  863. * src/HttpResponseCommand.cc
  864. * src/HttpSkipResponseCommand.cc
  865. * src/MSEHandshake.cc
  866. * src/PeerConnection.cc
  867. * src/SocketCore.cc
  868. * src/SocketCore.h
  869. Fixed the bug that aria2 doesn't download whole content body and cannot
  870. reuse connection if chunked transfer encoding and gzip content encoding
  871. are set.
  872. * src/DownloadCommand.cc
  873. * src/HttpSkipResponseCommand.cc
  874. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  875. Updated man page.
  876. * doc/aria2c.1.txt
  877. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  878. When error occurred while aria2 was parsing an .aria2.conf file, print
  879. the usage of the option that caused error.
  880. * src/option_processing.cc
  881. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  882. Fixed compile error on OptionHandlerException
  883. * src/Makefile.am
  884. * src/OptionHandlerException.cc
  885. * src/OptionHandlerException.h
  886. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  887. Moved message of the error to OptionHandlerException.h
  888. * src/NameMatchOptionHandler.h
  889. * src/OptionHandlerException.h
  890. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  891. When error occurs while aria2 is parsing an command-line option, print
  892. the usage of the option.
  893. * src/Makefile.am
  894. * src/NameMatchOptionHandler.h
  895. * src/OptionHandlerException.h
  896. * src/option_processing.cc
  897. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  898. Reverted previous change.
  899. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  900. username is not in URI.
  901. * src/HttpRequest.cc
  902. * src/Request.cc
  903. * test/HttpRequestTest.cc
  904. * test/RequestTest.cc
  905. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  906. Now colon is required for username and password in FTP URL, like:
  907. ftp://username:password@host.
  908. If colon is not there, aria2 don't parse it as a username. For example,
  909. aria2 don't retrieve username from ftp://username@host.
  910. This fix was made in order to login FTP server via non-transparent ftp
  911. proxy.
  912. * src/Request.cc
  913. * test/RequestTest.cc
  914. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  915. Use netrc for HTTP.
  916. Now FTP user/password is sent in Authorization header when
  917. --ftp-via-http-proxy=get is given.
  918. * src/AuthConfigFactory.cc
  919. * src/HttpRequest.cc
  920. * src/HttpRequest.h
  921. * src/NetrcAuthResolver.cc
  922. * src/NetrcAuthResolver.h
  923. * src/OptionHandlerFactory.cc
  924. * src/option_processing.cc
  925. * src/prefs.cc
  926. * src/prefs.h
  927. * test/AuthConfigFactoryTest.cc
  928. * test/HttpRequestTest.cc
  929. * test/NetrcAuthResolverTest.cc
  930. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  931. Issue PWD command first and get working directory and use it as a prefix
  932. for CWD command.
  933. * src/DownloadEngine.cc
  934. * src/DownloadEngine.h
  935. * src/FtpConnection.cc
  936. * src/FtpConnection.h
  937. * src/FtpFinishDownloadCommand.cc
  938. * src/FtpInitiateConnectionCommand.cc
  939. * src/FtpNegotiationCommand.cc
  940. * src/FtpNegotiationCommand.h
  941. * test/FtpConnectionTest.cc
  942. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  943. Removed default user/pass for FTP user/pass, since it should not have
  944. precedence over netrc configuration by default.
  945. * src/OptionHandlerFactory.cc
  946. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  947. Added debug log for socket event.
  948. * src/AbstractCommand.cc
  949. * src/PeerAbstractCommand.cc
  950. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  951. Log microseconds.
  952. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  953. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  954. Replaced HelpItem.cc with OptionHandler.cc.
  955. * po/POTFILES.in
  956. Updated po files with 'make update-po'
  957. * po/aria2c.pot
  958. * po/*.po
  959. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  960. Removed possible values from the text.
  961. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  962. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  963. Removed unused preferences:
  964. PREF_NO_PREALLOCATION
  965. PREF_STDOUT_LOG
  966. PREF_TRACKER_MAX_TRIES
  967. PREF_DIRECT_DOWNLOAD_TIMEOUT
  968. PREF_MIN_SEGMENT_SIZE
  969. * src/option_processing.cc
  970. * src/prefs.cc
  971. * src/prefs.h
  972. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  973. Integrated HelpItem into OptionParser to ease the workload for adding
  974. new options. Removed default value from usage text.
  975. * src/HelpItem.cc: Removed.
  976. * src/HelpItem.h: Removed.
  977. * src/HelpItemFactory.cc: Removed.
  978. * src/HelpItemFactory.h: Removed.
  979. * src/Makefile.am
  980. * src/Makefile.in
  981. * src/NameMatchOptionHandler.h
  982. * src/OptionHandler.cc
  983. * src/OptionHandler.h
  984. * src/OptionHandlerFactory.cc
  985. * src/OptionHandlerImpl.h
  986. * src/OptionParser.cc
  987. * src/OptionParser.h
  988. * src/TagContainer.cc: Removed.
  989. * src/TagContainer.h: Removed.
  990. * src/TaggedItem.cc: Removed.
  991. * src/TaggedItem.h: Removed.
  992. * src/main.cc
  993. * src/option_processing.cc
  994. * src/usage_text.h
  995. * src/version_usage.cc
  996. * test/HelpItemTest.cc: Removed.
  997. * test/Makefile.am
  998. * test/Makefile.in
  999. * test/OptionHandlerTest.cc
  1000. * test/OptionParserTest.cc
  1001. * test/TagContainerTest.cc: Removed.
  1002. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1003. Moved `TransferStat stat = ...' to inside the `if' clause.
  1004. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  1005. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1006. Fixed the bug that a block in a piece is requested when same block is
  1007. already requested to the same peer in end game mode.
  1008. * src/BtRequestFactory.h
  1009. * src/DefaultBtInteractive.cc
  1010. * src/DefaultBtRequestFactory.cc
  1011. * src/DefaultBtRequestFactory.h
  1012. * src/DefaultPieceStorage.cc
  1013. * src/DefaultPieceStorage.h
  1014. * src/PieceStorage.h
  1015. * src/UnknownLengthPieceStorage.cc
  1016. * src/UnknownLengthPieceStorage.h
  1017. * test/DefaultBtRequestFactoryTest.cc
  1018. * test/DefaultPieceStorageTest.cc
  1019. * test/MockBtRequestFactory.h
  1020. * test/MockPieceStorage.h
  1021. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1022. Removed _uploadLength and _downloadLength from PeerSessionResource
  1023. and use PeerStat::_sessionUploadLength and
  1024. PeerStat::_sessionDownloadLength.
  1025. * src/PeerSessionResource.cc
  1026. * src/PeerSessionResource.h
  1027. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1028. Fixed the bug that prefixLength of split bucket which doesn't include
  1029. local node ID is incremented.
  1030. * src/DHTBucket.cc
  1031. * src/DHTBucket.h
  1032. * test/DHTBucketTest.cc
  1033. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1034. Added cookies.sqlite to EXTRA_DIST
  1035. * test/Makefile.am
  1036. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1037. Added Turkish translation. Updated French, German, Russian and
  1038. Simplified Chinese translations. Thanks to all translators.
  1039. * po/LINGUAS
  1040. * po/de.po
  1041. * po/fr.po
  1042. * po/ru.po
  1043. * po/tr.po
  1044. * po/zh_CN.po
  1045. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1046. Added deliminating text to the beginning of the log so that one can find
  1047. where the log starts easily.
  1048. * src/main.cc
  1049. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1050. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  1051. to fix compile error when async DNS is not enabled by configuration.
  1052. * src/AbstractCommand.cc
  1053. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1054. If establishing conneciton to a server is failed, then mark error on
  1055. its ServerStat.
  1056. Added the cause of error to log when error event occurred.
  1057. Moved message string to message.h for translation.
  1058. * src/AbstractCommand.cc
  1059. * src/AbstractCommand.h
  1060. * src/FtpNegotiationCommand.cc
  1061. * src/HttpRequestCommand.cc
  1062. * src/PeerAbstractCommand.cc
  1063. * src/message.h
  1064. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1065. Added the function to get error message from socket.
  1066. * src/SocketCore.cc
  1067. * src/SocketCore.h
  1068. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1069. Added convenient method RequestGroupMan::getOrCreateServerStat()
  1070. * src/RequestGroupMan.cc
  1071. * src/RequestGroupMan.h
  1072. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1073. If error event is received in epoll, then abort download immediately.
  1074. * src/AbstractCommand.cc
  1075. * src/Command.cc
  1076. * src/Command.h
  1077. * src/DownloadEngine.cc
  1078. * src/PeerAbstractCommand.cc
  1079. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1080. Added usage message for --uri-selector, --server-stat-of,
  1081. --server-stat-in, --server-stat-timeout options.
  1082. * src/HelpItemFactory.cc
  1083. * src/usage_text.h
  1084. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1085. Added upper limit of FTP response buffer. The current implementation
  1086. uses 4096bytes as a limit.
  1087. * src/FtpConnection.cc
  1088. * src/FtpConnection.h
  1089. * test/FtpConnectionTest.cc
  1090. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1091. Use non-blocking socket for TCP communication to avoid possible
  1092. blocking due to buffer full.
  1093. * src/AbstractProxyRequestCommand.cc
  1094. * src/FtpConnection.cc
  1095. * src/FtpConnection.h
  1096. * src/FtpNegotiationCommand.cc
  1097. * src/FtpNegotiationCommand.h
  1098. * src/HttpConnection.cc
  1099. * src/HttpConnection.h
  1100. * src/HttpRequestCommand.cc
  1101. * src/InitiatorMSEHandshakeCommand.cc
  1102. * src/InitiatorMSEHandshakeCommand.h
  1103. * src/MSEHandshake.cc
  1104. * src/MSEHandshake.h
  1105. * src/Makefile.am
  1106. * src/PeerConnection.cc
  1107. * src/PeerConnection.h
  1108. * src/PeerInteractionCommand.cc
  1109. * src/PeerListenCommand.cc
  1110. * src/ReceiverMSEHandshakeCommand.cc
  1111. * src/ReceiverMSEHandshakeCommand.h
  1112. * src/SocketBuffer.cc
  1113. * src/SocketBuffer.h
  1114. * src/SocketCore.cc
  1115. * src/SocketCore.h
  1116. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1117. Call setStatusRealtime() in constructor.
  1118. * src/RealtimeCommand.cc
  1119. * src/RealtimeCommand.h
  1120. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1121. Call Download::setNoWait(true) to execute newly created command without
  1122. a pause.
  1123. * src/AbstractCommand.cc
  1124. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1125. Added --max-file-not-found=NUM option. If aria2 receives `file not
  1126. found' error from HTTP/FTP server NUM times without getting single
  1127. bytes of data, then force the download to fail.
  1128. Basically aria2 tris all URIs available. So if long list of URIs are
  1129. specified in Metalink, then aria2 will take a long time to fail
  1130. eventually if all URIs are outdated. This option eases this situation
  1131. to limit the number of servers to try.
  1132. * src/FtpNegotiationCommand.cc
  1133. * src/HelpItemFactory.cc
  1134. * src/HttpResponseCommand.cc
  1135. * src/OptionHandlerFactory.cc
  1136. * src/PeerStat.h
  1137. * src/RequestGroup.cc
  1138. * src/RequestGroup.h
  1139. * src/SegmentMan.cc
  1140. * src/SegmentMan.h
  1141. * src/option_processing.cc
  1142. * src/prefs.cc
  1143. * src/prefs.h
  1144. * src/usage_text.h
  1145. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1146. Fixed the bug that bulkReceiveResponse() reads all received data as a
  1147. response even if more than one response is in it.
  1148. * src/FtpConnection.cc
  1149. * src/FtpConnection.h
  1150. * test/FtpConnectionTest.cc
  1151. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1152. Merged from stable-0.15
  1153. * m4/libcares.m4
  1154. Use pkg-config
  1155. * m4/sqlite3.m4
  1156. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1157. Removed unnecessary if statement.
  1158. * src/DefaultPieceStorage.cc (initPieceStorage)
  1159. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1160. Added --connect-timeout option to specify connect timeout in seconds.
  1161. This option is in effect for HTTP/FTP/proxy server. The timeout for
  1162. connecting to BitTorrent peer is not controlled by this option.
  1163. * src/AbstractProxyRequestCommand.cc
  1164. * src/FtpNegotiationCommand.cc
  1165. * src/HelpItemFactory.cc
  1166. * src/HttpRequestCommand.cc
  1167. * src/OptionHandlerFactory.cc
  1168. * src/option_processing.cc
  1169. * src/prefs.cc
  1170. * src/prefs.h
  1171. * src/usage_text.h
  1172. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1173. Added help message for -R option.
  1174. * src/HelpItemFactory.cc
  1175. * src/usage_text.h
  1176. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1177. Added the message that the time is in local time zone.
  1178. * src/RequestGroup.cc
  1179. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1180. Implemented the ability to get timestamp from remote FTP server using
  1181. MDTM command described in RFC3659.
  1182. * src/FtpConnection.cc
  1183. * src/FtpConnection.h
  1184. * src/FtpNegotiationCommand.cc
  1185. * src/FtpNegotiationCommand.h
  1186. * test/FtpConnectionTest.cc
  1187. * test/Makefile.am
  1188. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1189. Implemented the ability to get timestamp from remote HTTP server and
  1190. apply it to local file. To enable this feature, --remote-time option
  1191. is added. No usage text has been written yet.
  1192. If several servers returns difference timestamp, then aria2 uses latest
  1193. one.
  1194. * src/CopyDiskAdaptor.cc
  1195. * src/CopyDiskAdaptor.h
  1196. * src/DirectDiskAdaptor.cc
  1197. * src/DirectDiskAdaptor.h
  1198. * src/DiskAdaptor.h
  1199. * src/File.cc
  1200. * src/File.h
  1201. * src/HttpHeader.cc
  1202. * src/HttpHeader.h
  1203. * src/HttpResponse.cc
  1204. * src/HttpResponse.h
  1205. * src/HttpResponseCommand.cc
  1206. * src/HttpResponseCommand.h
  1207. * src/MultiDiskAdaptor.cc
  1208. * src/MultiDiskAdaptor.h
  1209. * src/OptionHandlerFactory.cc
  1210. * src/RequestGroup.cc
  1211. * src/RequestGroup.h
  1212. * src/RequestGroupMan.cc
  1213. * src/option_processing.cc
  1214. * src/prefs.cc
  1215. * src/prefs.h
  1216. * test/CopyDiskAdaptorTest.cc
  1217. * test/FileTest.cc
  1218. * test/Makefile.am
  1219. * test/Makefile.in
  1220. * test/MultiDiskAdaptorTest.cc
  1221. * test/TestUtil.cc
  1222. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1223. Fixed the bug that DiskWriterEntry is not created when its
  1224. FileEntry.isRequested() is false and it doesn't share a piece with
  1225. other FileEntries that are requested. This bug causes segmentation fault
  1226. in the end.
  1227. * src/MultiDiskAdaptor.cc
  1228. * src/MultiDiskAdaptor.h
  1229. * src/MultiFileAllocationIterator.cc
  1230. * test/MultiDiskAdaptorTest.cc
  1231. * test/MultiFileAllocationIteratorTest.cc
  1232. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1233. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  1234. called if the number of file entries are greater than max open files.
  1235. * src/AbstractSingleDiskAdaptor.cc
  1236. * src/AbstractSingleDiskAdaptor.h
  1237. * src/DiskAdaptor.h
  1238. * src/MultiDiskAdaptor.cc
  1239. * src/MultiDiskAdaptor.h
  1240. * test/MultiDiskAdaptorTest.cc
  1241. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1242. Added a constuctor that receives struct timeval.
  1243. Added operator<.
  1244. * src/TimeA2.cc
  1245. * src/TimeA2.h
  1246. * test/TimeTest.cc
  1247. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1248. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  1249. * src/CookieParser.cc
  1250. * test/CookieParserTest.cc
  1251. * test/HttpResponseTest.cc
  1252. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1253. Implmented the functions to parse date.
  1254. * src/TimeA2.cc
  1255. * src/TimeA2.h
  1256. * test/TimeTest.cc
  1257. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1258. Added "Firefox3 Cookie" feature to FeatureConfig
  1259. * src/FeatureConfig.cc
  1260. * src/FeatureConfig.h
  1261. * test/FeatureConfigTest.cc
  1262. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1263. Bump up version number to 0.16.0b
  1264. * configure.ac
  1265. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1266. Use pkg-config if is is available.
  1267. * m4/openssl.m4
  1268. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1269. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  1270. * src/BtAnnounce.h
  1271. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1272. If an error occurred with a URI, remove identical URI from remaining
  1273. URI list because it is likely that same error occurred in the end and it
  1274. is waste of time.
  1275. * src/AbstractCommand.cc
  1276. * src/RequestGroup.cc
  1277. * src/RequestGroup.h
  1278. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1279. Removed wrong comment.
  1280. * src/DefaultPeerStorage.cc
  1281. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1282. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  1283. Added return value of getpid() to argument of srand() to achieve more
  1284. randomized value.
  1285. * src/SimpleRandomizer.cc
  1286. * src/SimpleRandomizer.h
  1287. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1288. Contact tracker frequently when the number of connections are 0 and
  1289. download is not finished yet.
  1290. * src/ActivePeerConnectionCommand.cc
  1291. * src/BtAnnounce.h
  1292. * src/DefaultBtAnnounce.cc
  1293. * src/DefaultBtAnnounce.h
  1294. * test/MockBtAnnounce.h
  1295. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1296. Moved threshold values to UTPexExtensionMessage.
  1297. * src/DefaultBtInteractive.cc
  1298. * src/Peer.cc
  1299. * src/Peer.h
  1300. * src/UTPexExtensionMessage.cc
  1301. * src/UTPexExtensionMessage.h
  1302. * test/UTPexExtensionMessageTest.cc
  1303. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1304. Added _incoming member to Peer class and made it true if the peer
  1305. initiated connection. Don't add those peer to UTPex message.
  1306. If extended handshake is received, assign _incoming to false.
  1307. * src/DefaultBtInteractive.cc
  1308. * src/HandshakeExtensionMessage.cc
  1309. * src/Peer.cc
  1310. * src/Peer.h
  1311. * src/PeerListenCommand.cc
  1312. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1313. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  1314. Encoding Decoder. Removed size threshold for turning off on the fly
  1315. inflation because resulting file may or may not be inflated depending
  1316. on the file size and I think it is not expected by users.
  1317. This change fixes segmentation fault when Metalink file contains gzipped
  1318. file and its filesize is provided.
  1319. * src/HttpResponseCommand.cc
  1320. * src/HttpResponseCommand.h
  1321. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1322. Made Cookie immutable.
  1323. * src/Cookie.cc
  1324. * src/Cookie.h
  1325. * src/CookieParser.cc
  1326. * src/CookieParser.h
  1327. * src/CookieStorage.cc
  1328. * test/CookieParserTest.cc
  1329. * test/CookieStorageTest.cc
  1330. * test/NsCookieParserTest.cc
  1331. * test/Sqlite3MozCookieParserTest.cc
  1332. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1333. Removed CookieBox, CookieBoxFactory.
  1334. * src/CookieBox.cc
  1335. * src/CookieBox.h
  1336. * src/CookieBoxFactory.cc
  1337. * src/CookieBoxFactory.h
  1338. * src/Makefile.am
  1339. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1340. Use CookieStorage class instead of CookieBox class.
  1341. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  1342. * src/AbstractProxyRequestCommand.cc
  1343. * src/CookieStorage.cc
  1344. * src/DownloadEngine.cc
  1345. * src/DownloadEngine.h
  1346. * src/HttpConnection.cc
  1347. * src/HttpConnection.h
  1348. * src/HttpRequest.cc
  1349. * src/HttpRequest.h
  1350. * src/HttpRequestCommand.cc
  1351. * src/HttpResponse.cc
  1352. * src/HttpResponseCommand.cc
  1353. * src/HttpSkipResponseCommand.cc
  1354. * src/Makefile.am
  1355. * src/MultiUrlRequestInfo.cc
  1356. * src/Request.cc
  1357. * src/Request.h
  1358. * src/main.cc
  1359. * test/AllTest.cc
  1360. * test/CookieStorageTest.cc
  1361. * test/CookieTest.cc
  1362. * test/HttpRequestTest.cc
  1363. * test/HttpResponseTest.cc
  1364. * test/Makefile.am
  1365. * test/NsCookieParserTest.cc
  1366. * test/Sqlite3MozCookieParserTest.cc
  1367. * test/nscookietest.txt
  1368. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1369. Updated
  1370. * test/Cookies.sqlite
  1371. * test/nscookietest.txt
  1372. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1373. Added tests for CookieStorage::load()
  1374. * test/CookieStorageTest.cc
  1375. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1376. Added CookieStorage class which is based on RFC2109 and manages cookies
  1377. more strictly than CookieBox and CookieBoxFactory class.
  1378. * src/CookieStorage.cc
  1379. * src/CookieStorage.h
  1380. * src/Cookie.cc
  1381. * src/Cookie.h
  1382. * test/CookieStorageTest.cc
  1383. * test/CookieTest.cc
  1384. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1385. Fixed the bug that commands are created more than the number of pieces.
  1386. * src/RequestGroup.cc
  1387. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1388. Fixed infinite loop bug in FTP when SIZE command failed.
  1389. * src/FtpNegotiationCommand.cc
  1390. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1391. Removed DirectDiskAdaptorTest.h
  1392. * test/Makefile.am
  1393. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1394. Fixed chunk checksum validation cannot detect trailing garbage data.
  1395. BUG#2074141
  1396. * src/AbstractSingleDiskAdaptor.cc
  1397. * src/AbstractSingleDiskAdaptor.h
  1398. * src/CheckIntegrityEntry.cc
  1399. * src/CheckIntegrityEntry.h
  1400. * src/DiskAdaptor.h
  1401. * src/MultiDiskAdaptor.cc
  1402. * src/MultiDiskAdaptor.h
  1403. * src/RequestGroup.cc
  1404. * test/DirectDiskAdaptorTest.cc
  1405. * test/MultiDiskAdaptorTest.cc
  1406. * test/TestUtil.cc
  1407. * test/TestUtil.h
  1408. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1409. Bump up version number of dht.dat file to 3. In version 3 format, time
  1410. is stored in 64bit, network byte order.
  1411. New build can load old format(version 2) but it saves the file in new
  1412. format. It means once you used new build, your dht.dat becomes
  1413. incompatible with older build.
  1414. * src/DHTRoutingTableDeserializer.cc
  1415. * src/DHTRoutingTableSerializer.cc
  1416. * test/DHTRoutingTableSerializerTest.cc
  1417. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1418. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1419. * test/Makefile.am
  1420. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1421. Bump up version number of .aria2 control file to 0001.
  1422. New aria2 can still load version 0000 file but it saves the file in
  1423. version 0001 format. It means that new aria2 can resume download
  1424. started by old aria2 but the opposite is not true.
  1425. * src/DefaultBtProgressInfoFile.cc
  1426. * src/DefaultBtProgressInfoFile.h
  1427. * test/DefaultBtProgressInfoFileTest.cc
  1428. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1429. Added ntoh64 and hton64 as inline functions.
  1430. * src/Util.cc
  1431. * test/UtilTest.cc
  1432. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1433. Added sqlite3 depenency and Firefox3 cookie support.
  1434. * README
  1435. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1436. State that firefox3 cookie is supported explicitly in the usage.
  1437. * src/usage_text.h
  1438. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1439. Externalized message.
  1440. * src/RequestGroupMan.cc
  1441. * src/message.h
  1442. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1443. Save temporary file first and rename to the destination on success.
  1444. Added test cases.
  1445. * src/RequestGroupMan.cc
  1446. * test/RequestGroupManTest.cc
  1447. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1448. Fixed the bug that the number of connected peer is exceeding the limit
  1449. (55 by default) in seeding mode.
  1450. Multiplied 0.8 to _maxUploadSpeedLimit.
  1451. * src/ActivePeerConnectionCommand.cc
  1452. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1453. Clear table item.
  1454. * src/Dictionary.cc
  1455. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1456. Fixed error handling of lseek.
  1457. * src/AbstractDiskWriter.cc
  1458. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1459. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1460. style cookie file.
  1461. * src/usage_text.h
  1462. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1463. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1464. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1465. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1466. * src/Util.cc
  1467. * src/Util.h
  1468. * src/CookieParser.cc
  1469. * test/UtilTest.cc
  1470. * test/CookieParserTest.cc
  1471. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1472. Separate the implementation to load old mozilla format of cookie to
  1473. NsCookieParser class.
  1474. * src/CookieBoxFactory.cc
  1475. * src/CookieBoxFactory.h
  1476. * src/NsCookieParser.cc
  1477. * src/NsCookieParser.h
  1478. * test/NsCookieParserTest.cc
  1479. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1480. Made parse() const
  1481. * src/Sqlite3MozCookieParser.cc
  1482. * src/Sqlite3MozCookieParser.h
  1483. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1484. Added firefox3 cookie support based on the patch submitted by
  1485. tizianomueller.
  1486. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  1487. this functionality.
  1488. * configure.ac
  1489. * m4/sqlite3.m4
  1490. * src/CookieBoxFactory.cc
  1491. * src/CookieBoxFactory.h
  1492. * src/Makefile.am
  1493. * src/Makefile.in
  1494. * src/Sqlite3MozCookieParser.cc
  1495. * src/Sqlite3MozCookieParser.h
  1496. * src/main.cc
  1497. * test/CookieBoxFactoryTest.cc
  1498. * test/Makefile.am
  1499. * test/Makefile.in
  1500. * test/Sqlite3MozCookieParserTest.cc
  1501. * test/badcookies.sqlite
  1502. * test/cookies.sqlite
  1503. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1504. Added Danish and Greek translations.
  1505. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  1506. Great thanks to all translators.
  1507. * po/LINGUAS
  1508. * po/el.po
  1509. * po/da.po
  1510. * po/es.po
  1511. * po/ca.po
  1512. * po/nn.po
  1513. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1514. Fixed man page: --follow-bittorrent should be --follow-torrent
  1515. * doc/aria2c.1.txt
  1516. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1517. Fixed: numCommand is less than the value specified in -C option.
  1518. * src/RequestGroup.cc
  1519. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1520. Fixed occasional assertion failure in PieceSegment.
  1521. Calling PieceStorage::getMissingPiece(size_t) was missing after
  1522. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  1523. creation of duplicate segments and one of the segment was finished then
  1524. assertion failure was caused.
  1525. * src/SegmentMan.cc
  1526. * test/SegmentManTest.cc
  1527. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1528. Added options to load/save the server's performance/status to a file
  1529. and the timeout to drop their data.
  1530. --server-stat-of=FILE specifies the file to which performance data
  1531. is saved.
  1532. --server-stat-if=FILE specifies the file to read previously saved
  1533. by --server-stat-of option. Might be used with --uri-selector=feedback.
  1534. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  1535. TIMEOUT is specified in seconds and the default value is 24hours.
  1536. * src/MultiUrlRequestInfo.cc
  1537. * src/OptionHandlerFactory.cc
  1538. * src/RequestGroupMan.cc
  1539. * src/RequestGroupMan.h
  1540. * src/ServerStatMan.cc
  1541. * src/ServerStatMan.h
  1542. * src/option_processing.cc
  1543. * src/prefs.cc
  1544. * src/prefs.h
  1545. * test/ServerStatManTest.cc
  1546. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1547. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  1548. * src/ServerStatMan.cc
  1549. * src/ServerStatMan.h
  1550. * test/ServerStatManTest.cc
  1551. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1552. Implemented ServerStatMan::load(...) function and its test case.
  1553. * src/ServerStat.cc
  1554. * src/ServerStat.h
  1555. * src/ServerStatMan.cc
  1556. * test/ServerStatManTest.cc
  1557. * test/ServerStatTest.cc
  1558. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1559. Use time_t instead of int32_t. Use int64_t where milli second is
  1560. expected.
  1561. * src/TimeA2.cc
  1562. * src/TimeA2.h
  1563. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1564. Implemented ServerStatMan::save(...) function and its test case.
  1565. * src/ServerStat.cc
  1566. * src/ServerStat.h
  1567. * src/ServerStatMan.cc
  1568. * src/ServerStatMan.h
  1569. * test/ServerStatManTest.cc
  1570. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1571. Now aria2 uses name attribute in Metalink as local filename in
  1572. BitTorrent downloads. BUG#2033999
  1573. * src/BtContext.h
  1574. * src/BtDependency.cc
  1575. * src/DefaultBtContext.cc
  1576. * src/DefaultBtContext.h
  1577. * src/SingleFileDownloadContext.cc
  1578. * src/SingleFileDownloadContext.h
  1579. * test/BtDependencyTest.cc
  1580. * test/DefaultBtContextTest.cc
  1581. * test/MockBtContext.h
  1582. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1583. Added AC_C_BIGENDIAN
  1584. * src/configure.ac
  1585. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1586. Limited numCommand less than or equal to the number of piece.
  1587. * src/RequestGroup.cc
  1588. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1589. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  1590. directive.
  1591. * test/DefaultPieceStorageTest.cc
  1592. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1593. Fixed memory leak in test code
  1594. * test/AnnounceListTest.cc
  1595. * test/DefaultPeerListProcessorTest.cc
  1596. * test/DefaultPeerStorageTest.cc
  1597. * test/MetaFileUtilTest.cc
  1598. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1599. Fixed wrong argument passing to BitfieldMan::isBitSet()
  1600. * src/DefaultPieceStorage.cc
  1601. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1602. Initialized _directIOAllowed
  1603. * src/MultiDiskAdaptor.cc
  1604. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1605. Fixed memory leak
  1606. * src/GZipDecoder.cc
  1607. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1608. Fixed memory leak
  1609. * src/MetalinkParserStateMachine.cc
  1610. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1611. Fixed memory leak
  1612. * src/Dictionary.cc
  1613. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1614. Fixed memory leak
  1615. * src/IteratableChunkChecksumValidator.h
  1616. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1617. Fixed unmatched malloc/free.
  1618. * src/IteratableChunkChecksumValidator.cc
  1619. * src/IteratableChecksumValidator.cc
  1620. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1621. Removed max chunk size check. This change fixes BUG#2040169
  1622. * src/ChunkedDecoder.cc
  1623. * src/ChunkedDecoder.h
  1624. * test/ChunkedDecoderTest.cc
  1625. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1626. Implemented download speed based URI selection algorithm.
  1627. Introduced new option --uri-selector.
  1628. If --uri-selector=feedback is given, aria2 uses download speed observed
  1629. in the previous downloads and chooses fastest server in the URI list.
  1630. Currently at most 10 URIs are considered to introduce randomeness for
  1631. finding better servers. The speed is average download speed in the
  1632. downloads.
  1633. On the other hand, if --uri-selector=inorder is given, which is default,
  1634. URI is tried in order in URI list.
  1635. The usage text for the new option has not been written yet.
  1636. * src/AbstractCommand.cc
  1637. * src/DownloadCommand.cc
  1638. * src/DownloadEngine.cc
  1639. * src/DownloadEngineFactory.cc
  1640. * src/InOrderURISelector.cc
  1641. * src/InOrderURISelector.h
  1642. * src/OptionHandlerFactory.cc
  1643. * src/PeerStat.h
  1644. * src/RequestGroup.cc
  1645. * src/RequestGroup.h
  1646. * src/RequestGroupMan.cc
  1647. * src/RequestGroupMan.h
  1648. * src/SegmentMan.cc
  1649. * src/SegmentMan.h
  1650. * src/ServerStat.cc
  1651. * src/ServerStat.h
  1652. * src/ServerStatMan.cc
  1653. * src/ServerStatMan.h
  1654. * src/ServerStatURISelector.cc
  1655. * src/ServerStatURISelector.h
  1656. * src/URISelector.h
  1657. * src/option_processing.cc
  1658. * src/prefs.cc
  1659. * src/prefs.h
  1660. * test/InOrderURISelectorTest.cc
  1661. * test/RequestGroupManTest.cc
  1662. * test/ServerStatManTest.cc
  1663. * test/ServerStatURISelectorTest.cc
  1664. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1665. * Release 0.15.1+2
  1666. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1667. Bump up version number to 0.15.1+2
  1668. * configure.ac
  1669. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1670. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  1671. * m4/aria2_arg.m4
  1672. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1673. * Release 0.15.1+1
  1674. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1675. Bump up version number to 0.15.1+1
  1676. * configure.ac
  1677. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1678. Fixed the bug that causes segmentaion fault when resuming download
  1679. using metalink without size tag. Reproducible only using HTTP URI.
  1680. * src/HttpResponseCommand.cc
  1681. * src/FtpNegotiationCommand.cc
  1682. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1683. * Release 0.15.1
  1684. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1685. Updated Bulgarian and French translations, thanks to all translators.
  1686. * po/bg.po
  1687. * po/fr.po
  1688. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1689. Bump up version number to 0.15.1
  1690. * configure.ac
  1691. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1692. Avoid repeated call of gettimeofday() when calculating speed.
  1693. * src/SpeedCalc.cc
  1694. * src/SpeedCalc.h
  1695. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1696. Removed writable check when socket's send buffer is full in BitTorrent
  1697. downloads to lower CPU usage.
  1698. * src/PeerInteractionCommand.cc
  1699. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1700. Fixed broken gzip inflation.
  1701. Turn off segmented downloading if gzip content is smaller than or equal
  1702. to 1MiB and inflate the data on the fly, because HTTP response header
  1703. doesn't contain the length of inflated file we can't determin where
  1704. the chunk of data should be written.
  1705. On the other hand, if gzip content is larger than 1MB, then turn off
  1706. on the fly inflation, because some servers returns "content-type: gzip"
  1707. for *.tgz, *.gz files.
  1708. * src/DownloadCommand.cc
  1709. * src/HttpResponseCommand.cc
  1710. * src/HttpResponseCommand.h
  1711. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1712. Applied tizianomueller's patch to fix compile error.
  1713. * test/BitfieldManTest.cc
  1714. * test/BtRequestMessageTest.cc
  1715. * test/DefaultBtContextTest.cc
  1716. * test/DefaultDiskWriterTest.cc
  1717. * test/DefaultPieceStorageTest.cc
  1718. * test/HttpHeaderProcessorTest.cc
  1719. * test/HttpResponseTest.cc
  1720. * test/Metalink2RequestGroupTest.cc
  1721. * test/MetalinkParserControllerTest.cc
  1722. * test/MetalinkProcessorTest.cc
  1723. * test/PeerSessionResourceTest.cc
  1724. * test/UtilTest.cc
  1725. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1726. * Release 0.15.0
  1727. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1728. Reordered src files in POTFILES.in so that usage text appears first.
  1729. * po/POTFILES.in
  1730. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1731. Bump up version number to 0.15.0
  1732. * configure.ac
  1733. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1734. Added Bulgarian translation.
  1735. Updated Catalan, Spanish, French and Japanese translations.
  1736. Thanks to all translators.
  1737. * po/LINGUAS
  1738. * po/bg.po
  1739. * po/ca.po
  1740. * po/es.po
  1741. * po/fr.po
  1742. * po/ja.po
  1743. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1744. Updated feature list. Added libz for dependency section.
  1745. Added a description about unit testing using CppUnit.
  1746. * README
  1747. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1748. Added a test for libz. Quoted where it is necessary.
  1749. * build_test.sh
  1750. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1751. Added GZip to `Enabled Features' list.
  1752. * src/FeatureConfig.cc
  1753. * src/FeatureConfig.h
  1754. * test/FeatureConfigTest.cc
  1755. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1756. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1757. the transfer has not yet started.
  1758. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1759. * src/SegmentMan.cc
  1760. * src/SegmentMan.h
  1761. * test/SegmentManTest.cc
  1762. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1763. Cache last calculated average download/upload speed.
  1764. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1765. cached value.
  1766. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1767. * src/PeerStat.h
  1768. * src/SpeedCalc.cc
  1769. * src/SpeedCalc.h
  1770. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1771. Call parseUrl directly.
  1772. * src/Request.cc (resetUrl)
  1773. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1774. Supported absolute/relative path in Location header field.
  1775. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1776. * src/HttpHeader.cc
  1777. * src/HttpHeader.h
  1778. * src/HttpResponse.cc
  1779. * src/HttpSkipResponseCommand.cc
  1780. * src/Request.cc
  1781. * test/HttpHeaderTest.cc
  1782. * test/HttpResponseTest.cc
  1783. * test/RequestTest.cc
  1784. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1785. Changed help text for --load-cookie option.
  1786. * doc/aria2c.1.txt
  1787. * src/usage_text.h
  1788. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1789. Regenerated test/Makefile.in to remove stale ChangeLog.
  1790. * test/Makefile.in
  1791. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1792. Updated po files.
  1793. * po/aria2c.pot
  1794. * po/*.po
  1795. * po/*.gmo
  1796. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1797. Bump up version number to 0.15.0b
  1798. * configure.ac
  1799. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1800. Externalize messages.
  1801. * src/RequestGroupMan.cc
  1802. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1803. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1804. Use File::exists() instead of File::isFile() to allow non-regular file
  1805. such as block special files.
  1806. * src/AbstractDiskWriter.cc
  1807. * src/MultiDiskWriter.cc
  1808. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1809. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1810. * src/gai_strerror.h
  1811. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1812. Fixed compile error. Thanks gknauf for the patch.
  1813. * src/asctime_r.c
  1814. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1815. Included asctime_r.h from a2time.h.
  1816. * src/a2time.h
  1817. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1818. Added a message "aria2 doesn't verify signature" to log message when
  1819. signature file is saved.
  1820. * src/RequestGroupMan.cc
  1821. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1822. Added the ability to save signature when download is completed if
  1823. signature is available. The filename of signature file is the path to
  1824. download file followed by ".sig". If it already exists, then signature
  1825. will not be saved.
  1826. * src/RequestGroupMan.cc
  1827. * src/Signature.cc
  1828. * test/SignatureTest.cc
  1829. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1830. Updated the descriptions for --bt-seed-unverified.
  1831. * doc/aria2c.1
  1832. * doc/aria2c.1.html
  1833. * doc/aria2c.1.txt
  1834. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1835. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1836. that this is not going to verify files using piece hashes.
  1837. * src/HelpItemFactory.cc
  1838. * src/OptionHandlerFactory.cc
  1839. * src/RequestGroup.cc
  1840. * src/option_processing.cc
  1841. * src/prefs.cc
  1842. * src/prefs.h
  1843. * src/usage_text.h
  1844. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1845. Added the ability to retrieve signature from Metalink file.
  1846. A retrieved signature is stored in Signature class and it is held by
  1847. DownloadContext class. Note that aria2 doesn't verify signature.
  1848. * src/DownloadContext.cc
  1849. * src/DownloadContext.h
  1850. * src/Makefile.am
  1851. * src/Makefile.in
  1852. * src/Metalink2RequestGroup.cc
  1853. * src/MetalinkEntry.cc
  1854. * src/MetalinkEntry.h
  1855. * src/MetalinkParserController.cc
  1856. * src/MetalinkParserController.h
  1857. * src/MetalinkParserStateMachine.cc
  1858. * src/MetalinkParserStateMachine.h
  1859. * src/Signature.cc
  1860. * src/Signature.h
  1861. * src/SignatureMetalinkParserState.cc
  1862. * src/SignatureMetalinkParserState.h
  1863. * src/VerificationMetalinkParserState.cc
  1864. * src/VerificationMetalinkParserState.h
  1865. * test/Metalink2RequestGroupTest.cc
  1866. * test/MetalinkParserControllerTest.cc
  1867. * test/MetalinkProcessorTest.cc
  1868. * test/test.xml
  1869. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1870. Close DiskAdaptor after renaming file.
  1871. * src/RequestGroup.cc
  1872. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1873. Corrected indentation
  1874. * src/DefaultBtProgressInfoFile.cc
  1875. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1876. Moved the calls of std::ios::exceptions() inside of try-catch block
  1877. because if an error occurred in constructor of std::fstream, then
  1878. exception is thrown immediately when std::ios::exceptions() is called
  1879. which results unhandled exception and aria2c aborts.
  1880. * src/DefaultBtProgressInfoFile.cc
  1881. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Added the test for the previous change in DefaultBtContext.cc
  1883. * test/DefaultBtContextTest.cc
  1884. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1885. Fixed the bug that causes infinite loop when the number of pieces are
  1886. fewer than allowed fast set size which is 10 by default.
  1887. * src/DefaultBtContext.cc
  1888. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Updated the descriptions for -j, -s. Added --bt-seed.
  1890. * doc/aria2c.1
  1891. * doc/aria2c.1.html
  1892. * doc/aria2c.1.txt
  1893. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1894. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1895. aria2 seeds previously downloaded files without validating piece hashs.
  1896. * src/HelpItemFactory.cc
  1897. * src/OptionHandlerFactory.cc
  1898. * src/RequestGroup.cc
  1899. * src/option_processing.cc
  1900. * src/prefs.cc
  1901. * src/prefs.h
  1902. * src/usage_text.h
  1903. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1904. Updated DESCRIPTION of man page.
  1905. * doc/aria2c.1
  1906. * doc/aria2c.1.html
  1907. * doc/aria2c.1.txt
  1908. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1910. Don't define `struct addrinfo' when __sun is defined.
  1911. * src/getaddrinfo.h
  1912. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1913. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1914. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1915. second argument is of type `struct _stati64'. Otherwise it is defined as
  1916. `struct stat'.
  1917. * src/AbstractDiskWriter.cc
  1918. * src/File.cc
  1919. * src/File.h
  1920. * src/a2io.h
  1921. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Fixed the compile error in hurd-i386
  1923. See the original bug report:
  1924. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1925. * src/a2io.h
  1926. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1927. Code cleanup.
  1928. * src/PeerAbstractCommand.cc
  1929. * src/PeerAbstractCommand.h
  1930. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1931. Removed TransferEncoding.
  1932. * src/DownloadCommand.cc
  1933. * src/DownloadCommand.h
  1934. * src/HttpResponseCommand.cc
  1935. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1936. Updated po files.
  1937. * po/aria2c.pot
  1938. * po/*.po
  1939. * po/*.gmo
  1940. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1941. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1942. * src/A2STR.cc
  1943. * src/A2STR.h
  1944. * src/ChunkedDecoder.cc
  1945. * src/ChunkedDecoder.h
  1946. * src/ChunkedEncoding.cc: Removed
  1947. * src/ChunkedEncoding.h: Removed
  1948. * src/DownloadCommand.cc
  1949. * src/DownloadCommand.h
  1950. * src/HttpDownloadCommand.cc
  1951. * src/HttpResponse.cc
  1952. * src/HttpResponse.h
  1953. * src/HttpResponseCommand.cc
  1954. * src/HttpSkipResponseCommand.cc
  1955. * src/HttpSkipResponseCommand.h
  1956. * src/Makefile.am
  1957. * src/TransferEncoding.h: Removed
  1958. * test/ChunkedDecoderTest.cc
  1959. * test/ChunkedEncodingTest.cc: Removed
  1960. * test/HttpResponseTest.cc
  1961. * test/Makefile.am
  1962. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1963. Use append instead of insert.
  1964. * src/GZipDecoder.cc
  1965. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1966. Updated doc
  1967. * src/Decoder.h
  1968. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1969. Updated usage text for -s option.
  1970. * src/usage_text.h
  1971. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1972. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1973. * src/Request.cc
  1974. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1975. Cleaned up configure.ac.
  1976. * configure.ac
  1977. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1978. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1979. AC_ARG_ENABLE.
  1980. * configure.ac
  1981. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1982. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1983. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1984. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1985. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1986. fly and writes decoded data to a local disk.
  1987. * README
  1988. * README.html
  1989. * configure.ac
  1990. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1991. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1992. * m4/libz.m4
  1993. * src/Decoder.h
  1994. * src/DownloadCommand.cc
  1995. * src/DownloadCommand.h
  1996. * src/Exception.h
  1997. * src/GZipDecoder.cc
  1998. * src/GZipDecoder.h
  1999. * src/HttpHeader.cc
  2000. * src/HttpHeader.h
  2001. * src/HttpRequest.cc
  2002. * src/HttpRequest.h
  2003. * src/HttpResponse.cc
  2004. * src/HttpResponse.h
  2005. * src/HttpResponseCommand.cc
  2006. * src/Makefile.am
  2007. * test/GZipDecoderTest.cc
  2008. * test/HttpRequestTest.cc
  2009. * test/HttpResponseTest.cc
  2010. * test/Makefile.am
  2011. * test/Makefile.in
  2012. * test/gzip_decode_test.gz
  2013. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2014. Clarified usage of -j option.
  2015. * src/usage_text.h
  2016. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2017. Disabled getting size from the response of RETR.
  2018. If SIZE command failed, then disable resuming and segmented downloading.
  2019. * src/FtpConnection.cc
  2020. * src/FtpConnection.h
  2021. * src/FtpNegotiationCommand.cc
  2022. * src/FtpNegotiationCommand.h
  2023. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2024. Use digits to find first byte of file size, which makes the intention
  2025. of the code clearer.
  2026. * src/FtpConnection.cc
  2027. Don't call validateTotalLength() when size is 0.
  2028. * src/FtpNegotiationCommand.cc
  2029. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2030. Updated po files.
  2031. * po/aria2c.pot
  2032. * po/*.gmo
  2033. * po/*.po
  2034. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2035. Clarified usage text for --split option.
  2036. * src/usage_text.h
  2037. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2038. Bump up version number to 0.15.0dev. "dev" means "development"
  2039. version, which means I started the development of the next release!
  2040. * src/configure.ac
  2041. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2042. If FTP server returns negative response with REST raw command and
  2043. requested range is not 0, throw exception. If requested range is 0,
  2044. continue download a file from 0 byte.
  2045. * src/FtpNegotiationCommand.cc
  2046. * src/FtpNegotiationCommand.h
  2047. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2048. Supported FTP server which don't recognize SIZE raw command.
  2049. If SIZE raw command is failed, aria2 will try to get file size
  2050. from the response of RETR raw command. If both attempts are failed,
  2051. then resuming and segmented downloading are disabled.
  2052. * src/FtpConnection.cc
  2053. * src/FtpConnection.h
  2054. * src/FtpNegotiationCommand.cc
  2055. * src/FtpNegotiationCommand.h
  2056. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2057. * Release 0.14.0+1
  2058. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2059. Bump up version number to 0.14.0+1
  2060. * src/configure.ac
  2061. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2062. Fixed the code that refers static member variable from non-static
  2063. context.
  2064. * src/DefaultPeerStorage.cc
  2065. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2066. * Release 0.14.0
  2067. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2068. Added build test script
  2069. * build_test.sh
  2070. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2071. Updated ja.po
  2072. * src/ja.po
  2073. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2074. Bump up version number to 0.14.0
  2075. * src/configure.ac
  2076. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Updated ja.po and fr.po. Great thanks for french translators and
  2078. Sebastien WILLEMIJNS.
  2079. * po/fr.po
  2080. * po/ja.po
  2081. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2082. Added configure option to enable/disable epoll support.
  2083. * configure.ac
  2084. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2085. Updated man page.
  2086. * doc/aria2c.1.txt
  2087. * doc/aria2c.1
  2088. * doc/aria2c.1.html
  2089. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2090. Added missing default value '5' to the usage of --split option.
  2091. * src/HelpItemFactory.cc
  2092. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2093. Filled up pieces based on the number of missing blocks, rather than
  2094. simplay the number of piece * block length.
  2095. * src/BtRequestFactory.h
  2096. * src/DefaultBtInteractive.cc
  2097. * src/DefaultBtInteractive.h
  2098. * src/DefaultBtRequestFactory.cc
  2099. * src/DefaultBtRequestFactory.h
  2100. * src/Piece.cc
  2101. * src/Piece.h
  2102. * test/BitfieldManTest.cc
  2103. * test/DefaultBtRequestFactoryTest.cc
  2104. * test/MockBtRequestFactory.h
  2105. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2106. Made _epEvents a member variable.
  2107. * src/DownloadEngine.cc
  2108. * src/DownloadEngine.h
  2109. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2110. Cancel download if http redirect is bounded more than 20 times.
  2111. * src/AbstractCommand.cc
  2112. * src/HttpSkipResponseCommand.cc
  2113. * src/Request.cc
  2114. * src/Request.h
  2115. * test/RequestTest.cc
  2116. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2117. Fixed unhandled exception(removed keyword `new').
  2118. * src/SocketCore.cc (initEPOLL)
  2119. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2120. Removed visit(const MetaEntry*)
  2121. * src/MetaEntryVisitor.h:
  2122. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  2123. and made them virtual.
  2124. * src/BencodeVisitor.h
  2125. * src/BencodeVisitor.cc
  2126. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2127. Updated po files.
  2128. * po/aria2c.pot
  2129. * po/*.po
  2130. * po/*.gmo
  2131. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2132. Moved the call setWriteCheckSocket inside the previous clause to reduce
  2133. the number of socket to watch out.
  2134. * src/PeerInteractionCommand.cc
  2135. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2136. When there is not enough space in disk when writing a chunk of data,
  2137. aria2 now prints the message to the console to warn user and aborts
  2138. its download. Not all downloads are canceled because some downloads
  2139. may use another disk or partition. BUG#1640332
  2140. * src/AbstractDiskWriter.cc
  2141. * src/PeerAbstractCommand.cc
  2142. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  2143. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  2144. setHaltRequested(true) to cancel download.
  2145. * src/PeerInteractionCommand.h
  2146. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2147. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  2148. socket from int to sock_t as sockets are unsigned in Windows.
  2149. For AsyncNameResolver, DownloadEngine, I did additional modification
  2150. for the portion of the code changed according to epoll support.
  2151. I defined sock_t in a2netcompat.h to use sock_t without including
  2152. SocketCore.h.
  2153. * src/AsyncNameResolver.cc
  2154. * src/AsyncNameResolver.h
  2155. * src/DownloadEngine.cc
  2156. * src/DownloadEngine.h
  2157. * src/SocketCore.cc
  2158. * src/SocketCore.h
  2159. * src/a2netcompat.h
  2160. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2161. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  2162. changes in the patch were applied.
  2163. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  2164. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  2165. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  2166. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2167. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  2168. a2io.h and common.h were modified.
  2169. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  2170. MinGW.
  2171. * src/common.h: Changed off_t to 64 bit in MinGW.
  2172. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2173. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2174. only a2netcompat.h is modified.
  2175. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  2176. directives.
  2177. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2178. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2179. only gai_strerror.h is modified.
  2180. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  2181. winsock errors in MinGW.
  2182. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2183. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  2184. follow sources are applied.
  2185. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  2186. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  2187. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  2188. I included locale.h from Platform.cc.
  2189. * src/main.cc: Moved common setup/teardown code to Platform class.
  2190. * test/AllTest.cc: Use Platform class.
  2191. Set locale to C in AllTest.cc to prevent the messages to be localized.
  2192. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2193. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  2194. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  2195. * test/HttpRequestTest.cc: Casted to off_t where it should.
  2196. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2197. Applied Ross's aria2-0.13.2+1-mingw.patch and
  2198. aria2-0.13.2+1-mingw-2.patch.
  2199. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  2200. systems which don't have termious.h. I moved the directive inside of
  2201. if(isTTY) { ... clause so that line is wiped out without termious.h.
  2202. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  2203. anyway.
  2204. * src/asctime_r.h
  2205. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  2206. I added 2nd argument to the prototype declaration.
  2207. * src/StringFormat.cc: Get rid of vasprintf.
  2208. * src/getaddrinfo.h: Fixed constants.
  2209. * configure.ac: Added the check for asctime_r function.
  2210. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  2211. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2212. Added writable test for Socket when the sending message is in progress.
  2213. Usually the sending message is piece message. Without wriable check,
  2214. upload latency is dropped to more than 1sec.
  2215. * src/PeerInteractionCommand.cc
  2216. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2217. Create only requested files and files which shares a piece with
  2218. requested file in multi-torrent downloads. Directory structures are
  2219. also created in the same rule.
  2220. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  2221. DiskWriterEntry as in the previous implementation.
  2222. * src/MultiDiskWriter.cc
  2223. * src/MultiFileAllocationIterator.cc
  2224. * src/MultiFileAllocationIterator.h
  2225. * test/MultiFileAllocationIteratorTest.cc
  2226. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2227. Commented out -lprofiler
  2228. * src/Makefile.am
  2229. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2230. Bump up version number to 0.14.0b.
  2231. * src/configure.ac
  2232. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2233. Actively establish connection to peers in seeding, when peer cache
  2234. is not full and max upload speed limit is not reached.
  2235. * src/ActivePeerConnectionCommand.cc
  2236. * src/ActivePeerConnectionCommand.h
  2237. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2238. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  2239. to make room more fleshy, recently found peers.
  2240. Peer::_badConditionStartTime is not used anymore. Consider to remove
  2241. it.
  2242. * src/DefaultPeerStorage.cc
  2243. * test/DefaultPeerStorageTest.cc
  2244. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2245. Returns cached data only when the previous receiveHandshake() is called
  2246. with peek = true.
  2247. * src/PeerConnection.cc (receiveHandshake)
  2248. * src/PeerConnection.h (receiveHandshake)
  2249. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2250. Changed default value of -s option from 1 to 5.
  2251. Also max value of -s option is changed from 5 to 16.
  2252. * src/HelpItemFactory.cc
  2253. * src/OptionHandlerFactory.cc
  2254. * src/option_processing.cc
  2255. * src/usage_text.h
  2256. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2257. Changed -s options behavior. Now it means the number of connections
  2258. made simultaneously in each http/ftp download.
  2259. If 1 URL is specified, the behavior is the same with old implementation.
  2260. If -s N is given and more than N URLs are specified, first N URLs are
  2261. used and remaining URLs are used for backup. If less than N URLs are
  2262. specified, some of URLs are used more than once so that totally N
  2263. connections are made simultaneously.
  2264. * src/main.cc
  2265. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2266. Included missing iosfwd or ostream header.
  2267. * src/RequestGroupMan.cc
  2268. * src/TaggedItem.cc
  2269. * src/TaggedItem.h
  2270. * src/Util.cc
  2271. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2272. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  2273. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  2274. * src/HttpConnection.cc: Included missing sstream.
  2275. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2276. Added --bt-max-open-files option.
  2277. * src/DefaultPieceStorage.cc
  2278. * src/HelpItemFactory.cc
  2279. * src/MultiDiskAdaptor.cc
  2280. * src/MultiDiskAdaptor.h
  2281. * src/OptionHandlerFactory.cc
  2282. * src/option_processing.cc
  2283. * src/prefs.cc
  2284. * src/prefs.h
  2285. * src/usage_text.h
  2286. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2287. Fixed the bug that aria2 aborts when a path to a directory is given
  2288. in command-line.
  2289. * src/ProtocolDetector.cc
  2290. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2291. Limited the number files opened in each BitTorrent download. The default
  2292. value is 100. The option to change this value will be added.
  2293. * src/MultiDiskAdaptor.cc
  2294. * src/MultiDiskAdaptor.h
  2295. * src/MultiFileAllocationIterator.cc
  2296. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2297. Fixed the bug that HTTP downloads don't start with old libraries.
  2298. * src/HttpHeaderProcessor.cc
  2299. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2300. Use empty() instead of size() > 0.
  2301. * src/HttpConnection.cc
  2302. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2303. Drop connection if the incoming peer ID is the same with localhost's
  2304. one. The previous implementation drops connection when incoming peer's
  2305. IP address is the same with localhost's one.
  2306. * src/PeerListenCommand.cc
  2307. * src/DefaultBtInteractive.cc
  2308. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2309. Returns cached data without checking whether socket is readable
  2310. if the cache is available.
  2311. * src/PeerConnection.cc (receiveHandshake)
  2312. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2313. Included stdint.h
  2314. * src/common.h
  2315. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2316. Removed duplicate HAVE_GETTIMEOFDAY
  2317. * src/Makefile.am
  2318. * src/Makefile.in
  2319. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2320. Use interval as a minInterval when minInterval is not supplied.
  2321. * src/DefaultBtAnnounce.cc
  2322. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2323. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  2324. attempt is failed, then 2nd attempt get kicked out more quickly.
  2325. And it is now static const member of DefaultBtAnnounce.
  2326. * src/DefaultBtAnnounce.h
  2327. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  2329. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  2330. * src/ActivePeerConnectionCommand.cc
  2331. * src/BtConstants.h
  2332. * src/BtRuntime.h
  2333. * src/DHTGetPeersCommand.cc
  2334. * src/DefaultBtAnnounce.cc
  2335. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  2336. BtRuntime::MAX_PEERS.
  2337. * src/DefaultPeerStorage.h
  2338. * src/InitiatorMSEHandshakeCommand.cc
  2339. * src/PeerInitiateConnectionCommand.cc
  2340. * src/PeerInteractionCommand.cc
  2341. * src/PeerReceiveHandshakeCommand.cc
  2342. * src/TrackerWatcherCommand.cc
  2343. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2344. Always Connect to _numNewConnection
  2345. * src/ActivePeerConnectionCommand.cc
  2346. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2347. Made `begin' unsigned int.
  2348. * src/GrowSegment.h
  2349. * src/Piece.cc
  2350. * src/Piece.h
  2351. * src/PiecedSegment.cc
  2352. * src/PiecedSegment.h
  2353. * src/Segment.h
  2354. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2355. Calculate piece hash when data is arrived if the data is arrived in
  2356. order. This removes additional read operation for hash calculation.
  2357. If the data is arrived in out of order, the hash is calucated when the
  2358. piece is completed. This is the same behavior as the old implementation.
  2359. * src/BtPieceMessage.cc
  2360. * src/DefaultBtProgressInfoFile.cc
  2361. * src/DefaultPieceStorage.cc
  2362. * src/DownloadCommand.cc
  2363. * src/DownloadCommand.h
  2364. * src/DownloadEngine.cc
  2365. * src/GrowSegment.cc
  2366. * src/GrowSegment.h
  2367. * src/Piece.cc
  2368. * src/Piece.h
  2369. * src/PiecedSegment.cc
  2370. * src/PiecedSegment.h
  2371. * src/Segment.h
  2372. * test/PieceTest.cc
  2373. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2374. Try to keep the ordering of outgoing piece message.
  2375. * src/DefaultBtMessageDispatcher.cc
  2376. (DefaultBtMessageDispatcher::sendMessages)
  2377. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2378. Fixed busy loop when error/hup epoll events occur.
  2379. * src/AbstractCommand.cc
  2380. * src/PeerAbstractCommand.cc
  2381. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2382. Added --bt-request-peer-speed-limit option, which was a constant
  2383. SLOW_SPEED_THRESHOLD.
  2384. * src/ActivePeerConnectionCommand.cc
  2385. * src/ActivePeerConnectionCommand.h
  2386. * src/BtConstants.h
  2387. * src/HelpItemFactory.cc
  2388. * src/OptionHandlerFactory.cc
  2389. * src/PeerReceiveHandshakeCommand.cc
  2390. * src/option_processing.cc
  2391. * src/prefs.cc
  2392. * src/prefs.h
  2393. * src/usage_text.h
  2394. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2395. Removed repeated call of getTopDirPath(). Instead, call it once and
  2396. cache the result.
  2397. * src/MultiDiskAdaptor.cc
  2398. * src/MultiDiskAdaptor.h
  2399. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2400. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2401. Fixed compile error on debian etch.
  2402. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2403. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2404. it is undefined.
  2405. * src/Util.cc (ULLONG_MAX)
  2406. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Added epoll support. Use epoll if it is available. If not, use select.
  2408. When async dns is enabled in compile time, epoll support is enabled
  2409. only when aria2 is built with c-ares. This condition statement is
  2410. defined in a2io.h.
  2411. Currently aria2 supports both c-ares and ares, but ares is maintained
  2412. for quite a while and debian already has c-ares package, ares support
  2413. will be dropped in the future version.
  2414. * configure.ac
  2415. * src/AbstractCommand.cc
  2416. * src/AsyncNameResolver.cc
  2417. * src/AsyncNameResolver.h
  2418. * src/Command.cc
  2419. * src/Command.h
  2420. * src/DownloadEngine.cc
  2421. * src/DownloadEngine.h
  2422. * src/PeerAbstractCommand.cc
  2423. * src/SocketCore.cc
  2424. * src/SocketCore.h
  2425. * src/a2io.h
  2426. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2428. directive.
  2429. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2430. Do not do write operation to /dev/null file.
  2431. * src/LogFactory.cc
  2432. * src/SimpleLogger.cc
  2433. Replaced vasprintf with vsnprintf
  2434. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2435. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2436. * src/BtRequestMessage.cc
  2437. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2438. for segmentation fault caused by previous commit.
  2439. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2440. Reduced the usage of gettimeofday().
  2441. * src/DefaultBtMessageDispatcher.cc
  2442. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2443. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2444. * src/RequestSlot.cc
  2445. * src/RequestSlot.h
  2446. (RequestSlot::isTimeout)
  2447. Made RequestSlot have a reference to Piece object to avoid find
  2448. Piece repeatedly.
  2449. * src/DefaultBtMessageDispatcher.cc
  2450. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2451. * src/RequestSlot.cc
  2452. * src/RequestSlot.h
  2453. (RequestSlot::getPiece)
  2454. * test/DefaultBtMessageDispatcherTest.cc
  2455. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2456. * src/TimeA2.cc
  2457. * src/TimeA2.h
  2458. (Time::difference): New function.
  2459. (Time::elapsed): Done optimization.
  2460. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2461. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2462. directive.
  2463. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2464. * src/option_processing.cc: Added missing `defined' keyword to #if
  2465. directive.
  2466. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2467. Bump up version number to 0.13.2+1
  2468. * src/configure.ac
  2469. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2470. Refactored broken outstanding piece handling.
  2471. * src/DefaultPieceStorage.cc
  2472. * src/DefaultPieceStorage.h
  2473. * src/Piece.cc
  2474. * src/Piece.h
  2475. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2476. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2477. name collision of static variable and predefined macro.
  2478. * src/BtContext.cc
  2479. * src/BtContext.h
  2480. * src/CookieBoxFactory.cc
  2481. * src/CookieBoxFactory.h
  2482. * src/CookieParser.cc
  2483. * src/CookieParser.h
  2484. * src/DefaultBtContext.cc
  2485. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2486. * src/RequestGroup.cc
  2487. (RequestGroup::createInitialCommand): Use empty() instead of size().
  2488. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2489. * Release 0.13.2
  2490. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2491. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  2492. * po/fr.po
  2493. * po/ja.po
  2494. * po/aria2c.pot
  2495. * po/*.po
  2496. * po/*.gmo
  2497. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2498. Bump up version number to 0.13.2
  2499. * src/configure.ac
  2500. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2501. Refactord.
  2502. * src/RequestGroupMan.cc
  2503. (removeStoppedGroup)
  2504. (fillRequestGroupFromReserver)
  2505. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Fixed compile error on Ubuntu.
  2507. * src/BtPieceMessage.cc
  2508. * src/MessageDigestHelper.cc
  2509. * src/Util.cc
  2510. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2511. Fixed compile error when configured with --disable-bittorrent
  2512. * test/DownloadHandlerFactoryTest.cc
  2513. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2514. Done make update-po
  2515. * po/aria2c.pot
  2516. * po/*.po
  2517. * po/*.gmo
  2518. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2519. Bump up version number to 0.13.2rc.
  2520. * src/configure.ac
  2521. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2522. Made option name bold. Updated SYNOPSIS to make it more readable.
  2523. * doc/aria2c.1.txt
  2524. * doc/aria2c.1
  2525. * doc/aria2c.1.html
  2526. * src/version_usage.cc
  2527. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2528. Refactored. Use std::string instead of size and char*.
  2529. * Data.cc
  2530. * Data.h
  2531. * test/Data.cc
  2532. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2533. Added trimSelf(). Rewritten trim() to use trimSelf().
  2534. * Util.cc
  2535. * Util.h
  2536. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2537. * src/ChunkChecksum.h (getChecksum): Return const reference.
  2538. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. Fixed compile error when configured with --disable-metalink.
  2540. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  2541. * test/FeatureConfigTest.cc
  2542. * test/DownloadHandlerFactoryTest.cc
  2543. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2544. Fixed compile error when configured with --without-gnutls
  2545. --without-openssl
  2546. * src/main.cc
  2547. * test/DefaultBtProgressInfoFileTest.cc
  2548. * test/SegmentManTest.cc
  2549. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2550. Fixed compile error with OpenSSL.
  2551. * src/IteratableChunkChecksumValidator.cc
  2552. * src/LibsslDHKeyExchange.h
  2553. * src/MessageDigestHelper.cc
  2554. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2555. Revert the default value of --max-concurrent-downloads to 5.
  2556. Revert the default value of --metalink-servers to 5.
  2557. Man pages was also updated.
  2558. * src/option_processing.cc
  2559. * doc/aria2c.1.txt
  2560. * doc/aria2c.1.html
  2561. * doc/aria2c.1
  2562. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2563. Returns const reference:
  2564. DownloadContext::getPieceHash, DownloadContext::getName,
  2565. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  2566. BtContext::getInfoHashAsString,
  2567. * src/BtContext.h
  2568. * src/DefaultBtContext.cc
  2569. * src/DefaultBtContext.h
  2570. * src/DownloadContext.h
  2571. * src/SingleFileDownloadContext.h
  2572. * test/MockBtContext.h
  2573. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2574. * src/RequestGroup.h (getDir): Removed.
  2575. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2576. Returns const reference. The internal urlencode function was optimized
  2577. a little bit.
  2578. * src/Request.cc
  2579. * src/Request.h
  2580. * src/HttpRequest.cc
  2581. * src/HttpRequest.h
  2582. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2583. Defined option name and possible values as std::string to reduce
  2584. temporary string object creation in runtime.
  2585. * src/HelpItemFactory.cc
  2586. * src/LogFactory.cc
  2587. * src/Option.cc
  2588. * src/OptionHandlerFactory.cc
  2589. * src/option_processing.cc
  2590. * src/prefs.cc
  2591. * src/prefs.h
  2592. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2593. Return const reference.
  2594. * src/DownloadHandlerConstants.cc
  2595. * src/DownloadHandlerConstants.h
  2596. (getMetalinkExtensions)
  2597. (getMetalinkContentTypes)
  2598. (getBtExtensions)
  2599. (getBtContentTypes)
  2600. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2601. * src/HttpHeader.cc (get): Rewritten.
  2602. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2603. Make HttpHeader::getFirst(...) return const reference.
  2604. * src/HttpHeader.cc
  2605. * src/HttpHeader.h
  2606. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2607. Use Option::getAsBool(...) instead of Option::get(...) and compare
  2608. it with V_TRUE.
  2609. * src/DefaultPieceStorage.cc
  2610. * src/DownloadCommand.cc
  2611. * src/FtpNegotiationCommand.cc
  2612. * src/HttpRequest.cc
  2613. * src/InitiateConnectionCommand.cc
  2614. * src/RequestGroup.cc
  2615. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2616. Made Option::get(...) return const reference of std::string.
  2617. * src/Option.cc
  2618. * src/Option.h
  2619. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Replaced std:copy with insert.
  2621. * src/DefaultBtMessageDispatcher.cc
  2622. * src/DefaultPieceStorage.cc
  2623. * src/DownloadEngineFactory.cc
  2624. * src/RequestGroup.cc
  2625. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2626. Included SocketCore.h to fix compiler warning.
  2627. * src/InitiateConnectionCommand.cc
  2628. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2629. Put piece selection strategy algorithm to RarestPieceSelector class,
  2630. Added a switch to choose whether randomized selection so that unit
  2631. tests emit same results in, possibly, win32.
  2632. * src/DefaultPieceStorage.cc
  2633. * src/DefaultPieceStorage.h
  2634. * src/RarestPieceSelector.cc
  2635. * src/RarestPieceSelector.h
  2636. * test/DefaultPieceStorageTest.cc
  2637. * test/RarestPieceSelectorTest.cc
  2638. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2639. Don't pool connection if HTTP proxy is enabled.
  2640. * src/FtpFinishDownloadCommand.cc
  2641. * src/FtpNegotiationCommand.cc
  2642. * src/HttpSkipResponseCommand.cc
  2643. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  2645. * src/AbstractCommand.cc
  2646. * src/AbstractCommand.h
  2647. * src/ActivePeerConnectionCommand.cc
  2648. * src/FtpInitiateConnectionCommand.cc
  2649. * src/HttpInitiateConnectionCommand.cc
  2650. * src/InitiateConnectionCommandFactory.cc
  2651. * src/PeerAbstractCommand.cc
  2652. * src/PeerAbstractCommand.h
  2653. * src/PeerInitiateConnectionCommand.cc
  2654. * src/TrackerWatcherCommand.cc
  2655. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2656. Sort RequestSlot in ascending order and manipulate them using
  2657. lower_bound.
  2658. * src/DefaultBtMessageDispatcher.cc
  2659. * src/DefaultBtMessageDispatcher.h
  2660. (getMessageQueue): Added const qualifier.
  2661. (getRequestSlots): Added const qualifier.
  2662. (sendMessages): Use empty() instead of size().
  2663. (doCancelSendingPieceAction): Use HandleEvent object.
  2664. (doAbortOutstandingRequestAction): Rewritten.
  2665. (doChokedAction): Rewritten.
  2666. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  2667. (isOutstandingRequest): Rewritten.
  2668. (getOutstandingRequest): Rewritten.
  2669. (removeOutstandingRequest): Rewritten.
  2670. (addOutstandingRequest): Rewritten.
  2671. * src/RequestSlot.cc
  2672. * src/RequestSlot.h
  2673. (operator=): Rewritten.
  2674. (operator!=): New function.
  2675. (operator<): New function.
  2676. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. * src/DefaultBtRequestFactory.cc
  2678. (doChokedAction): Rewritten.
  2679. (removeCompletedPiece): Rewritten.
  2680. (removeTargetPiece): Rewritten.
  2681. (createRequestMessages): Added the debug log.
  2682. (createRequestMessagesOnEndGame: Added the debug log.
  2683. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2684. Added the debug log message.
  2685. * src/BtPieceMessage.cc (doReceivedAction)
  2686. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2687. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2688. used lower_bound to process them rather than linear search.
  2689. * src/DHTPeerAnnounceStorage.cc
  2690. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2691. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2692. peer has at least one completed piece.
  2693. * src/Peer.cc
  2694. * src/Peer.h
  2695. * src/PeerInteractionCommand.cc
  2696. * src/PeerSessionResource.cc
  2697. * src/PeerSessionResource.h
  2698. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. Removed unnecessary sorting
  2700. * src/DefaultPieceStorage (DefaultPieceStorage)
  2701. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2702. Rewritten the portion of the code that mangaes allowed fast indexes.
  2703. * src/PeerSessionResource.cc
  2704. * src/PeerSessionResource.h
  2705. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2706. Removed the invalid string including '\r' from ru.po and
  2707. did make update-po.
  2708. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Added --log-level and --summary-interval to man page.
  2710. * doc/aria2c.1.txt
  2711. * doc/aria2c.1.html
  2712. * doc/aria2c.1
  2713. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2714. Added --log-level option to specify log level. Log messages under
  2715. the specified level are not output. Default value is `debug'.
  2716. * src/HelpItemFactory.cc
  2717. * src/LogFactory.cc
  2718. * src/LogFactory.h
  2719. * src/Logger.h
  2720. * src/OptionHandlerFactory.cc
  2721. * src/SimpleLogger.cc
  2722. * src/SimpleLogger.h
  2723. * src/main.cc
  2724. * src/option_processing.cc
  2725. * src/prefs.h
  2726. * src/usage_text.h
  2727. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2728. Print download progress summary of all parallel downloads in specified
  2729. interval, default 60 secs. While aria2 could download several files
  2730. in parallel (see -j option), it displayed just first download progress,
  2731. and the other downloads are hidden from the users. This new feature
  2732. prints all downloads currently in-progress to the console so that you
  2733. can check the status of all downloads. The interval can be adjusted
  2734. by --summary-interval option.
  2735. The progress readout is now cut so that all fits in the one line of
  2736. console.
  2737. * src/ConsoleStatCalc.cc
  2738. * src/ConsoleStatCalc.h
  2739. * src/HelpItemFactory.cc
  2740. * src/OptionHandlerFactory.cc
  2741. * src/RequestGroupMan.cc
  2742. * src/RequestGroupMan.h
  2743. * src/main.cc
  2744. * src/option_processing.cc
  2745. * src/prefs.h
  2746. * src/usage_text.h
  2747. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2748. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2749. * src/DownloadEngine.cc (DownloadEngine)
  2750. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2751. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2752. defined.
  2753. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2754. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2755. Use erase+lower_bound+insert instead of sort.
  2756. * src/DefaultPieceStorage.cc (addPieceStats)
  2757. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2758. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2759. * src/A2STR.cc
  2760. * src/A2STR.h
  2761. * src/OptionParser.cc (parse)
  2762. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2763. Defined fake filename `[tracker.announce]' as static const std::string.
  2764. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2765. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Defined default filename `index.html' as static const std::string
  2767. * src/SingleFileDownloadContext.cc
  2768. * src/SingleFileDownloadContext.h
  2769. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2770. Defined "[MEMORY]" as static const std::string.
  2771. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2772. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Defined control file's version number as static const std::string.
  2774. * src/DefaultBtProgressInfoFile.cc
  2775. * src/DefaultBtProgressInfoFile.h
  2776. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2777. Use Request::METHOD_GET
  2778. * src/RequestGroup.cc (createNextCommandWithAdj)
  2779. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2780. Defined "OK", "ERR", "INPR" as static const std::string
  2781. * src/RequestGroupMan.cc (showDownloadResults)
  2782. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2783. Defined default client used in extended handshake as static const
  2784. std::string
  2785. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2786. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2787. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2788. * src/HttpConnection.cc (eraseConfidentialInfo)
  2789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2790. Defined default ftp user and password as static const std::string
  2791. * src/AuthConfigFactory.cc
  2792. * src/AuthConfigFactory.h
  2793. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2794. Defined strings used in netrc as static const std::string
  2795. * src/Netrc.cc
  2796. * src/Netrc.h
  2797. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2798. Defined HTTP status as static const std::string
  2799. * src/AbstractProxyResponseCommand.cc
  2800. * src/HttpHeader.cc
  2801. * src/HttpHeader.h
  2802. * src/HttpResponse.cc
  2803. * src/HttpResponseCommand.cc
  2804. * src/HttpSkipResponseCommand.cc
  2805. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2806. Defined "\r\n", "A", "I" as static const std::string
  2807. * src/A2STR.cc
  2808. * src/A2STR.h
  2809. * src/FtpConnection.cc
  2810. * src/FtpConnection.h
  2811. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2812. Added COLON_C(".") and used it in Request::parseUrl()
  2813. * src/A2STR.cc
  2814. * src/A2STR.h
  2815. * src/Request.cc (parseUrl)
  2816. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2817. Changed the type of padName from `const std::string&' to `const char*'.
  2818. * src/MSEHandshake.cc (verifyPadLength)
  2819. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2820. Defined "sha1" as static const std::string.
  2821. * src/MetalinkParserController.cc
  2822. * src/MetalinkParserController.h
  2823. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2824. Defined message digest algorithm name as static const std::string
  2825. * src/DHTTokenTracker.cc
  2826. * src/DHTUtil.cc
  2827. * src/DefaultBtContext.cc
  2828. * src/MSEHandshake.cc
  2829. * src/MessageDigestHelper.cc
  2830. * src/Peer.cc
  2831. * src/messageDigest.cc
  2832. * src/messageDigest.h
  2833. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2834. Made string literals used in SAX parser static const std::string.
  2835. * src/FileMetalinkParserState.cc
  2836. * src/FileMetalinkParserState.h
  2837. * src/FilesMetalinkParserState.cc
  2838. * src/FilesMetalinkParserState.h
  2839. * src/InitialMetalinkParserState.cc
  2840. * src/InitialMetalinkParserState.h
  2841. * src/MetalinkMetalinkParserState.cc
  2842. * src/MetalinkMetalinkParserState.h
  2843. * src/PiecesMetalinkParserState.cc
  2844. * src/PiecesMetalinkParserState.h
  2845. * src/ResourcesMetalinkParserState.cc
  2846. * src/ResourcesMetalinkParserState.h
  2847. * src/VerificationMetalinkParserState.cc
  2848. * src/VerificationMetalinkParserState.h
  2849. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2850. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2851. * src/A2STR.cc
  2852. * src/A2STR.h
  2853. * src/File.cc
  2854. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2855. Defined static const std::string IP("ip"), PORT("port") and use them
  2856. instead of string literals.
  2857. * src/DefaultPeerListProcessor.cc
  2858. * src/DefaultPeerListProcessor.h
  2859. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2860. Made string literals for torrent file processing static const
  2861. std::string.
  2862. * src/BtContext.cc
  2863. * src/BtContext.h
  2864. * src/DefaultBtContext.cc
  2865. * src/DefaultBtContext.h
  2866. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2867. Made string literal for tracker response static const std::string
  2868. * src/BtAnnounce.cc
  2869. * src/BtAnnounce.h
  2870. * src/DefaultBtAnnounce.cc
  2871. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Use DHTMessage::T instead of "t".
  2873. * src/DHTMessageTracker.cc (messageArrived)
  2874. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2875. Made keyName static const. Made trimmed charset static const
  2876. std::string.
  2877. * src/Util.cc (getContentDispositionFilename)
  2878. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2879. Made USER_AGENT const. Made "/" static const std::string.
  2880. * src/A2STR.cc
  2881. * src/A2STR.h
  2882. * src/HttpRequest.cc
  2883. * src/HttpRequest.h
  2884. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2885. Made string listeral to static const std::string:
  2886. "Content-Range", "Content-Length"
  2887. * src/HttpHeader.cc
  2888. * src/HttpHeader.h
  2889. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Made string listeral to static const std::string.
  2891. * src/HttpConnection.cc
  2892. * src/HttpHeader.cc
  2893. * src/HttpHeader.h
  2894. * src/HttpResponse.cc
  2895. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Made string listeral to static const std::string.
  2897. * src/A2STR.cc
  2898. * src/A2STR.h
  2899. * src/SimpleLogger.cc
  2900. * src/SimpleLogger.h
  2901. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2902. Made string literal to static const std::string.
  2903. Rewritten CookieParser::setField.
  2904. * src/A2STR.cc
  2905. * src/A2STR.h
  2906. * src/CookieBoxFactory.cc
  2907. * src/CookieBoxFactory.h
  2908. * src/CookieParser.cc
  2909. * src/CookieParser.h
  2910. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2911. Made string literal to static const std::string
  2912. * src/DHTAbstractMessage.cc
  2913. * src/DHTAnnouncePeerMessage.cc
  2914. * src/DHTAnnouncePeerMessage.h
  2915. * src/DHTAnnouncePeerReplyMessage.cc
  2916. * src/DHTAnnouncePeerReplyMessage.h
  2917. * src/DHTFindNodeMessage.cc
  2918. * src/DHTFindNodeMessage.h
  2919. * src/DHTFindNodeReplyMessage.cc
  2920. * src/DHTFindNodeReplyMessage.h
  2921. * src/DHTGetPeersMessage.cc
  2922. * src/DHTGetPeersMessage.h
  2923. * src/DHTGetPeersReplyMessage.cc
  2924. * src/DHTGetPeersReplyMessage.h
  2925. * src/DHTMessage.cc
  2926. * src/DHTMessage.h
  2927. * src/DHTMessageFactoryImpl.cc
  2928. * src/DHTMessageReceiver.cc
  2929. * src/DHTPingMessage.cc
  2930. * src/DHTPingMessage.h
  2931. * src/DHTPingReplyMessage.cc
  2932. * src/DHTPingReplyMessage.h
  2933. * src/DHTQueryMessage.cc
  2934. * src/DHTQueryMessage.h
  2935. * src/DHTResponseMessage.cc
  2936. * src/DHTResponseMessage.h
  2937. * src/DHTUnknownMessage.cc
  2938. * src/DHTUnknownMessage.h
  2939. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Made string literal to static const std::string
  2941. * src/BtChokeMessage.cc (toString)
  2942. * src/BtHaveAllMessage.cc (toString)
  2943. * src/BtHaveNoneMessage.cc (toString)
  2944. * src/BtInterestedMessage.cc (toString)
  2945. * src/BtNotInterestedMessage.cc (toString)
  2946. * src/BtUnchokeMessage.cc (toString)
  2947. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2948. Replaced "" with static const variable A2STR::NIL.
  2949. Replaced string comparison against "" with std::string::empty().
  2950. Added PROTO_* to Request class and use them as a protocol string
  2951. constant.
  2952. Made "started", "stopped", "completed" static const variable in
  2953. AnnounceList class.
  2954. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2955. Updated translations. Great thanks to translators.
  2956. * po/ca.po
  2957. * po/de.po
  2958. * po/fr.po
  2959. * po/it.po
  2960. * po/ja.po
  2961. * po/ru.po
  2962. * po/zh_CN.po
  2963. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2964. Updated man page; categorized options and fixed typo.
  2965. * doc/aria2c.1.txt
  2966. * doc/aria2c.1.html
  2967. * doc/aria2c.1
  2968. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2969. Removed const ref
  2970. * src/MetalinkEntry.cc (AddProtocolPreference)
  2971. * src/RequestGroup.cc (FindServerHostByHostname)
  2972. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2973. Rewritten Accept-Features handling.
  2974. * src/HttpRequestCommand.cc (createHttpRequest)
  2975. * src/a2functional.h
  2976. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. Changed method signature:
  2978. DHTAbstractNodeLookupTask::toEntries
  2979. * src/DHTAbstractNodeLookupTask.cc
  2980. * src/DHTAbstractNodeLookupTask.h
  2981. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2982. Changed method signature:
  2983. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2984. * src/BtContext.h
  2985. * src/DefaultBtContext.cc
  2986. * src/DefaultBtContext.h
  2987. * src/DefaultBtInteractive.cc
  2988. * test/DefaultBtContextTest.cc
  2989. * test/MockBtContext.h
  2990. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2991. Changed method signature:
  2992. MultiFileAllocationIterator::makeDiskWriterEntries
  2993. * src/MultiFileAllocationIterator.cc
  2994. * src/MultiFileAllocationIterator.h
  2995. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. Changed method sinature:
  2997. MetalinkEntry::toFileEntry,
  2998. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2999. Metalinker::queryEntry
  3000. * src/Metalink2RequestGroup.cc
  3001. * src/MetalinkEntry.cc
  3002. * src/MetalinkEntry.h
  3003. * src/MetalinkHelper.cc
  3004. * src/MetalinkHelper.h
  3005. * src/Metalinker.cc
  3006. * src/Metalinker.h
  3007. * src/main.cc
  3008. * test/MetalinkHelperTest.cc
  3009. * test/MetalinkerTest.cc
  3010. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. Changed method sinature:
  3012. RequestGroup::getURIs
  3013. * src/RequestGroup.cc
  3014. * src/RequestGroup.h
  3015. * test/Metalink2RequestGroupTest.cc
  3016. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3017. Changed method signature:
  3018. PeerListProcessor::extractPeer
  3019. * src/CompactPeerListProcessor.cc
  3020. * src/CompactPeerListProcessor.h
  3021. * src/DefaultBtAnnounce.cc
  3022. * src/DefaultPeerListProcessor.cc
  3023. * src/DefaultPeerListProcessor.h
  3024. * src/DelegatingPeerListProcessor.cc
  3025. * src/DelegatingPeerListProcessor.h
  3026. * src/PeerListProcessor.h
  3027. * src/UTPexExtensionMessage.cc
  3028. * test/DefaultPeerListProcessorTest.cc
  3029. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. Changed method signature:
  3031. BtRequestFactory::createRequestMessages,
  3032. BtRequestFactory::createRequestMessagesOnEndGame
  3033. * src/BtRequestFactory.h
  3034. * src/DefaultBtInteractive.cc
  3035. * src/DefaultBtRequestFactory.cc
  3036. * src/DefaultBtRequestFactory.h
  3037. * test/DefaultBtRequestFactoryTest.cc
  3038. * test/MockBtRequestFactory.h
  3039. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3040. Changed method signature:
  3041. PieceStorage::getInFlightPieces
  3042. * src/DefaultBtProgressInfoFile.cc
  3043. * src/DefaultPieceStorage.cc
  3044. * src/DefaultPieceStorage.h
  3045. * src/PieceStorage.h
  3046. * src/UnknownLengthPieceStorage.cc
  3047. * src/UnknownLengthPieceStorage.h
  3048. * test/DefaultBtProgressInfoFileTest.cc
  3049. * test/MockPieceStorage.h
  3050. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3051. Changed method signature:
  3052. PostDownloadHandler::getNextRequestGroups
  3053. Metalink2RequestGroup::generate
  3054. RequestGroup::postDownloadProcessing
  3055. * src/BtPostDownloadHandler.cc
  3056. * src/BtPostDownloadHandler.h
  3057. * src/Metalink2RequestGroup.cc
  3058. * src/Metalink2RequestGroup.h
  3059. * src/MetalinkPostDownloadHandler.cc
  3060. * src/MetalinkPostDownloadHandler.h
  3061. * src/PostDownloadHandler.h
  3062. * src/RequestGroup.cc
  3063. * src/RequestGroup.h
  3064. * src/RequestGroupMan.cc
  3065. * src/main.cc
  3066. * test/BtPostDownloadHandlerTest.cc
  3067. * test/Metalink2RequestGroupTest.cc
  3068. * test/MetalinkPostDownloadHandlerTest.cc
  3069. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3070. Rewritten AccRequestGroup
  3071. * src/main.cc
  3072. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3073. Rewritten.
  3074. * src/TaggedItem.cc (toTagString)
  3075. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3076. Rewritten Accept-Features handling.
  3077. * src/HttpRequestCommand.cc (createHttpRequest)
  3078. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Rewritten accept types handling.
  3080. * HttpRequest.cc (createRequest)
  3081. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3082. Rewritten
  3083. * src/FeatureConfig.cc (featureSummary)
  3084. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3085. Changed method signature:
  3086. PeerStorage::getActivePeers
  3087. * src/DHTPeerAnnounceEntry.cc
  3088. * src/DefaultPeerStorage.cc
  3089. * src/DefaultPeerStorage.h
  3090. * src/PeerStorage.h
  3091. * test/DefaultPeerStorageTest.cc
  3092. * test/MockPeerStorage.h
  3093. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3094. Changed method signature:
  3095. DHTPeerAnnounceStorage::getPeers,
  3096. DHTPeerAnnounceEntry::getPeers
  3097. * src/DHTGetPeersMessage.cc
  3098. * src/DHTPeerAnnounceEntry.cc
  3099. * src/DHTPeerAnnounceEntry.h
  3100. * src/DHTPeerAnnounceStorage.cc
  3101. * src/DHTPeerAnnounceStorage.h
  3102. * test/DHTAnnouncePeerMessageTest.cc
  3103. * test/DHTPeerAnnounceEntryTest.cc
  3104. * test/DHTPeerAnnounceStorageTest.cc
  3105. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3106. Changed method signature:
  3107. NameResolver::resolve
  3108. * src/DHTEntryPointNameResolveCommand.cc
  3109. * src/InitiateConnectionCommand.cc
  3110. * src/NameResolver.cc
  3111. * src/NameResolver.h
  3112. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3113. Changed method signature:
  3114. PieceStorage::getAdvertisedPieceIndexes
  3115. * src/DefaultBtInteractive.cc
  3116. * src/DefaultPieceStorage.cc
  3117. * src/DefaultPieceStorage.h
  3118. * src/PieceStorage.h
  3119. * src/UnknownLengthPieceStorage.h
  3120. * test/MockPieceStorage.h
  3121. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3122. Changed method signature:
  3123. SegmentMan::getInFlightSegment
  3124. * src/AbstractCommand.cc
  3125. * src/SegmentMan.cc
  3126. * src/SegmentMan.h
  3127. * test/SegmentManTest.cc
  3128. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3129. Changed method signature:
  3130. DHTAbstractNodeLookupTask::getNodesFromMessage
  3131. * src/DHTAbstractNodeLookupTask.cc
  3132. * src/DHTAbstractNodeLookupTask.h
  3133. * src/DHTNodeLookupTask.cc
  3134. * src/DHTNodeLookupTask.h
  3135. * src/DHTPeerLookupTask.cc
  3136. * src/DHTPeerLookupTask.h
  3137. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3138. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  3139. * src/AbstractCommand.cc
  3140. * src/BtCheckIntegrityEntry.cc
  3141. * src/BtCheckIntegrityEntry.h
  3142. * src/BtFileAllocationEntry.cc
  3143. * src/BtFileAllocationEntry.h
  3144. * src/BtSetup.cc
  3145. * src/BtSetup.h
  3146. * src/CheckIntegrityCommand.cc
  3147. * src/CheckIntegrityEntry.h
  3148. * src/ChecksumCheckIntegrityEntry.cc
  3149. * src/ChecksumCheckIntegrityEntry.h
  3150. * src/DHTSetup.cc
  3151. * src/DHTSetup.h
  3152. * src/DownloadEngine.cc
  3153. * src/FileAllocationCommand.cc
  3154. * src/FileAllocationEntry.h
  3155. * src/RequestGroup.cc
  3156. * src/RequestGroup.h
  3157. * src/RequestGroupMan.cc
  3158. * src/RequestGroupMan.h
  3159. * src/StreamCheckIntegrityEntry.cc
  3160. * src/StreamCheckIntegrityEntry.h
  3161. * src/StreamFileAllocationEntry.cc
  3162. * src/StreamFileAllocationEntry.h
  3163. * src/TrackerWatcherCommand.cc
  3164. * src/a2functional.h
  3165. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3166. Changed method signature:
  3167. BNode::findClosestKNodes, BNode:: enumerateBucket,
  3168. DHTBucket::getGoodNodes,
  3169. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  3170. * src/BNode.cc
  3171. * src/BNode.h
  3172. * src/DHTAbstractNodeLookupTask.cc
  3173. * src/DHTAutoSaveCommand.cc
  3174. * src/DHTBucket.cc
  3175. * src/DHTBucket.h
  3176. * src/DHTBucketRefreshTask.cc
  3177. * src/DHTFindNodeMessage.cc
  3178. * src/DHTGetPeersMessage.cc
  3179. * src/DHTRoutingTable.cc
  3180. * src/DHTRoutingTable.h
  3181. * test/BNodeTest.cc
  3182. * test/DHTBucketTest.cc
  3183. * test/DHTRoutingTableTest.cc
  3184. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. In piece selection functions, Pass std::deque<...> by reference rather
  3186. than returning it.
  3187. * src/BitfieldMan.cc
  3188. * src/BitfieldMan.h
  3189. * src/DefaultBtRequestFactory.cc
  3190. * src/DefaultPieceStorage.cc
  3191. * src/Piece.cc
  3192. * src/Piece.h
  3193. * test/BitfieldManTest.cc
  3194. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Implemented rarest piece first piece selection strategy.
  3196. * src/AbstractBtMessage.cc
  3197. * src/AbstractBtMessage.h
  3198. * src/BitfieldMan.cc
  3199. * src/BitfieldMan.h
  3200. * src/BtBitfieldMessage.cc
  3201. * src/BtHaveAllMessage.cc
  3202. * src/BtHaveMessage.cc
  3203. * src/DefaultPieceStorage.cc
  3204. * src/DefaultPieceStorage.h
  3205. * src/PeerInteractionCommand.cc
  3206. * src/PieceStorage.h
  3207. * src/UnknownLengthPieceStorage.h
  3208. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Rewritten readData and writeData.
  3210. * src/MultiDiskAdaptor.cc
  3211. * src/MultiDiskAdaptor.h
  3212. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3213. Move \n out of the message "Usage: ...".
  3214. * src/version_usage.cc
  3215. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Bump up version number to 0.13.2b.
  3217. * configure.ac
  3218. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Added const qualifier to argument Exception& e.
  3220. * src/Logger.h
  3221. * src/SimpleLogger.cc
  3222. * src/SimpleLogger.h
  3223. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3224. Pool connection when CWD, SIZE command fails.
  3225. * src/FtpNegotiationCommand.cc
  3226. * src/FtpNegotiationCommand.h
  3227. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3228. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  3229. * src/HttpResponseCommand.cc
  3230. * src/HttpSkipResponseCommand.cc
  3231. * src/HttpSkipResponseCommand.h
  3232. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Pool connection when a server returns 4xx, 5xx responses.
  3234. * src/HttpNullDownloadCommand.cc
  3235. * src/HttpNullDownloadCommand.h
  3236. * src/HttpResponse.cc
  3237. * src/HttpResponse.h
  3238. * src/HttpResponseCommand.cc
  3239. * src/HttpResponseCommand.h
  3240. * test/HttpResponseTest.cc
  3241. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3242. Print usage when no URL is specifed or bad command-line option is
  3243. specified.
  3244. * src/HelpItemFactory.cc
  3245. * src/help_tags.h
  3246. * src/option_processing.cc
  3247. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Removed duplicate log message.
  3249. * src/AbstractCommand.cc (asyncResolveHostname)
  3250. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. Updated man page: --async-dns and --ftp-reuse-connection were added.
  3252. Changed -j option's default value from 5 to 1.
  3253. Added new examples using protocol auto detection feature.
  3254. Removed -T, -M usage where it can be omitted.
  3255. * doc/aria2c.1.txt
  3256. * doc/aria2c.1.html
  3257. * doc/aria2c.1.txt
  3258. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3259. Updated command-line usage text, so that it tells users that they
  3260. can specify any number of torrent files and metalink files in
  3261. command-line.
  3262. * src/version_usage.cc
  3263. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3264. Changed the default value of -j option to 1.
  3265. * src/HelpItemFactory.cc
  3266. * src/option_processing.cc
  3267. * src/usage_text.h
  3268. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3269. Added the ability to reuse connection in FTP and it is enabled by
  3270. default. It can be disabled by --ftp-reuse-connection=false option.
  3271. * src/Command.cc
  3272. * src/DownloadCommand.cc
  3273. * src/FtpDownloadCommand.cc
  3274. * src/FtpDownloadCommand.h
  3275. * src/FtpFinishDownloadCommand.cc
  3276. * src/FtpFinishDownloadCommand.h
  3277. * src/FtpInitiateConnectionCommand.cc
  3278. * src/FtpNegotiationCommand.cc
  3279. * src/FtpNegotiationCommand.h
  3280. * src/HelpItemFactory.cc
  3281. * src/Makefile.am
  3282. * src/Makefile.in
  3283. * src/OptionHandlerFactory.cc
  3284. * src/option_processing.cc
  3285. * src/prefs.h
  3286. * src/usage_text.h
  3287. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Call Command::transitStatus() before calling Command::execute(),
  3289. so that the status change made in execute() is not cleared.
  3290. * src/DownloadEngine.cc
  3291. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3292. Removed forward declaration of SocketCore class.
  3293. * src/HttpDownloadCommand.h
  3294. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3295. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  3296. in InitiateConnectionCommandFactory. They should be set only when
  3297. the protocol is HTTP or HTTPS.
  3298. * src/InitiateConnectionCommandFactory.cc
  3299. * src/RequestGroup.cc
  3300. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3301. Fixed infinite loop in checksum checking.
  3302. * src/IteratableChecksumValidator.cc
  3303. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3304. Set _supportsPersistentConnection to true by default.
  3305. * src/Request.cc
  3306. * src/RequestGroup.cc
  3307. * test/HttpRequestTest.cc
  3308. * test/RequestTest.cc
  3309. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3310. Added timeout to socket pool. The default timeout is 15 seconds,
  3311. which is the same value Apache uses.
  3312. * src/DownloadEngine.cc
  3313. * src/DownloadEngine.h
  3314. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3315. Fixed misuse of multimap::find()
  3316. * src/HttpHeader.cc
  3317. * test/HttpHeaderTest.cc
  3318. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  3320. option.
  3321. The asynchronous DNS is not capable of IPv6 yet.
  3322. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  3323. least for HTTP download.
  3324. * src/AbstractCommand.cc
  3325. * src/AbstractCommand.h
  3326. * src/AsyncNameResolver.cc
  3327. * src/AsyncNameResolver.h
  3328. * src/DHTEntryPointNameResolveCommand.cc
  3329. * src/DHTEntryPointNameResolveCommand.h
  3330. * src/DownloadEngine.cc
  3331. * src/DownloadEngine.h
  3332. * src/FtpInitiateConnectionCommand.cc
  3333. * src/FtpInitiateConnectionCommand.h
  3334. * src/HelpItemFactory.cc
  3335. * src/HttpInitiateConnectionCommand.cc
  3336. * src/HttpInitiateConnectionCommand.h
  3337. * src/InitiateConnectionCommand.cc
  3338. * src/InitiateConnectionCommand.h
  3339. * src/Makefile.am
  3340. * src/Makefile.in
  3341. * src/NameResolver.cc
  3342. * src/NameResolver.h
  3343. * src/OptionHandlerFactory.cc
  3344. * src/SocketCore.cc
  3345. * src/SocketCore.h
  3346. * src/Util.cc
  3347. * src/Util.h
  3348. * src/option_processing.cc
  3349. * src/prefs.h
  3350. * src/usage_text.h
  3351. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Updated man page: --quiet, --header were added.
  3353. --metalink-servers and --enable-http-keep-alive option were updated.
  3354. * doc/aria2c.1
  3355. * doc/aria2c.1.html
  3356. * doc/aria2c.1.txt
  3357. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3358. Enable HTTP keep-alive by default.
  3359. * src/HelpItemFactory.cc
  3360. * src/option_processing.cc
  3361. * src/usage_text.h
  3362. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3363. Disable http keep-alive if the remote server is not HTTP/1.1.
  3364. * src/HttpConnection.cc
  3365. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3366. Receive content body of 302 response so that the connection can be
  3367. reused later when http keep-alive is enabled.
  3368. * src/HttpNullDownloadCommand.cc
  3369. * src/HttpNullDownloadCommand.h
  3370. * src/HttpResponseCommand.cc
  3371. * src/HttpResponseCommand.h
  3372. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3373. const SharedHandle<Request> -> const SharedHandle<Request>&
  3374. * src/FtpDowndloadCommand.cc
  3375. * src/FtpDowndloadCommand.h
  3376. * src/HttpDownloadCommand.cc
  3377. * src/HttpDownloadCommand.h
  3378. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3379. Fixed the bug that the control file(.aria2 file) is not renamed
  3380. according to tryAutoFileRenaming().
  3381. tryAutoFileRenaming() was rewritten so that if both renamed file and
  3382. its control file exist, use them and continue download.
  3383. The old implementation didn't take into account of control file's
  3384. existence, so basically you couldn't continue download of renamed file.
  3385. * src/BtProgressInfoFile.h
  3386. * src/DefaultBtProgressInfoFile.cc
  3387. * src/DefaultBtProgressInfoFile.h
  3388. * src/NullProgressInfoFile.h
  3389. * src/RequestGroup.cc
  3390. * test/DefaultBtProgressInfoFileTest.cc
  3391. * test/MockBtProgressInfoFile.h
  3392. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3393. Change the default value of --metalink-servers option from `5' to `1'.
  3394. * src/HelpItemFactory.cc
  3395. * src/option_processing.cc
  3396. * src/usage_text.h
  3397. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3398. Reimplemented transparent metalink using Accept request header.
  3399. * src/HttpRequest.cc
  3400. * src/HttpRequest.h
  3401. * src/HttpRequestCommand.cc
  3402. * src/Metalink2RequestGroup.cc
  3403. * src/RequestGroup.cc
  3404. * src/RequestGroup.h
  3405. * test/HttpRequestTest.cc
  3406. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3407. Bump up version number to 0.13.2a
  3408. * configure.ac
  3409. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Updated configure.ac using the result of autoscan.
  3411. * configure.ac
  3412. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3413. Fixed compilation error without gcrypt/openssl.
  3414. * src/DownloadCommand.cc
  3415. * src/DownloadCommand.h
  3416. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3417. Reorganized version information so that it can be displayed in a
  3418. standard terminal screen without scrolling.
  3419. Removed http, ftp from Configuration section, because they are always
  3420. enabled.
  3421. * src/FeatureConfig.cc
  3422. * src/FeatureConfig.h
  3423. * src/main.cc
  3424. * src/messageDigest.cc
  3425. * src/messageDigest.h
  3426. * src/version_usage.cc
  3427. * test/FeatureConfigTest.cc
  3428. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3429. Masked user ID in log.
  3430. * src/FtpConnection.cc (sendUser)
  3431. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3432. Removed query part from filename in HTTP download. The query part means
  3433. the substring after "?" in URL. Firefox seems do the same thing.
  3434. A query part is sometimes very long and not suitable to filename,
  3435. so I think it is better to remove it from filename.
  3436. * src/HttpRequest.cc
  3437. * src/HttpRequest.h
  3438. * src/Request.cc
  3439. * src/Request.h
  3440. * test/HttpRequestTest.cc
  3441. * test/RequestTest.cc
  3442. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3443. Rewritten Exception class. Throw exception object, not its pointer and
  3444. catch by reference, so that remove problematic delete operator for
  3445. catched exception.
  3446. * src/Exception.cc
  3447. * src/Exception.h
  3448. * test/ExceptionTest.cc
  3449. * src/*: All files throwing/catching exception.
  3450. * test/*: All files throwing/catching exception.
  3451. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3452. Now auto protocol detection is enabled without -Z option.
  3453. But there is a important difference between with/without -Z optoin.
  3454. For example, if you type:
  3455. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3456. then, aria2 interprets there are 3 request groups:
  3457. (1) http://host/file, http://mirror/file <-- multi-source download
  3458. (2) file1.torrent
  3459. (3) file2.metalink
  3460. On the other hand, if you invoke above command with -Z option, it is
  3461. interpreted as 4 request groups:
  3462. (1) http://host/file
  3463. (2) file1.torrent
  3464. (3) file2.metalink
  3465. (4) http://mirror/file
  3466. I think usually user don't mix multi-source URLs and torrent files, so
  3467. there is no big problem here.
  3468. * src/main.cc
  3469. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3470. Fixed the bug that causes segmentaion fault when reading XML containing
  3471. unescapsed character like '&'.
  3472. Also a modification was made which avoids adding unnecessary
  3473. characters stack and appending unused string.
  3474. * src/ExpatMetalinkProcessor.cc
  3475. * src/FileMetalinkParserState.h
  3476. * src/FilesMetalinkParserState.h
  3477. * src/FinMetalinkParserState.h
  3478. * src/HashMetalinkParserState.h
  3479. * src/InitialMetalinkParserState.h
  3480. * src/LanguageMetalinkParserState.h
  3481. * src/MetalinkMetalinkParserState.h
  3482. * src/MetalinkParserState.h
  3483. * src/MetalinkParserStateMachine.cc
  3484. * src/MetalinkParserStateMachine.h
  3485. * src/OSMetalinkParserState.h
  3486. * src/PieceHashMetalinkParserState.h
  3487. * src/PiecesMetalinkParserState.h
  3488. * src/ResourcesMetalinkParserState.h
  3489. * src/SizeMetalinkParserState.h
  3490. * src/SkipTagMetalinkParserState.h
  3491. * src/URLMetalinkParserState.h
  3492. * src/VerificationMetalinkParserState.h
  3493. * src/VersionMetalinkParserState.h
  3494. * src/XML2SAXMetalinkProcessor.cc
  3495. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Added StringFormat class, which internally calls vasprintf.
  3497. operator<< is defined for this class, so it can be used with iostream
  3498. classes nicely. SimpleLogger and following functions are rewritten
  3499. using StringFormat class.
  3500. Besides, now Logger class's methods are non-const, many classes
  3501. that has a const Logger* as a member variable are modified to remove
  3502. const qualifier from the variable declaration.
  3503. * src/HelpItemFactory.cc
  3504. * src/Request.cc
  3505. * src/SimpleLogger.cc
  3506. * src/StringFormat.cc
  3507. * src/StringFormat.h
  3508. * src/Util.cc
  3509. * src/option_processing.cc
  3510. * src/version_usage.cc
  3511. * test/StringFormatTest.cc
  3512. * src/*.h: The classes that has const Logger* as a member variable.
  3513. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  3515. failed. Also fixed memory link when exception is thrown there.
  3516. * src/main.cc (AccRequestGroup)
  3517. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Added build-in "Accept-Features" support. For now only "metalink" is
  3519. used in this header field.
  3520. This "metalink" value is removed from the list when connecting URLs
  3521. fed by metalink file to avoid loop in "transparent" metlaink.
  3522. * src/HttpRequest.cc
  3523. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  3524. header is also held in this variable. Also renamed setUserHeaders as
  3525. addHeader and it was rewritten to add header not just to clear the old
  3526. value.
  3527. * src/HttpRequestCommand.cc
  3528. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  3529. from "Accept-Features" list.
  3530. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  3531. default.
  3532. * src/RequestGroup.h
  3533. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  3534. * src/a2functional.h: Included <string> because Concat class depends on
  3535. it.
  3536. * test/HttpRequestTest.cc
  3537. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3538. Added comment
  3539. * src/RequestGroup.cc (createNextCommand)
  3540. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3541. Capitalized METHOD_GET and METHOD_HEAD
  3542. * src/Request.cc
  3543. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3544. Added getDownloadResults() method
  3545. * src/RequestGroupMan.cc
  3546. * src/RequestGroupMan.h
  3547. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3548. Fixed the bug that aria2 exits when commands is empty() but
  3549. _routineCommands are not.
  3550. * src/DownloadEngine.cc
  3551. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Use the default value pulled from Option object in HelpItemFactory.
  3553. except options whose defualt value is embedded in a usage text.
  3554. * src/HelpItemFactory.cc
  3555. * src/HelpItemFactory.h
  3556. * src/option_processing.cc
  3557. * src/version_usage.cc
  3558. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3559. Added --quiet option to make aria2 quiet (no console output).
  3560. --quiet option is tagged with ADVANCED.
  3561. * src/HelpItemFactory.cc
  3562. * src/LogFactory.cc
  3563. * src/LogFactory.h
  3564. * src/MultiUrlRequestInfo.cc
  3565. * src/MultiUrlRequestInfo.h
  3566. * src/NullStatCalc.h: New class. This class prints nothing.
  3567. * src/OptionHandlerFactory.cc
  3568. * src/main.cc
  3569. * src/option_processing.cc
  3570. * src/prefs.h
  3571. * src/usage_text.h
  3572. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3573. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  3574. * src/HelpItemFactory.cc (createHelpItems):
  3575. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3576. Fixed compilation error in ExpatMetalinkProcessor.cc
  3577. * src/ExpatMetalinkProcessor.cc
  3578. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Reuse socket if the origin server supports HTTP keep-alive and
  3580. --enable-http-keep-alive or --enable-http-pipelining is given.
  3581. The current implementation doesn't reuse the connections established
  3582. against proxy server.
  3583. * src/AbstractCommand.cc
  3584. * src/DownloadEngine.cc
  3585. * src/DownloadEngine.h
  3586. * src/HttpDownloadCommand.cc
  3587. * src/HttpInitiateConnectionCommand.cc
  3588. * src/HttpResponseCommand.cc
  3589. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Rewritten HTTP keep-alive and pipelining routine.
  3591. * src/AbstractCommand.cc
  3592. * src/HttpConnection.cc
  3593. * src/HttpDownloadCommand.cc
  3594. * src/HttpRequest.cc
  3595. * src/HttpRequestCommand.cc
  3596. * src/HttpResponseCommand.cc
  3597. * src/Request.cc
  3598. * src/Request.h
  3599. * src/RequestGroup.cc
  3600. * test/HttpRequestTest.cc
  3601. * test/HttpResponseTest.cc
  3602. * test/RequestTest.cc
  3603. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3604. Added missing setUserHeaders call
  3605. * src/HttpRequestCommand.cc
  3606. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  3608. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  3609. waste of time because it is more likey false.
  3610. * src/FileAllocationDispatcherCommand.cc (execute)
  3611. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3612. Now HTTP status and version are a member variable of HttpHeader.
  3613. HTTP status is processed as a string, not integer.
  3614. * src/AbstractProxyResponseCommand.cc
  3615. * src/HttpConnection.cc
  3616. * src/HttpHeader.cc
  3617. * src/HttpHeader.h
  3618. * src/HttpHeaderProcessor.cc
  3619. * src/HttpHeaderProcessor.h
  3620. * src/HttpResponse.cc
  3621. * src/HttpResponse.h
  3622. * test/HttpHeaderProcessorTest.cc
  3623. * test/HttpResponseTest.cc
  3624. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3625. Added --header option. You can specify any number of additional HTTP headers
  3626. like:
  3627. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  3628. Unlike other commad-line option, you can use --header option multiple times.
  3629. * src/HelpItemFactory.cc
  3630. * src/HttpRequest.{cc, h}
  3631. * src/HttpRequestCommand.cc
  3632. * src/OptionHandlerFactory.cc
  3633. * src/OptionHandlerImpl.h
  3634. * src/option_processing.cc
  3635. * src/prefs.h
  3636. * src/usage_text.h
  3637. * test/HttpRequestTest.cc (testUserHeaders)
  3638. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3639. Eliminates the time lag between sequential downloads and commands in
  3640. the same RequestGroup.
  3641. In old implementation, aria2 occasionally waits 1 seconds before
  3642. executing next command or RequestGroup.
  3643. This is really a waste of time, and new implementation eliminates
  3644. this unnecessary time lag.
  3645. * src/AbstractCommand.cc
  3646. * src/AutoSaveCommand.cc
  3647. * src/CheckIntegrityCommand.cc
  3648. * src/Command.{cc, h}
  3649. * src/DownloadEngine.{cc, h}
  3650. * src/DownloadEngineFactory.cc
  3651. * src/FileAllocationCommand.cc
  3652. * src/FileAllocationDispatcherCommand.cc
  3653. * src/FillRequestGroupCommand.cc
  3654. * src/FtpInitiateConnectionCommand.cc
  3655. * src/HaveEraseCommand.cc
  3656. * src/HttpInitiateConnectionCommand.cc
  3657. * src/HttpResponseCommand.cc
  3658. * src/RealtimeCommand.cc
  3659. * src/RequestGroup.cc
  3660. * src/RequestGroupMan.cc
  3661. * src/StreamFileAllocationEntry.cc
  3662. * src/TimeBasedCommand.{cc, h}
  3663. * src/TimedHaltCommand.cc
  3664. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3665. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  3666. keyword explicit and SharedHandle's default constructor initializes
  3667. its internal obj to null, old implementation initializes it using
  3668. obj's default constructor.
  3669. To assign null, write SharedHandle<T> x(...); x.reset();
  3670. TODO: test/SharedHandleTest.cc needs more tests.
  3671. * src/SharedHandle.h
  3672. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. Fixed type in man page.
  3674. * doc/aria2c.1.txt
  3675. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3676. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3677. * src/SimpleLogger.{cc, h}
  3678. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3679. Implemented auto protocol detection.
  3680. Now you can do:
  3681. aria2c -Z http://host/file file1.torrent file2.metalink
  3682. (Note: -Z option is required for auto protcol detection.)
  3683. Then aria2c downloads 3 files simultaneously:
  3684. 1. http://host/file
  3685. 2. file1.torrent <-- read local torrent file
  3686. 3. file2.metalink <-- read local Metalink file.
  3687. Same thing goes with -i option. Assume your uris.txt contans:
  3688. http://host/file
  3689. file1.torrent
  3690. file2.metalink
  3691. Then you can do: aria2c -i uris.txt
  3692. (Note: -Z option is not needed if -i option is given.)
  3693. * src/main.cc
  3694. * src/ProtocolDetector.{cc, h}
  3695. * test/ProtocolDetectorTest.cc
  3696. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3698. installed
  3699. * src/ARC4Encryptor.h
  3700. * src/ARC4Decryptor.h
  3701. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. Renamed argument from 'errno' to 'err', since errno is confused with
  3703. errno defined in errno.h.
  3704. * src/LibgcryptARC4Decryptor.h
  3705. * src/LibgcryptARC4Context.h
  3706. * src/LibgcryptDHKeyExchange.h
  3707. * src/LibgcryptARC4Encryptor.h
  3708. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. Rewritten choking algorithm.
  3710. * src/PeerChokeCommand.{cc, h}
  3711. * src/BtInterestedMessage.cc
  3712. * src/PeerSessionResource.{cc, h}
  3713. * src/DefaultPeerStorage.{cc, h}
  3714. * src/BtNotInterestedMessage.cc
  3715. * src/DefaultBtMessageDispatcher.{cc, h}
  3716. * src/BtMessageDispatcher.h
  3717. * src/Peer.{cc, h}
  3718. * src/BtLeecherStateChoke.{cc, h}
  3719. * src/BtSetup.cc
  3720. * src/BtSeederStateChoke.{cc, h}
  3721. * src/PeerStorage.h
  3722. * test/MockPeerStorage.h
  3723. * test/MockBtMessageDispatcher.h
  3724. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Fixed compilation error on x84-64 platform.
  3726. * src/AuthConfig.cc: Included ostream.
  3727. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3728. Rewritten getBasename() and getDirname(), without standard library
  3729. basename(), dirname().
  3730. * src/File.cc
  3731. * test/FileTest.cc
  3732. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3733. Added Simplified Chinese translation. Also updated the following
  3734. translations: Polish, Dutch, German. Great thanks to all translators.
  3735. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. Suppress content-range error when 'Content-Range' response header
  3737. doesn't contains bytes-unit specifier 'bytes'
  3738. * src/HttpHeader.cc (getRange)
  3739. * test/HttpHeaderTest.cc
  3740. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3741. Fixed compilation error with g++-4.3
  3742. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3743. Added missing include files for MinGW
  3744. * test/HttpHeaderProcessorTest.cc
  3745. * test/DHTRoutingTableSerializerTest.cc
  3746. * test/DHTRoutingTableDeserializerTest.cc
  3747. * test/UriListParserTest.cc
  3748. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Now download line is printed nicely with no garbage at the end of
  3750. line. I use ioctl to get the columns of terminal.
  3751. If stdout is redirected to another device, instead of carriage return,
  3752. end of line '\n' character is used. This is feature request#1909659
  3753. * src/ConsoleStatCalc.cc (calculateStat)
  3754. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3755. Included a2time.h
  3756. * src/DHTMessageDispatcher.h
  3757. * src/DHTMessageEntry.h
  3758. * src/DHTReplaceNodeTask.h
  3759. * src/DHTMessageTracker.h
  3760. * src/Util.h
  3761. * src/CookieBox.h
  3762. * src/SocketCore.h
  3763. * src/DefaultBtMessageDispatcher.h
  3764. * src/SocketCore.cc
  3765. * src/Util.cc
  3766. * src/DHTPingTask.h
  3767. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3768. Fixed high memory footprint when DHT is enabled.
  3769. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3770. queued than it is processed and the queue is getting longer. As a
  3771. consequence, momory usage is increased.
  3772. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3773. replacement cache in DHTBucket which is described in Kademlia paper.
  3774. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3775. DHTReplaceNodeTask.
  3776. * src/DHTBucket.{h, cc}
  3777. (cacheNode): New function.
  3778. (getCachedNodes): New function.
  3779. (dropNode): Push back cached node to _nodes.
  3780. * test/DHTBucketTest.cc
  3781. (testCacheNode): New test
  3782. (testDropNode): New test
  3783. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3785. the unused 4KB memory when ssl is not used.
  3786. * src/SocketCore.cc
  3787. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3788. Added summary log for peer announce storage.
  3789. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3790. Removed cast
  3791. * src/DefaultPeerStorage.cc (addPeer)
  3792. Log exception message
  3793. * src/DHTMessageTracker.cc (handleTimeout)
  3794. Fixed casting
  3795. * test/HttpRequestTest.cc
  3796. * test/MetalinkProcessorTest.cc
  3797. * test/PieceTest.cc
  3798. * test/MetalinkEntryTest.cc
  3799. * test/SequenceTest.cc
  3800. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3801. * src/ParameterizedStringParser.cc (createLoop):
  3802. Removed unused variable sstep.
  3803. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3804. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. * src/Util.{h, cc}
  3806. (parseUInt): New function.
  3807. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3808. The actual range is uint32_t.
  3809. * test/UtilTest.cc
  3810. * src/ParameterizedStringParser.cc:
  3811. Use Util::parseUInt() for loop variables.
  3812. * test/ParameterizedStringParserTest.cc
  3813. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3814. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3815. Rewritten the functions for binding port.
  3816. * src/DHTConnectionImpl.{h, cc}
  3817. * src/PeerListenCommand.{h, cc}
  3818. * src/DHTSetup.cc
  3819. * src/BtSetup.cc
  3820. * test/DHTConnectionImplTest.cc
  3821. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3822. type cleanup for allmost all remaining files.
  3823. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3824. Type clarification
  3825. * src/PeerSessionResource.{h, cc}
  3826. * src/DefaultPieceStorage.{h, cc}
  3827. * src/Peer.{h, cc}
  3828. * test/PeerSessionResourceTest.cc
  3829. Use div function
  3830. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3831. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. Type clarification
  3833. * src/DefaultPeerStorage.{h, cc}
  3834. * test/DefaultPeerStorageTest.cc
  3835. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3836. Type clarification: size_t for length or size, uint64_t for file
  3837. length, off_t for file offset.
  3838. * src/DefaultBtProgressInfoFile.cc
  3839. * src/DefaultBtContext.{h, cc}
  3840. * src/DefaultBtInteractive.cc
  3841. * src/DownloadCommand.{h, cc}
  3842. * src/IteratableChunkChecksumValidator.{h, cc}
  3843. * src/SegmentMan.{h, cc}
  3844. * src/SingleFileDownloadContext.{h, cc}
  3845. * src/IteratableChecksumValidator.{h, cc}
  3846. * src/BtContext.h
  3847. * src/IteratableValidator.h
  3848. * src/DownloadContext.h
  3849. * test/SingleFileDownloadContextTest.cc
  3850. * test/DefaultBtContextTest.cc
  3851. * test/MockBtContext.h
  3852. * test/Metalink2RequestGroupTest.cc
  3853. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. Type clarification: size_t for length or size, uint64_t for file
  3855. length, off_t for file offset.
  3856. * src/PiecedSegment.cc
  3857. * src/GrowSegment.h
  3858. * src/DefaultBtRequestFactory.h
  3859. * src/DefaultBtProgressInfoFile.cc
  3860. * src/UnknownLengthPieceStorage.h
  3861. * src/DefaultPieceStorage.cc
  3862. * src/UnknownLengthPieceStorage.cc
  3863. * src/DefaultBtInteractive.cc
  3864. * src/GrowSegment.cc
  3865. * src/BitfieldMan.h
  3866. * src/DownloadCommand.cc
  3867. * src/BtRequestFactory.h
  3868. * src/PiecedSegment.h
  3869. * src/DefaultPieceStorage.h
  3870. * src/Piece.cc
  3871. * src/DefaultBtRequestFactory.cc
  3872. * src/PieceStorage.h
  3873. * src/Segment.h
  3874. * src/Piece.h
  3875. * src/BitfieldMan.cc
  3876. * src/Util.cc
  3877. * test/DefaultBtProgressInfoFileTest.cc
  3878. * test/DefaultPieceStorageTest.cc
  3879. * test/MockPieceStorage.h
  3880. * test/BtRequestMessageTest.cc
  3881. * test/DefaultBtMessageDispatcherTest.cc
  3882. * test/BitfieldManTest.cc
  3883. * test/GrowSegmentTest.cc
  3884. * test/PieceTest.cc
  3885. * test/SegmentTest.cc
  3886. * test/SegmentManTest.cc
  3887. * test/DefaultBtRequestFactoryTest.cc
  3888. * test/MockBtRequestFactory.h
  3889. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Fixed compilation error with --disable-nls
  3891. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3892. in gettext.h causes the problem.
  3893. * src/common.h
  3894. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Removed subPiece related functions.
  3896. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3897. * src/DefaultPieceStorage.{h, cc}
  3898. * test/PieceTest.cc
  3899. * test/DefaultPieceStorageTest.cc
  3900. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Use unsigned char for data store.
  3902. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3903. Bump up version number to 0.13.0+1
  3904. * configure.ac
  3905. * Release 0.13.0+1
  3906. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3907. Changed inactive connection timeout to 120.
  3908. To accept more mulually interested peers, disconnect peer when there
  3909. is no interest between us after certain time passed.
  3910. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3911. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3912. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3913. when compiled with async DNS support.
  3914. * src/DownloadEngine.cc
  3915. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3916. value '10' will be a little bit short when some DNS servers are
  3917. offline and several DNS servers are tried. It should be configured
  3918. by command-line option.
  3919. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Merged Ross's mingw patch.
  3921. * src/DHTRoutingTableDeserializer.cc
  3922. * src/DHTRoutingTableSerializer.cc
  3923. * src/Platform.{h, cc}
  3924. * src/timegm.h
  3925. * src/gettimeofday.h
  3926. * src/getaddrinfo.h
  3927. * src/SocketCore.h
  3928. * src/common.h
  3929. * src/inet_aton.h
  3930. * src/DownloadEngine.h
  3931. * src/gai_strerror.h
  3932. * src/a2netcompat.h
  3933. * configure.ac
  3934. * configure
  3935. * aclocal.m4
  3936. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3937. Included missing iostream.
  3938. * test/AllTest.cc
  3939. * test/BtDependencyTest.cc
  3940. * test/BtExtendedMessageTest.cc
  3941. * test/DHTConnectionImplTest.cc
  3942. * test/DHTMessageFactoryImplTest.cc
  3943. * test/DHTMessageTrackerEntryTest.cc
  3944. * test/DHTNodeTest.cc
  3945. * test/DHTRoutingTableSerializerTest.cc
  3946. * test/DefaultBtAnnounceTest.cc
  3947. * test/DefaultBtContextTest.cc
  3948. * test/DefaultBtMessageFactoryTest.cc
  3949. * test/DefaultExtensionMessageFactoryTest.cc
  3950. * test/HandshakeExtensionMessageTest.cc
  3951. * test/HttpResponseTest.cc
  3952. * test/MetalinkProcessorTest.cc
  3953. * test/MultiFileAllocationIteratorTest.cc
  3954. * test/SocketCoreTest.cc
  3955. * test/UTPexExtensionMessageTest.cc
  3956. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Reorganized includes.
  3958. * src/NameResolver.cc
  3959. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Fixed compilation error without ares/c-ares
  3961. * src/NameResolver.h:
  3962. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3963. Added a test for large file.
  3964. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3965. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3966. Fixed the bug that file size is ignored if size > INT32_MAX
  3967. * src/SizeMetalinkParserState.cc (endElement):
  3968. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Bump up version number to 0.13.0
  3970. * configure.ac
  3971. * Release 0.13.0
  3972. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Updated Makfefile.am to make 'make dist' work.
  3974. Now packaged filename is aria2c-VERSION.tar.bz2.
  3975. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3976. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3977. Large file support is now configured by configure script.
  3978. * configure.ac
  3979. Removed unsused source files
  3980. * src/
  3981. * test/
  3982. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3983. Peer.h and BtContext.h respectively.
  3984. * src/Peer.h
  3985. * src/BtContext.h
  3986. Updated translations.
  3987. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3988. translations. Great thanks to all translators!;)
  3989. * po/*.{po, gmo}
  3990. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3992. statically declared sha1 MessageDigestContext.
  3993. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3994. initialization of short-lived MessageDigestContext.
  3995. * src/MessageDigestHelper.{h, cc}
  3996. * src/main.cc
  3997. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3998. the initialization of MessageDigestContext every time in validating
  3999. chunk checksum.
  4000. * src/DownloadCommand.{h, cc}
  4001. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4002. Add a file descriptor which connected to fast peer(latency<1500) to
  4003. select(). This change reduced CPU load.
  4004. * src/PeerInteractionCommand.cc
  4005. * src/DefaultBtInteractive.{h, cc}
  4006. * src/BtInteractive.h
  4007. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4008. Fixed the previous insufficient fix for possible busy loop.
  4009. * src/MSEHandshake.cc (identifyHandshakeType)
  4010. Removed unused functions.
  4011. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  4012. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Fixed possible busy loop if first 20 bytes are not received for a few
  4014. minutes.
  4015. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  4016. * src/ReceiverMSEHandshakeCommand.cc
  4017. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Fixed compilation error
  4019. * src/ExpatMetalinkProcessor.cc
  4020. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4021. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  4022. * src/DHTBucket.cc
  4023. Removed unnecessary cast.
  4024. * src/HandshakeExtensionMessage.cc
  4025. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  4027. is missing.
  4028. * src/OptionHandlerFactory.cc
  4029. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Fixed the bug that HAVE message is not sent for a piece they are
  4031. downloaded fom http/ftp server before any BitTorrent handshake is done
  4032. with peers.
  4033. * src/DefaultBtInteractive.cc
  4034. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4035. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  4036. * src/Makefile.am
  4037. * src/Makefile.in
  4038. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4039. Updated README. Added html version of README and man page.
  4040. * README
  4041. * README.html
  4042. * readme2html: Shell script to generate README.html from README using
  4043. asciidoc.
  4044. * doc/aria2c.1.html
  4045. * doc/makeman: Added the line to generate aria2c.1.html
  4046. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4047. Fixed offset calculation.
  4048. * src/LibgcryptDHKeyExchange.h (computeSecret)
  4049. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Rewritten itos and uitos using template. llitos and ullitos are
  4051. replaced with itos and uitos respectively.
  4052. * src/Util.{h, cc}
  4053. * test/UtilTest.cc
  4054. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4055. Fixed the bug that DH key exchange sometimes fails due to bad handling
  4056. of the number of bytes required for storing public key and shared
  4057. secret.
  4058. * src/LibgcryptDHKeyExchange.h
  4059. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  4060. * src/MSEHandshake.cc
  4061. * test/DHKeyExchangeTest.cc
  4062. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4063. Removed since they are not used.
  4064. * src/Xml2MetalinkProcessor.{h, cc}
  4065. * src/Socket.cc
  4066. * src/SegmentSplitter.{h, cc}
  4067. * test/Xml2MetalinkProcessorTest.cc
  4068. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4069. Fixed the bug that prevents aria2 from stopping other than by pressing
  4070. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  4071. option. aria2 doesn't stop even after --seed-time is satisfied and
  4072. continues to output blank lines in the console.
  4073. * src/ReceiverMSEHandshakeCommand.cc
  4074. * src/PeerReceiveHandshakeCommand.cc
  4075. * src/PeerListenCommand.cc
  4076. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Bump up version number to 0.13.0rc
  4078. * configure.ac
  4079. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Updated man page and some usage text.
  4081. * doc/aria2c.1.txt
  4082. * src/usage_text.h
  4083. * po/*.{po, gmo}
  4084. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4085. Updated translations. Added Finnish and Hebrew translations.
  4086. Great thanks to all translators!
  4087. * po/*.{po, gmo}
  4088. * po/LINGUAS
  4089. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4090. Log more detailed information about each message.
  4091. * src/DHTQueryMessage.{h, cc}
  4092. * src/DHTGetPeersMessage.{h, cc}
  4093. * src/DHTFindNodeReplyMessage.{h, cc}
  4094. * src/DHTGetPeersReplyMessage.{h, cc}
  4095. * src/DHTAnnouncePeerMessage.{h, cc}
  4096. * src/DHTResponseMessage.{h, cc}
  4097. * src/DHTFindNodeMessage.{h, cc}
  4098. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4099. Use constants defined in prefs.h
  4100. * src/option_processing.cc
  4101. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4102. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  4103. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4104. Make room for future enchancements for IPv6 addresses.
  4105. Bump up version number of dht.dat file format to 2.
  4106. Not compatible with previous version.
  4107. * src/DHTRoutingTableSerializer.cc
  4108. * src/DHTRoutingTableDeserializer.cc
  4109. * test/DHTRoutingTableSerializerTest.cc
  4110. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Added handling for the return values from
  4112. PeerMessageUtil::createcompact().
  4113. * src/DefaultBtContext.cc (computeFastSet):
  4114. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Fixed abort when peer's ip address is IPv4-mapped address.
  4116. * src/DefaultBtContext.cc (computeFastSet)
  4117. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  4118. cannot handle IPv4-mapped addresses.
  4119. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  4120. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4121. Proper return value handling for OpenSSL functions.
  4122. * src/LibsslDHKeyExchange.h
  4123. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4124. Random bytes generation using libgcrypt and OpenSSL.
  4125. * src/DHTUtil.{h, cc}
  4126. * test/DHTUtilTest.cc
  4127. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4128. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  4129. received.
  4130. * src/DHTMessageReceiver.cc (receiveMessage)
  4131. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4132. Fixed the bug that a return code is always 0. BUG#1897704
  4133. If error occurred during the download or there exist unfinished
  4134. downloads, aria2 returns with code 1.
  4135. * src/RequestGroupMan.{h, cc}
  4136. * src/MultiUrlRequestInfo.{h, cc}
  4137. * src/main.cc
  4138. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4139. IPv6 support for SocketCore class.
  4140. TODO: In SocketCore::establishConnection(), this is insufficient to
  4141. determin the failure of connect() here because the socket is
  4142. non-blocking state. The next addresses should be tried after select().
  4143. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  4144. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  4145. instead which address family independent.
  4146. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  4147. information in a compact peer format which is for IPv4 only.
  4148. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  4149. this is a spec of BitTorrent protocol.
  4150. * src/SocketCore.{h, cc}
  4151. * src/PeerMessageUtil.cc
  4152. * test/SocketCoreTest.cc
  4153. * test/PeerMessageUtilTest.cc
  4154. * test/DHTConnectionImplTest.cc
  4155. Handle IPv4-mapped addresses.
  4156. * src/DHTNode.cc: Now identity is determined by node id.
  4157. * src/DHTMessageTrackerEntry.cc
  4158. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  4159. should handle it.
  4160. * src/DHTRoutingTableDeserializer.cc
  4161. * src/DHTMessageFactoryImpl.cc
  4162. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. Change the unit of --stop option from a minute to a second.
  4164. * src/usage_text.h
  4165. * src/DownloadEngineFactory.cc
  4166. * src/OptionHandlerFactory.cc
  4167. * src/message.h
  4168. * src/TimedHaltCommand.cc
  4169. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4170. Make listening socket non-block mode.
  4171. * src/FtpConnection.cc
  4172. * src/FtpNegotiationCommand.{h, cc}
  4173. * src/PeerListenCommand.cc
  4174. Fixed the bug that cause slow ftp negotiation.
  4175. * src/FtpNegotiationCommand.{h, cc}
  4176. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4177. Added basic tag to --enable-dht, --dht-listen-port option.
  4178. * src/HelpItemFactory.cc (createHelpItems)
  4179. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4180. Updated text.
  4181. * src/usage_text.h
  4182. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4183. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  4184. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4185. Determin _threadtholdSpeed in each constructor for
  4186. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  4187. * src/ActivePeerConnectionCommand.{h, cc}
  4188. * src/PeerReceiveHandshakeCommand.{h, cc}
  4189. * src/BtSetup.cc
  4190. * src/BtConstants.h
  4191. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Added --bt-min-crypto-level and --bt-require-crypto options.
  4193. * src/OptionHandlerFactory.cc
  4194. * src/MSEHandshake.cc
  4195. * src/HelpItemFactory.cc
  4196. * src/option_processing.cc
  4197. * src/ReceiverMSEHandshakeCommand.cc
  4198. * src/prefs.h
  4199. * src/DefaultBtAnnounce.cc
  4200. * src/InitiatorMSEHandshakeCommand.cc
  4201. * src/usage_text.h
  4202. * test/MSEHandshakeTest.cc
  4203. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Bump version number to 0.13.0b
  4205. * configure.ac
  4206. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. Updated doc.
  4208. * src/MessageDigestHelper.h:
  4209. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Use raw message digest as a token instead of its hexadecimal
  4211. representation.
  4212. * src/DHTTokenTracker.cc (generateToken)
  4213. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Added Message Stream Encryption(MSE) support.
  4215. Currently, aria2 accepts incoming connections with Obfuscation Header
  4216. and legacy BitTorrent Header and establishes connections with
  4217. Obfuscation Header first and if failed then retry with legacy
  4218. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  4219. choose ARC4. The new option to change the default behavior is planned.
  4220. For tracker extension, "supportcrypto=1" is added statically.
  4221. * src/PeerInitiateConnectionCommand.{h, cc}
  4222. * src/PeerConnection.{h, cc}
  4223. * src/HandleRegistry.h
  4224. * src/SocketCore.h
  4225. * src/PeerReceiveHandshakeCommand.{h, cc}
  4226. * src/BtRegistry.{h, cc}
  4227. * src/PeerListenCommand.cc
  4228. * src/InitiatorMSEHandshakeCommand.{h, cc}
  4229. * src/ReceiverMSEHandshakeCommand.{h, cc}
  4230. * src/MSEHandshake.{h, cc}
  4231. * src/ARC4Encryptor.h
  4232. * src/ARC4Decryptor.h
  4233. * src/LibgcryptARC4Encryptor.h
  4234. * src/LibgcryptARC4Decryptor.h
  4235. * src/LibgcryptARC4Context.h
  4236. * src/LibsslARC4Encryptor.h
  4237. * src/LibsslARC4Decryptor.h
  4238. * src/LibsslARC4Context.h
  4239. * src/DHKeyExchange.h
  4240. * src/LibgcryptDHKeyExchange.h
  4241. * src/LibsslDHKeyExchange.h
  4242. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  4243. * test/DefaultBtAnnounceTest.cc
  4244. * test/ARC4Test.cc
  4245. * test/DHKeyExchangeTest.cc
  4246. Removed prepareForRetry() because it is not used.
  4247. * src/PeerAbstractCommand.{h, cc}
  4248. * src/PeerInteractionCommand.{h, cc}
  4249. * src/PeerInitiateConnectionCommand.{h, cc}
  4250. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Added the ability to load nodes from torrent file. These nodes are
  4252. added to the routing table when downloading that torrent.
  4253. * src/BtContext.h
  4254. * src/DefaultBtContext.{h, cc}
  4255. * src/DHTSetup.cc
  4256. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  4257. hostname and port pair, and resolves all of them.
  4258. * src/NameResolver.{h, cc}: Added reset().
  4259. * src/RequestGroup.cc
  4260. * test/DefaultBtContextTest.cc
  4261. * test/MockBtContext.h
  4262. Removed assert() from DefaultBtContext and throw exception instead.
  4263. * src/DefaultBtContext.cc
  4264. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4265. Fixed segmentation fault bug when exiting if dht is disabled.
  4266. * src/RequestGroup.cc
  4267. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. Fixed typo in log message and define the message in message.h
  4269. * src/TimedHaltCommand.cc
  4270. * src/message.h
  4271. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4272. Included RecoverableException.h to fix compilation error.
  4273. * test/DHTMessageFactoryImplTest.cc
  4274. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4275. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  4276. * test/DHTPingMessageTest.cc
  4277. * test/DHTGetPeersMessageTest.cc
  4278. * test/DHTFindNodeMessageTest.cc
  4279. * test/DHTAnnouncePeerMessageTest.cc
  4280. * test/MockDHTMessage.h
  4281. * test/MockDHTMessageFactory.h
  4282. * test/MockDHTMessageDispatcher.h: New class.
  4283. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4284. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  4285. virtual.
  4286. * src/DHTMessageDispatcher.h
  4287. * src/DHTMessageDispatcherImpl.{h, cc}
  4288. * src/DHTSetup.cc
  4289. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4290. Adding handling of DHT error message. Just log error message and
  4291. throw exception.
  4292. * src/DHTMessageFactoryImpl.cc
  4293. * test/DHTMessageFactoryImplTest.cc
  4294. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4295. Added handling of dynamic cast failure.
  4296. * src/DHTNodeLookupTask.cc
  4297. * src/DHTPeerLookupTask.cc
  4298. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Added the ability to stop aria2 itself when given time has passed
  4300. from start. Use --stop option to specify time in minutes.
  4301. When 0 is given, this feature is disabled.
  4302. * src/OptionHandlerFactory.cc
  4303. * src/TimeBasedCommand.h: Make _interval protected scope.
  4304. * src/HelpItemFactory.cc
  4305. * src/option_processing.cc
  4306. * src/prefs.h
  4307. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  4308. before calling RequestGroupMan::fillRequestGroupFromReserver().
  4309. Without this modification, the result list shows "ERR" when aria2 is
  4310. stopped by --stop option. It should be "INPR".
  4311. * src/DownloadEngine.{h, cc}
  4312. * src/DownloadEngineFactory.cc
  4313. * src/usage_text.h
  4314. * src/TimedHaltCommand.{h, cc}: New class.
  4315. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Bootstrap through node added by port message.
  4317. Currently bootstrap is executed if the number of buckets in routing
  4318. table is 1.
  4319. * src/BtPortMessage.{h, cc}
  4320. * src/DefaultBtMessageFactory.{h, cc}
  4321. * src/PeerInteractionCommand.cc
  4322. * test/BtPortMessageTest.cc
  4323. * test/MockDHTTask.h
  4324. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Extract the Peer class's member variables, which are only needed after
  4326. PeerInteractionCommand, into PeerSessionResource class.
  4327. This class is instantiated in PeerInteractionCommand class's ctor and
  4328. released in its dtor.
  4329. This will make Peer class lightweight and uses less memory for peers
  4330. which are not connected and wait in the queue.
  4331. * src/PeerChokeCommand.cc
  4332. * src/PeerSessionResource.{h, cc}
  4333. * src/PeerInteractionCommand.cc
  4334. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  4335. * src/DefaultBtInteractive.cc
  4336. * src/BtPieceMessage.cc
  4337. * src/BtInterestedMessage.cc
  4338. * src/BtUnchokeMessage.cc
  4339. * src/DefaultPeerStorage.{h, cc}
  4340. * src/PeerInitiateConnectionCommand.cc
  4341. * src/ActivePeerConnectionCommand.cc
  4342. * src/BtNotInterestedMessage.cc
  4343. * src/DefaultBtMessageDispatcher.cc
  4344. * src/BtChokeMessage.cc
  4345. * src/BtRequestMessage.cc
  4346. * src/Peer.{h, cc}
  4347. * src/BtRegistry.h
  4348. * src/TrackerWatcherCommand.cc
  4349. * src/PeerReceiveHandshakeCommand.cc
  4350. * test/BtExtendedMessageTest.cc
  4351. * test/BtAllowedFastMessageTest.cc
  4352. * test/BtCancelMessageTest.cc
  4353. * test/DefaultPieceStorageTest.cc
  4354. * test/BtBitfieldMessageTest.cc
  4355. * test/BtHaveMessageTest.cc
  4356. * test/BtNotInterestedMessageTest.cc
  4357. * test/BtRequestMessageTest.cc
  4358. * test/PeerSessionResourceTest.cc
  4359. * test/DefaultBtMessageDispatcherTest.cc
  4360. * test/PeerTest.cc
  4361. * test/BtInterestedMessageTest.cc
  4362. * test/BtRejectMessageTest.cc
  4363. * test/BtChokeMessageTest.cc
  4364. * test/DefaultPeerStorageTest.cc
  4365. * test/BtHaveNoneMessageTest.cc
  4366. * test/BtHaveAllMessageTest.cc
  4367. * test/DefaultExtensionMessageFactoryTest.cc
  4368. * test/BtUnchokeMessageTest.cc
  4369. * test/DefaultBtMessageFactoryTest.cc
  4370. * test/HandshakeExtensionMessageTest.cc
  4371. * test/UTPexExtensionMessageTest.cc
  4372. * test/DefaultBtRequestFactoryTest.cc
  4373. * test/BtPieceMessageTest.cc
  4374. Removed typedef PeerStats.
  4375. * src/PeerStat.h
  4376. * src/SegmentMan.cc
  4377. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4378. Added std namespace to copy, remove_copy, back_inserter,
  4379. front_inserter.
  4380. * src/RequestGroupMan.cc
  4381. * src/DefaultPieceStorage.cc
  4382. * src/StreamFileAllocationEntry.cc
  4383. * src/BtFileAllocationEntry.cc
  4384. * src/RequestGroup.cc
  4385. * src/MetalinkEntry.cc
  4386. * src/DelegatingPeerListProcessor.cc
  4387. * src/DefaultBtRequestFactory.cc
  4388. * src/DefaultBtMessageDispatcher.cc
  4389. * src/version_usage.cc: Included <algorithm>
  4390. * src/main.cc
  4391. * src/MetalinkParserController.cc
  4392. * src/DefaultBtContext.cc
  4393. * src/DownloadEngineFactory.cc
  4394. * src/a2algo.h
  4395. Removed.
  4396. * test/StreamUriListParserTest.cc
  4397. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4398. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4399. ActivePeerConnectionCommand when it is given and
  4400. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4401. * src/ActivePeerConnectionCommand.{h, cc}
  4402. * src/BtSetup.cc
  4403. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4404. Only add socket to DownloadEngine's select routine when peer or
  4405. localhost is unchoked and interested. This lowers CPU usage a
  4406. little bit.
  4407. * src/PeerInteractionCommand.cc
  4408. * src/PeerAbstractCommand.{h, cc}
  4409. * src/BtInteractive.h
  4410. * src/DefaultBtInteractive.{h, cc}
  4411. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Revert previous change because get_peers message is needed for
  4413. announce_peer anyway.
  4414. * src/DHTGetPeersCommand.cc
  4415. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4416. Request peers thought DHT only when download hasn't finished.
  4417. * src/DHTGetPeersCommand.cc
  4418. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4420. * src/DHTBucketRefreshTask.{h, cc}
  4421. * src/DHTSetup.cc
  4422. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4424. standard classes.
  4425. Included string.h where mem* function are used.
  4426. Added namespace aria2.
  4427. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Create directory before saving DHT routing table.
  4429. Now ios::failure is now handled properly.
  4430. * src/DHTAutoSaveCommand.cc
  4431. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4432. Removed unnecessary cerr.
  4433. * src/DownloadEngine.cc
  4434. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Catch exception inside DHTMessageReceiver::receiveMessage().
  4436. Log unknown message.
  4437. * src/DHTMessageReceiver.{h, cc}
  4438. * src/DHTMessageFactory.h
  4439. * src/DHTMessageFactoryImpl.{h, cc}
  4440. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4441. * src/DHTInteractionCommand.cc
  4442. * src/DHTUnknownMessage.{h, cc}
  4443. * test/DHTUnknownMessageTest.cc
  4444. * test/MockDHTMessageFactory.h
  4445. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Commented out ip address comparison because a host can have multiple
  4447. ip addresses and it is hard to predict the hostname is resolved into
  4448. which one.
  4449. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4450. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. * po/Makefile.in: Removed since this is generated by configure.
  4452. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Fixed compiler warning about redefinition of SIZE_MAX.
  4454. Use common.h instead of config.h directly here.
  4455. * src/Platform.{h, cc}
  4456. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4457. here.
  4458. * common.h
  4459. 2008-02-02 gettextize <[email protected]>
  4460. Updated gettext related files.
  4461. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4462. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4463. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4464. Added DHT functionality, compatible with mainline.
  4465. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4466. You may need to specify entry point to DHT network using
  4467. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4468. Use --dht-listen-port to specify port number. Make sure that your
  4469. firewall configuration can pass through UDP traffic to the port.
  4470. The routing table is saved in $HOME/.aria2/dht.dat.
  4471. * src/DHT*
  4472. * src/BNode.{h, cc}
  4473. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4474. particular torrent.
  4475. * src/Data.cc: Rewritten ctor.
  4476. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4477. --dht-entry-point.
  4478. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4479. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4480. ends, remove BtContext from DHTPeerAnnounceStorage.
  4481. * src/BtPortMessage.{h, cc}: Rewritten.
  4482. * src/message.h
  4483. * src/OptionHandlerImpl.cc
  4484. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  4485. --dht-entry-point.
  4486. * src/Dictionary.{h, cc} (remove): New function.
  4487. * src/prefs.h
  4488. * src/DefaultBtMessageFactory.h
  4489. * src/BtHandshakeMessage.cc
  4490. * src/ActivePeerConnectionCommand.cc
  4491. * src/SocketCore.{h, cc}: Added datagram socket support.
  4492. * src/DefaultBtMessageFactory.cc
  4493. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  4494. Create DHT commands.
  4495. * src/BtMessageFactory.h
  4496. * src/PeerMessageUtil.{h, cc}
  4497. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4498. Fixed the bug that log file is not written when configuration file doesn't exist.
  4499. This is caused by using Logger class before LogFactory is not configured.
  4500. BUG #1875079
  4501. * src/option_processing.cc
  4502. Warning message "configuration doesn't exist" is only printed when --conf is
  4503. given.
  4504. * src/option_processing.cc
  4505. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  4507. ShaVisitor is now deprecated and slated to be removed.
  4508. * src/DefaultBtContext.cc
  4509. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4510. Externalize message to message.h
  4511. * src/Platform.cc
  4512. * src/message.h
  4513. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4514. Set default domain and default path to cookie.
  4515. * src/HttpResponse.cc
  4516. * src/CookieBox.{h, cc}
  4517. * src/CookieParser.{h, cc}
  4518. * test/CookieParserTest.cc
  4519. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4520. Added --no-conf and --conf-path command-line option.
  4521. --no-conf option disables loading aria2.conf file.
  4522. --conf-path option changes the configuration file path. The default
  4523. file path is $HOME/.aria2/aria2.conf
  4524. Added a warning message when the configuration file is not found.
  4525. * src/HelpItemFactory.cc
  4526. * src/option_processing.cc
  4527. * src/prefs.h
  4528. * src/usage_text.h
  4529. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. Added the message to inform users that other help categories are
  4531. available in -h option.
  4532. * src/version_usage.cc
  4533. * src/TagContainer.{h, cc}
  4534. * test/TagContainerTest.cc
  4535. * src/TaggedItem.{h, cc}
  4536. * test/TaggedItemTest.cc
  4537. * src/HelpItem.h
  4538. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  4540. from PiecedSegment's ctor.
  4541. Previously Piece::getAllMissingBlockIndexes() is called from
  4542. PiecedSegment() but it is rather expensive since only first element is
  4543. used.
  4544. * src/PiecedSegment.cc
  4545. * src/Piece.{h, cc}
  4546. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4547. Rewritten get*Missing*Index functions. Now no need to allocate memory
  4548. each time these functions are called.
  4549. * src/BitfieldMan.{h, cc}
  4550. * test/BitfieldManTest.cc
  4551. * src/array_fun.h
  4552. * test/array_funTest.cc
  4553. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  4554. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  4555. filtered. Removed unnecessary cast to int32_t.
  4556. * src/BitfieldMan.{h, cc}
  4557. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  4559. payload length(4bytes) are received. This happens because lenbufLength
  4560. is not updated in this particular case and successive call of
  4561. receiveMessage() overwrites payload length with bytes recieved which
  4562. are payload body.
  4563. * src/PeerConnection.{h, cc}
  4564. * src/message.h
  4565. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  4567. peer if there are peers that have same ipaddr and port.
  4568. I've experiened segmentation fault and "pure virtual function was
  4569. called" error.
  4570. * src/Peer.h
  4571. * test/PeerTest.cc
  4572. * src/DefaultPeerStorage.cc
  4573. * test/DefaultPeerStorageTest.cc
  4574. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. Removed a call to isPowerOf() because it is no longer necessary here
  4576. and a request block is not always power of 2.
  4577. BUG#1866924
  4578. * src/PeerMessageUtil.cc (checkLength)
  4579. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Fixed the bug that always first found Segment is removed from
  4581. usedSegmentEntries. Removed unused functions.
  4582. * src/SegmentMan.{h, cc}
  4583. * test/SegmentManTest.cc
  4584. Fixed the bug that ServerHost is not removed.
  4585. * src/RequestGroup.cc
  4586. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4587. Fixed the bug that SegmentMan::completeSegment() is not called
  4588. even if Segment is complete when --lowest-speed-limit is enabled.
  4589. BUG#1864525
  4590. * src/DownloadCommand.{h, cc}
  4591. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Fixed: hash algorithm 'sha1' is always used.
  4593. * src/DownloadCommand.cc (validatePieceHash)
  4594. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4595. Added --enable-peer-exchange command-line option.
  4596. * src/OptionHandlerFactory.cc
  4597. * src/HelpItemFactory.cc
  4598. * src/option_processing.cc
  4599. * src/usage_text.h
  4600. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Move extension from BtRuntime to ExtensionMessageFactory, because
  4602. extension can be specified per peer, not per torrent.
  4603. * src/DefaultBtInteractive.cc
  4604. * src/BtRuntime.h
  4605. * src/ExtendedMessagingAware.h
  4606. * src/ExtensionMessageFactory.h
  4607. * src/DefaultExtensionMessageFactory.cc
  4608. * test/DefaultExtensionMessageFactoryTest.cc
  4609. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Added categorized option help. Specify category using --help option.
  4611. Also added the ability to search options in forward match.
  4612. * src/HelpItem.{h, cc}
  4613. * test/HelpItemTest.cc
  4614. * src/HelpItemFactory.{h, cc}
  4615. * src/TagContainer.{h, cc}
  4616. * test/TagContainerTest.cc
  4617. * src/option_processing.cc
  4618. * src/prefs.h
  4619. * src/TaggedItem.{h, cc}
  4620. * test/TaggedItemTest.cc
  4621. * src/version_usage.cc
  4622. * src/help_tags.h
  4623. * src/usage_text.h
  4624. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4625. Fixed segmentation fault when bad torrent metainfo is parsed.
  4626. Added dynamic_cast properly to detect the misconfiguration of metainfo
  4627. and then throw exception or skip it.
  4628. * src/DefaultBtContext.{h, cc}
  4629. * test/DefaultBtContextTest.cc
  4630. * src/AnnounceList.cc
  4631. * src/CompactPeerListProcessor.cc
  4632. * src/message.h
  4633. * src/DefaultBtAnnounce.{h, cc}
  4634. * test/DefaultBtAnnounceTest.cc
  4635. * src/BencodeVisitor.cc
  4636. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4637. Added missing "B"(=Byte). So now the message looks like this:
  4638. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  4639. * src/message.h (MSG_SHARE_RATIO_REPORT)
  4640. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Show the seed ratio after torrent downloads.
  4642. For example, after torrent download completed and --seed-time and
  4643. --seed-ratio conditions are fulfilled, following message is printed
  4644. right after "Download complete: .....":
  4645. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  4646. * src/RequestGroupMan.cc
  4647. * src/RequestGroup.{h, cc}
  4648. * src/message.h
  4649. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4650. Remove a defunct control file. A defunct control file means that while
  4651. it exists, but the corresponding download file is missing.
  4652. After its removal, a download restarts from the beginning.
  4653. * src/RequestGroup.cc
  4654. * src/message.h
  4655. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Allocate bitfield in Peer when it is really used. More specifically,
  4657. bitfield in Peer is allocated after the connection is established and
  4658. deallocated when the connection is dropped.
  4659. Since 2 parameters(piece length and total length) was removed from the
  4660. constructor of Peer class, many test classes were modified accordingly.
  4661. See svn log for more detailed information.
  4662. * src/PeerInteractionCommand.cc
  4663. * src/CompactPeerListProcessor.cc
  4664. * src/Peer.cc
  4665. * src/DefaultPeerListProcessor.cc
  4666. * src/PeerListenCommand.cc
  4667. * src/PeerReceiveHandshakeCommand.cc
  4668. Fixed memory leak
  4669. * src/Piece.cc
  4670. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4671. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  4672. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  4673. command-line options.
  4674. * src/option_processing.cc
  4675. * src/ActivePeerConnectionCommand.cc
  4676. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4677. Send have message to peer if it already has the piece.
  4678. * src/BtHaveMessage.{h, cc}
  4679. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4681. port.
  4682. * src/DefaultPeerStorage.{h, cc}
  4683. * test/DefaultPeerStorageTest.cc
  4684. * src/HandshakeExtensionMessage.cc
  4685. * test/HandshakeExtensionMessageTest.cc
  4686. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4687. * src/PeerStorage.h
  4688. * test/MockPeerStorage.h
  4689. * src/PeerListenCommand.cc
  4690. * src/PeerReceiveHandshakeCommand.cc
  4691. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. Added --metalink-enable-unique-protocol option.
  4693. * src/Metalink2RequestGroup.cc
  4694. * src/option_processing.cc
  4695. * src/prefs.h
  4696. * src/version_usage.cc
  4697. * doc/aria2c.1.txt
  4698. * doc/aria2c.1
  4699. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. Allow a peer in incomingPeer to be added peers.
  4701. * src/DefaultPeerStorage.cc
  4702. * test/DefaultPeerStorageTest.cc
  4703. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4704. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4705. I could reproduce this bug in following procedure:
  4706. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4707. 2. Restart aria2.
  4708. 3. You see the download stopped around 99%.
  4709. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4710. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4711. If timeout is reached, then _nextCommand is unused and it may contains
  4712. segments and they won't be canceled. Actually, timeout is not needed
  4713. here because if the server dropped connection, then retry is made.
  4714. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Added uTorrent compatible Peer Exchange.
  4716. * src/BencodeVisitor.{h, cc}
  4717. * test/BencodeVisitorTest.cc
  4718. * src/BtConstants.h
  4719. * src/BtContext.h: Added 'private' flag.
  4720. * src/BtExtendedMessage.{h, cc}
  4721. * test/BtExtendedMessageTest.cc
  4722. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4723. reserved field.
  4724. * test/BtHandshakeMessageTest.cc
  4725. * src/BtMessageFactory.h
  4726. * src/BtRegistry.h
  4727. * src/BtRuntime.h: This class holds default extension message IDs for
  4728. aria2. By default, aria2 uses ID 8 for ut_pex.
  4729. * src/DefaultBtContext.cc
  4730. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4731. When it is true, aria2 enables ut_pex. This value is set by
  4732. PeerInteractionCommand.
  4733. * src/DefaultBtMessageFactory.{h, cc}
  4734. * test/DefaultBtMessageFactoryTest.cc
  4735. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4736. handling to DefaultBtInteractive class.
  4737. * src/DefaultExtensionMessageFactory.{h, cc}
  4738. * test/DefaultExtensionMessageFactoryTest.cc
  4739. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4740. the container(peers and incomingPeers. The equality is determined by
  4741. Peer::id).
  4742. * test/DefaultPeerStorageTest.cc
  4743. * src/ExtensionMessage.h
  4744. * test/MockExtensionMessage.h
  4745. * src/ExtensionMessageFactory.h
  4746. * test/MockExtensionMessageFactory.h
  4747. * src/HandshakeExtensionMessage.{h, cc}
  4748. * test/HandshakeExtensionMessageTest.cc
  4749. * src/MetaEntry.h
  4750. * src/Peer.{h, cc}
  4751. * src/PeerInteractionCommand.cc
  4752. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4753. addIncomingPeer.
  4754. * src/PeerMessageUtil.{h, cc}
  4755. * src/PeerObject.h
  4756. * src/UTPexExtensionMessage.{h, cc}
  4757. * test/UTPexExtensionMessageTest.cc
  4758. * src/message.h
  4759. * src/prefs.h
  4760. Fixed the bug that returns incomplete data when it contains null
  4761. character. A convenient constructor was also added.
  4762. * src/Data.{h, cc}
  4763. Rewritten.
  4764. * src/CompactPeerListProcessor.cc
  4765. Fixed typos.
  4766. * src/message.h
  4767. * src/MetaFileUtil.cc
  4768. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Added "Status Legend" label to the explanation text of 'stat' in
  4770. download result and moved it to the last. BUG#1848214
  4771. * src/RequestGroupMan.cc
  4772. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4774. * src/Makefie.am
  4775. * test/Makefile.am
  4776. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Fixed the bug that prevents aria2 from loading cookie file when expire
  4778. value is greater than 2^31-1. BUG#1851066
  4779. * src/CookieBoxFactory.cc
  4780. * test/CookieBoxFactoryTest.cc
  4781. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4782. Fixed possible memory leak when an exception is thrown.
  4783. * src/XML2SAXMetalinkProcessor.cc
  4784. Added Expat support. If both libxml2 and Expat are installed, then
  4785. libxml2 is used by default.
  4786. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4787. ExpatMetalinkProcessor according to the configuration.
  4788. * src/ExpatMetalinkProcessor.{h, cc}
  4789. * src/main.cc: Removed libxml2 specific header and init/free function.
  4790. * src/MetalinkProcessorFactory.{h, cc}
  4791. * src/MetalinkHelper.cc
  4792. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4793. * src/MetalinkProcessor.h
  4794. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4795. MetalinkProcessorTest is used instead.
  4796. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4797. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4798. MetalinkProcessorFactory::newInstance().
  4799. * m4/libexpat.m4
  4800. * configure.ac: Added configuration options for libexpat.
  4801. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Disabled -s option in metalink download.
  4803. * src/Metalink2RequestGroup.cc
  4804. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. If several protocols are available for a mirror in metalink file,
  4806. aria2 now use one of them. --metalink-preferred-protocol option was
  4807. added to specify the preference of protocol.
  4808. * src/AbstractCommand.cc
  4809. * src/OptionHandlerFactory.cc
  4810. * src/ServerHost.{h, cc}
  4811. * src/Metalink2RequestGroup.cc
  4812. * src/RequestGroup.{h, cc}
  4813. * test/RequestGroupTest.cc
  4814. * src/option_processing.cc
  4815. * src/prefs.h
  4816. * src/HttpResponseCommand.cc
  4817. * src/MetalinkResource.{h, cc}
  4818. * src/FtpNegotiationCommand.cc
  4819. * src/MetalinkEntry.{h, cc}
  4820. * src/MetalinkEntryTest.cc
  4821. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4822. Code cleanup and added debug log.
  4823. * src/PeerConnection.cc
  4824. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. Compiler error fix: applied the patch by Tiziano Mueller
  4826. * src/RequestGroup.cc
  4827. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4829. in stopped and completed event.
  4830. * src/AnnounceList.{h, cc}
  4831. * test/AnnounceListTest.cc
  4832. * src/DefaultBtAnnounce.cc
  4833. * test/DefaultBtAnnounceTest.cc
  4834. Sorted URLs.
  4835. * test/Metalink2RequestGroupTest.cc
  4836. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4837. Removed unnecessary string copy. Updated doc and corrected indentation.
  4838. * src/Base64.cc
  4839. Fixed compilation warnings
  4840. * test/DataTest.cc
  4841. * test/HttpRequestTest.cc
  4842. * test/MetaFileUtilTest.cc
  4843. * test/RequestTest.cc
  4844. * Release 0.12.0
  4845. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Updated translations
  4847. * po/{de,fr,ja,nl,ru}.po
  4848. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4849. translations. Many thanks to translators.
  4850. * po/{ca,es,it,pt_BR,sv}.po
  4851. * po/LINGUAS
  4852. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4853. Added a notice about URL
  4854. * src/version_usage.cc
  4855. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4856. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4857. aria2 repeatedly sends stopped request when tracker returns error code.
  4858. * src/AnnounceList.cc
  4859. * test/AnnounceListTest.cc
  4860. * src/AnnounceTier.h
  4861. Added a message when ctrl-c is hit.
  4862. Now second ctrl-c is also handled in signal handler.
  4863. * src/RequestGroupMan.{h, cc}
  4864. * src/RequestGroup.{h, cc}
  4865. * src/MultiUrlRequestInfo.cc
  4866. * src/DownloadEngine.cc
  4867. * src/TrackerWatcherCommand.cc
  4868. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. Code cleanup
  4870. * src/Base64.cc (encode)
  4871. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Changed Direct/IO enable/disable procesure in file allocation routine.
  4873. * src/SingleFileAllocationIterator.cc
  4874. (SingleFileAllocationIterator):
  4875. Disable directIO if offset is not multiple of 512.
  4876. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4877. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4878. Enable created SingleFileAllocationIterator's directIO.
  4879. * src/FileAllocationEntry.cc
  4880. (FileAllocationEntry): Enable directIO here.
  4881. (~FileAllocationEntry): Disable directIO here.
  4882. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4883. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4884. * src/Peer.{h, cc}
  4885. * src/DefaultPieceStorage.cc
  4886. * test/DefaultPieceStorageTest.cc
  4887. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4888. Rewritten direct I/O support routine
  4889. * src/SingleFileAllocationIterator.cc
  4890. * src/MultiDiskAdaptor.{h, cc}
  4891. * src/ByteArrayDiskWriter.h
  4892. * src/AbstractSingleDiskAdaptor.h
  4893. * src/AbstractDiskWriter.cc
  4894. * src/DefaultPieceStorage.cc
  4895. * src/DiskWriter.h
  4896. * src/BinaryStream.h
  4897. * src/IteratableChunkChecksumValidator.cc
  4898. * src/IteratableChecksumValidator.cc
  4899. * src/CheckIntegrityEntry.cc
  4900. * src/FileAllocationEntry.cc
  4901. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. Fixed typo
  4903. * src/version_usage.cc
  4904. Updated doc
  4905. * doc/aria2c.1.txt
  4906. * doc/aria2c.1
  4907. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Fixed compile error without message digest support.
  4909. * src/FileMetalinkParserState.cc
  4910. * src/MetalinkParserController.{h, cc}
  4911. * test/XML2SAXMetalinkProcessorTest.cc
  4912. * test/MetalinkParserControllerTest.cc
  4913. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Enable direct I/O support in checksum checking.
  4915. * src/IteratableChunkChecksumValidator.{h, cc}
  4916. * test/IteratableChunkChecksumValidatorTest.cc
  4917. * src/CheckIntegrityEntry.cc
  4918. * src/PieceHashCheckIntegrityEntry.cc
  4919. * src/IteratableChecksumValidator.{h, cc}
  4920. * src/BtCheckIntegrityEntry.cc: Added doc.
  4921. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4922. Added --allow-piece-length-change option.
  4923. * src/DefaultBtProgressInfoFile.cc
  4924. * test/DefaultBtProgressInfoFileTest.cc
  4925. * src/OptionHandlerFactory.cc
  4926. * src/option_processing.cc
  4927. * src/prefs.h
  4928. * src/version_usage.cc
  4929. * doc/aria2c.1.txt
  4930. * doc/aria2c.1
  4931. Fixed: duplicated result entry appears when exception is thrown in
  4932. RequestGroup::createInitiateConnectionCommand().
  4933. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4934. Add RequestGroup to _requestGroup after RequetGroup::
  4935. createInitiateConnectionCommand() succeeds.
  4936. Externalized message
  4937. * src/XML2SAXMetalinkProcessor.cc
  4938. * src/message.h
  4939. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4940. Forced download abort when received negative response from http/ftp
  4941. server.
  4942. * src/HttpResponseCommand.cc
  4943. * src/FtpNegotiationCommand.cc
  4944. * src/HttpResponse.cc
  4945. * src/FtpConnection.cc
  4946. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4948. the predecessor, Xml2MetalinkParser class.
  4949. I tested them against 94KB metalink file with 1234 chunk checksums.
  4950. The new one parsed it in 22msec, while it took 6000msec with old one.
  4951. * src/XML2SAXMetalinkProcessor.{h, cc}
  4952. * test/XML2SAXMetalinkProcessorTest.cc
  4953. * src/MetalinkParserController.{h, cc}
  4954. * test/MetalinkParserControllerTest.cc
  4955. * src/MetalinkParserState.h: Also added 16 subclasses.
  4956. * src/main.cc
  4957. * src/Metalink2RequestGroup.cc
  4958. * src/MetalinkHelper.cc
  4959. * src/MetalinkEntry.cc
  4960. * src/ChunkChecksum.h
  4961. Rewritten Base64 class for better performance.
  4962. * src/Base64.{h, cc}
  4963. * test/Base64Test.cc
  4964. * src/HttpRequest.cc
  4965. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. Fixed the bug#1841757: aria2 will connect to server to only get
  4967. file size.
  4968. * src/StreamFileAllocationEntry.cc
  4969. * src/option_processing.cc
  4970. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4971. downloads.
  4972. * src/FtpNegotiationCommand.cc
  4973. Suppressed wrong message when finding PreDownloadHandler
  4974. * src/RequestGroup.cc
  4975. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Updated usage
  4977. * src/version_usage.cc
  4978. Updated man page
  4979. * doc/aria2c.1.txt
  4980. * doc/aria2c.1
  4981. Updated po files
  4982. * po/aria2c.pot
  4983. * po/*.po
  4984. * po/*.gmo
  4985. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4986. Eliminated g++-4.2 warning
  4987. * src/DownloadHandlerConstants.{h, cc}
  4988. * src/Util.cc
  4989. * test/MetaFileUtilTest.cc
  4990. * test/PStringBuildVisitorTest.cc
  4991. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4992. * src/RequestGroup.cc
  4993. * src/BtCheckIntegrityEntry.cc
  4994. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4995. Fixed a2io.h
  4996. * src/a2io.h
  4997. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Added direct I/O support. The current implementation uses O_DIRECT,
  4999. which is not posix standard and is tested on linux 2.6.21.
  5000. Currently only file allocation uses direct I/O.
  5001. * src/SingleFileAllocationIterator.{h, cc}
  5002. * test/SingleFileAllocationIteratorTest.cc
  5003. * src/MultiFileAllocationIterator.{h, cc}
  5004. * test/MultiFileAllocationIteratorTest.cc
  5005. * src/BinaryStream.h
  5006. * src/DiskWriter.h
  5007. * src/AbstractDiskWriter.{h, cc}
  5008. * src/ByteArrayDiskWriter.h
  5009. * src/DiskAdaptor.h
  5010. * src/AbstractSingleDiskAdaptor.{h, cc}
  5011. * src/MultiDiskAdaptor.{h, cc}
  5012. * src/FileAllocationEntry.cc
  5013. * src/Util.{h, cc}
  5014. * src/OptionHandlerFactory.cc
  5015. * src/prefs.h
  5016. * src/version_usage.cc
  5017. * src/option_processing.cc
  5018. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  5019. handleException.
  5020. * src/MultiFileAllocationIterator.cc
  5021. Added EINTR handling
  5022. * src/SocketCore.cc
  5023. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Updated usage
  5025. * src/version_usage.cc
  5026. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5027. Applied Ross's patch for MinGW port.
  5028. * src/DownloadEngine.h
  5029. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Set Content-Type to SingleFileDownloadContext when http response is
  5031. received.
  5032. * src/HttpResponseCommand.cc
  5033. * src/HttpResponse.{h, cc}
  5034. * test/HttpResponseTest.cc
  5035. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Rewritten to add content-type support.
  5037. * src/DownloadHandler.{h, cc}
  5038. * src/BtPostDownloadHandler.{h, cc}
  5039. * test/BtPostDownloadHandlerTest.cc
  5040. * src/MetalinkPostDownloadHandler.{h, cc}
  5041. * test/MetalinkPostDownloadHandlerTest.cc
  5042. * src/PostDownloadHandler.{h, cc}
  5043. * src/DownloadHandlerConstants.{h, cc}
  5044. * src/RequestGroup.cc
  5045. * src/HttpResponseCommand.cc
  5046. * src/FtpNegotiationCommand.cc
  5047. * src/SingleFileDownloadContext.{h, cc}
  5048. * src/RequestGroup.h
  5049. * src/RequestGroupCriteria.h
  5050. * src/ContentTypeRequestGroupCriteria.h
  5051. Added 'mem' option value for --follow-metalink, --follow-torrent.
  5052. If it is give, metalink/torrent file is not written to the disk, but
  5053. just is kept in memory. Parsing is occurred on memory.
  5054. * src/MetalinkHelper.{h, cc}
  5055. * src/MetalinkProcessor.h
  5056. * src/Xml2MetalinkProcessor.{h, cc}
  5057. * test/Xml2MetalinkProcessorTest.cc
  5058. * src/DownloadHandlerFactory.{h, cc}
  5059. * test/DownloadHandlerFactoryTest.cc
  5060. * src/PreDownloadHandler.{h, cc}
  5061. * src/OptionHandlerFactory.cc
  5062. * src/DefaultBtContext.{h, cc}
  5063. * test/DefaultBtContextTest.cc
  5064. * src/version_usage.cc
  5065. * src/Metalink2RequestGroup.{h, cc}
  5066. * src/RequestGroup.{h, cc}
  5067. * src/a2functional.h
  5068. * test/a2functionalTest.cc
  5069. * src/MemoryBufferPreDownloadHandler.{h, cc}
  5070. * src/OptionHandlerImpl.h
  5071. * src/prefs.h
  5072. * src/Util.{h, cc}
  5073. * test/UtilTest.cc
  5074. Keep DownloadResult rather than RequestGroup after downloads to reduce
  5075. memory usage.
  5076. * src/RequestGroupMan.{h, cc}
  5077. * src/DownloadEngine.cc
  5078. * src/BtDependency.{h, cc}: Changed the type of dependee from
  5079. WeakHandle to SharedHandle because WeakHandle could be null.
  5080. * src/RequestGroup.{h, cc}
  5081. * src/DownloadEngineFactory.cc
  5082. * src/DownloadResult.h
  5083. Set totalLength after download finished
  5084. * src/UnknownLengthPieceStorage.{h, cc}
  5085. Keep torrent file specified in metalink in memory.
  5086. * src/Metalink2RequestGroup.cc
  5087. * src/BtDependency.cc
  5088. * src/TrueRequestGroupCriteria.h
  5089. Fixed the bug: seekg is used where seekp should be used.
  5090. * src/ByteArrayDiskWriter.cc
  5091. * test/ByteArraydiskWriterTest.cc
  5092. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Fixed syntax error
  5094. * test/SequenceTest.cc
  5095. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5097. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  5098. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5099. * src/RequestGroup.cc (downloadFinishedByFileLength)
  5100. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5101. Added the check to see whether ares_host_callback accepts timeouts
  5102. with c-ares; only c-ares 1.5.0 or newer accepts it.
  5103. * src/NameResolver.{h, cc}
  5104. * m4/libcares.m4
  5105. * configure.ac: Set C++ for language choice.
  5106. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5107. Fixed: compilation fails without c-ares/ares
  5108. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  5109. Generate http/ftp commands only when download is incomplete.
  5110. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  5111. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. Corrected typo. Examples are removed since they are available in man
  5113. page.
  5114. * src/version_usage.cc
  5115. Updated man page.
  5116. * doc/aria2c.1
  5117. * doc/aria2c.1.txt
  5118. * doc/makeman: Commented out sed command.
  5119. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5120. Throw DlAbortEx when a remote file is not found.
  5121. * src/HttpResponse.cc
  5122. * src/FtpNegotiationCommand.cc
  5123. * src/message.h
  5124. Overwrite an existing file if --allow-overwrite=true is given.
  5125. * src/RequestGroup.cc
  5126. Removed unused functions
  5127. * src/AbstractCommand.h
  5128. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5129. Removed 'extern' from 'extern typedef ...' in src/*.h
  5130. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5131. Updated usage
  5132. * src/version_usage.cc
  5133. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5134. Trim announce URL
  5135. * src/DefaultBtContext.cc
  5136. * test/ShaVisitorTest.cc
  5137. Trim argument s. Give trimed s to exception constructor.
  5138. * src/Util.cc (parseInt)(parseLLInt)
  5139. * test/UtilTest.cc
  5140. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Set precision back to 1.
  5142. * src/ConsoleStatCalc.cc (calculateStat)
  5143. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Replaced strtol with Util::parseInt
  5145. * src/ChunkedEncoding.cc
  5146. * src/HttpConnection.cc
  5147. * src/CookieBoxFactory.cc
  5148. * src/ParameterizedStringParser.cc
  5149. * src/Util.cc
  5150. * test/UtilTest.cc
  5151. * test/OptionHandlerTest.cc
  5152. * src/Request.cc
  5153. Throw exception when empty string is given. The message for exception
  5154. changed.
  5155. * src/Util.cc (parseInt)(parseLLInt)
  5156. * src/message.h
  5157. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Set precision to 2 because share ratio is rounded into 1.0 if precision
  5159. set to 1.
  5160. * src/ConsoleStatCalc.cc (calculateStat)
  5161. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Preallocate non-requested file which is adjacent forward to requested
  5163. file('requested' files means the files given in --select-file option)
  5164. if they share a same piece.
  5165. This fixes long pause in the file system which doesn't support sparse
  5166. files like FAT32 while downloading.
  5167. * src/MultiFileAllocationIterator.{h, cc}
  5168. * test/MultiFileAllocationIteratorTest.cc
  5169. * src/FileEntry.{h, cc}
  5170. Removed unused _option.
  5171. * src/MultiDiskAdaptor.h
  5172. * test/MultiDiskAdaptorTest.cc
  5173. * src/DefaultPieceStorage.cc
  5174. Set the default value of --seed-ratio to 1.0.
  5175. If 0.0 is given, then seeding continues regardless of share ratio.
  5176. * src/version_usage.cc
  5177. * src/option_processing.cc
  5178. * src/BtSetup.cc
  5179. * doc/aria2c.1.txt
  5180. * doc/aria2c.1
  5181. Fixed: Selective download is not working in BitTorrent
  5182. * src/RequestGroup.cc
  5183. Introduced Sequence class. Use this instead of Util::unfoldRange()
  5184. * src/PieceStorage.h
  5185. * test/MockPieceStorage.h
  5186. * src/UnknownLengthPieceStorage.h
  5187. * src/DefaultPieceStorage.{h, cc}
  5188. * src/Metalink2RequestGroup.cc
  5189. * src/RequestGroup.cc
  5190. * src/Sequence.h
  5191. * test/SequenceTest.cc
  5192. * src/IntSequence.h
  5193. * src/message.h
  5194. * src/Util.{h, cc}
  5195. * test/UtilTest.cc
  5196. Added new function 'parse' to catch exception thrown by subclass's
  5197. parseArg
  5198. * src/OptionHandler.h
  5199. * src/OptionParser.cc
  5200. * src/NameMatchOptionHandler.h
  5201. * src/OptionHandlerImpl.h
  5202. * test/OptionHandlerTest.cc
  5203. Added IntegerRangeOptionHandler. Used for --listen-port and
  5204. --select-file. Now --listen-port accepts range of port.
  5205. * src/OptionHandlerFactory.cc
  5206. * src/version_usage.cc
  5207. * src/OptionHandlerImpl.h
  5208. * src/option_processing.cc
  5209. * src/BtSetup.cc
  5210. * src/PeerListenCommand.{h, cc}
  5211. * doc/aria2c.1.txt
  5212. * doc/aria2c.1
  5213. Implemented operator< for Exception class to provide easy way to print
  5214. exception stack trace.
  5215. * src/Exception.{h, cc}
  5216. * src/main.cc
  5217. * src/option_processing.cc
  5218. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. * src/version_usage.cc
  5220. (showVersion): Reworked.
  5221. (showUsage): Added examples.
  5222. Removed Hint for total length and file name.
  5223. * src/Metalink2RequestGroup.cc
  5224. * src/RequestGroup.{h, cc}
  5225. * src/HttpResponseCommand.cc
  5226. * src/FtpNegotiationCommand.cc
  5227. Now --follow-torrent and --follow-metalink option work properly.
  5228. * src/RequestGroup.cc
  5229. Updated man page
  5230. * doc/aria2c.1.txt
  5231. * doc/aria2c.1
  5232. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Removed.
  5234. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  5235. Use Segment::operator==()
  5236. * src/HttpConnection.cc
  5237. * src/Segment.h
  5238. Updated usage
  5239. * src/version_usage.cc
  5240. Added EINTR treatment.
  5241. * src/SocketCore.cc
  5242. * src/AbstractDiskWriter.cc
  5243. Rewritten.
  5244. * src/Util.cc (rangedFileCopy)
  5245. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5246. Fixed typo.
  5247. * src/version_usage.cc
  5248. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Implemented. Now -c option works fine.
  5250. * src/DefaultPieceStorage.cc (markPiecesDone)
  5251. * test/DefaultPieceStorageTest.cc
  5252. Removed.
  5253. * src/SegmentMan.{h, cc}
  5254. (markAllPiecesDone)
  5255. (markPieceDone)
  5256. Synchronized po files with
  5257. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  5258. * src/fr.po
  5259. * src/ru.po
  5260. * src/de.po
  5261. * src/ja.po
  5262. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Added ifdef and some modifications to compile without BitTorrent,
  5264. Metalink, MessageDigest
  5265. support.
  5266. * src/PieceHashCheckIntegrityEntry.cc
  5267. * src/MetalinkEntry.h
  5268. * src/version_usage.cc
  5269. * src/main.cc
  5270. * src/DownloadEngine.{h, cc}
  5271. * src/Metalink2RequestGroup.cc
  5272. * src/Peer.cc
  5273. * src/RequestGroup.cc
  5274. * src/MetalinkHelper.cc
  5275. * test/DefaultPieceStorageTest.cc
  5276. * test/MetalinkPostDownloadHandlerTest.cc
  5277. * test/Metalink2RequestGroupTest.cc
  5278. Hide TOTAL SPD when all downloads complete.
  5279. * src/ConsoleStatCalc.cc
  5280. Log target system information.
  5281. * src/main.cc
  5282. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5283. Now --metalink-location accepts a comma-deliminated list of locations.
  5284. * src/MetalinkEntry.{h, cc}
  5285. * test/MetalinkEntryTest.cc
  5286. * src/version_usage.cc
  5287. * src/Metalink2RequestGroup.cc
  5288. * src/Xml2MetalinkProcessor.cc
  5289. * test/Xml2MetalinkProcessorTest.cc
  5290. * doc/aria2c.1.txt
  5291. * doc/aria2c.1
  5292. * src/Util.cc (toUpper)(toLower): Rewritten.
  5293. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5294. Added the ability to detect duplicate download entry which is about to
  5295. download the same file other RequestGroup is downloading.
  5296. * src/RequestGroup.cc
  5297. * src/HttpResponseCommand.cc
  5298. * src/FtpNegotiationCommand.cc
  5299. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5300. Recalculates download progress when loading a control file,
  5301. if the piece length of DownloadContext is different from the one saved
  5302. in the control file. Currently in-flight pieces are ignored.
  5303. * src/DefaultBtProgressInfoFile.cc
  5304. * test/DefaultBtProgressInfoFileTest.cc
  5305. * src/Util.{h, cc}
  5306. * test/UtilTest.cc
  5307. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Do not rotate tiers in announce-list.
  5309. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  5310. AnnounceList::allTiersFailed() used instead to detect whether all
  5311. tiers are tried and failed.
  5312. * test/DefaultBtAnnounceTest.cc
  5313. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  5314. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  5315. * test/AnnounceListTest.cc
  5316. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  5317. clause. Catch RecoverableException instead of DlRetryEx instead.
  5318. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Implemented checksum validation feature(1 checksum for each file)
  5320. The validation takes place after the download.
  5321. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  5322. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  5323. * src/CheckIntegrityCommand.cc: Changed log message.
  5324. * src/Metalink2RequestGroup.cc: Set checksum to
  5325. SingleFileDownloadContext.
  5326. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  5327. PieceHashCheckIntegrity class.
  5328. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  5329. PieceHashCheckIntegrity class.
  5330. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  5331. * src/IteratableValidator.h: New class.
  5332. * src/message.h
  5333. * src/CheckIntegrityEntry.{h, cc}
  5334. * src/IteratableChunkChecksumValidator.{h, cc}
  5335. * src/SingleFileDownloadContext.h
  5336. * src/DownloadCommand.cc
  5337. --allow-overwrite=true is no longer needed to check file integrity
  5338. before download in BitTorrent download.
  5339. * src/RequestGroup.cc (getInitialCommand)
  5340. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  5341. throws exception.
  5342. * src/RequestGroupMan.cc (getInitialCommands)
  5343. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. urlencode the given url inside Request::parseUrl(...)
  5345. * src/Request.{h, cc}
  5346. * src/Util.{h, cc}
  5347. * test/RequestTest.cc
  5348. Removed #!metalink3! notation support because it is deleted from
  5349. the metalink specification.
  5350. * src/Request.{h, cc}
  5351. * test/RequestTest.cc
  5352. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5353. Don't connect server before checking file integrity at startup, if
  5354. filesize and output file path are known.
  5355. * src/AbstractCommand.cc
  5356. * src/StreamFileAllocationEntry.cc
  5357. * src/Metalink2RequestGroup.cc
  5358. * src/RequestGroup.{h, cc}
  5359. * src/HttpResponseCommand.cc
  5360. * src/FtpNegotiationCommand.cc
  5361. Added DownloadFailureException. If it is thrown, RequestGroup should
  5362. halt.
  5363. * src/AbstractCommand.cc
  5364. * src/DownloadFailureException.h
  5365. * src/RequestGroup.cc
  5366. Catch RecoverableException, instead of DlAbortEx.
  5367. * src/RequestGroupMan.cc
  5368. * src/FillRequestGroupCommand.cc
  5369. * src/MetaFileUtil.cc
  5370. * src/IteratableChunkChecksumValidator.cc
  5371. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  5372. getGID())
  5373. * src/CheckIntegrityCommand.cc
  5374. * src/message.h
  5375. Print gid instead of idx.
  5376. * src/RequestGroupMan.cc
  5377. Removed exception throwers declaration.
  5378. * src/DirectDiskAdaptor.{h, cc}
  5379. * src/SocketCore.{h, cc}
  5380. * src/MultiDiskAdaptor.{h, cc}
  5381. * src/HttpConnection.{h, cc}
  5382. * src/HttpResponse.{h, cc}
  5383. * src/DiskAdaptor.{h, cc}
  5384. * src/CopyDiskAdaptor.{h, cc}
  5385. * src/MultiDiskAdaptor.{h, cc}
  5386. * src/HttpHeaderProcessor.{h, cc}
  5387. * src/AbstractSingleDiskAdaptor.{h, cc}
  5388. * src/Util.{h, cc}
  5389. * test/UtilTest.cc
  5390. * src/DefaultDiskWriter.{h, cc}
  5391. * src/FtpConnection.{h, cc}
  5392. * src/AbstractDiskWriter.{h, cc}
  5393. Removed duplicate code.
  5394. * src/StreamCheckIntegrityEntry.cc
  5395. Removed unnecessary include.
  5396. * src/DiskWriter.h
  5397. Included Exception.h
  5398. * src/option_processing.cc
  5399. Included 2 files and added doc
  5400. * src/TrackerWatcherCommand.cc
  5401. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5402. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5403. Changed CheckIntegrityEntry interface so that it can define
  5404. the action when all the chunk checksums are valid.
  5405. * src/CheckIntegrityEntry.h
  5406. * src/StreamCheckIntegrityEntry.{h, cc}
  5407. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5408. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5409. to exit rather than doing seeding. So, it would be good to toggle this
  5410. behavior.
  5411. * src/CheckIntegrityCommand.cc
  5412. * src/AbstractCommand.cc
  5413. * src/RequestGroup.cc
  5414. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5415. Reflect the download length of in-flight pieces.
  5416. It makes the download length readout more precise.
  5417. * src/DefaultPieceStorage.{h, cc}
  5418. * test/DefaultPieceStorageTest.cc
  5419. * src/a2functional.h
  5420. * test/a2functionalTest.cc
  5421. Lower CPU load when --max-download-limit is used.
  5422. There is up and down in speed indicator when enabling
  5423. http-pipelining but a download goes well. I think the problem is that
  5424. because http-pipelining is enabled, DownloadCommand is created for
  5425. each segment and in its constructor, PeerStat::downloadStart() is
  5426. called. In PeerStat::downloadStart(), speed calculation object is
  5427. reseted, which makes download speed zero.
  5428. * src/DownloadCommand.cc
  5429. Rewritten using accumulate.
  5430. * src/RequestGroupMan.cc (calculateStat)
  5431. Code clearnup.
  5432. * src/FtpNegotiationCommand.cc
  5433. * src/HttpResponseCommand.cc
  5434. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. Fixed: Can not resume: aria2 reports download already finished.
  5436. * src/AbstractCommand.{h, cc}
  5437. * src/HttpResponseCommand.cc
  5438. * src/FtpNegotiateCommand.cc
  5439. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Now a file is stored in the directory specified in .metalnk file
  5441. (file[@name]).
  5442. * src/Metalink2RequestGroup.cc
  5443. Create the directory structure when opening the file if it doesn't
  5444. exist.
  5445. * src/AbstractDiskWriter.cc
  5446. * src/Util.{h, cc}
  5447. * src/File.h
  5448. * test/UtilTest.cc
  5449. Removed file name comparison
  5450. * src/Metalink2RequestGroup.cc
  5451. * src/HttpResponseCommand.cc
  5452. Rewritten using Util::mkdirs()
  5453. * src/FileEntry.cc (setupDir)
  5454. * test/FileEntryTest.cc
  5455. Updated doc
  5456. * src/SingleFileDownloadContext.h
  5457. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Now SleepCommand dispatches nextCommand when halt is requested.
  5459. It avoids a possible long wait after hitting CTRL-C.
  5460. * src/SleepCommand.{h, cc}
  5461. * src/RequestGroupAware.{h, cc}
  5462. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5464. to open listen port, then remove the port number from the tracker
  5465. request.
  5466. * src/DefaultBtAnnounce.cc
  5467. * test/DefaultBtAnnounceTest.cc
  5468. * test/MockPieceStorage.h
  5469. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5470. them more testable.
  5471. * src/DefaultBtAnnounce.{h, cc}
  5472. * src/DefaultBtContext.{h, cc}
  5473. * src/Util.{h, cc}
  5474. * test/DefaultBtAnnounceTest.cc
  5475. * test/DefaultBtContextTest.cc
  5476. * test/UtilTest.cc
  5477. Added 'B' to upload bytes readout.
  5478. * src/ConsoleStatCalc.cc
  5479. Now the listen port for BitTorrent download is opened when it is
  5480. needed.
  5481. * src/DownloadEngineFactory.cc
  5482. * src/BtSetup.{h, cc}
  5483. * src/PeerListenCommand.{h, cc}
  5484. Now an exception thrown while parsing tracker response is now logged.
  5485. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  5486. called, which means no retry is made in this case, assuming a tracker
  5487. has a problem.
  5488. * src/TrackerWatcherCommand.cc
  5489. Fixed: downloading a file whose length is unkown fails.
  5490. * src/DownloadCommand.cc
  5491. Simplified prepareForNextSegment()
  5492. * src/DownloadCommand.cc
  5493. Updated
  5494. * po/POTFILES.in
  5495. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Re-implemented a file listing for Metalink, which was dropped while
  5497. http/ftp/torrent integration was being implemented.
  5498. * src/MetalinkHelper.{h, cc}: New class.
  5499. * test/MetalinkHelperTest.cc
  5500. * src/main.cc
  5501. * src/Metalink2RequestGroup.cc
  5502. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Added the ability to display the detailed torrent file information.
  5504. Now -S option gives not only a file listing, but also total download
  5505. length, info hash, announce URI, piece length, the number of pieces,
  5506. and mode(single or multi-torrent).
  5507. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  5508. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  5509. KiB)
  5510. * test/UtilTest.cc
  5511. * src/main.cc
  5512. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Added ftp://USER:PASSWD@Servername automatic parsing.
  5514. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  5515. _password. Recognize username and password in URI.
  5516. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  5517. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  5518. * src/RequestFactory.{h, cc}: Removed.
  5519. * src/AuthConfigFactory.{h, cc}: New class.
  5520. * src/FtpConnection.cc: Use AuthConfigFactory.
  5521. * src/HttpRequest.cc: Use AuthConfigFactory.
  5522. * test/HttpRequestTest.cc: Updated.
  5523. * test/RequestTest.cc: Updated.
  5524. * test/AuthConfigFactoryTest.cc: New class.
  5525. * test/RequestFactoryTest.cc: Removed.
  5526. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Use RequestGroup::allDownloadFinished() to decide whether the control
  5528. file should be removed or saved.
  5529. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  5530. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  5531. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. Use File::renameTo()
  5533. * src/DefaultBtProgressInfoFile.cc
  5534. Added --no-file-allocation-limit command-line option.
  5535. * src/version_usage.cc
  5536. * src/option_processing.cc
  5537. * src/OptionHandlerFactory.cc
  5538. * src/RequestGroup.{h, cc}
  5539. * src/BtCheckIntegrityEntry.cc
  5540. * src/StreamCheckIntegrityEntry.cc
  5541. * src/prefs.h
  5542. * doc/aria2c.1.txt
  5543. * doc/aria2c.1
  5544. Now prealloc is the default value for --file-allocation option.
  5545. * src/version_usage.cc
  5546. * src/option_processing.cc
  5547. * doc/aria2c.1.txt
  5548. * doc/aria2c.1
  5549. Don't URL-encode user-agent.
  5550. * src/HttpRequest.cc
  5551. Updated translations
  5552. * po/LINGUAS: Added nl for Dutch translation.
  5553. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  5554. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  5555. * po/POTFILES.in: Updated.
  5556. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Added the ability to recognize url-list in a torrent file.
  5558. The retrieved URLs are attached to the corresponding FileEntry.
  5559. * src/DefaultBtContext.{h, cc}
  5560. * src/FileEntry.{h, cc}
  5561. * test/DefaultBtContextTest.cc
  5562. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  5564. after the download finishes.
  5565. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5566. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  5567. the data smaller than block length.
  5568. A block length can be specified by constructor's argument.
  5569. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  5570. Get a missing piece in the range of given FileEntry. This function is
  5571. not used in the program yet.
  5572. * src/Util.h: Added some macros.
  5573. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Added HTTP/1.1 keep alive and pipelining support.
  5575. See --enable-http-keep-alive and --enable-http-pipelining option.
  5576. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  5577. Segment.
  5578. * src/HttpDownloadCommand.{h, cc}
  5579. * src/OptionHandlerFactory.cc
  5580. * src/HttpConnection.{h, cc}
  5581. * src/version_usage.cc
  5582. * src/HttpInitiateConnectionCommand.cc
  5583. * src/FtpInitiateConnectionCommand.cc
  5584. * src/Segment.h
  5585. * src/HttpRequestCommand.{h, cc}
  5586. * src/option_processing.cc
  5587. * src/prefs.h
  5588. * src/HttpResponseCommand.cc
  5589. * src/SegmentMan.{h, cc}
  5590. * src/FtpNegotiateCommand.cc
  5591. * src/HttpProxyResponseCommand.cc
  5592. * src/Request.cc
  5593. * src/HttpRequest.cc
  5594. * src/DownloadCommand.cc
  5595. * test/HttpRequestTest.cc
  5596. * test/RequestTest.cc
  5597. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  5599. finished.
  5600. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  5602. catching it inside the method.
  5603. When no file entry is found in a metalink without querying user
  5604. preferences, throw the exception with the error message that suggests
  5605. metalink file is probably broken.
  5606. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  5607. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5608. Fixed the bug that prevents remote Metalink/Torrent file from begin
  5609. processed.
  5610. * src/RequestGroupMan.cc (removeStoppedGroup)
  5611. Added debug message.
  5612. * src/BtPostDownloadHandler.cc
  5613. * src/MetalinkPostDownloadHandler.cc
  5614. * src/PostDownloadHandler.{h, cc}
  5615. * src/RequestGroup.cc
  5616. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  5618. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5619. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  5620. stops and there are any unfinished or in-progress downloads.
  5621. Added the legend of "stat".
  5622. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Throw exception when chunck checksum verification fails.
  5624. * src/DownloadCommand.cc (validatePieceHash): New function.
  5625. * src/PiecedSegment.{h, cc} (clear): New function.
  5626. * src/GrowSegment.{h, cc} (clear): New function.
  5627. * src/Segment.h (clear): New function.
  5628. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  5629. * test/SegmentTest.cc
  5630. * test/GrowSegmentTest.cc
  5631. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Do not send referer when redirected.
  5633. * src/Request.cc (redirectUrl)
  5634. * test/RequestTest.cc
  5635. * test/HttpRequestTest.cc
  5636. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Implemented BitTorrent/http/ftp integrated download.
  5638. I've rewritten lots of files and now some headers have forward
  5639. class declarations to reduce compile time.
  5640. The implementation is extremely alpha stage, I recommend to use this
  5641. for testing purpose only.
  5642. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Fixed the compilation error on 64bit platform.
  5644. * test/HttpHeaderProcessorTest.cc
  5645. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Merged Ross's patch that fixes compilation problem in MinGW
  5647. * test/DefaultBtProgressInfoFileTest.cc
  5648. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. Updated fr.po by sebone
  5650. * po/fr.po
  5651. Updated man page.
  5652. * doc/aria2c.1.txt
  5653. * Release 0.11.3
  5654. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  5656. failure in Metalink.
  5657. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5658. Automatically save *.aria2 control file of http/ftp download in every
  5659. 60 seconds.
  5660. * src/AutoSaveCommand.{h, cc}: New class.
  5661. * src/TimeBasedCommand.{h, cc}: New class.
  5662. * src/DownloadEngineFactory.cc (newConsoleEngine)
  5663. Disable parameterized URI support by default. Added -P option to
  5664. enable the feature.
  5665. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  5666. * src/OptionHandlerFactory.cc
  5667. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  5668. Updated Japanese translation.
  5669. * po/ja.po
  5670. Updated man page.
  5671. * doc/aria2c.1.txt
  5672. * Release 0.11.3-rc
  5673. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5675. it is successful, then renamed to *.aria2.
  5676. This prevents *.aria2 file from being truncated or corrupted when
  5677. file system becomes out of space.
  5678. * src/DefaultBtProgressInfoFile.cc (save)
  5679. * src/SegmentMan.cc (save)
  5680. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5681. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Reduced the fragmentation of bitfield in http/ftp download.
  5683. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5684. * test/BitfieldManTest.cc
  5685. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Added the ability to disable segmented download in .metalink.
  5687. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5688. 'url' tag.
  5689. * src/MetalinkEntry.{h, cc}
  5690. * src/RequestResource.{h, cc}
  5691. * src/MetalinkRequestInfo.cc
  5692. * src/Xml2MetalinkProcessor.cc
  5693. * test/Xml2MetalinkProcessorTest.cc
  5694. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5695. Added parameterized URI support.
  5696. * src/main.cc: -Z option added.
  5697. * src/OptionHandlerFactory.cc
  5698. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5699. * src/PStringDatum.h: New class.
  5700. * src/PStringSegment.{h,cc}: New class.
  5701. * src/PStringNumLoop.h: New class.
  5702. * src/PStringSelect.h: New class.
  5703. * src/NumberDecorator.h: New class.
  5704. * src/FixedWidthNumberDecorator.h: New class.
  5705. * src/AlphaNumberDecorator.h: New class.
  5706. * src/PStringVisitor.h: New class.
  5707. * src/PStringBuildVisitor.{h,cc}: New class.
  5708. * src/ParameterizedStringParser.{h,cc}: New class.
  5709. * src/Util.{h,cc}
  5710. (isNumber): New function.
  5711. (isLowercase): New function.
  5712. (isUppercase): New function.
  5713. (alphaToNum): New function.
  5714. * test/ParameterizedStringParserTest.cc: New class.
  5715. * test/AlphaNumberDecoratorTest.cc: New class.
  5716. * test/PStringBuildVisitorTest.cc: New class.
  5717. * test/UtilTest.cc
  5718. (testIsNumber): New function.
  5719. (testIsLowercase): New function.
  5720. (testIsUppercase): New function.
  5721. (testAlphaToNum): New function.
  5722. Added '\n' after the error message
  5723. * src/RequestInfo.h (printDownloadAbortMessage)
  5724. Added auto file renaming feature in http(s)/ftp download.
  5725. * src/main.cc: Added --auto-file-renaming command-line option.
  5726. * src/OptionHandlerFactory.cc
  5727. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5728. * src/RequestGroup.{h, cc}
  5729. (shouldCancelDownloadForSafety): Rewritten
  5730. (tryAutoFileRenaming): New function.
  5731. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5732. * src/HttpResponseCommand.cc
  5733. (executeInternal): Removed the call to RequestGroupMan::
  5734. isSameFileBeingDownloaded()
  5735. * src/FtpNegotiateCommand.cc
  5736. (recvSize): Removed the call to RequestGroupMan::
  5737. isSameFileBeingDownloaded()
  5738. * test/RequestGroupTest.cc: New class.
  5739. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5741. IO.
  5742. * src/DefaultBtProgressInfoFile.cc
  5743. * src/MetaFileUtil.cc
  5744. * src/SimpleLogger.cc
  5745. * src/SegmentMan.cc
  5746. * src/Util.cc
  5747. * src/Platform.cc
  5748. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5750. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5752. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5753. Fixed the bug that prevents file allocation is not done when
  5754. dowloading multi-torrent file.
  5755. * src/AbstractDiskWriter.cc (openFile)
  5756. Increase the maximum number of -j option from 15 to 45.
  5757. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5758. Added fr.po, thanks to Charles Landemaine.
  5759. * po/fr.po
  5760. * po/LINGUAS
  5761. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5762. gcc 3.4.4 support:
  5763. * src/DefaultBtContext.cc: int32_t -> int
  5764. * src/main.cc: int -> int32_t, int32_t -> int
  5765. * src/messageDigest.h: uint32_t -> unsigned int
  5766. * src/NameResolver.h: int32_t -> int
  5767. * src/PeerConnection.cc: int -> int32_t
  5768. * src/SpeedCalc.cc: int32_t -> int
  5769. * src/TrackerUpdateCommand.h: int -> int32_t
  5770. * src/Util.cc: int32_t -> int
  5771. * src/Util.h: int32_t -> int
  5772. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5773. * test/AnnounceListTest.cc: int -> int32_t
  5774. * test/ChunkedEncodingTest.cc: int -> int32_t
  5775. * test/DataTest.cc: int -> int32_t
  5776. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5777. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5778. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5779. * test/FeatureConfigTest.cc: int -> int32_t
  5780. * test/MetalinkEntryTest.cc: int -> int32_t
  5781. * test/MockBtRequestFactory.h: int -> int32_t
  5782. * test/MockPieceStorage.h: int -> int32_t
  5783. * test/OptionTest.cc: int -> int32_t
  5784. * test/RequestTest.cc: int -> int32_t
  5785. * test/SegmentManTest.cc: int -> int32_t
  5786. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5787. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5788. Move sleep functions to Util class:
  5789. * src/Util.cc
  5790. (sleep): New function.
  5791. (usleep): New function.
  5792. * src/DownloadCommand.cc: sleep -> Util::sleep
  5793. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5794. MinGW build enhancements. The following files are added:
  5795. * src/timegm.{c,h}
  5796. Changes to support the above new files:
  5797. * configure.ac
  5798. * src/Makefile.am
  5799. * src/a2time.h
  5800. * src/Util.cc:
  5801. * src/strptime.c: Added support for %Z option.
  5802. Fixed MinGW non-blocking bug.
  5803. * src/SocketCore.cc
  5804. * src/HttpRequestCommand.cc
  5805. Miscellenous build fixes/enhancements.
  5806. * configure.ac: Added summary report.
  5807. * src/Platform.h: Tweaked #include's.
  5808. * src/a2netcompat.h: Tweaked #include's.
  5809. * src/strptime.h: Tweaked #include's.
  5810. * src/gai_strerror.c: Tweaked #include's.
  5811. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5812. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5813. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5814. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5815. Increased the initial connection size in BitTorrent download to 40.
  5816. * src/BtRuntime.h
  5817. Added the usage message of --peer-id-prefix option.
  5818. * src/main.cc
  5819. * Release 0.11.2
  5820. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. MessageDigestHelper is introduced in order to simplify the use
  5822. of message digest. Removed repeated code.
  5823. The message digest algorithm is now specified by string, like "sha1",
  5824. "md5".
  5825. * src/messageDigest.{h, cc}
  5826. * src/MessageDigestHelper.{h, cc}: New class.
  5827. * src/DefaultPieceStorage.cc
  5828. * src/DefaultBtContext.{h, cc}
  5829. (computeFastSet): New function.
  5830. (setInfoHash): Added for unit testing.
  5831. (setNumPieces): Added for unit testing.
  5832. * src/DefaultBtInteractive.cc
  5833. * src/BtPieceMessage.cc
  5834. * src/Peer.cc
  5835. * src/Checksum.h
  5836. * src/message.h
  5837. * src/IteratableChecksumValidator.h
  5838. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5839. inside it.
  5840. * src/SegmentMan.{h, cc}
  5841. (checkIntegrity): Removed.
  5842. * src/IteratableChunkChecksumValidator.{h, cc}
  5843. * src/Util.h
  5844. (sha1Sum): Removed.
  5845. (simpleMessageDigest): Removed.
  5846. (fileChecksum): Removed.
  5847. (computeFastSet): Removed.
  5848. * src/ShaVisitor.cc
  5849. * src/ChunkChecksum.h
  5850. * src/DownloadCommand.cc
  5851. Removed messageDigest virtual functions.
  5852. * src/MultiDiskAdaptor.{h, cc}
  5853. * src/DiskAdaptor.h
  5854. * src/ByteArrayDiskWriter.h
  5855. * src/DiskWriter.h
  5856. * src/DiskAdaptorWriter.h
  5857. * src/AbstractSingleDiskAdaptor.{h, cc}
  5858. * src/AbstractDiskWriter.{h, cc}
  5859. Fixed comilation error when message digest is disabled.
  5860. * src/MetalinkEntry.{h, cc}
  5861. * src/MetalinkRequestInfo.cc
  5862. Removed srandom and random.
  5863. * src/SimpleRandomizer.h
  5864. Added size() virtual function to DiskAdaptor
  5865. * src/MultiDiskAdaptor.h
  5866. Fixed the bug that causes that files are not opened correctly in
  5867. multi-file torrent.
  5868. * src/TorrentRequestInfo.cc
  5869. * src/MultiDiskAdaptor.cc
  5870. Added SHA256 support
  5871. * src/messageDigest.cc
  5872. * src/Xml2MetalinkProcessor.cc
  5873. Show supported message digest algorithms
  5874. * src/main.cc
  5875. Updated contact info.
  5876. * src/main.cc
  5877. Applied Ross's patch
  5878. * src/a2netcompat.h
  5879. * src/main.cc
  5880. Fixed the bug that prevents a remote metalink from not being processed
  5881. even if '-o foo.metalink' is specified.
  5882. * src/MetalinkRequestInfo.cc
  5883. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Merged Dan's patch:
  5885. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5886. Use va_copy to avoid core dump on amd64:
  5887. * src/SimpleLogger.cc
  5888. Updated contact info.
  5889. * src/main.cc
  5890. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5891. digest is not available.
  5892. * src/MetalinkEntry.h
  5893. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Make a2netcompat.h include a2io.h to fix compilation error:
  5895. * src/a2netcompat.h
  5896. * src/SocketCore.cc: Removed include of a2io.h
  5897. * src/Util.cc: Removed include of a2io.h
  5898. Gather time related functions to a2time.h:
  5899. * src/a2time.h: New file.
  5900. * src/DefaultPeerStorage.cc
  5901. * src/SimpleLogger.cc
  5902. * src/Util.{h, cc}
  5903. * src/SimpleRandomizer.h
  5904. * src/TimeA2.{h,cc}
  5905. * src/DownloadCommand.cc
  5906. * src/main.cc
  5907. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5908. a2netcompat.h:
  5909. * src/NameResolver.cc
  5910. Fixed compilation error without openssl:
  5911. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5912. Added default block to suppress compiler warnings:
  5913. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5914. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5915. MinGW build enhancements. The following files are added:
  5916. * src/gai_strerror.{c,h}
  5917. * src/gettimeofday.{c,h}
  5918. Changes to support the above new files:
  5919. * configure.ac
  5920. * src/Makefile.am
  5921. * src/a2netcompat.h
  5922. * src/TimeA2.cc
  5923. * src/DefaultPeerStorage.cc
  5924. * src/NameResolver.cc: removed mingw_strerror() function.
  5925. * src/SocketCore.cc: removed mingw_strerror() function.
  5926. Miscellaneous MinGW build fixes.
  5927. * src/a2io.h: Use _lseeki64() instead of lseek()
  5928. * src/common.h
  5929. * src/DefaultFileAllocator.cc
  5930. * src/GlowFileAllocator.cc
  5931. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5932. * src/NameResolver.cc
  5933. (callback): Changed int32_t to int.
  5934. (resolve): Changed int32_t to int.
  5935. * src/Platform.cc
  5936. * src/Platform.h
  5937. * test/MultiDiskWriterTest.cc
  5938. * test/PeerMessageUtilTest.cc
  5939. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5940. Other enhancements and fixes.
  5941. * src/HttpRequestCommand.cc
  5942. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5943. * src/SocketCore.cc:
  5944. (error): New function to abstract errno/WSAGetLastError().
  5945. (errorMsg): New function to abstract errno/WSAGetLastError().
  5946. (initiateSecureConnection): Added more detailed error reporting.
  5947. * src/SocketCore.h: Added private variable blocking, to allow
  5948. proper handling of OpenSSL psuedo-errors.
  5949. * src/message.h
  5950. (EX_SSL_INIT_FAILURE)
  5951. (EX_SSL_IO_ERROR)
  5952. (EX_SSL_PROTOCOL_ERROR)
  5953. (EX_SSL_UNKNOWN_ERROR)
  5954. (EX_SSL_CONNECT_ERROR)
  5955. (EX_SOCKET_BLOCKING)
  5956. (EX_SOCKET_NONBLOCKING)
  5957. (EX_SOCKET_UNKNOWN_ERROR)
  5958. * src/Util.cc
  5959. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5960. reserved name.
  5961. (httpGMT): Fixed typo.
  5962. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Merged Ross's win32 patch(manually)
  5964. In the course of merging, following files are added.
  5965. * src/strptime.{h,c}
  5966. * src/libgen.{h,c}
  5967. * src/inet_aton.{h,c}
  5968. * src/Platform.{h,cc}
  5969. * src/localtime_r.{h,c}
  5970. * src/getaddrinfo.{h,c}
  5971. I've gethered network related things, and put them to following file:
  5972. * src/a2netcompat.h
  5973. Also io related things are put to following file:
  5974. * src/a2io.h
  5975. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5976. * src/message.h
  5977. (MSG_ALLOCATION_COMPLETED)
  5978. (EX_TOO_LARGE_FILE)
  5979. (EX_SIZE_MISMATCH)
  5980. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5981. (EX_INVALID_CHUNK_CHECKSUM)
  5982. (EX_INVALID_RANGE_HEADER)
  5983. * src/FileAllocationCommand.cc
  5984. * src/HttpResponse.cc
  5985. * src/RequestGroup.cc
  5986. * src/MultiDiskAdaptor.cc
  5987. * src/OptionHandlerImpl.h
  5988. * src/HttpResponseCommand.cc
  5989. * src/FtpNegotiateCommand.cc
  5990. * src/IteratableChecksumValidator.cc
  5991. * src/SegmentMan.cc
  5992. * src/ChunkChecksumValidator.cc
  5993. Added Randomizer::getRandomNumber(long int)
  5994. * src/Randomizer.h (getRandomNumber)
  5995. * src/SimpleRandomizer.h (getRandomNumber)
  5996. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5997. * src/Util.cc (randomAlpha): Use this new function.
  5998. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Converted int's to in32_t. long long int's are also converted to
  6000. int64_t
  6001. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. Fixed the bug that prevents cookies from being sent to the server
  6003. if the domain of cookie is FQDN and starts with ".".
  6004. * src/Cookie.cc (match)
  6005. To add the ability to change peer id.
  6006. * src/DefaultBtContext.h
  6007. (_peerIdPrefix): New variable
  6008. (setPeerIdPrefix): New function.
  6009. * src/torrentRequestInfo.cc
  6010. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  6011. DefaultBtContext.
  6012. * src/main.cc (main): Added peer-id-prefix command-line option.
  6013. The usage message is not added yet.
  6014. * src/DefaultBtContext.cc
  6015. (generatePeerId): Use _peerIdPrefix.
  6016. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  6017. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6018. Fixed the bug that prevents filename in content-disposition from
  6019. being retrieved when filename is not quoted.
  6020. * src/Util.cc (getContentDispositionFilename)
  6021. Fixed the bug that causes infinate loop and memory leak when file open
  6022. operation failed.
  6023. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6024. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Fixed the bug that causes segfault when all URIs specified are
  6026. unsupported.
  6027. * src/RequestGroupMan.cc (getInitialCommands)
  6028. Check if RequestGroup::createNextCommand() returns empty list of
  6029. commands.
  6030. * src/RequestGroup.cc (createNextCommand)
  6031. Change log level from info to error so that users can notice that
  6032. an error occurred.
  6033. Fixed the bug that causes segfault when a zero-sized file is
  6034. downloaded.
  6035. * src/BitfieldMan.cc (isAllBitSet)
  6036. Return true if bitfieldLength is 0.
  6037. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. * src/main.cc
  6039. (showUsage): Added 3 usage examples for metalink download.
  6040. Replace MetalinkChunkChecksum with ChunkChecksum.
  6041. * src/MetalinkChunkChecksum.h: Removed.
  6042. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  6043. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  6044. * src/Xml2MetalinkProcessor.cc
  6045. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  6046. * src/MetalinkRequestInfo.cc (execute)
  6047. * Release 0.11.1
  6048. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Reads URIs from stdin when "-i -" is specified.
  6050. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  6051. * src/UriListParser.h, src/UriListParser.cc: New class.
  6052. * src/StreamUriListParser.h: New class.
  6053. * src/FileUriListParser.h: New class.
  6054. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  6055. instead of UriFileListParser.
  6056. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Made console readout more readable.
  6058. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6059. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Fix the bug that causes -s option not to work.
  6061. * src/main.cc (main)
  6062. * src/a2algo.h: New file.
  6063. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Create directory structure specified in metalink file.
  6065. * src/RequestGroup.h, src/RequestGroup.cc
  6066. (initAndOpenFile): Create a directory to store files if it does not
  6067. exist.
  6068. (getDir): New function.
  6069. Added ETA and download speed for an individual file to readout.
  6070. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6071. * src/RequestGroup.h
  6072. (calculateDownloadSpeed): New function.
  6073. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Made -S option work with metalink file and provided selective download
  6075. to metalink.
  6076. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  6077. (filename): Removed.
  6078. (file): New variable.
  6079. (size): Removed.
  6080. (operator=): Updated.
  6081. (getPath): New function.
  6082. (getLength): New function.
  6083. (toFileEntry): New function.
  6084. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  6085. (execute): Use toStream.
  6086. (showFileEntry): Removed.
  6087. * src/MetalinkRequestInfo.h
  6088. (targetFiles): New variable.
  6089. (setTargetFiles): New variable.
  6090. * src/MetalinkRequestInfo.cc
  6091. (execute): Added the ability to print file information included in
  6092. a metalink file.
  6093. Added selective download mode to metalink.
  6094. * src/main.cc
  6095. (showUsage): Updated to denote that -S and --select-file options are
  6096. applicable to metalink.
  6097. * src/FileEntry.h
  6098. (operator=): New function.
  6099. (getBasename): New function.
  6100. (getDirname): New function.
  6101. * src/Util.h, src/Util.cc
  6102. (toStream): New function.
  6103. * src/Xml2MetalinkProcessor.cc: Updated.
  6104. Made aria2 work with metalink with directory structure.
  6105. * src/File.h, src/File.cc
  6106. (getBasename): New function.
  6107. (getDirname): New function.
  6108. * src/RequestGroup.h, src/RequestGroup.cc
  6109. (_topDir): New variable.
  6110. (setTopDir): New function.
  6111. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  6112. Rewrote HTTP header parsing with stringstream.
  6113. * src/HttpConnection.h, src/HttpConnection.cc
  6114. (HttpRequestEntry): New class.
  6115. (headerBuf): Removed.
  6116. (headerBufLength): Removed.
  6117. (outstandingHttpRequests): Now its element type is
  6118. HttpRequestEntryHandle.
  6119. (findEndOfHeader): Removed.
  6120. (receiveResponse): Rewritten.
  6121. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  6122. Updated doc for -j option to notice that it should be used with -i
  6123. option.
  6124. * src/main.cc (showUsage)
  6125. Removed unused classes.
  6126. * src/RequestInfo.h
  6127. (FileInfo): Removed.
  6128. (checksum): Removed.
  6129. (fileInfo): Removed.
  6130. (setChecksum): Removed.
  6131. (getChecksum): Removed.
  6132. (getFileInfo): Removed.
  6133. Use ISO units.
  6134. * src/ConsoleDownloadEngine.cc
  6135. * src/TorrentConsoleDownloadEngine.cc
  6136. * src/Util.cc (abbrevSize)
  6137. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Added the default listening ports to the help message.
  6139. * src/main.cc (showUsage)
  6140. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Reduce the number of calls to gettimeofday to lower CPU load.
  6142. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  6143. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  6144. * src/Peer.h (calculateUploadSpeed): New function.
  6145. (calculateDownloadSpeed): New function.
  6146. * src/DefaultPeerStorage.cc
  6147. (CalculateStat): Added _now variable.
  6148. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  6149. and Peer::calculateUploadSpeed(const struct timeval&)
  6150. Drop connection if no request or piece message is exchanged in
  6151. a certain interval.
  6152. * src/DefaultBtInteractive.h
  6153. (btRuntime): New variable.
  6154. (inactiveCheckPoint): New variable.
  6155. (checkActiveInteraction): New function.
  6156. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  6157. request or piece message is received.
  6158. (checkActiveInteraction): New function.
  6159. (doInteractionProcessing): Call checkActiveInteraction.
  6160. Fixed the bug that causes remote Metalink and Torrent files are not
  6161. processed.
  6162. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  6163. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Changed format of log file.
  6165. * src/SimpleLogger.cc
  6166. * Release 0.11.0
  6167. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. * src/AbstractCommand.cc
  6169. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  6170. MSG_MAX_TRY from error to info.
  6171. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  6172. * src/message.h
  6173. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  6174. (MSG_DOWNLOAD_ABORTED): Added %s.
  6175. (MSG_RESTARTING_DOWNLOAD): Added %s.
  6176. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  6177. * src/PeerAbstractCommand.cc
  6178. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  6179. * src/Request.h
  6180. (cookieBox): Made ShardHandle.
  6181. * src/RequestGroup.h, src/RequestGroup.cc
  6182. (createNextCommandWithAdj): New function.
  6183. * src/FileAllocationCommand.cc
  6184. (executeInternal): Use createNextCommandWithAdj().
  6185. * src/CheckIntegrityCommand.cc
  6186. (executeInternal): Use createNextCommandWithAdj().
  6187. Added --load-cookies command-option.
  6188. * src/OptionHandlerFactory.cc
  6189. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  6190. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  6191. Now aria2 can handle cookie's expiration date.
  6192. * src/Cookie.h (expires): Changed its type to time_t.
  6193. * src/main.cc: Added --load-cookies command-line option.
  6194. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  6195. * src/Util.h, src/Util.cc (httpGMT): New function.
  6196. * src/Request.cc (Request): Initialize cookieBox using
  6197. CookieBoxFactory.
  6198. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  6199. * src/CookieParser.h, src/CookieParser.cc: New class.
  6200. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  6201. * src/HttpResponseCommand.cc
  6202. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  6203. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  6204. download.
  6205. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Added -j command-line option.
  6207. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6208. * src/main.cc
  6209. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  6210. Rewritten using stringstream.
  6211. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  6212. Rewritten using stringstream.
  6213. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6214. Make download size shown in MB, KB.
  6215. * src/ConsoleDownloadEngine.h (sendStatistics)
  6216. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  6217. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Accept incoming connections if download rate is low.
  6219. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  6220. (_lowestSpeedLimit): New variable.
  6221. (setLowestSpeedLimit): New function.
  6222. (execute): Accept incoming connections if download rate is low.
  6223. MAX_PEERS is ignored in this case.
  6224. Disable PREF_OUT in multiple concurrent download:
  6225. * src/RequestGroup.h, src/RequestGroup.cc
  6226. (setUserDefinedFilename): New function.
  6227. * src/DownloadEngineFactory.cc
  6228. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  6229. concurrent download.
  6230. * src/DefaultSegmentManFactory.cc
  6231. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  6232. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. RequestGroup::getNextCommand() was renamed to createNextCommand().
  6234. Added its overloaded method.
  6235. * src/RequestGroup.h
  6236. (_numConcurrentCommand): New variable.
  6237. (setNumConcurrentCommand): New function.
  6238. * src/RequestGroup.cc
  6239. Abort download if same file is being downloaded concurrently.
  6240. * src/RequestGroup.h, src/RequestGroupMan.cc
  6241. (isSameFileBeingDownloaded): New function.
  6242. * src/HttpResponseCommand.cc (executeInternal)
  6243. * src/FtpNegotiateCommand.cc (recvSize)
  6244. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  6245. * main.cc: Added help message for -i option.
  6246. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  6248. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  6249. * src/MetalinkEntry.h
  6250. (checksum): Changed to ChecksumHandle
  6251. * src/MetalinkRequestInfo.cc
  6252. (checksum): Changed to ChecksumHandle
  6253. * src/File.cc
  6254. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  6255. * src/common.h
  6256. (DIR_OPEN_MODE): New definition
  6257. * src/RequestGroup.cc
  6258. (prepareForNextAction): Added an argument.
  6259. * src/message.h
  6260. (MSG_GOOD_CHECKSUM): New definition
  6261. (MSG_BAD_CHECKSUM): New definition
  6262. * src/HttpResponseCommand.cc
  6263. (handleDefaultEncoding): Continue download sequence in new
  6264. non-segmented download.
  6265. * src/FileAllocationEntry.h
  6266. (_nextDownloadCommand): New variable.
  6267. * src/DownloadCommand.cc
  6268. (prepareForNextSegment): Create ChecksumCommand if checksum is
  6269. available.
  6270. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  6271. * src/IteratableChecksumValidator.h,
  6272. src/IteratableChecksumValidator.cc: New class.
  6273. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  6274. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6275. Change file mode to 666:
  6276. * src/common.h (OPEN_MODE): New definition.
  6277. * src/File.cc
  6278. * src/Util.cc
  6279. * src/Directry.cc
  6280. * src/AbstractDiskWriter.cc
  6281. Change the level of log message "download aborted" to debug:
  6282. * src/PeerAbstractCommand.cc (execute)
  6283. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  6284. * src/TrackerWatcherCommand.cc
  6285. (createCommand): Sleep some seconds after request failed.
  6286. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  6287. then abort tracker request.
  6288. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6289. * Added the simultaneous download feature.
  6290. * src/main.cc: Print "Exception caught: " when exception is caught.
  6291. Use CUIDCounter instead of BtRuntime::getNewCuid():
  6292. * src/ActivePeerConnectionCommand.cc
  6293. * src/PeerInteractionCommand.cc
  6294. * src/BtRuntime.h
  6295. (cuidCounter): Removed.
  6296. (getNewCuid): Removed.
  6297. * src/DownloadEngineFactory.cc
  6298. * src/PeerListenCommand.cc
  6299. * src/TrackerUpdateCommand.cc
  6300. * src/PeerInitiateConnectionCommand.cc
  6301. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. * src/PeerAbstractCommand.cc
  6303. (onAbort): Call PeerStorage::returnPeer()
  6304. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  6305. (incomingPeers): New variable.
  6306. (addIncomingPeer): New function.
  6307. (returnPeer): New function.
  6308. (onErasingPeer): New function.
  6309. (addPeer): push_back -> push_front
  6310. (getActivePeers): Rewritten.
  6311. (calculateStat): Rewritten.
  6312. * src/PeerStorage.h
  6313. (TransferStat::copy): New function.
  6314. (TransferStat::TransferStat): New function.
  6315. (TransferStat::operator=): New function.
  6316. (addIncomingPeer): New function.
  6317. (returnPeer): New function.
  6318. * src/PeerListenCommand.cc
  6319. (execute): Use PeerStorage::addIncomingPeer() instead of
  6320. Peer::addPeer().
  6321. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Connect to a peer actively when download speed is lower than specified
  6323. speed in torrent download:
  6324. * src/ActivePeerConnectionCommand.h: New class.
  6325. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. * src/HttpRequest.cc (createRequest): url-encode user-agent
  6327. * src/main.cc: Fixed the bug that prevents download if .netrc
  6328. doesn't exist.
  6329. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. To cache resolved hostname:
  6331. * src/AbstractCommand.h, src/AbstractCommand.cc
  6332. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  6333. Added dns cache.
  6334. * src/FtpInitiateConnectionCommand.cc
  6335. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  6336. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  6337. NameResolver working without ares.
  6338. * src/TorrentRequestInfo.cc
  6339. (execute): Don't cache dns in torrent download.
  6340. * src/HttpInitiateConnectionCommand.cc
  6341. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  6342. * src/DNSCache.h: New class.
  6343. * src/UrlRequestInfo.cc
  6344. (execute): Use dns cache.
  6345. In http request, suppress port number in http request header if port
  6346. is 80 or 443:
  6347. * src/HttpRequest.cc (getHostText): Suppress port number in http
  6348. request header if port is 80 or 443.
  6349. (createProxyRequest): Allways send port number.
  6350. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. To add the command-line option which disables netrc support:
  6352. * src/OptionHandlerFactory.cc
  6353. (createOptionHandlers): Added PREF_NO_NETRC.
  6354. * src/main.cc: Added -n option.
  6355. * src/prefs.h (PREF_NO_NETRC): New definition.
  6356. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  6357. V_TRUE.
  6358. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  6359. is V_FALSE. This may get configurable in the future release.
  6360. To clear peer's error status by time basis:
  6361. * src/PeerAbstractCommand.cc
  6362. (onAbort): Call Peer::startBadCondition().
  6363. * src/Peer.h, src/Peer.cc
  6364. (error): Removed.
  6365. (_badConditionStartTime): New variable.
  6366. (_badConditionInterval): New variable. Initialized to 10 seconds.
  6367. (startBadCondition): New function.
  6368. (isGood): New function.
  6369. * src/DefaultPeerStorage.cc
  6370. (addPeer): Use Peer::isGood().
  6371. (FindFinePeer): Use Peer::isGood().
  6372. Always include port number in http request header:
  6373. * src/HttpRequest.cc (getHostText): Always include port number in
  6374. http request header.
  6375. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. To the ability to read options from a config file:
  6377. * src/main.cc: Command-line parameter validation is delegated to
  6378. OptionHandler class.
  6379. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  6380. * src/Option.h, src/Option.cc (clear): New function.
  6381. * src/OptionParser.h, src/OptionParser.cc: New class.
  6382. * src/OptionHandler.h: New class.
  6383. * src/NameMatchOptionHandler.h: New class.
  6384. * src/OptionHandlerImpl.h: New classes.
  6385. * src/prefs.h: '_' -> '-'
  6386. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  6387. (FTP_PASV): New definition.
  6388. * src/Util.h, src/Util.cc (getRealSize): New function.
  6389. To disable netrc support if .netrc file does not have correct
  6390. permissions:
  6391. * src/File.h, src/File.cc (mode): New function.
  6392. To prevent confidential information to be logged:
  6393. * src/HttpConnection.h, src/HttpConnection.cc
  6394. (eraseConfidentialInfo): New function.
  6395. (sendRequest): Call eraseConfidentialInfo().
  6396. (sendProxyRequest): Call eraseConfidentialInfo().
  6397. * src/main.cc: Validate permissions of .netrc file.
  6398. To add --user-agent command-line option:
  6399. * src/main.cc: Added new command line option: --user-agent
  6400. * src/prefs.h (PREF_USER_AGENT): New definition.
  6401. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6402. parameter to HttpRequest object.
  6403. * src/AbstractProxyRequestCommand.cc
  6404. (executeInternal): Set user-agent option parameter to HttpRequest
  6405. object.
  6406. Marged the patches from Dan Fandrich.
  6407. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6408. Use filename and size from Metalink file instead of sending HEAD
  6409. request:
  6410. * src/UrlRequestInfo.h
  6411. (_filename): New variable.
  6412. (_totalLength): New variable.
  6413. (setTotalLength): New variable.
  6414. (setFilename): New variable.
  6415. * src/MetalinkRequestInfo.cc
  6416. (execute): Set filename and size to UrlRequestInfo
  6417. * src/UrlRequestInfo.cc
  6418. (execute): Use filename and size from Metalink instead of seding
  6419. HEAD request to servers.
  6420. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. To add the ability to resume downloading a partially downloaded file
  6422. which is downloaded from the beginning:
  6423. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6424. takes this role.
  6425. * src/main.cc: Added -c option.
  6426. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6427. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6428. * src/prefs.h (PREF_CONTINUE): New definition.
  6429. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6430. * src/DefaultDiskWriter.cc
  6431. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6432. * src/AbstractDiskWriter.h
  6433. (glowFileAllocator): New variable.
  6434. * src/AbstractDiskWriter.cc
  6435. (openExistingFile): Now preallocate file space from the end of the
  6436. existing file if totalLength argument is specified and grater than 0.
  6437. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6438. to download exists in local, continue the download of the file.
  6439. --allow-overwrite=true is assumed in this context.
  6440. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6441. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6442. Throw exception if --check-integrity=true is specified but chunk
  6443. checksums are not provided:
  6444. * src/UrlRequestInfo.cc
  6445. Do not print URLs to stdout:
  6446. * src/UrlRequestInfo.cc
  6447. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. * src/Request.h: Use AuthResolver to get authentication information.
  6449. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6450. set to RequestFactory object.
  6451. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6452. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6453. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6454. create Request object.
  6455. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6456. To integrate Netrc into exsiting classes:
  6457. * src/Request.h
  6458. (_userDefinedAuthConfig): New variable.
  6459. (findNetrcAuthenticator): New function.
  6460. (segment): Removed.
  6461. (setUserDefinedAuthConfig): New function.
  6462. (resolveHttpAuthConfigItem): New function.
  6463. (resolveFtpAuthConfigItem): New function.
  6464. (resolveHttpProxyAuthConfigItem): New function.
  6465. * src/HttpRequest.h
  6466. (authConfig): Removed.
  6467. (proxyAuthConfig): Removed.
  6468. (setAuthConfig): Removed.
  6469. (setProxyAuthConfig): Removed.
  6470. * src/UrlRequest.h
  6471. (getHeadResult): Added a parameter: authConfigHandle
  6472. * src/common.h
  6473. (SingletonHolder.h): New include.
  6474. * src/main.cc
  6475. (Netrc.h): New include.
  6476. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6477. Added initial value of PREF_NETRC_PATH.
  6478. Added the initialization of netrc.
  6479. * src/AuthConfig.h: New class.
  6480. * src/prefs.h
  6481. (PREF_NETRC_PATH): New definition.
  6482. * src/HttpAuthConfig.h: Removed.
  6483. * src/Netrc.cc
  6484. (getRequiredNextToken): New function.
  6485. (skipMacdef): New function.
  6486. (parse): Rewritten.
  6487. * src/Netrc.h
  6488. (getRequiredNextToken): New function.
  6489. (skipMacdef): New function.
  6490. * src/Util.h, src/Util.cc
  6491. (getHomeDir): New function.
  6492. * src/TrackerWatcherComand.cc
  6493. (createRequestCommand): Use AuthConfig.
  6494. * src/FtpConnection.cc
  6495. (sendUser): Use Request::resolveFtpAuthConfigItem().
  6496. (sendPass): Use Request::resolveFtpAuthConfigItem().
  6497. * src/Request.cc
  6498. (findNetrcAuthenticator): New function.
  6499. (resolveHttpAuthConfigItem): New function.
  6500. (resolveFtpAuthConfigItem): New function.
  6501. (resolveHttpProxyAuthConfigItem): New function.
  6502. * src/UrlRequestInfo.cc: Use AuthConfig.
  6503. * src/HttpRequest.cc
  6504. (createRequest): Use authConfig.
  6505. (getProxyAuthString): Use authConfig.
  6506. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  6507. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  6508. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. To reduce overhead to find commands whose socket is either
  6510. readable or writable in the download engine loop:
  6511. * src/Command.h, src/Command.cc
  6512. (STATUS): New enum.
  6513. (status): New variable.
  6514. (statusMatch): New function.
  6515. (setStatusActive): New function.
  6516. (setStatusInactive): New function.
  6517. * src/DownloadEngine.h, src/DownloadEngine.cc
  6518. (executeCommand): New function.
  6519. (run): Simplified.
  6520. (waitData): Call Command::setStatusActive() when command's socket is
  6521. readable or writable.
  6522. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6523. To handle Segment as SegmentHandle:
  6524. * src/AbstractCommand.cc (execute): Rewritten.
  6525. * src/SegmentMan.h: Segment -> SegmentHandle
  6526. Introducded HttpResponse class, HttpRequest class to improve code
  6527. extensiveness and make it clear:
  6528. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  6529. HttpResponse class.
  6530. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  6531. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  6532. * src/HttpConnection.cc: Contruction of http request were moved to
  6533. HttpRequest class.
  6534. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  6535. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  6536. * src/HttpAuthConfig.h: New class.
  6537. * src/Range.h: New class.
  6538. To make FtpTunnel{Request, Response}Command and
  6539. HttpProxy{Request, Response}Command derived from
  6540. AbstractProxy{Request, Response}Command:
  6541. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  6542. Derived from AbstractProxyRequestCommand class.
  6543. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  6544. Derived from AbstractProxyResponseCommand class.
  6545. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  6546. Derived from AbstractProxyRequestCommand class.
  6547. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  6548. Derived from AbstractProxyResponseCommand class.
  6549. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  6550. : New class.
  6551. * src/AbstractProxyResponseCommand.h,
  6552. src/AbstractProxyResponseCommand.cc: New class.
  6553. To add netrc support:
  6554. * src/Netrc.h, src/Netrc.cc: New class.
  6555. * src/Util.h, src/Util.cc (split): New function.
  6556. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  6557. "Content-Range" header instead of "Range" header.
  6558. * src/HttpHeader.h
  6559. (getStatus): Removed.
  6560. (setStatus): Removed.
  6561. * src/Segment.h
  6562. (getPositionToWrite): New function.
  6563. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. * src/HttpHeader.h
  6565. (Range.h): New include.
  6566. (status): New variable.
  6567. (HttpHeader): Initialized status with 0.
  6568. (getStatus): New function.
  6569. (setStatus): New function.
  6570. (getRange): New function.
  6571. (HttpHeaderHandle): New function.
  6572. * src/HttpHeader.cc
  6573. (getRange): New function.
  6574. * src/Request.h
  6575. (RequestWeakHandle): New definition.
  6576. * src/HttpConnection.h
  6577. (HttpConnectionHandle): New type definition.
  6578. * src/HttpConnection.cc
  6579. (receiveResponse): Set HTTP status to headers.
  6580. * src/main.cc
  6581. (showUsage): Fixed typo.
  6582. * src/Segment.h
  6583. (SegmentHandle): New type definition.
  6584. * src/BitfieldMan.h
  6585. (getMissingUnusedLength): New function.
  6586. * src/BitfieldMan.cc
  6587. (getMissingUnusedLength): New function.
  6588. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. To fix static initialization order problem:
  6590. * src/BitfieldManFactory.h
  6591. (defaultRandomizer): Removed.
  6592. (factory): New variable.
  6593. (getNewFactory): Removed.
  6594. (getFactoryInstance): New function.
  6595. (setDefaultRandomizer): Rewritten.
  6596. (getDefaultRandomizer): Rewritten.
  6597. * src/BitfieldManFactory.cc
  6598. (defaultRandomizer): Removed.
  6599. (factory): Initialized to 0.
  6600. (BitfieldManFactory): Initialized randomizer to 0.
  6601. * src/DefaultPieceStorage.cc
  6602. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  6603. * src/Peer.cc
  6604. (Peer): getNewFactory() -> getFactoryInstance()
  6605. * src/SegmentMan.cc
  6606. (initBitfield): getNewFactory() -> getFactoryInstance()
  6607. * src/Piece.cc
  6608. (Piece): getNewFactory() -> getFactoryInstance()
  6609. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. To fix the bug that causes crash on Max OS X:
  6611. * src/SimpleRandomizer.h
  6612. (getInstance): Create new instance if the static variable is null.
  6613. * src/SimpleRandomizer.cc
  6614. (randomizer): Initialized to 0.
  6615. * src/BitfieldManFactory.h
  6616. (getNewFactory): Removed the call to setRandomizer().
  6617. To fix the miscalculation of the range of checksum:
  6618. * src/BitfieldMan.h
  6619. (isBitSetOffsetRange): New function.
  6620. * src/BitfieldMan.cc
  6621. (isBitSetOffsetRange): New function.
  6622. * src/SegmentMan.cc
  6623. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  6624. Use bitfield->getBlockLength() instead of segment.segmentLength.
  6625. * Release 0.10.1
  6626. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. To lower CPU usage in BitTorrent download when --max-upload-limit
  6628. command-line option specified:
  6629. * src/DefaultBtMessageDispatcher.cc
  6630. (sendMessages): Calculate uploading speed only when current message
  6631. is uploading data and is not sent yet.
  6632. * src/DefaultPeerStorage.h
  6633. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  6634. * src/HttpResponseCommand.cc
  6635. (handleDefaultEncoding): Added the cast to int32_t to itos.
  6636. This fixes compile error in Soralis 10.
  6637. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. To fix segfault in Metalink download:
  6639. * src/UrlRequestInfo.h
  6640. (filename): Removed.
  6641. (totalLength): Removed.
  6642. (setTotalLength): Removed.
  6643. (setFilename): Removed.
  6644. * src/MetalinkRequestInfo.cc
  6645. (execute): Do not set filename and totalLength to reqInfo.
  6646. Set chunk checksum to reqInfo if it is not null.
  6647. * src/HttpResponseCommand.cc
  6648. (executeInternal): Fixed filename in log.
  6649. (handleDefaultEncoding): Removed the call to initBitfield() and
  6650. markAllPiecesDone().
  6651. (handleOtherEncoding): Added HEAD method handling.
  6652. * src/FtpNegotiateCommand.cc
  6653. (executeInternal): Added SEQ_HEAD_OK handling.
  6654. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  6655. return false.
  6656. * src/FtpNegotiateCommand.h
  6657. (SEQ_HEAD_OK): New definition.
  6658. * src/SegmentMan.cc
  6659. (initBitfield): Delete bitfield.
  6660. (isChunkChecksumValidationReady): Fixed the condition.
  6661. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  6662. works fine.
  6663. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. * src/Xml2MetalinkProcessor.h
  6665. (xpathExists): New function.
  6666. * src/Xml2MetalinkProcessor.cc
  6667. (xpathExists): New function.
  6668. Not to send HEAD request if filename and size are available in Metalink
  6669. file:
  6670. * src/UrlRequestInfo.h
  6671. (filename): New variable.
  6672. (totalLength): New variable.
  6673. (setTotalLength): New function.
  6674. (setFilename): New function.
  6675. * src/MetalinkRequestInfo.cc
  6676. (execute): Set filename and size to UrlRequestInfo.
  6677. * src/MetalinkEntry.cc
  6678. (MetalinkEntry): Initialize size with 0.
  6679. * src/UrlRequestInfo.cc
  6680. (execute): Set filename and size to SegmentMan.
  6681. Not to download rest of the files after selected files are downloaded
  6682. in BitTorrent:
  6683. * src/PieceStorage.h
  6684. (allDownloadFinished): New function.
  6685. * src/DefaultBtAnnounce.cc
  6686. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6687. downloadFinished.
  6688. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6689. * src/DefaultPieceStorage.cc
  6690. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6691. Commented out the call to finishSelectiveDownloadingMode().
  6692. (downloadFinished): Call isFilteredAllBitSet() instead of
  6693. isAllBitSet().
  6694. (allDownloadFinished): New function.
  6695. * src/DefaultBtInteractive.cc
  6696. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6697. downloadFinished().
  6698. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6699. * src/TorrentDownloadEngine.cc
  6700. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6701. * src/BitfieldMan.h
  6702. (isFilteredAllBitSet): New function.
  6703. * src/ShareRatioSeedCriteria.h
  6704. (PieceStorage.h): New include.
  6705. (pieceStorage): New variable.
  6706. (evaluate):
  6707. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6708. * src/BitfieldMan.cc
  6709. (isFilteredAllBitSet): New function.
  6710. (isAllBitSet): Filter is not took into account.
  6711. Rename --force-truncate as --allow-overwrite:
  6712. * src/TorrentRequestInfo.cc
  6713. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6714. * src/main.cc
  6715. (showUsage): --force-truncate -> --allow-overwrite
  6716. * src/message.h
  6717. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6718. * src/prefs.h
  6719. (PREF_FORCE_TRUNCATE): Removed.
  6720. (PREF_ALLOW_OVERWRITE): New definition.
  6721. * src/SegmentMan.cc
  6722. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6723. * src/MetalinkRequestInfo.cc
  6724. (execute): Queueing message are now logged in info level.
  6725. * src/common.h
  6726. (LONG_LONG_MAX): Removed.
  6727. (LONG_LONG_MIN): Removed.
  6728. * src/HttpResponseCommand.cc
  6729. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6730. * src/FtpNegotiateCommand.cc
  6731. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6732. * src/main.cc
  6733. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6734. command-line option.
  6735. (main): Added --check-integriy and --realtime-chunk-checksum
  6736. command-line option.
  6737. --force-truncate -> --allow-overwrite
  6738. Set initial value of --check-integrity option to false.
  6739. Don't show usage when error occurs while persing command-line options.
  6740. Removed deprecated --upload-limit option.
  6741. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6743. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6744. * src/BtAllowedFastMessage.cc:
  6745. * src/BtBitfieldMessage.cc
  6746. * src/BtCancelMessage.cc
  6747. * src/BtChokeMessage.cc
  6748. * src/BtHaveAllMessage.cc
  6749. * src/BtHaveMessage.cc
  6750. * src/BtHaveNoneMessage.cc
  6751. * src/BtInterestedMessage.cc
  6752. * src/BtNotInterestedMessage.cc
  6753. * src/BtPieceMessage.cc
  6754. * src/BtPortMessage.cc
  6755. * src/BtRejectMessage.cc
  6756. * src/BtRequestMessage.cc
  6757. * src/BtSuggestPieceMessage.cc
  6758. * src/BtUnchokeMessage.cc
  6759. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6760. files are affected.
  6761. * src/ChunkChecksumValidator.cc
  6762. * src/SegmentMan.cc
  6763. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. To add chunk checksum validation:
  6765. * src/MetalinkEntry.h
  6766. (MetalinkChunkChecksum.h): New include.
  6767. (chunkChecksum): New variable.
  6768. * src/Request.h
  6769. (method): New variable.
  6770. (setMethod): New function.
  6771. (getMethod): New function.
  6772. (METHOD_GET): New static constant.
  6773. (METHOD_HEAD): New static constant.
  6774. * src/Xml2MetalinkProcessor.h
  6775. (getPieceHash): New function.
  6776. * src/PieceStorage.h
  6777. (markAllPiecesDone): New function.
  6778. (checkIntegrity): New function.
  6779. * src/FileAllocator.h
  6780. (NullFileAllocationMonitor.h): New include.
  6781. (FileAllocator): Initialize fileAllocationMonitor with new
  6782. NullFileAllocationMonitor().
  6783. * src/MultiDiskAdaptor.h
  6784. (messageDigest.h): Remove include.
  6785. (ctx): Removed.
  6786. (hashUpdate): Added ctx.
  6787. (MultiDiskAdaptor): Removed ctx.
  6788. (sha1Sum): Renamed as messageDigest.
  6789. (messageDigest): New function.
  6790. * src/UrlRequestInfo.h
  6791. (HeadResult): New class.
  6792. (digestAlgo): New variable.
  6793. (chunkChecksumLength): New variable.
  6794. (chunkChecksums): New variable.
  6795. (getHeadResult): New function.
  6796. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6797. (setDigestAlgo): New function.
  6798. (setChunkChecksumLength): New function.
  6799. (setChunkChecksums): New function.
  6800. * src/DefaultPieceStorage.cc
  6801. (DiskAdaptorWriter.h): New include.
  6802. (ChunkChecksumValidator.h): New include.
  6803. (markAllPiecesDone): New function.
  6804. (checkIntegrity): New function.
  6805. * src/DefaultBtContext.h
  6806. (getPieceHashes): New function.
  6807. * src/TorrentRequestInfo.cc
  6808. (execute): Try to validate chunk checksum if file already exists and
  6809. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6810. * src/messageDigest.h
  6811. (~MessageDigestContext): Added digestFree().
  6812. * src/MetalinkRequestInfo.cc
  6813. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6814. * src/DiskAdaptor.h
  6815. (messageDigest.h): New include.
  6816. (sha1Sum): Renamed as messageDigest.
  6817. (messageDigest): New function.
  6818. * src/DownloadCommand.h
  6819. (PeerStat.h): New include.
  6820. (maxDownloadSpeedLimit): New variable.
  6821. (startupIdleTime): New variable.
  6822. (lowestDownloadSpeedLimit): New variable.
  6823. (peerStat): New variable.
  6824. (setMaxDownloadSpeedLimit): New function.
  6825. (setStartupIdleTime): New function.
  6826. (setLowestDownloadSPeedLimit): New function.
  6827. * src/BtContext.h
  6828. (getPieceHashes): New function.
  6829. * src/main.cc
  6830. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6831. option to true for testing purpose.
  6832. * src/BtPieceMessage.cc
  6833. (checkPieceHash): Use messageDigest
  6834. * src/DownloadEngine.cc
  6835. (SetDescriptor): Removed.
  6836. (AccumulateActiveCommand): Removed.
  6837. (waitData): Rewritten.
  6838. (updateFdSet): Rewritten.
  6839. * src/MultiDiskAdaptor.cc
  6840. (hashUpdate): Added ctx.
  6841. (sha1Sum): Renamed as messageDigest.
  6842. (messageDigest): New function.
  6843. * src/BitfieldMan.h
  6844. (isBitRangeSet): New function.
  6845. (unsetBitRange): New function.
  6846. * src/ByteArrayDiskWriter.h
  6847. (sha1Sum): Renamed as messageDigest.
  6848. (messageDigest): New function.
  6849. * src/ConsoleDownloadEngine.cc
  6850. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6851. * src/DiskWriter.h
  6852. (messageDigest.h): New include.
  6853. (sha1Sum): Renamed as messageDigest.
  6854. (messageDigest): New function.
  6855. * src/ChunkChecksumValidator.h: New class.
  6856. * src/DiskAdaptorWriter.h: New class.
  6857. * src/prefs.h
  6858. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6859. (PREF_CHECK_INTEGRITY): New definition.
  6860. * src/HttpResponseCommand.cc
  6861. (handleDefaultEncoding): Added method "HEAD" handling.
  6862. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6863. (handleOtherEncoding):
  6864. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6865. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6866. startupIdleTime, lowestDownloadSpeedLimit to command.
  6867. * src/SegmentMan.h
  6868. (getSegmentEntryByIndex): New function.
  6869. (getSegmentEntryByCuid): New function.
  6870. (getSegmentEntryIteratorByCuid): New function.
  6871. (diskWriter): DiskWriter -> DiskWriterHandle
  6872. (pieceHashes): New variable.
  6873. (chunkHashLength): New variable.
  6874. (digestAlgo): New variable.
  6875. (FindPeerStat): Removed.
  6876. (getPeerStat): Rewritten.
  6877. (markAllPiecesDone): New function.
  6878. (checkIntegrity): New function.
  6879. (tryChunkChecksumValidation): New function.
  6880. (isChunkChecksumValidationReady): New function.
  6881. * src/BitfieldMan.cc
  6882. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6883. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6884. blocks to 0.
  6885. (isBitRangeSet): New function.
  6886. (unsetBitRange): New function.
  6887. * src/FtpNegotiateCommand.cc
  6888. (executeInternal): Set maxDownloadSpeedLimit,
  6889. startupIdleTime, lowestDownloadSpeedLimit to command.
  6890. (recvSize): Added method "HEAD" handling.
  6891. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6892. * src/AbstractSingleDiskAdaptor.cc
  6893. (sha1Sum): Renamed as messageDigest.
  6894. (messageDigest): New function.
  6895. * src/AbstractSingleDiskAdaptor.h
  6896. (sha1Sum): Renamed as messageDigest.
  6897. (messageDigest): New function.
  6898. * src/Util.h
  6899. (indexRange): New function.
  6900. * src/MetalinkEntry.cc
  6901. (MetalinkEntry): Initialized chunkChecksum to 0.
  6902. * src/ShaVisitor.cc
  6903. (~ShaVisitor): Removed the call to ctx.digestFree().
  6904. * src/SegmentMan.cc
  6905. (ChunkChecksumValidator.h): New include.
  6906. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6907. to DIGEST_ALGO_SHA1.
  6908. (~SegmentMan): Removed diskWriter.
  6909. (FindSegmentEntryByIndex): Removed.
  6910. (FindSegmentEntryByCuid): Removed.
  6911. (checkoutSegment): Rewritten.
  6912. (findSlowerSegmentEntry): Rewritten.
  6913. (getSegment): Rewritten.
  6914. (updateSegment): Rewritten.
  6915. (completeSegment): Rewritten.
  6916. (markAllPiecesDone): New function.
  6917. (checkIntegrity): New function.
  6918. (isChunkChecksumValidationReady): New function.
  6919. (tryChunkChecksumValidation): New function.
  6920. * src/Xml2MetalinkProcessor.cc
  6921. (getEntry): Get size and set it to entry.
  6922. Get chunk checksum and set it to entry.
  6923. (getPieceHash): New function.
  6924. * src/Util.cc
  6925. (sha1Sum): Removed ctx.digestFree()
  6926. (fileChecksum): Removed ctx.digestFree()
  6927. (indexRange): New function.
  6928. * src/Request.cc
  6929. (METHOD_GET): New variable.
  6930. (METHOD_HEAD): New variable.
  6931. (Request): Added method.
  6932. * src/UrlRequestInfo.cc
  6933. (FatalException.h): New include.
  6934. (message.h): New include.
  6935. (operator<<): Added operator<< for class HeadResult.
  6936. (getHeadResult): New function.
  6937. (execute): Get filename and size in separate download engine.
  6938. * src/ChunkChecksumValidator.cc: New class.
  6939. * src/DownloadCommand.cc:
  6940. (DownloadCommand): Added peerStat.
  6941. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6942. the value from Option.
  6943. The buffer size is now 16KB.
  6944. Use peerStat member instead of getting it from SegmentMan.
  6945. Use startupIdleTime member instead of gettingit from Option.
  6946. Added chunk checksum validation.
  6947. * src/AbstractDiskWriter.cc
  6948. (AbstractDiskWriter): Removed ctx.
  6949. (~AbstractDiskWriter): Removed ctx.digestFree()
  6950. (writeDataInternal): Returns the return value of write.
  6951. (readDataInternal): Returns the return value of read.
  6952. (sha1Sum): Renamed as messageDigest
  6953. (messageDigest): New function.
  6954. * src/AbstractDiwkWriter.h
  6955. (messageDigest.h): Removed include.
  6956. (ctx): Removed.
  6957. (sha1Sum): Renamed as messageDigest
  6958. (messageDigest): New function.
  6959. * src/DefaultPieceStorage.h
  6960. (markAllPiecesDone): New function.
  6961. (checkIntegrity): New function.
  6962. * src/NullFileAllocationMonitor.h: New class.
  6963. * src/MetalinkChunkChecksum.h: New class.
  6964. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. To decrease CPU usage in bittorrent download, calculation results in
  6966. BitfieldMan were cached and realtime fetching PeerObject was removed
  6967. with WeakHandle introduced. Option values are set to the objects
  6968. by setter before download begins.
  6969. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6970. * src/DefaultBtRequestFactory.h
  6971. (dispatcher): BtMessageDispatcherHandle ->
  6972. BtMessageDispatcherWeakHandle.
  6973. (messageFactory): New variable.
  6974. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6975. BtMessageDispatcherWeakHandle.
  6976. (setBtMessageFactory): New function.
  6977. * src/DefaultBtMessageDispatcher.cc:
  6978. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6979. from Option.
  6980. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6981. feating the value from Option.
  6982. Use messageFactory member.
  6983. * src/PeerInteractionCommand.cc
  6984. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6985. Add reverse dependencies to factory object.
  6986. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6987. dispatcher.
  6988. Set messageFactory to receiver.
  6989. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6990. btInteractive.
  6991. Set receiver to peerObject.
  6992. Set maxDownloadSpeedLimit to this.
  6993. (executeInternal): Use maxDownloadSpeedLimit member.
  6994. * src/BtChokeMessage.cc
  6995. (doReceivedAction): Use dispatcher, requestFactory member.
  6996. (onSendComplete): Use dispatcher member.
  6997. * src/PeerInteractionCommand.h
  6998. (maxDownloadSpeedLimit): New variable.
  6999. * src/DefaultBtMessageReceiver.h
  7000. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7001. (dispatcher):
  7002. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7003. (messageFactory): New variable.
  7004. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7005. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7006. (setDispatcher):
  7007. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7008. (setBtMessageFactory): New function.
  7009. * src/DefaultBtInteractive.cc
  7010. (initiateHandshake): Use messageFactory member.
  7011. (addBitfieldMessageToQueue): Use messageFactory member.
  7012. (addAllowedFastMessageToQueue): Use messageFactory member.
  7013. (decideChoking): Use messageFactory member.
  7014. (checkHave): Use messageFactory member.
  7015. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  7016. (receiveMessages): Use maxDownloadSpeedLimit member.
  7017. (decideInterest): Use messageFactory member.
  7018. * src/BtRequestMessage.cc
  7019. (doReceivedAction): Use messageFactory, dispatcher member.
  7020. (onQueued): Use dispatcher member.
  7021. * src/BtPieceMessage.cc
  7022. (doReceivedAction): Use dispatcher member.
  7023. (send): Use peerConnection member.
  7024. (onWrongPiece): Use requestFactory member.
  7025. (handleChokingEvent): Use messageFactory, dispatcher member.
  7026. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  7027. * src/BtMessageDispatcher.h
  7028. (BtMessageDispatcherWeakHandle): New type definition.
  7029. * src/SimpleBtMessage.cc
  7030. (send): Use peerConnection member.
  7031. * src/BtRejectMessage.cc
  7032. (doReceivedAction): Use dispatcher member.
  7033. * src/DefaultBtMessageDispatcher.h
  7034. (Option.h): Removed include.
  7035. (messageFactory): New variable.
  7036. (option): Removed.
  7037. (maxUploadSpeedLimit): New variable.
  7038. (requestTimeout): New variable.
  7039. (DefaultBtMessageDispatcher): Removed option.
  7040. Added maxUploadSpeedLimit, requestTimeout.
  7041. (setOption): Removed.
  7042. (getOption): Removed.
  7043. (setMaxUploadSpeedLimit): New function.
  7044. (setRequestTimeout): New function.
  7045. (setBtMessageFactory): New function.
  7046. * src/DefaultBtInteractive.h
  7047. (btMessageReceiver):
  7048. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7049. (dispatcher):
  7050. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7051. (btRequestFactory):
  7052. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7053. (peerConnection):
  7054. PeerConnectionHandle -> PeerConnectionWeakHandle
  7055. (messageFactory): New variable.
  7056. (option): Removed.
  7057. (keepAliveInterval): New variable.
  7058. (maxDownloadSpeedLimit): New variable.
  7059. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  7060. (setBtMessageReceiver):
  7061. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7062. (setDispatcher):
  7063. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7064. (setBtRequestFactory):
  7065. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7066. (setPeerConnection):
  7067. PeerConnectionHandle -> PeerConnectionWeakHandle
  7068. (setOption): Removed.
  7069. (setKeepAliveInterval): New function.
  7070. (setMaxDownloadSpeedLimit): New function.
  7071. (setBtMessageFactory): New function.
  7072. * src/BitfieldMan.h
  7073. (cachedNumMissingBlock): New variable.
  7074. (cachedNumFilteredBlock): New variable.
  7075. (cachedCompletedLength): New variable.
  7076. (cachedFilteredComletedLength): New variable.
  7077. (cachedFilteredTotalLength): New variable.
  7078. (countMissingBlockNow): New function.
  7079. (countFilteredBlockNow): New function.
  7080. (getFilteredTotalLengthNow): New function.
  7081. (getCompletedLengthNow): New function.
  7082. (getFilteredCompletedLengthNow): New function.
  7083. (updateCache): New function.
  7084. * src/AbstractBtMessage.h
  7085. (BtMessageDispatcher.h): New include.
  7086. (PeerConnection.h): New include.
  7087. (BtRequestFactory.h): New include
  7088. (BtMessageFactory.h): New include.
  7089. (dispatcher): New variable.
  7090. (messageFactory): New variable.
  7091. (peerConnection: New variable.
  7092. (setBtMessageDispatcher): New function.
  7093. (setPeerConnection): New function.
  7094. (setBtMessageFactory): New function.
  7095. (setBtRequestFactory): New function.
  7096. * src/DefaultBtMessageFactory.cc
  7097. (setCommonProperty): Set dispatcher, requestFactory, this,
  7098. peerConnection to msg.
  7099. * src/BtRegistry.h
  7100. (BT_MESSAGE_RECEIVER): New macro.
  7101. * src/PeerConnection.h
  7102. (PeerConnectionWeakHandle): New type definition.
  7103. * src/BtMessageFactory.h
  7104. (BtMessageFactoryWeakHandle): New type definition.
  7105. * src/BitfieldMan.cc
  7106. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  7107. cachedCompletedLength, cachedFilteredComletedLength,
  7108. cachedFilteredTotalLength.
  7109. Call updateCache().
  7110. (countMissingBlock): Return cachedNumMissingBlock.
  7111. (countMissingBlockNow): New function.
  7112. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  7113. (countFilteredBlockNow): New function.
  7114. (setBit): Call updateCache().
  7115. (unsetBit): Call updateCache().
  7116. (setBitfield): Call updateCache().
  7117. (clearAllBit): Call updateCache().
  7118. (setAllBit): Use setBitInternal instead of setBit.
  7119. Call updateCache().
  7120. (addFilter): Call updateCache().
  7121. (enableFilter): Call updateCache().
  7122. (disableFilter): Call updateCache().
  7123. (clearFilter): Call updateCache().
  7124. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  7125. (getFilteredTotalLengthNow): New function.
  7126. (getCompletedLength): Return cachedCompletedLength.
  7127. (getCompletedLengthNow): New function.
  7128. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  7129. (getFilteredCompletedLengthNow): New function.
  7130. (updateCache): New function.
  7131. * src/BtMessageReceiver.h
  7132. (BtMessageReceiverWeakHandle): New type definition.
  7133. * src/DefaultBtMessageReceiver.cc
  7134. (receiveHandshake): Use messageFactory member.
  7135. (sendHandshake): Use messageFactory member.
  7136. (receiveMessage): Use messageFactory member.
  7137. * src/DefaultBtMessageFactory.h
  7138. (dispatcher): New variable.
  7139. (requestFactory): New variable.
  7140. (peerConnection): New variablle.
  7141. (setBtMessageDispatcher): New function.
  7142. (setBtRequestFactory): New function.
  7143. (setPeerConnection): New function.
  7144. * src/SharedHandle.h
  7145. (RefCount): New class.
  7146. (WeakHandle): New class.
  7147. * src/PeerObject.h
  7148. (BtMessageReceiver.h): New include.
  7149. (PeerObject): Added btMessageReceiver.
  7150. (btMessageReceiver): New variable.
  7151. * src/Util.cc
  7152. (countBit): Simplified.
  7153. * src/BtCancelMessage.cc
  7154. (doReceivedAction): Use dispatcher member.
  7155. * src/BtRequestFactory.h
  7156. (BtRequestFactoryWeakHandle): New type definition.
  7157. * src/PeerStorage.h
  7158. (downloadSpeed): int -> uint32_t
  7159. (uploadSpeed): int -> uint32_t
  7160. (sessionDownloadLength): long long int -> uint64_t
  7161. (sessionUploadLength): long long int -> uint64_t
  7162. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. To add RecoverableException, FatalException:
  7164. * src/AbstractCommand.cc
  7165. (onAbort): Exception -> RecoverableException
  7166. * src/PeerAbstractCommand.h
  7167. (RecoverableException.h): New include.
  7168. (onAbort): Exception -> RecoverableException.
  7169. * src/PeerInteractionCommand.cc
  7170. (onAbort): Exception -> RecoverableException.
  7171. * src/PeerAbstractCommand.cc
  7172. (execute): Exception -> RecoverableException.
  7173. (onAbort): Exception -> RecoverableException.
  7174. * src/TorrentRequestInfo.cc
  7175. (execute): Exception -> RecoverableException.
  7176. * src/MetalinkRequestInfo.cc
  7177. (execute): Exception -> RecoverableException.
  7178. * src/MetaFileUtil.cc: RecoverableException.
  7179. * src/AbstractCommand.h
  7180. (onAbort): Exception -> RecoverableException.
  7181. * src/DlRetryEx.h: Exception -> RecoverableException.
  7182. * src/DlAbortEx.h: Exception -> RecoverableException.
  7183. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  7184. * src/Util.cc: Exception -> RecoverableException.
  7185. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  7186. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  7187. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  7188. To make ID static const int
  7189. * src/BtInterestedMessage.h
  7190. (ID_t): Removed.
  7191. (ID): New variable.
  7192. (getId): Made non-const.
  7193. * src/BtPieceMessage.h
  7194. (ID_t): Removed.
  7195. (ID): New variable.
  7196. (getId): Made non-const.
  7197. * src/BtChokeMessage.h
  7198. (ID_t): Removed.
  7199. (ID): New variable.
  7200. (getId): Made non-const.
  7201. * src/BtHaveAllMessage.h
  7202. (ID_t): Removed.
  7203. (ID): New variable.
  7204. (getId): Made non-const.
  7205. * src/BtKeepAliveMessage.h
  7206. (ID_t): Removed.
  7207. (ID): New variable.
  7208. (getId): Made non-const.
  7209. * src/BtHandshakeMessage.h
  7210. (ID): New variable.
  7211. (getId): Made non-const.
  7212. * src/BtSuggestPieceMessage.h
  7213. (ID_t): Removed.
  7214. (ID): New variable.
  7215. (getId): Made non-const.
  7216. * src/BtPortMessage.h
  7217. (ID_t): Removed.
  7218. (ID): New variable.
  7219. (getId): Made non-const.
  7220. * src/AbstractBtMessage.h
  7221. (id): Removed.
  7222. (AbstractBtMessage): Removed id.
  7223. (getId): Removed.
  7224. * src/BtHaveMessage.h
  7225. (ID_t): Removed.
  7226. (ID): New variable.
  7227. (getId): Made non-const.
  7228. * src/BtAllowedFastMessage.h
  7229. (ID_t): Removed.
  7230. (ID): New variable.
  7231. (getId): Made non-const.
  7232. * src/BtCancelMessage.h
  7233. (ID_t): Removed.
  7234. (ID): New variable.
  7235. (getId): Made non-const.
  7236. * src/BtNotInterestedMessage.h
  7237. (ID_t): Removed.
  7238. (ID): New variable.
  7239. (getId): Made non-const.
  7240. * src/BtChokeMessage.h
  7241. (ID_t): Removed.
  7242. (ID): New variable.
  7243. (getId): Made non-const.
  7244. * src/BtRejectMessage.h
  7245. (ID_t): Removed.
  7246. (ID): New variable.
  7247. (getId): Made non-const.
  7248. * src/BtBitfieldMessage.h
  7249. (ID_t): Removed.
  7250. (ID): New variable.
  7251. (getId): Made non-const.
  7252. * src/BtUnchokeMessage.h
  7253. (ID_t): Removed.
  7254. (ID): New variable.
  7255. (getId): Made non-const.
  7256. * src/BtRequestMessage.h
  7257. (ID_t): Removed.
  7258. (ID): New variable.
  7259. (getId): Made non-const.
  7260. * src/BtHaveMessage.h
  7261. (ID_t): Removed.
  7262. (ID): New variable.
  7263. (getId): Made non-const.
  7264. To add --force-truncate command-line option and a check whether
  7265. the file already exists:
  7266. * src/DirectDiskAdaptor.h
  7267. (getFilePath): Made virtual public.
  7268. * src/MultiDiskAdaptor.h
  7269. (File.h): New include.
  7270. (DiskWriterEntry::fileEntry): Made private.
  7271. (DiskWriterEntry::fileExists): New function.
  7272. (DiskWriterEntry::getFileEntry): New function.
  7273. (fileExists): New function.
  7274. (getFilePath): New function.
  7275. * src/TorrentRequestInfo.cc
  7276. (FatalException.h): New include.
  7277. (message.h): New include.
  7278. (RecoverableException.h): New include.
  7279. (execute): Added a check whether file is already exists or not.
  7280. * src/DiskAdaptor.h
  7281. (fileExists): New function.
  7282. (getFilePath): New function.
  7283. * src/main.cc
  7284. (showUsage): Added an explanation of --force-truncate command-line
  7285. option.
  7286. (main): Added --force-truncate command-line option.
  7287. * src/Exception.h
  7288. (setMsg): buf[256] -> buf[1024]
  7289. * src/CopyDiskWriter.h
  7290. (getFilePath): Made public virtual.
  7291. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  7292. (fileExists): New function.
  7293. * src/DownloadEngineFactory.cc
  7294. (newTorrentConsoleEngine): Don't open file here.
  7295. * src/message.h
  7296. (EX_FILE_ALREADY_EXISTS): New definition.
  7297. * src/prefs.h
  7298. (PREF_FOECE_TRUNCATE): New definition.
  7299. * src/HttpResponseCommand.cc
  7300. (handleDefaultEncoding): Added a check whether the file already exists.
  7301. * src/SegmentMan.h
  7302. (fileExists): New function.
  7303. (shouldCancelDownloadForSafety): New function.
  7304. * src/FtpNegotiateCommand.cc
  7305. (recvSize): Added a check whether the file already exists.
  7306. * src/AbstractSingleDiskAdaptor.cc
  7307. (File.h): New include.
  7308. (fileExists): New function.
  7309. * src/AbstractSingleDiskAdaptor.h
  7310. (getFilePath): Removed.
  7311. (fileExists): New function.
  7312. * src/SegmentMan.cc
  7313. (fileExists): New function.
  7314. (shouldCancelDownloadForSafety): New function.
  7315. To fix regression bug in torrent downloading:
  7316. * src/DefaultBtRequestFactory.cc
  7317. (doChokedAction): New function.
  7318. * src/DefaultBtRequestFactory.h
  7319. (doChokedAction): New function.
  7320. * src/DefaultBtMessageDispatcher.cc
  7321. (doChokedAction): Do not delete request if its target is in allowed
  7322. fast set.
  7323. * src/DefaultBtInteractive.cc
  7324. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  7325. (sendKeepAlive): Send keep alive message even if the outgoing message
  7326. queue is not empty.
  7327. (decideInterest): Simplified the code.
  7328. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  7329. it is already called when BtChokeMessage is received from a peer.
  7330. * src/BtRequestFactory.h
  7331. (doChokedAction): New function.
  7332. To clean up code:
  7333. * src/PeerInteractionCommand.h
  7334. (executeInternal): Added virtual keyword explicitly.
  7335. (prepareForRetry): Added virtual keyword explicitly.
  7336. (prepareForNextPeer): Added virtual keyword explicitly.
  7337. (onAbort): Added virtual keyword explicitly.
  7338. * src/RequestSlot.cc
  7339. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  7340. * src/BtPieceMessage.cc
  7341. (doReceivedAction): Added a debug log of piece's bitfield.
  7342. * src/Piece.h
  7343. (getBitfieldLength): New function.
  7344. * src/ByteArrayDiskWriter.cc
  7345. (clear): Added buf = 0 to avoid double free corruption.
  7346. * src/FileAllocator.cc
  7347. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  7348. Added cp.reset().
  7349. * src/BitfieldMan.h
  7350. (operator=): Rewritten.
  7351. * src/BitfieldMan.cc
  7352. (BitfieldMan): Initialized bitfield, useBitfield.
  7353. * src/PeerConnection.cc
  7354. (receiveMessage): Added a call to socket->readable() after getting
  7355. message length to avoid possible EOF.
  7356. * src/Util.cc
  7357. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  7358. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. To add an ability to pre-allocate file space:
  7360. * src/DirectDiskAdaptor.h: Rewritten.
  7361. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  7362. * src/MultiDiskAdaptor.h: Rewritten.
  7363. * src/DefaultPieceStorage.cc
  7364. (MultiDiskWriter.h): Removed include.
  7365. (PreAllocationDiskWriter.h): Removed include.
  7366. (FileAllocationMonitor.h): New include.
  7367. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  7368. (initStorage): Rewritten.
  7369. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7370. * src/FileAllocator.h: New class.
  7371. * src/FileAllocator.cc: New class.
  7372. * src/FileAllocationMonitor.h: New class.
  7373. * src/FileAllocationMonitor.cc: New class.
  7374. * src/ConsoleFileAllocationMonitor.h: New class.
  7375. * src/ConsoleFileAllocationMonitor.cc: New class.
  7376. * src/AbstractSingleDiskAdaptor.h: New class.
  7377. * src/AbstractSingleDiskAdaptor.cc: New class.
  7378. * src/DiskAdaptor.h
  7379. (Directory.h): Removed include.
  7380. (DiskWriter.h): Removed include.
  7381. (FileEntry.h): Removed include.
  7382. (diskWriter): Removed.
  7383. (DiskAdaptor): Removed diskWriter.
  7384. (openFile): Made pure virtual.
  7385. (closeFile): Made pure virtual.
  7386. (openExistingFile): Made pure virtual.
  7387. (initAndOpenFile): Made pure virtual.
  7388. (writeData): Made pure virtual.
  7389. (readData): Made pure virtual.
  7390. (sha1Sum): Made pure virtual.
  7391. (getStoreDir): Returns const reference of storeDir.
  7392. (DiskAdaptorHandle): New type definition.
  7393. * src/main.cc
  7394. (ConsoleFileAllocationMonitor.h): New include.
  7395. (showUsage): Added default value description of -s option.
  7396. Added the description of --file-allocation option.
  7397. (main): Set default value of --file-allocation option to 'none'.
  7398. Added --file-allocation command-line option.
  7399. Setup FileAllocationMonitorFactory.
  7400. * src/FtpInitiateConnectionCommand.cc
  7401. (executeInternal): Removed diskWriter related processing, which was
  7402. moved to FtpNegotiationCommand.cc.
  7403. * src/DirectDiskAdaptor.cc
  7404. (getFilePath): Made non-const.
  7405. * src/CopyDiskAdaptor.h
  7406. (DiskAdaptor.h): Removed include.
  7407. (DiskWriter.h): Removed include.
  7408. (AbstractSingleDiskAdaptor.h): New include.
  7409. (getFilePath): Made non-const. Added virtual keyword.
  7410. (CopyDiskAdaptor): Removed diskWriter.
  7411. (getTempFile): Returns const reference.
  7412. (CopyDiskAdaptorHandle): New type definition.
  7413. * src/ByteArrayDiskWriter.cc
  7414. (clear): Simplified.
  7415. (initAndOpenFile): Rewritten.
  7416. (openFile): Call initAndOpenFile()
  7417. * src/MultiDiskAdaptor.cc: Rewritten.
  7418. * src/DownloadEngineFactory.cc
  7419. (FileAllocator.h): New include.
  7420. (FileAllocationMonitor.h): New include.
  7421. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7422. create DefaultDiskWriter with file allocator.
  7423. * src/DiskWriter.h
  7424. (initAndOpenFile): Added totalLength argument.
  7425. (openFile): Added totalLength argument.
  7426. * src/prefs.h
  7427. (PREF_FILE_ALLOCATION): New definition.
  7428. (V_PREALLOC): New definition.
  7429. (V_NONE): New definition.
  7430. * src/HttpResponseCommand.cc
  7431. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7432. size.
  7433. * src/FtpNegotiateCommand.cc
  7434. (Util.h): New include.
  7435. (recvSize): Open file here.
  7436. * src/Util.h
  7437. (ullitos): New function.
  7438. * src/CopyDiskWriter.h
  7439. (getFilePath): Made non-const.
  7440. * src/DefaultDiskWriter.h
  7441. (Option.h): New include.
  7442. (totalLength): Removed.
  7443. (DefaultDiskWriter): Removed totalLength.
  7444. (initAndOpenFile): Added totalLength argument.
  7445. (DefaultDiskWriterHandle): New type definition.
  7446. (createNewDiskWriter): New function.
  7447. * src/Util.cc
  7448. (ullitos): New function.
  7449. * src/DefaultDiskWriter.cc
  7450. (message.h): New include.
  7451. (FileAllocator.h): New include.
  7452. (prefs.h): New include.
  7453. (Util.h): New include.
  7454. (DefaultDiskWriter): Removed totalLength.
  7455. (initAndOpenFile): Added file allocation.
  7456. (createNewDiskWriter): New function. Just for temporary solution.
  7457. It will be rewritten later.
  7458. * src/DiskAdaptor.cc
  7459. (DiskAdaptor): Removed diskWriter.
  7460. * src/AbstractDiskWriter.cc
  7461. (LogFactory.h): New include.
  7462. (AbstractDiskWriter): Added fileAllocator, logger.
  7463. (openFile): Added totalLength argument.
  7464. * src/AbstractDiskWriter.h
  7465. (FileAllocator.h): New include.
  7466. (Logger.h): New include.
  7467. (fileAllocator): New variable.
  7468. (logger): New variable.
  7469. (openFile): Added totalLength argument. Added virtual keyword
  7470. explicitly.
  7471. (openExistingFile): Added totalLength argument. Added virtual keyword
  7472. explicitly.
  7473. (closeFile): Added virtual keyword explicitly.
  7474. (sha1Sum): Added virtual keyword explicitly.
  7475. (writeData): Added virtual keyword explicitly.
  7476. (readData): Added virtual keyword explicitly.
  7477. (setFileAllocator): New function.
  7478. * src/DefaultPieceStorage.h
  7479. (FileAllocator.h): New include.
  7480. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7481. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7482. * src/FileProgressMonitor.h: New class.
  7483. To compile aria2 on PC-BSD:
  7484. * src/DefaultBtContext.cc
  7485. (libgen.h): New include.
  7486. To fix memory leak:
  7487. * src/Exception.h
  7488. (~Exception): Delete cause. Fixed memory leak.
  7489. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. Rewritten a portion of bittorrent implementation:
  7491. * src/BtMessageValidator.h: New class.
  7492. * src/BtBitfieldMessageValidator.h: New class.
  7493. * src/BtHandshakeMessageValidator.h: New class.
  7494. * src/BtRequestMessageValidator.h: New class.
  7495. * src/BtSuggestPieceMessageValidator.h: New class.
  7496. * src/BtAllowedFastMessageValidator.h: New class.
  7497. * src/BtRejectMessageValidator.h: New class.
  7498. * src/BtCancelMessageValidator.h: New class.
  7499. * src/BtPieceMessageValidator.h: New class.
  7500. * src/BtHaveMessageValidator.h: New class.
  7501. * src/BtEventListener.h: New class.
  7502. * src/AbstractBtEventListener.h: New class.
  7503. * src/BtEvent.h: New class.
  7504. * src/BtChokingEvent.h: New class.
  7505. * src/BtChokedEvent.h: New class.
  7506. * src/BtCancelSendingPieceEvent.h: New class.
  7507. * src/BtAbortOutstandingRequestEvent.h: New class.
  7508. * src/Randomizer.h: New class.
  7509. * src/SimpleRandomizer.h: New class.
  7510. * src/BtMessage.h: New class.
  7511. * src/AbstractBtMessage.h: New class.
  7512. * src/SimpleBtMessage.h: New class.
  7513. * src/BtHaveMessage.h: New class.
  7514. * src/BtInterestedMessage.h: New class.
  7515. * src/BtAllowedFastMessage.h: New class.
  7516. * src/BtUnchokeMessage.h: New class.
  7517. * src/BtCancelMessage.h: New class.
  7518. * src/BtNotInterestedMessage.h: New class.
  7519. * src/BtChokeMessage.h: New class.
  7520. * src/BtHaveNoneMessage.h: New class.
  7521. * src/BtHandshakeMessage.h: New class.
  7522. * src/BtSuggestPieceMessage.h: New class.
  7523. * src/BtHaveMessage.h: New class.
  7524. * src/BtPieceMessage.h: New class.
  7525. * src/BtHaveAllMessage.h: New class.
  7526. * src/BtKeepAliveMessage.h: New class.
  7527. * src/BtPortMessage.h: New class.
  7528. * src/BtRejectMessage.h: New class.
  7529. * src/BtBitfieldMessage.h: New class.
  7530. * src/BtRequestMessage.h: New class.
  7531. * src/DefaultBtRequestFactory.h: New class.
  7532. * src/DefaultBtMessageReceiver.h: New class.
  7533. * src/BtInteractive.h: New class.
  7534. * src/BtMessageDispatcher.h: New class.
  7535. * src/DefaultBtMessageDispatcher.h: New class.
  7536. * src/DefaultBtInteractive.h: New class.
  7537. * src/BitfieldManFactory.h: New class.
  7538. * src/HandleRegistry.h: New class.
  7539. * src/BtMessageFactory.h: New class.
  7540. * src/BtMessageReceiver.h: New class.
  7541. * src/DefaultBtMessageFactory.h: New class.
  7542. * src/PeerObject.h: New class.
  7543. * src/BtRequestFactory.h: New class.
  7544. * src/SuggestPieceMessage.h: Removed.
  7545. * src/PortMessage.h: Removed.
  7546. * src/SuggestPieceMessage.h: Removed.
  7547. * src/KeepAliveMessage.h: Removed.
  7548. * src/HandshakeMessage.h: Removed.
  7549. * src/PeerInteraction.h: Removed.
  7550. * src/UnchokeMessage.h: Removed.
  7551. * src/PieceMessage.h: Removed.
  7552. * src/RequestMessage.h: Removed.
  7553. * src/InterestedMessage.h: Removed.
  7554. * src/HaveMessage.h: Removed.
  7555. * src/CancelMessage.h: Removed.
  7556. * src/RejectMessage.h: Removed.
  7557. * src/AllowedFastMessage.h: Removed.
  7558. * src/HaveNoneMessage.h: Removed.
  7559. * src/SimplePeerMessage.h: Removed.
  7560. * src/HaveAllMessage.h: Removed.
  7561. * src/BitfieldMessage.h: Removed.
  7562. * src/PeerMessageFactory.h: Removed.
  7563. * src/NotInterestedMessage.h: Removed.
  7564. * src/ChokeMessage.h: Removed.
  7565. * src/PeerMessage.h: Removed.
  7566. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7567. To know root cause of exception:
  7568. * src/Exception.h
  7569. (cause): New variable.
  7570. (Exception): Added a parameter.
  7571. (getMsg): Return const reference to msg.
  7572. (getCause): New function.
  7573. * src/DlRetryEx.h
  7574. (DlRetryEx): Added a parameter 'cause'.
  7575. Added an overloaded constructor.
  7576. (DlAbortEx): Added a parameter 'cause'.
  7577. Added an overloaded constructor.
  7578. * src/SimpleLogger.cc
  7579. (writeLog): Log nested exception messages recursively.
  7580. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. * src/DefaultBtProgressInfoFile.cc
  7582. (load): Fixed memory leak when the infohash doesn't match.
  7583. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. * src/DefaultPeerStorage.cc
  7585. (calculateStat): Simplified the code by combining 2 loops into 1.
  7586. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  7588. for BitTorrent download:
  7589. * src/PeerAbstractCommand.cc
  7590. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  7591. * src/main.cc:
  7592. (timeoutSpecified): Removed.
  7593. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  7594. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  7595. * src/TorrentRequestInfo.cc
  7596. (timeoutSpecified): Removed.
  7597. (torrentHandler): Removed timeoutSpecified and the adjustment of
  7598. timeout value.
  7599. * src/prefs.h
  7600. (PREF_BT_TIMEOUT): New definition.
  7601. Delete unused variables:
  7602. * src/TorrentRequestInfo.cc
  7603. (requestInfo): Removed.
  7604. Move setSignalHander to Util::setGlobalSignalHandler:
  7605. * src/TorrentRequestInfo.cc:
  7606. setSignalHander -> Util::setGlobalSignalHandler
  7607. * src/main.cc
  7608. (setSignalHander): Removed.
  7609. (main): setSignalHander -> Util::setGlobalSignalHandler
  7610. * src/Util.h
  7611. (setGlobalSignalHandler): New function.
  7612. * src/Util.cc
  7613. (setGlobalSignalHandler): New function.
  7614. * src/UrlRequestInfo.cc:
  7615. setSignalHander -> Util::setGlobalSignalHandler
  7616. Reset peer status in order to exit gracefully:
  7617. * src/PeerAbstractCommand.cc
  7618. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  7619. To fix the bug that causes the number of bytes uploaded is not saved
  7620. to .aria2 file:
  7621. * src/DefaultPeerStorage.h
  7622. (removedPeerSessionDownloadLength): New variable.
  7623. (removedPeerSessionUploadLength): New variable.
  7624. * src/DefaultPeerStorage.cc
  7625. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  7626. removedPeerSessionUploadLength(0).
  7627. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  7628. through all peers, and then add removedPeerSessionDownloadLength(
  7629. removedPeerSessionUploadLength) to it.
  7630. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  7631. (to) the peer to removedPeerSessionDownloadLength
  7632. (removedPeerSessionUploadLength).
  7633. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. To add Metalink location option:
  7635. * src/MetalinkRequestInfo.cc
  7636. (execute): Call MetalinkEntry::setLocationPreference()
  7637. * src/main.cc
  7638. (showUsage): Added the help message for --metalink-location option.
  7639. (main): Added --metalink-location option.
  7640. * src/prefs.h
  7641. (PREF_METALINK_LOCATION): New definition.
  7642. * src/MetalinkEntry.cc
  7643. (AddLocationPreference): New function object.
  7644. (setLocationPreference): New function.
  7645. * src/Xml2MetalinkProcessor.cc
  7646. (getResource): Set location attribute to MetalinkResource
  7647. To show URLs to download
  7648. * src/UrlRequestInfo.h
  7649. (printUrls): New function.
  7650. To add multiple <file> Metalink support:
  7651. * src/MetalinkEntry.h
  7652. (MetalinkResources): Removed.
  7653. (setLocationPreference): New function.
  7654. (MetalinkEntryHandle): New type definition.
  7655. (MetalinkEntries): New type definition.
  7656. * src/Xml2MetalinkProcessor.h
  7657. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7658. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7659. (parseFile): Metalinker* -> MetalinkerHandle
  7660. * src/UrlRequestInfo.h
  7661. (execute): RequestInfo* -> RequestInfos
  7662. * src/MetalinkRequestInfo.cc
  7663. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  7664. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  7665. (execute): RequestInfo* -> RequestInfos
  7666. Added multiple <file> support. Print filename when it is queued.
  7667. * src/MetalinkRequestInfo.h
  7668. (execute): RequestInfo* -> RequestInfos
  7669. (getDownloadEngine): Removed.
  7670. * src/RequestInfo.h
  7671. (RequestInfoHandle): New type definition.
  7672. (RequestInfos): New type definition.
  7673. (execute): RequestInfo* -> RequestInfos
  7674. (getDownloadEngine): Removed.
  7675. * src/MetalinkResource.h
  7676. (MetalinkResourceHandle): New type definition.
  7677. (MetalinkResources): New type definition.
  7678. * src/MetalinkEntry.cc
  7679. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7680. because the element is now of type MetalinkResourceHandle.
  7681. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7682. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7683. (dropUnsupportedResource): Removed the deletion of the elements of
  7684. resources because the element is now of type MetalinkResourceHandle.
  7685. * src/Xml2MetalinkProcessor.cc
  7686. (parseFile): Metalinker* -> MetalinkerHandle
  7687. MetalinkEntry* -> MetalinkEntryHandle
  7688. Removed try-catch block.
  7689. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7690. MetalinkResource* -> MetalinkResourceHandle
  7691. Removed try-catch block.
  7692. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7693. Free result by using xmlXPathFreeObject()
  7694. * src/Metalinker.cc
  7695. (~Metalinker): Removed the deletion of entries.
  7696. MetalinkEntry* -> MetalinkEntryHandle
  7697. (queryEntry): Add multiple <file> Metalink support.
  7698. * src/Metalinker.h
  7699. (MetalinkEntries): Removed.
  7700. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7701. * src/MetalinkProcessor.h
  7702. (parseFile): Metalinker* -> MetalinkerHandle
  7703. Bug fixes:
  7704. * src/PeerChokeCommand.cc
  7705. (execute): cat01->cat02
  7706. * src/DefaultPieceStorage.cc
  7707. (DefaultPieceStorage): Added diskAdaptor(0)
  7708. * src/TrackerWatcherComand.cc:
  7709. (execute): Use btAnnounce->noMoreAnnounce()
  7710. to determin whether the function returns true or not.
  7711. * src/TrackerUpdateCommand.cc:
  7712. (execute): Use btAnnounce->noMoreAnnounce()
  7713. to determin whether the function returns true or not.
  7714. * src/FtpConnection.cc
  7715. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7716. This is the fix of the busy loop bug.
  7717. * src/DownloadCommand.cc
  7718. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7719. cached PeerStat.
  7720. The value of "name" entry in torrent file is now set by
  7721. *DiskAdaptor::setTopDir(...) methods.
  7722. * src/MultiDiskAdaptor.h
  7723. (topDir): New variable.
  7724. (setTopDir): New function.
  7725. (getTopDir): New function.
  7726. * src/MultiDiskAdaptor.cc
  7727. (getFilePath): Concat storDir, "/" and topDir.
  7728. (mkdir): Use getFilePath() to get the directory path for output.
  7729. * src/DefaultPieceStorage.cc
  7730. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7731. CopyDiskAdaptor.
  7732. * src/CopyDiskAdaptor.h
  7733. (topDir): New variable.
  7734. (setTopDir): New function.
  7735. (getTopDir): New function.
  7736. * src/CopyDiskAdaptor.cc
  7737. (fixFilename): Updated.
  7738. Misc
  7739. * src/UrlRequestInfo.h
  7740. (e): Removed.
  7741. (UrlRequestInfo): Removed e.
  7742. (getDownloadEngine): Removed.
  7743. * src/UrlRequestInfo.cc
  7744. (handler): Rewritten.
  7745. (printUrls): New function.
  7746. (execute): Call printUrls().
  7747. * src/HandshakeMessage.cc
  7748. (check): peerinteraction->getBtContext() -> btContext
  7749. * src/PeerInteraction.h
  7750. (getBtContext): Removed.
  7751. * src/TorrentRequestInfo.h
  7752. (execute): RequestInfo* -> RequestInfos
  7753. (getDownloadEngine): Removed.
  7754. * src/TorrentRequestInfo.cc
  7755. (haltRequested): Removed.
  7756. (btHaltRequested): New variable.
  7757. (torrentHandler): haltRequested -> btHaltRequested
  7758. (execute): RequestInfo* -> RequestInfos
  7759. * src/TorrentConsoleDownloadEngine.cc
  7760. (afterEachIteration): haltRequested -> btHaltRequested.
  7761. * src/ConsoleDownloadEngine.h
  7762. (initStatistics): Added virtual.
  7763. (calculateStatistics): Added virtual.
  7764. (onEndOfRun): Added virtual.
  7765. (afterEachIteration): Added virtual.
  7766. * src/ConsoleDownloadEngine.cc
  7767. (haltRequested): New variable.
  7768. (afterEachIteration): New function.
  7769. * src/main.cc
  7770. (requestInfo): Removed.
  7771. * src/SegmentMan.cc
  7772. (findSlowerSegmentEntry): Refactored.
  7773. * Release 0.9.0
  7774. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7776. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7777. * src/TorrentMan.h: Removed.
  7778. * src/TorrentMan.cc: Removed.
  7779. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7780. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7781. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7782. * src/PeerAbstractCommand.cc: Use btRuntime.
  7783. * src/BtContextAwareCommand.h: New class.
  7784. * src/FileEntry.h: Added accessor methods for following variables.
  7785. (path): Made private.
  7786. (length): Made private.
  7787. (offset): Made private.
  7788. (extracted): Made private.
  7789. (requested): Made private.
  7790. (FileEntries): New definition.
  7791. (FileEntryHandle): New definition.
  7792. * src/FileEntry.cc: New file.
  7793. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7794. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7795. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7796. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7797. * src/PieceStorage.h: New file.
  7798. * src/PeerInteractionCommand.h: Use btContext.
  7799. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7800. btRuntime.
  7801. * src/DefaultBtProgressInfoFile.h: New file.
  7802. * src/DefaultBtProgressInfoFile.cc: New file.
  7803. * src/File.cc
  7804. (Util.h): New include.
  7805. (mkdirs): New function.
  7806. * src/MultiDiskAdaptor.h
  7807. (mkdir): New function.
  7808. * src/PeerListProcessor.h
  7809. (Peers): Removed.
  7810. * src/PeerInteraction.h
  7811. (torrentMan): Removed.
  7812. (btContext): New variable.
  7813. (peerStorage): New variable.
  7814. (pieceStorage): New variable.
  7815. (btAnnounce): New variable.
  7816. (getTorrentMan): Removed.
  7817. (getBtContext): New function.
  7818. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7819. btAnnounce.
  7820. * src/HandshakeMessage.h
  7821. (TorrentMan.h): Removed.
  7822. * src/HandshakeMessage.cc: Use btContext.
  7823. * src/DefaultBtAnnounce.cc: New file.
  7824. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7825. * src/DefaultPieceStorage.cc: New file.
  7826. * src/DefaultBtContext.h: New file.
  7827. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7828. Use the accessor methods of FileEntry.
  7829. * src/CookieBox.cc: Updated to use Util::slice().
  7830. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7831. * src/common.h (SharedHandle.h): New include.
  7832. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7833. pieceStorage.
  7834. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7835. * src/DiskAdaptor.h
  7836. (topDir): Removed.
  7837. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7838. (setTopDir): Removed.
  7839. (getTopDir): Removed.
  7840. * src/BtContext.h: New file.
  7841. * src/DefaultPeerStorage.h: New file.
  7842. * src/PieceMessage.h (TorrentMan.h): Removed.
  7843. * src/RequestMessage.h (TorrentMan.h): Removed.
  7844. * src/TorrentDownloadEngine.h
  7845. (uploadLength): New variable.
  7846. (btContext): New variable.
  7847. (btRuntime): New variable.
  7848. (pieceStorage): New variable.
  7849. (peerStorage): New variable.
  7850. (btAnnounce): New variable.
  7851. (btProgressInfoFile): New variable.
  7852. (torrentMan): Removed.
  7853. (setBtContext): New function.
  7854. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7855. peerStorage, btAnnounce, btProgressInfoFile.
  7856. * src/Piece.h
  7857. (toString): New function.
  7858. (Pieces): New type definition.
  7859. * src/Peer.h
  7860. (active): New variable.
  7861. (Peer): Added active.
  7862. (activate): Set active to true.
  7863. (deactivate): Set active to false.
  7864. (isActive): New function.
  7865. (Peers): New type definition.
  7866. * src/DirectDiskAdaptor.cc
  7867. (getFilePath): Use the accessor methods of FileEntry.
  7868. * src/TorrentConsoleDownloadEngine.h
  7869. (afterEachIteration): New function.
  7870. * src/TorrentConsoleDownloadEngine.cc
  7871. (haltRequested): New variable.
  7872. (sendStatistics): Use pieceStorage, btRuntime.
  7873. (afterEachIteration): New function.
  7874. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7875. * src/Directry.h
  7876. (Directory): New function.
  7877. (DirectoryHandle): New type definition.
  7878. * src/BtProgressInfoFile.h: New file.
  7879. * src/RequestMessage.cc: Use pieceStorage.
  7880. * src/BtRuntime.h: New file.
  7881. * src/DefaultBtContext.cc: New file.
  7882. * src/BitfieldMan.h
  7883. (getCompletedLength): New function(private).
  7884. (getCompletedLength): New function.
  7885. (getFilteredCompletedLength): New function.
  7886. * src/BitfieldMan.h
  7887. (getCompletedLength): New function(private).
  7888. (getCompletedLength): New function.
  7889. (getFilteredCompletedLength): New function.
  7890. * src/MultiDiskAdaptor.cc
  7891. (mkdir): New function.
  7892. (openFile): Call mkdir().
  7893. (initAndOpenFile): Call mkdir().
  7894. * src/CancelMessage.h
  7895. (TorrentMan.h): Removed.
  7896. * src/RejectMessage.h
  7897. (TorrentMan.h): Removed.
  7898. * src/DownloadEngineFactory.cc
  7899. (DefaultPieceStorage.h): New include.
  7900. (DefaultPeerStorage.h): New include.
  7901. (DefaultBtAnnounce.h): New include.
  7902. (DefaultBtProgressInfoFile.h): New include.
  7903. (newTorrentConsoleEngine): Rewritten.
  7904. * src/ShareRatioSeedCriteria.h
  7905. (torrentMan): Removed.
  7906. (btContext): New variable.
  7907. (peerStorage): New variable.
  7908. (btRuntime): New variable.
  7909. (evaluate): Use btContext, btRuntime, peerStorage.
  7910. * src/AnnounceTier.h: New file.
  7911. * src/BtAnnounce.h: New file.
  7912. * src/BtRegistry.h: New file.
  7913. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7914. * src/PeerConnection.h (TorrentMan.h): Removed.
  7915. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7916. * src/Util.h
  7917. (slice): Added an argument.
  7918. * src/Util.cc
  7919. (slice): Added an argument to control whether trim is made or not.
  7920. * src/PeerStorage.h: New file.
  7921. * src/BtRegistry.cc: New file.
  7922. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7923. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7924. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7925. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7926. * src/TorrentRequestInfo.h
  7927. (e): Removed.
  7928. (showFileEntry): Added an argument.
  7929. (getDownloadEngine): Return 0.
  7930. * src/DefaultBtAnnounce.h: New file.
  7931. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7932. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7933. * src/PeerMessageFactory.h
  7934. (btContext): New variable.
  7935. (pieceStorage): New variable.
  7936. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7937. btAnnounce.
  7938. * src/DiskAdaptor.cc
  7939. (DiskAdaptor): Removed topDir.
  7940. (~DiskAdaptor): Removed topDir.
  7941. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7942. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7943. * src/File.h (mkdirs): New function.
  7944. * src/DefaultPeerStorage): New file.
  7945. * src/DownloadEngineFactory.h
  7946. (newTorrentConsoleEngine): Use btContext.
  7947. * src/BtContextAwareCommand.cc: New file.
  7948. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7949. * src/PeerMessage.h
  7950. (btContext): New variable.
  7951. (peerStorage): New variable.
  7952. (pieceStorage): New variable.
  7953. (setBtContext): New function.
  7954. * src/Directry.cc
  7955. (Directory): New function.
  7956. (createDir): Do nothing if name.size() == 0.
  7957. * src/AnnounceList.h
  7958. (AnnounceTier): Removed.
  7959. (AnnounceTiers): Removed.
  7960. * src/DefaultPieceStorage.h: New file.
  7961. * src/Piece.cc (toString): New function.
  7962. To fix typo:
  7963. * src/main.cc (showVersion): Fixed typo.
  7964. To fix compile warning:
  7965. * src/DelegatingPeerListProcessor.cc
  7966. (canHandle): Added "return false".
  7967. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7969. make the process of announce request testable.
  7970. * src/TrackerWatcherCommand.h
  7971. (TimeA2.h): Removed.
  7972. (interval): Removed.
  7973. (checkPoint): Removed.
  7974. (createRequestCommand): Added an argument 'url'.
  7975. (TrackerWatherCommand): Removed interval.
  7976. (createCommand): New function.
  7977. * src/DownloadEngineFactory.cc
  7978. (newTorrentConsoleEngine): Updated according to the changes in
  7979. TrackerWatherCommand.
  7980. * src/TorrentMan.cc
  7981. (DelegatingPeerListProcessor.h): New includes.
  7982. (TorrentMan): Added the initialization of announceInterval.
  7983. (isStoppedAnnounceReady): New function.
  7984. (isCompletedAnnounceReady): New function.
  7985. (isDefaultAnnounceReady): New function.
  7986. (isAnnounceReady): New function.
  7987. (getAnnounceUrl): New function.
  7988. (announceStart): New function.
  7989. (announceFailure): New function.
  7990. (announceSuccess): New function.
  7991. (isAllAnnounceFailed): New function.
  7992. (resetAnnounce): New function.
  7993. (processAnnounceResponse): New function.
  7994. (needMorePeerConnection): New function.
  7995. (noMoreAnnounce): New function.
  7996. * src/TrackerUpdateCommand.h
  7997. (getTrackerResponse): int->size_t
  7998. * src/TorrentMan.h
  7999. (isStoppedAnnounceReady): New function.
  8000. (isCompletedAnnounceReady): New function.
  8001. (isDefaultAnnounceReady): New function.
  8002. (announceInterval): New variable.
  8003. (isAnnounceReady): New function.
  8004. (getAnnounceUrl): New function.
  8005. (announceStart): New function.
  8006. (announceFailure): New function.
  8007. (announceSuccess): New function.
  8008. (isAllAnnounceFailed): New function.
  8009. (resetAnnounce): New function.
  8010. (processAnnounceResponse): New function.
  8011. (needMorePeerConnection): New function.
  8012. (noMoreAnnounce): New function.
  8013. * src/TrackerWatcherCommand.cc
  8014. (TrackerWatherCommand): Removed interval and checkPoint.
  8015. (execute): Rewritten.
  8016. (createCommand): New function.
  8017. (createRequestCommand): Rewritten.
  8018. * src/TrackerUpdateCommand.cc
  8019. (MetaFileUtil.h): Removed.
  8020. (DelegatingPeerListProcessor.h): Removed.
  8021. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  8022. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Request -> RequestHandle:
  8024. * src/HttpResponseCommand.h: Request->RequestHandle
  8025. * src/AbstractCommand.cc: Request->RequestHandle
  8026. * src/HttpDownloadCommand.cc: Request->RequestHandle
  8027. * src/HttpRequestCommand.cc: Request->RequestHandle
  8028. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  8029. * src/AbstractCommand.h: Request->RequestHandle
  8030. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  8031. * src/HttpResponseCommand.cc: Request->RequestHandle
  8032. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  8033. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  8034. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  8035. * src/HttpConnection.h: Request->RequestHandle
  8036. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  8037. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  8038. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8039. * src/DownloadCommand.h: Request->RequestHandle
  8040. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  8041. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  8042. * src/HttpRequestCommand.h: Request->RequestHandle
  8043. * src/FtpNegotiateCommand.h: Request->RequestHandle
  8044. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8045. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  8046. * src/HttpDownloadCommand.h: Request->RequestHandle
  8047. * src/FtpConnection.cc: Request->RequestHandle
  8048. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  8049. * src/UrlRequestInfo.cc: Request->RequestHandle
  8050. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  8051. * src/HttpConnection.h: Request->RequestHandle
  8052. * src/DownloadCommand.cc: Request->RequestHandle
  8053. * src/FtpConnection.h: Request->RequestHandle
  8054. * src/FtpDowndloadCommand.h: Request->RequestHandle
  8055. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  8056. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  8057. * src/Request.h
  8058. (SharedHandle.h): New include.
  8059. (RequestHandle): New type definition.
  8060. (Requests): Redefined.
  8061. To add MULTITRACKER support:
  8062. * src/TrackerWatcherCommand.h
  8063. (createRequestCommand): New function.
  8064. * src/DownloadEngineFactory.cc
  8065. (newTorrentConsoleEngine): Removed req.
  8066. * src/prefs.h
  8067. (PREF_TRACKER_MAX_TRIES): New definition.
  8068. * src/TorrentMan.cc
  8069. (TorrentMan): Removed req. Added trackerNumTry.
  8070. (~TorrentMan): Removed req.
  8071. (setupInternal1): Added announceList.
  8072. * src/TorrentRequestInfo.cc
  8073. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  8074. announces is now specified by PREF_TRACKER_MAX_TRIES.
  8075. * src/main.cc
  8076. (main): Added PREF_TRACKER_MAX_TRIES.
  8077. * src/TorrentMan.h
  8078. (Request.h): Removed.
  8079. (AnnounceList.h): New include.
  8080. (trackerNumTry): New variable.
  8081. (req): Removed.
  8082. (announceList): New variable.
  8083. * src/TrackerWatcherCommand.cc
  8084. (execute): Rewritten.
  8085. (createRequestCommand): New function.
  8086. * src/TrackerUpdateCommand.cc
  8087. (execute): Updated with the use of AnnounceList.
  8088. * src/AnnounceList.cc: New class.
  8089. * src/AnnounceList.h: New class.
  8090. To fix typo:
  8091. * src/prefs.h
  8092. (PREF_MAX_TRIES): max_try->max_tries
  8093. To not to decode "+" as space in URL decode:
  8094. * src/Util.cc
  8095. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  8096. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. To add timeout to async name resolution:
  8098. * src/AbstractCommand.h
  8099. (nameResolveFinished): New function. This is not elegant way. It needs
  8100. to be more refined.
  8101. (nameResolverCheck): New variable.
  8102. * src/AbstractCommand.cc
  8103. (AbstractCommand): Added nameResolverCheck.
  8104. (execute): Added the check whether the name resolution has finished.
  8105. (setNameResolverCheck): Set nameResolverCheck to true.
  8106. (disableNameResolverCheck): Set nameResolverCheck to false.
  8107. (nameResolverFinished): New function.
  8108. * src/FtpInitiateConnectionCommand.h
  8109. (nameResolverFinished): New function.
  8110. * src/FtpInitiateConnectionCommand.cc
  8111. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8112. * src/HttpInitiateConnectionCommand.h
  8113. (nameResolverFinished): New function.
  8114. * src/HttpInitiateConnectionCommand.cc
  8115. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8116. * src/prefs.h
  8117. (PREF_DNS_TIMEOUT): New definition.
  8118. * src/main.cc
  8119. (main): Added PREF_DNS_TIMEOUT.
  8120. To add the support for a non-compact response from a tracker:
  8121. * src/PeerListProcessor.h: New class.
  8122. * src/DefaultPeerListProcessor.h: New class.
  8123. * src/DefaultPeerListProcessor.cc: New class.
  8124. * src/CompactPeerListProcessor.h: New class.
  8125. * src/CompactPeerListProcessor.cc: New class.
  8126. * src/DelegatingPeerListProcessor.h: New class.
  8127. * src/DelegatingPeerListProcessor.cc: New class.
  8128. * src/TorrentMan.cc
  8129. (addPeer): New function(overload).
  8130. (addPeer): Delete unused peers only when new peer is added.
  8131. * src/TorrentMan.h
  8132. (PeerListProcessor.h): Included.
  8133. (Peers): Removed.
  8134. (addPeer): New function(overload).
  8135. * src/TrackerUpdateCommand.cc
  8136. (netinet/in.h): Removed.
  8137. (DelegatingPeerListProcessor.h): Included.
  8138. (execute): Updated to use DelegatingPeerListProcessor.
  8139. To fix the memory leak in TorrentMan::peers:
  8140. * src/PeerAbstractCommand.cc
  8141. (onAbort): Added peer->resetStatus().
  8142. * src/Peer.h
  8143. (resetStatus): Made public.
  8144. To improve the precision of the speed calculation:
  8145. * src/SpeedCalc.h
  8146. (nextInterval): New variable.
  8147. * src/SpeedCalc.cc
  8148. (reset): Added nextInterval.
  8149. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  8150. (changeSw): Set nextInterval to 15 seconds relative to the current
  8151. instant time.
  8152. * src/main.cc
  8153. (showVersion): Updated.
  8154. (showUsage): Updated.
  8155. * Release 0.8.1
  8156. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. * src/main.cc
  8158. (showUsage): Commented out --min-segment-size option.
  8159. (main): Commented out --min-segment-size option.
  8160. * Release 0.8.0
  8161. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. * src/*.{h,cc}:
  8163. Added an exception to the license which allows linking with OpenSSL.
  8164. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. * src/AbstractCommand.cc
  8166. (execute): Check whether the download has finished before checking
  8167. socket status.
  8168. Return true if peerStat->getStatus() == REQUEST_IDLE.
  8169. Do not exit even if no segment is available.
  8170. * src/prefs.h
  8171. (PREF_STARTUP_IDLE_TIME): New definition.
  8172. * src/PeerInteractionCommand.cc
  8173. (executeInternal): Removed max speed limit. Because it performs bad.
  8174. (receiveMessages): Added max speed limit. This was better than above,
  8175. but still a little bit to be desired. Sometimes the download speed
  8176. became much faster than I specified.
  8177. * src/SpeedCalc.h
  8178. (start): New variable.
  8179. (accumulatedLength): New variable.
  8180. (getAvgSpeed): New function.
  8181. * src/SpeedCalc.cc
  8182. (reset): Added start, accumulatedLength.
  8183. (update): Added calculation of an average speed.
  8184. (getAvgSpeed): New function.
  8185. * src/DownloadCommand.h
  8186. (sw): Removed.
  8187. * src/main.cc
  8188. (main): Added PREF_STARTUP_IDLE_TIME.
  8189. * src/PeerStat.h
  8190. (STATUS): Added REQUEST_IDLE.
  8191. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  8192. (getAvgDownloadSpeed): New function
  8193. (requestIdle): New function.
  8194. * src/SegmentMan.h
  8195. (SegmentEntryHandle): New type definition.
  8196. (SegmentEntries): Now holds SegmentEntryHandle.
  8197. (findSlowerSegmentEntry): New funtion.
  8198. * src/SegmentMan.cc
  8199. (save): Updated according to the changes in SegmentEntries.
  8200. (read): Updated according to the changes in SegmentEntries.
  8201. (FindSegmentEntryByIndex): Updated according to the changes in
  8202. SegmentEntries.
  8203. (FindSegmentEntryByCuid): Updated according to the changes in
  8204. SegmentEntries.
  8205. (checkoutSegment): Updated according to the changes in SegmentEntries.
  8206. (onNullBitfield): Updated according to the changes in SegmentEntries.
  8207. Renamed uitr as itr.
  8208. (findSlowerSegmentEntry): New function.
  8209. (getSegment): Updated according to the changes in SegmentEntries.
  8210. Added the feature that cancels the segment with slow server and fast
  8211. one takes it over.
  8212. (cancelSegment): Updated according to the changes in SegmentEntries.
  8213. (getDownloadLength): Updated according to the changes in
  8214. SegmentEntries.
  8215. (init): Assigned 0 to bitfield after deleting it.
  8216. * src/DownloadCommand.cc
  8217. (STARTUP_IDLE_TIME): Removed.
  8218. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  8219. * src/PeerChokeCommand.cc
  8220. (optUnchokingPeer): Updated according to the changes in Peer.
  8221. (ResetDelta): Removed.
  8222. (UploadFaster): Updated according to the changes in Peer.
  8223. (DownloadFaster): Updated according to the changes in Peer.
  8224. (execute): I clarify the meaning of "upload" and "download" here.
  8225. "upload" means the transfer from localhost to remote host.
  8226. "download" means the transfer from remote host to localhost.
  8227. Based on this rule, I swapped orderByUploadRate and
  8228. orderByDownloadRate.
  8229. * src/PeerInteractionCommand.cc
  8230. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  8231. (executeInternal): Removed the argument of
  8232. peerInteraction->sendMessages().
  8233. (receiveMessages): Rewritten download speed limit.
  8234. (sendKeepAlive): Removed peerInteraction->sendMessages().
  8235. * src/HttpResponseCommand.cc
  8236. (handleDefaultEncoding): If file size is unknown in torrent request,
  8237. do not call segmentMan->initBitfield() here.
  8238. Disabled persistent connection feature in torrent request.
  8239. * src/UrlRequestInfo.h
  8240. (UrlRequestInfo): Removed const qualifier from option.
  8241. * src/TorrentMan.h
  8242. (TransferStat): New class.
  8243. (deltaDownloadLength): Removed.
  8244. (deltaUploadLength): Removed.
  8245. (addDeltaDownloadLength): Removed.
  8246. (getDeltaDownloadLength): Removed.
  8247. (resetDeltaDownloadLength): Removed.
  8248. (addDeltaUploadLength): Removed.
  8249. (getDeltaUploadLength): Removed.
  8250. (resetDeltaUploadLength): Removed.
  8251. (addActivePeer): Added peer->activate().
  8252. (deleteActivePeer): Added peer->deactivate().
  8253. (calculateStat): New function.
  8254. * src/TorrentMan.cc
  8255. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  8256. (calculateStat): New function.
  8257. * src/PeerInteraction.h
  8258. (uploadLimit): Removed.
  8259. (option): New variable.
  8260. (setUploadLimit): Removed.
  8261. (getUploadSpeed): Removed.
  8262. (sendMessages): Removed the argument "currentUploadSpeed".
  8263. * src/PeerInteraction.cc
  8264. (prefs.h): Included.
  8265. (PeerInteraction): Removed uploadLimit. Added option.
  8266. (sendMessages): Rewritten upload speed limit.
  8267. (sendHandshake): Removed the argument from sendMessages().
  8268. (sendBitfield): Removed the argument from sendMessages().
  8269. * src/PeerAbstractCommand.cc
  8270. (execute): Commented out the portion of upload limit.
  8271. (onAbort): Removed peer->resetStatus().
  8272. * src/TorrentRequestInfo.cc
  8273. (timeoutSpecified): Declared extern.
  8274. (execute): Set timeout to 180 if timeout is not specified by.
  8275. command-line.
  8276. * src/PieceMessage.cc
  8277. (receivedAction): Added peer->updateDownloadLength().
  8278. Removed peer->addPeerUpload().
  8279. Removed torrentMan->addDeltaDownloadLength().
  8280. (send): Added peer->updateUploadLength().
  8281. Removed peer->addPeerDownload().
  8282. Removed torrentMan->addDeltaUploadLength().
  8283. * src/main.cc
  8284. (timeoutSpecified): New variable.
  8285. (main): Set timeoutSpecified to false.
  8286. If the command-line option "--upload-limit" is specified, then
  8287. timeoutSpecified is set to true. This option will remain in the next
  8288. release, but be deprecated in the future release.
  8289. * src/TorrentRequestInfo.h
  8290. (TorrentRequestInfo): Removed const qualifier from op.
  8291. * src/PeerStat.h
  8292. (uploadSpeed): New variable.
  8293. (PeerStat): Added default value to cuid.
  8294. (calculateUploadSpeed): New function.
  8295. (updateUploadLength): New function.
  8296. (getMaxUploadSpeed): New function.
  8297. (getAvgUploadSpeed): New function.
  8298. (reset): Added uploadSpeed. Set status to IDLE.
  8299. * src/TorrentDownloadEngine.h
  8300. (cp): Declared as Time.
  8301. (sessionDownloadLengthArray): Removed.
  8302. (sessionUploadLengthArray): Removed.
  8303. (currentCp): Removed.
  8304. (lastCalcStat): New variable
  8305. (lastElapsed): Removed.
  8306. (sessionDownloadLength): Removed.
  8307. (calculateStat): New function.
  8308. * src/TorrentDownloadEngine.cc
  8309. (initStatistics): Removed lastElapsed, cp[],
  8310. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  8311. currentCp, sessionDownloadLength.
  8312. Added cp.reset() and lastCalcStat.reset().
  8313. (calculateSpeed): Changed the name of the argument.
  8314. (calculateStatistics): Rewritten.
  8315. (calculateStat): New function.
  8316. * src/Peer.h
  8317. (PeerStat.h): Included.
  8318. (peerUpload): Removed.
  8319. (peerDownload): Removed.
  8320. (peerStat): New variable.
  8321. (sessionUploadLength): New variable.
  8322. (sessionDownloadLength): New variable.
  8323. (deltaUpload): Removed.
  8324. (deltaDownload): Removed.
  8325. (resetStatus): Made private.
  8326. (Peer): Added sessionUploadLength, sessionDownloadLength.
  8327. Removed peerUpload, peerDownload.
  8328. (updateUploadLength): New function.
  8329. (addDeltaUpload): Removed.
  8330. (updateDownloadLength): New function.
  8331. (resetDeltaUpload): Removed.
  8332. (getDeltaUpload): Removed.
  8333. (addDeltaDownload): Removed.
  8334. (calculateUploadSpeed): New function.
  8335. (resetDeltaDownload): Removed.
  8336. (getDeltaDownload): Removed.
  8337. (calculateDownloadSpeed): New function.
  8338. (getSessionUploadLength): New function.
  8339. (getSessionDownloadLength): New function.
  8340. (activate): New function.
  8341. (deactivate): New function.
  8342. (addPeerUpload): Removed.
  8343. (setPeerUpload): Removed.
  8344. (getPeerUpload): Removed.
  8345. (addPeerDownload): Removed.
  8346. (setPeerDownload): Removed.
  8347. (getPeerDownload): Removed.
  8348. * src/Peer.cc
  8349. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  8350. * src/MetalinkRequestInfo.h
  8351. (MetalinkRequestInfo): Removed const qualifier from op.
  8352. * src/RequestInfo.h
  8353. (op): Removed const qualifier.
  8354. (RequestInfo): Removed const qualifier from op.
  8355. * src/prefs.h
  8356. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  8357. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  8358. * src/PeerInteractionCommand.cc
  8359. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  8360. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  8361. * src/PeerInteraction.cc
  8362. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  8363. * src/main.cc
  8364. (showUsage): Updated the description of "--lowest-speed-limit" option.
  8365. Added the description of "--max-download-limit" option.
  8366. Removed the description of "--upload-limit" option.
  8367. Added the description of "--max-upload-limit" option.
  8368. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  8369. Added "--max-download-limit" option and "--max-upload-limit" option.
  8370. Added the warning message if "--upload-limit" option is used.
  8371. * src/DownloadCommand.cc
  8372. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  8373. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. To rewrite segment download mechanism for HTTP/FTP download.
  8375. Use BitfieldMan to manage segment download.
  8376. * src/HttpResponseCommand.h
  8377. (executeInternal): Pass the reference of segment.
  8378. * src/AbstractCommand.cc
  8379. (prepareForRetry): Call segmentMan->cancelSegment here.
  8380. (onAbort): Call segmentMan->cancelSegment here.
  8381. * src/HttpDownloadCommand.cc
  8382. (prepareForNextSegment): New function.
  8383. * src/DownloadEngineFactory.cc
  8384. (newConsoleEngine): Removed splitter.
  8385. (newTorrentConsoleEngine): Removed splitter.
  8386. * src/Request.h
  8387. (segment): Renamed from seg.
  8388. * src/FtpInitiateConnectionCommand.h
  8389. (executeInternal): Pass the reference of segment.
  8390. * src/AbstractCommand.h
  8391. (executeInternal): Pass the reference of segment.
  8392. * src/pref.h
  8393. (PREF_SEGMENT_SIZE): New definition.
  8394. * src/HttpProxyRequestCommand.h
  8395. (executeInternal): Pass the reference of segment.
  8396. * src/HttpResponseCommand.cc
  8397. (checkResponse): Allowed status 206 when a request range starts 0.
  8398. (handleDefaultEncoding): Rewritten the code related to Segment.
  8399. (handleOtherEncoding): Rewritten the code related to Segment.
  8400. * src/SegmentMan.h
  8401. (SegmentEntry): New class.
  8402. (SegmentEntries): New type definition.
  8403. (bitfield): New variable.
  8404. (usedSegmentEntries): New variable.
  8405. (onNullBitfield): New function.
  8406. (checkoutSegment): New function.
  8407. (segments): Removed.
  8408. (splitter): Removed.
  8409. (unregisterId): Removed.
  8410. (getSegment): New function(overload)
  8411. (getDownloadedSize): Removed.
  8412. (cancelSegment): New function.
  8413. (completeSegment): New function.
  8414. (initBitfield): New function.
  8415. (hasSegment): New function.
  8416. (getDownloadLength): New function.
  8417. * src/BitfieldMan.h
  8418. (getStartIndex): New function.
  8419. (getEndIndex): New function.
  8420. (getMissingUnusedIndex): New function(overload).
  8421. (getSparseMissingUnusedIndex): New function.
  8422. * src/BitfieldMan.cc
  8423. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8424. (getMissingUnusedIndex): New function(overload).
  8425. (Range): New class.
  8426. (getStartIndex): New function.
  8427. (getEndIndex): New function.
  8428. (getSparseMissingUnusedIndex): New function.
  8429. (isBitSetInternal): Return false if the given index is less than 0.
  8430. * src/HttpInitiateConnectionCommand.h
  8431. (executeInternal): Pass the reference of segment.
  8432. * src/FtpNegotiateCommand.h
  8433. (executeInternal): Pass the reference of segment.
  8434. * src/FtpNegotiateCommand.cc
  8435. (recvSize): Initialize bitfield here.
  8436. * src/FtpTunnelResponseCommand.h
  8437. (executeInternal): Pass the reference of segment.
  8438. * src/HttpConnection.cc
  8439. (createRequest): Rewritten range header processing.
  8440. * src/DownloadCommand.h
  8441. (executeInternal): Pass the reference of segment.
  8442. (prepareForRetry): Removed.
  8443. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8444. function.
  8445. * src/main.cc
  8446. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8447. * src/SegmentMan.cc
  8448. (SegmentMan): Added bitfield. Removed splitter.
  8449. (~SegmentMan): Added bitfield. Removed splitter.
  8450. (unregisterId): Removed.
  8451. (getSegment): Rewritten.
  8452. (updateSegment): Rewritten.
  8453. (save): Rewritten.
  8454. (read): Rewritten.
  8455. (finished): Rewritten.
  8456. (getDownloadedSize): Removed.
  8457. (initBitfield): New function.
  8458. (FindSegmentEntryByIndex): New function object.
  8459. (FindSegmentEntryByCuid): New function object.
  8460. (checkoutSegment): New function.
  8461. (onNullBitfield): New function.
  8462. (getSegment): New function(overload).
  8463. (CancelSegment): New function object.
  8464. (cancelSegment): New function.
  8465. (completeSegment): New function.
  8466. (hasSegment): New function.
  8467. (getDownloadLength): New function.
  8468. * src/FtpInitiateConnectionCommand.cc
  8469. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8470. * src/Segment.h: Rewritten.
  8471. * src/Segment.cc (operator<<): New function.
  8472. * src/HttpDownloadCommand.h
  8473. (prepareForNextSegment): New function.
  8474. * src/Request.cc
  8475. (resetUrl): Made segment null.
  8476. * src/DownloadEngine.cc
  8477. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8478. * src/HttpProxyRequestCommand.h
  8479. (executeInternal): Pass the reference of segment.
  8480. * src/DownloadCommand.cc
  8481. (executeInternal): Rewritten the code related to Segment.
  8482. (prepareForRetry): Removed.
  8483. (prepareForNextSegment): Rewritten.
  8484. * src/FtpTunnelResponseCommand.h
  8485. (executeInternal): Pass the reference of segment.
  8486. To add HTTP 1.1 persistent connection support(experimental)
  8487. * src/HttpRequestCommand.cc
  8488. (executeInternal): Disable keep alive if it is disabled by
  8489. configuration.
  8490. * src/Request.h
  8491. (keepAlive): New variable.
  8492. (isKeepAlive): New function.
  8493. (setKeepAlive): New function.
  8494. * src/pref.h
  8495. (PREF_HTTP_KEEP_ALIVE): New definition.
  8496. * src/HttpResponseCommand.cc
  8497. (executeInternal): Check the remote server supports keep alive.
  8498. * src/HttpConnection.cc
  8499. (createRequest): Send "Connection: close" only if keep alive is
  8500. disabled.
  8501. * src/main.cc
  8502. (main):
  8503. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  8504. To add max download speed limit:
  8505. * src/pref.h
  8506. (PREF_MAX_SPEED_LIMIT): New definition.
  8507. * src/PeerInteractionCommand.cc
  8508. (executeInternal): Added max download speed limit. Not tested yet.
  8509. * src/SegmentMan.h
  8510. (PeerStats): New type definition.
  8511. (peerStats): New variable.
  8512. (registerPeerStat): New function.
  8513. (FindPeerStat): New function object.
  8514. (getPeerStat): New function.
  8515. (calculateDownloadSpeed): New function.
  8516. * src/SpeedCalc.h: New class.
  8517. * src/SpeedCalc.cc: New class.
  8518. * src/main.cc
  8519. (main):
  8520. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  8521. download speed is not restricted).
  8522. * src/PeerStat.h: New class.
  8523. * src/SegmentMan.cc
  8524. (registerPeerStat): New function.
  8525. (calculateDownloadSpeed): New function.
  8526. * src/DownloadCommand.cc
  8527. (STARTUP_IDLE_TIME): New definition.
  8528. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  8529. downloadStart.
  8530. (~DownloadCommand): Call peerStat->downloadStop.
  8531. (executeInternal): Added download speed limitter. Rewritten lowest
  8532. speed limitter.
  8533. * src/HttpConnection.cc
  8534. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  8535. * src/AbstractCommand.cc
  8536. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  8537. Added hostname to the error message.
  8538. * src/ConsoleDownloadEngine.cc
  8539. (calculateStatistics): Initialize psize with dlSize.
  8540. * src/PieceMessage.cc
  8541. (receivedAction): Do not call peerInteraction->abortPiece here.
  8542. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  8543. * src/BitfieldMan.h
  8544. (clearAllUseBit): New function.
  8545. (setAllUseBit): New function.
  8546. * src/BitfieldMan.cc
  8547. (clearAllBit): Do not clear useBitfield here.
  8548. (clearAllUseBit): New function.
  8549. (setAllUseBit): New function.
  8550. * src/Piece.cc
  8551. (clearAllBlock): Call bitfield->clearAllUseBit().
  8552. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. To make filename URL-decoded:
  8554. * src/HttpResponseCommand.h: Updated doc.
  8555. * src/HttpResponseCommand.cc
  8556. (determinFilename): Made filename URL-decoded.
  8557. * src/FtpInitiateConnectionCommand.cc
  8558. (executeInternal): Made filename URL-decoded.
  8559. * src/Util.h (urldecode): New function.
  8560. * src/Util.cc (urldecode): New function.
  8561. To fix a bug that caused assertion failure in ares_strerror:
  8562. * src/NameResolver.cc (callback): Fixed the bug.
  8563. * Release 0.7.3
  8564. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. To add --seed-time and --seed-ratio command-line option:
  8566. * src/Option.h (getAsDouble): New function.
  8567. * src/Option.cc (getAsDouble): New function.
  8568. * src/SeedCheckCommand.h: New class.
  8569. * src/SeedCheckCommand.cc: New class.
  8570. * src/DownloadEngineFactory.cc
  8571. (SeedCheckCommand.h): Included.
  8572. (UnionSeedCriteria.h): Included.
  8573. (TimeSeedCriteria.h): Included.
  8574. (ShareRatioSeedCriteria.h): Included.
  8575. (newTorrentConsoleEngine): Added the processing of seed option.
  8576. * src/SeedCriteria.h: New class.
  8577. * src/ShareRatioSeedCriteria.h: New class.
  8578. * src/TimeSeedCriteria.h: New class.
  8579. * src/UnionSeedCriteria.h: New class.
  8580. * src/prefs.h
  8581. (PREF_SEED_TIME): New definition.
  8582. (PREF_SEED_RATIO): New definition.
  8583. * src/main.cc
  8584. (showUsage): Added --seed-time and --seed-ratio option.
  8585. (main): Added --seed-time and --seed-ratio option.
  8586. Made default log file name "/dev/null".
  8587. * src/SharedHandle.h
  8588. (SharedHandle): Copy constructor. Made it assignable from the
  8589. SharedHandle of the subclasses.
  8590. (operator=): Made it assignable from the SharedHandle of the
  8591. subclasses.
  8592. (getRefCount): New function.
  8593. To add notice log level and the switch to write log to stdout. This
  8594. switch is configurable per log level.
  8595. * src/Logger.h
  8596. (notice): New function.
  8597. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  8598. constant.
  8599. * src/LogFactory.cc
  8600. (getInstance): The use of NullLogger was removed. A log message with
  8601. notice log level was made written to stdout along with log file.
  8602. * src/NullLogger.h
  8603. (notice): New function.
  8604. * src/SimpleLogger.h
  8605. (writeHeader): Added the 'file' argument.
  8606. (writeLog): Added the 'file' argument.
  8607. (writeFile): New function.
  8608. (stdoutField): New variable.
  8609. (SimpleLogger): Removed the default constructor.
  8610. (SimpleLogger): Made the default value of logfile 0.
  8611. (debug): Added 'virtual' keyword.
  8612. (info): Added 'virtual' keyword.
  8613. (warn): Added 'virtual' keyword.
  8614. (error): Added 'virtual' keyword.
  8615. (notice): New function.
  8616. (setStdout): New function.
  8617. * src/SimpleLogger.cc
  8618. (WRITE_LOG): Replaced writeLog with writeFile.
  8619. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  8620. (SimpleLogger): Removed the default constructor.
  8621. (setStdout): New function.
  8622. (writeLog): Added the handling of NOTICE log level.
  8623. (writeFile): New function.
  8624. (notice): New function.
  8625. * src/TorrentMan.h: Updated doc.
  8626. * src/BitfieldMan.h: Updated doc.
  8627. * src/TrackerWatcherCommand.cc
  8628. (execute): Return true if error occurred in the request to the tracker
  8629. and halt is requested.
  8630. * src/TrackerUpdateCommand.cc
  8631. (execute): Return true if error occurred in the request to the tracker
  8632. and halt is requested.
  8633. To call onDownloadComplete from TorrentMan::completePiece(), not from
  8634. DownloadEngine:
  8635. * src/TorrentConsoleDownloadEngine.h
  8636. (onSelectiveDownloadingCompletes): Removed.
  8637. * src/TorrentConsoleDownloadEngine.cc
  8638. (onSelectiveDownloadingCompletes): Removed.
  8639. * src/TorrentDownloadEngine.h
  8640. (onEndOfRun): Added 'virtual' keyword.
  8641. (afterEachIteration): Removed.
  8642. (onSelectiveDownloadingCompletes): Removed.
  8643. * src/TorrentDownloadEngine.cc
  8644. (onEndOfRun): Removed filenameFixed.
  8645. (afterEachIteration): Removed.
  8646. * src/TorrentMan.cc
  8647. (completePiece): Call onDownloadComplete here.
  8648. (onDownloadComplete): Added 2 log messages.
  8649. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  8651. * src/NameResolver.h: Added the prototype declaration of callback().
  8652. To support c-ares library:
  8653. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8654. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8655. * src/FtpInitiateConnectionCommand.h:
  8656. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8657. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8658. * src/HttpInitiateConnectionCommand.h:
  8659. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8660. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  8661. Added thes upport of c-ares's ares_strerror(the idea came from patch
  8662. #1542285 by tizianomueller)
  8663. * src/HttpInitiateConnectionCommand.cc:
  8664. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8665. * src/FtpInitiateConnectionCommand.cc:
  8666. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8667. * src/DownloadEngine.h:
  8668. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8669. * src/DownloadEngine.cc:
  8670. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8671. To fix the bug that causes compilation failure with metalink-support
  8672. disabled(bug#1543587):
  8673. * src/main.cc: Fixed with the patch by tizianomueller.
  8674. * Release 0.7.2
  8675. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. * src/main.cc
  8677. (main): Added a message to inform users that aria2 is starting to
  8678. verify checksum.
  8679. * src/RequestInfo.cc
  8680. (printDownloadAbortMessage): Added a message to inform users that
  8681. transfer can be resumed.
  8682. * src/FeatureConfig.cc
  8683. (FEATURE_ASYNC_DNS): New definition.
  8684. (FeatureConfig): Added aysnc DNS entry.
  8685. To replace CommandUuid with Command* in SocketEntry and
  8686. NameResolverEntry:
  8687. * src/DownloadEngine.h
  8688. (CommandUuids): Removed.
  8689. (SocketEntry::commandUuid): Removed.
  8690. (SocketEntry::command): New variable.
  8691. (SocketEntry::SocketEntry): Updated.
  8692. (SocketEntry::operator==): Updated.
  8693. (NameResolverEntry::commandUuid): Removed.
  8694. (NameResolverEntry::command): New variable.
  8695. (NameResolverEntry::NameResolverEntry): Updated.
  8696. (NameResolverEntry::operator==): Updated.
  8697. (waitData): Changed the argument type.
  8698. (addSocketForReadCheck): Changed the argument type.
  8699. (deleteSocketForReadCheck): Changed the argument type.
  8700. (addSocketForWriteCheck): Changed the argument type.
  8701. (deleteSocketForWriteCheck): Changed the argument type.
  8702. (addNameResolverCheck): Changed the argument type.
  8703. (deleteNameResolverCheck): Changed the argument type.
  8704. * src/DownloadEngine.cc
  8705. (FindCommand): Removed.
  8706. (run): Removed activeUuid. Added activeCommands instead.
  8707. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8708. (AccumulateActiveCommand): New function object.
  8709. (waitData): Use AccumulateActiveCommand.
  8710. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8711. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8712. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8713. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8714. (addNameResolverCheck): Use Command instead of CommandUuid.
  8715. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8716. * src/AbstractCommand.cc
  8717. (disableReadCheckSocket): Updated according to the changes in
  8718. DownloadEngine.
  8719. (setReadCheckSocket): Updated according to the changes in
  8720. DownloadEngine.
  8721. (disableWriteCheckSocket): Updated according to the changes in
  8722. DownloadEngine.
  8723. (setWriteCheckSocket): Updated according to the changes in
  8724. DownloadEngine.
  8725. (setNameResolverCheck): Updated according to the changes in
  8726. DownloadEngine.
  8727. (disableNameResolverCheck): Updated according to the changes in
  8728. DownloadEngine.
  8729. * src/AbstractCommand.cc
  8730. (disableReadCheckSocket): Updated according to the changes in
  8731. DownloadEngine.
  8732. (setReadCheckSocket): Updated according to the changes in
  8733. DownloadEngine.
  8734. (disableWriteCheckSocket): Updated according to the changes in
  8735. DownloadEngine.
  8736. (setWriteCheckSocket): Updated according to the changes in
  8737. DownloadEngine.
  8738. * release 0.7.1
  8739. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. To handle the case where some BitTorrent tracker requires all letters
  8741. except for [A-Za-z0-9] is URL encoded.
  8742. * src/Util.h
  8743. (torrentUrlencode): New function.
  8744. * src/Util.cc
  8745. (ctype.h): Included.
  8746. (torrentUrlencode): New function.
  8747. * src/TrackerWatcherCommand.cc
  8748. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8749. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. To add asynchronous DNS support(libares):
  8751. * src/AbstractCommand.h
  8752. (setNameResolverCheck): New function.
  8753. (disableNameResolverCheck): New function
  8754. (resolveHostname): New function.
  8755. * src/AbstractCommand.cc
  8756. (setNameResolverCheck): New function.
  8757. (disableNameResolverCheck): New function
  8758. (resolveHostname): New function.
  8759. * src/FtpInitiateConnectionCommand.h
  8760. (nameResolver): New function.
  8761. * src/FtpInitiateConnectionCommand.cc
  8762. (Util.h): Included.
  8763. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8764. disableWriteCheckSocket.
  8765. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8766. (executeInternal): Added async DNS support.
  8767. * src/HttpInitiateConnectionCommand.h
  8768. (nameResolver): New function.
  8769. * src/HttpInitiateConnectionCommand.cc
  8770. (DlRetryEx.h): Included.
  8771. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8772. disableWriteCheckSocket.
  8773. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8774. (executeInternal): Added async DNS support.
  8775. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8776. by extern "C" declaration.
  8777. * src/NameResolver.cc: New class.
  8778. * src/Util.h:
  8779. (isNumberAndDotsNotation): New function
  8780. * src/Util.cc
  8781. (isNumberAndDotsNotation): New function.
  8782. * src/DownloadEngine.h
  8783. (NameResolver.h): Included.
  8784. (NameResolverEntry): New class.
  8785. (NameResolverEntries): New type definition.
  8786. (addNameResolverCheck): New function.
  8787. (deleteNameResolverCheck): New function.
  8788. * src/DownloadEngine.cc
  8789. (run): Initialize cp with 0.
  8790. (SetDescriptor::operator()): Added for NameResolverEntry.
  8791. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8792. (waitData): Check nameResolver entries.
  8793. (updateFdSet): Update fds in nameResolver entries.
  8794. (addNameResolverCheck): New function.
  8795. (deleteNameResolverCheck): new function.
  8796. * src/PeerInteractionCommand.cc
  8797. (executeInternal): Fixed wrong socket handling.
  8798. * src/main.cc
  8799. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8800. * src/Util.cc
  8801. (fileChecksum): Removed the call to ctx.digestReset().
  8802. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. * po/ru.po: Azamat sent me Russian translation.
  8804. * src/FtpNegotiateCommand.cc
  8805. (recvGreeting): Call disableWriteCheckSocket just after
  8806. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8807. (recvRetr): Recognized status code 125 as a acceptable response code.
  8808. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8809. case-insesitive filesystem(BUG#1531057).
  8810. * src/Time.h: Renamed as TimeA2.h.
  8811. * src/Time.cc: Renamed as TimeA2.cc.
  8812. * src/TimeA2.h: New class.
  8813. * src/TimeA2.cc: New class.
  8814. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8815. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8816. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8817. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8818. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8819. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8820. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8821. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8822. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8823. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8824. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8825. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8826. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8827. * release 0.7.0
  8828. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. * src/PeerChokeCommand.h
  8830. (PeerChokeCommand): Rearranged the arguments.
  8831. * src/PeerChokeCommand.cc
  8832. (PeerChokeCommand): Rearranged the arguments.
  8833. * src/MetalinkEntry.h
  8834. (Checksum.h): Included.
  8835. (md5): Removed.
  8836. (sha1): Removed.
  8837. (checksum): New variable.
  8838. (operator=): Updated.
  8839. (check): Removed.
  8840. * src/prefs.h
  8841. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8842. (PREF_FOLLOW_TORRENT): New definition.
  8843. (PREF_SELECT_FILE): New definition.
  8844. (PREF_FOLLOW_METALINK): New definition.
  8845. * src/MetalinkResource.h
  8846. (TYPE_HTTPS): Added to enum TYPE.
  8847. * src/TorrentMan.cc
  8848. (~TorrentMan): Rewritten.
  8849. * src/MultiDiskWriter.cc
  8850. (MultiDiskAdaptor): Updated according to the changes in
  8851. MessageDigestContext.
  8852. (~MultiDiskAdaptor): Updated according to the changes in
  8853. MessageDigestContext.
  8854. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8855. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8856. * src/Util.h
  8857. (fileChecksum): Updated according to the changes in
  8858. MessageDigestContext.
  8859. * src/Util.cc
  8860. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8861. (fileChecksum): Updated according to the changes in
  8862. MessageDigestContext.
  8863. * src/messageDigest.h: Rewritten.
  8864. * src/MetalinkEntry.cc
  8865. (check): Removed.
  8866. (Supported): Updated.
  8867. (dropUnsupportedResource): Fixed a memory leak.
  8868. * src/ShaVisitor.cc
  8869. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8870. (~ShaVisitor): Updated according to the changes in
  8871. MessageDigestContext.
  8872. (visit): Updated according to the changes in MessageDigestContext.
  8873. * src/main.cc
  8874. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8875. command-line option added.
  8876. * src/DownloadEngine.h
  8877. (SocketEntry): New class.
  8878. (SocketEntries): New definition.
  8879. (PairFind): Removed.
  8880. (SockCmdMap): Removed.
  8881. * src/DownloadEngine.cc
  8882. (DownloadEngine): Rewritten.
  8883. (~DownloadEngine): Rewritten.
  8884. (run): Renamed activeCommandUuids as activeUuids.
  8885. (SetDescriptor): Rewritten.
  8886. (AccumulateActiveCommandUuid): Removed.
  8887. (AccumulateActiveUuid): New function object.
  8888. (waitData): Rewritten.
  8889. (updateFdSet): Rewritten.
  8890. (addSocket): Rewritten.
  8891. (deleteSocket): Rewritten.
  8892. (addSocketForReadCheck): Rewritten.
  8893. (deleteSocketForReadCheck): Rewritten.
  8894. (addSocketForWriteCheck): Rewritten.
  8895. (deleteSocketForWriteCheck): Rewritten.
  8896. * src/Xml2MetalinkProcessor.cc
  8897. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8898. * src/DownloadCommand.cc
  8899. (executeInternal): Added the check routine for lowest speed limit.
  8900. * src/AbstractDiskWriter.cc
  8901. (AbstractDiskWriter): Updated according to the changes in
  8902. MessageDigestContext.
  8903. (~AbstractDiskWriter): Updated according to the changes in
  8904. MessageDigestContext.
  8905. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8906. * src/RequestInfo.h: New class.
  8907. * src/UrlRequestInfo.h: New class.
  8908. * src/UrlRequestInfo.cc: New class.
  8909. * src/TorrentRequestInfo.h: New class.
  8910. * src/TorrentRequestInfo.cc: New class.
  8911. * src/MetalinkRequestInfo.h: New class.
  8912. * src/MetalinkRequestInfo.cc: New class.
  8913. * src/Checksum.h: New class.
  8914. * src/DownloadEngineFactory.h: New class.
  8915. * src/DownloadEngineFactory.cc: New class.
  8916. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. * src/Option.h
  8918. (getAsBool): New function.
  8919. * src/Option.cc
  8920. (prefs.h): Included.
  8921. (defined): 0-length value is now recognized as undefined.
  8922. (getAsInt): Rewritten.
  8923. (getAsLLInt): Rewritten.
  8924. (getAsBool): New function.
  8925. * src/FeatureConfig.h: Rewritten.
  8926. * src/FeatureConfig.cc: Rewritten.
  8927. * src/prefs.h
  8928. (PREF_STDOUT_LOG): New definition.
  8929. (PREF_LOG): New definition.
  8930. (PREF_DIR): New definition.
  8931. (PREF_OUT): New definition.
  8932. (PREF_SPLIT): New definition.
  8933. (PREF_DAEMON): New definition.
  8934. (PREF_REFERER): New definition.
  8935. (PREF_TORRENT_FILE): New definition.
  8936. (PREF_LISTEN_PORT): New definition.
  8937. (PREF_METALINK_FILE): New definition.
  8938. (PREF_METALINK_VERSION): New definition.
  8939. (PREF_METALINK_LANGUAGE): New definition.
  8940. (PREF_METALINK_OS): New definition.
  8941. (PREF_METALINK_SERVERS): New definition.
  8942. * src/main.cc
  8943. (main): Following command-line parameters are now put into Option
  8944. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8945. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8946. metalinkLanguage, metalinkOs, metalinkServers
  8947. To fix the bug that aria2 can not handle http response header properly.
  8948. * src/HttpHeader.cc
  8949. (put): Made name lowercased.
  8950. (defined): Made name lowercased.
  8951. (getFirst): Made name lowercased.
  8952. (get): Made name lowercased.
  8953. (getFirstAsInt): Rewritten.
  8954. (getFirstAsLLInt): Rewritten.
  8955. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. * src/TorrentMan.h:
  8957. (advertisePiece): Updated doc.
  8958. (getAdvertisedPieceIndexes): Updated doc.
  8959. (removeAdvertisedPiece); New function.
  8960. * src/TorrentMan.cc
  8961. (FindElapsedHave): New function object.
  8962. (removeAdvertisedPiece): New function.
  8963. * src/HaveEraseCommand.h: New class.
  8964. * src/HaveEraseCommand.cc: New class.
  8965. * src/FeatureConfig.h: New class.
  8966. * src/FeatureConfig.cc: New class.
  8967. * src/Request.h
  8968. (defaultPorts): Removed.
  8969. * src/Request.cc
  8970. (FeatureConfig.h): Included.
  8971. (Request): Removed the statements related to defaultPorts.
  8972. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8973. A default port number is now retrieved from FeatureConfig.
  8974. * src/main.cc
  8975. (HaveEraseCommand.h): Included.
  8976. (showVersion): Added the output of feature list.
  8977. (main): Added HaveEraseCommand to command queue in BitTorrent
  8978. downloading.
  8979. * src/PeerInteractionCommand.h
  8980. (chokeCheckPoint): Commented out.
  8981. (periodicExecPoint): New variable.
  8982. * src/PeerInteractionCommand.cc
  8983. (executeInternal): Following methods are now called in at least every
  8984. 0.5 seconds to reduce CPU usage:
  8985. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8986. checkHave(), sendKeepAlive().
  8987. (checkLongTimePeerChoking): Commented out.
  8988. * src/BitfieldMan.h
  8989. (getNthBitIndex): Changed the method signature.
  8990. (getMissingIndexRandomly): Changed the method signature.
  8991. * src/BitfieldMan.cc
  8992. (getNthBitIndex): Rewritten
  8993. (getMissingIndexRandomly): Rewritten.
  8994. (hasMissingPiece): Rewritten.
  8995. (getMissingIndex): Refactored.
  8996. (getMissingUnusedIndex); Refactored.
  8997. (getMissingIndex): Refactored.
  8998. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. * src/PeerMessage.h
  9000. (Piece.h): Included.
  9001. (SharedHandle.h): Included.
  9002. (invalidate): New variable.
  9003. (uploading): New variable.
  9004. (isInvalidate): New function.
  9005. (isUploading): New function.
  9006. (onPush): New function.
  9007. (onChoked): New function.
  9008. (onCanceled): New function.
  9009. (onAbortPiece): New function.
  9010. (PeerMessageHandle): New type definition.
  9011. * src/PeerMessage.cc
  9012. (PeerMessage): Added the initialization for invalidate and uploading.
  9013. * src/CancelMessage.h
  9014. (CancelMessage): Rewritten.
  9015. * src/RejectMessage.h
  9016. (RejectMessage): Rewritten.
  9017. * src/Metalinker.h
  9018. (operator=): Defined.
  9019. * src/MetaEntry.h
  9020. (operator=): Defined.
  9021. * src/MetalinkResource.h
  9022. (operator=): Defined.
  9023. * src/AllowedFastMessage.h
  9024. (AllowedFastMessage): Rewritten.
  9025. * src/HandshakeMessage.h
  9026. (HandshakeMessage): New function(overload).
  9027. * src/HandshakeMessage.cc
  9028. (HandshakeMessage): Rewritten.
  9029. (init): New function.
  9030. * src/HaveMessage.h
  9031. (HaveMessage): Rewritten.
  9032. * src/Time.h
  9033. (operator=): Defined the function body here.
  9034. * src/Time.cc
  9035. (operator=): Removed.
  9036. * src/SocketCore.h
  9037. (operator==): Defined here.
  9038. (operator!=): Defined here.
  9039. (operator<): Defined here.
  9040. * src/SocketCore.cc
  9041. (operator==): Removed.
  9042. (operator<): Removed.
  9043. * src/BitfieldMan.h
  9044. (operator=): Defined the function body here.
  9045. * src/BitfieldMan.cc
  9046. (operator=): Removed.
  9047. * src/TorrentMan.h
  9048. (deleteErrorPeer): Removed.
  9049. (deleteUnusedPeer); New function.
  9050. * src/TorrentMan.cc
  9051. (addPeer): Call deleteUnusedPeer.
  9052. (deleteErrorPeer): Removed.
  9053. (deleteUnusedPeer): New function.
  9054. * src/PeerAbstractCommand.h
  9055. (setNoCheck): New function.
  9056. (noCheck): New variable.
  9057. * src/PeerAbstractCommand.cc
  9058. (PeerAbstractCommand): Added the initialization of noCheck.
  9059. (execute): Added a check for noCheck.
  9060. (setNoCheck): New function.
  9061. * src/Util.h
  9062. (stdio.h): Included.
  9063. * src/Util.cc
  9064. (unistd.h): Included.
  9065. * src/DefaultDiskWriter.cc
  9066. (unistd.h): Included.
  9067. * src/Peer.h
  9068. (operator==): Defined the function body here.
  9069. (operator!=): Defined the function body here.
  9070. * src/Peer.cc
  9071. (operator==): Removed.
  9072. (operator!=): Removed.
  9073. * src/Piece.h
  9074. (Piece): Defined the function body here(copy constructor).
  9075. (operator=): Defined the function body here.
  9076. (operator==): Defined the function body here.
  9077. * src/Piece.cc
  9078. (Piece): Removed(copy constructor).
  9079. (operator=): Removed.
  9080. (operator==): Removed.
  9081. * src/PeerMessageUtil.h
  9082. (ChokeMessage.h): Removed.
  9083. (UnchokeMessage.h): Removed.
  9084. (InterestedMessage.h): Removed.
  9085. (NotInterestedMessage.h): Removed.
  9086. (HaveMessage.h): Removed.
  9087. (BitfieldMessage.h): Removed.
  9088. (RequestMessage.h): Removed.
  9089. (CancelMessage.h): Removed.
  9090. (PieceMessage.h): Removed.
  9091. (HandshakeMessage.h): Removed.
  9092. (KeepAliveMessage.h): Removed.
  9093. (PortMessage.h): Removed.
  9094. (HaveAllMessage.h): Removed.
  9095. (HaveNoneMessage.h): Removed.
  9096. (PeerConnection.h): Removed.
  9097. (HandshakeMessage.h): Included.
  9098. * src/BitfieldMessage.h
  9099. (init): New function.
  9100. (BitfieldMessage): Rewritten.
  9101. (BitfieldMessage): New function(overload).
  9102. * src/RequestSlot.h
  9103. (operator=): Defined the function body here.
  9104. (operator==): Defined the function body here.
  9105. * src/RequestSlot.cc
  9106. (operator=): Removed.
  9107. (operator==): Removed.
  9108. To remove the dependency on the PeerMessage subclass from
  9109. PeerInteraction:
  9110. * src/PeerMessageFactory.h: New class.
  9111. * src/PeerMessageFactory.cc: New class.
  9112. * src/SimplePeerMessage.cc
  9113. (send): If invalidate is true then do nothing.
  9114. * src/PeerInteractionCommand.cc
  9115. (HandshakeMessage.h): Included.
  9116. (KeepAliveMessage.h): Included.
  9117. (ChokeMessage.h): Included.
  9118. (UnchokeMessage.h): Included.
  9119. (HaveMessage.h): Included.
  9120. (executeInternal): Call setNoCheck().
  9121. Removed setWriteCheckSocket(socket).
  9122. * src/PeerInteraction.h
  9123. (ChokeMessage.h): Removed.
  9124. (UnchokeMessage.h): Removed.
  9125. (InterestedMessage.h): Removed.
  9126. (NotInterestedMessage.h): Removed.
  9127. (HaveMessage.h): Removed.
  9128. (BitfieldMessage.h): Removed.
  9129. (RequestMessage.h): Removed.
  9130. (CancelMessage.h): Removed.
  9131. (PieceMessage.h): Removed.
  9132. (HandshakeMessage.h): Removed.
  9133. (KeepAliveMessage.h): Removed.
  9134. (PortMessage.h): Removed.
  9135. (HaveAllMessage.h): Removed.
  9136. (HaveNoneMessage.h): Removed.
  9137. (RejectMessage.h): Removed.
  9138. (AllowedFastMessage.h): Removed.
  9139. (SuggestPieceMessage.h): Removed.
  9140. (PeerMessageFactory.h): Included.
  9141. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  9142. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  9143. (PeerMessageFactory): New variable.
  9144. (createPeerMessage): Removed.
  9145. (createHandshakeMessage): Removed.
  9146. (setPeerMessageCommonProperty): Removed.
  9147. (addRequestSlot): New function.
  9148. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9149. (getPeerMessageFactory): New function.
  9150. (createRequestMessage): Removed.
  9151. (createCancelMessage): Removed.
  9152. (createPieceMessage): Removed.
  9153. (createHaveMessage): Removed.
  9154. (createChokeMessage): Removed.
  9155. (createUnchokeMessage): Removed.
  9156. (createInterestedMessage): Removed.
  9157. (createNotInterestedMessage): Removed.
  9158. (createBitfieldMessage): Removed.
  9159. (createKeepAliveMessage): Removed.
  9160. (createHaveAllMessage): Removed.
  9161. (createHaveNoneMessage): Removed.
  9162. (createRejectMessage): Removed.
  9163. (createAllowedFastMessage): Removed.
  9164. * src/PeerInteraction.cc
  9165. (PeerInteraction): Allocate PeerMessageFactory here.
  9166. (~PeerInteraction): Deallocate PeerMessageFactory here.
  9167. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  9168. PieceMessage::ID.
  9169. (addMessage): Simplified by using PeerMessage::onPush().
  9170. (addRequestSlot): New function.
  9171. (rejectAllPieceMessageInQueue): Simplified by using
  9172. PeerMessage::onChoked().
  9173. (rejectPieceMessageInQueue): Simplified by using
  9174. PeerMessage::onCanceled().
  9175. (abortPiece): Simplified by using PeerMessage::abortPiece().
  9176. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9177. (createHandshakeMessage): Removed.
  9178. (createPeerMessage): Removed.
  9179. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  9180. (setPeerMessageCommonProperty): Removed.
  9181. (createRequestMessage): Removed.
  9182. (createCancelMessage): Removed.
  9183. (createPieceMessage): Removed.
  9184. (createHaveMessage): Removed.
  9185. (createChokeMessage): Removed.
  9186. (createUnchokeMessage): Removed.
  9187. (createInterestedMessage): Removed.
  9188. (createNotInterestedMessage): Removed.
  9189. (createBitfieldMessage): Removed.
  9190. (createKeepAliveMessage): Removed.
  9191. (createHaveAllMessage): Removed.
  9192. (createHaveNoneMessage): Removed.
  9193. (createRejectMessage): Removed.
  9194. (createAllowedFastMessage): Removed.
  9195. * src/PieceMessage.h
  9196. (createRejectMessage): New function.
  9197. (PieceMessage): Rewritten.
  9198. (onChoked): New function.
  9199. (onCanceled): New function.
  9200. * src/PieceMessage.cc
  9201. (send): If invalidate is true then do nothing, just return.
  9202. (createRejectMessage): New function.
  9203. (onChoked): New function.
  9204. (onCanceled): New function.
  9205. * src/RequestMessage.h
  9206. (RequestMessage): Rewritten.
  9207. (onPush): New function.
  9208. (onAbortPiece): New function.
  9209. * src/RequestMessage.cc
  9210. (onPush): New function.
  9211. (onAbortPiece): New function.
  9212. Update fd_set when a socket is added or deleted in order to improve
  9213. performance:
  9214. * src/DownloadEngine.h
  9215. (rfdset): New variable.
  9216. (wfdset): New variable.
  9217. (updateFdSet): New function.
  9218. * src/DownloadEngine.cc
  9219. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  9220. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  9221. (waitData): Copy rfdset and wfdset.
  9222. (updateFdSet): New function.
  9223. (addSocket): Call updateFdSet.
  9224. (deleteSocket): Call updateFdSet.
  9225. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9226. To add the support for Metalink3.0 backward compatible links:
  9227. * src/Request.h
  9228. (SAFE_CHARS): Added '#'.
  9229. (METALINK_MARK): New definition.
  9230. * src/Request.cc
  9231. (parseUrl): Added the support for Metalink3.0 backward compatible
  9232. links.
  9233. etc
  9234. * src/PeerInteraction.cc
  9235. (MsgPushBack): Removed.
  9236. (sendMessages): Use STL copy and back_inserter.
  9237. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  9238. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  9239. * src/TorrentMan.h
  9240. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  9241. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. * src/SharedHandle.h: New class.
  9243. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  9244. * src/HttpResponseCommand.h
  9245. (HttpResponseCommand): Wrapped Socket.
  9246. * src/SocketCore.h
  9247. (operator==): New function.
  9248. (operator!=): New function.
  9249. (operator<): New function.
  9250. (getSockfd): New function.
  9251. (isOpen): New function.
  9252. (writeData): New function.
  9253. * src/SocketCore.cc
  9254. (operator==): New function.
  9255. (operator!=): New function.
  9256. (operator<): New function.
  9257. * src/AbstractCommand.h
  9258. (socket): Changed its type to SocketHandle.
  9259. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9260. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9261. (disableReadCheckSocket): New function.
  9262. (disableWriteCheckSocket): New function.
  9263. (readCheckTarget): Changed its type to SocketHandle.
  9264. (writeCheckTarget): Changed its type to SocketHandle.
  9265. (AbstractCommand): Replaced Socket with SocketHandle.
  9266. * src/AbstractCommand.cc
  9267. (AbstractCommand): Replaced Socket with SocketHandle.
  9268. (~AbstractCommand): Removed the deallocation for Socket object.
  9269. (disableReadCheckSocket): New function.
  9270. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9271. (disableWriteCheckSocket): New function.
  9272. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9273. * src/HttpDownloadCommand.cc
  9274. (DownloadCommand): Replaced Socket with SocketHandle.
  9275. * src/PeerAbstractCommand.h
  9276. (socket): Changed its type to SocketHandle.
  9277. (peer): Changed its type to PeerHandle.
  9278. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9279. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9280. (disableReadCheckSocket): New function.
  9281. (disableWriteCheckSocket): New function.
  9282. (readCheckTarget): Changed its type to SocketHandle.
  9283. (writeCheckTarget): Changed its type to SocketHandle.
  9284. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9285. Replaced Peer with PeerHandle.
  9286. * src/HttpRequestCommand.cc
  9287. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9288. Use disableReadCheckSocket.
  9289. * src/PeerInitiateConnectionCommand.h
  9290. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9291. * src/PeerChokeCommand.cc
  9292. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  9293. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  9294. (execute): Use PeerHandle.
  9295. * src/PeerConnection.h
  9296. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  9297. (socket): Changed its type to SocketHandle.
  9298. (PeerConnection): Replaced Socket with SocketHandle.
  9299. * src/PeerConnection.cc
  9300. (PeerConnection): Replaced Socket with SocketHandle.
  9301. * src/PeerInteractionCommand.h
  9302. (PeerInteractionCommand): Replaced socket with SocketHandle.
  9303. Replaced Peer with PeerHandle.
  9304. * src/PeerInteractionCommand.cc
  9305. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  9306. Replaced Peer with PeerHandle.
  9307. (executeInternal): Use disableWriteCheckSocket.
  9308. Use HandshakeMessageHandle.
  9309. (receiveMessages): Use PeerMessageHandle.
  9310. (prepareForNextPeer): Use PeerHandle.
  9311. * src/HttpProxyRequestCommand.h
  9312. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9313. * src/HttpResponseCommand.cc
  9314. (HttpResponseCommand): Replaced Socket with SocketHandle.
  9315. * src/TorrentMan.cc
  9316. (nullPeer): Added external reference.
  9317. (~TorrentMan): Removed the deallocation of the elements of peers.
  9318. (addPeer): Rewritten.
  9319. (isPeerAvailable): Use nullPeer.
  9320. (deleteOldpeers): Replaced with deleteErrorPeer.
  9321. (deleteErrorPeer): New function.
  9322. (getPeer): Use PeerHandle and nullPeer.
  9323. (hasMissingPiece): Replaced Peer with PeerHandle.
  9324. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9325. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9326. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9327. (getMissingPiece): Replaced Peer with PeerHandle.
  9328. * src/FtpNegotiateCommand.cc
  9329. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  9330. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  9331. (recvGreeting): Use disableWriteCheckSocket.
  9332. (recvPasv): Removed the allocation of Socket.
  9333. Use disableReadCheckSocket.
  9334. (sendRestPasv): Use disableWriteCheckSocket.
  9335. (recvRetr): Changed assertion.
  9336. * src/PeerInteraction.h
  9337. (SharedHandle.h): Included SharedHandle.h.
  9338. (PeerMessageHandle): New type definition.
  9339. (HandshakeMessageHandle): New type definition.
  9340. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  9341. (peer): Changed its type to PeerHandle.
  9342. (createHandshakeMessage): Replaced HandshakeMessage with
  9343. HandshakeMessageHandle.
  9344. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  9345. (PeerInteraction): Replaced Peer with PeerHandle.
  9346. Replaced Socket with SocketHandle.
  9347. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9348. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9349. (receiveHandshake): Replaced HandshakeMessage with
  9350. HandshakeMessageHandle.
  9351. * src/PeerInteraction.cc
  9352. (PeerInteraction): Replaced Peer with PeerHandle.
  9353. Replaced Socket with SocketHandle.
  9354. (~PeerInteraction): Removed the deallocation of the elements of
  9355. messageQueue.
  9356. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  9357. (isSendingMessageInProgress): Replaced PeerMessage with
  9358. PeerMessageHandle.
  9359. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  9360. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9361. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  9362. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  9363. (abortPiece): Use PeerMessageHandle.
  9364. (receiveHandshake): Replaced HandshakeMessage with
  9365. HandshakeMessageHandle. Removed try-catch block.
  9366. (createHandshakeMessage): Replaced HandshakeMessage with
  9367. HandshakeMessageHandle.
  9368. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9369. Removed try-catch block.
  9370. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  9371. * src/HttpProxyResponseCommand.cc
  9372. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9373. * src/FtpTunnelResponseCommand.h
  9374. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9375. * src/HttpConnection.cc
  9376. (HttpConnection): Replaced Socket with SocketHandle.
  9377. * src/PeerAbstractCommand.cc
  9378. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9379. (~PeerAbstractCommand): Removed the deallocation of socket.
  9380. Use disableReadCheckSocket, disableWriteCheckSocket.
  9381. (disableReadCheckSocket): New function.
  9382. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9383. (disableWriteCheckSocket): New function.
  9384. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9385. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  9386. * src/FtpTunnelRequestCommand.cc
  9387. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9388. (~FtpTunnelRequestCommand): Corrected indentation.
  9389. * src/DownloadCommand.h
  9390. (DownloadCommand): Replaced Socket with SocketHandle.
  9391. * src/PeerListenCommand.cc
  9392. (PeerListenCommand): Removed the initialization of socket.
  9393. (~PeerListenCommand): Removed the deallocation of socket.
  9394. (bindPort): Use SocketHandle.
  9395. (execute): Use SocketHandle and PeerHandle.
  9396. * src/FtpDowndloadCommand.cc
  9397. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9398. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9399. * src/main.cc
  9400. (main): Corrected indentation.
  9401. * src/HttpInitiateConnectionCommand.cc
  9402. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9403. (executeInternal): Removed the allocation of socket.
  9404. * src/HttpRequestCommand.h
  9405. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9406. * src/FtpNegotiationCommand.h
  9407. (dataSocket): Changed its type to SocketHandle.
  9408. (serverSocket): Changed its type to SocketHandle.
  9409. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9410. * src/TorrentMan.h
  9411. (MAX_PEER_UPDATE): Removed.
  9412. (MAX_PEERS): New definition.
  9413. (Peers): The element is now of type PeerHandle.
  9414. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9415. (getPeer): Replaced Peer with PeerHandle.
  9416. (deleteOldErrorPeers): Removed.
  9417. (deleteErrorPeer): New function.
  9418. (hasMissingPiece): Replaced Peer with PeerHandle.
  9419. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9420. (getMissingPiece): Replaced Peer with PeerHandle.
  9421. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9422. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9423. (addActivePeer): Replaced Peer with PeerHandle.
  9424. (deleteActivePeer): Replaced Peer with PeerHandle.
  9425. Added a check for the return value of find.
  9426. * src/FtpTunnelResponseCommand.cc
  9427. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9428. * src/FtpInitiateConnectionCommand.cc
  9429. (executeInternal): Removed the allocation of socket.
  9430. * src/DownloadEngine.h
  9431. (Sockets): An element is now of type SocketHandle.
  9432. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9433. (CommandUuids): New type definition.
  9434. (rsockets): Changed its type to SockCmdMap.
  9435. (wsockets): Changed its type to SockCmdMap.
  9436. (addSocket): Rewritten.
  9437. (deleteSocket): Rewritten.
  9438. (addSocketForReadCheck): Rewritten.
  9439. (deleteSocketForReadCheck): Rewritten.
  9440. (addSocketForWriteCheck): Rewritten.
  9441. (deleteSocketForWriteCheck): Rewritten.
  9442. (PairFind): New template class.
  9443. * src/HttpDownloadCommand.h
  9444. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9445. * src/FtpConnection.cc
  9446. (FtpConnection): Replaced Socket with SocketHandle.
  9447. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9448. block.
  9449. * src/InitiateConnectionCommandFactory.cc
  9450. (DlAbortEx.h): Included DlAbortEx.h.
  9451. (createInitiateConnectionCommand): Throw exception if the protocol of
  9452. requested URI is not supported.
  9453. * src/Peer.cc
  9454. (nullPeer): Changed its type to PeerHandle.
  9455. (operator==): New function.
  9456. (operator!=): New function.
  9457. * src/Peer.h
  9458. (SharedHandle.h): Included SharedHandle.h.
  9459. (operator==): New function.
  9460. (operator!=): New function.
  9461. (Peer): Added the default constructor.
  9462. Use resetStatus() to initialize member variables.
  9463. (nullPeer): Removed.
  9464. * src/TrackerUpdateCommand.cc
  9465. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9466. with MIN_PEERS.
  9467. * src/PeerListenCommand.h
  9468. (socket): Changed its type to SocketHandle.
  9469. * src/Command.h
  9470. (CommandUuid): New type definition.
  9471. (uuid): New variable.
  9472. (uuidGen): New variable.
  9473. (Command): Added the initialization of uuid.
  9474. (getUuid): New function.
  9475. * src/Socket.h
  9476. (Socket): Removed.
  9477. (SocketHandle): New type definition.
  9478. * src/DownloadEngine.h
  9479. (FindCommand): New function object.
  9480. (run): The portion of socket check was rewritten.
  9481. (SetDescriptor): New function object.
  9482. (AccumulateActiveCommandUuid): New function object.
  9483. (waitData): Rewritten.
  9484. (addSocket): Rewritten.
  9485. (deleteSocket): Rewritten.
  9486. (addSocketForReadCheck): Rewritten.
  9487. (addSocketForWriteCheck): Rewritten.
  9488. (deleteSocketForReadCheck): Rewritten.
  9489. (deleteSocketForWriteCheck): Rewritten.
  9490. * src/HttpProxyResponseCommand.h
  9491. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  9492. * src/HttpConnection.h
  9493. (socket): Changed its type to SocketHandle.
  9494. (HttpConnection): Replaced Socket with SocketHandle.
  9495. * src/PeerInitiateConnectionCommand.cc
  9496. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9497. (executeInternal): Removed the allocation of socket.
  9498. (prepareForNextPeer): Use PeerHandle.
  9499. * src/PeerMessage.h
  9500. (peer): Changed its type to PeerHandle.
  9501. (getPeer): Replaced Peer with PeerHandle.
  9502. (setPeer): Replaced Peer with PeerHandle.
  9503. * src/DownloadCommand.cc
  9504. (DownloadCommand): Replaced Socket with SocketHandle.
  9505. * src/FtpConnection.h
  9506. (socket): Changed its type to SocketHandle.
  9507. (FtpConnection): Replaced Socket with SocketHandle.
  9508. (sendPort); Replaced Socket with SocketHandle.
  9509. * src/FtpDowndloadCommand.h
  9510. (ctrlSocket): Changed its type to SocketHandle.
  9511. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9512. * src/HttpProxyRequestCommand.cc
  9513. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9514. * src/FtpTunnelRequestCommand.h
  9515. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9516. etc
  9517. * src/PeerChokeCommand.h
  9518. (setAllPeerChoked): Removed.
  9519. (setAllPeerResetDelta): Removed.
  9520. * src/PeerChokeCommand.cc
  9521. (setAllPeerChoked): Removed.
  9522. (ChokePeer): New function object.
  9523. (setAllPeerResetDelta): Removed.
  9524. (ResetDelta): New function object.
  9525. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  9526. (execute): Show download speed when the local node is a seeder.
  9527. setAllPeerChoked and setAllPeerResetDelta were rewritten
  9528. using STL.
  9529. * src/TrackerWatcherCommand.h
  9530. (MIN_PEERS): Removed.
  9531. * src/TorrentMan.cc
  9532. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  9533. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9534. To fix the bug that .aria2 file is not saved if downloading is stopped
  9535. by the errors:it results that aria2 can not resume downloading:
  9536. * src/main.cc
  9537. (normalDownload): Added the call to save().
  9538. (main): Added the deletion of the elements in 'reserved'.
  9539. To fix log:
  9540. * src/PeerInteraction.cc
  9541. (receiveHandshake): Fixed log.
  9542. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. To improve download performance in BitTorrent:
  9544. * src/TorrentMan.cc
  9545. (getPeer): Check the number of connections. Return nullPeer if
  9546. it is greater than MAX_PEER_UPDATE.
  9547. This code was originally here, but was removed in 0.5.1.
  9548. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9549. To improve the conditional compilation:
  9550. * src/MultiDiskWriter.h:
  9551. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9552. * src/MultiDiskWriter.cc:
  9553. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9554. * src/Util.h:
  9555. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9556. Added ENABLE_BITTORRENT around computeFastSet().
  9557. * src/Util.cc:
  9558. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9559. Added ENABLE_BITTORRENT around computeFastSet().
  9560. * src/messageDigest.h:
  9561. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  9562. * src/ShaVisitor.h:
  9563. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9564. * src/ShaVisitor.cc:
  9565. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9566. * src/main.cc:
  9567. Added ENABLE_BITTORRENT around includes and blocks related to
  9568. BitTorrent.
  9569. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  9570. digest support is not available.
  9571. * src/AbstractDiskWriter.h:
  9572. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9573. * src/AbstractDiskWriter.cc:
  9574. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9575. * src/MetalinkEntry.cc
  9576. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  9577. support is not available.
  9578. To add command-line options for Metalink:
  9579. * src/main.cc:
  9580. Added metalink-version, metalink-language, metalink-os,
  9581. follow-metalink.
  9582. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  9583. * src/main.cc: Use these definition.
  9584. * Release 0.6.0
  9585. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. To add Metalink support(http/ftp only):
  9587. * src/AbstractCommand.h
  9588. (tryReserved): New function.
  9589. * src/AbstractCommand.cc
  9590. (execute): Call tryReserved().
  9591. (tryReserved): New function.
  9592. * src/Request.h
  9593. (Requests): New type definition.
  9594. * src/SegmentMan.h
  9595. (reserved): New variable.
  9596. * src/Util.h
  9597. (fileChecksum): New function.
  9598. (toUpper): New function.
  9599. (toLower): New function.
  9600. * src/Util.cc
  9601. (messageDigest.h): Included.
  9602. (trim): Trim \r\n\t.
  9603. (fileChecksum): New function.
  9604. (toUpper): New function.
  9605. (toLower): New function.
  9606. * src/main.cc
  9607. (normalDownload): New function.
  9608. (main): Added 2 command-line options: metalink-file,
  9609. metalink-connection. Their usage has not been written yet.
  9610. * src/MetalinkProcessor.h: New class.
  9611. * src/Xml2MetalinkProcessor.h: New class.
  9612. * src/Xml2MetalinkProcessor.cc: New class.
  9613. * src/MetalinkEntry.h: New class.
  9614. * src/MetalinkEntry.cc: New class.
  9615. * src/MetalinkResource.h: New class.
  9616. * src/MetalinkResource.cc: New class.
  9617. To add md5 message digest checking:
  9618. * src/messageDigest.h: Rewritten.
  9619. * src/MultiDiskWriter.cc: Updated according to the changes in
  9620. messageDigest.h.
  9621. * src/ShaVisitor.cc: Updated according to the changes in
  9622. messageDigest.h.
  9623. * src/Util.cc: Updated according to the changes in messageDigest.h.
  9624. * src/AbstractDiskWriter.cc: Updated according to the changes in
  9625. messageDigest.h.
  9626. To fix a bug that causes segfault when the payload length in peer
  9627. message is less than 0:
  9628. * src/PeerConnection.cc:
  9629. (receiveMessage): Fixed the bug.
  9630. * src/PeerMessageUtil.cc
  9631. (checkLength): Throw an exception if length is less than or equals to
  9632. 0.
  9633. To add new interfaces to Base64 encoding/decoding:
  9634. * src/Base64.h
  9635. (part_encode): Changed the method signature.
  9636. (encode): New function(overload).
  9637. (decode): New function(overload).
  9638. * src/Base64.cc
  9639. (part_encode): Rewritten.
  9640. (encode): Rewritten.
  9641. (encode): New function(overload).
  9642. To prevent a peer to download same piece if there is an error in
  9643. checksum:
  9644. * src/PieceMessage.cc
  9645. (receivedAction): Call peerInteraction->abortPiece().
  9646. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. To fix the bug that causes same have message is sent many times to
  9648. a single peer.
  9649. * src/Time.cc
  9650. (isNewer): Use Util::difftv().
  9651. * src/Util.cc
  9652. (difftv): Added a cast to (long long int).
  9653. * src/TorrentMan.cc
  9654. (advertisePiece): Use push_front.
  9655. (getAdvertisedPieceIndexes): A performance improvement was made.
  9656. To fix the bug that sends tracker requests without a sleep interval
  9657. when the number of connections is less than 15.
  9658. * src/TrackerWatcherCommand.cc
  9659. (execute): Now the number of connections is not a factor to decide
  9660. whether or not a tracker request should be sent or not.
  9661. * src/Time.h
  9662. (setTimeInSec): New function.
  9663. * src/Time.cc
  9664. (setTimeInSec): New function.
  9665. etc.
  9666. * src/ChokeMessage.cc
  9667. (receivedAction): Removed peer->snubbing = false
  9668. * src/PeerConnection.h
  9669. (receiveHandshake): Updated doc.
  9670. * src/TorrentMan.h
  9671. (getAdvertisedPieceIndexes): Updated the method signature.
  9672. * src/TorrentMan.cc
  9673. (getAdvertisedPieceIndexes): Updated the method signature.
  9674. * src/Time.h
  9675. (getTimeInMicros): Added a cast to (long long int).
  9676. (getTimeInMillis): Added a cast to (long long int).
  9677. * Release 0.5.2
  9678. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9679. To make a listening socket non-block:
  9680. * src/SocketCore.h
  9681. (setNonBlockingMode): New function.
  9682. * src/SocketCore.cc
  9683. (setNonBlockingMode): New function.
  9684. (beginListen): Added a call to setNonBlockingMode().
  9685. (acceptConnection): Call setNonBlockingMode().
  9686. (setBlockingMode): Updated.
  9687. To handle tracker's NAT-checking:
  9688. * src/PeerConnection.cc
  9689. (receiveHandshake): 'msg' param is filled with received data and
  9690. its length is assigned to 'length' param, even if all handshake
  9691. message is not yet received.
  9692. * src/PeerInteractionCommand.cc
  9693. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9694. a new peer connects to localhost.
  9695. A call to peerInteraction->sendHandshake() was removed because
  9696. it is called from peerInteraction->receiveHandshake(true).
  9697. * src/PeerInteraction.h
  9698. (quickReplied): New variable.
  9699. (receiveHandshake): Added an argument.
  9700. * src/PeerInteraction.cc
  9701. (PeerInteraction): Added the initialization of quickReplied.
  9702. (receiveHandshake): Send handshake message as soon as the info hash
  9703. in a handshake message from a peer is correct.
  9704. To change the random part of peer id and key parameter:
  9705. * src/TorrentMan.h
  9706. (key): New variable.
  9707. * src/TorrentMan.cc
  9708. (setupInternal1): Use Util::randomAlpha() to generate random part
  9709. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9710. key is also generated by Util::randomAlpha() and it is now 8 character
  9711. long.
  9712. * src/Util.h
  9713. (randomAlpha): New function.
  9714. * src/Util.cc
  9715. (randomAlpha): New function.
  9716. * src/TrackerWatcherCommand.cc
  9717. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9718. Added no_peer_id=1.
  9719. Set snubbing flag to false when a choke message is received from a
  9720. snubbed peer.
  9721. * src/ChokeMessage.cc
  9722. (receivedAction): Set snubbing flag to false.
  9723. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9725. * src/SimpleLogger.h (writeHeader): New function.
  9726. * src/SimpleLogger.cc (writeHeader): New function.
  9727. (writeLog): Fixed the bug that causes segfaults if exception message
  9728. contains an unescaped "%" character.
  9729. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9730. when a tracker request fails.
  9731. * src/Request.cc (parseUrl): Query string is now handled properly.
  9732. * Release 0.5.1
  9733. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9734. To add Time class which represents a specific instant in time and
  9735. its precision is microseconds. Time checking procedures were rewritten
  9736. using this object.
  9737. * src/Time.h: New class.
  9738. * src/Time.cc: New class.
  9739. * src/AbstractCommand.h
  9740. (updateCheckPoint): Removed.
  9741. (isTimeoutDetected): Removed.
  9742. (checkPoint): Changed the type to Time.
  9743. (timeout): New variable.
  9744. (setTimeout): New function.
  9745. * src/AbstractCommand.cc
  9746. (AbstractCommand): Removed the initialization of checkPoint.
  9747. Added the initialization of timeout.
  9748. (updateCheckPoint): Removed.
  9749. (isTimeoutDetected): Removed.
  9750. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9751. * src/PeerChokeCommand.h
  9752. (checkPoint): Changed the type to Time.
  9753. * src/PeerChokeCommand.cc
  9754. (PeerChokeCommand): Removed the initialization of checkPoint.
  9755. (execute): Rewritten using Time object.
  9756. * src/TrackerWatcherCommand.h
  9757. (checkPoint): Changed the type to Time.
  9758. * src/TrackerWatcherCommand.cc
  9759. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9760. (execute): Rewritten.
  9761. * src/ConsoleDownloadEngine.h
  9762. (cp): Changed the type to Time.
  9763. (startup): Changed the type to Time.
  9764. * src/ConsoleDownloadEngine.cc
  9765. (initStatistics): Use cp.reset(), startup.reset().
  9766. (calculateStatistics): Rewritten using Time object.
  9767. * src/PeerAbstractCommand.h
  9768. (updateCheckPoint): Removed.
  9769. (isTimeoutDetected): Removed.
  9770. (checkPoint): Changed the type to Time.
  9771. * src/PeerAbstractCommand.cc
  9772. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9773. (updateCheckPoint): Removed.
  9774. (isTimeoutDetected): Removed.
  9775. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9776. * src/PeerInteractionCommand.cc
  9777. (PeerInteractionCommand): Removed the initializations of struct
  9778. timeval variables.
  9779. * src/PeerInteractionCommand.h
  9780. (keepAliveCheckPoint): Changed the type to Time.
  9781. (chokeCheckPoint): Changed the type to Time.
  9782. (freqCheckPoint): Changed the type to Time.
  9783. (haveCheckTime): Changed the type to Time.
  9784. * src/PeerInteractionCommand.cc
  9785. (executeInternal): Rewritten using Time object.
  9786. (detectMessageFlooding): Rewritten using Time object.
  9787. (checkLongTimePeerChoking): Rewritten using Time object.
  9788. (sendKeepAlive): Rewritten using Time object.
  9789. (checkHave): Rewritten using Time object.
  9790. * src/SleepCommand.h
  9791. (checkPoint): Changed the type to Time.
  9792. * src/SleepCommand.cc
  9793. (SleepCommand): Removed the initialization of checkPoint.
  9794. (execute): Rewritten using Time object.
  9795. * src/TorrentAutoSaveCommand.h
  9796. (checkPoint): Changed the type to Time.
  9797. * src/TorrentAutoSaveCommand.cc
  9798. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9799. (execute): Rewritten.
  9800. * src/DownloadCommand.h
  9801. (sw): Changed the type to Time.
  9802. * src/DownloadCommand.cc
  9803. (DownloadCommand): Removed the initialization of sw.
  9804. (executeInternal): Rewritten.
  9805. * src/RequestSlot.h
  9806. (dispatchedTime): Changed the type to Time.
  9807. * src/RequestSlot.cc
  9808. (RequestSlot): Removed the call to setDispatchedTime().
  9809. (setDispatchedTime): Rewirtten.
  9810. (isTimeout): Rewritten.
  9811. (getLatencyInMillis): Rewritten.
  9812. * src/TorrentDownloadEngine.h
  9813. (cp): Changed the type to Time[2].
  9814. (startup): Changed the type to Time.
  9815. * src/TorrentDownloadEngine.cc
  9816. (initStatistics): Rewritten.
  9817. (calculateStatistics): Rewritten.
  9818. * src/DownloadEngine.cc
  9819. (run): Rewritten.
  9820. To detect all attempts to connect to the tracker are failed:
  9821. * src/AbstractCommand.cc
  9822. (execute): Increment e->segmentMan->errors if a command aborted.
  9823. * src/SegmentMan.h
  9824. (errors): New variable.
  9825. * src/SegmentMan.cc
  9826. (SegmentMan): Added the initialization of errors.
  9827. (init): Added the initialization of errors.
  9828. * src/TrackerWatcherCommand.cc
  9829. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9830. request was failed.
  9831. To handle snubbed peers:
  9832. * src/PeerChokeCommand.cc
  9833. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9834. (execute): Snubbed peers don't get unchoked.
  9835. * src/PeerInteraction.h
  9836. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9837. * src/PeerInteraction.cc
  9838. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9839. back the requested 16k block in 60 seconds.
  9840. * src/PieceMessage.cc
  9841. (receivedAction): A peer's snubbed state is cleard if it sends
  9842. the requested 16k block in 60 seconds.
  9843. * src/Peer.h
  9844. (snubbing): New variable.
  9845. * src/Peer.cc
  9846. (resetStatus): Added snubbed = false.
  9847. To fix the bug that causes have message is not sent:
  9848. * src/PeerInteractionCommand.cc
  9849. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9850. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9851. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9852. * src/TorrentMan.h
  9853. (HaveEntry): New class.
  9854. (advertisePiece): Rewritten.
  9855. (getAdvertisedPieceIndexes): Rewritten.
  9856. (Haves): Changed the type.
  9857. (getAdvertisedPieceIndexes): Added an argument.
  9858. Others:
  9859. * src/TorrentMan.h
  9860. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9861. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9862. * src/TorrentMan.cc
  9863. (getPeer): Don't check the number of connections here.
  9864. (setupInternal1): Changed peerId.
  9865. * src/PeerInteractionCommand.h
  9866. (KEEP_ALIVE_INTERVAL): New definition.
  9867. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9868. * src/main.cc
  9869. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9870. * src/DownloadEngine.h: Removed unnecessary header includes.
  9871. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. To fix the bug that causes segfaults if a tracker returns a zero-length
  9873. list as "peers":
  9874. * src/TrackerUpdateCommand.cc
  9875. (execute): Added a check to see wether the type of peers is Data*.
  9876. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. * Release 0.5.0
  9878. To fix compile issue with gcc3:
  9879. * src/CancelMessage.h
  9880. (ID): Renamed as ID_t
  9881. (ID_t): New enum.
  9882. * src/RejectMessage.h
  9883. (ID): Renamed as ID_t
  9884. (ID_t): New enum.
  9885. * src/SuggestPieceMessage.h
  9886. (ID): Renamed as ID_t
  9887. (ID_t): New enum.
  9888. * src/AllowedFastMessage.h
  9889. (ID): Renamed as ID_t
  9890. (ID_t): New enum.
  9891. * src/PortMessage.h
  9892. (ID): Renamed as ID_t
  9893. (ID_t): New enum.
  9894. * src/HaveNoneMessage.h
  9895. (ID): Renamed as ID_t
  9896. (ID_t): New enum.
  9897. * src/KeepAliveMessage.h
  9898. (ID): Renamed as ID_t
  9899. (ID_t): New enum.
  9900. * src/HaveAllMessage.h
  9901. (ID): Renamed as ID_t
  9902. (ID_t): New enum.
  9903. * src/UnchokeMessage.h
  9904. (ID): Renamed as ID_t
  9905. (ID_t): New enum.
  9906. * src/BitfieldMessage.h
  9907. (ID): Renamed as ID_t
  9908. (ID_t): New enum.
  9909. * src/PieceMessage.h
  9910. (ID): Renamed as ID_t
  9911. (ID_t): New enum.
  9912. * src/RequestMessage.h
  9913. (ID): Renamed as ID_t
  9914. (ID_t): New enum.
  9915. * src/NotInterestedMessage.h
  9916. (ID): Renamed as ID_t
  9917. (ID_t): New enum.
  9918. * src/ChokeMessage.h
  9919. (ID): Renamed as ID_t
  9920. (ID_t): New enum.
  9921. * src/InterestedMessage.h
  9922. (ID): Renamed as ID_t
  9923. (ID_t): New enum.
  9924. * src/HaveMessage.h
  9925. (ID): Renamed as ID_t
  9926. (ID_t): New enum.
  9927. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9928. * src/PeerAbstractCommand.h
  9929. (beforeSocketCheck): Removed.
  9930. * src/PeerAbstractCommand.cc
  9931. Modified in order to call executeInternal() even if socket check
  9932. and upload limit check fail.
  9933. * src/PeerInteractionCommand.h
  9934. (keepAlive): Removed.
  9935. (sendKeepAlive): New function.
  9936. (checkHave): New function.
  9937. (beforeSocketCheck): Removed.
  9938. * src/PeerInteractionCommand.cc
  9939. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9940. calls to checkHave() and sendKeepAlive().
  9941. (keepAlive): Renamed to sendKeepAlive().
  9942. (sendKeepAlive): New function.
  9943. (beforeSocketCheck): Removed.
  9944. (checkHave): New function.
  9945. * src/BitfieldMan.cc
  9946. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9947. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9948. 0.
  9949. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9950. * src/TorrentMan.h
  9951. (UsedPieces): Removed.
  9952. (Pieces): New type definition.
  9953. * src/Piece.h: Updated doc.
  9954. * src/Peer.h
  9955. (totalLength): Removed.
  9956. * src/Peer.cc
  9957. (updateLatency): Fixed the latency calculation.
  9958. * src/TorrentMan.cc
  9959. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9960. than or equal to MAX_PEER_LIST_SIZE.
  9961. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9962. then return false.
  9963. (deleteOldErrorPeers): Rewritten.
  9964. (deleteUsedPiece): Fixed the miss use of STL remove.
  9965. * src/PeerInteraction.h
  9966. (Pieces): Removed.
  9967. (deleteTimeoutRequestSlot): Removed.
  9968. (deleteCompletedRequestSlot): Removed.
  9969. (checkRequestSlot): New function.
  9970. * src/PeerInteraction.cc
  9971. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9972. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9973. (checkRequestSlot): New function.
  9974. * src/DownloadEngine.cc
  9975. (run): Clear activeSockets before calling waitData().
  9976. (waitData): Removed a call to activeSockets.clear().
  9977. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. To attempt to handle EINTR:
  9979. * src/SocketCore.cc
  9980. (isReadable): Added EINTR handling.
  9981. (isWritable): Added EINTR handling.
  9982. To improve the performance:
  9983. * src/AbstractCommand.cc
  9984. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9985. * src/PeerInteractionCommand.h
  9986. (receiveMessage): Renamed as receiveMessages().
  9987. (receiveMessages): New function.
  9988. * src/PeerInteractionCommand.cc
  9989. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9990. () function. detectMessageFlooding() is moved here.
  9991. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9992. (). The flooding detection for have message is comment out.
  9993. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9994. Util::difftv().
  9995. (receiveMessage): Renamed as receiveMessages().
  9996. (receiveMessages): New function.
  9997. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9998. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9999. * src/SleepCommand.cc
  10000. (execute): Use Util::difftvsec() instead of Util::difftv().
  10001. * src/BitfieldMan.h
  10002. (getNthBitIndex): New function.
  10003. (hasMissingPiece): New function.
  10004. (getAllMissingIndexes): New function.
  10005. * src/BitfieldMan.cc
  10006. (countSetBit): Rewritten.
  10007. (getNthBitIndex): New function.
  10008. (getMissingIndexRandomly): Rewritten.
  10009. (hasMissingPiece): New function.
  10010. (getAllMissingIndexes): New function.
  10011. * src/TorrentMan.cc
  10012. (hasMissingPiece): New function.
  10013. (deleteUsedPiece): Rewritten using STL.
  10014. * src/PeerInteraction.cc
  10015. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  10016. is a little bit faster then TorrentMan::getMissingPieceIndex().
  10017. (addRequests): Updated the number of pending requests.
  10018. * src/PeerAbstractCommand.cc
  10019. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10020. (execute): Returns true if TorrentMan::isHalt() is true.
  10021. Corrected the condition of upload limit checking.
  10022. * src/Util.h
  10023. (countBit): New function.
  10024. * src/Util.cc
  10025. (nbits): New variable.
  10026. (countBit): New function.
  10027. * src/DownloadEngine.h
  10028. (SockCmdMap): New type definition.
  10029. (waitData): Added an argument.
  10030. (addSocket): Added an argument.
  10031. (addSocketForReadCheck): Added an argument.
  10032. (addSocketForWriteCheck): Added an argument.
  10033. * src/DownloadEngine.cc
  10034. (run): Executes only commands whose sockets are ready to read or write.
  10035. All commands are executed in every 1 second.
  10036. (waitData): Calls select() again if it returned
  10037. EINTR.
  10038. (addSocket): Saves socket and command object pair to the map.
  10039. (deleteSocket): Deletes socket and command object pair from the map.
  10040. (addSocketForReadCheck): Added an argument.
  10041. (addSocketForWriteCheck): Added an argument.
  10042. * src/DownloadCommand.cc
  10043. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  10044. To send "event=stopped" to the tracker when the application finishes:
  10045. * src/PeerChokeCommand.h
  10046. (checkPoint): New variable.
  10047. * src/PeerChokeCommand.cc
  10048. (PeerChokeCommand): Added the initialization of checkPoint.
  10049. (execute): The interval check is now done by checkPoint, not
  10050. SleepCommand. Return true if TorrentMan::isHalt() is true.
  10051. * src/TorrentMan.h
  10052. (halt): New function.
  10053. (hasMissingPiece): New function.
  10054. (isHalt): New function.
  10055. (setHalt): New function.
  10056. * src/TorrentMan.cc
  10057. (TorrentMan): Added the initialization of halt.
  10058. * src/TorrentAutoSaveCommand.h
  10059. (checkPoint): New variable.
  10060. * src/PeerListenCommand.cc
  10061. (execute): Returns true if TorrentMan::isHalt() is true.
  10062. * src/main.cc
  10063. (setSignalHander): Added flags argument.
  10064. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  10065. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  10066. Removed printDownloadAbortMessage() after torrent downloading loop.
  10067. * src/TorrentAutoSaveCommand.cc
  10068. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  10069. (execute): Returns true if TorrentMan::isHalt() is true.
  10070. The interval check is now done by checkPoint, not SleepCommand.
  10071. * src/TrackerWatcherCommand.cc
  10072. (execute): If TorrentMan::isHalt(), then create a tracker request with
  10073. event=stopped.
  10074. * src/TrackerUpdateCommand.cc
  10075. (prepareForRetry): Do not use SleepCommand here.
  10076. (execute): Returns true if TorrentMan::isHalt() is true.
  10077. Others:
  10078. * src/TorrentMan.cc
  10079. (getMissingPieceIndex): Updated log message.
  10080. * src/PeerInteraction.cc
  10081. (createPeerMessag): Updated log message.
  10082. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. To add the ability to download several pieces in mix in a command and
  10084. increase the number of request slots according to request-cancel
  10085. latency:
  10086. * src/PeerInteractionCommand.cc
  10087. (executeInternal): The number of messages to be received at a time
  10088. is increased from 10 to 50.
  10089. * src/LogFactory
  10090. (getInstance): Added NullLogger.
  10091. * src/NullLogger.h: New class.
  10092. * src/BitfieldMan.h
  10093. (getMissingIndex): New function.
  10094. * src/BitfieldMan.cc
  10095. (getMissingIndex): New function.
  10096. * src/TorrentMan.h
  10097. (checkOutPiece): New function.
  10098. (getMissingPieceIndex): New function.
  10099. (getMissingFastPieceIndex): New function.
  10100. (getMissingFastPiece): New function.
  10101. * src/TorrentMan.cc
  10102. (updatePiece): Rewritten using STL.
  10103. (syncPiece): Rewritten using STL.
  10104. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  10105. checkOutPiece().
  10106. (getMissingPieceIndex): New function.
  10107. (getMissingFastPieceIndex): New function.
  10108. (getMissingFastPiece): New function.
  10109. (checkOutPiece): New function.
  10110. * src/PeerInteraction.h
  10111. (Pieces): New type definition.
  10112. (piece): Removed.
  10113. (pieces): New variable.
  10114. (getNewPieceAndSendInterest): Added the "piece" argument.
  10115. (abortPiece): Added the "piece" argument.
  10116. (abortAllPieces): New function.
  10117. (isInRequestSlot): New function.
  10118. (hasDownloadPiece): Added the "index" argument.
  10119. (setDownloadPiece): Removed.
  10120. (getDownloadPiece): Added the "index" argument.
  10121. (updatePiece): New function.
  10122. (createRequestMessage): Added the "index" argument.
  10123. * src/PeerInteraction.cc
  10124. (onChoked): Rewritten.
  10125. (abortPiece): Rewirtten.
  10126. (abortAllPieces): New function.
  10127. (deleteTimeoutRequestSlot): Rewritten.
  10128. Clarified code a little bit.
  10129. (deleteCompletedRequestSlot): Rewritten.
  10130. (isInRequestSlot): New function.
  10131. (syncPiece): Rewritten.
  10132. (updatePiece): New function.
  10133. (getNewPieceAndSendInterest): Rewritten.
  10134. (addRequests): Rewritten.
  10135. (getDownloadPiece): Rewritten.
  10136. (hasDownloadPiece): Rewritten.
  10137. (createRequestMessage): Added the "index" argument.
  10138. * src/common.h
  10139. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  10140. (DIV_FLOOR): New definition.
  10141. * src/PieceMessage.cc
  10142. (receivedAction): Update request-piece latency here.
  10143. * src/RequestSlot.h
  10144. (getLatencyInMillis): New function.
  10145. * src/RequestSlot.cc
  10146. (isTimeout): Rewritten using getLatencyInMillis.
  10147. (getLatencyInMillis): New function.
  10148. * src/Piece.h
  10149. (operator==): New function.
  10150. (getMissingBlockIndex): New function.
  10151. * src/Piece.cc
  10152. (operator==): New function.
  10153. (getMissingBlockIndex): New function.
  10154. * src/Peer.h
  10155. (DEFAULT_LATENCY): New definition.
  10156. (latency): New variable.
  10157. (updateLatency): New function.
  10158. (getLatency): New function.
  10159. * src/Peer.cc
  10160. (resetStatus): Reset latecy.
  10161. (updateLatency): New function.
  10162. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. * src/SocketCore.cc
  10164. (isReadable): Added secure to the condition.
  10165. * src/HttpConnection.cc
  10166. (receiveResponse): Fixed a bug that causes no response header
  10167. exception.
  10168. * src/Peer.h
  10169. (getFastSet): Fixed the return value type.
  10170. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. To remove a wait from download loop:
  10172. * src/DownloadEngine.cc
  10173. (run): Comment out shortSleep.
  10174. To rewrite the message handling:
  10175. * src/SimplePeerMessage.h: New class.
  10176. * src/SimplePeerMessage.cc: New class.
  10177. * src/CancelMessage.h: Derived from SimplePeerMessage.
  10178. (msg): New variable.
  10179. (create): New function.
  10180. (send): Removed.
  10181. (getMessage): New function.
  10182. (getMessageLength): New function.
  10183. * src/CancelMessage.cc
  10184. (create): New function.
  10185. (receivedAction): Replaced deleteRequestMessageInQueue with
  10186. rejectPieceMessageInQueue.
  10187. (send): Removed.
  10188. (getMessage): New function.
  10189. (getMessageLength): New function.
  10190. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  10191. (msg): New variable.
  10192. (msgLength): New variable.
  10193. (~BitfieldMessage): Deleted msg.
  10194. (send): Removed.
  10195. (getMessage): New function.
  10196. (getMessageLength): New function.
  10197. * src/BitfieldMessage.cc
  10198. (create): New function.
  10199. (send): Removed.
  10200. (getMessage): New function.
  10201. (getMessageLength): New function.
  10202. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  10203. (msg): New variable.
  10204. (sendPredicate): New function.
  10205. (onSendComplete): New function.
  10206. (send): Removed.
  10207. (getMessage): New function.
  10208. (getMessageLength): New function.
  10209. (create): New function.
  10210. * src/ChokeMessage.cc
  10211. (create): New function.
  10212. (send): Removed.
  10213. (sendPredicate): New function.
  10214. (getMessage): New function.
  10215. (getMessageLength): New function.
  10216. (onSendComplete): New function.
  10217. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  10218. (msg): New variable.
  10219. (send): Removed.
  10220. (getMessage): New function.
  10221. (getMessageLength): New function.
  10222. * src/KeepAliveMessage.cc
  10223. (send): Removed.
  10224. (getMessage): New function.
  10225. (getMessageLength): New function.
  10226. * src/PortMessage.h
  10227. (create): New function.
  10228. (receivedAction): Updated log message.
  10229. * src/PortMessage.cc: New file.
  10230. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  10231. (msg): New variable.
  10232. (sendPredicate): New function.
  10233. (onSendComplete): New function.
  10234. (create): New function.
  10235. (send): Removed.
  10236. (getMessage): New function.
  10237. (getMessageLength): New function.
  10238. * src/UnchokeMessage.cc
  10239. (create): New function.
  10240. (send): Removed.
  10241. (sendPredicate): New function.
  10242. (getMessage): New function.
  10243. (getMessageLength): New function.
  10244. (onSendComplete): New function.
  10245. * src/PieceMessage.h
  10246. (leftPieceDataLength): Removed.
  10247. (leftDataLength): New variable.
  10248. (headerSend): New variable.
  10249. (pendingCount): New variable.
  10250. (msgHeader): New variable.
  10251. (sendPieceData): New function.
  10252. (incrementPendingCount): New function.
  10253. (isPendingCountMax): New function.
  10254. (create): New function.
  10255. (getMessageHeader): New function.
  10256. (getMessageHeaderLength): New function.
  10257. * src/PieceMessage.cc
  10258. (create): New function.
  10259. (getMessageHeader): New function.
  10260. (getMessageHeaderLength): New function.
  10261. (send): Rewritten.
  10262. (sendPieceData): New function.
  10263. * src/HaveMessage.h: Derived from SimplePeerMessage.
  10264. (msg): New variable.
  10265. (create): New function.
  10266. (getMessage): New function.
  10267. (getMessageLength): New function.
  10268. * src/HaveMessage.cc
  10269. (create): New function.
  10270. (send): Removed.
  10271. (sendPieceData): New function.
  10272. (getMessage): New function.
  10273. (getMessageLength): New function.
  10274. * src/RequestMessage.h: Derived from SimplePeerMessage.
  10275. (msg): New variable.
  10276. (create): New function.
  10277. (send): Removed.
  10278. (getMessage): New function.
  10279. (getMessageLength): New function.
  10280. * src/RequestMessage.cc
  10281. (create): New function.
  10282. (receivedAction): Added the handling of fast extension.
  10283. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  10284. (send): Removed.
  10285. (getMessage): New function.
  10286. (getMessageLength): New function.
  10287. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  10288. (msg): New variable.
  10289. (sendPredicate): New function.
  10290. (onSendComplete): New function.
  10291. (create): New function.
  10292. (getMessage): New function.
  10293. (getMessageLength): New function.
  10294. * src/InterestedMessage.cc
  10295. (create): New function.
  10296. (send): Removed.
  10297. (sendPieceData): New function.
  10298. (getMessage): New function.
  10299. (getMessageLength): New function.
  10300. (onSendComplete): New function.
  10301. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  10302. (msg): New variable.
  10303. (sendPieceData): New function.
  10304. (onSendComplete): New function.
  10305. (create): New function.
  10306. (send): Removed.
  10307. (getMessage): New function.
  10308. (getMessageLength): New function.
  10309. * src/NotInterestedMessage.cc
  10310. (create): New function.
  10311. (send): Removed.
  10312. (sendPredicate): New function.
  10313. (getMessage): New function.
  10314. (getMessageLength): New function.
  10315. (onSendComplete): New function.
  10316. * src/AllowedFastMessage.h: New class.
  10317. * src/AllowedFastMessage.cc: New class.
  10318. * src/RejectMessage.h: New class.
  10319. * src/RejectMessage.cc: New class.
  10320. * src/SuggestPieceMessage.h: New class.
  10321. * src/SuggestPieceMessage.cc: New class.
  10322. * src/HaveAllMessage.h: New class.
  10323. * src/HaveAllMessage.cc: New class.
  10324. * src/HaveNoneMessage.h: New class.
  10325. * src/HaveNoneMessage.cc: New class.
  10326. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  10327. (msg): New variable.
  10328. (reserved): New variable.
  10329. (create): New function.
  10330. (getId): New function.
  10331. (receivedAction): New function.
  10332. (getMessage): New function.
  10333. (getMessageLength): New function.
  10334. (isFastExtensionSupported): New function.
  10335. * src/HandshakeMessage.cc
  10336. (HandshakeMessage): Moved here from HandshakeMessage.h.
  10337. (create): New function.
  10338. (getMessage): New function.
  10339. (getMessageLength): New function.
  10340. (toString): Added the output of reserved field.
  10341. (check): Added const qualifier.
  10342. (isFastExtensionSupported): New function.
  10343. * src/PeerMessageUtil.h
  10344. (createChokeMessage): Removed.
  10345. (createUnchokeMessage): Removed.
  10346. (createInterestedMessage): Removed.
  10347. (createNotInterestedMessage): Removed.
  10348. (createHaveMessage): Removed.
  10349. (createBitfieldMessage): Removed.
  10350. (createRequestMessage): Removed.
  10351. (createCancelMessage): Removed.
  10352. (createPieceMessage): Removed.
  10353. (createPortMessage): Removed.
  10354. (createChokeMessage): Removed.
  10355. (createUnchokeMessage): Removed.
  10356. (createInterestedMessage): Removed.
  10357. (createNotInterestedMessage): Removed.
  10358. (createHaveMessage): Removed.
  10359. (createBitfieldMessage): Removed.
  10360. (createRequestMessage): Removed.
  10361. (createCancelMessage): Removed.
  10362. (createPieceMessage): Removed.
  10363. (createKeepAliveMessage): Removed.
  10364. (createHandshakeMessage): Removed.
  10365. (setIntParam): New function.
  10366. (createPeerMessageString): New function.
  10367. * src/PeerMessageUtil.cc
  10368. (createChokeMessage): Removed.
  10369. (createUnchokeMessage): Removed.
  10370. (createInterestedMessage): Removed.
  10371. (createNotInterestedMessage): Removed.
  10372. (createHaveMessage): Removed.
  10373. (createBitfieldMessage): Removed.
  10374. (createRequestMessage): Removed.
  10375. (createCancelMessage): Removed.
  10376. (createPieceMessage): Removed.
  10377. (createPortMessage): Removed.
  10378. (createRequestMessage): Removed.
  10379. (createCancelMessage): Removed.
  10380. (createPieceMessage): Removed.
  10381. (createHaveMessage): Removed.
  10382. (createChokeMessage): Removed.
  10383. (createUnchokeMessage): Removed.
  10384. (createInterestedMessage): Removed.
  10385. (createNotInterestedMessage): Removed.
  10386. (createBitfieldMessage): Removed.
  10387. (createKeepAliveMessage): Removed.
  10388. (createHandshakeMessage): Removed.
  10389. (setIntParam): New function.
  10390. (createPeerMessageString): New function.
  10391. * src/PeerConnection.h
  10392. (peer): Removed.
  10393. (torrentMan): Removed.
  10394. (createNLengthMessage): Removed.
  10395. (setIntParam): Removed.
  10396. (writeOutgoingMessageLog): Removed all overloaded functions.
  10397. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10398. (sendMessage): New function.
  10399. (sendHandshake): Removed.
  10400. (sendKeepAlive): Removed.
  10401. (sendChoke): Removed.
  10402. (sendUnchoke): Removed.
  10403. (sendInterested): Removed.
  10404. (sendNotInterested): Removed.
  10405. (sendHave): Removed.
  10406. (sendBitfield): Removed.
  10407. (sendRequest): Removed.
  10408. (sendPiece): Removed.
  10409. (sendPieceHeader): Removed.
  10410. (sendPieceData): Removed.
  10411. (sendCancel): Removed.
  10412. (getPeer): Removed.
  10413. * src/PeerConnection.cc
  10414. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10415. (sendHandshake): Removed.
  10416. (sendKeepAlive): Removed.
  10417. (createNLengthMessage): Removed.
  10418. (setIntParam): Removed.
  10419. (writeOutgoingMessageLog): Removed all overloaded functions.
  10420. (sendChoke): Removed.
  10421. (sendUnchoke): Removed.
  10422. (sendInterested): Removed.
  10423. (sendNotInterested): Removed.
  10424. (sendHave): Removed.
  10425. (sendBitfield): Removed.
  10426. (sendRequest): Removed.
  10427. (sendPiece): Removed.
  10428. (sendPieceHeader): Removed.
  10429. (sendPieceData): Removed.
  10430. (sendMessage): New function.
  10431. (sendCancel): Removed.
  10432. * src/PeerInteractionCommand.cc
  10433. (PeerInteractionCommand): Call setUploadLimit.
  10434. (executeInternal): Call setUploadLimit.
  10435. Added the handling of "inProgress" state of handshake message.
  10436. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10437. sendNow().
  10438. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10439. sendNow().
  10440. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10441. * src/TorrentMan.h
  10442. (PEER_ID_LENGTH): New definition.
  10443. (hasAllPieces): New function.
  10444. * src/TorrentMan.cc
  10445. (getMissingPiece): Added the handling of fast extension.
  10446. (cancelPiece): Call updatePiece().
  10447. (hasAllPieces): New function.
  10448. * src/PeerInteraction.h
  10449. (fastSet): New variable.
  10450. (getNewPieceAndSendInterest): Changed the return type to void.
  10451. (send): Renamed as sendMessages.
  10452. (deleteAllRequestSlot): Removed.
  10453. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10454. (cancelAllRequest): Removed all overloaded functions.
  10455. (deleteAllRequestSlot): Removed.
  10456. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10457. (rejectPieceMessageInQueue): New function.
  10458. (rejectAllPieceMessageInQueue): New function.
  10459. (onChoked): New function.
  10460. (isSendingMessageInProgress): New function.
  10461. (getCorrespondingRequestSlot): Changed its arguments.
  10462. (isInFastSet): New function.
  10463. (addFastSetIndex): New function.
  10464. (addRequests): New function.
  10465. (sendNow): Removed.
  10466. (trySendNow): Removed.
  10467. (sendBitfield): New function.
  10468. (sendAllowdFast): New function.
  10469. (createHaveAllMessage): New function.
  10470. (createHaveNoneMessage): New function.
  10471. (createRejectMessage): New function.
  10472. (createAllowedFastMessage): New function.
  10473. * src/PeerInteraction.cc
  10474. (send): Renamed as sendMessages.
  10475. (sendMessages): New function.
  10476. (MsgPushBack): New class.
  10477. (isSendingMessageInProgress): New function.
  10478. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10479. (rejectAllPieceMessageInQueue): New function.
  10480. Added the handling of fast extension.
  10481. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10482. (rejectPieceMessageInQueue): New function.
  10483. Added the handling of fast extension.
  10484. (deleteRequestSlot): Replaced for loop with std::find.
  10485. (onChoked): New function.
  10486. (deleteAllRequestSlot): Removed.
  10487. (abortPiece): Rewirtten.
  10488. (deleteTimeoutRequestSlot): Updated log messages.
  10489. (getCorrespondingRequestSlot): Changed its arguments.
  10490. (cancelAllRequest): Removed all overloaded functions.
  10491. (receiveHandshake): Added the check to see whether an incoming peer
  10492. supports fast extension.
  10493. (createHandshakeMessage): Use HandshakeMessage::create instead of
  10494. PeerMessageUtil.
  10495. (createPeerMessage): Use create() of each message class instead of
  10496. PeerMessageUtil.
  10497. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  10498. AllowedFastMessage were added.
  10499. (getNewPieceAndSendInterest): Changed its return value type to void.
  10500. Added the handling of fast extension.
  10501. (addRequests): New function.
  10502. (sendNow): Removed.
  10503. (sendHandshake): Rewritten.
  10504. (trySendNow): Removed.
  10505. (sendBitfield): New function.
  10506. (sendAllowdFast): New function.
  10507. (isInFastSet): New function.
  10508. (addFastSetIndex): New function.
  10509. (createRequestMessage): Use RequestMessage::create instead of
  10510. PeerMessageUtil.
  10511. (createCancelMessage): Use CancelMessage::create instead of
  10512. PeerMessageUtil.
  10513. (createPieceMessage): Use PieceMessage::create instead of
  10514. PeerMessageUtil.
  10515. (createHaveMessage): Use HaveMessage::create instead of
  10516. PeerMessageUtil.
  10517. (createChokeMessage): Use ChokeMessage::create instead of
  10518. PeerMessageUtil.
  10519. (createUnchokeMessage): Use UnchokeMessage::create instead of
  10520. PeerMessageUtil.
  10521. (createInterestedMessage): Use InterestedMessage::create instead of
  10522. PeerMessageUtil.
  10523. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  10524. of PeerMessageUtil.
  10525. (createBitfieldMessage): Use BitfieldMessage::create instead of
  10526. PeerMessageUtil.
  10527. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  10528. PeerMessageUtil.
  10529. (createHaveAllMessage): New function.
  10530. (createHaveNoneMessage): New function.
  10531. (createRejectMessage): New function.
  10532. (createAllowedFastMessage: New function.
  10533. * src/Util.h
  10534. (sha1Sum): New function.
  10535. (computeFastSet): New function.
  10536. * src/Util.cc
  10537. (sha1Sum): New function.
  10538. (computeFastSet): New function.
  10539. * src/Peer.h
  10540. (fastExtensionEnabled): New variable.
  10541. (fastSet): New variable.
  10542. (setAllBitfield): New function.
  10543. (setFastExtensionEnabled): New function.
  10544. (isFastExtensionEnabled): New function.
  10545. (addFastSetIndex): New function.
  10546. (getFastSet): New function.
  10547. (isInFastSet): New function.
  10548. (countFastSet): New function.
  10549. * src/Peer.cc
  10550. (isInFastSet): New function.
  10551. (addFastSetIndex): New function.
  10552. (setAllBitfield): New function.
  10553. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  10554. sockets.
  10555. * src/PeerAbstractCommand.cc
  10556. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  10557. and uploadLimit.
  10558. (execute): Changed the procedure of checking sockets. The upload speed
  10559. checking were added.
  10560. (setUploadLimit): New function.
  10561. (setUploadLimitCheck): New function.
  10562. * src/PeerAbstractCommand.h
  10563. (setUploadLimit): New function.
  10564. (setUploadLimitCheck): New function.
  10565. (uploadLimit): New variable.
  10566. (uploadLimitCheck): New variable.
  10567. To contact a tracker regularly:
  10568. * src/TrackerWatcherCommand.h (interval): New variable.
  10569. (checkPoint): New variable.
  10570. (TrackerWatcherCommand): Added interval argument.
  10571. * src/TrackerWatcherCommand.cc
  10572. (TrackerWatcherCommand): Initialized checkPoint.
  10573. (execute): Now a tracker is contacted in every specified period.
  10574. If peer list is not needed, send request with numwant=0.
  10575. * src/TrackerUpdateCommand.cc
  10576. (execute): Updated log messages.
  10577. * src/DownloadEngine.cc
  10578. (~DownloadEngine): Removed two asserts.
  10579. (waitData): Uncommented wfds. May be a bug fix.
  10580. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10581. * src/PeerInteractionCommand.h
  10582. (checkInactiveConnection): Removed.
  10583. * src/PeerInteractionCommand.cc
  10584. (executeInternal): Removed following function calls:
  10585. detectMessageFlooding(), checkLongTimePeerChoking and
  10586. checkInactiveConnection().
  10587. (checkInactiveConnection): Removed.
  10588. (detectMessageFlooding): Removed function call to
  10589. checkInactiveConnection().
  10590. * src/PeerMessageUtil.h
  10591. (createChokeMessage): New function. Overload.
  10592. (createUnchokeMessage): New function. Overload.
  10593. (createInterestedMessage): New function. Overload.
  10594. (createNotInterestedMessage): New function. Overload.
  10595. (createHaveMessage): New function. Overload.
  10596. (createBitfieldMessage): New function. Overload.
  10597. (createRequestMessage): New function. Overload.
  10598. (createCancelMessage): New function. Overload.
  10599. (createPieceMessage): New function. Overload.
  10600. (createKeepAliveMessage): New function. Overload.
  10601. * src/PeerMessageUtil.cc
  10602. (createChokeMessage): New function. Overload.
  10603. (createUnchokeMessage): New function. Overload.
  10604. (createInterestedMessage): New function. Overload.
  10605. (createNotInterestedMessage): New function. Overload.
  10606. (createHaveMessage): New function. Overload.
  10607. (createBitfieldMessage): New function. Overload.
  10608. (createRequestMessage): New function. Overload.
  10609. (createCancelMessage): New function. Overload.
  10610. (createPieceMessage): New function. Overload.
  10611. (createKeepAliveMessage): New function. Overload.
  10612. * src/SendMessageQueue.cc
  10613. (createRequestMessage): Use PeerMessageUtil.
  10614. (createCancelMessage): Use PeerMessageUtil.
  10615. (createPieceMessage): Use PeerMessageUtil.
  10616. (createHaveMessage): Use PeerMessageUtil.
  10617. (createChokeMessage): Use PeerMessageUtil.
  10618. (createUnchokeMessage): Use PeerMessageUtil.
  10619. (createInterestedMessage): Use PeerMessageUtil.
  10620. (createNotInterestedMessage): Use PeerMessageUtil.
  10621. (createBitfieldMessage): Use PeerMessageUtil.
  10622. (createKeepAliveMessage): Use PeerMessageUtil.
  10623. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  10624. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  10625. * src/PeerInteraction.h: New class.
  10626. * src/PeerInteraction.cc: New class.
  10627. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Each peer message has its own class.
  10629. * src/PendingMessages.h: Removed.
  10630. * src/PendingMessages.cc: Removed. The sending process was moved to
  10631. each message class.
  10632. * src/RequestSlotMan.h: Removed.
  10633. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  10634. SendMessageQueue.
  10635. * src/RequestMessage.h: New class.
  10636. * src/RequestMessage.cc: New class.
  10637. * src/CancelMessage.h: New class.
  10638. * src/CancelMessage.cc: New class.
  10639. * src/BitfieldMessage.h: New class.
  10640. * src/BitfieldMessage.cc: New class.
  10641. * src/ChokeMessage.h: New class.
  10642. * src/ChokeMessage.cc: New class.
  10643. * src/KeepAliveMessage.h: New class.
  10644. * src/KeepAliveMessage.cc: New class.
  10645. * src/PortMessage.h: New class.
  10646. * src/UnchokeMessage.h: New class.
  10647. * src/UnchokeMessage.cc: New class.
  10648. * src/PieceMessage.h: New class.
  10649. * src/PieceMessage.cc: New class.
  10650. * src/HaveMessage.h: New class.
  10651. * src/HaveMessage.cc: New class.
  10652. * src/BitfieldMessage.h: New class.
  10653. * src/BitfieldMessage.cc: New class.
  10654. * src/NotInterestedMessage.h: New class.
  10655. * src/NotInterestedMessage.cc: New class.
  10656. * src/InterestedMessage.h: New class.
  10657. * src/InterestedMessage.cc: New class.
  10658. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  10659. (getSendMessageQueue): New function.
  10660. (setSendMessageQueue): New function.
  10661. * src/HandshakeMessage.cc: New class.
  10662. * src/PeerConnection.h (receiveMessage): Changed return value and
  10663. arguments.
  10664. (receiveHandshake): Changed return value and arguments.
  10665. * src/PeerConnection.cc (receiveMessage): Do not create message class
  10666. here.
  10667. (receiveHandshake): Do not create handshake class here.
  10668. * src/PeerInteractionCommand.h (peerConnection): Removed.
  10669. (piece): Removed.
  10670. (syncPiece): Removed.
  10671. (sendInterest): Removed.
  10672. (sendMessages): Removed.
  10673. (createRequestPendingMessage): Removed.
  10674. (checkPieceHash): Removed.
  10675. (erasePieceOnDisk): Removed.
  10676. (getNewPieceAndSendInterest): Removed.
  10677. (onGotNewPice): Removed.
  10678. (onGotWrongPiece): Removed.
  10679. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10680. Removed peerConnection, piece.
  10681. (~PeerInteractionCommand): Removed peerConnection.
  10682. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10683. (syncPiece): Moved to SendMessageQueue.
  10684. (decideChoking): Removed PendingMessage.
  10685. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10686. The action after receiving peer message was moved to each message
  10687. class.
  10688. (onGotNewPice): Moved to SendMessageQueue.
  10689. (onGotWrongPiece): Moved to SendMessageQueue.
  10690. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10691. (sendInterest): Moved to SendMessageQueue.
  10692. (createRequestPendingMessage): Removed.
  10693. (sendMessages): Moved to SendMessageQueue.
  10694. (onAbort): Use SendMessageQueue::abortPiece()
  10695. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10696. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10697. (checkPieceHash): Moved to SendMessageQueue.
  10698. (erasePieceOnDisk): Moved to SendMessageQueue.
  10699. * src/PeerMessageUtil.h
  10700. (createBitfieldMessage): Removed.
  10701. (createHaveMessage): Changed return value and arguments.
  10702. (createBitfieldMessage): Changed return value and arguments.
  10703. (createRequestCancelMessage): Removed.
  10704. (createPieceMessage): Changed return value and arguments.
  10705. (getShortIntParam): New function.
  10706. (checkIndex): Changed arguments.
  10707. (checkBegin): Changed arguments.
  10708. (checkLength): Changed arguments.
  10709. (checkPieceOffset): Removed.
  10710. (checkRange): New function.
  10711. (checkBitfield): Changed arguments.
  10712. (createPeerMessage): Removed.
  10713. (checkIntegrity): Removed.
  10714. (createHandshakeMessage): Changed arguments.
  10715. (createChokeMessage): New function.
  10716. (createUnchokeMessage): New function.
  10717. (createInterestedMessage): New function.
  10718. (createNotInterestedMessage): New function.
  10719. (createRequestMessage): New function.
  10720. (createCancelMessage): New function.
  10721. (createPortMessage): New function.
  10722. * src/PeerMessageUtil.cc
  10723. (createBitfieldMessage): Removed.
  10724. (createHaveMessage): Changed return value and arguments.
  10725. (createBitfieldMessage): Changed return value and arguments.
  10726. (createRequestCancelMessage): Removed.
  10727. (createPieceMessage): Changed return value and arguments.
  10728. (getShortIntParam): New function.
  10729. (checkIndex): Changed arguments.
  10730. (checkBegin): Changed arguments.
  10731. (checkLength): Changed arguments.
  10732. (checkPieceOffset): Removed.
  10733. (checkRange): New function.
  10734. (checkBitfield): Changed arguments.
  10735. (createPeerMessage): Removed.
  10736. (checkIntegrity): Removed.
  10737. (createHandshakeMessage): Changed arguments.
  10738. (createChokeMessage): New function.
  10739. (createUnchokeMessage): New function.
  10740. (createInterestedMessage): New function.
  10741. (createNotInterestedMessage): New function.
  10742. (createRequestMessage): New function.
  10743. (createCancelMessage): New function.
  10744. (createPortMessage): New function.
  10745. * src/PeerMessage.h
  10746. (id): Removed.
  10747. (index): Removed.
  10748. (begin): Removed.
  10749. (length): Removed.
  10750. (bitfield): Removed.
  10751. (bitfieldLength): Removed.
  10752. (block): Removed.
  10753. (blockLength): Removed.
  10754. (inProgress): New variable.
  10755. (cuid): New variable.
  10756. (peer): New variable.
  10757. (sendMessageQueue): New variable.
  10758. (logger): New variable.
  10759. (setBitfield): Removed.
  10760. (getBitfield): Removed.
  10761. (setBlock): Removed.
  10762. (getBlock): Removed.
  10763. (getBitfieldLength): Removed.
  10764. (getBlockLength): Removed.
  10765. (isInProgress): New function.
  10766. (toString): Made pure virtual.
  10767. (check): New function.
  10768. (send): New function.
  10769. (receivedAction): New function.
  10770. (getId): Made pure virtual.
  10771. (setId): Removed.
  10772. (getIndex): Removed.
  10773. (setIndex): Removed.
  10774. (getBegin): Removed.
  10775. (setBegin): Removed.
  10776. (getLength): Removed.
  10777. (setLength): Removed.
  10778. (getCuid): New function.
  10779. (setCuid): New function.
  10780. (getPeer): New function.
  10781. (setPeer): New function.
  10782. (getSendMessageQueue): New function.
  10783. (setSendMessageQueue): New function.
  10784. (ID): Removed.
  10785. * src/PeerMessage.cc
  10786. (setBitfield): Removed.
  10787. (setBlock): Removed.
  10788. (toString): Removed.
  10789. * src/TorrentMan.h
  10790. (getPieceLength): New function.
  10791. (getPieceLength): New function.
  10792. * src/SendMessageQueue.h
  10793. (REQUEST_TIME_OUT): New definition.
  10794. (RequestSlots): New definition.
  10795. (MessageQueue): New definition.
  10796. (requestSlotMan): Removed.
  10797. (pendingMessages): Removed.
  10798. (requestSlots): New variable.
  10799. (messageQueue): New variable.
  10800. (torrentMan): New variable.
  10801. (peerConnection): New variable.
  10802. (peer): New variable.
  10803. (piece): New variable.
  10804. (getNewPieceAndSendInterest): New function.
  10805. (createPeerMessage): New function.
  10806. (createHandshakeMessage): New function.
  10807. (send): Made private.
  10808. (setPeerMessageCommonProperty): New function.
  10809. (deleteAllRequestSlot): New function.
  10810. (deleteRequestMessageInQueue): New function.
  10811. (cancelAllRequest): Made private.
  10812. (cancelAllRequest): Made private.
  10813. (countRequestSlot): Made private.
  10814. (addPendingMessage): Removed.
  10815. (deletePendingPieceMessage): Removed.
  10816. (deletePendingRequestMessage): Removed.
  10817. (addMessage): New function.
  10818. (deletePieceMessageInQueue): New function.
  10819. (deleteTimeoutRequestSlot): Changed argument.
  10820. (deleteCompletedRequestSlot): Changed argument.
  10821. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10822. (getCorrespondingRequestSlot): New function.
  10823. (countPendingMessage): Removed.
  10824. (countMessageInQueue): New function.
  10825. (getTorrentMan): New function.
  10826. (getPeerConnection): New function.
  10827. (hasDownloadPiece): New function.
  10828. (getDownloadPiece): New function.
  10829. (setDownloadPiece): New function.
  10830. (syncPiece): New function.
  10831. (sendMessages): New function.
  10832. (sendNow): New function.
  10833. (trySendNow): New function.
  10834. (abortPiece): New function.
  10835. (sendHandshake): New function.
  10836. (receiveMessage): New function.
  10837. (receiveHandshake): New function.
  10838. (createRequestMessage): New function.
  10839. (createCancelMessage): New function.
  10840. (createPieceMessage): New function.
  10841. (createHaveMessage): New function.
  10842. (createChokeMessage): New function.
  10843. (createUnchokeMessage): New function.
  10844. (createInterestedMessage): New function.
  10845. (createNotInterestedMessage): New function.
  10846. (createBitfieldMessage): New function.
  10847. (createKeepAliveMessage): New function.
  10848. * src/SendMessageQueue.cc
  10849. (SendMessageQueue): Removed requestSlotMan.
  10850. Instantiated peerConnection here.
  10851. (~SendMessageQueue): Removed requestSlotMan.
  10852. Added deletion of peerConnection and the contents of messageQueue.
  10853. (send): Updated according to the change of messageQueue.
  10854. (addPendingMessage): Renamed to addMessage.
  10855. (addMessage): New function.
  10856. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10857. (deletePieceMessageInQueue): New function.
  10858. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10859. (deleteRequestMessageInQueue): New function.
  10860. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10861. here.
  10862. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10863. (...) was moved here.
  10864. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10865. moved here.
  10866. (deleteCompletedRequestSlot):
  10867. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10868. (getCorrespondingRequestSlot):
  10869. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10870. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10871. (countPendingMessage): Renamed to countMessageInQueue.
  10872. (countMessageInQueue): New function.
  10873. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10874. (receiveHandshake): New function.
  10875. (createHandshakeMessage): New function.
  10876. (receiveMessage): New function.
  10877. (createPeerMessage): New function.
  10878. (syncPiece): New function.
  10879. (getNewPieceAndSendInterest): New function.
  10880. (sendMessages): New function.
  10881. (sendNow): New function.
  10882. (trySendNow): New function.
  10883. (sendHandshake): New function.
  10884. (abortPiece): New function.
  10885. (getDownloadPiece): New function.
  10886. (getPeerMessageCommonProperty): New function.
  10887. (createRequestMessage): New function.
  10888. (createCancelMessage): New function.
  10889. (createPieceMessage): New function.
  10890. (createHaveMessage): New function.
  10891. (createChokeMessage): New function.
  10892. (createUnchokeMessage): New function.
  10893. (createInterestedMessage): New function.
  10894. (createNotInterestedMessage): New function.
  10895. (createBitfieldMessage): New function.
  10896. (createKeepAliveMessage): New function.
  10897. To add simple Content-Disposition support:
  10898. * src/HttpResponseCommand.h (determinFilename): New function.
  10899. * src/HttpResponseCommand.cc (executeInternal):
  10900. Use determinFilename(headers) instead of req->getFile() when comparing
  10901. filename.
  10902. (determinFilename): New function.
  10903. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10904. req->getFile().
  10905. (handleOtherEncoding): Use determinFilename(headers) instead of
  10906. req->getFile().
  10907. * src/Util.h (getContentDispositionFilename): New function.
  10908. * src/Util.cc (getContentDispositionFilename): New function.
  10909. * src/LogFactory.h (release): New function.
  10910. * src/LogFactory.cc (release): New function.
  10911. To fix a bug that causes out-of-bound exception when HTTP status
  10912. line is wrong:
  10913. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10914. size.
  10915. * src/common.h (Deleter): New class.
  10916. * src/SegmentMan.cc
  10917. (~SegmentMan): Added deletion of splitter and diskWriter.
  10918. * src/DownloadEngine.h
  10919. (Commands): Use deque.
  10920. (clearQueue): New function.
  10921. * src/DownloadEngine.cc
  10922. (~DownloadEngine): Added deletion of segmentMan.
  10923. (cleanQueue): New function.
  10924. * src/TorrentDownloadEngine.h
  10925. (TorrentDownloadEngine): The implementation was moved to
  10926. TorrentDownloadEngine.cc.
  10927. (~TorrentDownloadEngine): The implementation was moved to
  10928. TorrentDownloadEngine.cc.
  10929. * src/TorrentDownloadEngine.cc
  10930. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10931. * src/main.cc
  10932. (clearRequest): Removed.
  10933. (handler): Added deletion of e.
  10934. (torrentHandler): Added deletion of te.
  10935. (main): Do not share splitter.
  10936. Use Deleter instead of clearRequest.
  10937. Deletion of classes were updated.
  10938. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. * src/main.cc (main): Fixed typo.
  10940. * src/message.h: Fixed typo.
  10941. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10942. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10943. To add --select-file command-line option:
  10944. * src/Util.cc
  10945. (unfoldRange): New function.
  10946. (getNum): New function.
  10947. (unfoldSubRange): New function
  10948. * src/main.cc
  10949. (showUsage): Added help message.
  10950. (main): Added --select-file command-line option. Updated the layout of
  10951. file listing.
  10952. * src/common.h
  10953. (Integers): New definition.
  10954. * src/SocketCore.cc
  10955. (writeData): Removed timeout argument.
  10956. (readData): Removed timeout argument.
  10957. (peekData): Removed timeout argument.
  10958. * src/Socket.cc
  10959. (writeData): Removed timeout argument.
  10960. (readData): Removed timeout argument.
  10961. (peekData): Removed timeout argument.
  10962. * Release 0.4.1
  10963. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. To deploy upload rate based choking algorithm:
  10965. * src/PeerInteractionCommand.cc
  10966. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10967. peer currently used.
  10968. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10969. download completes. Simplified.
  10970. (receiveMessage): Updated.
  10971. * src/TorrentMan.h
  10972. (activePeers): New variable.
  10973. (addActivePeer): New function.
  10974. (getActivePeers): New function.
  10975. (deleteActivePeer): New function.
  10976. * src/TorrentMan.cc
  10977. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10978. * src/PeerAbstractCommand.cc
  10979. (onAbort): Use peer->resetStatus().
  10980. * src/main.cc
  10981. (PeerChokeCommand.h): Included.
  10982. (main): Added the instance of ChokingCommand to the command queue.
  10983. * src/Peer.h
  10984. (amChoking): Renamed from amChocking
  10985. (chokingRequired): New variable.
  10986. (optUnchoking): New variable.
  10987. (deltaUpload): New variable.
  10988. (deltaDownload): New variable.
  10989. (addDeltaUpload): New function.
  10990. (resetDeltaUpload): New function.
  10991. (addDeltaDownload): New function.
  10992. (resetDeltaDownload): New function.
  10993. (addPeerUpload): Added a call to addDeltaUpload.
  10994. (addPeerDownload): Added a call to addDeltaDownload.
  10995. * src/Peer.cc
  10996. (shouldBeChoking): Renamed from shouldChoke.
  10997. (resetStatus): New function.
  10998. * src/PeerChokeCommand.h: New class.
  10999. * src/PeerChokeCommand.cc: New class.
  11000. To add lazy upload speed limiter:
  11001. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  11002. statistics calculation to TorrentDownloadEngine.
  11003. * src/TorrentConsoleDownloadEngine.cc
  11004. (sendStatistics): Renamed from printStatistics.
  11005. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  11006. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  11007. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  11008. * src/TorrentDownloadEngine.h: Added the variables for statistics
  11009. calculation.
  11010. (sendStatistics): New function as pure virtual function.
  11011. (getUploadSpeed): New function.
  11012. * src/TorrentDownloadEngine.cc
  11013. (initStatistics): New function.
  11014. (calculateSpeed): New function.
  11015. (calculateStatistics): New function.
  11016. * src/SendMessageQueue.h
  11017. (uploadLength): New variable.
  11018. (send): Added an argument.
  11019. (setUploadLimit): New function.
  11020. (getUploadLimit): New function.
  11021. * src/SendMessageQueue.cc
  11022. (send): Added upload speed limiter.
  11023. * src/prefs.h
  11024. (PREF_UPLOAD_LIMIT): New definition.
  11025. * src/PeerInteractionCommand.cc
  11026. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  11027. * src/main.cc
  11028. (main): Added --upload-limit option
  11029. For bug fixes:
  11030. * src/main.cc
  11031. (showUsage): Corrected --listen-port help
  11032. Other changes:
  11033. * src/TorrentMan.cc
  11034. (getPeer): Return nullPeer if connection is grather than
  11035. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  11036. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11037. To add some useful information to the exception message:
  11038. * src/SocketCore.cc : Updated messages.
  11039. * src/SegmentMan.cc :
  11040. * src/TorrentMan.cc : Updated messages.
  11041. * src/MultiDiskWriter.cc : Updated messages.
  11042. * src/Util.cc : Updated messages.
  11043. * src/AbstractDiskWriter.cc : Updated messages.
  11044. * src/PreAllocationDiskWriter.cc : Updated messages.
  11045. * src/message.cc : Added new messages. Updated some messages.
  11046. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  11047. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  11048. Updated threshold from 30 to 15.
  11049. * src/AbstractDiskWriter.h (filename): New variable.
  11050. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  11051. (createFile): Assigned filename.
  11052. * src/main.cc: Updated the help message for http-auth-scheme.
  11053. * Release 0.4.0
  11054. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11055. To add TrackerUpdateCommand with which replaces
  11056. CompactTrackerResponseProcessor:
  11057. * src/TrackerWatcherCommand.h (req): Removed.
  11058. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  11059. if the number of peer connections are less than 30.
  11060. * src/ByteArrayDiskWriter.h (readData): Implemented.
  11061. * src/SegmentMan.h (diskWriter): New function.
  11062. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  11063. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  11064. (main): Use TrackerUpdateCommand.
  11065. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  11066. (req): New variable.
  11067. (setTrackerResponseProcessor): Removed.
  11068. (getTrackerResponseProcessor): Removed.
  11069. (processTrackerResponse): Removed.
  11070. * src/DownloadEngine.h (diskWriter): Removed.
  11071. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  11072. to torrentMan->processTrackerResponse().
  11073. To add Util::expandBuffer:
  11074. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  11075. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  11076. * src/Util.h (expandBuffer): New function.
  11077. To fix the bug that causes segmentation fault when "-l ." is specified
  11078. in command-line option:
  11079. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  11080. (openFile): New function.
  11081. (closeFile): New function.
  11082. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  11083. (~SimpleLogger): Call closeFile();
  11084. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  11085. * src/main.cc (main): Added a check to see logger is configured
  11086. properly.
  11087. To enable HTTP authentication without specifying "--http-auth-scheme"
  11088. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  11089. * src/HttpConnection.cc (createRequest): Send Authorization header
  11090. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  11091. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  11092. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  11093. * src/Peer.cc (shouldChoke): Updated algorithm.
  11094. * src/message.h (EX_AUTH_FAILED): New definition.
  11095. (EX_FILE_OPEN): New definition.
  11096. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  11097. if status == 401.
  11098. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  11099. if req->isTorrent == true.
  11100. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  11101. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  11102. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  11103. (createFile): Updated message.
  11104. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11105. To add a readout of estimated remaining time to normal HTTP/FTP
  11106. downloads:
  11107. * src/ConsoleDownloadEngine.h (startup): New variable.
  11108. (startupLength): New variable.
  11109. (isStartupLengthSet): New variable.
  11110. (avgSpeed): New variable.
  11111. (eta): New variable.
  11112. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  11113. estimated remaining time.
  11114. (initStatistics): Initialized newly added variables.
  11115. (calculateStatistics): Calculate average speed and estimated remaining
  11116. time.
  11117. To decouple TorrentDownloadEngine from HttpResponseCommand:
  11118. * src/TrackerDownloadCommand.h: Removed.
  11119. * src/TrackerDownloadCommand.cc: Removed.
  11120. * src/TrackerInitCommand.h: Removed.
  11121. * src/TrackerInitCommand.cc: Removed.
  11122. * src/TrackerUpdateCommand.h: Removed.
  11123. * src/TrackerUpdateCommand.cc: Removed.
  11124. * src/TrackerWatcherCommand.cc (execute): The construction of request
  11125. url written in TrackerInitCommand was moved here. Do not create
  11126. tracker request command if torrentMan->trackers != 0.
  11127. * src/CompactTrackerResponseProcessor.h: New class.
  11128. * src/CompactTrackerResponseProcessor.cc: New class.
  11129. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  11130. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  11131. Decoupled TorrentDownloadEngine from this.
  11132. * src/SegmentMan.h (init): New function.
  11133. * src/SegmentMan.cc (init): New function.
  11134. * src/TorrentMan.h (responseProcessor): New variable.
  11135. (trackers): New variable.
  11136. (setTrackerResponseProcessor): New function.
  11137. (getTrackerResponseProcessor): New function.
  11138. (processTrackerResponse): New function.
  11139. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  11140. (processTrackerResponse): New function.
  11141. * src/main.cc (main): Use ByteArrayDiskWriter and
  11142. CompactTrackerResponseProcessor.
  11143. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  11144. processTrackerResponse().
  11145. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  11146. readout.
  11147. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  11148. which indicates download has completed.
  11149. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  11150. (closeFile): fd >= 0, not fd > 0
  11151. * src/main.cc (main): Added short cut for show-files.
  11152. Added short cut for torrent-file.
  11153. Added new command-line option listen-port.
  11154. Updated i18n messages.
  11155. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11156. To add LogFactory which creates singleton logger:
  11157. * src/LogFactory.h: New class.
  11158. * src/LogFactory.cc: New class.
  11159. * src/Command.h (logger): New variable.
  11160. (Constructor): Use LogFactory.
  11161. * src/AbstractCommand.cc: Use Command::logger
  11162. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  11163. Use LogFactory.
  11164. * src/SegmentSplitter.h : Made logger protected.
  11165. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  11166. * src/SegmentMan.cc (Constructor): Use LogFactory.
  11167. * src/DownloadEngine.h : Made logger protected.
  11168. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  11169. * src/PeerInteractionCommand.cc : Use Command::logger.
  11170. * src/HttpResponseCommand.cc : Use Command::logger.
  11171. * src/SegmentMan.h : Made logger private.
  11172. * src/TorrentMan.h : Made logger private.
  11173. * src/TorrentMan.cc : Use LogFactory.
  11174. * src/FtpNegotiateCommand.cc : Use Command::logger.
  11175. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  11176. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  11177. Use LogFactory.
  11178. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  11179. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  11180. Use LogFactory.
  11181. * src/DownloadCommand.cc : Use Command::logger.
  11182. * src/PeerAbstractCommand.cc : Use Command::logger.
  11183. * src/PeerListenCommand.cc : Use Command::logger.
  11184. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  11185. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  11186. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  11187. * src/TrackerWatcherCommand.cc : Use Command::logger.
  11188. * src/TrackerUpdateCommand.cc : Use Command::logger.
  11189. * src/TrackerDownloadCommand.cc : Use Command::logger.
  11190. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  11191. Use LogFactory.
  11192. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  11193. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  11194. Use LogFactory.
  11195. * src/main.cc (main): Use LogFactory.
  11196. * src/DiskAdaptor.h (logger): New variable.
  11197. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  11198. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  11199. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11200. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  11201. parameter to a tracker request.
  11202. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  11203. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  11204. * src/main.cc (setSignalHander): New function.
  11205. (main): Added a handler for SIGTERM.
  11206. (handler): Updated message.
  11207. (torrentHandler): Updated message.
  11208. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11209. * src/TorrentConsoleDownloadEngine.cc
  11210. (onPartialDownloadingCompletes): Renamed as
  11211. onSelectiveDownloadingCompletes.
  11212. (onSelectiveDownloadingCompletes): Updated message.
  11213. To add DiskAdaptor which abstract DiskWriter family:
  11214. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  11215. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  11216. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  11217. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  11218. MultiDiskAdaptor.h.
  11219. (readFileEntry): Changed its arguments.
  11220. (setup): setupDiskWriter is merged into this function.
  11221. (setupDiskWriter): Removed.
  11222. (setFileFilter): New function.
  11223. (readFileEntryFromMetaInfoFile): Updated according to the changes
  11224. made in readFileEntry.
  11225. (getFilePath): Removed.
  11226. (getTempFilePath): Removed.
  11227. (getSegmentFilePath): Updated due to the removal of getFilePath.
  11228. (fixFilename): Removed.
  11229. (copySingleFile): Removed.
  11230. (splitMultiFile): Removed.
  11231. (deleteTempFile): Removed.
  11232. (setFileEntriesToDownload): Removed.
  11233. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  11234. (isSelectiveDownloadingMode): New function.
  11235. (setAllMultiFileRequestedState): Removed.
  11236. (finishPartialDownloadingMode): Renamed as
  11237. finishSelectiveDownloadingMode.
  11238. (finishSelectiveDownloadingMode): New function.
  11239. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  11240. (getSelectedTotalLength): New function.
  11241. (onDownloadComplete): Use diskAdaptor.
  11242. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  11243. (Range): Removed.
  11244. (setMultiFileEntries): Renamed as setFileEntries.
  11245. (setFileEntries): New function.
  11246. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  11247. (pieceLength): New variable.
  11248. * src/main.cc (printDownloadCompeleteMessage): New function.
  11249. (torrentHandler): Use diskAdaptor instead of diskWriter.
  11250. (main): Renamed torrent-show-files to show-files.
  11251. Rewritten file contents listing.
  11252. * src/TorrentMan.h (FileEntry): Removed.
  11253. (multiFileTopDir): Removed.
  11254. (multiFileEntries): Removed.
  11255. (diskWriter): Removed.
  11256. (diskAdaptor): New variable.
  11257. * src/DefaultDiskWriter.h (totalLength): New variable.
  11258. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  11259. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  11260. diskWriter.
  11261. * src/TorrentConsoleDownloadEngine.h
  11262. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  11263. (partialTotalLength): Renamed as selectedTotalLength.
  11264. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  11265. openExistingFile, otherwise call initAndOpenFile.
  11266. (closeFile): fd > 0, not fd != 0.
  11267. * src/DirectDiskAdaptor.h: New class.
  11268. * src/DirectDiskAdaptor.cc: New class.
  11269. * src/MultiDiskAdaptor.h: New class.
  11270. * src/MultiDiskAdaptor.cc: New class.
  11271. * src/CopyDiskAdaptor.h: New class.
  11272. * src/CopyDiskAdaptor.cc: New class.
  11273. * src/DiskAdaptor.h: New class.
  11274. * src/DiskAdaptor.cc: New class.
  11275. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  11276. (PREF_SHOW_FILES): New definition.
  11277. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11278. To add the ability to download multi torrent into respective files
  11279. directly:
  11280. * src/DiskWriter.h (openFile): New function.
  11281. (seek): Removed.
  11282. * src/MultiDiskWriter.h: New class.
  11283. * src/MultiDiskWriter.cc: New class.
  11284. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  11285. protected.
  11286. (openFile): New function.
  11287. * src/AbstractDiskWriter.cc (openFile): New function.
  11288. * src/prefs.h (V_FALSE): New definition.
  11289. (PREF_DIRECT_FILE_MAPPING): New definition.
  11290. * src/TorrentMan.h (setupDiskWriter): New function.
  11291. (setAllMultiFileRequestedState): New function.
  11292. (onDownloadComplete): New function.
  11293. * src/TorrentMan.cc : Included MultiDiskWriter.h
  11294. (setupDiskWriter): New function.
  11295. (getFilePath): Updated.
  11296. (getTempFilePath): Updated.
  11297. (getSegmentFilePath): Updated.
  11298. (fixFilename): Updated.
  11299. (deleteTempFile): Updated.
  11300. (setAllMultiFileRequestedState): New function.
  11301. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  11302. (finishPartialDownloadingMode): Reset requested flags.
  11303. (onDownloadComplete): New function.
  11304. * src/main.cc: Added --direct-file-mapping option.
  11305. Use TorrentMan::setupDiskWriter().
  11306. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  11307. onDownloadComplete().
  11308. To fix ETA bug:
  11309. * src/Util.h (difftvsec): New function.
  11310. * src/Util.cc (difftvsec): New function.
  11311. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  11312. type of "elapsed" instead of long long int.
  11313. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  11314. The updates of statistics takes place every 1 seconds.
  11315. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  11316. (calculateSpeed): Changed its argument signature.
  11317. * src/PeerMessage.cc (toString): Fixed message.
  11318. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11319. To print ETA:
  11320. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  11321. completion handling when dealing with
  11322. TorrentMan::isPartialDownloadingMode() == true.
  11323. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  11324. New function.
  11325. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  11326. (sessionDownloadLength): New variable.
  11327. (avgSpeed): New variable.
  11328. (eta): New variable.
  11329. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  11330. new variables: eta, avgSpeed, startup.
  11331. (calculateSpeed): Calculate average speed and ETA.
  11332. (printStatistics): Added ETA.
  11333. * src/Util.h (secfmt): New function.
  11334. * src/Util.cc (secfmt): New function.
  11335. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11336. To detect "keep alive" flooding:
  11337. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  11338. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  11339. variable: keepAliveCount.
  11340. (detectMessageFlooding): Added "keep alive" flooding detection.
  11341. (receiveMessage): Increase keepAliveCount when "keep alive" message
  11342. received.
  11343. To add the ability to download only specified files in multi-file
  11344. torrent:
  11345. * src/BitfieldMan.h (filterBitfield): New variable.
  11346. (filterEnabled): New variable.
  11347. (setFilterBit): New function.
  11348. (enableFilter): New function.
  11349. (disableFilter): New function.
  11350. (isFilterEnabled): New function.
  11351. (getFilteredTotalLength): New function.
  11352. (getCompletedLength): New function.
  11353. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  11354. filterBitfield, filterEnabled.
  11355. (CopyConstructor): Added filterBitfield and filterEnabled.
  11356. (operator==): Added filterBitfield and filterEnabled.
  11357. (Destructor): Added filterBitfield.
  11358. (getMissingIndex): Use filterBitfield.
  11359. (getMissingUnusedIndex): Use filterBitfield.
  11360. (getFirstMissingUnusedIndex): Use filterBitfield.
  11361. (getFirstMissingUnusedIndex): Use filterBitfield.
  11362. (getAllMissingIndexes): Use filterBitfield.
  11363. (countMissingBlock): Use filterBitfield.
  11364. (countBlock): Use filterBitfield.
  11365. (setBitInternal): Added new argument on.
  11366. (setUseBit): Use setBitInternal.
  11367. (unsetUseBit): Use setBitInternal.
  11368. (setBit): Use setBitInternal.
  11369. (unsetBit): Use setBitInternal.
  11370. (isAllBitSet): Use filterBitfield.
  11371. (setFilterBit): New function.
  11372. (addFilter): New function.
  11373. (enableFilter): New function.
  11374. (disableFilter): New function.
  11375. (clearFilter): New function.
  11376. (isFilterEnabled): New function.
  11377. (getFilteredTotalLength): New function.
  11378. (getCompletedLength): New function.
  11379. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  11380. Initalized newly added variables.
  11381. [FileEntry](offset): New variable.
  11382. [FileEntry](extracted): New variable.
  11383. [FileEntry](requested): New variable.
  11384. (readFileEntry): New function.
  11385. (option): New variable.
  11386. (splitMultiFile): Removed const qualifier.
  11387. (fixFilename): Removed const qualifier.
  11388. (readFileEntryFromMetaInfoFile): New function.
  11389. (finishPartialDownloadingMode): New function.
  11390. (isPartialDownloadingMode): New function.
  11391. (setFileEntriesToDownload): New function.
  11392. (getCompletedLength): New function.
  11393. (getPartialTotalLength): New function.
  11394. * src/TorrentMan.cc (readFileEntry): New function.
  11395. (setup): Use readFileEntry. If no-preallocation option is specified,
  11396. use DefaultDiskWriter.
  11397. (readFileEntryFromMetaInfoFile): New function.
  11398. (fixFilename): Removed const qualifier.
  11399. (splitMultiFile): Removed const qualifier.
  11400. (setFileEntriesToDownload): New function.
  11401. (isPartialDownloadingMode): New function.
  11402. (finishPartialDownloadingMode): New function.
  11403. (getCompletedLength): New function.
  11404. (getPartialTotalLength): New function.
  11405. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11406. New variable.
  11407. (partialTotalLength): New variable.
  11408. (downloadLength): New variable.
  11409. (totalLength): New variable.
  11410. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11411. Added log.
  11412. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11413. partialTotalLength, downloadLength, totalLength.
  11414. (calculate): Calculate downloadLength and totalLength.
  11415. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11416. * src/main.cc (addCommand): Changed argument signature.
  11417. (main): Added new variable: args. Added new option "torrent-show-files"
  11418. "no-preallocation". Usage is not updated yet.
  11419. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11420. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11421. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11422. Attempt to add the ability to listing file entries in a .torrent file.
  11423. This feature is not yet complete.
  11424. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11425. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11426. (getName): New function.
  11427. * src/TorrentMan.h (getMultiFileEntries): New function.
  11428. (getName): New function.
  11429. * src/main.cc (main): Use above 2 funtion.
  11430. * Release 0.3.2
  11431. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11433. (detectMessageFlooding): Updated threshold value.
  11434. (checkLongTimePeerChoking): Updated timeout value.
  11435. (getNewPieceAndSendInterest): Added debug log.
  11436. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11437. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11438. (getPeer): Updated.
  11439. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11440. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11441. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11442. is localhost.
  11443. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11444. * src/PendingMessage.cc (processMessage): Not to send piece message
  11445. if peer is not interested in the pieces localhost has.
  11446. * src/Peer.cc (shouldChoke): Updated.
  11447. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11448. * src/Util.cc (isPowerOf): New function.
  11449. * src/Util.h (isPowerOf): New function.
  11450. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11451. whether or not it is power of 2.
  11452. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11453. Added new class SendMessageQueue that includes PendingMessages and
  11454. RequestSlotMan.
  11455. * src/SendMessageQueue.h: New class.
  11456. * src/SendMessageQueue.cc: New class.
  11457. * src/PendingMessage.h: Added new member variable blockIndex and its
  11458. accessors.
  11459. (createRequestMessage): Updated.
  11460. * src/PendingMessage.cc (createRequestMessage): Updated.
  11461. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11462. SendMessageQueue.
  11463. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11464. (receiveMessage): Updated with SendMessageQueue.
  11465. (deletePendingPieceMessage): Removed.
  11466. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11467. (sendInterest): Updated with SendMessageQueue.
  11468. (createRequestPendingMessage): Updated with SendMessageQueue.
  11469. (sendMessages): Updated with SendMessageQueue.
  11470. (onAbort): Updated with SendMessageQueue.
  11471. (keepAlive): Updated with SendMessageQueue.
  11472. (beforeSocketCheck): Updated SendMessageQueue.
  11473. * src/PeerInteractionCommand (sendMessages): Shuffle
  11474. missingBLockIndexes before using it.
  11475. Added its own timeout for peer connection.
  11476. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11477. setter.
  11478. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11479. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11480. Added setTimeout() call.
  11481. (executeInternal): Added setTimeout() call.
  11482. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11483. Added timeout.
  11484. (isTimeoutDetected): Updated.
  11485. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  11486. option.
  11487. Added *simple* message flooding checker.
  11488. * src/PeerInteractionCommand.cc (executeInternal):
  11489. Added detectMessageFlooding() call.
  11490. (detectMessageFlooding): New function.
  11491. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  11492. (beforeSocketCheck): Added detectMessageFlooding() call.
  11493. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  11494. chokeUnchokeCount, haveCount, detectMessageFlooding().
  11495. Removed deletePendingPieceMessage(), getRequestSlot(),
  11496. deleteRequestSlot(), deleteAllRequestSlot().
  11497. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  11498. Added checkLongTimePeerChoking() call.
  11499. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  11500. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  11501. if duplicate == false.
  11502. The parameter "uploaded" and "downloaded" in the tracker request are
  11503. the size since the client sent the "started" event to the tracker.
  11504. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  11505. uploaded size to preDownloadedSize, preUploadedSize respectively.
  11506. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  11507. getSessionDownloadedSize(), getSessionUploadedSize().
  11508. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  11509. getSessionUploadedSize() instead of getDownloadedSize(),
  11510. getUploadedSize().
  11511. * src/PendingMessage.cc (processMessage): Do not send request message
  11512. if the peer is choking the client.
  11513. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  11514. less than interval.
  11515. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11516. * configure.in: Added gnutls support. Added several CPP macros.
  11517. * m4/openssl.m4: Added.
  11518. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  11519. readData(), peekData(). Added gnutls support.
  11520. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  11521. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  11522. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  11523. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  11524. Instead, added a check for whether setup method has executed
  11525. successfully.
  11526. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  11527. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  11528. * src/Makefile.am: Updated.
  11529. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  11530. using whether OpenSSL or gcrypt, depending on the result of configure
  11531. script.
  11532. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  11533. messageDigest.h.
  11534. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  11535. * src/PeerListenCommand.cc: Added log about port binded successfully.
  11536. Fixed memory leak.
  11537. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  11538. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  11539. Removed instantiation of TrackerInitCommand. Instead,
  11540. TrackerWatcherCommand is instantiated and pushed to the command queue.
  11541. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  11542. ENABLE_SSL.
  11543. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  11544. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  11545. If a piece is already acquired by another command, delete the request
  11546. slots for the piece.
  11547. * src/TrackerUpdateCommand.cc (execute):
  11548. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  11549. Added a check whether peer list is null.
  11550. Fixed the bug that causes sending completed event to the tracker
  11551. several times.
  11552. * src/TrackerInitCommand.cc (execute):
  11553. Fixed the bug that causes sending completed event to the tracker
  11554. several times.
  11555. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  11556. by using messageDigest.h.
  11557. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11558. * PeerConnection.cc: Replaced log message "keep-alive" with
  11559. "keep alive".
  11560. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  11561. localhost long time.
  11562. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  11563. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  11564. at most 100 failure entry from the list. If with duplicate = false,
  11565. MAX_PEER_LIST is not checked.
  11566. * PeerListenCommand.cc: Fixed the argument order of log message.
  11567. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11568. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  11569. Added warn().
  11570. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  11571. Implemented warn().
  11572. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  11573. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11574. * Request.h: Added AFTER_COMPLETED event.
  11575. * TorrentDownloadEngine.cc: Prints "Download complete" message
  11576. instead of downloaded size and progress(%) after download completes.
  11577. * PeerInteractionCommand.cc: After download completes, sends unchoke
  11578. message to the peer if it is interested in what localhost has
  11579. downloaded.
  11580. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  11581. destination instead of just renaming it.
  11582. * TorrentMan.cc: Added deleteTempFile().
  11583. * PeerAbstractCommand.cc: do not stop execution after download
  11584. completes. This makes localhost a seeder.
  11585. * Util.{h,cc}: Added fileCopy().
  11586. * PeerListenCommand.cc: do not stop execution after download completes.
  11587. This makes localhost a seeder.
  11588. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  11589. Added TorrentMan::deleteTempFile() to torrentHandler.
  11590. Initialized the variable dir as ".".
  11591. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  11592. Deleted renameSingleFile().
  11593. Added copySingleFile(), deleteTempFile().
  11594. * DownloadEngine.h: Added virtual function afterEachIteration().
  11595. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  11596. in onEndOfRun() to afterEachIteration().
  11597. In onEndOfRun(), changed if condition to check whether filenameFixed is
  11598. true.
  11599. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  11600. In rangedFileCopy(), added try-catch block to properly close file
  11601. descriptors.
  11602. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  11603. Added afterEachIteration(), isFilenameFixed().
  11604. * Peer.cc: Changed choking strategy.
  11605. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  11606. * TrackerInitCommand.cc: Send completed event only once.
  11607. * DownloadEngine.cc: Added a call to afterEachIteration().
  11608. * TrackerUpdateCommand.cc: Do not stop execution after download
  11609. completes.
  11610. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  11611. connect the peers at most MAX_PEER_UPDATE when a peer list is
  11612. received from a tracker.
  11613. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  11614. Decreased the number of failure peers to delete to 0(just comment out
  11615. the line).
  11616. * Release 0.3.1
  11617. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11618. * PeerInteractionCommand.cc: added a call to
  11619. TorrentMan::unadvertisePiece in Destructor.
  11620. * PeerInteractionCommand.cc: make have message sent immediately
  11621. if the size of pending message queue is zero.
  11622. * TorrentMan.cc: set the maximum size of peer list to 250.
  11623. * TorrentMan.h: changed the container type of Peers and UsedPieces
  11624. to deque.
  11625. * Util.cc: fixed rangedFileCopy.
  11626. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  11627. to Constructor. Also, moved digest cleanup to Destructor.
  11628. * MetaFileUtil.cc: fixed memory leak
  11629. * replaced std::vector with std::deque.
  11630. * AbstractCommand.cc: casted timeout value to long long int.
  11631. * ChunkedEncoding.cc: fixed memory leak.
  11632. * PeerInteractionCommand.cc: casted timeout value to long long int.
  11633. * SleepCommand.cc: casted timeout value to long long int.
  11634. * Data.cc: fixed memory leak.
  11635. * Data.cc: fixed toLLInt().
  11636. * BitfieldMan.cc: fixed memory leak.
  11637. * TorrentMan.cc: initialized storeDir to ".".
  11638. * TorrentMan.cc: fixed memory leak.
  11639. * TorrentMan.cc: corrected file paths of splitted files.
  11640. * PeerAbstractCommand.cc: casted timeout to long long int.
  11641. * main.cc: added delete(req) and delete(te->diskWriter).
  11642. * RequestSlot.cc: casted timeout value to long long int.
  11643. * Request.cc: fixed memory leak.
  11644. * PendingMessage.cc: make HAVE messages sent only when peer does not
  11645. have the piece.
  11646. * Peer.{h,cc}: added hasPiece(int index).
  11647. * main.cc: corrected addCommand.
  11648. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. * BitTorrent protocol support added.
  11650. * Release 0.3.0
  11651. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11652. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  11653. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11654. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  11655. decoding did not work properly.
  11656. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. * DownloadEngine.h: included sys/time.h
  11658. * DownloadEngine.cc: remove sys/time.h
  11659. * Makefile.am (SUBDIRS): Add intl.
  11660. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  11661. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. * main.cc: correct help message for --http-auth-scheme.
  11663. * main.cc: changed e-mail address for bug reports.
  11664. * ja.po: added japanese translation.
  11665. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11666. * SimpleLogger.cc: flush log file instead of stdout.
  11667. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11668. * main.cc: Fixed command-line option: max-tries
  11669. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  11670. does not equal to seg.sp.
  11671. * DownloadCommand.cc: If EOF is got from the server and the total size
  11672. of file is not zero, then throw DlRetryEx.
  11673. * main.cc: Set the minium value of min-segment-size to 1024.
  11674. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11675. fails because of a regression since 0.2.0 release.
  11676. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11677. * HttpConnection.cc:
  11678. * common.h: defined the user agent name as macro
  11679. * DownloadEngine.{h, cc}:
  11680. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11681. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11682. * main.cc: Download complete/abort message is now generated by main.
  11683. * Makefile.am (SUBDIRS): Add m4.
  11684. (ACLOCAL_AMFLAGS): New variable.
  11685. (EXTRA_DIST): New variable.
  11686. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11687. * gettext: added gettext functionality
  11688. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11689. * AbstractCommand.cc:
  11690. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11691. unregister its cuid from SegmentMan.
  11692. * DownloadEngine.cc: .aria2 file was written when a downloading
  11693. failed with errors.
  11694. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11695. Added "User-Agent" header to CONNECT proxy request.
  11696. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11697. properly.
  11698. * Logger.h:
  11699. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11700. * ChunkedEncoding.cc: Added #include directive for strings.h
  11701. * Release 0.2.1
  11702. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11703. * Util.{h,cc}: added startsWith().
  11704. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11705. Util::endsWith().
  11706. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11707. * common.h: added #include directive of limit.h.
  11708. * DownloadEngine.cc: added #include directive of sys/time.h and
  11709. algorithm.
  11710. * Exception.h: added #include directive of stdio.h.
  11711. * AbstractCommand.h: added #include directive of sys/time.h.
  11712. * DownloadCommand.h: added #include directive of sys/time.h.
  11713. * *.h: added #include directive of common.h to all base classes.
  11714. subclasses' one was removed.
  11715. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11716. does not define these macros.
  11717. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11718. * Release 0.2.0
  11719. * main.cc:
  11720. * HttpInitiateConnectionCommand.{h,cc}:
  11721. * prefs.h:
  11722. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11723. We can now use GET command in http proxy.
  11724. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11725. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11726. that splits slowest segment of SegmentMan::commands vector.
  11727. This is the default split algorithm of aria2.
  11728. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11729. that splits first segment of SegmentMan::commands vector.
  11730. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11731. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11732. * Segment.h:
  11733. * SegmentMan.cc: Added speed field to Segment.h
  11734. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11735. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11736. * message.h: Change file size related %d to %lld.
  11737. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11738. * FtpInitiateConnectionCommand.{h,cc}:
  11739. * FtpNegotiationCommand.{h,cc}:
  11740. * FtpDownloadCommand.{h,cc}:
  11741. * FtpConnection.{h,cc}: Added FTP support
  11742. * SimpleLogger.cc: Log message now includes time information.
  11743. * main.cc: The value of --http-auth-scheme option is chagned from
  11744. 'BASIC' to 'basic'
  11745. * main.cc: Added --timeout command-line option.
  11746. * main.cc: Added --min-segment-size command-line option.
  11747. * main.cc: Added --max-retries command-line option.
  11748. * prefs.h: option string constants are now defined in prefs.h
  11749. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11750. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11751. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11752. with version 0.1.0's one.
  11753. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11754. * configure.in: Added --enable-ssl option to configure script.
  11755. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11756. cannot permit absoluteURI as Request-URI.
  11757. * HttpConnection.cc: Added Referer support.
  11758. * main.cc: Added referer command-line option.
  11759. * main.cc: Added rety-wait command-line option.
  11760. * Exception.h: Fixed formating bug in Exception::setMsg()
  11761. * SocketCore.{h,cc}:
  11762. * Socket.{h, cc}:
  11763. * Request.cc:
  11764. * InitiateConnectionCommandFactory.cc:
  11765. * HttpRequestCommand.cc: Added HTTPS support.
  11766. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11767. for SocketCore.
  11768. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11769. size is wrong
  11770. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11771. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11772. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11773. * Release 0.1.0