ChangeLog 423 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073
  1. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Fixed the bug that aria2 downloads faster than max-download-limit when
  3. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5. , instead of sum of them.
  6. * src/ActivePeerConnectionCommand.cc
  7. * src/DefaultBtInteractive.cc
  8. * src/DownloadCommand.cc
  9. * src/PeerInteractionCommand.cc
  10. * src/PeerReceiveHandshakeCommand.cc
  11. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12. Fixed the bug that HTTPS download fails.
  13. * src/AbstractCommand.cc
  14. * src/AbstractCommand.h
  15. * src/DownloadCommand.cc
  16. * src/FtpConnection.cc
  17. * src/HttpConnection.cc
  18. * src/HttpRequestCommand.cc
  19. * src/HttpResponseCommand.cc
  20. * src/HttpSkipResponseCommand.cc
  21. * src/MSEHandshake.cc
  22. * src/PeerConnection.cc
  23. * src/SocketCore.cc
  24. * src/SocketCore.h
  25. Fixed the bug that aria2 doesn't download whole content body and cannot
  26. reuse connection if chunked transfer encoding and gzip content encoding
  27. are set.
  28. * src/DownloadCommand.cc
  29. * src/HttpSkipResponseCommand.cc
  30. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  31. Updated man page.
  32. * doc/aria2c.1.txt
  33. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  34. When error occurred while aria2 was parsing an .aria2.conf file, print
  35. the usage of the option that caused error.
  36. * src/option_processing.cc
  37. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  38. Fixed compile error on OptionHandlerException
  39. * src/Makefile.am
  40. * src/OptionHandlerException.cc
  41. * src/OptionHandlerException.h
  42. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  43. Moved message of the error to OptionHandlerException.h
  44. * src/NameMatchOptionHandler.h
  45. * src/OptionHandlerException.h
  46. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  47. When error occurs while aria2 is parsing an command-line option, print
  48. the usage of the option.
  49. * src/Makefile.am
  50. * src/NameMatchOptionHandler.h
  51. * src/OptionHandlerException.h
  52. * src/option_processing.cc
  53. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  54. Reverted previous change.
  55. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  56. username is not in URI.
  57. * src/HttpRequest.cc
  58. * src/Request.cc
  59. * test/HttpRequestTest.cc
  60. * test/RequestTest.cc
  61. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  62. Now colon is required for username and password in FTP URL, like:
  63. ftp://username:password@host.
  64. If colon is not there, aria2 don't parse it as a username. For example,
  65. aria2 don't retrieve username from ftp://username@host.
  66. This fix was made in order to login FTP server via non-transparent ftp
  67. proxy.
  68. * src/Request.cc
  69. * test/RequestTest.cc
  70. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  71. Use netrc for HTTP.
  72. Now FTP user/password is sent in Authorization header when
  73. --ftp-via-http-proxy=get is given.
  74. * src/AuthConfigFactory.cc
  75. * src/HttpRequest.cc
  76. * src/HttpRequest.h
  77. * src/NetrcAuthResolver.cc
  78. * src/NetrcAuthResolver.h
  79. * src/OptionHandlerFactory.cc
  80. * src/option_processing.cc
  81. * src/prefs.cc
  82. * src/prefs.h
  83. * test/AuthConfigFactoryTest.cc
  84. * test/HttpRequestTest.cc
  85. * test/NetrcAuthResolverTest.cc
  86. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  87. Issue PWD command first and get working directory and use it as a prefix
  88. for CWD command.
  89. * src/DownloadEngine.cc
  90. * src/DownloadEngine.h
  91. * src/FtpConnection.cc
  92. * src/FtpConnection.h
  93. * src/FtpFinishDownloadCommand.cc
  94. * src/FtpInitiateConnectionCommand.cc
  95. * src/FtpNegotiationCommand.cc
  96. * src/FtpNegotiationCommand.h
  97. * test/FtpConnectionTest.cc
  98. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  99. Removed default user/pass for FTP user/pass, since it should not have
  100. precedence over netrc configuration by default.
  101. * src/OptionHandlerFactory.cc
  102. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  103. Added debug log for socket event.
  104. * src/AbstractCommand.cc
  105. * src/PeerAbstractCommand.cc
  106. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  107. Log microseconds.
  108. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  109. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  110. Replaced HelpItem.cc with OptionHandler.cc.
  111. * po/POTFILES.in
  112. Updated po files with 'make update-po'
  113. * po/aria2c.pot
  114. * po/*.po
  115. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  116. Removed possible values from the text.
  117. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  118. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  119. Removed unused preferences:
  120. PREF_NO_PREALLOCATION
  121. PREF_STDOUT_LOG
  122. PREF_TRACKER_MAX_TRIES
  123. PREF_DIRECT_DOWNLOAD_TIMEOUT
  124. PREF_MIN_SEGMENT_SIZE
  125. * src/option_processing.cc
  126. * src/prefs.cc
  127. * src/prefs.h
  128. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  129. Integrated HelpItem into OptionParser to ease the workload for adding
  130. new options. Removed default value from usage text.
  131. * src/HelpItem.cc: Removed.
  132. * src/HelpItem.h: Removed.
  133. * src/HelpItemFactory.cc: Removed.
  134. * src/HelpItemFactory.h: Removed.
  135. * src/Makefile.am
  136. * src/Makefile.in
  137. * src/NameMatchOptionHandler.h
  138. * src/OptionHandler.cc
  139. * src/OptionHandler.h
  140. * src/OptionHandlerFactory.cc
  141. * src/OptionHandlerImpl.h
  142. * src/OptionParser.cc
  143. * src/OptionParser.h
  144. * src/TagContainer.cc: Removed.
  145. * src/TagContainer.h: Removed.
  146. * src/TaggedItem.cc: Removed.
  147. * src/TaggedItem.h: Removed.
  148. * src/main.cc
  149. * src/option_processing.cc
  150. * src/usage_text.h
  151. * src/version_usage.cc
  152. * test/HelpItemTest.cc: Removed.
  153. * test/Makefile.am
  154. * test/Makefile.in
  155. * test/OptionHandlerTest.cc
  156. * test/OptionParserTest.cc
  157. * test/TagContainerTest.cc: Removed.
  158. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  159. Moved `TransferStat stat = ...' to inside the `if' clause.
  160. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  161. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  162. Fixed the bug that a block in a piece is requested when same block is
  163. already requested to the same peer in end game mode.
  164. * src/BtRequestFactory.h
  165. * src/DefaultBtInteractive.cc
  166. * src/DefaultBtRequestFactory.cc
  167. * src/DefaultBtRequestFactory.h
  168. * src/DefaultPieceStorage.cc
  169. * src/DefaultPieceStorage.h
  170. * src/PieceStorage.h
  171. * src/UnknownLengthPieceStorage.cc
  172. * src/UnknownLengthPieceStorage.h
  173. * test/DefaultBtRequestFactoryTest.cc
  174. * test/DefaultPieceStorageTest.cc
  175. * test/MockBtRequestFactory.h
  176. * test/MockPieceStorage.h
  177. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  178. Removed _uploadLength and _downloadLength from PeerSessionResource
  179. and use PeerStat::_sessionUploadLength and
  180. PeerStat::_sessionDownloadLength.
  181. * src/PeerSessionResource.cc
  182. * src/PeerSessionResource.h
  183. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  184. Fixed the bug that prefixLength of split bucket which doesn't include
  185. local node ID is incremented.
  186. * src/DHTBucket.cc
  187. * src/DHTBucket.h
  188. * test/DHTBucketTest.cc
  189. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  190. Added cookies.sqlite to EXTRA_DIST
  191. * test/Makefile.am
  192. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  193. Added Turkish translation. Updated French, German, Russian and
  194. Simplified Chinese translations. Thanks to all translators.
  195. * po/LINGUAS
  196. * po/de.po
  197. * po/fr.po
  198. * po/ru.po
  199. * po/tr.po
  200. * po/zh_CN.po
  201. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  202. Added deliminating text to the beginning of the log so that one can find
  203. where the log starts easily.
  204. * src/main.cc
  205. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  206. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  207. to fix compile error when async DNS is not enabled by configuration.
  208. * src/AbstractCommand.cc
  209. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  210. If establishing conneciton to a server is failed, then mark error on
  211. its ServerStat.
  212. Added the cause of error to log when error event occurred.
  213. Moved message string to message.h for translation.
  214. * src/AbstractCommand.cc
  215. * src/AbstractCommand.h
  216. * src/FtpNegotiationCommand.cc
  217. * src/HttpRequestCommand.cc
  218. * src/PeerAbstractCommand.cc
  219. * src/message.h
  220. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  221. Added the function to get error message from socket.
  222. * src/SocketCore.cc
  223. * src/SocketCore.h
  224. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  225. Added convenient method RequestGroupMan::getOrCreateServerStat()
  226. * src/RequestGroupMan.cc
  227. * src/RequestGroupMan.h
  228. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  229. If error event is received in epoll, then abort download immediately.
  230. * src/AbstractCommand.cc
  231. * src/Command.cc
  232. * src/Command.h
  233. * src/DownloadEngine.cc
  234. * src/PeerAbstractCommand.cc
  235. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  236. Added usage message for --uri-selector, --server-stat-of,
  237. --server-stat-in, --server-stat-timeout options.
  238. * src/HelpItemFactory.cc
  239. * src/usage_text.h
  240. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  241. Added upper limit of FTP response buffer. The current implementation
  242. uses 4096bytes as a limit.
  243. * src/FtpConnection.cc
  244. * src/FtpConnection.h
  245. * test/FtpConnectionTest.cc
  246. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  247. Use non-blocking socket for TCP communication to avoid possible
  248. blocking due to buffer full.
  249. * src/AbstractProxyRequestCommand.cc
  250. * src/FtpConnection.cc
  251. * src/FtpConnection.h
  252. * src/FtpNegotiationCommand.cc
  253. * src/FtpNegotiationCommand.h
  254. * src/HttpConnection.cc
  255. * src/HttpConnection.h
  256. * src/HttpRequestCommand.cc
  257. * src/InitiatorMSEHandshakeCommand.cc
  258. * src/InitiatorMSEHandshakeCommand.h
  259. * src/MSEHandshake.cc
  260. * src/MSEHandshake.h
  261. * src/Makefile.am
  262. * src/PeerConnection.cc
  263. * src/PeerConnection.h
  264. * src/PeerInteractionCommand.cc
  265. * src/PeerListenCommand.cc
  266. * src/ReceiverMSEHandshakeCommand.cc
  267. * src/ReceiverMSEHandshakeCommand.h
  268. * src/SocketBuffer.cc
  269. * src/SocketBuffer.h
  270. * src/SocketCore.cc
  271. * src/SocketCore.h
  272. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  273. Call setStatusRealtime() in constructor.
  274. * src/RealtimeCommand.cc
  275. * src/RealtimeCommand.h
  276. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  277. Call Download::setNoWait(true) to execute newly created command without
  278. a pause.
  279. * src/AbstractCommand.cc
  280. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  281. Added --max-file-not-found=NUM option. If aria2 receives `file not
  282. found' error from HTTP/FTP server NUM times without getting single
  283. bytes of data, then force the download to fail.
  284. Basically aria2 tris all URIs available. So if long list of URIs are
  285. specified in Metalink, then aria2 will take a long time to fail
  286. eventually if all URIs are outdated. This option eases this situation
  287. to limit the number of servers to try.
  288. * src/FtpNegotiationCommand.cc
  289. * src/HelpItemFactory.cc
  290. * src/HttpResponseCommand.cc
  291. * src/OptionHandlerFactory.cc
  292. * src/PeerStat.h
  293. * src/RequestGroup.cc
  294. * src/RequestGroup.h
  295. * src/SegmentMan.cc
  296. * src/SegmentMan.h
  297. * src/option_processing.cc
  298. * src/prefs.cc
  299. * src/prefs.h
  300. * src/usage_text.h
  301. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  302. Fixed the bug that bulkReceiveResponse() reads all received data as a
  303. response even if more than one response is in it.
  304. * src/FtpConnection.cc
  305. * src/FtpConnection.h
  306. * test/FtpConnectionTest.cc
  307. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  308. Merged from stable-0.15
  309. * m4/libcares.m4
  310. Use pkg-config
  311. * m4/sqlite3.m4
  312. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  313. Removed unnecessary if statement.
  314. * src/DefaultPieceStorage.cc (initPieceStorage)
  315. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  316. Added --connect-timeout option to specify connect timeout in seconds.
  317. This option is in effect for HTTP/FTP/proxy server. The timeout for
  318. connecting to BitTorrent peer is not controlled by this option.
  319. * src/AbstractProxyRequestCommand.cc
  320. * src/FtpNegotiationCommand.cc
  321. * src/HelpItemFactory.cc
  322. * src/HttpRequestCommand.cc
  323. * src/OptionHandlerFactory.cc
  324. * src/option_processing.cc
  325. * src/prefs.cc
  326. * src/prefs.h
  327. * src/usage_text.h
  328. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  329. Added help message for -R option.
  330. * src/HelpItemFactory.cc
  331. * src/usage_text.h
  332. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  333. Added the message that the time is in local time zone.
  334. * src/RequestGroup.cc
  335. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  336. Implemented the ability to get timestamp from remote FTP server using
  337. MDTM command described in RFC3659.
  338. * src/FtpConnection.cc
  339. * src/FtpConnection.h
  340. * src/FtpNegotiationCommand.cc
  341. * src/FtpNegotiationCommand.h
  342. * test/FtpConnectionTest.cc
  343. * test/Makefile.am
  344. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  345. Implemented the ability to get timestamp from remote HTTP server and
  346. apply it to local file. To enable this feature, --remote-time option
  347. is added. No usage text has been written yet.
  348. If several servers returns difference timestamp, then aria2 uses latest
  349. one.
  350. * src/CopyDiskAdaptor.cc
  351. * src/CopyDiskAdaptor.h
  352. * src/DirectDiskAdaptor.cc
  353. * src/DirectDiskAdaptor.h
  354. * src/DiskAdaptor.h
  355. * src/File.cc
  356. * src/File.h
  357. * src/HttpHeader.cc
  358. * src/HttpHeader.h
  359. * src/HttpResponse.cc
  360. * src/HttpResponse.h
  361. * src/HttpResponseCommand.cc
  362. * src/HttpResponseCommand.h
  363. * src/MultiDiskAdaptor.cc
  364. * src/MultiDiskAdaptor.h
  365. * src/OptionHandlerFactory.cc
  366. * src/RequestGroup.cc
  367. * src/RequestGroup.h
  368. * src/RequestGroupMan.cc
  369. * src/option_processing.cc
  370. * src/prefs.cc
  371. * src/prefs.h
  372. * test/CopyDiskAdaptorTest.cc
  373. * test/FileTest.cc
  374. * test/Makefile.am
  375. * test/Makefile.in
  376. * test/MultiDiskAdaptorTest.cc
  377. * test/TestUtil.cc
  378. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  379. Fixed the bug that DiskWriterEntry is not created when its
  380. FileEntry.isRequested() is false and it doesn't share a piece with
  381. other FileEntries that are requested. This bug causes segmentation fault
  382. in the end.
  383. * src/MultiDiskAdaptor.cc
  384. * src/MultiDiskAdaptor.h
  385. * src/MultiFileAllocationIterator.cc
  386. * test/MultiDiskAdaptorTest.cc
  387. * test/MultiFileAllocationIteratorTest.cc
  388. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  389. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  390. called if the number of file entries are greater than max open files.
  391. * src/AbstractSingleDiskAdaptor.cc
  392. * src/AbstractSingleDiskAdaptor.h
  393. * src/DiskAdaptor.h
  394. * src/MultiDiskAdaptor.cc
  395. * src/MultiDiskAdaptor.h
  396. * test/MultiDiskAdaptorTest.cc
  397. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  398. Added a constuctor that receives struct timeval.
  399. Added operator<.
  400. * src/TimeA2.cc
  401. * src/TimeA2.h
  402. * test/TimeTest.cc
  403. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  404. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  405. * src/CookieParser.cc
  406. * test/CookieParserTest.cc
  407. * test/HttpResponseTest.cc
  408. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  409. Implmented the functions to parse date.
  410. * src/TimeA2.cc
  411. * src/TimeA2.h
  412. * test/TimeTest.cc
  413. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  414. Added "Firefox3 Cookie" feature to FeatureConfig
  415. * src/FeatureConfig.cc
  416. * src/FeatureConfig.h
  417. * test/FeatureConfigTest.cc
  418. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  419. Bump up version number to 0.16.0b
  420. * configure.ac
  421. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  422. Use pkg-config if is is available.
  423. * m4/openssl.m4
  424. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  425. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  426. * src/BtAnnounce.h
  427. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  428. If an error occurred with a URI, remove identical URI from remaining
  429. URI list because it is likely that same error occurred in the end and it
  430. is waste of time.
  431. * src/AbstractCommand.cc
  432. * src/RequestGroup.cc
  433. * src/RequestGroup.h
  434. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  435. Removed wrong comment.
  436. * src/DefaultPeerStorage.cc
  437. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  438. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  439. Added return value of getpid() to argument of srand() to achieve more
  440. randomized value.
  441. * src/SimpleRandomizer.cc
  442. * src/SimpleRandomizer.h
  443. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  444. Contact tracker frequently when the number of connections are 0 and
  445. download is not finished yet.
  446. * src/ActivePeerConnectionCommand.cc
  447. * src/BtAnnounce.h
  448. * src/DefaultBtAnnounce.cc
  449. * src/DefaultBtAnnounce.h
  450. * test/MockBtAnnounce.h
  451. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  452. Moved threshold values to UTPexExtensionMessage.
  453. * src/DefaultBtInteractive.cc
  454. * src/Peer.cc
  455. * src/Peer.h
  456. * src/UTPexExtensionMessage.cc
  457. * src/UTPexExtensionMessage.h
  458. * test/UTPexExtensionMessageTest.cc
  459. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  460. Added _incoming member to Peer class and made it true if the peer
  461. initiated connection. Don't add those peer to UTPex message.
  462. If extended handshake is received, assign _incoming to false.
  463. * src/DefaultBtInteractive.cc
  464. * src/HandshakeExtensionMessage.cc
  465. * src/Peer.cc
  466. * src/Peer.h
  467. * src/PeerListenCommand.cc
  468. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  469. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  470. Encoding Decoder. Removed size threshold for turning off on the fly
  471. inflation because resulting file may or may not be inflated depending
  472. on the file size and I think it is not expected by users.
  473. This change fixes segmentation fault when Metalink file contains gzipped
  474. file and its filesize is provided.
  475. * src/HttpResponseCommand.cc
  476. * src/HttpResponseCommand.h
  477. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  478. Made Cookie immutable.
  479. * src/Cookie.cc
  480. * src/Cookie.h
  481. * src/CookieParser.cc
  482. * src/CookieParser.h
  483. * src/CookieStorage.cc
  484. * test/CookieParserTest.cc
  485. * test/CookieStorageTest.cc
  486. * test/NsCookieParserTest.cc
  487. * test/Sqlite3MozCookieParserTest.cc
  488. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  489. Removed CookieBox, CookieBoxFactory.
  490. * src/CookieBox.cc
  491. * src/CookieBox.h
  492. * src/CookieBoxFactory.cc
  493. * src/CookieBoxFactory.h
  494. * src/Makefile.am
  495. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  496. Use CookieStorage class instead of CookieBox class.
  497. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  498. * src/AbstractProxyRequestCommand.cc
  499. * src/CookieStorage.cc
  500. * src/DownloadEngine.cc
  501. * src/DownloadEngine.h
  502. * src/HttpConnection.cc
  503. * src/HttpConnection.h
  504. * src/HttpRequest.cc
  505. * src/HttpRequest.h
  506. * src/HttpRequestCommand.cc
  507. * src/HttpResponse.cc
  508. * src/HttpResponseCommand.cc
  509. * src/HttpSkipResponseCommand.cc
  510. * src/Makefile.am
  511. * src/MultiUrlRequestInfo.cc
  512. * src/Request.cc
  513. * src/Request.h
  514. * src/main.cc
  515. * test/AllTest.cc
  516. * test/CookieStorageTest.cc
  517. * test/CookieTest.cc
  518. * test/HttpRequestTest.cc
  519. * test/HttpResponseTest.cc
  520. * test/Makefile.am
  521. * test/NsCookieParserTest.cc
  522. * test/Sqlite3MozCookieParserTest.cc
  523. * test/nscookietest.txt
  524. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  525. Updated
  526. * test/Cookies.sqlite
  527. * test/nscookietest.txt
  528. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  529. Added tests for CookieStorage::load()
  530. * test/CookieStorageTest.cc
  531. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  532. Added CookieStorage class which is based on RFC2109 and manages cookies
  533. more strictly than CookieBox and CookieBoxFactory class.
  534. * src/CookieStorage.cc
  535. * src/CookieStorage.h
  536. * src/Cookie.cc
  537. * src/Cookie.h
  538. * test/CookieStorageTest.cc
  539. * test/CookieTest.cc
  540. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  541. Fixed the bug that commands are created more than the number of pieces.
  542. * src/RequestGroup.cc
  543. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  544. Fixed infinite loop bug in FTP when SIZE command failed.
  545. * src/FtpNegotiationCommand.cc
  546. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  547. Removed DirectDiskAdaptorTest.h
  548. * test/Makefile.am
  549. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  550. Fixed chunk checksum validation cannot detect trailing garbage data.
  551. BUG#2074141
  552. * src/AbstractSingleDiskAdaptor.cc
  553. * src/AbstractSingleDiskAdaptor.h
  554. * src/CheckIntegrityEntry.cc
  555. * src/CheckIntegrityEntry.h
  556. * src/DiskAdaptor.h
  557. * src/MultiDiskAdaptor.cc
  558. * src/MultiDiskAdaptor.h
  559. * src/RequestGroup.cc
  560. * test/DirectDiskAdaptorTest.cc
  561. * test/MultiDiskAdaptorTest.cc
  562. * test/TestUtil.cc
  563. * test/TestUtil.h
  564. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  565. Bump up version number of dht.dat file to 3. In version 3 format, time
  566. is stored in 64bit, network byte order.
  567. New build can load old format(version 2) but it saves the file in new
  568. format. It means once you used new build, your dht.dat becomes
  569. incompatible with older build.
  570. * src/DHTRoutingTableDeserializer.cc
  571. * src/DHTRoutingTableSerializer.cc
  572. * test/DHTRoutingTableSerializerTest.cc
  573. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  574. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  575. * test/Makefile.am
  576. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  577. Bump up version number of .aria2 control file to 0001.
  578. New aria2 can still load version 0000 file but it saves the file in
  579. version 0001 format. It means that new aria2 can resume download
  580. started by old aria2 but the opposite is not true.
  581. * src/DefaultBtProgressInfoFile.cc
  582. * src/DefaultBtProgressInfoFile.h
  583. * test/DefaultBtProgressInfoFileTest.cc
  584. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  585. Added ntoh64 and hton64 as inline functions.
  586. * src/Util.cc
  587. * test/UtilTest.cc
  588. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  589. Added sqlite3 depenency and Firefox3 cookie support.
  590. * README
  591. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  592. State that firefox3 cookie is supported explicitly in the usage.
  593. * src/usage_text.h
  594. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  595. Externalized message.
  596. * src/RequestGroupMan.cc
  597. * src/message.h
  598. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  599. Save temporary file first and rename to the destination on success.
  600. Added test cases.
  601. * src/RequestGroupMan.cc
  602. * test/RequestGroupManTest.cc
  603. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  604. Fixed the bug that the number of connected peer is exceeding the limit
  605. (55 by default) in seeding mode.
  606. Multiplied 0.8 to _maxUploadSpeedLimit.
  607. * src/ActivePeerConnectionCommand.cc
  608. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  609. Clear table item.
  610. * src/Dictionary.cc
  611. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  612. Fixed error handling of lseek.
  613. * src/AbstractDiskWriter.cc
  614. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  615. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  616. style cookie file.
  617. * src/usage_text.h
  618. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  619. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  620. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  621. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  622. * src/Util.cc
  623. * src/Util.h
  624. * src/CookieParser.cc
  625. * test/UtilTest.cc
  626. * test/CookieParserTest.cc
  627. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  628. Separate the implementation to load old mozilla format of cookie to
  629. NsCookieParser class.
  630. * src/CookieBoxFactory.cc
  631. * src/CookieBoxFactory.h
  632. * src/NsCookieParser.cc
  633. * src/NsCookieParser.h
  634. * test/NsCookieParserTest.cc
  635. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  636. Made parse() const
  637. * src/Sqlite3MozCookieParser.cc
  638. * src/Sqlite3MozCookieParser.h
  639. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  640. Added firefox3 cookie support based on the patch submitted by
  641. tizianomueller.
  642. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  643. this functionality.
  644. * configure.ac
  645. * m4/sqlite3.m4
  646. * src/CookieBoxFactory.cc
  647. * src/CookieBoxFactory.h
  648. * src/Makefile.am
  649. * src/Makefile.in
  650. * src/Sqlite3MozCookieParser.cc
  651. * src/Sqlite3MozCookieParser.h
  652. * src/main.cc
  653. * test/CookieBoxFactoryTest.cc
  654. * test/Makefile.am
  655. * test/Makefile.in
  656. * test/Sqlite3MozCookieParserTest.cc
  657. * test/badcookies.sqlite
  658. * test/cookies.sqlite
  659. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  660. Added Danish and Greek translations.
  661. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  662. Great thanks to all translators.
  663. * po/LINGUAS
  664. * po/el.po
  665. * po/da.po
  666. * po/es.po
  667. * po/ca.po
  668. * po/nn.po
  669. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  670. Fixed man page: --follow-bittorrent should be --follow-torrent
  671. * doc/aria2c.1.txt
  672. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  673. Fixed: numCommand is less than the value specified in -C option.
  674. * src/RequestGroup.cc
  675. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  676. Fixed occasional assertion failure in PieceSegment.
  677. Calling PieceStorage::getMissingPiece(size_t) was missing after
  678. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  679. creation of duplicate segments and one of the segment was finished then
  680. assertion failure was caused.
  681. * src/SegmentMan.cc
  682. * test/SegmentManTest.cc
  683. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  684. Added options to load/save the server's performance/status to a file
  685. and the timeout to drop their data.
  686. --server-stat-of=FILE specifies the file to which performance data
  687. is saved.
  688. --server-stat-if=FILE specifies the file to read previously saved
  689. by --server-stat-of option. Might be used with --uri-selector=feedback.
  690. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  691. TIMEOUT is specified in seconds and the default value is 24hours.
  692. * src/MultiUrlRequestInfo.cc
  693. * src/OptionHandlerFactory.cc
  694. * src/RequestGroupMan.cc
  695. * src/RequestGroupMan.h
  696. * src/ServerStatMan.cc
  697. * src/ServerStatMan.h
  698. * src/option_processing.cc
  699. * src/prefs.cc
  700. * src/prefs.h
  701. * test/ServerStatManTest.cc
  702. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  703. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  704. * src/ServerStatMan.cc
  705. * src/ServerStatMan.h
  706. * test/ServerStatManTest.cc
  707. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  708. Implemented ServerStatMan::load(...) function and its test case.
  709. * src/ServerStat.cc
  710. * src/ServerStat.h
  711. * src/ServerStatMan.cc
  712. * test/ServerStatManTest.cc
  713. * test/ServerStatTest.cc
  714. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  715. Use time_t instead of int32_t. Use int64_t where milli second is
  716. expected.
  717. * src/TimeA2.cc
  718. * src/TimeA2.h
  719. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  720. Implemented ServerStatMan::save(...) function and its test case.
  721. * src/ServerStat.cc
  722. * src/ServerStat.h
  723. * src/ServerStatMan.cc
  724. * src/ServerStatMan.h
  725. * test/ServerStatManTest.cc
  726. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  727. Now aria2 uses name attribute in Metalink as local filename in
  728. BitTorrent downloads. BUG#2033999
  729. * src/BtContext.h
  730. * src/BtDependency.cc
  731. * src/DefaultBtContext.cc
  732. * src/DefaultBtContext.h
  733. * src/SingleFileDownloadContext.cc
  734. * src/SingleFileDownloadContext.h
  735. * test/BtDependencyTest.cc
  736. * test/DefaultBtContextTest.cc
  737. * test/MockBtContext.h
  738. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  739. Added AC_C_BIGENDIAN
  740. * src/configure.ac
  741. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  742. Limited numCommand less than or equal to the number of piece.
  743. * src/RequestGroup.cc
  744. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  745. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  746. directive.
  747. * test/DefaultPieceStorageTest.cc
  748. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  749. Fixed memory leak in test code
  750. * test/AnnounceListTest.cc
  751. * test/DefaultPeerListProcessorTest.cc
  752. * test/DefaultPeerStorageTest.cc
  753. * test/MetaFileUtilTest.cc
  754. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  755. Fixed wrong argument passing to BitfieldMan::isBitSet()
  756. * src/DefaultPieceStorage.cc
  757. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  758. Initialized _directIOAllowed
  759. * src/MultiDiskAdaptor.cc
  760. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  761. Fixed memory leak
  762. * src/GZipDecoder.cc
  763. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  764. Fixed memory leak
  765. * src/MetalinkParserStateMachine.cc
  766. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  767. Fixed memory leak
  768. * src/Dictionary.cc
  769. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  770. Fixed memory leak
  771. * src/IteratableChunkChecksumValidator.h
  772. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  773. Fixed unmatched malloc/free.
  774. * src/IteratableChunkChecksumValidator.cc
  775. * src/IteratableChecksumValidator.cc
  776. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  777. Removed max chunk size check. This change fixes BUG#2040169
  778. * src/ChunkedDecoder.cc
  779. * src/ChunkedDecoder.h
  780. * test/ChunkedDecoderTest.cc
  781. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  782. Implemented download speed based URI selection algorithm.
  783. Introduced new option --uri-selector.
  784. If --uri-selector=feedback is given, aria2 uses download speed observed
  785. in the previous downloads and chooses fastest server in the URI list.
  786. Currently at most 10 URIs are considered to introduce randomeness for
  787. finding better servers. The speed is average download speed in the
  788. downloads.
  789. On the other hand, if --uri-selector=inorder is given, which is default,
  790. URI is tried in order in URI list.
  791. The usage text for the new option has not been written yet.
  792. * src/AbstractCommand.cc
  793. * src/DownloadCommand.cc
  794. * src/DownloadEngine.cc
  795. * src/DownloadEngineFactory.cc
  796. * src/InOrderURISelector.cc
  797. * src/InOrderURISelector.h
  798. * src/OptionHandlerFactory.cc
  799. * src/PeerStat.h
  800. * src/RequestGroup.cc
  801. * src/RequestGroup.h
  802. * src/RequestGroupMan.cc
  803. * src/RequestGroupMan.h
  804. * src/SegmentMan.cc
  805. * src/SegmentMan.h
  806. * src/ServerStat.cc
  807. * src/ServerStat.h
  808. * src/ServerStatMan.cc
  809. * src/ServerStatMan.h
  810. * src/ServerStatURISelector.cc
  811. * src/ServerStatURISelector.h
  812. * src/URISelector.h
  813. * src/option_processing.cc
  814. * src/prefs.cc
  815. * src/prefs.h
  816. * test/InOrderURISelectorTest.cc
  817. * test/RequestGroupManTest.cc
  818. * test/ServerStatManTest.cc
  819. * test/ServerStatURISelectorTest.cc
  820. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  821. * Release 0.15.1+2
  822. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  823. Bump up version number to 0.15.1+2
  824. * configure.ac
  825. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  826. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  827. * m4/aria2_arg.m4
  828. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  829. * Release 0.15.1+1
  830. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  831. Bump up version number to 0.15.1+1
  832. * configure.ac
  833. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  834. Fixed the bug that causes segmentaion fault when resuming download
  835. using metalink without size tag. Reproducible only using HTTP URI.
  836. * src/HttpResponseCommand.cc
  837. * src/FtpNegotiationCommand.cc
  838. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  839. * Release 0.15.1
  840. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  841. Updated Bulgarian and French translations, thanks to all translators.
  842. * po/bg.po
  843. * po/fr.po
  844. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  845. Bump up version number to 0.15.1
  846. * configure.ac
  847. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  848. Avoid repeated call of gettimeofday() when calculating speed.
  849. * src/SpeedCalc.cc
  850. * src/SpeedCalc.h
  851. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  852. Removed writable check when socket's send buffer is full in BitTorrent
  853. downloads to lower CPU usage.
  854. * src/PeerInteractionCommand.cc
  855. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  856. Fixed broken gzip inflation.
  857. Turn off segmented downloading if gzip content is smaller than or equal
  858. to 1MiB and inflate the data on the fly, because HTTP response header
  859. doesn't contain the length of inflated file we can't determin where
  860. the chunk of data should be written.
  861. On the other hand, if gzip content is larger than 1MB, then turn off
  862. on the fly inflation, because some servers returns "content-type: gzip"
  863. for *.tgz, *.gz files.
  864. * src/DownloadCommand.cc
  865. * src/HttpResponseCommand.cc
  866. * src/HttpResponseCommand.h
  867. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  868. Applied tizianomueller's patch to fix compile error.
  869. * test/BitfieldManTest.cc
  870. * test/BtRequestMessageTest.cc
  871. * test/DefaultBtContextTest.cc
  872. * test/DefaultDiskWriterTest.cc
  873. * test/DefaultPieceStorageTest.cc
  874. * test/HttpHeaderProcessorTest.cc
  875. * test/HttpResponseTest.cc
  876. * test/Metalink2RequestGroupTest.cc
  877. * test/MetalinkParserControllerTest.cc
  878. * test/MetalinkProcessorTest.cc
  879. * test/PeerSessionResourceTest.cc
  880. * test/UtilTest.cc
  881. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  882. * Release 0.15.0
  883. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  884. Reordered src files in POTFILES.in so that usage text appears first.
  885. * po/POTFILES.in
  886. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  887. Bump up version number to 0.15.0
  888. * configure.ac
  889. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  890. Added Bulgarian translation.
  891. Updated Catalan, Spanish, French and Japanese translations.
  892. Thanks to all translators.
  893. * po/LINGUAS
  894. * po/bg.po
  895. * po/ca.po
  896. * po/es.po
  897. * po/fr.po
  898. * po/ja.po
  899. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  900. Updated feature list. Added libz for dependency section.
  901. Added a description about unit testing using CppUnit.
  902. * README
  903. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  904. Added a test for libz. Quoted where it is necessary.
  905. * build_test.sh
  906. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  907. Added GZip to `Enabled Features' list.
  908. * src/FeatureConfig.cc
  909. * src/FeatureConfig.h
  910. * test/FeatureConfigTest.cc
  911. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  912. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  913. the transfer has not yet started.
  914. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  915. * src/SegmentMan.cc
  916. * src/SegmentMan.h
  917. * test/SegmentManTest.cc
  918. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  919. Cache last calculated average download/upload speed.
  920. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  921. cached value.
  922. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  923. * src/PeerStat.h
  924. * src/SpeedCalc.cc
  925. * src/SpeedCalc.h
  926. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  927. Call parseUrl directly.
  928. * src/Request.cc (resetUrl)
  929. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  930. Supported absolute/relative path in Location header field.
  931. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  932. * src/HttpHeader.cc
  933. * src/HttpHeader.h
  934. * src/HttpResponse.cc
  935. * src/HttpSkipResponseCommand.cc
  936. * src/Request.cc
  937. * test/HttpHeaderTest.cc
  938. * test/HttpResponseTest.cc
  939. * test/RequestTest.cc
  940. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  941. Changed help text for --load-cookie option.
  942. * doc/aria2c.1.txt
  943. * src/usage_text.h
  944. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  945. Regenerated test/Makefile.in to remove stale ChangeLog.
  946. * test/Makefile.in
  947. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  948. Updated po files.
  949. * po/aria2c.pot
  950. * po/*.po
  951. * po/*.gmo
  952. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  953. Bump up version number to 0.15.0b
  954. * configure.ac
  955. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  956. Externalize messages.
  957. * src/RequestGroupMan.cc
  958. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  959. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  960. Use File::exists() instead of File::isFile() to allow non-regular file
  961. such as block special files.
  962. * src/AbstractDiskWriter.cc
  963. * src/MultiDiskWriter.cc
  964. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  965. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  966. * src/gai_strerror.h
  967. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  968. Fixed compile error. Thanks gknauf for the patch.
  969. * src/asctime_r.c
  970. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  971. Included asctime_r.h from a2time.h.
  972. * src/a2time.h
  973. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  974. Added a message "aria2 doesn't verify signature" to log message when
  975. signature file is saved.
  976. * src/RequestGroupMan.cc
  977. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  978. Added the ability to save signature when download is completed if
  979. signature is available. The filename of signature file is the path to
  980. download file followed by ".sig". If it already exists, then signature
  981. will not be saved.
  982. * src/RequestGroupMan.cc
  983. * src/Signature.cc
  984. * test/SignatureTest.cc
  985. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  986. Updated the descriptions for --bt-seed-unverified.
  987. * doc/aria2c.1
  988. * doc/aria2c.1.html
  989. * doc/aria2c.1.txt
  990. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  991. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  992. that this is not going to verify files using piece hashes.
  993. * src/HelpItemFactory.cc
  994. * src/OptionHandlerFactory.cc
  995. * src/RequestGroup.cc
  996. * src/option_processing.cc
  997. * src/prefs.cc
  998. * src/prefs.h
  999. * src/usage_text.h
  1000. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1001. Added the ability to retrieve signature from Metalink file.
  1002. A retrieved signature is stored in Signature class and it is held by
  1003. DownloadContext class. Note that aria2 doesn't verify signature.
  1004. * src/DownloadContext.cc
  1005. * src/DownloadContext.h
  1006. * src/Makefile.am
  1007. * src/Makefile.in
  1008. * src/Metalink2RequestGroup.cc
  1009. * src/MetalinkEntry.cc
  1010. * src/MetalinkEntry.h
  1011. * src/MetalinkParserController.cc
  1012. * src/MetalinkParserController.h
  1013. * src/MetalinkParserStateMachine.cc
  1014. * src/MetalinkParserStateMachine.h
  1015. * src/Signature.cc
  1016. * src/Signature.h
  1017. * src/SignatureMetalinkParserState.cc
  1018. * src/SignatureMetalinkParserState.h
  1019. * src/VerificationMetalinkParserState.cc
  1020. * src/VerificationMetalinkParserState.h
  1021. * test/Metalink2RequestGroupTest.cc
  1022. * test/MetalinkParserControllerTest.cc
  1023. * test/MetalinkProcessorTest.cc
  1024. * test/test.xml
  1025. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1026. Close DiskAdaptor after renaming file.
  1027. * src/RequestGroup.cc
  1028. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1029. Corrected indentation
  1030. * src/DefaultBtProgressInfoFile.cc
  1031. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1032. Moved the calls of std::ios::exceptions() inside of try-catch block
  1033. because if an error occurred in constructor of std::fstream, then
  1034. exception is thrown immediately when std::ios::exceptions() is called
  1035. which results unhandled exception and aria2c aborts.
  1036. * src/DefaultBtProgressInfoFile.cc
  1037. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1038. Added the test for the previous change in DefaultBtContext.cc
  1039. * test/DefaultBtContextTest.cc
  1040. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1041. Fixed the bug that causes infinite loop when the number of pieces are
  1042. fewer than allowed fast set size which is 10 by default.
  1043. * src/DefaultBtContext.cc
  1044. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1045. Updated the descriptions for -j, -s. Added --bt-seed.
  1046. * doc/aria2c.1
  1047. * doc/aria2c.1.html
  1048. * doc/aria2c.1.txt
  1049. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1050. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1051. aria2 seeds previously downloaded files without validating piece hashs.
  1052. * src/HelpItemFactory.cc
  1053. * src/OptionHandlerFactory.cc
  1054. * src/RequestGroup.cc
  1055. * src/option_processing.cc
  1056. * src/prefs.cc
  1057. * src/prefs.h
  1058. * src/usage_text.h
  1059. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1060. Updated DESCRIPTION of man page.
  1061. * doc/aria2c.1
  1062. * doc/aria2c.1.html
  1063. * doc/aria2c.1.txt
  1064. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1065. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1066. Don't define `struct addrinfo' when __sun is defined.
  1067. * src/getaddrinfo.h
  1068. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1069. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1070. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1071. second argument is of type `struct _stati64'. Otherwise it is defined as
  1072. `struct stat'.
  1073. * src/AbstractDiskWriter.cc
  1074. * src/File.cc
  1075. * src/File.h
  1076. * src/a2io.h
  1077. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1078. Fixed the compile error in hurd-i386
  1079. See the original bug report:
  1080. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1081. * src/a2io.h
  1082. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1083. Code cleanup.
  1084. * src/PeerAbstractCommand.cc
  1085. * src/PeerAbstractCommand.h
  1086. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1087. Removed TransferEncoding.
  1088. * src/DownloadCommand.cc
  1089. * src/DownloadCommand.h
  1090. * src/HttpResponseCommand.cc
  1091. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1092. Updated po files.
  1093. * po/aria2c.pot
  1094. * po/*.po
  1095. * po/*.gmo
  1096. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1097. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1098. * src/A2STR.cc
  1099. * src/A2STR.h
  1100. * src/ChunkedDecoder.cc
  1101. * src/ChunkedDecoder.h
  1102. * src/ChunkedEncoding.cc: Removed
  1103. * src/ChunkedEncoding.h: Removed
  1104. * src/DownloadCommand.cc
  1105. * src/DownloadCommand.h
  1106. * src/HttpDownloadCommand.cc
  1107. * src/HttpResponse.cc
  1108. * src/HttpResponse.h
  1109. * src/HttpResponseCommand.cc
  1110. * src/HttpSkipResponseCommand.cc
  1111. * src/HttpSkipResponseCommand.h
  1112. * src/Makefile.am
  1113. * src/TransferEncoding.h: Removed
  1114. * test/ChunkedDecoderTest.cc
  1115. * test/ChunkedEncodingTest.cc: Removed
  1116. * test/HttpResponseTest.cc
  1117. * test/Makefile.am
  1118. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1119. Use append instead of insert.
  1120. * src/GZipDecoder.cc
  1121. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1122. Updated doc
  1123. * src/Decoder.h
  1124. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1125. Updated usage text for -s option.
  1126. * src/usage_text.h
  1127. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1128. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1129. * src/Request.cc
  1130. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1131. Cleaned up configure.ac.
  1132. * configure.ac
  1133. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1134. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1135. AC_ARG_ENABLE.
  1136. * configure.ac
  1137. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1138. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1139. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1140. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1141. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1142. fly and writes decoded data to a local disk.
  1143. * README
  1144. * README.html
  1145. * configure.ac
  1146. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1147. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1148. * m4/libz.m4
  1149. * src/Decoder.h
  1150. * src/DownloadCommand.cc
  1151. * src/DownloadCommand.h
  1152. * src/Exception.h
  1153. * src/GZipDecoder.cc
  1154. * src/GZipDecoder.h
  1155. * src/HttpHeader.cc
  1156. * src/HttpHeader.h
  1157. * src/HttpRequest.cc
  1158. * src/HttpRequest.h
  1159. * src/HttpResponse.cc
  1160. * src/HttpResponse.h
  1161. * src/HttpResponseCommand.cc
  1162. * src/Makefile.am
  1163. * test/GZipDecoderTest.cc
  1164. * test/HttpRequestTest.cc
  1165. * test/HttpResponseTest.cc
  1166. * test/Makefile.am
  1167. * test/Makefile.in
  1168. * test/gzip_decode_test.gz
  1169. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1170. Clarified usage of -j option.
  1171. * src/usage_text.h
  1172. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1173. Disabled getting size from the response of RETR.
  1174. If SIZE command failed, then disable resuming and segmented downloading.
  1175. * src/FtpConnection.cc
  1176. * src/FtpConnection.h
  1177. * src/FtpNegotiationCommand.cc
  1178. * src/FtpNegotiationCommand.h
  1179. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1180. Use digits to find first byte of file size, which makes the intention
  1181. of the code clearer.
  1182. * src/FtpConnection.cc
  1183. Don't call validateTotalLength() when size is 0.
  1184. * src/FtpNegotiationCommand.cc
  1185. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1186. Updated po files.
  1187. * po/aria2c.pot
  1188. * po/*.gmo
  1189. * po/*.po
  1190. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1191. Clarified usage text for --split option.
  1192. * src/usage_text.h
  1193. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1194. Bump up version number to 0.15.0dev. "dev" means "development"
  1195. version, which means I started the development of the next release!
  1196. * src/configure.ac
  1197. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1198. If FTP server returns negative response with REST raw command and
  1199. requested range is not 0, throw exception. If requested range is 0,
  1200. continue download a file from 0 byte.
  1201. * src/FtpNegotiationCommand.cc
  1202. * src/FtpNegotiationCommand.h
  1203. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1204. Supported FTP server which don't recognize SIZE raw command.
  1205. If SIZE raw command is failed, aria2 will try to get file size
  1206. from the response of RETR raw command. If both attempts are failed,
  1207. then resuming and segmented downloading are disabled.
  1208. * src/FtpConnection.cc
  1209. * src/FtpConnection.h
  1210. * src/FtpNegotiationCommand.cc
  1211. * src/FtpNegotiationCommand.h
  1212. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1213. * Release 0.14.0+1
  1214. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1215. Bump up version number to 0.14.0+1
  1216. * src/configure.ac
  1217. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1218. Fixed the code that refers static member variable from non-static
  1219. context.
  1220. * src/DefaultPeerStorage.cc
  1221. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1222. * Release 0.14.0
  1223. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1224. Added build test script
  1225. * build_test.sh
  1226. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1227. Updated ja.po
  1228. * src/ja.po
  1229. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1230. Bump up version number to 0.14.0
  1231. * src/configure.ac
  1232. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1233. Updated ja.po and fr.po. Great thanks for french translators and
  1234. Sebastien WILLEMIJNS.
  1235. * po/fr.po
  1236. * po/ja.po
  1237. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1238. Added configure option to enable/disable epoll support.
  1239. * configure.ac
  1240. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1241. Updated man page.
  1242. * doc/aria2c.1.txt
  1243. * doc/aria2c.1
  1244. * doc/aria2c.1.html
  1245. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1246. Added missing default value '5' to the usage of --split option.
  1247. * src/HelpItemFactory.cc
  1248. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1249. Filled up pieces based on the number of missing blocks, rather than
  1250. simplay the number of piece * block length.
  1251. * src/BtRequestFactory.h
  1252. * src/DefaultBtInteractive.cc
  1253. * src/DefaultBtInteractive.h
  1254. * src/DefaultBtRequestFactory.cc
  1255. * src/DefaultBtRequestFactory.h
  1256. * src/Piece.cc
  1257. * src/Piece.h
  1258. * test/BitfieldManTest.cc
  1259. * test/DefaultBtRequestFactoryTest.cc
  1260. * test/MockBtRequestFactory.h
  1261. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1262. Made _epEvents a member variable.
  1263. * src/DownloadEngine.cc
  1264. * src/DownloadEngine.h
  1265. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1266. Cancel download if http redirect is bounded more than 20 times.
  1267. * src/AbstractCommand.cc
  1268. * src/HttpSkipResponseCommand.cc
  1269. * src/Request.cc
  1270. * src/Request.h
  1271. * test/RequestTest.cc
  1272. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1273. Fixed unhandled exception(removed keyword `new').
  1274. * src/SocketCore.cc (initEPOLL)
  1275. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1276. Removed visit(const MetaEntry*)
  1277. * src/MetaEntryVisitor.h:
  1278. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1279. and made them virtual.
  1280. * src/BencodeVisitor.h
  1281. * src/BencodeVisitor.cc
  1282. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1283. Updated po files.
  1284. * po/aria2c.pot
  1285. * po/*.po
  1286. * po/*.gmo
  1287. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1288. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1289. the number of socket to watch out.
  1290. * src/PeerInteractionCommand.cc
  1291. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1292. When there is not enough space in disk when writing a chunk of data,
  1293. aria2 now prints the message to the console to warn user and aborts
  1294. its download. Not all downloads are canceled because some downloads
  1295. may use another disk or partition. BUG#1640332
  1296. * src/AbstractDiskWriter.cc
  1297. * src/PeerAbstractCommand.cc
  1298. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1299. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1300. setHaltRequested(true) to cancel download.
  1301. * src/PeerInteractionCommand.h
  1302. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1303. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1304. socket from int to sock_t as sockets are unsigned in Windows.
  1305. For AsyncNameResolver, DownloadEngine, I did additional modification
  1306. for the portion of the code changed according to epoll support.
  1307. I defined sock_t in a2netcompat.h to use sock_t without including
  1308. SocketCore.h.
  1309. * src/AsyncNameResolver.cc
  1310. * src/AsyncNameResolver.h
  1311. * src/DownloadEngine.cc
  1312. * src/DownloadEngine.h
  1313. * src/SocketCore.cc
  1314. * src/SocketCore.h
  1315. * src/a2netcompat.h
  1316. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1317. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1318. changes in the patch were applied.
  1319. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1320. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1321. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1322. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1323. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1324. a2io.h and common.h were modified.
  1325. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1326. MinGW.
  1327. * src/common.h: Changed off_t to 64 bit in MinGW.
  1328. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1329. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1330. only a2netcompat.h is modified.
  1331. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1332. directives.
  1333. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1334. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1335. only gai_strerror.h is modified.
  1336. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1337. winsock errors in MinGW.
  1338. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1339. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1340. follow sources are applied.
  1341. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1342. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1343. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1344. I included locale.h from Platform.cc.
  1345. * src/main.cc: Moved common setup/teardown code to Platform class.
  1346. * test/AllTest.cc: Use Platform class.
  1347. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1348. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1349. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1350. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1351. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1352. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1353. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1354. aria2-0.13.2+1-mingw-2.patch.
  1355. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1356. systems which don't have termious.h. I moved the directive inside of
  1357. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1358. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1359. anyway.
  1360. * src/asctime_r.h
  1361. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1362. I added 2nd argument to the prototype declaration.
  1363. * src/StringFormat.cc: Get rid of vasprintf.
  1364. * src/getaddrinfo.h: Fixed constants.
  1365. * configure.ac: Added the check for asctime_r function.
  1366. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1367. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1368. Added writable test for Socket when the sending message is in progress.
  1369. Usually the sending message is piece message. Without wriable check,
  1370. upload latency is dropped to more than 1sec.
  1371. * src/PeerInteractionCommand.cc
  1372. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1373. Create only requested files and files which shares a piece with
  1374. requested file in multi-torrent downloads. Directory structures are
  1375. also created in the same rule.
  1376. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1377. DiskWriterEntry as in the previous implementation.
  1378. * src/MultiDiskWriter.cc
  1379. * src/MultiFileAllocationIterator.cc
  1380. * src/MultiFileAllocationIterator.h
  1381. * test/MultiFileAllocationIteratorTest.cc
  1382. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1383. Commented out -lprofiler
  1384. * src/Makefile.am
  1385. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1386. Bump up version number to 0.14.0b.
  1387. * src/configure.ac
  1388. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1389. Actively establish connection to peers in seeding, when peer cache
  1390. is not full and max upload speed limit is not reached.
  1391. * src/ActivePeerConnectionCommand.cc
  1392. * src/ActivePeerConnectionCommand.h
  1393. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1394. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1395. to make room more fleshy, recently found peers.
  1396. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1397. it.
  1398. * src/DefaultPeerStorage.cc
  1399. * test/DefaultPeerStorageTest.cc
  1400. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1401. Returns cached data only when the previous receiveHandshake() is called
  1402. with peek = true.
  1403. * src/PeerConnection.cc (receiveHandshake)
  1404. * src/PeerConnection.h (receiveHandshake)
  1405. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1406. Changed default value of -s option from 1 to 5.
  1407. Also max value of -s option is changed from 5 to 16.
  1408. * src/HelpItemFactory.cc
  1409. * src/OptionHandlerFactory.cc
  1410. * src/option_processing.cc
  1411. * src/usage_text.h
  1412. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1413. Changed -s options behavior. Now it means the number of connections
  1414. made simultaneously in each http/ftp download.
  1415. If 1 URL is specified, the behavior is the same with old implementation.
  1416. If -s N is given and more than N URLs are specified, first N URLs are
  1417. used and remaining URLs are used for backup. If less than N URLs are
  1418. specified, some of URLs are used more than once so that totally N
  1419. connections are made simultaneously.
  1420. * src/main.cc
  1421. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1422. Included missing iosfwd or ostream header.
  1423. * src/RequestGroupMan.cc
  1424. * src/TaggedItem.cc
  1425. * src/TaggedItem.h
  1426. * src/Util.cc
  1427. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1428. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  1429. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  1430. * src/HttpConnection.cc: Included missing sstream.
  1431. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1432. Added --bt-max-open-files option.
  1433. * src/DefaultPieceStorage.cc
  1434. * src/HelpItemFactory.cc
  1435. * src/MultiDiskAdaptor.cc
  1436. * src/MultiDiskAdaptor.h
  1437. * src/OptionHandlerFactory.cc
  1438. * src/option_processing.cc
  1439. * src/prefs.cc
  1440. * src/prefs.h
  1441. * src/usage_text.h
  1442. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1443. Fixed the bug that aria2 aborts when a path to a directory is given
  1444. in command-line.
  1445. * src/ProtocolDetector.cc
  1446. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1447. Limited the number files opened in each BitTorrent download. The default
  1448. value is 100. The option to change this value will be added.
  1449. * src/MultiDiskAdaptor.cc
  1450. * src/MultiDiskAdaptor.h
  1451. * src/MultiFileAllocationIterator.cc
  1452. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1453. Fixed the bug that HTTP downloads don't start with old libraries.
  1454. * src/HttpHeaderProcessor.cc
  1455. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1456. Use empty() instead of size() > 0.
  1457. * src/HttpConnection.cc
  1458. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1459. Drop connection if the incoming peer ID is the same with localhost's
  1460. one. The previous implementation drops connection when incoming peer's
  1461. IP address is the same with localhost's one.
  1462. * src/PeerListenCommand.cc
  1463. * src/DefaultBtInteractive.cc
  1464. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1465. Returns cached data without checking whether socket is readable
  1466. if the cache is available.
  1467. * src/PeerConnection.cc (receiveHandshake)
  1468. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1469. Included stdint.h
  1470. * src/common.h
  1471. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1472. Removed duplicate HAVE_GETTIMEOFDAY
  1473. * src/Makefile.am
  1474. * src/Makefile.in
  1475. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1476. Use interval as a minInterval when minInterval is not supplied.
  1477. * src/DefaultBtAnnounce.cc
  1478. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1479. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  1480. attempt is failed, then 2nd attempt get kicked out more quickly.
  1481. And it is now static const member of DefaultBtAnnounce.
  1482. * src/DefaultBtAnnounce.h
  1483. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1484. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  1485. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  1486. * src/ActivePeerConnectionCommand.cc
  1487. * src/BtConstants.h
  1488. * src/BtRuntime.h
  1489. * src/DHTGetPeersCommand.cc
  1490. * src/DefaultBtAnnounce.cc
  1491. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  1492. BtRuntime::MAX_PEERS.
  1493. * src/DefaultPeerStorage.h
  1494. * src/InitiatorMSEHandshakeCommand.cc
  1495. * src/PeerInitiateConnectionCommand.cc
  1496. * src/PeerInteractionCommand.cc
  1497. * src/PeerReceiveHandshakeCommand.cc
  1498. * src/TrackerWatcherCommand.cc
  1499. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1500. Always Connect to _numNewConnection
  1501. * src/ActivePeerConnectionCommand.cc
  1502. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1503. Made `begin' unsigned int.
  1504. * src/GrowSegment.h
  1505. * src/Piece.cc
  1506. * src/Piece.h
  1507. * src/PiecedSegment.cc
  1508. * src/PiecedSegment.h
  1509. * src/Segment.h
  1510. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1511. Calculate piece hash when data is arrived if the data is arrived in
  1512. order. This removes additional read operation for hash calculation.
  1513. If the data is arrived in out of order, the hash is calucated when the
  1514. piece is completed. This is the same behavior as the old implementation.
  1515. * src/BtPieceMessage.cc
  1516. * src/DefaultBtProgressInfoFile.cc
  1517. * src/DefaultPieceStorage.cc
  1518. * src/DownloadCommand.cc
  1519. * src/DownloadCommand.h
  1520. * src/DownloadEngine.cc
  1521. * src/GrowSegment.cc
  1522. * src/GrowSegment.h
  1523. * src/Piece.cc
  1524. * src/Piece.h
  1525. * src/PiecedSegment.cc
  1526. * src/PiecedSegment.h
  1527. * src/Segment.h
  1528. * test/PieceTest.cc
  1529. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1530. Try to keep the ordering of outgoing piece message.
  1531. * src/DefaultBtMessageDispatcher.cc
  1532. (DefaultBtMessageDispatcher::sendMessages)
  1533. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1534. Fixed busy loop when error/hup epoll events occur.
  1535. * src/AbstractCommand.cc
  1536. * src/PeerAbstractCommand.cc
  1537. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1538. Added --bt-request-peer-speed-limit option, which was a constant
  1539. SLOW_SPEED_THRESHOLD.
  1540. * src/ActivePeerConnectionCommand.cc
  1541. * src/ActivePeerConnectionCommand.h
  1542. * src/BtConstants.h
  1543. * src/HelpItemFactory.cc
  1544. * src/OptionHandlerFactory.cc
  1545. * src/PeerReceiveHandshakeCommand.cc
  1546. * src/option_processing.cc
  1547. * src/prefs.cc
  1548. * src/prefs.h
  1549. * src/usage_text.h
  1550. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1551. Removed repeated call of getTopDirPath(). Instead, call it once and
  1552. cache the result.
  1553. * src/MultiDiskAdaptor.cc
  1554. * src/MultiDiskAdaptor.h
  1555. (mkdir, openFile, initAndOpenFile, openExistingFile)
  1556. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1557. Fixed compile error on debian etch.
  1558. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  1559. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  1560. it is undefined.
  1561. * src/Util.cc (ULLONG_MAX)
  1562. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1563. Added epoll support. Use epoll if it is available. If not, use select.
  1564. When async dns is enabled in compile time, epoll support is enabled
  1565. only when aria2 is built with c-ares. This condition statement is
  1566. defined in a2io.h.
  1567. Currently aria2 supports both c-ares and ares, but ares is maintained
  1568. for quite a while and debian already has c-ares package, ares support
  1569. will be dropped in the future version.
  1570. * configure.ac
  1571. * src/AbstractCommand.cc
  1572. * src/AsyncNameResolver.cc
  1573. * src/AsyncNameResolver.h
  1574. * src/Command.cc
  1575. * src/Command.h
  1576. * src/DownloadEngine.cc
  1577. * src/DownloadEngine.h
  1578. * src/PeerAbstractCommand.cc
  1579. * src/SocketCore.cc
  1580. * src/SocketCore.h
  1581. * src/a2io.h
  1582. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1583. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  1584. directive.
  1585. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1586. Do not do write operation to /dev/null file.
  1587. * src/LogFactory.cc
  1588. * src/SimpleLogger.cc
  1589. Replaced vasprintf with vsnprintf
  1590. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1591. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1592. * src/BtRequestMessage.cc
  1593. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  1594. for segmentation fault caused by previous commit.
  1595. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1596. Reduced the usage of gettimeofday().
  1597. * src/DefaultBtMessageDispatcher.cc
  1598. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  1599. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1600. * src/RequestSlot.cc
  1601. * src/RequestSlot.h
  1602. (RequestSlot::isTimeout)
  1603. Made RequestSlot have a reference to Piece object to avoid find
  1604. Piece repeatedly.
  1605. * src/DefaultBtMessageDispatcher.cc
  1606. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1607. * src/RequestSlot.cc
  1608. * src/RequestSlot.h
  1609. (RequestSlot::getPiece)
  1610. * test/DefaultBtMessageDispatcherTest.cc
  1611. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1612. * src/TimeA2.cc
  1613. * src/TimeA2.h
  1614. (Time::difference): New function.
  1615. (Time::elapsed): Done optimization.
  1616. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1617. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  1618. directive.
  1619. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1620. * src/option_processing.cc: Added missing `defined' keyword to #if
  1621. directive.
  1622. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1623. Bump up version number to 0.13.2+1
  1624. * src/configure.ac
  1625. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1626. Refactored broken outstanding piece handling.
  1627. * src/DefaultPieceStorage.cc
  1628. * src/DefaultPieceStorage.h
  1629. * src/Piece.cc
  1630. * src/Piece.h
  1631. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1632. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  1633. name collision of static variable and predefined macro.
  1634. * src/BtContext.cc
  1635. * src/BtContext.h
  1636. * src/CookieBoxFactory.cc
  1637. * src/CookieBoxFactory.h
  1638. * src/CookieParser.cc
  1639. * src/CookieParser.h
  1640. * src/DefaultBtContext.cc
  1641. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1642. * src/RequestGroup.cc
  1643. (RequestGroup::createInitialCommand): Use empty() instead of size().
  1644. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1645. * Release 0.13.2
  1646. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1647. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  1648. * po/fr.po
  1649. * po/ja.po
  1650. * po/aria2c.pot
  1651. * po/*.po
  1652. * po/*.gmo
  1653. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1654. Bump up version number to 0.13.2
  1655. * src/configure.ac
  1656. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1657. Refactord.
  1658. * src/RequestGroupMan.cc
  1659. (removeStoppedGroup)
  1660. (fillRequestGroupFromReserver)
  1661. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1662. Fixed compile error on Ubuntu.
  1663. * src/BtPieceMessage.cc
  1664. * src/MessageDigestHelper.cc
  1665. * src/Util.cc
  1666. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1667. Fixed compile error when configured with --disable-bittorrent
  1668. * test/DownloadHandlerFactoryTest.cc
  1669. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1670. Done make update-po
  1671. * po/aria2c.pot
  1672. * po/*.po
  1673. * po/*.gmo
  1674. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1675. Bump up version number to 0.13.2rc.
  1676. * src/configure.ac
  1677. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1678. Made option name bold. Updated SYNOPSIS to make it more readable.
  1679. * doc/aria2c.1.txt
  1680. * doc/aria2c.1
  1681. * doc/aria2c.1.html
  1682. * src/version_usage.cc
  1683. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1684. Refactored. Use std::string instead of size and char*.
  1685. * Data.cc
  1686. * Data.h
  1687. * test/Data.cc
  1688. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1689. Added trimSelf(). Rewritten trim() to use trimSelf().
  1690. * Util.cc
  1691. * Util.h
  1692. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1693. * src/ChunkChecksum.h (getChecksum): Return const reference.
  1694. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1695. Fixed compile error when configured with --disable-metalink.
  1696. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  1697. * test/FeatureConfigTest.cc
  1698. * test/DownloadHandlerFactoryTest.cc
  1699. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1700. Fixed compile error when configured with --without-gnutls
  1701. --without-openssl
  1702. * src/main.cc
  1703. * test/DefaultBtProgressInfoFileTest.cc
  1704. * test/SegmentManTest.cc
  1705. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1706. Fixed compile error with OpenSSL.
  1707. * src/IteratableChunkChecksumValidator.cc
  1708. * src/LibsslDHKeyExchange.h
  1709. * src/MessageDigestHelper.cc
  1710. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1711. Revert the default value of --max-concurrent-downloads to 5.
  1712. Revert the default value of --metalink-servers to 5.
  1713. Man pages was also updated.
  1714. * src/option_processing.cc
  1715. * doc/aria2c.1.txt
  1716. * doc/aria2c.1.html
  1717. * doc/aria2c.1
  1718. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1719. Returns const reference:
  1720. DownloadContext::getPieceHash, DownloadContext::getName,
  1721. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  1722. BtContext::getInfoHashAsString,
  1723. * src/BtContext.h
  1724. * src/DefaultBtContext.cc
  1725. * src/DefaultBtContext.h
  1726. * src/DownloadContext.h
  1727. * src/SingleFileDownloadContext.h
  1728. * test/MockBtContext.h
  1729. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1730. * src/RequestGroup.h (getDir): Removed.
  1731. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1732. Returns const reference. The internal urlencode function was optimized
  1733. a little bit.
  1734. * src/Request.cc
  1735. * src/Request.h
  1736. * src/HttpRequest.cc
  1737. * src/HttpRequest.h
  1738. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1739. Defined option name and possible values as std::string to reduce
  1740. temporary string object creation in runtime.
  1741. * src/HelpItemFactory.cc
  1742. * src/LogFactory.cc
  1743. * src/Option.cc
  1744. * src/OptionHandlerFactory.cc
  1745. * src/option_processing.cc
  1746. * src/prefs.cc
  1747. * src/prefs.h
  1748. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1749. Return const reference.
  1750. * src/DownloadHandlerConstants.cc
  1751. * src/DownloadHandlerConstants.h
  1752. (getMetalinkExtensions)
  1753. (getMetalinkContentTypes)
  1754. (getBtExtensions)
  1755. (getBtContentTypes)
  1756. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1757. * src/HttpHeader.cc (get): Rewritten.
  1758. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1759. Make HttpHeader::getFirst(...) return const reference.
  1760. * src/HttpHeader.cc
  1761. * src/HttpHeader.h
  1762. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1763. Use Option::getAsBool(...) instead of Option::get(...) and compare
  1764. it with V_TRUE.
  1765. * src/DefaultPieceStorage.cc
  1766. * src/DownloadCommand.cc
  1767. * src/FtpNegotiationCommand.cc
  1768. * src/HttpRequest.cc
  1769. * src/InitiateConnectionCommand.cc
  1770. * src/RequestGroup.cc
  1771. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. Made Option::get(...) return const reference of std::string.
  1773. * src/Option.cc
  1774. * src/Option.h
  1775. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1776. Replaced std:copy with insert.
  1777. * src/DefaultBtMessageDispatcher.cc
  1778. * src/DefaultPieceStorage.cc
  1779. * src/DownloadEngineFactory.cc
  1780. * src/RequestGroup.cc
  1781. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1782. Included SocketCore.h to fix compiler warning.
  1783. * src/InitiateConnectionCommand.cc
  1784. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1785. Put piece selection strategy algorithm to RarestPieceSelector class,
  1786. Added a switch to choose whether randomized selection so that unit
  1787. tests emit same results in, possibly, win32.
  1788. * src/DefaultPieceStorage.cc
  1789. * src/DefaultPieceStorage.h
  1790. * src/RarestPieceSelector.cc
  1791. * src/RarestPieceSelector.h
  1792. * test/DefaultPieceStorageTest.cc
  1793. * test/RarestPieceSelectorTest.cc
  1794. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1795. Don't pool connection if HTTP proxy is enabled.
  1796. * src/FtpFinishDownloadCommand.cc
  1797. * src/FtpNegotiationCommand.cc
  1798. * src/HttpSkipResponseCommand.cc
  1799. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1800. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  1801. * src/AbstractCommand.cc
  1802. * src/AbstractCommand.h
  1803. * src/ActivePeerConnectionCommand.cc
  1804. * src/FtpInitiateConnectionCommand.cc
  1805. * src/HttpInitiateConnectionCommand.cc
  1806. * src/InitiateConnectionCommandFactory.cc
  1807. * src/PeerAbstractCommand.cc
  1808. * src/PeerAbstractCommand.h
  1809. * src/PeerInitiateConnectionCommand.cc
  1810. * src/TrackerWatcherCommand.cc
  1811. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1812. Sort RequestSlot in ascending order and manipulate them using
  1813. lower_bound.
  1814. * src/DefaultBtMessageDispatcher.cc
  1815. * src/DefaultBtMessageDispatcher.h
  1816. (getMessageQueue): Added const qualifier.
  1817. (getRequestSlots): Added const qualifier.
  1818. (sendMessages): Use empty() instead of size().
  1819. (doCancelSendingPieceAction): Use HandleEvent object.
  1820. (doAbortOutstandingRequestAction): Rewritten.
  1821. (doChokedAction): Rewritten.
  1822. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  1823. (isOutstandingRequest): Rewritten.
  1824. (getOutstandingRequest): Rewritten.
  1825. (removeOutstandingRequest): Rewritten.
  1826. (addOutstandingRequest): Rewritten.
  1827. * src/RequestSlot.cc
  1828. * src/RequestSlot.h
  1829. (operator=): Rewritten.
  1830. (operator!=): New function.
  1831. (operator<): New function.
  1832. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1833. * src/DefaultBtRequestFactory.cc
  1834. (doChokedAction): Rewritten.
  1835. (removeCompletedPiece): Rewritten.
  1836. (removeTargetPiece): Rewritten.
  1837. (createRequestMessages): Added the debug log.
  1838. (createRequestMessagesOnEndGame: Added the debug log.
  1839. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1840. Added the debug log message.
  1841. * src/BtPieceMessage.cc (doReceivedAction)
  1842. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1843. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  1844. used lower_bound to process them rather than linear search.
  1845. * src/DHTPeerAnnounceStorage.cc
  1846. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1847. Call subtractPieceStats from ~PeerInteractionCommand only when the
  1848. peer has at least one completed piece.
  1849. * src/Peer.cc
  1850. * src/Peer.h
  1851. * src/PeerInteractionCommand.cc
  1852. * src/PeerSessionResource.cc
  1853. * src/PeerSessionResource.h
  1854. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1855. Removed unnecessary sorting
  1856. * src/DefaultPieceStorage (DefaultPieceStorage)
  1857. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1858. Rewritten the portion of the code that mangaes allowed fast indexes.
  1859. * src/PeerSessionResource.cc
  1860. * src/PeerSessionResource.h
  1861. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1862. Removed the invalid string including '\r' from ru.po and
  1863. did make update-po.
  1864. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1865. Added --log-level and --summary-interval to man page.
  1866. * doc/aria2c.1.txt
  1867. * doc/aria2c.1.html
  1868. * doc/aria2c.1
  1869. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1870. Added --log-level option to specify log level. Log messages under
  1871. the specified level are not output. Default value is `debug'.
  1872. * src/HelpItemFactory.cc
  1873. * src/LogFactory.cc
  1874. * src/LogFactory.h
  1875. * src/Logger.h
  1876. * src/OptionHandlerFactory.cc
  1877. * src/SimpleLogger.cc
  1878. * src/SimpleLogger.h
  1879. * src/main.cc
  1880. * src/option_processing.cc
  1881. * src/prefs.h
  1882. * src/usage_text.h
  1883. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1884. Print download progress summary of all parallel downloads in specified
  1885. interval, default 60 secs. While aria2 could download several files
  1886. in parallel (see -j option), it displayed just first download progress,
  1887. and the other downloads are hidden from the users. This new feature
  1888. prints all downloads currently in-progress to the console so that you
  1889. can check the status of all downloads. The interval can be adjusted
  1890. by --summary-interval option.
  1891. The progress readout is now cut so that all fits in the one line of
  1892. console.
  1893. * src/ConsoleStatCalc.cc
  1894. * src/ConsoleStatCalc.h
  1895. * src/HelpItemFactory.cc
  1896. * src/OptionHandlerFactory.cc
  1897. * src/RequestGroupMan.cc
  1898. * src/RequestGroupMan.h
  1899. * src/main.cc
  1900. * src/option_processing.cc
  1901. * src/prefs.h
  1902. * src/usage_text.h
  1903. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1904. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  1905. * src/DownloadEngine.cc (DownloadEngine)
  1906. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1907. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  1908. defined.
  1909. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  1910. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1911. Use erase+lower_bound+insert instead of sort.
  1912. * src/DefaultPieceStorage.cc (addPieceStats)
  1913. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1914. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  1915. * src/A2STR.cc
  1916. * src/A2STR.h
  1917. * src/OptionParser.cc (parse)
  1918. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1919. Defined fake filename `[tracker.announce]' as static const std::string.
  1920. * src/TrackerWatcherCommand.cc (createRequestGroup)
  1921. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Defined default filename `index.html' as static const std::string
  1923. * src/SingleFileDownloadContext.cc
  1924. * src/SingleFileDownloadContext.h
  1925. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1926. Defined "[MEMORY]" as static const std::string.
  1927. * src/MemoryBufferPreDownloadHandler.cc (execute)
  1928. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1929. Defined control file's version number as static const std::string.
  1930. * src/DefaultBtProgressInfoFile.cc
  1931. * src/DefaultBtProgressInfoFile.h
  1932. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1933. Use Request::METHOD_GET
  1934. * src/RequestGroup.cc (createNextCommandWithAdj)
  1935. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1936. Defined "OK", "ERR", "INPR" as static const std::string
  1937. * src/RequestGroupMan.cc (showDownloadResults)
  1938. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1939. Defined default client used in extended handshake as static const
  1940. std::string
  1941. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  1942. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1943. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  1944. * src/HttpConnection.cc (eraseConfidentialInfo)
  1945. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1946. Defined default ftp user and password as static const std::string
  1947. * src/AuthConfigFactory.cc
  1948. * src/AuthConfigFactory.h
  1949. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1950. Defined strings used in netrc as static const std::string
  1951. * src/Netrc.cc
  1952. * src/Netrc.h
  1953. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1954. Defined HTTP status as static const std::string
  1955. * src/AbstractProxyResponseCommand.cc
  1956. * src/HttpHeader.cc
  1957. * src/HttpHeader.h
  1958. * src/HttpResponse.cc
  1959. * src/HttpResponseCommand.cc
  1960. * src/HttpSkipResponseCommand.cc
  1961. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1962. Defined "\r\n", "A", "I" as static const std::string
  1963. * src/A2STR.cc
  1964. * src/A2STR.h
  1965. * src/FtpConnection.cc
  1966. * src/FtpConnection.h
  1967. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1968. Added COLON_C(".") and used it in Request::parseUrl()
  1969. * src/A2STR.cc
  1970. * src/A2STR.h
  1971. * src/Request.cc (parseUrl)
  1972. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1973. Changed the type of padName from `const std::string&' to `const char*'.
  1974. * src/MSEHandshake.cc (verifyPadLength)
  1975. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1976. Defined "sha1" as static const std::string.
  1977. * src/MetalinkParserController.cc
  1978. * src/MetalinkParserController.h
  1979. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1980. Defined message digest algorithm name as static const std::string
  1981. * src/DHTTokenTracker.cc
  1982. * src/DHTUtil.cc
  1983. * src/DefaultBtContext.cc
  1984. * src/MSEHandshake.cc
  1985. * src/MessageDigestHelper.cc
  1986. * src/Peer.cc
  1987. * src/messageDigest.cc
  1988. * src/messageDigest.h
  1989. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1990. Made string literals used in SAX parser static const std::string.
  1991. * src/FileMetalinkParserState.cc
  1992. * src/FileMetalinkParserState.h
  1993. * src/FilesMetalinkParserState.cc
  1994. * src/FilesMetalinkParserState.h
  1995. * src/InitialMetalinkParserState.cc
  1996. * src/InitialMetalinkParserState.h
  1997. * src/MetalinkMetalinkParserState.cc
  1998. * src/MetalinkMetalinkParserState.h
  1999. * src/PiecesMetalinkParserState.cc
  2000. * src/PiecesMetalinkParserState.h
  2001. * src/ResourcesMetalinkParserState.cc
  2002. * src/ResourcesMetalinkParserState.h
  2003. * src/VerificationMetalinkParserState.cc
  2004. * src/VerificationMetalinkParserState.h
  2005. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2006. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2007. * src/A2STR.cc
  2008. * src/A2STR.h
  2009. * src/File.cc
  2010. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2011. Defined static const std::string IP("ip"), PORT("port") and use them
  2012. instead of string literals.
  2013. * src/DefaultPeerListProcessor.cc
  2014. * src/DefaultPeerListProcessor.h
  2015. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2016. Made string literals for torrent file processing static const
  2017. std::string.
  2018. * src/BtContext.cc
  2019. * src/BtContext.h
  2020. * src/DefaultBtContext.cc
  2021. * src/DefaultBtContext.h
  2022. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2023. Made string literal for tracker response static const std::string
  2024. * src/BtAnnounce.cc
  2025. * src/BtAnnounce.h
  2026. * src/DefaultBtAnnounce.cc
  2027. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2028. Use DHTMessage::T instead of "t".
  2029. * src/DHTMessageTracker.cc (messageArrived)
  2030. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2031. Made keyName static const. Made trimmed charset static const
  2032. std::string.
  2033. * src/Util.cc (getContentDispositionFilename)
  2034. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2035. Made USER_AGENT const. Made "/" static const std::string.
  2036. * src/A2STR.cc
  2037. * src/A2STR.h
  2038. * src/HttpRequest.cc
  2039. * src/HttpRequest.h
  2040. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2041. Made string listeral to static const std::string:
  2042. "Content-Range", "Content-Length"
  2043. * src/HttpHeader.cc
  2044. * src/HttpHeader.h
  2045. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2046. Made string listeral to static const std::string.
  2047. * src/HttpConnection.cc
  2048. * src/HttpHeader.cc
  2049. * src/HttpHeader.h
  2050. * src/HttpResponse.cc
  2051. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2052. Made string listeral to static const std::string.
  2053. * src/A2STR.cc
  2054. * src/A2STR.h
  2055. * src/SimpleLogger.cc
  2056. * src/SimpleLogger.h
  2057. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2058. Made string literal to static const std::string.
  2059. Rewritten CookieParser::setField.
  2060. * src/A2STR.cc
  2061. * src/A2STR.h
  2062. * src/CookieBoxFactory.cc
  2063. * src/CookieBoxFactory.h
  2064. * src/CookieParser.cc
  2065. * src/CookieParser.h
  2066. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2067. Made string literal to static const std::string
  2068. * src/DHTAbstractMessage.cc
  2069. * src/DHTAnnouncePeerMessage.cc
  2070. * src/DHTAnnouncePeerMessage.h
  2071. * src/DHTAnnouncePeerReplyMessage.cc
  2072. * src/DHTAnnouncePeerReplyMessage.h
  2073. * src/DHTFindNodeMessage.cc
  2074. * src/DHTFindNodeMessage.h
  2075. * src/DHTFindNodeReplyMessage.cc
  2076. * src/DHTFindNodeReplyMessage.h
  2077. * src/DHTGetPeersMessage.cc
  2078. * src/DHTGetPeersMessage.h
  2079. * src/DHTGetPeersReplyMessage.cc
  2080. * src/DHTGetPeersReplyMessage.h
  2081. * src/DHTMessage.cc
  2082. * src/DHTMessage.h
  2083. * src/DHTMessageFactoryImpl.cc
  2084. * src/DHTMessageReceiver.cc
  2085. * src/DHTPingMessage.cc
  2086. * src/DHTPingMessage.h
  2087. * src/DHTPingReplyMessage.cc
  2088. * src/DHTPingReplyMessage.h
  2089. * src/DHTQueryMessage.cc
  2090. * src/DHTQueryMessage.h
  2091. * src/DHTResponseMessage.cc
  2092. * src/DHTResponseMessage.h
  2093. * src/DHTUnknownMessage.cc
  2094. * src/DHTUnknownMessage.h
  2095. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2096. Made string literal to static const std::string
  2097. * src/BtChokeMessage.cc (toString)
  2098. * src/BtHaveAllMessage.cc (toString)
  2099. * src/BtHaveNoneMessage.cc (toString)
  2100. * src/BtInterestedMessage.cc (toString)
  2101. * src/BtNotInterestedMessage.cc (toString)
  2102. * src/BtUnchokeMessage.cc (toString)
  2103. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2104. Replaced "" with static const variable A2STR::NIL.
  2105. Replaced string comparison against "" with std::string::empty().
  2106. Added PROTO_* to Request class and use them as a protocol string
  2107. constant.
  2108. Made "started", "stopped", "completed" static const variable in
  2109. AnnounceList class.
  2110. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2111. Updated translations. Great thanks to translators.
  2112. * po/ca.po
  2113. * po/de.po
  2114. * po/fr.po
  2115. * po/it.po
  2116. * po/ja.po
  2117. * po/ru.po
  2118. * po/zh_CN.po
  2119. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2120. Updated man page; categorized options and fixed typo.
  2121. * doc/aria2c.1.txt
  2122. * doc/aria2c.1.html
  2123. * doc/aria2c.1
  2124. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2125. Removed const ref
  2126. * src/MetalinkEntry.cc (AddProtocolPreference)
  2127. * src/RequestGroup.cc (FindServerHostByHostname)
  2128. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2129. Rewritten Accept-Features handling.
  2130. * src/HttpRequestCommand.cc (createHttpRequest)
  2131. * src/a2functional.h
  2132. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2133. Changed method signature:
  2134. DHTAbstractNodeLookupTask::toEntries
  2135. * src/DHTAbstractNodeLookupTask.cc
  2136. * src/DHTAbstractNodeLookupTask.h
  2137. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2138. Changed method signature:
  2139. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2140. * src/BtContext.h
  2141. * src/DefaultBtContext.cc
  2142. * src/DefaultBtContext.h
  2143. * src/DefaultBtInteractive.cc
  2144. * test/DefaultBtContextTest.cc
  2145. * test/MockBtContext.h
  2146. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2147. Changed method signature:
  2148. MultiFileAllocationIterator::makeDiskWriterEntries
  2149. * src/MultiFileAllocationIterator.cc
  2150. * src/MultiFileAllocationIterator.h
  2151. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2152. Changed method sinature:
  2153. MetalinkEntry::toFileEntry,
  2154. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2155. Metalinker::queryEntry
  2156. * src/Metalink2RequestGroup.cc
  2157. * src/MetalinkEntry.cc
  2158. * src/MetalinkEntry.h
  2159. * src/MetalinkHelper.cc
  2160. * src/MetalinkHelper.h
  2161. * src/Metalinker.cc
  2162. * src/Metalinker.h
  2163. * src/main.cc
  2164. * test/MetalinkHelperTest.cc
  2165. * test/MetalinkerTest.cc
  2166. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2167. Changed method sinature:
  2168. RequestGroup::getURIs
  2169. * src/RequestGroup.cc
  2170. * src/RequestGroup.h
  2171. * test/Metalink2RequestGroupTest.cc
  2172. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2173. Changed method signature:
  2174. PeerListProcessor::extractPeer
  2175. * src/CompactPeerListProcessor.cc
  2176. * src/CompactPeerListProcessor.h
  2177. * src/DefaultBtAnnounce.cc
  2178. * src/DefaultPeerListProcessor.cc
  2179. * src/DefaultPeerListProcessor.h
  2180. * src/DelegatingPeerListProcessor.cc
  2181. * src/DelegatingPeerListProcessor.h
  2182. * src/PeerListProcessor.h
  2183. * src/UTPexExtensionMessage.cc
  2184. * test/DefaultPeerListProcessorTest.cc
  2185. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2186. Changed method signature:
  2187. BtRequestFactory::createRequestMessages,
  2188. BtRequestFactory::createRequestMessagesOnEndGame
  2189. * src/BtRequestFactory.h
  2190. * src/DefaultBtInteractive.cc
  2191. * src/DefaultBtRequestFactory.cc
  2192. * src/DefaultBtRequestFactory.h
  2193. * test/DefaultBtRequestFactoryTest.cc
  2194. * test/MockBtRequestFactory.h
  2195. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2196. Changed method signature:
  2197. PieceStorage::getInFlightPieces
  2198. * src/DefaultBtProgressInfoFile.cc
  2199. * src/DefaultPieceStorage.cc
  2200. * src/DefaultPieceStorage.h
  2201. * src/PieceStorage.h
  2202. * src/UnknownLengthPieceStorage.cc
  2203. * src/UnknownLengthPieceStorage.h
  2204. * test/DefaultBtProgressInfoFileTest.cc
  2205. * test/MockPieceStorage.h
  2206. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2207. Changed method signature:
  2208. PostDownloadHandler::getNextRequestGroups
  2209. Metalink2RequestGroup::generate
  2210. RequestGroup::postDownloadProcessing
  2211. * src/BtPostDownloadHandler.cc
  2212. * src/BtPostDownloadHandler.h
  2213. * src/Metalink2RequestGroup.cc
  2214. * src/Metalink2RequestGroup.h
  2215. * src/MetalinkPostDownloadHandler.cc
  2216. * src/MetalinkPostDownloadHandler.h
  2217. * src/PostDownloadHandler.h
  2218. * src/RequestGroup.cc
  2219. * src/RequestGroup.h
  2220. * src/RequestGroupMan.cc
  2221. * src/main.cc
  2222. * test/BtPostDownloadHandlerTest.cc
  2223. * test/Metalink2RequestGroupTest.cc
  2224. * test/MetalinkPostDownloadHandlerTest.cc
  2225. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2226. Rewritten AccRequestGroup
  2227. * src/main.cc
  2228. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2229. Rewritten.
  2230. * src/TaggedItem.cc (toTagString)
  2231. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2232. Rewritten Accept-Features handling.
  2233. * src/HttpRequestCommand.cc (createHttpRequest)
  2234. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2235. Rewritten accept types handling.
  2236. * HttpRequest.cc (createRequest)
  2237. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2238. Rewritten
  2239. * src/FeatureConfig.cc (featureSummary)
  2240. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2241. Changed method signature:
  2242. PeerStorage::getActivePeers
  2243. * src/DHTPeerAnnounceEntry.cc
  2244. * src/DefaultPeerStorage.cc
  2245. * src/DefaultPeerStorage.h
  2246. * src/PeerStorage.h
  2247. * test/DefaultPeerStorageTest.cc
  2248. * test/MockPeerStorage.h
  2249. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2250. Changed method signature:
  2251. DHTPeerAnnounceStorage::getPeers,
  2252. DHTPeerAnnounceEntry::getPeers
  2253. * src/DHTGetPeersMessage.cc
  2254. * src/DHTPeerAnnounceEntry.cc
  2255. * src/DHTPeerAnnounceEntry.h
  2256. * src/DHTPeerAnnounceStorage.cc
  2257. * src/DHTPeerAnnounceStorage.h
  2258. * test/DHTAnnouncePeerMessageTest.cc
  2259. * test/DHTPeerAnnounceEntryTest.cc
  2260. * test/DHTPeerAnnounceStorageTest.cc
  2261. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2262. Changed method signature:
  2263. NameResolver::resolve
  2264. * src/DHTEntryPointNameResolveCommand.cc
  2265. * src/InitiateConnectionCommand.cc
  2266. * src/NameResolver.cc
  2267. * src/NameResolver.h
  2268. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2269. Changed method signature:
  2270. PieceStorage::getAdvertisedPieceIndexes
  2271. * src/DefaultBtInteractive.cc
  2272. * src/DefaultPieceStorage.cc
  2273. * src/DefaultPieceStorage.h
  2274. * src/PieceStorage.h
  2275. * src/UnknownLengthPieceStorage.h
  2276. * test/MockPieceStorage.h
  2277. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2278. Changed method signature:
  2279. SegmentMan::getInFlightSegment
  2280. * src/AbstractCommand.cc
  2281. * src/SegmentMan.cc
  2282. * src/SegmentMan.h
  2283. * test/SegmentManTest.cc
  2284. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2285. Changed method signature:
  2286. DHTAbstractNodeLookupTask::getNodesFromMessage
  2287. * src/DHTAbstractNodeLookupTask.cc
  2288. * src/DHTAbstractNodeLookupTask.h
  2289. * src/DHTNodeLookupTask.cc
  2290. * src/DHTNodeLookupTask.h
  2291. * src/DHTPeerLookupTask.cc
  2292. * src/DHTPeerLookupTask.h
  2293. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2294. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2295. * src/AbstractCommand.cc
  2296. * src/BtCheckIntegrityEntry.cc
  2297. * src/BtCheckIntegrityEntry.h
  2298. * src/BtFileAllocationEntry.cc
  2299. * src/BtFileAllocationEntry.h
  2300. * src/BtSetup.cc
  2301. * src/BtSetup.h
  2302. * src/CheckIntegrityCommand.cc
  2303. * src/CheckIntegrityEntry.h
  2304. * src/ChecksumCheckIntegrityEntry.cc
  2305. * src/ChecksumCheckIntegrityEntry.h
  2306. * src/DHTSetup.cc
  2307. * src/DHTSetup.h
  2308. * src/DownloadEngine.cc
  2309. * src/FileAllocationCommand.cc
  2310. * src/FileAllocationEntry.h
  2311. * src/RequestGroup.cc
  2312. * src/RequestGroup.h
  2313. * src/RequestGroupMan.cc
  2314. * src/RequestGroupMan.h
  2315. * src/StreamCheckIntegrityEntry.cc
  2316. * src/StreamCheckIntegrityEntry.h
  2317. * src/StreamFileAllocationEntry.cc
  2318. * src/StreamFileAllocationEntry.h
  2319. * src/TrackerWatcherCommand.cc
  2320. * src/a2functional.h
  2321. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2322. Changed method signature:
  2323. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2324. DHTBucket::getGoodNodes,
  2325. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2326. * src/BNode.cc
  2327. * src/BNode.h
  2328. * src/DHTAbstractNodeLookupTask.cc
  2329. * src/DHTAutoSaveCommand.cc
  2330. * src/DHTBucket.cc
  2331. * src/DHTBucket.h
  2332. * src/DHTBucketRefreshTask.cc
  2333. * src/DHTFindNodeMessage.cc
  2334. * src/DHTGetPeersMessage.cc
  2335. * src/DHTRoutingTable.cc
  2336. * src/DHTRoutingTable.h
  2337. * test/BNodeTest.cc
  2338. * test/DHTBucketTest.cc
  2339. * test/DHTRoutingTableTest.cc
  2340. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2341. In piece selection functions, Pass std::deque<...> by reference rather
  2342. than returning it.
  2343. * src/BitfieldMan.cc
  2344. * src/BitfieldMan.h
  2345. * src/DefaultBtRequestFactory.cc
  2346. * src/DefaultPieceStorage.cc
  2347. * src/Piece.cc
  2348. * src/Piece.h
  2349. * test/BitfieldManTest.cc
  2350. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Implemented rarest piece first piece selection strategy.
  2352. * src/AbstractBtMessage.cc
  2353. * src/AbstractBtMessage.h
  2354. * src/BitfieldMan.cc
  2355. * src/BitfieldMan.h
  2356. * src/BtBitfieldMessage.cc
  2357. * src/BtHaveAllMessage.cc
  2358. * src/BtHaveMessage.cc
  2359. * src/DefaultPieceStorage.cc
  2360. * src/DefaultPieceStorage.h
  2361. * src/PeerInteractionCommand.cc
  2362. * src/PieceStorage.h
  2363. * src/UnknownLengthPieceStorage.h
  2364. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2365. Rewritten readData and writeData.
  2366. * src/MultiDiskAdaptor.cc
  2367. * src/MultiDiskAdaptor.h
  2368. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2369. Move \n out of the message "Usage: ...".
  2370. * src/version_usage.cc
  2371. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2372. Bump up version number to 0.13.2b.
  2373. * configure.ac
  2374. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2375. Added const qualifier to argument Exception& e.
  2376. * src/Logger.h
  2377. * src/SimpleLogger.cc
  2378. * src/SimpleLogger.h
  2379. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2380. Pool connection when CWD, SIZE command fails.
  2381. * src/FtpNegotiationCommand.cc
  2382. * src/FtpNegotiationCommand.h
  2383. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2384. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2385. * src/HttpResponseCommand.cc
  2386. * src/HttpSkipResponseCommand.cc
  2387. * src/HttpSkipResponseCommand.h
  2388. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2389. Pool connection when a server returns 4xx, 5xx responses.
  2390. * src/HttpNullDownloadCommand.cc
  2391. * src/HttpNullDownloadCommand.h
  2392. * src/HttpResponse.cc
  2393. * src/HttpResponse.h
  2394. * src/HttpResponseCommand.cc
  2395. * src/HttpResponseCommand.h
  2396. * test/HttpResponseTest.cc
  2397. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2398. Print usage when no URL is specifed or bad command-line option is
  2399. specified.
  2400. * src/HelpItemFactory.cc
  2401. * src/help_tags.h
  2402. * src/option_processing.cc
  2403. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2404. Removed duplicate log message.
  2405. * src/AbstractCommand.cc (asyncResolveHostname)
  2406. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Updated man page: --async-dns and --ftp-reuse-connection were added.
  2408. Changed -j option's default value from 5 to 1.
  2409. Added new examples using protocol auto detection feature.
  2410. Removed -T, -M usage where it can be omitted.
  2411. * doc/aria2c.1.txt
  2412. * doc/aria2c.1.html
  2413. * doc/aria2c.1.txt
  2414. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Updated command-line usage text, so that it tells users that they
  2416. can specify any number of torrent files and metalink files in
  2417. command-line.
  2418. * src/version_usage.cc
  2419. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2420. Changed the default value of -j option to 1.
  2421. * src/HelpItemFactory.cc
  2422. * src/option_processing.cc
  2423. * src/usage_text.h
  2424. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. Added the ability to reuse connection in FTP and it is enabled by
  2426. default. It can be disabled by --ftp-reuse-connection=false option.
  2427. * src/Command.cc
  2428. * src/DownloadCommand.cc
  2429. * src/FtpDownloadCommand.cc
  2430. * src/FtpDownloadCommand.h
  2431. * src/FtpFinishDownloadCommand.cc
  2432. * src/FtpFinishDownloadCommand.h
  2433. * src/FtpInitiateConnectionCommand.cc
  2434. * src/FtpNegotiationCommand.cc
  2435. * src/FtpNegotiationCommand.h
  2436. * src/HelpItemFactory.cc
  2437. * src/Makefile.am
  2438. * src/Makefile.in
  2439. * src/OptionHandlerFactory.cc
  2440. * src/option_processing.cc
  2441. * src/prefs.h
  2442. * src/usage_text.h
  2443. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2444. Call Command::transitStatus() before calling Command::execute(),
  2445. so that the status change made in execute() is not cleared.
  2446. * src/DownloadEngine.cc
  2447. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2448. Removed forward declaration of SocketCore class.
  2449. * src/HttpDownloadCommand.h
  2450. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2451. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  2452. in InitiateConnectionCommandFactory. They should be set only when
  2453. the protocol is HTTP or HTTPS.
  2454. * src/InitiateConnectionCommandFactory.cc
  2455. * src/RequestGroup.cc
  2456. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2457. Fixed infinite loop in checksum checking.
  2458. * src/IteratableChecksumValidator.cc
  2459. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2460. Set _supportsPersistentConnection to true by default.
  2461. * src/Request.cc
  2462. * src/RequestGroup.cc
  2463. * test/HttpRequestTest.cc
  2464. * test/RequestTest.cc
  2465. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2466. Added timeout to socket pool. The default timeout is 15 seconds,
  2467. which is the same value Apache uses.
  2468. * src/DownloadEngine.cc
  2469. * src/DownloadEngine.h
  2470. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2471. Fixed misuse of multimap::find()
  2472. * src/HttpHeader.cc
  2473. * test/HttpHeaderTest.cc
  2474. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2475. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  2476. option.
  2477. The asynchronous DNS is not capable of IPv6 yet.
  2478. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  2479. least for HTTP download.
  2480. * src/AbstractCommand.cc
  2481. * src/AbstractCommand.h
  2482. * src/AsyncNameResolver.cc
  2483. * src/AsyncNameResolver.h
  2484. * src/DHTEntryPointNameResolveCommand.cc
  2485. * src/DHTEntryPointNameResolveCommand.h
  2486. * src/DownloadEngine.cc
  2487. * src/DownloadEngine.h
  2488. * src/FtpInitiateConnectionCommand.cc
  2489. * src/FtpInitiateConnectionCommand.h
  2490. * src/HelpItemFactory.cc
  2491. * src/HttpInitiateConnectionCommand.cc
  2492. * src/HttpInitiateConnectionCommand.h
  2493. * src/InitiateConnectionCommand.cc
  2494. * src/InitiateConnectionCommand.h
  2495. * src/Makefile.am
  2496. * src/Makefile.in
  2497. * src/NameResolver.cc
  2498. * src/NameResolver.h
  2499. * src/OptionHandlerFactory.cc
  2500. * src/SocketCore.cc
  2501. * src/SocketCore.h
  2502. * src/Util.cc
  2503. * src/Util.h
  2504. * src/option_processing.cc
  2505. * src/prefs.h
  2506. * src/usage_text.h
  2507. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2508. Updated man page: --quiet, --header were added.
  2509. --metalink-servers and --enable-http-keep-alive option were updated.
  2510. * doc/aria2c.1
  2511. * doc/aria2c.1.html
  2512. * doc/aria2c.1.txt
  2513. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2514. Enable HTTP keep-alive by default.
  2515. * src/HelpItemFactory.cc
  2516. * src/option_processing.cc
  2517. * src/usage_text.h
  2518. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2519. Disable http keep-alive if the remote server is not HTTP/1.1.
  2520. * src/HttpConnection.cc
  2521. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2522. Receive content body of 302 response so that the connection can be
  2523. reused later when http keep-alive is enabled.
  2524. * src/HttpNullDownloadCommand.cc
  2525. * src/HttpNullDownloadCommand.h
  2526. * src/HttpResponseCommand.cc
  2527. * src/HttpResponseCommand.h
  2528. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2529. const SharedHandle<Request> -> const SharedHandle<Request>&
  2530. * src/FtpDowndloadCommand.cc
  2531. * src/FtpDowndloadCommand.h
  2532. * src/HttpDownloadCommand.cc
  2533. * src/HttpDownloadCommand.h
  2534. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2535. Fixed the bug that the control file(.aria2 file) is not renamed
  2536. according to tryAutoFileRenaming().
  2537. tryAutoFileRenaming() was rewritten so that if both renamed file and
  2538. its control file exist, use them and continue download.
  2539. The old implementation didn't take into account of control file's
  2540. existence, so basically you couldn't continue download of renamed file.
  2541. * src/BtProgressInfoFile.h
  2542. * src/DefaultBtProgressInfoFile.cc
  2543. * src/DefaultBtProgressInfoFile.h
  2544. * src/NullProgressInfoFile.h
  2545. * src/RequestGroup.cc
  2546. * test/DefaultBtProgressInfoFileTest.cc
  2547. * test/MockBtProgressInfoFile.h
  2548. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2549. Change the default value of --metalink-servers option from `5' to `1'.
  2550. * src/HelpItemFactory.cc
  2551. * src/option_processing.cc
  2552. * src/usage_text.h
  2553. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. Reimplemented transparent metalink using Accept request header.
  2555. * src/HttpRequest.cc
  2556. * src/HttpRequest.h
  2557. * src/HttpRequestCommand.cc
  2558. * src/Metalink2RequestGroup.cc
  2559. * src/RequestGroup.cc
  2560. * src/RequestGroup.h
  2561. * test/HttpRequestTest.cc
  2562. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2563. Bump up version number to 0.13.2a
  2564. * configure.ac
  2565. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2566. Updated configure.ac using the result of autoscan.
  2567. * configure.ac
  2568. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2569. Fixed compilation error without gcrypt/openssl.
  2570. * src/DownloadCommand.cc
  2571. * src/DownloadCommand.h
  2572. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2573. Reorganized version information so that it can be displayed in a
  2574. standard terminal screen without scrolling.
  2575. Removed http, ftp from Configuration section, because they are always
  2576. enabled.
  2577. * src/FeatureConfig.cc
  2578. * src/FeatureConfig.h
  2579. * src/main.cc
  2580. * src/messageDigest.cc
  2581. * src/messageDigest.h
  2582. * src/version_usage.cc
  2583. * test/FeatureConfigTest.cc
  2584. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2585. Masked user ID in log.
  2586. * src/FtpConnection.cc (sendUser)
  2587. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2588. Removed query part from filename in HTTP download. The query part means
  2589. the substring after "?" in URL. Firefox seems do the same thing.
  2590. A query part is sometimes very long and not suitable to filename,
  2591. so I think it is better to remove it from filename.
  2592. * src/HttpRequest.cc
  2593. * src/HttpRequest.h
  2594. * src/Request.cc
  2595. * src/Request.h
  2596. * test/HttpRequestTest.cc
  2597. * test/RequestTest.cc
  2598. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2599. Rewritten Exception class. Throw exception object, not its pointer and
  2600. catch by reference, so that remove problematic delete operator for
  2601. catched exception.
  2602. * src/Exception.cc
  2603. * src/Exception.h
  2604. * test/ExceptionTest.cc
  2605. * src/*: All files throwing/catching exception.
  2606. * test/*: All files throwing/catching exception.
  2607. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2608. Now auto protocol detection is enabled without -Z option.
  2609. But there is a important difference between with/without -Z optoin.
  2610. For example, if you type:
  2611. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  2612. then, aria2 interprets there are 3 request groups:
  2613. (1) http://host/file, http://mirror/file <-- multi-source download
  2614. (2) file1.torrent
  2615. (3) file2.metalink
  2616. On the other hand, if you invoke above command with -Z option, it is
  2617. interpreted as 4 request groups:
  2618. (1) http://host/file
  2619. (2) file1.torrent
  2620. (3) file2.metalink
  2621. (4) http://mirror/file
  2622. I think usually user don't mix multi-source URLs and torrent files, so
  2623. there is no big problem here.
  2624. * src/main.cc
  2625. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2626. Fixed the bug that causes segmentaion fault when reading XML containing
  2627. unescapsed character like '&'.
  2628. Also a modification was made which avoids adding unnecessary
  2629. characters stack and appending unused string.
  2630. * src/ExpatMetalinkProcessor.cc
  2631. * src/FileMetalinkParserState.h
  2632. * src/FilesMetalinkParserState.h
  2633. * src/FinMetalinkParserState.h
  2634. * src/HashMetalinkParserState.h
  2635. * src/InitialMetalinkParserState.h
  2636. * src/LanguageMetalinkParserState.h
  2637. * src/MetalinkMetalinkParserState.h
  2638. * src/MetalinkParserState.h
  2639. * src/MetalinkParserStateMachine.cc
  2640. * src/MetalinkParserStateMachine.h
  2641. * src/OSMetalinkParserState.h
  2642. * src/PieceHashMetalinkParserState.h
  2643. * src/PiecesMetalinkParserState.h
  2644. * src/ResourcesMetalinkParserState.h
  2645. * src/SizeMetalinkParserState.h
  2646. * src/SkipTagMetalinkParserState.h
  2647. * src/URLMetalinkParserState.h
  2648. * src/VerificationMetalinkParserState.h
  2649. * src/VersionMetalinkParserState.h
  2650. * src/XML2SAXMetalinkProcessor.cc
  2651. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2652. Added StringFormat class, which internally calls vasprintf.
  2653. operator<< is defined for this class, so it can be used with iostream
  2654. classes nicely. SimpleLogger and following functions are rewritten
  2655. using StringFormat class.
  2656. Besides, now Logger class's methods are non-const, many classes
  2657. that has a const Logger* as a member variable are modified to remove
  2658. const qualifier from the variable declaration.
  2659. * src/HelpItemFactory.cc
  2660. * src/Request.cc
  2661. * src/SimpleLogger.cc
  2662. * src/StringFormat.cc
  2663. * src/StringFormat.h
  2664. * src/Util.cc
  2665. * src/option_processing.cc
  2666. * src/version_usage.cc
  2667. * test/StringFormatTest.cc
  2668. * src/*.h: The classes that has const Logger* as a member variable.
  2669. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2670. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  2671. failed. Also fixed memory link when exception is thrown there.
  2672. * src/main.cc (AccRequestGroup)
  2673. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2674. Added build-in "Accept-Features" support. For now only "metalink" is
  2675. used in this header field.
  2676. This "metalink" value is removed from the list when connecting URLs
  2677. fed by metalink file to avoid loop in "transparent" metlaink.
  2678. * src/HttpRequest.cc
  2679. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  2680. header is also held in this variable. Also renamed setUserHeaders as
  2681. addHeader and it was rewritten to add header not just to clear the old
  2682. value.
  2683. * src/HttpRequestCommand.cc
  2684. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  2685. from "Accept-Features" list.
  2686. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  2687. default.
  2688. * src/RequestGroup.h
  2689. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  2690. * src/a2functional.h: Included <string> because Concat class depends on
  2691. it.
  2692. * test/HttpRequestTest.cc
  2693. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2694. Added comment
  2695. * src/RequestGroup.cc (createNextCommand)
  2696. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2697. Capitalized METHOD_GET and METHOD_HEAD
  2698. * src/Request.cc
  2699. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2700. Added getDownloadResults() method
  2701. * src/RequestGroupMan.cc
  2702. * src/RequestGroupMan.h
  2703. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2704. Fixed the bug that aria2 exits when commands is empty() but
  2705. _routineCommands are not.
  2706. * src/DownloadEngine.cc
  2707. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2708. Use the default value pulled from Option object in HelpItemFactory.
  2709. except options whose defualt value is embedded in a usage text.
  2710. * src/HelpItemFactory.cc
  2711. * src/HelpItemFactory.h
  2712. * src/option_processing.cc
  2713. * src/version_usage.cc
  2714. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2715. Added --quiet option to make aria2 quiet (no console output).
  2716. --quiet option is tagged with ADVANCED.
  2717. * src/HelpItemFactory.cc
  2718. * src/LogFactory.cc
  2719. * src/LogFactory.h
  2720. * src/MultiUrlRequestInfo.cc
  2721. * src/MultiUrlRequestInfo.h
  2722. * src/NullStatCalc.h: New class. This class prints nothing.
  2723. * src/OptionHandlerFactory.cc
  2724. * src/main.cc
  2725. * src/option_processing.cc
  2726. * src/prefs.h
  2727. * src/usage_text.h
  2728. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  2730. * src/HelpItemFactory.cc (createHelpItems):
  2731. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2732. Fixed compilation error in ExpatMetalinkProcessor.cc
  2733. * src/ExpatMetalinkProcessor.cc
  2734. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2735. Reuse socket if the origin server supports HTTP keep-alive and
  2736. --enable-http-keep-alive or --enable-http-pipelining is given.
  2737. The current implementation doesn't reuse the connections established
  2738. against proxy server.
  2739. * src/AbstractCommand.cc
  2740. * src/DownloadEngine.cc
  2741. * src/DownloadEngine.h
  2742. * src/HttpDownloadCommand.cc
  2743. * src/HttpInitiateConnectionCommand.cc
  2744. * src/HttpResponseCommand.cc
  2745. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2746. Rewritten HTTP keep-alive and pipelining routine.
  2747. * src/AbstractCommand.cc
  2748. * src/HttpConnection.cc
  2749. * src/HttpDownloadCommand.cc
  2750. * src/HttpRequest.cc
  2751. * src/HttpRequestCommand.cc
  2752. * src/HttpResponseCommand.cc
  2753. * src/Request.cc
  2754. * src/Request.h
  2755. * src/RequestGroup.cc
  2756. * test/HttpRequestTest.cc
  2757. * test/HttpResponseTest.cc
  2758. * test/RequestTest.cc
  2759. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2760. Added missing setUserHeaders call
  2761. * src/HttpRequestCommand.cc
  2762. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2763. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  2764. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  2765. waste of time because it is more likey false.
  2766. * src/FileAllocationDispatcherCommand.cc (execute)
  2767. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2768. Now HTTP status and version are a member variable of HttpHeader.
  2769. HTTP status is processed as a string, not integer.
  2770. * src/AbstractProxyResponseCommand.cc
  2771. * src/HttpConnection.cc
  2772. * src/HttpHeader.cc
  2773. * src/HttpHeader.h
  2774. * src/HttpHeaderProcessor.cc
  2775. * src/HttpHeaderProcessor.h
  2776. * src/HttpResponse.cc
  2777. * src/HttpResponse.h
  2778. * test/HttpHeaderProcessorTest.cc
  2779. * test/HttpResponseTest.cc
  2780. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2781. Added --header option. You can specify any number of additional HTTP headers
  2782. like:
  2783. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  2784. Unlike other commad-line option, you can use --header option multiple times.
  2785. * src/HelpItemFactory.cc
  2786. * src/HttpRequest.{cc, h}
  2787. * src/HttpRequestCommand.cc
  2788. * src/OptionHandlerFactory.cc
  2789. * src/OptionHandlerImpl.h
  2790. * src/option_processing.cc
  2791. * src/prefs.h
  2792. * src/usage_text.h
  2793. * test/HttpRequestTest.cc (testUserHeaders)
  2794. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2795. Eliminates the time lag between sequential downloads and commands in
  2796. the same RequestGroup.
  2797. In old implementation, aria2 occasionally waits 1 seconds before
  2798. executing next command or RequestGroup.
  2799. This is really a waste of time, and new implementation eliminates
  2800. this unnecessary time lag.
  2801. * src/AbstractCommand.cc
  2802. * src/AutoSaveCommand.cc
  2803. * src/CheckIntegrityCommand.cc
  2804. * src/Command.{cc, h}
  2805. * src/DownloadEngine.{cc, h}
  2806. * src/DownloadEngineFactory.cc
  2807. * src/FileAllocationCommand.cc
  2808. * src/FileAllocationDispatcherCommand.cc
  2809. * src/FillRequestGroupCommand.cc
  2810. * src/FtpInitiateConnectionCommand.cc
  2811. * src/HaveEraseCommand.cc
  2812. * src/HttpInitiateConnectionCommand.cc
  2813. * src/HttpResponseCommand.cc
  2814. * src/RealtimeCommand.cc
  2815. * src/RequestGroup.cc
  2816. * src/RequestGroupMan.cc
  2817. * src/StreamFileAllocationEntry.cc
  2818. * src/TimeBasedCommand.{cc, h}
  2819. * src/TimedHaltCommand.cc
  2820. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2821. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  2822. keyword explicit and SharedHandle's default constructor initializes
  2823. its internal obj to null, old implementation initializes it using
  2824. obj's default constructor.
  2825. To assign null, write SharedHandle<T> x(...); x.reset();
  2826. TODO: test/SharedHandleTest.cc needs more tests.
  2827. * src/SharedHandle.h
  2828. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2829. Fixed type in man page.
  2830. * doc/aria2c.1.txt
  2831. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2832. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  2833. * src/SimpleLogger.{cc, h}
  2834. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2835. Implemented auto protocol detection.
  2836. Now you can do:
  2837. aria2c -Z http://host/file file1.torrent file2.metalink
  2838. (Note: -Z option is required for auto protcol detection.)
  2839. Then aria2c downloads 3 files simultaneously:
  2840. 1. http://host/file
  2841. 2. file1.torrent <-- read local torrent file
  2842. 3. file2.metalink <-- read local Metalink file.
  2843. Same thing goes with -i option. Assume your uris.txt contans:
  2844. http://host/file
  2845. file1.torrent
  2846. file2.metalink
  2847. Then you can do: aria2c -i uris.txt
  2848. (Note: -Z option is not needed if -i option is given.)
  2849. * src/main.cc
  2850. * src/ProtocolDetector.{cc, h}
  2851. * test/ProtocolDetectorTest.cc
  2852. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  2854. installed
  2855. * src/ARC4Encryptor.h
  2856. * src/ARC4Decryptor.h
  2857. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2858. Renamed argument from 'errno' to 'err', since errno is confused with
  2859. errno defined in errno.h.
  2860. * src/LibgcryptARC4Decryptor.h
  2861. * src/LibgcryptARC4Context.h
  2862. * src/LibgcryptDHKeyExchange.h
  2863. * src/LibgcryptARC4Encryptor.h
  2864. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2865. Rewritten choking algorithm.
  2866. * src/PeerChokeCommand.{cc, h}
  2867. * src/BtInterestedMessage.cc
  2868. * src/PeerSessionResource.{cc, h}
  2869. * src/DefaultPeerStorage.{cc, h}
  2870. * src/BtNotInterestedMessage.cc
  2871. * src/DefaultBtMessageDispatcher.{cc, h}
  2872. * src/BtMessageDispatcher.h
  2873. * src/Peer.{cc, h}
  2874. * src/BtLeecherStateChoke.{cc, h}
  2875. * src/BtSetup.cc
  2876. * src/BtSeederStateChoke.{cc, h}
  2877. * src/PeerStorage.h
  2878. * test/MockPeerStorage.h
  2879. * test/MockBtMessageDispatcher.h
  2880. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2881. Fixed compilation error on x84-64 platform.
  2882. * src/AuthConfig.cc: Included ostream.
  2883. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Rewritten getBasename() and getDirname(), without standard library
  2885. basename(), dirname().
  2886. * src/File.cc
  2887. * test/FileTest.cc
  2888. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2889. Added Simplified Chinese translation. Also updated the following
  2890. translations: Polish, Dutch, German. Great thanks to all translators.
  2891. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2892. Suppress content-range error when 'Content-Range' response header
  2893. doesn't contains bytes-unit specifier 'bytes'
  2894. * src/HttpHeader.cc (getRange)
  2895. * test/HttpHeaderTest.cc
  2896. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2897. Fixed compilation error with g++-4.3
  2898. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2899. Added missing include files for MinGW
  2900. * test/HttpHeaderProcessorTest.cc
  2901. * test/DHTRoutingTableSerializerTest.cc
  2902. * test/DHTRoutingTableDeserializerTest.cc
  2903. * test/UriListParserTest.cc
  2904. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2905. Now download line is printed nicely with no garbage at the end of
  2906. line. I use ioctl to get the columns of terminal.
  2907. If stdout is redirected to another device, instead of carriage return,
  2908. end of line '\n' character is used. This is feature request#1909659
  2909. * src/ConsoleStatCalc.cc (calculateStat)
  2910. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2911. Included a2time.h
  2912. * src/DHTMessageDispatcher.h
  2913. * src/DHTMessageEntry.h
  2914. * src/DHTReplaceNodeTask.h
  2915. * src/DHTMessageTracker.h
  2916. * src/Util.h
  2917. * src/CookieBox.h
  2918. * src/SocketCore.h
  2919. * src/DefaultBtMessageDispatcher.h
  2920. * src/SocketCore.cc
  2921. * src/Util.cc
  2922. * src/DHTPingTask.h
  2923. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2924. Fixed high memory footprint when DHT is enabled.
  2925. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  2926. queued than it is processed and the queue is getting longer. As a
  2927. consequence, momory usage is increased.
  2928. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  2929. replacement cache in DHTBucket which is described in Kademlia paper.
  2930. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  2931. DHTReplaceNodeTask.
  2932. * src/DHTBucket.{h, cc}
  2933. (cacheNode): New function.
  2934. (getCachedNodes): New function.
  2935. (dropNode): Push back cached node to _nodes.
  2936. * test/DHTBucketTest.cc
  2937. (testCacheNode): New test
  2938. (testDropNode): New test
  2939. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  2941. the unused 4KB memory when ssl is not used.
  2942. * src/SocketCore.cc
  2943. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2944. Added summary log for peer announce storage.
  2945. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  2946. Removed cast
  2947. * src/DefaultPeerStorage.cc (addPeer)
  2948. Log exception message
  2949. * src/DHTMessageTracker.cc (handleTimeout)
  2950. Fixed casting
  2951. * test/HttpRequestTest.cc
  2952. * test/MetalinkProcessorTest.cc
  2953. * test/PieceTest.cc
  2954. * test/MetalinkEntryTest.cc
  2955. * test/SequenceTest.cc
  2956. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2957. * src/ParameterizedStringParser.cc (createLoop):
  2958. Removed unused variable sstep.
  2959. * src/AlphaNumberDecorator.h (decode): Rewritten.
  2960. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2961. * src/Util.{h, cc}
  2962. (parseUInt): New function.
  2963. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  2964. The actual range is uint32_t.
  2965. * test/UtilTest.cc
  2966. * src/ParameterizedStringParser.cc:
  2967. Use Util::parseUInt() for loop variables.
  2968. * test/ParameterizedStringParserTest.cc
  2969. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  2970. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Rewritten the functions for binding port.
  2972. * src/DHTConnectionImpl.{h, cc}
  2973. * src/PeerListenCommand.{h, cc}
  2974. * src/DHTSetup.cc
  2975. * src/BtSetup.cc
  2976. * test/DHTConnectionImplTest.cc
  2977. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2978. type cleanup for allmost all remaining files.
  2979. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2980. Type clarification
  2981. * src/PeerSessionResource.{h, cc}
  2982. * src/DefaultPieceStorage.{h, cc}
  2983. * src/Peer.{h, cc}
  2984. * test/PeerSessionResourceTest.cc
  2985. Use div function
  2986. * src/BtPieceMessage.cc (erasePieceOnDisk)
  2987. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Type clarification
  2989. * src/DefaultPeerStorage.{h, cc}
  2990. * test/DefaultPeerStorageTest.cc
  2991. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. Type clarification: size_t for length or size, uint64_t for file
  2993. length, off_t for file offset.
  2994. * src/DefaultBtProgressInfoFile.cc
  2995. * src/DefaultBtContext.{h, cc}
  2996. * src/DefaultBtInteractive.cc
  2997. * src/DownloadCommand.{h, cc}
  2998. * src/IteratableChunkChecksumValidator.{h, cc}
  2999. * src/SegmentMan.{h, cc}
  3000. * src/SingleFileDownloadContext.{h, cc}
  3001. * src/IteratableChecksumValidator.{h, cc}
  3002. * src/BtContext.h
  3003. * src/IteratableValidator.h
  3004. * src/DownloadContext.h
  3005. * test/SingleFileDownloadContextTest.cc
  3006. * test/DefaultBtContextTest.cc
  3007. * test/MockBtContext.h
  3008. * test/Metalink2RequestGroupTest.cc
  3009. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3010. Type clarification: size_t for length or size, uint64_t for file
  3011. length, off_t for file offset.
  3012. * src/PiecedSegment.cc
  3013. * src/GrowSegment.h
  3014. * src/DefaultBtRequestFactory.h
  3015. * src/DefaultBtProgressInfoFile.cc
  3016. * src/UnknownLengthPieceStorage.h
  3017. * src/DefaultPieceStorage.cc
  3018. * src/UnknownLengthPieceStorage.cc
  3019. * src/DefaultBtInteractive.cc
  3020. * src/GrowSegment.cc
  3021. * src/BitfieldMan.h
  3022. * src/DownloadCommand.cc
  3023. * src/BtRequestFactory.h
  3024. * src/PiecedSegment.h
  3025. * src/DefaultPieceStorage.h
  3026. * src/Piece.cc
  3027. * src/DefaultBtRequestFactory.cc
  3028. * src/PieceStorage.h
  3029. * src/Segment.h
  3030. * src/Piece.h
  3031. * src/BitfieldMan.cc
  3032. * src/Util.cc
  3033. * test/DefaultBtProgressInfoFileTest.cc
  3034. * test/DefaultPieceStorageTest.cc
  3035. * test/MockPieceStorage.h
  3036. * test/BtRequestMessageTest.cc
  3037. * test/DefaultBtMessageDispatcherTest.cc
  3038. * test/BitfieldManTest.cc
  3039. * test/GrowSegmentTest.cc
  3040. * test/PieceTest.cc
  3041. * test/SegmentTest.cc
  3042. * test/SegmentManTest.cc
  3043. * test/DefaultBtRequestFactoryTest.cc
  3044. * test/MockBtRequestFactory.h
  3045. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3046. Fixed compilation error with --disable-nls
  3047. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3048. in gettext.h causes the problem.
  3049. * src/common.h
  3050. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3051. Removed subPiece related functions.
  3052. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3053. * src/DefaultPieceStorage.{h, cc}
  3054. * test/PieceTest.cc
  3055. * test/DefaultPieceStorageTest.cc
  3056. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3057. Use unsigned char for data store.
  3058. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3059. Bump up version number to 0.13.0+1
  3060. * configure.ac
  3061. * Release 0.13.0+1
  3062. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3063. Changed inactive connection timeout to 120.
  3064. To accept more mulually interested peers, disconnect peer when there
  3065. is no interest between us after certain time passed.
  3066. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3067. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3068. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3069. when compiled with async DNS support.
  3070. * src/DownloadEngine.cc
  3071. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3072. value '10' will be a little bit short when some DNS servers are
  3073. offline and several DNS servers are tried. It should be configured
  3074. by command-line option.
  3075. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3076. Merged Ross's mingw patch.
  3077. * src/DHTRoutingTableDeserializer.cc
  3078. * src/DHTRoutingTableSerializer.cc
  3079. * src/Platform.{h, cc}
  3080. * src/timegm.h
  3081. * src/gettimeofday.h
  3082. * src/getaddrinfo.h
  3083. * src/SocketCore.h
  3084. * src/common.h
  3085. * src/inet_aton.h
  3086. * src/DownloadEngine.h
  3087. * src/gai_strerror.h
  3088. * src/a2netcompat.h
  3089. * configure.ac
  3090. * configure
  3091. * aclocal.m4
  3092. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3093. Included missing iostream.
  3094. * test/AllTest.cc
  3095. * test/BtDependencyTest.cc
  3096. * test/BtExtendedMessageTest.cc
  3097. * test/DHTConnectionImplTest.cc
  3098. * test/DHTMessageFactoryImplTest.cc
  3099. * test/DHTMessageTrackerEntryTest.cc
  3100. * test/DHTNodeTest.cc
  3101. * test/DHTRoutingTableSerializerTest.cc
  3102. * test/DefaultBtAnnounceTest.cc
  3103. * test/DefaultBtContextTest.cc
  3104. * test/DefaultBtMessageFactoryTest.cc
  3105. * test/DefaultExtensionMessageFactoryTest.cc
  3106. * test/HandshakeExtensionMessageTest.cc
  3107. * test/HttpResponseTest.cc
  3108. * test/MetalinkProcessorTest.cc
  3109. * test/MultiFileAllocationIteratorTest.cc
  3110. * test/SocketCoreTest.cc
  3111. * test/UTPexExtensionMessageTest.cc
  3112. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3113. Reorganized includes.
  3114. * src/NameResolver.cc
  3115. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3116. Fixed compilation error without ares/c-ares
  3117. * src/NameResolver.h:
  3118. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. Added a test for large file.
  3120. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3121. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3122. Fixed the bug that file size is ignored if size > INT32_MAX
  3123. * src/SizeMetalinkParserState.cc (endElement):
  3124. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3125. Bump up version number to 0.13.0
  3126. * configure.ac
  3127. * Release 0.13.0
  3128. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3129. Updated Makfefile.am to make 'make dist' work.
  3130. Now packaged filename is aria2c-VERSION.tar.bz2.
  3131. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3132. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3133. Large file support is now configured by configure script.
  3134. * configure.ac
  3135. Removed unsused source files
  3136. * src/
  3137. * test/
  3138. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3139. Peer.h and BtContext.h respectively.
  3140. * src/Peer.h
  3141. * src/BtContext.h
  3142. Updated translations.
  3143. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3144. translations. Great thanks to all translators!;)
  3145. * po/*.{po, gmo}
  3146. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3147. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3148. statically declared sha1 MessageDigestContext.
  3149. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3150. initialization of short-lived MessageDigestContext.
  3151. * src/MessageDigestHelper.{h, cc}
  3152. * src/main.cc
  3153. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3154. the initialization of MessageDigestContext every time in validating
  3155. chunk checksum.
  3156. * src/DownloadCommand.{h, cc}
  3157. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3158. Add a file descriptor which connected to fast peer(latency<1500) to
  3159. select(). This change reduced CPU load.
  3160. * src/PeerInteractionCommand.cc
  3161. * src/DefaultBtInteractive.{h, cc}
  3162. * src/BtInteractive.h
  3163. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. Fixed the previous insufficient fix for possible busy loop.
  3165. * src/MSEHandshake.cc (identifyHandshakeType)
  3166. Removed unused functions.
  3167. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  3168. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3169. Fixed possible busy loop if first 20 bytes are not received for a few
  3170. minutes.
  3171. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  3172. * src/ReceiverMSEHandshakeCommand.cc
  3173. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3174. Fixed compilation error
  3175. * src/ExpatMetalinkProcessor.cc
  3176. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3177. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3178. * src/DHTBucket.cc
  3179. Removed unnecessary cast.
  3180. * src/HandshakeExtensionMessage.cc
  3181. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3182. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3183. is missing.
  3184. * src/OptionHandlerFactory.cc
  3185. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. Fixed the bug that HAVE message is not sent for a piece they are
  3187. downloaded fom http/ftp server before any BitTorrent handshake is done
  3188. with peers.
  3189. * src/DefaultBtInteractive.cc
  3190. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3191. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3192. * src/Makefile.am
  3193. * src/Makefile.in
  3194. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Updated README. Added html version of README and man page.
  3196. * README
  3197. * README.html
  3198. * readme2html: Shell script to generate README.html from README using
  3199. asciidoc.
  3200. * doc/aria2c.1.html
  3201. * doc/makeman: Added the line to generate aria2c.1.html
  3202. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Fixed offset calculation.
  3204. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3205. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Rewritten itos and uitos using template. llitos and ullitos are
  3207. replaced with itos and uitos respectively.
  3208. * src/Util.{h, cc}
  3209. * test/UtilTest.cc
  3210. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3211. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3212. of the number of bytes required for storing public key and shared
  3213. secret.
  3214. * src/LibgcryptDHKeyExchange.h
  3215. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3216. * src/MSEHandshake.cc
  3217. * test/DHKeyExchangeTest.cc
  3218. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Removed since they are not used.
  3220. * src/Xml2MetalinkProcessor.{h, cc}
  3221. * src/Socket.cc
  3222. * src/SegmentSplitter.{h, cc}
  3223. * test/Xml2MetalinkProcessorTest.cc
  3224. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Fixed the bug that prevents aria2 from stopping other than by pressing
  3226. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3227. option. aria2 doesn't stop even after --seed-time is satisfied and
  3228. continues to output blank lines in the console.
  3229. * src/ReceiverMSEHandshakeCommand.cc
  3230. * src/PeerReceiveHandshakeCommand.cc
  3231. * src/PeerListenCommand.cc
  3232. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Bump up version number to 0.13.0rc
  3234. * configure.ac
  3235. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Updated man page and some usage text.
  3237. * doc/aria2c.1.txt
  3238. * src/usage_text.h
  3239. * po/*.{po, gmo}
  3240. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3241. Updated translations. Added Finnish and Hebrew translations.
  3242. Great thanks to all translators!
  3243. * po/*.{po, gmo}
  3244. * po/LINGUAS
  3245. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Log more detailed information about each message.
  3247. * src/DHTQueryMessage.{h, cc}
  3248. * src/DHTGetPeersMessage.{h, cc}
  3249. * src/DHTFindNodeReplyMessage.{h, cc}
  3250. * src/DHTGetPeersReplyMessage.{h, cc}
  3251. * src/DHTAnnouncePeerMessage.{h, cc}
  3252. * src/DHTResponseMessage.{h, cc}
  3253. * src/DHTFindNodeMessage.{h, cc}
  3254. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3255. Use constants defined in prefs.h
  3256. * src/option_processing.cc
  3257. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3258. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3259. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Make room for future enchancements for IPv6 addresses.
  3261. Bump up version number of dht.dat file format to 2.
  3262. Not compatible with previous version.
  3263. * src/DHTRoutingTableSerializer.cc
  3264. * src/DHTRoutingTableDeserializer.cc
  3265. * test/DHTRoutingTableSerializerTest.cc
  3266. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3267. Added handling for the return values from
  3268. PeerMessageUtil::createcompact().
  3269. * src/DefaultBtContext.cc (computeFastSet):
  3270. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Fixed abort when peer's ip address is IPv4-mapped address.
  3272. * src/DefaultBtContext.cc (computeFastSet)
  3273. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3274. cannot handle IPv4-mapped addresses.
  3275. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3276. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3277. Proper return value handling for OpenSSL functions.
  3278. * src/LibsslDHKeyExchange.h
  3279. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3280. Random bytes generation using libgcrypt and OpenSSL.
  3281. * src/DHTUtil.{h, cc}
  3282. * test/DHTUtilTest.cc
  3283. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3285. received.
  3286. * src/DHTMessageReceiver.cc (receiveMessage)
  3287. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Fixed the bug that a return code is always 0. BUG#1897704
  3289. If error occurred during the download or there exist unfinished
  3290. downloads, aria2 returns with code 1.
  3291. * src/RequestGroupMan.{h, cc}
  3292. * src/MultiUrlRequestInfo.{h, cc}
  3293. * src/main.cc
  3294. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3295. IPv6 support for SocketCore class.
  3296. TODO: In SocketCore::establishConnection(), this is insufficient to
  3297. determin the failure of connect() here because the socket is
  3298. non-blocking state. The next addresses should be tried after select().
  3299. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3300. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3301. instead which address family independent.
  3302. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3303. information in a compact peer format which is for IPv4 only.
  3304. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3305. this is a spec of BitTorrent protocol.
  3306. * src/SocketCore.{h, cc}
  3307. * src/PeerMessageUtil.cc
  3308. * test/SocketCoreTest.cc
  3309. * test/PeerMessageUtilTest.cc
  3310. * test/DHTConnectionImplTest.cc
  3311. Handle IPv4-mapped addresses.
  3312. * src/DHTNode.cc: Now identity is determined by node id.
  3313. * src/DHTMessageTrackerEntry.cc
  3314. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3315. should handle it.
  3316. * src/DHTRoutingTableDeserializer.cc
  3317. * src/DHTMessageFactoryImpl.cc
  3318. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Change the unit of --stop option from a minute to a second.
  3320. * src/usage_text.h
  3321. * src/DownloadEngineFactory.cc
  3322. * src/OptionHandlerFactory.cc
  3323. * src/message.h
  3324. * src/TimedHaltCommand.cc
  3325. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3326. Make listening socket non-block mode.
  3327. * src/FtpConnection.cc
  3328. * src/FtpNegotiationCommand.{h, cc}
  3329. * src/PeerListenCommand.cc
  3330. Fixed the bug that cause slow ftp negotiation.
  3331. * src/FtpNegotiationCommand.{h, cc}
  3332. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. Added basic tag to --enable-dht, --dht-listen-port option.
  3334. * src/HelpItemFactory.cc (createHelpItems)
  3335. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3336. Updated text.
  3337. * src/usage_text.h
  3338. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3339. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3340. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3341. Determin _threadtholdSpeed in each constructor for
  3342. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3343. * src/ActivePeerConnectionCommand.{h, cc}
  3344. * src/PeerReceiveHandshakeCommand.{h, cc}
  3345. * src/BtSetup.cc
  3346. * src/BtConstants.h
  3347. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3348. Added --bt-min-crypto-level and --bt-require-crypto options.
  3349. * src/OptionHandlerFactory.cc
  3350. * src/MSEHandshake.cc
  3351. * src/HelpItemFactory.cc
  3352. * src/option_processing.cc
  3353. * src/ReceiverMSEHandshakeCommand.cc
  3354. * src/prefs.h
  3355. * src/DefaultBtAnnounce.cc
  3356. * src/InitiatorMSEHandshakeCommand.cc
  3357. * src/usage_text.h
  3358. * test/MSEHandshakeTest.cc
  3359. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Bump version number to 0.13.0b
  3361. * configure.ac
  3362. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3363. Updated doc.
  3364. * src/MessageDigestHelper.h:
  3365. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3366. Use raw message digest as a token instead of its hexadecimal
  3367. representation.
  3368. * src/DHTTokenTracker.cc (generateToken)
  3369. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3370. Added Message Stream Encryption(MSE) support.
  3371. Currently, aria2 accepts incoming connections with Obfuscation Header
  3372. and legacy BitTorrent Header and establishes connections with
  3373. Obfuscation Header first and if failed then retry with legacy
  3374. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3375. choose ARC4. The new option to change the default behavior is planned.
  3376. For tracker extension, "supportcrypto=1" is added statically.
  3377. * src/PeerInitiateConnectionCommand.{h, cc}
  3378. * src/PeerConnection.{h, cc}
  3379. * src/HandleRegistry.h
  3380. * src/SocketCore.h
  3381. * src/PeerReceiveHandshakeCommand.{h, cc}
  3382. * src/BtRegistry.{h, cc}
  3383. * src/PeerListenCommand.cc
  3384. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3385. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3386. * src/MSEHandshake.{h, cc}
  3387. * src/ARC4Encryptor.h
  3388. * src/ARC4Decryptor.h
  3389. * src/LibgcryptARC4Encryptor.h
  3390. * src/LibgcryptARC4Decryptor.h
  3391. * src/LibgcryptARC4Context.h
  3392. * src/LibsslARC4Encryptor.h
  3393. * src/LibsslARC4Decryptor.h
  3394. * src/LibsslARC4Context.h
  3395. * src/DHKeyExchange.h
  3396. * src/LibgcryptDHKeyExchange.h
  3397. * src/LibsslDHKeyExchange.h
  3398. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3399. * test/DefaultBtAnnounceTest.cc
  3400. * test/ARC4Test.cc
  3401. * test/DHKeyExchangeTest.cc
  3402. Removed prepareForRetry() because it is not used.
  3403. * src/PeerAbstractCommand.{h, cc}
  3404. * src/PeerInteractionCommand.{h, cc}
  3405. * src/PeerInitiateConnectionCommand.{h, cc}
  3406. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3407. Added the ability to load nodes from torrent file. These nodes are
  3408. added to the routing table when downloading that torrent.
  3409. * src/BtContext.h
  3410. * src/DefaultBtContext.{h, cc}
  3411. * src/DHTSetup.cc
  3412. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  3413. hostname and port pair, and resolves all of them.
  3414. * src/NameResolver.{h, cc}: Added reset().
  3415. * src/RequestGroup.cc
  3416. * test/DefaultBtContextTest.cc
  3417. * test/MockBtContext.h
  3418. Removed assert() from DefaultBtContext and throw exception instead.
  3419. * src/DefaultBtContext.cc
  3420. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3421. Fixed segmentation fault bug when exiting if dht is disabled.
  3422. * src/RequestGroup.cc
  3423. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3424. Fixed typo in log message and define the message in message.h
  3425. * src/TimedHaltCommand.cc
  3426. * src/message.h
  3427. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Included RecoverableException.h to fix compilation error.
  3429. * test/DHTMessageFactoryImplTest.cc
  3430. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  3432. * test/DHTPingMessageTest.cc
  3433. * test/DHTGetPeersMessageTest.cc
  3434. * test/DHTFindNodeMessageTest.cc
  3435. * test/DHTAnnouncePeerMessageTest.cc
  3436. * test/MockDHTMessage.h
  3437. * test/MockDHTMessageFactory.h
  3438. * test/MockDHTMessageDispatcher.h: New class.
  3439. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  3441. virtual.
  3442. * src/DHTMessageDispatcher.h
  3443. * src/DHTMessageDispatcherImpl.{h, cc}
  3444. * src/DHTSetup.cc
  3445. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Adding handling of DHT error message. Just log error message and
  3447. throw exception.
  3448. * src/DHTMessageFactoryImpl.cc
  3449. * test/DHTMessageFactoryImplTest.cc
  3450. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. Added handling of dynamic cast failure.
  3452. * src/DHTNodeLookupTask.cc
  3453. * src/DHTPeerLookupTask.cc
  3454. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Added the ability to stop aria2 itself when given time has passed
  3456. from start. Use --stop option to specify time in minutes.
  3457. When 0 is given, this feature is disabled.
  3458. * src/OptionHandlerFactory.cc
  3459. * src/TimeBasedCommand.h: Make _interval protected scope.
  3460. * src/HelpItemFactory.cc
  3461. * src/option_processing.cc
  3462. * src/prefs.h
  3463. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  3464. before calling RequestGroupMan::fillRequestGroupFromReserver().
  3465. Without this modification, the result list shows "ERR" when aria2 is
  3466. stopped by --stop option. It should be "INPR".
  3467. * src/DownloadEngine.{h, cc}
  3468. * src/DownloadEngineFactory.cc
  3469. * src/usage_text.h
  3470. * src/TimedHaltCommand.{h, cc}: New class.
  3471. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3472. Bootstrap through node added by port message.
  3473. Currently bootstrap is executed if the number of buckets in routing
  3474. table is 1.
  3475. * src/BtPortMessage.{h, cc}
  3476. * src/DefaultBtMessageFactory.{h, cc}
  3477. * src/PeerInteractionCommand.cc
  3478. * test/BtPortMessageTest.cc
  3479. * test/MockDHTTask.h
  3480. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. Extract the Peer class's member variables, which are only needed after
  3482. PeerInteractionCommand, into PeerSessionResource class.
  3483. This class is instantiated in PeerInteractionCommand class's ctor and
  3484. released in its dtor.
  3485. This will make Peer class lightweight and uses less memory for peers
  3486. which are not connected and wait in the queue.
  3487. * src/PeerChokeCommand.cc
  3488. * src/PeerSessionResource.{h, cc}
  3489. * src/PeerInteractionCommand.cc
  3490. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  3491. * src/DefaultBtInteractive.cc
  3492. * src/BtPieceMessage.cc
  3493. * src/BtInterestedMessage.cc
  3494. * src/BtUnchokeMessage.cc
  3495. * src/DefaultPeerStorage.{h, cc}
  3496. * src/PeerInitiateConnectionCommand.cc
  3497. * src/ActivePeerConnectionCommand.cc
  3498. * src/BtNotInterestedMessage.cc
  3499. * src/DefaultBtMessageDispatcher.cc
  3500. * src/BtChokeMessage.cc
  3501. * src/BtRequestMessage.cc
  3502. * src/Peer.{h, cc}
  3503. * src/BtRegistry.h
  3504. * src/TrackerWatcherCommand.cc
  3505. * src/PeerReceiveHandshakeCommand.cc
  3506. * test/BtExtendedMessageTest.cc
  3507. * test/BtAllowedFastMessageTest.cc
  3508. * test/BtCancelMessageTest.cc
  3509. * test/DefaultPieceStorageTest.cc
  3510. * test/BtBitfieldMessageTest.cc
  3511. * test/BtHaveMessageTest.cc
  3512. * test/BtNotInterestedMessageTest.cc
  3513. * test/BtRequestMessageTest.cc
  3514. * test/PeerSessionResourceTest.cc
  3515. * test/DefaultBtMessageDispatcherTest.cc
  3516. * test/PeerTest.cc
  3517. * test/BtInterestedMessageTest.cc
  3518. * test/BtRejectMessageTest.cc
  3519. * test/BtChokeMessageTest.cc
  3520. * test/DefaultPeerStorageTest.cc
  3521. * test/BtHaveNoneMessageTest.cc
  3522. * test/BtHaveAllMessageTest.cc
  3523. * test/DefaultExtensionMessageFactoryTest.cc
  3524. * test/BtUnchokeMessageTest.cc
  3525. * test/DefaultBtMessageFactoryTest.cc
  3526. * test/HandshakeExtensionMessageTest.cc
  3527. * test/UTPexExtensionMessageTest.cc
  3528. * test/DefaultBtRequestFactoryTest.cc
  3529. * test/BtPieceMessageTest.cc
  3530. Removed typedef PeerStats.
  3531. * src/PeerStat.h
  3532. * src/SegmentMan.cc
  3533. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3534. Added std namespace to copy, remove_copy, back_inserter,
  3535. front_inserter.
  3536. * src/RequestGroupMan.cc
  3537. * src/DefaultPieceStorage.cc
  3538. * src/StreamFileAllocationEntry.cc
  3539. * src/BtFileAllocationEntry.cc
  3540. * src/RequestGroup.cc
  3541. * src/MetalinkEntry.cc
  3542. * src/DelegatingPeerListProcessor.cc
  3543. * src/DefaultBtRequestFactory.cc
  3544. * src/DefaultBtMessageDispatcher.cc
  3545. * src/version_usage.cc: Included <algorithm>
  3546. * src/main.cc
  3547. * src/MetalinkParserController.cc
  3548. * src/DefaultBtContext.cc
  3549. * src/DownloadEngineFactory.cc
  3550. * src/a2algo.h
  3551. Removed.
  3552. * test/StreamUriListParserTest.cc
  3553. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3554. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  3555. ActivePeerConnectionCommand when it is given and
  3556. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  3557. * src/ActivePeerConnectionCommand.{h, cc}
  3558. * src/BtSetup.cc
  3559. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3560. Only add socket to DownloadEngine's select routine when peer or
  3561. localhost is unchoked and interested. This lowers CPU usage a
  3562. little bit.
  3563. * src/PeerInteractionCommand.cc
  3564. * src/PeerAbstractCommand.{h, cc}
  3565. * src/BtInteractive.h
  3566. * src/DefaultBtInteractive.{h, cc}
  3567. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Revert previous change because get_peers message is needed for
  3569. announce_peer anyway.
  3570. * src/DHTGetPeersCommand.cc
  3571. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3572. Request peers thought DHT only when download hasn't finished.
  3573. * src/DHTGetPeersCommand.cc
  3574. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  3576. * src/DHTBucketRefreshTask.{h, cc}
  3577. * src/DHTSetup.cc
  3578. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  3580. standard classes.
  3581. Included string.h where mem* function are used.
  3582. Added namespace aria2.
  3583. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3584. Create directory before saving DHT routing table.
  3585. Now ios::failure is now handled properly.
  3586. * src/DHTAutoSaveCommand.cc
  3587. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. Removed unnecessary cerr.
  3589. * src/DownloadEngine.cc
  3590. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3591. Catch exception inside DHTMessageReceiver::receiveMessage().
  3592. Log unknown message.
  3593. * src/DHTMessageReceiver.{h, cc}
  3594. * src/DHTMessageFactory.h
  3595. * src/DHTMessageFactoryImpl.{h, cc}
  3596. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  3597. * src/DHTInteractionCommand.cc
  3598. * src/DHTUnknownMessage.{h, cc}
  3599. * test/DHTUnknownMessageTest.cc
  3600. * test/MockDHTMessageFactory.h
  3601. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3602. Commented out ip address comparison because a host can have multiple
  3603. ip addresses and it is hard to predict the hostname is resolved into
  3604. which one.
  3605. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  3606. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. * po/Makefile.in: Removed since this is generated by configure.
  3608. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3609. Fixed compiler warning about redefinition of SIZE_MAX.
  3610. Use common.h instead of config.h directly here.
  3611. * src/Platform.{h, cc}
  3612. The check of ENABLE_NLS is made in gettext.h, so it is not required
  3613. here.
  3614. * common.h
  3615. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  3616. Updated gettext related files.
  3617. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  3618. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  3619. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3620. Added DHT functionality, compatible with mainline.
  3621. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  3622. You may need to specify entry point to DHT network using
  3623. --dht-entry-point. DHT uses UDP port to listen incoming message.
  3624. Use --dht-listen-port to specify port number. Make sure that your
  3625. firewall configuration can pass through UDP traffic to the port.
  3626. The routing table is saved in $HOME/.aria2/dht.dat.
  3627. * src/DHT*
  3628. * src/BNode.{h, cc}
  3629. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  3630. particular torrent.
  3631. * src/Data.cc: Rewritten ctor.
  3632. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  3633. --dht-entry-point.
  3634. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  3635. * src/RequestGroup.cc: Initialize DHT functionality. When download
  3636. ends, remove BtContext from DHTPeerAnnounceStorage.
  3637. * src/BtPortMessage.{h, cc}: Rewritten.
  3638. * src/message.h
  3639. * src/OptionHandlerImpl.cc
  3640. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  3641. --dht-entry-point.
  3642. * src/Dictionary.{h, cc} (remove): New function.
  3643. * src/prefs.h
  3644. * src/DefaultBtMessageFactory.h
  3645. * src/BtHandshakeMessage.cc
  3646. * src/ActivePeerConnectionCommand.cc
  3647. * src/SocketCore.{h, cc}: Added datagram socket support.
  3648. * src/DefaultBtMessageFactory.cc
  3649. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  3650. Create DHT commands.
  3651. * src/BtMessageFactory.h
  3652. * src/PeerMessageUtil.{h, cc}
  3653. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Fixed the bug that log file is not written when configuration file doesn't exist.
  3655. This is caused by using Logger class before LogFactory is not configured.
  3656. BUG #1875079
  3657. * src/option_processing.cc
  3658. Warning message "configuration doesn't exist" is only printed when --conf is
  3659. given.
  3660. * src/option_processing.cc
  3661. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  3663. ShaVisitor is now deprecated and slated to be removed.
  3664. * src/DefaultBtContext.cc
  3665. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. Externalize message to message.h
  3667. * src/Platform.cc
  3668. * src/message.h
  3669. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3670. Set default domain and default path to cookie.
  3671. * src/HttpResponse.cc
  3672. * src/CookieBox.{h, cc}
  3673. * src/CookieParser.{h, cc}
  3674. * test/CookieParserTest.cc
  3675. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3676. Added --no-conf and --conf-path command-line option.
  3677. --no-conf option disables loading aria2.conf file.
  3678. --conf-path option changes the configuration file path. The default
  3679. file path is $HOME/.aria2/aria2.conf
  3680. Added a warning message when the configuration file is not found.
  3681. * src/HelpItemFactory.cc
  3682. * src/option_processing.cc
  3683. * src/prefs.h
  3684. * src/usage_text.h
  3685. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3686. Added the message to inform users that other help categories are
  3687. available in -h option.
  3688. * src/version_usage.cc
  3689. * src/TagContainer.{h, cc}
  3690. * test/TagContainerTest.cc
  3691. * src/TaggedItem.{h, cc}
  3692. * test/TaggedItemTest.cc
  3693. * src/HelpItem.h
  3694. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3695. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  3696. from PiecedSegment's ctor.
  3697. Previously Piece::getAllMissingBlockIndexes() is called from
  3698. PiecedSegment() but it is rather expensive since only first element is
  3699. used.
  3700. * src/PiecedSegment.cc
  3701. * src/Piece.{h, cc}
  3702. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3703. Rewritten get*Missing*Index functions. Now no need to allocate memory
  3704. each time these functions are called.
  3705. * src/BitfieldMan.{h, cc}
  3706. * test/BitfieldManTest.cc
  3707. * src/array_fun.h
  3708. * test/array_funTest.cc
  3709. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  3710. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  3711. filtered. Removed unnecessary cast to int32_t.
  3712. * src/BitfieldMan.{h, cc}
  3713. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3714. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  3715. payload length(4bytes) are received. This happens because lenbufLength
  3716. is not updated in this particular case and successive call of
  3717. receiveMessage() overwrites payload length with bytes recieved which
  3718. are payload body.
  3719. * src/PeerConnection.{h, cc}
  3720. * src/message.h
  3721. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  3723. peer if there are peers that have same ipaddr and port.
  3724. I've experiened segmentation fault and "pure virtual function was
  3725. called" error.
  3726. * src/Peer.h
  3727. * test/PeerTest.cc
  3728. * src/DefaultPeerStorage.cc
  3729. * test/DefaultPeerStorageTest.cc
  3730. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. Removed a call to isPowerOf() because it is no longer necessary here
  3732. and a request block is not always power of 2.
  3733. BUG#1866924
  3734. * src/PeerMessageUtil.cc (checkLength)
  3735. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. Fixed the bug that always first found Segment is removed from
  3737. usedSegmentEntries. Removed unused functions.
  3738. * src/SegmentMan.{h, cc}
  3739. * test/SegmentManTest.cc
  3740. Fixed the bug that ServerHost is not removed.
  3741. * src/RequestGroup.cc
  3742. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3743. Fixed the bug that SegmentMan::completeSegment() is not called
  3744. even if Segment is complete when --lowest-speed-limit is enabled.
  3745. BUG#1864525
  3746. * src/DownloadCommand.{h, cc}
  3747. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3748. Fixed: hash algorithm 'sha1' is always used.
  3749. * src/DownloadCommand.cc (validatePieceHash)
  3750. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3751. Added --enable-peer-exchange command-line option.
  3752. * src/OptionHandlerFactory.cc
  3753. * src/HelpItemFactory.cc
  3754. * src/option_processing.cc
  3755. * src/usage_text.h
  3756. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Move extension from BtRuntime to ExtensionMessageFactory, because
  3758. extension can be specified per peer, not per torrent.
  3759. * src/DefaultBtInteractive.cc
  3760. * src/BtRuntime.h
  3761. * src/ExtendedMessagingAware.h
  3762. * src/ExtensionMessageFactory.h
  3763. * src/DefaultExtensionMessageFactory.cc
  3764. * test/DefaultExtensionMessageFactoryTest.cc
  3765. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3766. Added categorized option help. Specify category using --help option.
  3767. Also added the ability to search options in forward match.
  3768. * src/HelpItem.{h, cc}
  3769. * test/HelpItemTest.cc
  3770. * src/HelpItemFactory.{h, cc}
  3771. * src/TagContainer.{h, cc}
  3772. * test/TagContainerTest.cc
  3773. * src/option_processing.cc
  3774. * src/prefs.h
  3775. * src/TaggedItem.{h, cc}
  3776. * test/TaggedItemTest.cc
  3777. * src/version_usage.cc
  3778. * src/help_tags.h
  3779. * src/usage_text.h
  3780. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Fixed segmentation fault when bad torrent metainfo is parsed.
  3782. Added dynamic_cast properly to detect the misconfiguration of metainfo
  3783. and then throw exception or skip it.
  3784. * src/DefaultBtContext.{h, cc}
  3785. * test/DefaultBtContextTest.cc
  3786. * src/AnnounceList.cc
  3787. * src/CompactPeerListProcessor.cc
  3788. * src/message.h
  3789. * src/DefaultBtAnnounce.{h, cc}
  3790. * test/DefaultBtAnnounceTest.cc
  3791. * src/BencodeVisitor.cc
  3792. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3793. Added missing "B"(=Byte). So now the message looks like this:
  3794. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  3795. * src/message.h (MSG_SHARE_RATIO_REPORT)
  3796. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3797. Show the seed ratio after torrent downloads.
  3798. For example, after torrent download completed and --seed-time and
  3799. --seed-ratio conditions are fulfilled, following message is printed
  3800. right after "Download complete: .....":
  3801. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  3802. * src/RequestGroupMan.cc
  3803. * src/RequestGroup.{h, cc}
  3804. * src/message.h
  3805. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3806. Remove a defunct control file. A defunct control file means that while
  3807. it exists, but the corresponding download file is missing.
  3808. After its removal, a download restarts from the beginning.
  3809. * src/RequestGroup.cc
  3810. * src/message.h
  3811. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3812. Allocate bitfield in Peer when it is really used. More specifically,
  3813. bitfield in Peer is allocated after the connection is established and
  3814. deallocated when the connection is dropped.
  3815. Since 2 parameters(piece length and total length) was removed from the
  3816. constructor of Peer class, many test classes were modified accordingly.
  3817. See svn log for more detailed information.
  3818. * src/PeerInteractionCommand.cc
  3819. * src/CompactPeerListProcessor.cc
  3820. * src/Peer.cc
  3821. * src/DefaultPeerListProcessor.cc
  3822. * src/PeerListenCommand.cc
  3823. * src/PeerReceiveHandshakeCommand.cc
  3824. Fixed memory leak
  3825. * src/Piece.cc
  3826. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  3828. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  3829. command-line options.
  3830. * src/option_processing.cc
  3831. * src/ActivePeerConnectionCommand.cc
  3832. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Send have message to peer if it already has the piece.
  3834. * src/BtHaveMessage.{h, cc}
  3835. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3836. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  3837. port.
  3838. * src/DefaultPeerStorage.{h, cc}
  3839. * test/DefaultPeerStorageTest.cc
  3840. * src/HandshakeExtensionMessage.cc
  3841. * test/HandshakeExtensionMessageTest.cc
  3842. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  3843. * src/PeerStorage.h
  3844. * test/MockPeerStorage.h
  3845. * src/PeerListenCommand.cc
  3846. * src/PeerReceiveHandshakeCommand.cc
  3847. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Added --metalink-enable-unique-protocol option.
  3849. * src/Metalink2RequestGroup.cc
  3850. * src/option_processing.cc
  3851. * src/prefs.h
  3852. * src/version_usage.cc
  3853. * doc/aria2c.1.txt
  3854. * doc/aria2c.1
  3855. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Allow a peer in incomingPeer to be added peers.
  3857. * src/DefaultPeerStorage.cc
  3858. * test/DefaultPeerStorageTest.cc
  3859. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3860. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  3861. I could reproduce this bug in following procedure:
  3862. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  3863. 2. Restart aria2.
  3864. 3. You see the download stopped around 99%.
  3865. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  3866. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  3867. If timeout is reached, then _nextCommand is unused and it may contains
  3868. segments and they won't be canceled. Actually, timeout is not needed
  3869. here because if the server dropped connection, then retry is made.
  3870. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Added uTorrent compatible Peer Exchange.
  3872. * src/BencodeVisitor.{h, cc}
  3873. * test/BencodeVisitorTest.cc
  3874. * src/BtConstants.h
  3875. * src/BtContext.h: Added 'private' flag.
  3876. * src/BtExtendedMessage.{h, cc}
  3877. * test/BtExtendedMessageTest.cc
  3878. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  3879. reserved field.
  3880. * test/BtHandshakeMessageTest.cc
  3881. * src/BtMessageFactory.h
  3882. * src/BtRegistry.h
  3883. * src/BtRuntime.h: This class holds default extension message IDs for
  3884. aria2. By default, aria2 uses ID 8 for ut_pex.
  3885. * src/DefaultBtContext.cc
  3886. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  3887. When it is true, aria2 enables ut_pex. This value is set by
  3888. PeerInteractionCommand.
  3889. * src/DefaultBtMessageFactory.{h, cc}
  3890. * test/DefaultBtMessageFactoryTest.cc
  3891. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  3892. handling to DefaultBtInteractive class.
  3893. * src/DefaultExtensionMessageFactory.{h, cc}
  3894. * test/DefaultExtensionMessageFactoryTest.cc
  3895. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  3896. the container(peers and incomingPeers. The equality is determined by
  3897. Peer::id).
  3898. * test/DefaultPeerStorageTest.cc
  3899. * src/ExtensionMessage.h
  3900. * test/MockExtensionMessage.h
  3901. * src/ExtensionMessageFactory.h
  3902. * test/MockExtensionMessageFactory.h
  3903. * src/HandshakeExtensionMessage.{h, cc}
  3904. * test/HandshakeExtensionMessageTest.cc
  3905. * src/MetaEntry.h
  3906. * src/Peer.{h, cc}
  3907. * src/PeerInteractionCommand.cc
  3908. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  3909. addIncomingPeer.
  3910. * src/PeerMessageUtil.{h, cc}
  3911. * src/PeerObject.h
  3912. * src/UTPexExtensionMessage.{h, cc}
  3913. * test/UTPexExtensionMessageTest.cc
  3914. * src/message.h
  3915. * src/prefs.h
  3916. Fixed the bug that returns incomplete data when it contains null
  3917. character. A convenient constructor was also added.
  3918. * src/Data.{h, cc}
  3919. Rewritten.
  3920. * src/CompactPeerListProcessor.cc
  3921. Fixed typos.
  3922. * src/message.h
  3923. * src/MetaFileUtil.cc
  3924. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. Added "Status Legend" label to the explanation text of 'stat' in
  3926. download result and moved it to the last. BUG#1848214
  3927. * src/RequestGroupMan.cc
  3928. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3929. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  3930. * src/Makefie.am
  3931. * test/Makefile.am
  3932. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Fixed the bug that prevents aria2 from loading cookie file when expire
  3934. value is greater than 2^31-1. BUG#1851066
  3935. * src/CookieBoxFactory.cc
  3936. * test/CookieBoxFactoryTest.cc
  3937. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3938. Fixed possible memory leak when an exception is thrown.
  3939. * src/XML2SAXMetalinkProcessor.cc
  3940. Added Expat support. If both libxml2 and Expat are installed, then
  3941. libxml2 is used by default.
  3942. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  3943. ExpatMetalinkProcessor according to the configuration.
  3944. * src/ExpatMetalinkProcessor.{h, cc}
  3945. * src/main.cc: Removed libxml2 specific header and init/free function.
  3946. * src/MetalinkProcessorFactory.{h, cc}
  3947. * src/MetalinkHelper.cc
  3948. * src/Metalinker.h: Removed unnecessary libxml2 header.
  3949. * src/MetalinkProcessor.h
  3950. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  3951. MetalinkProcessorTest is used instead.
  3952. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  3953. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  3954. MetalinkProcessorFactory::newInstance().
  3955. * m4/libexpat.m4
  3956. * configure.ac: Added configuration options for libexpat.
  3957. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3958. Disabled -s option in metalink download.
  3959. * src/Metalink2RequestGroup.cc
  3960. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. If several protocols are available for a mirror in metalink file,
  3962. aria2 now use one of them. --metalink-preferred-protocol option was
  3963. added to specify the preference of protocol.
  3964. * src/AbstractCommand.cc
  3965. * src/OptionHandlerFactory.cc
  3966. * src/ServerHost.{h, cc}
  3967. * src/Metalink2RequestGroup.cc
  3968. * src/RequestGroup.{h, cc}
  3969. * test/RequestGroupTest.cc
  3970. * src/option_processing.cc
  3971. * src/prefs.h
  3972. * src/HttpResponseCommand.cc
  3973. * src/MetalinkResource.{h, cc}
  3974. * src/FtpNegotiationCommand.cc
  3975. * src/MetalinkEntry.{h, cc}
  3976. * src/MetalinkEntryTest.cc
  3977. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Code cleanup and added debug log.
  3979. * src/PeerConnection.cc
  3980. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3981. Compiler error fix: applied the patch by Tiziano Mueller
  3982. * src/RequestGroup.cc
  3983. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Fixed the bug: only first announce URL is tried in AnnounceTier,
  3985. in stopped and completed event.
  3986. * src/AnnounceList.{h, cc}
  3987. * test/AnnounceListTest.cc
  3988. * src/DefaultBtAnnounce.cc
  3989. * test/DefaultBtAnnounceTest.cc
  3990. Sorted URLs.
  3991. * test/Metalink2RequestGroupTest.cc
  3992. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3993. Removed unnecessary string copy. Updated doc and corrected indentation.
  3994. * src/Base64.cc
  3995. Fixed compilation warnings
  3996. * test/DataTest.cc
  3997. * test/HttpRequestTest.cc
  3998. * test/MetaFileUtilTest.cc
  3999. * test/RequestTest.cc
  4000. * Release 0.12.0
  4001. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4002. Updated translations
  4003. * po/{de,fr,ja,nl,ru}.po
  4004. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4005. translations. Many thanks to translators.
  4006. * po/{ca,es,it,pt_BR,sv}.po
  4007. * po/LINGUAS
  4008. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4009. Added a notice about URL
  4010. * src/version_usage.cc
  4011. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4012. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4013. aria2 repeatedly sends stopped request when tracker returns error code.
  4014. * src/AnnounceList.cc
  4015. * test/AnnounceListTest.cc
  4016. * src/AnnounceTier.h
  4017. Added a message when ctrl-c is hit.
  4018. Now second ctrl-c is also handled in signal handler.
  4019. * src/RequestGroupMan.{h, cc}
  4020. * src/RequestGroup.{h, cc}
  4021. * src/MultiUrlRequestInfo.cc
  4022. * src/DownloadEngine.cc
  4023. * src/TrackerWatcherCommand.cc
  4024. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4025. Code cleanup
  4026. * src/Base64.cc (encode)
  4027. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4028. Changed Direct/IO enable/disable procesure in file allocation routine.
  4029. * src/SingleFileAllocationIterator.cc
  4030. (SingleFileAllocationIterator):
  4031. Disable directIO if offset is not multiple of 512.
  4032. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4033. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4034. Enable created SingleFileAllocationIterator's directIO.
  4035. * src/FileAllocationEntry.cc
  4036. (FileAllocationEntry): Enable directIO here.
  4037. (~FileAllocationEntry): Disable directIO here.
  4038. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4039. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4040. * src/Peer.{h, cc}
  4041. * src/DefaultPieceStorage.cc
  4042. * test/DefaultPieceStorageTest.cc
  4043. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4044. Rewritten direct I/O support routine
  4045. * src/SingleFileAllocationIterator.cc
  4046. * src/MultiDiskAdaptor.{h, cc}
  4047. * src/ByteArrayDiskWriter.h
  4048. * src/AbstractSingleDiskAdaptor.h
  4049. * src/AbstractDiskWriter.cc
  4050. * src/DefaultPieceStorage.cc
  4051. * src/DiskWriter.h
  4052. * src/BinaryStream.h
  4053. * src/IteratableChunkChecksumValidator.cc
  4054. * src/IteratableChecksumValidator.cc
  4055. * src/CheckIntegrityEntry.cc
  4056. * src/FileAllocationEntry.cc
  4057. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4058. Fixed typo
  4059. * src/version_usage.cc
  4060. Updated doc
  4061. * doc/aria2c.1.txt
  4062. * doc/aria2c.1
  4063. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Fixed compile error without message digest support.
  4065. * src/FileMetalinkParserState.cc
  4066. * src/MetalinkParserController.{h, cc}
  4067. * test/XML2SAXMetalinkProcessorTest.cc
  4068. * test/MetalinkParserControllerTest.cc
  4069. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Enable direct I/O support in checksum checking.
  4071. * src/IteratableChunkChecksumValidator.{h, cc}
  4072. * test/IteratableChunkChecksumValidatorTest.cc
  4073. * src/CheckIntegrityEntry.cc
  4074. * src/PieceHashCheckIntegrityEntry.cc
  4075. * src/IteratableChecksumValidator.{h, cc}
  4076. * src/BtCheckIntegrityEntry.cc: Added doc.
  4077. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4078. Added --allow-piece-length-change option.
  4079. * src/DefaultBtProgressInfoFile.cc
  4080. * test/DefaultBtProgressInfoFileTest.cc
  4081. * src/OptionHandlerFactory.cc
  4082. * src/option_processing.cc
  4083. * src/prefs.h
  4084. * src/version_usage.cc
  4085. * doc/aria2c.1.txt
  4086. * doc/aria2c.1
  4087. Fixed: duplicated result entry appears when exception is thrown in
  4088. RequestGroup::createInitiateConnectionCommand().
  4089. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4090. Add RequestGroup to _requestGroup after RequetGroup::
  4091. createInitiateConnectionCommand() succeeds.
  4092. Externalized message
  4093. * src/XML2SAXMetalinkProcessor.cc
  4094. * src/message.h
  4095. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4096. Forced download abort when received negative response from http/ftp
  4097. server.
  4098. * src/HttpResponseCommand.cc
  4099. * src/FtpNegotiationCommand.cc
  4100. * src/HttpResponse.cc
  4101. * src/FtpConnection.cc
  4102. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4104. the predecessor, Xml2MetalinkParser class.
  4105. I tested them against 94KB metalink file with 1234 chunk checksums.
  4106. The new one parsed it in 22msec, while it took 6000msec with old one.
  4107. * src/XML2SAXMetalinkProcessor.{h, cc}
  4108. * test/XML2SAXMetalinkProcessorTest.cc
  4109. * src/MetalinkParserController.{h, cc}
  4110. * test/MetalinkParserControllerTest.cc
  4111. * src/MetalinkParserState.h: Also added 16 subclasses.
  4112. * src/main.cc
  4113. * src/Metalink2RequestGroup.cc
  4114. * src/MetalinkHelper.cc
  4115. * src/MetalinkEntry.cc
  4116. * src/ChunkChecksum.h
  4117. Rewritten Base64 class for better performance.
  4118. * src/Base64.{h, cc}
  4119. * test/Base64Test.cc
  4120. * src/HttpRequest.cc
  4121. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4122. Fixed the bug#1841757: aria2 will connect to server to only get
  4123. file size.
  4124. * src/StreamFileAllocationEntry.cc
  4125. * src/option_processing.cc
  4126. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4127. downloads.
  4128. * src/FtpNegotiationCommand.cc
  4129. Suppressed wrong message when finding PreDownloadHandler
  4130. * src/RequestGroup.cc
  4131. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4132. Updated usage
  4133. * src/version_usage.cc
  4134. Updated man page
  4135. * doc/aria2c.1.txt
  4136. * doc/aria2c.1
  4137. Updated po files
  4138. * po/aria2c.pot
  4139. * po/*.po
  4140. * po/*.gmo
  4141. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Eliminated g++-4.2 warning
  4143. * src/DownloadHandlerConstants.{h, cc}
  4144. * src/Util.cc
  4145. * test/MetaFileUtilTest.cc
  4146. * test/PStringBuildVisitorTest.cc
  4147. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4148. * src/RequestGroup.cc
  4149. * src/BtCheckIntegrityEntry.cc
  4150. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4151. Fixed a2io.h
  4152. * src/a2io.h
  4153. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4154. Added direct I/O support. The current implementation uses O_DIRECT,
  4155. which is not posix standard and is tested on linux 2.6.21.
  4156. Currently only file allocation uses direct I/O.
  4157. * src/SingleFileAllocationIterator.{h, cc}
  4158. * test/SingleFileAllocationIteratorTest.cc
  4159. * src/MultiFileAllocationIterator.{h, cc}
  4160. * test/MultiFileAllocationIteratorTest.cc
  4161. * src/BinaryStream.h
  4162. * src/DiskWriter.h
  4163. * src/AbstractDiskWriter.{h, cc}
  4164. * src/ByteArrayDiskWriter.h
  4165. * src/DiskAdaptor.h
  4166. * src/AbstractSingleDiskAdaptor.{h, cc}
  4167. * src/MultiDiskAdaptor.{h, cc}
  4168. * src/FileAllocationEntry.cc
  4169. * src/Util.{h, cc}
  4170. * src/OptionHandlerFactory.cc
  4171. * src/prefs.h
  4172. * src/version_usage.cc
  4173. * src/option_processing.cc
  4174. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  4175. handleException.
  4176. * src/MultiFileAllocationIterator.cc
  4177. Added EINTR handling
  4178. * src/SocketCore.cc
  4179. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4180. Updated usage
  4181. * src/version_usage.cc
  4182. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4183. Applied Ross's patch for MinGW port.
  4184. * src/DownloadEngine.h
  4185. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4186. Set Content-Type to SingleFileDownloadContext when http response is
  4187. received.
  4188. * src/HttpResponseCommand.cc
  4189. * src/HttpResponse.{h, cc}
  4190. * test/HttpResponseTest.cc
  4191. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Rewritten to add content-type support.
  4193. * src/DownloadHandler.{h, cc}
  4194. * src/BtPostDownloadHandler.{h, cc}
  4195. * test/BtPostDownloadHandlerTest.cc
  4196. * src/MetalinkPostDownloadHandler.{h, cc}
  4197. * test/MetalinkPostDownloadHandlerTest.cc
  4198. * src/PostDownloadHandler.{h, cc}
  4199. * src/DownloadHandlerConstants.{h, cc}
  4200. * src/RequestGroup.cc
  4201. * src/HttpResponseCommand.cc
  4202. * src/FtpNegotiationCommand.cc
  4203. * src/SingleFileDownloadContext.{h, cc}
  4204. * src/RequestGroup.h
  4205. * src/RequestGroupCriteria.h
  4206. * src/ContentTypeRequestGroupCriteria.h
  4207. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4208. If it is give, metalink/torrent file is not written to the disk, but
  4209. just is kept in memory. Parsing is occurred on memory.
  4210. * src/MetalinkHelper.{h, cc}
  4211. * src/MetalinkProcessor.h
  4212. * src/Xml2MetalinkProcessor.{h, cc}
  4213. * test/Xml2MetalinkProcessorTest.cc
  4214. * src/DownloadHandlerFactory.{h, cc}
  4215. * test/DownloadHandlerFactoryTest.cc
  4216. * src/PreDownloadHandler.{h, cc}
  4217. * src/OptionHandlerFactory.cc
  4218. * src/DefaultBtContext.{h, cc}
  4219. * test/DefaultBtContextTest.cc
  4220. * src/version_usage.cc
  4221. * src/Metalink2RequestGroup.{h, cc}
  4222. * src/RequestGroup.{h, cc}
  4223. * src/a2functional.h
  4224. * test/a2functionalTest.cc
  4225. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4226. * src/OptionHandlerImpl.h
  4227. * src/prefs.h
  4228. * src/Util.{h, cc}
  4229. * test/UtilTest.cc
  4230. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4231. memory usage.
  4232. * src/RequestGroupMan.{h, cc}
  4233. * src/DownloadEngine.cc
  4234. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4235. WeakHandle to SharedHandle because WeakHandle could be null.
  4236. * src/RequestGroup.{h, cc}
  4237. * src/DownloadEngineFactory.cc
  4238. * src/DownloadResult.h
  4239. Set totalLength after download finished
  4240. * src/UnknownLengthPieceStorage.{h, cc}
  4241. Keep torrent file specified in metalink in memory.
  4242. * src/Metalink2RequestGroup.cc
  4243. * src/BtDependency.cc
  4244. * src/TrueRequestGroupCriteria.h
  4245. Fixed the bug: seekg is used where seekp should be used.
  4246. * src/ByteArrayDiskWriter.cc
  4247. * test/ByteArraydiskWriterTest.cc
  4248. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Fixed syntax error
  4250. * test/SequenceTest.cc
  4251. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4253. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4254. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4255. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4256. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Added the check to see whether ares_host_callback accepts timeouts
  4258. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4259. * src/NameResolver.{h, cc}
  4260. * m4/libcares.m4
  4261. * configure.ac: Set C++ for language choice.
  4262. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Fixed: compilation fails without c-ares/ares
  4264. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4265. Generate http/ftp commands only when download is incomplete.
  4266. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4267. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. Corrected typo. Examples are removed since they are available in man
  4269. page.
  4270. * src/version_usage.cc
  4271. Updated man page.
  4272. * doc/aria2c.1
  4273. * doc/aria2c.1.txt
  4274. * doc/makeman: Commented out sed command.
  4275. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4276. Throw DlAbortEx when a remote file is not found.
  4277. * src/HttpResponse.cc
  4278. * src/FtpNegotiationCommand.cc
  4279. * src/message.h
  4280. Overwrite an existing file if --allow-overwrite=true is given.
  4281. * src/RequestGroup.cc
  4282. Removed unused functions
  4283. * src/AbstractCommand.h
  4284. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Removed 'extern' from 'extern typedef ...' in src/*.h
  4286. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Updated usage
  4288. * src/version_usage.cc
  4289. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4290. Trim announce URL
  4291. * src/DefaultBtContext.cc
  4292. * test/ShaVisitorTest.cc
  4293. Trim argument s. Give trimed s to exception constructor.
  4294. * src/Util.cc (parseInt)(parseLLInt)
  4295. * test/UtilTest.cc
  4296. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Set precision back to 1.
  4298. * src/ConsoleStatCalc.cc (calculateStat)
  4299. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4300. Replaced strtol with Util::parseInt
  4301. * src/ChunkedEncoding.cc
  4302. * src/HttpConnection.cc
  4303. * src/CookieBoxFactory.cc
  4304. * src/ParameterizedStringParser.cc
  4305. * src/Util.cc
  4306. * test/UtilTest.cc
  4307. * test/OptionHandlerTest.cc
  4308. * src/Request.cc
  4309. Throw exception when empty string is given. The message for exception
  4310. changed.
  4311. * src/Util.cc (parseInt)(parseLLInt)
  4312. * src/message.h
  4313. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4315. set to 1.
  4316. * src/ConsoleStatCalc.cc (calculateStat)
  4317. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. Preallocate non-requested file which is adjacent forward to requested
  4319. file('requested' files means the files given in --select-file option)
  4320. if they share a same piece.
  4321. This fixes long pause in the file system which doesn't support sparse
  4322. files like FAT32 while downloading.
  4323. * src/MultiFileAllocationIterator.{h, cc}
  4324. * test/MultiFileAllocationIteratorTest.cc
  4325. * src/FileEntry.{h, cc}
  4326. Removed unused _option.
  4327. * src/MultiDiskAdaptor.h
  4328. * test/MultiDiskAdaptorTest.cc
  4329. * src/DefaultPieceStorage.cc
  4330. Set the default value of --seed-ratio to 1.0.
  4331. If 0.0 is given, then seeding continues regardless of share ratio.
  4332. * src/version_usage.cc
  4333. * src/option_processing.cc
  4334. * src/BtSetup.cc
  4335. * doc/aria2c.1.txt
  4336. * doc/aria2c.1
  4337. Fixed: Selective download is not working in BitTorrent
  4338. * src/RequestGroup.cc
  4339. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4340. * src/PieceStorage.h
  4341. * test/MockPieceStorage.h
  4342. * src/UnknownLengthPieceStorage.h
  4343. * src/DefaultPieceStorage.{h, cc}
  4344. * src/Metalink2RequestGroup.cc
  4345. * src/RequestGroup.cc
  4346. * src/Sequence.h
  4347. * test/SequenceTest.cc
  4348. * src/IntSequence.h
  4349. * src/message.h
  4350. * src/Util.{h, cc}
  4351. * test/UtilTest.cc
  4352. Added new function 'parse' to catch exception thrown by subclass's
  4353. parseArg
  4354. * src/OptionHandler.h
  4355. * src/OptionParser.cc
  4356. * src/NameMatchOptionHandler.h
  4357. * src/OptionHandlerImpl.h
  4358. * test/OptionHandlerTest.cc
  4359. Added IntegerRangeOptionHandler. Used for --listen-port and
  4360. --select-file. Now --listen-port accepts range of port.
  4361. * src/OptionHandlerFactory.cc
  4362. * src/version_usage.cc
  4363. * src/OptionHandlerImpl.h
  4364. * src/option_processing.cc
  4365. * src/BtSetup.cc
  4366. * src/PeerListenCommand.{h, cc}
  4367. * doc/aria2c.1.txt
  4368. * doc/aria2c.1
  4369. Implemented operator< for Exception class to provide easy way to print
  4370. exception stack trace.
  4371. * src/Exception.{h, cc}
  4372. * src/main.cc
  4373. * src/option_processing.cc
  4374. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4375. * src/version_usage.cc
  4376. (showVersion): Reworked.
  4377. (showUsage): Added examples.
  4378. Removed Hint for total length and file name.
  4379. * src/Metalink2RequestGroup.cc
  4380. * src/RequestGroup.{h, cc}
  4381. * src/HttpResponseCommand.cc
  4382. * src/FtpNegotiationCommand.cc
  4383. Now --follow-torrent and --follow-metalink option work properly.
  4384. * src/RequestGroup.cc
  4385. Updated man page
  4386. * doc/aria2c.1.txt
  4387. * doc/aria2c.1
  4388. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4389. Removed.
  4390. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4391. Use Segment::operator==()
  4392. * src/HttpConnection.cc
  4393. * src/Segment.h
  4394. Updated usage
  4395. * src/version_usage.cc
  4396. Added EINTR treatment.
  4397. * src/SocketCore.cc
  4398. * src/AbstractDiskWriter.cc
  4399. Rewritten.
  4400. * src/Util.cc (rangedFileCopy)
  4401. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4402. Fixed typo.
  4403. * src/version_usage.cc
  4404. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4405. Implemented. Now -c option works fine.
  4406. * src/DefaultPieceStorage.cc (markPiecesDone)
  4407. * test/DefaultPieceStorageTest.cc
  4408. Removed.
  4409. * src/SegmentMan.{h, cc}
  4410. (markAllPiecesDone)
  4411. (markPieceDone)
  4412. Synchronized po files with
  4413. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  4414. * src/fr.po
  4415. * src/ru.po
  4416. * src/de.po
  4417. * src/ja.po
  4418. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Added ifdef and some modifications to compile without BitTorrent,
  4420. Metalink, MessageDigest
  4421. support.
  4422. * src/PieceHashCheckIntegrityEntry.cc
  4423. * src/MetalinkEntry.h
  4424. * src/version_usage.cc
  4425. * src/main.cc
  4426. * src/DownloadEngine.{h, cc}
  4427. * src/Metalink2RequestGroup.cc
  4428. * src/Peer.cc
  4429. * src/RequestGroup.cc
  4430. * src/MetalinkHelper.cc
  4431. * test/DefaultPieceStorageTest.cc
  4432. * test/MetalinkPostDownloadHandlerTest.cc
  4433. * test/Metalink2RequestGroupTest.cc
  4434. Hide TOTAL SPD when all downloads complete.
  4435. * src/ConsoleStatCalc.cc
  4436. Log target system information.
  4437. * src/main.cc
  4438. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4439. Now --metalink-location accepts a comma-deliminated list of locations.
  4440. * src/MetalinkEntry.{h, cc}
  4441. * test/MetalinkEntryTest.cc
  4442. * src/version_usage.cc
  4443. * src/Metalink2RequestGroup.cc
  4444. * src/Xml2MetalinkProcessor.cc
  4445. * test/Xml2MetalinkProcessorTest.cc
  4446. * doc/aria2c.1.txt
  4447. * doc/aria2c.1
  4448. * src/Util.cc (toUpper)(toLower): Rewritten.
  4449. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. Added the ability to detect duplicate download entry which is about to
  4451. download the same file other RequestGroup is downloading.
  4452. * src/RequestGroup.cc
  4453. * src/HttpResponseCommand.cc
  4454. * src/FtpNegotiationCommand.cc
  4455. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. Recalculates download progress when loading a control file,
  4457. if the piece length of DownloadContext is different from the one saved
  4458. in the control file. Currently in-flight pieces are ignored.
  4459. * src/DefaultBtProgressInfoFile.cc
  4460. * test/DefaultBtProgressInfoFileTest.cc
  4461. * src/Util.{h, cc}
  4462. * test/UtilTest.cc
  4463. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4464. Do not rotate tiers in announce-list.
  4465. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  4466. AnnounceList::allTiersFailed() used instead to detect whether all
  4467. tiers are tried and failed.
  4468. * test/DefaultBtAnnounceTest.cc
  4469. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  4470. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  4471. * test/AnnounceListTest.cc
  4472. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  4473. clause. Catch RecoverableException instead of DlRetryEx instead.
  4474. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Implemented checksum validation feature(1 checksum for each file)
  4476. The validation takes place after the download.
  4477. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  4478. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  4479. * src/CheckIntegrityCommand.cc: Changed log message.
  4480. * src/Metalink2RequestGroup.cc: Set checksum to
  4481. SingleFileDownloadContext.
  4482. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  4483. PieceHashCheckIntegrity class.
  4484. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  4485. PieceHashCheckIntegrity class.
  4486. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  4487. * src/IteratableValidator.h: New class.
  4488. * src/message.h
  4489. * src/CheckIntegrityEntry.{h, cc}
  4490. * src/IteratableChunkChecksumValidator.{h, cc}
  4491. * src/SingleFileDownloadContext.h
  4492. * src/DownloadCommand.cc
  4493. --allow-overwrite=true is no longer needed to check file integrity
  4494. before download in BitTorrent download.
  4495. * src/RequestGroup.cc (getInitialCommand)
  4496. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  4497. throws exception.
  4498. * src/RequestGroupMan.cc (getInitialCommands)
  4499. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. urlencode the given url inside Request::parseUrl(...)
  4501. * src/Request.{h, cc}
  4502. * src/Util.{h, cc}
  4503. * test/RequestTest.cc
  4504. Removed #!metalink3! notation support because it is deleted from
  4505. the metalink specification.
  4506. * src/Request.{h, cc}
  4507. * test/RequestTest.cc
  4508. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. Don't connect server before checking file integrity at startup, if
  4510. filesize and output file path are known.
  4511. * src/AbstractCommand.cc
  4512. * src/StreamFileAllocationEntry.cc
  4513. * src/Metalink2RequestGroup.cc
  4514. * src/RequestGroup.{h, cc}
  4515. * src/HttpResponseCommand.cc
  4516. * src/FtpNegotiationCommand.cc
  4517. Added DownloadFailureException. If it is thrown, RequestGroup should
  4518. halt.
  4519. * src/AbstractCommand.cc
  4520. * src/DownloadFailureException.h
  4521. * src/RequestGroup.cc
  4522. Catch RecoverableException, instead of DlAbortEx.
  4523. * src/RequestGroupMan.cc
  4524. * src/FillRequestGroupCommand.cc
  4525. * src/MetaFileUtil.cc
  4526. * src/IteratableChunkChecksumValidator.cc
  4527. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  4528. getGID())
  4529. * src/CheckIntegrityCommand.cc
  4530. * src/message.h
  4531. Print gid instead of idx.
  4532. * src/RequestGroupMan.cc
  4533. Removed exception throwers declaration.
  4534. * src/DirectDiskAdaptor.{h, cc}
  4535. * src/SocketCore.{h, cc}
  4536. * src/MultiDiskAdaptor.{h, cc}
  4537. * src/HttpConnection.{h, cc}
  4538. * src/HttpResponse.{h, cc}
  4539. * src/DiskAdaptor.{h, cc}
  4540. * src/CopyDiskAdaptor.{h, cc}
  4541. * src/MultiDiskAdaptor.{h, cc}
  4542. * src/HttpHeaderProcessor.{h, cc}
  4543. * src/AbstractSingleDiskAdaptor.{h, cc}
  4544. * src/Util.{h, cc}
  4545. * test/UtilTest.cc
  4546. * src/DefaultDiskWriter.{h, cc}
  4547. * src/FtpConnection.{h, cc}
  4548. * src/AbstractDiskWriter.{h, cc}
  4549. Removed duplicate code.
  4550. * src/StreamCheckIntegrityEntry.cc
  4551. Removed unnecessary include.
  4552. * src/DiskWriter.h
  4553. Included Exception.h
  4554. * src/option_processing.cc
  4555. Included 2 files and added doc
  4556. * src/TrackerWatcherCommand.cc
  4557. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  4558. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Changed CheckIntegrityEntry interface so that it can define
  4560. the action when all the chunk checksums are valid.
  4561. * src/CheckIntegrityEntry.h
  4562. * src/StreamCheckIntegrityEntry.{h, cc}
  4563. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  4564. are valid, then aira2 goes to seeding mode. Sometimes it is better
  4565. to exit rather than doing seeding. So, it would be good to toggle this
  4566. behavior.
  4567. * src/CheckIntegrityCommand.cc
  4568. * src/AbstractCommand.cc
  4569. * src/RequestGroup.cc
  4570. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Reflect the download length of in-flight pieces.
  4572. It makes the download length readout more precise.
  4573. * src/DefaultPieceStorage.{h, cc}
  4574. * test/DefaultPieceStorageTest.cc
  4575. * src/a2functional.h
  4576. * test/a2functionalTest.cc
  4577. Lower CPU load when --max-download-limit is used.
  4578. There is up and down in speed indicator when enabling
  4579. http-pipelining but a download goes well. I think the problem is that
  4580. because http-pipelining is enabled, DownloadCommand is created for
  4581. each segment and in its constructor, PeerStat::downloadStart() is
  4582. called. In PeerStat::downloadStart(), speed calculation object is
  4583. reseted, which makes download speed zero.
  4584. * src/DownloadCommand.cc
  4585. Rewritten using accumulate.
  4586. * src/RequestGroupMan.cc (calculateStat)
  4587. Code clearnup.
  4588. * src/FtpNegotiationCommand.cc
  4589. * src/HttpResponseCommand.cc
  4590. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Fixed: Can not resume: aria2 reports download already finished.
  4592. * src/AbstractCommand.{h, cc}
  4593. * src/HttpResponseCommand.cc
  4594. * src/FtpNegotiateCommand.cc
  4595. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Now a file is stored in the directory specified in .metalnk file
  4597. (file[@name]).
  4598. * src/Metalink2RequestGroup.cc
  4599. Create the directory structure when opening the file if it doesn't
  4600. exist.
  4601. * src/AbstractDiskWriter.cc
  4602. * src/Util.{h, cc}
  4603. * src/File.h
  4604. * test/UtilTest.cc
  4605. Removed file name comparison
  4606. * src/Metalink2RequestGroup.cc
  4607. * src/HttpResponseCommand.cc
  4608. Rewritten using Util::mkdirs()
  4609. * src/FileEntry.cc (setupDir)
  4610. * test/FileEntryTest.cc
  4611. Updated doc
  4612. * src/SingleFileDownloadContext.h
  4613. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4614. Now SleepCommand dispatches nextCommand when halt is requested.
  4615. It avoids a possible long wait after hitting CTRL-C.
  4616. * src/SleepCommand.{h, cc}
  4617. * src/RequestGroupAware.{h, cc}
  4618. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  4620. to open listen port, then remove the port number from the tracker
  4621. request.
  4622. * src/DefaultBtAnnounce.cc
  4623. * test/DefaultBtAnnounceTest.cc
  4624. * test/MockPieceStorage.h
  4625. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  4626. them more testable.
  4627. * src/DefaultBtAnnounce.{h, cc}
  4628. * src/DefaultBtContext.{h, cc}
  4629. * src/Util.{h, cc}
  4630. * test/DefaultBtAnnounceTest.cc
  4631. * test/DefaultBtContextTest.cc
  4632. * test/UtilTest.cc
  4633. Added 'B' to upload bytes readout.
  4634. * src/ConsoleStatCalc.cc
  4635. Now the listen port for BitTorrent download is opened when it is
  4636. needed.
  4637. * src/DownloadEngineFactory.cc
  4638. * src/BtSetup.{h, cc}
  4639. * src/PeerListenCommand.{h, cc}
  4640. Now an exception thrown while parsing tracker response is now logged.
  4641. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  4642. called, which means no retry is made in this case, assuming a tracker
  4643. has a problem.
  4644. * src/TrackerWatcherCommand.cc
  4645. Fixed: downloading a file whose length is unkown fails.
  4646. * src/DownloadCommand.cc
  4647. Simplified prepareForNextSegment()
  4648. * src/DownloadCommand.cc
  4649. Updated
  4650. * po/POTFILES.in
  4651. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Re-implemented a file listing for Metalink, which was dropped while
  4653. http/ftp/torrent integration was being implemented.
  4654. * src/MetalinkHelper.{h, cc}: New class.
  4655. * test/MetalinkHelperTest.cc
  4656. * src/main.cc
  4657. * src/Metalink2RequestGroup.cc
  4658. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Added the ability to display the detailed torrent file information.
  4660. Now -S option gives not only a file listing, but also total download
  4661. length, info hash, announce URI, piece length, the number of pieces,
  4662. and mode(single or multi-torrent).
  4663. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  4664. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  4665. KiB)
  4666. * test/UtilTest.cc
  4667. * src/main.cc
  4668. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Added ftp://USER:PASSWD@Servername automatic parsing.
  4670. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  4671. _password. Recognize username and password in URI.
  4672. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  4673. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  4674. * src/RequestFactory.{h, cc}: Removed.
  4675. * src/AuthConfigFactory.{h, cc}: New class.
  4676. * src/FtpConnection.cc: Use AuthConfigFactory.
  4677. * src/HttpRequest.cc: Use AuthConfigFactory.
  4678. * test/HttpRequestTest.cc: Updated.
  4679. * test/RequestTest.cc: Updated.
  4680. * test/AuthConfigFactoryTest.cc: New class.
  4681. * test/RequestFactoryTest.cc: Removed.
  4682. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Use RequestGroup::allDownloadFinished() to decide whether the control
  4684. file should be removed or saved.
  4685. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  4686. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  4687. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4688. Use File::renameTo()
  4689. * src/DefaultBtProgressInfoFile.cc
  4690. Added --no-file-allocation-limit command-line option.
  4691. * src/version_usage.cc
  4692. * src/option_processing.cc
  4693. * src/OptionHandlerFactory.cc
  4694. * src/RequestGroup.{h, cc}
  4695. * src/BtCheckIntegrityEntry.cc
  4696. * src/StreamCheckIntegrityEntry.cc
  4697. * src/prefs.h
  4698. * doc/aria2c.1.txt
  4699. * doc/aria2c.1
  4700. Now prealloc is the default value for --file-allocation option.
  4701. * src/version_usage.cc
  4702. * src/option_processing.cc
  4703. * doc/aria2c.1.txt
  4704. * doc/aria2c.1
  4705. Don't URL-encode user-agent.
  4706. * src/HttpRequest.cc
  4707. Updated translations
  4708. * po/LINGUAS: Added nl for Dutch translation.
  4709. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  4710. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  4711. * po/POTFILES.in: Updated.
  4712. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Added the ability to recognize url-list in a torrent file.
  4714. The retrieved URLs are attached to the corresponding FileEntry.
  4715. * src/DefaultBtContext.{h, cc}
  4716. * src/FileEntry.{h, cc}
  4717. * test/DefaultBtContextTest.cc
  4718. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  4720. after the download finishes.
  4721. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4722. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  4723. the data smaller than block length.
  4724. A block length can be specified by constructor's argument.
  4725. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  4726. Get a missing piece in the range of given FileEntry. This function is
  4727. not used in the program yet.
  4728. * src/Util.h: Added some macros.
  4729. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4730. Added HTTP/1.1 keep alive and pipelining support.
  4731. See --enable-http-keep-alive and --enable-http-pipelining option.
  4732. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  4733. Segment.
  4734. * src/HttpDownloadCommand.{h, cc}
  4735. * src/OptionHandlerFactory.cc
  4736. * src/HttpConnection.{h, cc}
  4737. * src/version_usage.cc
  4738. * src/HttpInitiateConnectionCommand.cc
  4739. * src/FtpInitiateConnectionCommand.cc
  4740. * src/Segment.h
  4741. * src/HttpRequestCommand.{h, cc}
  4742. * src/option_processing.cc
  4743. * src/prefs.h
  4744. * src/HttpResponseCommand.cc
  4745. * src/SegmentMan.{h, cc}
  4746. * src/FtpNegotiateCommand.cc
  4747. * src/HttpProxyResponseCommand.cc
  4748. * src/Request.cc
  4749. * src/HttpRequest.cc
  4750. * src/DownloadCommand.cc
  4751. * test/HttpRequestTest.cc
  4752. * test/RequestTest.cc
  4753. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  4755. finished.
  4756. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  4758. catching it inside the method.
  4759. When no file entry is found in a metalink without querying user
  4760. preferences, throw the exception with the error message that suggests
  4761. metalink file is probably broken.
  4762. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  4763. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Fixed the bug that prevents remote Metalink/Torrent file from begin
  4765. processed.
  4766. * src/RequestGroupMan.cc (removeStoppedGroup)
  4767. Added debug message.
  4768. * src/BtPostDownloadHandler.cc
  4769. * src/MetalinkPostDownloadHandler.cc
  4770. * src/PostDownloadHandler.{h, cc}
  4771. * src/RequestGroup.cc
  4772. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  4774. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4775. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  4776. stops and there are any unfinished or in-progress downloads.
  4777. Added the legend of "stat".
  4778. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Throw exception when chunck checksum verification fails.
  4780. * src/DownloadCommand.cc (validatePieceHash): New function.
  4781. * src/PiecedSegment.{h, cc} (clear): New function.
  4782. * src/GrowSegment.{h, cc} (clear): New function.
  4783. * src/Segment.h (clear): New function.
  4784. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  4785. * test/SegmentTest.cc
  4786. * test/GrowSegmentTest.cc
  4787. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Do not send referer when redirected.
  4789. * src/Request.cc (redirectUrl)
  4790. * test/RequestTest.cc
  4791. * test/HttpRequestTest.cc
  4792. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4793. Implemented BitTorrent/http/ftp integrated download.
  4794. I've rewritten lots of files and now some headers have forward
  4795. class declarations to reduce compile time.
  4796. The implementation is extremely alpha stage, I recommend to use this
  4797. for testing purpose only.
  4798. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Fixed the compilation error on 64bit platform.
  4800. * test/HttpHeaderProcessorTest.cc
  4801. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Merged Ross's patch that fixes compilation problem in MinGW
  4803. * test/DefaultBtProgressInfoFileTest.cc
  4804. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. Updated fr.po by sebone
  4806. * po/fr.po
  4807. Updated man page.
  4808. * doc/aria2c.1.txt
  4809. * Release 0.11.3
  4810. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4811. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  4812. failure in Metalink.
  4813. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Automatically save *.aria2 control file of http/ftp download in every
  4815. 60 seconds.
  4816. * src/AutoSaveCommand.{h, cc}: New class.
  4817. * src/TimeBasedCommand.{h, cc}: New class.
  4818. * src/DownloadEngineFactory.cc (newConsoleEngine)
  4819. Disable parameterized URI support by default. Added -P option to
  4820. enable the feature.
  4821. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  4822. * src/OptionHandlerFactory.cc
  4823. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  4824. Updated Japanese translation.
  4825. * po/ja.po
  4826. Updated man page.
  4827. * doc/aria2c.1.txt
  4828. * Release 0.11.3-rc
  4829. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4830. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  4831. it is successful, then renamed to *.aria2.
  4832. This prevents *.aria2 file from being truncated or corrupted when
  4833. file system becomes out of space.
  4834. * src/DefaultBtProgressInfoFile.cc (save)
  4835. * src/SegmentMan.cc (save)
  4836. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  4837. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Reduced the fragmentation of bitfield in http/ftp download.
  4839. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  4840. * test/BitfieldManTest.cc
  4841. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Added the ability to disable segmented download in .metalink.
  4843. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  4844. 'url' tag.
  4845. * src/MetalinkEntry.{h, cc}
  4846. * src/RequestResource.{h, cc}
  4847. * src/MetalinkRequestInfo.cc
  4848. * src/Xml2MetalinkProcessor.cc
  4849. * test/Xml2MetalinkProcessorTest.cc
  4850. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Added parameterized URI support.
  4852. * src/main.cc: -Z option added.
  4853. * src/OptionHandlerFactory.cc
  4854. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  4855. * src/PStringDatum.h: New class.
  4856. * src/PStringSegment.{h,cc}: New class.
  4857. * src/PStringNumLoop.h: New class.
  4858. * src/PStringSelect.h: New class.
  4859. * src/NumberDecorator.h: New class.
  4860. * src/FixedWidthNumberDecorator.h: New class.
  4861. * src/AlphaNumberDecorator.h: New class.
  4862. * src/PStringVisitor.h: New class.
  4863. * src/PStringBuildVisitor.{h,cc}: New class.
  4864. * src/ParameterizedStringParser.{h,cc}: New class.
  4865. * src/Util.{h,cc}
  4866. (isNumber): New function.
  4867. (isLowercase): New function.
  4868. (isUppercase): New function.
  4869. (alphaToNum): New function.
  4870. * test/ParameterizedStringParserTest.cc: New class.
  4871. * test/AlphaNumberDecoratorTest.cc: New class.
  4872. * test/PStringBuildVisitorTest.cc: New class.
  4873. * test/UtilTest.cc
  4874. (testIsNumber): New function.
  4875. (testIsLowercase): New function.
  4876. (testIsUppercase): New function.
  4877. (testAlphaToNum): New function.
  4878. Added '\n' after the error message
  4879. * src/RequestInfo.h (printDownloadAbortMessage)
  4880. Added auto file renaming feature in http(s)/ftp download.
  4881. * src/main.cc: Added --auto-file-renaming command-line option.
  4882. * src/OptionHandlerFactory.cc
  4883. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  4884. * src/RequestGroup.{h, cc}
  4885. (shouldCancelDownloadForSafety): Rewritten
  4886. (tryAutoFileRenaming): New function.
  4887. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  4888. * src/HttpResponseCommand.cc
  4889. (executeInternal): Removed the call to RequestGroupMan::
  4890. isSameFileBeingDownloaded()
  4891. * src/FtpNegotiateCommand.cc
  4892. (recvSize): Removed the call to RequestGroupMan::
  4893. isSameFileBeingDownloaded()
  4894. * test/RequestGroupTest.cc: New class.
  4895. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  4897. IO.
  4898. * src/DefaultBtProgressInfoFile.cc
  4899. * src/MetaFileUtil.cc
  4900. * src/SimpleLogger.cc
  4901. * src/SegmentMan.cc
  4902. * src/Util.cc
  4903. * src/Platform.cc
  4904. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  4906. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Avoid sparse files if possible, because VFAT32 doesn't support it.
  4908. * src/DefaultDiskWriter.cc (initAndOpenFile)
  4909. Fixed the bug that prevents file allocation is not done when
  4910. dowloading multi-torrent file.
  4911. * src/AbstractDiskWriter.cc (openFile)
  4912. Increase the maximum number of -j option from 15 to 45.
  4913. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4914. Added fr.po, thanks to Charles Landemaine.
  4915. * po/fr.po
  4916. * po/LINGUAS
  4917. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4918. gcc 3.4.4 support:
  4919. * src/DefaultBtContext.cc: int32_t -> int
  4920. * src/main.cc: int -> int32_t, int32_t -> int
  4921. * src/messageDigest.h: uint32_t -> unsigned int
  4922. * src/NameResolver.h: int32_t -> int
  4923. * src/PeerConnection.cc: int -> int32_t
  4924. * src/SpeedCalc.cc: int32_t -> int
  4925. * src/TrackerUpdateCommand.h: int -> int32_t
  4926. * src/Util.cc: int32_t -> int
  4927. * src/Util.h: int32_t -> int
  4928. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  4929. * test/AnnounceListTest.cc: int -> int32_t
  4930. * test/ChunkedEncodingTest.cc: int -> int32_t
  4931. * test/DataTest.cc: int -> int32_t
  4932. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  4933. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  4934. * test/DefaultPieceStorageTest.cc: int -> int32_t
  4935. * test/FeatureConfigTest.cc: int -> int32_t
  4936. * test/MetalinkEntryTest.cc: int -> int32_t
  4937. * test/MockBtRequestFactory.h: int -> int32_t
  4938. * test/MockPieceStorage.h: int -> int32_t
  4939. * test/OptionTest.cc: int -> int32_t
  4940. * test/RequestTest.cc: int -> int32_t
  4941. * test/SegmentManTest.cc: int -> int32_t
  4942. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  4943. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4944. Move sleep functions to Util class:
  4945. * src/Util.cc
  4946. (sleep): New function.
  4947. (usleep): New function.
  4948. * src/DownloadCommand.cc: sleep -> Util::sleep
  4949. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  4950. MinGW build enhancements. The following files are added:
  4951. * src/timegm.{c,h}
  4952. Changes to support the above new files:
  4953. * configure.ac
  4954. * src/Makefile.am
  4955. * src/a2time.h
  4956. * src/Util.cc:
  4957. * src/strptime.c: Added support for %Z option.
  4958. Fixed MinGW non-blocking bug.
  4959. * src/SocketCore.cc
  4960. * src/HttpRequestCommand.cc
  4961. Miscellenous build fixes/enhancements.
  4962. * configure.ac: Added summary report.
  4963. * src/Platform.h: Tweaked #include's.
  4964. * src/a2netcompat.h: Tweaked #include's.
  4965. * src/strptime.h: Tweaked #include's.
  4966. * src/gai_strerror.c: Tweaked #include's.
  4967. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  4968. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  4969. * src/gettimeofday.h: Added HAVE_CONFIG_H
  4970. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4971. Increased the initial connection size in BitTorrent download to 40.
  4972. * src/BtRuntime.h
  4973. Added the usage message of --peer-id-prefix option.
  4974. * src/main.cc
  4975. * Release 0.11.2
  4976. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4977. MessageDigestHelper is introduced in order to simplify the use
  4978. of message digest. Removed repeated code.
  4979. The message digest algorithm is now specified by string, like "sha1",
  4980. "md5".
  4981. * src/messageDigest.{h, cc}
  4982. * src/MessageDigestHelper.{h, cc}: New class.
  4983. * src/DefaultPieceStorage.cc
  4984. * src/DefaultBtContext.{h, cc}
  4985. (computeFastSet): New function.
  4986. (setInfoHash): Added for unit testing.
  4987. (setNumPieces): Added for unit testing.
  4988. * src/DefaultBtInteractive.cc
  4989. * src/BtPieceMessage.cc
  4990. * src/Peer.cc
  4991. * src/Checksum.h
  4992. * src/message.h
  4993. * src/IteratableChecksumValidator.h
  4994. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  4995. inside it.
  4996. * src/SegmentMan.{h, cc}
  4997. (checkIntegrity): Removed.
  4998. * src/IteratableChunkChecksumValidator.{h, cc}
  4999. * src/Util.h
  5000. (sha1Sum): Removed.
  5001. (simpleMessageDigest): Removed.
  5002. (fileChecksum): Removed.
  5003. (computeFastSet): Removed.
  5004. * src/ShaVisitor.cc
  5005. * src/ChunkChecksum.h
  5006. * src/DownloadCommand.cc
  5007. Removed messageDigest virtual functions.
  5008. * src/MultiDiskAdaptor.{h, cc}
  5009. * src/DiskAdaptor.h
  5010. * src/ByteArrayDiskWriter.h
  5011. * src/DiskWriter.h
  5012. * src/DiskAdaptorWriter.h
  5013. * src/AbstractSingleDiskAdaptor.{h, cc}
  5014. * src/AbstractDiskWriter.{h, cc}
  5015. Fixed comilation error when message digest is disabled.
  5016. * src/MetalinkEntry.{h, cc}
  5017. * src/MetalinkRequestInfo.cc
  5018. Removed srandom and random.
  5019. * src/SimpleRandomizer.h
  5020. Added size() virtual function to DiskAdaptor
  5021. * src/MultiDiskAdaptor.h
  5022. Fixed the bug that causes that files are not opened correctly in
  5023. multi-file torrent.
  5024. * src/TorrentRequestInfo.cc
  5025. * src/MultiDiskAdaptor.cc
  5026. Added SHA256 support
  5027. * src/messageDigest.cc
  5028. * src/Xml2MetalinkProcessor.cc
  5029. Show supported message digest algorithms
  5030. * src/main.cc
  5031. Updated contact info.
  5032. * src/main.cc
  5033. Applied Ross's patch
  5034. * src/a2netcompat.h
  5035. * src/main.cc
  5036. Fixed the bug that prevents a remote metalink from not being processed
  5037. even if '-o foo.metalink' is specified.
  5038. * src/MetalinkRequestInfo.cc
  5039. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5040. Merged Dan's patch:
  5041. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5042. Use va_copy to avoid core dump on amd64:
  5043. * src/SimpleLogger.cc
  5044. Updated contact info.
  5045. * src/main.cc
  5046. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5047. digest is not available.
  5048. * src/MetalinkEntry.h
  5049. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Make a2netcompat.h include a2io.h to fix compilation error:
  5051. * src/a2netcompat.h
  5052. * src/SocketCore.cc: Removed include of a2io.h
  5053. * src/Util.cc: Removed include of a2io.h
  5054. Gather time related functions to a2time.h:
  5055. * src/a2time.h: New file.
  5056. * src/DefaultPeerStorage.cc
  5057. * src/SimpleLogger.cc
  5058. * src/Util.{h, cc}
  5059. * src/SimpleRandomizer.h
  5060. * src/TimeA2.{h,cc}
  5061. * src/DownloadCommand.cc
  5062. * src/main.cc
  5063. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5064. a2netcompat.h:
  5065. * src/NameResolver.cc
  5066. Fixed compilation error without openssl:
  5067. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5068. Added default block to suppress compiler warnings:
  5069. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5070. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5071. MinGW build enhancements. The following files are added:
  5072. * src/gai_strerror.{c,h}
  5073. * src/gettimeofday.{c,h}
  5074. Changes to support the above new files:
  5075. * configure.ac
  5076. * src/Makefile.am
  5077. * src/a2netcompat.h
  5078. * src/TimeA2.cc
  5079. * src/DefaultPeerStorage.cc
  5080. * src/NameResolver.cc: removed mingw_strerror() function.
  5081. * src/SocketCore.cc: removed mingw_strerror() function.
  5082. Miscellaneous MinGW build fixes.
  5083. * src/a2io.h: Use _lseeki64() instead of lseek()
  5084. * src/common.h
  5085. * src/DefaultFileAllocator.cc
  5086. * src/GlowFileAllocator.cc
  5087. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5088. * src/NameResolver.cc
  5089. (callback): Changed int32_t to int.
  5090. (resolve): Changed int32_t to int.
  5091. * src/Platform.cc
  5092. * src/Platform.h
  5093. * test/MultiDiskWriterTest.cc
  5094. * test/PeerMessageUtilTest.cc
  5095. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5096. Other enhancements and fixes.
  5097. * src/HttpRequestCommand.cc
  5098. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5099. * src/SocketCore.cc:
  5100. (error): New function to abstract errno/WSAGetLastError().
  5101. (errorMsg): New function to abstract errno/WSAGetLastError().
  5102. (initiateSecureConnection): Added more detailed error reporting.
  5103. * src/SocketCore.h: Added private variable blocking, to allow
  5104. proper handling of OpenSSL psuedo-errors.
  5105. * src/message.h
  5106. (EX_SSL_INIT_FAILURE)
  5107. (EX_SSL_IO_ERROR)
  5108. (EX_SSL_PROTOCOL_ERROR)
  5109. (EX_SSL_UNKNOWN_ERROR)
  5110. (EX_SSL_CONNECT_ERROR)
  5111. (EX_SOCKET_BLOCKING)
  5112. (EX_SOCKET_NONBLOCKING)
  5113. (EX_SOCKET_UNKNOWN_ERROR)
  5114. * src/Util.cc
  5115. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5116. reserved name.
  5117. (httpGMT): Fixed typo.
  5118. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Merged Ross's win32 patch(manually)
  5120. In the course of merging, following files are added.
  5121. * src/strptime.{h,c}
  5122. * src/libgen.{h,c}
  5123. * src/inet_aton.{h,c}
  5124. * src/Platform.{h,cc}
  5125. * src/localtime_r.{h,c}
  5126. * src/getaddrinfo.{h,c}
  5127. I've gethered network related things, and put them to following file:
  5128. * src/a2netcompat.h
  5129. Also io related things are put to following file:
  5130. * src/a2io.h
  5131. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5132. * src/message.h
  5133. (MSG_ALLOCATION_COMPLETED)
  5134. (EX_TOO_LARGE_FILE)
  5135. (EX_SIZE_MISMATCH)
  5136. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5137. (EX_INVALID_CHUNK_CHECKSUM)
  5138. (EX_INVALID_RANGE_HEADER)
  5139. * src/FileAllocationCommand.cc
  5140. * src/HttpResponse.cc
  5141. * src/RequestGroup.cc
  5142. * src/MultiDiskAdaptor.cc
  5143. * src/OptionHandlerImpl.h
  5144. * src/HttpResponseCommand.cc
  5145. * src/FtpNegotiateCommand.cc
  5146. * src/IteratableChecksumValidator.cc
  5147. * src/SegmentMan.cc
  5148. * src/ChunkChecksumValidator.cc
  5149. Added Randomizer::getRandomNumber(long int)
  5150. * src/Randomizer.h (getRandomNumber)
  5151. * src/SimpleRandomizer.h (getRandomNumber)
  5152. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5153. * src/Util.cc (randomAlpha): Use this new function.
  5154. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5155. Converted int's to in32_t. long long int's are also converted to
  5156. int64_t
  5157. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Fixed the bug that prevents cookies from being sent to the server
  5159. if the domain of cookie is FQDN and starts with ".".
  5160. * src/Cookie.cc (match)
  5161. To add the ability to change peer id.
  5162. * src/DefaultBtContext.h
  5163. (_peerIdPrefix): New variable
  5164. (setPeerIdPrefix): New function.
  5165. * src/torrentRequestInfo.cc
  5166. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  5167. DefaultBtContext.
  5168. * src/main.cc (main): Added peer-id-prefix command-line option.
  5169. The usage message is not added yet.
  5170. * src/DefaultBtContext.cc
  5171. (generatePeerId): Use _peerIdPrefix.
  5172. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  5173. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5174. Fixed the bug that prevents filename in content-disposition from
  5175. being retrieved when filename is not quoted.
  5176. * src/Util.cc (getContentDispositionFilename)
  5177. Fixed the bug that causes infinate loop and memory leak when file open
  5178. operation failed.
  5179. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5180. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Fixed the bug that causes segfault when all URIs specified are
  5182. unsupported.
  5183. * src/RequestGroupMan.cc (getInitialCommands)
  5184. Check if RequestGroup::createNextCommand() returns empty list of
  5185. commands.
  5186. * src/RequestGroup.cc (createNextCommand)
  5187. Change log level from info to error so that users can notice that
  5188. an error occurred.
  5189. Fixed the bug that causes segfault when a zero-sized file is
  5190. downloaded.
  5191. * src/BitfieldMan.cc (isAllBitSet)
  5192. Return true if bitfieldLength is 0.
  5193. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5194. * src/main.cc
  5195. (showUsage): Added 3 usage examples for metalink download.
  5196. Replace MetalinkChunkChecksum with ChunkChecksum.
  5197. * src/MetalinkChunkChecksum.h: Removed.
  5198. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5199. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5200. * src/Xml2MetalinkProcessor.cc
  5201. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5202. * src/MetalinkRequestInfo.cc (execute)
  5203. * Release 0.11.1
  5204. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Reads URIs from stdin when "-i -" is specified.
  5206. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5207. * src/UriListParser.h, src/UriListParser.cc: New class.
  5208. * src/StreamUriListParser.h: New class.
  5209. * src/FileUriListParser.h: New class.
  5210. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5211. instead of UriFileListParser.
  5212. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Made console readout more readable.
  5214. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5215. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Fix the bug that causes -s option not to work.
  5217. * src/main.cc (main)
  5218. * src/a2algo.h: New file.
  5219. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Create directory structure specified in metalink file.
  5221. * src/RequestGroup.h, src/RequestGroup.cc
  5222. (initAndOpenFile): Create a directory to store files if it does not
  5223. exist.
  5224. (getDir): New function.
  5225. Added ETA and download speed for an individual file to readout.
  5226. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5227. * src/RequestGroup.h
  5228. (calculateDownloadSpeed): New function.
  5229. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5230. Made -S option work with metalink file and provided selective download
  5231. to metalink.
  5232. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5233. (filename): Removed.
  5234. (file): New variable.
  5235. (size): Removed.
  5236. (operator=): Updated.
  5237. (getPath): New function.
  5238. (getLength): New function.
  5239. (toFileEntry): New function.
  5240. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5241. (execute): Use toStream.
  5242. (showFileEntry): Removed.
  5243. * src/MetalinkRequestInfo.h
  5244. (targetFiles): New variable.
  5245. (setTargetFiles): New variable.
  5246. * src/MetalinkRequestInfo.cc
  5247. (execute): Added the ability to print file information included in
  5248. a metalink file.
  5249. Added selective download mode to metalink.
  5250. * src/main.cc
  5251. (showUsage): Updated to denote that -S and --select-file options are
  5252. applicable to metalink.
  5253. * src/FileEntry.h
  5254. (operator=): New function.
  5255. (getBasename): New function.
  5256. (getDirname): New function.
  5257. * src/Util.h, src/Util.cc
  5258. (toStream): New function.
  5259. * src/Xml2MetalinkProcessor.cc: Updated.
  5260. Made aria2 work with metalink with directory structure.
  5261. * src/File.h, src/File.cc
  5262. (getBasename): New function.
  5263. (getDirname): New function.
  5264. * src/RequestGroup.h, src/RequestGroup.cc
  5265. (_topDir): New variable.
  5266. (setTopDir): New function.
  5267. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5268. Rewrote HTTP header parsing with stringstream.
  5269. * src/HttpConnection.h, src/HttpConnection.cc
  5270. (HttpRequestEntry): New class.
  5271. (headerBuf): Removed.
  5272. (headerBufLength): Removed.
  5273. (outstandingHttpRequests): Now its element type is
  5274. HttpRequestEntryHandle.
  5275. (findEndOfHeader): Removed.
  5276. (receiveResponse): Rewritten.
  5277. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5278. Updated doc for -j option to notice that it should be used with -i
  5279. option.
  5280. * src/main.cc (showUsage)
  5281. Removed unused classes.
  5282. * src/RequestInfo.h
  5283. (FileInfo): Removed.
  5284. (checksum): Removed.
  5285. (fileInfo): Removed.
  5286. (setChecksum): Removed.
  5287. (getChecksum): Removed.
  5288. (getFileInfo): Removed.
  5289. Use ISO units.
  5290. * src/ConsoleDownloadEngine.cc
  5291. * src/TorrentConsoleDownloadEngine.cc
  5292. * src/Util.cc (abbrevSize)
  5293. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5294. Added the default listening ports to the help message.
  5295. * src/main.cc (showUsage)
  5296. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Reduce the number of calls to gettimeofday to lower CPU load.
  5298. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5299. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5300. * src/Peer.h (calculateUploadSpeed): New function.
  5301. (calculateDownloadSpeed): New function.
  5302. * src/DefaultPeerStorage.cc
  5303. (CalculateStat): Added _now variable.
  5304. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5305. and Peer::calculateUploadSpeed(const struct timeval&)
  5306. Drop connection if no request or piece message is exchanged in
  5307. a certain interval.
  5308. * src/DefaultBtInteractive.h
  5309. (btRuntime): New variable.
  5310. (inactiveCheckPoint): New variable.
  5311. (checkActiveInteraction): New function.
  5312. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5313. request or piece message is received.
  5314. (checkActiveInteraction): New function.
  5315. (doInteractionProcessing): Call checkActiveInteraction.
  5316. Fixed the bug that causes remote Metalink and Torrent files are not
  5317. processed.
  5318. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5319. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5320. Changed format of log file.
  5321. * src/SimpleLogger.cc
  5322. * Release 0.11.0
  5323. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. * src/AbstractCommand.cc
  5325. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5326. MSG_MAX_TRY from error to info.
  5327. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5328. * src/message.h
  5329. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5330. (MSG_DOWNLOAD_ABORTED): Added %s.
  5331. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5332. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5333. * src/PeerAbstractCommand.cc
  5334. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5335. * src/Request.h
  5336. (cookieBox): Made ShardHandle.
  5337. * src/RequestGroup.h, src/RequestGroup.cc
  5338. (createNextCommandWithAdj): New function.
  5339. * src/FileAllocationCommand.cc
  5340. (executeInternal): Use createNextCommandWithAdj().
  5341. * src/CheckIntegrityCommand.cc
  5342. (executeInternal): Use createNextCommandWithAdj().
  5343. Added --load-cookies command-option.
  5344. * src/OptionHandlerFactory.cc
  5345. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5346. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5347. Now aria2 can handle cookie's expiration date.
  5348. * src/Cookie.h (expires): Changed its type to time_t.
  5349. * src/main.cc: Added --load-cookies command-line option.
  5350. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5351. * src/Util.h, src/Util.cc (httpGMT): New function.
  5352. * src/Request.cc (Request): Initialize cookieBox using
  5353. CookieBoxFactory.
  5354. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5355. * src/CookieParser.h, src/CookieParser.cc: New class.
  5356. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5357. * src/HttpResponseCommand.cc
  5358. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5359. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5360. download.
  5361. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Added -j command-line option.
  5363. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5364. * src/main.cc
  5365. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5366. Rewritten using stringstream.
  5367. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5368. Rewritten using stringstream.
  5369. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5370. Make download size shown in MB, KB.
  5371. * src/ConsoleDownloadEngine.h (sendStatistics)
  5372. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5373. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Accept incoming connections if download rate is low.
  5375. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5376. (_lowestSpeedLimit): New variable.
  5377. (setLowestSpeedLimit): New function.
  5378. (execute): Accept incoming connections if download rate is low.
  5379. MAX_PEERS is ignored in this case.
  5380. Disable PREF_OUT in multiple concurrent download:
  5381. * src/RequestGroup.h, src/RequestGroup.cc
  5382. (setUserDefinedFilename): New function.
  5383. * src/DownloadEngineFactory.cc
  5384. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5385. concurrent download.
  5386. * src/DefaultSegmentManFactory.cc
  5387. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5388. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5389. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5390. Added its overloaded method.
  5391. * src/RequestGroup.h
  5392. (_numConcurrentCommand): New variable.
  5393. (setNumConcurrentCommand): New function.
  5394. * src/RequestGroup.cc
  5395. Abort download if same file is being downloaded concurrently.
  5396. * src/RequestGroup.h, src/RequestGroupMan.cc
  5397. (isSameFileBeingDownloaded): New function.
  5398. * src/HttpResponseCommand.cc (executeInternal)
  5399. * src/FtpNegotiateCommand.cc (recvSize)
  5400. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  5401. * main.cc: Added help message for -i option.
  5402. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5403. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  5404. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  5405. * src/MetalinkEntry.h
  5406. (checksum): Changed to ChecksumHandle
  5407. * src/MetalinkRequestInfo.cc
  5408. (checksum): Changed to ChecksumHandle
  5409. * src/File.cc
  5410. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  5411. * src/common.h
  5412. (DIR_OPEN_MODE): New definition
  5413. * src/RequestGroup.cc
  5414. (prepareForNextAction): Added an argument.
  5415. * src/message.h
  5416. (MSG_GOOD_CHECKSUM): New definition
  5417. (MSG_BAD_CHECKSUM): New definition
  5418. * src/HttpResponseCommand.cc
  5419. (handleDefaultEncoding): Continue download sequence in new
  5420. non-segmented download.
  5421. * src/FileAllocationEntry.h
  5422. (_nextDownloadCommand): New variable.
  5423. * src/DownloadCommand.cc
  5424. (prepareForNextSegment): Create ChecksumCommand if checksum is
  5425. available.
  5426. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  5427. * src/IteratableChecksumValidator.h,
  5428. src/IteratableChecksumValidator.cc: New class.
  5429. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  5430. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. Change file mode to 666:
  5432. * src/common.h (OPEN_MODE): New definition.
  5433. * src/File.cc
  5434. * src/Util.cc
  5435. * src/Directry.cc
  5436. * src/AbstractDiskWriter.cc
  5437. Change the level of log message "download aborted" to debug:
  5438. * src/PeerAbstractCommand.cc (execute)
  5439. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  5440. * src/TrackerWatcherCommand.cc
  5441. (createCommand): Sleep some seconds after request failed.
  5442. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  5443. then abort tracker request.
  5444. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5445. * Added the simultaneous download feature.
  5446. * src/main.cc: Print "Exception caught: " when exception is caught.
  5447. Use CUIDCounter instead of BtRuntime::getNewCuid():
  5448. * src/ActivePeerConnectionCommand.cc
  5449. * src/PeerInteractionCommand.cc
  5450. * src/BtRuntime.h
  5451. (cuidCounter): Removed.
  5452. (getNewCuid): Removed.
  5453. * src/DownloadEngineFactory.cc
  5454. * src/PeerListenCommand.cc
  5455. * src/TrackerUpdateCommand.cc
  5456. * src/PeerInitiateConnectionCommand.cc
  5457. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. * src/PeerAbstractCommand.cc
  5459. (onAbort): Call PeerStorage::returnPeer()
  5460. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  5461. (incomingPeers): New variable.
  5462. (addIncomingPeer): New function.
  5463. (returnPeer): New function.
  5464. (onErasingPeer): New function.
  5465. (addPeer): push_back -> push_front
  5466. (getActivePeers): Rewritten.
  5467. (calculateStat): Rewritten.
  5468. * src/PeerStorage.h
  5469. (TransferStat::copy): New function.
  5470. (TransferStat::TransferStat): New function.
  5471. (TransferStat::operator=): New function.
  5472. (addIncomingPeer): New function.
  5473. (returnPeer): New function.
  5474. * src/PeerListenCommand.cc
  5475. (execute): Use PeerStorage::addIncomingPeer() instead of
  5476. Peer::addPeer().
  5477. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5478. Connect to a peer actively when download speed is lower than specified
  5479. speed in torrent download:
  5480. * src/ActivePeerConnectionCommand.h: New class.
  5481. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5482. * src/HttpRequest.cc (createRequest): url-encode user-agent
  5483. * src/main.cc: Fixed the bug that prevents download if .netrc
  5484. doesn't exist.
  5485. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. To cache resolved hostname:
  5487. * src/AbstractCommand.h, src/AbstractCommand.cc
  5488. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  5489. Added dns cache.
  5490. * src/FtpInitiateConnectionCommand.cc
  5491. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  5492. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  5493. NameResolver working without ares.
  5494. * src/TorrentRequestInfo.cc
  5495. (execute): Don't cache dns in torrent download.
  5496. * src/HttpInitiateConnectionCommand.cc
  5497. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  5498. * src/DNSCache.h: New class.
  5499. * src/UrlRequestInfo.cc
  5500. (execute): Use dns cache.
  5501. In http request, suppress port number in http request header if port
  5502. is 80 or 443:
  5503. * src/HttpRequest.cc (getHostText): Suppress port number in http
  5504. request header if port is 80 or 443.
  5505. (createProxyRequest): Allways send port number.
  5506. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. To add the command-line option which disables netrc support:
  5508. * src/OptionHandlerFactory.cc
  5509. (createOptionHandlers): Added PREF_NO_NETRC.
  5510. * src/main.cc: Added -n option.
  5511. * src/prefs.h (PREF_NO_NETRC): New definition.
  5512. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  5513. V_TRUE.
  5514. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  5515. is V_FALSE. This may get configurable in the future release.
  5516. To clear peer's error status by time basis:
  5517. * src/PeerAbstractCommand.cc
  5518. (onAbort): Call Peer::startBadCondition().
  5519. * src/Peer.h, src/Peer.cc
  5520. (error): Removed.
  5521. (_badConditionStartTime): New variable.
  5522. (_badConditionInterval): New variable. Initialized to 10 seconds.
  5523. (startBadCondition): New function.
  5524. (isGood): New function.
  5525. * src/DefaultPeerStorage.cc
  5526. (addPeer): Use Peer::isGood().
  5527. (FindFinePeer): Use Peer::isGood().
  5528. Always include port number in http request header:
  5529. * src/HttpRequest.cc (getHostText): Always include port number in
  5530. http request header.
  5531. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. To the ability to read options from a config file:
  5533. * src/main.cc: Command-line parameter validation is delegated to
  5534. OptionHandler class.
  5535. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  5536. * src/Option.h, src/Option.cc (clear): New function.
  5537. * src/OptionParser.h, src/OptionParser.cc: New class.
  5538. * src/OptionHandler.h: New class.
  5539. * src/NameMatchOptionHandler.h: New class.
  5540. * src/OptionHandlerImpl.h: New classes.
  5541. * src/prefs.h: '_' -> '-'
  5542. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  5543. (FTP_PASV): New definition.
  5544. * src/Util.h, src/Util.cc (getRealSize): New function.
  5545. To disable netrc support if .netrc file does not have correct
  5546. permissions:
  5547. * src/File.h, src/File.cc (mode): New function.
  5548. To prevent confidential information to be logged:
  5549. * src/HttpConnection.h, src/HttpConnection.cc
  5550. (eraseConfidentialInfo): New function.
  5551. (sendRequest): Call eraseConfidentialInfo().
  5552. (sendProxyRequest): Call eraseConfidentialInfo().
  5553. * src/main.cc: Validate permissions of .netrc file.
  5554. To add --user-agent command-line option:
  5555. * src/main.cc: Added new command line option: --user-agent
  5556. * src/prefs.h (PREF_USER_AGENT): New definition.
  5557. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  5558. parameter to HttpRequest object.
  5559. * src/AbstractProxyRequestCommand.cc
  5560. (executeInternal): Set user-agent option parameter to HttpRequest
  5561. object.
  5562. Marged the patches from Dan Fandrich.
  5563. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5564. Use filename and size from Metalink file instead of sending HEAD
  5565. request:
  5566. * src/UrlRequestInfo.h
  5567. (_filename): New variable.
  5568. (_totalLength): New variable.
  5569. (setTotalLength): New variable.
  5570. (setFilename): New variable.
  5571. * src/MetalinkRequestInfo.cc
  5572. (execute): Set filename and size to UrlRequestInfo
  5573. * src/UrlRequestInfo.cc
  5574. (execute): Use filename and size from Metalink instead of seding
  5575. HEAD request to servers.
  5576. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5577. To add the ability to resume downloading a partially downloaded file
  5578. which is downloaded from the beginning:
  5579. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  5580. takes this role.
  5581. * src/main.cc: Added -c option.
  5582. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  5583. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  5584. * src/prefs.h (PREF_CONTINUE): New definition.
  5585. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  5586. * src/DefaultDiskWriter.cc
  5587. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  5588. * src/AbstractDiskWriter.h
  5589. (glowFileAllocator): New variable.
  5590. * src/AbstractDiskWriter.cc
  5591. (openExistingFile): Now preallocate file space from the end of the
  5592. existing file if totalLength argument is specified and grater than 0.
  5593. * src/UrlRequestInfo.cc: If -c option is specified and the file
  5594. to download exists in local, continue the download of the file.
  5595. --allow-overwrite=true is assumed in this context.
  5596. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  5597. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  5598. Throw exception if --check-integrity=true is specified but chunk
  5599. checksums are not provided:
  5600. * src/UrlRequestInfo.cc
  5601. Do not print URLs to stdout:
  5602. * src/UrlRequestInfo.cc
  5603. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5604. * src/Request.h: Use AuthResolver to get authentication information.
  5605. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  5606. set to RequestFactory object.
  5607. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  5608. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  5609. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  5610. create Request object.
  5611. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  5612. To integrate Netrc into exsiting classes:
  5613. * src/Request.h
  5614. (_userDefinedAuthConfig): New variable.
  5615. (findNetrcAuthenticator): New function.
  5616. (segment): Removed.
  5617. (setUserDefinedAuthConfig): New function.
  5618. (resolveHttpAuthConfigItem): New function.
  5619. (resolveFtpAuthConfigItem): New function.
  5620. (resolveHttpProxyAuthConfigItem): New function.
  5621. * src/HttpRequest.h
  5622. (authConfig): Removed.
  5623. (proxyAuthConfig): Removed.
  5624. (setAuthConfig): Removed.
  5625. (setProxyAuthConfig): Removed.
  5626. * src/UrlRequest.h
  5627. (getHeadResult): Added a parameter: authConfigHandle
  5628. * src/common.h
  5629. (SingletonHolder.h): New include.
  5630. * src/main.cc
  5631. (Netrc.h): New include.
  5632. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  5633. Added initial value of PREF_NETRC_PATH.
  5634. Added the initialization of netrc.
  5635. * src/AuthConfig.h: New class.
  5636. * src/prefs.h
  5637. (PREF_NETRC_PATH): New definition.
  5638. * src/HttpAuthConfig.h: Removed.
  5639. * src/Netrc.cc
  5640. (getRequiredNextToken): New function.
  5641. (skipMacdef): New function.
  5642. (parse): Rewritten.
  5643. * src/Netrc.h
  5644. (getRequiredNextToken): New function.
  5645. (skipMacdef): New function.
  5646. * src/Util.h, src/Util.cc
  5647. (getHomeDir): New function.
  5648. * src/TrackerWatcherComand.cc
  5649. (createRequestCommand): Use AuthConfig.
  5650. * src/FtpConnection.cc
  5651. (sendUser): Use Request::resolveFtpAuthConfigItem().
  5652. (sendPass): Use Request::resolveFtpAuthConfigItem().
  5653. * src/Request.cc
  5654. (findNetrcAuthenticator): New function.
  5655. (resolveHttpAuthConfigItem): New function.
  5656. (resolveFtpAuthConfigItem): New function.
  5657. (resolveHttpProxyAuthConfigItem): New function.
  5658. * src/UrlRequestInfo.cc: Use AuthConfig.
  5659. * src/HttpRequest.cc
  5660. (createRequest): Use authConfig.
  5661. (getProxyAuthString): Use authConfig.
  5662. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  5663. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  5664. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5665. To reduce overhead to find commands whose socket is either
  5666. readable or writable in the download engine loop:
  5667. * src/Command.h, src/Command.cc
  5668. (STATUS): New enum.
  5669. (status): New variable.
  5670. (statusMatch): New function.
  5671. (setStatusActive): New function.
  5672. (setStatusInactive): New function.
  5673. * src/DownloadEngine.h, src/DownloadEngine.cc
  5674. (executeCommand): New function.
  5675. (run): Simplified.
  5676. (waitData): Call Command::setStatusActive() when command's socket is
  5677. readable or writable.
  5678. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5679. To handle Segment as SegmentHandle:
  5680. * src/AbstractCommand.cc (execute): Rewritten.
  5681. * src/SegmentMan.h: Segment -> SegmentHandle
  5682. Introducded HttpResponse class, HttpRequest class to improve code
  5683. extensiveness and make it clear:
  5684. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  5685. HttpResponse class.
  5686. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  5687. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  5688. * src/HttpConnection.cc: Contruction of http request were moved to
  5689. HttpRequest class.
  5690. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  5691. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  5692. * src/HttpAuthConfig.h: New class.
  5693. * src/Range.h: New class.
  5694. To make FtpTunnel{Request, Response}Command and
  5695. HttpProxy{Request, Response}Command derived from
  5696. AbstractProxy{Request, Response}Command:
  5697. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  5698. Derived from AbstractProxyRequestCommand class.
  5699. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  5700. Derived from AbstractProxyResponseCommand class.
  5701. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  5702. Derived from AbstractProxyRequestCommand class.
  5703. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  5704. Derived from AbstractProxyResponseCommand class.
  5705. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  5706. : New class.
  5707. * src/AbstractProxyResponseCommand.h,
  5708. src/AbstractProxyResponseCommand.cc: New class.
  5709. To add netrc support:
  5710. * src/Netrc.h, src/Netrc.cc: New class.
  5711. * src/Util.h, src/Util.cc (split): New function.
  5712. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  5713. "Content-Range" header instead of "Range" header.
  5714. * src/HttpHeader.h
  5715. (getStatus): Removed.
  5716. (setStatus): Removed.
  5717. * src/Segment.h
  5718. (getPositionToWrite): New function.
  5719. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5720. * src/HttpHeader.h
  5721. (Range.h): New include.
  5722. (status): New variable.
  5723. (HttpHeader): Initialized status with 0.
  5724. (getStatus): New function.
  5725. (setStatus): New function.
  5726. (getRange): New function.
  5727. (HttpHeaderHandle): New function.
  5728. * src/HttpHeader.cc
  5729. (getRange): New function.
  5730. * src/Request.h
  5731. (RequestWeakHandle): New definition.
  5732. * src/HttpConnection.h
  5733. (HttpConnectionHandle): New type definition.
  5734. * src/HttpConnection.cc
  5735. (receiveResponse): Set HTTP status to headers.
  5736. * src/main.cc
  5737. (showUsage): Fixed typo.
  5738. * src/Segment.h
  5739. (SegmentHandle): New type definition.
  5740. * src/BitfieldMan.h
  5741. (getMissingUnusedLength): New function.
  5742. * src/BitfieldMan.cc
  5743. (getMissingUnusedLength): New function.
  5744. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. To fix static initialization order problem:
  5746. * src/BitfieldManFactory.h
  5747. (defaultRandomizer): Removed.
  5748. (factory): New variable.
  5749. (getNewFactory): Removed.
  5750. (getFactoryInstance): New function.
  5751. (setDefaultRandomizer): Rewritten.
  5752. (getDefaultRandomizer): Rewritten.
  5753. * src/BitfieldManFactory.cc
  5754. (defaultRandomizer): Removed.
  5755. (factory): Initialized to 0.
  5756. (BitfieldManFactory): Initialized randomizer to 0.
  5757. * src/DefaultPieceStorage.cc
  5758. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  5759. * src/Peer.cc
  5760. (Peer): getNewFactory() -> getFactoryInstance()
  5761. * src/SegmentMan.cc
  5762. (initBitfield): getNewFactory() -> getFactoryInstance()
  5763. * src/Piece.cc
  5764. (Piece): getNewFactory() -> getFactoryInstance()
  5765. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. To fix the bug that causes crash on Max OS X:
  5767. * src/SimpleRandomizer.h
  5768. (getInstance): Create new instance if the static variable is null.
  5769. * src/SimpleRandomizer.cc
  5770. (randomizer): Initialized to 0.
  5771. * src/BitfieldManFactory.h
  5772. (getNewFactory): Removed the call to setRandomizer().
  5773. To fix the miscalculation of the range of checksum:
  5774. * src/BitfieldMan.h
  5775. (isBitSetOffsetRange): New function.
  5776. * src/BitfieldMan.cc
  5777. (isBitSetOffsetRange): New function.
  5778. * src/SegmentMan.cc
  5779. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  5780. Use bitfield->getBlockLength() instead of segment.segmentLength.
  5781. * Release 0.10.1
  5782. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. To lower CPU usage in BitTorrent download when --max-upload-limit
  5784. command-line option specified:
  5785. * src/DefaultBtMessageDispatcher.cc
  5786. (sendMessages): Calculate uploading speed only when current message
  5787. is uploading data and is not sent yet.
  5788. * src/DefaultPeerStorage.h
  5789. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  5790. * src/HttpResponseCommand.cc
  5791. (handleDefaultEncoding): Added the cast to int32_t to itos.
  5792. This fixes compile error in Soralis 10.
  5793. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. To fix segfault in Metalink download:
  5795. * src/UrlRequestInfo.h
  5796. (filename): Removed.
  5797. (totalLength): Removed.
  5798. (setTotalLength): Removed.
  5799. (setFilename): Removed.
  5800. * src/MetalinkRequestInfo.cc
  5801. (execute): Do not set filename and totalLength to reqInfo.
  5802. Set chunk checksum to reqInfo if it is not null.
  5803. * src/HttpResponseCommand.cc
  5804. (executeInternal): Fixed filename in log.
  5805. (handleDefaultEncoding): Removed the call to initBitfield() and
  5806. markAllPiecesDone().
  5807. (handleOtherEncoding): Added HEAD method handling.
  5808. * src/FtpNegotiateCommand.cc
  5809. (executeInternal): Added SEQ_HEAD_OK handling.
  5810. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  5811. return false.
  5812. * src/FtpNegotiateCommand.h
  5813. (SEQ_HEAD_OK): New definition.
  5814. * src/SegmentMan.cc
  5815. (initBitfield): Delete bitfield.
  5816. (isChunkChecksumValidationReady): Fixed the condition.
  5817. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  5818. works fine.
  5819. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. * src/Xml2MetalinkProcessor.h
  5821. (xpathExists): New function.
  5822. * src/Xml2MetalinkProcessor.cc
  5823. (xpathExists): New function.
  5824. Not to send HEAD request if filename and size are available in Metalink
  5825. file:
  5826. * src/UrlRequestInfo.h
  5827. (filename): New variable.
  5828. (totalLength): New variable.
  5829. (setTotalLength): New function.
  5830. (setFilename): New function.
  5831. * src/MetalinkRequestInfo.cc
  5832. (execute): Set filename and size to UrlRequestInfo.
  5833. * src/MetalinkEntry.cc
  5834. (MetalinkEntry): Initialize size with 0.
  5835. * src/UrlRequestInfo.cc
  5836. (execute): Set filename and size to SegmentMan.
  5837. Not to download rest of the files after selected files are downloaded
  5838. in BitTorrent:
  5839. * src/PieceStorage.h
  5840. (allDownloadFinished): New function.
  5841. * src/DefaultBtAnnounce.cc
  5842. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  5843. downloadFinished.
  5844. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  5845. * src/DefaultPieceStorage.cc
  5846. (completePiece): Use allDownloadFinished instead of downloadFinished.
  5847. Commented out the call to finishSelectiveDownloadingMode().
  5848. (downloadFinished): Call isFilteredAllBitSet() instead of
  5849. isAllBitSet().
  5850. (allDownloadFinished): New function.
  5851. * src/DefaultBtInteractive.cc
  5852. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  5853. downloadFinished().
  5854. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  5855. * src/TorrentDownloadEngine.cc
  5856. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  5857. * src/BitfieldMan.h
  5858. (isFilteredAllBitSet): New function.
  5859. * src/ShareRatioSeedCriteria.h
  5860. (PieceStorage.h): New include.
  5861. (pieceStorage): New variable.
  5862. (evaluate):
  5863. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  5864. * src/BitfieldMan.cc
  5865. (isFilteredAllBitSet): New function.
  5866. (isAllBitSet): Filter is not took into account.
  5867. Rename --force-truncate as --allow-overwrite:
  5868. * src/TorrentRequestInfo.cc
  5869. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  5870. * src/main.cc
  5871. (showUsage): --force-truncate -> --allow-overwrite
  5872. * src/message.h
  5873. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  5874. * src/prefs.h
  5875. (PREF_FORCE_TRUNCATE): Removed.
  5876. (PREF_ALLOW_OVERWRITE): New definition.
  5877. * src/SegmentMan.cc
  5878. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  5879. * src/MetalinkRequestInfo.cc
  5880. (execute): Queueing message are now logged in info level.
  5881. * src/common.h
  5882. (LONG_LONG_MAX): Removed.
  5883. (LONG_LONG_MIN): Removed.
  5884. * src/HttpResponseCommand.cc
  5885. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  5886. * src/FtpNegotiateCommand.cc
  5887. (recvSize): LONG_LONG_MAX -> INT64_MAX
  5888. * src/main.cc
  5889. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  5890. command-line option.
  5891. (main): Added --check-integriy and --realtime-chunk-checksum
  5892. command-line option.
  5893. --force-truncate -> --allow-overwrite
  5894. Set initial value of --check-integrity option to false.
  5895. Don't show usage when error occurs while persing command-line options.
  5896. Removed deprecated --upload-limit option.
  5897. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  5899. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  5900. * src/BtAllowedFastMessage.cc:
  5901. * src/BtBitfieldMessage.cc
  5902. * src/BtCancelMessage.cc
  5903. * src/BtChokeMessage.cc
  5904. * src/BtHaveAllMessage.cc
  5905. * src/BtHaveMessage.cc
  5906. * src/BtHaveNoneMessage.cc
  5907. * src/BtInterestedMessage.cc
  5908. * src/BtNotInterestedMessage.cc
  5909. * src/BtPieceMessage.cc
  5910. * src/BtPortMessage.cc
  5911. * src/BtRejectMessage.cc
  5912. * src/BtRequestMessage.cc
  5913. * src/BtSuggestPieceMessage.cc
  5914. * src/BtUnchokeMessage.cc
  5915. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  5916. files are affected.
  5917. * src/ChunkChecksumValidator.cc
  5918. * src/SegmentMan.cc
  5919. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. To add chunk checksum validation:
  5921. * src/MetalinkEntry.h
  5922. (MetalinkChunkChecksum.h): New include.
  5923. (chunkChecksum): New variable.
  5924. * src/Request.h
  5925. (method): New variable.
  5926. (setMethod): New function.
  5927. (getMethod): New function.
  5928. (METHOD_GET): New static constant.
  5929. (METHOD_HEAD): New static constant.
  5930. * src/Xml2MetalinkProcessor.h
  5931. (getPieceHash): New function.
  5932. * src/PieceStorage.h
  5933. (markAllPiecesDone): New function.
  5934. (checkIntegrity): New function.
  5935. * src/FileAllocator.h
  5936. (NullFileAllocationMonitor.h): New include.
  5937. (FileAllocator): Initialize fileAllocationMonitor with new
  5938. NullFileAllocationMonitor().
  5939. * src/MultiDiskAdaptor.h
  5940. (messageDigest.h): Remove include.
  5941. (ctx): Removed.
  5942. (hashUpdate): Added ctx.
  5943. (MultiDiskAdaptor): Removed ctx.
  5944. (sha1Sum): Renamed as messageDigest.
  5945. (messageDigest): New function.
  5946. * src/UrlRequestInfo.h
  5947. (HeadResult): New class.
  5948. (digestAlgo): New variable.
  5949. (chunkChecksumLength): New variable.
  5950. (chunkChecksums): New variable.
  5951. (getHeadResult): New function.
  5952. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  5953. (setDigestAlgo): New function.
  5954. (setChunkChecksumLength): New function.
  5955. (setChunkChecksums): New function.
  5956. * src/DefaultPieceStorage.cc
  5957. (DiskAdaptorWriter.h): New include.
  5958. (ChunkChecksumValidator.h): New include.
  5959. (markAllPiecesDone): New function.
  5960. (checkIntegrity): New function.
  5961. * src/DefaultBtContext.h
  5962. (getPieceHashes): New function.
  5963. * src/TorrentRequestInfo.cc
  5964. (execute): Try to validate chunk checksum if file already exists and
  5965. .aria2 file doesn't there and user allows aria2 to overwrite it.
  5966. * src/messageDigest.h
  5967. (~MessageDigestContext): Added digestFree().
  5968. * src/MetalinkRequestInfo.cc
  5969. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  5970. * src/DiskAdaptor.h
  5971. (messageDigest.h): New include.
  5972. (sha1Sum): Renamed as messageDigest.
  5973. (messageDigest): New function.
  5974. * src/DownloadCommand.h
  5975. (PeerStat.h): New include.
  5976. (maxDownloadSpeedLimit): New variable.
  5977. (startupIdleTime): New variable.
  5978. (lowestDownloadSpeedLimit): New variable.
  5979. (peerStat): New variable.
  5980. (setMaxDownloadSpeedLimit): New function.
  5981. (setStartupIdleTime): New function.
  5982. (setLowestDownloadSPeedLimit): New function.
  5983. * src/BtContext.h
  5984. (getPieceHashes): New function.
  5985. * src/main.cc
  5986. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  5987. option to true for testing purpose.
  5988. * src/BtPieceMessage.cc
  5989. (checkPieceHash): Use messageDigest
  5990. * src/DownloadEngine.cc
  5991. (SetDescriptor): Removed.
  5992. (AccumulateActiveCommand): Removed.
  5993. (waitData): Rewritten.
  5994. (updateFdSet): Rewritten.
  5995. * src/MultiDiskAdaptor.cc
  5996. (hashUpdate): Added ctx.
  5997. (sha1Sum): Renamed as messageDigest.
  5998. (messageDigest): New function.
  5999. * src/BitfieldMan.h
  6000. (isBitRangeSet): New function.
  6001. (unsetBitRange): New function.
  6002. * src/ByteArrayDiskWriter.h
  6003. (sha1Sum): Renamed as messageDigest.
  6004. (messageDigest): New function.
  6005. * src/ConsoleDownloadEngine.cc
  6006. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6007. * src/DiskWriter.h
  6008. (messageDigest.h): New include.
  6009. (sha1Sum): Renamed as messageDigest.
  6010. (messageDigest): New function.
  6011. * src/ChunkChecksumValidator.h: New class.
  6012. * src/DiskAdaptorWriter.h: New class.
  6013. * src/prefs.h
  6014. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6015. (PREF_CHECK_INTEGRITY): New definition.
  6016. * src/HttpResponseCommand.cc
  6017. (handleDefaultEncoding): Added method "HEAD" handling.
  6018. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6019. (handleOtherEncoding):
  6020. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6021. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6022. startupIdleTime, lowestDownloadSpeedLimit to command.
  6023. * src/SegmentMan.h
  6024. (getSegmentEntryByIndex): New function.
  6025. (getSegmentEntryByCuid): New function.
  6026. (getSegmentEntryIteratorByCuid): New function.
  6027. (diskWriter): DiskWriter -> DiskWriterHandle
  6028. (pieceHashes): New variable.
  6029. (chunkHashLength): New variable.
  6030. (digestAlgo): New variable.
  6031. (FindPeerStat): Removed.
  6032. (getPeerStat): Rewritten.
  6033. (markAllPiecesDone): New function.
  6034. (checkIntegrity): New function.
  6035. (tryChunkChecksumValidation): New function.
  6036. (isChunkChecksumValidationReady): New function.
  6037. * src/BitfieldMan.cc
  6038. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6039. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6040. blocks to 0.
  6041. (isBitRangeSet): New function.
  6042. (unsetBitRange): New function.
  6043. * src/FtpNegotiateCommand.cc
  6044. (executeInternal): Set maxDownloadSpeedLimit,
  6045. startupIdleTime, lowestDownloadSpeedLimit to command.
  6046. (recvSize): Added method "HEAD" handling.
  6047. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6048. * src/AbstractSingleDiskAdaptor.cc
  6049. (sha1Sum): Renamed as messageDigest.
  6050. (messageDigest): New function.
  6051. * src/AbstractSingleDiskAdaptor.h
  6052. (sha1Sum): Renamed as messageDigest.
  6053. (messageDigest): New function.
  6054. * src/Util.h
  6055. (indexRange): New function.
  6056. * src/MetalinkEntry.cc
  6057. (MetalinkEntry): Initialized chunkChecksum to 0.
  6058. * src/ShaVisitor.cc
  6059. (~ShaVisitor): Removed the call to ctx.digestFree().
  6060. * src/SegmentMan.cc
  6061. (ChunkChecksumValidator.h): New include.
  6062. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6063. to DIGEST_ALGO_SHA1.
  6064. (~SegmentMan): Removed diskWriter.
  6065. (FindSegmentEntryByIndex): Removed.
  6066. (FindSegmentEntryByCuid): Removed.
  6067. (checkoutSegment): Rewritten.
  6068. (findSlowerSegmentEntry): Rewritten.
  6069. (getSegment): Rewritten.
  6070. (updateSegment): Rewritten.
  6071. (completeSegment): Rewritten.
  6072. (markAllPiecesDone): New function.
  6073. (checkIntegrity): New function.
  6074. (isChunkChecksumValidationReady): New function.
  6075. (tryChunkChecksumValidation): New function.
  6076. * src/Xml2MetalinkProcessor.cc
  6077. (getEntry): Get size and set it to entry.
  6078. Get chunk checksum and set it to entry.
  6079. (getPieceHash): New function.
  6080. * src/Util.cc
  6081. (sha1Sum): Removed ctx.digestFree()
  6082. (fileChecksum): Removed ctx.digestFree()
  6083. (indexRange): New function.
  6084. * src/Request.cc
  6085. (METHOD_GET): New variable.
  6086. (METHOD_HEAD): New variable.
  6087. (Request): Added method.
  6088. * src/UrlRequestInfo.cc
  6089. (FatalException.h): New include.
  6090. (message.h): New include.
  6091. (operator<<): Added operator<< for class HeadResult.
  6092. (getHeadResult): New function.
  6093. (execute): Get filename and size in separate download engine.
  6094. * src/ChunkChecksumValidator.cc: New class.
  6095. * src/DownloadCommand.cc:
  6096. (DownloadCommand): Added peerStat.
  6097. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6098. the value from Option.
  6099. The buffer size is now 16KB.
  6100. Use peerStat member instead of getting it from SegmentMan.
  6101. Use startupIdleTime member instead of gettingit from Option.
  6102. Added chunk checksum validation.
  6103. * src/AbstractDiskWriter.cc
  6104. (AbstractDiskWriter): Removed ctx.
  6105. (~AbstractDiskWriter): Removed ctx.digestFree()
  6106. (writeDataInternal): Returns the return value of write.
  6107. (readDataInternal): Returns the return value of read.
  6108. (sha1Sum): Renamed as messageDigest
  6109. (messageDigest): New function.
  6110. * src/AbstractDiwkWriter.h
  6111. (messageDigest.h): Removed include.
  6112. (ctx): Removed.
  6113. (sha1Sum): Renamed as messageDigest
  6114. (messageDigest): New function.
  6115. * src/DefaultPieceStorage.h
  6116. (markAllPiecesDone): New function.
  6117. (checkIntegrity): New function.
  6118. * src/NullFileAllocationMonitor.h: New class.
  6119. * src/MetalinkChunkChecksum.h: New class.
  6120. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6121. To decrease CPU usage in bittorrent download, calculation results in
  6122. BitfieldMan were cached and realtime fetching PeerObject was removed
  6123. with WeakHandle introduced. Option values are set to the objects
  6124. by setter before download begins.
  6125. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6126. * src/DefaultBtRequestFactory.h
  6127. (dispatcher): BtMessageDispatcherHandle ->
  6128. BtMessageDispatcherWeakHandle.
  6129. (messageFactory): New variable.
  6130. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6131. BtMessageDispatcherWeakHandle.
  6132. (setBtMessageFactory): New function.
  6133. * src/DefaultBtMessageDispatcher.cc:
  6134. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6135. from Option.
  6136. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6137. feating the value from Option.
  6138. Use messageFactory member.
  6139. * src/PeerInteractionCommand.cc
  6140. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6141. Add reverse dependencies to factory object.
  6142. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6143. dispatcher.
  6144. Set messageFactory to receiver.
  6145. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6146. btInteractive.
  6147. Set receiver to peerObject.
  6148. Set maxDownloadSpeedLimit to this.
  6149. (executeInternal): Use maxDownloadSpeedLimit member.
  6150. * src/BtChokeMessage.cc
  6151. (doReceivedAction): Use dispatcher, requestFactory member.
  6152. (onSendComplete): Use dispatcher member.
  6153. * src/PeerInteractionCommand.h
  6154. (maxDownloadSpeedLimit): New variable.
  6155. * src/DefaultBtMessageReceiver.h
  6156. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6157. (dispatcher):
  6158. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6159. (messageFactory): New variable.
  6160. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6161. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6162. (setDispatcher):
  6163. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6164. (setBtMessageFactory): New function.
  6165. * src/DefaultBtInteractive.cc
  6166. (initiateHandshake): Use messageFactory member.
  6167. (addBitfieldMessageToQueue): Use messageFactory member.
  6168. (addAllowedFastMessageToQueue): Use messageFactory member.
  6169. (decideChoking): Use messageFactory member.
  6170. (checkHave): Use messageFactory member.
  6171. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  6172. (receiveMessages): Use maxDownloadSpeedLimit member.
  6173. (decideInterest): Use messageFactory member.
  6174. * src/BtRequestMessage.cc
  6175. (doReceivedAction): Use messageFactory, dispatcher member.
  6176. (onQueued): Use dispatcher member.
  6177. * src/BtPieceMessage.cc
  6178. (doReceivedAction): Use dispatcher member.
  6179. (send): Use peerConnection member.
  6180. (onWrongPiece): Use requestFactory member.
  6181. (handleChokingEvent): Use messageFactory, dispatcher member.
  6182. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6183. * src/BtMessageDispatcher.h
  6184. (BtMessageDispatcherWeakHandle): New type definition.
  6185. * src/SimpleBtMessage.cc
  6186. (send): Use peerConnection member.
  6187. * src/BtRejectMessage.cc
  6188. (doReceivedAction): Use dispatcher member.
  6189. * src/DefaultBtMessageDispatcher.h
  6190. (Option.h): Removed include.
  6191. (messageFactory): New variable.
  6192. (option): Removed.
  6193. (maxUploadSpeedLimit): New variable.
  6194. (requestTimeout): New variable.
  6195. (DefaultBtMessageDispatcher): Removed option.
  6196. Added maxUploadSpeedLimit, requestTimeout.
  6197. (setOption): Removed.
  6198. (getOption): Removed.
  6199. (setMaxUploadSpeedLimit): New function.
  6200. (setRequestTimeout): New function.
  6201. (setBtMessageFactory): New function.
  6202. * src/DefaultBtInteractive.h
  6203. (btMessageReceiver):
  6204. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6205. (dispatcher):
  6206. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6207. (btRequestFactory):
  6208. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6209. (peerConnection):
  6210. PeerConnectionHandle -> PeerConnectionWeakHandle
  6211. (messageFactory): New variable.
  6212. (option): Removed.
  6213. (keepAliveInterval): New variable.
  6214. (maxDownloadSpeedLimit): New variable.
  6215. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6216. (setBtMessageReceiver):
  6217. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6218. (setDispatcher):
  6219. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6220. (setBtRequestFactory):
  6221. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6222. (setPeerConnection):
  6223. PeerConnectionHandle -> PeerConnectionWeakHandle
  6224. (setOption): Removed.
  6225. (setKeepAliveInterval): New function.
  6226. (setMaxDownloadSpeedLimit): New function.
  6227. (setBtMessageFactory): New function.
  6228. * src/BitfieldMan.h
  6229. (cachedNumMissingBlock): New variable.
  6230. (cachedNumFilteredBlock): New variable.
  6231. (cachedCompletedLength): New variable.
  6232. (cachedFilteredComletedLength): New variable.
  6233. (cachedFilteredTotalLength): New variable.
  6234. (countMissingBlockNow): New function.
  6235. (countFilteredBlockNow): New function.
  6236. (getFilteredTotalLengthNow): New function.
  6237. (getCompletedLengthNow): New function.
  6238. (getFilteredCompletedLengthNow): New function.
  6239. (updateCache): New function.
  6240. * src/AbstractBtMessage.h
  6241. (BtMessageDispatcher.h): New include.
  6242. (PeerConnection.h): New include.
  6243. (BtRequestFactory.h): New include
  6244. (BtMessageFactory.h): New include.
  6245. (dispatcher): New variable.
  6246. (messageFactory): New variable.
  6247. (peerConnection: New variable.
  6248. (setBtMessageDispatcher): New function.
  6249. (setPeerConnection): New function.
  6250. (setBtMessageFactory): New function.
  6251. (setBtRequestFactory): New function.
  6252. * src/DefaultBtMessageFactory.cc
  6253. (setCommonProperty): Set dispatcher, requestFactory, this,
  6254. peerConnection to msg.
  6255. * src/BtRegistry.h
  6256. (BT_MESSAGE_RECEIVER): New macro.
  6257. * src/PeerConnection.h
  6258. (PeerConnectionWeakHandle): New type definition.
  6259. * src/BtMessageFactory.h
  6260. (BtMessageFactoryWeakHandle): New type definition.
  6261. * src/BitfieldMan.cc
  6262. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6263. cachedCompletedLength, cachedFilteredComletedLength,
  6264. cachedFilteredTotalLength.
  6265. Call updateCache().
  6266. (countMissingBlock): Return cachedNumMissingBlock.
  6267. (countMissingBlockNow): New function.
  6268. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6269. (countFilteredBlockNow): New function.
  6270. (setBit): Call updateCache().
  6271. (unsetBit): Call updateCache().
  6272. (setBitfield): Call updateCache().
  6273. (clearAllBit): Call updateCache().
  6274. (setAllBit): Use setBitInternal instead of setBit.
  6275. Call updateCache().
  6276. (addFilter): Call updateCache().
  6277. (enableFilter): Call updateCache().
  6278. (disableFilter): Call updateCache().
  6279. (clearFilter): Call updateCache().
  6280. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6281. (getFilteredTotalLengthNow): New function.
  6282. (getCompletedLength): Return cachedCompletedLength.
  6283. (getCompletedLengthNow): New function.
  6284. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6285. (getFilteredCompletedLengthNow): New function.
  6286. (updateCache): New function.
  6287. * src/BtMessageReceiver.h
  6288. (BtMessageReceiverWeakHandle): New type definition.
  6289. * src/DefaultBtMessageReceiver.cc
  6290. (receiveHandshake): Use messageFactory member.
  6291. (sendHandshake): Use messageFactory member.
  6292. (receiveMessage): Use messageFactory member.
  6293. * src/DefaultBtMessageFactory.h
  6294. (dispatcher): New variable.
  6295. (requestFactory): New variable.
  6296. (peerConnection): New variablle.
  6297. (setBtMessageDispatcher): New function.
  6298. (setBtRequestFactory): New function.
  6299. (setPeerConnection): New function.
  6300. * src/SharedHandle.h
  6301. (RefCount): New class.
  6302. (WeakHandle): New class.
  6303. * src/PeerObject.h
  6304. (BtMessageReceiver.h): New include.
  6305. (PeerObject): Added btMessageReceiver.
  6306. (btMessageReceiver): New variable.
  6307. * src/Util.cc
  6308. (countBit): Simplified.
  6309. * src/BtCancelMessage.cc
  6310. (doReceivedAction): Use dispatcher member.
  6311. * src/BtRequestFactory.h
  6312. (BtRequestFactoryWeakHandle): New type definition.
  6313. * src/PeerStorage.h
  6314. (downloadSpeed): int -> uint32_t
  6315. (uploadSpeed): int -> uint32_t
  6316. (sessionDownloadLength): long long int -> uint64_t
  6317. (sessionUploadLength): long long int -> uint64_t
  6318. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. To add RecoverableException, FatalException:
  6320. * src/AbstractCommand.cc
  6321. (onAbort): Exception -> RecoverableException
  6322. * src/PeerAbstractCommand.h
  6323. (RecoverableException.h): New include.
  6324. (onAbort): Exception -> RecoverableException.
  6325. * src/PeerInteractionCommand.cc
  6326. (onAbort): Exception -> RecoverableException.
  6327. * src/PeerAbstractCommand.cc
  6328. (execute): Exception -> RecoverableException.
  6329. (onAbort): Exception -> RecoverableException.
  6330. * src/TorrentRequestInfo.cc
  6331. (execute): Exception -> RecoverableException.
  6332. * src/MetalinkRequestInfo.cc
  6333. (execute): Exception -> RecoverableException.
  6334. * src/MetaFileUtil.cc: RecoverableException.
  6335. * src/AbstractCommand.h
  6336. (onAbort): Exception -> RecoverableException.
  6337. * src/DlRetryEx.h: Exception -> RecoverableException.
  6338. * src/DlAbortEx.h: Exception -> RecoverableException.
  6339. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6340. * src/Util.cc: Exception -> RecoverableException.
  6341. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6342. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6343. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6344. To make ID static const int
  6345. * src/BtInterestedMessage.h
  6346. (ID_t): Removed.
  6347. (ID): New variable.
  6348. (getId): Made non-const.
  6349. * src/BtPieceMessage.h
  6350. (ID_t): Removed.
  6351. (ID): New variable.
  6352. (getId): Made non-const.
  6353. * src/BtChokeMessage.h
  6354. (ID_t): Removed.
  6355. (ID): New variable.
  6356. (getId): Made non-const.
  6357. * src/BtHaveAllMessage.h
  6358. (ID_t): Removed.
  6359. (ID): New variable.
  6360. (getId): Made non-const.
  6361. * src/BtKeepAliveMessage.h
  6362. (ID_t): Removed.
  6363. (ID): New variable.
  6364. (getId): Made non-const.
  6365. * src/BtHandshakeMessage.h
  6366. (ID): New variable.
  6367. (getId): Made non-const.
  6368. * src/BtSuggestPieceMessage.h
  6369. (ID_t): Removed.
  6370. (ID): New variable.
  6371. (getId): Made non-const.
  6372. * src/BtPortMessage.h
  6373. (ID_t): Removed.
  6374. (ID): New variable.
  6375. (getId): Made non-const.
  6376. * src/AbstractBtMessage.h
  6377. (id): Removed.
  6378. (AbstractBtMessage): Removed id.
  6379. (getId): Removed.
  6380. * src/BtHaveMessage.h
  6381. (ID_t): Removed.
  6382. (ID): New variable.
  6383. (getId): Made non-const.
  6384. * src/BtAllowedFastMessage.h
  6385. (ID_t): Removed.
  6386. (ID): New variable.
  6387. (getId): Made non-const.
  6388. * src/BtCancelMessage.h
  6389. (ID_t): Removed.
  6390. (ID): New variable.
  6391. (getId): Made non-const.
  6392. * src/BtNotInterestedMessage.h
  6393. (ID_t): Removed.
  6394. (ID): New variable.
  6395. (getId): Made non-const.
  6396. * src/BtChokeMessage.h
  6397. (ID_t): Removed.
  6398. (ID): New variable.
  6399. (getId): Made non-const.
  6400. * src/BtRejectMessage.h
  6401. (ID_t): Removed.
  6402. (ID): New variable.
  6403. (getId): Made non-const.
  6404. * src/BtBitfieldMessage.h
  6405. (ID_t): Removed.
  6406. (ID): New variable.
  6407. (getId): Made non-const.
  6408. * src/BtUnchokeMessage.h
  6409. (ID_t): Removed.
  6410. (ID): New variable.
  6411. (getId): Made non-const.
  6412. * src/BtRequestMessage.h
  6413. (ID_t): Removed.
  6414. (ID): New variable.
  6415. (getId): Made non-const.
  6416. * src/BtHaveMessage.h
  6417. (ID_t): Removed.
  6418. (ID): New variable.
  6419. (getId): Made non-const.
  6420. To add --force-truncate command-line option and a check whether
  6421. the file already exists:
  6422. * src/DirectDiskAdaptor.h
  6423. (getFilePath): Made virtual public.
  6424. * src/MultiDiskAdaptor.h
  6425. (File.h): New include.
  6426. (DiskWriterEntry::fileEntry): Made private.
  6427. (DiskWriterEntry::fileExists): New function.
  6428. (DiskWriterEntry::getFileEntry): New function.
  6429. (fileExists): New function.
  6430. (getFilePath): New function.
  6431. * src/TorrentRequestInfo.cc
  6432. (FatalException.h): New include.
  6433. (message.h): New include.
  6434. (RecoverableException.h): New include.
  6435. (execute): Added a check whether file is already exists or not.
  6436. * src/DiskAdaptor.h
  6437. (fileExists): New function.
  6438. (getFilePath): New function.
  6439. * src/main.cc
  6440. (showUsage): Added an explanation of --force-truncate command-line
  6441. option.
  6442. (main): Added --force-truncate command-line option.
  6443. * src/Exception.h
  6444. (setMsg): buf[256] -> buf[1024]
  6445. * src/CopyDiskWriter.h
  6446. (getFilePath): Made public virtual.
  6447. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  6448. (fileExists): New function.
  6449. * src/DownloadEngineFactory.cc
  6450. (newTorrentConsoleEngine): Don't open file here.
  6451. * src/message.h
  6452. (EX_FILE_ALREADY_EXISTS): New definition.
  6453. * src/prefs.h
  6454. (PREF_FOECE_TRUNCATE): New definition.
  6455. * src/HttpResponseCommand.cc
  6456. (handleDefaultEncoding): Added a check whether the file already exists.
  6457. * src/SegmentMan.h
  6458. (fileExists): New function.
  6459. (shouldCancelDownloadForSafety): New function.
  6460. * src/FtpNegotiateCommand.cc
  6461. (recvSize): Added a check whether the file already exists.
  6462. * src/AbstractSingleDiskAdaptor.cc
  6463. (File.h): New include.
  6464. (fileExists): New function.
  6465. * src/AbstractSingleDiskAdaptor.h
  6466. (getFilePath): Removed.
  6467. (fileExists): New function.
  6468. * src/SegmentMan.cc
  6469. (fileExists): New function.
  6470. (shouldCancelDownloadForSafety): New function.
  6471. To fix regression bug in torrent downloading:
  6472. * src/DefaultBtRequestFactory.cc
  6473. (doChokedAction): New function.
  6474. * src/DefaultBtRequestFactory.h
  6475. (doChokedAction): New function.
  6476. * src/DefaultBtMessageDispatcher.cc
  6477. (doChokedAction): Do not delete request if its target is in allowed
  6478. fast set.
  6479. * src/DefaultBtInteractive.cc
  6480. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  6481. (sendKeepAlive): Send keep alive message even if the outgoing message
  6482. queue is not empty.
  6483. (decideInterest): Simplified the code.
  6484. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  6485. it is already called when BtChokeMessage is received from a peer.
  6486. * src/BtRequestFactory.h
  6487. (doChokedAction): New function.
  6488. To clean up code:
  6489. * src/PeerInteractionCommand.h
  6490. (executeInternal): Added virtual keyword explicitly.
  6491. (prepareForRetry): Added virtual keyword explicitly.
  6492. (prepareForNextPeer): Added virtual keyword explicitly.
  6493. (onAbort): Added virtual keyword explicitly.
  6494. * src/RequestSlot.cc
  6495. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  6496. * src/BtPieceMessage.cc
  6497. (doReceivedAction): Added a debug log of piece's bitfield.
  6498. * src/Piece.h
  6499. (getBitfieldLength): New function.
  6500. * src/ByteArrayDiskWriter.cc
  6501. (clear): Added buf = 0 to avoid double free corruption.
  6502. * src/FileAllocator.cc
  6503. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  6504. Added cp.reset().
  6505. * src/BitfieldMan.h
  6506. (operator=): Rewritten.
  6507. * src/BitfieldMan.cc
  6508. (BitfieldMan): Initialized bitfield, useBitfield.
  6509. * src/PeerConnection.cc
  6510. (receiveMessage): Added a call to socket->readable() after getting
  6511. message length to avoid possible EOF.
  6512. * src/Util.cc
  6513. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  6514. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. To add an ability to pre-allocate file space:
  6516. * src/DirectDiskAdaptor.h: Rewritten.
  6517. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  6518. * src/MultiDiskAdaptor.h: Rewritten.
  6519. * src/DefaultPieceStorage.cc
  6520. (MultiDiskWriter.h): Removed include.
  6521. (PreAllocationDiskWriter.h): Removed include.
  6522. (FileAllocationMonitor.h): New include.
  6523. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  6524. (initStorage): Rewritten.
  6525. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6526. * src/FileAllocator.h: New class.
  6527. * src/FileAllocator.cc: New class.
  6528. * src/FileAllocationMonitor.h: New class.
  6529. * src/FileAllocationMonitor.cc: New class.
  6530. * src/ConsoleFileAllocationMonitor.h: New class.
  6531. * src/ConsoleFileAllocationMonitor.cc: New class.
  6532. * src/AbstractSingleDiskAdaptor.h: New class.
  6533. * src/AbstractSingleDiskAdaptor.cc: New class.
  6534. * src/DiskAdaptor.h
  6535. (Directory.h): Removed include.
  6536. (DiskWriter.h): Removed include.
  6537. (FileEntry.h): Removed include.
  6538. (diskWriter): Removed.
  6539. (DiskAdaptor): Removed diskWriter.
  6540. (openFile): Made pure virtual.
  6541. (closeFile): Made pure virtual.
  6542. (openExistingFile): Made pure virtual.
  6543. (initAndOpenFile): Made pure virtual.
  6544. (writeData): Made pure virtual.
  6545. (readData): Made pure virtual.
  6546. (sha1Sum): Made pure virtual.
  6547. (getStoreDir): Returns const reference of storeDir.
  6548. (DiskAdaptorHandle): New type definition.
  6549. * src/main.cc
  6550. (ConsoleFileAllocationMonitor.h): New include.
  6551. (showUsage): Added default value description of -s option.
  6552. Added the description of --file-allocation option.
  6553. (main): Set default value of --file-allocation option to 'none'.
  6554. Added --file-allocation command-line option.
  6555. Setup FileAllocationMonitorFactory.
  6556. * src/FtpInitiateConnectionCommand.cc
  6557. (executeInternal): Removed diskWriter related processing, which was
  6558. moved to FtpNegotiationCommand.cc.
  6559. * src/DirectDiskAdaptor.cc
  6560. (getFilePath): Made non-const.
  6561. * src/CopyDiskAdaptor.h
  6562. (DiskAdaptor.h): Removed include.
  6563. (DiskWriter.h): Removed include.
  6564. (AbstractSingleDiskAdaptor.h): New include.
  6565. (getFilePath): Made non-const. Added virtual keyword.
  6566. (CopyDiskAdaptor): Removed diskWriter.
  6567. (getTempFile): Returns const reference.
  6568. (CopyDiskAdaptorHandle): New type definition.
  6569. * src/ByteArrayDiskWriter.cc
  6570. (clear): Simplified.
  6571. (initAndOpenFile): Rewritten.
  6572. (openFile): Call initAndOpenFile()
  6573. * src/MultiDiskAdaptor.cc: Rewritten.
  6574. * src/DownloadEngineFactory.cc
  6575. (FileAllocator.h): New include.
  6576. (FileAllocationMonitor.h): New include.
  6577. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  6578. create DefaultDiskWriter with file allocator.
  6579. * src/DiskWriter.h
  6580. (initAndOpenFile): Added totalLength argument.
  6581. (openFile): Added totalLength argument.
  6582. * src/prefs.h
  6583. (PREF_FILE_ALLOCATION): New definition.
  6584. (V_PREALLOC): New definition.
  6585. (V_NONE): New definition.
  6586. * src/HttpResponseCommand.cc
  6587. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  6588. size.
  6589. * src/FtpNegotiateCommand.cc
  6590. (Util.h): New include.
  6591. (recvSize): Open file here.
  6592. * src/Util.h
  6593. (ullitos): New function.
  6594. * src/CopyDiskWriter.h
  6595. (getFilePath): Made non-const.
  6596. * src/DefaultDiskWriter.h
  6597. (Option.h): New include.
  6598. (totalLength): Removed.
  6599. (DefaultDiskWriter): Removed totalLength.
  6600. (initAndOpenFile): Added totalLength argument.
  6601. (DefaultDiskWriterHandle): New type definition.
  6602. (createNewDiskWriter): New function.
  6603. * src/Util.cc
  6604. (ullitos): New function.
  6605. * src/DefaultDiskWriter.cc
  6606. (message.h): New include.
  6607. (FileAllocator.h): New include.
  6608. (prefs.h): New include.
  6609. (Util.h): New include.
  6610. (DefaultDiskWriter): Removed totalLength.
  6611. (initAndOpenFile): Added file allocation.
  6612. (createNewDiskWriter): New function. Just for temporary solution.
  6613. It will be rewritten later.
  6614. * src/DiskAdaptor.cc
  6615. (DiskAdaptor): Removed diskWriter.
  6616. * src/AbstractDiskWriter.cc
  6617. (LogFactory.h): New include.
  6618. (AbstractDiskWriter): Added fileAllocator, logger.
  6619. (openFile): Added totalLength argument.
  6620. * src/AbstractDiskWriter.h
  6621. (FileAllocator.h): New include.
  6622. (Logger.h): New include.
  6623. (fileAllocator): New variable.
  6624. (logger): New variable.
  6625. (openFile): Added totalLength argument. Added virtual keyword
  6626. explicitly.
  6627. (openExistingFile): Added totalLength argument. Added virtual keyword
  6628. explicitly.
  6629. (closeFile): Added virtual keyword explicitly.
  6630. (sha1Sum): Added virtual keyword explicitly.
  6631. (writeData): Added virtual keyword explicitly.
  6632. (readData): Added virtual keyword explicitly.
  6633. (setFileAllocator): New function.
  6634. * src/DefaultPieceStorage.h
  6635. (FileAllocator.h): New include.
  6636. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6637. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6638. * src/FileProgressMonitor.h: New class.
  6639. To compile aria2 on PC-BSD:
  6640. * src/DefaultBtContext.cc
  6641. (libgen.h): New include.
  6642. To fix memory leak:
  6643. * src/Exception.h
  6644. (~Exception): Delete cause. Fixed memory leak.
  6645. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. Rewritten a portion of bittorrent implementation:
  6647. * src/BtMessageValidator.h: New class.
  6648. * src/BtBitfieldMessageValidator.h: New class.
  6649. * src/BtHandshakeMessageValidator.h: New class.
  6650. * src/BtRequestMessageValidator.h: New class.
  6651. * src/BtSuggestPieceMessageValidator.h: New class.
  6652. * src/BtAllowedFastMessageValidator.h: New class.
  6653. * src/BtRejectMessageValidator.h: New class.
  6654. * src/BtCancelMessageValidator.h: New class.
  6655. * src/BtPieceMessageValidator.h: New class.
  6656. * src/BtHaveMessageValidator.h: New class.
  6657. * src/BtEventListener.h: New class.
  6658. * src/AbstractBtEventListener.h: New class.
  6659. * src/BtEvent.h: New class.
  6660. * src/BtChokingEvent.h: New class.
  6661. * src/BtChokedEvent.h: New class.
  6662. * src/BtCancelSendingPieceEvent.h: New class.
  6663. * src/BtAbortOutstandingRequestEvent.h: New class.
  6664. * src/Randomizer.h: New class.
  6665. * src/SimpleRandomizer.h: New class.
  6666. * src/BtMessage.h: New class.
  6667. * src/AbstractBtMessage.h: New class.
  6668. * src/SimpleBtMessage.h: New class.
  6669. * src/BtHaveMessage.h: New class.
  6670. * src/BtInterestedMessage.h: New class.
  6671. * src/BtAllowedFastMessage.h: New class.
  6672. * src/BtUnchokeMessage.h: New class.
  6673. * src/BtCancelMessage.h: New class.
  6674. * src/BtNotInterestedMessage.h: New class.
  6675. * src/BtChokeMessage.h: New class.
  6676. * src/BtHaveNoneMessage.h: New class.
  6677. * src/BtHandshakeMessage.h: New class.
  6678. * src/BtSuggestPieceMessage.h: New class.
  6679. * src/BtHaveMessage.h: New class.
  6680. * src/BtPieceMessage.h: New class.
  6681. * src/BtHaveAllMessage.h: New class.
  6682. * src/BtKeepAliveMessage.h: New class.
  6683. * src/BtPortMessage.h: New class.
  6684. * src/BtRejectMessage.h: New class.
  6685. * src/BtBitfieldMessage.h: New class.
  6686. * src/BtRequestMessage.h: New class.
  6687. * src/DefaultBtRequestFactory.h: New class.
  6688. * src/DefaultBtMessageReceiver.h: New class.
  6689. * src/BtInteractive.h: New class.
  6690. * src/BtMessageDispatcher.h: New class.
  6691. * src/DefaultBtMessageDispatcher.h: New class.
  6692. * src/DefaultBtInteractive.h: New class.
  6693. * src/BitfieldManFactory.h: New class.
  6694. * src/HandleRegistry.h: New class.
  6695. * src/BtMessageFactory.h: New class.
  6696. * src/BtMessageReceiver.h: New class.
  6697. * src/DefaultBtMessageFactory.h: New class.
  6698. * src/PeerObject.h: New class.
  6699. * src/BtRequestFactory.h: New class.
  6700. * src/SuggestPieceMessage.h: Removed.
  6701. * src/PortMessage.h: Removed.
  6702. * src/SuggestPieceMessage.h: Removed.
  6703. * src/KeepAliveMessage.h: Removed.
  6704. * src/HandshakeMessage.h: Removed.
  6705. * src/PeerInteraction.h: Removed.
  6706. * src/UnchokeMessage.h: Removed.
  6707. * src/PieceMessage.h: Removed.
  6708. * src/RequestMessage.h: Removed.
  6709. * src/InterestedMessage.h: Removed.
  6710. * src/HaveMessage.h: Removed.
  6711. * src/CancelMessage.h: Removed.
  6712. * src/RejectMessage.h: Removed.
  6713. * src/AllowedFastMessage.h: Removed.
  6714. * src/HaveNoneMessage.h: Removed.
  6715. * src/SimplePeerMessage.h: Removed.
  6716. * src/HaveAllMessage.h: Removed.
  6717. * src/BitfieldMessage.h: Removed.
  6718. * src/PeerMessageFactory.h: Removed.
  6719. * src/NotInterestedMessage.h: Removed.
  6720. * src/ChokeMessage.h: Removed.
  6721. * src/PeerMessage.h: Removed.
  6722. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. To know root cause of exception:
  6724. * src/Exception.h
  6725. (cause): New variable.
  6726. (Exception): Added a parameter.
  6727. (getMsg): Return const reference to msg.
  6728. (getCause): New function.
  6729. * src/DlRetryEx.h
  6730. (DlRetryEx): Added a parameter 'cause'.
  6731. Added an overloaded constructor.
  6732. (DlAbortEx): Added a parameter 'cause'.
  6733. Added an overloaded constructor.
  6734. * src/SimpleLogger.cc
  6735. (writeLog): Log nested exception messages recursively.
  6736. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. * src/DefaultBtProgressInfoFile.cc
  6738. (load): Fixed memory leak when the infohash doesn't match.
  6739. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. * src/DefaultPeerStorage.cc
  6741. (calculateStat): Simplified the code by combining 2 loops into 1.
  6742. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  6744. for BitTorrent download:
  6745. * src/PeerAbstractCommand.cc
  6746. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  6747. * src/main.cc:
  6748. (timeoutSpecified): Removed.
  6749. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  6750. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  6751. * src/TorrentRequestInfo.cc
  6752. (timeoutSpecified): Removed.
  6753. (torrentHandler): Removed timeoutSpecified and the adjustment of
  6754. timeout value.
  6755. * src/prefs.h
  6756. (PREF_BT_TIMEOUT): New definition.
  6757. Delete unused variables:
  6758. * src/TorrentRequestInfo.cc
  6759. (requestInfo): Removed.
  6760. Move setSignalHander to Util::setGlobalSignalHandler:
  6761. * src/TorrentRequestInfo.cc:
  6762. setSignalHander -> Util::setGlobalSignalHandler
  6763. * src/main.cc
  6764. (setSignalHander): Removed.
  6765. (main): setSignalHander -> Util::setGlobalSignalHandler
  6766. * src/Util.h
  6767. (setGlobalSignalHandler): New function.
  6768. * src/Util.cc
  6769. (setGlobalSignalHandler): New function.
  6770. * src/UrlRequestInfo.cc:
  6771. setSignalHander -> Util::setGlobalSignalHandler
  6772. Reset peer status in order to exit gracefully:
  6773. * src/PeerAbstractCommand.cc
  6774. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  6775. To fix the bug that causes the number of bytes uploaded is not saved
  6776. to .aria2 file:
  6777. * src/DefaultPeerStorage.h
  6778. (removedPeerSessionDownloadLength): New variable.
  6779. (removedPeerSessionUploadLength): New variable.
  6780. * src/DefaultPeerStorage.cc
  6781. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  6782. removedPeerSessionUploadLength(0).
  6783. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  6784. through all peers, and then add removedPeerSessionDownloadLength(
  6785. removedPeerSessionUploadLength) to it.
  6786. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  6787. (to) the peer to removedPeerSessionDownloadLength
  6788. (removedPeerSessionUploadLength).
  6789. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. To add Metalink location option:
  6791. * src/MetalinkRequestInfo.cc
  6792. (execute): Call MetalinkEntry::setLocationPreference()
  6793. * src/main.cc
  6794. (showUsage): Added the help message for --metalink-location option.
  6795. (main): Added --metalink-location option.
  6796. * src/prefs.h
  6797. (PREF_METALINK_LOCATION): New definition.
  6798. * src/MetalinkEntry.cc
  6799. (AddLocationPreference): New function object.
  6800. (setLocationPreference): New function.
  6801. * src/Xml2MetalinkProcessor.cc
  6802. (getResource): Set location attribute to MetalinkResource
  6803. To show URLs to download
  6804. * src/UrlRequestInfo.h
  6805. (printUrls): New function.
  6806. To add multiple <file> Metalink support:
  6807. * src/MetalinkEntry.h
  6808. (MetalinkResources): Removed.
  6809. (setLocationPreference): New function.
  6810. (MetalinkEntryHandle): New type definition.
  6811. (MetalinkEntries): New type definition.
  6812. * src/Xml2MetalinkProcessor.h
  6813. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6814. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6815. (parseFile): Metalinker* -> MetalinkerHandle
  6816. * src/UrlRequestInfo.h
  6817. (execute): RequestInfo* -> RequestInfos
  6818. * src/MetalinkRequestInfo.cc
  6819. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  6820. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  6821. (execute): RequestInfo* -> RequestInfos
  6822. Added multiple <file> support. Print filename when it is queued.
  6823. * src/MetalinkRequestInfo.h
  6824. (execute): RequestInfo* -> RequestInfos
  6825. (getDownloadEngine): Removed.
  6826. * src/RequestInfo.h
  6827. (RequestInfoHandle): New type definition.
  6828. (RequestInfos): New type definition.
  6829. (execute): RequestInfo* -> RequestInfos
  6830. (getDownloadEngine): Removed.
  6831. * src/MetalinkResource.h
  6832. (MetalinkResourceHandle): New type definition.
  6833. (MetalinkResources): New type definition.
  6834. * src/MetalinkEntry.cc
  6835. (~MetalinkEntry): Removed the deletion of the elements of resources,
  6836. because the element is now of type MetalinkResourceHandle.
  6837. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  6838. (Supported): MetalinkResource* -> MetalinkResourceHandle
  6839. (dropUnsupportedResource): Removed the deletion of the elements of
  6840. resources because the element is now of type MetalinkResourceHandle.
  6841. * src/Xml2MetalinkProcessor.cc
  6842. (parseFile): Metalinker* -> MetalinkerHandle
  6843. MetalinkEntry* -> MetalinkEntryHandle
  6844. Removed try-catch block.
  6845. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6846. MetalinkResource* -> MetalinkResourceHandle
  6847. Removed try-catch block.
  6848. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6849. Free result by using xmlXPathFreeObject()
  6850. * src/Metalinker.cc
  6851. (~Metalinker): Removed the deletion of entries.
  6852. MetalinkEntry* -> MetalinkEntryHandle
  6853. (queryEntry): Add multiple <file> Metalink support.
  6854. * src/Metalinker.h
  6855. (MetalinkEntries): Removed.
  6856. (queryEntry): MetalinkEntry* -> MetalinkEntries
  6857. * src/MetalinkProcessor.h
  6858. (parseFile): Metalinker* -> MetalinkerHandle
  6859. Bug fixes:
  6860. * src/PeerChokeCommand.cc
  6861. (execute): cat01->cat02
  6862. * src/DefaultPieceStorage.cc
  6863. (DefaultPieceStorage): Added diskAdaptor(0)
  6864. * src/TrackerWatcherComand.cc:
  6865. (execute): Use btAnnounce->noMoreAnnounce()
  6866. to determin whether the function returns true or not.
  6867. * src/TrackerUpdateCommand.cc:
  6868. (execute): Use btAnnounce->noMoreAnnounce()
  6869. to determin whether the function returns true or not.
  6870. * src/FtpConnection.cc
  6871. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  6872. This is the fix of the busy loop bug.
  6873. * src/DownloadCommand.cc
  6874. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  6875. cached PeerStat.
  6876. The value of "name" entry in torrent file is now set by
  6877. *DiskAdaptor::setTopDir(...) methods.
  6878. * src/MultiDiskAdaptor.h
  6879. (topDir): New variable.
  6880. (setTopDir): New function.
  6881. (getTopDir): New function.
  6882. * src/MultiDiskAdaptor.cc
  6883. (getFilePath): Concat storDir, "/" and topDir.
  6884. (mkdir): Use getFilePath() to get the directory path for output.
  6885. * src/DefaultPieceStorage.cc
  6886. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  6887. CopyDiskAdaptor.
  6888. * src/CopyDiskAdaptor.h
  6889. (topDir): New variable.
  6890. (setTopDir): New function.
  6891. (getTopDir): New function.
  6892. * src/CopyDiskAdaptor.cc
  6893. (fixFilename): Updated.
  6894. Misc
  6895. * src/UrlRequestInfo.h
  6896. (e): Removed.
  6897. (UrlRequestInfo): Removed e.
  6898. (getDownloadEngine): Removed.
  6899. * src/UrlRequestInfo.cc
  6900. (handler): Rewritten.
  6901. (printUrls): New function.
  6902. (execute): Call printUrls().
  6903. * src/HandshakeMessage.cc
  6904. (check): peerinteraction->getBtContext() -> btContext
  6905. * src/PeerInteraction.h
  6906. (getBtContext): Removed.
  6907. * src/TorrentRequestInfo.h
  6908. (execute): RequestInfo* -> RequestInfos
  6909. (getDownloadEngine): Removed.
  6910. * src/TorrentRequestInfo.cc
  6911. (haltRequested): Removed.
  6912. (btHaltRequested): New variable.
  6913. (torrentHandler): haltRequested -> btHaltRequested
  6914. (execute): RequestInfo* -> RequestInfos
  6915. * src/TorrentConsoleDownloadEngine.cc
  6916. (afterEachIteration): haltRequested -> btHaltRequested.
  6917. * src/ConsoleDownloadEngine.h
  6918. (initStatistics): Added virtual.
  6919. (calculateStatistics): Added virtual.
  6920. (onEndOfRun): Added virtual.
  6921. (afterEachIteration): Added virtual.
  6922. * src/ConsoleDownloadEngine.cc
  6923. (haltRequested): New variable.
  6924. (afterEachIteration): New function.
  6925. * src/main.cc
  6926. (requestInfo): Removed.
  6927. * src/SegmentMan.cc
  6928. (findSlowerSegmentEntry): Refactored.
  6929. * Release 0.9.0
  6930. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  6932. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  6933. * src/TorrentMan.h: Removed.
  6934. * src/TorrentMan.cc: Removed.
  6935. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  6936. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  6937. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  6938. * src/PeerAbstractCommand.cc: Use btRuntime.
  6939. * src/BtContextAwareCommand.h: New class.
  6940. * src/FileEntry.h: Added accessor methods for following variables.
  6941. (path): Made private.
  6942. (length): Made private.
  6943. (offset): Made private.
  6944. (extracted): Made private.
  6945. (requested): Made private.
  6946. (FileEntries): New definition.
  6947. (FileEntryHandle): New definition.
  6948. * src/FileEntry.cc: New file.
  6949. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  6950. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  6951. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  6952. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  6953. * src/PieceStorage.h: New file.
  6954. * src/PeerInteractionCommand.h: Use btContext.
  6955. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  6956. btRuntime.
  6957. * src/DefaultBtProgressInfoFile.h: New file.
  6958. * src/DefaultBtProgressInfoFile.cc: New file.
  6959. * src/File.cc
  6960. (Util.h): New include.
  6961. (mkdirs): New function.
  6962. * src/MultiDiskAdaptor.h
  6963. (mkdir): New function.
  6964. * src/PeerListProcessor.h
  6965. (Peers): Removed.
  6966. * src/PeerInteraction.h
  6967. (torrentMan): Removed.
  6968. (btContext): New variable.
  6969. (peerStorage): New variable.
  6970. (pieceStorage): New variable.
  6971. (btAnnounce): New variable.
  6972. (getTorrentMan): Removed.
  6973. (getBtContext): New function.
  6974. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  6975. btAnnounce.
  6976. * src/HandshakeMessage.h
  6977. (TorrentMan.h): Removed.
  6978. * src/HandshakeMessage.cc: Use btContext.
  6979. * src/DefaultBtAnnounce.cc: New file.
  6980. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  6981. * src/DefaultPieceStorage.cc: New file.
  6982. * src/DefaultBtContext.h: New file.
  6983. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  6984. Use the accessor methods of FileEntry.
  6985. * src/CookieBox.cc: Updated to use Util::slice().
  6986. * src/PieceMessage.cc: Use btContext, pieceStorage.
  6987. * src/common.h (SharedHandle.h): New include.
  6988. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  6989. pieceStorage.
  6990. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  6991. * src/DiskAdaptor.h
  6992. (topDir): Removed.
  6993. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  6994. (setTopDir): Removed.
  6995. (getTopDir): Removed.
  6996. * src/BtContext.h: New file.
  6997. * src/DefaultPeerStorage.h: New file.
  6998. * src/PieceMessage.h (TorrentMan.h): Removed.
  6999. * src/RequestMessage.h (TorrentMan.h): Removed.
  7000. * src/TorrentDownloadEngine.h
  7001. (uploadLength): New variable.
  7002. (btContext): New variable.
  7003. (btRuntime): New variable.
  7004. (pieceStorage): New variable.
  7005. (peerStorage): New variable.
  7006. (btAnnounce): New variable.
  7007. (btProgressInfoFile): New variable.
  7008. (torrentMan): Removed.
  7009. (setBtContext): New function.
  7010. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7011. peerStorage, btAnnounce, btProgressInfoFile.
  7012. * src/Piece.h
  7013. (toString): New function.
  7014. (Pieces): New type definition.
  7015. * src/Peer.h
  7016. (active): New variable.
  7017. (Peer): Added active.
  7018. (activate): Set active to true.
  7019. (deactivate): Set active to false.
  7020. (isActive): New function.
  7021. (Peers): New type definition.
  7022. * src/DirectDiskAdaptor.cc
  7023. (getFilePath): Use the accessor methods of FileEntry.
  7024. * src/TorrentConsoleDownloadEngine.h
  7025. (afterEachIteration): New function.
  7026. * src/TorrentConsoleDownloadEngine.cc
  7027. (haltRequested): New variable.
  7028. (sendStatistics): Use pieceStorage, btRuntime.
  7029. (afterEachIteration): New function.
  7030. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7031. * src/Directry.h
  7032. (Directory): New function.
  7033. (DirectoryHandle): New type definition.
  7034. * src/BtProgressInfoFile.h: New file.
  7035. * src/RequestMessage.cc: Use pieceStorage.
  7036. * src/BtRuntime.h: New file.
  7037. * src/DefaultBtContext.cc: New file.
  7038. * src/BitfieldMan.h
  7039. (getCompletedLength): New function(private).
  7040. (getCompletedLength): New function.
  7041. (getFilteredCompletedLength): New function.
  7042. * src/BitfieldMan.h
  7043. (getCompletedLength): New function(private).
  7044. (getCompletedLength): New function.
  7045. (getFilteredCompletedLength): New function.
  7046. * src/MultiDiskAdaptor.cc
  7047. (mkdir): New function.
  7048. (openFile): Call mkdir().
  7049. (initAndOpenFile): Call mkdir().
  7050. * src/CancelMessage.h
  7051. (TorrentMan.h): Removed.
  7052. * src/RejectMessage.h
  7053. (TorrentMan.h): Removed.
  7054. * src/DownloadEngineFactory.cc
  7055. (DefaultPieceStorage.h): New include.
  7056. (DefaultPeerStorage.h): New include.
  7057. (DefaultBtAnnounce.h): New include.
  7058. (DefaultBtProgressInfoFile.h): New include.
  7059. (newTorrentConsoleEngine): Rewritten.
  7060. * src/ShareRatioSeedCriteria.h
  7061. (torrentMan): Removed.
  7062. (btContext): New variable.
  7063. (peerStorage): New variable.
  7064. (btRuntime): New variable.
  7065. (evaluate): Use btContext, btRuntime, peerStorage.
  7066. * src/AnnounceTier.h: New file.
  7067. * src/BtAnnounce.h: New file.
  7068. * src/BtRegistry.h: New file.
  7069. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7070. * src/PeerConnection.h (TorrentMan.h): Removed.
  7071. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7072. * src/Util.h
  7073. (slice): Added an argument.
  7074. * src/Util.cc
  7075. (slice): Added an argument to control whether trim is made or not.
  7076. * src/PeerStorage.h: New file.
  7077. * src/BtRegistry.cc: New file.
  7078. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7079. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7080. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7081. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7082. * src/TorrentRequestInfo.h
  7083. (e): Removed.
  7084. (showFileEntry): Added an argument.
  7085. (getDownloadEngine): Return 0.
  7086. * src/DefaultBtAnnounce.h: New file.
  7087. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7088. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7089. * src/PeerMessageFactory.h
  7090. (btContext): New variable.
  7091. (pieceStorage): New variable.
  7092. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7093. btAnnounce.
  7094. * src/DiskAdaptor.cc
  7095. (DiskAdaptor): Removed topDir.
  7096. (~DiskAdaptor): Removed topDir.
  7097. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7098. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7099. * src/File.h (mkdirs): New function.
  7100. * src/DefaultPeerStorage): New file.
  7101. * src/DownloadEngineFactory.h
  7102. (newTorrentConsoleEngine): Use btContext.
  7103. * src/BtContextAwareCommand.cc: New file.
  7104. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7105. * src/PeerMessage.h
  7106. (btContext): New variable.
  7107. (peerStorage): New variable.
  7108. (pieceStorage): New variable.
  7109. (setBtContext): New function.
  7110. * src/Directry.cc
  7111. (Directory): New function.
  7112. (createDir): Do nothing if name.size() == 0.
  7113. * src/AnnounceList.h
  7114. (AnnounceTier): Removed.
  7115. (AnnounceTiers): Removed.
  7116. * src/DefaultPieceStorage.h: New file.
  7117. * src/Piece.cc (toString): New function.
  7118. To fix typo:
  7119. * src/main.cc (showVersion): Fixed typo.
  7120. To fix compile warning:
  7121. * src/DelegatingPeerListProcessor.cc
  7122. (canHandle): Added "return false".
  7123. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7124. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7125. make the process of announce request testable.
  7126. * src/TrackerWatcherCommand.h
  7127. (TimeA2.h): Removed.
  7128. (interval): Removed.
  7129. (checkPoint): Removed.
  7130. (createRequestCommand): Added an argument 'url'.
  7131. (TrackerWatherCommand): Removed interval.
  7132. (createCommand): New function.
  7133. * src/DownloadEngineFactory.cc
  7134. (newTorrentConsoleEngine): Updated according to the changes in
  7135. TrackerWatherCommand.
  7136. * src/TorrentMan.cc
  7137. (DelegatingPeerListProcessor.h): New includes.
  7138. (TorrentMan): Added the initialization of announceInterval.
  7139. (isStoppedAnnounceReady): New function.
  7140. (isCompletedAnnounceReady): New function.
  7141. (isDefaultAnnounceReady): New function.
  7142. (isAnnounceReady): New function.
  7143. (getAnnounceUrl): New function.
  7144. (announceStart): New function.
  7145. (announceFailure): New function.
  7146. (announceSuccess): New function.
  7147. (isAllAnnounceFailed): New function.
  7148. (resetAnnounce): New function.
  7149. (processAnnounceResponse): New function.
  7150. (needMorePeerConnection): New function.
  7151. (noMoreAnnounce): New function.
  7152. * src/TrackerUpdateCommand.h
  7153. (getTrackerResponse): int->size_t
  7154. * src/TorrentMan.h
  7155. (isStoppedAnnounceReady): New function.
  7156. (isCompletedAnnounceReady): New function.
  7157. (isDefaultAnnounceReady): New function.
  7158. (announceInterval): New variable.
  7159. (isAnnounceReady): New function.
  7160. (getAnnounceUrl): New function.
  7161. (announceStart): New function.
  7162. (announceFailure): New function.
  7163. (announceSuccess): New function.
  7164. (isAllAnnounceFailed): New function.
  7165. (resetAnnounce): New function.
  7166. (processAnnounceResponse): New function.
  7167. (needMorePeerConnection): New function.
  7168. (noMoreAnnounce): New function.
  7169. * src/TrackerWatcherCommand.cc
  7170. (TrackerWatherCommand): Removed interval and checkPoint.
  7171. (execute): Rewritten.
  7172. (createCommand): New function.
  7173. (createRequestCommand): Rewritten.
  7174. * src/TrackerUpdateCommand.cc
  7175. (MetaFileUtil.h): Removed.
  7176. (DelegatingPeerListProcessor.h): Removed.
  7177. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7178. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Request -> RequestHandle:
  7180. * src/HttpResponseCommand.h: Request->RequestHandle
  7181. * src/AbstractCommand.cc: Request->RequestHandle
  7182. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7183. * src/HttpRequestCommand.cc: Request->RequestHandle
  7184. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7185. * src/AbstractCommand.h: Request->RequestHandle
  7186. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7187. * src/HttpResponseCommand.cc: Request->RequestHandle
  7188. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7189. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7190. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7191. * src/HttpConnection.h: Request->RequestHandle
  7192. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7193. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7194. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7195. * src/DownloadCommand.h: Request->RequestHandle
  7196. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7197. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7198. * src/HttpRequestCommand.h: Request->RequestHandle
  7199. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7200. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7201. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7202. * src/HttpDownloadCommand.h: Request->RequestHandle
  7203. * src/FtpConnection.cc: Request->RequestHandle
  7204. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7205. * src/UrlRequestInfo.cc: Request->RequestHandle
  7206. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7207. * src/HttpConnection.h: Request->RequestHandle
  7208. * src/DownloadCommand.cc: Request->RequestHandle
  7209. * src/FtpConnection.h: Request->RequestHandle
  7210. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7211. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7212. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7213. * src/Request.h
  7214. (SharedHandle.h): New include.
  7215. (RequestHandle): New type definition.
  7216. (Requests): Redefined.
  7217. To add MULTITRACKER support:
  7218. * src/TrackerWatcherCommand.h
  7219. (createRequestCommand): New function.
  7220. * src/DownloadEngineFactory.cc
  7221. (newTorrentConsoleEngine): Removed req.
  7222. * src/prefs.h
  7223. (PREF_TRACKER_MAX_TRIES): New definition.
  7224. * src/TorrentMan.cc
  7225. (TorrentMan): Removed req. Added trackerNumTry.
  7226. (~TorrentMan): Removed req.
  7227. (setupInternal1): Added announceList.
  7228. * src/TorrentRequestInfo.cc
  7229. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7230. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7231. * src/main.cc
  7232. (main): Added PREF_TRACKER_MAX_TRIES.
  7233. * src/TorrentMan.h
  7234. (Request.h): Removed.
  7235. (AnnounceList.h): New include.
  7236. (trackerNumTry): New variable.
  7237. (req): Removed.
  7238. (announceList): New variable.
  7239. * src/TrackerWatcherCommand.cc
  7240. (execute): Rewritten.
  7241. (createRequestCommand): New function.
  7242. * src/TrackerUpdateCommand.cc
  7243. (execute): Updated with the use of AnnounceList.
  7244. * src/AnnounceList.cc: New class.
  7245. * src/AnnounceList.h: New class.
  7246. To fix typo:
  7247. * src/prefs.h
  7248. (PREF_MAX_TRIES): max_try->max_tries
  7249. To not to decode "+" as space in URL decode:
  7250. * src/Util.cc
  7251. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7252. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. To add timeout to async name resolution:
  7254. * src/AbstractCommand.h
  7255. (nameResolveFinished): New function. This is not elegant way. It needs
  7256. to be more refined.
  7257. (nameResolverCheck): New variable.
  7258. * src/AbstractCommand.cc
  7259. (AbstractCommand): Added nameResolverCheck.
  7260. (execute): Added the check whether the name resolution has finished.
  7261. (setNameResolverCheck): Set nameResolverCheck to true.
  7262. (disableNameResolverCheck): Set nameResolverCheck to false.
  7263. (nameResolverFinished): New function.
  7264. * src/FtpInitiateConnectionCommand.h
  7265. (nameResolverFinished): New function.
  7266. * src/FtpInitiateConnectionCommand.cc
  7267. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7268. * src/HttpInitiateConnectionCommand.h
  7269. (nameResolverFinished): New function.
  7270. * src/HttpInitiateConnectionCommand.cc
  7271. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7272. * src/prefs.h
  7273. (PREF_DNS_TIMEOUT): New definition.
  7274. * src/main.cc
  7275. (main): Added PREF_DNS_TIMEOUT.
  7276. To add the support for a non-compact response from a tracker:
  7277. * src/PeerListProcessor.h: New class.
  7278. * src/DefaultPeerListProcessor.h: New class.
  7279. * src/DefaultPeerListProcessor.cc: New class.
  7280. * src/CompactPeerListProcessor.h: New class.
  7281. * src/CompactPeerListProcessor.cc: New class.
  7282. * src/DelegatingPeerListProcessor.h: New class.
  7283. * src/DelegatingPeerListProcessor.cc: New class.
  7284. * src/TorrentMan.cc
  7285. (addPeer): New function(overload).
  7286. (addPeer): Delete unused peers only when new peer is added.
  7287. * src/TorrentMan.h
  7288. (PeerListProcessor.h): Included.
  7289. (Peers): Removed.
  7290. (addPeer): New function(overload).
  7291. * src/TrackerUpdateCommand.cc
  7292. (netinet/in.h): Removed.
  7293. (DelegatingPeerListProcessor.h): Included.
  7294. (execute): Updated to use DelegatingPeerListProcessor.
  7295. To fix the memory leak in TorrentMan::peers:
  7296. * src/PeerAbstractCommand.cc
  7297. (onAbort): Added peer->resetStatus().
  7298. * src/Peer.h
  7299. (resetStatus): Made public.
  7300. To improve the precision of the speed calculation:
  7301. * src/SpeedCalc.h
  7302. (nextInterval): New variable.
  7303. * src/SpeedCalc.cc
  7304. (reset): Added nextInterval.
  7305. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7306. (changeSw): Set nextInterval to 15 seconds relative to the current
  7307. instant time.
  7308. * src/main.cc
  7309. (showVersion): Updated.
  7310. (showUsage): Updated.
  7311. * Release 0.8.1
  7312. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. * src/main.cc
  7314. (showUsage): Commented out --min-segment-size option.
  7315. (main): Commented out --min-segment-size option.
  7316. * Release 0.8.0
  7317. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7318. * src/*.{h,cc}:
  7319. Added an exception to the license which allows linking with OpenSSL.
  7320. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. * src/AbstractCommand.cc
  7322. (execute): Check whether the download has finished before checking
  7323. socket status.
  7324. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7325. Do not exit even if no segment is available.
  7326. * src/prefs.h
  7327. (PREF_STARTUP_IDLE_TIME): New definition.
  7328. * src/PeerInteractionCommand.cc
  7329. (executeInternal): Removed max speed limit. Because it performs bad.
  7330. (receiveMessages): Added max speed limit. This was better than above,
  7331. but still a little bit to be desired. Sometimes the download speed
  7332. became much faster than I specified.
  7333. * src/SpeedCalc.h
  7334. (start): New variable.
  7335. (accumulatedLength): New variable.
  7336. (getAvgSpeed): New function.
  7337. * src/SpeedCalc.cc
  7338. (reset): Added start, accumulatedLength.
  7339. (update): Added calculation of an average speed.
  7340. (getAvgSpeed): New function.
  7341. * src/DownloadCommand.h
  7342. (sw): Removed.
  7343. * src/main.cc
  7344. (main): Added PREF_STARTUP_IDLE_TIME.
  7345. * src/PeerStat.h
  7346. (STATUS): Added REQUEST_IDLE.
  7347. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7348. (getAvgDownloadSpeed): New function
  7349. (requestIdle): New function.
  7350. * src/SegmentMan.h
  7351. (SegmentEntryHandle): New type definition.
  7352. (SegmentEntries): Now holds SegmentEntryHandle.
  7353. (findSlowerSegmentEntry): New funtion.
  7354. * src/SegmentMan.cc
  7355. (save): Updated according to the changes in SegmentEntries.
  7356. (read): Updated according to the changes in SegmentEntries.
  7357. (FindSegmentEntryByIndex): Updated according to the changes in
  7358. SegmentEntries.
  7359. (FindSegmentEntryByCuid): Updated according to the changes in
  7360. SegmentEntries.
  7361. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7362. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7363. Renamed uitr as itr.
  7364. (findSlowerSegmentEntry): New function.
  7365. (getSegment): Updated according to the changes in SegmentEntries.
  7366. Added the feature that cancels the segment with slow server and fast
  7367. one takes it over.
  7368. (cancelSegment): Updated according to the changes in SegmentEntries.
  7369. (getDownloadLength): Updated according to the changes in
  7370. SegmentEntries.
  7371. (init): Assigned 0 to bitfield after deleting it.
  7372. * src/DownloadCommand.cc
  7373. (STARTUP_IDLE_TIME): Removed.
  7374. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7375. * src/PeerChokeCommand.cc
  7376. (optUnchokingPeer): Updated according to the changes in Peer.
  7377. (ResetDelta): Removed.
  7378. (UploadFaster): Updated according to the changes in Peer.
  7379. (DownloadFaster): Updated according to the changes in Peer.
  7380. (execute): I clarify the meaning of "upload" and "download" here.
  7381. "upload" means the transfer from localhost to remote host.
  7382. "download" means the transfer from remote host to localhost.
  7383. Based on this rule, I swapped orderByUploadRate and
  7384. orderByDownloadRate.
  7385. * src/PeerInteractionCommand.cc
  7386. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7387. (executeInternal): Removed the argument of
  7388. peerInteraction->sendMessages().
  7389. (receiveMessages): Rewritten download speed limit.
  7390. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7391. * src/HttpResponseCommand.cc
  7392. (handleDefaultEncoding): If file size is unknown in torrent request,
  7393. do not call segmentMan->initBitfield() here.
  7394. Disabled persistent connection feature in torrent request.
  7395. * src/UrlRequestInfo.h
  7396. (UrlRequestInfo): Removed const qualifier from option.
  7397. * src/TorrentMan.h
  7398. (TransferStat): New class.
  7399. (deltaDownloadLength): Removed.
  7400. (deltaUploadLength): Removed.
  7401. (addDeltaDownloadLength): Removed.
  7402. (getDeltaDownloadLength): Removed.
  7403. (resetDeltaDownloadLength): Removed.
  7404. (addDeltaUploadLength): Removed.
  7405. (getDeltaUploadLength): Removed.
  7406. (resetDeltaUploadLength): Removed.
  7407. (addActivePeer): Added peer->activate().
  7408. (deleteActivePeer): Added peer->deactivate().
  7409. (calculateStat): New function.
  7410. * src/TorrentMan.cc
  7411. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  7412. (calculateStat): New function.
  7413. * src/PeerInteraction.h
  7414. (uploadLimit): Removed.
  7415. (option): New variable.
  7416. (setUploadLimit): Removed.
  7417. (getUploadSpeed): Removed.
  7418. (sendMessages): Removed the argument "currentUploadSpeed".
  7419. * src/PeerInteraction.cc
  7420. (prefs.h): Included.
  7421. (PeerInteraction): Removed uploadLimit. Added option.
  7422. (sendMessages): Rewritten upload speed limit.
  7423. (sendHandshake): Removed the argument from sendMessages().
  7424. (sendBitfield): Removed the argument from sendMessages().
  7425. * src/PeerAbstractCommand.cc
  7426. (execute): Commented out the portion of upload limit.
  7427. (onAbort): Removed peer->resetStatus().
  7428. * src/TorrentRequestInfo.cc
  7429. (timeoutSpecified): Declared extern.
  7430. (execute): Set timeout to 180 if timeout is not specified by.
  7431. command-line.
  7432. * src/PieceMessage.cc
  7433. (receivedAction): Added peer->updateDownloadLength().
  7434. Removed peer->addPeerUpload().
  7435. Removed torrentMan->addDeltaDownloadLength().
  7436. (send): Added peer->updateUploadLength().
  7437. Removed peer->addPeerDownload().
  7438. Removed torrentMan->addDeltaUploadLength().
  7439. * src/main.cc
  7440. (timeoutSpecified): New variable.
  7441. (main): Set timeoutSpecified to false.
  7442. If the command-line option "--upload-limit" is specified, then
  7443. timeoutSpecified is set to true. This option will remain in the next
  7444. release, but be deprecated in the future release.
  7445. * src/TorrentRequestInfo.h
  7446. (TorrentRequestInfo): Removed const qualifier from op.
  7447. * src/PeerStat.h
  7448. (uploadSpeed): New variable.
  7449. (PeerStat): Added default value to cuid.
  7450. (calculateUploadSpeed): New function.
  7451. (updateUploadLength): New function.
  7452. (getMaxUploadSpeed): New function.
  7453. (getAvgUploadSpeed): New function.
  7454. (reset): Added uploadSpeed. Set status to IDLE.
  7455. * src/TorrentDownloadEngine.h
  7456. (cp): Declared as Time.
  7457. (sessionDownloadLengthArray): Removed.
  7458. (sessionUploadLengthArray): Removed.
  7459. (currentCp): Removed.
  7460. (lastCalcStat): New variable
  7461. (lastElapsed): Removed.
  7462. (sessionDownloadLength): Removed.
  7463. (calculateStat): New function.
  7464. * src/TorrentDownloadEngine.cc
  7465. (initStatistics): Removed lastElapsed, cp[],
  7466. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  7467. currentCp, sessionDownloadLength.
  7468. Added cp.reset() and lastCalcStat.reset().
  7469. (calculateSpeed): Changed the name of the argument.
  7470. (calculateStatistics): Rewritten.
  7471. (calculateStat): New function.
  7472. * src/Peer.h
  7473. (PeerStat.h): Included.
  7474. (peerUpload): Removed.
  7475. (peerDownload): Removed.
  7476. (peerStat): New variable.
  7477. (sessionUploadLength): New variable.
  7478. (sessionDownloadLength): New variable.
  7479. (deltaUpload): Removed.
  7480. (deltaDownload): Removed.
  7481. (resetStatus): Made private.
  7482. (Peer): Added sessionUploadLength, sessionDownloadLength.
  7483. Removed peerUpload, peerDownload.
  7484. (updateUploadLength): New function.
  7485. (addDeltaUpload): Removed.
  7486. (updateDownloadLength): New function.
  7487. (resetDeltaUpload): Removed.
  7488. (getDeltaUpload): Removed.
  7489. (addDeltaDownload): Removed.
  7490. (calculateUploadSpeed): New function.
  7491. (resetDeltaDownload): Removed.
  7492. (getDeltaDownload): Removed.
  7493. (calculateDownloadSpeed): New function.
  7494. (getSessionUploadLength): New function.
  7495. (getSessionDownloadLength): New function.
  7496. (activate): New function.
  7497. (deactivate): New function.
  7498. (addPeerUpload): Removed.
  7499. (setPeerUpload): Removed.
  7500. (getPeerUpload): Removed.
  7501. (addPeerDownload): Removed.
  7502. (setPeerDownload): Removed.
  7503. (getPeerDownload): Removed.
  7504. * src/Peer.cc
  7505. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  7506. * src/MetalinkRequestInfo.h
  7507. (MetalinkRequestInfo): Removed const qualifier from op.
  7508. * src/RequestInfo.h
  7509. (op): Removed const qualifier.
  7510. (RequestInfo): Removed const qualifier from op.
  7511. * src/prefs.h
  7512. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  7513. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  7514. * src/PeerInteractionCommand.cc
  7515. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  7516. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  7517. * src/PeerInteraction.cc
  7518. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  7519. * src/main.cc
  7520. (showUsage): Updated the description of "--lowest-speed-limit" option.
  7521. Added the description of "--max-download-limit" option.
  7522. Removed the description of "--upload-limit" option.
  7523. Added the description of "--max-upload-limit" option.
  7524. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  7525. Added "--max-download-limit" option and "--max-upload-limit" option.
  7526. Added the warning message if "--upload-limit" option is used.
  7527. * src/DownloadCommand.cc
  7528. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  7529. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. To rewrite segment download mechanism for HTTP/FTP download.
  7531. Use BitfieldMan to manage segment download.
  7532. * src/HttpResponseCommand.h
  7533. (executeInternal): Pass the reference of segment.
  7534. * src/AbstractCommand.cc
  7535. (prepareForRetry): Call segmentMan->cancelSegment here.
  7536. (onAbort): Call segmentMan->cancelSegment here.
  7537. * src/HttpDownloadCommand.cc
  7538. (prepareForNextSegment): New function.
  7539. * src/DownloadEngineFactory.cc
  7540. (newConsoleEngine): Removed splitter.
  7541. (newTorrentConsoleEngine): Removed splitter.
  7542. * src/Request.h
  7543. (segment): Renamed from seg.
  7544. * src/FtpInitiateConnectionCommand.h
  7545. (executeInternal): Pass the reference of segment.
  7546. * src/AbstractCommand.h
  7547. (executeInternal): Pass the reference of segment.
  7548. * src/pref.h
  7549. (PREF_SEGMENT_SIZE): New definition.
  7550. * src/HttpProxyRequestCommand.h
  7551. (executeInternal): Pass the reference of segment.
  7552. * src/HttpResponseCommand.cc
  7553. (checkResponse): Allowed status 206 when a request range starts 0.
  7554. (handleDefaultEncoding): Rewritten the code related to Segment.
  7555. (handleOtherEncoding): Rewritten the code related to Segment.
  7556. * src/SegmentMan.h
  7557. (SegmentEntry): New class.
  7558. (SegmentEntries): New type definition.
  7559. (bitfield): New variable.
  7560. (usedSegmentEntries): New variable.
  7561. (onNullBitfield): New function.
  7562. (checkoutSegment): New function.
  7563. (segments): Removed.
  7564. (splitter): Removed.
  7565. (unregisterId): Removed.
  7566. (getSegment): New function(overload)
  7567. (getDownloadedSize): Removed.
  7568. (cancelSegment): New function.
  7569. (completeSegment): New function.
  7570. (initBitfield): New function.
  7571. (hasSegment): New function.
  7572. (getDownloadLength): New function.
  7573. * src/BitfieldMan.h
  7574. (getStartIndex): New function.
  7575. (getEndIndex): New function.
  7576. (getMissingUnusedIndex): New function(overload).
  7577. (getSparseMissingUnusedIndex): New function.
  7578. * src/BitfieldMan.cc
  7579. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  7580. (getMissingUnusedIndex): New function(overload).
  7581. (Range): New class.
  7582. (getStartIndex): New function.
  7583. (getEndIndex): New function.
  7584. (getSparseMissingUnusedIndex): New function.
  7585. (isBitSetInternal): Return false if the given index is less than 0.
  7586. * src/HttpInitiateConnectionCommand.h
  7587. (executeInternal): Pass the reference of segment.
  7588. * src/FtpNegotiateCommand.h
  7589. (executeInternal): Pass the reference of segment.
  7590. * src/FtpNegotiateCommand.cc
  7591. (recvSize): Initialize bitfield here.
  7592. * src/FtpTunnelResponseCommand.h
  7593. (executeInternal): Pass the reference of segment.
  7594. * src/HttpConnection.cc
  7595. (createRequest): Rewritten range header processing.
  7596. * src/DownloadCommand.h
  7597. (executeInternal): Pass the reference of segment.
  7598. (prepareForRetry): Removed.
  7599. (prepareForNextSegment): Added an argument segment. Made it a virtual
  7600. function.
  7601. * src/main.cc
  7602. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  7603. * src/SegmentMan.cc
  7604. (SegmentMan): Added bitfield. Removed splitter.
  7605. (~SegmentMan): Added bitfield. Removed splitter.
  7606. (unregisterId): Removed.
  7607. (getSegment): Rewritten.
  7608. (updateSegment): Rewritten.
  7609. (save): Rewritten.
  7610. (read): Rewritten.
  7611. (finished): Rewritten.
  7612. (getDownloadedSize): Removed.
  7613. (initBitfield): New function.
  7614. (FindSegmentEntryByIndex): New function object.
  7615. (FindSegmentEntryByCuid): New function object.
  7616. (checkoutSegment): New function.
  7617. (onNullBitfield): New function.
  7618. (getSegment): New function(overload).
  7619. (CancelSegment): New function object.
  7620. (cancelSegment): New function.
  7621. (completeSegment): New function.
  7622. (hasSegment): New function.
  7623. (getDownloadLength): New function.
  7624. * src/FtpInitiateConnectionCommand.cc
  7625. (executeInternal): Load .aria2 file after hostname resolution finishes.
  7626. * src/Segment.h: Rewritten.
  7627. * src/Segment.cc (operator<<): New function.
  7628. * src/HttpDownloadCommand.h
  7629. (prepareForNextSegment): New function.
  7630. * src/Request.cc
  7631. (resetUrl): Made segment null.
  7632. * src/DownloadEngine.cc
  7633. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  7634. * src/HttpProxyRequestCommand.h
  7635. (executeInternal): Pass the reference of segment.
  7636. * src/DownloadCommand.cc
  7637. (executeInternal): Rewritten the code related to Segment.
  7638. (prepareForRetry): Removed.
  7639. (prepareForNextSegment): Rewritten.
  7640. * src/FtpTunnelResponseCommand.h
  7641. (executeInternal): Pass the reference of segment.
  7642. To add HTTP 1.1 persistent connection support(experimental)
  7643. * src/HttpRequestCommand.cc
  7644. (executeInternal): Disable keep alive if it is disabled by
  7645. configuration.
  7646. * src/Request.h
  7647. (keepAlive): New variable.
  7648. (isKeepAlive): New function.
  7649. (setKeepAlive): New function.
  7650. * src/pref.h
  7651. (PREF_HTTP_KEEP_ALIVE): New definition.
  7652. * src/HttpResponseCommand.cc
  7653. (executeInternal): Check the remote server supports keep alive.
  7654. * src/HttpConnection.cc
  7655. (createRequest): Send "Connection: close" only if keep alive is
  7656. disabled.
  7657. * src/main.cc
  7658. (main):
  7659. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  7660. To add max download speed limit:
  7661. * src/pref.h
  7662. (PREF_MAX_SPEED_LIMIT): New definition.
  7663. * src/PeerInteractionCommand.cc
  7664. (executeInternal): Added max download speed limit. Not tested yet.
  7665. * src/SegmentMan.h
  7666. (PeerStats): New type definition.
  7667. (peerStats): New variable.
  7668. (registerPeerStat): New function.
  7669. (FindPeerStat): New function object.
  7670. (getPeerStat): New function.
  7671. (calculateDownloadSpeed): New function.
  7672. * src/SpeedCalc.h: New class.
  7673. * src/SpeedCalc.cc: New class.
  7674. * src/main.cc
  7675. (main):
  7676. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  7677. download speed is not restricted).
  7678. * src/PeerStat.h: New class.
  7679. * src/SegmentMan.cc
  7680. (registerPeerStat): New function.
  7681. (calculateDownloadSpeed): New function.
  7682. * src/DownloadCommand.cc
  7683. (STARTUP_IDLE_TIME): New definition.
  7684. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  7685. downloadStart.
  7686. (~DownloadCommand): Call peerStat->downloadStop.
  7687. (executeInternal): Added download speed limitter. Rewritten lowest
  7688. speed limitter.
  7689. * src/HttpConnection.cc
  7690. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  7691. * src/AbstractCommand.cc
  7692. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  7693. Added hostname to the error message.
  7694. * src/ConsoleDownloadEngine.cc
  7695. (calculateStatistics): Initialize psize with dlSize.
  7696. * src/PieceMessage.cc
  7697. (receivedAction): Do not call peerInteraction->abortPiece here.
  7698. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  7699. * src/BitfieldMan.h
  7700. (clearAllUseBit): New function.
  7701. (setAllUseBit): New function.
  7702. * src/BitfieldMan.cc
  7703. (clearAllBit): Do not clear useBitfield here.
  7704. (clearAllUseBit): New function.
  7705. (setAllUseBit): New function.
  7706. * src/Piece.cc
  7707. (clearAllBlock): Call bitfield->clearAllUseBit().
  7708. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7709. To make filename URL-decoded:
  7710. * src/HttpResponseCommand.h: Updated doc.
  7711. * src/HttpResponseCommand.cc
  7712. (determinFilename): Made filename URL-decoded.
  7713. * src/FtpInitiateConnectionCommand.cc
  7714. (executeInternal): Made filename URL-decoded.
  7715. * src/Util.h (urldecode): New function.
  7716. * src/Util.cc (urldecode): New function.
  7717. To fix a bug that caused assertion failure in ares_strerror:
  7718. * src/NameResolver.cc (callback): Fixed the bug.
  7719. * Release 0.7.3
  7720. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. To add --seed-time and --seed-ratio command-line option:
  7722. * src/Option.h (getAsDouble): New function.
  7723. * src/Option.cc (getAsDouble): New function.
  7724. * src/SeedCheckCommand.h: New class.
  7725. * src/SeedCheckCommand.cc: New class.
  7726. * src/DownloadEngineFactory.cc
  7727. (SeedCheckCommand.h): Included.
  7728. (UnionSeedCriteria.h): Included.
  7729. (TimeSeedCriteria.h): Included.
  7730. (ShareRatioSeedCriteria.h): Included.
  7731. (newTorrentConsoleEngine): Added the processing of seed option.
  7732. * src/SeedCriteria.h: New class.
  7733. * src/ShareRatioSeedCriteria.h: New class.
  7734. * src/TimeSeedCriteria.h: New class.
  7735. * src/UnionSeedCriteria.h: New class.
  7736. * src/prefs.h
  7737. (PREF_SEED_TIME): New definition.
  7738. (PREF_SEED_RATIO): New definition.
  7739. * src/main.cc
  7740. (showUsage): Added --seed-time and --seed-ratio option.
  7741. (main): Added --seed-time and --seed-ratio option.
  7742. Made default log file name "/dev/null".
  7743. * src/SharedHandle.h
  7744. (SharedHandle): Copy constructor. Made it assignable from the
  7745. SharedHandle of the subclasses.
  7746. (operator=): Made it assignable from the SharedHandle of the
  7747. subclasses.
  7748. (getRefCount): New function.
  7749. To add notice log level and the switch to write log to stdout. This
  7750. switch is configurable per log level.
  7751. * src/Logger.h
  7752. (notice): New function.
  7753. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  7754. constant.
  7755. * src/LogFactory.cc
  7756. (getInstance): The use of NullLogger was removed. A log message with
  7757. notice log level was made written to stdout along with log file.
  7758. * src/NullLogger.h
  7759. (notice): New function.
  7760. * src/SimpleLogger.h
  7761. (writeHeader): Added the 'file' argument.
  7762. (writeLog): Added the 'file' argument.
  7763. (writeFile): New function.
  7764. (stdoutField): New variable.
  7765. (SimpleLogger): Removed the default constructor.
  7766. (SimpleLogger): Made the default value of logfile 0.
  7767. (debug): Added 'virtual' keyword.
  7768. (info): Added 'virtual' keyword.
  7769. (warn): Added 'virtual' keyword.
  7770. (error): Added 'virtual' keyword.
  7771. (notice): New function.
  7772. (setStdout): New function.
  7773. * src/SimpleLogger.cc
  7774. (WRITE_LOG): Replaced writeLog with writeFile.
  7775. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  7776. (SimpleLogger): Removed the default constructor.
  7777. (setStdout): New function.
  7778. (writeLog): Added the handling of NOTICE log level.
  7779. (writeFile): New function.
  7780. (notice): New function.
  7781. * src/TorrentMan.h: Updated doc.
  7782. * src/BitfieldMan.h: Updated doc.
  7783. * src/TrackerWatcherCommand.cc
  7784. (execute): Return true if error occurred in the request to the tracker
  7785. and halt is requested.
  7786. * src/TrackerUpdateCommand.cc
  7787. (execute): Return true if error occurred in the request to the tracker
  7788. and halt is requested.
  7789. To call onDownloadComplete from TorrentMan::completePiece(), not from
  7790. DownloadEngine:
  7791. * src/TorrentConsoleDownloadEngine.h
  7792. (onSelectiveDownloadingCompletes): Removed.
  7793. * src/TorrentConsoleDownloadEngine.cc
  7794. (onSelectiveDownloadingCompletes): Removed.
  7795. * src/TorrentDownloadEngine.h
  7796. (onEndOfRun): Added 'virtual' keyword.
  7797. (afterEachIteration): Removed.
  7798. (onSelectiveDownloadingCompletes): Removed.
  7799. * src/TorrentDownloadEngine.cc
  7800. (onEndOfRun): Removed filenameFixed.
  7801. (afterEachIteration): Removed.
  7802. * src/TorrentMan.cc
  7803. (completePiece): Call onDownloadComplete here.
  7804. (onDownloadComplete): Added 2 log messages.
  7805. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  7807. * src/NameResolver.h: Added the prototype declaration of callback().
  7808. To support c-ares library:
  7809. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7810. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7811. * src/FtpInitiateConnectionCommand.h:
  7812. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7813. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7814. * src/HttpInitiateConnectionCommand.h:
  7815. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7816. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  7817. Added thes upport of c-ares's ares_strerror(the idea came from patch
  7818. #1542285 by tizianomueller)
  7819. * src/HttpInitiateConnectionCommand.cc:
  7820. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7821. * src/FtpInitiateConnectionCommand.cc:
  7822. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7823. * src/DownloadEngine.h:
  7824. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7825. * src/DownloadEngine.cc:
  7826. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7827. To fix the bug that causes compilation failure with metalink-support
  7828. disabled(bug#1543587):
  7829. * src/main.cc: Fixed with the patch by tizianomueller.
  7830. * Release 0.7.2
  7831. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. * src/main.cc
  7833. (main): Added a message to inform users that aria2 is starting to
  7834. verify checksum.
  7835. * src/RequestInfo.cc
  7836. (printDownloadAbortMessage): Added a message to inform users that
  7837. transfer can be resumed.
  7838. * src/FeatureConfig.cc
  7839. (FEATURE_ASYNC_DNS): New definition.
  7840. (FeatureConfig): Added aysnc DNS entry.
  7841. To replace CommandUuid with Command* in SocketEntry and
  7842. NameResolverEntry:
  7843. * src/DownloadEngine.h
  7844. (CommandUuids): Removed.
  7845. (SocketEntry::commandUuid): Removed.
  7846. (SocketEntry::command): New variable.
  7847. (SocketEntry::SocketEntry): Updated.
  7848. (SocketEntry::operator==): Updated.
  7849. (NameResolverEntry::commandUuid): Removed.
  7850. (NameResolverEntry::command): New variable.
  7851. (NameResolverEntry::NameResolverEntry): Updated.
  7852. (NameResolverEntry::operator==): Updated.
  7853. (waitData): Changed the argument type.
  7854. (addSocketForReadCheck): Changed the argument type.
  7855. (deleteSocketForReadCheck): Changed the argument type.
  7856. (addSocketForWriteCheck): Changed the argument type.
  7857. (deleteSocketForWriteCheck): Changed the argument type.
  7858. (addNameResolverCheck): Changed the argument type.
  7859. (deleteNameResolverCheck): Changed the argument type.
  7860. * src/DownloadEngine.cc
  7861. (FindCommand): Removed.
  7862. (run): Removed activeUuid. Added activeCommands instead.
  7863. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  7864. (AccumulateActiveCommand): New function object.
  7865. (waitData): Use AccumulateActiveCommand.
  7866. (addSocketForReadCheck): Use Command instead of CommandUuid.
  7867. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  7868. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  7869. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  7870. (addNameResolverCheck): Use Command instead of CommandUuid.
  7871. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  7872. * src/AbstractCommand.cc
  7873. (disableReadCheckSocket): Updated according to the changes in
  7874. DownloadEngine.
  7875. (setReadCheckSocket): Updated according to the changes in
  7876. DownloadEngine.
  7877. (disableWriteCheckSocket): Updated according to the changes in
  7878. DownloadEngine.
  7879. (setWriteCheckSocket): Updated according to the changes in
  7880. DownloadEngine.
  7881. (setNameResolverCheck): Updated according to the changes in
  7882. DownloadEngine.
  7883. (disableNameResolverCheck): Updated according to the changes in
  7884. DownloadEngine.
  7885. * src/AbstractCommand.cc
  7886. (disableReadCheckSocket): Updated according to the changes in
  7887. DownloadEngine.
  7888. (setReadCheckSocket): Updated according to the changes in
  7889. DownloadEngine.
  7890. (disableWriteCheckSocket): Updated according to the changes in
  7891. DownloadEngine.
  7892. (setWriteCheckSocket): Updated according to the changes in
  7893. DownloadEngine.
  7894. * release 0.7.1
  7895. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. To handle the case where some BitTorrent tracker requires all letters
  7897. except for [A-Za-z0-9] is URL encoded.
  7898. * src/Util.h
  7899. (torrentUrlencode): New function.
  7900. * src/Util.cc
  7901. (ctype.h): Included.
  7902. (torrentUrlencode): New function.
  7903. * src/TrackerWatcherCommand.cc
  7904. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  7905. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. To add asynchronous DNS support(libares):
  7907. * src/AbstractCommand.h
  7908. (setNameResolverCheck): New function.
  7909. (disableNameResolverCheck): New function
  7910. (resolveHostname): New function.
  7911. * src/AbstractCommand.cc
  7912. (setNameResolverCheck): New function.
  7913. (disableNameResolverCheck): New function
  7914. (resolveHostname): New function.
  7915. * src/FtpInitiateConnectionCommand.h
  7916. (nameResolver): New function.
  7917. * src/FtpInitiateConnectionCommand.cc
  7918. (Util.h): Included.
  7919. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  7920. disableWriteCheckSocket.
  7921. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  7922. (executeInternal): Added async DNS support.
  7923. * src/HttpInitiateConnectionCommand.h
  7924. (nameResolver): New function.
  7925. * src/HttpInitiateConnectionCommand.cc
  7926. (DlRetryEx.h): Included.
  7927. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  7928. disableWriteCheckSocket.
  7929. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  7930. (executeInternal): Added async DNS support.
  7931. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  7932. by extern "C" declaration.
  7933. * src/NameResolver.cc: New class.
  7934. * src/Util.h:
  7935. (isNumberAndDotsNotation): New function
  7936. * src/Util.cc
  7937. (isNumberAndDotsNotation): New function.
  7938. * src/DownloadEngine.h
  7939. (NameResolver.h): Included.
  7940. (NameResolverEntry): New class.
  7941. (NameResolverEntries): New type definition.
  7942. (addNameResolverCheck): New function.
  7943. (deleteNameResolverCheck): New function.
  7944. * src/DownloadEngine.cc
  7945. (run): Initialize cp with 0.
  7946. (SetDescriptor::operator()): Added for NameResolverEntry.
  7947. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  7948. (waitData): Check nameResolver entries.
  7949. (updateFdSet): Update fds in nameResolver entries.
  7950. (addNameResolverCheck): New function.
  7951. (deleteNameResolverCheck): new function.
  7952. * src/PeerInteractionCommand.cc
  7953. (executeInternal): Fixed wrong socket handling.
  7954. * src/main.cc
  7955. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  7956. * src/Util.cc
  7957. (fileChecksum): Removed the call to ctx.digestReset().
  7958. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. * po/ru.po: Azamat sent me Russian translation.
  7960. * src/FtpNegotiateCommand.cc
  7961. (recvGreeting): Call disableWriteCheckSocket just after
  7962. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  7963. (recvRetr): Recognized status code 125 as a acceptable response code.
  7964. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  7965. case-insesitive filesystem(BUG#1531057).
  7966. * src/Time.h: Renamed as TimeA2.h.
  7967. * src/Time.cc: Renamed as TimeA2.cc.
  7968. * src/TimeA2.h: New class.
  7969. * src/TimeA2.cc: New class.
  7970. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  7971. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  7972. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  7973. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  7974. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  7975. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7976. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  7977. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  7978. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  7979. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7980. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  7981. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  7982. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  7983. * release 0.7.0
  7984. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. * src/PeerChokeCommand.h
  7986. (PeerChokeCommand): Rearranged the arguments.
  7987. * src/PeerChokeCommand.cc
  7988. (PeerChokeCommand): Rearranged the arguments.
  7989. * src/MetalinkEntry.h
  7990. (Checksum.h): Included.
  7991. (md5): Removed.
  7992. (sha1): Removed.
  7993. (checksum): New variable.
  7994. (operator=): Updated.
  7995. (check): Removed.
  7996. * src/prefs.h
  7997. (PREF_LOWEST_SPEED_LIMIT): New definition.
  7998. (PREF_FOLLOW_TORRENT): New definition.
  7999. (PREF_SELECT_FILE): New definition.
  8000. (PREF_FOLLOW_METALINK): New definition.
  8001. * src/MetalinkResource.h
  8002. (TYPE_HTTPS): Added to enum TYPE.
  8003. * src/TorrentMan.cc
  8004. (~TorrentMan): Rewritten.
  8005. * src/MultiDiskWriter.cc
  8006. (MultiDiskAdaptor): Updated according to the changes in
  8007. MessageDigestContext.
  8008. (~MultiDiskAdaptor): Updated according to the changes in
  8009. MessageDigestContext.
  8010. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8011. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8012. * src/Util.h
  8013. (fileChecksum): Updated according to the changes in
  8014. MessageDigestContext.
  8015. * src/Util.cc
  8016. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8017. (fileChecksum): Updated according to the changes in
  8018. MessageDigestContext.
  8019. * src/messageDigest.h: Rewritten.
  8020. * src/MetalinkEntry.cc
  8021. (check): Removed.
  8022. (Supported): Updated.
  8023. (dropUnsupportedResource): Fixed a memory leak.
  8024. * src/ShaVisitor.cc
  8025. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8026. (~ShaVisitor): Updated according to the changes in
  8027. MessageDigestContext.
  8028. (visit): Updated according to the changes in MessageDigestContext.
  8029. * src/main.cc
  8030. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8031. command-line option added.
  8032. * src/DownloadEngine.h
  8033. (SocketEntry): New class.
  8034. (SocketEntries): New definition.
  8035. (PairFind): Removed.
  8036. (SockCmdMap): Removed.
  8037. * src/DownloadEngine.cc
  8038. (DownloadEngine): Rewritten.
  8039. (~DownloadEngine): Rewritten.
  8040. (run): Renamed activeCommandUuids as activeUuids.
  8041. (SetDescriptor): Rewritten.
  8042. (AccumulateActiveCommandUuid): Removed.
  8043. (AccumulateActiveUuid): New function object.
  8044. (waitData): Rewritten.
  8045. (updateFdSet): Rewritten.
  8046. (addSocket): Rewritten.
  8047. (deleteSocket): Rewritten.
  8048. (addSocketForReadCheck): Rewritten.
  8049. (deleteSocketForReadCheck): Rewritten.
  8050. (addSocketForWriteCheck): Rewritten.
  8051. (deleteSocketForWriteCheck): Rewritten.
  8052. * src/Xml2MetalinkProcessor.cc
  8053. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8054. * src/DownloadCommand.cc
  8055. (executeInternal): Added the check routine for lowest speed limit.
  8056. * src/AbstractDiskWriter.cc
  8057. (AbstractDiskWriter): Updated according to the changes in
  8058. MessageDigestContext.
  8059. (~AbstractDiskWriter): Updated according to the changes in
  8060. MessageDigestContext.
  8061. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8062. * src/RequestInfo.h: New class.
  8063. * src/UrlRequestInfo.h: New class.
  8064. * src/UrlRequestInfo.cc: New class.
  8065. * src/TorrentRequestInfo.h: New class.
  8066. * src/TorrentRequestInfo.cc: New class.
  8067. * src/MetalinkRequestInfo.h: New class.
  8068. * src/MetalinkRequestInfo.cc: New class.
  8069. * src/Checksum.h: New class.
  8070. * src/DownloadEngineFactory.h: New class.
  8071. * src/DownloadEngineFactory.cc: New class.
  8072. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. * src/Option.h
  8074. (getAsBool): New function.
  8075. * src/Option.cc
  8076. (prefs.h): Included.
  8077. (defined): 0-length value is now recognized as undefined.
  8078. (getAsInt): Rewritten.
  8079. (getAsLLInt): Rewritten.
  8080. (getAsBool): New function.
  8081. * src/FeatureConfig.h: Rewritten.
  8082. * src/FeatureConfig.cc: Rewritten.
  8083. * src/prefs.h
  8084. (PREF_STDOUT_LOG): New definition.
  8085. (PREF_LOG): New definition.
  8086. (PREF_DIR): New definition.
  8087. (PREF_OUT): New definition.
  8088. (PREF_SPLIT): New definition.
  8089. (PREF_DAEMON): New definition.
  8090. (PREF_REFERER): New definition.
  8091. (PREF_TORRENT_FILE): New definition.
  8092. (PREF_LISTEN_PORT): New definition.
  8093. (PREF_METALINK_FILE): New definition.
  8094. (PREF_METALINK_VERSION): New definition.
  8095. (PREF_METALINK_LANGUAGE): New definition.
  8096. (PREF_METALINK_OS): New definition.
  8097. (PREF_METALINK_SERVERS): New definition.
  8098. * src/main.cc
  8099. (main): Following command-line parameters are now put into Option
  8100. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8101. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8102. metalinkLanguage, metalinkOs, metalinkServers
  8103. To fix the bug that aria2 can not handle http response header properly.
  8104. * src/HttpHeader.cc
  8105. (put): Made name lowercased.
  8106. (defined): Made name lowercased.
  8107. (getFirst): Made name lowercased.
  8108. (get): Made name lowercased.
  8109. (getFirstAsInt): Rewritten.
  8110. (getFirstAsLLInt): Rewritten.
  8111. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. * src/TorrentMan.h:
  8113. (advertisePiece): Updated doc.
  8114. (getAdvertisedPieceIndexes): Updated doc.
  8115. (removeAdvertisedPiece); New function.
  8116. * src/TorrentMan.cc
  8117. (FindElapsedHave): New function object.
  8118. (removeAdvertisedPiece): New function.
  8119. * src/HaveEraseCommand.h: New class.
  8120. * src/HaveEraseCommand.cc: New class.
  8121. * src/FeatureConfig.h: New class.
  8122. * src/FeatureConfig.cc: New class.
  8123. * src/Request.h
  8124. (defaultPorts): Removed.
  8125. * src/Request.cc
  8126. (FeatureConfig.h): Included.
  8127. (Request): Removed the statements related to defaultPorts.
  8128. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8129. A default port number is now retrieved from FeatureConfig.
  8130. * src/main.cc
  8131. (HaveEraseCommand.h): Included.
  8132. (showVersion): Added the output of feature list.
  8133. (main): Added HaveEraseCommand to command queue in BitTorrent
  8134. downloading.
  8135. * src/PeerInteractionCommand.h
  8136. (chokeCheckPoint): Commented out.
  8137. (periodicExecPoint): New variable.
  8138. * src/PeerInteractionCommand.cc
  8139. (executeInternal): Following methods are now called in at least every
  8140. 0.5 seconds to reduce CPU usage:
  8141. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8142. checkHave(), sendKeepAlive().
  8143. (checkLongTimePeerChoking): Commented out.
  8144. * src/BitfieldMan.h
  8145. (getNthBitIndex): Changed the method signature.
  8146. (getMissingIndexRandomly): Changed the method signature.
  8147. * src/BitfieldMan.cc
  8148. (getNthBitIndex): Rewritten
  8149. (getMissingIndexRandomly): Rewritten.
  8150. (hasMissingPiece): Rewritten.
  8151. (getMissingIndex): Refactored.
  8152. (getMissingUnusedIndex); Refactored.
  8153. (getMissingIndex): Refactored.
  8154. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. * src/PeerMessage.h
  8156. (Piece.h): Included.
  8157. (SharedHandle.h): Included.
  8158. (invalidate): New variable.
  8159. (uploading): New variable.
  8160. (isInvalidate): New function.
  8161. (isUploading): New function.
  8162. (onPush): New function.
  8163. (onChoked): New function.
  8164. (onCanceled): New function.
  8165. (onAbortPiece): New function.
  8166. (PeerMessageHandle): New type definition.
  8167. * src/PeerMessage.cc
  8168. (PeerMessage): Added the initialization for invalidate and uploading.
  8169. * src/CancelMessage.h
  8170. (CancelMessage): Rewritten.
  8171. * src/RejectMessage.h
  8172. (RejectMessage): Rewritten.
  8173. * src/Metalinker.h
  8174. (operator=): Defined.
  8175. * src/MetaEntry.h
  8176. (operator=): Defined.
  8177. * src/MetalinkResource.h
  8178. (operator=): Defined.
  8179. * src/AllowedFastMessage.h
  8180. (AllowedFastMessage): Rewritten.
  8181. * src/HandshakeMessage.h
  8182. (HandshakeMessage): New function(overload).
  8183. * src/HandshakeMessage.cc
  8184. (HandshakeMessage): Rewritten.
  8185. (init): New function.
  8186. * src/HaveMessage.h
  8187. (HaveMessage): Rewritten.
  8188. * src/Time.h
  8189. (operator=): Defined the function body here.
  8190. * src/Time.cc
  8191. (operator=): Removed.
  8192. * src/SocketCore.h
  8193. (operator==): Defined here.
  8194. (operator!=): Defined here.
  8195. (operator<): Defined here.
  8196. * src/SocketCore.cc
  8197. (operator==): Removed.
  8198. (operator<): Removed.
  8199. * src/BitfieldMan.h
  8200. (operator=): Defined the function body here.
  8201. * src/BitfieldMan.cc
  8202. (operator=): Removed.
  8203. * src/TorrentMan.h
  8204. (deleteErrorPeer): Removed.
  8205. (deleteUnusedPeer); New function.
  8206. * src/TorrentMan.cc
  8207. (addPeer): Call deleteUnusedPeer.
  8208. (deleteErrorPeer): Removed.
  8209. (deleteUnusedPeer): New function.
  8210. * src/PeerAbstractCommand.h
  8211. (setNoCheck): New function.
  8212. (noCheck): New variable.
  8213. * src/PeerAbstractCommand.cc
  8214. (PeerAbstractCommand): Added the initialization of noCheck.
  8215. (execute): Added a check for noCheck.
  8216. (setNoCheck): New function.
  8217. * src/Util.h
  8218. (stdio.h): Included.
  8219. * src/Util.cc
  8220. (unistd.h): Included.
  8221. * src/DefaultDiskWriter.cc
  8222. (unistd.h): Included.
  8223. * src/Peer.h
  8224. (operator==): Defined the function body here.
  8225. (operator!=): Defined the function body here.
  8226. * src/Peer.cc
  8227. (operator==): Removed.
  8228. (operator!=): Removed.
  8229. * src/Piece.h
  8230. (Piece): Defined the function body here(copy constructor).
  8231. (operator=): Defined the function body here.
  8232. (operator==): Defined the function body here.
  8233. * src/Piece.cc
  8234. (Piece): Removed(copy constructor).
  8235. (operator=): Removed.
  8236. (operator==): Removed.
  8237. * src/PeerMessageUtil.h
  8238. (ChokeMessage.h): Removed.
  8239. (UnchokeMessage.h): Removed.
  8240. (InterestedMessage.h): Removed.
  8241. (NotInterestedMessage.h): Removed.
  8242. (HaveMessage.h): Removed.
  8243. (BitfieldMessage.h): Removed.
  8244. (RequestMessage.h): Removed.
  8245. (CancelMessage.h): Removed.
  8246. (PieceMessage.h): Removed.
  8247. (HandshakeMessage.h): Removed.
  8248. (KeepAliveMessage.h): Removed.
  8249. (PortMessage.h): Removed.
  8250. (HaveAllMessage.h): Removed.
  8251. (HaveNoneMessage.h): Removed.
  8252. (PeerConnection.h): Removed.
  8253. (HandshakeMessage.h): Included.
  8254. * src/BitfieldMessage.h
  8255. (init): New function.
  8256. (BitfieldMessage): Rewritten.
  8257. (BitfieldMessage): New function(overload).
  8258. * src/RequestSlot.h
  8259. (operator=): Defined the function body here.
  8260. (operator==): Defined the function body here.
  8261. * src/RequestSlot.cc
  8262. (operator=): Removed.
  8263. (operator==): Removed.
  8264. To remove the dependency on the PeerMessage subclass from
  8265. PeerInteraction:
  8266. * src/PeerMessageFactory.h: New class.
  8267. * src/PeerMessageFactory.cc: New class.
  8268. * src/SimplePeerMessage.cc
  8269. (send): If invalidate is true then do nothing.
  8270. * src/PeerInteractionCommand.cc
  8271. (HandshakeMessage.h): Included.
  8272. (KeepAliveMessage.h): Included.
  8273. (ChokeMessage.h): Included.
  8274. (UnchokeMessage.h): Included.
  8275. (HaveMessage.h): Included.
  8276. (executeInternal): Call setNoCheck().
  8277. Removed setWriteCheckSocket(socket).
  8278. * src/PeerInteraction.h
  8279. (ChokeMessage.h): Removed.
  8280. (UnchokeMessage.h): Removed.
  8281. (InterestedMessage.h): Removed.
  8282. (NotInterestedMessage.h): Removed.
  8283. (HaveMessage.h): Removed.
  8284. (BitfieldMessage.h): Removed.
  8285. (RequestMessage.h): Removed.
  8286. (CancelMessage.h): Removed.
  8287. (PieceMessage.h): Removed.
  8288. (HandshakeMessage.h): Removed.
  8289. (KeepAliveMessage.h): Removed.
  8290. (PortMessage.h): Removed.
  8291. (HaveAllMessage.h): Removed.
  8292. (HaveNoneMessage.h): Removed.
  8293. (RejectMessage.h): Removed.
  8294. (AllowedFastMessage.h): Removed.
  8295. (SuggestPieceMessage.h): Removed.
  8296. (PeerMessageFactory.h): Included.
  8297. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8298. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8299. (PeerMessageFactory): New variable.
  8300. (createPeerMessage): Removed.
  8301. (createHandshakeMessage): Removed.
  8302. (setPeerMessageCommonProperty): Removed.
  8303. (addRequestSlot): New function.
  8304. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8305. (getPeerMessageFactory): New function.
  8306. (createRequestMessage): Removed.
  8307. (createCancelMessage): Removed.
  8308. (createPieceMessage): Removed.
  8309. (createHaveMessage): Removed.
  8310. (createChokeMessage): Removed.
  8311. (createUnchokeMessage): Removed.
  8312. (createInterestedMessage): Removed.
  8313. (createNotInterestedMessage): Removed.
  8314. (createBitfieldMessage): Removed.
  8315. (createKeepAliveMessage): Removed.
  8316. (createHaveAllMessage): Removed.
  8317. (createHaveNoneMessage): Removed.
  8318. (createRejectMessage): Removed.
  8319. (createAllowedFastMessage): Removed.
  8320. * src/PeerInteraction.cc
  8321. (PeerInteraction): Allocate PeerMessageFactory here.
  8322. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8323. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8324. PieceMessage::ID.
  8325. (addMessage): Simplified by using PeerMessage::onPush().
  8326. (addRequestSlot): New function.
  8327. (rejectAllPieceMessageInQueue): Simplified by using
  8328. PeerMessage::onChoked().
  8329. (rejectPieceMessageInQueue): Simplified by using
  8330. PeerMessage::onCanceled().
  8331. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8332. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8333. (createHandshakeMessage): Removed.
  8334. (createPeerMessage): Removed.
  8335. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8336. (setPeerMessageCommonProperty): Removed.
  8337. (createRequestMessage): Removed.
  8338. (createCancelMessage): Removed.
  8339. (createPieceMessage): Removed.
  8340. (createHaveMessage): Removed.
  8341. (createChokeMessage): Removed.
  8342. (createUnchokeMessage): Removed.
  8343. (createInterestedMessage): Removed.
  8344. (createNotInterestedMessage): Removed.
  8345. (createBitfieldMessage): Removed.
  8346. (createKeepAliveMessage): Removed.
  8347. (createHaveAllMessage): Removed.
  8348. (createHaveNoneMessage): Removed.
  8349. (createRejectMessage): Removed.
  8350. (createAllowedFastMessage): Removed.
  8351. * src/PieceMessage.h
  8352. (createRejectMessage): New function.
  8353. (PieceMessage): Rewritten.
  8354. (onChoked): New function.
  8355. (onCanceled): New function.
  8356. * src/PieceMessage.cc
  8357. (send): If invalidate is true then do nothing, just return.
  8358. (createRejectMessage): New function.
  8359. (onChoked): New function.
  8360. (onCanceled): New function.
  8361. * src/RequestMessage.h
  8362. (RequestMessage): Rewritten.
  8363. (onPush): New function.
  8364. (onAbortPiece): New function.
  8365. * src/RequestMessage.cc
  8366. (onPush): New function.
  8367. (onAbortPiece): New function.
  8368. Update fd_set when a socket is added or deleted in order to improve
  8369. performance:
  8370. * src/DownloadEngine.h
  8371. (rfdset): New variable.
  8372. (wfdset): New variable.
  8373. (updateFdSet): New function.
  8374. * src/DownloadEngine.cc
  8375. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8376. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8377. (waitData): Copy rfdset and wfdset.
  8378. (updateFdSet): New function.
  8379. (addSocket): Call updateFdSet.
  8380. (deleteSocket): Call updateFdSet.
  8381. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. To add the support for Metalink3.0 backward compatible links:
  8383. * src/Request.h
  8384. (SAFE_CHARS): Added '#'.
  8385. (METALINK_MARK): New definition.
  8386. * src/Request.cc
  8387. (parseUrl): Added the support for Metalink3.0 backward compatible
  8388. links.
  8389. etc
  8390. * src/PeerInteraction.cc
  8391. (MsgPushBack): Removed.
  8392. (sendMessages): Use STL copy and back_inserter.
  8393. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8394. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8395. * src/TorrentMan.h
  8396. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8397. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. * src/SharedHandle.h: New class.
  8399. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8400. * src/HttpResponseCommand.h
  8401. (HttpResponseCommand): Wrapped Socket.
  8402. * src/SocketCore.h
  8403. (operator==): New function.
  8404. (operator!=): New function.
  8405. (operator<): New function.
  8406. (getSockfd): New function.
  8407. (isOpen): New function.
  8408. (writeData): New function.
  8409. * src/SocketCore.cc
  8410. (operator==): New function.
  8411. (operator!=): New function.
  8412. (operator<): New function.
  8413. * src/AbstractCommand.h
  8414. (socket): Changed its type to SocketHandle.
  8415. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8416. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8417. (disableReadCheckSocket): New function.
  8418. (disableWriteCheckSocket): New function.
  8419. (readCheckTarget): Changed its type to SocketHandle.
  8420. (writeCheckTarget): Changed its type to SocketHandle.
  8421. (AbstractCommand): Replaced Socket with SocketHandle.
  8422. * src/AbstractCommand.cc
  8423. (AbstractCommand): Replaced Socket with SocketHandle.
  8424. (~AbstractCommand): Removed the deallocation for Socket object.
  8425. (disableReadCheckSocket): New function.
  8426. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8427. (disableWriteCheckSocket): New function.
  8428. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8429. * src/HttpDownloadCommand.cc
  8430. (DownloadCommand): Replaced Socket with SocketHandle.
  8431. * src/PeerAbstractCommand.h
  8432. (socket): Changed its type to SocketHandle.
  8433. (peer): Changed its type to PeerHandle.
  8434. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8435. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8436. (disableReadCheckSocket): New function.
  8437. (disableWriteCheckSocket): New function.
  8438. (readCheckTarget): Changed its type to SocketHandle.
  8439. (writeCheckTarget): Changed its type to SocketHandle.
  8440. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8441. Replaced Peer with PeerHandle.
  8442. * src/HttpRequestCommand.cc
  8443. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8444. Use disableReadCheckSocket.
  8445. * src/PeerInitiateConnectionCommand.h
  8446. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8447. * src/PeerChokeCommand.cc
  8448. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  8449. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  8450. (execute): Use PeerHandle.
  8451. * src/PeerConnection.h
  8452. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  8453. (socket): Changed its type to SocketHandle.
  8454. (PeerConnection): Replaced Socket with SocketHandle.
  8455. * src/PeerConnection.cc
  8456. (PeerConnection): Replaced Socket with SocketHandle.
  8457. * src/PeerInteractionCommand.h
  8458. (PeerInteractionCommand): Replaced socket with SocketHandle.
  8459. Replaced Peer with PeerHandle.
  8460. * src/PeerInteractionCommand.cc
  8461. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  8462. Replaced Peer with PeerHandle.
  8463. (executeInternal): Use disableWriteCheckSocket.
  8464. Use HandshakeMessageHandle.
  8465. (receiveMessages): Use PeerMessageHandle.
  8466. (prepareForNextPeer): Use PeerHandle.
  8467. * src/HttpProxyRequestCommand.h
  8468. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8469. * src/HttpResponseCommand.cc
  8470. (HttpResponseCommand): Replaced Socket with SocketHandle.
  8471. * src/TorrentMan.cc
  8472. (nullPeer): Added external reference.
  8473. (~TorrentMan): Removed the deallocation of the elements of peers.
  8474. (addPeer): Rewritten.
  8475. (isPeerAvailable): Use nullPeer.
  8476. (deleteOldpeers): Replaced with deleteErrorPeer.
  8477. (deleteErrorPeer): New function.
  8478. (getPeer): Use PeerHandle and nullPeer.
  8479. (hasMissingPiece): Replaced Peer with PeerHandle.
  8480. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8481. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8482. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8483. (getMissingPiece): Replaced Peer with PeerHandle.
  8484. * src/FtpNegotiateCommand.cc
  8485. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  8486. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  8487. (recvGreeting): Use disableWriteCheckSocket.
  8488. (recvPasv): Removed the allocation of Socket.
  8489. Use disableReadCheckSocket.
  8490. (sendRestPasv): Use disableWriteCheckSocket.
  8491. (recvRetr): Changed assertion.
  8492. * src/PeerInteraction.h
  8493. (SharedHandle.h): Included SharedHandle.h.
  8494. (PeerMessageHandle): New type definition.
  8495. (HandshakeMessageHandle): New type definition.
  8496. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  8497. (peer): Changed its type to PeerHandle.
  8498. (createHandshakeMessage): Replaced HandshakeMessage with
  8499. HandshakeMessageHandle.
  8500. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  8501. (PeerInteraction): Replaced Peer with PeerHandle.
  8502. Replaced Socket with SocketHandle.
  8503. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8504. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8505. (receiveHandshake): Replaced HandshakeMessage with
  8506. HandshakeMessageHandle.
  8507. * src/PeerInteraction.cc
  8508. (PeerInteraction): Replaced Peer with PeerHandle.
  8509. Replaced Socket with SocketHandle.
  8510. (~PeerInteraction): Removed the deallocation of the elements of
  8511. messageQueue.
  8512. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  8513. (isSendingMessageInProgress): Replaced PeerMessage with
  8514. PeerMessageHandle.
  8515. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  8516. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8517. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  8518. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  8519. (abortPiece): Use PeerMessageHandle.
  8520. (receiveHandshake): Replaced HandshakeMessage with
  8521. HandshakeMessageHandle. Removed try-catch block.
  8522. (createHandshakeMessage): Replaced HandshakeMessage with
  8523. HandshakeMessageHandle.
  8524. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8525. Removed try-catch block.
  8526. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  8527. * src/HttpProxyResponseCommand.cc
  8528. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8529. * src/FtpTunnelResponseCommand.h
  8530. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8531. * src/HttpConnection.cc
  8532. (HttpConnection): Replaced Socket with SocketHandle.
  8533. * src/PeerAbstractCommand.cc
  8534. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8535. (~PeerAbstractCommand): Removed the deallocation of socket.
  8536. Use disableReadCheckSocket, disableWriteCheckSocket.
  8537. (disableReadCheckSocket): New function.
  8538. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8539. (disableWriteCheckSocket): New function.
  8540. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8541. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  8542. * src/FtpTunnelRequestCommand.cc
  8543. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8544. (~FtpTunnelRequestCommand): Corrected indentation.
  8545. * src/DownloadCommand.h
  8546. (DownloadCommand): Replaced Socket with SocketHandle.
  8547. * src/PeerListenCommand.cc
  8548. (PeerListenCommand): Removed the initialization of socket.
  8549. (~PeerListenCommand): Removed the deallocation of socket.
  8550. (bindPort): Use SocketHandle.
  8551. (execute): Use SocketHandle and PeerHandle.
  8552. * src/FtpDowndloadCommand.cc
  8553. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8554. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  8555. * src/main.cc
  8556. (main): Corrected indentation.
  8557. * src/HttpInitiateConnectionCommand.cc
  8558. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  8559. (executeInternal): Removed the allocation of socket.
  8560. * src/HttpRequestCommand.h
  8561. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8562. * src/FtpNegotiationCommand.h
  8563. (dataSocket): Changed its type to SocketHandle.
  8564. (serverSocket): Changed its type to SocketHandle.
  8565. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  8566. * src/TorrentMan.h
  8567. (MAX_PEER_UPDATE): Removed.
  8568. (MAX_PEERS): New definition.
  8569. (Peers): The element is now of type PeerHandle.
  8570. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  8571. (getPeer): Replaced Peer with PeerHandle.
  8572. (deleteOldErrorPeers): Removed.
  8573. (deleteErrorPeer): New function.
  8574. (hasMissingPiece): Replaced Peer with PeerHandle.
  8575. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8576. (getMissingPiece): Replaced Peer with PeerHandle.
  8577. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8578. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8579. (addActivePeer): Replaced Peer with PeerHandle.
  8580. (deleteActivePeer): Replaced Peer with PeerHandle.
  8581. Added a check for the return value of find.
  8582. * src/FtpTunnelResponseCommand.cc
  8583. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8584. * src/FtpInitiateConnectionCommand.cc
  8585. (executeInternal): Removed the allocation of socket.
  8586. * src/DownloadEngine.h
  8587. (Sockets): An element is now of type SocketHandle.
  8588. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  8589. (CommandUuids): New type definition.
  8590. (rsockets): Changed its type to SockCmdMap.
  8591. (wsockets): Changed its type to SockCmdMap.
  8592. (addSocket): Rewritten.
  8593. (deleteSocket): Rewritten.
  8594. (addSocketForReadCheck): Rewritten.
  8595. (deleteSocketForReadCheck): Rewritten.
  8596. (addSocketForWriteCheck): Rewritten.
  8597. (deleteSocketForWriteCheck): Rewritten.
  8598. (PairFind): New template class.
  8599. * src/HttpDownloadCommand.h
  8600. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  8601. * src/FtpConnection.cc
  8602. (FtpConnection): Replaced Socket with SocketHandle.
  8603. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  8604. block.
  8605. * src/InitiateConnectionCommandFactory.cc
  8606. (DlAbortEx.h): Included DlAbortEx.h.
  8607. (createInitiateConnectionCommand): Throw exception if the protocol of
  8608. requested URI is not supported.
  8609. * src/Peer.cc
  8610. (nullPeer): Changed its type to PeerHandle.
  8611. (operator==): New function.
  8612. (operator!=): New function.
  8613. * src/Peer.h
  8614. (SharedHandle.h): Included SharedHandle.h.
  8615. (operator==): New function.
  8616. (operator!=): New function.
  8617. (Peer): Added the default constructor.
  8618. Use resetStatus() to initialize member variables.
  8619. (nullPeer): Removed.
  8620. * src/TrackerUpdateCommand.cc
  8621. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  8622. with MIN_PEERS.
  8623. * src/PeerListenCommand.h
  8624. (socket): Changed its type to SocketHandle.
  8625. * src/Command.h
  8626. (CommandUuid): New type definition.
  8627. (uuid): New variable.
  8628. (uuidGen): New variable.
  8629. (Command): Added the initialization of uuid.
  8630. (getUuid): New function.
  8631. * src/Socket.h
  8632. (Socket): Removed.
  8633. (SocketHandle): New type definition.
  8634. * src/DownloadEngine.h
  8635. (FindCommand): New function object.
  8636. (run): The portion of socket check was rewritten.
  8637. (SetDescriptor): New function object.
  8638. (AccumulateActiveCommandUuid): New function object.
  8639. (waitData): Rewritten.
  8640. (addSocket): Rewritten.
  8641. (deleteSocket): Rewritten.
  8642. (addSocketForReadCheck): Rewritten.
  8643. (addSocketForWriteCheck): Rewritten.
  8644. (deleteSocketForReadCheck): Rewritten.
  8645. (deleteSocketForWriteCheck): Rewritten.
  8646. * src/HttpProxyResponseCommand.h
  8647. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  8648. * src/HttpConnection.h
  8649. (socket): Changed its type to SocketHandle.
  8650. (HttpConnection): Replaced Socket with SocketHandle.
  8651. * src/PeerInitiateConnectionCommand.cc
  8652. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8653. (executeInternal): Removed the allocation of socket.
  8654. (prepareForNextPeer): Use PeerHandle.
  8655. * src/PeerMessage.h
  8656. (peer): Changed its type to PeerHandle.
  8657. (getPeer): Replaced Peer with PeerHandle.
  8658. (setPeer): Replaced Peer with PeerHandle.
  8659. * src/DownloadCommand.cc
  8660. (DownloadCommand): Replaced Socket with SocketHandle.
  8661. * src/FtpConnection.h
  8662. (socket): Changed its type to SocketHandle.
  8663. (FtpConnection): Replaced Socket with SocketHandle.
  8664. (sendPort); Replaced Socket with SocketHandle.
  8665. * src/FtpDowndloadCommand.h
  8666. (ctrlSocket): Changed its type to SocketHandle.
  8667. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8668. * src/HttpProxyRequestCommand.cc
  8669. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8670. * src/FtpTunnelRequestCommand.h
  8671. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8672. etc
  8673. * src/PeerChokeCommand.h
  8674. (setAllPeerChoked): Removed.
  8675. (setAllPeerResetDelta): Removed.
  8676. * src/PeerChokeCommand.cc
  8677. (setAllPeerChoked): Removed.
  8678. (ChokePeer): New function object.
  8679. (setAllPeerResetDelta): Removed.
  8680. (ResetDelta): New function object.
  8681. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  8682. (execute): Show download speed when the local node is a seeder.
  8683. setAllPeerChoked and setAllPeerResetDelta were rewritten
  8684. using STL.
  8685. * src/TrackerWatcherCommand.h
  8686. (MIN_PEERS): Removed.
  8687. * src/TorrentMan.cc
  8688. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  8689. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8690. To fix the bug that .aria2 file is not saved if downloading is stopped
  8691. by the errors:it results that aria2 can not resume downloading:
  8692. * src/main.cc
  8693. (normalDownload): Added the call to save().
  8694. (main): Added the deletion of the elements in 'reserved'.
  8695. To fix log:
  8696. * src/PeerInteraction.cc
  8697. (receiveHandshake): Fixed log.
  8698. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. To improve download performance in BitTorrent:
  8700. * src/TorrentMan.cc
  8701. (getPeer): Check the number of connections. Return nullPeer if
  8702. it is greater than MAX_PEER_UPDATE.
  8703. This code was originally here, but was removed in 0.5.1.
  8704. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. To improve the conditional compilation:
  8706. * src/MultiDiskWriter.h:
  8707. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8708. * src/MultiDiskWriter.cc:
  8709. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8710. * src/Util.h:
  8711. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8712. Added ENABLE_BITTORRENT around computeFastSet().
  8713. * src/Util.cc:
  8714. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8715. Added ENABLE_BITTORRENT around computeFastSet().
  8716. * src/messageDigest.h:
  8717. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  8718. * src/ShaVisitor.h:
  8719. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8720. * src/ShaVisitor.cc:
  8721. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8722. * src/main.cc:
  8723. Added ENABLE_BITTORRENT around includes and blocks related to
  8724. BitTorrent.
  8725. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  8726. digest support is not available.
  8727. * src/AbstractDiskWriter.h:
  8728. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8729. * src/AbstractDiskWriter.cc:
  8730. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8731. * src/MetalinkEntry.cc
  8732. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  8733. support is not available.
  8734. To add command-line options for Metalink:
  8735. * src/main.cc:
  8736. Added metalink-version, metalink-language, metalink-os,
  8737. follow-metalink.
  8738. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  8739. * src/main.cc: Use these definition.
  8740. * Release 0.6.0
  8741. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. To add Metalink support(http/ftp only):
  8743. * src/AbstractCommand.h
  8744. (tryReserved): New function.
  8745. * src/AbstractCommand.cc
  8746. (execute): Call tryReserved().
  8747. (tryReserved): New function.
  8748. * src/Request.h
  8749. (Requests): New type definition.
  8750. * src/SegmentMan.h
  8751. (reserved): New variable.
  8752. * src/Util.h
  8753. (fileChecksum): New function.
  8754. (toUpper): New function.
  8755. (toLower): New function.
  8756. * src/Util.cc
  8757. (messageDigest.h): Included.
  8758. (trim): Trim \r\n\t.
  8759. (fileChecksum): New function.
  8760. (toUpper): New function.
  8761. (toLower): New function.
  8762. * src/main.cc
  8763. (normalDownload): New function.
  8764. (main): Added 2 command-line options: metalink-file,
  8765. metalink-connection. Their usage has not been written yet.
  8766. * src/MetalinkProcessor.h: New class.
  8767. * src/Xml2MetalinkProcessor.h: New class.
  8768. * src/Xml2MetalinkProcessor.cc: New class.
  8769. * src/MetalinkEntry.h: New class.
  8770. * src/MetalinkEntry.cc: New class.
  8771. * src/MetalinkResource.h: New class.
  8772. * src/MetalinkResource.cc: New class.
  8773. To add md5 message digest checking:
  8774. * src/messageDigest.h: Rewritten.
  8775. * src/MultiDiskWriter.cc: Updated according to the changes in
  8776. messageDigest.h.
  8777. * src/ShaVisitor.cc: Updated according to the changes in
  8778. messageDigest.h.
  8779. * src/Util.cc: Updated according to the changes in messageDigest.h.
  8780. * src/AbstractDiskWriter.cc: Updated according to the changes in
  8781. messageDigest.h.
  8782. To fix a bug that causes segfault when the payload length in peer
  8783. message is less than 0:
  8784. * src/PeerConnection.cc:
  8785. (receiveMessage): Fixed the bug.
  8786. * src/PeerMessageUtil.cc
  8787. (checkLength): Throw an exception if length is less than or equals to
  8788. 0.
  8789. To add new interfaces to Base64 encoding/decoding:
  8790. * src/Base64.h
  8791. (part_encode): Changed the method signature.
  8792. (encode): New function(overload).
  8793. (decode): New function(overload).
  8794. * src/Base64.cc
  8795. (part_encode): Rewritten.
  8796. (encode): Rewritten.
  8797. (encode): New function(overload).
  8798. To prevent a peer to download same piece if there is an error in
  8799. checksum:
  8800. * src/PieceMessage.cc
  8801. (receivedAction): Call peerInteraction->abortPiece().
  8802. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. To fix the bug that causes same have message is sent many times to
  8804. a single peer.
  8805. * src/Time.cc
  8806. (isNewer): Use Util::difftv().
  8807. * src/Util.cc
  8808. (difftv): Added a cast to (long long int).
  8809. * src/TorrentMan.cc
  8810. (advertisePiece): Use push_front.
  8811. (getAdvertisedPieceIndexes): A performance improvement was made.
  8812. To fix the bug that sends tracker requests without a sleep interval
  8813. when the number of connections is less than 15.
  8814. * src/TrackerWatcherCommand.cc
  8815. (execute): Now the number of connections is not a factor to decide
  8816. whether or not a tracker request should be sent or not.
  8817. * src/Time.h
  8818. (setTimeInSec): New function.
  8819. * src/Time.cc
  8820. (setTimeInSec): New function.
  8821. etc.
  8822. * src/ChokeMessage.cc
  8823. (receivedAction): Removed peer->snubbing = false
  8824. * src/PeerConnection.h
  8825. (receiveHandshake): Updated doc.
  8826. * src/TorrentMan.h
  8827. (getAdvertisedPieceIndexes): Updated the method signature.
  8828. * src/TorrentMan.cc
  8829. (getAdvertisedPieceIndexes): Updated the method signature.
  8830. * src/Time.h
  8831. (getTimeInMicros): Added a cast to (long long int).
  8832. (getTimeInMillis): Added a cast to (long long int).
  8833. * Release 0.5.2
  8834. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. To make a listening socket non-block:
  8836. * src/SocketCore.h
  8837. (setNonBlockingMode): New function.
  8838. * src/SocketCore.cc
  8839. (setNonBlockingMode): New function.
  8840. (beginListen): Added a call to setNonBlockingMode().
  8841. (acceptConnection): Call setNonBlockingMode().
  8842. (setBlockingMode): Updated.
  8843. To handle tracker's NAT-checking:
  8844. * src/PeerConnection.cc
  8845. (receiveHandshake): 'msg' param is filled with received data and
  8846. its length is assigned to 'length' param, even if all handshake
  8847. message is not yet received.
  8848. * src/PeerInteractionCommand.cc
  8849. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  8850. a new peer connects to localhost.
  8851. A call to peerInteraction->sendHandshake() was removed because
  8852. it is called from peerInteraction->receiveHandshake(true).
  8853. * src/PeerInteraction.h
  8854. (quickReplied): New variable.
  8855. (receiveHandshake): Added an argument.
  8856. * src/PeerInteraction.cc
  8857. (PeerInteraction): Added the initialization of quickReplied.
  8858. (receiveHandshake): Send handshake message as soon as the info hash
  8859. in a handshake message from a peer is correct.
  8860. To change the random part of peer id and key parameter:
  8861. * src/TorrentMan.h
  8862. (key): New variable.
  8863. * src/TorrentMan.cc
  8864. (setupInternal1): Use Util::randomAlpha() to generate random part
  8865. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  8866. key is also generated by Util::randomAlpha() and it is now 8 character
  8867. long.
  8868. * src/Util.h
  8869. (randomAlpha): New function.
  8870. * src/Util.cc
  8871. (randomAlpha): New function.
  8872. * src/TrackerWatcherCommand.cc
  8873. (execute): In a tracker request: Use torrentMan->key as key parameter.
  8874. Added no_peer_id=1.
  8875. Set snubbing flag to false when a choke message is received from a
  8876. snubbed peer.
  8877. * src/ChokeMessage.cc
  8878. (receivedAction): Set snubbing flag to false.
  8879. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8880. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  8881. * src/SimpleLogger.h (writeHeader): New function.
  8882. * src/SimpleLogger.cc (writeHeader): New function.
  8883. (writeLog): Fixed the bug that causes segfaults if exception message
  8884. contains an unescaped "%" character.
  8885. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  8886. when a tracker request fails.
  8887. * src/Request.cc (parseUrl): Query string is now handled properly.
  8888. * Release 0.5.1
  8889. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. To add Time class which represents a specific instant in time and
  8891. its precision is microseconds. Time checking procedures were rewritten
  8892. using this object.
  8893. * src/Time.h: New class.
  8894. * src/Time.cc: New class.
  8895. * src/AbstractCommand.h
  8896. (updateCheckPoint): Removed.
  8897. (isTimeoutDetected): Removed.
  8898. (checkPoint): Changed the type to Time.
  8899. (timeout): New variable.
  8900. (setTimeout): New function.
  8901. * src/AbstractCommand.cc
  8902. (AbstractCommand): Removed the initialization of checkPoint.
  8903. Added the initialization of timeout.
  8904. (updateCheckPoint): Removed.
  8905. (isTimeoutDetected): Removed.
  8906. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8907. * src/PeerChokeCommand.h
  8908. (checkPoint): Changed the type to Time.
  8909. * src/PeerChokeCommand.cc
  8910. (PeerChokeCommand): Removed the initialization of checkPoint.
  8911. (execute): Rewritten using Time object.
  8912. * src/TrackerWatcherCommand.h
  8913. (checkPoint): Changed the type to Time.
  8914. * src/TrackerWatcherCommand.cc
  8915. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  8916. (execute): Rewritten.
  8917. * src/ConsoleDownloadEngine.h
  8918. (cp): Changed the type to Time.
  8919. (startup): Changed the type to Time.
  8920. * src/ConsoleDownloadEngine.cc
  8921. (initStatistics): Use cp.reset(), startup.reset().
  8922. (calculateStatistics): Rewritten using Time object.
  8923. * src/PeerAbstractCommand.h
  8924. (updateCheckPoint): Removed.
  8925. (isTimeoutDetected): Removed.
  8926. (checkPoint): Changed the type to Time.
  8927. * src/PeerAbstractCommand.cc
  8928. (PeerAbstractCommand): Removed the initialization of checkPoint.
  8929. (updateCheckPoint): Removed.
  8930. (isTimeoutDetected): Removed.
  8931. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8932. * src/PeerInteractionCommand.cc
  8933. (PeerInteractionCommand): Removed the initializations of struct
  8934. timeval variables.
  8935. * src/PeerInteractionCommand.h
  8936. (keepAliveCheckPoint): Changed the type to Time.
  8937. (chokeCheckPoint): Changed the type to Time.
  8938. (freqCheckPoint): Changed the type to Time.
  8939. (haveCheckTime): Changed the type to Time.
  8940. * src/PeerInteractionCommand.cc
  8941. (executeInternal): Rewritten using Time object.
  8942. (detectMessageFlooding): Rewritten using Time object.
  8943. (checkLongTimePeerChoking): Rewritten using Time object.
  8944. (sendKeepAlive): Rewritten using Time object.
  8945. (checkHave): Rewritten using Time object.
  8946. * src/SleepCommand.h
  8947. (checkPoint): Changed the type to Time.
  8948. * src/SleepCommand.cc
  8949. (SleepCommand): Removed the initialization of checkPoint.
  8950. (execute): Rewritten using Time object.
  8951. * src/TorrentAutoSaveCommand.h
  8952. (checkPoint): Changed the type to Time.
  8953. * src/TorrentAutoSaveCommand.cc
  8954. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  8955. (execute): Rewritten.
  8956. * src/DownloadCommand.h
  8957. (sw): Changed the type to Time.
  8958. * src/DownloadCommand.cc
  8959. (DownloadCommand): Removed the initialization of sw.
  8960. (executeInternal): Rewritten.
  8961. * src/RequestSlot.h
  8962. (dispatchedTime): Changed the type to Time.
  8963. * src/RequestSlot.cc
  8964. (RequestSlot): Removed the call to setDispatchedTime().
  8965. (setDispatchedTime): Rewirtten.
  8966. (isTimeout): Rewritten.
  8967. (getLatencyInMillis): Rewritten.
  8968. * src/TorrentDownloadEngine.h
  8969. (cp): Changed the type to Time[2].
  8970. (startup): Changed the type to Time.
  8971. * src/TorrentDownloadEngine.cc
  8972. (initStatistics): Rewritten.
  8973. (calculateStatistics): Rewritten.
  8974. * src/DownloadEngine.cc
  8975. (run): Rewritten.
  8976. To detect all attempts to connect to the tracker are failed:
  8977. * src/AbstractCommand.cc
  8978. (execute): Increment e->segmentMan->errors if a command aborted.
  8979. * src/SegmentMan.h
  8980. (errors): New variable.
  8981. * src/SegmentMan.cc
  8982. (SegmentMan): Added the initialization of errors.
  8983. (init): Added the initialization of errors.
  8984. * src/TrackerWatcherCommand.cc
  8985. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  8986. request was failed.
  8987. To handle snubbed peers:
  8988. * src/PeerChokeCommand.cc
  8989. (optUnchokingPeer): Snubbed peers don't get unchoked.
  8990. (execute): Snubbed peers don't get unchoked.
  8991. * src/PeerInteraction.h
  8992. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  8993. * src/PeerInteraction.cc
  8994. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  8995. back the requested 16k block in 60 seconds.
  8996. * src/PieceMessage.cc
  8997. (receivedAction): A peer's snubbed state is cleard if it sends
  8998. the requested 16k block in 60 seconds.
  8999. * src/Peer.h
  9000. (snubbing): New variable.
  9001. * src/Peer.cc
  9002. (resetStatus): Added snubbed = false.
  9003. To fix the bug that causes have message is not sent:
  9004. * src/PeerInteractionCommand.cc
  9005. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9006. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9007. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9008. * src/TorrentMan.h
  9009. (HaveEntry): New class.
  9010. (advertisePiece): Rewritten.
  9011. (getAdvertisedPieceIndexes): Rewritten.
  9012. (Haves): Changed the type.
  9013. (getAdvertisedPieceIndexes): Added an argument.
  9014. Others:
  9015. * src/TorrentMan.h
  9016. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9017. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9018. * src/TorrentMan.cc
  9019. (getPeer): Don't check the number of connections here.
  9020. (setupInternal1): Changed peerId.
  9021. * src/PeerInteractionCommand.h
  9022. (KEEP_ALIVE_INTERVAL): New definition.
  9023. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9024. * src/main.cc
  9025. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9026. * src/DownloadEngine.h: Removed unnecessary header includes.
  9027. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. To fix the bug that causes segfaults if a tracker returns a zero-length
  9029. list as "peers":
  9030. * src/TrackerUpdateCommand.cc
  9031. (execute): Added a check to see wether the type of peers is Data*.
  9032. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. * Release 0.5.0
  9034. To fix compile issue with gcc3:
  9035. * src/CancelMessage.h
  9036. (ID): Renamed as ID_t
  9037. (ID_t): New enum.
  9038. * src/RejectMessage.h
  9039. (ID): Renamed as ID_t
  9040. (ID_t): New enum.
  9041. * src/SuggestPieceMessage.h
  9042. (ID): Renamed as ID_t
  9043. (ID_t): New enum.
  9044. * src/AllowedFastMessage.h
  9045. (ID): Renamed as ID_t
  9046. (ID_t): New enum.
  9047. * src/PortMessage.h
  9048. (ID): Renamed as ID_t
  9049. (ID_t): New enum.
  9050. * src/HaveNoneMessage.h
  9051. (ID): Renamed as ID_t
  9052. (ID_t): New enum.
  9053. * src/KeepAliveMessage.h
  9054. (ID): Renamed as ID_t
  9055. (ID_t): New enum.
  9056. * src/HaveAllMessage.h
  9057. (ID): Renamed as ID_t
  9058. (ID_t): New enum.
  9059. * src/UnchokeMessage.h
  9060. (ID): Renamed as ID_t
  9061. (ID_t): New enum.
  9062. * src/BitfieldMessage.h
  9063. (ID): Renamed as ID_t
  9064. (ID_t): New enum.
  9065. * src/PieceMessage.h
  9066. (ID): Renamed as ID_t
  9067. (ID_t): New enum.
  9068. * src/RequestMessage.h
  9069. (ID): Renamed as ID_t
  9070. (ID_t): New enum.
  9071. * src/NotInterestedMessage.h
  9072. (ID): Renamed as ID_t
  9073. (ID_t): New enum.
  9074. * src/ChokeMessage.h
  9075. (ID): Renamed as ID_t
  9076. (ID_t): New enum.
  9077. * src/InterestedMessage.h
  9078. (ID): Renamed as ID_t
  9079. (ID_t): New enum.
  9080. * src/HaveMessage.h
  9081. (ID): Renamed as ID_t
  9082. (ID_t): New enum.
  9083. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9084. * src/PeerAbstractCommand.h
  9085. (beforeSocketCheck): Removed.
  9086. * src/PeerAbstractCommand.cc
  9087. Modified in order to call executeInternal() even if socket check
  9088. and upload limit check fail.
  9089. * src/PeerInteractionCommand.h
  9090. (keepAlive): Removed.
  9091. (sendKeepAlive): New function.
  9092. (checkHave): New function.
  9093. (beforeSocketCheck): Removed.
  9094. * src/PeerInteractionCommand.cc
  9095. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9096. calls to checkHave() and sendKeepAlive().
  9097. (keepAlive): Renamed to sendKeepAlive().
  9098. (sendKeepAlive): New function.
  9099. (beforeSocketCheck): Removed.
  9100. (checkHave): New function.
  9101. * src/BitfieldMan.cc
  9102. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9103. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9104. 0.
  9105. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9106. * src/TorrentMan.h
  9107. (UsedPieces): Removed.
  9108. (Pieces): New type definition.
  9109. * src/Piece.h: Updated doc.
  9110. * src/Peer.h
  9111. (totalLength): Removed.
  9112. * src/Peer.cc
  9113. (updateLatency): Fixed the latency calculation.
  9114. * src/TorrentMan.cc
  9115. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9116. than or equal to MAX_PEER_LIST_SIZE.
  9117. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9118. then return false.
  9119. (deleteOldErrorPeers): Rewritten.
  9120. (deleteUsedPiece): Fixed the miss use of STL remove.
  9121. * src/PeerInteraction.h
  9122. (Pieces): Removed.
  9123. (deleteTimeoutRequestSlot): Removed.
  9124. (deleteCompletedRequestSlot): Removed.
  9125. (checkRequestSlot): New function.
  9126. * src/PeerInteraction.cc
  9127. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9128. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9129. (checkRequestSlot): New function.
  9130. * src/DownloadEngine.cc
  9131. (run): Clear activeSockets before calling waitData().
  9132. (waitData): Removed a call to activeSockets.clear().
  9133. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. To attempt to handle EINTR:
  9135. * src/SocketCore.cc
  9136. (isReadable): Added EINTR handling.
  9137. (isWritable): Added EINTR handling.
  9138. To improve the performance:
  9139. * src/AbstractCommand.cc
  9140. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9141. * src/PeerInteractionCommand.h
  9142. (receiveMessage): Renamed as receiveMessages().
  9143. (receiveMessages): New function.
  9144. * src/PeerInteractionCommand.cc
  9145. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9146. () function. detectMessageFlooding() is moved here.
  9147. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9148. (). The flooding detection for have message is comment out.
  9149. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9150. Util::difftv().
  9151. (receiveMessage): Renamed as receiveMessages().
  9152. (receiveMessages): New function.
  9153. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9154. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9155. * src/SleepCommand.cc
  9156. (execute): Use Util::difftvsec() instead of Util::difftv().
  9157. * src/BitfieldMan.h
  9158. (getNthBitIndex): New function.
  9159. (hasMissingPiece): New function.
  9160. (getAllMissingIndexes): New function.
  9161. * src/BitfieldMan.cc
  9162. (countSetBit): Rewritten.
  9163. (getNthBitIndex): New function.
  9164. (getMissingIndexRandomly): Rewritten.
  9165. (hasMissingPiece): New function.
  9166. (getAllMissingIndexes): New function.
  9167. * src/TorrentMan.cc
  9168. (hasMissingPiece): New function.
  9169. (deleteUsedPiece): Rewritten using STL.
  9170. * src/PeerInteraction.cc
  9171. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  9172. is a little bit faster then TorrentMan::getMissingPieceIndex().
  9173. (addRequests): Updated the number of pending requests.
  9174. * src/PeerAbstractCommand.cc
  9175. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9176. (execute): Returns true if TorrentMan::isHalt() is true.
  9177. Corrected the condition of upload limit checking.
  9178. * src/Util.h
  9179. (countBit): New function.
  9180. * src/Util.cc
  9181. (nbits): New variable.
  9182. (countBit): New function.
  9183. * src/DownloadEngine.h
  9184. (SockCmdMap): New type definition.
  9185. (waitData): Added an argument.
  9186. (addSocket): Added an argument.
  9187. (addSocketForReadCheck): Added an argument.
  9188. (addSocketForWriteCheck): Added an argument.
  9189. * src/DownloadEngine.cc
  9190. (run): Executes only commands whose sockets are ready to read or write.
  9191. All commands are executed in every 1 second.
  9192. (waitData): Calls select() again if it returned
  9193. EINTR.
  9194. (addSocket): Saves socket and command object pair to the map.
  9195. (deleteSocket): Deletes socket and command object pair from the map.
  9196. (addSocketForReadCheck): Added an argument.
  9197. (addSocketForWriteCheck): Added an argument.
  9198. * src/DownloadCommand.cc
  9199. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9200. To send "event=stopped" to the tracker when the application finishes:
  9201. * src/PeerChokeCommand.h
  9202. (checkPoint): New variable.
  9203. * src/PeerChokeCommand.cc
  9204. (PeerChokeCommand): Added the initialization of checkPoint.
  9205. (execute): The interval check is now done by checkPoint, not
  9206. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9207. * src/TorrentMan.h
  9208. (halt): New function.
  9209. (hasMissingPiece): New function.
  9210. (isHalt): New function.
  9211. (setHalt): New function.
  9212. * src/TorrentMan.cc
  9213. (TorrentMan): Added the initialization of halt.
  9214. * src/TorrentAutoSaveCommand.h
  9215. (checkPoint): New variable.
  9216. * src/PeerListenCommand.cc
  9217. (execute): Returns true if TorrentMan::isHalt() is true.
  9218. * src/main.cc
  9219. (setSignalHander): Added flags argument.
  9220. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9221. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9222. Removed printDownloadAbortMessage() after torrent downloading loop.
  9223. * src/TorrentAutoSaveCommand.cc
  9224. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9225. (execute): Returns true if TorrentMan::isHalt() is true.
  9226. The interval check is now done by checkPoint, not SleepCommand.
  9227. * src/TrackerWatcherCommand.cc
  9228. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9229. event=stopped.
  9230. * src/TrackerUpdateCommand.cc
  9231. (prepareForRetry): Do not use SleepCommand here.
  9232. (execute): Returns true if TorrentMan::isHalt() is true.
  9233. Others:
  9234. * src/TorrentMan.cc
  9235. (getMissingPieceIndex): Updated log message.
  9236. * src/PeerInteraction.cc
  9237. (createPeerMessag): Updated log message.
  9238. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. To add the ability to download several pieces in mix in a command and
  9240. increase the number of request slots according to request-cancel
  9241. latency:
  9242. * src/PeerInteractionCommand.cc
  9243. (executeInternal): The number of messages to be received at a time
  9244. is increased from 10 to 50.
  9245. * src/LogFactory
  9246. (getInstance): Added NullLogger.
  9247. * src/NullLogger.h: New class.
  9248. * src/BitfieldMan.h
  9249. (getMissingIndex): New function.
  9250. * src/BitfieldMan.cc
  9251. (getMissingIndex): New function.
  9252. * src/TorrentMan.h
  9253. (checkOutPiece): New function.
  9254. (getMissingPieceIndex): New function.
  9255. (getMissingFastPieceIndex): New function.
  9256. (getMissingFastPiece): New function.
  9257. * src/TorrentMan.cc
  9258. (updatePiece): Rewritten using STL.
  9259. (syncPiece): Rewritten using STL.
  9260. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9261. checkOutPiece().
  9262. (getMissingPieceIndex): New function.
  9263. (getMissingFastPieceIndex): New function.
  9264. (getMissingFastPiece): New function.
  9265. (checkOutPiece): New function.
  9266. * src/PeerInteraction.h
  9267. (Pieces): New type definition.
  9268. (piece): Removed.
  9269. (pieces): New variable.
  9270. (getNewPieceAndSendInterest): Added the "piece" argument.
  9271. (abortPiece): Added the "piece" argument.
  9272. (abortAllPieces): New function.
  9273. (isInRequestSlot): New function.
  9274. (hasDownloadPiece): Added the "index" argument.
  9275. (setDownloadPiece): Removed.
  9276. (getDownloadPiece): Added the "index" argument.
  9277. (updatePiece): New function.
  9278. (createRequestMessage): Added the "index" argument.
  9279. * src/PeerInteraction.cc
  9280. (onChoked): Rewritten.
  9281. (abortPiece): Rewirtten.
  9282. (abortAllPieces): New function.
  9283. (deleteTimeoutRequestSlot): Rewritten.
  9284. Clarified code a little bit.
  9285. (deleteCompletedRequestSlot): Rewritten.
  9286. (isInRequestSlot): New function.
  9287. (syncPiece): Rewritten.
  9288. (updatePiece): New function.
  9289. (getNewPieceAndSendInterest): Rewritten.
  9290. (addRequests): Rewritten.
  9291. (getDownloadPiece): Rewritten.
  9292. (hasDownloadPiece): Rewritten.
  9293. (createRequestMessage): Added the "index" argument.
  9294. * src/common.h
  9295. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9296. (DIV_FLOOR): New definition.
  9297. * src/PieceMessage.cc
  9298. (receivedAction): Update request-piece latency here.
  9299. * src/RequestSlot.h
  9300. (getLatencyInMillis): New function.
  9301. * src/RequestSlot.cc
  9302. (isTimeout): Rewritten using getLatencyInMillis.
  9303. (getLatencyInMillis): New function.
  9304. * src/Piece.h
  9305. (operator==): New function.
  9306. (getMissingBlockIndex): New function.
  9307. * src/Piece.cc
  9308. (operator==): New function.
  9309. (getMissingBlockIndex): New function.
  9310. * src/Peer.h
  9311. (DEFAULT_LATENCY): New definition.
  9312. (latency): New variable.
  9313. (updateLatency): New function.
  9314. (getLatency): New function.
  9315. * src/Peer.cc
  9316. (resetStatus): Reset latecy.
  9317. (updateLatency): New function.
  9318. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. * src/SocketCore.cc
  9320. (isReadable): Added secure to the condition.
  9321. * src/HttpConnection.cc
  9322. (receiveResponse): Fixed a bug that causes no response header
  9323. exception.
  9324. * src/Peer.h
  9325. (getFastSet): Fixed the return value type.
  9326. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. To remove a wait from download loop:
  9328. * src/DownloadEngine.cc
  9329. (run): Comment out shortSleep.
  9330. To rewrite the message handling:
  9331. * src/SimplePeerMessage.h: New class.
  9332. * src/SimplePeerMessage.cc: New class.
  9333. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9334. (msg): New variable.
  9335. (create): New function.
  9336. (send): Removed.
  9337. (getMessage): New function.
  9338. (getMessageLength): New function.
  9339. * src/CancelMessage.cc
  9340. (create): New function.
  9341. (receivedAction): Replaced deleteRequestMessageInQueue with
  9342. rejectPieceMessageInQueue.
  9343. (send): Removed.
  9344. (getMessage): New function.
  9345. (getMessageLength): New function.
  9346. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9347. (msg): New variable.
  9348. (msgLength): New variable.
  9349. (~BitfieldMessage): Deleted msg.
  9350. (send): Removed.
  9351. (getMessage): New function.
  9352. (getMessageLength): New function.
  9353. * src/BitfieldMessage.cc
  9354. (create): New function.
  9355. (send): Removed.
  9356. (getMessage): New function.
  9357. (getMessageLength): New function.
  9358. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9359. (msg): New variable.
  9360. (sendPredicate): New function.
  9361. (onSendComplete): New function.
  9362. (send): Removed.
  9363. (getMessage): New function.
  9364. (getMessageLength): New function.
  9365. (create): New function.
  9366. * src/ChokeMessage.cc
  9367. (create): New function.
  9368. (send): Removed.
  9369. (sendPredicate): New function.
  9370. (getMessage): New function.
  9371. (getMessageLength): New function.
  9372. (onSendComplete): New function.
  9373. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9374. (msg): New variable.
  9375. (send): Removed.
  9376. (getMessage): New function.
  9377. (getMessageLength): New function.
  9378. * src/KeepAliveMessage.cc
  9379. (send): Removed.
  9380. (getMessage): New function.
  9381. (getMessageLength): New function.
  9382. * src/PortMessage.h
  9383. (create): New function.
  9384. (receivedAction): Updated log message.
  9385. * src/PortMessage.cc: New file.
  9386. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9387. (msg): New variable.
  9388. (sendPredicate): New function.
  9389. (onSendComplete): New function.
  9390. (create): New function.
  9391. (send): Removed.
  9392. (getMessage): New function.
  9393. (getMessageLength): New function.
  9394. * src/UnchokeMessage.cc
  9395. (create): New function.
  9396. (send): Removed.
  9397. (sendPredicate): New function.
  9398. (getMessage): New function.
  9399. (getMessageLength): New function.
  9400. (onSendComplete): New function.
  9401. * src/PieceMessage.h
  9402. (leftPieceDataLength): Removed.
  9403. (leftDataLength): New variable.
  9404. (headerSend): New variable.
  9405. (pendingCount): New variable.
  9406. (msgHeader): New variable.
  9407. (sendPieceData): New function.
  9408. (incrementPendingCount): New function.
  9409. (isPendingCountMax): New function.
  9410. (create): New function.
  9411. (getMessageHeader): New function.
  9412. (getMessageHeaderLength): New function.
  9413. * src/PieceMessage.cc
  9414. (create): New function.
  9415. (getMessageHeader): New function.
  9416. (getMessageHeaderLength): New function.
  9417. (send): Rewritten.
  9418. (sendPieceData): New function.
  9419. * src/HaveMessage.h: Derived from SimplePeerMessage.
  9420. (msg): New variable.
  9421. (create): New function.
  9422. (getMessage): New function.
  9423. (getMessageLength): New function.
  9424. * src/HaveMessage.cc
  9425. (create): New function.
  9426. (send): Removed.
  9427. (sendPieceData): New function.
  9428. (getMessage): New function.
  9429. (getMessageLength): New function.
  9430. * src/RequestMessage.h: Derived from SimplePeerMessage.
  9431. (msg): New variable.
  9432. (create): New function.
  9433. (send): Removed.
  9434. (getMessage): New function.
  9435. (getMessageLength): New function.
  9436. * src/RequestMessage.cc
  9437. (create): New function.
  9438. (receivedAction): Added the handling of fast extension.
  9439. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  9440. (send): Removed.
  9441. (getMessage): New function.
  9442. (getMessageLength): New function.
  9443. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  9444. (msg): New variable.
  9445. (sendPredicate): New function.
  9446. (onSendComplete): New function.
  9447. (create): New function.
  9448. (getMessage): New function.
  9449. (getMessageLength): New function.
  9450. * src/InterestedMessage.cc
  9451. (create): New function.
  9452. (send): Removed.
  9453. (sendPieceData): New function.
  9454. (getMessage): New function.
  9455. (getMessageLength): New function.
  9456. (onSendComplete): New function.
  9457. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  9458. (msg): New variable.
  9459. (sendPieceData): New function.
  9460. (onSendComplete): New function.
  9461. (create): New function.
  9462. (send): Removed.
  9463. (getMessage): New function.
  9464. (getMessageLength): New function.
  9465. * src/NotInterestedMessage.cc
  9466. (create): New function.
  9467. (send): Removed.
  9468. (sendPredicate): New function.
  9469. (getMessage): New function.
  9470. (getMessageLength): New function.
  9471. (onSendComplete): New function.
  9472. * src/AllowedFastMessage.h: New class.
  9473. * src/AllowedFastMessage.cc: New class.
  9474. * src/RejectMessage.h: New class.
  9475. * src/RejectMessage.cc: New class.
  9476. * src/SuggestPieceMessage.h: New class.
  9477. * src/SuggestPieceMessage.cc: New class.
  9478. * src/HaveAllMessage.h: New class.
  9479. * src/HaveAllMessage.cc: New class.
  9480. * src/HaveNoneMessage.h: New class.
  9481. * src/HaveNoneMessage.cc: New class.
  9482. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  9483. (msg): New variable.
  9484. (reserved): New variable.
  9485. (create): New function.
  9486. (getId): New function.
  9487. (receivedAction): New function.
  9488. (getMessage): New function.
  9489. (getMessageLength): New function.
  9490. (isFastExtensionSupported): New function.
  9491. * src/HandshakeMessage.cc
  9492. (HandshakeMessage): Moved here from HandshakeMessage.h.
  9493. (create): New function.
  9494. (getMessage): New function.
  9495. (getMessageLength): New function.
  9496. (toString): Added the output of reserved field.
  9497. (check): Added const qualifier.
  9498. (isFastExtensionSupported): New function.
  9499. * src/PeerMessageUtil.h
  9500. (createChokeMessage): Removed.
  9501. (createUnchokeMessage): Removed.
  9502. (createInterestedMessage): Removed.
  9503. (createNotInterestedMessage): Removed.
  9504. (createHaveMessage): Removed.
  9505. (createBitfieldMessage): Removed.
  9506. (createRequestMessage): Removed.
  9507. (createCancelMessage): Removed.
  9508. (createPieceMessage): Removed.
  9509. (createPortMessage): Removed.
  9510. (createChokeMessage): Removed.
  9511. (createUnchokeMessage): Removed.
  9512. (createInterestedMessage): Removed.
  9513. (createNotInterestedMessage): Removed.
  9514. (createHaveMessage): Removed.
  9515. (createBitfieldMessage): Removed.
  9516. (createRequestMessage): Removed.
  9517. (createCancelMessage): Removed.
  9518. (createPieceMessage): Removed.
  9519. (createKeepAliveMessage): Removed.
  9520. (createHandshakeMessage): Removed.
  9521. (setIntParam): New function.
  9522. (createPeerMessageString): New function.
  9523. * src/PeerMessageUtil.cc
  9524. (createChokeMessage): Removed.
  9525. (createUnchokeMessage): Removed.
  9526. (createInterestedMessage): Removed.
  9527. (createNotInterestedMessage): Removed.
  9528. (createHaveMessage): Removed.
  9529. (createBitfieldMessage): Removed.
  9530. (createRequestMessage): Removed.
  9531. (createCancelMessage): Removed.
  9532. (createPieceMessage): Removed.
  9533. (createPortMessage): Removed.
  9534. (createRequestMessage): Removed.
  9535. (createCancelMessage): Removed.
  9536. (createPieceMessage): Removed.
  9537. (createHaveMessage): Removed.
  9538. (createChokeMessage): Removed.
  9539. (createUnchokeMessage): Removed.
  9540. (createInterestedMessage): Removed.
  9541. (createNotInterestedMessage): Removed.
  9542. (createBitfieldMessage): Removed.
  9543. (createKeepAliveMessage): Removed.
  9544. (createHandshakeMessage): Removed.
  9545. (setIntParam): New function.
  9546. (createPeerMessageString): New function.
  9547. * src/PeerConnection.h
  9548. (peer): Removed.
  9549. (torrentMan): Removed.
  9550. (createNLengthMessage): Removed.
  9551. (setIntParam): Removed.
  9552. (writeOutgoingMessageLog): Removed all overloaded functions.
  9553. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9554. (sendMessage): New function.
  9555. (sendHandshake): Removed.
  9556. (sendKeepAlive): Removed.
  9557. (sendChoke): Removed.
  9558. (sendUnchoke): Removed.
  9559. (sendInterested): Removed.
  9560. (sendNotInterested): Removed.
  9561. (sendHave): Removed.
  9562. (sendBitfield): Removed.
  9563. (sendRequest): Removed.
  9564. (sendPiece): Removed.
  9565. (sendPieceHeader): Removed.
  9566. (sendPieceData): Removed.
  9567. (sendCancel): Removed.
  9568. (getPeer): Removed.
  9569. * src/PeerConnection.cc
  9570. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9571. (sendHandshake): Removed.
  9572. (sendKeepAlive): Removed.
  9573. (createNLengthMessage): Removed.
  9574. (setIntParam): Removed.
  9575. (writeOutgoingMessageLog): Removed all overloaded functions.
  9576. (sendChoke): Removed.
  9577. (sendUnchoke): Removed.
  9578. (sendInterested): Removed.
  9579. (sendNotInterested): Removed.
  9580. (sendHave): Removed.
  9581. (sendBitfield): Removed.
  9582. (sendRequest): Removed.
  9583. (sendPiece): Removed.
  9584. (sendPieceHeader): Removed.
  9585. (sendPieceData): Removed.
  9586. (sendMessage): New function.
  9587. (sendCancel): Removed.
  9588. * src/PeerInteractionCommand.cc
  9589. (PeerInteractionCommand): Call setUploadLimit.
  9590. (executeInternal): Call setUploadLimit.
  9591. Added the handling of "inProgress" state of handshake message.
  9592. Call sendBitfield() or sendAllowdFast() instead of deprecated
  9593. sendNow().
  9594. (keepAlive): Call addMessage and sendMessage instead of deprecated
  9595. sendNow().
  9596. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  9597. * src/TorrentMan.h
  9598. (PEER_ID_LENGTH): New definition.
  9599. (hasAllPieces): New function.
  9600. * src/TorrentMan.cc
  9601. (getMissingPiece): Added the handling of fast extension.
  9602. (cancelPiece): Call updatePiece().
  9603. (hasAllPieces): New function.
  9604. * src/PeerInteraction.h
  9605. (fastSet): New variable.
  9606. (getNewPieceAndSendInterest): Changed the return type to void.
  9607. (send): Renamed as sendMessages.
  9608. (deleteAllRequestSlot): Removed.
  9609. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9610. (cancelAllRequest): Removed all overloaded functions.
  9611. (deleteAllRequestSlot): Removed.
  9612. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9613. (rejectPieceMessageInQueue): New function.
  9614. (rejectAllPieceMessageInQueue): New function.
  9615. (onChoked): New function.
  9616. (isSendingMessageInProgress): New function.
  9617. (getCorrespondingRequestSlot): Changed its arguments.
  9618. (isInFastSet): New function.
  9619. (addFastSetIndex): New function.
  9620. (addRequests): New function.
  9621. (sendNow): Removed.
  9622. (trySendNow): Removed.
  9623. (sendBitfield): New function.
  9624. (sendAllowdFast): New function.
  9625. (createHaveAllMessage): New function.
  9626. (createHaveNoneMessage): New function.
  9627. (createRejectMessage): New function.
  9628. (createAllowedFastMessage): New function.
  9629. * src/PeerInteraction.cc
  9630. (send): Renamed as sendMessages.
  9631. (sendMessages): New function.
  9632. (MsgPushBack): New class.
  9633. (isSendingMessageInProgress): New function.
  9634. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9635. (rejectAllPieceMessageInQueue): New function.
  9636. Added the handling of fast extension.
  9637. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9638. (rejectPieceMessageInQueue): New function.
  9639. Added the handling of fast extension.
  9640. (deleteRequestSlot): Replaced for loop with std::find.
  9641. (onChoked): New function.
  9642. (deleteAllRequestSlot): Removed.
  9643. (abortPiece): Rewirtten.
  9644. (deleteTimeoutRequestSlot): Updated log messages.
  9645. (getCorrespondingRequestSlot): Changed its arguments.
  9646. (cancelAllRequest): Removed all overloaded functions.
  9647. (receiveHandshake): Added the check to see whether an incoming peer
  9648. supports fast extension.
  9649. (createHandshakeMessage): Use HandshakeMessage::create instead of
  9650. PeerMessageUtil.
  9651. (createPeerMessage): Use create() of each message class instead of
  9652. PeerMessageUtil.
  9653. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  9654. AllowedFastMessage were added.
  9655. (getNewPieceAndSendInterest): Changed its return value type to void.
  9656. Added the handling of fast extension.
  9657. (addRequests): New function.
  9658. (sendNow): Removed.
  9659. (sendHandshake): Rewritten.
  9660. (trySendNow): Removed.
  9661. (sendBitfield): New function.
  9662. (sendAllowdFast): New function.
  9663. (isInFastSet): New function.
  9664. (addFastSetIndex): New function.
  9665. (createRequestMessage): Use RequestMessage::create instead of
  9666. PeerMessageUtil.
  9667. (createCancelMessage): Use CancelMessage::create instead of
  9668. PeerMessageUtil.
  9669. (createPieceMessage): Use PieceMessage::create instead of
  9670. PeerMessageUtil.
  9671. (createHaveMessage): Use HaveMessage::create instead of
  9672. PeerMessageUtil.
  9673. (createChokeMessage): Use ChokeMessage::create instead of
  9674. PeerMessageUtil.
  9675. (createUnchokeMessage): Use UnchokeMessage::create instead of
  9676. PeerMessageUtil.
  9677. (createInterestedMessage): Use InterestedMessage::create instead of
  9678. PeerMessageUtil.
  9679. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  9680. of PeerMessageUtil.
  9681. (createBitfieldMessage): Use BitfieldMessage::create instead of
  9682. PeerMessageUtil.
  9683. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  9684. PeerMessageUtil.
  9685. (createHaveAllMessage): New function.
  9686. (createHaveNoneMessage): New function.
  9687. (createRejectMessage): New function.
  9688. (createAllowedFastMessage: New function.
  9689. * src/Util.h
  9690. (sha1Sum): New function.
  9691. (computeFastSet): New function.
  9692. * src/Util.cc
  9693. (sha1Sum): New function.
  9694. (computeFastSet): New function.
  9695. * src/Peer.h
  9696. (fastExtensionEnabled): New variable.
  9697. (fastSet): New variable.
  9698. (setAllBitfield): New function.
  9699. (setFastExtensionEnabled): New function.
  9700. (isFastExtensionEnabled): New function.
  9701. (addFastSetIndex): New function.
  9702. (getFastSet): New function.
  9703. (isInFastSet): New function.
  9704. (countFastSet): New function.
  9705. * src/Peer.cc
  9706. (isInFastSet): New function.
  9707. (addFastSetIndex): New function.
  9708. (setAllBitfield): New function.
  9709. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  9710. sockets.
  9711. * src/PeerAbstractCommand.cc
  9712. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  9713. and uploadLimit.
  9714. (execute): Changed the procedure of checking sockets. The upload speed
  9715. checking were added.
  9716. (setUploadLimit): New function.
  9717. (setUploadLimitCheck): New function.
  9718. * src/PeerAbstractCommand.h
  9719. (setUploadLimit): New function.
  9720. (setUploadLimitCheck): New function.
  9721. (uploadLimit): New variable.
  9722. (uploadLimitCheck): New variable.
  9723. To contact a tracker regularly:
  9724. * src/TrackerWatcherCommand.h (interval): New variable.
  9725. (checkPoint): New variable.
  9726. (TrackerWatcherCommand): Added interval argument.
  9727. * src/TrackerWatcherCommand.cc
  9728. (TrackerWatcherCommand): Initialized checkPoint.
  9729. (execute): Now a tracker is contacted in every specified period.
  9730. If peer list is not needed, send request with numwant=0.
  9731. * src/TrackerUpdateCommand.cc
  9732. (execute): Updated log messages.
  9733. * src/DownloadEngine.cc
  9734. (~DownloadEngine): Removed two asserts.
  9735. (waitData): Uncommented wfds. May be a bug fix.
  9736. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. * src/PeerInteractionCommand.h
  9738. (checkInactiveConnection): Removed.
  9739. * src/PeerInteractionCommand.cc
  9740. (executeInternal): Removed following function calls:
  9741. detectMessageFlooding(), checkLongTimePeerChoking and
  9742. checkInactiveConnection().
  9743. (checkInactiveConnection): Removed.
  9744. (detectMessageFlooding): Removed function call to
  9745. checkInactiveConnection().
  9746. * src/PeerMessageUtil.h
  9747. (createChokeMessage): New function. Overload.
  9748. (createUnchokeMessage): New function. Overload.
  9749. (createInterestedMessage): New function. Overload.
  9750. (createNotInterestedMessage): New function. Overload.
  9751. (createHaveMessage): New function. Overload.
  9752. (createBitfieldMessage): New function. Overload.
  9753. (createRequestMessage): New function. Overload.
  9754. (createCancelMessage): New function. Overload.
  9755. (createPieceMessage): New function. Overload.
  9756. (createKeepAliveMessage): New function. Overload.
  9757. * src/PeerMessageUtil.cc
  9758. (createChokeMessage): New function. Overload.
  9759. (createUnchokeMessage): New function. Overload.
  9760. (createInterestedMessage): New function. Overload.
  9761. (createNotInterestedMessage): New function. Overload.
  9762. (createHaveMessage): New function. Overload.
  9763. (createBitfieldMessage): New function. Overload.
  9764. (createRequestMessage): New function. Overload.
  9765. (createCancelMessage): New function. Overload.
  9766. (createPieceMessage): New function. Overload.
  9767. (createKeepAliveMessage): New function. Overload.
  9768. * src/SendMessageQueue.cc
  9769. (createRequestMessage): Use PeerMessageUtil.
  9770. (createCancelMessage): Use PeerMessageUtil.
  9771. (createPieceMessage): Use PeerMessageUtil.
  9772. (createHaveMessage): Use PeerMessageUtil.
  9773. (createChokeMessage): Use PeerMessageUtil.
  9774. (createUnchokeMessage): Use PeerMessageUtil.
  9775. (createInterestedMessage): Use PeerMessageUtil.
  9776. (createNotInterestedMessage): Use PeerMessageUtil.
  9777. (createBitfieldMessage): Use PeerMessageUtil.
  9778. (createKeepAliveMessage): Use PeerMessageUtil.
  9779. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  9780. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  9781. * src/PeerInteraction.h: New class.
  9782. * src/PeerInteraction.cc: New class.
  9783. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. Each peer message has its own class.
  9785. * src/PendingMessages.h: Removed.
  9786. * src/PendingMessages.cc: Removed. The sending process was moved to
  9787. each message class.
  9788. * src/RequestSlotMan.h: Removed.
  9789. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  9790. SendMessageQueue.
  9791. * src/RequestMessage.h: New class.
  9792. * src/RequestMessage.cc: New class.
  9793. * src/CancelMessage.h: New class.
  9794. * src/CancelMessage.cc: New class.
  9795. * src/BitfieldMessage.h: New class.
  9796. * src/BitfieldMessage.cc: New class.
  9797. * src/ChokeMessage.h: New class.
  9798. * src/ChokeMessage.cc: New class.
  9799. * src/KeepAliveMessage.h: New class.
  9800. * src/KeepAliveMessage.cc: New class.
  9801. * src/PortMessage.h: New class.
  9802. * src/UnchokeMessage.h: New class.
  9803. * src/UnchokeMessage.cc: New class.
  9804. * src/PieceMessage.h: New class.
  9805. * src/PieceMessage.cc: New class.
  9806. * src/HaveMessage.h: New class.
  9807. * src/HaveMessage.cc: New class.
  9808. * src/BitfieldMessage.h: New class.
  9809. * src/BitfieldMessage.cc: New class.
  9810. * src/NotInterestedMessage.h: New class.
  9811. * src/NotInterestedMessage.cc: New class.
  9812. * src/InterestedMessage.h: New class.
  9813. * src/InterestedMessage.cc: New class.
  9814. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  9815. (getSendMessageQueue): New function.
  9816. (setSendMessageQueue): New function.
  9817. * src/HandshakeMessage.cc: New class.
  9818. * src/PeerConnection.h (receiveMessage): Changed return value and
  9819. arguments.
  9820. (receiveHandshake): Changed return value and arguments.
  9821. * src/PeerConnection.cc (receiveMessage): Do not create message class
  9822. here.
  9823. (receiveHandshake): Do not create handshake class here.
  9824. * src/PeerInteractionCommand.h (peerConnection): Removed.
  9825. (piece): Removed.
  9826. (syncPiece): Removed.
  9827. (sendInterest): Removed.
  9828. (sendMessages): Removed.
  9829. (createRequestPendingMessage): Removed.
  9830. (checkPieceHash): Removed.
  9831. (erasePieceOnDisk): Removed.
  9832. (getNewPieceAndSendInterest): Removed.
  9833. (onGotNewPice): Removed.
  9834. (onGotWrongPiece): Removed.
  9835. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  9836. Removed peerConnection, piece.
  9837. (~PeerInteractionCommand): Removed peerConnection.
  9838. (executeInternal): Use sendMessageQueue instead of peerConnection.
  9839. (syncPiece): Moved to SendMessageQueue.
  9840. (decideChoking): Removed PendingMessage.
  9841. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  9842. The action after receiving peer message was moved to each message
  9843. class.
  9844. (onGotNewPice): Moved to SendMessageQueue.
  9845. (onGotWrongPiece): Moved to SendMessageQueue.
  9846. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  9847. (sendInterest): Moved to SendMessageQueue.
  9848. (createRequestPendingMessage): Removed.
  9849. (sendMessages): Moved to SendMessageQueue.
  9850. (onAbort): Use SendMessageQueue::abortPiece()
  9851. (keepAlive): Use sendMessageQueue instead of peerConnection.
  9852. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  9853. (checkPieceHash): Moved to SendMessageQueue.
  9854. (erasePieceOnDisk): Moved to SendMessageQueue.
  9855. * src/PeerMessageUtil.h
  9856. (createBitfieldMessage): Removed.
  9857. (createHaveMessage): Changed return value and arguments.
  9858. (createBitfieldMessage): Changed return value and arguments.
  9859. (createRequestCancelMessage): Removed.
  9860. (createPieceMessage): Changed return value and arguments.
  9861. (getShortIntParam): New function.
  9862. (checkIndex): Changed arguments.
  9863. (checkBegin): Changed arguments.
  9864. (checkLength): Changed arguments.
  9865. (checkPieceOffset): Removed.
  9866. (checkRange): New function.
  9867. (checkBitfield): Changed arguments.
  9868. (createPeerMessage): Removed.
  9869. (checkIntegrity): Removed.
  9870. (createHandshakeMessage): Changed arguments.
  9871. (createChokeMessage): New function.
  9872. (createUnchokeMessage): New function.
  9873. (createInterestedMessage): New function.
  9874. (createNotInterestedMessage): New function.
  9875. (createRequestMessage): New function.
  9876. (createCancelMessage): New function.
  9877. (createPortMessage): New function.
  9878. * src/PeerMessageUtil.cc
  9879. (createBitfieldMessage): Removed.
  9880. (createHaveMessage): Changed return value and arguments.
  9881. (createBitfieldMessage): Changed return value and arguments.
  9882. (createRequestCancelMessage): Removed.
  9883. (createPieceMessage): Changed return value and arguments.
  9884. (getShortIntParam): New function.
  9885. (checkIndex): Changed arguments.
  9886. (checkBegin): Changed arguments.
  9887. (checkLength): Changed arguments.
  9888. (checkPieceOffset): Removed.
  9889. (checkRange): New function.
  9890. (checkBitfield): Changed arguments.
  9891. (createPeerMessage): Removed.
  9892. (checkIntegrity): Removed.
  9893. (createHandshakeMessage): Changed arguments.
  9894. (createChokeMessage): New function.
  9895. (createUnchokeMessage): New function.
  9896. (createInterestedMessage): New function.
  9897. (createNotInterestedMessage): New function.
  9898. (createRequestMessage): New function.
  9899. (createCancelMessage): New function.
  9900. (createPortMessage): New function.
  9901. * src/PeerMessage.h
  9902. (id): Removed.
  9903. (index): Removed.
  9904. (begin): Removed.
  9905. (length): Removed.
  9906. (bitfield): Removed.
  9907. (bitfieldLength): Removed.
  9908. (block): Removed.
  9909. (blockLength): Removed.
  9910. (inProgress): New variable.
  9911. (cuid): New variable.
  9912. (peer): New variable.
  9913. (sendMessageQueue): New variable.
  9914. (logger): New variable.
  9915. (setBitfield): Removed.
  9916. (getBitfield): Removed.
  9917. (setBlock): Removed.
  9918. (getBlock): Removed.
  9919. (getBitfieldLength): Removed.
  9920. (getBlockLength): Removed.
  9921. (isInProgress): New function.
  9922. (toString): Made pure virtual.
  9923. (check): New function.
  9924. (send): New function.
  9925. (receivedAction): New function.
  9926. (getId): Made pure virtual.
  9927. (setId): Removed.
  9928. (getIndex): Removed.
  9929. (setIndex): Removed.
  9930. (getBegin): Removed.
  9931. (setBegin): Removed.
  9932. (getLength): Removed.
  9933. (setLength): Removed.
  9934. (getCuid): New function.
  9935. (setCuid): New function.
  9936. (getPeer): New function.
  9937. (setPeer): New function.
  9938. (getSendMessageQueue): New function.
  9939. (setSendMessageQueue): New function.
  9940. (ID): Removed.
  9941. * src/PeerMessage.cc
  9942. (setBitfield): Removed.
  9943. (setBlock): Removed.
  9944. (toString): Removed.
  9945. * src/TorrentMan.h
  9946. (getPieceLength): New function.
  9947. (getPieceLength): New function.
  9948. * src/SendMessageQueue.h
  9949. (REQUEST_TIME_OUT): New definition.
  9950. (RequestSlots): New definition.
  9951. (MessageQueue): New definition.
  9952. (requestSlotMan): Removed.
  9953. (pendingMessages): Removed.
  9954. (requestSlots): New variable.
  9955. (messageQueue): New variable.
  9956. (torrentMan): New variable.
  9957. (peerConnection): New variable.
  9958. (peer): New variable.
  9959. (piece): New variable.
  9960. (getNewPieceAndSendInterest): New function.
  9961. (createPeerMessage): New function.
  9962. (createHandshakeMessage): New function.
  9963. (send): Made private.
  9964. (setPeerMessageCommonProperty): New function.
  9965. (deleteAllRequestSlot): New function.
  9966. (deleteRequestMessageInQueue): New function.
  9967. (cancelAllRequest): Made private.
  9968. (cancelAllRequest): Made private.
  9969. (countRequestSlot): Made private.
  9970. (addPendingMessage): Removed.
  9971. (deletePendingPieceMessage): Removed.
  9972. (deletePendingRequestMessage): Removed.
  9973. (addMessage): New function.
  9974. (deletePieceMessageInQueue): New function.
  9975. (deleteTimeoutRequestSlot): Changed argument.
  9976. (deleteCompletedRequestSlot): Changed argument.
  9977. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  9978. (getCorrespondingRequestSlot): New function.
  9979. (countPendingMessage): Removed.
  9980. (countMessageInQueue): New function.
  9981. (getTorrentMan): New function.
  9982. (getPeerConnection): New function.
  9983. (hasDownloadPiece): New function.
  9984. (getDownloadPiece): New function.
  9985. (setDownloadPiece): New function.
  9986. (syncPiece): New function.
  9987. (sendMessages): New function.
  9988. (sendNow): New function.
  9989. (trySendNow): New function.
  9990. (abortPiece): New function.
  9991. (sendHandshake): New function.
  9992. (receiveMessage): New function.
  9993. (receiveHandshake): New function.
  9994. (createRequestMessage): New function.
  9995. (createCancelMessage): New function.
  9996. (createPieceMessage): New function.
  9997. (createHaveMessage): New function.
  9998. (createChokeMessage): New function.
  9999. (createUnchokeMessage): New function.
  10000. (createInterestedMessage): New function.
  10001. (createNotInterestedMessage): New function.
  10002. (createBitfieldMessage): New function.
  10003. (createKeepAliveMessage): New function.
  10004. * src/SendMessageQueue.cc
  10005. (SendMessageQueue): Removed requestSlotMan.
  10006. Instantiated peerConnection here.
  10007. (~SendMessageQueue): Removed requestSlotMan.
  10008. Added deletion of peerConnection and the contents of messageQueue.
  10009. (send): Updated according to the change of messageQueue.
  10010. (addPendingMessage): Renamed to addMessage.
  10011. (addMessage): New function.
  10012. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10013. (deletePieceMessageInQueue): New function.
  10014. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10015. (deleteRequestMessageInQueue): New function.
  10016. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10017. here.
  10018. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10019. (...) was moved here.
  10020. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10021. moved here.
  10022. (deleteCompletedRequestSlot):
  10023. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10024. (getCorrespondingRequestSlot):
  10025. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10026. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10027. (countPendingMessage): Renamed to countMessageInQueue.
  10028. (countMessageInQueue): New function.
  10029. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10030. (receiveHandshake): New function.
  10031. (createHandshakeMessage): New function.
  10032. (receiveMessage): New function.
  10033. (createPeerMessage): New function.
  10034. (syncPiece): New function.
  10035. (getNewPieceAndSendInterest): New function.
  10036. (sendMessages): New function.
  10037. (sendNow): New function.
  10038. (trySendNow): New function.
  10039. (sendHandshake): New function.
  10040. (abortPiece): New function.
  10041. (getDownloadPiece): New function.
  10042. (getPeerMessageCommonProperty): New function.
  10043. (createRequestMessage): New function.
  10044. (createCancelMessage): New function.
  10045. (createPieceMessage): New function.
  10046. (createHaveMessage): New function.
  10047. (createChokeMessage): New function.
  10048. (createUnchokeMessage): New function.
  10049. (createInterestedMessage): New function.
  10050. (createNotInterestedMessage): New function.
  10051. (createBitfieldMessage): New function.
  10052. (createKeepAliveMessage): New function.
  10053. To add simple Content-Disposition support:
  10054. * src/HttpResponseCommand.h (determinFilename): New function.
  10055. * src/HttpResponseCommand.cc (executeInternal):
  10056. Use determinFilename(headers) instead of req->getFile() when comparing
  10057. filename.
  10058. (determinFilename): New function.
  10059. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10060. req->getFile().
  10061. (handleOtherEncoding): Use determinFilename(headers) instead of
  10062. req->getFile().
  10063. * src/Util.h (getContentDispositionFilename): New function.
  10064. * src/Util.cc (getContentDispositionFilename): New function.
  10065. * src/LogFactory.h (release): New function.
  10066. * src/LogFactory.cc (release): New function.
  10067. To fix a bug that causes out-of-bound exception when HTTP status
  10068. line is wrong:
  10069. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10070. size.
  10071. * src/common.h (Deleter): New class.
  10072. * src/SegmentMan.cc
  10073. (~SegmentMan): Added deletion of splitter and diskWriter.
  10074. * src/DownloadEngine.h
  10075. (Commands): Use deque.
  10076. (clearQueue): New function.
  10077. * src/DownloadEngine.cc
  10078. (~DownloadEngine): Added deletion of segmentMan.
  10079. (cleanQueue): New function.
  10080. * src/TorrentDownloadEngine.h
  10081. (TorrentDownloadEngine): The implementation was moved to
  10082. TorrentDownloadEngine.cc.
  10083. (~TorrentDownloadEngine): The implementation was moved to
  10084. TorrentDownloadEngine.cc.
  10085. * src/TorrentDownloadEngine.cc
  10086. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10087. * src/main.cc
  10088. (clearRequest): Removed.
  10089. (handler): Added deletion of e.
  10090. (torrentHandler): Added deletion of te.
  10091. (main): Do not share splitter.
  10092. Use Deleter instead of clearRequest.
  10093. Deletion of classes were updated.
  10094. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10095. * src/main.cc (main): Fixed typo.
  10096. * src/message.h: Fixed typo.
  10097. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10098. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. To add --select-file command-line option:
  10100. * src/Util.cc
  10101. (unfoldRange): New function.
  10102. (getNum): New function.
  10103. (unfoldSubRange): New function
  10104. * src/main.cc
  10105. (showUsage): Added help message.
  10106. (main): Added --select-file command-line option. Updated the layout of
  10107. file listing.
  10108. * src/common.h
  10109. (Integers): New definition.
  10110. * src/SocketCore.cc
  10111. (writeData): Removed timeout argument.
  10112. (readData): Removed timeout argument.
  10113. (peekData): Removed timeout argument.
  10114. * src/Socket.cc
  10115. (writeData): Removed timeout argument.
  10116. (readData): Removed timeout argument.
  10117. (peekData): Removed timeout argument.
  10118. * Release 0.4.1
  10119. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. To deploy upload rate based choking algorithm:
  10121. * src/PeerInteractionCommand.cc
  10122. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10123. peer currently used.
  10124. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10125. download completes. Simplified.
  10126. (receiveMessage): Updated.
  10127. * src/TorrentMan.h
  10128. (activePeers): New variable.
  10129. (addActivePeer): New function.
  10130. (getActivePeers): New function.
  10131. (deleteActivePeer): New function.
  10132. * src/TorrentMan.cc
  10133. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10134. * src/PeerAbstractCommand.cc
  10135. (onAbort): Use peer->resetStatus().
  10136. * src/main.cc
  10137. (PeerChokeCommand.h): Included.
  10138. (main): Added the instance of ChokingCommand to the command queue.
  10139. * src/Peer.h
  10140. (amChoking): Renamed from amChocking
  10141. (chokingRequired): New variable.
  10142. (optUnchoking): New variable.
  10143. (deltaUpload): New variable.
  10144. (deltaDownload): New variable.
  10145. (addDeltaUpload): New function.
  10146. (resetDeltaUpload): New function.
  10147. (addDeltaDownload): New function.
  10148. (resetDeltaDownload): New function.
  10149. (addPeerUpload): Added a call to addDeltaUpload.
  10150. (addPeerDownload): Added a call to addDeltaDownload.
  10151. * src/Peer.cc
  10152. (shouldBeChoking): Renamed from shouldChoke.
  10153. (resetStatus): New function.
  10154. * src/PeerChokeCommand.h: New class.
  10155. * src/PeerChokeCommand.cc: New class.
  10156. To add lazy upload speed limiter:
  10157. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  10158. statistics calculation to TorrentDownloadEngine.
  10159. * src/TorrentConsoleDownloadEngine.cc
  10160. (sendStatistics): Renamed from printStatistics.
  10161. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  10162. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  10163. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  10164. * src/TorrentDownloadEngine.h: Added the variables for statistics
  10165. calculation.
  10166. (sendStatistics): New function as pure virtual function.
  10167. (getUploadSpeed): New function.
  10168. * src/TorrentDownloadEngine.cc
  10169. (initStatistics): New function.
  10170. (calculateSpeed): New function.
  10171. (calculateStatistics): New function.
  10172. * src/SendMessageQueue.h
  10173. (uploadLength): New variable.
  10174. (send): Added an argument.
  10175. (setUploadLimit): New function.
  10176. (getUploadLimit): New function.
  10177. * src/SendMessageQueue.cc
  10178. (send): Added upload speed limiter.
  10179. * src/prefs.h
  10180. (PREF_UPLOAD_LIMIT): New definition.
  10181. * src/PeerInteractionCommand.cc
  10182. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10183. * src/main.cc
  10184. (main): Added --upload-limit option
  10185. For bug fixes:
  10186. * src/main.cc
  10187. (showUsage): Corrected --listen-port help
  10188. Other changes:
  10189. * src/TorrentMan.cc
  10190. (getPeer): Return nullPeer if connection is grather than
  10191. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10192. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. To add some useful information to the exception message:
  10194. * src/SocketCore.cc : Updated messages.
  10195. * src/SegmentMan.cc :
  10196. * src/TorrentMan.cc : Updated messages.
  10197. * src/MultiDiskWriter.cc : Updated messages.
  10198. * src/Util.cc : Updated messages.
  10199. * src/AbstractDiskWriter.cc : Updated messages.
  10200. * src/PreAllocationDiskWriter.cc : Updated messages.
  10201. * src/message.cc : Added new messages. Updated some messages.
  10202. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10203. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10204. Updated threshold from 30 to 15.
  10205. * src/AbstractDiskWriter.h (filename): New variable.
  10206. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10207. (createFile): Assigned filename.
  10208. * src/main.cc: Updated the help message for http-auth-scheme.
  10209. * Release 0.4.0
  10210. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10211. To add TrackerUpdateCommand with which replaces
  10212. CompactTrackerResponseProcessor:
  10213. * src/TrackerWatcherCommand.h (req): Removed.
  10214. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10215. if the number of peer connections are less than 30.
  10216. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10217. * src/SegmentMan.h (diskWriter): New function.
  10218. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10219. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10220. (main): Use TrackerUpdateCommand.
  10221. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10222. (req): New variable.
  10223. (setTrackerResponseProcessor): Removed.
  10224. (getTrackerResponseProcessor): Removed.
  10225. (processTrackerResponse): Removed.
  10226. * src/DownloadEngine.h (diskWriter): Removed.
  10227. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10228. to torrentMan->processTrackerResponse().
  10229. To add Util::expandBuffer:
  10230. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10231. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10232. * src/Util.h (expandBuffer): New function.
  10233. To fix the bug that causes segmentation fault when "-l ." is specified
  10234. in command-line option:
  10235. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10236. (openFile): New function.
  10237. (closeFile): New function.
  10238. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10239. (~SimpleLogger): Call closeFile();
  10240. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10241. * src/main.cc (main): Added a check to see logger is configured
  10242. properly.
  10243. To enable HTTP authentication without specifying "--http-auth-scheme"
  10244. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10245. * src/HttpConnection.cc (createRequest): Send Authorization header
  10246. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10247. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10248. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10249. * src/Peer.cc (shouldChoke): Updated algorithm.
  10250. * src/message.h (EX_AUTH_FAILED): New definition.
  10251. (EX_FILE_OPEN): New definition.
  10252. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10253. if status == 401.
  10254. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10255. if req->isTorrent == true.
  10256. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10257. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10258. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10259. (createFile): Updated message.
  10260. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10261. To add a readout of estimated remaining time to normal HTTP/FTP
  10262. downloads:
  10263. * src/ConsoleDownloadEngine.h (startup): New variable.
  10264. (startupLength): New variable.
  10265. (isStartupLengthSet): New variable.
  10266. (avgSpeed): New variable.
  10267. (eta): New variable.
  10268. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10269. estimated remaining time.
  10270. (initStatistics): Initialized newly added variables.
  10271. (calculateStatistics): Calculate average speed and estimated remaining
  10272. time.
  10273. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10274. * src/TrackerDownloadCommand.h: Removed.
  10275. * src/TrackerDownloadCommand.cc: Removed.
  10276. * src/TrackerInitCommand.h: Removed.
  10277. * src/TrackerInitCommand.cc: Removed.
  10278. * src/TrackerUpdateCommand.h: Removed.
  10279. * src/TrackerUpdateCommand.cc: Removed.
  10280. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10281. url written in TrackerInitCommand was moved here. Do not create
  10282. tracker request command if torrentMan->trackers != 0.
  10283. * src/CompactTrackerResponseProcessor.h: New class.
  10284. * src/CompactTrackerResponseProcessor.cc: New class.
  10285. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10286. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10287. Decoupled TorrentDownloadEngine from this.
  10288. * src/SegmentMan.h (init): New function.
  10289. * src/SegmentMan.cc (init): New function.
  10290. * src/TorrentMan.h (responseProcessor): New variable.
  10291. (trackers): New variable.
  10292. (setTrackerResponseProcessor): New function.
  10293. (getTrackerResponseProcessor): New function.
  10294. (processTrackerResponse): New function.
  10295. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10296. (processTrackerResponse): New function.
  10297. * src/main.cc (main): Use ByteArrayDiskWriter and
  10298. CompactTrackerResponseProcessor.
  10299. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10300. processTrackerResponse().
  10301. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10302. readout.
  10303. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10304. which indicates download has completed.
  10305. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10306. (closeFile): fd >= 0, not fd > 0
  10307. * src/main.cc (main): Added short cut for show-files.
  10308. Added short cut for torrent-file.
  10309. Added new command-line option listen-port.
  10310. Updated i18n messages.
  10311. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10312. To add LogFactory which creates singleton logger:
  10313. * src/LogFactory.h: New class.
  10314. * src/LogFactory.cc: New class.
  10315. * src/Command.h (logger): New variable.
  10316. (Constructor): Use LogFactory.
  10317. * src/AbstractCommand.cc: Use Command::logger
  10318. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10319. Use LogFactory.
  10320. * src/SegmentSplitter.h : Made logger protected.
  10321. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10322. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10323. * src/DownloadEngine.h : Made logger protected.
  10324. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10325. * src/PeerInteractionCommand.cc : Use Command::logger.
  10326. * src/HttpResponseCommand.cc : Use Command::logger.
  10327. * src/SegmentMan.h : Made logger private.
  10328. * src/TorrentMan.h : Made logger private.
  10329. * src/TorrentMan.cc : Use LogFactory.
  10330. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10331. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10332. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10333. Use LogFactory.
  10334. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10335. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10336. Use LogFactory.
  10337. * src/DownloadCommand.cc : Use Command::logger.
  10338. * src/PeerAbstractCommand.cc : Use Command::logger.
  10339. * src/PeerListenCommand.cc : Use Command::logger.
  10340. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10341. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10342. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10343. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10344. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10345. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10346. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10347. Use LogFactory.
  10348. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10349. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10350. Use LogFactory.
  10351. * src/main.cc (main): Use LogFactory.
  10352. * src/DiskAdaptor.h (logger): New variable.
  10353. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10354. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10355. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10356. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10357. parameter to a tracker request.
  10358. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10359. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10360. * src/main.cc (setSignalHander): New function.
  10361. (main): Added a handler for SIGTERM.
  10362. (handler): Updated message.
  10363. (torrentHandler): Updated message.
  10364. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10365. * src/TorrentConsoleDownloadEngine.cc
  10366. (onPartialDownloadingCompletes): Renamed as
  10367. onSelectiveDownloadingCompletes.
  10368. (onSelectiveDownloadingCompletes): Updated message.
  10369. To add DiskAdaptor which abstract DiskWriter family:
  10370. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10371. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10372. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10373. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10374. MultiDiskAdaptor.h.
  10375. (readFileEntry): Changed its arguments.
  10376. (setup): setupDiskWriter is merged into this function.
  10377. (setupDiskWriter): Removed.
  10378. (setFileFilter): New function.
  10379. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10380. made in readFileEntry.
  10381. (getFilePath): Removed.
  10382. (getTempFilePath): Removed.
  10383. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10384. (fixFilename): Removed.
  10385. (copySingleFile): Removed.
  10386. (splitMultiFile): Removed.
  10387. (deleteTempFile): Removed.
  10388. (setFileEntriesToDownload): Removed.
  10389. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10390. (isSelectiveDownloadingMode): New function.
  10391. (setAllMultiFileRequestedState): Removed.
  10392. (finishPartialDownloadingMode): Renamed as
  10393. finishSelectiveDownloadingMode.
  10394. (finishSelectiveDownloadingMode): New function.
  10395. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10396. (getSelectedTotalLength): New function.
  10397. (onDownloadComplete): Use diskAdaptor.
  10398. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10399. (Range): Removed.
  10400. (setMultiFileEntries): Renamed as setFileEntries.
  10401. (setFileEntries): New function.
  10402. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  10403. (pieceLength): New variable.
  10404. * src/main.cc (printDownloadCompeleteMessage): New function.
  10405. (torrentHandler): Use diskAdaptor instead of diskWriter.
  10406. (main): Renamed torrent-show-files to show-files.
  10407. Rewritten file contents listing.
  10408. * src/TorrentMan.h (FileEntry): Removed.
  10409. (multiFileTopDir): Removed.
  10410. (multiFileEntries): Removed.
  10411. (diskWriter): Removed.
  10412. (diskAdaptor): New variable.
  10413. * src/DefaultDiskWriter.h (totalLength): New variable.
  10414. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  10415. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  10416. diskWriter.
  10417. * src/TorrentConsoleDownloadEngine.h
  10418. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  10419. (partialTotalLength): Renamed as selectedTotalLength.
  10420. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  10421. openExistingFile, otherwise call initAndOpenFile.
  10422. (closeFile): fd > 0, not fd != 0.
  10423. * src/DirectDiskAdaptor.h: New class.
  10424. * src/DirectDiskAdaptor.cc: New class.
  10425. * src/MultiDiskAdaptor.h: New class.
  10426. * src/MultiDiskAdaptor.cc: New class.
  10427. * src/CopyDiskAdaptor.h: New class.
  10428. * src/CopyDiskAdaptor.cc: New class.
  10429. * src/DiskAdaptor.h: New class.
  10430. * src/DiskAdaptor.cc: New class.
  10431. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  10432. (PREF_SHOW_FILES): New definition.
  10433. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10434. To add the ability to download multi torrent into respective files
  10435. directly:
  10436. * src/DiskWriter.h (openFile): New function.
  10437. (seek): Removed.
  10438. * src/MultiDiskWriter.h: New class.
  10439. * src/MultiDiskWriter.cc: New class.
  10440. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  10441. protected.
  10442. (openFile): New function.
  10443. * src/AbstractDiskWriter.cc (openFile): New function.
  10444. * src/prefs.h (V_FALSE): New definition.
  10445. (PREF_DIRECT_FILE_MAPPING): New definition.
  10446. * src/TorrentMan.h (setupDiskWriter): New function.
  10447. (setAllMultiFileRequestedState): New function.
  10448. (onDownloadComplete): New function.
  10449. * src/TorrentMan.cc : Included MultiDiskWriter.h
  10450. (setupDiskWriter): New function.
  10451. (getFilePath): Updated.
  10452. (getTempFilePath): Updated.
  10453. (getSegmentFilePath): Updated.
  10454. (fixFilename): Updated.
  10455. (deleteTempFile): Updated.
  10456. (setAllMultiFileRequestedState): New function.
  10457. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  10458. (finishPartialDownloadingMode): Reset requested flags.
  10459. (onDownloadComplete): New function.
  10460. * src/main.cc: Added --direct-file-mapping option.
  10461. Use TorrentMan::setupDiskWriter().
  10462. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  10463. onDownloadComplete().
  10464. To fix ETA bug:
  10465. * src/Util.h (difftvsec): New function.
  10466. * src/Util.cc (difftvsec): New function.
  10467. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  10468. type of "elapsed" instead of long long int.
  10469. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  10470. The updates of statistics takes place every 1 seconds.
  10471. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  10472. (calculateSpeed): Changed its argument signature.
  10473. * src/PeerMessage.cc (toString): Fixed message.
  10474. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. To print ETA:
  10476. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  10477. completion handling when dealing with
  10478. TorrentMan::isPartialDownloadingMode() == true.
  10479. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  10480. New function.
  10481. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  10482. (sessionDownloadLength): New variable.
  10483. (avgSpeed): New variable.
  10484. (eta): New variable.
  10485. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  10486. new variables: eta, avgSpeed, startup.
  10487. (calculateSpeed): Calculate average speed and ETA.
  10488. (printStatistics): Added ETA.
  10489. * src/Util.h (secfmt): New function.
  10490. * src/Util.cc (secfmt): New function.
  10491. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10492. To detect "keep alive" flooding:
  10493. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  10494. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  10495. variable: keepAliveCount.
  10496. (detectMessageFlooding): Added "keep alive" flooding detection.
  10497. (receiveMessage): Increase keepAliveCount when "keep alive" message
  10498. received.
  10499. To add the ability to download only specified files in multi-file
  10500. torrent:
  10501. * src/BitfieldMan.h (filterBitfield): New variable.
  10502. (filterEnabled): New variable.
  10503. (setFilterBit): New function.
  10504. (enableFilter): New function.
  10505. (disableFilter): New function.
  10506. (isFilterEnabled): New function.
  10507. (getFilteredTotalLength): New function.
  10508. (getCompletedLength): New function.
  10509. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  10510. filterBitfield, filterEnabled.
  10511. (CopyConstructor): Added filterBitfield and filterEnabled.
  10512. (operator==): Added filterBitfield and filterEnabled.
  10513. (Destructor): Added filterBitfield.
  10514. (getMissingIndex): Use filterBitfield.
  10515. (getMissingUnusedIndex): Use filterBitfield.
  10516. (getFirstMissingUnusedIndex): Use filterBitfield.
  10517. (getFirstMissingUnusedIndex): Use filterBitfield.
  10518. (getAllMissingIndexes): Use filterBitfield.
  10519. (countMissingBlock): Use filterBitfield.
  10520. (countBlock): Use filterBitfield.
  10521. (setBitInternal): Added new argument on.
  10522. (setUseBit): Use setBitInternal.
  10523. (unsetUseBit): Use setBitInternal.
  10524. (setBit): Use setBitInternal.
  10525. (unsetBit): Use setBitInternal.
  10526. (isAllBitSet): Use filterBitfield.
  10527. (setFilterBit): New function.
  10528. (addFilter): New function.
  10529. (enableFilter): New function.
  10530. (disableFilter): New function.
  10531. (clearFilter): New function.
  10532. (isFilterEnabled): New function.
  10533. (getFilteredTotalLength): New function.
  10534. (getCompletedLength): New function.
  10535. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  10536. Initalized newly added variables.
  10537. [FileEntry](offset): New variable.
  10538. [FileEntry](extracted): New variable.
  10539. [FileEntry](requested): New variable.
  10540. (readFileEntry): New function.
  10541. (option): New variable.
  10542. (splitMultiFile): Removed const qualifier.
  10543. (fixFilename): Removed const qualifier.
  10544. (readFileEntryFromMetaInfoFile): New function.
  10545. (finishPartialDownloadingMode): New function.
  10546. (isPartialDownloadingMode): New function.
  10547. (setFileEntriesToDownload): New function.
  10548. (getCompletedLength): New function.
  10549. (getPartialTotalLength): New function.
  10550. * src/TorrentMan.cc (readFileEntry): New function.
  10551. (setup): Use readFileEntry. If no-preallocation option is specified,
  10552. use DefaultDiskWriter.
  10553. (readFileEntryFromMetaInfoFile): New function.
  10554. (fixFilename): Removed const qualifier.
  10555. (splitMultiFile): Removed const qualifier.
  10556. (setFileEntriesToDownload): New function.
  10557. (isPartialDownloadingMode): New function.
  10558. (finishPartialDownloadingMode): New function.
  10559. (getCompletedLength): New function.
  10560. (getPartialTotalLength): New function.
  10561. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  10562. New variable.
  10563. (partialTotalLength): New variable.
  10564. (downloadLength): New variable.
  10565. (totalLength): New variable.
  10566. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  10567. Added log.
  10568. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  10569. partialTotalLength, downloadLength, totalLength.
  10570. (calculate): Calculate downloadLength and totalLength.
  10571. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  10572. * src/main.cc (addCommand): Changed argument signature.
  10573. (main): Added new variable: args. Added new option "torrent-show-files"
  10574. "no-preallocation". Usage is not updated yet.
  10575. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10576. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  10577. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10578. Attempt to add the ability to listing file entries in a .torrent file.
  10579. This feature is not yet complete.
  10580. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  10581. * src/TorrentMan.cc (getMultiFileEntries): New function.
  10582. (getName): New function.
  10583. * src/TorrentMan.h (getMultiFileEntries): New function.
  10584. (getName): New function.
  10585. * src/main.cc (main): Use above 2 funtion.
  10586. * Release 0.3.2
  10587. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  10589. (detectMessageFlooding): Updated threshold value.
  10590. (checkLongTimePeerChoking): Updated timeout value.
  10591. (getNewPieceAndSendInterest): Added debug log.
  10592. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  10593. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  10594. (getPeer): Updated.
  10595. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  10596. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  10597. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  10598. is localhost.
  10599. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  10600. * src/PendingMessage.cc (processMessage): Not to send piece message
  10601. if peer is not interested in the pieces localhost has.
  10602. * src/Peer.cc (shouldChoke): Updated.
  10603. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  10604. * src/Util.cc (isPowerOf): New function.
  10605. * src/Util.h (isPowerOf): New function.
  10606. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  10607. whether or not it is power of 2.
  10608. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. Added new class SendMessageQueue that includes PendingMessages and
  10610. RequestSlotMan.
  10611. * src/SendMessageQueue.h: New class.
  10612. * src/SendMessageQueue.cc: New class.
  10613. * src/PendingMessage.h: Added new member variable blockIndex and its
  10614. accessors.
  10615. (createRequestMessage): Updated.
  10616. * src/PendingMessage.cc (createRequestMessage): Updated.
  10617. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  10618. SendMessageQueue.
  10619. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  10620. (receiveMessage): Updated with SendMessageQueue.
  10621. (deletePendingPieceMessage): Removed.
  10622. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  10623. (sendInterest): Updated with SendMessageQueue.
  10624. (createRequestPendingMessage): Updated with SendMessageQueue.
  10625. (sendMessages): Updated with SendMessageQueue.
  10626. (onAbort): Updated with SendMessageQueue.
  10627. (keepAlive): Updated with SendMessageQueue.
  10628. (beforeSocketCheck): Updated SendMessageQueue.
  10629. * src/PeerInteractionCommand (sendMessages): Shuffle
  10630. missingBLockIndexes before using it.
  10631. Added its own timeout for peer connection.
  10632. * src/PeerAbstractCommand.h: Added member variable timeout and its
  10633. setter.
  10634. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  10635. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10636. Added setTimeout() call.
  10637. (executeInternal): Added setTimeout() call.
  10638. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  10639. Added timeout.
  10640. (isTimeoutDetected): Updated.
  10641. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  10642. option.
  10643. Added *simple* message flooding checker.
  10644. * src/PeerInteractionCommand.cc (executeInternal):
  10645. Added detectMessageFlooding() call.
  10646. (detectMessageFlooding): New function.
  10647. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  10648. (beforeSocketCheck): Added detectMessageFlooding() call.
  10649. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  10650. chokeUnchokeCount, haveCount, detectMessageFlooding().
  10651. Removed deletePendingPieceMessage(), getRequestSlot(),
  10652. deleteRequestSlot(), deleteAllRequestSlot().
  10653. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  10654. Added checkLongTimePeerChoking() call.
  10655. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  10656. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  10657. if duplicate == false.
  10658. The parameter "uploaded" and "downloaded" in the tracker request are
  10659. the size since the client sent the "started" event to the tracker.
  10660. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  10661. uploaded size to preDownloadedSize, preUploadedSize respectively.
  10662. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  10663. getSessionDownloadedSize(), getSessionUploadedSize().
  10664. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  10665. getSessionUploadedSize() instead of getDownloadedSize(),
  10666. getUploadedSize().
  10667. * src/PendingMessage.cc (processMessage): Do not send request message
  10668. if the peer is choking the client.
  10669. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  10670. less than interval.
  10671. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. * configure.in: Added gnutls support. Added several CPP macros.
  10673. * m4/openssl.m4: Added.
  10674. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  10675. readData(), peekData(). Added gnutls support.
  10676. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  10677. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  10678. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  10679. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10680. Instead, added a check for whether setup method has executed
  10681. successfully.
  10682. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  10683. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  10684. * src/Makefile.am: Updated.
  10685. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  10686. using whether OpenSSL or gcrypt, depending on the result of configure
  10687. script.
  10688. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  10689. messageDigest.h.
  10690. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  10691. * src/PeerListenCommand.cc: Added log about port binded successfully.
  10692. Fixed memory leak.
  10693. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  10694. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  10695. Removed instantiation of TrackerInitCommand. Instead,
  10696. TrackerWatcherCommand is instantiated and pushed to the command queue.
  10697. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  10698. ENABLE_SSL.
  10699. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  10700. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  10701. If a piece is already acquired by another command, delete the request
  10702. slots for the piece.
  10703. * src/TrackerUpdateCommand.cc (execute):
  10704. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  10705. Added a check whether peer list is null.
  10706. Fixed the bug that causes sending completed event to the tracker
  10707. several times.
  10708. * src/TrackerInitCommand.cc (execute):
  10709. Fixed the bug that causes sending completed event to the tracker
  10710. several times.
  10711. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  10712. by using messageDigest.h.
  10713. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. * PeerConnection.cc: Replaced log message "keep-alive" with
  10715. "keep alive".
  10716. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  10717. localhost long time.
  10718. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  10719. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  10720. at most 100 failure entry from the list. If with duplicate = false,
  10721. MAX_PEER_LIST is not checked.
  10722. * PeerListenCommand.cc: Fixed the argument order of log message.
  10723. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  10725. Added warn().
  10726. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  10727. Implemented warn().
  10728. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  10729. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10730. * Request.h: Added AFTER_COMPLETED event.
  10731. * TorrentDownloadEngine.cc: Prints "Download complete" message
  10732. instead of downloaded size and progress(%) after download completes.
  10733. * PeerInteractionCommand.cc: After download completes, sends unchoke
  10734. message to the peer if it is interested in what localhost has
  10735. downloaded.
  10736. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  10737. destination instead of just renaming it.
  10738. * TorrentMan.cc: Added deleteTempFile().
  10739. * PeerAbstractCommand.cc: do not stop execution after download
  10740. completes. This makes localhost a seeder.
  10741. * Util.{h,cc}: Added fileCopy().
  10742. * PeerListenCommand.cc: do not stop execution after download completes.
  10743. This makes localhost a seeder.
  10744. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  10745. Added TorrentMan::deleteTempFile() to torrentHandler.
  10746. Initialized the variable dir as ".".
  10747. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  10748. Deleted renameSingleFile().
  10749. Added copySingleFile(), deleteTempFile().
  10750. * DownloadEngine.h: Added virtual function afterEachIteration().
  10751. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  10752. in onEndOfRun() to afterEachIteration().
  10753. In onEndOfRun(), changed if condition to check whether filenameFixed is
  10754. true.
  10755. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  10756. In rangedFileCopy(), added try-catch block to properly close file
  10757. descriptors.
  10758. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  10759. Added afterEachIteration(), isFilenameFixed().
  10760. * Peer.cc: Changed choking strategy.
  10761. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  10762. * TrackerInitCommand.cc: Send completed event only once.
  10763. * DownloadEngine.cc: Added a call to afterEachIteration().
  10764. * TrackerUpdateCommand.cc: Do not stop execution after download
  10765. completes.
  10766. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  10767. connect the peers at most MAX_PEER_UPDATE when a peer list is
  10768. received from a tracker.
  10769. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  10770. Decreased the number of failure peers to delete to 0(just comment out
  10771. the line).
  10772. * Release 0.3.1
  10773. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10774. * PeerInteractionCommand.cc: added a call to
  10775. TorrentMan::unadvertisePiece in Destructor.
  10776. * PeerInteractionCommand.cc: make have message sent immediately
  10777. if the size of pending message queue is zero.
  10778. * TorrentMan.cc: set the maximum size of peer list to 250.
  10779. * TorrentMan.h: changed the container type of Peers and UsedPieces
  10780. to deque.
  10781. * Util.cc: fixed rangedFileCopy.
  10782. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  10783. to Constructor. Also, moved digest cleanup to Destructor.
  10784. * MetaFileUtil.cc: fixed memory leak
  10785. * replaced std::vector with std::deque.
  10786. * AbstractCommand.cc: casted timeout value to long long int.
  10787. * ChunkedEncoding.cc: fixed memory leak.
  10788. * PeerInteractionCommand.cc: casted timeout value to long long int.
  10789. * SleepCommand.cc: casted timeout value to long long int.
  10790. * Data.cc: fixed memory leak.
  10791. * Data.cc: fixed toLLInt().
  10792. * BitfieldMan.cc: fixed memory leak.
  10793. * TorrentMan.cc: initialized storeDir to ".".
  10794. * TorrentMan.cc: fixed memory leak.
  10795. * TorrentMan.cc: corrected file paths of splitted files.
  10796. * PeerAbstractCommand.cc: casted timeout to long long int.
  10797. * main.cc: added delete(req) and delete(te->diskWriter).
  10798. * RequestSlot.cc: casted timeout value to long long int.
  10799. * Request.cc: fixed memory leak.
  10800. * PendingMessage.cc: make HAVE messages sent only when peer does not
  10801. have the piece.
  10802. * Peer.{h,cc}: added hasPiece(int index).
  10803. * main.cc: corrected addCommand.
  10804. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10805. * BitTorrent protocol support added.
  10806. * Release 0.3.0
  10807. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  10809. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10810. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  10811. decoding did not work properly.
  10812. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10813. * DownloadEngine.h: included sys/time.h
  10814. * DownloadEngine.cc: remove sys/time.h
  10815. * Makefile.am (SUBDIRS): Add intl.
  10816. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  10817. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. * main.cc: correct help message for --http-auth-scheme.
  10819. * main.cc: changed e-mail address for bug reports.
  10820. * ja.po: added japanese translation.
  10821. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10822. * SimpleLogger.cc: flush log file instead of stdout.
  10823. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10824. * main.cc: Fixed command-line option: max-tries
  10825. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  10826. does not equal to seg.sp.
  10827. * DownloadCommand.cc: If EOF is got from the server and the total size
  10828. of file is not zero, then throw DlRetryEx.
  10829. * main.cc: Set the minium value of min-segment-size to 1024.
  10830. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  10831. fails because of a regression since 0.2.0 release.
  10832. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10833. * HttpConnection.cc:
  10834. * common.h: defined the user agent name as macro
  10835. * DownloadEngine.{h, cc}:
  10836. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  10837. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  10838. * main.cc: Download complete/abort message is now generated by main.
  10839. * Makefile.am (SUBDIRS): Add m4.
  10840. (ACLOCAL_AMFLAGS): New variable.
  10841. (EXTRA_DIST): New variable.
  10842. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  10843. * gettext: added gettext functionality
  10844. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10845. * AbstractCommand.cc:
  10846. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  10847. unregister its cuid from SegmentMan.
  10848. * DownloadEngine.cc: .aria2 file was written when a downloading
  10849. failed with errors.
  10850. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  10851. Added "User-Agent" header to CONNECT proxy request.
  10852. Fixed "Proxy-Authorization" header. Now proxy authorization works
  10853. properly.
  10854. * Logger.h:
  10855. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  10856. * ChunkedEncoding.cc: Added #include directive for strings.h
  10857. * Release 0.2.1
  10858. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. * Util.{h,cc}: added startsWith().
  10860. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  10861. Util::endsWith().
  10862. * SocketCore.cc: struct addrinfo is now zero-initialized.
  10863. * common.h: added #include directive of limit.h.
  10864. * DownloadEngine.cc: added #include directive of sys/time.h and
  10865. algorithm.
  10866. * Exception.h: added #include directive of stdio.h.
  10867. * AbstractCommand.h: added #include directive of sys/time.h.
  10868. * DownloadCommand.h: added #include directive of sys/time.h.
  10869. * *.h: added #include directive of common.h to all base classes.
  10870. subclasses' one was removed.
  10871. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  10872. does not define these macros.
  10873. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10874. * Release 0.2.0
  10875. * main.cc:
  10876. * HttpInitiateConnectionCommand.{h,cc}:
  10877. * prefs.h:
  10878. * HttpConnection.{h,cc}: added --http-proxy-method option.
  10879. We can now use GET command in http proxy.
  10880. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  10882. that splits slowest segment of SegmentMan::commands vector.
  10883. This is the default split algorithm of aria2.
  10884. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  10885. that splits first segment of SegmentMan::commands vector.
  10886. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  10887. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  10888. * Segment.h:
  10889. * SegmentMan.cc: Added speed field to Segment.h
  10890. * main.cc: -s option now affects all URLs in command-line arguemtns.
  10891. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  10892. * message.h: Change file size related %d to %lld.
  10893. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. * FtpInitiateConnectionCommand.{h,cc}:
  10895. * FtpNegotiationCommand.{h,cc}:
  10896. * FtpDownloadCommand.{h,cc}:
  10897. * FtpConnection.{h,cc}: Added FTP support
  10898. * SimpleLogger.cc: Log message now includes time information.
  10899. * main.cc: The value of --http-auth-scheme option is chagned from
  10900. 'BASIC' to 'basic'
  10901. * main.cc: Added --timeout command-line option.
  10902. * main.cc: Added --min-segment-size command-line option.
  10903. * main.cc: Added --max-retries command-line option.
  10904. * prefs.h: option string constants are now defined in prefs.h
  10905. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10906. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  10907. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  10908. with version 0.1.0's one.
  10909. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10910. * configure.in: Added --enable-ssl option to configure script.
  10911. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  10912. cannot permit absoluteURI as Request-URI.
  10913. * HttpConnection.cc: Added Referer support.
  10914. * main.cc: Added referer command-line option.
  10915. * main.cc: Added rety-wait command-line option.
  10916. * Exception.h: Fixed formating bug in Exception::setMsg()
  10917. * SocketCore.{h,cc}:
  10918. * Socket.{h, cc}:
  10919. * Request.cc:
  10920. * InitiateConnectionCommandFactory.cc:
  10921. * HttpRequestCommand.cc: Added HTTPS support.
  10922. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  10923. for SocketCore.
  10924. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  10925. size is wrong
  10926. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  10927. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  10928. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  10929. * Release 0.1.0