ChangeLog 424 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118
  1. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4. * src/AbstractDiskWriter.cc
  5. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6. Don't set Request::supportsPersistentConnection() in HttpConnection
  7. since this code is also used in AbstractProxyResponseCommand.
  8. Moved those code to HttpResponse.
  9. * src/HttpResponse.cc
  10. * src/HttpResponse.h
  11. * src/HttpConnection.cc
  12. * src/HttpConnection.h
  13. * src/HttpResponseCommand.cc
  14. * test/HttpResponseTest.cc
  15. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  17. The configuration is minimum: no torrent, no metalink, so there may be
  18. other compile error on their code.
  19. * src/a2netcompat.h
  20. * src/File.cc
  21. * src/File.h
  22. * src/SocketCore.cc
  23. * src/SocketCore.h
  24. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  25. Made a socket of incoming peer non-blocking.
  26. * src/PeerListenCommand.cc
  27. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  28. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  29. whole message data is not sent in one send() call.
  30. * src/BtPieceMessage.cc
  31. * src/BtPieceMessage.h
  32. * src/PeerConnection.cc
  33. * src/PeerConnection.h
  34. * src/SimpleBtMessage.cc
  35. * src/SimpleBtMessage.h
  36. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  37. Fixed the bug that aria2 downloads faster than max-download-limit when
  38. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  39. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  40. , instead of sum of them.
  41. * src/ActivePeerConnectionCommand.cc
  42. * src/DefaultBtInteractive.cc
  43. * src/DownloadCommand.cc
  44. * src/PeerInteractionCommand.cc
  45. * src/PeerReceiveHandshakeCommand.cc
  46. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  47. Fixed the bug that HTTPS download fails.
  48. * src/AbstractCommand.cc
  49. * src/AbstractCommand.h
  50. * src/DownloadCommand.cc
  51. * src/FtpConnection.cc
  52. * src/HttpConnection.cc
  53. * src/HttpRequestCommand.cc
  54. * src/HttpResponseCommand.cc
  55. * src/HttpSkipResponseCommand.cc
  56. * src/MSEHandshake.cc
  57. * src/PeerConnection.cc
  58. * src/SocketCore.cc
  59. * src/SocketCore.h
  60. Fixed the bug that aria2 doesn't download whole content body and cannot
  61. reuse connection if chunked transfer encoding and gzip content encoding
  62. are set.
  63. * src/DownloadCommand.cc
  64. * src/HttpSkipResponseCommand.cc
  65. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  66. Updated man page.
  67. * doc/aria2c.1.txt
  68. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  69. When error occurred while aria2 was parsing an .aria2.conf file, print
  70. the usage of the option that caused error.
  71. * src/option_processing.cc
  72. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  73. Fixed compile error on OptionHandlerException
  74. * src/Makefile.am
  75. * src/OptionHandlerException.cc
  76. * src/OptionHandlerException.h
  77. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  78. Moved message of the error to OptionHandlerException.h
  79. * src/NameMatchOptionHandler.h
  80. * src/OptionHandlerException.h
  81. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  82. When error occurs while aria2 is parsing an command-line option, print
  83. the usage of the option.
  84. * src/Makefile.am
  85. * src/NameMatchOptionHandler.h
  86. * src/OptionHandlerException.h
  87. * src/option_processing.cc
  88. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  89. Reverted previous change.
  90. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  91. username is not in URI.
  92. * src/HttpRequest.cc
  93. * src/Request.cc
  94. * test/HttpRequestTest.cc
  95. * test/RequestTest.cc
  96. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  97. Now colon is required for username and password in FTP URL, like:
  98. ftp://username:password@host.
  99. If colon is not there, aria2 don't parse it as a username. For example,
  100. aria2 don't retrieve username from ftp://username@host.
  101. This fix was made in order to login FTP server via non-transparent ftp
  102. proxy.
  103. * src/Request.cc
  104. * test/RequestTest.cc
  105. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  106. Use netrc for HTTP.
  107. Now FTP user/password is sent in Authorization header when
  108. --ftp-via-http-proxy=get is given.
  109. * src/AuthConfigFactory.cc
  110. * src/HttpRequest.cc
  111. * src/HttpRequest.h
  112. * src/NetrcAuthResolver.cc
  113. * src/NetrcAuthResolver.h
  114. * src/OptionHandlerFactory.cc
  115. * src/option_processing.cc
  116. * src/prefs.cc
  117. * src/prefs.h
  118. * test/AuthConfigFactoryTest.cc
  119. * test/HttpRequestTest.cc
  120. * test/NetrcAuthResolverTest.cc
  121. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  122. Issue PWD command first and get working directory and use it as a prefix
  123. for CWD command.
  124. * src/DownloadEngine.cc
  125. * src/DownloadEngine.h
  126. * src/FtpConnection.cc
  127. * src/FtpConnection.h
  128. * src/FtpFinishDownloadCommand.cc
  129. * src/FtpInitiateConnectionCommand.cc
  130. * src/FtpNegotiationCommand.cc
  131. * src/FtpNegotiationCommand.h
  132. * test/FtpConnectionTest.cc
  133. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  134. Removed default user/pass for FTP user/pass, since it should not have
  135. precedence over netrc configuration by default.
  136. * src/OptionHandlerFactory.cc
  137. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  138. Added debug log for socket event.
  139. * src/AbstractCommand.cc
  140. * src/PeerAbstractCommand.cc
  141. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  142. Log microseconds.
  143. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  144. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  145. Replaced HelpItem.cc with OptionHandler.cc.
  146. * po/POTFILES.in
  147. Updated po files with 'make update-po'
  148. * po/aria2c.pot
  149. * po/*.po
  150. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  151. Removed possible values from the text.
  152. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  153. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  154. Removed unused preferences:
  155. PREF_NO_PREALLOCATION
  156. PREF_STDOUT_LOG
  157. PREF_TRACKER_MAX_TRIES
  158. PREF_DIRECT_DOWNLOAD_TIMEOUT
  159. PREF_MIN_SEGMENT_SIZE
  160. * src/option_processing.cc
  161. * src/prefs.cc
  162. * src/prefs.h
  163. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  164. Integrated HelpItem into OptionParser to ease the workload for adding
  165. new options. Removed default value from usage text.
  166. * src/HelpItem.cc: Removed.
  167. * src/HelpItem.h: Removed.
  168. * src/HelpItemFactory.cc: Removed.
  169. * src/HelpItemFactory.h: Removed.
  170. * src/Makefile.am
  171. * src/Makefile.in
  172. * src/NameMatchOptionHandler.h
  173. * src/OptionHandler.cc
  174. * src/OptionHandler.h
  175. * src/OptionHandlerFactory.cc
  176. * src/OptionHandlerImpl.h
  177. * src/OptionParser.cc
  178. * src/OptionParser.h
  179. * src/TagContainer.cc: Removed.
  180. * src/TagContainer.h: Removed.
  181. * src/TaggedItem.cc: Removed.
  182. * src/TaggedItem.h: Removed.
  183. * src/main.cc
  184. * src/option_processing.cc
  185. * src/usage_text.h
  186. * src/version_usage.cc
  187. * test/HelpItemTest.cc: Removed.
  188. * test/Makefile.am
  189. * test/Makefile.in
  190. * test/OptionHandlerTest.cc
  191. * test/OptionParserTest.cc
  192. * test/TagContainerTest.cc: Removed.
  193. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  194. Moved `TransferStat stat = ...' to inside the `if' clause.
  195. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  196. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  197. Fixed the bug that a block in a piece is requested when same block is
  198. already requested to the same peer in end game mode.
  199. * src/BtRequestFactory.h
  200. * src/DefaultBtInteractive.cc
  201. * src/DefaultBtRequestFactory.cc
  202. * src/DefaultBtRequestFactory.h
  203. * src/DefaultPieceStorage.cc
  204. * src/DefaultPieceStorage.h
  205. * src/PieceStorage.h
  206. * src/UnknownLengthPieceStorage.cc
  207. * src/UnknownLengthPieceStorage.h
  208. * test/DefaultBtRequestFactoryTest.cc
  209. * test/DefaultPieceStorageTest.cc
  210. * test/MockBtRequestFactory.h
  211. * test/MockPieceStorage.h
  212. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  213. Removed _uploadLength and _downloadLength from PeerSessionResource
  214. and use PeerStat::_sessionUploadLength and
  215. PeerStat::_sessionDownloadLength.
  216. * src/PeerSessionResource.cc
  217. * src/PeerSessionResource.h
  218. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  219. Fixed the bug that prefixLength of split bucket which doesn't include
  220. local node ID is incremented.
  221. * src/DHTBucket.cc
  222. * src/DHTBucket.h
  223. * test/DHTBucketTest.cc
  224. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  225. Added cookies.sqlite to EXTRA_DIST
  226. * test/Makefile.am
  227. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  228. Added Turkish translation. Updated French, German, Russian and
  229. Simplified Chinese translations. Thanks to all translators.
  230. * po/LINGUAS
  231. * po/de.po
  232. * po/fr.po
  233. * po/ru.po
  234. * po/tr.po
  235. * po/zh_CN.po
  236. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  237. Added deliminating text to the beginning of the log so that one can find
  238. where the log starts easily.
  239. * src/main.cc
  240. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  241. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  242. to fix compile error when async DNS is not enabled by configuration.
  243. * src/AbstractCommand.cc
  244. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  245. If establishing conneciton to a server is failed, then mark error on
  246. its ServerStat.
  247. Added the cause of error to log when error event occurred.
  248. Moved message string to message.h for translation.
  249. * src/AbstractCommand.cc
  250. * src/AbstractCommand.h
  251. * src/FtpNegotiationCommand.cc
  252. * src/HttpRequestCommand.cc
  253. * src/PeerAbstractCommand.cc
  254. * src/message.h
  255. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  256. Added the function to get error message from socket.
  257. * src/SocketCore.cc
  258. * src/SocketCore.h
  259. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  260. Added convenient method RequestGroupMan::getOrCreateServerStat()
  261. * src/RequestGroupMan.cc
  262. * src/RequestGroupMan.h
  263. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  264. If error event is received in epoll, then abort download immediately.
  265. * src/AbstractCommand.cc
  266. * src/Command.cc
  267. * src/Command.h
  268. * src/DownloadEngine.cc
  269. * src/PeerAbstractCommand.cc
  270. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  271. Added usage message for --uri-selector, --server-stat-of,
  272. --server-stat-in, --server-stat-timeout options.
  273. * src/HelpItemFactory.cc
  274. * src/usage_text.h
  275. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  276. Added upper limit of FTP response buffer. The current implementation
  277. uses 4096bytes as a limit.
  278. * src/FtpConnection.cc
  279. * src/FtpConnection.h
  280. * test/FtpConnectionTest.cc
  281. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  282. Use non-blocking socket for TCP communication to avoid possible
  283. blocking due to buffer full.
  284. * src/AbstractProxyRequestCommand.cc
  285. * src/FtpConnection.cc
  286. * src/FtpConnection.h
  287. * src/FtpNegotiationCommand.cc
  288. * src/FtpNegotiationCommand.h
  289. * src/HttpConnection.cc
  290. * src/HttpConnection.h
  291. * src/HttpRequestCommand.cc
  292. * src/InitiatorMSEHandshakeCommand.cc
  293. * src/InitiatorMSEHandshakeCommand.h
  294. * src/MSEHandshake.cc
  295. * src/MSEHandshake.h
  296. * src/Makefile.am
  297. * src/PeerConnection.cc
  298. * src/PeerConnection.h
  299. * src/PeerInteractionCommand.cc
  300. * src/PeerListenCommand.cc
  301. * src/ReceiverMSEHandshakeCommand.cc
  302. * src/ReceiverMSEHandshakeCommand.h
  303. * src/SocketBuffer.cc
  304. * src/SocketBuffer.h
  305. * src/SocketCore.cc
  306. * src/SocketCore.h
  307. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  308. Call setStatusRealtime() in constructor.
  309. * src/RealtimeCommand.cc
  310. * src/RealtimeCommand.h
  311. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  312. Call Download::setNoWait(true) to execute newly created command without
  313. a pause.
  314. * src/AbstractCommand.cc
  315. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  316. Added --max-file-not-found=NUM option. If aria2 receives `file not
  317. found' error from HTTP/FTP server NUM times without getting single
  318. bytes of data, then force the download to fail.
  319. Basically aria2 tris all URIs available. So if long list of URIs are
  320. specified in Metalink, then aria2 will take a long time to fail
  321. eventually if all URIs are outdated. This option eases this situation
  322. to limit the number of servers to try.
  323. * src/FtpNegotiationCommand.cc
  324. * src/HelpItemFactory.cc
  325. * src/HttpResponseCommand.cc
  326. * src/OptionHandlerFactory.cc
  327. * src/PeerStat.h
  328. * src/RequestGroup.cc
  329. * src/RequestGroup.h
  330. * src/SegmentMan.cc
  331. * src/SegmentMan.h
  332. * src/option_processing.cc
  333. * src/prefs.cc
  334. * src/prefs.h
  335. * src/usage_text.h
  336. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  337. Fixed the bug that bulkReceiveResponse() reads all received data as a
  338. response even if more than one response is in it.
  339. * src/FtpConnection.cc
  340. * src/FtpConnection.h
  341. * test/FtpConnectionTest.cc
  342. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  343. Merged from stable-0.15
  344. * m4/libcares.m4
  345. Use pkg-config
  346. * m4/sqlite3.m4
  347. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  348. Removed unnecessary if statement.
  349. * src/DefaultPieceStorage.cc (initPieceStorage)
  350. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  351. Added --connect-timeout option to specify connect timeout in seconds.
  352. This option is in effect for HTTP/FTP/proxy server. The timeout for
  353. connecting to BitTorrent peer is not controlled by this option.
  354. * src/AbstractProxyRequestCommand.cc
  355. * src/FtpNegotiationCommand.cc
  356. * src/HelpItemFactory.cc
  357. * src/HttpRequestCommand.cc
  358. * src/OptionHandlerFactory.cc
  359. * src/option_processing.cc
  360. * src/prefs.cc
  361. * src/prefs.h
  362. * src/usage_text.h
  363. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  364. Added help message for -R option.
  365. * src/HelpItemFactory.cc
  366. * src/usage_text.h
  367. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  368. Added the message that the time is in local time zone.
  369. * src/RequestGroup.cc
  370. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  371. Implemented the ability to get timestamp from remote FTP server using
  372. MDTM command described in RFC3659.
  373. * src/FtpConnection.cc
  374. * src/FtpConnection.h
  375. * src/FtpNegotiationCommand.cc
  376. * src/FtpNegotiationCommand.h
  377. * test/FtpConnectionTest.cc
  378. * test/Makefile.am
  379. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  380. Implemented the ability to get timestamp from remote HTTP server and
  381. apply it to local file. To enable this feature, --remote-time option
  382. is added. No usage text has been written yet.
  383. If several servers returns difference timestamp, then aria2 uses latest
  384. one.
  385. * src/CopyDiskAdaptor.cc
  386. * src/CopyDiskAdaptor.h
  387. * src/DirectDiskAdaptor.cc
  388. * src/DirectDiskAdaptor.h
  389. * src/DiskAdaptor.h
  390. * src/File.cc
  391. * src/File.h
  392. * src/HttpHeader.cc
  393. * src/HttpHeader.h
  394. * src/HttpResponse.cc
  395. * src/HttpResponse.h
  396. * src/HttpResponseCommand.cc
  397. * src/HttpResponseCommand.h
  398. * src/MultiDiskAdaptor.cc
  399. * src/MultiDiskAdaptor.h
  400. * src/OptionHandlerFactory.cc
  401. * src/RequestGroup.cc
  402. * src/RequestGroup.h
  403. * src/RequestGroupMan.cc
  404. * src/option_processing.cc
  405. * src/prefs.cc
  406. * src/prefs.h
  407. * test/CopyDiskAdaptorTest.cc
  408. * test/FileTest.cc
  409. * test/Makefile.am
  410. * test/Makefile.in
  411. * test/MultiDiskAdaptorTest.cc
  412. * test/TestUtil.cc
  413. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  414. Fixed the bug that DiskWriterEntry is not created when its
  415. FileEntry.isRequested() is false and it doesn't share a piece with
  416. other FileEntries that are requested. This bug causes segmentation fault
  417. in the end.
  418. * src/MultiDiskAdaptor.cc
  419. * src/MultiDiskAdaptor.h
  420. * src/MultiFileAllocationIterator.cc
  421. * test/MultiDiskAdaptorTest.cc
  422. * test/MultiFileAllocationIteratorTest.cc
  423. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  424. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  425. called if the number of file entries are greater than max open files.
  426. * src/AbstractSingleDiskAdaptor.cc
  427. * src/AbstractSingleDiskAdaptor.h
  428. * src/DiskAdaptor.h
  429. * src/MultiDiskAdaptor.cc
  430. * src/MultiDiskAdaptor.h
  431. * test/MultiDiskAdaptorTest.cc
  432. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  433. Added a constuctor that receives struct timeval.
  434. Added operator<.
  435. * src/TimeA2.cc
  436. * src/TimeA2.h
  437. * test/TimeTest.cc
  438. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  439. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  440. * src/CookieParser.cc
  441. * test/CookieParserTest.cc
  442. * test/HttpResponseTest.cc
  443. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  444. Implmented the functions to parse date.
  445. * src/TimeA2.cc
  446. * src/TimeA2.h
  447. * test/TimeTest.cc
  448. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  449. Added "Firefox3 Cookie" feature to FeatureConfig
  450. * src/FeatureConfig.cc
  451. * src/FeatureConfig.h
  452. * test/FeatureConfigTest.cc
  453. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  454. Bump up version number to 0.16.0b
  455. * configure.ac
  456. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  457. Use pkg-config if is is available.
  458. * m4/openssl.m4
  459. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  460. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  461. * src/BtAnnounce.h
  462. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  463. If an error occurred with a URI, remove identical URI from remaining
  464. URI list because it is likely that same error occurred in the end and it
  465. is waste of time.
  466. * src/AbstractCommand.cc
  467. * src/RequestGroup.cc
  468. * src/RequestGroup.h
  469. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  470. Removed wrong comment.
  471. * src/DefaultPeerStorage.cc
  472. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  473. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  474. Added return value of getpid() to argument of srand() to achieve more
  475. randomized value.
  476. * src/SimpleRandomizer.cc
  477. * src/SimpleRandomizer.h
  478. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  479. Contact tracker frequently when the number of connections are 0 and
  480. download is not finished yet.
  481. * src/ActivePeerConnectionCommand.cc
  482. * src/BtAnnounce.h
  483. * src/DefaultBtAnnounce.cc
  484. * src/DefaultBtAnnounce.h
  485. * test/MockBtAnnounce.h
  486. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  487. Moved threshold values to UTPexExtensionMessage.
  488. * src/DefaultBtInteractive.cc
  489. * src/Peer.cc
  490. * src/Peer.h
  491. * src/UTPexExtensionMessage.cc
  492. * src/UTPexExtensionMessage.h
  493. * test/UTPexExtensionMessageTest.cc
  494. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  495. Added _incoming member to Peer class and made it true if the peer
  496. initiated connection. Don't add those peer to UTPex message.
  497. If extended handshake is received, assign _incoming to false.
  498. * src/DefaultBtInteractive.cc
  499. * src/HandshakeExtensionMessage.cc
  500. * src/Peer.cc
  501. * src/Peer.h
  502. * src/PeerListenCommand.cc
  503. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  504. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  505. Encoding Decoder. Removed size threshold for turning off on the fly
  506. inflation because resulting file may or may not be inflated depending
  507. on the file size and I think it is not expected by users.
  508. This change fixes segmentation fault when Metalink file contains gzipped
  509. file and its filesize is provided.
  510. * src/HttpResponseCommand.cc
  511. * src/HttpResponseCommand.h
  512. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  513. Made Cookie immutable.
  514. * src/Cookie.cc
  515. * src/Cookie.h
  516. * src/CookieParser.cc
  517. * src/CookieParser.h
  518. * src/CookieStorage.cc
  519. * test/CookieParserTest.cc
  520. * test/CookieStorageTest.cc
  521. * test/NsCookieParserTest.cc
  522. * test/Sqlite3MozCookieParserTest.cc
  523. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  524. Removed CookieBox, CookieBoxFactory.
  525. * src/CookieBox.cc
  526. * src/CookieBox.h
  527. * src/CookieBoxFactory.cc
  528. * src/CookieBoxFactory.h
  529. * src/Makefile.am
  530. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  531. Use CookieStorage class instead of CookieBox class.
  532. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  533. * src/AbstractProxyRequestCommand.cc
  534. * src/CookieStorage.cc
  535. * src/DownloadEngine.cc
  536. * src/DownloadEngine.h
  537. * src/HttpConnection.cc
  538. * src/HttpConnection.h
  539. * src/HttpRequest.cc
  540. * src/HttpRequest.h
  541. * src/HttpRequestCommand.cc
  542. * src/HttpResponse.cc
  543. * src/HttpResponseCommand.cc
  544. * src/HttpSkipResponseCommand.cc
  545. * src/Makefile.am
  546. * src/MultiUrlRequestInfo.cc
  547. * src/Request.cc
  548. * src/Request.h
  549. * src/main.cc
  550. * test/AllTest.cc
  551. * test/CookieStorageTest.cc
  552. * test/CookieTest.cc
  553. * test/HttpRequestTest.cc
  554. * test/HttpResponseTest.cc
  555. * test/Makefile.am
  556. * test/NsCookieParserTest.cc
  557. * test/Sqlite3MozCookieParserTest.cc
  558. * test/nscookietest.txt
  559. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  560. Updated
  561. * test/Cookies.sqlite
  562. * test/nscookietest.txt
  563. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  564. Added tests for CookieStorage::load()
  565. * test/CookieStorageTest.cc
  566. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  567. Added CookieStorage class which is based on RFC2109 and manages cookies
  568. more strictly than CookieBox and CookieBoxFactory class.
  569. * src/CookieStorage.cc
  570. * src/CookieStorage.h
  571. * src/Cookie.cc
  572. * src/Cookie.h
  573. * test/CookieStorageTest.cc
  574. * test/CookieTest.cc
  575. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  576. Fixed the bug that commands are created more than the number of pieces.
  577. * src/RequestGroup.cc
  578. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  579. Fixed infinite loop bug in FTP when SIZE command failed.
  580. * src/FtpNegotiationCommand.cc
  581. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  582. Removed DirectDiskAdaptorTest.h
  583. * test/Makefile.am
  584. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  585. Fixed chunk checksum validation cannot detect trailing garbage data.
  586. BUG#2074141
  587. * src/AbstractSingleDiskAdaptor.cc
  588. * src/AbstractSingleDiskAdaptor.h
  589. * src/CheckIntegrityEntry.cc
  590. * src/CheckIntegrityEntry.h
  591. * src/DiskAdaptor.h
  592. * src/MultiDiskAdaptor.cc
  593. * src/MultiDiskAdaptor.h
  594. * src/RequestGroup.cc
  595. * test/DirectDiskAdaptorTest.cc
  596. * test/MultiDiskAdaptorTest.cc
  597. * test/TestUtil.cc
  598. * test/TestUtil.h
  599. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  600. Bump up version number of dht.dat file to 3. In version 3 format, time
  601. is stored in 64bit, network byte order.
  602. New build can load old format(version 2) but it saves the file in new
  603. format. It means once you used new build, your dht.dat becomes
  604. incompatible with older build.
  605. * src/DHTRoutingTableDeserializer.cc
  606. * src/DHTRoutingTableSerializer.cc
  607. * test/DHTRoutingTableSerializerTest.cc
  608. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  609. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  610. * test/Makefile.am
  611. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  612. Bump up version number of .aria2 control file to 0001.
  613. New aria2 can still load version 0000 file but it saves the file in
  614. version 0001 format. It means that new aria2 can resume download
  615. started by old aria2 but the opposite is not true.
  616. * src/DefaultBtProgressInfoFile.cc
  617. * src/DefaultBtProgressInfoFile.h
  618. * test/DefaultBtProgressInfoFileTest.cc
  619. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  620. Added ntoh64 and hton64 as inline functions.
  621. * src/Util.cc
  622. * test/UtilTest.cc
  623. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  624. Added sqlite3 depenency and Firefox3 cookie support.
  625. * README
  626. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  627. State that firefox3 cookie is supported explicitly in the usage.
  628. * src/usage_text.h
  629. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  630. Externalized message.
  631. * src/RequestGroupMan.cc
  632. * src/message.h
  633. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  634. Save temporary file first and rename to the destination on success.
  635. Added test cases.
  636. * src/RequestGroupMan.cc
  637. * test/RequestGroupManTest.cc
  638. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  639. Fixed the bug that the number of connected peer is exceeding the limit
  640. (55 by default) in seeding mode.
  641. Multiplied 0.8 to _maxUploadSpeedLimit.
  642. * src/ActivePeerConnectionCommand.cc
  643. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  644. Clear table item.
  645. * src/Dictionary.cc
  646. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  647. Fixed error handling of lseek.
  648. * src/AbstractDiskWriter.cc
  649. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  650. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  651. style cookie file.
  652. * src/usage_text.h
  653. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  654. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  655. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  656. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  657. * src/Util.cc
  658. * src/Util.h
  659. * src/CookieParser.cc
  660. * test/UtilTest.cc
  661. * test/CookieParserTest.cc
  662. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  663. Separate the implementation to load old mozilla format of cookie to
  664. NsCookieParser class.
  665. * src/CookieBoxFactory.cc
  666. * src/CookieBoxFactory.h
  667. * src/NsCookieParser.cc
  668. * src/NsCookieParser.h
  669. * test/NsCookieParserTest.cc
  670. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  671. Made parse() const
  672. * src/Sqlite3MozCookieParser.cc
  673. * src/Sqlite3MozCookieParser.h
  674. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  675. Added firefox3 cookie support based on the patch submitted by
  676. tizianomueller.
  677. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  678. this functionality.
  679. * configure.ac
  680. * m4/sqlite3.m4
  681. * src/CookieBoxFactory.cc
  682. * src/CookieBoxFactory.h
  683. * src/Makefile.am
  684. * src/Makefile.in
  685. * src/Sqlite3MozCookieParser.cc
  686. * src/Sqlite3MozCookieParser.h
  687. * src/main.cc
  688. * test/CookieBoxFactoryTest.cc
  689. * test/Makefile.am
  690. * test/Makefile.in
  691. * test/Sqlite3MozCookieParserTest.cc
  692. * test/badcookies.sqlite
  693. * test/cookies.sqlite
  694. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  695. Added Danish and Greek translations.
  696. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  697. Great thanks to all translators.
  698. * po/LINGUAS
  699. * po/el.po
  700. * po/da.po
  701. * po/es.po
  702. * po/ca.po
  703. * po/nn.po
  704. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  705. Fixed man page: --follow-bittorrent should be --follow-torrent
  706. * doc/aria2c.1.txt
  707. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  708. Fixed: numCommand is less than the value specified in -C option.
  709. * src/RequestGroup.cc
  710. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  711. Fixed occasional assertion failure in PieceSegment.
  712. Calling PieceStorage::getMissingPiece(size_t) was missing after
  713. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  714. creation of duplicate segments and one of the segment was finished then
  715. assertion failure was caused.
  716. * src/SegmentMan.cc
  717. * test/SegmentManTest.cc
  718. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  719. Added options to load/save the server's performance/status to a file
  720. and the timeout to drop their data.
  721. --server-stat-of=FILE specifies the file to which performance data
  722. is saved.
  723. --server-stat-if=FILE specifies the file to read previously saved
  724. by --server-stat-of option. Might be used with --uri-selector=feedback.
  725. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  726. TIMEOUT is specified in seconds and the default value is 24hours.
  727. * src/MultiUrlRequestInfo.cc
  728. * src/OptionHandlerFactory.cc
  729. * src/RequestGroupMan.cc
  730. * src/RequestGroupMan.h
  731. * src/ServerStatMan.cc
  732. * src/ServerStatMan.h
  733. * src/option_processing.cc
  734. * src/prefs.cc
  735. * src/prefs.h
  736. * test/ServerStatManTest.cc
  737. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  738. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  739. * src/ServerStatMan.cc
  740. * src/ServerStatMan.h
  741. * test/ServerStatManTest.cc
  742. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  743. Implemented ServerStatMan::load(...) function and its test case.
  744. * src/ServerStat.cc
  745. * src/ServerStat.h
  746. * src/ServerStatMan.cc
  747. * test/ServerStatManTest.cc
  748. * test/ServerStatTest.cc
  749. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  750. Use time_t instead of int32_t. Use int64_t where milli second is
  751. expected.
  752. * src/TimeA2.cc
  753. * src/TimeA2.h
  754. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  755. Implemented ServerStatMan::save(...) function and its test case.
  756. * src/ServerStat.cc
  757. * src/ServerStat.h
  758. * src/ServerStatMan.cc
  759. * src/ServerStatMan.h
  760. * test/ServerStatManTest.cc
  761. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  762. Now aria2 uses name attribute in Metalink as local filename in
  763. BitTorrent downloads. BUG#2033999
  764. * src/BtContext.h
  765. * src/BtDependency.cc
  766. * src/DefaultBtContext.cc
  767. * src/DefaultBtContext.h
  768. * src/SingleFileDownloadContext.cc
  769. * src/SingleFileDownloadContext.h
  770. * test/BtDependencyTest.cc
  771. * test/DefaultBtContextTest.cc
  772. * test/MockBtContext.h
  773. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  774. Added AC_C_BIGENDIAN
  775. * src/configure.ac
  776. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  777. Limited numCommand less than or equal to the number of piece.
  778. * src/RequestGroup.cc
  779. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  780. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  781. directive.
  782. * test/DefaultPieceStorageTest.cc
  783. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  784. Fixed memory leak in test code
  785. * test/AnnounceListTest.cc
  786. * test/DefaultPeerListProcessorTest.cc
  787. * test/DefaultPeerStorageTest.cc
  788. * test/MetaFileUtilTest.cc
  789. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  790. Fixed wrong argument passing to BitfieldMan::isBitSet()
  791. * src/DefaultPieceStorage.cc
  792. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  793. Initialized _directIOAllowed
  794. * src/MultiDiskAdaptor.cc
  795. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  796. Fixed memory leak
  797. * src/GZipDecoder.cc
  798. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  799. Fixed memory leak
  800. * src/MetalinkParserStateMachine.cc
  801. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  802. Fixed memory leak
  803. * src/Dictionary.cc
  804. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  805. Fixed memory leak
  806. * src/IteratableChunkChecksumValidator.h
  807. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  808. Fixed unmatched malloc/free.
  809. * src/IteratableChunkChecksumValidator.cc
  810. * src/IteratableChecksumValidator.cc
  811. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  812. Removed max chunk size check. This change fixes BUG#2040169
  813. * src/ChunkedDecoder.cc
  814. * src/ChunkedDecoder.h
  815. * test/ChunkedDecoderTest.cc
  816. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  817. Implemented download speed based URI selection algorithm.
  818. Introduced new option --uri-selector.
  819. If --uri-selector=feedback is given, aria2 uses download speed observed
  820. in the previous downloads and chooses fastest server in the URI list.
  821. Currently at most 10 URIs are considered to introduce randomeness for
  822. finding better servers. The speed is average download speed in the
  823. downloads.
  824. On the other hand, if --uri-selector=inorder is given, which is default,
  825. URI is tried in order in URI list.
  826. The usage text for the new option has not been written yet.
  827. * src/AbstractCommand.cc
  828. * src/DownloadCommand.cc
  829. * src/DownloadEngine.cc
  830. * src/DownloadEngineFactory.cc
  831. * src/InOrderURISelector.cc
  832. * src/InOrderURISelector.h
  833. * src/OptionHandlerFactory.cc
  834. * src/PeerStat.h
  835. * src/RequestGroup.cc
  836. * src/RequestGroup.h
  837. * src/RequestGroupMan.cc
  838. * src/RequestGroupMan.h
  839. * src/SegmentMan.cc
  840. * src/SegmentMan.h
  841. * src/ServerStat.cc
  842. * src/ServerStat.h
  843. * src/ServerStatMan.cc
  844. * src/ServerStatMan.h
  845. * src/ServerStatURISelector.cc
  846. * src/ServerStatURISelector.h
  847. * src/URISelector.h
  848. * src/option_processing.cc
  849. * src/prefs.cc
  850. * src/prefs.h
  851. * test/InOrderURISelectorTest.cc
  852. * test/RequestGroupManTest.cc
  853. * test/ServerStatManTest.cc
  854. * test/ServerStatURISelectorTest.cc
  855. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  856. * Release 0.15.1+2
  857. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  858. Bump up version number to 0.15.1+2
  859. * configure.ac
  860. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  861. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  862. * m4/aria2_arg.m4
  863. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  864. * Release 0.15.1+1
  865. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  866. Bump up version number to 0.15.1+1
  867. * configure.ac
  868. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  869. Fixed the bug that causes segmentaion fault when resuming download
  870. using metalink without size tag. Reproducible only using HTTP URI.
  871. * src/HttpResponseCommand.cc
  872. * src/FtpNegotiationCommand.cc
  873. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  874. * Release 0.15.1
  875. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  876. Updated Bulgarian and French translations, thanks to all translators.
  877. * po/bg.po
  878. * po/fr.po
  879. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  880. Bump up version number to 0.15.1
  881. * configure.ac
  882. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  883. Avoid repeated call of gettimeofday() when calculating speed.
  884. * src/SpeedCalc.cc
  885. * src/SpeedCalc.h
  886. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  887. Removed writable check when socket's send buffer is full in BitTorrent
  888. downloads to lower CPU usage.
  889. * src/PeerInteractionCommand.cc
  890. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  891. Fixed broken gzip inflation.
  892. Turn off segmented downloading if gzip content is smaller than or equal
  893. to 1MiB and inflate the data on the fly, because HTTP response header
  894. doesn't contain the length of inflated file we can't determin where
  895. the chunk of data should be written.
  896. On the other hand, if gzip content is larger than 1MB, then turn off
  897. on the fly inflation, because some servers returns "content-type: gzip"
  898. for *.tgz, *.gz files.
  899. * src/DownloadCommand.cc
  900. * src/HttpResponseCommand.cc
  901. * src/HttpResponseCommand.h
  902. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  903. Applied tizianomueller's patch to fix compile error.
  904. * test/BitfieldManTest.cc
  905. * test/BtRequestMessageTest.cc
  906. * test/DefaultBtContextTest.cc
  907. * test/DefaultDiskWriterTest.cc
  908. * test/DefaultPieceStorageTest.cc
  909. * test/HttpHeaderProcessorTest.cc
  910. * test/HttpResponseTest.cc
  911. * test/Metalink2RequestGroupTest.cc
  912. * test/MetalinkParserControllerTest.cc
  913. * test/MetalinkProcessorTest.cc
  914. * test/PeerSessionResourceTest.cc
  915. * test/UtilTest.cc
  916. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  917. * Release 0.15.0
  918. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  919. Reordered src files in POTFILES.in so that usage text appears first.
  920. * po/POTFILES.in
  921. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  922. Bump up version number to 0.15.0
  923. * configure.ac
  924. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  925. Added Bulgarian translation.
  926. Updated Catalan, Spanish, French and Japanese translations.
  927. Thanks to all translators.
  928. * po/LINGUAS
  929. * po/bg.po
  930. * po/ca.po
  931. * po/es.po
  932. * po/fr.po
  933. * po/ja.po
  934. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  935. Updated feature list. Added libz for dependency section.
  936. Added a description about unit testing using CppUnit.
  937. * README
  938. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  939. Added a test for libz. Quoted where it is necessary.
  940. * build_test.sh
  941. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  942. Added GZip to `Enabled Features' list.
  943. * src/FeatureConfig.cc
  944. * src/FeatureConfig.h
  945. * test/FeatureConfigTest.cc
  946. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  947. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  948. the transfer has not yet started.
  949. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  950. * src/SegmentMan.cc
  951. * src/SegmentMan.h
  952. * test/SegmentManTest.cc
  953. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  954. Cache last calculated average download/upload speed.
  955. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  956. cached value.
  957. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  958. * src/PeerStat.h
  959. * src/SpeedCalc.cc
  960. * src/SpeedCalc.h
  961. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  962. Call parseUrl directly.
  963. * src/Request.cc (resetUrl)
  964. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  965. Supported absolute/relative path in Location header field.
  966. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  967. * src/HttpHeader.cc
  968. * src/HttpHeader.h
  969. * src/HttpResponse.cc
  970. * src/HttpSkipResponseCommand.cc
  971. * src/Request.cc
  972. * test/HttpHeaderTest.cc
  973. * test/HttpResponseTest.cc
  974. * test/RequestTest.cc
  975. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  976. Changed help text for --load-cookie option.
  977. * doc/aria2c.1.txt
  978. * src/usage_text.h
  979. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  980. Regenerated test/Makefile.in to remove stale ChangeLog.
  981. * test/Makefile.in
  982. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  983. Updated po files.
  984. * po/aria2c.pot
  985. * po/*.po
  986. * po/*.gmo
  987. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  988. Bump up version number to 0.15.0b
  989. * configure.ac
  990. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  991. Externalize messages.
  992. * src/RequestGroupMan.cc
  993. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  994. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  995. Use File::exists() instead of File::isFile() to allow non-regular file
  996. such as block special files.
  997. * src/AbstractDiskWriter.cc
  998. * src/MultiDiskWriter.cc
  999. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1000. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1001. * src/gai_strerror.h
  1002. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1003. Fixed compile error. Thanks gknauf for the patch.
  1004. * src/asctime_r.c
  1005. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1006. Included asctime_r.h from a2time.h.
  1007. * src/a2time.h
  1008. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1009. Added a message "aria2 doesn't verify signature" to log message when
  1010. signature file is saved.
  1011. * src/RequestGroupMan.cc
  1012. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1013. Added the ability to save signature when download is completed if
  1014. signature is available. The filename of signature file is the path to
  1015. download file followed by ".sig". If it already exists, then signature
  1016. will not be saved.
  1017. * src/RequestGroupMan.cc
  1018. * src/Signature.cc
  1019. * test/SignatureTest.cc
  1020. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1021. Updated the descriptions for --bt-seed-unverified.
  1022. * doc/aria2c.1
  1023. * doc/aria2c.1.html
  1024. * doc/aria2c.1.txt
  1025. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1026. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1027. that this is not going to verify files using piece hashes.
  1028. * src/HelpItemFactory.cc
  1029. * src/OptionHandlerFactory.cc
  1030. * src/RequestGroup.cc
  1031. * src/option_processing.cc
  1032. * src/prefs.cc
  1033. * src/prefs.h
  1034. * src/usage_text.h
  1035. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1036. Added the ability to retrieve signature from Metalink file.
  1037. A retrieved signature is stored in Signature class and it is held by
  1038. DownloadContext class. Note that aria2 doesn't verify signature.
  1039. * src/DownloadContext.cc
  1040. * src/DownloadContext.h
  1041. * src/Makefile.am
  1042. * src/Makefile.in
  1043. * src/Metalink2RequestGroup.cc
  1044. * src/MetalinkEntry.cc
  1045. * src/MetalinkEntry.h
  1046. * src/MetalinkParserController.cc
  1047. * src/MetalinkParserController.h
  1048. * src/MetalinkParserStateMachine.cc
  1049. * src/MetalinkParserStateMachine.h
  1050. * src/Signature.cc
  1051. * src/Signature.h
  1052. * src/SignatureMetalinkParserState.cc
  1053. * src/SignatureMetalinkParserState.h
  1054. * src/VerificationMetalinkParserState.cc
  1055. * src/VerificationMetalinkParserState.h
  1056. * test/Metalink2RequestGroupTest.cc
  1057. * test/MetalinkParserControllerTest.cc
  1058. * test/MetalinkProcessorTest.cc
  1059. * test/test.xml
  1060. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1061. Close DiskAdaptor after renaming file.
  1062. * src/RequestGroup.cc
  1063. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1064. Corrected indentation
  1065. * src/DefaultBtProgressInfoFile.cc
  1066. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1067. Moved the calls of std::ios::exceptions() inside of try-catch block
  1068. because if an error occurred in constructor of std::fstream, then
  1069. exception is thrown immediately when std::ios::exceptions() is called
  1070. which results unhandled exception and aria2c aborts.
  1071. * src/DefaultBtProgressInfoFile.cc
  1072. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1073. Added the test for the previous change in DefaultBtContext.cc
  1074. * test/DefaultBtContextTest.cc
  1075. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1076. Fixed the bug that causes infinite loop when the number of pieces are
  1077. fewer than allowed fast set size which is 10 by default.
  1078. * src/DefaultBtContext.cc
  1079. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1080. Updated the descriptions for -j, -s. Added --bt-seed.
  1081. * doc/aria2c.1
  1082. * doc/aria2c.1.html
  1083. * doc/aria2c.1.txt
  1084. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1085. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1086. aria2 seeds previously downloaded files without validating piece hashs.
  1087. * src/HelpItemFactory.cc
  1088. * src/OptionHandlerFactory.cc
  1089. * src/RequestGroup.cc
  1090. * src/option_processing.cc
  1091. * src/prefs.cc
  1092. * src/prefs.h
  1093. * src/usage_text.h
  1094. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1095. Updated DESCRIPTION of man page.
  1096. * doc/aria2c.1
  1097. * doc/aria2c.1.html
  1098. * doc/aria2c.1.txt
  1099. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1100. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1101. Don't define `struct addrinfo' when __sun is defined.
  1102. * src/getaddrinfo.h
  1103. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1104. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1105. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1106. second argument is of type `struct _stati64'. Otherwise it is defined as
  1107. `struct stat'.
  1108. * src/AbstractDiskWriter.cc
  1109. * src/File.cc
  1110. * src/File.h
  1111. * src/a2io.h
  1112. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1113. Fixed the compile error in hurd-i386
  1114. See the original bug report:
  1115. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1116. * src/a2io.h
  1117. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1118. Code cleanup.
  1119. * src/PeerAbstractCommand.cc
  1120. * src/PeerAbstractCommand.h
  1121. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1122. Removed TransferEncoding.
  1123. * src/DownloadCommand.cc
  1124. * src/DownloadCommand.h
  1125. * src/HttpResponseCommand.cc
  1126. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1127. Updated po files.
  1128. * po/aria2c.pot
  1129. * po/*.po
  1130. * po/*.gmo
  1131. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1132. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1133. * src/A2STR.cc
  1134. * src/A2STR.h
  1135. * src/ChunkedDecoder.cc
  1136. * src/ChunkedDecoder.h
  1137. * src/ChunkedEncoding.cc: Removed
  1138. * src/ChunkedEncoding.h: Removed
  1139. * src/DownloadCommand.cc
  1140. * src/DownloadCommand.h
  1141. * src/HttpDownloadCommand.cc
  1142. * src/HttpResponse.cc
  1143. * src/HttpResponse.h
  1144. * src/HttpResponseCommand.cc
  1145. * src/HttpSkipResponseCommand.cc
  1146. * src/HttpSkipResponseCommand.h
  1147. * src/Makefile.am
  1148. * src/TransferEncoding.h: Removed
  1149. * test/ChunkedDecoderTest.cc
  1150. * test/ChunkedEncodingTest.cc: Removed
  1151. * test/HttpResponseTest.cc
  1152. * test/Makefile.am
  1153. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1154. Use append instead of insert.
  1155. * src/GZipDecoder.cc
  1156. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1157. Updated doc
  1158. * src/Decoder.h
  1159. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1160. Updated usage text for -s option.
  1161. * src/usage_text.h
  1162. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1163. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1164. * src/Request.cc
  1165. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1166. Cleaned up configure.ac.
  1167. * configure.ac
  1168. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1169. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1170. AC_ARG_ENABLE.
  1171. * configure.ac
  1172. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1173. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1174. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1175. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1176. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1177. fly and writes decoded data to a local disk.
  1178. * README
  1179. * README.html
  1180. * configure.ac
  1181. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1182. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1183. * m4/libz.m4
  1184. * src/Decoder.h
  1185. * src/DownloadCommand.cc
  1186. * src/DownloadCommand.h
  1187. * src/Exception.h
  1188. * src/GZipDecoder.cc
  1189. * src/GZipDecoder.h
  1190. * src/HttpHeader.cc
  1191. * src/HttpHeader.h
  1192. * src/HttpRequest.cc
  1193. * src/HttpRequest.h
  1194. * src/HttpResponse.cc
  1195. * src/HttpResponse.h
  1196. * src/HttpResponseCommand.cc
  1197. * src/Makefile.am
  1198. * test/GZipDecoderTest.cc
  1199. * test/HttpRequestTest.cc
  1200. * test/HttpResponseTest.cc
  1201. * test/Makefile.am
  1202. * test/Makefile.in
  1203. * test/gzip_decode_test.gz
  1204. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1205. Clarified usage of -j option.
  1206. * src/usage_text.h
  1207. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1208. Disabled getting size from the response of RETR.
  1209. If SIZE command failed, then disable resuming and segmented downloading.
  1210. * src/FtpConnection.cc
  1211. * src/FtpConnection.h
  1212. * src/FtpNegotiationCommand.cc
  1213. * src/FtpNegotiationCommand.h
  1214. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1215. Use digits to find first byte of file size, which makes the intention
  1216. of the code clearer.
  1217. * src/FtpConnection.cc
  1218. Don't call validateTotalLength() when size is 0.
  1219. * src/FtpNegotiationCommand.cc
  1220. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1221. Updated po files.
  1222. * po/aria2c.pot
  1223. * po/*.gmo
  1224. * po/*.po
  1225. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1226. Clarified usage text for --split option.
  1227. * src/usage_text.h
  1228. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1229. Bump up version number to 0.15.0dev. "dev" means "development"
  1230. version, which means I started the development of the next release!
  1231. * src/configure.ac
  1232. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1233. If FTP server returns negative response with REST raw command and
  1234. requested range is not 0, throw exception. If requested range is 0,
  1235. continue download a file from 0 byte.
  1236. * src/FtpNegotiationCommand.cc
  1237. * src/FtpNegotiationCommand.h
  1238. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1239. Supported FTP server which don't recognize SIZE raw command.
  1240. If SIZE raw command is failed, aria2 will try to get file size
  1241. from the response of RETR raw command. If both attempts are failed,
  1242. then resuming and segmented downloading are disabled.
  1243. * src/FtpConnection.cc
  1244. * src/FtpConnection.h
  1245. * src/FtpNegotiationCommand.cc
  1246. * src/FtpNegotiationCommand.h
  1247. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1248. * Release 0.14.0+1
  1249. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1250. Bump up version number to 0.14.0+1
  1251. * src/configure.ac
  1252. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1253. Fixed the code that refers static member variable from non-static
  1254. context.
  1255. * src/DefaultPeerStorage.cc
  1256. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1257. * Release 0.14.0
  1258. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1259. Added build test script
  1260. * build_test.sh
  1261. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1262. Updated ja.po
  1263. * src/ja.po
  1264. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1265. Bump up version number to 0.14.0
  1266. * src/configure.ac
  1267. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1268. Updated ja.po and fr.po. Great thanks for french translators and
  1269. Sebastien WILLEMIJNS.
  1270. * po/fr.po
  1271. * po/ja.po
  1272. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1273. Added configure option to enable/disable epoll support.
  1274. * configure.ac
  1275. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1276. Updated man page.
  1277. * doc/aria2c.1.txt
  1278. * doc/aria2c.1
  1279. * doc/aria2c.1.html
  1280. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1281. Added missing default value '5' to the usage of --split option.
  1282. * src/HelpItemFactory.cc
  1283. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1284. Filled up pieces based on the number of missing blocks, rather than
  1285. simplay the number of piece * block length.
  1286. * src/BtRequestFactory.h
  1287. * src/DefaultBtInteractive.cc
  1288. * src/DefaultBtInteractive.h
  1289. * src/DefaultBtRequestFactory.cc
  1290. * src/DefaultBtRequestFactory.h
  1291. * src/Piece.cc
  1292. * src/Piece.h
  1293. * test/BitfieldManTest.cc
  1294. * test/DefaultBtRequestFactoryTest.cc
  1295. * test/MockBtRequestFactory.h
  1296. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1297. Made _epEvents a member variable.
  1298. * src/DownloadEngine.cc
  1299. * src/DownloadEngine.h
  1300. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1301. Cancel download if http redirect is bounded more than 20 times.
  1302. * src/AbstractCommand.cc
  1303. * src/HttpSkipResponseCommand.cc
  1304. * src/Request.cc
  1305. * src/Request.h
  1306. * test/RequestTest.cc
  1307. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1308. Fixed unhandled exception(removed keyword `new').
  1309. * src/SocketCore.cc (initEPOLL)
  1310. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1311. Removed visit(const MetaEntry*)
  1312. * src/MetaEntryVisitor.h:
  1313. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1314. and made them virtual.
  1315. * src/BencodeVisitor.h
  1316. * src/BencodeVisitor.cc
  1317. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1318. Updated po files.
  1319. * po/aria2c.pot
  1320. * po/*.po
  1321. * po/*.gmo
  1322. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1323. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1324. the number of socket to watch out.
  1325. * src/PeerInteractionCommand.cc
  1326. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1327. When there is not enough space in disk when writing a chunk of data,
  1328. aria2 now prints the message to the console to warn user and aborts
  1329. its download. Not all downloads are canceled because some downloads
  1330. may use another disk or partition. BUG#1640332
  1331. * src/AbstractDiskWriter.cc
  1332. * src/PeerAbstractCommand.cc
  1333. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1334. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1335. setHaltRequested(true) to cancel download.
  1336. * src/PeerInteractionCommand.h
  1337. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1338. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1339. socket from int to sock_t as sockets are unsigned in Windows.
  1340. For AsyncNameResolver, DownloadEngine, I did additional modification
  1341. for the portion of the code changed according to epoll support.
  1342. I defined sock_t in a2netcompat.h to use sock_t without including
  1343. SocketCore.h.
  1344. * src/AsyncNameResolver.cc
  1345. * src/AsyncNameResolver.h
  1346. * src/DownloadEngine.cc
  1347. * src/DownloadEngine.h
  1348. * src/SocketCore.cc
  1349. * src/SocketCore.h
  1350. * src/a2netcompat.h
  1351. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1352. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1353. changes in the patch were applied.
  1354. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1355. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1356. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1357. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1358. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1359. a2io.h and common.h were modified.
  1360. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1361. MinGW.
  1362. * src/common.h: Changed off_t to 64 bit in MinGW.
  1363. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1364. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1365. only a2netcompat.h is modified.
  1366. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1367. directives.
  1368. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1369. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1370. only gai_strerror.h is modified.
  1371. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1372. winsock errors in MinGW.
  1373. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1374. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1375. follow sources are applied.
  1376. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1377. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1378. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1379. I included locale.h from Platform.cc.
  1380. * src/main.cc: Moved common setup/teardown code to Platform class.
  1381. * test/AllTest.cc: Use Platform class.
  1382. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1383. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1384. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1385. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1386. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1387. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1388. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1389. aria2-0.13.2+1-mingw-2.patch.
  1390. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1391. systems which don't have termious.h. I moved the directive inside of
  1392. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1393. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1394. anyway.
  1395. * src/asctime_r.h
  1396. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1397. I added 2nd argument to the prototype declaration.
  1398. * src/StringFormat.cc: Get rid of vasprintf.
  1399. * src/getaddrinfo.h: Fixed constants.
  1400. * configure.ac: Added the check for asctime_r function.
  1401. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1402. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1403. Added writable test for Socket when the sending message is in progress.
  1404. Usually the sending message is piece message. Without wriable check,
  1405. upload latency is dropped to more than 1sec.
  1406. * src/PeerInteractionCommand.cc
  1407. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1408. Create only requested files and files which shares a piece with
  1409. requested file in multi-torrent downloads. Directory structures are
  1410. also created in the same rule.
  1411. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1412. DiskWriterEntry as in the previous implementation.
  1413. * src/MultiDiskWriter.cc
  1414. * src/MultiFileAllocationIterator.cc
  1415. * src/MultiFileAllocationIterator.h
  1416. * test/MultiFileAllocationIteratorTest.cc
  1417. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1418. Commented out -lprofiler
  1419. * src/Makefile.am
  1420. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1421. Bump up version number to 0.14.0b.
  1422. * src/configure.ac
  1423. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1424. Actively establish connection to peers in seeding, when peer cache
  1425. is not full and max upload speed limit is not reached.
  1426. * src/ActivePeerConnectionCommand.cc
  1427. * src/ActivePeerConnectionCommand.h
  1428. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1429. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1430. to make room more fleshy, recently found peers.
  1431. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1432. it.
  1433. * src/DefaultPeerStorage.cc
  1434. * test/DefaultPeerStorageTest.cc
  1435. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1436. Returns cached data only when the previous receiveHandshake() is called
  1437. with peek = true.
  1438. * src/PeerConnection.cc (receiveHandshake)
  1439. * src/PeerConnection.h (receiveHandshake)
  1440. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1441. Changed default value of -s option from 1 to 5.
  1442. Also max value of -s option is changed from 5 to 16.
  1443. * src/HelpItemFactory.cc
  1444. * src/OptionHandlerFactory.cc
  1445. * src/option_processing.cc
  1446. * src/usage_text.h
  1447. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1448. Changed -s options behavior. Now it means the number of connections
  1449. made simultaneously in each http/ftp download.
  1450. If 1 URL is specified, the behavior is the same with old implementation.
  1451. If -s N is given and more than N URLs are specified, first N URLs are
  1452. used and remaining URLs are used for backup. If less than N URLs are
  1453. specified, some of URLs are used more than once so that totally N
  1454. connections are made simultaneously.
  1455. * src/main.cc
  1456. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1457. Included missing iosfwd or ostream header.
  1458. * src/RequestGroupMan.cc
  1459. * src/TaggedItem.cc
  1460. * src/TaggedItem.h
  1461. * src/Util.cc
  1462. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1463. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  1464. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  1465. * src/HttpConnection.cc: Included missing sstream.
  1466. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1467. Added --bt-max-open-files option.
  1468. * src/DefaultPieceStorage.cc
  1469. * src/HelpItemFactory.cc
  1470. * src/MultiDiskAdaptor.cc
  1471. * src/MultiDiskAdaptor.h
  1472. * src/OptionHandlerFactory.cc
  1473. * src/option_processing.cc
  1474. * src/prefs.cc
  1475. * src/prefs.h
  1476. * src/usage_text.h
  1477. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1478. Fixed the bug that aria2 aborts when a path to a directory is given
  1479. in command-line.
  1480. * src/ProtocolDetector.cc
  1481. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1482. Limited the number files opened in each BitTorrent download. The default
  1483. value is 100. The option to change this value will be added.
  1484. * src/MultiDiskAdaptor.cc
  1485. * src/MultiDiskAdaptor.h
  1486. * src/MultiFileAllocationIterator.cc
  1487. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1488. Fixed the bug that HTTP downloads don't start with old libraries.
  1489. * src/HttpHeaderProcessor.cc
  1490. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1491. Use empty() instead of size() > 0.
  1492. * src/HttpConnection.cc
  1493. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1494. Drop connection if the incoming peer ID is the same with localhost's
  1495. one. The previous implementation drops connection when incoming peer's
  1496. IP address is the same with localhost's one.
  1497. * src/PeerListenCommand.cc
  1498. * src/DefaultBtInteractive.cc
  1499. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1500. Returns cached data without checking whether socket is readable
  1501. if the cache is available.
  1502. * src/PeerConnection.cc (receiveHandshake)
  1503. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1504. Included stdint.h
  1505. * src/common.h
  1506. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1507. Removed duplicate HAVE_GETTIMEOFDAY
  1508. * src/Makefile.am
  1509. * src/Makefile.in
  1510. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1511. Use interval as a minInterval when minInterval is not supplied.
  1512. * src/DefaultBtAnnounce.cc
  1513. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1514. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  1515. attempt is failed, then 2nd attempt get kicked out more quickly.
  1516. And it is now static const member of DefaultBtAnnounce.
  1517. * src/DefaultBtAnnounce.h
  1518. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1519. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  1520. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  1521. * src/ActivePeerConnectionCommand.cc
  1522. * src/BtConstants.h
  1523. * src/BtRuntime.h
  1524. * src/DHTGetPeersCommand.cc
  1525. * src/DefaultBtAnnounce.cc
  1526. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  1527. BtRuntime::MAX_PEERS.
  1528. * src/DefaultPeerStorage.h
  1529. * src/InitiatorMSEHandshakeCommand.cc
  1530. * src/PeerInitiateConnectionCommand.cc
  1531. * src/PeerInteractionCommand.cc
  1532. * src/PeerReceiveHandshakeCommand.cc
  1533. * src/TrackerWatcherCommand.cc
  1534. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1535. Always Connect to _numNewConnection
  1536. * src/ActivePeerConnectionCommand.cc
  1537. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1538. Made `begin' unsigned int.
  1539. * src/GrowSegment.h
  1540. * src/Piece.cc
  1541. * src/Piece.h
  1542. * src/PiecedSegment.cc
  1543. * src/PiecedSegment.h
  1544. * src/Segment.h
  1545. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1546. Calculate piece hash when data is arrived if the data is arrived in
  1547. order. This removes additional read operation for hash calculation.
  1548. If the data is arrived in out of order, the hash is calucated when the
  1549. piece is completed. This is the same behavior as the old implementation.
  1550. * src/BtPieceMessage.cc
  1551. * src/DefaultBtProgressInfoFile.cc
  1552. * src/DefaultPieceStorage.cc
  1553. * src/DownloadCommand.cc
  1554. * src/DownloadCommand.h
  1555. * src/DownloadEngine.cc
  1556. * src/GrowSegment.cc
  1557. * src/GrowSegment.h
  1558. * src/Piece.cc
  1559. * src/Piece.h
  1560. * src/PiecedSegment.cc
  1561. * src/PiecedSegment.h
  1562. * src/Segment.h
  1563. * test/PieceTest.cc
  1564. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1565. Try to keep the ordering of outgoing piece message.
  1566. * src/DefaultBtMessageDispatcher.cc
  1567. (DefaultBtMessageDispatcher::sendMessages)
  1568. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1569. Fixed busy loop when error/hup epoll events occur.
  1570. * src/AbstractCommand.cc
  1571. * src/PeerAbstractCommand.cc
  1572. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1573. Added --bt-request-peer-speed-limit option, which was a constant
  1574. SLOW_SPEED_THRESHOLD.
  1575. * src/ActivePeerConnectionCommand.cc
  1576. * src/ActivePeerConnectionCommand.h
  1577. * src/BtConstants.h
  1578. * src/HelpItemFactory.cc
  1579. * src/OptionHandlerFactory.cc
  1580. * src/PeerReceiveHandshakeCommand.cc
  1581. * src/option_processing.cc
  1582. * src/prefs.cc
  1583. * src/prefs.h
  1584. * src/usage_text.h
  1585. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1586. Removed repeated call of getTopDirPath(). Instead, call it once and
  1587. cache the result.
  1588. * src/MultiDiskAdaptor.cc
  1589. * src/MultiDiskAdaptor.h
  1590. (mkdir, openFile, initAndOpenFile, openExistingFile)
  1591. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1592. Fixed compile error on debian etch.
  1593. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  1594. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  1595. it is undefined.
  1596. * src/Util.cc (ULLONG_MAX)
  1597. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Added epoll support. Use epoll if it is available. If not, use select.
  1599. When async dns is enabled in compile time, epoll support is enabled
  1600. only when aria2 is built with c-ares. This condition statement is
  1601. defined in a2io.h.
  1602. Currently aria2 supports both c-ares and ares, but ares is maintained
  1603. for quite a while and debian already has c-ares package, ares support
  1604. will be dropped in the future version.
  1605. * configure.ac
  1606. * src/AbstractCommand.cc
  1607. * src/AsyncNameResolver.cc
  1608. * src/AsyncNameResolver.h
  1609. * src/Command.cc
  1610. * src/Command.h
  1611. * src/DownloadEngine.cc
  1612. * src/DownloadEngine.h
  1613. * src/PeerAbstractCommand.cc
  1614. * src/SocketCore.cc
  1615. * src/SocketCore.h
  1616. * src/a2io.h
  1617. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1618. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  1619. directive.
  1620. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1621. Do not do write operation to /dev/null file.
  1622. * src/LogFactory.cc
  1623. * src/SimpleLogger.cc
  1624. Replaced vasprintf with vsnprintf
  1625. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1626. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1627. * src/BtRequestMessage.cc
  1628. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  1629. for segmentation fault caused by previous commit.
  1630. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1631. Reduced the usage of gettimeofday().
  1632. * src/DefaultBtMessageDispatcher.cc
  1633. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  1634. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1635. * src/RequestSlot.cc
  1636. * src/RequestSlot.h
  1637. (RequestSlot::isTimeout)
  1638. Made RequestSlot have a reference to Piece object to avoid find
  1639. Piece repeatedly.
  1640. * src/DefaultBtMessageDispatcher.cc
  1641. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1642. * src/RequestSlot.cc
  1643. * src/RequestSlot.h
  1644. (RequestSlot::getPiece)
  1645. * test/DefaultBtMessageDispatcherTest.cc
  1646. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1647. * src/TimeA2.cc
  1648. * src/TimeA2.h
  1649. (Time::difference): New function.
  1650. (Time::elapsed): Done optimization.
  1651. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1652. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  1653. directive.
  1654. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1655. * src/option_processing.cc: Added missing `defined' keyword to #if
  1656. directive.
  1657. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1658. Bump up version number to 0.13.2+1
  1659. * src/configure.ac
  1660. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1661. Refactored broken outstanding piece handling.
  1662. * src/DefaultPieceStorage.cc
  1663. * src/DefaultPieceStorage.h
  1664. * src/Piece.cc
  1665. * src/Piece.h
  1666. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1667. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  1668. name collision of static variable and predefined macro.
  1669. * src/BtContext.cc
  1670. * src/BtContext.h
  1671. * src/CookieBoxFactory.cc
  1672. * src/CookieBoxFactory.h
  1673. * src/CookieParser.cc
  1674. * src/CookieParser.h
  1675. * src/DefaultBtContext.cc
  1676. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1677. * src/RequestGroup.cc
  1678. (RequestGroup::createInitialCommand): Use empty() instead of size().
  1679. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1680. * Release 0.13.2
  1681. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1682. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  1683. * po/fr.po
  1684. * po/ja.po
  1685. * po/aria2c.pot
  1686. * po/*.po
  1687. * po/*.gmo
  1688. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1689. Bump up version number to 0.13.2
  1690. * src/configure.ac
  1691. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1692. Refactord.
  1693. * src/RequestGroupMan.cc
  1694. (removeStoppedGroup)
  1695. (fillRequestGroupFromReserver)
  1696. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1697. Fixed compile error on Ubuntu.
  1698. * src/BtPieceMessage.cc
  1699. * src/MessageDigestHelper.cc
  1700. * src/Util.cc
  1701. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1702. Fixed compile error when configured with --disable-bittorrent
  1703. * test/DownloadHandlerFactoryTest.cc
  1704. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1705. Done make update-po
  1706. * po/aria2c.pot
  1707. * po/*.po
  1708. * po/*.gmo
  1709. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1710. Bump up version number to 0.13.2rc.
  1711. * src/configure.ac
  1712. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1713. Made option name bold. Updated SYNOPSIS to make it more readable.
  1714. * doc/aria2c.1.txt
  1715. * doc/aria2c.1
  1716. * doc/aria2c.1.html
  1717. * src/version_usage.cc
  1718. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1719. Refactored. Use std::string instead of size and char*.
  1720. * Data.cc
  1721. * Data.h
  1722. * test/Data.cc
  1723. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1724. Added trimSelf(). Rewritten trim() to use trimSelf().
  1725. * Util.cc
  1726. * Util.h
  1727. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1728. * src/ChunkChecksum.h (getChecksum): Return const reference.
  1729. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1730. Fixed compile error when configured with --disable-metalink.
  1731. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  1732. * test/FeatureConfigTest.cc
  1733. * test/DownloadHandlerFactoryTest.cc
  1734. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1735. Fixed compile error when configured with --without-gnutls
  1736. --without-openssl
  1737. * src/main.cc
  1738. * test/DefaultBtProgressInfoFileTest.cc
  1739. * test/SegmentManTest.cc
  1740. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1741. Fixed compile error with OpenSSL.
  1742. * src/IteratableChunkChecksumValidator.cc
  1743. * src/LibsslDHKeyExchange.h
  1744. * src/MessageDigestHelper.cc
  1745. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1746. Revert the default value of --max-concurrent-downloads to 5.
  1747. Revert the default value of --metalink-servers to 5.
  1748. Man pages was also updated.
  1749. * src/option_processing.cc
  1750. * doc/aria2c.1.txt
  1751. * doc/aria2c.1.html
  1752. * doc/aria2c.1
  1753. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1754. Returns const reference:
  1755. DownloadContext::getPieceHash, DownloadContext::getName,
  1756. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  1757. BtContext::getInfoHashAsString,
  1758. * src/BtContext.h
  1759. * src/DefaultBtContext.cc
  1760. * src/DefaultBtContext.h
  1761. * src/DownloadContext.h
  1762. * src/SingleFileDownloadContext.h
  1763. * test/MockBtContext.h
  1764. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1765. * src/RequestGroup.h (getDir): Removed.
  1766. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1767. Returns const reference. The internal urlencode function was optimized
  1768. a little bit.
  1769. * src/Request.cc
  1770. * src/Request.h
  1771. * src/HttpRequest.cc
  1772. * src/HttpRequest.h
  1773. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1774. Defined option name and possible values as std::string to reduce
  1775. temporary string object creation in runtime.
  1776. * src/HelpItemFactory.cc
  1777. * src/LogFactory.cc
  1778. * src/Option.cc
  1779. * src/OptionHandlerFactory.cc
  1780. * src/option_processing.cc
  1781. * src/prefs.cc
  1782. * src/prefs.h
  1783. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1784. Return const reference.
  1785. * src/DownloadHandlerConstants.cc
  1786. * src/DownloadHandlerConstants.h
  1787. (getMetalinkExtensions)
  1788. (getMetalinkContentTypes)
  1789. (getBtExtensions)
  1790. (getBtContentTypes)
  1791. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1792. * src/HttpHeader.cc (get): Rewritten.
  1793. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1794. Make HttpHeader::getFirst(...) return const reference.
  1795. * src/HttpHeader.cc
  1796. * src/HttpHeader.h
  1797. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1798. Use Option::getAsBool(...) instead of Option::get(...) and compare
  1799. it with V_TRUE.
  1800. * src/DefaultPieceStorage.cc
  1801. * src/DownloadCommand.cc
  1802. * src/FtpNegotiationCommand.cc
  1803. * src/HttpRequest.cc
  1804. * src/InitiateConnectionCommand.cc
  1805. * src/RequestGroup.cc
  1806. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1807. Made Option::get(...) return const reference of std::string.
  1808. * src/Option.cc
  1809. * src/Option.h
  1810. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1811. Replaced std:copy with insert.
  1812. * src/DefaultBtMessageDispatcher.cc
  1813. * src/DefaultPieceStorage.cc
  1814. * src/DownloadEngineFactory.cc
  1815. * src/RequestGroup.cc
  1816. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1817. Included SocketCore.h to fix compiler warning.
  1818. * src/InitiateConnectionCommand.cc
  1819. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1820. Put piece selection strategy algorithm to RarestPieceSelector class,
  1821. Added a switch to choose whether randomized selection so that unit
  1822. tests emit same results in, possibly, win32.
  1823. * src/DefaultPieceStorage.cc
  1824. * src/DefaultPieceStorage.h
  1825. * src/RarestPieceSelector.cc
  1826. * src/RarestPieceSelector.h
  1827. * test/DefaultPieceStorageTest.cc
  1828. * test/RarestPieceSelectorTest.cc
  1829. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1830. Don't pool connection if HTTP proxy is enabled.
  1831. * src/FtpFinishDownloadCommand.cc
  1832. * src/FtpNegotiationCommand.cc
  1833. * src/HttpSkipResponseCommand.cc
  1834. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1835. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  1836. * src/AbstractCommand.cc
  1837. * src/AbstractCommand.h
  1838. * src/ActivePeerConnectionCommand.cc
  1839. * src/FtpInitiateConnectionCommand.cc
  1840. * src/HttpInitiateConnectionCommand.cc
  1841. * src/InitiateConnectionCommandFactory.cc
  1842. * src/PeerAbstractCommand.cc
  1843. * src/PeerAbstractCommand.h
  1844. * src/PeerInitiateConnectionCommand.cc
  1845. * src/TrackerWatcherCommand.cc
  1846. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1847. Sort RequestSlot in ascending order and manipulate them using
  1848. lower_bound.
  1849. * src/DefaultBtMessageDispatcher.cc
  1850. * src/DefaultBtMessageDispatcher.h
  1851. (getMessageQueue): Added const qualifier.
  1852. (getRequestSlots): Added const qualifier.
  1853. (sendMessages): Use empty() instead of size().
  1854. (doCancelSendingPieceAction): Use HandleEvent object.
  1855. (doAbortOutstandingRequestAction): Rewritten.
  1856. (doChokedAction): Rewritten.
  1857. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  1858. (isOutstandingRequest): Rewritten.
  1859. (getOutstandingRequest): Rewritten.
  1860. (removeOutstandingRequest): Rewritten.
  1861. (addOutstandingRequest): Rewritten.
  1862. * src/RequestSlot.cc
  1863. * src/RequestSlot.h
  1864. (operator=): Rewritten.
  1865. (operator!=): New function.
  1866. (operator<): New function.
  1867. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1868. * src/DefaultBtRequestFactory.cc
  1869. (doChokedAction): Rewritten.
  1870. (removeCompletedPiece): Rewritten.
  1871. (removeTargetPiece): Rewritten.
  1872. (createRequestMessages): Added the debug log.
  1873. (createRequestMessagesOnEndGame: Added the debug log.
  1874. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Added the debug log message.
  1876. * src/BtPieceMessage.cc (doReceivedAction)
  1877. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1878. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  1879. used lower_bound to process them rather than linear search.
  1880. * src/DHTPeerAnnounceStorage.cc
  1881. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Call subtractPieceStats from ~PeerInteractionCommand only when the
  1883. peer has at least one completed piece.
  1884. * src/Peer.cc
  1885. * src/Peer.h
  1886. * src/PeerInteractionCommand.cc
  1887. * src/PeerSessionResource.cc
  1888. * src/PeerSessionResource.h
  1889. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1890. Removed unnecessary sorting
  1891. * src/DefaultPieceStorage (DefaultPieceStorage)
  1892. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1893. Rewritten the portion of the code that mangaes allowed fast indexes.
  1894. * src/PeerSessionResource.cc
  1895. * src/PeerSessionResource.h
  1896. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1897. Removed the invalid string including '\r' from ru.po and
  1898. did make update-po.
  1899. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1900. Added --log-level and --summary-interval to man page.
  1901. * doc/aria2c.1.txt
  1902. * doc/aria2c.1.html
  1903. * doc/aria2c.1
  1904. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1905. Added --log-level option to specify log level. Log messages under
  1906. the specified level are not output. Default value is `debug'.
  1907. * src/HelpItemFactory.cc
  1908. * src/LogFactory.cc
  1909. * src/LogFactory.h
  1910. * src/Logger.h
  1911. * src/OptionHandlerFactory.cc
  1912. * src/SimpleLogger.cc
  1913. * src/SimpleLogger.h
  1914. * src/main.cc
  1915. * src/option_processing.cc
  1916. * src/prefs.h
  1917. * src/usage_text.h
  1918. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1919. Print download progress summary of all parallel downloads in specified
  1920. interval, default 60 secs. While aria2 could download several files
  1921. in parallel (see -j option), it displayed just first download progress,
  1922. and the other downloads are hidden from the users. This new feature
  1923. prints all downloads currently in-progress to the console so that you
  1924. can check the status of all downloads. The interval can be adjusted
  1925. by --summary-interval option.
  1926. The progress readout is now cut so that all fits in the one line of
  1927. console.
  1928. * src/ConsoleStatCalc.cc
  1929. * src/ConsoleStatCalc.h
  1930. * src/HelpItemFactory.cc
  1931. * src/OptionHandlerFactory.cc
  1932. * src/RequestGroupMan.cc
  1933. * src/RequestGroupMan.h
  1934. * src/main.cc
  1935. * src/option_processing.cc
  1936. * src/prefs.h
  1937. * src/usage_text.h
  1938. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1939. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  1940. * src/DownloadEngine.cc (DownloadEngine)
  1941. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1942. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  1943. defined.
  1944. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  1945. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1946. Use erase+lower_bound+insert instead of sort.
  1947. * src/DefaultPieceStorage.cc (addPieceStats)
  1948. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1949. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  1950. * src/A2STR.cc
  1951. * src/A2STR.h
  1952. * src/OptionParser.cc (parse)
  1953. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1954. Defined fake filename `[tracker.announce]' as static const std::string.
  1955. * src/TrackerWatcherCommand.cc (createRequestGroup)
  1956. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1957. Defined default filename `index.html' as static const std::string
  1958. * src/SingleFileDownloadContext.cc
  1959. * src/SingleFileDownloadContext.h
  1960. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1961. Defined "[MEMORY]" as static const std::string.
  1962. * src/MemoryBufferPreDownloadHandler.cc (execute)
  1963. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1964. Defined control file's version number as static const std::string.
  1965. * src/DefaultBtProgressInfoFile.cc
  1966. * src/DefaultBtProgressInfoFile.h
  1967. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1968. Use Request::METHOD_GET
  1969. * src/RequestGroup.cc (createNextCommandWithAdj)
  1970. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1971. Defined "OK", "ERR", "INPR" as static const std::string
  1972. * src/RequestGroupMan.cc (showDownloadResults)
  1973. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1974. Defined default client used in extended handshake as static const
  1975. std::string
  1976. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  1977. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1978. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  1979. * src/HttpConnection.cc (eraseConfidentialInfo)
  1980. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1981. Defined default ftp user and password as static const std::string
  1982. * src/AuthConfigFactory.cc
  1983. * src/AuthConfigFactory.h
  1984. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1985. Defined strings used in netrc as static const std::string
  1986. * src/Netrc.cc
  1987. * src/Netrc.h
  1988. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1989. Defined HTTP status as static const std::string
  1990. * src/AbstractProxyResponseCommand.cc
  1991. * src/HttpHeader.cc
  1992. * src/HttpHeader.h
  1993. * src/HttpResponse.cc
  1994. * src/HttpResponseCommand.cc
  1995. * src/HttpSkipResponseCommand.cc
  1996. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1997. Defined "\r\n", "A", "I" as static const std::string
  1998. * src/A2STR.cc
  1999. * src/A2STR.h
  2000. * src/FtpConnection.cc
  2001. * src/FtpConnection.h
  2002. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2003. Added COLON_C(".") and used it in Request::parseUrl()
  2004. * src/A2STR.cc
  2005. * src/A2STR.h
  2006. * src/Request.cc (parseUrl)
  2007. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2008. Changed the type of padName from `const std::string&' to `const char*'.
  2009. * src/MSEHandshake.cc (verifyPadLength)
  2010. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2011. Defined "sha1" as static const std::string.
  2012. * src/MetalinkParserController.cc
  2013. * src/MetalinkParserController.h
  2014. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2015. Defined message digest algorithm name as static const std::string
  2016. * src/DHTTokenTracker.cc
  2017. * src/DHTUtil.cc
  2018. * src/DefaultBtContext.cc
  2019. * src/MSEHandshake.cc
  2020. * src/MessageDigestHelper.cc
  2021. * src/Peer.cc
  2022. * src/messageDigest.cc
  2023. * src/messageDigest.h
  2024. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2025. Made string literals used in SAX parser static const std::string.
  2026. * src/FileMetalinkParserState.cc
  2027. * src/FileMetalinkParserState.h
  2028. * src/FilesMetalinkParserState.cc
  2029. * src/FilesMetalinkParserState.h
  2030. * src/InitialMetalinkParserState.cc
  2031. * src/InitialMetalinkParserState.h
  2032. * src/MetalinkMetalinkParserState.cc
  2033. * src/MetalinkMetalinkParserState.h
  2034. * src/PiecesMetalinkParserState.cc
  2035. * src/PiecesMetalinkParserState.h
  2036. * src/ResourcesMetalinkParserState.cc
  2037. * src/ResourcesMetalinkParserState.h
  2038. * src/VerificationMetalinkParserState.cc
  2039. * src/VerificationMetalinkParserState.h
  2040. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2041. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2042. * src/A2STR.cc
  2043. * src/A2STR.h
  2044. * src/File.cc
  2045. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2046. Defined static const std::string IP("ip"), PORT("port") and use them
  2047. instead of string literals.
  2048. * src/DefaultPeerListProcessor.cc
  2049. * src/DefaultPeerListProcessor.h
  2050. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2051. Made string literals for torrent file processing static const
  2052. std::string.
  2053. * src/BtContext.cc
  2054. * src/BtContext.h
  2055. * src/DefaultBtContext.cc
  2056. * src/DefaultBtContext.h
  2057. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2058. Made string literal for tracker response static const std::string
  2059. * src/BtAnnounce.cc
  2060. * src/BtAnnounce.h
  2061. * src/DefaultBtAnnounce.cc
  2062. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2063. Use DHTMessage::T instead of "t".
  2064. * src/DHTMessageTracker.cc (messageArrived)
  2065. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2066. Made keyName static const. Made trimmed charset static const
  2067. std::string.
  2068. * src/Util.cc (getContentDispositionFilename)
  2069. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2070. Made USER_AGENT const. Made "/" static const std::string.
  2071. * src/A2STR.cc
  2072. * src/A2STR.h
  2073. * src/HttpRequest.cc
  2074. * src/HttpRequest.h
  2075. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2076. Made string listeral to static const std::string:
  2077. "Content-Range", "Content-Length"
  2078. * src/HttpHeader.cc
  2079. * src/HttpHeader.h
  2080. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2081. Made string listeral to static const std::string.
  2082. * src/HttpConnection.cc
  2083. * src/HttpHeader.cc
  2084. * src/HttpHeader.h
  2085. * src/HttpResponse.cc
  2086. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2087. Made string listeral to static const std::string.
  2088. * src/A2STR.cc
  2089. * src/A2STR.h
  2090. * src/SimpleLogger.cc
  2091. * src/SimpleLogger.h
  2092. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2093. Made string literal to static const std::string.
  2094. Rewritten CookieParser::setField.
  2095. * src/A2STR.cc
  2096. * src/A2STR.h
  2097. * src/CookieBoxFactory.cc
  2098. * src/CookieBoxFactory.h
  2099. * src/CookieParser.cc
  2100. * src/CookieParser.h
  2101. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2102. Made string literal to static const std::string
  2103. * src/DHTAbstractMessage.cc
  2104. * src/DHTAnnouncePeerMessage.cc
  2105. * src/DHTAnnouncePeerMessage.h
  2106. * src/DHTAnnouncePeerReplyMessage.cc
  2107. * src/DHTAnnouncePeerReplyMessage.h
  2108. * src/DHTFindNodeMessage.cc
  2109. * src/DHTFindNodeMessage.h
  2110. * src/DHTFindNodeReplyMessage.cc
  2111. * src/DHTFindNodeReplyMessage.h
  2112. * src/DHTGetPeersMessage.cc
  2113. * src/DHTGetPeersMessage.h
  2114. * src/DHTGetPeersReplyMessage.cc
  2115. * src/DHTGetPeersReplyMessage.h
  2116. * src/DHTMessage.cc
  2117. * src/DHTMessage.h
  2118. * src/DHTMessageFactoryImpl.cc
  2119. * src/DHTMessageReceiver.cc
  2120. * src/DHTPingMessage.cc
  2121. * src/DHTPingMessage.h
  2122. * src/DHTPingReplyMessage.cc
  2123. * src/DHTPingReplyMessage.h
  2124. * src/DHTQueryMessage.cc
  2125. * src/DHTQueryMessage.h
  2126. * src/DHTResponseMessage.cc
  2127. * src/DHTResponseMessage.h
  2128. * src/DHTUnknownMessage.cc
  2129. * src/DHTUnknownMessage.h
  2130. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2131. Made string literal to static const std::string
  2132. * src/BtChokeMessage.cc (toString)
  2133. * src/BtHaveAllMessage.cc (toString)
  2134. * src/BtHaveNoneMessage.cc (toString)
  2135. * src/BtInterestedMessage.cc (toString)
  2136. * src/BtNotInterestedMessage.cc (toString)
  2137. * src/BtUnchokeMessage.cc (toString)
  2138. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2139. Replaced "" with static const variable A2STR::NIL.
  2140. Replaced string comparison against "" with std::string::empty().
  2141. Added PROTO_* to Request class and use them as a protocol string
  2142. constant.
  2143. Made "started", "stopped", "completed" static const variable in
  2144. AnnounceList class.
  2145. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2146. Updated translations. Great thanks to translators.
  2147. * po/ca.po
  2148. * po/de.po
  2149. * po/fr.po
  2150. * po/it.po
  2151. * po/ja.po
  2152. * po/ru.po
  2153. * po/zh_CN.po
  2154. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2155. Updated man page; categorized options and fixed typo.
  2156. * doc/aria2c.1.txt
  2157. * doc/aria2c.1.html
  2158. * doc/aria2c.1
  2159. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2160. Removed const ref
  2161. * src/MetalinkEntry.cc (AddProtocolPreference)
  2162. * src/RequestGroup.cc (FindServerHostByHostname)
  2163. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2164. Rewritten Accept-Features handling.
  2165. * src/HttpRequestCommand.cc (createHttpRequest)
  2166. * src/a2functional.h
  2167. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2168. Changed method signature:
  2169. DHTAbstractNodeLookupTask::toEntries
  2170. * src/DHTAbstractNodeLookupTask.cc
  2171. * src/DHTAbstractNodeLookupTask.h
  2172. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2173. Changed method signature:
  2174. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2175. * src/BtContext.h
  2176. * src/DefaultBtContext.cc
  2177. * src/DefaultBtContext.h
  2178. * src/DefaultBtInteractive.cc
  2179. * test/DefaultBtContextTest.cc
  2180. * test/MockBtContext.h
  2181. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2182. Changed method signature:
  2183. MultiFileAllocationIterator::makeDiskWriterEntries
  2184. * src/MultiFileAllocationIterator.cc
  2185. * src/MultiFileAllocationIterator.h
  2186. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2187. Changed method sinature:
  2188. MetalinkEntry::toFileEntry,
  2189. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2190. Metalinker::queryEntry
  2191. * src/Metalink2RequestGroup.cc
  2192. * src/MetalinkEntry.cc
  2193. * src/MetalinkEntry.h
  2194. * src/MetalinkHelper.cc
  2195. * src/MetalinkHelper.h
  2196. * src/Metalinker.cc
  2197. * src/Metalinker.h
  2198. * src/main.cc
  2199. * test/MetalinkHelperTest.cc
  2200. * test/MetalinkerTest.cc
  2201. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2202. Changed method sinature:
  2203. RequestGroup::getURIs
  2204. * src/RequestGroup.cc
  2205. * src/RequestGroup.h
  2206. * test/Metalink2RequestGroupTest.cc
  2207. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2208. Changed method signature:
  2209. PeerListProcessor::extractPeer
  2210. * src/CompactPeerListProcessor.cc
  2211. * src/CompactPeerListProcessor.h
  2212. * src/DefaultBtAnnounce.cc
  2213. * src/DefaultPeerListProcessor.cc
  2214. * src/DefaultPeerListProcessor.h
  2215. * src/DelegatingPeerListProcessor.cc
  2216. * src/DelegatingPeerListProcessor.h
  2217. * src/PeerListProcessor.h
  2218. * src/UTPexExtensionMessage.cc
  2219. * test/DefaultPeerListProcessorTest.cc
  2220. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2221. Changed method signature:
  2222. BtRequestFactory::createRequestMessages,
  2223. BtRequestFactory::createRequestMessagesOnEndGame
  2224. * src/BtRequestFactory.h
  2225. * src/DefaultBtInteractive.cc
  2226. * src/DefaultBtRequestFactory.cc
  2227. * src/DefaultBtRequestFactory.h
  2228. * test/DefaultBtRequestFactoryTest.cc
  2229. * test/MockBtRequestFactory.h
  2230. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2231. Changed method signature:
  2232. PieceStorage::getInFlightPieces
  2233. * src/DefaultBtProgressInfoFile.cc
  2234. * src/DefaultPieceStorage.cc
  2235. * src/DefaultPieceStorage.h
  2236. * src/PieceStorage.h
  2237. * src/UnknownLengthPieceStorage.cc
  2238. * src/UnknownLengthPieceStorage.h
  2239. * test/DefaultBtProgressInfoFileTest.cc
  2240. * test/MockPieceStorage.h
  2241. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2242. Changed method signature:
  2243. PostDownloadHandler::getNextRequestGroups
  2244. Metalink2RequestGroup::generate
  2245. RequestGroup::postDownloadProcessing
  2246. * src/BtPostDownloadHandler.cc
  2247. * src/BtPostDownloadHandler.h
  2248. * src/Metalink2RequestGroup.cc
  2249. * src/Metalink2RequestGroup.h
  2250. * src/MetalinkPostDownloadHandler.cc
  2251. * src/MetalinkPostDownloadHandler.h
  2252. * src/PostDownloadHandler.h
  2253. * src/RequestGroup.cc
  2254. * src/RequestGroup.h
  2255. * src/RequestGroupMan.cc
  2256. * src/main.cc
  2257. * test/BtPostDownloadHandlerTest.cc
  2258. * test/Metalink2RequestGroupTest.cc
  2259. * test/MetalinkPostDownloadHandlerTest.cc
  2260. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2261. Rewritten AccRequestGroup
  2262. * src/main.cc
  2263. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2264. Rewritten.
  2265. * src/TaggedItem.cc (toTagString)
  2266. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2267. Rewritten Accept-Features handling.
  2268. * src/HttpRequestCommand.cc (createHttpRequest)
  2269. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2270. Rewritten accept types handling.
  2271. * HttpRequest.cc (createRequest)
  2272. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2273. Rewritten
  2274. * src/FeatureConfig.cc (featureSummary)
  2275. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2276. Changed method signature:
  2277. PeerStorage::getActivePeers
  2278. * src/DHTPeerAnnounceEntry.cc
  2279. * src/DefaultPeerStorage.cc
  2280. * src/DefaultPeerStorage.h
  2281. * src/PeerStorage.h
  2282. * test/DefaultPeerStorageTest.cc
  2283. * test/MockPeerStorage.h
  2284. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2285. Changed method signature:
  2286. DHTPeerAnnounceStorage::getPeers,
  2287. DHTPeerAnnounceEntry::getPeers
  2288. * src/DHTGetPeersMessage.cc
  2289. * src/DHTPeerAnnounceEntry.cc
  2290. * src/DHTPeerAnnounceEntry.h
  2291. * src/DHTPeerAnnounceStorage.cc
  2292. * src/DHTPeerAnnounceStorage.h
  2293. * test/DHTAnnouncePeerMessageTest.cc
  2294. * test/DHTPeerAnnounceEntryTest.cc
  2295. * test/DHTPeerAnnounceStorageTest.cc
  2296. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2297. Changed method signature:
  2298. NameResolver::resolve
  2299. * src/DHTEntryPointNameResolveCommand.cc
  2300. * src/InitiateConnectionCommand.cc
  2301. * src/NameResolver.cc
  2302. * src/NameResolver.h
  2303. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2304. Changed method signature:
  2305. PieceStorage::getAdvertisedPieceIndexes
  2306. * src/DefaultBtInteractive.cc
  2307. * src/DefaultPieceStorage.cc
  2308. * src/DefaultPieceStorage.h
  2309. * src/PieceStorage.h
  2310. * src/UnknownLengthPieceStorage.h
  2311. * test/MockPieceStorage.h
  2312. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2313. Changed method signature:
  2314. SegmentMan::getInFlightSegment
  2315. * src/AbstractCommand.cc
  2316. * src/SegmentMan.cc
  2317. * src/SegmentMan.h
  2318. * test/SegmentManTest.cc
  2319. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2320. Changed method signature:
  2321. DHTAbstractNodeLookupTask::getNodesFromMessage
  2322. * src/DHTAbstractNodeLookupTask.cc
  2323. * src/DHTAbstractNodeLookupTask.h
  2324. * src/DHTNodeLookupTask.cc
  2325. * src/DHTNodeLookupTask.h
  2326. * src/DHTPeerLookupTask.cc
  2327. * src/DHTPeerLookupTask.h
  2328. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2329. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2330. * src/AbstractCommand.cc
  2331. * src/BtCheckIntegrityEntry.cc
  2332. * src/BtCheckIntegrityEntry.h
  2333. * src/BtFileAllocationEntry.cc
  2334. * src/BtFileAllocationEntry.h
  2335. * src/BtSetup.cc
  2336. * src/BtSetup.h
  2337. * src/CheckIntegrityCommand.cc
  2338. * src/CheckIntegrityEntry.h
  2339. * src/ChecksumCheckIntegrityEntry.cc
  2340. * src/ChecksumCheckIntegrityEntry.h
  2341. * src/DHTSetup.cc
  2342. * src/DHTSetup.h
  2343. * src/DownloadEngine.cc
  2344. * src/FileAllocationCommand.cc
  2345. * src/FileAllocationEntry.h
  2346. * src/RequestGroup.cc
  2347. * src/RequestGroup.h
  2348. * src/RequestGroupMan.cc
  2349. * src/RequestGroupMan.h
  2350. * src/StreamCheckIntegrityEntry.cc
  2351. * src/StreamCheckIntegrityEntry.h
  2352. * src/StreamFileAllocationEntry.cc
  2353. * src/StreamFileAllocationEntry.h
  2354. * src/TrackerWatcherCommand.cc
  2355. * src/a2functional.h
  2356. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2357. Changed method signature:
  2358. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2359. DHTBucket::getGoodNodes,
  2360. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2361. * src/BNode.cc
  2362. * src/BNode.h
  2363. * src/DHTAbstractNodeLookupTask.cc
  2364. * src/DHTAutoSaveCommand.cc
  2365. * src/DHTBucket.cc
  2366. * src/DHTBucket.h
  2367. * src/DHTBucketRefreshTask.cc
  2368. * src/DHTFindNodeMessage.cc
  2369. * src/DHTGetPeersMessage.cc
  2370. * src/DHTRoutingTable.cc
  2371. * src/DHTRoutingTable.h
  2372. * test/BNodeTest.cc
  2373. * test/DHTBucketTest.cc
  2374. * test/DHTRoutingTableTest.cc
  2375. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2376. In piece selection functions, Pass std::deque<...> by reference rather
  2377. than returning it.
  2378. * src/BitfieldMan.cc
  2379. * src/BitfieldMan.h
  2380. * src/DefaultBtRequestFactory.cc
  2381. * src/DefaultPieceStorage.cc
  2382. * src/Piece.cc
  2383. * src/Piece.h
  2384. * test/BitfieldManTest.cc
  2385. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2386. Implemented rarest piece first piece selection strategy.
  2387. * src/AbstractBtMessage.cc
  2388. * src/AbstractBtMessage.h
  2389. * src/BitfieldMan.cc
  2390. * src/BitfieldMan.h
  2391. * src/BtBitfieldMessage.cc
  2392. * src/BtHaveAllMessage.cc
  2393. * src/BtHaveMessage.cc
  2394. * src/DefaultPieceStorage.cc
  2395. * src/DefaultPieceStorage.h
  2396. * src/PeerInteractionCommand.cc
  2397. * src/PieceStorage.h
  2398. * src/UnknownLengthPieceStorage.h
  2399. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2400. Rewritten readData and writeData.
  2401. * src/MultiDiskAdaptor.cc
  2402. * src/MultiDiskAdaptor.h
  2403. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2404. Move \n out of the message "Usage: ...".
  2405. * src/version_usage.cc
  2406. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Bump up version number to 0.13.2b.
  2408. * configure.ac
  2409. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2410. Added const qualifier to argument Exception& e.
  2411. * src/Logger.h
  2412. * src/SimpleLogger.cc
  2413. * src/SimpleLogger.h
  2414. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Pool connection when CWD, SIZE command fails.
  2416. * src/FtpNegotiationCommand.cc
  2417. * src/FtpNegotiationCommand.h
  2418. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2419. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2420. * src/HttpResponseCommand.cc
  2421. * src/HttpSkipResponseCommand.cc
  2422. * src/HttpSkipResponseCommand.h
  2423. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2424. Pool connection when a server returns 4xx, 5xx responses.
  2425. * src/HttpNullDownloadCommand.cc
  2426. * src/HttpNullDownloadCommand.h
  2427. * src/HttpResponse.cc
  2428. * src/HttpResponse.h
  2429. * src/HttpResponseCommand.cc
  2430. * src/HttpResponseCommand.h
  2431. * test/HttpResponseTest.cc
  2432. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2433. Print usage when no URL is specifed or bad command-line option is
  2434. specified.
  2435. * src/HelpItemFactory.cc
  2436. * src/help_tags.h
  2437. * src/option_processing.cc
  2438. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2439. Removed duplicate log message.
  2440. * src/AbstractCommand.cc (asyncResolveHostname)
  2441. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2442. Updated man page: --async-dns and --ftp-reuse-connection were added.
  2443. Changed -j option's default value from 5 to 1.
  2444. Added new examples using protocol auto detection feature.
  2445. Removed -T, -M usage where it can be omitted.
  2446. * doc/aria2c.1.txt
  2447. * doc/aria2c.1.html
  2448. * doc/aria2c.1.txt
  2449. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. Updated command-line usage text, so that it tells users that they
  2451. can specify any number of torrent files and metalink files in
  2452. command-line.
  2453. * src/version_usage.cc
  2454. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2455. Changed the default value of -j option to 1.
  2456. * src/HelpItemFactory.cc
  2457. * src/option_processing.cc
  2458. * src/usage_text.h
  2459. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2460. Added the ability to reuse connection in FTP and it is enabled by
  2461. default. It can be disabled by --ftp-reuse-connection=false option.
  2462. * src/Command.cc
  2463. * src/DownloadCommand.cc
  2464. * src/FtpDownloadCommand.cc
  2465. * src/FtpDownloadCommand.h
  2466. * src/FtpFinishDownloadCommand.cc
  2467. * src/FtpFinishDownloadCommand.h
  2468. * src/FtpInitiateConnectionCommand.cc
  2469. * src/FtpNegotiationCommand.cc
  2470. * src/FtpNegotiationCommand.h
  2471. * src/HelpItemFactory.cc
  2472. * src/Makefile.am
  2473. * src/Makefile.in
  2474. * src/OptionHandlerFactory.cc
  2475. * src/option_processing.cc
  2476. * src/prefs.h
  2477. * src/usage_text.h
  2478. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2479. Call Command::transitStatus() before calling Command::execute(),
  2480. so that the status change made in execute() is not cleared.
  2481. * src/DownloadEngine.cc
  2482. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2483. Removed forward declaration of SocketCore class.
  2484. * src/HttpDownloadCommand.h
  2485. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2486. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  2487. in InitiateConnectionCommandFactory. They should be set only when
  2488. the protocol is HTTP or HTTPS.
  2489. * src/InitiateConnectionCommandFactory.cc
  2490. * src/RequestGroup.cc
  2491. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2492. Fixed infinite loop in checksum checking.
  2493. * src/IteratableChecksumValidator.cc
  2494. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2495. Set _supportsPersistentConnection to true by default.
  2496. * src/Request.cc
  2497. * src/RequestGroup.cc
  2498. * test/HttpRequestTest.cc
  2499. * test/RequestTest.cc
  2500. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2501. Added timeout to socket pool. The default timeout is 15 seconds,
  2502. which is the same value Apache uses.
  2503. * src/DownloadEngine.cc
  2504. * src/DownloadEngine.h
  2505. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Fixed misuse of multimap::find()
  2507. * src/HttpHeader.cc
  2508. * test/HttpHeaderTest.cc
  2509. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2510. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  2511. option.
  2512. The asynchronous DNS is not capable of IPv6 yet.
  2513. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  2514. least for HTTP download.
  2515. * src/AbstractCommand.cc
  2516. * src/AbstractCommand.h
  2517. * src/AsyncNameResolver.cc
  2518. * src/AsyncNameResolver.h
  2519. * src/DHTEntryPointNameResolveCommand.cc
  2520. * src/DHTEntryPointNameResolveCommand.h
  2521. * src/DownloadEngine.cc
  2522. * src/DownloadEngine.h
  2523. * src/FtpInitiateConnectionCommand.cc
  2524. * src/FtpInitiateConnectionCommand.h
  2525. * src/HelpItemFactory.cc
  2526. * src/HttpInitiateConnectionCommand.cc
  2527. * src/HttpInitiateConnectionCommand.h
  2528. * src/InitiateConnectionCommand.cc
  2529. * src/InitiateConnectionCommand.h
  2530. * src/Makefile.am
  2531. * src/Makefile.in
  2532. * src/NameResolver.cc
  2533. * src/NameResolver.h
  2534. * src/OptionHandlerFactory.cc
  2535. * src/SocketCore.cc
  2536. * src/SocketCore.h
  2537. * src/Util.cc
  2538. * src/Util.h
  2539. * src/option_processing.cc
  2540. * src/prefs.h
  2541. * src/usage_text.h
  2542. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2543. Updated man page: --quiet, --header were added.
  2544. --metalink-servers and --enable-http-keep-alive option were updated.
  2545. * doc/aria2c.1
  2546. * doc/aria2c.1.html
  2547. * doc/aria2c.1.txt
  2548. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2549. Enable HTTP keep-alive by default.
  2550. * src/HelpItemFactory.cc
  2551. * src/option_processing.cc
  2552. * src/usage_text.h
  2553. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. Disable http keep-alive if the remote server is not HTTP/1.1.
  2555. * src/HttpConnection.cc
  2556. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2557. Receive content body of 302 response so that the connection can be
  2558. reused later when http keep-alive is enabled.
  2559. * src/HttpNullDownloadCommand.cc
  2560. * src/HttpNullDownloadCommand.h
  2561. * src/HttpResponseCommand.cc
  2562. * src/HttpResponseCommand.h
  2563. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2564. const SharedHandle<Request> -> const SharedHandle<Request>&
  2565. * src/FtpDowndloadCommand.cc
  2566. * src/FtpDowndloadCommand.h
  2567. * src/HttpDownloadCommand.cc
  2568. * src/HttpDownloadCommand.h
  2569. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Fixed the bug that the control file(.aria2 file) is not renamed
  2571. according to tryAutoFileRenaming().
  2572. tryAutoFileRenaming() was rewritten so that if both renamed file and
  2573. its control file exist, use them and continue download.
  2574. The old implementation didn't take into account of control file's
  2575. existence, so basically you couldn't continue download of renamed file.
  2576. * src/BtProgressInfoFile.h
  2577. * src/DefaultBtProgressInfoFile.cc
  2578. * src/DefaultBtProgressInfoFile.h
  2579. * src/NullProgressInfoFile.h
  2580. * src/RequestGroup.cc
  2581. * test/DefaultBtProgressInfoFileTest.cc
  2582. * test/MockBtProgressInfoFile.h
  2583. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2584. Change the default value of --metalink-servers option from `5' to `1'.
  2585. * src/HelpItemFactory.cc
  2586. * src/option_processing.cc
  2587. * src/usage_text.h
  2588. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Reimplemented transparent metalink using Accept request header.
  2590. * src/HttpRequest.cc
  2591. * src/HttpRequest.h
  2592. * src/HttpRequestCommand.cc
  2593. * src/Metalink2RequestGroup.cc
  2594. * src/RequestGroup.cc
  2595. * src/RequestGroup.h
  2596. * test/HttpRequestTest.cc
  2597. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2598. Bump up version number to 0.13.2a
  2599. * configure.ac
  2600. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2601. Updated configure.ac using the result of autoscan.
  2602. * configure.ac
  2603. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2604. Fixed compilation error without gcrypt/openssl.
  2605. * src/DownloadCommand.cc
  2606. * src/DownloadCommand.h
  2607. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2608. Reorganized version information so that it can be displayed in a
  2609. standard terminal screen without scrolling.
  2610. Removed http, ftp from Configuration section, because they are always
  2611. enabled.
  2612. * src/FeatureConfig.cc
  2613. * src/FeatureConfig.h
  2614. * src/main.cc
  2615. * src/messageDigest.cc
  2616. * src/messageDigest.h
  2617. * src/version_usage.cc
  2618. * test/FeatureConfigTest.cc
  2619. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Masked user ID in log.
  2621. * src/FtpConnection.cc (sendUser)
  2622. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2623. Removed query part from filename in HTTP download. The query part means
  2624. the substring after "?" in URL. Firefox seems do the same thing.
  2625. A query part is sometimes very long and not suitable to filename,
  2626. so I think it is better to remove it from filename.
  2627. * src/HttpRequest.cc
  2628. * src/HttpRequest.h
  2629. * src/Request.cc
  2630. * src/Request.h
  2631. * test/HttpRequestTest.cc
  2632. * test/RequestTest.cc
  2633. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. Rewritten Exception class. Throw exception object, not its pointer and
  2635. catch by reference, so that remove problematic delete operator for
  2636. catched exception.
  2637. * src/Exception.cc
  2638. * src/Exception.h
  2639. * test/ExceptionTest.cc
  2640. * src/*: All files throwing/catching exception.
  2641. * test/*: All files throwing/catching exception.
  2642. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2643. Now auto protocol detection is enabled without -Z option.
  2644. But there is a important difference between with/without -Z optoin.
  2645. For example, if you type:
  2646. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  2647. then, aria2 interprets there are 3 request groups:
  2648. (1) http://host/file, http://mirror/file <-- multi-source download
  2649. (2) file1.torrent
  2650. (3) file2.metalink
  2651. On the other hand, if you invoke above command with -Z option, it is
  2652. interpreted as 4 request groups:
  2653. (1) http://host/file
  2654. (2) file1.torrent
  2655. (3) file2.metalink
  2656. (4) http://mirror/file
  2657. I think usually user don't mix multi-source URLs and torrent files, so
  2658. there is no big problem here.
  2659. * src/main.cc
  2660. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2661. Fixed the bug that causes segmentaion fault when reading XML containing
  2662. unescapsed character like '&'.
  2663. Also a modification was made which avoids adding unnecessary
  2664. characters stack and appending unused string.
  2665. * src/ExpatMetalinkProcessor.cc
  2666. * src/FileMetalinkParserState.h
  2667. * src/FilesMetalinkParserState.h
  2668. * src/FinMetalinkParserState.h
  2669. * src/HashMetalinkParserState.h
  2670. * src/InitialMetalinkParserState.h
  2671. * src/LanguageMetalinkParserState.h
  2672. * src/MetalinkMetalinkParserState.h
  2673. * src/MetalinkParserState.h
  2674. * src/MetalinkParserStateMachine.cc
  2675. * src/MetalinkParserStateMachine.h
  2676. * src/OSMetalinkParserState.h
  2677. * src/PieceHashMetalinkParserState.h
  2678. * src/PiecesMetalinkParserState.h
  2679. * src/ResourcesMetalinkParserState.h
  2680. * src/SizeMetalinkParserState.h
  2681. * src/SkipTagMetalinkParserState.h
  2682. * src/URLMetalinkParserState.h
  2683. * src/VerificationMetalinkParserState.h
  2684. * src/VersionMetalinkParserState.h
  2685. * src/XML2SAXMetalinkProcessor.cc
  2686. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2687. Added StringFormat class, which internally calls vasprintf.
  2688. operator<< is defined for this class, so it can be used with iostream
  2689. classes nicely. SimpleLogger and following functions are rewritten
  2690. using StringFormat class.
  2691. Besides, now Logger class's methods are non-const, many classes
  2692. that has a const Logger* as a member variable are modified to remove
  2693. const qualifier from the variable declaration.
  2694. * src/HelpItemFactory.cc
  2695. * src/Request.cc
  2696. * src/SimpleLogger.cc
  2697. * src/StringFormat.cc
  2698. * src/StringFormat.h
  2699. * src/Util.cc
  2700. * src/option_processing.cc
  2701. * src/version_usage.cc
  2702. * test/StringFormatTest.cc
  2703. * src/*.h: The classes that has const Logger* as a member variable.
  2704. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2705. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  2706. failed. Also fixed memory link when exception is thrown there.
  2707. * src/main.cc (AccRequestGroup)
  2708. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Added build-in "Accept-Features" support. For now only "metalink" is
  2710. used in this header field.
  2711. This "metalink" value is removed from the list when connecting URLs
  2712. fed by metalink file to avoid loop in "transparent" metlaink.
  2713. * src/HttpRequest.cc
  2714. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  2715. header is also held in this variable. Also renamed setUserHeaders as
  2716. addHeader and it was rewritten to add header not just to clear the old
  2717. value.
  2718. * src/HttpRequestCommand.cc
  2719. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  2720. from "Accept-Features" list.
  2721. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  2722. default.
  2723. * src/RequestGroup.h
  2724. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  2725. * src/a2functional.h: Included <string> because Concat class depends on
  2726. it.
  2727. * test/HttpRequestTest.cc
  2728. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Added comment
  2730. * src/RequestGroup.cc (createNextCommand)
  2731. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2732. Capitalized METHOD_GET and METHOD_HEAD
  2733. * src/Request.cc
  2734. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2735. Added getDownloadResults() method
  2736. * src/RequestGroupMan.cc
  2737. * src/RequestGroupMan.h
  2738. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2739. Fixed the bug that aria2 exits when commands is empty() but
  2740. _routineCommands are not.
  2741. * src/DownloadEngine.cc
  2742. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2743. Use the default value pulled from Option object in HelpItemFactory.
  2744. except options whose defualt value is embedded in a usage text.
  2745. * src/HelpItemFactory.cc
  2746. * src/HelpItemFactory.h
  2747. * src/option_processing.cc
  2748. * src/version_usage.cc
  2749. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2750. Added --quiet option to make aria2 quiet (no console output).
  2751. --quiet option is tagged with ADVANCED.
  2752. * src/HelpItemFactory.cc
  2753. * src/LogFactory.cc
  2754. * src/LogFactory.h
  2755. * src/MultiUrlRequestInfo.cc
  2756. * src/MultiUrlRequestInfo.h
  2757. * src/NullStatCalc.h: New class. This class prints nothing.
  2758. * src/OptionHandlerFactory.cc
  2759. * src/main.cc
  2760. * src/option_processing.cc
  2761. * src/prefs.h
  2762. * src/usage_text.h
  2763. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2764. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  2765. * src/HelpItemFactory.cc (createHelpItems):
  2766. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2767. Fixed compilation error in ExpatMetalinkProcessor.cc
  2768. * src/ExpatMetalinkProcessor.cc
  2769. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2770. Reuse socket if the origin server supports HTTP keep-alive and
  2771. --enable-http-keep-alive or --enable-http-pipelining is given.
  2772. The current implementation doesn't reuse the connections established
  2773. against proxy server.
  2774. * src/AbstractCommand.cc
  2775. * src/DownloadEngine.cc
  2776. * src/DownloadEngine.h
  2777. * src/HttpDownloadCommand.cc
  2778. * src/HttpInitiateConnectionCommand.cc
  2779. * src/HttpResponseCommand.cc
  2780. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2781. Rewritten HTTP keep-alive and pipelining routine.
  2782. * src/AbstractCommand.cc
  2783. * src/HttpConnection.cc
  2784. * src/HttpDownloadCommand.cc
  2785. * src/HttpRequest.cc
  2786. * src/HttpRequestCommand.cc
  2787. * src/HttpResponseCommand.cc
  2788. * src/Request.cc
  2789. * src/Request.h
  2790. * src/RequestGroup.cc
  2791. * test/HttpRequestTest.cc
  2792. * test/HttpResponseTest.cc
  2793. * test/RequestTest.cc
  2794. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2795. Added missing setUserHeaders call
  2796. * src/HttpRequestCommand.cc
  2797. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2798. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  2799. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  2800. waste of time because it is more likey false.
  2801. * src/FileAllocationDispatcherCommand.cc (execute)
  2802. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Now HTTP status and version are a member variable of HttpHeader.
  2804. HTTP status is processed as a string, not integer.
  2805. * src/AbstractProxyResponseCommand.cc
  2806. * src/HttpConnection.cc
  2807. * src/HttpHeader.cc
  2808. * src/HttpHeader.h
  2809. * src/HttpHeaderProcessor.cc
  2810. * src/HttpHeaderProcessor.h
  2811. * src/HttpResponse.cc
  2812. * src/HttpResponse.h
  2813. * test/HttpHeaderProcessorTest.cc
  2814. * test/HttpResponseTest.cc
  2815. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Added --header option. You can specify any number of additional HTTP headers
  2817. like:
  2818. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  2819. Unlike other commad-line option, you can use --header option multiple times.
  2820. * src/HelpItemFactory.cc
  2821. * src/HttpRequest.{cc, h}
  2822. * src/HttpRequestCommand.cc
  2823. * src/OptionHandlerFactory.cc
  2824. * src/OptionHandlerImpl.h
  2825. * src/option_processing.cc
  2826. * src/prefs.h
  2827. * src/usage_text.h
  2828. * test/HttpRequestTest.cc (testUserHeaders)
  2829. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2830. Eliminates the time lag between sequential downloads and commands in
  2831. the same RequestGroup.
  2832. In old implementation, aria2 occasionally waits 1 seconds before
  2833. executing next command or RequestGroup.
  2834. This is really a waste of time, and new implementation eliminates
  2835. this unnecessary time lag.
  2836. * src/AbstractCommand.cc
  2837. * src/AutoSaveCommand.cc
  2838. * src/CheckIntegrityCommand.cc
  2839. * src/Command.{cc, h}
  2840. * src/DownloadEngine.{cc, h}
  2841. * src/DownloadEngineFactory.cc
  2842. * src/FileAllocationCommand.cc
  2843. * src/FileAllocationDispatcherCommand.cc
  2844. * src/FillRequestGroupCommand.cc
  2845. * src/FtpInitiateConnectionCommand.cc
  2846. * src/HaveEraseCommand.cc
  2847. * src/HttpInitiateConnectionCommand.cc
  2848. * src/HttpResponseCommand.cc
  2849. * src/RealtimeCommand.cc
  2850. * src/RequestGroup.cc
  2851. * src/RequestGroupMan.cc
  2852. * src/StreamFileAllocationEntry.cc
  2853. * src/TimeBasedCommand.{cc, h}
  2854. * src/TimedHaltCommand.cc
  2855. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  2857. keyword explicit and SharedHandle's default constructor initializes
  2858. its internal obj to null, old implementation initializes it using
  2859. obj's default constructor.
  2860. To assign null, write SharedHandle<T> x(...); x.reset();
  2861. TODO: test/SharedHandleTest.cc needs more tests.
  2862. * src/SharedHandle.h
  2863. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2864. Fixed type in man page.
  2865. * doc/aria2c.1.txt
  2866. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2867. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  2868. * src/SimpleLogger.{cc, h}
  2869. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2870. Implemented auto protocol detection.
  2871. Now you can do:
  2872. aria2c -Z http://host/file file1.torrent file2.metalink
  2873. (Note: -Z option is required for auto protcol detection.)
  2874. Then aria2c downloads 3 files simultaneously:
  2875. 1. http://host/file
  2876. 2. file1.torrent <-- read local torrent file
  2877. 3. file2.metalink <-- read local Metalink file.
  2878. Same thing goes with -i option. Assume your uris.txt contans:
  2879. http://host/file
  2880. file1.torrent
  2881. file2.metalink
  2882. Then you can do: aria2c -i uris.txt
  2883. (Note: -Z option is not needed if -i option is given.)
  2884. * src/main.cc
  2885. * src/ProtocolDetector.{cc, h}
  2886. * test/ProtocolDetectorTest.cc
  2887. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2888. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  2889. installed
  2890. * src/ARC4Encryptor.h
  2891. * src/ARC4Decryptor.h
  2892. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2893. Renamed argument from 'errno' to 'err', since errno is confused with
  2894. errno defined in errno.h.
  2895. * src/LibgcryptARC4Decryptor.h
  2896. * src/LibgcryptARC4Context.h
  2897. * src/LibgcryptDHKeyExchange.h
  2898. * src/LibgcryptARC4Encryptor.h
  2899. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2900. Rewritten choking algorithm.
  2901. * src/PeerChokeCommand.{cc, h}
  2902. * src/BtInterestedMessage.cc
  2903. * src/PeerSessionResource.{cc, h}
  2904. * src/DefaultPeerStorage.{cc, h}
  2905. * src/BtNotInterestedMessage.cc
  2906. * src/DefaultBtMessageDispatcher.{cc, h}
  2907. * src/BtMessageDispatcher.h
  2908. * src/Peer.{cc, h}
  2909. * src/BtLeecherStateChoke.{cc, h}
  2910. * src/BtSetup.cc
  2911. * src/BtSeederStateChoke.{cc, h}
  2912. * src/PeerStorage.h
  2913. * test/MockPeerStorage.h
  2914. * test/MockBtMessageDispatcher.h
  2915. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2916. Fixed compilation error on x84-64 platform.
  2917. * src/AuthConfig.cc: Included ostream.
  2918. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2919. Rewritten getBasename() and getDirname(), without standard library
  2920. basename(), dirname().
  2921. * src/File.cc
  2922. * test/FileTest.cc
  2923. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2924. Added Simplified Chinese translation. Also updated the following
  2925. translations: Polish, Dutch, German. Great thanks to all translators.
  2926. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2927. Suppress content-range error when 'Content-Range' response header
  2928. doesn't contains bytes-unit specifier 'bytes'
  2929. * src/HttpHeader.cc (getRange)
  2930. * test/HttpHeaderTest.cc
  2931. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2932. Fixed compilation error with g++-4.3
  2933. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2934. Added missing include files for MinGW
  2935. * test/HttpHeaderProcessorTest.cc
  2936. * test/DHTRoutingTableSerializerTest.cc
  2937. * test/DHTRoutingTableDeserializerTest.cc
  2938. * test/UriListParserTest.cc
  2939. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Now download line is printed nicely with no garbage at the end of
  2941. line. I use ioctl to get the columns of terminal.
  2942. If stdout is redirected to another device, instead of carriage return,
  2943. end of line '\n' character is used. This is feature request#1909659
  2944. * src/ConsoleStatCalc.cc (calculateStat)
  2945. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Included a2time.h
  2947. * src/DHTMessageDispatcher.h
  2948. * src/DHTMessageEntry.h
  2949. * src/DHTReplaceNodeTask.h
  2950. * src/DHTMessageTracker.h
  2951. * src/Util.h
  2952. * src/CookieBox.h
  2953. * src/SocketCore.h
  2954. * src/DefaultBtMessageDispatcher.h
  2955. * src/SocketCore.cc
  2956. * src/Util.cc
  2957. * src/DHTPingTask.h
  2958. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2959. Fixed high memory footprint when DHT is enabled.
  2960. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  2961. queued than it is processed and the queue is getting longer. As a
  2962. consequence, momory usage is increased.
  2963. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  2964. replacement cache in DHTBucket which is described in Kademlia paper.
  2965. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  2966. DHTReplaceNodeTask.
  2967. * src/DHTBucket.{h, cc}
  2968. (cacheNode): New function.
  2969. (getCachedNodes): New function.
  2970. (dropNode): Push back cached node to _nodes.
  2971. * test/DHTBucketTest.cc
  2972. (testCacheNode): New test
  2973. (testDropNode): New test
  2974. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2975. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  2976. the unused 4KB memory when ssl is not used.
  2977. * src/SocketCore.cc
  2978. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. Added summary log for peer announce storage.
  2980. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  2981. Removed cast
  2982. * src/DefaultPeerStorage.cc (addPeer)
  2983. Log exception message
  2984. * src/DHTMessageTracker.cc (handleTimeout)
  2985. Fixed casting
  2986. * test/HttpRequestTest.cc
  2987. * test/MetalinkProcessorTest.cc
  2988. * test/PieceTest.cc
  2989. * test/MetalinkEntryTest.cc
  2990. * test/SequenceTest.cc
  2991. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. * src/ParameterizedStringParser.cc (createLoop):
  2993. Removed unused variable sstep.
  2994. * src/AlphaNumberDecorator.h (decode): Rewritten.
  2995. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. * src/Util.{h, cc}
  2997. (parseUInt): New function.
  2998. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  2999. The actual range is uint32_t.
  3000. * test/UtilTest.cc
  3001. * src/ParameterizedStringParser.cc:
  3002. Use Util::parseUInt() for loop variables.
  3003. * test/ParameterizedStringParserTest.cc
  3004. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3005. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Rewritten the functions for binding port.
  3007. * src/DHTConnectionImpl.{h, cc}
  3008. * src/PeerListenCommand.{h, cc}
  3009. * src/DHTSetup.cc
  3010. * src/BtSetup.cc
  3011. * test/DHTConnectionImplTest.cc
  3012. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. type cleanup for allmost all remaining files.
  3014. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3015. Type clarification
  3016. * src/PeerSessionResource.{h, cc}
  3017. * src/DefaultPieceStorage.{h, cc}
  3018. * src/Peer.{h, cc}
  3019. * test/PeerSessionResourceTest.cc
  3020. Use div function
  3021. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3022. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3023. Type clarification
  3024. * src/DefaultPeerStorage.{h, cc}
  3025. * test/DefaultPeerStorageTest.cc
  3026. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Type clarification: size_t for length or size, uint64_t for file
  3028. length, off_t for file offset.
  3029. * src/DefaultBtProgressInfoFile.cc
  3030. * src/DefaultBtContext.{h, cc}
  3031. * src/DefaultBtInteractive.cc
  3032. * src/DownloadCommand.{h, cc}
  3033. * src/IteratableChunkChecksumValidator.{h, cc}
  3034. * src/SegmentMan.{h, cc}
  3035. * src/SingleFileDownloadContext.{h, cc}
  3036. * src/IteratableChecksumValidator.{h, cc}
  3037. * src/BtContext.h
  3038. * src/IteratableValidator.h
  3039. * src/DownloadContext.h
  3040. * test/SingleFileDownloadContextTest.cc
  3041. * test/DefaultBtContextTest.cc
  3042. * test/MockBtContext.h
  3043. * test/Metalink2RequestGroupTest.cc
  3044. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3045. Type clarification: size_t for length or size, uint64_t for file
  3046. length, off_t for file offset.
  3047. * src/PiecedSegment.cc
  3048. * src/GrowSegment.h
  3049. * src/DefaultBtRequestFactory.h
  3050. * src/DefaultBtProgressInfoFile.cc
  3051. * src/UnknownLengthPieceStorage.h
  3052. * src/DefaultPieceStorage.cc
  3053. * src/UnknownLengthPieceStorage.cc
  3054. * src/DefaultBtInteractive.cc
  3055. * src/GrowSegment.cc
  3056. * src/BitfieldMan.h
  3057. * src/DownloadCommand.cc
  3058. * src/BtRequestFactory.h
  3059. * src/PiecedSegment.h
  3060. * src/DefaultPieceStorage.h
  3061. * src/Piece.cc
  3062. * src/DefaultBtRequestFactory.cc
  3063. * src/PieceStorage.h
  3064. * src/Segment.h
  3065. * src/Piece.h
  3066. * src/BitfieldMan.cc
  3067. * src/Util.cc
  3068. * test/DefaultBtProgressInfoFileTest.cc
  3069. * test/DefaultPieceStorageTest.cc
  3070. * test/MockPieceStorage.h
  3071. * test/BtRequestMessageTest.cc
  3072. * test/DefaultBtMessageDispatcherTest.cc
  3073. * test/BitfieldManTest.cc
  3074. * test/GrowSegmentTest.cc
  3075. * test/PieceTest.cc
  3076. * test/SegmentTest.cc
  3077. * test/SegmentManTest.cc
  3078. * test/DefaultBtRequestFactoryTest.cc
  3079. * test/MockBtRequestFactory.h
  3080. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3081. Fixed compilation error with --disable-nls
  3082. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3083. in gettext.h causes the problem.
  3084. * src/common.h
  3085. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3086. Removed subPiece related functions.
  3087. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3088. * src/DefaultPieceStorage.{h, cc}
  3089. * test/PieceTest.cc
  3090. * test/DefaultPieceStorageTest.cc
  3091. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3092. Use unsigned char for data store.
  3093. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3094. Bump up version number to 0.13.0+1
  3095. * configure.ac
  3096. * Release 0.13.0+1
  3097. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3098. Changed inactive connection timeout to 120.
  3099. To accept more mulually interested peers, disconnect peer when there
  3100. is no interest between us after certain time passed.
  3101. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3102. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3103. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3104. when compiled with async DNS support.
  3105. * src/DownloadEngine.cc
  3106. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3107. value '10' will be a little bit short when some DNS servers are
  3108. offline and several DNS servers are tried. It should be configured
  3109. by command-line option.
  3110. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3111. Merged Ross's mingw patch.
  3112. * src/DHTRoutingTableDeserializer.cc
  3113. * src/DHTRoutingTableSerializer.cc
  3114. * src/Platform.{h, cc}
  3115. * src/timegm.h
  3116. * src/gettimeofday.h
  3117. * src/getaddrinfo.h
  3118. * src/SocketCore.h
  3119. * src/common.h
  3120. * src/inet_aton.h
  3121. * src/DownloadEngine.h
  3122. * src/gai_strerror.h
  3123. * src/a2netcompat.h
  3124. * configure.ac
  3125. * configure
  3126. * aclocal.m4
  3127. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Included missing iostream.
  3129. * test/AllTest.cc
  3130. * test/BtDependencyTest.cc
  3131. * test/BtExtendedMessageTest.cc
  3132. * test/DHTConnectionImplTest.cc
  3133. * test/DHTMessageFactoryImplTest.cc
  3134. * test/DHTMessageTrackerEntryTest.cc
  3135. * test/DHTNodeTest.cc
  3136. * test/DHTRoutingTableSerializerTest.cc
  3137. * test/DefaultBtAnnounceTest.cc
  3138. * test/DefaultBtContextTest.cc
  3139. * test/DefaultBtMessageFactoryTest.cc
  3140. * test/DefaultExtensionMessageFactoryTest.cc
  3141. * test/HandshakeExtensionMessageTest.cc
  3142. * test/HttpResponseTest.cc
  3143. * test/MetalinkProcessorTest.cc
  3144. * test/MultiFileAllocationIteratorTest.cc
  3145. * test/SocketCoreTest.cc
  3146. * test/UTPexExtensionMessageTest.cc
  3147. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3148. Reorganized includes.
  3149. * src/NameResolver.cc
  3150. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3151. Fixed compilation error without ares/c-ares
  3152. * src/NameResolver.h:
  3153. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3154. Added a test for large file.
  3155. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3156. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3157. Fixed the bug that file size is ignored if size > INT32_MAX
  3158. * src/SizeMetalinkParserState.cc (endElement):
  3159. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3160. Bump up version number to 0.13.0
  3161. * configure.ac
  3162. * Release 0.13.0
  3163. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. Updated Makfefile.am to make 'make dist' work.
  3165. Now packaged filename is aria2c-VERSION.tar.bz2.
  3166. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3167. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3168. Large file support is now configured by configure script.
  3169. * configure.ac
  3170. Removed unsused source files
  3171. * src/
  3172. * test/
  3173. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3174. Peer.h and BtContext.h respectively.
  3175. * src/Peer.h
  3176. * src/BtContext.h
  3177. Updated translations.
  3178. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3179. translations. Great thanks to all translators!;)
  3180. * po/*.{po, gmo}
  3181. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3182. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3183. statically declared sha1 MessageDigestContext.
  3184. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3185. initialization of short-lived MessageDigestContext.
  3186. * src/MessageDigestHelper.{h, cc}
  3187. * src/main.cc
  3188. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3189. the initialization of MessageDigestContext every time in validating
  3190. chunk checksum.
  3191. * src/DownloadCommand.{h, cc}
  3192. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3193. Add a file descriptor which connected to fast peer(latency<1500) to
  3194. select(). This change reduced CPU load.
  3195. * src/PeerInteractionCommand.cc
  3196. * src/DefaultBtInteractive.{h, cc}
  3197. * src/BtInteractive.h
  3198. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3199. Fixed the previous insufficient fix for possible busy loop.
  3200. * src/MSEHandshake.cc (identifyHandshakeType)
  3201. Removed unused functions.
  3202. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  3203. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3204. Fixed possible busy loop if first 20 bytes are not received for a few
  3205. minutes.
  3206. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  3207. * src/ReceiverMSEHandshakeCommand.cc
  3208. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Fixed compilation error
  3210. * src/ExpatMetalinkProcessor.cc
  3211. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3212. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3213. * src/DHTBucket.cc
  3214. Removed unnecessary cast.
  3215. * src/HandshakeExtensionMessage.cc
  3216. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3217. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3218. is missing.
  3219. * src/OptionHandlerFactory.cc
  3220. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3221. Fixed the bug that HAVE message is not sent for a piece they are
  3222. downloaded fom http/ftp server before any BitTorrent handshake is done
  3223. with peers.
  3224. * src/DefaultBtInteractive.cc
  3225. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3226. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3227. * src/Makefile.am
  3228. * src/Makefile.in
  3229. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3230. Updated README. Added html version of README and man page.
  3231. * README
  3232. * README.html
  3233. * readme2html: Shell script to generate README.html from README using
  3234. asciidoc.
  3235. * doc/aria2c.1.html
  3236. * doc/makeman: Added the line to generate aria2c.1.html
  3237. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. Fixed offset calculation.
  3239. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3240. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3241. Rewritten itos and uitos using template. llitos and ullitos are
  3242. replaced with itos and uitos respectively.
  3243. * src/Util.{h, cc}
  3244. * test/UtilTest.cc
  3245. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3247. of the number of bytes required for storing public key and shared
  3248. secret.
  3249. * src/LibgcryptDHKeyExchange.h
  3250. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3251. * src/MSEHandshake.cc
  3252. * test/DHKeyExchangeTest.cc
  3253. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3254. Removed since they are not used.
  3255. * src/Xml2MetalinkProcessor.{h, cc}
  3256. * src/Socket.cc
  3257. * src/SegmentSplitter.{h, cc}
  3258. * test/Xml2MetalinkProcessorTest.cc
  3259. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Fixed the bug that prevents aria2 from stopping other than by pressing
  3261. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3262. option. aria2 doesn't stop even after --seed-time is satisfied and
  3263. continues to output blank lines in the console.
  3264. * src/ReceiverMSEHandshakeCommand.cc
  3265. * src/PeerReceiveHandshakeCommand.cc
  3266. * src/PeerListenCommand.cc
  3267. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Bump up version number to 0.13.0rc
  3269. * configure.ac
  3270. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Updated man page and some usage text.
  3272. * doc/aria2c.1.txt
  3273. * src/usage_text.h
  3274. * po/*.{po, gmo}
  3275. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3276. Updated translations. Added Finnish and Hebrew translations.
  3277. Great thanks to all translators!
  3278. * po/*.{po, gmo}
  3279. * po/LINGUAS
  3280. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3281. Log more detailed information about each message.
  3282. * src/DHTQueryMessage.{h, cc}
  3283. * src/DHTGetPeersMessage.{h, cc}
  3284. * src/DHTFindNodeReplyMessage.{h, cc}
  3285. * src/DHTGetPeersReplyMessage.{h, cc}
  3286. * src/DHTAnnouncePeerMessage.{h, cc}
  3287. * src/DHTResponseMessage.{h, cc}
  3288. * src/DHTFindNodeMessage.{h, cc}
  3289. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3290. Use constants defined in prefs.h
  3291. * src/option_processing.cc
  3292. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3294. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3295. Make room for future enchancements for IPv6 addresses.
  3296. Bump up version number of dht.dat file format to 2.
  3297. Not compatible with previous version.
  3298. * src/DHTRoutingTableSerializer.cc
  3299. * src/DHTRoutingTableDeserializer.cc
  3300. * test/DHTRoutingTableSerializerTest.cc
  3301. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3302. Added handling for the return values from
  3303. PeerMessageUtil::createcompact().
  3304. * src/DefaultBtContext.cc (computeFastSet):
  3305. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3306. Fixed abort when peer's ip address is IPv4-mapped address.
  3307. * src/DefaultBtContext.cc (computeFastSet)
  3308. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3309. cannot handle IPv4-mapped addresses.
  3310. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3311. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Proper return value handling for OpenSSL functions.
  3313. * src/LibsslDHKeyExchange.h
  3314. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3315. Random bytes generation using libgcrypt and OpenSSL.
  3316. * src/DHTUtil.{h, cc}
  3317. * test/DHTUtilTest.cc
  3318. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3320. received.
  3321. * src/DHTMessageReceiver.cc (receiveMessage)
  3322. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. Fixed the bug that a return code is always 0. BUG#1897704
  3324. If error occurred during the download or there exist unfinished
  3325. downloads, aria2 returns with code 1.
  3326. * src/RequestGroupMan.{h, cc}
  3327. * src/MultiUrlRequestInfo.{h, cc}
  3328. * src/main.cc
  3329. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3330. IPv6 support for SocketCore class.
  3331. TODO: In SocketCore::establishConnection(), this is insufficient to
  3332. determin the failure of connect() here because the socket is
  3333. non-blocking state. The next addresses should be tried after select().
  3334. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3335. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3336. instead which address family independent.
  3337. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3338. information in a compact peer format which is for IPv4 only.
  3339. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3340. this is a spec of BitTorrent protocol.
  3341. * src/SocketCore.{h, cc}
  3342. * src/PeerMessageUtil.cc
  3343. * test/SocketCoreTest.cc
  3344. * test/PeerMessageUtilTest.cc
  3345. * test/DHTConnectionImplTest.cc
  3346. Handle IPv4-mapped addresses.
  3347. * src/DHTNode.cc: Now identity is determined by node id.
  3348. * src/DHTMessageTrackerEntry.cc
  3349. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3350. should handle it.
  3351. * src/DHTRoutingTableDeserializer.cc
  3352. * src/DHTMessageFactoryImpl.cc
  3353. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3354. Change the unit of --stop option from a minute to a second.
  3355. * src/usage_text.h
  3356. * src/DownloadEngineFactory.cc
  3357. * src/OptionHandlerFactory.cc
  3358. * src/message.h
  3359. * src/TimedHaltCommand.cc
  3360. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3361. Make listening socket non-block mode.
  3362. * src/FtpConnection.cc
  3363. * src/FtpNegotiationCommand.{h, cc}
  3364. * src/PeerListenCommand.cc
  3365. Fixed the bug that cause slow ftp negotiation.
  3366. * src/FtpNegotiationCommand.{h, cc}
  3367. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3368. Added basic tag to --enable-dht, --dht-listen-port option.
  3369. * src/HelpItemFactory.cc (createHelpItems)
  3370. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3371. Updated text.
  3372. * src/usage_text.h
  3373. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3374. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3375. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3376. Determin _threadtholdSpeed in each constructor for
  3377. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3378. * src/ActivePeerConnectionCommand.{h, cc}
  3379. * src/PeerReceiveHandshakeCommand.{h, cc}
  3380. * src/BtSetup.cc
  3381. * src/BtConstants.h
  3382. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Added --bt-min-crypto-level and --bt-require-crypto options.
  3384. * src/OptionHandlerFactory.cc
  3385. * src/MSEHandshake.cc
  3386. * src/HelpItemFactory.cc
  3387. * src/option_processing.cc
  3388. * src/ReceiverMSEHandshakeCommand.cc
  3389. * src/prefs.h
  3390. * src/DefaultBtAnnounce.cc
  3391. * src/InitiatorMSEHandshakeCommand.cc
  3392. * src/usage_text.h
  3393. * test/MSEHandshakeTest.cc
  3394. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Bump version number to 0.13.0b
  3396. * configure.ac
  3397. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3398. Updated doc.
  3399. * src/MessageDigestHelper.h:
  3400. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Use raw message digest as a token instead of its hexadecimal
  3402. representation.
  3403. * src/DHTTokenTracker.cc (generateToken)
  3404. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3405. Added Message Stream Encryption(MSE) support.
  3406. Currently, aria2 accepts incoming connections with Obfuscation Header
  3407. and legacy BitTorrent Header and establishes connections with
  3408. Obfuscation Header first and if failed then retry with legacy
  3409. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3410. choose ARC4. The new option to change the default behavior is planned.
  3411. For tracker extension, "supportcrypto=1" is added statically.
  3412. * src/PeerInitiateConnectionCommand.{h, cc}
  3413. * src/PeerConnection.{h, cc}
  3414. * src/HandleRegistry.h
  3415. * src/SocketCore.h
  3416. * src/PeerReceiveHandshakeCommand.{h, cc}
  3417. * src/BtRegistry.{h, cc}
  3418. * src/PeerListenCommand.cc
  3419. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3420. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3421. * src/MSEHandshake.{h, cc}
  3422. * src/ARC4Encryptor.h
  3423. * src/ARC4Decryptor.h
  3424. * src/LibgcryptARC4Encryptor.h
  3425. * src/LibgcryptARC4Decryptor.h
  3426. * src/LibgcryptARC4Context.h
  3427. * src/LibsslARC4Encryptor.h
  3428. * src/LibsslARC4Decryptor.h
  3429. * src/LibsslARC4Context.h
  3430. * src/DHKeyExchange.h
  3431. * src/LibgcryptDHKeyExchange.h
  3432. * src/LibsslDHKeyExchange.h
  3433. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3434. * test/DefaultBtAnnounceTest.cc
  3435. * test/ARC4Test.cc
  3436. * test/DHKeyExchangeTest.cc
  3437. Removed prepareForRetry() because it is not used.
  3438. * src/PeerAbstractCommand.{h, cc}
  3439. * src/PeerInteractionCommand.{h, cc}
  3440. * src/PeerInitiateConnectionCommand.{h, cc}
  3441. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3442. Added the ability to load nodes from torrent file. These nodes are
  3443. added to the routing table when downloading that torrent.
  3444. * src/BtContext.h
  3445. * src/DefaultBtContext.{h, cc}
  3446. * src/DHTSetup.cc
  3447. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  3448. hostname and port pair, and resolves all of them.
  3449. * src/NameResolver.{h, cc}: Added reset().
  3450. * src/RequestGroup.cc
  3451. * test/DefaultBtContextTest.cc
  3452. * test/MockBtContext.h
  3453. Removed assert() from DefaultBtContext and throw exception instead.
  3454. * src/DefaultBtContext.cc
  3455. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3456. Fixed segmentation fault bug when exiting if dht is disabled.
  3457. * src/RequestGroup.cc
  3458. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3459. Fixed typo in log message and define the message in message.h
  3460. * src/TimedHaltCommand.cc
  3461. * src/message.h
  3462. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Included RecoverableException.h to fix compilation error.
  3464. * test/DHTMessageFactoryImplTest.cc
  3465. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3466. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  3467. * test/DHTPingMessageTest.cc
  3468. * test/DHTGetPeersMessageTest.cc
  3469. * test/DHTFindNodeMessageTest.cc
  3470. * test/DHTAnnouncePeerMessageTest.cc
  3471. * test/MockDHTMessage.h
  3472. * test/MockDHTMessageFactory.h
  3473. * test/MockDHTMessageDispatcher.h: New class.
  3474. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  3476. virtual.
  3477. * src/DHTMessageDispatcher.h
  3478. * src/DHTMessageDispatcherImpl.{h, cc}
  3479. * src/DHTSetup.cc
  3480. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. Adding handling of DHT error message. Just log error message and
  3482. throw exception.
  3483. * src/DHTMessageFactoryImpl.cc
  3484. * test/DHTMessageFactoryImplTest.cc
  3485. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3486. Added handling of dynamic cast failure.
  3487. * src/DHTNodeLookupTask.cc
  3488. * src/DHTPeerLookupTask.cc
  3489. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3490. Added the ability to stop aria2 itself when given time has passed
  3491. from start. Use --stop option to specify time in minutes.
  3492. When 0 is given, this feature is disabled.
  3493. * src/OptionHandlerFactory.cc
  3494. * src/TimeBasedCommand.h: Make _interval protected scope.
  3495. * src/HelpItemFactory.cc
  3496. * src/option_processing.cc
  3497. * src/prefs.h
  3498. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  3499. before calling RequestGroupMan::fillRequestGroupFromReserver().
  3500. Without this modification, the result list shows "ERR" when aria2 is
  3501. stopped by --stop option. It should be "INPR".
  3502. * src/DownloadEngine.{h, cc}
  3503. * src/DownloadEngineFactory.cc
  3504. * src/usage_text.h
  3505. * src/TimedHaltCommand.{h, cc}: New class.
  3506. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3507. Bootstrap through node added by port message.
  3508. Currently bootstrap is executed if the number of buckets in routing
  3509. table is 1.
  3510. * src/BtPortMessage.{h, cc}
  3511. * src/DefaultBtMessageFactory.{h, cc}
  3512. * src/PeerInteractionCommand.cc
  3513. * test/BtPortMessageTest.cc
  3514. * test/MockDHTTask.h
  3515. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3516. Extract the Peer class's member variables, which are only needed after
  3517. PeerInteractionCommand, into PeerSessionResource class.
  3518. This class is instantiated in PeerInteractionCommand class's ctor and
  3519. released in its dtor.
  3520. This will make Peer class lightweight and uses less memory for peers
  3521. which are not connected and wait in the queue.
  3522. * src/PeerChokeCommand.cc
  3523. * src/PeerSessionResource.{h, cc}
  3524. * src/PeerInteractionCommand.cc
  3525. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  3526. * src/DefaultBtInteractive.cc
  3527. * src/BtPieceMessage.cc
  3528. * src/BtInterestedMessage.cc
  3529. * src/BtUnchokeMessage.cc
  3530. * src/DefaultPeerStorage.{h, cc}
  3531. * src/PeerInitiateConnectionCommand.cc
  3532. * src/ActivePeerConnectionCommand.cc
  3533. * src/BtNotInterestedMessage.cc
  3534. * src/DefaultBtMessageDispatcher.cc
  3535. * src/BtChokeMessage.cc
  3536. * src/BtRequestMessage.cc
  3537. * src/Peer.{h, cc}
  3538. * src/BtRegistry.h
  3539. * src/TrackerWatcherCommand.cc
  3540. * src/PeerReceiveHandshakeCommand.cc
  3541. * test/BtExtendedMessageTest.cc
  3542. * test/BtAllowedFastMessageTest.cc
  3543. * test/BtCancelMessageTest.cc
  3544. * test/DefaultPieceStorageTest.cc
  3545. * test/BtBitfieldMessageTest.cc
  3546. * test/BtHaveMessageTest.cc
  3547. * test/BtNotInterestedMessageTest.cc
  3548. * test/BtRequestMessageTest.cc
  3549. * test/PeerSessionResourceTest.cc
  3550. * test/DefaultBtMessageDispatcherTest.cc
  3551. * test/PeerTest.cc
  3552. * test/BtInterestedMessageTest.cc
  3553. * test/BtRejectMessageTest.cc
  3554. * test/BtChokeMessageTest.cc
  3555. * test/DefaultPeerStorageTest.cc
  3556. * test/BtHaveNoneMessageTest.cc
  3557. * test/BtHaveAllMessageTest.cc
  3558. * test/DefaultExtensionMessageFactoryTest.cc
  3559. * test/BtUnchokeMessageTest.cc
  3560. * test/DefaultBtMessageFactoryTest.cc
  3561. * test/HandshakeExtensionMessageTest.cc
  3562. * test/UTPexExtensionMessageTest.cc
  3563. * test/DefaultBtRequestFactoryTest.cc
  3564. * test/BtPieceMessageTest.cc
  3565. Removed typedef PeerStats.
  3566. * src/PeerStat.h
  3567. * src/SegmentMan.cc
  3568. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3569. Added std namespace to copy, remove_copy, back_inserter,
  3570. front_inserter.
  3571. * src/RequestGroupMan.cc
  3572. * src/DefaultPieceStorage.cc
  3573. * src/StreamFileAllocationEntry.cc
  3574. * src/BtFileAllocationEntry.cc
  3575. * src/RequestGroup.cc
  3576. * src/MetalinkEntry.cc
  3577. * src/DelegatingPeerListProcessor.cc
  3578. * src/DefaultBtRequestFactory.cc
  3579. * src/DefaultBtMessageDispatcher.cc
  3580. * src/version_usage.cc: Included <algorithm>
  3581. * src/main.cc
  3582. * src/MetalinkParserController.cc
  3583. * src/DefaultBtContext.cc
  3584. * src/DownloadEngineFactory.cc
  3585. * src/a2algo.h
  3586. Removed.
  3587. * test/StreamUriListParserTest.cc
  3588. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3589. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  3590. ActivePeerConnectionCommand when it is given and
  3591. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  3592. * src/ActivePeerConnectionCommand.{h, cc}
  3593. * src/BtSetup.cc
  3594. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3595. Only add socket to DownloadEngine's select routine when peer or
  3596. localhost is unchoked and interested. This lowers CPU usage a
  3597. little bit.
  3598. * src/PeerInteractionCommand.cc
  3599. * src/PeerAbstractCommand.{h, cc}
  3600. * src/BtInteractive.h
  3601. * src/DefaultBtInteractive.{h, cc}
  3602. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Revert previous change because get_peers message is needed for
  3604. announce_peer anyway.
  3605. * src/DHTGetPeersCommand.cc
  3606. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. Request peers thought DHT only when download hasn't finished.
  3608. * src/DHTGetPeersCommand.cc
  3609. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3610. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  3611. * src/DHTBucketRefreshTask.{h, cc}
  3612. * src/DHTSetup.cc
  3613. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3614. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  3615. standard classes.
  3616. Included string.h where mem* function are used.
  3617. Added namespace aria2.
  3618. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Create directory before saving DHT routing table.
  3620. Now ios::failure is now handled properly.
  3621. * src/DHTAutoSaveCommand.cc
  3622. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Removed unnecessary cerr.
  3624. * src/DownloadEngine.cc
  3625. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3626. Catch exception inside DHTMessageReceiver::receiveMessage().
  3627. Log unknown message.
  3628. * src/DHTMessageReceiver.{h, cc}
  3629. * src/DHTMessageFactory.h
  3630. * src/DHTMessageFactoryImpl.{h, cc}
  3631. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  3632. * src/DHTInteractionCommand.cc
  3633. * src/DHTUnknownMessage.{h, cc}
  3634. * test/DHTUnknownMessageTest.cc
  3635. * test/MockDHTMessageFactory.h
  3636. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3637. Commented out ip address comparison because a host can have multiple
  3638. ip addresses and it is hard to predict the hostname is resolved into
  3639. which one.
  3640. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  3641. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3642. * po/Makefile.in: Removed since this is generated by configure.
  3643. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3644. Fixed compiler warning about redefinition of SIZE_MAX.
  3645. Use common.h instead of config.h directly here.
  3646. * src/Platform.{h, cc}
  3647. The check of ENABLE_NLS is made in gettext.h, so it is not required
  3648. here.
  3649. * common.h
  3650. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  3651. Updated gettext related files.
  3652. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  3653. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  3654. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3655. Added DHT functionality, compatible with mainline.
  3656. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  3657. You may need to specify entry point to DHT network using
  3658. --dht-entry-point. DHT uses UDP port to listen incoming message.
  3659. Use --dht-listen-port to specify port number. Make sure that your
  3660. firewall configuration can pass through UDP traffic to the port.
  3661. The routing table is saved in $HOME/.aria2/dht.dat.
  3662. * src/DHT*
  3663. * src/BNode.{h, cc}
  3664. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  3665. particular torrent.
  3666. * src/Data.cc: Rewritten ctor.
  3667. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  3668. --dht-entry-point.
  3669. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  3670. * src/RequestGroup.cc: Initialize DHT functionality. When download
  3671. ends, remove BtContext from DHTPeerAnnounceStorage.
  3672. * src/BtPortMessage.{h, cc}: Rewritten.
  3673. * src/message.h
  3674. * src/OptionHandlerImpl.cc
  3675. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  3676. --dht-entry-point.
  3677. * src/Dictionary.{h, cc} (remove): New function.
  3678. * src/prefs.h
  3679. * src/DefaultBtMessageFactory.h
  3680. * src/BtHandshakeMessage.cc
  3681. * src/ActivePeerConnectionCommand.cc
  3682. * src/SocketCore.{h, cc}: Added datagram socket support.
  3683. * src/DefaultBtMessageFactory.cc
  3684. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  3685. Create DHT commands.
  3686. * src/BtMessageFactory.h
  3687. * src/PeerMessageUtil.{h, cc}
  3688. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3689. Fixed the bug that log file is not written when configuration file doesn't exist.
  3690. This is caused by using Logger class before LogFactory is not configured.
  3691. BUG #1875079
  3692. * src/option_processing.cc
  3693. Warning message "configuration doesn't exist" is only printed when --conf is
  3694. given.
  3695. * src/option_processing.cc
  3696. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  3698. ShaVisitor is now deprecated and slated to be removed.
  3699. * src/DefaultBtContext.cc
  3700. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Externalize message to message.h
  3702. * src/Platform.cc
  3703. * src/message.h
  3704. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3705. Set default domain and default path to cookie.
  3706. * src/HttpResponse.cc
  3707. * src/CookieBox.{h, cc}
  3708. * src/CookieParser.{h, cc}
  3709. * test/CookieParserTest.cc
  3710. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3711. Added --no-conf and --conf-path command-line option.
  3712. --no-conf option disables loading aria2.conf file.
  3713. --conf-path option changes the configuration file path. The default
  3714. file path is $HOME/.aria2/aria2.conf
  3715. Added a warning message when the configuration file is not found.
  3716. * src/HelpItemFactory.cc
  3717. * src/option_processing.cc
  3718. * src/prefs.h
  3719. * src/usage_text.h
  3720. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. Added the message to inform users that other help categories are
  3722. available in -h option.
  3723. * src/version_usage.cc
  3724. * src/TagContainer.{h, cc}
  3725. * test/TagContainerTest.cc
  3726. * src/TaggedItem.{h, cc}
  3727. * test/TaggedItemTest.cc
  3728. * src/HelpItem.h
  3729. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3730. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  3731. from PiecedSegment's ctor.
  3732. Previously Piece::getAllMissingBlockIndexes() is called from
  3733. PiecedSegment() but it is rather expensive since only first element is
  3734. used.
  3735. * src/PiecedSegment.cc
  3736. * src/Piece.{h, cc}
  3737. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Rewritten get*Missing*Index functions. Now no need to allocate memory
  3739. each time these functions are called.
  3740. * src/BitfieldMan.{h, cc}
  3741. * test/BitfieldManTest.cc
  3742. * src/array_fun.h
  3743. * test/array_funTest.cc
  3744. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  3745. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  3746. filtered. Removed unnecessary cast to int32_t.
  3747. * src/BitfieldMan.{h, cc}
  3748. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  3750. payload length(4bytes) are received. This happens because lenbufLength
  3751. is not updated in this particular case and successive call of
  3752. receiveMessage() overwrites payload length with bytes recieved which
  3753. are payload body.
  3754. * src/PeerConnection.{h, cc}
  3755. * src/message.h
  3756. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  3758. peer if there are peers that have same ipaddr and port.
  3759. I've experiened segmentation fault and "pure virtual function was
  3760. called" error.
  3761. * src/Peer.h
  3762. * test/PeerTest.cc
  3763. * src/DefaultPeerStorage.cc
  3764. * test/DefaultPeerStorageTest.cc
  3765. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3766. Removed a call to isPowerOf() because it is no longer necessary here
  3767. and a request block is not always power of 2.
  3768. BUG#1866924
  3769. * src/PeerMessageUtil.cc (checkLength)
  3770. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3771. Fixed the bug that always first found Segment is removed from
  3772. usedSegmentEntries. Removed unused functions.
  3773. * src/SegmentMan.{h, cc}
  3774. * test/SegmentManTest.cc
  3775. Fixed the bug that ServerHost is not removed.
  3776. * src/RequestGroup.cc
  3777. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3778. Fixed the bug that SegmentMan::completeSegment() is not called
  3779. even if Segment is complete when --lowest-speed-limit is enabled.
  3780. BUG#1864525
  3781. * src/DownloadCommand.{h, cc}
  3782. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Fixed: hash algorithm 'sha1' is always used.
  3784. * src/DownloadCommand.cc (validatePieceHash)
  3785. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3786. Added --enable-peer-exchange command-line option.
  3787. * src/OptionHandlerFactory.cc
  3788. * src/HelpItemFactory.cc
  3789. * src/option_processing.cc
  3790. * src/usage_text.h
  3791. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. Move extension from BtRuntime to ExtensionMessageFactory, because
  3793. extension can be specified per peer, not per torrent.
  3794. * src/DefaultBtInteractive.cc
  3795. * src/BtRuntime.h
  3796. * src/ExtendedMessagingAware.h
  3797. * src/ExtensionMessageFactory.h
  3798. * src/DefaultExtensionMessageFactory.cc
  3799. * test/DefaultExtensionMessageFactoryTest.cc
  3800. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3801. Added categorized option help. Specify category using --help option.
  3802. Also added the ability to search options in forward match.
  3803. * src/HelpItem.{h, cc}
  3804. * test/HelpItemTest.cc
  3805. * src/HelpItemFactory.{h, cc}
  3806. * src/TagContainer.{h, cc}
  3807. * test/TagContainerTest.cc
  3808. * src/option_processing.cc
  3809. * src/prefs.h
  3810. * src/TaggedItem.{h, cc}
  3811. * test/TaggedItemTest.cc
  3812. * src/version_usage.cc
  3813. * src/help_tags.h
  3814. * src/usage_text.h
  3815. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Fixed segmentation fault when bad torrent metainfo is parsed.
  3817. Added dynamic_cast properly to detect the misconfiguration of metainfo
  3818. and then throw exception or skip it.
  3819. * src/DefaultBtContext.{h, cc}
  3820. * test/DefaultBtContextTest.cc
  3821. * src/AnnounceList.cc
  3822. * src/CompactPeerListProcessor.cc
  3823. * src/message.h
  3824. * src/DefaultBtAnnounce.{h, cc}
  3825. * test/DefaultBtAnnounceTest.cc
  3826. * src/BencodeVisitor.cc
  3827. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. Added missing "B"(=Byte). So now the message looks like this:
  3829. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  3830. * src/message.h (MSG_SHARE_RATIO_REPORT)
  3831. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. Show the seed ratio after torrent downloads.
  3833. For example, after torrent download completed and --seed-time and
  3834. --seed-ratio conditions are fulfilled, following message is printed
  3835. right after "Download complete: .....":
  3836. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  3837. * src/RequestGroupMan.cc
  3838. * src/RequestGroup.{h, cc}
  3839. * src/message.h
  3840. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Remove a defunct control file. A defunct control file means that while
  3842. it exists, but the corresponding download file is missing.
  3843. After its removal, a download restarts from the beginning.
  3844. * src/RequestGroup.cc
  3845. * src/message.h
  3846. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3847. Allocate bitfield in Peer when it is really used. More specifically,
  3848. bitfield in Peer is allocated after the connection is established and
  3849. deallocated when the connection is dropped.
  3850. Since 2 parameters(piece length and total length) was removed from the
  3851. constructor of Peer class, many test classes were modified accordingly.
  3852. See svn log for more detailed information.
  3853. * src/PeerInteractionCommand.cc
  3854. * src/CompactPeerListProcessor.cc
  3855. * src/Peer.cc
  3856. * src/DefaultPeerListProcessor.cc
  3857. * src/PeerListenCommand.cc
  3858. * src/PeerReceiveHandshakeCommand.cc
  3859. Fixed memory leak
  3860. * src/Piece.cc
  3861. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  3863. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  3864. command-line options.
  3865. * src/option_processing.cc
  3866. * src/ActivePeerConnectionCommand.cc
  3867. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3868. Send have message to peer if it already has the piece.
  3869. * src/BtHaveMessage.{h, cc}
  3870. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  3872. port.
  3873. * src/DefaultPeerStorage.{h, cc}
  3874. * test/DefaultPeerStorageTest.cc
  3875. * src/HandshakeExtensionMessage.cc
  3876. * test/HandshakeExtensionMessageTest.cc
  3877. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  3878. * src/PeerStorage.h
  3879. * test/MockPeerStorage.h
  3880. * src/PeerListenCommand.cc
  3881. * src/PeerReceiveHandshakeCommand.cc
  3882. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3883. Added --metalink-enable-unique-protocol option.
  3884. * src/Metalink2RequestGroup.cc
  3885. * src/option_processing.cc
  3886. * src/prefs.h
  3887. * src/version_usage.cc
  3888. * doc/aria2c.1.txt
  3889. * doc/aria2c.1
  3890. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3891. Allow a peer in incomingPeer to be added peers.
  3892. * src/DefaultPeerStorage.cc
  3893. * test/DefaultPeerStorageTest.cc
  3894. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  3896. I could reproduce this bug in following procedure:
  3897. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  3898. 2. Restart aria2.
  3899. 3. You see the download stopped around 99%.
  3900. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  3901. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  3902. If timeout is reached, then _nextCommand is unused and it may contains
  3903. segments and they won't be canceled. Actually, timeout is not needed
  3904. here because if the server dropped connection, then retry is made.
  3905. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Added uTorrent compatible Peer Exchange.
  3907. * src/BencodeVisitor.{h, cc}
  3908. * test/BencodeVisitorTest.cc
  3909. * src/BtConstants.h
  3910. * src/BtContext.h: Added 'private' flag.
  3911. * src/BtExtendedMessage.{h, cc}
  3912. * test/BtExtendedMessageTest.cc
  3913. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  3914. reserved field.
  3915. * test/BtHandshakeMessageTest.cc
  3916. * src/BtMessageFactory.h
  3917. * src/BtRegistry.h
  3918. * src/BtRuntime.h: This class holds default extension message IDs for
  3919. aria2. By default, aria2 uses ID 8 for ut_pex.
  3920. * src/DefaultBtContext.cc
  3921. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  3922. When it is true, aria2 enables ut_pex. This value is set by
  3923. PeerInteractionCommand.
  3924. * src/DefaultBtMessageFactory.{h, cc}
  3925. * test/DefaultBtMessageFactoryTest.cc
  3926. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  3927. handling to DefaultBtInteractive class.
  3928. * src/DefaultExtensionMessageFactory.{h, cc}
  3929. * test/DefaultExtensionMessageFactoryTest.cc
  3930. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  3931. the container(peers and incomingPeers. The equality is determined by
  3932. Peer::id).
  3933. * test/DefaultPeerStorageTest.cc
  3934. * src/ExtensionMessage.h
  3935. * test/MockExtensionMessage.h
  3936. * src/ExtensionMessageFactory.h
  3937. * test/MockExtensionMessageFactory.h
  3938. * src/HandshakeExtensionMessage.{h, cc}
  3939. * test/HandshakeExtensionMessageTest.cc
  3940. * src/MetaEntry.h
  3941. * src/Peer.{h, cc}
  3942. * src/PeerInteractionCommand.cc
  3943. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  3944. addIncomingPeer.
  3945. * src/PeerMessageUtil.{h, cc}
  3946. * src/PeerObject.h
  3947. * src/UTPexExtensionMessage.{h, cc}
  3948. * test/UTPexExtensionMessageTest.cc
  3949. * src/message.h
  3950. * src/prefs.h
  3951. Fixed the bug that returns incomplete data when it contains null
  3952. character. A convenient constructor was also added.
  3953. * src/Data.{h, cc}
  3954. Rewritten.
  3955. * src/CompactPeerListProcessor.cc
  3956. Fixed typos.
  3957. * src/message.h
  3958. * src/MetaFileUtil.cc
  3959. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Added "Status Legend" label to the explanation text of 'stat' in
  3961. download result and moved it to the last. BUG#1848214
  3962. * src/RequestGroupMan.cc
  3963. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3964. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  3965. * src/Makefie.am
  3966. * test/Makefile.am
  3967. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Fixed the bug that prevents aria2 from loading cookie file when expire
  3969. value is greater than 2^31-1. BUG#1851066
  3970. * src/CookieBoxFactory.cc
  3971. * test/CookieBoxFactoryTest.cc
  3972. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Fixed possible memory leak when an exception is thrown.
  3974. * src/XML2SAXMetalinkProcessor.cc
  3975. Added Expat support. If both libxml2 and Expat are installed, then
  3976. libxml2 is used by default.
  3977. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  3978. ExpatMetalinkProcessor according to the configuration.
  3979. * src/ExpatMetalinkProcessor.{h, cc}
  3980. * src/main.cc: Removed libxml2 specific header and init/free function.
  3981. * src/MetalinkProcessorFactory.{h, cc}
  3982. * src/MetalinkHelper.cc
  3983. * src/Metalinker.h: Removed unnecessary libxml2 header.
  3984. * src/MetalinkProcessor.h
  3985. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  3986. MetalinkProcessorTest is used instead.
  3987. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  3988. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  3989. MetalinkProcessorFactory::newInstance().
  3990. * m4/libexpat.m4
  3991. * configure.ac: Added configuration options for libexpat.
  3992. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3993. Disabled -s option in metalink download.
  3994. * src/Metalink2RequestGroup.cc
  3995. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. If several protocols are available for a mirror in metalink file,
  3997. aria2 now use one of them. --metalink-preferred-protocol option was
  3998. added to specify the preference of protocol.
  3999. * src/AbstractCommand.cc
  4000. * src/OptionHandlerFactory.cc
  4001. * src/ServerHost.{h, cc}
  4002. * src/Metalink2RequestGroup.cc
  4003. * src/RequestGroup.{h, cc}
  4004. * test/RequestGroupTest.cc
  4005. * src/option_processing.cc
  4006. * src/prefs.h
  4007. * src/HttpResponseCommand.cc
  4008. * src/MetalinkResource.{h, cc}
  4009. * src/FtpNegotiationCommand.cc
  4010. * src/MetalinkEntry.{h, cc}
  4011. * src/MetalinkEntryTest.cc
  4012. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Code cleanup and added debug log.
  4014. * src/PeerConnection.cc
  4015. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Compiler error fix: applied the patch by Tiziano Mueller
  4017. * src/RequestGroup.cc
  4018. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4019. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4020. in stopped and completed event.
  4021. * src/AnnounceList.{h, cc}
  4022. * test/AnnounceListTest.cc
  4023. * src/DefaultBtAnnounce.cc
  4024. * test/DefaultBtAnnounceTest.cc
  4025. Sorted URLs.
  4026. * test/Metalink2RequestGroupTest.cc
  4027. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4028. Removed unnecessary string copy. Updated doc and corrected indentation.
  4029. * src/Base64.cc
  4030. Fixed compilation warnings
  4031. * test/DataTest.cc
  4032. * test/HttpRequestTest.cc
  4033. * test/MetaFileUtilTest.cc
  4034. * test/RequestTest.cc
  4035. * Release 0.12.0
  4036. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4037. Updated translations
  4038. * po/{de,fr,ja,nl,ru}.po
  4039. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4040. translations. Many thanks to translators.
  4041. * po/{ca,es,it,pt_BR,sv}.po
  4042. * po/LINGUAS
  4043. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4044. Added a notice about URL
  4045. * src/version_usage.cc
  4046. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4047. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4048. aria2 repeatedly sends stopped request when tracker returns error code.
  4049. * src/AnnounceList.cc
  4050. * test/AnnounceListTest.cc
  4051. * src/AnnounceTier.h
  4052. Added a message when ctrl-c is hit.
  4053. Now second ctrl-c is also handled in signal handler.
  4054. * src/RequestGroupMan.{h, cc}
  4055. * src/RequestGroup.{h, cc}
  4056. * src/MultiUrlRequestInfo.cc
  4057. * src/DownloadEngine.cc
  4058. * src/TrackerWatcherCommand.cc
  4059. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. Code cleanup
  4061. * src/Base64.cc (encode)
  4062. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4063. Changed Direct/IO enable/disable procesure in file allocation routine.
  4064. * src/SingleFileAllocationIterator.cc
  4065. (SingleFileAllocationIterator):
  4066. Disable directIO if offset is not multiple of 512.
  4067. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4068. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4069. Enable created SingleFileAllocationIterator's directIO.
  4070. * src/FileAllocationEntry.cc
  4071. (FileAllocationEntry): Enable directIO here.
  4072. (~FileAllocationEntry): Disable directIO here.
  4073. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4075. * src/Peer.{h, cc}
  4076. * src/DefaultPieceStorage.cc
  4077. * test/DefaultPieceStorageTest.cc
  4078. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4079. Rewritten direct I/O support routine
  4080. * src/SingleFileAllocationIterator.cc
  4081. * src/MultiDiskAdaptor.{h, cc}
  4082. * src/ByteArrayDiskWriter.h
  4083. * src/AbstractSingleDiskAdaptor.h
  4084. * src/AbstractDiskWriter.cc
  4085. * src/DefaultPieceStorage.cc
  4086. * src/DiskWriter.h
  4087. * src/BinaryStream.h
  4088. * src/IteratableChunkChecksumValidator.cc
  4089. * src/IteratableChecksumValidator.cc
  4090. * src/CheckIntegrityEntry.cc
  4091. * src/FileAllocationEntry.cc
  4092. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4093. Fixed typo
  4094. * src/version_usage.cc
  4095. Updated doc
  4096. * doc/aria2c.1.txt
  4097. * doc/aria2c.1
  4098. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4099. Fixed compile error without message digest support.
  4100. * src/FileMetalinkParserState.cc
  4101. * src/MetalinkParserController.{h, cc}
  4102. * test/XML2SAXMetalinkProcessorTest.cc
  4103. * test/MetalinkParserControllerTest.cc
  4104. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. Enable direct I/O support in checksum checking.
  4106. * src/IteratableChunkChecksumValidator.{h, cc}
  4107. * test/IteratableChunkChecksumValidatorTest.cc
  4108. * src/CheckIntegrityEntry.cc
  4109. * src/PieceHashCheckIntegrityEntry.cc
  4110. * src/IteratableChecksumValidator.{h, cc}
  4111. * src/BtCheckIntegrityEntry.cc: Added doc.
  4112. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Added --allow-piece-length-change option.
  4114. * src/DefaultBtProgressInfoFile.cc
  4115. * test/DefaultBtProgressInfoFileTest.cc
  4116. * src/OptionHandlerFactory.cc
  4117. * src/option_processing.cc
  4118. * src/prefs.h
  4119. * src/version_usage.cc
  4120. * doc/aria2c.1.txt
  4121. * doc/aria2c.1
  4122. Fixed: duplicated result entry appears when exception is thrown in
  4123. RequestGroup::createInitiateConnectionCommand().
  4124. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4125. Add RequestGroup to _requestGroup after RequetGroup::
  4126. createInitiateConnectionCommand() succeeds.
  4127. Externalized message
  4128. * src/XML2SAXMetalinkProcessor.cc
  4129. * src/message.h
  4130. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4131. Forced download abort when received negative response from http/ftp
  4132. server.
  4133. * src/HttpResponseCommand.cc
  4134. * src/FtpNegotiationCommand.cc
  4135. * src/HttpResponse.cc
  4136. * src/FtpConnection.cc
  4137. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4139. the predecessor, Xml2MetalinkParser class.
  4140. I tested them against 94KB metalink file with 1234 chunk checksums.
  4141. The new one parsed it in 22msec, while it took 6000msec with old one.
  4142. * src/XML2SAXMetalinkProcessor.{h, cc}
  4143. * test/XML2SAXMetalinkProcessorTest.cc
  4144. * src/MetalinkParserController.{h, cc}
  4145. * test/MetalinkParserControllerTest.cc
  4146. * src/MetalinkParserState.h: Also added 16 subclasses.
  4147. * src/main.cc
  4148. * src/Metalink2RequestGroup.cc
  4149. * src/MetalinkHelper.cc
  4150. * src/MetalinkEntry.cc
  4151. * src/ChunkChecksum.h
  4152. Rewritten Base64 class for better performance.
  4153. * src/Base64.{h, cc}
  4154. * test/Base64Test.cc
  4155. * src/HttpRequest.cc
  4156. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4157. Fixed the bug#1841757: aria2 will connect to server to only get
  4158. file size.
  4159. * src/StreamFileAllocationEntry.cc
  4160. * src/option_processing.cc
  4161. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4162. downloads.
  4163. * src/FtpNegotiationCommand.cc
  4164. Suppressed wrong message when finding PreDownloadHandler
  4165. * src/RequestGroup.cc
  4166. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Updated usage
  4168. * src/version_usage.cc
  4169. Updated man page
  4170. * doc/aria2c.1.txt
  4171. * doc/aria2c.1
  4172. Updated po files
  4173. * po/aria2c.pot
  4174. * po/*.po
  4175. * po/*.gmo
  4176. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4177. Eliminated g++-4.2 warning
  4178. * src/DownloadHandlerConstants.{h, cc}
  4179. * src/Util.cc
  4180. * test/MetaFileUtilTest.cc
  4181. * test/PStringBuildVisitorTest.cc
  4182. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4183. * src/RequestGroup.cc
  4184. * src/BtCheckIntegrityEntry.cc
  4185. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4186. Fixed a2io.h
  4187. * src/a2io.h
  4188. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Added direct I/O support. The current implementation uses O_DIRECT,
  4190. which is not posix standard and is tested on linux 2.6.21.
  4191. Currently only file allocation uses direct I/O.
  4192. * src/SingleFileAllocationIterator.{h, cc}
  4193. * test/SingleFileAllocationIteratorTest.cc
  4194. * src/MultiFileAllocationIterator.{h, cc}
  4195. * test/MultiFileAllocationIteratorTest.cc
  4196. * src/BinaryStream.h
  4197. * src/DiskWriter.h
  4198. * src/AbstractDiskWriter.{h, cc}
  4199. * src/ByteArrayDiskWriter.h
  4200. * src/DiskAdaptor.h
  4201. * src/AbstractSingleDiskAdaptor.{h, cc}
  4202. * src/MultiDiskAdaptor.{h, cc}
  4203. * src/FileAllocationEntry.cc
  4204. * src/Util.{h, cc}
  4205. * src/OptionHandlerFactory.cc
  4206. * src/prefs.h
  4207. * src/version_usage.cc
  4208. * src/option_processing.cc
  4209. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  4210. handleException.
  4211. * src/MultiFileAllocationIterator.cc
  4212. Added EINTR handling
  4213. * src/SocketCore.cc
  4214. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Updated usage
  4216. * src/version_usage.cc
  4217. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Applied Ross's patch for MinGW port.
  4219. * src/DownloadEngine.h
  4220. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4221. Set Content-Type to SingleFileDownloadContext when http response is
  4222. received.
  4223. * src/HttpResponseCommand.cc
  4224. * src/HttpResponse.{h, cc}
  4225. * test/HttpResponseTest.cc
  4226. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Rewritten to add content-type support.
  4228. * src/DownloadHandler.{h, cc}
  4229. * src/BtPostDownloadHandler.{h, cc}
  4230. * test/BtPostDownloadHandlerTest.cc
  4231. * src/MetalinkPostDownloadHandler.{h, cc}
  4232. * test/MetalinkPostDownloadHandlerTest.cc
  4233. * src/PostDownloadHandler.{h, cc}
  4234. * src/DownloadHandlerConstants.{h, cc}
  4235. * src/RequestGroup.cc
  4236. * src/HttpResponseCommand.cc
  4237. * src/FtpNegotiationCommand.cc
  4238. * src/SingleFileDownloadContext.{h, cc}
  4239. * src/RequestGroup.h
  4240. * src/RequestGroupCriteria.h
  4241. * src/ContentTypeRequestGroupCriteria.h
  4242. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4243. If it is give, metalink/torrent file is not written to the disk, but
  4244. just is kept in memory. Parsing is occurred on memory.
  4245. * src/MetalinkHelper.{h, cc}
  4246. * src/MetalinkProcessor.h
  4247. * src/Xml2MetalinkProcessor.{h, cc}
  4248. * test/Xml2MetalinkProcessorTest.cc
  4249. * src/DownloadHandlerFactory.{h, cc}
  4250. * test/DownloadHandlerFactoryTest.cc
  4251. * src/PreDownloadHandler.{h, cc}
  4252. * src/OptionHandlerFactory.cc
  4253. * src/DefaultBtContext.{h, cc}
  4254. * test/DefaultBtContextTest.cc
  4255. * src/version_usage.cc
  4256. * src/Metalink2RequestGroup.{h, cc}
  4257. * src/RequestGroup.{h, cc}
  4258. * src/a2functional.h
  4259. * test/a2functionalTest.cc
  4260. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4261. * src/OptionHandlerImpl.h
  4262. * src/prefs.h
  4263. * src/Util.{h, cc}
  4264. * test/UtilTest.cc
  4265. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4266. memory usage.
  4267. * src/RequestGroupMan.{h, cc}
  4268. * src/DownloadEngine.cc
  4269. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4270. WeakHandle to SharedHandle because WeakHandle could be null.
  4271. * src/RequestGroup.{h, cc}
  4272. * src/DownloadEngineFactory.cc
  4273. * src/DownloadResult.h
  4274. Set totalLength after download finished
  4275. * src/UnknownLengthPieceStorage.{h, cc}
  4276. Keep torrent file specified in metalink in memory.
  4277. * src/Metalink2RequestGroup.cc
  4278. * src/BtDependency.cc
  4279. * src/TrueRequestGroupCriteria.h
  4280. Fixed the bug: seekg is used where seekp should be used.
  4281. * src/ByteArrayDiskWriter.cc
  4282. * test/ByteArraydiskWriterTest.cc
  4283. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4284. Fixed syntax error
  4285. * test/SequenceTest.cc
  4286. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4288. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4289. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4290. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4291. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4292. Added the check to see whether ares_host_callback accepts timeouts
  4293. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4294. * src/NameResolver.{h, cc}
  4295. * m4/libcares.m4
  4296. * configure.ac: Set C++ for language choice.
  4297. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4298. Fixed: compilation fails without c-ares/ares
  4299. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4300. Generate http/ftp commands only when download is incomplete.
  4301. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4302. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Corrected typo. Examples are removed since they are available in man
  4304. page.
  4305. * src/version_usage.cc
  4306. Updated man page.
  4307. * doc/aria2c.1
  4308. * doc/aria2c.1.txt
  4309. * doc/makeman: Commented out sed command.
  4310. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4311. Throw DlAbortEx when a remote file is not found.
  4312. * src/HttpResponse.cc
  4313. * src/FtpNegotiationCommand.cc
  4314. * src/message.h
  4315. Overwrite an existing file if --allow-overwrite=true is given.
  4316. * src/RequestGroup.cc
  4317. Removed unused functions
  4318. * src/AbstractCommand.h
  4319. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4320. Removed 'extern' from 'extern typedef ...' in src/*.h
  4321. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Updated usage
  4323. * src/version_usage.cc
  4324. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Trim announce URL
  4326. * src/DefaultBtContext.cc
  4327. * test/ShaVisitorTest.cc
  4328. Trim argument s. Give trimed s to exception constructor.
  4329. * src/Util.cc (parseInt)(parseLLInt)
  4330. * test/UtilTest.cc
  4331. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4332. Set precision back to 1.
  4333. * src/ConsoleStatCalc.cc (calculateStat)
  4334. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Replaced strtol with Util::parseInt
  4336. * src/ChunkedEncoding.cc
  4337. * src/HttpConnection.cc
  4338. * src/CookieBoxFactory.cc
  4339. * src/ParameterizedStringParser.cc
  4340. * src/Util.cc
  4341. * test/UtilTest.cc
  4342. * test/OptionHandlerTest.cc
  4343. * src/Request.cc
  4344. Throw exception when empty string is given. The message for exception
  4345. changed.
  4346. * src/Util.cc (parseInt)(parseLLInt)
  4347. * src/message.h
  4348. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4350. set to 1.
  4351. * src/ConsoleStatCalc.cc (calculateStat)
  4352. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Preallocate non-requested file which is adjacent forward to requested
  4354. file('requested' files means the files given in --select-file option)
  4355. if they share a same piece.
  4356. This fixes long pause in the file system which doesn't support sparse
  4357. files like FAT32 while downloading.
  4358. * src/MultiFileAllocationIterator.{h, cc}
  4359. * test/MultiFileAllocationIteratorTest.cc
  4360. * src/FileEntry.{h, cc}
  4361. Removed unused _option.
  4362. * src/MultiDiskAdaptor.h
  4363. * test/MultiDiskAdaptorTest.cc
  4364. * src/DefaultPieceStorage.cc
  4365. Set the default value of --seed-ratio to 1.0.
  4366. If 0.0 is given, then seeding continues regardless of share ratio.
  4367. * src/version_usage.cc
  4368. * src/option_processing.cc
  4369. * src/BtSetup.cc
  4370. * doc/aria2c.1.txt
  4371. * doc/aria2c.1
  4372. Fixed: Selective download is not working in BitTorrent
  4373. * src/RequestGroup.cc
  4374. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4375. * src/PieceStorage.h
  4376. * test/MockPieceStorage.h
  4377. * src/UnknownLengthPieceStorage.h
  4378. * src/DefaultPieceStorage.{h, cc}
  4379. * src/Metalink2RequestGroup.cc
  4380. * src/RequestGroup.cc
  4381. * src/Sequence.h
  4382. * test/SequenceTest.cc
  4383. * src/IntSequence.h
  4384. * src/message.h
  4385. * src/Util.{h, cc}
  4386. * test/UtilTest.cc
  4387. Added new function 'parse' to catch exception thrown by subclass's
  4388. parseArg
  4389. * src/OptionHandler.h
  4390. * src/OptionParser.cc
  4391. * src/NameMatchOptionHandler.h
  4392. * src/OptionHandlerImpl.h
  4393. * test/OptionHandlerTest.cc
  4394. Added IntegerRangeOptionHandler. Used for --listen-port and
  4395. --select-file. Now --listen-port accepts range of port.
  4396. * src/OptionHandlerFactory.cc
  4397. * src/version_usage.cc
  4398. * src/OptionHandlerImpl.h
  4399. * src/option_processing.cc
  4400. * src/BtSetup.cc
  4401. * src/PeerListenCommand.{h, cc}
  4402. * doc/aria2c.1.txt
  4403. * doc/aria2c.1
  4404. Implemented operator< for Exception class to provide easy way to print
  4405. exception stack trace.
  4406. * src/Exception.{h, cc}
  4407. * src/main.cc
  4408. * src/option_processing.cc
  4409. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. * src/version_usage.cc
  4411. (showVersion): Reworked.
  4412. (showUsage): Added examples.
  4413. Removed Hint for total length and file name.
  4414. * src/Metalink2RequestGroup.cc
  4415. * src/RequestGroup.{h, cc}
  4416. * src/HttpResponseCommand.cc
  4417. * src/FtpNegotiationCommand.cc
  4418. Now --follow-torrent and --follow-metalink option work properly.
  4419. * src/RequestGroup.cc
  4420. Updated man page
  4421. * doc/aria2c.1.txt
  4422. * doc/aria2c.1
  4423. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4424. Removed.
  4425. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4426. Use Segment::operator==()
  4427. * src/HttpConnection.cc
  4428. * src/Segment.h
  4429. Updated usage
  4430. * src/version_usage.cc
  4431. Added EINTR treatment.
  4432. * src/SocketCore.cc
  4433. * src/AbstractDiskWriter.cc
  4434. Rewritten.
  4435. * src/Util.cc (rangedFileCopy)
  4436. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4437. Fixed typo.
  4438. * src/version_usage.cc
  4439. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Implemented. Now -c option works fine.
  4441. * src/DefaultPieceStorage.cc (markPiecesDone)
  4442. * test/DefaultPieceStorageTest.cc
  4443. Removed.
  4444. * src/SegmentMan.{h, cc}
  4445. (markAllPiecesDone)
  4446. (markPieceDone)
  4447. Synchronized po files with
  4448. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  4449. * src/fr.po
  4450. * src/ru.po
  4451. * src/de.po
  4452. * src/ja.po
  4453. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4454. Added ifdef and some modifications to compile without BitTorrent,
  4455. Metalink, MessageDigest
  4456. support.
  4457. * src/PieceHashCheckIntegrityEntry.cc
  4458. * src/MetalinkEntry.h
  4459. * src/version_usage.cc
  4460. * src/main.cc
  4461. * src/DownloadEngine.{h, cc}
  4462. * src/Metalink2RequestGroup.cc
  4463. * src/Peer.cc
  4464. * src/RequestGroup.cc
  4465. * src/MetalinkHelper.cc
  4466. * test/DefaultPieceStorageTest.cc
  4467. * test/MetalinkPostDownloadHandlerTest.cc
  4468. * test/Metalink2RequestGroupTest.cc
  4469. Hide TOTAL SPD when all downloads complete.
  4470. * src/ConsoleStatCalc.cc
  4471. Log target system information.
  4472. * src/main.cc
  4473. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Now --metalink-location accepts a comma-deliminated list of locations.
  4475. * src/MetalinkEntry.{h, cc}
  4476. * test/MetalinkEntryTest.cc
  4477. * src/version_usage.cc
  4478. * src/Metalink2RequestGroup.cc
  4479. * src/Xml2MetalinkProcessor.cc
  4480. * test/Xml2MetalinkProcessorTest.cc
  4481. * doc/aria2c.1.txt
  4482. * doc/aria2c.1
  4483. * src/Util.cc (toUpper)(toLower): Rewritten.
  4484. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Added the ability to detect duplicate download entry which is about to
  4486. download the same file other RequestGroup is downloading.
  4487. * src/RequestGroup.cc
  4488. * src/HttpResponseCommand.cc
  4489. * src/FtpNegotiationCommand.cc
  4490. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4491. Recalculates download progress when loading a control file,
  4492. if the piece length of DownloadContext is different from the one saved
  4493. in the control file. Currently in-flight pieces are ignored.
  4494. * src/DefaultBtProgressInfoFile.cc
  4495. * test/DefaultBtProgressInfoFileTest.cc
  4496. * src/Util.{h, cc}
  4497. * test/UtilTest.cc
  4498. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4499. Do not rotate tiers in announce-list.
  4500. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  4501. AnnounceList::allTiersFailed() used instead to detect whether all
  4502. tiers are tried and failed.
  4503. * test/DefaultBtAnnounceTest.cc
  4504. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  4505. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  4506. * test/AnnounceListTest.cc
  4507. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  4508. clause. Catch RecoverableException instead of DlRetryEx instead.
  4509. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4510. Implemented checksum validation feature(1 checksum for each file)
  4511. The validation takes place after the download.
  4512. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  4513. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  4514. * src/CheckIntegrityCommand.cc: Changed log message.
  4515. * src/Metalink2RequestGroup.cc: Set checksum to
  4516. SingleFileDownloadContext.
  4517. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  4518. PieceHashCheckIntegrity class.
  4519. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  4520. PieceHashCheckIntegrity class.
  4521. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  4522. * src/IteratableValidator.h: New class.
  4523. * src/message.h
  4524. * src/CheckIntegrityEntry.{h, cc}
  4525. * src/IteratableChunkChecksumValidator.{h, cc}
  4526. * src/SingleFileDownloadContext.h
  4527. * src/DownloadCommand.cc
  4528. --allow-overwrite=true is no longer needed to check file integrity
  4529. before download in BitTorrent download.
  4530. * src/RequestGroup.cc (getInitialCommand)
  4531. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  4532. throws exception.
  4533. * src/RequestGroupMan.cc (getInitialCommands)
  4534. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4535. urlencode the given url inside Request::parseUrl(...)
  4536. * src/Request.{h, cc}
  4537. * src/Util.{h, cc}
  4538. * test/RequestTest.cc
  4539. Removed #!metalink3! notation support because it is deleted from
  4540. the metalink specification.
  4541. * src/Request.{h, cc}
  4542. * test/RequestTest.cc
  4543. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4544. Don't connect server before checking file integrity at startup, if
  4545. filesize and output file path are known.
  4546. * src/AbstractCommand.cc
  4547. * src/StreamFileAllocationEntry.cc
  4548. * src/Metalink2RequestGroup.cc
  4549. * src/RequestGroup.{h, cc}
  4550. * src/HttpResponseCommand.cc
  4551. * src/FtpNegotiationCommand.cc
  4552. Added DownloadFailureException. If it is thrown, RequestGroup should
  4553. halt.
  4554. * src/AbstractCommand.cc
  4555. * src/DownloadFailureException.h
  4556. * src/RequestGroup.cc
  4557. Catch RecoverableException, instead of DlAbortEx.
  4558. * src/RequestGroupMan.cc
  4559. * src/FillRequestGroupCommand.cc
  4560. * src/MetaFileUtil.cc
  4561. * src/IteratableChunkChecksumValidator.cc
  4562. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  4563. getGID())
  4564. * src/CheckIntegrityCommand.cc
  4565. * src/message.h
  4566. Print gid instead of idx.
  4567. * src/RequestGroupMan.cc
  4568. Removed exception throwers declaration.
  4569. * src/DirectDiskAdaptor.{h, cc}
  4570. * src/SocketCore.{h, cc}
  4571. * src/MultiDiskAdaptor.{h, cc}
  4572. * src/HttpConnection.{h, cc}
  4573. * src/HttpResponse.{h, cc}
  4574. * src/DiskAdaptor.{h, cc}
  4575. * src/CopyDiskAdaptor.{h, cc}
  4576. * src/MultiDiskAdaptor.{h, cc}
  4577. * src/HttpHeaderProcessor.{h, cc}
  4578. * src/AbstractSingleDiskAdaptor.{h, cc}
  4579. * src/Util.{h, cc}
  4580. * test/UtilTest.cc
  4581. * src/DefaultDiskWriter.{h, cc}
  4582. * src/FtpConnection.{h, cc}
  4583. * src/AbstractDiskWriter.{h, cc}
  4584. Removed duplicate code.
  4585. * src/StreamCheckIntegrityEntry.cc
  4586. Removed unnecessary include.
  4587. * src/DiskWriter.h
  4588. Included Exception.h
  4589. * src/option_processing.cc
  4590. Included 2 files and added doc
  4591. * src/TrackerWatcherCommand.cc
  4592. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  4593. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Changed CheckIntegrityEntry interface so that it can define
  4595. the action when all the chunk checksums are valid.
  4596. * src/CheckIntegrityEntry.h
  4597. * src/StreamCheckIntegrityEntry.{h, cc}
  4598. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  4599. are valid, then aira2 goes to seeding mode. Sometimes it is better
  4600. to exit rather than doing seeding. So, it would be good to toggle this
  4601. behavior.
  4602. * src/CheckIntegrityCommand.cc
  4603. * src/AbstractCommand.cc
  4604. * src/RequestGroup.cc
  4605. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4606. Reflect the download length of in-flight pieces.
  4607. It makes the download length readout more precise.
  4608. * src/DefaultPieceStorage.{h, cc}
  4609. * test/DefaultPieceStorageTest.cc
  4610. * src/a2functional.h
  4611. * test/a2functionalTest.cc
  4612. Lower CPU load when --max-download-limit is used.
  4613. There is up and down in speed indicator when enabling
  4614. http-pipelining but a download goes well. I think the problem is that
  4615. because http-pipelining is enabled, DownloadCommand is created for
  4616. each segment and in its constructor, PeerStat::downloadStart() is
  4617. called. In PeerStat::downloadStart(), speed calculation object is
  4618. reseted, which makes download speed zero.
  4619. * src/DownloadCommand.cc
  4620. Rewritten using accumulate.
  4621. * src/RequestGroupMan.cc (calculateStat)
  4622. Code clearnup.
  4623. * src/FtpNegotiationCommand.cc
  4624. * src/HttpResponseCommand.cc
  4625. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. Fixed: Can not resume: aria2 reports download already finished.
  4627. * src/AbstractCommand.{h, cc}
  4628. * src/HttpResponseCommand.cc
  4629. * src/FtpNegotiateCommand.cc
  4630. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Now a file is stored in the directory specified in .metalnk file
  4632. (file[@name]).
  4633. * src/Metalink2RequestGroup.cc
  4634. Create the directory structure when opening the file if it doesn't
  4635. exist.
  4636. * src/AbstractDiskWriter.cc
  4637. * src/Util.{h, cc}
  4638. * src/File.h
  4639. * test/UtilTest.cc
  4640. Removed file name comparison
  4641. * src/Metalink2RequestGroup.cc
  4642. * src/HttpResponseCommand.cc
  4643. Rewritten using Util::mkdirs()
  4644. * src/FileEntry.cc (setupDir)
  4645. * test/FileEntryTest.cc
  4646. Updated doc
  4647. * src/SingleFileDownloadContext.h
  4648. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4649. Now SleepCommand dispatches nextCommand when halt is requested.
  4650. It avoids a possible long wait after hitting CTRL-C.
  4651. * src/SleepCommand.{h, cc}
  4652. * src/RequestGroupAware.{h, cc}
  4653. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4654. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  4655. to open listen port, then remove the port number from the tracker
  4656. request.
  4657. * src/DefaultBtAnnounce.cc
  4658. * test/DefaultBtAnnounceTest.cc
  4659. * test/MockPieceStorage.h
  4660. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  4661. them more testable.
  4662. * src/DefaultBtAnnounce.{h, cc}
  4663. * src/DefaultBtContext.{h, cc}
  4664. * src/Util.{h, cc}
  4665. * test/DefaultBtAnnounceTest.cc
  4666. * test/DefaultBtContextTest.cc
  4667. * test/UtilTest.cc
  4668. Added 'B' to upload bytes readout.
  4669. * src/ConsoleStatCalc.cc
  4670. Now the listen port for BitTorrent download is opened when it is
  4671. needed.
  4672. * src/DownloadEngineFactory.cc
  4673. * src/BtSetup.{h, cc}
  4674. * src/PeerListenCommand.{h, cc}
  4675. Now an exception thrown while parsing tracker response is now logged.
  4676. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  4677. called, which means no retry is made in this case, assuming a tracker
  4678. has a problem.
  4679. * src/TrackerWatcherCommand.cc
  4680. Fixed: downloading a file whose length is unkown fails.
  4681. * src/DownloadCommand.cc
  4682. Simplified prepareForNextSegment()
  4683. * src/DownloadCommand.cc
  4684. Updated
  4685. * po/POTFILES.in
  4686. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. Re-implemented a file listing for Metalink, which was dropped while
  4688. http/ftp/torrent integration was being implemented.
  4689. * src/MetalinkHelper.{h, cc}: New class.
  4690. * test/MetalinkHelperTest.cc
  4691. * src/main.cc
  4692. * src/Metalink2RequestGroup.cc
  4693. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Added the ability to display the detailed torrent file information.
  4695. Now -S option gives not only a file listing, but also total download
  4696. length, info hash, announce URI, piece length, the number of pieces,
  4697. and mode(single or multi-torrent).
  4698. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  4699. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  4700. KiB)
  4701. * test/UtilTest.cc
  4702. * src/main.cc
  4703. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4704. Added ftp://USER:PASSWD@Servername automatic parsing.
  4705. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  4706. _password. Recognize username and password in URI.
  4707. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  4708. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  4709. * src/RequestFactory.{h, cc}: Removed.
  4710. * src/AuthConfigFactory.{h, cc}: New class.
  4711. * src/FtpConnection.cc: Use AuthConfigFactory.
  4712. * src/HttpRequest.cc: Use AuthConfigFactory.
  4713. * test/HttpRequestTest.cc: Updated.
  4714. * test/RequestTest.cc: Updated.
  4715. * test/AuthConfigFactoryTest.cc: New class.
  4716. * test/RequestFactoryTest.cc: Removed.
  4717. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Use RequestGroup::allDownloadFinished() to decide whether the control
  4719. file should be removed or saved.
  4720. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  4721. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  4722. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4723. Use File::renameTo()
  4724. * src/DefaultBtProgressInfoFile.cc
  4725. Added --no-file-allocation-limit command-line option.
  4726. * src/version_usage.cc
  4727. * src/option_processing.cc
  4728. * src/OptionHandlerFactory.cc
  4729. * src/RequestGroup.{h, cc}
  4730. * src/BtCheckIntegrityEntry.cc
  4731. * src/StreamCheckIntegrityEntry.cc
  4732. * src/prefs.h
  4733. * doc/aria2c.1.txt
  4734. * doc/aria2c.1
  4735. Now prealloc is the default value for --file-allocation option.
  4736. * src/version_usage.cc
  4737. * src/option_processing.cc
  4738. * doc/aria2c.1.txt
  4739. * doc/aria2c.1
  4740. Don't URL-encode user-agent.
  4741. * src/HttpRequest.cc
  4742. Updated translations
  4743. * po/LINGUAS: Added nl for Dutch translation.
  4744. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  4745. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  4746. * po/POTFILES.in: Updated.
  4747. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4748. Added the ability to recognize url-list in a torrent file.
  4749. The retrieved URLs are attached to the corresponding FileEntry.
  4750. * src/DefaultBtContext.{h, cc}
  4751. * src/FileEntry.{h, cc}
  4752. * test/DefaultBtContextTest.cc
  4753. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  4755. after the download finishes.
  4756. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  4758. the data smaller than block length.
  4759. A block length can be specified by constructor's argument.
  4760. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  4761. Get a missing piece in the range of given FileEntry. This function is
  4762. not used in the program yet.
  4763. * src/Util.h: Added some macros.
  4764. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. Added HTTP/1.1 keep alive and pipelining support.
  4766. See --enable-http-keep-alive and --enable-http-pipelining option.
  4767. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  4768. Segment.
  4769. * src/HttpDownloadCommand.{h, cc}
  4770. * src/OptionHandlerFactory.cc
  4771. * src/HttpConnection.{h, cc}
  4772. * src/version_usage.cc
  4773. * src/HttpInitiateConnectionCommand.cc
  4774. * src/FtpInitiateConnectionCommand.cc
  4775. * src/Segment.h
  4776. * src/HttpRequestCommand.{h, cc}
  4777. * src/option_processing.cc
  4778. * src/prefs.h
  4779. * src/HttpResponseCommand.cc
  4780. * src/SegmentMan.{h, cc}
  4781. * src/FtpNegotiateCommand.cc
  4782. * src/HttpProxyResponseCommand.cc
  4783. * src/Request.cc
  4784. * src/HttpRequest.cc
  4785. * src/DownloadCommand.cc
  4786. * test/HttpRequestTest.cc
  4787. * test/RequestTest.cc
  4788. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  4790. finished.
  4791. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  4793. catching it inside the method.
  4794. When no file entry is found in a metalink without querying user
  4795. preferences, throw the exception with the error message that suggests
  4796. metalink file is probably broken.
  4797. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  4798. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Fixed the bug that prevents remote Metalink/Torrent file from begin
  4800. processed.
  4801. * src/RequestGroupMan.cc (removeStoppedGroup)
  4802. Added debug message.
  4803. * src/BtPostDownloadHandler.cc
  4804. * src/MetalinkPostDownloadHandler.cc
  4805. * src/PostDownloadHandler.{h, cc}
  4806. * src/RequestGroup.cc
  4807. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4808. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  4809. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  4811. stops and there are any unfinished or in-progress downloads.
  4812. Added the legend of "stat".
  4813. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Throw exception when chunck checksum verification fails.
  4815. * src/DownloadCommand.cc (validatePieceHash): New function.
  4816. * src/PiecedSegment.{h, cc} (clear): New function.
  4817. * src/GrowSegment.{h, cc} (clear): New function.
  4818. * src/Segment.h (clear): New function.
  4819. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  4820. * test/SegmentTest.cc
  4821. * test/GrowSegmentTest.cc
  4822. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Do not send referer when redirected.
  4824. * src/Request.cc (redirectUrl)
  4825. * test/RequestTest.cc
  4826. * test/HttpRequestTest.cc
  4827. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Implemented BitTorrent/http/ftp integrated download.
  4829. I've rewritten lots of files and now some headers have forward
  4830. class declarations to reduce compile time.
  4831. The implementation is extremely alpha stage, I recommend to use this
  4832. for testing purpose only.
  4833. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4834. Fixed the compilation error on 64bit platform.
  4835. * test/HttpHeaderProcessorTest.cc
  4836. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4837. Merged Ross's patch that fixes compilation problem in MinGW
  4838. * test/DefaultBtProgressInfoFileTest.cc
  4839. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4840. Updated fr.po by sebone
  4841. * po/fr.po
  4842. Updated man page.
  4843. * doc/aria2c.1.txt
  4844. * Release 0.11.3
  4845. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  4847. failure in Metalink.
  4848. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Automatically save *.aria2 control file of http/ftp download in every
  4850. 60 seconds.
  4851. * src/AutoSaveCommand.{h, cc}: New class.
  4852. * src/TimeBasedCommand.{h, cc}: New class.
  4853. * src/DownloadEngineFactory.cc (newConsoleEngine)
  4854. Disable parameterized URI support by default. Added -P option to
  4855. enable the feature.
  4856. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  4857. * src/OptionHandlerFactory.cc
  4858. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  4859. Updated Japanese translation.
  4860. * po/ja.po
  4861. Updated man page.
  4862. * doc/aria2c.1.txt
  4863. * Release 0.11.3-rc
  4864. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  4866. it is successful, then renamed to *.aria2.
  4867. This prevents *.aria2 file from being truncated or corrupted when
  4868. file system becomes out of space.
  4869. * src/DefaultBtProgressInfoFile.cc (save)
  4870. * src/SegmentMan.cc (save)
  4871. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  4872. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4873. Reduced the fragmentation of bitfield in http/ftp download.
  4874. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  4875. * test/BitfieldManTest.cc
  4876. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. Added the ability to disable segmented download in .metalink.
  4878. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  4879. 'url' tag.
  4880. * src/MetalinkEntry.{h, cc}
  4881. * src/RequestResource.{h, cc}
  4882. * src/MetalinkRequestInfo.cc
  4883. * src/Xml2MetalinkProcessor.cc
  4884. * test/Xml2MetalinkProcessorTest.cc
  4885. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Added parameterized URI support.
  4887. * src/main.cc: -Z option added.
  4888. * src/OptionHandlerFactory.cc
  4889. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  4890. * src/PStringDatum.h: New class.
  4891. * src/PStringSegment.{h,cc}: New class.
  4892. * src/PStringNumLoop.h: New class.
  4893. * src/PStringSelect.h: New class.
  4894. * src/NumberDecorator.h: New class.
  4895. * src/FixedWidthNumberDecorator.h: New class.
  4896. * src/AlphaNumberDecorator.h: New class.
  4897. * src/PStringVisitor.h: New class.
  4898. * src/PStringBuildVisitor.{h,cc}: New class.
  4899. * src/ParameterizedStringParser.{h,cc}: New class.
  4900. * src/Util.{h,cc}
  4901. (isNumber): New function.
  4902. (isLowercase): New function.
  4903. (isUppercase): New function.
  4904. (alphaToNum): New function.
  4905. * test/ParameterizedStringParserTest.cc: New class.
  4906. * test/AlphaNumberDecoratorTest.cc: New class.
  4907. * test/PStringBuildVisitorTest.cc: New class.
  4908. * test/UtilTest.cc
  4909. (testIsNumber): New function.
  4910. (testIsLowercase): New function.
  4911. (testIsUppercase): New function.
  4912. (testAlphaToNum): New function.
  4913. Added '\n' after the error message
  4914. * src/RequestInfo.h (printDownloadAbortMessage)
  4915. Added auto file renaming feature in http(s)/ftp download.
  4916. * src/main.cc: Added --auto-file-renaming command-line option.
  4917. * src/OptionHandlerFactory.cc
  4918. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  4919. * src/RequestGroup.{h, cc}
  4920. (shouldCancelDownloadForSafety): Rewritten
  4921. (tryAutoFileRenaming): New function.
  4922. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  4923. * src/HttpResponseCommand.cc
  4924. (executeInternal): Removed the call to RequestGroupMan::
  4925. isSameFileBeingDownloaded()
  4926. * src/FtpNegotiateCommand.cc
  4927. (recvSize): Removed the call to RequestGroupMan::
  4928. isSameFileBeingDownloaded()
  4929. * test/RequestGroupTest.cc: New class.
  4930. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  4932. IO.
  4933. * src/DefaultBtProgressInfoFile.cc
  4934. * src/MetaFileUtil.cc
  4935. * src/SimpleLogger.cc
  4936. * src/SegmentMan.cc
  4937. * src/Util.cc
  4938. * src/Platform.cc
  4939. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4940. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  4941. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Avoid sparse files if possible, because VFAT32 doesn't support it.
  4943. * src/DefaultDiskWriter.cc (initAndOpenFile)
  4944. Fixed the bug that prevents file allocation is not done when
  4945. dowloading multi-torrent file.
  4946. * src/AbstractDiskWriter.cc (openFile)
  4947. Increase the maximum number of -j option from 15 to 45.
  4948. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4949. Added fr.po, thanks to Charles Landemaine.
  4950. * po/fr.po
  4951. * po/LINGUAS
  4952. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4953. gcc 3.4.4 support:
  4954. * src/DefaultBtContext.cc: int32_t -> int
  4955. * src/main.cc: int -> int32_t, int32_t -> int
  4956. * src/messageDigest.h: uint32_t -> unsigned int
  4957. * src/NameResolver.h: int32_t -> int
  4958. * src/PeerConnection.cc: int -> int32_t
  4959. * src/SpeedCalc.cc: int32_t -> int
  4960. * src/TrackerUpdateCommand.h: int -> int32_t
  4961. * src/Util.cc: int32_t -> int
  4962. * src/Util.h: int32_t -> int
  4963. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  4964. * test/AnnounceListTest.cc: int -> int32_t
  4965. * test/ChunkedEncodingTest.cc: int -> int32_t
  4966. * test/DataTest.cc: int -> int32_t
  4967. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  4968. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  4969. * test/DefaultPieceStorageTest.cc: int -> int32_t
  4970. * test/FeatureConfigTest.cc: int -> int32_t
  4971. * test/MetalinkEntryTest.cc: int -> int32_t
  4972. * test/MockBtRequestFactory.h: int -> int32_t
  4973. * test/MockPieceStorage.h: int -> int32_t
  4974. * test/OptionTest.cc: int -> int32_t
  4975. * test/RequestTest.cc: int -> int32_t
  4976. * test/SegmentManTest.cc: int -> int32_t
  4977. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  4978. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4979. Move sleep functions to Util class:
  4980. * src/Util.cc
  4981. (sleep): New function.
  4982. (usleep): New function.
  4983. * src/DownloadCommand.cc: sleep -> Util::sleep
  4984. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  4985. MinGW build enhancements. The following files are added:
  4986. * src/timegm.{c,h}
  4987. Changes to support the above new files:
  4988. * configure.ac
  4989. * src/Makefile.am
  4990. * src/a2time.h
  4991. * src/Util.cc:
  4992. * src/strptime.c: Added support for %Z option.
  4993. Fixed MinGW non-blocking bug.
  4994. * src/SocketCore.cc
  4995. * src/HttpRequestCommand.cc
  4996. Miscellenous build fixes/enhancements.
  4997. * configure.ac: Added summary report.
  4998. * src/Platform.h: Tweaked #include's.
  4999. * src/a2netcompat.h: Tweaked #include's.
  5000. * src/strptime.h: Tweaked #include's.
  5001. * src/gai_strerror.c: Tweaked #include's.
  5002. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5003. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5004. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5005. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5006. Increased the initial connection size in BitTorrent download to 40.
  5007. * src/BtRuntime.h
  5008. Added the usage message of --peer-id-prefix option.
  5009. * src/main.cc
  5010. * Release 0.11.2
  5011. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5012. MessageDigestHelper is introduced in order to simplify the use
  5013. of message digest. Removed repeated code.
  5014. The message digest algorithm is now specified by string, like "sha1",
  5015. "md5".
  5016. * src/messageDigest.{h, cc}
  5017. * src/MessageDigestHelper.{h, cc}: New class.
  5018. * src/DefaultPieceStorage.cc
  5019. * src/DefaultBtContext.{h, cc}
  5020. (computeFastSet): New function.
  5021. (setInfoHash): Added for unit testing.
  5022. (setNumPieces): Added for unit testing.
  5023. * src/DefaultBtInteractive.cc
  5024. * src/BtPieceMessage.cc
  5025. * src/Peer.cc
  5026. * src/Checksum.h
  5027. * src/message.h
  5028. * src/IteratableChecksumValidator.h
  5029. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5030. inside it.
  5031. * src/SegmentMan.{h, cc}
  5032. (checkIntegrity): Removed.
  5033. * src/IteratableChunkChecksumValidator.{h, cc}
  5034. * src/Util.h
  5035. (sha1Sum): Removed.
  5036. (simpleMessageDigest): Removed.
  5037. (fileChecksum): Removed.
  5038. (computeFastSet): Removed.
  5039. * src/ShaVisitor.cc
  5040. * src/ChunkChecksum.h
  5041. * src/DownloadCommand.cc
  5042. Removed messageDigest virtual functions.
  5043. * src/MultiDiskAdaptor.{h, cc}
  5044. * src/DiskAdaptor.h
  5045. * src/ByteArrayDiskWriter.h
  5046. * src/DiskWriter.h
  5047. * src/DiskAdaptorWriter.h
  5048. * src/AbstractSingleDiskAdaptor.{h, cc}
  5049. * src/AbstractDiskWriter.{h, cc}
  5050. Fixed comilation error when message digest is disabled.
  5051. * src/MetalinkEntry.{h, cc}
  5052. * src/MetalinkRequestInfo.cc
  5053. Removed srandom and random.
  5054. * src/SimpleRandomizer.h
  5055. Added size() virtual function to DiskAdaptor
  5056. * src/MultiDiskAdaptor.h
  5057. Fixed the bug that causes that files are not opened correctly in
  5058. multi-file torrent.
  5059. * src/TorrentRequestInfo.cc
  5060. * src/MultiDiskAdaptor.cc
  5061. Added SHA256 support
  5062. * src/messageDigest.cc
  5063. * src/Xml2MetalinkProcessor.cc
  5064. Show supported message digest algorithms
  5065. * src/main.cc
  5066. Updated contact info.
  5067. * src/main.cc
  5068. Applied Ross's patch
  5069. * src/a2netcompat.h
  5070. * src/main.cc
  5071. Fixed the bug that prevents a remote metalink from not being processed
  5072. even if '-o foo.metalink' is specified.
  5073. * src/MetalinkRequestInfo.cc
  5074. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Merged Dan's patch:
  5076. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5077. Use va_copy to avoid core dump on amd64:
  5078. * src/SimpleLogger.cc
  5079. Updated contact info.
  5080. * src/main.cc
  5081. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5082. digest is not available.
  5083. * src/MetalinkEntry.h
  5084. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Make a2netcompat.h include a2io.h to fix compilation error:
  5086. * src/a2netcompat.h
  5087. * src/SocketCore.cc: Removed include of a2io.h
  5088. * src/Util.cc: Removed include of a2io.h
  5089. Gather time related functions to a2time.h:
  5090. * src/a2time.h: New file.
  5091. * src/DefaultPeerStorage.cc
  5092. * src/SimpleLogger.cc
  5093. * src/Util.{h, cc}
  5094. * src/SimpleRandomizer.h
  5095. * src/TimeA2.{h,cc}
  5096. * src/DownloadCommand.cc
  5097. * src/main.cc
  5098. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5099. a2netcompat.h:
  5100. * src/NameResolver.cc
  5101. Fixed compilation error without openssl:
  5102. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5103. Added default block to suppress compiler warnings:
  5104. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5105. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5106. MinGW build enhancements. The following files are added:
  5107. * src/gai_strerror.{c,h}
  5108. * src/gettimeofday.{c,h}
  5109. Changes to support the above new files:
  5110. * configure.ac
  5111. * src/Makefile.am
  5112. * src/a2netcompat.h
  5113. * src/TimeA2.cc
  5114. * src/DefaultPeerStorage.cc
  5115. * src/NameResolver.cc: removed mingw_strerror() function.
  5116. * src/SocketCore.cc: removed mingw_strerror() function.
  5117. Miscellaneous MinGW build fixes.
  5118. * src/a2io.h: Use _lseeki64() instead of lseek()
  5119. * src/common.h
  5120. * src/DefaultFileAllocator.cc
  5121. * src/GlowFileAllocator.cc
  5122. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5123. * src/NameResolver.cc
  5124. (callback): Changed int32_t to int.
  5125. (resolve): Changed int32_t to int.
  5126. * src/Platform.cc
  5127. * src/Platform.h
  5128. * test/MultiDiskWriterTest.cc
  5129. * test/PeerMessageUtilTest.cc
  5130. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5131. Other enhancements and fixes.
  5132. * src/HttpRequestCommand.cc
  5133. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5134. * src/SocketCore.cc:
  5135. (error): New function to abstract errno/WSAGetLastError().
  5136. (errorMsg): New function to abstract errno/WSAGetLastError().
  5137. (initiateSecureConnection): Added more detailed error reporting.
  5138. * src/SocketCore.h: Added private variable blocking, to allow
  5139. proper handling of OpenSSL psuedo-errors.
  5140. * src/message.h
  5141. (EX_SSL_INIT_FAILURE)
  5142. (EX_SSL_IO_ERROR)
  5143. (EX_SSL_PROTOCOL_ERROR)
  5144. (EX_SSL_UNKNOWN_ERROR)
  5145. (EX_SSL_CONNECT_ERROR)
  5146. (EX_SOCKET_BLOCKING)
  5147. (EX_SOCKET_NONBLOCKING)
  5148. (EX_SOCKET_UNKNOWN_ERROR)
  5149. * src/Util.cc
  5150. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5151. reserved name.
  5152. (httpGMT): Fixed typo.
  5153. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Merged Ross's win32 patch(manually)
  5155. In the course of merging, following files are added.
  5156. * src/strptime.{h,c}
  5157. * src/libgen.{h,c}
  5158. * src/inet_aton.{h,c}
  5159. * src/Platform.{h,cc}
  5160. * src/localtime_r.{h,c}
  5161. * src/getaddrinfo.{h,c}
  5162. I've gethered network related things, and put them to following file:
  5163. * src/a2netcompat.h
  5164. Also io related things are put to following file:
  5165. * src/a2io.h
  5166. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5167. * src/message.h
  5168. (MSG_ALLOCATION_COMPLETED)
  5169. (EX_TOO_LARGE_FILE)
  5170. (EX_SIZE_MISMATCH)
  5171. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5172. (EX_INVALID_CHUNK_CHECKSUM)
  5173. (EX_INVALID_RANGE_HEADER)
  5174. * src/FileAllocationCommand.cc
  5175. * src/HttpResponse.cc
  5176. * src/RequestGroup.cc
  5177. * src/MultiDiskAdaptor.cc
  5178. * src/OptionHandlerImpl.h
  5179. * src/HttpResponseCommand.cc
  5180. * src/FtpNegotiateCommand.cc
  5181. * src/IteratableChecksumValidator.cc
  5182. * src/SegmentMan.cc
  5183. * src/ChunkChecksumValidator.cc
  5184. Added Randomizer::getRandomNumber(long int)
  5185. * src/Randomizer.h (getRandomNumber)
  5186. * src/SimpleRandomizer.h (getRandomNumber)
  5187. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5188. * src/Util.cc (randomAlpha): Use this new function.
  5189. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5190. Converted int's to in32_t. long long int's are also converted to
  5191. int64_t
  5192. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5193. Fixed the bug that prevents cookies from being sent to the server
  5194. if the domain of cookie is FQDN and starts with ".".
  5195. * src/Cookie.cc (match)
  5196. To add the ability to change peer id.
  5197. * src/DefaultBtContext.h
  5198. (_peerIdPrefix): New variable
  5199. (setPeerIdPrefix): New function.
  5200. * src/torrentRequestInfo.cc
  5201. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  5202. DefaultBtContext.
  5203. * src/main.cc (main): Added peer-id-prefix command-line option.
  5204. The usage message is not added yet.
  5205. * src/DefaultBtContext.cc
  5206. (generatePeerId): Use _peerIdPrefix.
  5207. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  5208. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5209. Fixed the bug that prevents filename in content-disposition from
  5210. being retrieved when filename is not quoted.
  5211. * src/Util.cc (getContentDispositionFilename)
  5212. Fixed the bug that causes infinate loop and memory leak when file open
  5213. operation failed.
  5214. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5215. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Fixed the bug that causes segfault when all URIs specified are
  5217. unsupported.
  5218. * src/RequestGroupMan.cc (getInitialCommands)
  5219. Check if RequestGroup::createNextCommand() returns empty list of
  5220. commands.
  5221. * src/RequestGroup.cc (createNextCommand)
  5222. Change log level from info to error so that users can notice that
  5223. an error occurred.
  5224. Fixed the bug that causes segfault when a zero-sized file is
  5225. downloaded.
  5226. * src/BitfieldMan.cc (isAllBitSet)
  5227. Return true if bitfieldLength is 0.
  5228. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. * src/main.cc
  5230. (showUsage): Added 3 usage examples for metalink download.
  5231. Replace MetalinkChunkChecksum with ChunkChecksum.
  5232. * src/MetalinkChunkChecksum.h: Removed.
  5233. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5234. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5235. * src/Xml2MetalinkProcessor.cc
  5236. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5237. * src/MetalinkRequestInfo.cc (execute)
  5238. * Release 0.11.1
  5239. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Reads URIs from stdin when "-i -" is specified.
  5241. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5242. * src/UriListParser.h, src/UriListParser.cc: New class.
  5243. * src/StreamUriListParser.h: New class.
  5244. * src/FileUriListParser.h: New class.
  5245. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5246. instead of UriFileListParser.
  5247. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Made console readout more readable.
  5249. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5250. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5251. Fix the bug that causes -s option not to work.
  5252. * src/main.cc (main)
  5253. * src/a2algo.h: New file.
  5254. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Create directory structure specified in metalink file.
  5256. * src/RequestGroup.h, src/RequestGroup.cc
  5257. (initAndOpenFile): Create a directory to store files if it does not
  5258. exist.
  5259. (getDir): New function.
  5260. Added ETA and download speed for an individual file to readout.
  5261. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5262. * src/RequestGroup.h
  5263. (calculateDownloadSpeed): New function.
  5264. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Made -S option work with metalink file and provided selective download
  5266. to metalink.
  5267. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5268. (filename): Removed.
  5269. (file): New variable.
  5270. (size): Removed.
  5271. (operator=): Updated.
  5272. (getPath): New function.
  5273. (getLength): New function.
  5274. (toFileEntry): New function.
  5275. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5276. (execute): Use toStream.
  5277. (showFileEntry): Removed.
  5278. * src/MetalinkRequestInfo.h
  5279. (targetFiles): New variable.
  5280. (setTargetFiles): New variable.
  5281. * src/MetalinkRequestInfo.cc
  5282. (execute): Added the ability to print file information included in
  5283. a metalink file.
  5284. Added selective download mode to metalink.
  5285. * src/main.cc
  5286. (showUsage): Updated to denote that -S and --select-file options are
  5287. applicable to metalink.
  5288. * src/FileEntry.h
  5289. (operator=): New function.
  5290. (getBasename): New function.
  5291. (getDirname): New function.
  5292. * src/Util.h, src/Util.cc
  5293. (toStream): New function.
  5294. * src/Xml2MetalinkProcessor.cc: Updated.
  5295. Made aria2 work with metalink with directory structure.
  5296. * src/File.h, src/File.cc
  5297. (getBasename): New function.
  5298. (getDirname): New function.
  5299. * src/RequestGroup.h, src/RequestGroup.cc
  5300. (_topDir): New variable.
  5301. (setTopDir): New function.
  5302. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5303. Rewrote HTTP header parsing with stringstream.
  5304. * src/HttpConnection.h, src/HttpConnection.cc
  5305. (HttpRequestEntry): New class.
  5306. (headerBuf): Removed.
  5307. (headerBufLength): Removed.
  5308. (outstandingHttpRequests): Now its element type is
  5309. HttpRequestEntryHandle.
  5310. (findEndOfHeader): Removed.
  5311. (receiveResponse): Rewritten.
  5312. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5313. Updated doc for -j option to notice that it should be used with -i
  5314. option.
  5315. * src/main.cc (showUsage)
  5316. Removed unused classes.
  5317. * src/RequestInfo.h
  5318. (FileInfo): Removed.
  5319. (checksum): Removed.
  5320. (fileInfo): Removed.
  5321. (setChecksum): Removed.
  5322. (getChecksum): Removed.
  5323. (getFileInfo): Removed.
  5324. Use ISO units.
  5325. * src/ConsoleDownloadEngine.cc
  5326. * src/TorrentConsoleDownloadEngine.cc
  5327. * src/Util.cc (abbrevSize)
  5328. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Added the default listening ports to the help message.
  5330. * src/main.cc (showUsage)
  5331. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Reduce the number of calls to gettimeofday to lower CPU load.
  5333. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5334. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5335. * src/Peer.h (calculateUploadSpeed): New function.
  5336. (calculateDownloadSpeed): New function.
  5337. * src/DefaultPeerStorage.cc
  5338. (CalculateStat): Added _now variable.
  5339. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5340. and Peer::calculateUploadSpeed(const struct timeval&)
  5341. Drop connection if no request or piece message is exchanged in
  5342. a certain interval.
  5343. * src/DefaultBtInteractive.h
  5344. (btRuntime): New variable.
  5345. (inactiveCheckPoint): New variable.
  5346. (checkActiveInteraction): New function.
  5347. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5348. request or piece message is received.
  5349. (checkActiveInteraction): New function.
  5350. (doInteractionProcessing): Call checkActiveInteraction.
  5351. Fixed the bug that causes remote Metalink and Torrent files are not
  5352. processed.
  5353. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5354. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Changed format of log file.
  5356. * src/SimpleLogger.cc
  5357. * Release 0.11.0
  5358. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. * src/AbstractCommand.cc
  5360. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5361. MSG_MAX_TRY from error to info.
  5362. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5363. * src/message.h
  5364. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5365. (MSG_DOWNLOAD_ABORTED): Added %s.
  5366. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5367. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5368. * src/PeerAbstractCommand.cc
  5369. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5370. * src/Request.h
  5371. (cookieBox): Made ShardHandle.
  5372. * src/RequestGroup.h, src/RequestGroup.cc
  5373. (createNextCommandWithAdj): New function.
  5374. * src/FileAllocationCommand.cc
  5375. (executeInternal): Use createNextCommandWithAdj().
  5376. * src/CheckIntegrityCommand.cc
  5377. (executeInternal): Use createNextCommandWithAdj().
  5378. Added --load-cookies command-option.
  5379. * src/OptionHandlerFactory.cc
  5380. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5381. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5382. Now aria2 can handle cookie's expiration date.
  5383. * src/Cookie.h (expires): Changed its type to time_t.
  5384. * src/main.cc: Added --load-cookies command-line option.
  5385. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5386. * src/Util.h, src/Util.cc (httpGMT): New function.
  5387. * src/Request.cc (Request): Initialize cookieBox using
  5388. CookieBoxFactory.
  5389. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5390. * src/CookieParser.h, src/CookieParser.cc: New class.
  5391. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5392. * src/HttpResponseCommand.cc
  5393. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5394. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5395. download.
  5396. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Added -j command-line option.
  5398. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5399. * src/main.cc
  5400. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5401. Rewritten using stringstream.
  5402. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5403. Rewritten using stringstream.
  5404. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Make download size shown in MB, KB.
  5406. * src/ConsoleDownloadEngine.h (sendStatistics)
  5407. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5408. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Accept incoming connections if download rate is low.
  5410. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5411. (_lowestSpeedLimit): New variable.
  5412. (setLowestSpeedLimit): New function.
  5413. (execute): Accept incoming connections if download rate is low.
  5414. MAX_PEERS is ignored in this case.
  5415. Disable PREF_OUT in multiple concurrent download:
  5416. * src/RequestGroup.h, src/RequestGroup.cc
  5417. (setUserDefinedFilename): New function.
  5418. * src/DownloadEngineFactory.cc
  5419. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5420. concurrent download.
  5421. * src/DefaultSegmentManFactory.cc
  5422. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5423. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5425. Added its overloaded method.
  5426. * src/RequestGroup.h
  5427. (_numConcurrentCommand): New variable.
  5428. (setNumConcurrentCommand): New function.
  5429. * src/RequestGroup.cc
  5430. Abort download if same file is being downloaded concurrently.
  5431. * src/RequestGroup.h, src/RequestGroupMan.cc
  5432. (isSameFileBeingDownloaded): New function.
  5433. * src/HttpResponseCommand.cc (executeInternal)
  5434. * src/FtpNegotiateCommand.cc (recvSize)
  5435. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  5436. * main.cc: Added help message for -i option.
  5437. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  5439. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  5440. * src/MetalinkEntry.h
  5441. (checksum): Changed to ChecksumHandle
  5442. * src/MetalinkRequestInfo.cc
  5443. (checksum): Changed to ChecksumHandle
  5444. * src/File.cc
  5445. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  5446. * src/common.h
  5447. (DIR_OPEN_MODE): New definition
  5448. * src/RequestGroup.cc
  5449. (prepareForNextAction): Added an argument.
  5450. * src/message.h
  5451. (MSG_GOOD_CHECKSUM): New definition
  5452. (MSG_BAD_CHECKSUM): New definition
  5453. * src/HttpResponseCommand.cc
  5454. (handleDefaultEncoding): Continue download sequence in new
  5455. non-segmented download.
  5456. * src/FileAllocationEntry.h
  5457. (_nextDownloadCommand): New variable.
  5458. * src/DownloadCommand.cc
  5459. (prepareForNextSegment): Create ChecksumCommand if checksum is
  5460. available.
  5461. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  5462. * src/IteratableChecksumValidator.h,
  5463. src/IteratableChecksumValidator.cc: New class.
  5464. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  5465. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5466. Change file mode to 666:
  5467. * src/common.h (OPEN_MODE): New definition.
  5468. * src/File.cc
  5469. * src/Util.cc
  5470. * src/Directry.cc
  5471. * src/AbstractDiskWriter.cc
  5472. Change the level of log message "download aborted" to debug:
  5473. * src/PeerAbstractCommand.cc (execute)
  5474. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  5475. * src/TrackerWatcherCommand.cc
  5476. (createCommand): Sleep some seconds after request failed.
  5477. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  5478. then abort tracker request.
  5479. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. * Added the simultaneous download feature.
  5481. * src/main.cc: Print "Exception caught: " when exception is caught.
  5482. Use CUIDCounter instead of BtRuntime::getNewCuid():
  5483. * src/ActivePeerConnectionCommand.cc
  5484. * src/PeerInteractionCommand.cc
  5485. * src/BtRuntime.h
  5486. (cuidCounter): Removed.
  5487. (getNewCuid): Removed.
  5488. * src/DownloadEngineFactory.cc
  5489. * src/PeerListenCommand.cc
  5490. * src/TrackerUpdateCommand.cc
  5491. * src/PeerInitiateConnectionCommand.cc
  5492. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5493. * src/PeerAbstractCommand.cc
  5494. (onAbort): Call PeerStorage::returnPeer()
  5495. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  5496. (incomingPeers): New variable.
  5497. (addIncomingPeer): New function.
  5498. (returnPeer): New function.
  5499. (onErasingPeer): New function.
  5500. (addPeer): push_back -> push_front
  5501. (getActivePeers): Rewritten.
  5502. (calculateStat): Rewritten.
  5503. * src/PeerStorage.h
  5504. (TransferStat::copy): New function.
  5505. (TransferStat::TransferStat): New function.
  5506. (TransferStat::operator=): New function.
  5507. (addIncomingPeer): New function.
  5508. (returnPeer): New function.
  5509. * src/PeerListenCommand.cc
  5510. (execute): Use PeerStorage::addIncomingPeer() instead of
  5511. Peer::addPeer().
  5512. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Connect to a peer actively when download speed is lower than specified
  5514. speed in torrent download:
  5515. * src/ActivePeerConnectionCommand.h: New class.
  5516. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. * src/HttpRequest.cc (createRequest): url-encode user-agent
  5518. * src/main.cc: Fixed the bug that prevents download if .netrc
  5519. doesn't exist.
  5520. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. To cache resolved hostname:
  5522. * src/AbstractCommand.h, src/AbstractCommand.cc
  5523. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  5524. Added dns cache.
  5525. * src/FtpInitiateConnectionCommand.cc
  5526. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  5527. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  5528. NameResolver working without ares.
  5529. * src/TorrentRequestInfo.cc
  5530. (execute): Don't cache dns in torrent download.
  5531. * src/HttpInitiateConnectionCommand.cc
  5532. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  5533. * src/DNSCache.h: New class.
  5534. * src/UrlRequestInfo.cc
  5535. (execute): Use dns cache.
  5536. In http request, suppress port number in http request header if port
  5537. is 80 or 443:
  5538. * src/HttpRequest.cc (getHostText): Suppress port number in http
  5539. request header if port is 80 or 443.
  5540. (createProxyRequest): Allways send port number.
  5541. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. To add the command-line option which disables netrc support:
  5543. * src/OptionHandlerFactory.cc
  5544. (createOptionHandlers): Added PREF_NO_NETRC.
  5545. * src/main.cc: Added -n option.
  5546. * src/prefs.h (PREF_NO_NETRC): New definition.
  5547. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  5548. V_TRUE.
  5549. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  5550. is V_FALSE. This may get configurable in the future release.
  5551. To clear peer's error status by time basis:
  5552. * src/PeerAbstractCommand.cc
  5553. (onAbort): Call Peer::startBadCondition().
  5554. * src/Peer.h, src/Peer.cc
  5555. (error): Removed.
  5556. (_badConditionStartTime): New variable.
  5557. (_badConditionInterval): New variable. Initialized to 10 seconds.
  5558. (startBadCondition): New function.
  5559. (isGood): New function.
  5560. * src/DefaultPeerStorage.cc
  5561. (addPeer): Use Peer::isGood().
  5562. (FindFinePeer): Use Peer::isGood().
  5563. Always include port number in http request header:
  5564. * src/HttpRequest.cc (getHostText): Always include port number in
  5565. http request header.
  5566. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5567. To the ability to read options from a config file:
  5568. * src/main.cc: Command-line parameter validation is delegated to
  5569. OptionHandler class.
  5570. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  5571. * src/Option.h, src/Option.cc (clear): New function.
  5572. * src/OptionParser.h, src/OptionParser.cc: New class.
  5573. * src/OptionHandler.h: New class.
  5574. * src/NameMatchOptionHandler.h: New class.
  5575. * src/OptionHandlerImpl.h: New classes.
  5576. * src/prefs.h: '_' -> '-'
  5577. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  5578. (FTP_PASV): New definition.
  5579. * src/Util.h, src/Util.cc (getRealSize): New function.
  5580. To disable netrc support if .netrc file does not have correct
  5581. permissions:
  5582. * src/File.h, src/File.cc (mode): New function.
  5583. To prevent confidential information to be logged:
  5584. * src/HttpConnection.h, src/HttpConnection.cc
  5585. (eraseConfidentialInfo): New function.
  5586. (sendRequest): Call eraseConfidentialInfo().
  5587. (sendProxyRequest): Call eraseConfidentialInfo().
  5588. * src/main.cc: Validate permissions of .netrc file.
  5589. To add --user-agent command-line option:
  5590. * src/main.cc: Added new command line option: --user-agent
  5591. * src/prefs.h (PREF_USER_AGENT): New definition.
  5592. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  5593. parameter to HttpRequest object.
  5594. * src/AbstractProxyRequestCommand.cc
  5595. (executeInternal): Set user-agent option parameter to HttpRequest
  5596. object.
  5597. Marged the patches from Dan Fandrich.
  5598. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. Use filename and size from Metalink file instead of sending HEAD
  5600. request:
  5601. * src/UrlRequestInfo.h
  5602. (_filename): New variable.
  5603. (_totalLength): New variable.
  5604. (setTotalLength): New variable.
  5605. (setFilename): New variable.
  5606. * src/MetalinkRequestInfo.cc
  5607. (execute): Set filename and size to UrlRequestInfo
  5608. * src/UrlRequestInfo.cc
  5609. (execute): Use filename and size from Metalink instead of seding
  5610. HEAD request to servers.
  5611. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. To add the ability to resume downloading a partially downloaded file
  5613. which is downloaded from the beginning:
  5614. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  5615. takes this role.
  5616. * src/main.cc: Added -c option.
  5617. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  5618. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  5619. * src/prefs.h (PREF_CONTINUE): New definition.
  5620. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  5621. * src/DefaultDiskWriter.cc
  5622. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  5623. * src/AbstractDiskWriter.h
  5624. (glowFileAllocator): New variable.
  5625. * src/AbstractDiskWriter.cc
  5626. (openExistingFile): Now preallocate file space from the end of the
  5627. existing file if totalLength argument is specified and grater than 0.
  5628. * src/UrlRequestInfo.cc: If -c option is specified and the file
  5629. to download exists in local, continue the download of the file.
  5630. --allow-overwrite=true is assumed in this context.
  5631. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  5632. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  5633. Throw exception if --check-integrity=true is specified but chunk
  5634. checksums are not provided:
  5635. * src/UrlRequestInfo.cc
  5636. Do not print URLs to stdout:
  5637. * src/UrlRequestInfo.cc
  5638. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. * src/Request.h: Use AuthResolver to get authentication information.
  5640. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  5641. set to RequestFactory object.
  5642. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  5643. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  5644. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  5645. create Request object.
  5646. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  5647. To integrate Netrc into exsiting classes:
  5648. * src/Request.h
  5649. (_userDefinedAuthConfig): New variable.
  5650. (findNetrcAuthenticator): New function.
  5651. (segment): Removed.
  5652. (setUserDefinedAuthConfig): New function.
  5653. (resolveHttpAuthConfigItem): New function.
  5654. (resolveFtpAuthConfigItem): New function.
  5655. (resolveHttpProxyAuthConfigItem): New function.
  5656. * src/HttpRequest.h
  5657. (authConfig): Removed.
  5658. (proxyAuthConfig): Removed.
  5659. (setAuthConfig): Removed.
  5660. (setProxyAuthConfig): Removed.
  5661. * src/UrlRequest.h
  5662. (getHeadResult): Added a parameter: authConfigHandle
  5663. * src/common.h
  5664. (SingletonHolder.h): New include.
  5665. * src/main.cc
  5666. (Netrc.h): New include.
  5667. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  5668. Added initial value of PREF_NETRC_PATH.
  5669. Added the initialization of netrc.
  5670. * src/AuthConfig.h: New class.
  5671. * src/prefs.h
  5672. (PREF_NETRC_PATH): New definition.
  5673. * src/HttpAuthConfig.h: Removed.
  5674. * src/Netrc.cc
  5675. (getRequiredNextToken): New function.
  5676. (skipMacdef): New function.
  5677. (parse): Rewritten.
  5678. * src/Netrc.h
  5679. (getRequiredNextToken): New function.
  5680. (skipMacdef): New function.
  5681. * src/Util.h, src/Util.cc
  5682. (getHomeDir): New function.
  5683. * src/TrackerWatcherComand.cc
  5684. (createRequestCommand): Use AuthConfig.
  5685. * src/FtpConnection.cc
  5686. (sendUser): Use Request::resolveFtpAuthConfigItem().
  5687. (sendPass): Use Request::resolveFtpAuthConfigItem().
  5688. * src/Request.cc
  5689. (findNetrcAuthenticator): New function.
  5690. (resolveHttpAuthConfigItem): New function.
  5691. (resolveFtpAuthConfigItem): New function.
  5692. (resolveHttpProxyAuthConfigItem): New function.
  5693. * src/UrlRequestInfo.cc: Use AuthConfig.
  5694. * src/HttpRequest.cc
  5695. (createRequest): Use authConfig.
  5696. (getProxyAuthString): Use authConfig.
  5697. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  5698. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  5699. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. To reduce overhead to find commands whose socket is either
  5701. readable or writable in the download engine loop:
  5702. * src/Command.h, src/Command.cc
  5703. (STATUS): New enum.
  5704. (status): New variable.
  5705. (statusMatch): New function.
  5706. (setStatusActive): New function.
  5707. (setStatusInactive): New function.
  5708. * src/DownloadEngine.h, src/DownloadEngine.cc
  5709. (executeCommand): New function.
  5710. (run): Simplified.
  5711. (waitData): Call Command::setStatusActive() when command's socket is
  5712. readable or writable.
  5713. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. To handle Segment as SegmentHandle:
  5715. * src/AbstractCommand.cc (execute): Rewritten.
  5716. * src/SegmentMan.h: Segment -> SegmentHandle
  5717. Introducded HttpResponse class, HttpRequest class to improve code
  5718. extensiveness and make it clear:
  5719. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  5720. HttpResponse class.
  5721. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  5722. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  5723. * src/HttpConnection.cc: Contruction of http request were moved to
  5724. HttpRequest class.
  5725. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  5726. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  5727. * src/HttpAuthConfig.h: New class.
  5728. * src/Range.h: New class.
  5729. To make FtpTunnel{Request, Response}Command and
  5730. HttpProxy{Request, Response}Command derived from
  5731. AbstractProxy{Request, Response}Command:
  5732. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  5733. Derived from AbstractProxyRequestCommand class.
  5734. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  5735. Derived from AbstractProxyResponseCommand class.
  5736. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  5737. Derived from AbstractProxyRequestCommand class.
  5738. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  5739. Derived from AbstractProxyResponseCommand class.
  5740. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  5741. : New class.
  5742. * src/AbstractProxyResponseCommand.h,
  5743. src/AbstractProxyResponseCommand.cc: New class.
  5744. To add netrc support:
  5745. * src/Netrc.h, src/Netrc.cc: New class.
  5746. * src/Util.h, src/Util.cc (split): New function.
  5747. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  5748. "Content-Range" header instead of "Range" header.
  5749. * src/HttpHeader.h
  5750. (getStatus): Removed.
  5751. (setStatus): Removed.
  5752. * src/Segment.h
  5753. (getPositionToWrite): New function.
  5754. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. * src/HttpHeader.h
  5756. (Range.h): New include.
  5757. (status): New variable.
  5758. (HttpHeader): Initialized status with 0.
  5759. (getStatus): New function.
  5760. (setStatus): New function.
  5761. (getRange): New function.
  5762. (HttpHeaderHandle): New function.
  5763. * src/HttpHeader.cc
  5764. (getRange): New function.
  5765. * src/Request.h
  5766. (RequestWeakHandle): New definition.
  5767. * src/HttpConnection.h
  5768. (HttpConnectionHandle): New type definition.
  5769. * src/HttpConnection.cc
  5770. (receiveResponse): Set HTTP status to headers.
  5771. * src/main.cc
  5772. (showUsage): Fixed typo.
  5773. * src/Segment.h
  5774. (SegmentHandle): New type definition.
  5775. * src/BitfieldMan.h
  5776. (getMissingUnusedLength): New function.
  5777. * src/BitfieldMan.cc
  5778. (getMissingUnusedLength): New function.
  5779. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5780. To fix static initialization order problem:
  5781. * src/BitfieldManFactory.h
  5782. (defaultRandomizer): Removed.
  5783. (factory): New variable.
  5784. (getNewFactory): Removed.
  5785. (getFactoryInstance): New function.
  5786. (setDefaultRandomizer): Rewritten.
  5787. (getDefaultRandomizer): Rewritten.
  5788. * src/BitfieldManFactory.cc
  5789. (defaultRandomizer): Removed.
  5790. (factory): Initialized to 0.
  5791. (BitfieldManFactory): Initialized randomizer to 0.
  5792. * src/DefaultPieceStorage.cc
  5793. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  5794. * src/Peer.cc
  5795. (Peer): getNewFactory() -> getFactoryInstance()
  5796. * src/SegmentMan.cc
  5797. (initBitfield): getNewFactory() -> getFactoryInstance()
  5798. * src/Piece.cc
  5799. (Piece): getNewFactory() -> getFactoryInstance()
  5800. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. To fix the bug that causes crash on Max OS X:
  5802. * src/SimpleRandomizer.h
  5803. (getInstance): Create new instance if the static variable is null.
  5804. * src/SimpleRandomizer.cc
  5805. (randomizer): Initialized to 0.
  5806. * src/BitfieldManFactory.h
  5807. (getNewFactory): Removed the call to setRandomizer().
  5808. To fix the miscalculation of the range of checksum:
  5809. * src/BitfieldMan.h
  5810. (isBitSetOffsetRange): New function.
  5811. * src/BitfieldMan.cc
  5812. (isBitSetOffsetRange): New function.
  5813. * src/SegmentMan.cc
  5814. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  5815. Use bitfield->getBlockLength() instead of segment.segmentLength.
  5816. * Release 0.10.1
  5817. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5818. To lower CPU usage in BitTorrent download when --max-upload-limit
  5819. command-line option specified:
  5820. * src/DefaultBtMessageDispatcher.cc
  5821. (sendMessages): Calculate uploading speed only when current message
  5822. is uploading data and is not sent yet.
  5823. * src/DefaultPeerStorage.h
  5824. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  5825. * src/HttpResponseCommand.cc
  5826. (handleDefaultEncoding): Added the cast to int32_t to itos.
  5827. This fixes compile error in Soralis 10.
  5828. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. To fix segfault in Metalink download:
  5830. * src/UrlRequestInfo.h
  5831. (filename): Removed.
  5832. (totalLength): Removed.
  5833. (setTotalLength): Removed.
  5834. (setFilename): Removed.
  5835. * src/MetalinkRequestInfo.cc
  5836. (execute): Do not set filename and totalLength to reqInfo.
  5837. Set chunk checksum to reqInfo if it is not null.
  5838. * src/HttpResponseCommand.cc
  5839. (executeInternal): Fixed filename in log.
  5840. (handleDefaultEncoding): Removed the call to initBitfield() and
  5841. markAllPiecesDone().
  5842. (handleOtherEncoding): Added HEAD method handling.
  5843. * src/FtpNegotiateCommand.cc
  5844. (executeInternal): Added SEQ_HEAD_OK handling.
  5845. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  5846. return false.
  5847. * src/FtpNegotiateCommand.h
  5848. (SEQ_HEAD_OK): New definition.
  5849. * src/SegmentMan.cc
  5850. (initBitfield): Delete bitfield.
  5851. (isChunkChecksumValidationReady): Fixed the condition.
  5852. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  5853. works fine.
  5854. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. * src/Xml2MetalinkProcessor.h
  5856. (xpathExists): New function.
  5857. * src/Xml2MetalinkProcessor.cc
  5858. (xpathExists): New function.
  5859. Not to send HEAD request if filename and size are available in Metalink
  5860. file:
  5861. * src/UrlRequestInfo.h
  5862. (filename): New variable.
  5863. (totalLength): New variable.
  5864. (setTotalLength): New function.
  5865. (setFilename): New function.
  5866. * src/MetalinkRequestInfo.cc
  5867. (execute): Set filename and size to UrlRequestInfo.
  5868. * src/MetalinkEntry.cc
  5869. (MetalinkEntry): Initialize size with 0.
  5870. * src/UrlRequestInfo.cc
  5871. (execute): Set filename and size to SegmentMan.
  5872. Not to download rest of the files after selected files are downloaded
  5873. in BitTorrent:
  5874. * src/PieceStorage.h
  5875. (allDownloadFinished): New function.
  5876. * src/DefaultBtAnnounce.cc
  5877. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  5878. downloadFinished.
  5879. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  5880. * src/DefaultPieceStorage.cc
  5881. (completePiece): Use allDownloadFinished instead of downloadFinished.
  5882. Commented out the call to finishSelectiveDownloadingMode().
  5883. (downloadFinished): Call isFilteredAllBitSet() instead of
  5884. isAllBitSet().
  5885. (allDownloadFinished): New function.
  5886. * src/DefaultBtInteractive.cc
  5887. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  5888. downloadFinished().
  5889. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  5890. * src/TorrentDownloadEngine.cc
  5891. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  5892. * src/BitfieldMan.h
  5893. (isFilteredAllBitSet): New function.
  5894. * src/ShareRatioSeedCriteria.h
  5895. (PieceStorage.h): New include.
  5896. (pieceStorage): New variable.
  5897. (evaluate):
  5898. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  5899. * src/BitfieldMan.cc
  5900. (isFilteredAllBitSet): New function.
  5901. (isAllBitSet): Filter is not took into account.
  5902. Rename --force-truncate as --allow-overwrite:
  5903. * src/TorrentRequestInfo.cc
  5904. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  5905. * src/main.cc
  5906. (showUsage): --force-truncate -> --allow-overwrite
  5907. * src/message.h
  5908. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  5909. * src/prefs.h
  5910. (PREF_FORCE_TRUNCATE): Removed.
  5911. (PREF_ALLOW_OVERWRITE): New definition.
  5912. * src/SegmentMan.cc
  5913. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  5914. * src/MetalinkRequestInfo.cc
  5915. (execute): Queueing message are now logged in info level.
  5916. * src/common.h
  5917. (LONG_LONG_MAX): Removed.
  5918. (LONG_LONG_MIN): Removed.
  5919. * src/HttpResponseCommand.cc
  5920. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  5921. * src/FtpNegotiateCommand.cc
  5922. (recvSize): LONG_LONG_MAX -> INT64_MAX
  5923. * src/main.cc
  5924. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  5925. command-line option.
  5926. (main): Added --check-integriy and --realtime-chunk-checksum
  5927. command-line option.
  5928. --force-truncate -> --allow-overwrite
  5929. Set initial value of --check-integrity option to false.
  5930. Don't show usage when error occurs while persing command-line options.
  5931. Removed deprecated --upload-limit option.
  5932. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  5934. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  5935. * src/BtAllowedFastMessage.cc:
  5936. * src/BtBitfieldMessage.cc
  5937. * src/BtCancelMessage.cc
  5938. * src/BtChokeMessage.cc
  5939. * src/BtHaveAllMessage.cc
  5940. * src/BtHaveMessage.cc
  5941. * src/BtHaveNoneMessage.cc
  5942. * src/BtInterestedMessage.cc
  5943. * src/BtNotInterestedMessage.cc
  5944. * src/BtPieceMessage.cc
  5945. * src/BtPortMessage.cc
  5946. * src/BtRejectMessage.cc
  5947. * src/BtRequestMessage.cc
  5948. * src/BtSuggestPieceMessage.cc
  5949. * src/BtUnchokeMessage.cc
  5950. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  5951. files are affected.
  5952. * src/ChunkChecksumValidator.cc
  5953. * src/SegmentMan.cc
  5954. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. To add chunk checksum validation:
  5956. * src/MetalinkEntry.h
  5957. (MetalinkChunkChecksum.h): New include.
  5958. (chunkChecksum): New variable.
  5959. * src/Request.h
  5960. (method): New variable.
  5961. (setMethod): New function.
  5962. (getMethod): New function.
  5963. (METHOD_GET): New static constant.
  5964. (METHOD_HEAD): New static constant.
  5965. * src/Xml2MetalinkProcessor.h
  5966. (getPieceHash): New function.
  5967. * src/PieceStorage.h
  5968. (markAllPiecesDone): New function.
  5969. (checkIntegrity): New function.
  5970. * src/FileAllocator.h
  5971. (NullFileAllocationMonitor.h): New include.
  5972. (FileAllocator): Initialize fileAllocationMonitor with new
  5973. NullFileAllocationMonitor().
  5974. * src/MultiDiskAdaptor.h
  5975. (messageDigest.h): Remove include.
  5976. (ctx): Removed.
  5977. (hashUpdate): Added ctx.
  5978. (MultiDiskAdaptor): Removed ctx.
  5979. (sha1Sum): Renamed as messageDigest.
  5980. (messageDigest): New function.
  5981. * src/UrlRequestInfo.h
  5982. (HeadResult): New class.
  5983. (digestAlgo): New variable.
  5984. (chunkChecksumLength): New variable.
  5985. (chunkChecksums): New variable.
  5986. (getHeadResult): New function.
  5987. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  5988. (setDigestAlgo): New function.
  5989. (setChunkChecksumLength): New function.
  5990. (setChunkChecksums): New function.
  5991. * src/DefaultPieceStorage.cc
  5992. (DiskAdaptorWriter.h): New include.
  5993. (ChunkChecksumValidator.h): New include.
  5994. (markAllPiecesDone): New function.
  5995. (checkIntegrity): New function.
  5996. * src/DefaultBtContext.h
  5997. (getPieceHashes): New function.
  5998. * src/TorrentRequestInfo.cc
  5999. (execute): Try to validate chunk checksum if file already exists and
  6000. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6001. * src/messageDigest.h
  6002. (~MessageDigestContext): Added digestFree().
  6003. * src/MetalinkRequestInfo.cc
  6004. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6005. * src/DiskAdaptor.h
  6006. (messageDigest.h): New include.
  6007. (sha1Sum): Renamed as messageDigest.
  6008. (messageDigest): New function.
  6009. * src/DownloadCommand.h
  6010. (PeerStat.h): New include.
  6011. (maxDownloadSpeedLimit): New variable.
  6012. (startupIdleTime): New variable.
  6013. (lowestDownloadSpeedLimit): New variable.
  6014. (peerStat): New variable.
  6015. (setMaxDownloadSpeedLimit): New function.
  6016. (setStartupIdleTime): New function.
  6017. (setLowestDownloadSPeedLimit): New function.
  6018. * src/BtContext.h
  6019. (getPieceHashes): New function.
  6020. * src/main.cc
  6021. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6022. option to true for testing purpose.
  6023. * src/BtPieceMessage.cc
  6024. (checkPieceHash): Use messageDigest
  6025. * src/DownloadEngine.cc
  6026. (SetDescriptor): Removed.
  6027. (AccumulateActiveCommand): Removed.
  6028. (waitData): Rewritten.
  6029. (updateFdSet): Rewritten.
  6030. * src/MultiDiskAdaptor.cc
  6031. (hashUpdate): Added ctx.
  6032. (sha1Sum): Renamed as messageDigest.
  6033. (messageDigest): New function.
  6034. * src/BitfieldMan.h
  6035. (isBitRangeSet): New function.
  6036. (unsetBitRange): New function.
  6037. * src/ByteArrayDiskWriter.h
  6038. (sha1Sum): Renamed as messageDigest.
  6039. (messageDigest): New function.
  6040. * src/ConsoleDownloadEngine.cc
  6041. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6042. * src/DiskWriter.h
  6043. (messageDigest.h): New include.
  6044. (sha1Sum): Renamed as messageDigest.
  6045. (messageDigest): New function.
  6046. * src/ChunkChecksumValidator.h: New class.
  6047. * src/DiskAdaptorWriter.h: New class.
  6048. * src/prefs.h
  6049. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6050. (PREF_CHECK_INTEGRITY): New definition.
  6051. * src/HttpResponseCommand.cc
  6052. (handleDefaultEncoding): Added method "HEAD" handling.
  6053. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6054. (handleOtherEncoding):
  6055. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6056. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6057. startupIdleTime, lowestDownloadSpeedLimit to command.
  6058. * src/SegmentMan.h
  6059. (getSegmentEntryByIndex): New function.
  6060. (getSegmentEntryByCuid): New function.
  6061. (getSegmentEntryIteratorByCuid): New function.
  6062. (diskWriter): DiskWriter -> DiskWriterHandle
  6063. (pieceHashes): New variable.
  6064. (chunkHashLength): New variable.
  6065. (digestAlgo): New variable.
  6066. (FindPeerStat): Removed.
  6067. (getPeerStat): Rewritten.
  6068. (markAllPiecesDone): New function.
  6069. (checkIntegrity): New function.
  6070. (tryChunkChecksumValidation): New function.
  6071. (isChunkChecksumValidationReady): New function.
  6072. * src/BitfieldMan.cc
  6073. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6074. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6075. blocks to 0.
  6076. (isBitRangeSet): New function.
  6077. (unsetBitRange): New function.
  6078. * src/FtpNegotiateCommand.cc
  6079. (executeInternal): Set maxDownloadSpeedLimit,
  6080. startupIdleTime, lowestDownloadSpeedLimit to command.
  6081. (recvSize): Added method "HEAD" handling.
  6082. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6083. * src/AbstractSingleDiskAdaptor.cc
  6084. (sha1Sum): Renamed as messageDigest.
  6085. (messageDigest): New function.
  6086. * src/AbstractSingleDiskAdaptor.h
  6087. (sha1Sum): Renamed as messageDigest.
  6088. (messageDigest): New function.
  6089. * src/Util.h
  6090. (indexRange): New function.
  6091. * src/MetalinkEntry.cc
  6092. (MetalinkEntry): Initialized chunkChecksum to 0.
  6093. * src/ShaVisitor.cc
  6094. (~ShaVisitor): Removed the call to ctx.digestFree().
  6095. * src/SegmentMan.cc
  6096. (ChunkChecksumValidator.h): New include.
  6097. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6098. to DIGEST_ALGO_SHA1.
  6099. (~SegmentMan): Removed diskWriter.
  6100. (FindSegmentEntryByIndex): Removed.
  6101. (FindSegmentEntryByCuid): Removed.
  6102. (checkoutSegment): Rewritten.
  6103. (findSlowerSegmentEntry): Rewritten.
  6104. (getSegment): Rewritten.
  6105. (updateSegment): Rewritten.
  6106. (completeSegment): Rewritten.
  6107. (markAllPiecesDone): New function.
  6108. (checkIntegrity): New function.
  6109. (isChunkChecksumValidationReady): New function.
  6110. (tryChunkChecksumValidation): New function.
  6111. * src/Xml2MetalinkProcessor.cc
  6112. (getEntry): Get size and set it to entry.
  6113. Get chunk checksum and set it to entry.
  6114. (getPieceHash): New function.
  6115. * src/Util.cc
  6116. (sha1Sum): Removed ctx.digestFree()
  6117. (fileChecksum): Removed ctx.digestFree()
  6118. (indexRange): New function.
  6119. * src/Request.cc
  6120. (METHOD_GET): New variable.
  6121. (METHOD_HEAD): New variable.
  6122. (Request): Added method.
  6123. * src/UrlRequestInfo.cc
  6124. (FatalException.h): New include.
  6125. (message.h): New include.
  6126. (operator<<): Added operator<< for class HeadResult.
  6127. (getHeadResult): New function.
  6128. (execute): Get filename and size in separate download engine.
  6129. * src/ChunkChecksumValidator.cc: New class.
  6130. * src/DownloadCommand.cc:
  6131. (DownloadCommand): Added peerStat.
  6132. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6133. the value from Option.
  6134. The buffer size is now 16KB.
  6135. Use peerStat member instead of getting it from SegmentMan.
  6136. Use startupIdleTime member instead of gettingit from Option.
  6137. Added chunk checksum validation.
  6138. * src/AbstractDiskWriter.cc
  6139. (AbstractDiskWriter): Removed ctx.
  6140. (~AbstractDiskWriter): Removed ctx.digestFree()
  6141. (writeDataInternal): Returns the return value of write.
  6142. (readDataInternal): Returns the return value of read.
  6143. (sha1Sum): Renamed as messageDigest
  6144. (messageDigest): New function.
  6145. * src/AbstractDiwkWriter.h
  6146. (messageDigest.h): Removed include.
  6147. (ctx): Removed.
  6148. (sha1Sum): Renamed as messageDigest
  6149. (messageDigest): New function.
  6150. * src/DefaultPieceStorage.h
  6151. (markAllPiecesDone): New function.
  6152. (checkIntegrity): New function.
  6153. * src/NullFileAllocationMonitor.h: New class.
  6154. * src/MetalinkChunkChecksum.h: New class.
  6155. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. To decrease CPU usage in bittorrent download, calculation results in
  6157. BitfieldMan were cached and realtime fetching PeerObject was removed
  6158. with WeakHandle introduced. Option values are set to the objects
  6159. by setter before download begins.
  6160. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6161. * src/DefaultBtRequestFactory.h
  6162. (dispatcher): BtMessageDispatcherHandle ->
  6163. BtMessageDispatcherWeakHandle.
  6164. (messageFactory): New variable.
  6165. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6166. BtMessageDispatcherWeakHandle.
  6167. (setBtMessageFactory): New function.
  6168. * src/DefaultBtMessageDispatcher.cc:
  6169. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6170. from Option.
  6171. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6172. feating the value from Option.
  6173. Use messageFactory member.
  6174. * src/PeerInteractionCommand.cc
  6175. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6176. Add reverse dependencies to factory object.
  6177. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6178. dispatcher.
  6179. Set messageFactory to receiver.
  6180. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6181. btInteractive.
  6182. Set receiver to peerObject.
  6183. Set maxDownloadSpeedLimit to this.
  6184. (executeInternal): Use maxDownloadSpeedLimit member.
  6185. * src/BtChokeMessage.cc
  6186. (doReceivedAction): Use dispatcher, requestFactory member.
  6187. (onSendComplete): Use dispatcher member.
  6188. * src/PeerInteractionCommand.h
  6189. (maxDownloadSpeedLimit): New variable.
  6190. * src/DefaultBtMessageReceiver.h
  6191. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6192. (dispatcher):
  6193. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6194. (messageFactory): New variable.
  6195. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6196. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6197. (setDispatcher):
  6198. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6199. (setBtMessageFactory): New function.
  6200. * src/DefaultBtInteractive.cc
  6201. (initiateHandshake): Use messageFactory member.
  6202. (addBitfieldMessageToQueue): Use messageFactory member.
  6203. (addAllowedFastMessageToQueue): Use messageFactory member.
  6204. (decideChoking): Use messageFactory member.
  6205. (checkHave): Use messageFactory member.
  6206. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  6207. (receiveMessages): Use maxDownloadSpeedLimit member.
  6208. (decideInterest): Use messageFactory member.
  6209. * src/BtRequestMessage.cc
  6210. (doReceivedAction): Use messageFactory, dispatcher member.
  6211. (onQueued): Use dispatcher member.
  6212. * src/BtPieceMessage.cc
  6213. (doReceivedAction): Use dispatcher member.
  6214. (send): Use peerConnection member.
  6215. (onWrongPiece): Use requestFactory member.
  6216. (handleChokingEvent): Use messageFactory, dispatcher member.
  6217. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6218. * src/BtMessageDispatcher.h
  6219. (BtMessageDispatcherWeakHandle): New type definition.
  6220. * src/SimpleBtMessage.cc
  6221. (send): Use peerConnection member.
  6222. * src/BtRejectMessage.cc
  6223. (doReceivedAction): Use dispatcher member.
  6224. * src/DefaultBtMessageDispatcher.h
  6225. (Option.h): Removed include.
  6226. (messageFactory): New variable.
  6227. (option): Removed.
  6228. (maxUploadSpeedLimit): New variable.
  6229. (requestTimeout): New variable.
  6230. (DefaultBtMessageDispatcher): Removed option.
  6231. Added maxUploadSpeedLimit, requestTimeout.
  6232. (setOption): Removed.
  6233. (getOption): Removed.
  6234. (setMaxUploadSpeedLimit): New function.
  6235. (setRequestTimeout): New function.
  6236. (setBtMessageFactory): New function.
  6237. * src/DefaultBtInteractive.h
  6238. (btMessageReceiver):
  6239. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6240. (dispatcher):
  6241. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6242. (btRequestFactory):
  6243. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6244. (peerConnection):
  6245. PeerConnectionHandle -> PeerConnectionWeakHandle
  6246. (messageFactory): New variable.
  6247. (option): Removed.
  6248. (keepAliveInterval): New variable.
  6249. (maxDownloadSpeedLimit): New variable.
  6250. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6251. (setBtMessageReceiver):
  6252. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6253. (setDispatcher):
  6254. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6255. (setBtRequestFactory):
  6256. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6257. (setPeerConnection):
  6258. PeerConnectionHandle -> PeerConnectionWeakHandle
  6259. (setOption): Removed.
  6260. (setKeepAliveInterval): New function.
  6261. (setMaxDownloadSpeedLimit): New function.
  6262. (setBtMessageFactory): New function.
  6263. * src/BitfieldMan.h
  6264. (cachedNumMissingBlock): New variable.
  6265. (cachedNumFilteredBlock): New variable.
  6266. (cachedCompletedLength): New variable.
  6267. (cachedFilteredComletedLength): New variable.
  6268. (cachedFilteredTotalLength): New variable.
  6269. (countMissingBlockNow): New function.
  6270. (countFilteredBlockNow): New function.
  6271. (getFilteredTotalLengthNow): New function.
  6272. (getCompletedLengthNow): New function.
  6273. (getFilteredCompletedLengthNow): New function.
  6274. (updateCache): New function.
  6275. * src/AbstractBtMessage.h
  6276. (BtMessageDispatcher.h): New include.
  6277. (PeerConnection.h): New include.
  6278. (BtRequestFactory.h): New include
  6279. (BtMessageFactory.h): New include.
  6280. (dispatcher): New variable.
  6281. (messageFactory): New variable.
  6282. (peerConnection: New variable.
  6283. (setBtMessageDispatcher): New function.
  6284. (setPeerConnection): New function.
  6285. (setBtMessageFactory): New function.
  6286. (setBtRequestFactory): New function.
  6287. * src/DefaultBtMessageFactory.cc
  6288. (setCommonProperty): Set dispatcher, requestFactory, this,
  6289. peerConnection to msg.
  6290. * src/BtRegistry.h
  6291. (BT_MESSAGE_RECEIVER): New macro.
  6292. * src/PeerConnection.h
  6293. (PeerConnectionWeakHandle): New type definition.
  6294. * src/BtMessageFactory.h
  6295. (BtMessageFactoryWeakHandle): New type definition.
  6296. * src/BitfieldMan.cc
  6297. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6298. cachedCompletedLength, cachedFilteredComletedLength,
  6299. cachedFilteredTotalLength.
  6300. Call updateCache().
  6301. (countMissingBlock): Return cachedNumMissingBlock.
  6302. (countMissingBlockNow): New function.
  6303. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6304. (countFilteredBlockNow): New function.
  6305. (setBit): Call updateCache().
  6306. (unsetBit): Call updateCache().
  6307. (setBitfield): Call updateCache().
  6308. (clearAllBit): Call updateCache().
  6309. (setAllBit): Use setBitInternal instead of setBit.
  6310. Call updateCache().
  6311. (addFilter): Call updateCache().
  6312. (enableFilter): Call updateCache().
  6313. (disableFilter): Call updateCache().
  6314. (clearFilter): Call updateCache().
  6315. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6316. (getFilteredTotalLengthNow): New function.
  6317. (getCompletedLength): Return cachedCompletedLength.
  6318. (getCompletedLengthNow): New function.
  6319. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6320. (getFilteredCompletedLengthNow): New function.
  6321. (updateCache): New function.
  6322. * src/BtMessageReceiver.h
  6323. (BtMessageReceiverWeakHandle): New type definition.
  6324. * src/DefaultBtMessageReceiver.cc
  6325. (receiveHandshake): Use messageFactory member.
  6326. (sendHandshake): Use messageFactory member.
  6327. (receiveMessage): Use messageFactory member.
  6328. * src/DefaultBtMessageFactory.h
  6329. (dispatcher): New variable.
  6330. (requestFactory): New variable.
  6331. (peerConnection): New variablle.
  6332. (setBtMessageDispatcher): New function.
  6333. (setBtRequestFactory): New function.
  6334. (setPeerConnection): New function.
  6335. * src/SharedHandle.h
  6336. (RefCount): New class.
  6337. (WeakHandle): New class.
  6338. * src/PeerObject.h
  6339. (BtMessageReceiver.h): New include.
  6340. (PeerObject): Added btMessageReceiver.
  6341. (btMessageReceiver): New variable.
  6342. * src/Util.cc
  6343. (countBit): Simplified.
  6344. * src/BtCancelMessage.cc
  6345. (doReceivedAction): Use dispatcher member.
  6346. * src/BtRequestFactory.h
  6347. (BtRequestFactoryWeakHandle): New type definition.
  6348. * src/PeerStorage.h
  6349. (downloadSpeed): int -> uint32_t
  6350. (uploadSpeed): int -> uint32_t
  6351. (sessionDownloadLength): long long int -> uint64_t
  6352. (sessionUploadLength): long long int -> uint64_t
  6353. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. To add RecoverableException, FatalException:
  6355. * src/AbstractCommand.cc
  6356. (onAbort): Exception -> RecoverableException
  6357. * src/PeerAbstractCommand.h
  6358. (RecoverableException.h): New include.
  6359. (onAbort): Exception -> RecoverableException.
  6360. * src/PeerInteractionCommand.cc
  6361. (onAbort): Exception -> RecoverableException.
  6362. * src/PeerAbstractCommand.cc
  6363. (execute): Exception -> RecoverableException.
  6364. (onAbort): Exception -> RecoverableException.
  6365. * src/TorrentRequestInfo.cc
  6366. (execute): Exception -> RecoverableException.
  6367. * src/MetalinkRequestInfo.cc
  6368. (execute): Exception -> RecoverableException.
  6369. * src/MetaFileUtil.cc: RecoverableException.
  6370. * src/AbstractCommand.h
  6371. (onAbort): Exception -> RecoverableException.
  6372. * src/DlRetryEx.h: Exception -> RecoverableException.
  6373. * src/DlAbortEx.h: Exception -> RecoverableException.
  6374. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6375. * src/Util.cc: Exception -> RecoverableException.
  6376. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6377. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6378. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6379. To make ID static const int
  6380. * src/BtInterestedMessage.h
  6381. (ID_t): Removed.
  6382. (ID): New variable.
  6383. (getId): Made non-const.
  6384. * src/BtPieceMessage.h
  6385. (ID_t): Removed.
  6386. (ID): New variable.
  6387. (getId): Made non-const.
  6388. * src/BtChokeMessage.h
  6389. (ID_t): Removed.
  6390. (ID): New variable.
  6391. (getId): Made non-const.
  6392. * src/BtHaveAllMessage.h
  6393. (ID_t): Removed.
  6394. (ID): New variable.
  6395. (getId): Made non-const.
  6396. * src/BtKeepAliveMessage.h
  6397. (ID_t): Removed.
  6398. (ID): New variable.
  6399. (getId): Made non-const.
  6400. * src/BtHandshakeMessage.h
  6401. (ID): New variable.
  6402. (getId): Made non-const.
  6403. * src/BtSuggestPieceMessage.h
  6404. (ID_t): Removed.
  6405. (ID): New variable.
  6406. (getId): Made non-const.
  6407. * src/BtPortMessage.h
  6408. (ID_t): Removed.
  6409. (ID): New variable.
  6410. (getId): Made non-const.
  6411. * src/AbstractBtMessage.h
  6412. (id): Removed.
  6413. (AbstractBtMessage): Removed id.
  6414. (getId): Removed.
  6415. * src/BtHaveMessage.h
  6416. (ID_t): Removed.
  6417. (ID): New variable.
  6418. (getId): Made non-const.
  6419. * src/BtAllowedFastMessage.h
  6420. (ID_t): Removed.
  6421. (ID): New variable.
  6422. (getId): Made non-const.
  6423. * src/BtCancelMessage.h
  6424. (ID_t): Removed.
  6425. (ID): New variable.
  6426. (getId): Made non-const.
  6427. * src/BtNotInterestedMessage.h
  6428. (ID_t): Removed.
  6429. (ID): New variable.
  6430. (getId): Made non-const.
  6431. * src/BtChokeMessage.h
  6432. (ID_t): Removed.
  6433. (ID): New variable.
  6434. (getId): Made non-const.
  6435. * src/BtRejectMessage.h
  6436. (ID_t): Removed.
  6437. (ID): New variable.
  6438. (getId): Made non-const.
  6439. * src/BtBitfieldMessage.h
  6440. (ID_t): Removed.
  6441. (ID): New variable.
  6442. (getId): Made non-const.
  6443. * src/BtUnchokeMessage.h
  6444. (ID_t): Removed.
  6445. (ID): New variable.
  6446. (getId): Made non-const.
  6447. * src/BtRequestMessage.h
  6448. (ID_t): Removed.
  6449. (ID): New variable.
  6450. (getId): Made non-const.
  6451. * src/BtHaveMessage.h
  6452. (ID_t): Removed.
  6453. (ID): New variable.
  6454. (getId): Made non-const.
  6455. To add --force-truncate command-line option and a check whether
  6456. the file already exists:
  6457. * src/DirectDiskAdaptor.h
  6458. (getFilePath): Made virtual public.
  6459. * src/MultiDiskAdaptor.h
  6460. (File.h): New include.
  6461. (DiskWriterEntry::fileEntry): Made private.
  6462. (DiskWriterEntry::fileExists): New function.
  6463. (DiskWriterEntry::getFileEntry): New function.
  6464. (fileExists): New function.
  6465. (getFilePath): New function.
  6466. * src/TorrentRequestInfo.cc
  6467. (FatalException.h): New include.
  6468. (message.h): New include.
  6469. (RecoverableException.h): New include.
  6470. (execute): Added a check whether file is already exists or not.
  6471. * src/DiskAdaptor.h
  6472. (fileExists): New function.
  6473. (getFilePath): New function.
  6474. * src/main.cc
  6475. (showUsage): Added an explanation of --force-truncate command-line
  6476. option.
  6477. (main): Added --force-truncate command-line option.
  6478. * src/Exception.h
  6479. (setMsg): buf[256] -> buf[1024]
  6480. * src/CopyDiskWriter.h
  6481. (getFilePath): Made public virtual.
  6482. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  6483. (fileExists): New function.
  6484. * src/DownloadEngineFactory.cc
  6485. (newTorrentConsoleEngine): Don't open file here.
  6486. * src/message.h
  6487. (EX_FILE_ALREADY_EXISTS): New definition.
  6488. * src/prefs.h
  6489. (PREF_FOECE_TRUNCATE): New definition.
  6490. * src/HttpResponseCommand.cc
  6491. (handleDefaultEncoding): Added a check whether the file already exists.
  6492. * src/SegmentMan.h
  6493. (fileExists): New function.
  6494. (shouldCancelDownloadForSafety): New function.
  6495. * src/FtpNegotiateCommand.cc
  6496. (recvSize): Added a check whether the file already exists.
  6497. * src/AbstractSingleDiskAdaptor.cc
  6498. (File.h): New include.
  6499. (fileExists): New function.
  6500. * src/AbstractSingleDiskAdaptor.h
  6501. (getFilePath): Removed.
  6502. (fileExists): New function.
  6503. * src/SegmentMan.cc
  6504. (fileExists): New function.
  6505. (shouldCancelDownloadForSafety): New function.
  6506. To fix regression bug in torrent downloading:
  6507. * src/DefaultBtRequestFactory.cc
  6508. (doChokedAction): New function.
  6509. * src/DefaultBtRequestFactory.h
  6510. (doChokedAction): New function.
  6511. * src/DefaultBtMessageDispatcher.cc
  6512. (doChokedAction): Do not delete request if its target is in allowed
  6513. fast set.
  6514. * src/DefaultBtInteractive.cc
  6515. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  6516. (sendKeepAlive): Send keep alive message even if the outgoing message
  6517. queue is not empty.
  6518. (decideInterest): Simplified the code.
  6519. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  6520. it is already called when BtChokeMessage is received from a peer.
  6521. * src/BtRequestFactory.h
  6522. (doChokedAction): New function.
  6523. To clean up code:
  6524. * src/PeerInteractionCommand.h
  6525. (executeInternal): Added virtual keyword explicitly.
  6526. (prepareForRetry): Added virtual keyword explicitly.
  6527. (prepareForNextPeer): Added virtual keyword explicitly.
  6528. (onAbort): Added virtual keyword explicitly.
  6529. * src/RequestSlot.cc
  6530. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  6531. * src/BtPieceMessage.cc
  6532. (doReceivedAction): Added a debug log of piece's bitfield.
  6533. * src/Piece.h
  6534. (getBitfieldLength): New function.
  6535. * src/ByteArrayDiskWriter.cc
  6536. (clear): Added buf = 0 to avoid double free corruption.
  6537. * src/FileAllocator.cc
  6538. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  6539. Added cp.reset().
  6540. * src/BitfieldMan.h
  6541. (operator=): Rewritten.
  6542. * src/BitfieldMan.cc
  6543. (BitfieldMan): Initialized bitfield, useBitfield.
  6544. * src/PeerConnection.cc
  6545. (receiveMessage): Added a call to socket->readable() after getting
  6546. message length to avoid possible EOF.
  6547. * src/Util.cc
  6548. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  6549. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. To add an ability to pre-allocate file space:
  6551. * src/DirectDiskAdaptor.h: Rewritten.
  6552. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  6553. * src/MultiDiskAdaptor.h: Rewritten.
  6554. * src/DefaultPieceStorage.cc
  6555. (MultiDiskWriter.h): Removed include.
  6556. (PreAllocationDiskWriter.h): Removed include.
  6557. (FileAllocationMonitor.h): New include.
  6558. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  6559. (initStorage): Rewritten.
  6560. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6561. * src/FileAllocator.h: New class.
  6562. * src/FileAllocator.cc: New class.
  6563. * src/FileAllocationMonitor.h: New class.
  6564. * src/FileAllocationMonitor.cc: New class.
  6565. * src/ConsoleFileAllocationMonitor.h: New class.
  6566. * src/ConsoleFileAllocationMonitor.cc: New class.
  6567. * src/AbstractSingleDiskAdaptor.h: New class.
  6568. * src/AbstractSingleDiskAdaptor.cc: New class.
  6569. * src/DiskAdaptor.h
  6570. (Directory.h): Removed include.
  6571. (DiskWriter.h): Removed include.
  6572. (FileEntry.h): Removed include.
  6573. (diskWriter): Removed.
  6574. (DiskAdaptor): Removed diskWriter.
  6575. (openFile): Made pure virtual.
  6576. (closeFile): Made pure virtual.
  6577. (openExistingFile): Made pure virtual.
  6578. (initAndOpenFile): Made pure virtual.
  6579. (writeData): Made pure virtual.
  6580. (readData): Made pure virtual.
  6581. (sha1Sum): Made pure virtual.
  6582. (getStoreDir): Returns const reference of storeDir.
  6583. (DiskAdaptorHandle): New type definition.
  6584. * src/main.cc
  6585. (ConsoleFileAllocationMonitor.h): New include.
  6586. (showUsage): Added default value description of -s option.
  6587. Added the description of --file-allocation option.
  6588. (main): Set default value of --file-allocation option to 'none'.
  6589. Added --file-allocation command-line option.
  6590. Setup FileAllocationMonitorFactory.
  6591. * src/FtpInitiateConnectionCommand.cc
  6592. (executeInternal): Removed diskWriter related processing, which was
  6593. moved to FtpNegotiationCommand.cc.
  6594. * src/DirectDiskAdaptor.cc
  6595. (getFilePath): Made non-const.
  6596. * src/CopyDiskAdaptor.h
  6597. (DiskAdaptor.h): Removed include.
  6598. (DiskWriter.h): Removed include.
  6599. (AbstractSingleDiskAdaptor.h): New include.
  6600. (getFilePath): Made non-const. Added virtual keyword.
  6601. (CopyDiskAdaptor): Removed diskWriter.
  6602. (getTempFile): Returns const reference.
  6603. (CopyDiskAdaptorHandle): New type definition.
  6604. * src/ByteArrayDiskWriter.cc
  6605. (clear): Simplified.
  6606. (initAndOpenFile): Rewritten.
  6607. (openFile): Call initAndOpenFile()
  6608. * src/MultiDiskAdaptor.cc: Rewritten.
  6609. * src/DownloadEngineFactory.cc
  6610. (FileAllocator.h): New include.
  6611. (FileAllocationMonitor.h): New include.
  6612. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  6613. create DefaultDiskWriter with file allocator.
  6614. * src/DiskWriter.h
  6615. (initAndOpenFile): Added totalLength argument.
  6616. (openFile): Added totalLength argument.
  6617. * src/prefs.h
  6618. (PREF_FILE_ALLOCATION): New definition.
  6619. (V_PREALLOC): New definition.
  6620. (V_NONE): New definition.
  6621. * src/HttpResponseCommand.cc
  6622. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  6623. size.
  6624. * src/FtpNegotiateCommand.cc
  6625. (Util.h): New include.
  6626. (recvSize): Open file here.
  6627. * src/Util.h
  6628. (ullitos): New function.
  6629. * src/CopyDiskWriter.h
  6630. (getFilePath): Made non-const.
  6631. * src/DefaultDiskWriter.h
  6632. (Option.h): New include.
  6633. (totalLength): Removed.
  6634. (DefaultDiskWriter): Removed totalLength.
  6635. (initAndOpenFile): Added totalLength argument.
  6636. (DefaultDiskWriterHandle): New type definition.
  6637. (createNewDiskWriter): New function.
  6638. * src/Util.cc
  6639. (ullitos): New function.
  6640. * src/DefaultDiskWriter.cc
  6641. (message.h): New include.
  6642. (FileAllocator.h): New include.
  6643. (prefs.h): New include.
  6644. (Util.h): New include.
  6645. (DefaultDiskWriter): Removed totalLength.
  6646. (initAndOpenFile): Added file allocation.
  6647. (createNewDiskWriter): New function. Just for temporary solution.
  6648. It will be rewritten later.
  6649. * src/DiskAdaptor.cc
  6650. (DiskAdaptor): Removed diskWriter.
  6651. * src/AbstractDiskWriter.cc
  6652. (LogFactory.h): New include.
  6653. (AbstractDiskWriter): Added fileAllocator, logger.
  6654. (openFile): Added totalLength argument.
  6655. * src/AbstractDiskWriter.h
  6656. (FileAllocator.h): New include.
  6657. (Logger.h): New include.
  6658. (fileAllocator): New variable.
  6659. (logger): New variable.
  6660. (openFile): Added totalLength argument. Added virtual keyword
  6661. explicitly.
  6662. (openExistingFile): Added totalLength argument. Added virtual keyword
  6663. explicitly.
  6664. (closeFile): Added virtual keyword explicitly.
  6665. (sha1Sum): Added virtual keyword explicitly.
  6666. (writeData): Added virtual keyword explicitly.
  6667. (readData): Added virtual keyword explicitly.
  6668. (setFileAllocator): New function.
  6669. * src/DefaultPieceStorage.h
  6670. (FileAllocator.h): New include.
  6671. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6672. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6673. * src/FileProgressMonitor.h: New class.
  6674. To compile aria2 on PC-BSD:
  6675. * src/DefaultBtContext.cc
  6676. (libgen.h): New include.
  6677. To fix memory leak:
  6678. * src/Exception.h
  6679. (~Exception): Delete cause. Fixed memory leak.
  6680. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Rewritten a portion of bittorrent implementation:
  6682. * src/BtMessageValidator.h: New class.
  6683. * src/BtBitfieldMessageValidator.h: New class.
  6684. * src/BtHandshakeMessageValidator.h: New class.
  6685. * src/BtRequestMessageValidator.h: New class.
  6686. * src/BtSuggestPieceMessageValidator.h: New class.
  6687. * src/BtAllowedFastMessageValidator.h: New class.
  6688. * src/BtRejectMessageValidator.h: New class.
  6689. * src/BtCancelMessageValidator.h: New class.
  6690. * src/BtPieceMessageValidator.h: New class.
  6691. * src/BtHaveMessageValidator.h: New class.
  6692. * src/BtEventListener.h: New class.
  6693. * src/AbstractBtEventListener.h: New class.
  6694. * src/BtEvent.h: New class.
  6695. * src/BtChokingEvent.h: New class.
  6696. * src/BtChokedEvent.h: New class.
  6697. * src/BtCancelSendingPieceEvent.h: New class.
  6698. * src/BtAbortOutstandingRequestEvent.h: New class.
  6699. * src/Randomizer.h: New class.
  6700. * src/SimpleRandomizer.h: New class.
  6701. * src/BtMessage.h: New class.
  6702. * src/AbstractBtMessage.h: New class.
  6703. * src/SimpleBtMessage.h: New class.
  6704. * src/BtHaveMessage.h: New class.
  6705. * src/BtInterestedMessage.h: New class.
  6706. * src/BtAllowedFastMessage.h: New class.
  6707. * src/BtUnchokeMessage.h: New class.
  6708. * src/BtCancelMessage.h: New class.
  6709. * src/BtNotInterestedMessage.h: New class.
  6710. * src/BtChokeMessage.h: New class.
  6711. * src/BtHaveNoneMessage.h: New class.
  6712. * src/BtHandshakeMessage.h: New class.
  6713. * src/BtSuggestPieceMessage.h: New class.
  6714. * src/BtHaveMessage.h: New class.
  6715. * src/BtPieceMessage.h: New class.
  6716. * src/BtHaveAllMessage.h: New class.
  6717. * src/BtKeepAliveMessage.h: New class.
  6718. * src/BtPortMessage.h: New class.
  6719. * src/BtRejectMessage.h: New class.
  6720. * src/BtBitfieldMessage.h: New class.
  6721. * src/BtRequestMessage.h: New class.
  6722. * src/DefaultBtRequestFactory.h: New class.
  6723. * src/DefaultBtMessageReceiver.h: New class.
  6724. * src/BtInteractive.h: New class.
  6725. * src/BtMessageDispatcher.h: New class.
  6726. * src/DefaultBtMessageDispatcher.h: New class.
  6727. * src/DefaultBtInteractive.h: New class.
  6728. * src/BitfieldManFactory.h: New class.
  6729. * src/HandleRegistry.h: New class.
  6730. * src/BtMessageFactory.h: New class.
  6731. * src/BtMessageReceiver.h: New class.
  6732. * src/DefaultBtMessageFactory.h: New class.
  6733. * src/PeerObject.h: New class.
  6734. * src/BtRequestFactory.h: New class.
  6735. * src/SuggestPieceMessage.h: Removed.
  6736. * src/PortMessage.h: Removed.
  6737. * src/SuggestPieceMessage.h: Removed.
  6738. * src/KeepAliveMessage.h: Removed.
  6739. * src/HandshakeMessage.h: Removed.
  6740. * src/PeerInteraction.h: Removed.
  6741. * src/UnchokeMessage.h: Removed.
  6742. * src/PieceMessage.h: Removed.
  6743. * src/RequestMessage.h: Removed.
  6744. * src/InterestedMessage.h: Removed.
  6745. * src/HaveMessage.h: Removed.
  6746. * src/CancelMessage.h: Removed.
  6747. * src/RejectMessage.h: Removed.
  6748. * src/AllowedFastMessage.h: Removed.
  6749. * src/HaveNoneMessage.h: Removed.
  6750. * src/SimplePeerMessage.h: Removed.
  6751. * src/HaveAllMessage.h: Removed.
  6752. * src/BitfieldMessage.h: Removed.
  6753. * src/PeerMessageFactory.h: Removed.
  6754. * src/NotInterestedMessage.h: Removed.
  6755. * src/ChokeMessage.h: Removed.
  6756. * src/PeerMessage.h: Removed.
  6757. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. To know root cause of exception:
  6759. * src/Exception.h
  6760. (cause): New variable.
  6761. (Exception): Added a parameter.
  6762. (getMsg): Return const reference to msg.
  6763. (getCause): New function.
  6764. * src/DlRetryEx.h
  6765. (DlRetryEx): Added a parameter 'cause'.
  6766. Added an overloaded constructor.
  6767. (DlAbortEx): Added a parameter 'cause'.
  6768. Added an overloaded constructor.
  6769. * src/SimpleLogger.cc
  6770. (writeLog): Log nested exception messages recursively.
  6771. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. * src/DefaultBtProgressInfoFile.cc
  6773. (load): Fixed memory leak when the infohash doesn't match.
  6774. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. * src/DefaultPeerStorage.cc
  6776. (calculateStat): Simplified the code by combining 2 loops into 1.
  6777. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  6779. for BitTorrent download:
  6780. * src/PeerAbstractCommand.cc
  6781. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  6782. * src/main.cc:
  6783. (timeoutSpecified): Removed.
  6784. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  6785. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  6786. * src/TorrentRequestInfo.cc
  6787. (timeoutSpecified): Removed.
  6788. (torrentHandler): Removed timeoutSpecified and the adjustment of
  6789. timeout value.
  6790. * src/prefs.h
  6791. (PREF_BT_TIMEOUT): New definition.
  6792. Delete unused variables:
  6793. * src/TorrentRequestInfo.cc
  6794. (requestInfo): Removed.
  6795. Move setSignalHander to Util::setGlobalSignalHandler:
  6796. * src/TorrentRequestInfo.cc:
  6797. setSignalHander -> Util::setGlobalSignalHandler
  6798. * src/main.cc
  6799. (setSignalHander): Removed.
  6800. (main): setSignalHander -> Util::setGlobalSignalHandler
  6801. * src/Util.h
  6802. (setGlobalSignalHandler): New function.
  6803. * src/Util.cc
  6804. (setGlobalSignalHandler): New function.
  6805. * src/UrlRequestInfo.cc:
  6806. setSignalHander -> Util::setGlobalSignalHandler
  6807. Reset peer status in order to exit gracefully:
  6808. * src/PeerAbstractCommand.cc
  6809. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  6810. To fix the bug that causes the number of bytes uploaded is not saved
  6811. to .aria2 file:
  6812. * src/DefaultPeerStorage.h
  6813. (removedPeerSessionDownloadLength): New variable.
  6814. (removedPeerSessionUploadLength): New variable.
  6815. * src/DefaultPeerStorage.cc
  6816. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  6817. removedPeerSessionUploadLength(0).
  6818. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  6819. through all peers, and then add removedPeerSessionDownloadLength(
  6820. removedPeerSessionUploadLength) to it.
  6821. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  6822. (to) the peer to removedPeerSessionDownloadLength
  6823. (removedPeerSessionUploadLength).
  6824. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. To add Metalink location option:
  6826. * src/MetalinkRequestInfo.cc
  6827. (execute): Call MetalinkEntry::setLocationPreference()
  6828. * src/main.cc
  6829. (showUsage): Added the help message for --metalink-location option.
  6830. (main): Added --metalink-location option.
  6831. * src/prefs.h
  6832. (PREF_METALINK_LOCATION): New definition.
  6833. * src/MetalinkEntry.cc
  6834. (AddLocationPreference): New function object.
  6835. (setLocationPreference): New function.
  6836. * src/Xml2MetalinkProcessor.cc
  6837. (getResource): Set location attribute to MetalinkResource
  6838. To show URLs to download
  6839. * src/UrlRequestInfo.h
  6840. (printUrls): New function.
  6841. To add multiple <file> Metalink support:
  6842. * src/MetalinkEntry.h
  6843. (MetalinkResources): Removed.
  6844. (setLocationPreference): New function.
  6845. (MetalinkEntryHandle): New type definition.
  6846. (MetalinkEntries): New type definition.
  6847. * src/Xml2MetalinkProcessor.h
  6848. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6849. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6850. (parseFile): Metalinker* -> MetalinkerHandle
  6851. * src/UrlRequestInfo.h
  6852. (execute): RequestInfo* -> RequestInfos
  6853. * src/MetalinkRequestInfo.cc
  6854. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  6855. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  6856. (execute): RequestInfo* -> RequestInfos
  6857. Added multiple <file> support. Print filename when it is queued.
  6858. * src/MetalinkRequestInfo.h
  6859. (execute): RequestInfo* -> RequestInfos
  6860. (getDownloadEngine): Removed.
  6861. * src/RequestInfo.h
  6862. (RequestInfoHandle): New type definition.
  6863. (RequestInfos): New type definition.
  6864. (execute): RequestInfo* -> RequestInfos
  6865. (getDownloadEngine): Removed.
  6866. * src/MetalinkResource.h
  6867. (MetalinkResourceHandle): New type definition.
  6868. (MetalinkResources): New type definition.
  6869. * src/MetalinkEntry.cc
  6870. (~MetalinkEntry): Removed the deletion of the elements of resources,
  6871. because the element is now of type MetalinkResourceHandle.
  6872. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  6873. (Supported): MetalinkResource* -> MetalinkResourceHandle
  6874. (dropUnsupportedResource): Removed the deletion of the elements of
  6875. resources because the element is now of type MetalinkResourceHandle.
  6876. * src/Xml2MetalinkProcessor.cc
  6877. (parseFile): Metalinker* -> MetalinkerHandle
  6878. MetalinkEntry* -> MetalinkEntryHandle
  6879. Removed try-catch block.
  6880. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6881. MetalinkResource* -> MetalinkResourceHandle
  6882. Removed try-catch block.
  6883. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6884. Free result by using xmlXPathFreeObject()
  6885. * src/Metalinker.cc
  6886. (~Metalinker): Removed the deletion of entries.
  6887. MetalinkEntry* -> MetalinkEntryHandle
  6888. (queryEntry): Add multiple <file> Metalink support.
  6889. * src/Metalinker.h
  6890. (MetalinkEntries): Removed.
  6891. (queryEntry): MetalinkEntry* -> MetalinkEntries
  6892. * src/MetalinkProcessor.h
  6893. (parseFile): Metalinker* -> MetalinkerHandle
  6894. Bug fixes:
  6895. * src/PeerChokeCommand.cc
  6896. (execute): cat01->cat02
  6897. * src/DefaultPieceStorage.cc
  6898. (DefaultPieceStorage): Added diskAdaptor(0)
  6899. * src/TrackerWatcherComand.cc:
  6900. (execute): Use btAnnounce->noMoreAnnounce()
  6901. to determin whether the function returns true or not.
  6902. * src/TrackerUpdateCommand.cc:
  6903. (execute): Use btAnnounce->noMoreAnnounce()
  6904. to determin whether the function returns true or not.
  6905. * src/FtpConnection.cc
  6906. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  6907. This is the fix of the busy loop bug.
  6908. * src/DownloadCommand.cc
  6909. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  6910. cached PeerStat.
  6911. The value of "name" entry in torrent file is now set by
  6912. *DiskAdaptor::setTopDir(...) methods.
  6913. * src/MultiDiskAdaptor.h
  6914. (topDir): New variable.
  6915. (setTopDir): New function.
  6916. (getTopDir): New function.
  6917. * src/MultiDiskAdaptor.cc
  6918. (getFilePath): Concat storDir, "/" and topDir.
  6919. (mkdir): Use getFilePath() to get the directory path for output.
  6920. * src/DefaultPieceStorage.cc
  6921. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  6922. CopyDiskAdaptor.
  6923. * src/CopyDiskAdaptor.h
  6924. (topDir): New variable.
  6925. (setTopDir): New function.
  6926. (getTopDir): New function.
  6927. * src/CopyDiskAdaptor.cc
  6928. (fixFilename): Updated.
  6929. Misc
  6930. * src/UrlRequestInfo.h
  6931. (e): Removed.
  6932. (UrlRequestInfo): Removed e.
  6933. (getDownloadEngine): Removed.
  6934. * src/UrlRequestInfo.cc
  6935. (handler): Rewritten.
  6936. (printUrls): New function.
  6937. (execute): Call printUrls().
  6938. * src/HandshakeMessage.cc
  6939. (check): peerinteraction->getBtContext() -> btContext
  6940. * src/PeerInteraction.h
  6941. (getBtContext): Removed.
  6942. * src/TorrentRequestInfo.h
  6943. (execute): RequestInfo* -> RequestInfos
  6944. (getDownloadEngine): Removed.
  6945. * src/TorrentRequestInfo.cc
  6946. (haltRequested): Removed.
  6947. (btHaltRequested): New variable.
  6948. (torrentHandler): haltRequested -> btHaltRequested
  6949. (execute): RequestInfo* -> RequestInfos
  6950. * src/TorrentConsoleDownloadEngine.cc
  6951. (afterEachIteration): haltRequested -> btHaltRequested.
  6952. * src/ConsoleDownloadEngine.h
  6953. (initStatistics): Added virtual.
  6954. (calculateStatistics): Added virtual.
  6955. (onEndOfRun): Added virtual.
  6956. (afterEachIteration): Added virtual.
  6957. * src/ConsoleDownloadEngine.cc
  6958. (haltRequested): New variable.
  6959. (afterEachIteration): New function.
  6960. * src/main.cc
  6961. (requestInfo): Removed.
  6962. * src/SegmentMan.cc
  6963. (findSlowerSegmentEntry): Refactored.
  6964. * Release 0.9.0
  6965. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6966. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  6967. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  6968. * src/TorrentMan.h: Removed.
  6969. * src/TorrentMan.cc: Removed.
  6970. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  6971. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  6972. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  6973. * src/PeerAbstractCommand.cc: Use btRuntime.
  6974. * src/BtContextAwareCommand.h: New class.
  6975. * src/FileEntry.h: Added accessor methods for following variables.
  6976. (path): Made private.
  6977. (length): Made private.
  6978. (offset): Made private.
  6979. (extracted): Made private.
  6980. (requested): Made private.
  6981. (FileEntries): New definition.
  6982. (FileEntryHandle): New definition.
  6983. * src/FileEntry.cc: New file.
  6984. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  6985. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  6986. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  6987. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  6988. * src/PieceStorage.h: New file.
  6989. * src/PeerInteractionCommand.h: Use btContext.
  6990. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  6991. btRuntime.
  6992. * src/DefaultBtProgressInfoFile.h: New file.
  6993. * src/DefaultBtProgressInfoFile.cc: New file.
  6994. * src/File.cc
  6995. (Util.h): New include.
  6996. (mkdirs): New function.
  6997. * src/MultiDiskAdaptor.h
  6998. (mkdir): New function.
  6999. * src/PeerListProcessor.h
  7000. (Peers): Removed.
  7001. * src/PeerInteraction.h
  7002. (torrentMan): Removed.
  7003. (btContext): New variable.
  7004. (peerStorage): New variable.
  7005. (pieceStorage): New variable.
  7006. (btAnnounce): New variable.
  7007. (getTorrentMan): Removed.
  7008. (getBtContext): New function.
  7009. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7010. btAnnounce.
  7011. * src/HandshakeMessage.h
  7012. (TorrentMan.h): Removed.
  7013. * src/HandshakeMessage.cc: Use btContext.
  7014. * src/DefaultBtAnnounce.cc: New file.
  7015. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7016. * src/DefaultPieceStorage.cc: New file.
  7017. * src/DefaultBtContext.h: New file.
  7018. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7019. Use the accessor methods of FileEntry.
  7020. * src/CookieBox.cc: Updated to use Util::slice().
  7021. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7022. * src/common.h (SharedHandle.h): New include.
  7023. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7024. pieceStorage.
  7025. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7026. * src/DiskAdaptor.h
  7027. (topDir): Removed.
  7028. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7029. (setTopDir): Removed.
  7030. (getTopDir): Removed.
  7031. * src/BtContext.h: New file.
  7032. * src/DefaultPeerStorage.h: New file.
  7033. * src/PieceMessage.h (TorrentMan.h): Removed.
  7034. * src/RequestMessage.h (TorrentMan.h): Removed.
  7035. * src/TorrentDownloadEngine.h
  7036. (uploadLength): New variable.
  7037. (btContext): New variable.
  7038. (btRuntime): New variable.
  7039. (pieceStorage): New variable.
  7040. (peerStorage): New variable.
  7041. (btAnnounce): New variable.
  7042. (btProgressInfoFile): New variable.
  7043. (torrentMan): Removed.
  7044. (setBtContext): New function.
  7045. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7046. peerStorage, btAnnounce, btProgressInfoFile.
  7047. * src/Piece.h
  7048. (toString): New function.
  7049. (Pieces): New type definition.
  7050. * src/Peer.h
  7051. (active): New variable.
  7052. (Peer): Added active.
  7053. (activate): Set active to true.
  7054. (deactivate): Set active to false.
  7055. (isActive): New function.
  7056. (Peers): New type definition.
  7057. * src/DirectDiskAdaptor.cc
  7058. (getFilePath): Use the accessor methods of FileEntry.
  7059. * src/TorrentConsoleDownloadEngine.h
  7060. (afterEachIteration): New function.
  7061. * src/TorrentConsoleDownloadEngine.cc
  7062. (haltRequested): New variable.
  7063. (sendStatistics): Use pieceStorage, btRuntime.
  7064. (afterEachIteration): New function.
  7065. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7066. * src/Directry.h
  7067. (Directory): New function.
  7068. (DirectoryHandle): New type definition.
  7069. * src/BtProgressInfoFile.h: New file.
  7070. * src/RequestMessage.cc: Use pieceStorage.
  7071. * src/BtRuntime.h: New file.
  7072. * src/DefaultBtContext.cc: New file.
  7073. * src/BitfieldMan.h
  7074. (getCompletedLength): New function(private).
  7075. (getCompletedLength): New function.
  7076. (getFilteredCompletedLength): New function.
  7077. * src/BitfieldMan.h
  7078. (getCompletedLength): New function(private).
  7079. (getCompletedLength): New function.
  7080. (getFilteredCompletedLength): New function.
  7081. * src/MultiDiskAdaptor.cc
  7082. (mkdir): New function.
  7083. (openFile): Call mkdir().
  7084. (initAndOpenFile): Call mkdir().
  7085. * src/CancelMessage.h
  7086. (TorrentMan.h): Removed.
  7087. * src/RejectMessage.h
  7088. (TorrentMan.h): Removed.
  7089. * src/DownloadEngineFactory.cc
  7090. (DefaultPieceStorage.h): New include.
  7091. (DefaultPeerStorage.h): New include.
  7092. (DefaultBtAnnounce.h): New include.
  7093. (DefaultBtProgressInfoFile.h): New include.
  7094. (newTorrentConsoleEngine): Rewritten.
  7095. * src/ShareRatioSeedCriteria.h
  7096. (torrentMan): Removed.
  7097. (btContext): New variable.
  7098. (peerStorage): New variable.
  7099. (btRuntime): New variable.
  7100. (evaluate): Use btContext, btRuntime, peerStorage.
  7101. * src/AnnounceTier.h: New file.
  7102. * src/BtAnnounce.h: New file.
  7103. * src/BtRegistry.h: New file.
  7104. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7105. * src/PeerConnection.h (TorrentMan.h): Removed.
  7106. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7107. * src/Util.h
  7108. (slice): Added an argument.
  7109. * src/Util.cc
  7110. (slice): Added an argument to control whether trim is made or not.
  7111. * src/PeerStorage.h: New file.
  7112. * src/BtRegistry.cc: New file.
  7113. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7114. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7115. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7116. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7117. * src/TorrentRequestInfo.h
  7118. (e): Removed.
  7119. (showFileEntry): Added an argument.
  7120. (getDownloadEngine): Return 0.
  7121. * src/DefaultBtAnnounce.h: New file.
  7122. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7123. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7124. * src/PeerMessageFactory.h
  7125. (btContext): New variable.
  7126. (pieceStorage): New variable.
  7127. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7128. btAnnounce.
  7129. * src/DiskAdaptor.cc
  7130. (DiskAdaptor): Removed topDir.
  7131. (~DiskAdaptor): Removed topDir.
  7132. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7133. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7134. * src/File.h (mkdirs): New function.
  7135. * src/DefaultPeerStorage): New file.
  7136. * src/DownloadEngineFactory.h
  7137. (newTorrentConsoleEngine): Use btContext.
  7138. * src/BtContextAwareCommand.cc: New file.
  7139. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7140. * src/PeerMessage.h
  7141. (btContext): New variable.
  7142. (peerStorage): New variable.
  7143. (pieceStorage): New variable.
  7144. (setBtContext): New function.
  7145. * src/Directry.cc
  7146. (Directory): New function.
  7147. (createDir): Do nothing if name.size() == 0.
  7148. * src/AnnounceList.h
  7149. (AnnounceTier): Removed.
  7150. (AnnounceTiers): Removed.
  7151. * src/DefaultPieceStorage.h: New file.
  7152. * src/Piece.cc (toString): New function.
  7153. To fix typo:
  7154. * src/main.cc (showVersion): Fixed typo.
  7155. To fix compile warning:
  7156. * src/DelegatingPeerListProcessor.cc
  7157. (canHandle): Added "return false".
  7158. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7160. make the process of announce request testable.
  7161. * src/TrackerWatcherCommand.h
  7162. (TimeA2.h): Removed.
  7163. (interval): Removed.
  7164. (checkPoint): Removed.
  7165. (createRequestCommand): Added an argument 'url'.
  7166. (TrackerWatherCommand): Removed interval.
  7167. (createCommand): New function.
  7168. * src/DownloadEngineFactory.cc
  7169. (newTorrentConsoleEngine): Updated according to the changes in
  7170. TrackerWatherCommand.
  7171. * src/TorrentMan.cc
  7172. (DelegatingPeerListProcessor.h): New includes.
  7173. (TorrentMan): Added the initialization of announceInterval.
  7174. (isStoppedAnnounceReady): New function.
  7175. (isCompletedAnnounceReady): New function.
  7176. (isDefaultAnnounceReady): New function.
  7177. (isAnnounceReady): New function.
  7178. (getAnnounceUrl): New function.
  7179. (announceStart): New function.
  7180. (announceFailure): New function.
  7181. (announceSuccess): New function.
  7182. (isAllAnnounceFailed): New function.
  7183. (resetAnnounce): New function.
  7184. (processAnnounceResponse): New function.
  7185. (needMorePeerConnection): New function.
  7186. (noMoreAnnounce): New function.
  7187. * src/TrackerUpdateCommand.h
  7188. (getTrackerResponse): int->size_t
  7189. * src/TorrentMan.h
  7190. (isStoppedAnnounceReady): New function.
  7191. (isCompletedAnnounceReady): New function.
  7192. (isDefaultAnnounceReady): New function.
  7193. (announceInterval): New variable.
  7194. (isAnnounceReady): New function.
  7195. (getAnnounceUrl): New function.
  7196. (announceStart): New function.
  7197. (announceFailure): New function.
  7198. (announceSuccess): New function.
  7199. (isAllAnnounceFailed): New function.
  7200. (resetAnnounce): New function.
  7201. (processAnnounceResponse): New function.
  7202. (needMorePeerConnection): New function.
  7203. (noMoreAnnounce): New function.
  7204. * src/TrackerWatcherCommand.cc
  7205. (TrackerWatherCommand): Removed interval and checkPoint.
  7206. (execute): Rewritten.
  7207. (createCommand): New function.
  7208. (createRequestCommand): Rewritten.
  7209. * src/TrackerUpdateCommand.cc
  7210. (MetaFileUtil.h): Removed.
  7211. (DelegatingPeerListProcessor.h): Removed.
  7212. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7213. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Request -> RequestHandle:
  7215. * src/HttpResponseCommand.h: Request->RequestHandle
  7216. * src/AbstractCommand.cc: Request->RequestHandle
  7217. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7218. * src/HttpRequestCommand.cc: Request->RequestHandle
  7219. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7220. * src/AbstractCommand.h: Request->RequestHandle
  7221. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7222. * src/HttpResponseCommand.cc: Request->RequestHandle
  7223. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7224. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7225. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7226. * src/HttpConnection.h: Request->RequestHandle
  7227. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7228. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7229. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7230. * src/DownloadCommand.h: Request->RequestHandle
  7231. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7232. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7233. * src/HttpRequestCommand.h: Request->RequestHandle
  7234. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7235. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7236. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7237. * src/HttpDownloadCommand.h: Request->RequestHandle
  7238. * src/FtpConnection.cc: Request->RequestHandle
  7239. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7240. * src/UrlRequestInfo.cc: Request->RequestHandle
  7241. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7242. * src/HttpConnection.h: Request->RequestHandle
  7243. * src/DownloadCommand.cc: Request->RequestHandle
  7244. * src/FtpConnection.h: Request->RequestHandle
  7245. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7246. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7247. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7248. * src/Request.h
  7249. (SharedHandle.h): New include.
  7250. (RequestHandle): New type definition.
  7251. (Requests): Redefined.
  7252. To add MULTITRACKER support:
  7253. * src/TrackerWatcherCommand.h
  7254. (createRequestCommand): New function.
  7255. * src/DownloadEngineFactory.cc
  7256. (newTorrentConsoleEngine): Removed req.
  7257. * src/prefs.h
  7258. (PREF_TRACKER_MAX_TRIES): New definition.
  7259. * src/TorrentMan.cc
  7260. (TorrentMan): Removed req. Added trackerNumTry.
  7261. (~TorrentMan): Removed req.
  7262. (setupInternal1): Added announceList.
  7263. * src/TorrentRequestInfo.cc
  7264. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7265. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7266. * src/main.cc
  7267. (main): Added PREF_TRACKER_MAX_TRIES.
  7268. * src/TorrentMan.h
  7269. (Request.h): Removed.
  7270. (AnnounceList.h): New include.
  7271. (trackerNumTry): New variable.
  7272. (req): Removed.
  7273. (announceList): New variable.
  7274. * src/TrackerWatcherCommand.cc
  7275. (execute): Rewritten.
  7276. (createRequestCommand): New function.
  7277. * src/TrackerUpdateCommand.cc
  7278. (execute): Updated with the use of AnnounceList.
  7279. * src/AnnounceList.cc: New class.
  7280. * src/AnnounceList.h: New class.
  7281. To fix typo:
  7282. * src/prefs.h
  7283. (PREF_MAX_TRIES): max_try->max_tries
  7284. To not to decode "+" as space in URL decode:
  7285. * src/Util.cc
  7286. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7287. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7288. To add timeout to async name resolution:
  7289. * src/AbstractCommand.h
  7290. (nameResolveFinished): New function. This is not elegant way. It needs
  7291. to be more refined.
  7292. (nameResolverCheck): New variable.
  7293. * src/AbstractCommand.cc
  7294. (AbstractCommand): Added nameResolverCheck.
  7295. (execute): Added the check whether the name resolution has finished.
  7296. (setNameResolverCheck): Set nameResolverCheck to true.
  7297. (disableNameResolverCheck): Set nameResolverCheck to false.
  7298. (nameResolverFinished): New function.
  7299. * src/FtpInitiateConnectionCommand.h
  7300. (nameResolverFinished): New function.
  7301. * src/FtpInitiateConnectionCommand.cc
  7302. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7303. * src/HttpInitiateConnectionCommand.h
  7304. (nameResolverFinished): New function.
  7305. * src/HttpInitiateConnectionCommand.cc
  7306. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7307. * src/prefs.h
  7308. (PREF_DNS_TIMEOUT): New definition.
  7309. * src/main.cc
  7310. (main): Added PREF_DNS_TIMEOUT.
  7311. To add the support for a non-compact response from a tracker:
  7312. * src/PeerListProcessor.h: New class.
  7313. * src/DefaultPeerListProcessor.h: New class.
  7314. * src/DefaultPeerListProcessor.cc: New class.
  7315. * src/CompactPeerListProcessor.h: New class.
  7316. * src/CompactPeerListProcessor.cc: New class.
  7317. * src/DelegatingPeerListProcessor.h: New class.
  7318. * src/DelegatingPeerListProcessor.cc: New class.
  7319. * src/TorrentMan.cc
  7320. (addPeer): New function(overload).
  7321. (addPeer): Delete unused peers only when new peer is added.
  7322. * src/TorrentMan.h
  7323. (PeerListProcessor.h): Included.
  7324. (Peers): Removed.
  7325. (addPeer): New function(overload).
  7326. * src/TrackerUpdateCommand.cc
  7327. (netinet/in.h): Removed.
  7328. (DelegatingPeerListProcessor.h): Included.
  7329. (execute): Updated to use DelegatingPeerListProcessor.
  7330. To fix the memory leak in TorrentMan::peers:
  7331. * src/PeerAbstractCommand.cc
  7332. (onAbort): Added peer->resetStatus().
  7333. * src/Peer.h
  7334. (resetStatus): Made public.
  7335. To improve the precision of the speed calculation:
  7336. * src/SpeedCalc.h
  7337. (nextInterval): New variable.
  7338. * src/SpeedCalc.cc
  7339. (reset): Added nextInterval.
  7340. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7341. (changeSw): Set nextInterval to 15 seconds relative to the current
  7342. instant time.
  7343. * src/main.cc
  7344. (showVersion): Updated.
  7345. (showUsage): Updated.
  7346. * Release 0.8.1
  7347. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. * src/main.cc
  7349. (showUsage): Commented out --min-segment-size option.
  7350. (main): Commented out --min-segment-size option.
  7351. * Release 0.8.0
  7352. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. * src/*.{h,cc}:
  7354. Added an exception to the license which allows linking with OpenSSL.
  7355. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. * src/AbstractCommand.cc
  7357. (execute): Check whether the download has finished before checking
  7358. socket status.
  7359. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7360. Do not exit even if no segment is available.
  7361. * src/prefs.h
  7362. (PREF_STARTUP_IDLE_TIME): New definition.
  7363. * src/PeerInteractionCommand.cc
  7364. (executeInternal): Removed max speed limit. Because it performs bad.
  7365. (receiveMessages): Added max speed limit. This was better than above,
  7366. but still a little bit to be desired. Sometimes the download speed
  7367. became much faster than I specified.
  7368. * src/SpeedCalc.h
  7369. (start): New variable.
  7370. (accumulatedLength): New variable.
  7371. (getAvgSpeed): New function.
  7372. * src/SpeedCalc.cc
  7373. (reset): Added start, accumulatedLength.
  7374. (update): Added calculation of an average speed.
  7375. (getAvgSpeed): New function.
  7376. * src/DownloadCommand.h
  7377. (sw): Removed.
  7378. * src/main.cc
  7379. (main): Added PREF_STARTUP_IDLE_TIME.
  7380. * src/PeerStat.h
  7381. (STATUS): Added REQUEST_IDLE.
  7382. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7383. (getAvgDownloadSpeed): New function
  7384. (requestIdle): New function.
  7385. * src/SegmentMan.h
  7386. (SegmentEntryHandle): New type definition.
  7387. (SegmentEntries): Now holds SegmentEntryHandle.
  7388. (findSlowerSegmentEntry): New funtion.
  7389. * src/SegmentMan.cc
  7390. (save): Updated according to the changes in SegmentEntries.
  7391. (read): Updated according to the changes in SegmentEntries.
  7392. (FindSegmentEntryByIndex): Updated according to the changes in
  7393. SegmentEntries.
  7394. (FindSegmentEntryByCuid): Updated according to the changes in
  7395. SegmentEntries.
  7396. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7397. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7398. Renamed uitr as itr.
  7399. (findSlowerSegmentEntry): New function.
  7400. (getSegment): Updated according to the changes in SegmentEntries.
  7401. Added the feature that cancels the segment with slow server and fast
  7402. one takes it over.
  7403. (cancelSegment): Updated according to the changes in SegmentEntries.
  7404. (getDownloadLength): Updated according to the changes in
  7405. SegmentEntries.
  7406. (init): Assigned 0 to bitfield after deleting it.
  7407. * src/DownloadCommand.cc
  7408. (STARTUP_IDLE_TIME): Removed.
  7409. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7410. * src/PeerChokeCommand.cc
  7411. (optUnchokingPeer): Updated according to the changes in Peer.
  7412. (ResetDelta): Removed.
  7413. (UploadFaster): Updated according to the changes in Peer.
  7414. (DownloadFaster): Updated according to the changes in Peer.
  7415. (execute): I clarify the meaning of "upload" and "download" here.
  7416. "upload" means the transfer from localhost to remote host.
  7417. "download" means the transfer from remote host to localhost.
  7418. Based on this rule, I swapped orderByUploadRate and
  7419. orderByDownloadRate.
  7420. * src/PeerInteractionCommand.cc
  7421. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7422. (executeInternal): Removed the argument of
  7423. peerInteraction->sendMessages().
  7424. (receiveMessages): Rewritten download speed limit.
  7425. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7426. * src/HttpResponseCommand.cc
  7427. (handleDefaultEncoding): If file size is unknown in torrent request,
  7428. do not call segmentMan->initBitfield() here.
  7429. Disabled persistent connection feature in torrent request.
  7430. * src/UrlRequestInfo.h
  7431. (UrlRequestInfo): Removed const qualifier from option.
  7432. * src/TorrentMan.h
  7433. (TransferStat): New class.
  7434. (deltaDownloadLength): Removed.
  7435. (deltaUploadLength): Removed.
  7436. (addDeltaDownloadLength): Removed.
  7437. (getDeltaDownloadLength): Removed.
  7438. (resetDeltaDownloadLength): Removed.
  7439. (addDeltaUploadLength): Removed.
  7440. (getDeltaUploadLength): Removed.
  7441. (resetDeltaUploadLength): Removed.
  7442. (addActivePeer): Added peer->activate().
  7443. (deleteActivePeer): Added peer->deactivate().
  7444. (calculateStat): New function.
  7445. * src/TorrentMan.cc
  7446. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  7447. (calculateStat): New function.
  7448. * src/PeerInteraction.h
  7449. (uploadLimit): Removed.
  7450. (option): New variable.
  7451. (setUploadLimit): Removed.
  7452. (getUploadSpeed): Removed.
  7453. (sendMessages): Removed the argument "currentUploadSpeed".
  7454. * src/PeerInteraction.cc
  7455. (prefs.h): Included.
  7456. (PeerInteraction): Removed uploadLimit. Added option.
  7457. (sendMessages): Rewritten upload speed limit.
  7458. (sendHandshake): Removed the argument from sendMessages().
  7459. (sendBitfield): Removed the argument from sendMessages().
  7460. * src/PeerAbstractCommand.cc
  7461. (execute): Commented out the portion of upload limit.
  7462. (onAbort): Removed peer->resetStatus().
  7463. * src/TorrentRequestInfo.cc
  7464. (timeoutSpecified): Declared extern.
  7465. (execute): Set timeout to 180 if timeout is not specified by.
  7466. command-line.
  7467. * src/PieceMessage.cc
  7468. (receivedAction): Added peer->updateDownloadLength().
  7469. Removed peer->addPeerUpload().
  7470. Removed torrentMan->addDeltaDownloadLength().
  7471. (send): Added peer->updateUploadLength().
  7472. Removed peer->addPeerDownload().
  7473. Removed torrentMan->addDeltaUploadLength().
  7474. * src/main.cc
  7475. (timeoutSpecified): New variable.
  7476. (main): Set timeoutSpecified to false.
  7477. If the command-line option "--upload-limit" is specified, then
  7478. timeoutSpecified is set to true. This option will remain in the next
  7479. release, but be deprecated in the future release.
  7480. * src/TorrentRequestInfo.h
  7481. (TorrentRequestInfo): Removed const qualifier from op.
  7482. * src/PeerStat.h
  7483. (uploadSpeed): New variable.
  7484. (PeerStat): Added default value to cuid.
  7485. (calculateUploadSpeed): New function.
  7486. (updateUploadLength): New function.
  7487. (getMaxUploadSpeed): New function.
  7488. (getAvgUploadSpeed): New function.
  7489. (reset): Added uploadSpeed. Set status to IDLE.
  7490. * src/TorrentDownloadEngine.h
  7491. (cp): Declared as Time.
  7492. (sessionDownloadLengthArray): Removed.
  7493. (sessionUploadLengthArray): Removed.
  7494. (currentCp): Removed.
  7495. (lastCalcStat): New variable
  7496. (lastElapsed): Removed.
  7497. (sessionDownloadLength): Removed.
  7498. (calculateStat): New function.
  7499. * src/TorrentDownloadEngine.cc
  7500. (initStatistics): Removed lastElapsed, cp[],
  7501. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  7502. currentCp, sessionDownloadLength.
  7503. Added cp.reset() and lastCalcStat.reset().
  7504. (calculateSpeed): Changed the name of the argument.
  7505. (calculateStatistics): Rewritten.
  7506. (calculateStat): New function.
  7507. * src/Peer.h
  7508. (PeerStat.h): Included.
  7509. (peerUpload): Removed.
  7510. (peerDownload): Removed.
  7511. (peerStat): New variable.
  7512. (sessionUploadLength): New variable.
  7513. (sessionDownloadLength): New variable.
  7514. (deltaUpload): Removed.
  7515. (deltaDownload): Removed.
  7516. (resetStatus): Made private.
  7517. (Peer): Added sessionUploadLength, sessionDownloadLength.
  7518. Removed peerUpload, peerDownload.
  7519. (updateUploadLength): New function.
  7520. (addDeltaUpload): Removed.
  7521. (updateDownloadLength): New function.
  7522. (resetDeltaUpload): Removed.
  7523. (getDeltaUpload): Removed.
  7524. (addDeltaDownload): Removed.
  7525. (calculateUploadSpeed): New function.
  7526. (resetDeltaDownload): Removed.
  7527. (getDeltaDownload): Removed.
  7528. (calculateDownloadSpeed): New function.
  7529. (getSessionUploadLength): New function.
  7530. (getSessionDownloadLength): New function.
  7531. (activate): New function.
  7532. (deactivate): New function.
  7533. (addPeerUpload): Removed.
  7534. (setPeerUpload): Removed.
  7535. (getPeerUpload): Removed.
  7536. (addPeerDownload): Removed.
  7537. (setPeerDownload): Removed.
  7538. (getPeerDownload): Removed.
  7539. * src/Peer.cc
  7540. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  7541. * src/MetalinkRequestInfo.h
  7542. (MetalinkRequestInfo): Removed const qualifier from op.
  7543. * src/RequestInfo.h
  7544. (op): Removed const qualifier.
  7545. (RequestInfo): Removed const qualifier from op.
  7546. * src/prefs.h
  7547. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  7548. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  7549. * src/PeerInteractionCommand.cc
  7550. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  7551. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  7552. * src/PeerInteraction.cc
  7553. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  7554. * src/main.cc
  7555. (showUsage): Updated the description of "--lowest-speed-limit" option.
  7556. Added the description of "--max-download-limit" option.
  7557. Removed the description of "--upload-limit" option.
  7558. Added the description of "--max-upload-limit" option.
  7559. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  7560. Added "--max-download-limit" option and "--max-upload-limit" option.
  7561. Added the warning message if "--upload-limit" option is used.
  7562. * src/DownloadCommand.cc
  7563. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  7564. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. To rewrite segment download mechanism for HTTP/FTP download.
  7566. Use BitfieldMan to manage segment download.
  7567. * src/HttpResponseCommand.h
  7568. (executeInternal): Pass the reference of segment.
  7569. * src/AbstractCommand.cc
  7570. (prepareForRetry): Call segmentMan->cancelSegment here.
  7571. (onAbort): Call segmentMan->cancelSegment here.
  7572. * src/HttpDownloadCommand.cc
  7573. (prepareForNextSegment): New function.
  7574. * src/DownloadEngineFactory.cc
  7575. (newConsoleEngine): Removed splitter.
  7576. (newTorrentConsoleEngine): Removed splitter.
  7577. * src/Request.h
  7578. (segment): Renamed from seg.
  7579. * src/FtpInitiateConnectionCommand.h
  7580. (executeInternal): Pass the reference of segment.
  7581. * src/AbstractCommand.h
  7582. (executeInternal): Pass the reference of segment.
  7583. * src/pref.h
  7584. (PREF_SEGMENT_SIZE): New definition.
  7585. * src/HttpProxyRequestCommand.h
  7586. (executeInternal): Pass the reference of segment.
  7587. * src/HttpResponseCommand.cc
  7588. (checkResponse): Allowed status 206 when a request range starts 0.
  7589. (handleDefaultEncoding): Rewritten the code related to Segment.
  7590. (handleOtherEncoding): Rewritten the code related to Segment.
  7591. * src/SegmentMan.h
  7592. (SegmentEntry): New class.
  7593. (SegmentEntries): New type definition.
  7594. (bitfield): New variable.
  7595. (usedSegmentEntries): New variable.
  7596. (onNullBitfield): New function.
  7597. (checkoutSegment): New function.
  7598. (segments): Removed.
  7599. (splitter): Removed.
  7600. (unregisterId): Removed.
  7601. (getSegment): New function(overload)
  7602. (getDownloadedSize): Removed.
  7603. (cancelSegment): New function.
  7604. (completeSegment): New function.
  7605. (initBitfield): New function.
  7606. (hasSegment): New function.
  7607. (getDownloadLength): New function.
  7608. * src/BitfieldMan.h
  7609. (getStartIndex): New function.
  7610. (getEndIndex): New function.
  7611. (getMissingUnusedIndex): New function(overload).
  7612. (getSparseMissingUnusedIndex): New function.
  7613. * src/BitfieldMan.cc
  7614. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  7615. (getMissingUnusedIndex): New function(overload).
  7616. (Range): New class.
  7617. (getStartIndex): New function.
  7618. (getEndIndex): New function.
  7619. (getSparseMissingUnusedIndex): New function.
  7620. (isBitSetInternal): Return false if the given index is less than 0.
  7621. * src/HttpInitiateConnectionCommand.h
  7622. (executeInternal): Pass the reference of segment.
  7623. * src/FtpNegotiateCommand.h
  7624. (executeInternal): Pass the reference of segment.
  7625. * src/FtpNegotiateCommand.cc
  7626. (recvSize): Initialize bitfield here.
  7627. * src/FtpTunnelResponseCommand.h
  7628. (executeInternal): Pass the reference of segment.
  7629. * src/HttpConnection.cc
  7630. (createRequest): Rewritten range header processing.
  7631. * src/DownloadCommand.h
  7632. (executeInternal): Pass the reference of segment.
  7633. (prepareForRetry): Removed.
  7634. (prepareForNextSegment): Added an argument segment. Made it a virtual
  7635. function.
  7636. * src/main.cc
  7637. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  7638. * src/SegmentMan.cc
  7639. (SegmentMan): Added bitfield. Removed splitter.
  7640. (~SegmentMan): Added bitfield. Removed splitter.
  7641. (unregisterId): Removed.
  7642. (getSegment): Rewritten.
  7643. (updateSegment): Rewritten.
  7644. (save): Rewritten.
  7645. (read): Rewritten.
  7646. (finished): Rewritten.
  7647. (getDownloadedSize): Removed.
  7648. (initBitfield): New function.
  7649. (FindSegmentEntryByIndex): New function object.
  7650. (FindSegmentEntryByCuid): New function object.
  7651. (checkoutSegment): New function.
  7652. (onNullBitfield): New function.
  7653. (getSegment): New function(overload).
  7654. (CancelSegment): New function object.
  7655. (cancelSegment): New function.
  7656. (completeSegment): New function.
  7657. (hasSegment): New function.
  7658. (getDownloadLength): New function.
  7659. * src/FtpInitiateConnectionCommand.cc
  7660. (executeInternal): Load .aria2 file after hostname resolution finishes.
  7661. * src/Segment.h: Rewritten.
  7662. * src/Segment.cc (operator<<): New function.
  7663. * src/HttpDownloadCommand.h
  7664. (prepareForNextSegment): New function.
  7665. * src/Request.cc
  7666. (resetUrl): Made segment null.
  7667. * src/DownloadEngine.cc
  7668. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  7669. * src/HttpProxyRequestCommand.h
  7670. (executeInternal): Pass the reference of segment.
  7671. * src/DownloadCommand.cc
  7672. (executeInternal): Rewritten the code related to Segment.
  7673. (prepareForRetry): Removed.
  7674. (prepareForNextSegment): Rewritten.
  7675. * src/FtpTunnelResponseCommand.h
  7676. (executeInternal): Pass the reference of segment.
  7677. To add HTTP 1.1 persistent connection support(experimental)
  7678. * src/HttpRequestCommand.cc
  7679. (executeInternal): Disable keep alive if it is disabled by
  7680. configuration.
  7681. * src/Request.h
  7682. (keepAlive): New variable.
  7683. (isKeepAlive): New function.
  7684. (setKeepAlive): New function.
  7685. * src/pref.h
  7686. (PREF_HTTP_KEEP_ALIVE): New definition.
  7687. * src/HttpResponseCommand.cc
  7688. (executeInternal): Check the remote server supports keep alive.
  7689. * src/HttpConnection.cc
  7690. (createRequest): Send "Connection: close" only if keep alive is
  7691. disabled.
  7692. * src/main.cc
  7693. (main):
  7694. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  7695. To add max download speed limit:
  7696. * src/pref.h
  7697. (PREF_MAX_SPEED_LIMIT): New definition.
  7698. * src/PeerInteractionCommand.cc
  7699. (executeInternal): Added max download speed limit. Not tested yet.
  7700. * src/SegmentMan.h
  7701. (PeerStats): New type definition.
  7702. (peerStats): New variable.
  7703. (registerPeerStat): New function.
  7704. (FindPeerStat): New function object.
  7705. (getPeerStat): New function.
  7706. (calculateDownloadSpeed): New function.
  7707. * src/SpeedCalc.h: New class.
  7708. * src/SpeedCalc.cc: New class.
  7709. * src/main.cc
  7710. (main):
  7711. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  7712. download speed is not restricted).
  7713. * src/PeerStat.h: New class.
  7714. * src/SegmentMan.cc
  7715. (registerPeerStat): New function.
  7716. (calculateDownloadSpeed): New function.
  7717. * src/DownloadCommand.cc
  7718. (STARTUP_IDLE_TIME): New definition.
  7719. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  7720. downloadStart.
  7721. (~DownloadCommand): Call peerStat->downloadStop.
  7722. (executeInternal): Added download speed limitter. Rewritten lowest
  7723. speed limitter.
  7724. * src/HttpConnection.cc
  7725. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  7726. * src/AbstractCommand.cc
  7727. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  7728. Added hostname to the error message.
  7729. * src/ConsoleDownloadEngine.cc
  7730. (calculateStatistics): Initialize psize with dlSize.
  7731. * src/PieceMessage.cc
  7732. (receivedAction): Do not call peerInteraction->abortPiece here.
  7733. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  7734. * src/BitfieldMan.h
  7735. (clearAllUseBit): New function.
  7736. (setAllUseBit): New function.
  7737. * src/BitfieldMan.cc
  7738. (clearAllBit): Do not clear useBitfield here.
  7739. (clearAllUseBit): New function.
  7740. (setAllUseBit): New function.
  7741. * src/Piece.cc
  7742. (clearAllBlock): Call bitfield->clearAllUseBit().
  7743. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. To make filename URL-decoded:
  7745. * src/HttpResponseCommand.h: Updated doc.
  7746. * src/HttpResponseCommand.cc
  7747. (determinFilename): Made filename URL-decoded.
  7748. * src/FtpInitiateConnectionCommand.cc
  7749. (executeInternal): Made filename URL-decoded.
  7750. * src/Util.h (urldecode): New function.
  7751. * src/Util.cc (urldecode): New function.
  7752. To fix a bug that caused assertion failure in ares_strerror:
  7753. * src/NameResolver.cc (callback): Fixed the bug.
  7754. * Release 0.7.3
  7755. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. To add --seed-time and --seed-ratio command-line option:
  7757. * src/Option.h (getAsDouble): New function.
  7758. * src/Option.cc (getAsDouble): New function.
  7759. * src/SeedCheckCommand.h: New class.
  7760. * src/SeedCheckCommand.cc: New class.
  7761. * src/DownloadEngineFactory.cc
  7762. (SeedCheckCommand.h): Included.
  7763. (UnionSeedCriteria.h): Included.
  7764. (TimeSeedCriteria.h): Included.
  7765. (ShareRatioSeedCriteria.h): Included.
  7766. (newTorrentConsoleEngine): Added the processing of seed option.
  7767. * src/SeedCriteria.h: New class.
  7768. * src/ShareRatioSeedCriteria.h: New class.
  7769. * src/TimeSeedCriteria.h: New class.
  7770. * src/UnionSeedCriteria.h: New class.
  7771. * src/prefs.h
  7772. (PREF_SEED_TIME): New definition.
  7773. (PREF_SEED_RATIO): New definition.
  7774. * src/main.cc
  7775. (showUsage): Added --seed-time and --seed-ratio option.
  7776. (main): Added --seed-time and --seed-ratio option.
  7777. Made default log file name "/dev/null".
  7778. * src/SharedHandle.h
  7779. (SharedHandle): Copy constructor. Made it assignable from the
  7780. SharedHandle of the subclasses.
  7781. (operator=): Made it assignable from the SharedHandle of the
  7782. subclasses.
  7783. (getRefCount): New function.
  7784. To add notice log level and the switch to write log to stdout. This
  7785. switch is configurable per log level.
  7786. * src/Logger.h
  7787. (notice): New function.
  7788. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  7789. constant.
  7790. * src/LogFactory.cc
  7791. (getInstance): The use of NullLogger was removed. A log message with
  7792. notice log level was made written to stdout along with log file.
  7793. * src/NullLogger.h
  7794. (notice): New function.
  7795. * src/SimpleLogger.h
  7796. (writeHeader): Added the 'file' argument.
  7797. (writeLog): Added the 'file' argument.
  7798. (writeFile): New function.
  7799. (stdoutField): New variable.
  7800. (SimpleLogger): Removed the default constructor.
  7801. (SimpleLogger): Made the default value of logfile 0.
  7802. (debug): Added 'virtual' keyword.
  7803. (info): Added 'virtual' keyword.
  7804. (warn): Added 'virtual' keyword.
  7805. (error): Added 'virtual' keyword.
  7806. (notice): New function.
  7807. (setStdout): New function.
  7808. * src/SimpleLogger.cc
  7809. (WRITE_LOG): Replaced writeLog with writeFile.
  7810. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  7811. (SimpleLogger): Removed the default constructor.
  7812. (setStdout): New function.
  7813. (writeLog): Added the handling of NOTICE log level.
  7814. (writeFile): New function.
  7815. (notice): New function.
  7816. * src/TorrentMan.h: Updated doc.
  7817. * src/BitfieldMan.h: Updated doc.
  7818. * src/TrackerWatcherCommand.cc
  7819. (execute): Return true if error occurred in the request to the tracker
  7820. and halt is requested.
  7821. * src/TrackerUpdateCommand.cc
  7822. (execute): Return true if error occurred in the request to the tracker
  7823. and halt is requested.
  7824. To call onDownloadComplete from TorrentMan::completePiece(), not from
  7825. DownloadEngine:
  7826. * src/TorrentConsoleDownloadEngine.h
  7827. (onSelectiveDownloadingCompletes): Removed.
  7828. * src/TorrentConsoleDownloadEngine.cc
  7829. (onSelectiveDownloadingCompletes): Removed.
  7830. * src/TorrentDownloadEngine.h
  7831. (onEndOfRun): Added 'virtual' keyword.
  7832. (afterEachIteration): Removed.
  7833. (onSelectiveDownloadingCompletes): Removed.
  7834. * src/TorrentDownloadEngine.cc
  7835. (onEndOfRun): Removed filenameFixed.
  7836. (afterEachIteration): Removed.
  7837. * src/TorrentMan.cc
  7838. (completePiece): Call onDownloadComplete here.
  7839. (onDownloadComplete): Added 2 log messages.
  7840. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  7842. * src/NameResolver.h: Added the prototype declaration of callback().
  7843. To support c-ares library:
  7844. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7845. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7846. * src/FtpInitiateConnectionCommand.h:
  7847. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7848. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7849. * src/HttpInitiateConnectionCommand.h:
  7850. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7851. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  7852. Added thes upport of c-ares's ares_strerror(the idea came from patch
  7853. #1542285 by tizianomueller)
  7854. * src/HttpInitiateConnectionCommand.cc:
  7855. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7856. * src/FtpInitiateConnectionCommand.cc:
  7857. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7858. * src/DownloadEngine.h:
  7859. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7860. * src/DownloadEngine.cc:
  7861. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7862. To fix the bug that causes compilation failure with metalink-support
  7863. disabled(bug#1543587):
  7864. * src/main.cc: Fixed with the patch by tizianomueller.
  7865. * Release 0.7.2
  7866. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. * src/main.cc
  7868. (main): Added a message to inform users that aria2 is starting to
  7869. verify checksum.
  7870. * src/RequestInfo.cc
  7871. (printDownloadAbortMessage): Added a message to inform users that
  7872. transfer can be resumed.
  7873. * src/FeatureConfig.cc
  7874. (FEATURE_ASYNC_DNS): New definition.
  7875. (FeatureConfig): Added aysnc DNS entry.
  7876. To replace CommandUuid with Command* in SocketEntry and
  7877. NameResolverEntry:
  7878. * src/DownloadEngine.h
  7879. (CommandUuids): Removed.
  7880. (SocketEntry::commandUuid): Removed.
  7881. (SocketEntry::command): New variable.
  7882. (SocketEntry::SocketEntry): Updated.
  7883. (SocketEntry::operator==): Updated.
  7884. (NameResolverEntry::commandUuid): Removed.
  7885. (NameResolverEntry::command): New variable.
  7886. (NameResolverEntry::NameResolverEntry): Updated.
  7887. (NameResolverEntry::operator==): Updated.
  7888. (waitData): Changed the argument type.
  7889. (addSocketForReadCheck): Changed the argument type.
  7890. (deleteSocketForReadCheck): Changed the argument type.
  7891. (addSocketForWriteCheck): Changed the argument type.
  7892. (deleteSocketForWriteCheck): Changed the argument type.
  7893. (addNameResolverCheck): Changed the argument type.
  7894. (deleteNameResolverCheck): Changed the argument type.
  7895. * src/DownloadEngine.cc
  7896. (FindCommand): Removed.
  7897. (run): Removed activeUuid. Added activeCommands instead.
  7898. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  7899. (AccumulateActiveCommand): New function object.
  7900. (waitData): Use AccumulateActiveCommand.
  7901. (addSocketForReadCheck): Use Command instead of CommandUuid.
  7902. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  7903. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  7904. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  7905. (addNameResolverCheck): Use Command instead of CommandUuid.
  7906. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  7907. * src/AbstractCommand.cc
  7908. (disableReadCheckSocket): Updated according to the changes in
  7909. DownloadEngine.
  7910. (setReadCheckSocket): Updated according to the changes in
  7911. DownloadEngine.
  7912. (disableWriteCheckSocket): Updated according to the changes in
  7913. DownloadEngine.
  7914. (setWriteCheckSocket): Updated according to the changes in
  7915. DownloadEngine.
  7916. (setNameResolverCheck): Updated according to the changes in
  7917. DownloadEngine.
  7918. (disableNameResolverCheck): Updated according to the changes in
  7919. DownloadEngine.
  7920. * src/AbstractCommand.cc
  7921. (disableReadCheckSocket): Updated according to the changes in
  7922. DownloadEngine.
  7923. (setReadCheckSocket): Updated according to the changes in
  7924. DownloadEngine.
  7925. (disableWriteCheckSocket): Updated according to the changes in
  7926. DownloadEngine.
  7927. (setWriteCheckSocket): Updated according to the changes in
  7928. DownloadEngine.
  7929. * release 0.7.1
  7930. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. To handle the case where some BitTorrent tracker requires all letters
  7932. except for [A-Za-z0-9] is URL encoded.
  7933. * src/Util.h
  7934. (torrentUrlencode): New function.
  7935. * src/Util.cc
  7936. (ctype.h): Included.
  7937. (torrentUrlencode): New function.
  7938. * src/TrackerWatcherCommand.cc
  7939. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  7940. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. To add asynchronous DNS support(libares):
  7942. * src/AbstractCommand.h
  7943. (setNameResolverCheck): New function.
  7944. (disableNameResolverCheck): New function
  7945. (resolveHostname): New function.
  7946. * src/AbstractCommand.cc
  7947. (setNameResolverCheck): New function.
  7948. (disableNameResolverCheck): New function
  7949. (resolveHostname): New function.
  7950. * src/FtpInitiateConnectionCommand.h
  7951. (nameResolver): New function.
  7952. * src/FtpInitiateConnectionCommand.cc
  7953. (Util.h): Included.
  7954. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  7955. disableWriteCheckSocket.
  7956. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  7957. (executeInternal): Added async DNS support.
  7958. * src/HttpInitiateConnectionCommand.h
  7959. (nameResolver): New function.
  7960. * src/HttpInitiateConnectionCommand.cc
  7961. (DlRetryEx.h): Included.
  7962. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  7963. disableWriteCheckSocket.
  7964. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  7965. (executeInternal): Added async DNS support.
  7966. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  7967. by extern "C" declaration.
  7968. * src/NameResolver.cc: New class.
  7969. * src/Util.h:
  7970. (isNumberAndDotsNotation): New function
  7971. * src/Util.cc
  7972. (isNumberAndDotsNotation): New function.
  7973. * src/DownloadEngine.h
  7974. (NameResolver.h): Included.
  7975. (NameResolverEntry): New class.
  7976. (NameResolverEntries): New type definition.
  7977. (addNameResolverCheck): New function.
  7978. (deleteNameResolverCheck): New function.
  7979. * src/DownloadEngine.cc
  7980. (run): Initialize cp with 0.
  7981. (SetDescriptor::operator()): Added for NameResolverEntry.
  7982. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  7983. (waitData): Check nameResolver entries.
  7984. (updateFdSet): Update fds in nameResolver entries.
  7985. (addNameResolverCheck): New function.
  7986. (deleteNameResolverCheck): new function.
  7987. * src/PeerInteractionCommand.cc
  7988. (executeInternal): Fixed wrong socket handling.
  7989. * src/main.cc
  7990. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  7991. * src/Util.cc
  7992. (fileChecksum): Removed the call to ctx.digestReset().
  7993. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. * po/ru.po: Azamat sent me Russian translation.
  7995. * src/FtpNegotiateCommand.cc
  7996. (recvGreeting): Call disableWriteCheckSocket just after
  7997. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  7998. (recvRetr): Recognized status code 125 as a acceptable response code.
  7999. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8000. case-insesitive filesystem(BUG#1531057).
  8001. * src/Time.h: Renamed as TimeA2.h.
  8002. * src/Time.cc: Renamed as TimeA2.cc.
  8003. * src/TimeA2.h: New class.
  8004. * src/TimeA2.cc: New class.
  8005. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8006. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8007. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8008. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8009. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8010. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8011. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8012. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8013. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8014. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8015. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8016. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8017. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8018. * release 0.7.0
  8019. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. * src/PeerChokeCommand.h
  8021. (PeerChokeCommand): Rearranged the arguments.
  8022. * src/PeerChokeCommand.cc
  8023. (PeerChokeCommand): Rearranged the arguments.
  8024. * src/MetalinkEntry.h
  8025. (Checksum.h): Included.
  8026. (md5): Removed.
  8027. (sha1): Removed.
  8028. (checksum): New variable.
  8029. (operator=): Updated.
  8030. (check): Removed.
  8031. * src/prefs.h
  8032. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8033. (PREF_FOLLOW_TORRENT): New definition.
  8034. (PREF_SELECT_FILE): New definition.
  8035. (PREF_FOLLOW_METALINK): New definition.
  8036. * src/MetalinkResource.h
  8037. (TYPE_HTTPS): Added to enum TYPE.
  8038. * src/TorrentMan.cc
  8039. (~TorrentMan): Rewritten.
  8040. * src/MultiDiskWriter.cc
  8041. (MultiDiskAdaptor): Updated according to the changes in
  8042. MessageDigestContext.
  8043. (~MultiDiskAdaptor): Updated according to the changes in
  8044. MessageDigestContext.
  8045. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8046. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8047. * src/Util.h
  8048. (fileChecksum): Updated according to the changes in
  8049. MessageDigestContext.
  8050. * src/Util.cc
  8051. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8052. (fileChecksum): Updated according to the changes in
  8053. MessageDigestContext.
  8054. * src/messageDigest.h: Rewritten.
  8055. * src/MetalinkEntry.cc
  8056. (check): Removed.
  8057. (Supported): Updated.
  8058. (dropUnsupportedResource): Fixed a memory leak.
  8059. * src/ShaVisitor.cc
  8060. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8061. (~ShaVisitor): Updated according to the changes in
  8062. MessageDigestContext.
  8063. (visit): Updated according to the changes in MessageDigestContext.
  8064. * src/main.cc
  8065. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8066. command-line option added.
  8067. * src/DownloadEngine.h
  8068. (SocketEntry): New class.
  8069. (SocketEntries): New definition.
  8070. (PairFind): Removed.
  8071. (SockCmdMap): Removed.
  8072. * src/DownloadEngine.cc
  8073. (DownloadEngine): Rewritten.
  8074. (~DownloadEngine): Rewritten.
  8075. (run): Renamed activeCommandUuids as activeUuids.
  8076. (SetDescriptor): Rewritten.
  8077. (AccumulateActiveCommandUuid): Removed.
  8078. (AccumulateActiveUuid): New function object.
  8079. (waitData): Rewritten.
  8080. (updateFdSet): Rewritten.
  8081. (addSocket): Rewritten.
  8082. (deleteSocket): Rewritten.
  8083. (addSocketForReadCheck): Rewritten.
  8084. (deleteSocketForReadCheck): Rewritten.
  8085. (addSocketForWriteCheck): Rewritten.
  8086. (deleteSocketForWriteCheck): Rewritten.
  8087. * src/Xml2MetalinkProcessor.cc
  8088. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8089. * src/DownloadCommand.cc
  8090. (executeInternal): Added the check routine for lowest speed limit.
  8091. * src/AbstractDiskWriter.cc
  8092. (AbstractDiskWriter): Updated according to the changes in
  8093. MessageDigestContext.
  8094. (~AbstractDiskWriter): Updated according to the changes in
  8095. MessageDigestContext.
  8096. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8097. * src/RequestInfo.h: New class.
  8098. * src/UrlRequestInfo.h: New class.
  8099. * src/UrlRequestInfo.cc: New class.
  8100. * src/TorrentRequestInfo.h: New class.
  8101. * src/TorrentRequestInfo.cc: New class.
  8102. * src/MetalinkRequestInfo.h: New class.
  8103. * src/MetalinkRequestInfo.cc: New class.
  8104. * src/Checksum.h: New class.
  8105. * src/DownloadEngineFactory.h: New class.
  8106. * src/DownloadEngineFactory.cc: New class.
  8107. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. * src/Option.h
  8109. (getAsBool): New function.
  8110. * src/Option.cc
  8111. (prefs.h): Included.
  8112. (defined): 0-length value is now recognized as undefined.
  8113. (getAsInt): Rewritten.
  8114. (getAsLLInt): Rewritten.
  8115. (getAsBool): New function.
  8116. * src/FeatureConfig.h: Rewritten.
  8117. * src/FeatureConfig.cc: Rewritten.
  8118. * src/prefs.h
  8119. (PREF_STDOUT_LOG): New definition.
  8120. (PREF_LOG): New definition.
  8121. (PREF_DIR): New definition.
  8122. (PREF_OUT): New definition.
  8123. (PREF_SPLIT): New definition.
  8124. (PREF_DAEMON): New definition.
  8125. (PREF_REFERER): New definition.
  8126. (PREF_TORRENT_FILE): New definition.
  8127. (PREF_LISTEN_PORT): New definition.
  8128. (PREF_METALINK_FILE): New definition.
  8129. (PREF_METALINK_VERSION): New definition.
  8130. (PREF_METALINK_LANGUAGE): New definition.
  8131. (PREF_METALINK_OS): New definition.
  8132. (PREF_METALINK_SERVERS): New definition.
  8133. * src/main.cc
  8134. (main): Following command-line parameters are now put into Option
  8135. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8136. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8137. metalinkLanguage, metalinkOs, metalinkServers
  8138. To fix the bug that aria2 can not handle http response header properly.
  8139. * src/HttpHeader.cc
  8140. (put): Made name lowercased.
  8141. (defined): Made name lowercased.
  8142. (getFirst): Made name lowercased.
  8143. (get): Made name lowercased.
  8144. (getFirstAsInt): Rewritten.
  8145. (getFirstAsLLInt): Rewritten.
  8146. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. * src/TorrentMan.h:
  8148. (advertisePiece): Updated doc.
  8149. (getAdvertisedPieceIndexes): Updated doc.
  8150. (removeAdvertisedPiece); New function.
  8151. * src/TorrentMan.cc
  8152. (FindElapsedHave): New function object.
  8153. (removeAdvertisedPiece): New function.
  8154. * src/HaveEraseCommand.h: New class.
  8155. * src/HaveEraseCommand.cc: New class.
  8156. * src/FeatureConfig.h: New class.
  8157. * src/FeatureConfig.cc: New class.
  8158. * src/Request.h
  8159. (defaultPorts): Removed.
  8160. * src/Request.cc
  8161. (FeatureConfig.h): Included.
  8162. (Request): Removed the statements related to defaultPorts.
  8163. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8164. A default port number is now retrieved from FeatureConfig.
  8165. * src/main.cc
  8166. (HaveEraseCommand.h): Included.
  8167. (showVersion): Added the output of feature list.
  8168. (main): Added HaveEraseCommand to command queue in BitTorrent
  8169. downloading.
  8170. * src/PeerInteractionCommand.h
  8171. (chokeCheckPoint): Commented out.
  8172. (periodicExecPoint): New variable.
  8173. * src/PeerInteractionCommand.cc
  8174. (executeInternal): Following methods are now called in at least every
  8175. 0.5 seconds to reduce CPU usage:
  8176. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8177. checkHave(), sendKeepAlive().
  8178. (checkLongTimePeerChoking): Commented out.
  8179. * src/BitfieldMan.h
  8180. (getNthBitIndex): Changed the method signature.
  8181. (getMissingIndexRandomly): Changed the method signature.
  8182. * src/BitfieldMan.cc
  8183. (getNthBitIndex): Rewritten
  8184. (getMissingIndexRandomly): Rewritten.
  8185. (hasMissingPiece): Rewritten.
  8186. (getMissingIndex): Refactored.
  8187. (getMissingUnusedIndex); Refactored.
  8188. (getMissingIndex): Refactored.
  8189. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. * src/PeerMessage.h
  8191. (Piece.h): Included.
  8192. (SharedHandle.h): Included.
  8193. (invalidate): New variable.
  8194. (uploading): New variable.
  8195. (isInvalidate): New function.
  8196. (isUploading): New function.
  8197. (onPush): New function.
  8198. (onChoked): New function.
  8199. (onCanceled): New function.
  8200. (onAbortPiece): New function.
  8201. (PeerMessageHandle): New type definition.
  8202. * src/PeerMessage.cc
  8203. (PeerMessage): Added the initialization for invalidate and uploading.
  8204. * src/CancelMessage.h
  8205. (CancelMessage): Rewritten.
  8206. * src/RejectMessage.h
  8207. (RejectMessage): Rewritten.
  8208. * src/Metalinker.h
  8209. (operator=): Defined.
  8210. * src/MetaEntry.h
  8211. (operator=): Defined.
  8212. * src/MetalinkResource.h
  8213. (operator=): Defined.
  8214. * src/AllowedFastMessage.h
  8215. (AllowedFastMessage): Rewritten.
  8216. * src/HandshakeMessage.h
  8217. (HandshakeMessage): New function(overload).
  8218. * src/HandshakeMessage.cc
  8219. (HandshakeMessage): Rewritten.
  8220. (init): New function.
  8221. * src/HaveMessage.h
  8222. (HaveMessage): Rewritten.
  8223. * src/Time.h
  8224. (operator=): Defined the function body here.
  8225. * src/Time.cc
  8226. (operator=): Removed.
  8227. * src/SocketCore.h
  8228. (operator==): Defined here.
  8229. (operator!=): Defined here.
  8230. (operator<): Defined here.
  8231. * src/SocketCore.cc
  8232. (operator==): Removed.
  8233. (operator<): Removed.
  8234. * src/BitfieldMan.h
  8235. (operator=): Defined the function body here.
  8236. * src/BitfieldMan.cc
  8237. (operator=): Removed.
  8238. * src/TorrentMan.h
  8239. (deleteErrorPeer): Removed.
  8240. (deleteUnusedPeer); New function.
  8241. * src/TorrentMan.cc
  8242. (addPeer): Call deleteUnusedPeer.
  8243. (deleteErrorPeer): Removed.
  8244. (deleteUnusedPeer): New function.
  8245. * src/PeerAbstractCommand.h
  8246. (setNoCheck): New function.
  8247. (noCheck): New variable.
  8248. * src/PeerAbstractCommand.cc
  8249. (PeerAbstractCommand): Added the initialization of noCheck.
  8250. (execute): Added a check for noCheck.
  8251. (setNoCheck): New function.
  8252. * src/Util.h
  8253. (stdio.h): Included.
  8254. * src/Util.cc
  8255. (unistd.h): Included.
  8256. * src/DefaultDiskWriter.cc
  8257. (unistd.h): Included.
  8258. * src/Peer.h
  8259. (operator==): Defined the function body here.
  8260. (operator!=): Defined the function body here.
  8261. * src/Peer.cc
  8262. (operator==): Removed.
  8263. (operator!=): Removed.
  8264. * src/Piece.h
  8265. (Piece): Defined the function body here(copy constructor).
  8266. (operator=): Defined the function body here.
  8267. (operator==): Defined the function body here.
  8268. * src/Piece.cc
  8269. (Piece): Removed(copy constructor).
  8270. (operator=): Removed.
  8271. (operator==): Removed.
  8272. * src/PeerMessageUtil.h
  8273. (ChokeMessage.h): Removed.
  8274. (UnchokeMessage.h): Removed.
  8275. (InterestedMessage.h): Removed.
  8276. (NotInterestedMessage.h): Removed.
  8277. (HaveMessage.h): Removed.
  8278. (BitfieldMessage.h): Removed.
  8279. (RequestMessage.h): Removed.
  8280. (CancelMessage.h): Removed.
  8281. (PieceMessage.h): Removed.
  8282. (HandshakeMessage.h): Removed.
  8283. (KeepAliveMessage.h): Removed.
  8284. (PortMessage.h): Removed.
  8285. (HaveAllMessage.h): Removed.
  8286. (HaveNoneMessage.h): Removed.
  8287. (PeerConnection.h): Removed.
  8288. (HandshakeMessage.h): Included.
  8289. * src/BitfieldMessage.h
  8290. (init): New function.
  8291. (BitfieldMessage): Rewritten.
  8292. (BitfieldMessage): New function(overload).
  8293. * src/RequestSlot.h
  8294. (operator=): Defined the function body here.
  8295. (operator==): Defined the function body here.
  8296. * src/RequestSlot.cc
  8297. (operator=): Removed.
  8298. (operator==): Removed.
  8299. To remove the dependency on the PeerMessage subclass from
  8300. PeerInteraction:
  8301. * src/PeerMessageFactory.h: New class.
  8302. * src/PeerMessageFactory.cc: New class.
  8303. * src/SimplePeerMessage.cc
  8304. (send): If invalidate is true then do nothing.
  8305. * src/PeerInteractionCommand.cc
  8306. (HandshakeMessage.h): Included.
  8307. (KeepAliveMessage.h): Included.
  8308. (ChokeMessage.h): Included.
  8309. (UnchokeMessage.h): Included.
  8310. (HaveMessage.h): Included.
  8311. (executeInternal): Call setNoCheck().
  8312. Removed setWriteCheckSocket(socket).
  8313. * src/PeerInteraction.h
  8314. (ChokeMessage.h): Removed.
  8315. (UnchokeMessage.h): Removed.
  8316. (InterestedMessage.h): Removed.
  8317. (NotInterestedMessage.h): Removed.
  8318. (HaveMessage.h): Removed.
  8319. (BitfieldMessage.h): Removed.
  8320. (RequestMessage.h): Removed.
  8321. (CancelMessage.h): Removed.
  8322. (PieceMessage.h): Removed.
  8323. (HandshakeMessage.h): Removed.
  8324. (KeepAliveMessage.h): Removed.
  8325. (PortMessage.h): Removed.
  8326. (HaveAllMessage.h): Removed.
  8327. (HaveNoneMessage.h): Removed.
  8328. (RejectMessage.h): Removed.
  8329. (AllowedFastMessage.h): Removed.
  8330. (SuggestPieceMessage.h): Removed.
  8331. (PeerMessageFactory.h): Included.
  8332. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8333. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8334. (PeerMessageFactory): New variable.
  8335. (createPeerMessage): Removed.
  8336. (createHandshakeMessage): Removed.
  8337. (setPeerMessageCommonProperty): Removed.
  8338. (addRequestSlot): New function.
  8339. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8340. (getPeerMessageFactory): New function.
  8341. (createRequestMessage): Removed.
  8342. (createCancelMessage): Removed.
  8343. (createPieceMessage): Removed.
  8344. (createHaveMessage): Removed.
  8345. (createChokeMessage): Removed.
  8346. (createUnchokeMessage): Removed.
  8347. (createInterestedMessage): Removed.
  8348. (createNotInterestedMessage): Removed.
  8349. (createBitfieldMessage): Removed.
  8350. (createKeepAliveMessage): Removed.
  8351. (createHaveAllMessage): Removed.
  8352. (createHaveNoneMessage): Removed.
  8353. (createRejectMessage): Removed.
  8354. (createAllowedFastMessage): Removed.
  8355. * src/PeerInteraction.cc
  8356. (PeerInteraction): Allocate PeerMessageFactory here.
  8357. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8358. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8359. PieceMessage::ID.
  8360. (addMessage): Simplified by using PeerMessage::onPush().
  8361. (addRequestSlot): New function.
  8362. (rejectAllPieceMessageInQueue): Simplified by using
  8363. PeerMessage::onChoked().
  8364. (rejectPieceMessageInQueue): Simplified by using
  8365. PeerMessage::onCanceled().
  8366. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8367. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8368. (createHandshakeMessage): Removed.
  8369. (createPeerMessage): Removed.
  8370. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8371. (setPeerMessageCommonProperty): Removed.
  8372. (createRequestMessage): Removed.
  8373. (createCancelMessage): Removed.
  8374. (createPieceMessage): Removed.
  8375. (createHaveMessage): Removed.
  8376. (createChokeMessage): Removed.
  8377. (createUnchokeMessage): Removed.
  8378. (createInterestedMessage): Removed.
  8379. (createNotInterestedMessage): Removed.
  8380. (createBitfieldMessage): Removed.
  8381. (createKeepAliveMessage): Removed.
  8382. (createHaveAllMessage): Removed.
  8383. (createHaveNoneMessage): Removed.
  8384. (createRejectMessage): Removed.
  8385. (createAllowedFastMessage): Removed.
  8386. * src/PieceMessage.h
  8387. (createRejectMessage): New function.
  8388. (PieceMessage): Rewritten.
  8389. (onChoked): New function.
  8390. (onCanceled): New function.
  8391. * src/PieceMessage.cc
  8392. (send): If invalidate is true then do nothing, just return.
  8393. (createRejectMessage): New function.
  8394. (onChoked): New function.
  8395. (onCanceled): New function.
  8396. * src/RequestMessage.h
  8397. (RequestMessage): Rewritten.
  8398. (onPush): New function.
  8399. (onAbortPiece): New function.
  8400. * src/RequestMessage.cc
  8401. (onPush): New function.
  8402. (onAbortPiece): New function.
  8403. Update fd_set when a socket is added or deleted in order to improve
  8404. performance:
  8405. * src/DownloadEngine.h
  8406. (rfdset): New variable.
  8407. (wfdset): New variable.
  8408. (updateFdSet): New function.
  8409. * src/DownloadEngine.cc
  8410. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8411. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8412. (waitData): Copy rfdset and wfdset.
  8413. (updateFdSet): New function.
  8414. (addSocket): Call updateFdSet.
  8415. (deleteSocket): Call updateFdSet.
  8416. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. To add the support for Metalink3.0 backward compatible links:
  8418. * src/Request.h
  8419. (SAFE_CHARS): Added '#'.
  8420. (METALINK_MARK): New definition.
  8421. * src/Request.cc
  8422. (parseUrl): Added the support for Metalink3.0 backward compatible
  8423. links.
  8424. etc
  8425. * src/PeerInteraction.cc
  8426. (MsgPushBack): Removed.
  8427. (sendMessages): Use STL copy and back_inserter.
  8428. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8429. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8430. * src/TorrentMan.h
  8431. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8432. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. * src/SharedHandle.h: New class.
  8434. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8435. * src/HttpResponseCommand.h
  8436. (HttpResponseCommand): Wrapped Socket.
  8437. * src/SocketCore.h
  8438. (operator==): New function.
  8439. (operator!=): New function.
  8440. (operator<): New function.
  8441. (getSockfd): New function.
  8442. (isOpen): New function.
  8443. (writeData): New function.
  8444. * src/SocketCore.cc
  8445. (operator==): New function.
  8446. (operator!=): New function.
  8447. (operator<): New function.
  8448. * src/AbstractCommand.h
  8449. (socket): Changed its type to SocketHandle.
  8450. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8451. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8452. (disableReadCheckSocket): New function.
  8453. (disableWriteCheckSocket): New function.
  8454. (readCheckTarget): Changed its type to SocketHandle.
  8455. (writeCheckTarget): Changed its type to SocketHandle.
  8456. (AbstractCommand): Replaced Socket with SocketHandle.
  8457. * src/AbstractCommand.cc
  8458. (AbstractCommand): Replaced Socket with SocketHandle.
  8459. (~AbstractCommand): Removed the deallocation for Socket object.
  8460. (disableReadCheckSocket): New function.
  8461. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8462. (disableWriteCheckSocket): New function.
  8463. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8464. * src/HttpDownloadCommand.cc
  8465. (DownloadCommand): Replaced Socket with SocketHandle.
  8466. * src/PeerAbstractCommand.h
  8467. (socket): Changed its type to SocketHandle.
  8468. (peer): Changed its type to PeerHandle.
  8469. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8470. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8471. (disableReadCheckSocket): New function.
  8472. (disableWriteCheckSocket): New function.
  8473. (readCheckTarget): Changed its type to SocketHandle.
  8474. (writeCheckTarget): Changed its type to SocketHandle.
  8475. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8476. Replaced Peer with PeerHandle.
  8477. * src/HttpRequestCommand.cc
  8478. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8479. Use disableReadCheckSocket.
  8480. * src/PeerInitiateConnectionCommand.h
  8481. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8482. * src/PeerChokeCommand.cc
  8483. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  8484. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  8485. (execute): Use PeerHandle.
  8486. * src/PeerConnection.h
  8487. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  8488. (socket): Changed its type to SocketHandle.
  8489. (PeerConnection): Replaced Socket with SocketHandle.
  8490. * src/PeerConnection.cc
  8491. (PeerConnection): Replaced Socket with SocketHandle.
  8492. * src/PeerInteractionCommand.h
  8493. (PeerInteractionCommand): Replaced socket with SocketHandle.
  8494. Replaced Peer with PeerHandle.
  8495. * src/PeerInteractionCommand.cc
  8496. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  8497. Replaced Peer with PeerHandle.
  8498. (executeInternal): Use disableWriteCheckSocket.
  8499. Use HandshakeMessageHandle.
  8500. (receiveMessages): Use PeerMessageHandle.
  8501. (prepareForNextPeer): Use PeerHandle.
  8502. * src/HttpProxyRequestCommand.h
  8503. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8504. * src/HttpResponseCommand.cc
  8505. (HttpResponseCommand): Replaced Socket with SocketHandle.
  8506. * src/TorrentMan.cc
  8507. (nullPeer): Added external reference.
  8508. (~TorrentMan): Removed the deallocation of the elements of peers.
  8509. (addPeer): Rewritten.
  8510. (isPeerAvailable): Use nullPeer.
  8511. (deleteOldpeers): Replaced with deleteErrorPeer.
  8512. (deleteErrorPeer): New function.
  8513. (getPeer): Use PeerHandle and nullPeer.
  8514. (hasMissingPiece): Replaced Peer with PeerHandle.
  8515. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8516. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8517. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8518. (getMissingPiece): Replaced Peer with PeerHandle.
  8519. * src/FtpNegotiateCommand.cc
  8520. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  8521. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  8522. (recvGreeting): Use disableWriteCheckSocket.
  8523. (recvPasv): Removed the allocation of Socket.
  8524. Use disableReadCheckSocket.
  8525. (sendRestPasv): Use disableWriteCheckSocket.
  8526. (recvRetr): Changed assertion.
  8527. * src/PeerInteraction.h
  8528. (SharedHandle.h): Included SharedHandle.h.
  8529. (PeerMessageHandle): New type definition.
  8530. (HandshakeMessageHandle): New type definition.
  8531. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  8532. (peer): Changed its type to PeerHandle.
  8533. (createHandshakeMessage): Replaced HandshakeMessage with
  8534. HandshakeMessageHandle.
  8535. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  8536. (PeerInteraction): Replaced Peer with PeerHandle.
  8537. Replaced Socket with SocketHandle.
  8538. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8539. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8540. (receiveHandshake): Replaced HandshakeMessage with
  8541. HandshakeMessageHandle.
  8542. * src/PeerInteraction.cc
  8543. (PeerInteraction): Replaced Peer with PeerHandle.
  8544. Replaced Socket with SocketHandle.
  8545. (~PeerInteraction): Removed the deallocation of the elements of
  8546. messageQueue.
  8547. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  8548. (isSendingMessageInProgress): Replaced PeerMessage with
  8549. PeerMessageHandle.
  8550. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  8551. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8552. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  8553. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  8554. (abortPiece): Use PeerMessageHandle.
  8555. (receiveHandshake): Replaced HandshakeMessage with
  8556. HandshakeMessageHandle. Removed try-catch block.
  8557. (createHandshakeMessage): Replaced HandshakeMessage with
  8558. HandshakeMessageHandle.
  8559. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8560. Removed try-catch block.
  8561. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  8562. * src/HttpProxyResponseCommand.cc
  8563. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8564. * src/FtpTunnelResponseCommand.h
  8565. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8566. * src/HttpConnection.cc
  8567. (HttpConnection): Replaced Socket with SocketHandle.
  8568. * src/PeerAbstractCommand.cc
  8569. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8570. (~PeerAbstractCommand): Removed the deallocation of socket.
  8571. Use disableReadCheckSocket, disableWriteCheckSocket.
  8572. (disableReadCheckSocket): New function.
  8573. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8574. (disableWriteCheckSocket): New function.
  8575. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8576. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  8577. * src/FtpTunnelRequestCommand.cc
  8578. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8579. (~FtpTunnelRequestCommand): Corrected indentation.
  8580. * src/DownloadCommand.h
  8581. (DownloadCommand): Replaced Socket with SocketHandle.
  8582. * src/PeerListenCommand.cc
  8583. (PeerListenCommand): Removed the initialization of socket.
  8584. (~PeerListenCommand): Removed the deallocation of socket.
  8585. (bindPort): Use SocketHandle.
  8586. (execute): Use SocketHandle and PeerHandle.
  8587. * src/FtpDowndloadCommand.cc
  8588. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8589. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  8590. * src/main.cc
  8591. (main): Corrected indentation.
  8592. * src/HttpInitiateConnectionCommand.cc
  8593. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  8594. (executeInternal): Removed the allocation of socket.
  8595. * src/HttpRequestCommand.h
  8596. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8597. * src/FtpNegotiationCommand.h
  8598. (dataSocket): Changed its type to SocketHandle.
  8599. (serverSocket): Changed its type to SocketHandle.
  8600. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  8601. * src/TorrentMan.h
  8602. (MAX_PEER_UPDATE): Removed.
  8603. (MAX_PEERS): New definition.
  8604. (Peers): The element is now of type PeerHandle.
  8605. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  8606. (getPeer): Replaced Peer with PeerHandle.
  8607. (deleteOldErrorPeers): Removed.
  8608. (deleteErrorPeer): New function.
  8609. (hasMissingPiece): Replaced Peer with PeerHandle.
  8610. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8611. (getMissingPiece): Replaced Peer with PeerHandle.
  8612. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8613. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8614. (addActivePeer): Replaced Peer with PeerHandle.
  8615. (deleteActivePeer): Replaced Peer with PeerHandle.
  8616. Added a check for the return value of find.
  8617. * src/FtpTunnelResponseCommand.cc
  8618. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8619. * src/FtpInitiateConnectionCommand.cc
  8620. (executeInternal): Removed the allocation of socket.
  8621. * src/DownloadEngine.h
  8622. (Sockets): An element is now of type SocketHandle.
  8623. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  8624. (CommandUuids): New type definition.
  8625. (rsockets): Changed its type to SockCmdMap.
  8626. (wsockets): Changed its type to SockCmdMap.
  8627. (addSocket): Rewritten.
  8628. (deleteSocket): Rewritten.
  8629. (addSocketForReadCheck): Rewritten.
  8630. (deleteSocketForReadCheck): Rewritten.
  8631. (addSocketForWriteCheck): Rewritten.
  8632. (deleteSocketForWriteCheck): Rewritten.
  8633. (PairFind): New template class.
  8634. * src/HttpDownloadCommand.h
  8635. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  8636. * src/FtpConnection.cc
  8637. (FtpConnection): Replaced Socket with SocketHandle.
  8638. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  8639. block.
  8640. * src/InitiateConnectionCommandFactory.cc
  8641. (DlAbortEx.h): Included DlAbortEx.h.
  8642. (createInitiateConnectionCommand): Throw exception if the protocol of
  8643. requested URI is not supported.
  8644. * src/Peer.cc
  8645. (nullPeer): Changed its type to PeerHandle.
  8646. (operator==): New function.
  8647. (operator!=): New function.
  8648. * src/Peer.h
  8649. (SharedHandle.h): Included SharedHandle.h.
  8650. (operator==): New function.
  8651. (operator!=): New function.
  8652. (Peer): Added the default constructor.
  8653. Use resetStatus() to initialize member variables.
  8654. (nullPeer): Removed.
  8655. * src/TrackerUpdateCommand.cc
  8656. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  8657. with MIN_PEERS.
  8658. * src/PeerListenCommand.h
  8659. (socket): Changed its type to SocketHandle.
  8660. * src/Command.h
  8661. (CommandUuid): New type definition.
  8662. (uuid): New variable.
  8663. (uuidGen): New variable.
  8664. (Command): Added the initialization of uuid.
  8665. (getUuid): New function.
  8666. * src/Socket.h
  8667. (Socket): Removed.
  8668. (SocketHandle): New type definition.
  8669. * src/DownloadEngine.h
  8670. (FindCommand): New function object.
  8671. (run): The portion of socket check was rewritten.
  8672. (SetDescriptor): New function object.
  8673. (AccumulateActiveCommandUuid): New function object.
  8674. (waitData): Rewritten.
  8675. (addSocket): Rewritten.
  8676. (deleteSocket): Rewritten.
  8677. (addSocketForReadCheck): Rewritten.
  8678. (addSocketForWriteCheck): Rewritten.
  8679. (deleteSocketForReadCheck): Rewritten.
  8680. (deleteSocketForWriteCheck): Rewritten.
  8681. * src/HttpProxyResponseCommand.h
  8682. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  8683. * src/HttpConnection.h
  8684. (socket): Changed its type to SocketHandle.
  8685. (HttpConnection): Replaced Socket with SocketHandle.
  8686. * src/PeerInitiateConnectionCommand.cc
  8687. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8688. (executeInternal): Removed the allocation of socket.
  8689. (prepareForNextPeer): Use PeerHandle.
  8690. * src/PeerMessage.h
  8691. (peer): Changed its type to PeerHandle.
  8692. (getPeer): Replaced Peer with PeerHandle.
  8693. (setPeer): Replaced Peer with PeerHandle.
  8694. * src/DownloadCommand.cc
  8695. (DownloadCommand): Replaced Socket with SocketHandle.
  8696. * src/FtpConnection.h
  8697. (socket): Changed its type to SocketHandle.
  8698. (FtpConnection): Replaced Socket with SocketHandle.
  8699. (sendPort); Replaced Socket with SocketHandle.
  8700. * src/FtpDowndloadCommand.h
  8701. (ctrlSocket): Changed its type to SocketHandle.
  8702. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8703. * src/HttpProxyRequestCommand.cc
  8704. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8705. * src/FtpTunnelRequestCommand.h
  8706. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8707. etc
  8708. * src/PeerChokeCommand.h
  8709. (setAllPeerChoked): Removed.
  8710. (setAllPeerResetDelta): Removed.
  8711. * src/PeerChokeCommand.cc
  8712. (setAllPeerChoked): Removed.
  8713. (ChokePeer): New function object.
  8714. (setAllPeerResetDelta): Removed.
  8715. (ResetDelta): New function object.
  8716. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  8717. (execute): Show download speed when the local node is a seeder.
  8718. setAllPeerChoked and setAllPeerResetDelta were rewritten
  8719. using STL.
  8720. * src/TrackerWatcherCommand.h
  8721. (MIN_PEERS): Removed.
  8722. * src/TorrentMan.cc
  8723. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  8724. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8725. To fix the bug that .aria2 file is not saved if downloading is stopped
  8726. by the errors:it results that aria2 can not resume downloading:
  8727. * src/main.cc
  8728. (normalDownload): Added the call to save().
  8729. (main): Added the deletion of the elements in 'reserved'.
  8730. To fix log:
  8731. * src/PeerInteraction.cc
  8732. (receiveHandshake): Fixed log.
  8733. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. To improve download performance in BitTorrent:
  8735. * src/TorrentMan.cc
  8736. (getPeer): Check the number of connections. Return nullPeer if
  8737. it is greater than MAX_PEER_UPDATE.
  8738. This code was originally here, but was removed in 0.5.1.
  8739. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. To improve the conditional compilation:
  8741. * src/MultiDiskWriter.h:
  8742. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8743. * src/MultiDiskWriter.cc:
  8744. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8745. * src/Util.h:
  8746. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8747. Added ENABLE_BITTORRENT around computeFastSet().
  8748. * src/Util.cc:
  8749. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8750. Added ENABLE_BITTORRENT around computeFastSet().
  8751. * src/messageDigest.h:
  8752. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  8753. * src/ShaVisitor.h:
  8754. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8755. * src/ShaVisitor.cc:
  8756. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8757. * src/main.cc:
  8758. Added ENABLE_BITTORRENT around includes and blocks related to
  8759. BitTorrent.
  8760. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  8761. digest support is not available.
  8762. * src/AbstractDiskWriter.h:
  8763. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8764. * src/AbstractDiskWriter.cc:
  8765. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8766. * src/MetalinkEntry.cc
  8767. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  8768. support is not available.
  8769. To add command-line options for Metalink:
  8770. * src/main.cc:
  8771. Added metalink-version, metalink-language, metalink-os,
  8772. follow-metalink.
  8773. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  8774. * src/main.cc: Use these definition.
  8775. * Release 0.6.0
  8776. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. To add Metalink support(http/ftp only):
  8778. * src/AbstractCommand.h
  8779. (tryReserved): New function.
  8780. * src/AbstractCommand.cc
  8781. (execute): Call tryReserved().
  8782. (tryReserved): New function.
  8783. * src/Request.h
  8784. (Requests): New type definition.
  8785. * src/SegmentMan.h
  8786. (reserved): New variable.
  8787. * src/Util.h
  8788. (fileChecksum): New function.
  8789. (toUpper): New function.
  8790. (toLower): New function.
  8791. * src/Util.cc
  8792. (messageDigest.h): Included.
  8793. (trim): Trim \r\n\t.
  8794. (fileChecksum): New function.
  8795. (toUpper): New function.
  8796. (toLower): New function.
  8797. * src/main.cc
  8798. (normalDownload): New function.
  8799. (main): Added 2 command-line options: metalink-file,
  8800. metalink-connection. Their usage has not been written yet.
  8801. * src/MetalinkProcessor.h: New class.
  8802. * src/Xml2MetalinkProcessor.h: New class.
  8803. * src/Xml2MetalinkProcessor.cc: New class.
  8804. * src/MetalinkEntry.h: New class.
  8805. * src/MetalinkEntry.cc: New class.
  8806. * src/MetalinkResource.h: New class.
  8807. * src/MetalinkResource.cc: New class.
  8808. To add md5 message digest checking:
  8809. * src/messageDigest.h: Rewritten.
  8810. * src/MultiDiskWriter.cc: Updated according to the changes in
  8811. messageDigest.h.
  8812. * src/ShaVisitor.cc: Updated according to the changes in
  8813. messageDigest.h.
  8814. * src/Util.cc: Updated according to the changes in messageDigest.h.
  8815. * src/AbstractDiskWriter.cc: Updated according to the changes in
  8816. messageDigest.h.
  8817. To fix a bug that causes segfault when the payload length in peer
  8818. message is less than 0:
  8819. * src/PeerConnection.cc:
  8820. (receiveMessage): Fixed the bug.
  8821. * src/PeerMessageUtil.cc
  8822. (checkLength): Throw an exception if length is less than or equals to
  8823. 0.
  8824. To add new interfaces to Base64 encoding/decoding:
  8825. * src/Base64.h
  8826. (part_encode): Changed the method signature.
  8827. (encode): New function(overload).
  8828. (decode): New function(overload).
  8829. * src/Base64.cc
  8830. (part_encode): Rewritten.
  8831. (encode): Rewritten.
  8832. (encode): New function(overload).
  8833. To prevent a peer to download same piece if there is an error in
  8834. checksum:
  8835. * src/PieceMessage.cc
  8836. (receivedAction): Call peerInteraction->abortPiece().
  8837. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. To fix the bug that causes same have message is sent many times to
  8839. a single peer.
  8840. * src/Time.cc
  8841. (isNewer): Use Util::difftv().
  8842. * src/Util.cc
  8843. (difftv): Added a cast to (long long int).
  8844. * src/TorrentMan.cc
  8845. (advertisePiece): Use push_front.
  8846. (getAdvertisedPieceIndexes): A performance improvement was made.
  8847. To fix the bug that sends tracker requests without a sleep interval
  8848. when the number of connections is less than 15.
  8849. * src/TrackerWatcherCommand.cc
  8850. (execute): Now the number of connections is not a factor to decide
  8851. whether or not a tracker request should be sent or not.
  8852. * src/Time.h
  8853. (setTimeInSec): New function.
  8854. * src/Time.cc
  8855. (setTimeInSec): New function.
  8856. etc.
  8857. * src/ChokeMessage.cc
  8858. (receivedAction): Removed peer->snubbing = false
  8859. * src/PeerConnection.h
  8860. (receiveHandshake): Updated doc.
  8861. * src/TorrentMan.h
  8862. (getAdvertisedPieceIndexes): Updated the method signature.
  8863. * src/TorrentMan.cc
  8864. (getAdvertisedPieceIndexes): Updated the method signature.
  8865. * src/Time.h
  8866. (getTimeInMicros): Added a cast to (long long int).
  8867. (getTimeInMillis): Added a cast to (long long int).
  8868. * Release 0.5.2
  8869. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. To make a listening socket non-block:
  8871. * src/SocketCore.h
  8872. (setNonBlockingMode): New function.
  8873. * src/SocketCore.cc
  8874. (setNonBlockingMode): New function.
  8875. (beginListen): Added a call to setNonBlockingMode().
  8876. (acceptConnection): Call setNonBlockingMode().
  8877. (setBlockingMode): Updated.
  8878. To handle tracker's NAT-checking:
  8879. * src/PeerConnection.cc
  8880. (receiveHandshake): 'msg' param is filled with received data and
  8881. its length is assigned to 'length' param, even if all handshake
  8882. message is not yet received.
  8883. * src/PeerInteractionCommand.cc
  8884. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  8885. a new peer connects to localhost.
  8886. A call to peerInteraction->sendHandshake() was removed because
  8887. it is called from peerInteraction->receiveHandshake(true).
  8888. * src/PeerInteraction.h
  8889. (quickReplied): New variable.
  8890. (receiveHandshake): Added an argument.
  8891. * src/PeerInteraction.cc
  8892. (PeerInteraction): Added the initialization of quickReplied.
  8893. (receiveHandshake): Send handshake message as soon as the info hash
  8894. in a handshake message from a peer is correct.
  8895. To change the random part of peer id and key parameter:
  8896. * src/TorrentMan.h
  8897. (key): New variable.
  8898. * src/TorrentMan.cc
  8899. (setupInternal1): Use Util::randomAlpha() to generate random part
  8900. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  8901. key is also generated by Util::randomAlpha() and it is now 8 character
  8902. long.
  8903. * src/Util.h
  8904. (randomAlpha): New function.
  8905. * src/Util.cc
  8906. (randomAlpha): New function.
  8907. * src/TrackerWatcherCommand.cc
  8908. (execute): In a tracker request: Use torrentMan->key as key parameter.
  8909. Added no_peer_id=1.
  8910. Set snubbing flag to false when a choke message is received from a
  8911. snubbed peer.
  8912. * src/ChokeMessage.cc
  8913. (receivedAction): Set snubbing flag to false.
  8914. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  8916. * src/SimpleLogger.h (writeHeader): New function.
  8917. * src/SimpleLogger.cc (writeHeader): New function.
  8918. (writeLog): Fixed the bug that causes segfaults if exception message
  8919. contains an unescaped "%" character.
  8920. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  8921. when a tracker request fails.
  8922. * src/Request.cc (parseUrl): Query string is now handled properly.
  8923. * Release 0.5.1
  8924. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. To add Time class which represents a specific instant in time and
  8926. its precision is microseconds. Time checking procedures were rewritten
  8927. using this object.
  8928. * src/Time.h: New class.
  8929. * src/Time.cc: New class.
  8930. * src/AbstractCommand.h
  8931. (updateCheckPoint): Removed.
  8932. (isTimeoutDetected): Removed.
  8933. (checkPoint): Changed the type to Time.
  8934. (timeout): New variable.
  8935. (setTimeout): New function.
  8936. * src/AbstractCommand.cc
  8937. (AbstractCommand): Removed the initialization of checkPoint.
  8938. Added the initialization of timeout.
  8939. (updateCheckPoint): Removed.
  8940. (isTimeoutDetected): Removed.
  8941. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8942. * src/PeerChokeCommand.h
  8943. (checkPoint): Changed the type to Time.
  8944. * src/PeerChokeCommand.cc
  8945. (PeerChokeCommand): Removed the initialization of checkPoint.
  8946. (execute): Rewritten using Time object.
  8947. * src/TrackerWatcherCommand.h
  8948. (checkPoint): Changed the type to Time.
  8949. * src/TrackerWatcherCommand.cc
  8950. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  8951. (execute): Rewritten.
  8952. * src/ConsoleDownloadEngine.h
  8953. (cp): Changed the type to Time.
  8954. (startup): Changed the type to Time.
  8955. * src/ConsoleDownloadEngine.cc
  8956. (initStatistics): Use cp.reset(), startup.reset().
  8957. (calculateStatistics): Rewritten using Time object.
  8958. * src/PeerAbstractCommand.h
  8959. (updateCheckPoint): Removed.
  8960. (isTimeoutDetected): Removed.
  8961. (checkPoint): Changed the type to Time.
  8962. * src/PeerAbstractCommand.cc
  8963. (PeerAbstractCommand): Removed the initialization of checkPoint.
  8964. (updateCheckPoint): Removed.
  8965. (isTimeoutDetected): Removed.
  8966. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8967. * src/PeerInteractionCommand.cc
  8968. (PeerInteractionCommand): Removed the initializations of struct
  8969. timeval variables.
  8970. * src/PeerInteractionCommand.h
  8971. (keepAliveCheckPoint): Changed the type to Time.
  8972. (chokeCheckPoint): Changed the type to Time.
  8973. (freqCheckPoint): Changed the type to Time.
  8974. (haveCheckTime): Changed the type to Time.
  8975. * src/PeerInteractionCommand.cc
  8976. (executeInternal): Rewritten using Time object.
  8977. (detectMessageFlooding): Rewritten using Time object.
  8978. (checkLongTimePeerChoking): Rewritten using Time object.
  8979. (sendKeepAlive): Rewritten using Time object.
  8980. (checkHave): Rewritten using Time object.
  8981. * src/SleepCommand.h
  8982. (checkPoint): Changed the type to Time.
  8983. * src/SleepCommand.cc
  8984. (SleepCommand): Removed the initialization of checkPoint.
  8985. (execute): Rewritten using Time object.
  8986. * src/TorrentAutoSaveCommand.h
  8987. (checkPoint): Changed the type to Time.
  8988. * src/TorrentAutoSaveCommand.cc
  8989. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  8990. (execute): Rewritten.
  8991. * src/DownloadCommand.h
  8992. (sw): Changed the type to Time.
  8993. * src/DownloadCommand.cc
  8994. (DownloadCommand): Removed the initialization of sw.
  8995. (executeInternal): Rewritten.
  8996. * src/RequestSlot.h
  8997. (dispatchedTime): Changed the type to Time.
  8998. * src/RequestSlot.cc
  8999. (RequestSlot): Removed the call to setDispatchedTime().
  9000. (setDispatchedTime): Rewirtten.
  9001. (isTimeout): Rewritten.
  9002. (getLatencyInMillis): Rewritten.
  9003. * src/TorrentDownloadEngine.h
  9004. (cp): Changed the type to Time[2].
  9005. (startup): Changed the type to Time.
  9006. * src/TorrentDownloadEngine.cc
  9007. (initStatistics): Rewritten.
  9008. (calculateStatistics): Rewritten.
  9009. * src/DownloadEngine.cc
  9010. (run): Rewritten.
  9011. To detect all attempts to connect to the tracker are failed:
  9012. * src/AbstractCommand.cc
  9013. (execute): Increment e->segmentMan->errors if a command aborted.
  9014. * src/SegmentMan.h
  9015. (errors): New variable.
  9016. * src/SegmentMan.cc
  9017. (SegmentMan): Added the initialization of errors.
  9018. (init): Added the initialization of errors.
  9019. * src/TrackerWatcherCommand.cc
  9020. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9021. request was failed.
  9022. To handle snubbed peers:
  9023. * src/PeerChokeCommand.cc
  9024. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9025. (execute): Snubbed peers don't get unchoked.
  9026. * src/PeerInteraction.h
  9027. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9028. * src/PeerInteraction.cc
  9029. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9030. back the requested 16k block in 60 seconds.
  9031. * src/PieceMessage.cc
  9032. (receivedAction): A peer's snubbed state is cleard if it sends
  9033. the requested 16k block in 60 seconds.
  9034. * src/Peer.h
  9035. (snubbing): New variable.
  9036. * src/Peer.cc
  9037. (resetStatus): Added snubbed = false.
  9038. To fix the bug that causes have message is not sent:
  9039. * src/PeerInteractionCommand.cc
  9040. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9041. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9042. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9043. * src/TorrentMan.h
  9044. (HaveEntry): New class.
  9045. (advertisePiece): Rewritten.
  9046. (getAdvertisedPieceIndexes): Rewritten.
  9047. (Haves): Changed the type.
  9048. (getAdvertisedPieceIndexes): Added an argument.
  9049. Others:
  9050. * src/TorrentMan.h
  9051. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9052. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9053. * src/TorrentMan.cc
  9054. (getPeer): Don't check the number of connections here.
  9055. (setupInternal1): Changed peerId.
  9056. * src/PeerInteractionCommand.h
  9057. (KEEP_ALIVE_INTERVAL): New definition.
  9058. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9059. * src/main.cc
  9060. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9061. * src/DownloadEngine.h: Removed unnecessary header includes.
  9062. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. To fix the bug that causes segfaults if a tracker returns a zero-length
  9064. list as "peers":
  9065. * src/TrackerUpdateCommand.cc
  9066. (execute): Added a check to see wether the type of peers is Data*.
  9067. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. * Release 0.5.0
  9069. To fix compile issue with gcc3:
  9070. * src/CancelMessage.h
  9071. (ID): Renamed as ID_t
  9072. (ID_t): New enum.
  9073. * src/RejectMessage.h
  9074. (ID): Renamed as ID_t
  9075. (ID_t): New enum.
  9076. * src/SuggestPieceMessage.h
  9077. (ID): Renamed as ID_t
  9078. (ID_t): New enum.
  9079. * src/AllowedFastMessage.h
  9080. (ID): Renamed as ID_t
  9081. (ID_t): New enum.
  9082. * src/PortMessage.h
  9083. (ID): Renamed as ID_t
  9084. (ID_t): New enum.
  9085. * src/HaveNoneMessage.h
  9086. (ID): Renamed as ID_t
  9087. (ID_t): New enum.
  9088. * src/KeepAliveMessage.h
  9089. (ID): Renamed as ID_t
  9090. (ID_t): New enum.
  9091. * src/HaveAllMessage.h
  9092. (ID): Renamed as ID_t
  9093. (ID_t): New enum.
  9094. * src/UnchokeMessage.h
  9095. (ID): Renamed as ID_t
  9096. (ID_t): New enum.
  9097. * src/BitfieldMessage.h
  9098. (ID): Renamed as ID_t
  9099. (ID_t): New enum.
  9100. * src/PieceMessage.h
  9101. (ID): Renamed as ID_t
  9102. (ID_t): New enum.
  9103. * src/RequestMessage.h
  9104. (ID): Renamed as ID_t
  9105. (ID_t): New enum.
  9106. * src/NotInterestedMessage.h
  9107. (ID): Renamed as ID_t
  9108. (ID_t): New enum.
  9109. * src/ChokeMessage.h
  9110. (ID): Renamed as ID_t
  9111. (ID_t): New enum.
  9112. * src/InterestedMessage.h
  9113. (ID): Renamed as ID_t
  9114. (ID_t): New enum.
  9115. * src/HaveMessage.h
  9116. (ID): Renamed as ID_t
  9117. (ID_t): New enum.
  9118. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9119. * src/PeerAbstractCommand.h
  9120. (beforeSocketCheck): Removed.
  9121. * src/PeerAbstractCommand.cc
  9122. Modified in order to call executeInternal() even if socket check
  9123. and upload limit check fail.
  9124. * src/PeerInteractionCommand.h
  9125. (keepAlive): Removed.
  9126. (sendKeepAlive): New function.
  9127. (checkHave): New function.
  9128. (beforeSocketCheck): Removed.
  9129. * src/PeerInteractionCommand.cc
  9130. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9131. calls to checkHave() and sendKeepAlive().
  9132. (keepAlive): Renamed to sendKeepAlive().
  9133. (sendKeepAlive): New function.
  9134. (beforeSocketCheck): Removed.
  9135. (checkHave): New function.
  9136. * src/BitfieldMan.cc
  9137. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9138. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9139. 0.
  9140. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9141. * src/TorrentMan.h
  9142. (UsedPieces): Removed.
  9143. (Pieces): New type definition.
  9144. * src/Piece.h: Updated doc.
  9145. * src/Peer.h
  9146. (totalLength): Removed.
  9147. * src/Peer.cc
  9148. (updateLatency): Fixed the latency calculation.
  9149. * src/TorrentMan.cc
  9150. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9151. than or equal to MAX_PEER_LIST_SIZE.
  9152. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9153. then return false.
  9154. (deleteOldErrorPeers): Rewritten.
  9155. (deleteUsedPiece): Fixed the miss use of STL remove.
  9156. * src/PeerInteraction.h
  9157. (Pieces): Removed.
  9158. (deleteTimeoutRequestSlot): Removed.
  9159. (deleteCompletedRequestSlot): Removed.
  9160. (checkRequestSlot): New function.
  9161. * src/PeerInteraction.cc
  9162. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9163. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9164. (checkRequestSlot): New function.
  9165. * src/DownloadEngine.cc
  9166. (run): Clear activeSockets before calling waitData().
  9167. (waitData): Removed a call to activeSockets.clear().
  9168. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. To attempt to handle EINTR:
  9170. * src/SocketCore.cc
  9171. (isReadable): Added EINTR handling.
  9172. (isWritable): Added EINTR handling.
  9173. To improve the performance:
  9174. * src/AbstractCommand.cc
  9175. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9176. * src/PeerInteractionCommand.h
  9177. (receiveMessage): Renamed as receiveMessages().
  9178. (receiveMessages): New function.
  9179. * src/PeerInteractionCommand.cc
  9180. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9181. () function. detectMessageFlooding() is moved here.
  9182. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9183. (). The flooding detection for have message is comment out.
  9184. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9185. Util::difftv().
  9186. (receiveMessage): Renamed as receiveMessages().
  9187. (receiveMessages): New function.
  9188. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9189. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9190. * src/SleepCommand.cc
  9191. (execute): Use Util::difftvsec() instead of Util::difftv().
  9192. * src/BitfieldMan.h
  9193. (getNthBitIndex): New function.
  9194. (hasMissingPiece): New function.
  9195. (getAllMissingIndexes): New function.
  9196. * src/BitfieldMan.cc
  9197. (countSetBit): Rewritten.
  9198. (getNthBitIndex): New function.
  9199. (getMissingIndexRandomly): Rewritten.
  9200. (hasMissingPiece): New function.
  9201. (getAllMissingIndexes): New function.
  9202. * src/TorrentMan.cc
  9203. (hasMissingPiece): New function.
  9204. (deleteUsedPiece): Rewritten using STL.
  9205. * src/PeerInteraction.cc
  9206. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  9207. is a little bit faster then TorrentMan::getMissingPieceIndex().
  9208. (addRequests): Updated the number of pending requests.
  9209. * src/PeerAbstractCommand.cc
  9210. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9211. (execute): Returns true if TorrentMan::isHalt() is true.
  9212. Corrected the condition of upload limit checking.
  9213. * src/Util.h
  9214. (countBit): New function.
  9215. * src/Util.cc
  9216. (nbits): New variable.
  9217. (countBit): New function.
  9218. * src/DownloadEngine.h
  9219. (SockCmdMap): New type definition.
  9220. (waitData): Added an argument.
  9221. (addSocket): Added an argument.
  9222. (addSocketForReadCheck): Added an argument.
  9223. (addSocketForWriteCheck): Added an argument.
  9224. * src/DownloadEngine.cc
  9225. (run): Executes only commands whose sockets are ready to read or write.
  9226. All commands are executed in every 1 second.
  9227. (waitData): Calls select() again if it returned
  9228. EINTR.
  9229. (addSocket): Saves socket and command object pair to the map.
  9230. (deleteSocket): Deletes socket and command object pair from the map.
  9231. (addSocketForReadCheck): Added an argument.
  9232. (addSocketForWriteCheck): Added an argument.
  9233. * src/DownloadCommand.cc
  9234. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9235. To send "event=stopped" to the tracker when the application finishes:
  9236. * src/PeerChokeCommand.h
  9237. (checkPoint): New variable.
  9238. * src/PeerChokeCommand.cc
  9239. (PeerChokeCommand): Added the initialization of checkPoint.
  9240. (execute): The interval check is now done by checkPoint, not
  9241. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9242. * src/TorrentMan.h
  9243. (halt): New function.
  9244. (hasMissingPiece): New function.
  9245. (isHalt): New function.
  9246. (setHalt): New function.
  9247. * src/TorrentMan.cc
  9248. (TorrentMan): Added the initialization of halt.
  9249. * src/TorrentAutoSaveCommand.h
  9250. (checkPoint): New variable.
  9251. * src/PeerListenCommand.cc
  9252. (execute): Returns true if TorrentMan::isHalt() is true.
  9253. * src/main.cc
  9254. (setSignalHander): Added flags argument.
  9255. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9256. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9257. Removed printDownloadAbortMessage() after torrent downloading loop.
  9258. * src/TorrentAutoSaveCommand.cc
  9259. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9260. (execute): Returns true if TorrentMan::isHalt() is true.
  9261. The interval check is now done by checkPoint, not SleepCommand.
  9262. * src/TrackerWatcherCommand.cc
  9263. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9264. event=stopped.
  9265. * src/TrackerUpdateCommand.cc
  9266. (prepareForRetry): Do not use SleepCommand here.
  9267. (execute): Returns true if TorrentMan::isHalt() is true.
  9268. Others:
  9269. * src/TorrentMan.cc
  9270. (getMissingPieceIndex): Updated log message.
  9271. * src/PeerInteraction.cc
  9272. (createPeerMessag): Updated log message.
  9273. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. To add the ability to download several pieces in mix in a command and
  9275. increase the number of request slots according to request-cancel
  9276. latency:
  9277. * src/PeerInteractionCommand.cc
  9278. (executeInternal): The number of messages to be received at a time
  9279. is increased from 10 to 50.
  9280. * src/LogFactory
  9281. (getInstance): Added NullLogger.
  9282. * src/NullLogger.h: New class.
  9283. * src/BitfieldMan.h
  9284. (getMissingIndex): New function.
  9285. * src/BitfieldMan.cc
  9286. (getMissingIndex): New function.
  9287. * src/TorrentMan.h
  9288. (checkOutPiece): New function.
  9289. (getMissingPieceIndex): New function.
  9290. (getMissingFastPieceIndex): New function.
  9291. (getMissingFastPiece): New function.
  9292. * src/TorrentMan.cc
  9293. (updatePiece): Rewritten using STL.
  9294. (syncPiece): Rewritten using STL.
  9295. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9296. checkOutPiece().
  9297. (getMissingPieceIndex): New function.
  9298. (getMissingFastPieceIndex): New function.
  9299. (getMissingFastPiece): New function.
  9300. (checkOutPiece): New function.
  9301. * src/PeerInteraction.h
  9302. (Pieces): New type definition.
  9303. (piece): Removed.
  9304. (pieces): New variable.
  9305. (getNewPieceAndSendInterest): Added the "piece" argument.
  9306. (abortPiece): Added the "piece" argument.
  9307. (abortAllPieces): New function.
  9308. (isInRequestSlot): New function.
  9309. (hasDownloadPiece): Added the "index" argument.
  9310. (setDownloadPiece): Removed.
  9311. (getDownloadPiece): Added the "index" argument.
  9312. (updatePiece): New function.
  9313. (createRequestMessage): Added the "index" argument.
  9314. * src/PeerInteraction.cc
  9315. (onChoked): Rewritten.
  9316. (abortPiece): Rewirtten.
  9317. (abortAllPieces): New function.
  9318. (deleteTimeoutRequestSlot): Rewritten.
  9319. Clarified code a little bit.
  9320. (deleteCompletedRequestSlot): Rewritten.
  9321. (isInRequestSlot): New function.
  9322. (syncPiece): Rewritten.
  9323. (updatePiece): New function.
  9324. (getNewPieceAndSendInterest): Rewritten.
  9325. (addRequests): Rewritten.
  9326. (getDownloadPiece): Rewritten.
  9327. (hasDownloadPiece): Rewritten.
  9328. (createRequestMessage): Added the "index" argument.
  9329. * src/common.h
  9330. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9331. (DIV_FLOOR): New definition.
  9332. * src/PieceMessage.cc
  9333. (receivedAction): Update request-piece latency here.
  9334. * src/RequestSlot.h
  9335. (getLatencyInMillis): New function.
  9336. * src/RequestSlot.cc
  9337. (isTimeout): Rewritten using getLatencyInMillis.
  9338. (getLatencyInMillis): New function.
  9339. * src/Piece.h
  9340. (operator==): New function.
  9341. (getMissingBlockIndex): New function.
  9342. * src/Piece.cc
  9343. (operator==): New function.
  9344. (getMissingBlockIndex): New function.
  9345. * src/Peer.h
  9346. (DEFAULT_LATENCY): New definition.
  9347. (latency): New variable.
  9348. (updateLatency): New function.
  9349. (getLatency): New function.
  9350. * src/Peer.cc
  9351. (resetStatus): Reset latecy.
  9352. (updateLatency): New function.
  9353. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9354. * src/SocketCore.cc
  9355. (isReadable): Added secure to the condition.
  9356. * src/HttpConnection.cc
  9357. (receiveResponse): Fixed a bug that causes no response header
  9358. exception.
  9359. * src/Peer.h
  9360. (getFastSet): Fixed the return value type.
  9361. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. To remove a wait from download loop:
  9363. * src/DownloadEngine.cc
  9364. (run): Comment out shortSleep.
  9365. To rewrite the message handling:
  9366. * src/SimplePeerMessage.h: New class.
  9367. * src/SimplePeerMessage.cc: New class.
  9368. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9369. (msg): New variable.
  9370. (create): New function.
  9371. (send): Removed.
  9372. (getMessage): New function.
  9373. (getMessageLength): New function.
  9374. * src/CancelMessage.cc
  9375. (create): New function.
  9376. (receivedAction): Replaced deleteRequestMessageInQueue with
  9377. rejectPieceMessageInQueue.
  9378. (send): Removed.
  9379. (getMessage): New function.
  9380. (getMessageLength): New function.
  9381. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9382. (msg): New variable.
  9383. (msgLength): New variable.
  9384. (~BitfieldMessage): Deleted msg.
  9385. (send): Removed.
  9386. (getMessage): New function.
  9387. (getMessageLength): New function.
  9388. * src/BitfieldMessage.cc
  9389. (create): New function.
  9390. (send): Removed.
  9391. (getMessage): New function.
  9392. (getMessageLength): New function.
  9393. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9394. (msg): New variable.
  9395. (sendPredicate): New function.
  9396. (onSendComplete): New function.
  9397. (send): Removed.
  9398. (getMessage): New function.
  9399. (getMessageLength): New function.
  9400. (create): New function.
  9401. * src/ChokeMessage.cc
  9402. (create): New function.
  9403. (send): Removed.
  9404. (sendPredicate): New function.
  9405. (getMessage): New function.
  9406. (getMessageLength): New function.
  9407. (onSendComplete): New function.
  9408. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9409. (msg): New variable.
  9410. (send): Removed.
  9411. (getMessage): New function.
  9412. (getMessageLength): New function.
  9413. * src/KeepAliveMessage.cc
  9414. (send): Removed.
  9415. (getMessage): New function.
  9416. (getMessageLength): New function.
  9417. * src/PortMessage.h
  9418. (create): New function.
  9419. (receivedAction): Updated log message.
  9420. * src/PortMessage.cc: New file.
  9421. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9422. (msg): New variable.
  9423. (sendPredicate): New function.
  9424. (onSendComplete): New function.
  9425. (create): New function.
  9426. (send): Removed.
  9427. (getMessage): New function.
  9428. (getMessageLength): New function.
  9429. * src/UnchokeMessage.cc
  9430. (create): New function.
  9431. (send): Removed.
  9432. (sendPredicate): New function.
  9433. (getMessage): New function.
  9434. (getMessageLength): New function.
  9435. (onSendComplete): New function.
  9436. * src/PieceMessage.h
  9437. (leftPieceDataLength): Removed.
  9438. (leftDataLength): New variable.
  9439. (headerSend): New variable.
  9440. (pendingCount): New variable.
  9441. (msgHeader): New variable.
  9442. (sendPieceData): New function.
  9443. (incrementPendingCount): New function.
  9444. (isPendingCountMax): New function.
  9445. (create): New function.
  9446. (getMessageHeader): New function.
  9447. (getMessageHeaderLength): New function.
  9448. * src/PieceMessage.cc
  9449. (create): New function.
  9450. (getMessageHeader): New function.
  9451. (getMessageHeaderLength): New function.
  9452. (send): Rewritten.
  9453. (sendPieceData): New function.
  9454. * src/HaveMessage.h: Derived from SimplePeerMessage.
  9455. (msg): New variable.
  9456. (create): New function.
  9457. (getMessage): New function.
  9458. (getMessageLength): New function.
  9459. * src/HaveMessage.cc
  9460. (create): New function.
  9461. (send): Removed.
  9462. (sendPieceData): New function.
  9463. (getMessage): New function.
  9464. (getMessageLength): New function.
  9465. * src/RequestMessage.h: Derived from SimplePeerMessage.
  9466. (msg): New variable.
  9467. (create): New function.
  9468. (send): Removed.
  9469. (getMessage): New function.
  9470. (getMessageLength): New function.
  9471. * src/RequestMessage.cc
  9472. (create): New function.
  9473. (receivedAction): Added the handling of fast extension.
  9474. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  9475. (send): Removed.
  9476. (getMessage): New function.
  9477. (getMessageLength): New function.
  9478. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  9479. (msg): New variable.
  9480. (sendPredicate): New function.
  9481. (onSendComplete): New function.
  9482. (create): New function.
  9483. (getMessage): New function.
  9484. (getMessageLength): New function.
  9485. * src/InterestedMessage.cc
  9486. (create): New function.
  9487. (send): Removed.
  9488. (sendPieceData): New function.
  9489. (getMessage): New function.
  9490. (getMessageLength): New function.
  9491. (onSendComplete): New function.
  9492. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  9493. (msg): New variable.
  9494. (sendPieceData): New function.
  9495. (onSendComplete): New function.
  9496. (create): New function.
  9497. (send): Removed.
  9498. (getMessage): New function.
  9499. (getMessageLength): New function.
  9500. * src/NotInterestedMessage.cc
  9501. (create): New function.
  9502. (send): Removed.
  9503. (sendPredicate): New function.
  9504. (getMessage): New function.
  9505. (getMessageLength): New function.
  9506. (onSendComplete): New function.
  9507. * src/AllowedFastMessage.h: New class.
  9508. * src/AllowedFastMessage.cc: New class.
  9509. * src/RejectMessage.h: New class.
  9510. * src/RejectMessage.cc: New class.
  9511. * src/SuggestPieceMessage.h: New class.
  9512. * src/SuggestPieceMessage.cc: New class.
  9513. * src/HaveAllMessage.h: New class.
  9514. * src/HaveAllMessage.cc: New class.
  9515. * src/HaveNoneMessage.h: New class.
  9516. * src/HaveNoneMessage.cc: New class.
  9517. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  9518. (msg): New variable.
  9519. (reserved): New variable.
  9520. (create): New function.
  9521. (getId): New function.
  9522. (receivedAction): New function.
  9523. (getMessage): New function.
  9524. (getMessageLength): New function.
  9525. (isFastExtensionSupported): New function.
  9526. * src/HandshakeMessage.cc
  9527. (HandshakeMessage): Moved here from HandshakeMessage.h.
  9528. (create): New function.
  9529. (getMessage): New function.
  9530. (getMessageLength): New function.
  9531. (toString): Added the output of reserved field.
  9532. (check): Added const qualifier.
  9533. (isFastExtensionSupported): New function.
  9534. * src/PeerMessageUtil.h
  9535. (createChokeMessage): Removed.
  9536. (createUnchokeMessage): Removed.
  9537. (createInterestedMessage): Removed.
  9538. (createNotInterestedMessage): Removed.
  9539. (createHaveMessage): Removed.
  9540. (createBitfieldMessage): Removed.
  9541. (createRequestMessage): Removed.
  9542. (createCancelMessage): Removed.
  9543. (createPieceMessage): Removed.
  9544. (createPortMessage): Removed.
  9545. (createChokeMessage): Removed.
  9546. (createUnchokeMessage): Removed.
  9547. (createInterestedMessage): Removed.
  9548. (createNotInterestedMessage): Removed.
  9549. (createHaveMessage): Removed.
  9550. (createBitfieldMessage): Removed.
  9551. (createRequestMessage): Removed.
  9552. (createCancelMessage): Removed.
  9553. (createPieceMessage): Removed.
  9554. (createKeepAliveMessage): Removed.
  9555. (createHandshakeMessage): Removed.
  9556. (setIntParam): New function.
  9557. (createPeerMessageString): New function.
  9558. * src/PeerMessageUtil.cc
  9559. (createChokeMessage): Removed.
  9560. (createUnchokeMessage): Removed.
  9561. (createInterestedMessage): Removed.
  9562. (createNotInterestedMessage): Removed.
  9563. (createHaveMessage): Removed.
  9564. (createBitfieldMessage): Removed.
  9565. (createRequestMessage): Removed.
  9566. (createCancelMessage): Removed.
  9567. (createPieceMessage): Removed.
  9568. (createPortMessage): Removed.
  9569. (createRequestMessage): Removed.
  9570. (createCancelMessage): Removed.
  9571. (createPieceMessage): Removed.
  9572. (createHaveMessage): Removed.
  9573. (createChokeMessage): Removed.
  9574. (createUnchokeMessage): Removed.
  9575. (createInterestedMessage): Removed.
  9576. (createNotInterestedMessage): Removed.
  9577. (createBitfieldMessage): Removed.
  9578. (createKeepAliveMessage): Removed.
  9579. (createHandshakeMessage): Removed.
  9580. (setIntParam): New function.
  9581. (createPeerMessageString): New function.
  9582. * src/PeerConnection.h
  9583. (peer): Removed.
  9584. (torrentMan): Removed.
  9585. (createNLengthMessage): Removed.
  9586. (setIntParam): Removed.
  9587. (writeOutgoingMessageLog): Removed all overloaded functions.
  9588. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9589. (sendMessage): New function.
  9590. (sendHandshake): Removed.
  9591. (sendKeepAlive): Removed.
  9592. (sendChoke): Removed.
  9593. (sendUnchoke): Removed.
  9594. (sendInterested): Removed.
  9595. (sendNotInterested): Removed.
  9596. (sendHave): Removed.
  9597. (sendBitfield): Removed.
  9598. (sendRequest): Removed.
  9599. (sendPiece): Removed.
  9600. (sendPieceHeader): Removed.
  9601. (sendPieceData): Removed.
  9602. (sendCancel): Removed.
  9603. (getPeer): Removed.
  9604. * src/PeerConnection.cc
  9605. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9606. (sendHandshake): Removed.
  9607. (sendKeepAlive): Removed.
  9608. (createNLengthMessage): Removed.
  9609. (setIntParam): Removed.
  9610. (writeOutgoingMessageLog): Removed all overloaded functions.
  9611. (sendChoke): Removed.
  9612. (sendUnchoke): Removed.
  9613. (sendInterested): Removed.
  9614. (sendNotInterested): Removed.
  9615. (sendHave): Removed.
  9616. (sendBitfield): Removed.
  9617. (sendRequest): Removed.
  9618. (sendPiece): Removed.
  9619. (sendPieceHeader): Removed.
  9620. (sendPieceData): Removed.
  9621. (sendMessage): New function.
  9622. (sendCancel): Removed.
  9623. * src/PeerInteractionCommand.cc
  9624. (PeerInteractionCommand): Call setUploadLimit.
  9625. (executeInternal): Call setUploadLimit.
  9626. Added the handling of "inProgress" state of handshake message.
  9627. Call sendBitfield() or sendAllowdFast() instead of deprecated
  9628. sendNow().
  9629. (keepAlive): Call addMessage and sendMessage instead of deprecated
  9630. sendNow().
  9631. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  9632. * src/TorrentMan.h
  9633. (PEER_ID_LENGTH): New definition.
  9634. (hasAllPieces): New function.
  9635. * src/TorrentMan.cc
  9636. (getMissingPiece): Added the handling of fast extension.
  9637. (cancelPiece): Call updatePiece().
  9638. (hasAllPieces): New function.
  9639. * src/PeerInteraction.h
  9640. (fastSet): New variable.
  9641. (getNewPieceAndSendInterest): Changed the return type to void.
  9642. (send): Renamed as sendMessages.
  9643. (deleteAllRequestSlot): Removed.
  9644. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9645. (cancelAllRequest): Removed all overloaded functions.
  9646. (deleteAllRequestSlot): Removed.
  9647. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9648. (rejectPieceMessageInQueue): New function.
  9649. (rejectAllPieceMessageInQueue): New function.
  9650. (onChoked): New function.
  9651. (isSendingMessageInProgress): New function.
  9652. (getCorrespondingRequestSlot): Changed its arguments.
  9653. (isInFastSet): New function.
  9654. (addFastSetIndex): New function.
  9655. (addRequests): New function.
  9656. (sendNow): Removed.
  9657. (trySendNow): Removed.
  9658. (sendBitfield): New function.
  9659. (sendAllowdFast): New function.
  9660. (createHaveAllMessage): New function.
  9661. (createHaveNoneMessage): New function.
  9662. (createRejectMessage): New function.
  9663. (createAllowedFastMessage): New function.
  9664. * src/PeerInteraction.cc
  9665. (send): Renamed as sendMessages.
  9666. (sendMessages): New function.
  9667. (MsgPushBack): New class.
  9668. (isSendingMessageInProgress): New function.
  9669. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9670. (rejectAllPieceMessageInQueue): New function.
  9671. Added the handling of fast extension.
  9672. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9673. (rejectPieceMessageInQueue): New function.
  9674. Added the handling of fast extension.
  9675. (deleteRequestSlot): Replaced for loop with std::find.
  9676. (onChoked): New function.
  9677. (deleteAllRequestSlot): Removed.
  9678. (abortPiece): Rewirtten.
  9679. (deleteTimeoutRequestSlot): Updated log messages.
  9680. (getCorrespondingRequestSlot): Changed its arguments.
  9681. (cancelAllRequest): Removed all overloaded functions.
  9682. (receiveHandshake): Added the check to see whether an incoming peer
  9683. supports fast extension.
  9684. (createHandshakeMessage): Use HandshakeMessage::create instead of
  9685. PeerMessageUtil.
  9686. (createPeerMessage): Use create() of each message class instead of
  9687. PeerMessageUtil.
  9688. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  9689. AllowedFastMessage were added.
  9690. (getNewPieceAndSendInterest): Changed its return value type to void.
  9691. Added the handling of fast extension.
  9692. (addRequests): New function.
  9693. (sendNow): Removed.
  9694. (sendHandshake): Rewritten.
  9695. (trySendNow): Removed.
  9696. (sendBitfield): New function.
  9697. (sendAllowdFast): New function.
  9698. (isInFastSet): New function.
  9699. (addFastSetIndex): New function.
  9700. (createRequestMessage): Use RequestMessage::create instead of
  9701. PeerMessageUtil.
  9702. (createCancelMessage): Use CancelMessage::create instead of
  9703. PeerMessageUtil.
  9704. (createPieceMessage): Use PieceMessage::create instead of
  9705. PeerMessageUtil.
  9706. (createHaveMessage): Use HaveMessage::create instead of
  9707. PeerMessageUtil.
  9708. (createChokeMessage): Use ChokeMessage::create instead of
  9709. PeerMessageUtil.
  9710. (createUnchokeMessage): Use UnchokeMessage::create instead of
  9711. PeerMessageUtil.
  9712. (createInterestedMessage): Use InterestedMessage::create instead of
  9713. PeerMessageUtil.
  9714. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  9715. of PeerMessageUtil.
  9716. (createBitfieldMessage): Use BitfieldMessage::create instead of
  9717. PeerMessageUtil.
  9718. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  9719. PeerMessageUtil.
  9720. (createHaveAllMessage): New function.
  9721. (createHaveNoneMessage): New function.
  9722. (createRejectMessage): New function.
  9723. (createAllowedFastMessage: New function.
  9724. * src/Util.h
  9725. (sha1Sum): New function.
  9726. (computeFastSet): New function.
  9727. * src/Util.cc
  9728. (sha1Sum): New function.
  9729. (computeFastSet): New function.
  9730. * src/Peer.h
  9731. (fastExtensionEnabled): New variable.
  9732. (fastSet): New variable.
  9733. (setAllBitfield): New function.
  9734. (setFastExtensionEnabled): New function.
  9735. (isFastExtensionEnabled): New function.
  9736. (addFastSetIndex): New function.
  9737. (getFastSet): New function.
  9738. (isInFastSet): New function.
  9739. (countFastSet): New function.
  9740. * src/Peer.cc
  9741. (isInFastSet): New function.
  9742. (addFastSetIndex): New function.
  9743. (setAllBitfield): New function.
  9744. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  9745. sockets.
  9746. * src/PeerAbstractCommand.cc
  9747. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  9748. and uploadLimit.
  9749. (execute): Changed the procedure of checking sockets. The upload speed
  9750. checking were added.
  9751. (setUploadLimit): New function.
  9752. (setUploadLimitCheck): New function.
  9753. * src/PeerAbstractCommand.h
  9754. (setUploadLimit): New function.
  9755. (setUploadLimitCheck): New function.
  9756. (uploadLimit): New variable.
  9757. (uploadLimitCheck): New variable.
  9758. To contact a tracker regularly:
  9759. * src/TrackerWatcherCommand.h (interval): New variable.
  9760. (checkPoint): New variable.
  9761. (TrackerWatcherCommand): Added interval argument.
  9762. * src/TrackerWatcherCommand.cc
  9763. (TrackerWatcherCommand): Initialized checkPoint.
  9764. (execute): Now a tracker is contacted in every specified period.
  9765. If peer list is not needed, send request with numwant=0.
  9766. * src/TrackerUpdateCommand.cc
  9767. (execute): Updated log messages.
  9768. * src/DownloadEngine.cc
  9769. (~DownloadEngine): Removed two asserts.
  9770. (waitData): Uncommented wfds. May be a bug fix.
  9771. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. * src/PeerInteractionCommand.h
  9773. (checkInactiveConnection): Removed.
  9774. * src/PeerInteractionCommand.cc
  9775. (executeInternal): Removed following function calls:
  9776. detectMessageFlooding(), checkLongTimePeerChoking and
  9777. checkInactiveConnection().
  9778. (checkInactiveConnection): Removed.
  9779. (detectMessageFlooding): Removed function call to
  9780. checkInactiveConnection().
  9781. * src/PeerMessageUtil.h
  9782. (createChokeMessage): New function. Overload.
  9783. (createUnchokeMessage): New function. Overload.
  9784. (createInterestedMessage): New function. Overload.
  9785. (createNotInterestedMessage): New function. Overload.
  9786. (createHaveMessage): New function. Overload.
  9787. (createBitfieldMessage): New function. Overload.
  9788. (createRequestMessage): New function. Overload.
  9789. (createCancelMessage): New function. Overload.
  9790. (createPieceMessage): New function. Overload.
  9791. (createKeepAliveMessage): New function. Overload.
  9792. * src/PeerMessageUtil.cc
  9793. (createChokeMessage): New function. Overload.
  9794. (createUnchokeMessage): New function. Overload.
  9795. (createInterestedMessage): New function. Overload.
  9796. (createNotInterestedMessage): New function. Overload.
  9797. (createHaveMessage): New function. Overload.
  9798. (createBitfieldMessage): New function. Overload.
  9799. (createRequestMessage): New function. Overload.
  9800. (createCancelMessage): New function. Overload.
  9801. (createPieceMessage): New function. Overload.
  9802. (createKeepAliveMessage): New function. Overload.
  9803. * src/SendMessageQueue.cc
  9804. (createRequestMessage): Use PeerMessageUtil.
  9805. (createCancelMessage): Use PeerMessageUtil.
  9806. (createPieceMessage): Use PeerMessageUtil.
  9807. (createHaveMessage): Use PeerMessageUtil.
  9808. (createChokeMessage): Use PeerMessageUtil.
  9809. (createUnchokeMessage): Use PeerMessageUtil.
  9810. (createInterestedMessage): Use PeerMessageUtil.
  9811. (createNotInterestedMessage): Use PeerMessageUtil.
  9812. (createBitfieldMessage): Use PeerMessageUtil.
  9813. (createKeepAliveMessage): Use PeerMessageUtil.
  9814. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  9815. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  9816. * src/PeerInteraction.h: New class.
  9817. * src/PeerInteraction.cc: New class.
  9818. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9819. Each peer message has its own class.
  9820. * src/PendingMessages.h: Removed.
  9821. * src/PendingMessages.cc: Removed. The sending process was moved to
  9822. each message class.
  9823. * src/RequestSlotMan.h: Removed.
  9824. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  9825. SendMessageQueue.
  9826. * src/RequestMessage.h: New class.
  9827. * src/RequestMessage.cc: New class.
  9828. * src/CancelMessage.h: New class.
  9829. * src/CancelMessage.cc: New class.
  9830. * src/BitfieldMessage.h: New class.
  9831. * src/BitfieldMessage.cc: New class.
  9832. * src/ChokeMessage.h: New class.
  9833. * src/ChokeMessage.cc: New class.
  9834. * src/KeepAliveMessage.h: New class.
  9835. * src/KeepAliveMessage.cc: New class.
  9836. * src/PortMessage.h: New class.
  9837. * src/UnchokeMessage.h: New class.
  9838. * src/UnchokeMessage.cc: New class.
  9839. * src/PieceMessage.h: New class.
  9840. * src/PieceMessage.cc: New class.
  9841. * src/HaveMessage.h: New class.
  9842. * src/HaveMessage.cc: New class.
  9843. * src/BitfieldMessage.h: New class.
  9844. * src/BitfieldMessage.cc: New class.
  9845. * src/NotInterestedMessage.h: New class.
  9846. * src/NotInterestedMessage.cc: New class.
  9847. * src/InterestedMessage.h: New class.
  9848. * src/InterestedMessage.cc: New class.
  9849. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  9850. (getSendMessageQueue): New function.
  9851. (setSendMessageQueue): New function.
  9852. * src/HandshakeMessage.cc: New class.
  9853. * src/PeerConnection.h (receiveMessage): Changed return value and
  9854. arguments.
  9855. (receiveHandshake): Changed return value and arguments.
  9856. * src/PeerConnection.cc (receiveMessage): Do not create message class
  9857. here.
  9858. (receiveHandshake): Do not create handshake class here.
  9859. * src/PeerInteractionCommand.h (peerConnection): Removed.
  9860. (piece): Removed.
  9861. (syncPiece): Removed.
  9862. (sendInterest): Removed.
  9863. (sendMessages): Removed.
  9864. (createRequestPendingMessage): Removed.
  9865. (checkPieceHash): Removed.
  9866. (erasePieceOnDisk): Removed.
  9867. (getNewPieceAndSendInterest): Removed.
  9868. (onGotNewPice): Removed.
  9869. (onGotWrongPiece): Removed.
  9870. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  9871. Removed peerConnection, piece.
  9872. (~PeerInteractionCommand): Removed peerConnection.
  9873. (executeInternal): Use sendMessageQueue instead of peerConnection.
  9874. (syncPiece): Moved to SendMessageQueue.
  9875. (decideChoking): Removed PendingMessage.
  9876. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  9877. The action after receiving peer message was moved to each message
  9878. class.
  9879. (onGotNewPice): Moved to SendMessageQueue.
  9880. (onGotWrongPiece): Moved to SendMessageQueue.
  9881. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  9882. (sendInterest): Moved to SendMessageQueue.
  9883. (createRequestPendingMessage): Removed.
  9884. (sendMessages): Moved to SendMessageQueue.
  9885. (onAbort): Use SendMessageQueue::abortPiece()
  9886. (keepAlive): Use sendMessageQueue instead of peerConnection.
  9887. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  9888. (checkPieceHash): Moved to SendMessageQueue.
  9889. (erasePieceOnDisk): Moved to SendMessageQueue.
  9890. * src/PeerMessageUtil.h
  9891. (createBitfieldMessage): Removed.
  9892. (createHaveMessage): Changed return value and arguments.
  9893. (createBitfieldMessage): Changed return value and arguments.
  9894. (createRequestCancelMessage): Removed.
  9895. (createPieceMessage): Changed return value and arguments.
  9896. (getShortIntParam): New function.
  9897. (checkIndex): Changed arguments.
  9898. (checkBegin): Changed arguments.
  9899. (checkLength): Changed arguments.
  9900. (checkPieceOffset): Removed.
  9901. (checkRange): New function.
  9902. (checkBitfield): Changed arguments.
  9903. (createPeerMessage): Removed.
  9904. (checkIntegrity): Removed.
  9905. (createHandshakeMessage): Changed arguments.
  9906. (createChokeMessage): New function.
  9907. (createUnchokeMessage): New function.
  9908. (createInterestedMessage): New function.
  9909. (createNotInterestedMessage): New function.
  9910. (createRequestMessage): New function.
  9911. (createCancelMessage): New function.
  9912. (createPortMessage): New function.
  9913. * src/PeerMessageUtil.cc
  9914. (createBitfieldMessage): Removed.
  9915. (createHaveMessage): Changed return value and arguments.
  9916. (createBitfieldMessage): Changed return value and arguments.
  9917. (createRequestCancelMessage): Removed.
  9918. (createPieceMessage): Changed return value and arguments.
  9919. (getShortIntParam): New function.
  9920. (checkIndex): Changed arguments.
  9921. (checkBegin): Changed arguments.
  9922. (checkLength): Changed arguments.
  9923. (checkPieceOffset): Removed.
  9924. (checkRange): New function.
  9925. (checkBitfield): Changed arguments.
  9926. (createPeerMessage): Removed.
  9927. (checkIntegrity): Removed.
  9928. (createHandshakeMessage): Changed arguments.
  9929. (createChokeMessage): New function.
  9930. (createUnchokeMessage): New function.
  9931. (createInterestedMessage): New function.
  9932. (createNotInterestedMessage): New function.
  9933. (createRequestMessage): New function.
  9934. (createCancelMessage): New function.
  9935. (createPortMessage): New function.
  9936. * src/PeerMessage.h
  9937. (id): Removed.
  9938. (index): Removed.
  9939. (begin): Removed.
  9940. (length): Removed.
  9941. (bitfield): Removed.
  9942. (bitfieldLength): Removed.
  9943. (block): Removed.
  9944. (blockLength): Removed.
  9945. (inProgress): New variable.
  9946. (cuid): New variable.
  9947. (peer): New variable.
  9948. (sendMessageQueue): New variable.
  9949. (logger): New variable.
  9950. (setBitfield): Removed.
  9951. (getBitfield): Removed.
  9952. (setBlock): Removed.
  9953. (getBlock): Removed.
  9954. (getBitfieldLength): Removed.
  9955. (getBlockLength): Removed.
  9956. (isInProgress): New function.
  9957. (toString): Made pure virtual.
  9958. (check): New function.
  9959. (send): New function.
  9960. (receivedAction): New function.
  9961. (getId): Made pure virtual.
  9962. (setId): Removed.
  9963. (getIndex): Removed.
  9964. (setIndex): Removed.
  9965. (getBegin): Removed.
  9966. (setBegin): Removed.
  9967. (getLength): Removed.
  9968. (setLength): Removed.
  9969. (getCuid): New function.
  9970. (setCuid): New function.
  9971. (getPeer): New function.
  9972. (setPeer): New function.
  9973. (getSendMessageQueue): New function.
  9974. (setSendMessageQueue): New function.
  9975. (ID): Removed.
  9976. * src/PeerMessage.cc
  9977. (setBitfield): Removed.
  9978. (setBlock): Removed.
  9979. (toString): Removed.
  9980. * src/TorrentMan.h
  9981. (getPieceLength): New function.
  9982. (getPieceLength): New function.
  9983. * src/SendMessageQueue.h
  9984. (REQUEST_TIME_OUT): New definition.
  9985. (RequestSlots): New definition.
  9986. (MessageQueue): New definition.
  9987. (requestSlotMan): Removed.
  9988. (pendingMessages): Removed.
  9989. (requestSlots): New variable.
  9990. (messageQueue): New variable.
  9991. (torrentMan): New variable.
  9992. (peerConnection): New variable.
  9993. (peer): New variable.
  9994. (piece): New variable.
  9995. (getNewPieceAndSendInterest): New function.
  9996. (createPeerMessage): New function.
  9997. (createHandshakeMessage): New function.
  9998. (send): Made private.
  9999. (setPeerMessageCommonProperty): New function.
  10000. (deleteAllRequestSlot): New function.
  10001. (deleteRequestMessageInQueue): New function.
  10002. (cancelAllRequest): Made private.
  10003. (cancelAllRequest): Made private.
  10004. (countRequestSlot): Made private.
  10005. (addPendingMessage): Removed.
  10006. (deletePendingPieceMessage): Removed.
  10007. (deletePendingRequestMessage): Removed.
  10008. (addMessage): New function.
  10009. (deletePieceMessageInQueue): New function.
  10010. (deleteTimeoutRequestSlot): Changed argument.
  10011. (deleteCompletedRequestSlot): Changed argument.
  10012. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10013. (getCorrespondingRequestSlot): New function.
  10014. (countPendingMessage): Removed.
  10015. (countMessageInQueue): New function.
  10016. (getTorrentMan): New function.
  10017. (getPeerConnection): New function.
  10018. (hasDownloadPiece): New function.
  10019. (getDownloadPiece): New function.
  10020. (setDownloadPiece): New function.
  10021. (syncPiece): New function.
  10022. (sendMessages): New function.
  10023. (sendNow): New function.
  10024. (trySendNow): New function.
  10025. (abortPiece): New function.
  10026. (sendHandshake): New function.
  10027. (receiveMessage): New function.
  10028. (receiveHandshake): New function.
  10029. (createRequestMessage): New function.
  10030. (createCancelMessage): New function.
  10031. (createPieceMessage): New function.
  10032. (createHaveMessage): New function.
  10033. (createChokeMessage): New function.
  10034. (createUnchokeMessage): New function.
  10035. (createInterestedMessage): New function.
  10036. (createNotInterestedMessage): New function.
  10037. (createBitfieldMessage): New function.
  10038. (createKeepAliveMessage): New function.
  10039. * src/SendMessageQueue.cc
  10040. (SendMessageQueue): Removed requestSlotMan.
  10041. Instantiated peerConnection here.
  10042. (~SendMessageQueue): Removed requestSlotMan.
  10043. Added deletion of peerConnection and the contents of messageQueue.
  10044. (send): Updated according to the change of messageQueue.
  10045. (addPendingMessage): Renamed to addMessage.
  10046. (addMessage): New function.
  10047. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10048. (deletePieceMessageInQueue): New function.
  10049. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10050. (deleteRequestMessageInQueue): New function.
  10051. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10052. here.
  10053. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10054. (...) was moved here.
  10055. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10056. moved here.
  10057. (deleteCompletedRequestSlot):
  10058. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10059. (getCorrespondingRequestSlot):
  10060. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10061. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10062. (countPendingMessage): Renamed to countMessageInQueue.
  10063. (countMessageInQueue): New function.
  10064. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10065. (receiveHandshake): New function.
  10066. (createHandshakeMessage): New function.
  10067. (receiveMessage): New function.
  10068. (createPeerMessage): New function.
  10069. (syncPiece): New function.
  10070. (getNewPieceAndSendInterest): New function.
  10071. (sendMessages): New function.
  10072. (sendNow): New function.
  10073. (trySendNow): New function.
  10074. (sendHandshake): New function.
  10075. (abortPiece): New function.
  10076. (getDownloadPiece): New function.
  10077. (getPeerMessageCommonProperty): New function.
  10078. (createRequestMessage): New function.
  10079. (createCancelMessage): New function.
  10080. (createPieceMessage): New function.
  10081. (createHaveMessage): New function.
  10082. (createChokeMessage): New function.
  10083. (createUnchokeMessage): New function.
  10084. (createInterestedMessage): New function.
  10085. (createNotInterestedMessage): New function.
  10086. (createBitfieldMessage): New function.
  10087. (createKeepAliveMessage): New function.
  10088. To add simple Content-Disposition support:
  10089. * src/HttpResponseCommand.h (determinFilename): New function.
  10090. * src/HttpResponseCommand.cc (executeInternal):
  10091. Use determinFilename(headers) instead of req->getFile() when comparing
  10092. filename.
  10093. (determinFilename): New function.
  10094. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10095. req->getFile().
  10096. (handleOtherEncoding): Use determinFilename(headers) instead of
  10097. req->getFile().
  10098. * src/Util.h (getContentDispositionFilename): New function.
  10099. * src/Util.cc (getContentDispositionFilename): New function.
  10100. * src/LogFactory.h (release): New function.
  10101. * src/LogFactory.cc (release): New function.
  10102. To fix a bug that causes out-of-bound exception when HTTP status
  10103. line is wrong:
  10104. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10105. size.
  10106. * src/common.h (Deleter): New class.
  10107. * src/SegmentMan.cc
  10108. (~SegmentMan): Added deletion of splitter and diskWriter.
  10109. * src/DownloadEngine.h
  10110. (Commands): Use deque.
  10111. (clearQueue): New function.
  10112. * src/DownloadEngine.cc
  10113. (~DownloadEngine): Added deletion of segmentMan.
  10114. (cleanQueue): New function.
  10115. * src/TorrentDownloadEngine.h
  10116. (TorrentDownloadEngine): The implementation was moved to
  10117. TorrentDownloadEngine.cc.
  10118. (~TorrentDownloadEngine): The implementation was moved to
  10119. TorrentDownloadEngine.cc.
  10120. * src/TorrentDownloadEngine.cc
  10121. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10122. * src/main.cc
  10123. (clearRequest): Removed.
  10124. (handler): Added deletion of e.
  10125. (torrentHandler): Added deletion of te.
  10126. (main): Do not share splitter.
  10127. Use Deleter instead of clearRequest.
  10128. Deletion of classes were updated.
  10129. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10130. * src/main.cc (main): Fixed typo.
  10131. * src/message.h: Fixed typo.
  10132. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10133. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10134. To add --select-file command-line option:
  10135. * src/Util.cc
  10136. (unfoldRange): New function.
  10137. (getNum): New function.
  10138. (unfoldSubRange): New function
  10139. * src/main.cc
  10140. (showUsage): Added help message.
  10141. (main): Added --select-file command-line option. Updated the layout of
  10142. file listing.
  10143. * src/common.h
  10144. (Integers): New definition.
  10145. * src/SocketCore.cc
  10146. (writeData): Removed timeout argument.
  10147. (readData): Removed timeout argument.
  10148. (peekData): Removed timeout argument.
  10149. * src/Socket.cc
  10150. (writeData): Removed timeout argument.
  10151. (readData): Removed timeout argument.
  10152. (peekData): Removed timeout argument.
  10153. * Release 0.4.1
  10154. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. To deploy upload rate based choking algorithm:
  10156. * src/PeerInteractionCommand.cc
  10157. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10158. peer currently used.
  10159. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10160. download completes. Simplified.
  10161. (receiveMessage): Updated.
  10162. * src/TorrentMan.h
  10163. (activePeers): New variable.
  10164. (addActivePeer): New function.
  10165. (getActivePeers): New function.
  10166. (deleteActivePeer): New function.
  10167. * src/TorrentMan.cc
  10168. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10169. * src/PeerAbstractCommand.cc
  10170. (onAbort): Use peer->resetStatus().
  10171. * src/main.cc
  10172. (PeerChokeCommand.h): Included.
  10173. (main): Added the instance of ChokingCommand to the command queue.
  10174. * src/Peer.h
  10175. (amChoking): Renamed from amChocking
  10176. (chokingRequired): New variable.
  10177. (optUnchoking): New variable.
  10178. (deltaUpload): New variable.
  10179. (deltaDownload): New variable.
  10180. (addDeltaUpload): New function.
  10181. (resetDeltaUpload): New function.
  10182. (addDeltaDownload): New function.
  10183. (resetDeltaDownload): New function.
  10184. (addPeerUpload): Added a call to addDeltaUpload.
  10185. (addPeerDownload): Added a call to addDeltaDownload.
  10186. * src/Peer.cc
  10187. (shouldBeChoking): Renamed from shouldChoke.
  10188. (resetStatus): New function.
  10189. * src/PeerChokeCommand.h: New class.
  10190. * src/PeerChokeCommand.cc: New class.
  10191. To add lazy upload speed limiter:
  10192. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  10193. statistics calculation to TorrentDownloadEngine.
  10194. * src/TorrentConsoleDownloadEngine.cc
  10195. (sendStatistics): Renamed from printStatistics.
  10196. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  10197. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  10198. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  10199. * src/TorrentDownloadEngine.h: Added the variables for statistics
  10200. calculation.
  10201. (sendStatistics): New function as pure virtual function.
  10202. (getUploadSpeed): New function.
  10203. * src/TorrentDownloadEngine.cc
  10204. (initStatistics): New function.
  10205. (calculateSpeed): New function.
  10206. (calculateStatistics): New function.
  10207. * src/SendMessageQueue.h
  10208. (uploadLength): New variable.
  10209. (send): Added an argument.
  10210. (setUploadLimit): New function.
  10211. (getUploadLimit): New function.
  10212. * src/SendMessageQueue.cc
  10213. (send): Added upload speed limiter.
  10214. * src/prefs.h
  10215. (PREF_UPLOAD_LIMIT): New definition.
  10216. * src/PeerInteractionCommand.cc
  10217. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10218. * src/main.cc
  10219. (main): Added --upload-limit option
  10220. For bug fixes:
  10221. * src/main.cc
  10222. (showUsage): Corrected --listen-port help
  10223. Other changes:
  10224. * src/TorrentMan.cc
  10225. (getPeer): Return nullPeer if connection is grather than
  10226. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10227. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10228. To add some useful information to the exception message:
  10229. * src/SocketCore.cc : Updated messages.
  10230. * src/SegmentMan.cc :
  10231. * src/TorrentMan.cc : Updated messages.
  10232. * src/MultiDiskWriter.cc : Updated messages.
  10233. * src/Util.cc : Updated messages.
  10234. * src/AbstractDiskWriter.cc : Updated messages.
  10235. * src/PreAllocationDiskWriter.cc : Updated messages.
  10236. * src/message.cc : Added new messages. Updated some messages.
  10237. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10238. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10239. Updated threshold from 30 to 15.
  10240. * src/AbstractDiskWriter.h (filename): New variable.
  10241. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10242. (createFile): Assigned filename.
  10243. * src/main.cc: Updated the help message for http-auth-scheme.
  10244. * Release 0.4.0
  10245. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. To add TrackerUpdateCommand with which replaces
  10247. CompactTrackerResponseProcessor:
  10248. * src/TrackerWatcherCommand.h (req): Removed.
  10249. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10250. if the number of peer connections are less than 30.
  10251. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10252. * src/SegmentMan.h (diskWriter): New function.
  10253. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10254. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10255. (main): Use TrackerUpdateCommand.
  10256. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10257. (req): New variable.
  10258. (setTrackerResponseProcessor): Removed.
  10259. (getTrackerResponseProcessor): Removed.
  10260. (processTrackerResponse): Removed.
  10261. * src/DownloadEngine.h (diskWriter): Removed.
  10262. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10263. to torrentMan->processTrackerResponse().
  10264. To add Util::expandBuffer:
  10265. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10266. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10267. * src/Util.h (expandBuffer): New function.
  10268. To fix the bug that causes segmentation fault when "-l ." is specified
  10269. in command-line option:
  10270. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10271. (openFile): New function.
  10272. (closeFile): New function.
  10273. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10274. (~SimpleLogger): Call closeFile();
  10275. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10276. * src/main.cc (main): Added a check to see logger is configured
  10277. properly.
  10278. To enable HTTP authentication without specifying "--http-auth-scheme"
  10279. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10280. * src/HttpConnection.cc (createRequest): Send Authorization header
  10281. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10282. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10283. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10284. * src/Peer.cc (shouldChoke): Updated algorithm.
  10285. * src/message.h (EX_AUTH_FAILED): New definition.
  10286. (EX_FILE_OPEN): New definition.
  10287. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10288. if status == 401.
  10289. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10290. if req->isTorrent == true.
  10291. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10292. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10293. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10294. (createFile): Updated message.
  10295. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10296. To add a readout of estimated remaining time to normal HTTP/FTP
  10297. downloads:
  10298. * src/ConsoleDownloadEngine.h (startup): New variable.
  10299. (startupLength): New variable.
  10300. (isStartupLengthSet): New variable.
  10301. (avgSpeed): New variable.
  10302. (eta): New variable.
  10303. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10304. estimated remaining time.
  10305. (initStatistics): Initialized newly added variables.
  10306. (calculateStatistics): Calculate average speed and estimated remaining
  10307. time.
  10308. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10309. * src/TrackerDownloadCommand.h: Removed.
  10310. * src/TrackerDownloadCommand.cc: Removed.
  10311. * src/TrackerInitCommand.h: Removed.
  10312. * src/TrackerInitCommand.cc: Removed.
  10313. * src/TrackerUpdateCommand.h: Removed.
  10314. * src/TrackerUpdateCommand.cc: Removed.
  10315. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10316. url written in TrackerInitCommand was moved here. Do not create
  10317. tracker request command if torrentMan->trackers != 0.
  10318. * src/CompactTrackerResponseProcessor.h: New class.
  10319. * src/CompactTrackerResponseProcessor.cc: New class.
  10320. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10321. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10322. Decoupled TorrentDownloadEngine from this.
  10323. * src/SegmentMan.h (init): New function.
  10324. * src/SegmentMan.cc (init): New function.
  10325. * src/TorrentMan.h (responseProcessor): New variable.
  10326. (trackers): New variable.
  10327. (setTrackerResponseProcessor): New function.
  10328. (getTrackerResponseProcessor): New function.
  10329. (processTrackerResponse): New function.
  10330. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10331. (processTrackerResponse): New function.
  10332. * src/main.cc (main): Use ByteArrayDiskWriter and
  10333. CompactTrackerResponseProcessor.
  10334. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10335. processTrackerResponse().
  10336. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10337. readout.
  10338. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10339. which indicates download has completed.
  10340. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10341. (closeFile): fd >= 0, not fd > 0
  10342. * src/main.cc (main): Added short cut for show-files.
  10343. Added short cut for torrent-file.
  10344. Added new command-line option listen-port.
  10345. Updated i18n messages.
  10346. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10347. To add LogFactory which creates singleton logger:
  10348. * src/LogFactory.h: New class.
  10349. * src/LogFactory.cc: New class.
  10350. * src/Command.h (logger): New variable.
  10351. (Constructor): Use LogFactory.
  10352. * src/AbstractCommand.cc: Use Command::logger
  10353. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10354. Use LogFactory.
  10355. * src/SegmentSplitter.h : Made logger protected.
  10356. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10357. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10358. * src/DownloadEngine.h : Made logger protected.
  10359. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10360. * src/PeerInteractionCommand.cc : Use Command::logger.
  10361. * src/HttpResponseCommand.cc : Use Command::logger.
  10362. * src/SegmentMan.h : Made logger private.
  10363. * src/TorrentMan.h : Made logger private.
  10364. * src/TorrentMan.cc : Use LogFactory.
  10365. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10366. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10367. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10368. Use LogFactory.
  10369. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10370. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10371. Use LogFactory.
  10372. * src/DownloadCommand.cc : Use Command::logger.
  10373. * src/PeerAbstractCommand.cc : Use Command::logger.
  10374. * src/PeerListenCommand.cc : Use Command::logger.
  10375. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10376. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10377. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10378. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10379. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10380. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10381. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10382. Use LogFactory.
  10383. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10384. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10385. Use LogFactory.
  10386. * src/main.cc (main): Use LogFactory.
  10387. * src/DiskAdaptor.h (logger): New variable.
  10388. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10389. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10390. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10391. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10392. parameter to a tracker request.
  10393. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10394. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10395. * src/main.cc (setSignalHander): New function.
  10396. (main): Added a handler for SIGTERM.
  10397. (handler): Updated message.
  10398. (torrentHandler): Updated message.
  10399. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. * src/TorrentConsoleDownloadEngine.cc
  10401. (onPartialDownloadingCompletes): Renamed as
  10402. onSelectiveDownloadingCompletes.
  10403. (onSelectiveDownloadingCompletes): Updated message.
  10404. To add DiskAdaptor which abstract DiskWriter family:
  10405. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10406. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10407. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10408. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10409. MultiDiskAdaptor.h.
  10410. (readFileEntry): Changed its arguments.
  10411. (setup): setupDiskWriter is merged into this function.
  10412. (setupDiskWriter): Removed.
  10413. (setFileFilter): New function.
  10414. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10415. made in readFileEntry.
  10416. (getFilePath): Removed.
  10417. (getTempFilePath): Removed.
  10418. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10419. (fixFilename): Removed.
  10420. (copySingleFile): Removed.
  10421. (splitMultiFile): Removed.
  10422. (deleteTempFile): Removed.
  10423. (setFileEntriesToDownload): Removed.
  10424. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10425. (isSelectiveDownloadingMode): New function.
  10426. (setAllMultiFileRequestedState): Removed.
  10427. (finishPartialDownloadingMode): Renamed as
  10428. finishSelectiveDownloadingMode.
  10429. (finishSelectiveDownloadingMode): New function.
  10430. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10431. (getSelectedTotalLength): New function.
  10432. (onDownloadComplete): Use diskAdaptor.
  10433. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10434. (Range): Removed.
  10435. (setMultiFileEntries): Renamed as setFileEntries.
  10436. (setFileEntries): New function.
  10437. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  10438. (pieceLength): New variable.
  10439. * src/main.cc (printDownloadCompeleteMessage): New function.
  10440. (torrentHandler): Use diskAdaptor instead of diskWriter.
  10441. (main): Renamed torrent-show-files to show-files.
  10442. Rewritten file contents listing.
  10443. * src/TorrentMan.h (FileEntry): Removed.
  10444. (multiFileTopDir): Removed.
  10445. (multiFileEntries): Removed.
  10446. (diskWriter): Removed.
  10447. (diskAdaptor): New variable.
  10448. * src/DefaultDiskWriter.h (totalLength): New variable.
  10449. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  10450. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  10451. diskWriter.
  10452. * src/TorrentConsoleDownloadEngine.h
  10453. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  10454. (partialTotalLength): Renamed as selectedTotalLength.
  10455. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  10456. openExistingFile, otherwise call initAndOpenFile.
  10457. (closeFile): fd > 0, not fd != 0.
  10458. * src/DirectDiskAdaptor.h: New class.
  10459. * src/DirectDiskAdaptor.cc: New class.
  10460. * src/MultiDiskAdaptor.h: New class.
  10461. * src/MultiDiskAdaptor.cc: New class.
  10462. * src/CopyDiskAdaptor.h: New class.
  10463. * src/CopyDiskAdaptor.cc: New class.
  10464. * src/DiskAdaptor.h: New class.
  10465. * src/DiskAdaptor.cc: New class.
  10466. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  10467. (PREF_SHOW_FILES): New definition.
  10468. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10469. To add the ability to download multi torrent into respective files
  10470. directly:
  10471. * src/DiskWriter.h (openFile): New function.
  10472. (seek): Removed.
  10473. * src/MultiDiskWriter.h: New class.
  10474. * src/MultiDiskWriter.cc: New class.
  10475. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  10476. protected.
  10477. (openFile): New function.
  10478. * src/AbstractDiskWriter.cc (openFile): New function.
  10479. * src/prefs.h (V_FALSE): New definition.
  10480. (PREF_DIRECT_FILE_MAPPING): New definition.
  10481. * src/TorrentMan.h (setupDiskWriter): New function.
  10482. (setAllMultiFileRequestedState): New function.
  10483. (onDownloadComplete): New function.
  10484. * src/TorrentMan.cc : Included MultiDiskWriter.h
  10485. (setupDiskWriter): New function.
  10486. (getFilePath): Updated.
  10487. (getTempFilePath): Updated.
  10488. (getSegmentFilePath): Updated.
  10489. (fixFilename): Updated.
  10490. (deleteTempFile): Updated.
  10491. (setAllMultiFileRequestedState): New function.
  10492. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  10493. (finishPartialDownloadingMode): Reset requested flags.
  10494. (onDownloadComplete): New function.
  10495. * src/main.cc: Added --direct-file-mapping option.
  10496. Use TorrentMan::setupDiskWriter().
  10497. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  10498. onDownloadComplete().
  10499. To fix ETA bug:
  10500. * src/Util.h (difftvsec): New function.
  10501. * src/Util.cc (difftvsec): New function.
  10502. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  10503. type of "elapsed" instead of long long int.
  10504. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  10505. The updates of statistics takes place every 1 seconds.
  10506. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  10507. (calculateSpeed): Changed its argument signature.
  10508. * src/PeerMessage.cc (toString): Fixed message.
  10509. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10510. To print ETA:
  10511. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  10512. completion handling when dealing with
  10513. TorrentMan::isPartialDownloadingMode() == true.
  10514. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  10515. New function.
  10516. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  10517. (sessionDownloadLength): New variable.
  10518. (avgSpeed): New variable.
  10519. (eta): New variable.
  10520. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  10521. new variables: eta, avgSpeed, startup.
  10522. (calculateSpeed): Calculate average speed and ETA.
  10523. (printStatistics): Added ETA.
  10524. * src/Util.h (secfmt): New function.
  10525. * src/Util.cc (secfmt): New function.
  10526. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. To detect "keep alive" flooding:
  10528. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  10529. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  10530. variable: keepAliveCount.
  10531. (detectMessageFlooding): Added "keep alive" flooding detection.
  10532. (receiveMessage): Increase keepAliveCount when "keep alive" message
  10533. received.
  10534. To add the ability to download only specified files in multi-file
  10535. torrent:
  10536. * src/BitfieldMan.h (filterBitfield): New variable.
  10537. (filterEnabled): New variable.
  10538. (setFilterBit): New function.
  10539. (enableFilter): New function.
  10540. (disableFilter): New function.
  10541. (isFilterEnabled): New function.
  10542. (getFilteredTotalLength): New function.
  10543. (getCompletedLength): New function.
  10544. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  10545. filterBitfield, filterEnabled.
  10546. (CopyConstructor): Added filterBitfield and filterEnabled.
  10547. (operator==): Added filterBitfield and filterEnabled.
  10548. (Destructor): Added filterBitfield.
  10549. (getMissingIndex): Use filterBitfield.
  10550. (getMissingUnusedIndex): Use filterBitfield.
  10551. (getFirstMissingUnusedIndex): Use filterBitfield.
  10552. (getFirstMissingUnusedIndex): Use filterBitfield.
  10553. (getAllMissingIndexes): Use filterBitfield.
  10554. (countMissingBlock): Use filterBitfield.
  10555. (countBlock): Use filterBitfield.
  10556. (setBitInternal): Added new argument on.
  10557. (setUseBit): Use setBitInternal.
  10558. (unsetUseBit): Use setBitInternal.
  10559. (setBit): Use setBitInternal.
  10560. (unsetBit): Use setBitInternal.
  10561. (isAllBitSet): Use filterBitfield.
  10562. (setFilterBit): New function.
  10563. (addFilter): New function.
  10564. (enableFilter): New function.
  10565. (disableFilter): New function.
  10566. (clearFilter): New function.
  10567. (isFilterEnabled): New function.
  10568. (getFilteredTotalLength): New function.
  10569. (getCompletedLength): New function.
  10570. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  10571. Initalized newly added variables.
  10572. [FileEntry](offset): New variable.
  10573. [FileEntry](extracted): New variable.
  10574. [FileEntry](requested): New variable.
  10575. (readFileEntry): New function.
  10576. (option): New variable.
  10577. (splitMultiFile): Removed const qualifier.
  10578. (fixFilename): Removed const qualifier.
  10579. (readFileEntryFromMetaInfoFile): New function.
  10580. (finishPartialDownloadingMode): New function.
  10581. (isPartialDownloadingMode): New function.
  10582. (setFileEntriesToDownload): New function.
  10583. (getCompletedLength): New function.
  10584. (getPartialTotalLength): New function.
  10585. * src/TorrentMan.cc (readFileEntry): New function.
  10586. (setup): Use readFileEntry. If no-preallocation option is specified,
  10587. use DefaultDiskWriter.
  10588. (readFileEntryFromMetaInfoFile): New function.
  10589. (fixFilename): Removed const qualifier.
  10590. (splitMultiFile): Removed const qualifier.
  10591. (setFileEntriesToDownload): New function.
  10592. (isPartialDownloadingMode): New function.
  10593. (finishPartialDownloadingMode): New function.
  10594. (getCompletedLength): New function.
  10595. (getPartialTotalLength): New function.
  10596. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  10597. New variable.
  10598. (partialTotalLength): New variable.
  10599. (downloadLength): New variable.
  10600. (totalLength): New variable.
  10601. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  10602. Added log.
  10603. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  10604. partialTotalLength, downloadLength, totalLength.
  10605. (calculate): Calculate downloadLength and totalLength.
  10606. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  10607. * src/main.cc (addCommand): Changed argument signature.
  10608. (main): Added new variable: args. Added new option "torrent-show-files"
  10609. "no-preallocation". Usage is not updated yet.
  10610. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  10612. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. Attempt to add the ability to listing file entries in a .torrent file.
  10614. This feature is not yet complete.
  10615. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  10616. * src/TorrentMan.cc (getMultiFileEntries): New function.
  10617. (getName): New function.
  10618. * src/TorrentMan.h (getMultiFileEntries): New function.
  10619. (getName): New function.
  10620. * src/main.cc (main): Use above 2 funtion.
  10621. * Release 0.3.2
  10622. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10623. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  10624. (detectMessageFlooding): Updated threshold value.
  10625. (checkLongTimePeerChoking): Updated timeout value.
  10626. (getNewPieceAndSendInterest): Added debug log.
  10627. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  10628. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  10629. (getPeer): Updated.
  10630. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  10631. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  10632. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  10633. is localhost.
  10634. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  10635. * src/PendingMessage.cc (processMessage): Not to send piece message
  10636. if peer is not interested in the pieces localhost has.
  10637. * src/Peer.cc (shouldChoke): Updated.
  10638. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  10639. * src/Util.cc (isPowerOf): New function.
  10640. * src/Util.h (isPowerOf): New function.
  10641. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  10642. whether or not it is power of 2.
  10643. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. Added new class SendMessageQueue that includes PendingMessages and
  10645. RequestSlotMan.
  10646. * src/SendMessageQueue.h: New class.
  10647. * src/SendMessageQueue.cc: New class.
  10648. * src/PendingMessage.h: Added new member variable blockIndex and its
  10649. accessors.
  10650. (createRequestMessage): Updated.
  10651. * src/PendingMessage.cc (createRequestMessage): Updated.
  10652. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  10653. SendMessageQueue.
  10654. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  10655. (receiveMessage): Updated with SendMessageQueue.
  10656. (deletePendingPieceMessage): Removed.
  10657. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  10658. (sendInterest): Updated with SendMessageQueue.
  10659. (createRequestPendingMessage): Updated with SendMessageQueue.
  10660. (sendMessages): Updated with SendMessageQueue.
  10661. (onAbort): Updated with SendMessageQueue.
  10662. (keepAlive): Updated with SendMessageQueue.
  10663. (beforeSocketCheck): Updated SendMessageQueue.
  10664. * src/PeerInteractionCommand (sendMessages): Shuffle
  10665. missingBLockIndexes before using it.
  10666. Added its own timeout for peer connection.
  10667. * src/PeerAbstractCommand.h: Added member variable timeout and its
  10668. setter.
  10669. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  10670. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10671. Added setTimeout() call.
  10672. (executeInternal): Added setTimeout() call.
  10673. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  10674. Added timeout.
  10675. (isTimeoutDetected): Updated.
  10676. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  10677. option.
  10678. Added *simple* message flooding checker.
  10679. * src/PeerInteractionCommand.cc (executeInternal):
  10680. Added detectMessageFlooding() call.
  10681. (detectMessageFlooding): New function.
  10682. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  10683. (beforeSocketCheck): Added detectMessageFlooding() call.
  10684. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  10685. chokeUnchokeCount, haveCount, detectMessageFlooding().
  10686. Removed deletePendingPieceMessage(), getRequestSlot(),
  10687. deleteRequestSlot(), deleteAllRequestSlot().
  10688. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  10689. Added checkLongTimePeerChoking() call.
  10690. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  10691. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  10692. if duplicate == false.
  10693. The parameter "uploaded" and "downloaded" in the tracker request are
  10694. the size since the client sent the "started" event to the tracker.
  10695. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  10696. uploaded size to preDownloadedSize, preUploadedSize respectively.
  10697. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  10698. getSessionDownloadedSize(), getSessionUploadedSize().
  10699. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  10700. getSessionUploadedSize() instead of getDownloadedSize(),
  10701. getUploadedSize().
  10702. * src/PendingMessage.cc (processMessage): Do not send request message
  10703. if the peer is choking the client.
  10704. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  10705. less than interval.
  10706. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10707. * configure.in: Added gnutls support. Added several CPP macros.
  10708. * m4/openssl.m4: Added.
  10709. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  10710. readData(), peekData(). Added gnutls support.
  10711. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  10712. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  10713. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  10714. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10715. Instead, added a check for whether setup method has executed
  10716. successfully.
  10717. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  10718. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  10719. * src/Makefile.am: Updated.
  10720. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  10721. using whether OpenSSL or gcrypt, depending on the result of configure
  10722. script.
  10723. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  10724. messageDigest.h.
  10725. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  10726. * src/PeerListenCommand.cc: Added log about port binded successfully.
  10727. Fixed memory leak.
  10728. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  10729. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  10730. Removed instantiation of TrackerInitCommand. Instead,
  10731. TrackerWatcherCommand is instantiated and pushed to the command queue.
  10732. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  10733. ENABLE_SSL.
  10734. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  10735. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  10736. If a piece is already acquired by another command, delete the request
  10737. slots for the piece.
  10738. * src/TrackerUpdateCommand.cc (execute):
  10739. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  10740. Added a check whether peer list is null.
  10741. Fixed the bug that causes sending completed event to the tracker
  10742. several times.
  10743. * src/TrackerInitCommand.cc (execute):
  10744. Fixed the bug that causes sending completed event to the tracker
  10745. several times.
  10746. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  10747. by using messageDigest.h.
  10748. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10749. * PeerConnection.cc: Replaced log message "keep-alive" with
  10750. "keep alive".
  10751. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  10752. localhost long time.
  10753. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  10754. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  10755. at most 100 failure entry from the list. If with duplicate = false,
  10756. MAX_PEER_LIST is not checked.
  10757. * PeerListenCommand.cc: Fixed the argument order of log message.
  10758. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10759. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  10760. Added warn().
  10761. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  10762. Implemented warn().
  10763. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  10764. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10765. * Request.h: Added AFTER_COMPLETED event.
  10766. * TorrentDownloadEngine.cc: Prints "Download complete" message
  10767. instead of downloaded size and progress(%) after download completes.
  10768. * PeerInteractionCommand.cc: After download completes, sends unchoke
  10769. message to the peer if it is interested in what localhost has
  10770. downloaded.
  10771. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  10772. destination instead of just renaming it.
  10773. * TorrentMan.cc: Added deleteTempFile().
  10774. * PeerAbstractCommand.cc: do not stop execution after download
  10775. completes. This makes localhost a seeder.
  10776. * Util.{h,cc}: Added fileCopy().
  10777. * PeerListenCommand.cc: do not stop execution after download completes.
  10778. This makes localhost a seeder.
  10779. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  10780. Added TorrentMan::deleteTempFile() to torrentHandler.
  10781. Initialized the variable dir as ".".
  10782. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  10783. Deleted renameSingleFile().
  10784. Added copySingleFile(), deleteTempFile().
  10785. * DownloadEngine.h: Added virtual function afterEachIteration().
  10786. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  10787. in onEndOfRun() to afterEachIteration().
  10788. In onEndOfRun(), changed if condition to check whether filenameFixed is
  10789. true.
  10790. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  10791. In rangedFileCopy(), added try-catch block to properly close file
  10792. descriptors.
  10793. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  10794. Added afterEachIteration(), isFilenameFixed().
  10795. * Peer.cc: Changed choking strategy.
  10796. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  10797. * TrackerInitCommand.cc: Send completed event only once.
  10798. * DownloadEngine.cc: Added a call to afterEachIteration().
  10799. * TrackerUpdateCommand.cc: Do not stop execution after download
  10800. completes.
  10801. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  10802. connect the peers at most MAX_PEER_UPDATE when a peer list is
  10803. received from a tracker.
  10804. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  10805. Decreased the number of failure peers to delete to 0(just comment out
  10806. the line).
  10807. * Release 0.3.1
  10808. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10809. * PeerInteractionCommand.cc: added a call to
  10810. TorrentMan::unadvertisePiece in Destructor.
  10811. * PeerInteractionCommand.cc: make have message sent immediately
  10812. if the size of pending message queue is zero.
  10813. * TorrentMan.cc: set the maximum size of peer list to 250.
  10814. * TorrentMan.h: changed the container type of Peers and UsedPieces
  10815. to deque.
  10816. * Util.cc: fixed rangedFileCopy.
  10817. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  10818. to Constructor. Also, moved digest cleanup to Destructor.
  10819. * MetaFileUtil.cc: fixed memory leak
  10820. * replaced std::vector with std::deque.
  10821. * AbstractCommand.cc: casted timeout value to long long int.
  10822. * ChunkedEncoding.cc: fixed memory leak.
  10823. * PeerInteractionCommand.cc: casted timeout value to long long int.
  10824. * SleepCommand.cc: casted timeout value to long long int.
  10825. * Data.cc: fixed memory leak.
  10826. * Data.cc: fixed toLLInt().
  10827. * BitfieldMan.cc: fixed memory leak.
  10828. * TorrentMan.cc: initialized storeDir to ".".
  10829. * TorrentMan.cc: fixed memory leak.
  10830. * TorrentMan.cc: corrected file paths of splitted files.
  10831. * PeerAbstractCommand.cc: casted timeout to long long int.
  10832. * main.cc: added delete(req) and delete(te->diskWriter).
  10833. * RequestSlot.cc: casted timeout value to long long int.
  10834. * Request.cc: fixed memory leak.
  10835. * PendingMessage.cc: make HAVE messages sent only when peer does not
  10836. have the piece.
  10837. * Peer.{h,cc}: added hasPiece(int index).
  10838. * main.cc: corrected addCommand.
  10839. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. * BitTorrent protocol support added.
  10841. * Release 0.3.0
  10842. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10843. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  10844. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10845. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  10846. decoding did not work properly.
  10847. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10848. * DownloadEngine.h: included sys/time.h
  10849. * DownloadEngine.cc: remove sys/time.h
  10850. * Makefile.am (SUBDIRS): Add intl.
  10851. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  10852. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. * main.cc: correct help message for --http-auth-scheme.
  10854. * main.cc: changed e-mail address for bug reports.
  10855. * ja.po: added japanese translation.
  10856. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. * SimpleLogger.cc: flush log file instead of stdout.
  10858. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. * main.cc: Fixed command-line option: max-tries
  10860. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  10861. does not equal to seg.sp.
  10862. * DownloadCommand.cc: If EOF is got from the server and the total size
  10863. of file is not zero, then throw DlRetryEx.
  10864. * main.cc: Set the minium value of min-segment-size to 1024.
  10865. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  10866. fails because of a regression since 0.2.0 release.
  10867. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10868. * HttpConnection.cc:
  10869. * common.h: defined the user agent name as macro
  10870. * DownloadEngine.{h, cc}:
  10871. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  10872. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  10873. * main.cc: Download complete/abort message is now generated by main.
  10874. * Makefile.am (SUBDIRS): Add m4.
  10875. (ACLOCAL_AMFLAGS): New variable.
  10876. (EXTRA_DIST): New variable.
  10877. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  10878. * gettext: added gettext functionality
  10879. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10880. * AbstractCommand.cc:
  10881. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  10882. unregister its cuid from SegmentMan.
  10883. * DownloadEngine.cc: .aria2 file was written when a downloading
  10884. failed with errors.
  10885. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  10886. Added "User-Agent" header to CONNECT proxy request.
  10887. Fixed "Proxy-Authorization" header. Now proxy authorization works
  10888. properly.
  10889. * Logger.h:
  10890. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  10891. * ChunkedEncoding.cc: Added #include directive for strings.h
  10892. * Release 0.2.1
  10893. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. * Util.{h,cc}: added startsWith().
  10895. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  10896. Util::endsWith().
  10897. * SocketCore.cc: struct addrinfo is now zero-initialized.
  10898. * common.h: added #include directive of limit.h.
  10899. * DownloadEngine.cc: added #include directive of sys/time.h and
  10900. algorithm.
  10901. * Exception.h: added #include directive of stdio.h.
  10902. * AbstractCommand.h: added #include directive of sys/time.h.
  10903. * DownloadCommand.h: added #include directive of sys/time.h.
  10904. * *.h: added #include directive of common.h to all base classes.
  10905. subclasses' one was removed.
  10906. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  10907. does not define these macros.
  10908. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10909. * Release 0.2.0
  10910. * main.cc:
  10911. * HttpInitiateConnectionCommand.{h,cc}:
  10912. * prefs.h:
  10913. * HttpConnection.{h,cc}: added --http-proxy-method option.
  10914. We can now use GET command in http proxy.
  10915. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10916. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  10917. that splits slowest segment of SegmentMan::commands vector.
  10918. This is the default split algorithm of aria2.
  10919. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  10920. that splits first segment of SegmentMan::commands vector.
  10921. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  10922. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  10923. * Segment.h:
  10924. * SegmentMan.cc: Added speed field to Segment.h
  10925. * main.cc: -s option now affects all URLs in command-line arguemtns.
  10926. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  10927. * message.h: Change file size related %d to %lld.
  10928. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. * FtpInitiateConnectionCommand.{h,cc}:
  10930. * FtpNegotiationCommand.{h,cc}:
  10931. * FtpDownloadCommand.{h,cc}:
  10932. * FtpConnection.{h,cc}: Added FTP support
  10933. * SimpleLogger.cc: Log message now includes time information.
  10934. * main.cc: The value of --http-auth-scheme option is chagned from
  10935. 'BASIC' to 'basic'
  10936. * main.cc: Added --timeout command-line option.
  10937. * main.cc: Added --min-segment-size command-line option.
  10938. * main.cc: Added --max-retries command-line option.
  10939. * prefs.h: option string constants are now defined in prefs.h
  10940. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10941. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  10942. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  10943. with version 0.1.0's one.
  10944. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. * configure.in: Added --enable-ssl option to configure script.
  10946. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  10947. cannot permit absoluteURI as Request-URI.
  10948. * HttpConnection.cc: Added Referer support.
  10949. * main.cc: Added referer command-line option.
  10950. * main.cc: Added rety-wait command-line option.
  10951. * Exception.h: Fixed formating bug in Exception::setMsg()
  10952. * SocketCore.{h,cc}:
  10953. * Socket.{h, cc}:
  10954. * Request.cc:
  10955. * InitiateConnectionCommandFactory.cc:
  10956. * HttpRequestCommand.cc: Added HTTPS support.
  10957. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  10958. for SocketCore.
  10959. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  10960. size is wrong
  10961. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  10962. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  10963. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  10964. * Release 0.1.0