ChangeLog 428 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283
  1. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Fixed compile warning on linux-amd64
  3. * src/FtpConnection.cc
  4. * src/IteratableChunkChecksumValidator.cc
  5. * src/MultiDiskAdaptor.cc
  6. Fixed the bug that unit test fails on linux-amd64
  7. * test/UtilTest.cc
  8. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9. Added --dht-file-path option to change the path to dht.dat, which is a
  10. serialized DHT routing table.
  11. * src/OptionHandlerFactory.cc
  12. * src/option_processing.cc
  13. * src/usage_text.h
  14. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15. Fixed possible underflow.
  16. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  17. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18. Fixed the bug that last character in URI is not encoded.
  19. * src/Request.cc
  20. * test/RequestTest.cc
  21. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  22. Fixed the bug that referer header field contains fragment.
  23. Now Request class removes fragment part of URI and encodes it
  24. in Request::setUri() and setReferer().
  25. * src/Request.h
  26. * src/Request.cc
  27. * test/RequestTest.cc
  28. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  29. Added missing m4 macros.
  30. * m4/cppunit.m4
  31. * m4/libgcrypt.m4
  32. * m4/libgnutls-extra.m4
  33. * m4/libgnutls.m4
  34. * m4/libxml2.m4
  35. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  36. Fixed compile error with gcc-4.4(snapshot)
  37. * src/File.cc
  38. * src/FtpConnection.cc
  39. * src/OptionHandlerImpl.h
  40. * src/Util.cc
  41. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  42. Removed assert()
  43. * src/SocketBuffer.cc (SocketBuffer::send)
  44. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  45. Changed the type of _numNewConnection to unsigned int.
  46. * src/ActivePeerConnectionCommand.cc
  47. * src/ActivePeerConnectionCommand.h
  48. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  49. * Release 0.16.0
  50. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  51. Updated doc
  52. * README
  53. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  54. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  55. translations. Thanks to all translators.
  56. * po/bg.po
  57. * po/de.po
  58. * po/fr.po
  59. * po/ja.po
  60. * po/zh_CN.po
  61. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  62. Bump up version number to 0.16.0.
  63. * configure.ac
  64. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  65. Casted entry->maxConnections to int32_t for std::min<T> with T =
  66. int32_t.
  67. Changed the type of count to int32_t.
  68. * src/Metalink2RequestGroup.cc
  69. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  70. Added test for Time::elapsed(time_t).
  71. * test/TimeTest.cc
  72. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  73. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  74. Util::difftv() should be used instead.
  75. * src/TimeA2.cc
  76. * src/TimeA2.h
  77. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  78. Made socket for dht connections non-blocking
  79. * src/DHTAbstractMessage.cc
  80. * src/DHTAbstractMessage.h
  81. * src/DHTConnection.h
  82. * src/DHTConnectionImpl.cc
  83. * src/DHTConnectionImpl.h
  84. * src/DHTMessage.h
  85. * src/DHTMessageDispatcherImpl.cc
  86. * src/DHTMessageDispatcherImpl.h
  87. * src/DHTUnknownMessage.cc
  88. * src/DHTUnknownMessage.h
  89. * src/SocketCore.cc
  90. * src/SocketCore.h
  91. * test/MockDHTMessage.h
  92. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  93. Changed the type of offset to int.
  94. * src/ParameterizedStringParser.cc
  95. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  96. Made getAsInt() return int32_t
  97. * src/Option.h
  98. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  99. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  100. build.
  101. * configure.ac
  102. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  103. Use sqlite3_open if sqlite3_open_v2 is not available.
  104. * src/Sqlite3MozCookieParser.cc
  105. * src/Sqlite3MozCookieParser.h
  106. * m4/sqlite3.m4
  107. * test/Sqlite3MozCookieParserTest.cc
  108. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  109. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  110. * src/BtPieceMessage.cc
  111. * src/DHTPeerAnnounceStorage.cc
  112. * src/DefaultPieceStorage.cc
  113. * src/DownloadCommand.cc
  114. * src/DownloadEngine.cc
  115. * src/FtpConnection.cc
  116. * src/PeerConnection.cc
  117. * src/PeerMessageUtil.cc
  118. * src/RequestGroup.cc
  119. * src/RequestGroupMan.cc
  120. * src/SimpleBtMessage.cc
  121. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  122. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  123. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  124. * src/AbstractDiskWriter.cc
  125. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  126. Don't set Request::supportsPersistentConnection() in HttpConnection
  127. since this code is also used in AbstractProxyResponseCommand.
  128. Moved those code to HttpResponse.
  129. * src/HttpResponse.cc
  130. * src/HttpResponse.h
  131. * src/HttpConnection.cc
  132. * src/HttpConnection.h
  133. * src/HttpResponseCommand.cc
  134. * test/HttpResponseTest.cc
  135. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  136. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  137. The configuration is minimum: no torrent, no metalink, so there may be
  138. other compile error on their code.
  139. * src/a2netcompat.h
  140. * src/File.cc
  141. * src/File.h
  142. * src/SocketCore.cc
  143. * src/SocketCore.h
  144. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  145. Made a socket of incoming peer non-blocking.
  146. * src/PeerListenCommand.cc
  147. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  148. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  149. whole message data is not sent in one send() call.
  150. * src/BtPieceMessage.cc
  151. * src/BtPieceMessage.h
  152. * src/PeerConnection.cc
  153. * src/PeerConnection.h
  154. * src/SimpleBtMessage.cc
  155. * src/SimpleBtMessage.h
  156. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  157. Fixed the bug that aria2 downloads faster than max-download-limit when
  158. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  159. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  160. , instead of sum of them.
  161. * src/ActivePeerConnectionCommand.cc
  162. * src/DefaultBtInteractive.cc
  163. * src/DownloadCommand.cc
  164. * src/PeerInteractionCommand.cc
  165. * src/PeerReceiveHandshakeCommand.cc
  166. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  167. Fixed the bug that HTTPS download fails.
  168. * src/AbstractCommand.cc
  169. * src/AbstractCommand.h
  170. * src/DownloadCommand.cc
  171. * src/FtpConnection.cc
  172. * src/HttpConnection.cc
  173. * src/HttpRequestCommand.cc
  174. * src/HttpResponseCommand.cc
  175. * src/HttpSkipResponseCommand.cc
  176. * src/MSEHandshake.cc
  177. * src/PeerConnection.cc
  178. * src/SocketCore.cc
  179. * src/SocketCore.h
  180. Fixed the bug that aria2 doesn't download whole content body and cannot
  181. reuse connection if chunked transfer encoding and gzip content encoding
  182. are set.
  183. * src/DownloadCommand.cc
  184. * src/HttpSkipResponseCommand.cc
  185. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  186. Updated man page.
  187. * doc/aria2c.1.txt
  188. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  189. When error occurred while aria2 was parsing an .aria2.conf file, print
  190. the usage of the option that caused error.
  191. * src/option_processing.cc
  192. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  193. Fixed compile error on OptionHandlerException
  194. * src/Makefile.am
  195. * src/OptionHandlerException.cc
  196. * src/OptionHandlerException.h
  197. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  198. Moved message of the error to OptionHandlerException.h
  199. * src/NameMatchOptionHandler.h
  200. * src/OptionHandlerException.h
  201. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  202. When error occurs while aria2 is parsing an command-line option, print
  203. the usage of the option.
  204. * src/Makefile.am
  205. * src/NameMatchOptionHandler.h
  206. * src/OptionHandlerException.h
  207. * src/option_processing.cc
  208. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  209. Reverted previous change.
  210. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  211. username is not in URI.
  212. * src/HttpRequest.cc
  213. * src/Request.cc
  214. * test/HttpRequestTest.cc
  215. * test/RequestTest.cc
  216. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  217. Now colon is required for username and password in FTP URL, like:
  218. ftp://username:password@host.
  219. If colon is not there, aria2 don't parse it as a username. For example,
  220. aria2 don't retrieve username from ftp://username@host.
  221. This fix was made in order to login FTP server via non-transparent ftp
  222. proxy.
  223. * src/Request.cc
  224. * test/RequestTest.cc
  225. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  226. Use netrc for HTTP.
  227. Now FTP user/password is sent in Authorization header when
  228. --ftp-via-http-proxy=get is given.
  229. * src/AuthConfigFactory.cc
  230. * src/HttpRequest.cc
  231. * src/HttpRequest.h
  232. * src/NetrcAuthResolver.cc
  233. * src/NetrcAuthResolver.h
  234. * src/OptionHandlerFactory.cc
  235. * src/option_processing.cc
  236. * src/prefs.cc
  237. * src/prefs.h
  238. * test/AuthConfigFactoryTest.cc
  239. * test/HttpRequestTest.cc
  240. * test/NetrcAuthResolverTest.cc
  241. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  242. Issue PWD command first and get working directory and use it as a prefix
  243. for CWD command.
  244. * src/DownloadEngine.cc
  245. * src/DownloadEngine.h
  246. * src/FtpConnection.cc
  247. * src/FtpConnection.h
  248. * src/FtpFinishDownloadCommand.cc
  249. * src/FtpInitiateConnectionCommand.cc
  250. * src/FtpNegotiationCommand.cc
  251. * src/FtpNegotiationCommand.h
  252. * test/FtpConnectionTest.cc
  253. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  254. Removed default user/pass for FTP user/pass, since it should not have
  255. precedence over netrc configuration by default.
  256. * src/OptionHandlerFactory.cc
  257. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  258. Added debug log for socket event.
  259. * src/AbstractCommand.cc
  260. * src/PeerAbstractCommand.cc
  261. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  262. Log microseconds.
  263. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  264. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  265. Replaced HelpItem.cc with OptionHandler.cc.
  266. * po/POTFILES.in
  267. Updated po files with 'make update-po'
  268. * po/aria2c.pot
  269. * po/*.po
  270. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  271. Removed possible values from the text.
  272. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  273. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  274. Removed unused preferences:
  275. PREF_NO_PREALLOCATION
  276. PREF_STDOUT_LOG
  277. PREF_TRACKER_MAX_TRIES
  278. PREF_DIRECT_DOWNLOAD_TIMEOUT
  279. PREF_MIN_SEGMENT_SIZE
  280. * src/option_processing.cc
  281. * src/prefs.cc
  282. * src/prefs.h
  283. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  284. Integrated HelpItem into OptionParser to ease the workload for adding
  285. new options. Removed default value from usage text.
  286. * src/HelpItem.cc: Removed.
  287. * src/HelpItem.h: Removed.
  288. * src/HelpItemFactory.cc: Removed.
  289. * src/HelpItemFactory.h: Removed.
  290. * src/Makefile.am
  291. * src/Makefile.in
  292. * src/NameMatchOptionHandler.h
  293. * src/OptionHandler.cc
  294. * src/OptionHandler.h
  295. * src/OptionHandlerFactory.cc
  296. * src/OptionHandlerImpl.h
  297. * src/OptionParser.cc
  298. * src/OptionParser.h
  299. * src/TagContainer.cc: Removed.
  300. * src/TagContainer.h: Removed.
  301. * src/TaggedItem.cc: Removed.
  302. * src/TaggedItem.h: Removed.
  303. * src/main.cc
  304. * src/option_processing.cc
  305. * src/usage_text.h
  306. * src/version_usage.cc
  307. * test/HelpItemTest.cc: Removed.
  308. * test/Makefile.am
  309. * test/Makefile.in
  310. * test/OptionHandlerTest.cc
  311. * test/OptionParserTest.cc
  312. * test/TagContainerTest.cc: Removed.
  313. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  314. Moved `TransferStat stat = ...' to inside the `if' clause.
  315. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  316. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  317. Fixed the bug that a block in a piece is requested when same block is
  318. already requested to the same peer in end game mode.
  319. * src/BtRequestFactory.h
  320. * src/DefaultBtInteractive.cc
  321. * src/DefaultBtRequestFactory.cc
  322. * src/DefaultBtRequestFactory.h
  323. * src/DefaultPieceStorage.cc
  324. * src/DefaultPieceStorage.h
  325. * src/PieceStorage.h
  326. * src/UnknownLengthPieceStorage.cc
  327. * src/UnknownLengthPieceStorage.h
  328. * test/DefaultBtRequestFactoryTest.cc
  329. * test/DefaultPieceStorageTest.cc
  330. * test/MockBtRequestFactory.h
  331. * test/MockPieceStorage.h
  332. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  333. Removed _uploadLength and _downloadLength from PeerSessionResource
  334. and use PeerStat::_sessionUploadLength and
  335. PeerStat::_sessionDownloadLength.
  336. * src/PeerSessionResource.cc
  337. * src/PeerSessionResource.h
  338. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  339. Fixed the bug that prefixLength of split bucket which doesn't include
  340. local node ID is incremented.
  341. * src/DHTBucket.cc
  342. * src/DHTBucket.h
  343. * test/DHTBucketTest.cc
  344. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  345. Added cookies.sqlite to EXTRA_DIST
  346. * test/Makefile.am
  347. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  348. Added Turkish translation. Updated French, German, Russian and
  349. Simplified Chinese translations. Thanks to all translators.
  350. * po/LINGUAS
  351. * po/de.po
  352. * po/fr.po
  353. * po/ru.po
  354. * po/tr.po
  355. * po/zh_CN.po
  356. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  357. Added deliminating text to the beginning of the log so that one can find
  358. where the log starts easily.
  359. * src/main.cc
  360. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  361. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  362. to fix compile error when async DNS is not enabled by configuration.
  363. * src/AbstractCommand.cc
  364. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  365. If establishing conneciton to a server is failed, then mark error on
  366. its ServerStat.
  367. Added the cause of error to log when error event occurred.
  368. Moved message string to message.h for translation.
  369. * src/AbstractCommand.cc
  370. * src/AbstractCommand.h
  371. * src/FtpNegotiationCommand.cc
  372. * src/HttpRequestCommand.cc
  373. * src/PeerAbstractCommand.cc
  374. * src/message.h
  375. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  376. Added the function to get error message from socket.
  377. * src/SocketCore.cc
  378. * src/SocketCore.h
  379. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  380. Added convenient method RequestGroupMan::getOrCreateServerStat()
  381. * src/RequestGroupMan.cc
  382. * src/RequestGroupMan.h
  383. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  384. If error event is received in epoll, then abort download immediately.
  385. * src/AbstractCommand.cc
  386. * src/Command.cc
  387. * src/Command.h
  388. * src/DownloadEngine.cc
  389. * src/PeerAbstractCommand.cc
  390. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  391. Added usage message for --uri-selector, --server-stat-of,
  392. --server-stat-in, --server-stat-timeout options.
  393. * src/HelpItemFactory.cc
  394. * src/usage_text.h
  395. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  396. Added upper limit of FTP response buffer. The current implementation
  397. uses 4096bytes as a limit.
  398. * src/FtpConnection.cc
  399. * src/FtpConnection.h
  400. * test/FtpConnectionTest.cc
  401. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  402. Use non-blocking socket for TCP communication to avoid possible
  403. blocking due to buffer full.
  404. * src/AbstractProxyRequestCommand.cc
  405. * src/FtpConnection.cc
  406. * src/FtpConnection.h
  407. * src/FtpNegotiationCommand.cc
  408. * src/FtpNegotiationCommand.h
  409. * src/HttpConnection.cc
  410. * src/HttpConnection.h
  411. * src/HttpRequestCommand.cc
  412. * src/InitiatorMSEHandshakeCommand.cc
  413. * src/InitiatorMSEHandshakeCommand.h
  414. * src/MSEHandshake.cc
  415. * src/MSEHandshake.h
  416. * src/Makefile.am
  417. * src/PeerConnection.cc
  418. * src/PeerConnection.h
  419. * src/PeerInteractionCommand.cc
  420. * src/PeerListenCommand.cc
  421. * src/ReceiverMSEHandshakeCommand.cc
  422. * src/ReceiverMSEHandshakeCommand.h
  423. * src/SocketBuffer.cc
  424. * src/SocketBuffer.h
  425. * src/SocketCore.cc
  426. * src/SocketCore.h
  427. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  428. Call setStatusRealtime() in constructor.
  429. * src/RealtimeCommand.cc
  430. * src/RealtimeCommand.h
  431. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  432. Call Download::setNoWait(true) to execute newly created command without
  433. a pause.
  434. * src/AbstractCommand.cc
  435. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  436. Added --max-file-not-found=NUM option. If aria2 receives `file not
  437. found' error from HTTP/FTP server NUM times without getting single
  438. bytes of data, then force the download to fail.
  439. Basically aria2 tris all URIs available. So if long list of URIs are
  440. specified in Metalink, then aria2 will take a long time to fail
  441. eventually if all URIs are outdated. This option eases this situation
  442. to limit the number of servers to try.
  443. * src/FtpNegotiationCommand.cc
  444. * src/HelpItemFactory.cc
  445. * src/HttpResponseCommand.cc
  446. * src/OptionHandlerFactory.cc
  447. * src/PeerStat.h
  448. * src/RequestGroup.cc
  449. * src/RequestGroup.h
  450. * src/SegmentMan.cc
  451. * src/SegmentMan.h
  452. * src/option_processing.cc
  453. * src/prefs.cc
  454. * src/prefs.h
  455. * src/usage_text.h
  456. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  457. Fixed the bug that bulkReceiveResponse() reads all received data as a
  458. response even if more than one response is in it.
  459. * src/FtpConnection.cc
  460. * src/FtpConnection.h
  461. * test/FtpConnectionTest.cc
  462. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  463. Merged from stable-0.15
  464. * m4/libcares.m4
  465. Use pkg-config
  466. * m4/sqlite3.m4
  467. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  468. Removed unnecessary if statement.
  469. * src/DefaultPieceStorage.cc (initPieceStorage)
  470. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  471. Added --connect-timeout option to specify connect timeout in seconds.
  472. This option is in effect for HTTP/FTP/proxy server. The timeout for
  473. connecting to BitTorrent peer is not controlled by this option.
  474. * src/AbstractProxyRequestCommand.cc
  475. * src/FtpNegotiationCommand.cc
  476. * src/HelpItemFactory.cc
  477. * src/HttpRequestCommand.cc
  478. * src/OptionHandlerFactory.cc
  479. * src/option_processing.cc
  480. * src/prefs.cc
  481. * src/prefs.h
  482. * src/usage_text.h
  483. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  484. Added help message for -R option.
  485. * src/HelpItemFactory.cc
  486. * src/usage_text.h
  487. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  488. Added the message that the time is in local time zone.
  489. * src/RequestGroup.cc
  490. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  491. Implemented the ability to get timestamp from remote FTP server using
  492. MDTM command described in RFC3659.
  493. * src/FtpConnection.cc
  494. * src/FtpConnection.h
  495. * src/FtpNegotiationCommand.cc
  496. * src/FtpNegotiationCommand.h
  497. * test/FtpConnectionTest.cc
  498. * test/Makefile.am
  499. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  500. Implemented the ability to get timestamp from remote HTTP server and
  501. apply it to local file. To enable this feature, --remote-time option
  502. is added. No usage text has been written yet.
  503. If several servers returns difference timestamp, then aria2 uses latest
  504. one.
  505. * src/CopyDiskAdaptor.cc
  506. * src/CopyDiskAdaptor.h
  507. * src/DirectDiskAdaptor.cc
  508. * src/DirectDiskAdaptor.h
  509. * src/DiskAdaptor.h
  510. * src/File.cc
  511. * src/File.h
  512. * src/HttpHeader.cc
  513. * src/HttpHeader.h
  514. * src/HttpResponse.cc
  515. * src/HttpResponse.h
  516. * src/HttpResponseCommand.cc
  517. * src/HttpResponseCommand.h
  518. * src/MultiDiskAdaptor.cc
  519. * src/MultiDiskAdaptor.h
  520. * src/OptionHandlerFactory.cc
  521. * src/RequestGroup.cc
  522. * src/RequestGroup.h
  523. * src/RequestGroupMan.cc
  524. * src/option_processing.cc
  525. * src/prefs.cc
  526. * src/prefs.h
  527. * test/CopyDiskAdaptorTest.cc
  528. * test/FileTest.cc
  529. * test/Makefile.am
  530. * test/Makefile.in
  531. * test/MultiDiskAdaptorTest.cc
  532. * test/TestUtil.cc
  533. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  534. Fixed the bug that DiskWriterEntry is not created when its
  535. FileEntry.isRequested() is false and it doesn't share a piece with
  536. other FileEntries that are requested. This bug causes segmentation fault
  537. in the end.
  538. * src/MultiDiskAdaptor.cc
  539. * src/MultiDiskAdaptor.h
  540. * src/MultiFileAllocationIterator.cc
  541. * test/MultiDiskAdaptorTest.cc
  542. * test/MultiFileAllocationIteratorTest.cc
  543. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  544. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  545. called if the number of file entries are greater than max open files.
  546. * src/AbstractSingleDiskAdaptor.cc
  547. * src/AbstractSingleDiskAdaptor.h
  548. * src/DiskAdaptor.h
  549. * src/MultiDiskAdaptor.cc
  550. * src/MultiDiskAdaptor.h
  551. * test/MultiDiskAdaptorTest.cc
  552. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  553. Added a constuctor that receives struct timeval.
  554. Added operator<.
  555. * src/TimeA2.cc
  556. * src/TimeA2.h
  557. * test/TimeTest.cc
  558. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  559. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  560. * src/CookieParser.cc
  561. * test/CookieParserTest.cc
  562. * test/HttpResponseTest.cc
  563. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  564. Implmented the functions to parse date.
  565. * src/TimeA2.cc
  566. * src/TimeA2.h
  567. * test/TimeTest.cc
  568. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  569. Added "Firefox3 Cookie" feature to FeatureConfig
  570. * src/FeatureConfig.cc
  571. * src/FeatureConfig.h
  572. * test/FeatureConfigTest.cc
  573. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  574. Bump up version number to 0.16.0b
  575. * configure.ac
  576. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  577. Use pkg-config if is is available.
  578. * m4/openssl.m4
  579. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  580. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  581. * src/BtAnnounce.h
  582. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  583. If an error occurred with a URI, remove identical URI from remaining
  584. URI list because it is likely that same error occurred in the end and it
  585. is waste of time.
  586. * src/AbstractCommand.cc
  587. * src/RequestGroup.cc
  588. * src/RequestGroup.h
  589. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  590. Removed wrong comment.
  591. * src/DefaultPeerStorage.cc
  592. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  593. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  594. Added return value of getpid() to argument of srand() to achieve more
  595. randomized value.
  596. * src/SimpleRandomizer.cc
  597. * src/SimpleRandomizer.h
  598. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  599. Contact tracker frequently when the number of connections are 0 and
  600. download is not finished yet.
  601. * src/ActivePeerConnectionCommand.cc
  602. * src/BtAnnounce.h
  603. * src/DefaultBtAnnounce.cc
  604. * src/DefaultBtAnnounce.h
  605. * test/MockBtAnnounce.h
  606. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  607. Moved threshold values to UTPexExtensionMessage.
  608. * src/DefaultBtInteractive.cc
  609. * src/Peer.cc
  610. * src/Peer.h
  611. * src/UTPexExtensionMessage.cc
  612. * src/UTPexExtensionMessage.h
  613. * test/UTPexExtensionMessageTest.cc
  614. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  615. Added _incoming member to Peer class and made it true if the peer
  616. initiated connection. Don't add those peer to UTPex message.
  617. If extended handshake is received, assign _incoming to false.
  618. * src/DefaultBtInteractive.cc
  619. * src/HandshakeExtensionMessage.cc
  620. * src/Peer.cc
  621. * src/Peer.h
  622. * src/PeerListenCommand.cc
  623. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  624. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  625. Encoding Decoder. Removed size threshold for turning off on the fly
  626. inflation because resulting file may or may not be inflated depending
  627. on the file size and I think it is not expected by users.
  628. This change fixes segmentation fault when Metalink file contains gzipped
  629. file and its filesize is provided.
  630. * src/HttpResponseCommand.cc
  631. * src/HttpResponseCommand.h
  632. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  633. Made Cookie immutable.
  634. * src/Cookie.cc
  635. * src/Cookie.h
  636. * src/CookieParser.cc
  637. * src/CookieParser.h
  638. * src/CookieStorage.cc
  639. * test/CookieParserTest.cc
  640. * test/CookieStorageTest.cc
  641. * test/NsCookieParserTest.cc
  642. * test/Sqlite3MozCookieParserTest.cc
  643. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  644. Removed CookieBox, CookieBoxFactory.
  645. * src/CookieBox.cc
  646. * src/CookieBox.h
  647. * src/CookieBoxFactory.cc
  648. * src/CookieBoxFactory.h
  649. * src/Makefile.am
  650. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  651. Use CookieStorage class instead of CookieBox class.
  652. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  653. * src/AbstractProxyRequestCommand.cc
  654. * src/CookieStorage.cc
  655. * src/DownloadEngine.cc
  656. * src/DownloadEngine.h
  657. * src/HttpConnection.cc
  658. * src/HttpConnection.h
  659. * src/HttpRequest.cc
  660. * src/HttpRequest.h
  661. * src/HttpRequestCommand.cc
  662. * src/HttpResponse.cc
  663. * src/HttpResponseCommand.cc
  664. * src/HttpSkipResponseCommand.cc
  665. * src/Makefile.am
  666. * src/MultiUrlRequestInfo.cc
  667. * src/Request.cc
  668. * src/Request.h
  669. * src/main.cc
  670. * test/AllTest.cc
  671. * test/CookieStorageTest.cc
  672. * test/CookieTest.cc
  673. * test/HttpRequestTest.cc
  674. * test/HttpResponseTest.cc
  675. * test/Makefile.am
  676. * test/NsCookieParserTest.cc
  677. * test/Sqlite3MozCookieParserTest.cc
  678. * test/nscookietest.txt
  679. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  680. Updated
  681. * test/Cookies.sqlite
  682. * test/nscookietest.txt
  683. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  684. Added tests for CookieStorage::load()
  685. * test/CookieStorageTest.cc
  686. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  687. Added CookieStorage class which is based on RFC2109 and manages cookies
  688. more strictly than CookieBox and CookieBoxFactory class.
  689. * src/CookieStorage.cc
  690. * src/CookieStorage.h
  691. * src/Cookie.cc
  692. * src/Cookie.h
  693. * test/CookieStorageTest.cc
  694. * test/CookieTest.cc
  695. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  696. Fixed the bug that commands are created more than the number of pieces.
  697. * src/RequestGroup.cc
  698. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  699. Fixed infinite loop bug in FTP when SIZE command failed.
  700. * src/FtpNegotiationCommand.cc
  701. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  702. Removed DirectDiskAdaptorTest.h
  703. * test/Makefile.am
  704. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  705. Fixed chunk checksum validation cannot detect trailing garbage data.
  706. BUG#2074141
  707. * src/AbstractSingleDiskAdaptor.cc
  708. * src/AbstractSingleDiskAdaptor.h
  709. * src/CheckIntegrityEntry.cc
  710. * src/CheckIntegrityEntry.h
  711. * src/DiskAdaptor.h
  712. * src/MultiDiskAdaptor.cc
  713. * src/MultiDiskAdaptor.h
  714. * src/RequestGroup.cc
  715. * test/DirectDiskAdaptorTest.cc
  716. * test/MultiDiskAdaptorTest.cc
  717. * test/TestUtil.cc
  718. * test/TestUtil.h
  719. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  720. Bump up version number of dht.dat file to 3. In version 3 format, time
  721. is stored in 64bit, network byte order.
  722. New build can load old format(version 2) but it saves the file in new
  723. format. It means once you used new build, your dht.dat becomes
  724. incompatible with older build.
  725. * src/DHTRoutingTableDeserializer.cc
  726. * src/DHTRoutingTableSerializer.cc
  727. * test/DHTRoutingTableSerializerTest.cc
  728. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  729. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  730. * test/Makefile.am
  731. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  732. Bump up version number of .aria2 control file to 0001.
  733. New aria2 can still load version 0000 file but it saves the file in
  734. version 0001 format. It means that new aria2 can resume download
  735. started by old aria2 but the opposite is not true.
  736. * src/DefaultBtProgressInfoFile.cc
  737. * src/DefaultBtProgressInfoFile.h
  738. * test/DefaultBtProgressInfoFileTest.cc
  739. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  740. Added ntoh64 and hton64 as inline functions.
  741. * src/Util.cc
  742. * test/UtilTest.cc
  743. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  744. Added sqlite3 depenency and Firefox3 cookie support.
  745. * README
  746. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  747. State that firefox3 cookie is supported explicitly in the usage.
  748. * src/usage_text.h
  749. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  750. Externalized message.
  751. * src/RequestGroupMan.cc
  752. * src/message.h
  753. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  754. Save temporary file first and rename to the destination on success.
  755. Added test cases.
  756. * src/RequestGroupMan.cc
  757. * test/RequestGroupManTest.cc
  758. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  759. Fixed the bug that the number of connected peer is exceeding the limit
  760. (55 by default) in seeding mode.
  761. Multiplied 0.8 to _maxUploadSpeedLimit.
  762. * src/ActivePeerConnectionCommand.cc
  763. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  764. Clear table item.
  765. * src/Dictionary.cc
  766. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  767. Fixed error handling of lseek.
  768. * src/AbstractDiskWriter.cc
  769. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  770. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  771. style cookie file.
  772. * src/usage_text.h
  773. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  774. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  775. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  776. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  777. * src/Util.cc
  778. * src/Util.h
  779. * src/CookieParser.cc
  780. * test/UtilTest.cc
  781. * test/CookieParserTest.cc
  782. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  783. Separate the implementation to load old mozilla format of cookie to
  784. NsCookieParser class.
  785. * src/CookieBoxFactory.cc
  786. * src/CookieBoxFactory.h
  787. * src/NsCookieParser.cc
  788. * src/NsCookieParser.h
  789. * test/NsCookieParserTest.cc
  790. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  791. Made parse() const
  792. * src/Sqlite3MozCookieParser.cc
  793. * src/Sqlite3MozCookieParser.h
  794. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  795. Added firefox3 cookie support based on the patch submitted by
  796. tizianomueller.
  797. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  798. this functionality.
  799. * configure.ac
  800. * m4/sqlite3.m4
  801. * src/CookieBoxFactory.cc
  802. * src/CookieBoxFactory.h
  803. * src/Makefile.am
  804. * src/Makefile.in
  805. * src/Sqlite3MozCookieParser.cc
  806. * src/Sqlite3MozCookieParser.h
  807. * src/main.cc
  808. * test/CookieBoxFactoryTest.cc
  809. * test/Makefile.am
  810. * test/Makefile.in
  811. * test/Sqlite3MozCookieParserTest.cc
  812. * test/badcookies.sqlite
  813. * test/cookies.sqlite
  814. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  815. Added Danish and Greek translations.
  816. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  817. Great thanks to all translators.
  818. * po/LINGUAS
  819. * po/el.po
  820. * po/da.po
  821. * po/es.po
  822. * po/ca.po
  823. * po/nn.po
  824. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  825. Fixed man page: --follow-bittorrent should be --follow-torrent
  826. * doc/aria2c.1.txt
  827. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  828. Fixed: numCommand is less than the value specified in -C option.
  829. * src/RequestGroup.cc
  830. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  831. Fixed occasional assertion failure in PieceSegment.
  832. Calling PieceStorage::getMissingPiece(size_t) was missing after
  833. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  834. creation of duplicate segments and one of the segment was finished then
  835. assertion failure was caused.
  836. * src/SegmentMan.cc
  837. * test/SegmentManTest.cc
  838. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  839. Added options to load/save the server's performance/status to a file
  840. and the timeout to drop their data.
  841. --server-stat-of=FILE specifies the file to which performance data
  842. is saved.
  843. --server-stat-if=FILE specifies the file to read previously saved
  844. by --server-stat-of option. Might be used with --uri-selector=feedback.
  845. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  846. TIMEOUT is specified in seconds and the default value is 24hours.
  847. * src/MultiUrlRequestInfo.cc
  848. * src/OptionHandlerFactory.cc
  849. * src/RequestGroupMan.cc
  850. * src/RequestGroupMan.h
  851. * src/ServerStatMan.cc
  852. * src/ServerStatMan.h
  853. * src/option_processing.cc
  854. * src/prefs.cc
  855. * src/prefs.h
  856. * test/ServerStatManTest.cc
  857. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  858. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  859. * src/ServerStatMan.cc
  860. * src/ServerStatMan.h
  861. * test/ServerStatManTest.cc
  862. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  863. Implemented ServerStatMan::load(...) function and its test case.
  864. * src/ServerStat.cc
  865. * src/ServerStat.h
  866. * src/ServerStatMan.cc
  867. * test/ServerStatManTest.cc
  868. * test/ServerStatTest.cc
  869. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  870. Use time_t instead of int32_t. Use int64_t where milli second is
  871. expected.
  872. * src/TimeA2.cc
  873. * src/TimeA2.h
  874. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  875. Implemented ServerStatMan::save(...) function and its test case.
  876. * src/ServerStat.cc
  877. * src/ServerStat.h
  878. * src/ServerStatMan.cc
  879. * src/ServerStatMan.h
  880. * test/ServerStatManTest.cc
  881. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  882. Now aria2 uses name attribute in Metalink as local filename in
  883. BitTorrent downloads. BUG#2033999
  884. * src/BtContext.h
  885. * src/BtDependency.cc
  886. * src/DefaultBtContext.cc
  887. * src/DefaultBtContext.h
  888. * src/SingleFileDownloadContext.cc
  889. * src/SingleFileDownloadContext.h
  890. * test/BtDependencyTest.cc
  891. * test/DefaultBtContextTest.cc
  892. * test/MockBtContext.h
  893. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  894. Added AC_C_BIGENDIAN
  895. * src/configure.ac
  896. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  897. Limited numCommand less than or equal to the number of piece.
  898. * src/RequestGroup.cc
  899. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  900. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  901. directive.
  902. * test/DefaultPieceStorageTest.cc
  903. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  904. Fixed memory leak in test code
  905. * test/AnnounceListTest.cc
  906. * test/DefaultPeerListProcessorTest.cc
  907. * test/DefaultPeerStorageTest.cc
  908. * test/MetaFileUtilTest.cc
  909. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  910. Fixed wrong argument passing to BitfieldMan::isBitSet()
  911. * src/DefaultPieceStorage.cc
  912. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  913. Initialized _directIOAllowed
  914. * src/MultiDiskAdaptor.cc
  915. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  916. Fixed memory leak
  917. * src/GZipDecoder.cc
  918. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  919. Fixed memory leak
  920. * src/MetalinkParserStateMachine.cc
  921. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  922. Fixed memory leak
  923. * src/Dictionary.cc
  924. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  925. Fixed memory leak
  926. * src/IteratableChunkChecksumValidator.h
  927. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Fixed unmatched malloc/free.
  929. * src/IteratableChunkChecksumValidator.cc
  930. * src/IteratableChecksumValidator.cc
  931. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  932. Removed max chunk size check. This change fixes BUG#2040169
  933. * src/ChunkedDecoder.cc
  934. * src/ChunkedDecoder.h
  935. * test/ChunkedDecoderTest.cc
  936. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  937. Implemented download speed based URI selection algorithm.
  938. Introduced new option --uri-selector.
  939. If --uri-selector=feedback is given, aria2 uses download speed observed
  940. in the previous downloads and chooses fastest server in the URI list.
  941. Currently at most 10 URIs are considered to introduce randomeness for
  942. finding better servers. The speed is average download speed in the
  943. downloads.
  944. On the other hand, if --uri-selector=inorder is given, which is default,
  945. URI is tried in order in URI list.
  946. The usage text for the new option has not been written yet.
  947. * src/AbstractCommand.cc
  948. * src/DownloadCommand.cc
  949. * src/DownloadEngine.cc
  950. * src/DownloadEngineFactory.cc
  951. * src/InOrderURISelector.cc
  952. * src/InOrderURISelector.h
  953. * src/OptionHandlerFactory.cc
  954. * src/PeerStat.h
  955. * src/RequestGroup.cc
  956. * src/RequestGroup.h
  957. * src/RequestGroupMan.cc
  958. * src/RequestGroupMan.h
  959. * src/SegmentMan.cc
  960. * src/SegmentMan.h
  961. * src/ServerStat.cc
  962. * src/ServerStat.h
  963. * src/ServerStatMan.cc
  964. * src/ServerStatMan.h
  965. * src/ServerStatURISelector.cc
  966. * src/ServerStatURISelector.h
  967. * src/URISelector.h
  968. * src/option_processing.cc
  969. * src/prefs.cc
  970. * src/prefs.h
  971. * test/InOrderURISelectorTest.cc
  972. * test/RequestGroupManTest.cc
  973. * test/ServerStatManTest.cc
  974. * test/ServerStatURISelectorTest.cc
  975. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  976. * Release 0.15.1+2
  977. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  978. Bump up version number to 0.15.1+2
  979. * configure.ac
  980. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  981. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  982. * m4/aria2_arg.m4
  983. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  984. * Release 0.15.1+1
  985. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  986. Bump up version number to 0.15.1+1
  987. * configure.ac
  988. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  989. Fixed the bug that causes segmentaion fault when resuming download
  990. using metalink without size tag. Reproducible only using HTTP URI.
  991. * src/HttpResponseCommand.cc
  992. * src/FtpNegotiationCommand.cc
  993. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  994. * Release 0.15.1
  995. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  996. Updated Bulgarian and French translations, thanks to all translators.
  997. * po/bg.po
  998. * po/fr.po
  999. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1000. Bump up version number to 0.15.1
  1001. * configure.ac
  1002. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1003. Avoid repeated call of gettimeofday() when calculating speed.
  1004. * src/SpeedCalc.cc
  1005. * src/SpeedCalc.h
  1006. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1007. Removed writable check when socket's send buffer is full in BitTorrent
  1008. downloads to lower CPU usage.
  1009. * src/PeerInteractionCommand.cc
  1010. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1011. Fixed broken gzip inflation.
  1012. Turn off segmented downloading if gzip content is smaller than or equal
  1013. to 1MiB and inflate the data on the fly, because HTTP response header
  1014. doesn't contain the length of inflated file we can't determin where
  1015. the chunk of data should be written.
  1016. On the other hand, if gzip content is larger than 1MB, then turn off
  1017. on the fly inflation, because some servers returns "content-type: gzip"
  1018. for *.tgz, *.gz files.
  1019. * src/DownloadCommand.cc
  1020. * src/HttpResponseCommand.cc
  1021. * src/HttpResponseCommand.h
  1022. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1023. Applied tizianomueller's patch to fix compile error.
  1024. * test/BitfieldManTest.cc
  1025. * test/BtRequestMessageTest.cc
  1026. * test/DefaultBtContextTest.cc
  1027. * test/DefaultDiskWriterTest.cc
  1028. * test/DefaultPieceStorageTest.cc
  1029. * test/HttpHeaderProcessorTest.cc
  1030. * test/HttpResponseTest.cc
  1031. * test/Metalink2RequestGroupTest.cc
  1032. * test/MetalinkParserControllerTest.cc
  1033. * test/MetalinkProcessorTest.cc
  1034. * test/PeerSessionResourceTest.cc
  1035. * test/UtilTest.cc
  1036. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1037. * Release 0.15.0
  1038. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1039. Reordered src files in POTFILES.in so that usage text appears first.
  1040. * po/POTFILES.in
  1041. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1042. Bump up version number to 0.15.0
  1043. * configure.ac
  1044. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1045. Added Bulgarian translation.
  1046. Updated Catalan, Spanish, French and Japanese translations.
  1047. Thanks to all translators.
  1048. * po/LINGUAS
  1049. * po/bg.po
  1050. * po/ca.po
  1051. * po/es.po
  1052. * po/fr.po
  1053. * po/ja.po
  1054. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1055. Updated feature list. Added libz for dependency section.
  1056. Added a description about unit testing using CppUnit.
  1057. * README
  1058. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1059. Added a test for libz. Quoted where it is necessary.
  1060. * build_test.sh
  1061. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1062. Added GZip to `Enabled Features' list.
  1063. * src/FeatureConfig.cc
  1064. * src/FeatureConfig.h
  1065. * test/FeatureConfigTest.cc
  1066. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1067. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1068. the transfer has not yet started.
  1069. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1070. * src/SegmentMan.cc
  1071. * src/SegmentMan.h
  1072. * test/SegmentManTest.cc
  1073. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1074. Cache last calculated average download/upload speed.
  1075. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1076. cached value.
  1077. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1078. * src/PeerStat.h
  1079. * src/SpeedCalc.cc
  1080. * src/SpeedCalc.h
  1081. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1082. Call parseUrl directly.
  1083. * src/Request.cc (resetUrl)
  1084. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1085. Supported absolute/relative path in Location header field.
  1086. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1087. * src/HttpHeader.cc
  1088. * src/HttpHeader.h
  1089. * src/HttpResponse.cc
  1090. * src/HttpSkipResponseCommand.cc
  1091. * src/Request.cc
  1092. * test/HttpHeaderTest.cc
  1093. * test/HttpResponseTest.cc
  1094. * test/RequestTest.cc
  1095. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1096. Changed help text for --load-cookie option.
  1097. * doc/aria2c.1.txt
  1098. * src/usage_text.h
  1099. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1100. Regenerated test/Makefile.in to remove stale ChangeLog.
  1101. * test/Makefile.in
  1102. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1103. Updated po files.
  1104. * po/aria2c.pot
  1105. * po/*.po
  1106. * po/*.gmo
  1107. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1108. Bump up version number to 0.15.0b
  1109. * configure.ac
  1110. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1111. Externalize messages.
  1112. * src/RequestGroupMan.cc
  1113. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1114. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1115. Use File::exists() instead of File::isFile() to allow non-regular file
  1116. such as block special files.
  1117. * src/AbstractDiskWriter.cc
  1118. * src/MultiDiskWriter.cc
  1119. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1120. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1121. * src/gai_strerror.h
  1122. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1123. Fixed compile error. Thanks gknauf for the patch.
  1124. * src/asctime_r.c
  1125. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1126. Included asctime_r.h from a2time.h.
  1127. * src/a2time.h
  1128. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1129. Added a message "aria2 doesn't verify signature" to log message when
  1130. signature file is saved.
  1131. * src/RequestGroupMan.cc
  1132. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1133. Added the ability to save signature when download is completed if
  1134. signature is available. The filename of signature file is the path to
  1135. download file followed by ".sig". If it already exists, then signature
  1136. will not be saved.
  1137. * src/RequestGroupMan.cc
  1138. * src/Signature.cc
  1139. * test/SignatureTest.cc
  1140. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1141. Updated the descriptions for --bt-seed-unverified.
  1142. * doc/aria2c.1
  1143. * doc/aria2c.1.html
  1144. * doc/aria2c.1.txt
  1145. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1146. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1147. that this is not going to verify files using piece hashes.
  1148. * src/HelpItemFactory.cc
  1149. * src/OptionHandlerFactory.cc
  1150. * src/RequestGroup.cc
  1151. * src/option_processing.cc
  1152. * src/prefs.cc
  1153. * src/prefs.h
  1154. * src/usage_text.h
  1155. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1156. Added the ability to retrieve signature from Metalink file.
  1157. A retrieved signature is stored in Signature class and it is held by
  1158. DownloadContext class. Note that aria2 doesn't verify signature.
  1159. * src/DownloadContext.cc
  1160. * src/DownloadContext.h
  1161. * src/Makefile.am
  1162. * src/Makefile.in
  1163. * src/Metalink2RequestGroup.cc
  1164. * src/MetalinkEntry.cc
  1165. * src/MetalinkEntry.h
  1166. * src/MetalinkParserController.cc
  1167. * src/MetalinkParserController.h
  1168. * src/MetalinkParserStateMachine.cc
  1169. * src/MetalinkParserStateMachine.h
  1170. * src/Signature.cc
  1171. * src/Signature.h
  1172. * src/SignatureMetalinkParserState.cc
  1173. * src/SignatureMetalinkParserState.h
  1174. * src/VerificationMetalinkParserState.cc
  1175. * src/VerificationMetalinkParserState.h
  1176. * test/Metalink2RequestGroupTest.cc
  1177. * test/MetalinkParserControllerTest.cc
  1178. * test/MetalinkProcessorTest.cc
  1179. * test/test.xml
  1180. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1181. Close DiskAdaptor after renaming file.
  1182. * src/RequestGroup.cc
  1183. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1184. Corrected indentation
  1185. * src/DefaultBtProgressInfoFile.cc
  1186. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1187. Moved the calls of std::ios::exceptions() inside of try-catch block
  1188. because if an error occurred in constructor of std::fstream, then
  1189. exception is thrown immediately when std::ios::exceptions() is called
  1190. which results unhandled exception and aria2c aborts.
  1191. * src/DefaultBtProgressInfoFile.cc
  1192. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1193. Added the test for the previous change in DefaultBtContext.cc
  1194. * test/DefaultBtContextTest.cc
  1195. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1196. Fixed the bug that causes infinite loop when the number of pieces are
  1197. fewer than allowed fast set size which is 10 by default.
  1198. * src/DefaultBtContext.cc
  1199. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1200. Updated the descriptions for -j, -s. Added --bt-seed.
  1201. * doc/aria2c.1
  1202. * doc/aria2c.1.html
  1203. * doc/aria2c.1.txt
  1204. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1205. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1206. aria2 seeds previously downloaded files without validating piece hashs.
  1207. * src/HelpItemFactory.cc
  1208. * src/OptionHandlerFactory.cc
  1209. * src/RequestGroup.cc
  1210. * src/option_processing.cc
  1211. * src/prefs.cc
  1212. * src/prefs.h
  1213. * src/usage_text.h
  1214. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1215. Updated DESCRIPTION of man page.
  1216. * doc/aria2c.1
  1217. * doc/aria2c.1.html
  1218. * doc/aria2c.1.txt
  1219. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1220. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1221. Don't define `struct addrinfo' when __sun is defined.
  1222. * src/getaddrinfo.h
  1223. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1224. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1225. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1226. second argument is of type `struct _stati64'. Otherwise it is defined as
  1227. `struct stat'.
  1228. * src/AbstractDiskWriter.cc
  1229. * src/File.cc
  1230. * src/File.h
  1231. * src/a2io.h
  1232. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1233. Fixed the compile error in hurd-i386
  1234. See the original bug report:
  1235. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1236. * src/a2io.h
  1237. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1238. Code cleanup.
  1239. * src/PeerAbstractCommand.cc
  1240. * src/PeerAbstractCommand.h
  1241. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1242. Removed TransferEncoding.
  1243. * src/DownloadCommand.cc
  1244. * src/DownloadCommand.h
  1245. * src/HttpResponseCommand.cc
  1246. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1247. Updated po files.
  1248. * po/aria2c.pot
  1249. * po/*.po
  1250. * po/*.gmo
  1251. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1252. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1253. * src/A2STR.cc
  1254. * src/A2STR.h
  1255. * src/ChunkedDecoder.cc
  1256. * src/ChunkedDecoder.h
  1257. * src/ChunkedEncoding.cc: Removed
  1258. * src/ChunkedEncoding.h: Removed
  1259. * src/DownloadCommand.cc
  1260. * src/DownloadCommand.h
  1261. * src/HttpDownloadCommand.cc
  1262. * src/HttpResponse.cc
  1263. * src/HttpResponse.h
  1264. * src/HttpResponseCommand.cc
  1265. * src/HttpSkipResponseCommand.cc
  1266. * src/HttpSkipResponseCommand.h
  1267. * src/Makefile.am
  1268. * src/TransferEncoding.h: Removed
  1269. * test/ChunkedDecoderTest.cc
  1270. * test/ChunkedEncodingTest.cc: Removed
  1271. * test/HttpResponseTest.cc
  1272. * test/Makefile.am
  1273. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1274. Use append instead of insert.
  1275. * src/GZipDecoder.cc
  1276. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1277. Updated doc
  1278. * src/Decoder.h
  1279. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1280. Updated usage text for -s option.
  1281. * src/usage_text.h
  1282. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1283. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1284. * src/Request.cc
  1285. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1286. Cleaned up configure.ac.
  1287. * configure.ac
  1288. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1289. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1290. AC_ARG_ENABLE.
  1291. * configure.ac
  1292. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1293. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1294. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1295. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1296. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1297. fly and writes decoded data to a local disk.
  1298. * README
  1299. * README.html
  1300. * configure.ac
  1301. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1302. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1303. * m4/libz.m4
  1304. * src/Decoder.h
  1305. * src/DownloadCommand.cc
  1306. * src/DownloadCommand.h
  1307. * src/Exception.h
  1308. * src/GZipDecoder.cc
  1309. * src/GZipDecoder.h
  1310. * src/HttpHeader.cc
  1311. * src/HttpHeader.h
  1312. * src/HttpRequest.cc
  1313. * src/HttpRequest.h
  1314. * src/HttpResponse.cc
  1315. * src/HttpResponse.h
  1316. * src/HttpResponseCommand.cc
  1317. * src/Makefile.am
  1318. * test/GZipDecoderTest.cc
  1319. * test/HttpRequestTest.cc
  1320. * test/HttpResponseTest.cc
  1321. * test/Makefile.am
  1322. * test/Makefile.in
  1323. * test/gzip_decode_test.gz
  1324. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1325. Clarified usage of -j option.
  1326. * src/usage_text.h
  1327. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1328. Disabled getting size from the response of RETR.
  1329. If SIZE command failed, then disable resuming and segmented downloading.
  1330. * src/FtpConnection.cc
  1331. * src/FtpConnection.h
  1332. * src/FtpNegotiationCommand.cc
  1333. * src/FtpNegotiationCommand.h
  1334. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1335. Use digits to find first byte of file size, which makes the intention
  1336. of the code clearer.
  1337. * src/FtpConnection.cc
  1338. Don't call validateTotalLength() when size is 0.
  1339. * src/FtpNegotiationCommand.cc
  1340. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1341. Updated po files.
  1342. * po/aria2c.pot
  1343. * po/*.gmo
  1344. * po/*.po
  1345. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1346. Clarified usage text for --split option.
  1347. * src/usage_text.h
  1348. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1349. Bump up version number to 0.15.0dev. "dev" means "development"
  1350. version, which means I started the development of the next release!
  1351. * src/configure.ac
  1352. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1353. If FTP server returns negative response with REST raw command and
  1354. requested range is not 0, throw exception. If requested range is 0,
  1355. continue download a file from 0 byte.
  1356. * src/FtpNegotiationCommand.cc
  1357. * src/FtpNegotiationCommand.h
  1358. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1359. Supported FTP server which don't recognize SIZE raw command.
  1360. If SIZE raw command is failed, aria2 will try to get file size
  1361. from the response of RETR raw command. If both attempts are failed,
  1362. then resuming and segmented downloading are disabled.
  1363. * src/FtpConnection.cc
  1364. * src/FtpConnection.h
  1365. * src/FtpNegotiationCommand.cc
  1366. * src/FtpNegotiationCommand.h
  1367. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1368. * Release 0.14.0+1
  1369. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1370. Bump up version number to 0.14.0+1
  1371. * src/configure.ac
  1372. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1373. Fixed the code that refers static member variable from non-static
  1374. context.
  1375. * src/DefaultPeerStorage.cc
  1376. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1377. * Release 0.14.0
  1378. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1379. Added build test script
  1380. * build_test.sh
  1381. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1382. Updated ja.po
  1383. * src/ja.po
  1384. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1385. Bump up version number to 0.14.0
  1386. * src/configure.ac
  1387. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1388. Updated ja.po and fr.po. Great thanks for french translators and
  1389. Sebastien WILLEMIJNS.
  1390. * po/fr.po
  1391. * po/ja.po
  1392. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1393. Added configure option to enable/disable epoll support.
  1394. * configure.ac
  1395. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1396. Updated man page.
  1397. * doc/aria2c.1.txt
  1398. * doc/aria2c.1
  1399. * doc/aria2c.1.html
  1400. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1401. Added missing default value '5' to the usage of --split option.
  1402. * src/HelpItemFactory.cc
  1403. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1404. Filled up pieces based on the number of missing blocks, rather than
  1405. simplay the number of piece * block length.
  1406. * src/BtRequestFactory.h
  1407. * src/DefaultBtInteractive.cc
  1408. * src/DefaultBtInteractive.h
  1409. * src/DefaultBtRequestFactory.cc
  1410. * src/DefaultBtRequestFactory.h
  1411. * src/Piece.cc
  1412. * src/Piece.h
  1413. * test/BitfieldManTest.cc
  1414. * test/DefaultBtRequestFactoryTest.cc
  1415. * test/MockBtRequestFactory.h
  1416. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1417. Made _epEvents a member variable.
  1418. * src/DownloadEngine.cc
  1419. * src/DownloadEngine.h
  1420. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1421. Cancel download if http redirect is bounded more than 20 times.
  1422. * src/AbstractCommand.cc
  1423. * src/HttpSkipResponseCommand.cc
  1424. * src/Request.cc
  1425. * src/Request.h
  1426. * test/RequestTest.cc
  1427. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1428. Fixed unhandled exception(removed keyword `new').
  1429. * src/SocketCore.cc (initEPOLL)
  1430. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1431. Removed visit(const MetaEntry*)
  1432. * src/MetaEntryVisitor.h:
  1433. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1434. and made them virtual.
  1435. * src/BencodeVisitor.h
  1436. * src/BencodeVisitor.cc
  1437. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1438. Updated po files.
  1439. * po/aria2c.pot
  1440. * po/*.po
  1441. * po/*.gmo
  1442. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1443. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1444. the number of socket to watch out.
  1445. * src/PeerInteractionCommand.cc
  1446. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1447. When there is not enough space in disk when writing a chunk of data,
  1448. aria2 now prints the message to the console to warn user and aborts
  1449. its download. Not all downloads are canceled because some downloads
  1450. may use another disk or partition. BUG#1640332
  1451. * src/AbstractDiskWriter.cc
  1452. * src/PeerAbstractCommand.cc
  1453. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1454. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1455. setHaltRequested(true) to cancel download.
  1456. * src/PeerInteractionCommand.h
  1457. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1458. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1459. socket from int to sock_t as sockets are unsigned in Windows.
  1460. For AsyncNameResolver, DownloadEngine, I did additional modification
  1461. for the portion of the code changed according to epoll support.
  1462. I defined sock_t in a2netcompat.h to use sock_t without including
  1463. SocketCore.h.
  1464. * src/AsyncNameResolver.cc
  1465. * src/AsyncNameResolver.h
  1466. * src/DownloadEngine.cc
  1467. * src/DownloadEngine.h
  1468. * src/SocketCore.cc
  1469. * src/SocketCore.h
  1470. * src/a2netcompat.h
  1471. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1472. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1473. changes in the patch were applied.
  1474. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1475. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1476. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1477. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1478. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1479. a2io.h and common.h were modified.
  1480. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1481. MinGW.
  1482. * src/common.h: Changed off_t to 64 bit in MinGW.
  1483. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1484. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1485. only a2netcompat.h is modified.
  1486. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1487. directives.
  1488. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1489. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1490. only gai_strerror.h is modified.
  1491. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1492. winsock errors in MinGW.
  1493. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1494. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1495. follow sources are applied.
  1496. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1497. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1498. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1499. I included locale.h from Platform.cc.
  1500. * src/main.cc: Moved common setup/teardown code to Platform class.
  1501. * test/AllTest.cc: Use Platform class.
  1502. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1503. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1504. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1505. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1506. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1507. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1508. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1509. aria2-0.13.2+1-mingw-2.patch.
  1510. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1511. systems which don't have termious.h. I moved the directive inside of
  1512. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1513. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1514. anyway.
  1515. * src/asctime_r.h
  1516. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1517. I added 2nd argument to the prototype declaration.
  1518. * src/StringFormat.cc: Get rid of vasprintf.
  1519. * src/getaddrinfo.h: Fixed constants.
  1520. * configure.ac: Added the check for asctime_r function.
  1521. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1522. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1523. Added writable test for Socket when the sending message is in progress.
  1524. Usually the sending message is piece message. Without wriable check,
  1525. upload latency is dropped to more than 1sec.
  1526. * src/PeerInteractionCommand.cc
  1527. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1528. Create only requested files and files which shares a piece with
  1529. requested file in multi-torrent downloads. Directory structures are
  1530. also created in the same rule.
  1531. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1532. DiskWriterEntry as in the previous implementation.
  1533. * src/MultiDiskWriter.cc
  1534. * src/MultiFileAllocationIterator.cc
  1535. * src/MultiFileAllocationIterator.h
  1536. * test/MultiFileAllocationIteratorTest.cc
  1537. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1538. Commented out -lprofiler
  1539. * src/Makefile.am
  1540. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1541. Bump up version number to 0.14.0b.
  1542. * src/configure.ac
  1543. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1544. Actively establish connection to peers in seeding, when peer cache
  1545. is not full and max upload speed limit is not reached.
  1546. * src/ActivePeerConnectionCommand.cc
  1547. * src/ActivePeerConnectionCommand.h
  1548. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1549. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1550. to make room more fleshy, recently found peers.
  1551. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1552. it.
  1553. * src/DefaultPeerStorage.cc
  1554. * test/DefaultPeerStorageTest.cc
  1555. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1556. Returns cached data only when the previous receiveHandshake() is called
  1557. with peek = true.
  1558. * src/PeerConnection.cc (receiveHandshake)
  1559. * src/PeerConnection.h (receiveHandshake)
  1560. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1561. Changed default value of -s option from 1 to 5.
  1562. Also max value of -s option is changed from 5 to 16.
  1563. * src/HelpItemFactory.cc
  1564. * src/OptionHandlerFactory.cc
  1565. * src/option_processing.cc
  1566. * src/usage_text.h
  1567. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1568. Changed -s options behavior. Now it means the number of connections
  1569. made simultaneously in each http/ftp download.
  1570. If 1 URL is specified, the behavior is the same with old implementation.
  1571. If -s N is given and more than N URLs are specified, first N URLs are
  1572. used and remaining URLs are used for backup. If less than N URLs are
  1573. specified, some of URLs are used more than once so that totally N
  1574. connections are made simultaneously.
  1575. * src/main.cc
  1576. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1577. Included missing iosfwd or ostream header.
  1578. * src/RequestGroupMan.cc
  1579. * src/TaggedItem.cc
  1580. * src/TaggedItem.h
  1581. * src/Util.cc
  1582. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1583. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  1584. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  1585. * src/HttpConnection.cc: Included missing sstream.
  1586. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1587. Added --bt-max-open-files option.
  1588. * src/DefaultPieceStorage.cc
  1589. * src/HelpItemFactory.cc
  1590. * src/MultiDiskAdaptor.cc
  1591. * src/MultiDiskAdaptor.h
  1592. * src/OptionHandlerFactory.cc
  1593. * src/option_processing.cc
  1594. * src/prefs.cc
  1595. * src/prefs.h
  1596. * src/usage_text.h
  1597. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Fixed the bug that aria2 aborts when a path to a directory is given
  1599. in command-line.
  1600. * src/ProtocolDetector.cc
  1601. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1602. Limited the number files opened in each BitTorrent download. The default
  1603. value is 100. The option to change this value will be added.
  1604. * src/MultiDiskAdaptor.cc
  1605. * src/MultiDiskAdaptor.h
  1606. * src/MultiFileAllocationIterator.cc
  1607. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1608. Fixed the bug that HTTP downloads don't start with old libraries.
  1609. * src/HttpHeaderProcessor.cc
  1610. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1611. Use empty() instead of size() > 0.
  1612. * src/HttpConnection.cc
  1613. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1614. Drop connection if the incoming peer ID is the same with localhost's
  1615. one. The previous implementation drops connection when incoming peer's
  1616. IP address is the same with localhost's one.
  1617. * src/PeerListenCommand.cc
  1618. * src/DefaultBtInteractive.cc
  1619. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1620. Returns cached data without checking whether socket is readable
  1621. if the cache is available.
  1622. * src/PeerConnection.cc (receiveHandshake)
  1623. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1624. Included stdint.h
  1625. * src/common.h
  1626. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1627. Removed duplicate HAVE_GETTIMEOFDAY
  1628. * src/Makefile.am
  1629. * src/Makefile.in
  1630. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1631. Use interval as a minInterval when minInterval is not supplied.
  1632. * src/DefaultBtAnnounce.cc
  1633. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1634. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  1635. attempt is failed, then 2nd attempt get kicked out more quickly.
  1636. And it is now static const member of DefaultBtAnnounce.
  1637. * src/DefaultBtAnnounce.h
  1638. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1639. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  1640. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  1641. * src/ActivePeerConnectionCommand.cc
  1642. * src/BtConstants.h
  1643. * src/BtRuntime.h
  1644. * src/DHTGetPeersCommand.cc
  1645. * src/DefaultBtAnnounce.cc
  1646. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  1647. BtRuntime::MAX_PEERS.
  1648. * src/DefaultPeerStorage.h
  1649. * src/InitiatorMSEHandshakeCommand.cc
  1650. * src/PeerInitiateConnectionCommand.cc
  1651. * src/PeerInteractionCommand.cc
  1652. * src/PeerReceiveHandshakeCommand.cc
  1653. * src/TrackerWatcherCommand.cc
  1654. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1655. Always Connect to _numNewConnection
  1656. * src/ActivePeerConnectionCommand.cc
  1657. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1658. Made `begin' unsigned int.
  1659. * src/GrowSegment.h
  1660. * src/Piece.cc
  1661. * src/Piece.h
  1662. * src/PiecedSegment.cc
  1663. * src/PiecedSegment.h
  1664. * src/Segment.h
  1665. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1666. Calculate piece hash when data is arrived if the data is arrived in
  1667. order. This removes additional read operation for hash calculation.
  1668. If the data is arrived in out of order, the hash is calucated when the
  1669. piece is completed. This is the same behavior as the old implementation.
  1670. * src/BtPieceMessage.cc
  1671. * src/DefaultBtProgressInfoFile.cc
  1672. * src/DefaultPieceStorage.cc
  1673. * src/DownloadCommand.cc
  1674. * src/DownloadCommand.h
  1675. * src/DownloadEngine.cc
  1676. * src/GrowSegment.cc
  1677. * src/GrowSegment.h
  1678. * src/Piece.cc
  1679. * src/Piece.h
  1680. * src/PiecedSegment.cc
  1681. * src/PiecedSegment.h
  1682. * src/Segment.h
  1683. * test/PieceTest.cc
  1684. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1685. Try to keep the ordering of outgoing piece message.
  1686. * src/DefaultBtMessageDispatcher.cc
  1687. (DefaultBtMessageDispatcher::sendMessages)
  1688. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1689. Fixed busy loop when error/hup epoll events occur.
  1690. * src/AbstractCommand.cc
  1691. * src/PeerAbstractCommand.cc
  1692. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1693. Added --bt-request-peer-speed-limit option, which was a constant
  1694. SLOW_SPEED_THRESHOLD.
  1695. * src/ActivePeerConnectionCommand.cc
  1696. * src/ActivePeerConnectionCommand.h
  1697. * src/BtConstants.h
  1698. * src/HelpItemFactory.cc
  1699. * src/OptionHandlerFactory.cc
  1700. * src/PeerReceiveHandshakeCommand.cc
  1701. * src/option_processing.cc
  1702. * src/prefs.cc
  1703. * src/prefs.h
  1704. * src/usage_text.h
  1705. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1706. Removed repeated call of getTopDirPath(). Instead, call it once and
  1707. cache the result.
  1708. * src/MultiDiskAdaptor.cc
  1709. * src/MultiDiskAdaptor.h
  1710. (mkdir, openFile, initAndOpenFile, openExistingFile)
  1711. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1712. Fixed compile error on debian etch.
  1713. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  1714. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  1715. it is undefined.
  1716. * src/Util.cc (ULLONG_MAX)
  1717. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1718. Added epoll support. Use epoll if it is available. If not, use select.
  1719. When async dns is enabled in compile time, epoll support is enabled
  1720. only when aria2 is built with c-ares. This condition statement is
  1721. defined in a2io.h.
  1722. Currently aria2 supports both c-ares and ares, but ares is maintained
  1723. for quite a while and debian already has c-ares package, ares support
  1724. will be dropped in the future version.
  1725. * configure.ac
  1726. * src/AbstractCommand.cc
  1727. * src/AsyncNameResolver.cc
  1728. * src/AsyncNameResolver.h
  1729. * src/Command.cc
  1730. * src/Command.h
  1731. * src/DownloadEngine.cc
  1732. * src/DownloadEngine.h
  1733. * src/PeerAbstractCommand.cc
  1734. * src/SocketCore.cc
  1735. * src/SocketCore.h
  1736. * src/a2io.h
  1737. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1738. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  1739. directive.
  1740. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1741. Do not do write operation to /dev/null file.
  1742. * src/LogFactory.cc
  1743. * src/SimpleLogger.cc
  1744. Replaced vasprintf with vsnprintf
  1745. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1746. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1747. * src/BtRequestMessage.cc
  1748. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  1749. for segmentation fault caused by previous commit.
  1750. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1751. Reduced the usage of gettimeofday().
  1752. * src/DefaultBtMessageDispatcher.cc
  1753. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  1754. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1755. * src/RequestSlot.cc
  1756. * src/RequestSlot.h
  1757. (RequestSlot::isTimeout)
  1758. Made RequestSlot have a reference to Piece object to avoid find
  1759. Piece repeatedly.
  1760. * src/DefaultBtMessageDispatcher.cc
  1761. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1762. * src/RequestSlot.cc
  1763. * src/RequestSlot.h
  1764. (RequestSlot::getPiece)
  1765. * test/DefaultBtMessageDispatcherTest.cc
  1766. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1767. * src/TimeA2.cc
  1768. * src/TimeA2.h
  1769. (Time::difference): New function.
  1770. (Time::elapsed): Done optimization.
  1771. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  1773. directive.
  1774. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1775. * src/option_processing.cc: Added missing `defined' keyword to #if
  1776. directive.
  1777. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1778. Bump up version number to 0.13.2+1
  1779. * src/configure.ac
  1780. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1781. Refactored broken outstanding piece handling.
  1782. * src/DefaultPieceStorage.cc
  1783. * src/DefaultPieceStorage.h
  1784. * src/Piece.cc
  1785. * src/Piece.h
  1786. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1787. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  1788. name collision of static variable and predefined macro.
  1789. * src/BtContext.cc
  1790. * src/BtContext.h
  1791. * src/CookieBoxFactory.cc
  1792. * src/CookieBoxFactory.h
  1793. * src/CookieParser.cc
  1794. * src/CookieParser.h
  1795. * src/DefaultBtContext.cc
  1796. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1797. * src/RequestGroup.cc
  1798. (RequestGroup::createInitialCommand): Use empty() instead of size().
  1799. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1800. * Release 0.13.2
  1801. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1802. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  1803. * po/fr.po
  1804. * po/ja.po
  1805. * po/aria2c.pot
  1806. * po/*.po
  1807. * po/*.gmo
  1808. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1809. Bump up version number to 0.13.2
  1810. * src/configure.ac
  1811. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1812. Refactord.
  1813. * src/RequestGroupMan.cc
  1814. (removeStoppedGroup)
  1815. (fillRequestGroupFromReserver)
  1816. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1817. Fixed compile error on Ubuntu.
  1818. * src/BtPieceMessage.cc
  1819. * src/MessageDigestHelper.cc
  1820. * src/Util.cc
  1821. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1822. Fixed compile error when configured with --disable-bittorrent
  1823. * test/DownloadHandlerFactoryTest.cc
  1824. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1825. Done make update-po
  1826. * po/aria2c.pot
  1827. * po/*.po
  1828. * po/*.gmo
  1829. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1830. Bump up version number to 0.13.2rc.
  1831. * src/configure.ac
  1832. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1833. Made option name bold. Updated SYNOPSIS to make it more readable.
  1834. * doc/aria2c.1.txt
  1835. * doc/aria2c.1
  1836. * doc/aria2c.1.html
  1837. * src/version_usage.cc
  1838. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1839. Refactored. Use std::string instead of size and char*.
  1840. * Data.cc
  1841. * Data.h
  1842. * test/Data.cc
  1843. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1844. Added trimSelf(). Rewritten trim() to use trimSelf().
  1845. * Util.cc
  1846. * Util.h
  1847. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1848. * src/ChunkChecksum.h (getChecksum): Return const reference.
  1849. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1850. Fixed compile error when configured with --disable-metalink.
  1851. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  1852. * test/FeatureConfigTest.cc
  1853. * test/DownloadHandlerFactoryTest.cc
  1854. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1855. Fixed compile error when configured with --without-gnutls
  1856. --without-openssl
  1857. * src/main.cc
  1858. * test/DefaultBtProgressInfoFileTest.cc
  1859. * test/SegmentManTest.cc
  1860. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1861. Fixed compile error with OpenSSL.
  1862. * src/IteratableChunkChecksumValidator.cc
  1863. * src/LibsslDHKeyExchange.h
  1864. * src/MessageDigestHelper.cc
  1865. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1866. Revert the default value of --max-concurrent-downloads to 5.
  1867. Revert the default value of --metalink-servers to 5.
  1868. Man pages was also updated.
  1869. * src/option_processing.cc
  1870. * doc/aria2c.1.txt
  1871. * doc/aria2c.1.html
  1872. * doc/aria2c.1
  1873. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1874. Returns const reference:
  1875. DownloadContext::getPieceHash, DownloadContext::getName,
  1876. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  1877. BtContext::getInfoHashAsString,
  1878. * src/BtContext.h
  1879. * src/DefaultBtContext.cc
  1880. * src/DefaultBtContext.h
  1881. * src/DownloadContext.h
  1882. * src/SingleFileDownloadContext.h
  1883. * test/MockBtContext.h
  1884. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1885. * src/RequestGroup.h (getDir): Removed.
  1886. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1887. Returns const reference. The internal urlencode function was optimized
  1888. a little bit.
  1889. * src/Request.cc
  1890. * src/Request.h
  1891. * src/HttpRequest.cc
  1892. * src/HttpRequest.h
  1893. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1894. Defined option name and possible values as std::string to reduce
  1895. temporary string object creation in runtime.
  1896. * src/HelpItemFactory.cc
  1897. * src/LogFactory.cc
  1898. * src/Option.cc
  1899. * src/OptionHandlerFactory.cc
  1900. * src/option_processing.cc
  1901. * src/prefs.cc
  1902. * src/prefs.h
  1903. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1904. Return const reference.
  1905. * src/DownloadHandlerConstants.cc
  1906. * src/DownloadHandlerConstants.h
  1907. (getMetalinkExtensions)
  1908. (getMetalinkContentTypes)
  1909. (getBtExtensions)
  1910. (getBtContentTypes)
  1911. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1912. * src/HttpHeader.cc (get): Rewritten.
  1913. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1914. Make HttpHeader::getFirst(...) return const reference.
  1915. * src/HttpHeader.cc
  1916. * src/HttpHeader.h
  1917. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1918. Use Option::getAsBool(...) instead of Option::get(...) and compare
  1919. it with V_TRUE.
  1920. * src/DefaultPieceStorage.cc
  1921. * src/DownloadCommand.cc
  1922. * src/FtpNegotiationCommand.cc
  1923. * src/HttpRequest.cc
  1924. * src/InitiateConnectionCommand.cc
  1925. * src/RequestGroup.cc
  1926. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1927. Made Option::get(...) return const reference of std::string.
  1928. * src/Option.cc
  1929. * src/Option.h
  1930. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1931. Replaced std:copy with insert.
  1932. * src/DefaultBtMessageDispatcher.cc
  1933. * src/DefaultPieceStorage.cc
  1934. * src/DownloadEngineFactory.cc
  1935. * src/RequestGroup.cc
  1936. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1937. Included SocketCore.h to fix compiler warning.
  1938. * src/InitiateConnectionCommand.cc
  1939. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1940. Put piece selection strategy algorithm to RarestPieceSelector class,
  1941. Added a switch to choose whether randomized selection so that unit
  1942. tests emit same results in, possibly, win32.
  1943. * src/DefaultPieceStorage.cc
  1944. * src/DefaultPieceStorage.h
  1945. * src/RarestPieceSelector.cc
  1946. * src/RarestPieceSelector.h
  1947. * test/DefaultPieceStorageTest.cc
  1948. * test/RarestPieceSelectorTest.cc
  1949. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1950. Don't pool connection if HTTP proxy is enabled.
  1951. * src/FtpFinishDownloadCommand.cc
  1952. * src/FtpNegotiationCommand.cc
  1953. * src/HttpSkipResponseCommand.cc
  1954. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1955. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  1956. * src/AbstractCommand.cc
  1957. * src/AbstractCommand.h
  1958. * src/ActivePeerConnectionCommand.cc
  1959. * src/FtpInitiateConnectionCommand.cc
  1960. * src/HttpInitiateConnectionCommand.cc
  1961. * src/InitiateConnectionCommandFactory.cc
  1962. * src/PeerAbstractCommand.cc
  1963. * src/PeerAbstractCommand.h
  1964. * src/PeerInitiateConnectionCommand.cc
  1965. * src/TrackerWatcherCommand.cc
  1966. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1967. Sort RequestSlot in ascending order and manipulate them using
  1968. lower_bound.
  1969. * src/DefaultBtMessageDispatcher.cc
  1970. * src/DefaultBtMessageDispatcher.h
  1971. (getMessageQueue): Added const qualifier.
  1972. (getRequestSlots): Added const qualifier.
  1973. (sendMessages): Use empty() instead of size().
  1974. (doCancelSendingPieceAction): Use HandleEvent object.
  1975. (doAbortOutstandingRequestAction): Rewritten.
  1976. (doChokedAction): Rewritten.
  1977. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  1978. (isOutstandingRequest): Rewritten.
  1979. (getOutstandingRequest): Rewritten.
  1980. (removeOutstandingRequest): Rewritten.
  1981. (addOutstandingRequest): Rewritten.
  1982. * src/RequestSlot.cc
  1983. * src/RequestSlot.h
  1984. (operator=): Rewritten.
  1985. (operator!=): New function.
  1986. (operator<): New function.
  1987. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1988. * src/DefaultBtRequestFactory.cc
  1989. (doChokedAction): Rewritten.
  1990. (removeCompletedPiece): Rewritten.
  1991. (removeTargetPiece): Rewritten.
  1992. (createRequestMessages): Added the debug log.
  1993. (createRequestMessagesOnEndGame: Added the debug log.
  1994. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1995. Added the debug log message.
  1996. * src/BtPieceMessage.cc (doReceivedAction)
  1997. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1998. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  1999. used lower_bound to process them rather than linear search.
  2000. * src/DHTPeerAnnounceStorage.cc
  2001. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2002. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2003. peer has at least one completed piece.
  2004. * src/Peer.cc
  2005. * src/Peer.h
  2006. * src/PeerInteractionCommand.cc
  2007. * src/PeerSessionResource.cc
  2008. * src/PeerSessionResource.h
  2009. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2010. Removed unnecessary sorting
  2011. * src/DefaultPieceStorage (DefaultPieceStorage)
  2012. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2013. Rewritten the portion of the code that mangaes allowed fast indexes.
  2014. * src/PeerSessionResource.cc
  2015. * src/PeerSessionResource.h
  2016. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2017. Removed the invalid string including '\r' from ru.po and
  2018. did make update-po.
  2019. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2020. Added --log-level and --summary-interval to man page.
  2021. * doc/aria2c.1.txt
  2022. * doc/aria2c.1.html
  2023. * doc/aria2c.1
  2024. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2025. Added --log-level option to specify log level. Log messages under
  2026. the specified level are not output. Default value is `debug'.
  2027. * src/HelpItemFactory.cc
  2028. * src/LogFactory.cc
  2029. * src/LogFactory.h
  2030. * src/Logger.h
  2031. * src/OptionHandlerFactory.cc
  2032. * src/SimpleLogger.cc
  2033. * src/SimpleLogger.h
  2034. * src/main.cc
  2035. * src/option_processing.cc
  2036. * src/prefs.h
  2037. * src/usage_text.h
  2038. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2039. Print download progress summary of all parallel downloads in specified
  2040. interval, default 60 secs. While aria2 could download several files
  2041. in parallel (see -j option), it displayed just first download progress,
  2042. and the other downloads are hidden from the users. This new feature
  2043. prints all downloads currently in-progress to the console so that you
  2044. can check the status of all downloads. The interval can be adjusted
  2045. by --summary-interval option.
  2046. The progress readout is now cut so that all fits in the one line of
  2047. console.
  2048. * src/ConsoleStatCalc.cc
  2049. * src/ConsoleStatCalc.h
  2050. * src/HelpItemFactory.cc
  2051. * src/OptionHandlerFactory.cc
  2052. * src/RequestGroupMan.cc
  2053. * src/RequestGroupMan.h
  2054. * src/main.cc
  2055. * src/option_processing.cc
  2056. * src/prefs.h
  2057. * src/usage_text.h
  2058. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2059. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2060. * src/DownloadEngine.cc (DownloadEngine)
  2061. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2062. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2063. defined.
  2064. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2065. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2066. Use erase+lower_bound+insert instead of sort.
  2067. * src/DefaultPieceStorage.cc (addPieceStats)
  2068. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2069. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2070. * src/A2STR.cc
  2071. * src/A2STR.h
  2072. * src/OptionParser.cc (parse)
  2073. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2074. Defined fake filename `[tracker.announce]' as static const std::string.
  2075. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2076. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Defined default filename `index.html' as static const std::string
  2078. * src/SingleFileDownloadContext.cc
  2079. * src/SingleFileDownloadContext.h
  2080. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2081. Defined "[MEMORY]" as static const std::string.
  2082. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2083. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2084. Defined control file's version number as static const std::string.
  2085. * src/DefaultBtProgressInfoFile.cc
  2086. * src/DefaultBtProgressInfoFile.h
  2087. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2088. Use Request::METHOD_GET
  2089. * src/RequestGroup.cc (createNextCommandWithAdj)
  2090. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2091. Defined "OK", "ERR", "INPR" as static const std::string
  2092. * src/RequestGroupMan.cc (showDownloadResults)
  2093. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2094. Defined default client used in extended handshake as static const
  2095. std::string
  2096. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2097. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2098. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2099. * src/HttpConnection.cc (eraseConfidentialInfo)
  2100. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2101. Defined default ftp user and password as static const std::string
  2102. * src/AuthConfigFactory.cc
  2103. * src/AuthConfigFactory.h
  2104. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2105. Defined strings used in netrc as static const std::string
  2106. * src/Netrc.cc
  2107. * src/Netrc.h
  2108. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2109. Defined HTTP status as static const std::string
  2110. * src/AbstractProxyResponseCommand.cc
  2111. * src/HttpHeader.cc
  2112. * src/HttpHeader.h
  2113. * src/HttpResponse.cc
  2114. * src/HttpResponseCommand.cc
  2115. * src/HttpSkipResponseCommand.cc
  2116. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2117. Defined "\r\n", "A", "I" as static const std::string
  2118. * src/A2STR.cc
  2119. * src/A2STR.h
  2120. * src/FtpConnection.cc
  2121. * src/FtpConnection.h
  2122. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2123. Added COLON_C(".") and used it in Request::parseUrl()
  2124. * src/A2STR.cc
  2125. * src/A2STR.h
  2126. * src/Request.cc (parseUrl)
  2127. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2128. Changed the type of padName from `const std::string&' to `const char*'.
  2129. * src/MSEHandshake.cc (verifyPadLength)
  2130. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2131. Defined "sha1" as static const std::string.
  2132. * src/MetalinkParserController.cc
  2133. * src/MetalinkParserController.h
  2134. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2135. Defined message digest algorithm name as static const std::string
  2136. * src/DHTTokenTracker.cc
  2137. * src/DHTUtil.cc
  2138. * src/DefaultBtContext.cc
  2139. * src/MSEHandshake.cc
  2140. * src/MessageDigestHelper.cc
  2141. * src/Peer.cc
  2142. * src/messageDigest.cc
  2143. * src/messageDigest.h
  2144. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2145. Made string literals used in SAX parser static const std::string.
  2146. * src/FileMetalinkParserState.cc
  2147. * src/FileMetalinkParserState.h
  2148. * src/FilesMetalinkParserState.cc
  2149. * src/FilesMetalinkParserState.h
  2150. * src/InitialMetalinkParserState.cc
  2151. * src/InitialMetalinkParserState.h
  2152. * src/MetalinkMetalinkParserState.cc
  2153. * src/MetalinkMetalinkParserState.h
  2154. * src/PiecesMetalinkParserState.cc
  2155. * src/PiecesMetalinkParserState.h
  2156. * src/ResourcesMetalinkParserState.cc
  2157. * src/ResourcesMetalinkParserState.h
  2158. * src/VerificationMetalinkParserState.cc
  2159. * src/VerificationMetalinkParserState.h
  2160. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2161. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2162. * src/A2STR.cc
  2163. * src/A2STR.h
  2164. * src/File.cc
  2165. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2166. Defined static const std::string IP("ip"), PORT("port") and use them
  2167. instead of string literals.
  2168. * src/DefaultPeerListProcessor.cc
  2169. * src/DefaultPeerListProcessor.h
  2170. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2171. Made string literals for torrent file processing static const
  2172. std::string.
  2173. * src/BtContext.cc
  2174. * src/BtContext.h
  2175. * src/DefaultBtContext.cc
  2176. * src/DefaultBtContext.h
  2177. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2178. Made string literal for tracker response static const std::string
  2179. * src/BtAnnounce.cc
  2180. * src/BtAnnounce.h
  2181. * src/DefaultBtAnnounce.cc
  2182. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2183. Use DHTMessage::T instead of "t".
  2184. * src/DHTMessageTracker.cc (messageArrived)
  2185. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2186. Made keyName static const. Made trimmed charset static const
  2187. std::string.
  2188. * src/Util.cc (getContentDispositionFilename)
  2189. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2190. Made USER_AGENT const. Made "/" static const std::string.
  2191. * src/A2STR.cc
  2192. * src/A2STR.h
  2193. * src/HttpRequest.cc
  2194. * src/HttpRequest.h
  2195. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2196. Made string listeral to static const std::string:
  2197. "Content-Range", "Content-Length"
  2198. * src/HttpHeader.cc
  2199. * src/HttpHeader.h
  2200. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Made string listeral to static const std::string.
  2202. * src/HttpConnection.cc
  2203. * src/HttpHeader.cc
  2204. * src/HttpHeader.h
  2205. * src/HttpResponse.cc
  2206. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2207. Made string listeral to static const std::string.
  2208. * src/A2STR.cc
  2209. * src/A2STR.h
  2210. * src/SimpleLogger.cc
  2211. * src/SimpleLogger.h
  2212. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2213. Made string literal to static const std::string.
  2214. Rewritten CookieParser::setField.
  2215. * src/A2STR.cc
  2216. * src/A2STR.h
  2217. * src/CookieBoxFactory.cc
  2218. * src/CookieBoxFactory.h
  2219. * src/CookieParser.cc
  2220. * src/CookieParser.h
  2221. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2222. Made string literal to static const std::string
  2223. * src/DHTAbstractMessage.cc
  2224. * src/DHTAnnouncePeerMessage.cc
  2225. * src/DHTAnnouncePeerMessage.h
  2226. * src/DHTAnnouncePeerReplyMessage.cc
  2227. * src/DHTAnnouncePeerReplyMessage.h
  2228. * src/DHTFindNodeMessage.cc
  2229. * src/DHTFindNodeMessage.h
  2230. * src/DHTFindNodeReplyMessage.cc
  2231. * src/DHTFindNodeReplyMessage.h
  2232. * src/DHTGetPeersMessage.cc
  2233. * src/DHTGetPeersMessage.h
  2234. * src/DHTGetPeersReplyMessage.cc
  2235. * src/DHTGetPeersReplyMessage.h
  2236. * src/DHTMessage.cc
  2237. * src/DHTMessage.h
  2238. * src/DHTMessageFactoryImpl.cc
  2239. * src/DHTMessageReceiver.cc
  2240. * src/DHTPingMessage.cc
  2241. * src/DHTPingMessage.h
  2242. * src/DHTPingReplyMessage.cc
  2243. * src/DHTPingReplyMessage.h
  2244. * src/DHTQueryMessage.cc
  2245. * src/DHTQueryMessage.h
  2246. * src/DHTResponseMessage.cc
  2247. * src/DHTResponseMessage.h
  2248. * src/DHTUnknownMessage.cc
  2249. * src/DHTUnknownMessage.h
  2250. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2251. Made string literal to static const std::string
  2252. * src/BtChokeMessage.cc (toString)
  2253. * src/BtHaveAllMessage.cc (toString)
  2254. * src/BtHaveNoneMessage.cc (toString)
  2255. * src/BtInterestedMessage.cc (toString)
  2256. * src/BtNotInterestedMessage.cc (toString)
  2257. * src/BtUnchokeMessage.cc (toString)
  2258. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2259. Replaced "" with static const variable A2STR::NIL.
  2260. Replaced string comparison against "" with std::string::empty().
  2261. Added PROTO_* to Request class and use them as a protocol string
  2262. constant.
  2263. Made "started", "stopped", "completed" static const variable in
  2264. AnnounceList class.
  2265. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2266. Updated translations. Great thanks to translators.
  2267. * po/ca.po
  2268. * po/de.po
  2269. * po/fr.po
  2270. * po/it.po
  2271. * po/ja.po
  2272. * po/ru.po
  2273. * po/zh_CN.po
  2274. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2275. Updated man page; categorized options and fixed typo.
  2276. * doc/aria2c.1.txt
  2277. * doc/aria2c.1.html
  2278. * doc/aria2c.1
  2279. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2280. Removed const ref
  2281. * src/MetalinkEntry.cc (AddProtocolPreference)
  2282. * src/RequestGroup.cc (FindServerHostByHostname)
  2283. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2284. Rewritten Accept-Features handling.
  2285. * src/HttpRequestCommand.cc (createHttpRequest)
  2286. * src/a2functional.h
  2287. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2288. Changed method signature:
  2289. DHTAbstractNodeLookupTask::toEntries
  2290. * src/DHTAbstractNodeLookupTask.cc
  2291. * src/DHTAbstractNodeLookupTask.h
  2292. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2293. Changed method signature:
  2294. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2295. * src/BtContext.h
  2296. * src/DefaultBtContext.cc
  2297. * src/DefaultBtContext.h
  2298. * src/DefaultBtInteractive.cc
  2299. * test/DefaultBtContextTest.cc
  2300. * test/MockBtContext.h
  2301. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2302. Changed method signature:
  2303. MultiFileAllocationIterator::makeDiskWriterEntries
  2304. * src/MultiFileAllocationIterator.cc
  2305. * src/MultiFileAllocationIterator.h
  2306. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2307. Changed method sinature:
  2308. MetalinkEntry::toFileEntry,
  2309. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2310. Metalinker::queryEntry
  2311. * src/Metalink2RequestGroup.cc
  2312. * src/MetalinkEntry.cc
  2313. * src/MetalinkEntry.h
  2314. * src/MetalinkHelper.cc
  2315. * src/MetalinkHelper.h
  2316. * src/Metalinker.cc
  2317. * src/Metalinker.h
  2318. * src/main.cc
  2319. * test/MetalinkHelperTest.cc
  2320. * test/MetalinkerTest.cc
  2321. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2322. Changed method sinature:
  2323. RequestGroup::getURIs
  2324. * src/RequestGroup.cc
  2325. * src/RequestGroup.h
  2326. * test/Metalink2RequestGroupTest.cc
  2327. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Changed method signature:
  2329. PeerListProcessor::extractPeer
  2330. * src/CompactPeerListProcessor.cc
  2331. * src/CompactPeerListProcessor.h
  2332. * src/DefaultBtAnnounce.cc
  2333. * src/DefaultPeerListProcessor.cc
  2334. * src/DefaultPeerListProcessor.h
  2335. * src/DelegatingPeerListProcessor.cc
  2336. * src/DelegatingPeerListProcessor.h
  2337. * src/PeerListProcessor.h
  2338. * src/UTPexExtensionMessage.cc
  2339. * test/DefaultPeerListProcessorTest.cc
  2340. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2341. Changed method signature:
  2342. BtRequestFactory::createRequestMessages,
  2343. BtRequestFactory::createRequestMessagesOnEndGame
  2344. * src/BtRequestFactory.h
  2345. * src/DefaultBtInteractive.cc
  2346. * src/DefaultBtRequestFactory.cc
  2347. * src/DefaultBtRequestFactory.h
  2348. * test/DefaultBtRequestFactoryTest.cc
  2349. * test/MockBtRequestFactory.h
  2350. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Changed method signature:
  2352. PieceStorage::getInFlightPieces
  2353. * src/DefaultBtProgressInfoFile.cc
  2354. * src/DefaultPieceStorage.cc
  2355. * src/DefaultPieceStorage.h
  2356. * src/PieceStorage.h
  2357. * src/UnknownLengthPieceStorage.cc
  2358. * src/UnknownLengthPieceStorage.h
  2359. * test/DefaultBtProgressInfoFileTest.cc
  2360. * test/MockPieceStorage.h
  2361. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2362. Changed method signature:
  2363. PostDownloadHandler::getNextRequestGroups
  2364. Metalink2RequestGroup::generate
  2365. RequestGroup::postDownloadProcessing
  2366. * src/BtPostDownloadHandler.cc
  2367. * src/BtPostDownloadHandler.h
  2368. * src/Metalink2RequestGroup.cc
  2369. * src/Metalink2RequestGroup.h
  2370. * src/MetalinkPostDownloadHandler.cc
  2371. * src/MetalinkPostDownloadHandler.h
  2372. * src/PostDownloadHandler.h
  2373. * src/RequestGroup.cc
  2374. * src/RequestGroup.h
  2375. * src/RequestGroupMan.cc
  2376. * src/main.cc
  2377. * test/BtPostDownloadHandlerTest.cc
  2378. * test/Metalink2RequestGroupTest.cc
  2379. * test/MetalinkPostDownloadHandlerTest.cc
  2380. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2381. Rewritten AccRequestGroup
  2382. * src/main.cc
  2383. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2384. Rewritten.
  2385. * src/TaggedItem.cc (toTagString)
  2386. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2387. Rewritten Accept-Features handling.
  2388. * src/HttpRequestCommand.cc (createHttpRequest)
  2389. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2390. Rewritten accept types handling.
  2391. * HttpRequest.cc (createRequest)
  2392. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2393. Rewritten
  2394. * src/FeatureConfig.cc (featureSummary)
  2395. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2396. Changed method signature:
  2397. PeerStorage::getActivePeers
  2398. * src/DHTPeerAnnounceEntry.cc
  2399. * src/DefaultPeerStorage.cc
  2400. * src/DefaultPeerStorage.h
  2401. * src/PeerStorage.h
  2402. * test/DefaultPeerStorageTest.cc
  2403. * test/MockPeerStorage.h
  2404. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2405. Changed method signature:
  2406. DHTPeerAnnounceStorage::getPeers,
  2407. DHTPeerAnnounceEntry::getPeers
  2408. * src/DHTGetPeersMessage.cc
  2409. * src/DHTPeerAnnounceEntry.cc
  2410. * src/DHTPeerAnnounceEntry.h
  2411. * src/DHTPeerAnnounceStorage.cc
  2412. * src/DHTPeerAnnounceStorage.h
  2413. * test/DHTAnnouncePeerMessageTest.cc
  2414. * test/DHTPeerAnnounceEntryTest.cc
  2415. * test/DHTPeerAnnounceStorageTest.cc
  2416. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2417. Changed method signature:
  2418. NameResolver::resolve
  2419. * src/DHTEntryPointNameResolveCommand.cc
  2420. * src/InitiateConnectionCommand.cc
  2421. * src/NameResolver.cc
  2422. * src/NameResolver.h
  2423. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2424. Changed method signature:
  2425. PieceStorage::getAdvertisedPieceIndexes
  2426. * src/DefaultBtInteractive.cc
  2427. * src/DefaultPieceStorage.cc
  2428. * src/DefaultPieceStorage.h
  2429. * src/PieceStorage.h
  2430. * src/UnknownLengthPieceStorage.h
  2431. * test/MockPieceStorage.h
  2432. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2433. Changed method signature:
  2434. SegmentMan::getInFlightSegment
  2435. * src/AbstractCommand.cc
  2436. * src/SegmentMan.cc
  2437. * src/SegmentMan.h
  2438. * test/SegmentManTest.cc
  2439. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2440. Changed method signature:
  2441. DHTAbstractNodeLookupTask::getNodesFromMessage
  2442. * src/DHTAbstractNodeLookupTask.cc
  2443. * src/DHTAbstractNodeLookupTask.h
  2444. * src/DHTNodeLookupTask.cc
  2445. * src/DHTNodeLookupTask.h
  2446. * src/DHTPeerLookupTask.cc
  2447. * src/DHTPeerLookupTask.h
  2448. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2449. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2450. * src/AbstractCommand.cc
  2451. * src/BtCheckIntegrityEntry.cc
  2452. * src/BtCheckIntegrityEntry.h
  2453. * src/BtFileAllocationEntry.cc
  2454. * src/BtFileAllocationEntry.h
  2455. * src/BtSetup.cc
  2456. * src/BtSetup.h
  2457. * src/CheckIntegrityCommand.cc
  2458. * src/CheckIntegrityEntry.h
  2459. * src/ChecksumCheckIntegrityEntry.cc
  2460. * src/ChecksumCheckIntegrityEntry.h
  2461. * src/DHTSetup.cc
  2462. * src/DHTSetup.h
  2463. * src/DownloadEngine.cc
  2464. * src/FileAllocationCommand.cc
  2465. * src/FileAllocationEntry.h
  2466. * src/RequestGroup.cc
  2467. * src/RequestGroup.h
  2468. * src/RequestGroupMan.cc
  2469. * src/RequestGroupMan.h
  2470. * src/StreamCheckIntegrityEntry.cc
  2471. * src/StreamCheckIntegrityEntry.h
  2472. * src/StreamFileAllocationEntry.cc
  2473. * src/StreamFileAllocationEntry.h
  2474. * src/TrackerWatcherCommand.cc
  2475. * src/a2functional.h
  2476. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Changed method signature:
  2478. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2479. DHTBucket::getGoodNodes,
  2480. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2481. * src/BNode.cc
  2482. * src/BNode.h
  2483. * src/DHTAbstractNodeLookupTask.cc
  2484. * src/DHTAutoSaveCommand.cc
  2485. * src/DHTBucket.cc
  2486. * src/DHTBucket.h
  2487. * src/DHTBucketRefreshTask.cc
  2488. * src/DHTFindNodeMessage.cc
  2489. * src/DHTGetPeersMessage.cc
  2490. * src/DHTRoutingTable.cc
  2491. * src/DHTRoutingTable.h
  2492. * test/BNodeTest.cc
  2493. * test/DHTBucketTest.cc
  2494. * test/DHTRoutingTableTest.cc
  2495. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2496. In piece selection functions, Pass std::deque<...> by reference rather
  2497. than returning it.
  2498. * src/BitfieldMan.cc
  2499. * src/BitfieldMan.h
  2500. * src/DefaultBtRequestFactory.cc
  2501. * src/DefaultPieceStorage.cc
  2502. * src/Piece.cc
  2503. * src/Piece.h
  2504. * test/BitfieldManTest.cc
  2505. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Implemented rarest piece first piece selection strategy.
  2507. * src/AbstractBtMessage.cc
  2508. * src/AbstractBtMessage.h
  2509. * src/BitfieldMan.cc
  2510. * src/BitfieldMan.h
  2511. * src/BtBitfieldMessage.cc
  2512. * src/BtHaveAllMessage.cc
  2513. * src/BtHaveMessage.cc
  2514. * src/DefaultPieceStorage.cc
  2515. * src/DefaultPieceStorage.h
  2516. * src/PeerInteractionCommand.cc
  2517. * src/PieceStorage.h
  2518. * src/UnknownLengthPieceStorage.h
  2519. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2520. Rewritten readData and writeData.
  2521. * src/MultiDiskAdaptor.cc
  2522. * src/MultiDiskAdaptor.h
  2523. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2524. Move \n out of the message "Usage: ...".
  2525. * src/version_usage.cc
  2526. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2527. Bump up version number to 0.13.2b.
  2528. * configure.ac
  2529. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2530. Added const qualifier to argument Exception& e.
  2531. * src/Logger.h
  2532. * src/SimpleLogger.cc
  2533. * src/SimpleLogger.h
  2534. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2535. Pool connection when CWD, SIZE command fails.
  2536. * src/FtpNegotiationCommand.cc
  2537. * src/FtpNegotiationCommand.h
  2538. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2540. * src/HttpResponseCommand.cc
  2541. * src/HttpSkipResponseCommand.cc
  2542. * src/HttpSkipResponseCommand.h
  2543. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2544. Pool connection when a server returns 4xx, 5xx responses.
  2545. * src/HttpNullDownloadCommand.cc
  2546. * src/HttpNullDownloadCommand.h
  2547. * src/HttpResponse.cc
  2548. * src/HttpResponse.h
  2549. * src/HttpResponseCommand.cc
  2550. * src/HttpResponseCommand.h
  2551. * test/HttpResponseTest.cc
  2552. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2553. Print usage when no URL is specifed or bad command-line option is
  2554. specified.
  2555. * src/HelpItemFactory.cc
  2556. * src/help_tags.h
  2557. * src/option_processing.cc
  2558. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. Removed duplicate log message.
  2560. * src/AbstractCommand.cc (asyncResolveHostname)
  2561. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2562. Updated man page: --async-dns and --ftp-reuse-connection were added.
  2563. Changed -j option's default value from 5 to 1.
  2564. Added new examples using protocol auto detection feature.
  2565. Removed -T, -M usage where it can be omitted.
  2566. * doc/aria2c.1.txt
  2567. * doc/aria2c.1.html
  2568. * doc/aria2c.1.txt
  2569. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Updated command-line usage text, so that it tells users that they
  2571. can specify any number of torrent files and metalink files in
  2572. command-line.
  2573. * src/version_usage.cc
  2574. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2575. Changed the default value of -j option to 1.
  2576. * src/HelpItemFactory.cc
  2577. * src/option_processing.cc
  2578. * src/usage_text.h
  2579. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2580. Added the ability to reuse connection in FTP and it is enabled by
  2581. default. It can be disabled by --ftp-reuse-connection=false option.
  2582. * src/Command.cc
  2583. * src/DownloadCommand.cc
  2584. * src/FtpDownloadCommand.cc
  2585. * src/FtpDownloadCommand.h
  2586. * src/FtpFinishDownloadCommand.cc
  2587. * src/FtpFinishDownloadCommand.h
  2588. * src/FtpInitiateConnectionCommand.cc
  2589. * src/FtpNegotiationCommand.cc
  2590. * src/FtpNegotiationCommand.h
  2591. * src/HelpItemFactory.cc
  2592. * src/Makefile.am
  2593. * src/Makefile.in
  2594. * src/OptionHandlerFactory.cc
  2595. * src/option_processing.cc
  2596. * src/prefs.h
  2597. * src/usage_text.h
  2598. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2599. Call Command::transitStatus() before calling Command::execute(),
  2600. so that the status change made in execute() is not cleared.
  2601. * src/DownloadEngine.cc
  2602. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2603. Removed forward declaration of SocketCore class.
  2604. * src/HttpDownloadCommand.h
  2605. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2606. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  2607. in InitiateConnectionCommandFactory. They should be set only when
  2608. the protocol is HTTP or HTTPS.
  2609. * src/InitiateConnectionCommandFactory.cc
  2610. * src/RequestGroup.cc
  2611. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2612. Fixed infinite loop in checksum checking.
  2613. * src/IteratableChecksumValidator.cc
  2614. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2615. Set _supportsPersistentConnection to true by default.
  2616. * src/Request.cc
  2617. * src/RequestGroup.cc
  2618. * test/HttpRequestTest.cc
  2619. * test/RequestTest.cc
  2620. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2621. Added timeout to socket pool. The default timeout is 15 seconds,
  2622. which is the same value Apache uses.
  2623. * src/DownloadEngine.cc
  2624. * src/DownloadEngine.h
  2625. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2626. Fixed misuse of multimap::find()
  2627. * src/HttpHeader.cc
  2628. * test/HttpHeaderTest.cc
  2629. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2630. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  2631. option.
  2632. The asynchronous DNS is not capable of IPv6 yet.
  2633. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  2634. least for HTTP download.
  2635. * src/AbstractCommand.cc
  2636. * src/AbstractCommand.h
  2637. * src/AsyncNameResolver.cc
  2638. * src/AsyncNameResolver.h
  2639. * src/DHTEntryPointNameResolveCommand.cc
  2640. * src/DHTEntryPointNameResolveCommand.h
  2641. * src/DownloadEngine.cc
  2642. * src/DownloadEngine.h
  2643. * src/FtpInitiateConnectionCommand.cc
  2644. * src/FtpInitiateConnectionCommand.h
  2645. * src/HelpItemFactory.cc
  2646. * src/HttpInitiateConnectionCommand.cc
  2647. * src/HttpInitiateConnectionCommand.h
  2648. * src/InitiateConnectionCommand.cc
  2649. * src/InitiateConnectionCommand.h
  2650. * src/Makefile.am
  2651. * src/Makefile.in
  2652. * src/NameResolver.cc
  2653. * src/NameResolver.h
  2654. * src/OptionHandlerFactory.cc
  2655. * src/SocketCore.cc
  2656. * src/SocketCore.h
  2657. * src/Util.cc
  2658. * src/Util.h
  2659. * src/option_processing.cc
  2660. * src/prefs.h
  2661. * src/usage_text.h
  2662. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2663. Updated man page: --quiet, --header were added.
  2664. --metalink-servers and --enable-http-keep-alive option were updated.
  2665. * doc/aria2c.1
  2666. * doc/aria2c.1.html
  2667. * doc/aria2c.1.txt
  2668. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2669. Enable HTTP keep-alive by default.
  2670. * src/HelpItemFactory.cc
  2671. * src/option_processing.cc
  2672. * src/usage_text.h
  2673. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2674. Disable http keep-alive if the remote server is not HTTP/1.1.
  2675. * src/HttpConnection.cc
  2676. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Receive content body of 302 response so that the connection can be
  2678. reused later when http keep-alive is enabled.
  2679. * src/HttpNullDownloadCommand.cc
  2680. * src/HttpNullDownloadCommand.h
  2681. * src/HttpResponseCommand.cc
  2682. * src/HttpResponseCommand.h
  2683. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2684. const SharedHandle<Request> -> const SharedHandle<Request>&
  2685. * src/FtpDowndloadCommand.cc
  2686. * src/FtpDowndloadCommand.h
  2687. * src/HttpDownloadCommand.cc
  2688. * src/HttpDownloadCommand.h
  2689. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. Fixed the bug that the control file(.aria2 file) is not renamed
  2691. according to tryAutoFileRenaming().
  2692. tryAutoFileRenaming() was rewritten so that if both renamed file and
  2693. its control file exist, use them and continue download.
  2694. The old implementation didn't take into account of control file's
  2695. existence, so basically you couldn't continue download of renamed file.
  2696. * src/BtProgressInfoFile.h
  2697. * src/DefaultBtProgressInfoFile.cc
  2698. * src/DefaultBtProgressInfoFile.h
  2699. * src/NullProgressInfoFile.h
  2700. * src/RequestGroup.cc
  2701. * test/DefaultBtProgressInfoFileTest.cc
  2702. * test/MockBtProgressInfoFile.h
  2703. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2704. Change the default value of --metalink-servers option from `5' to `1'.
  2705. * src/HelpItemFactory.cc
  2706. * src/option_processing.cc
  2707. * src/usage_text.h
  2708. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Reimplemented transparent metalink using Accept request header.
  2710. * src/HttpRequest.cc
  2711. * src/HttpRequest.h
  2712. * src/HttpRequestCommand.cc
  2713. * src/Metalink2RequestGroup.cc
  2714. * src/RequestGroup.cc
  2715. * src/RequestGroup.h
  2716. * test/HttpRequestTest.cc
  2717. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2718. Bump up version number to 0.13.2a
  2719. * configure.ac
  2720. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Updated configure.ac using the result of autoscan.
  2722. * configure.ac
  2723. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Fixed compilation error without gcrypt/openssl.
  2725. * src/DownloadCommand.cc
  2726. * src/DownloadCommand.h
  2727. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2728. Reorganized version information so that it can be displayed in a
  2729. standard terminal screen without scrolling.
  2730. Removed http, ftp from Configuration section, because they are always
  2731. enabled.
  2732. * src/FeatureConfig.cc
  2733. * src/FeatureConfig.h
  2734. * src/main.cc
  2735. * src/messageDigest.cc
  2736. * src/messageDigest.h
  2737. * src/version_usage.cc
  2738. * test/FeatureConfigTest.cc
  2739. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2740. Masked user ID in log.
  2741. * src/FtpConnection.cc (sendUser)
  2742. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2743. Removed query part from filename in HTTP download. The query part means
  2744. the substring after "?" in URL. Firefox seems do the same thing.
  2745. A query part is sometimes very long and not suitable to filename,
  2746. so I think it is better to remove it from filename.
  2747. * src/HttpRequest.cc
  2748. * src/HttpRequest.h
  2749. * src/Request.cc
  2750. * src/Request.h
  2751. * test/HttpRequestTest.cc
  2752. * test/RequestTest.cc
  2753. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2754. Rewritten Exception class. Throw exception object, not its pointer and
  2755. catch by reference, so that remove problematic delete operator for
  2756. catched exception.
  2757. * src/Exception.cc
  2758. * src/Exception.h
  2759. * test/ExceptionTest.cc
  2760. * src/*: All files throwing/catching exception.
  2761. * test/*: All files throwing/catching exception.
  2762. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2763. Now auto protocol detection is enabled without -Z option.
  2764. But there is a important difference between with/without -Z optoin.
  2765. For example, if you type:
  2766. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  2767. then, aria2 interprets there are 3 request groups:
  2768. (1) http://host/file, http://mirror/file <-- multi-source download
  2769. (2) file1.torrent
  2770. (3) file2.metalink
  2771. On the other hand, if you invoke above command with -Z option, it is
  2772. interpreted as 4 request groups:
  2773. (1) http://host/file
  2774. (2) file1.torrent
  2775. (3) file2.metalink
  2776. (4) http://mirror/file
  2777. I think usually user don't mix multi-source URLs and torrent files, so
  2778. there is no big problem here.
  2779. * src/main.cc
  2780. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2781. Fixed the bug that causes segmentaion fault when reading XML containing
  2782. unescapsed character like '&'.
  2783. Also a modification was made which avoids adding unnecessary
  2784. characters stack and appending unused string.
  2785. * src/ExpatMetalinkProcessor.cc
  2786. * src/FileMetalinkParserState.h
  2787. * src/FilesMetalinkParserState.h
  2788. * src/FinMetalinkParserState.h
  2789. * src/HashMetalinkParserState.h
  2790. * src/InitialMetalinkParserState.h
  2791. * src/LanguageMetalinkParserState.h
  2792. * src/MetalinkMetalinkParserState.h
  2793. * src/MetalinkParserState.h
  2794. * src/MetalinkParserStateMachine.cc
  2795. * src/MetalinkParserStateMachine.h
  2796. * src/OSMetalinkParserState.h
  2797. * src/PieceHashMetalinkParserState.h
  2798. * src/PiecesMetalinkParserState.h
  2799. * src/ResourcesMetalinkParserState.h
  2800. * src/SizeMetalinkParserState.h
  2801. * src/SkipTagMetalinkParserState.h
  2802. * src/URLMetalinkParserState.h
  2803. * src/VerificationMetalinkParserState.h
  2804. * src/VersionMetalinkParserState.h
  2805. * src/XML2SAXMetalinkProcessor.cc
  2806. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2807. Added StringFormat class, which internally calls vasprintf.
  2808. operator<< is defined for this class, so it can be used with iostream
  2809. classes nicely. SimpleLogger and following functions are rewritten
  2810. using StringFormat class.
  2811. Besides, now Logger class's methods are non-const, many classes
  2812. that has a const Logger* as a member variable are modified to remove
  2813. const qualifier from the variable declaration.
  2814. * src/HelpItemFactory.cc
  2815. * src/Request.cc
  2816. * src/SimpleLogger.cc
  2817. * src/StringFormat.cc
  2818. * src/StringFormat.h
  2819. * src/Util.cc
  2820. * src/option_processing.cc
  2821. * src/version_usage.cc
  2822. * test/StringFormatTest.cc
  2823. * src/*.h: The classes that has const Logger* as a member variable.
  2824. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  2826. failed. Also fixed memory link when exception is thrown there.
  2827. * src/main.cc (AccRequestGroup)
  2828. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2829. Added build-in "Accept-Features" support. For now only "metalink" is
  2830. used in this header field.
  2831. This "metalink" value is removed from the list when connecting URLs
  2832. fed by metalink file to avoid loop in "transparent" metlaink.
  2833. * src/HttpRequest.cc
  2834. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  2835. header is also held in this variable. Also renamed setUserHeaders as
  2836. addHeader and it was rewritten to add header not just to clear the old
  2837. value.
  2838. * src/HttpRequestCommand.cc
  2839. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  2840. from "Accept-Features" list.
  2841. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  2842. default.
  2843. * src/RequestGroup.h
  2844. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  2845. * src/a2functional.h: Included <string> because Concat class depends on
  2846. it.
  2847. * test/HttpRequestTest.cc
  2848. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2849. Added comment
  2850. * src/RequestGroup.cc (createNextCommand)
  2851. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2852. Capitalized METHOD_GET and METHOD_HEAD
  2853. * src/Request.cc
  2854. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2855. Added getDownloadResults() method
  2856. * src/RequestGroupMan.cc
  2857. * src/RequestGroupMan.h
  2858. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2859. Fixed the bug that aria2 exits when commands is empty() but
  2860. _routineCommands are not.
  2861. * src/DownloadEngine.cc
  2862. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Use the default value pulled from Option object in HelpItemFactory.
  2864. except options whose defualt value is embedded in a usage text.
  2865. * src/HelpItemFactory.cc
  2866. * src/HelpItemFactory.h
  2867. * src/option_processing.cc
  2868. * src/version_usage.cc
  2869. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2870. Added --quiet option to make aria2 quiet (no console output).
  2871. --quiet option is tagged with ADVANCED.
  2872. * src/HelpItemFactory.cc
  2873. * src/LogFactory.cc
  2874. * src/LogFactory.h
  2875. * src/MultiUrlRequestInfo.cc
  2876. * src/MultiUrlRequestInfo.h
  2877. * src/NullStatCalc.h: New class. This class prints nothing.
  2878. * src/OptionHandlerFactory.cc
  2879. * src/main.cc
  2880. * src/option_processing.cc
  2881. * src/prefs.h
  2882. * src/usage_text.h
  2883. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  2885. * src/HelpItemFactory.cc (createHelpItems):
  2886. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Fixed compilation error in ExpatMetalinkProcessor.cc
  2888. * src/ExpatMetalinkProcessor.cc
  2889. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Reuse socket if the origin server supports HTTP keep-alive and
  2891. --enable-http-keep-alive or --enable-http-pipelining is given.
  2892. The current implementation doesn't reuse the connections established
  2893. against proxy server.
  2894. * src/AbstractCommand.cc
  2895. * src/DownloadEngine.cc
  2896. * src/DownloadEngine.h
  2897. * src/HttpDownloadCommand.cc
  2898. * src/HttpInitiateConnectionCommand.cc
  2899. * src/HttpResponseCommand.cc
  2900. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2901. Rewritten HTTP keep-alive and pipelining routine.
  2902. * src/AbstractCommand.cc
  2903. * src/HttpConnection.cc
  2904. * src/HttpDownloadCommand.cc
  2905. * src/HttpRequest.cc
  2906. * src/HttpRequestCommand.cc
  2907. * src/HttpResponseCommand.cc
  2908. * src/Request.cc
  2909. * src/Request.h
  2910. * src/RequestGroup.cc
  2911. * test/HttpRequestTest.cc
  2912. * test/HttpResponseTest.cc
  2913. * test/RequestTest.cc
  2914. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2915. Added missing setUserHeaders call
  2916. * src/HttpRequestCommand.cc
  2917. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2918. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  2919. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  2920. waste of time because it is more likey false.
  2921. * src/FileAllocationDispatcherCommand.cc (execute)
  2922. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2923. Now HTTP status and version are a member variable of HttpHeader.
  2924. HTTP status is processed as a string, not integer.
  2925. * src/AbstractProxyResponseCommand.cc
  2926. * src/HttpConnection.cc
  2927. * src/HttpHeader.cc
  2928. * src/HttpHeader.h
  2929. * src/HttpHeaderProcessor.cc
  2930. * src/HttpHeaderProcessor.h
  2931. * src/HttpResponse.cc
  2932. * src/HttpResponse.h
  2933. * test/HttpHeaderProcessorTest.cc
  2934. * test/HttpResponseTest.cc
  2935. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2936. Added --header option. You can specify any number of additional HTTP headers
  2937. like:
  2938. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  2939. Unlike other commad-line option, you can use --header option multiple times.
  2940. * src/HelpItemFactory.cc
  2941. * src/HttpRequest.{cc, h}
  2942. * src/HttpRequestCommand.cc
  2943. * src/OptionHandlerFactory.cc
  2944. * src/OptionHandlerImpl.h
  2945. * src/option_processing.cc
  2946. * src/prefs.h
  2947. * src/usage_text.h
  2948. * test/HttpRequestTest.cc (testUserHeaders)
  2949. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2950. Eliminates the time lag between sequential downloads and commands in
  2951. the same RequestGroup.
  2952. In old implementation, aria2 occasionally waits 1 seconds before
  2953. executing next command or RequestGroup.
  2954. This is really a waste of time, and new implementation eliminates
  2955. this unnecessary time lag.
  2956. * src/AbstractCommand.cc
  2957. * src/AutoSaveCommand.cc
  2958. * src/CheckIntegrityCommand.cc
  2959. * src/Command.{cc, h}
  2960. * src/DownloadEngine.{cc, h}
  2961. * src/DownloadEngineFactory.cc
  2962. * src/FileAllocationCommand.cc
  2963. * src/FileAllocationDispatcherCommand.cc
  2964. * src/FillRequestGroupCommand.cc
  2965. * src/FtpInitiateConnectionCommand.cc
  2966. * src/HaveEraseCommand.cc
  2967. * src/HttpInitiateConnectionCommand.cc
  2968. * src/HttpResponseCommand.cc
  2969. * src/RealtimeCommand.cc
  2970. * src/RequestGroup.cc
  2971. * src/RequestGroupMan.cc
  2972. * src/StreamFileAllocationEntry.cc
  2973. * src/TimeBasedCommand.{cc, h}
  2974. * src/TimedHaltCommand.cc
  2975. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  2977. keyword explicit and SharedHandle's default constructor initializes
  2978. its internal obj to null, old implementation initializes it using
  2979. obj's default constructor.
  2980. To assign null, write SharedHandle<T> x(...); x.reset();
  2981. TODO: test/SharedHandleTest.cc needs more tests.
  2982. * src/SharedHandle.h
  2983. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2984. Fixed type in man page.
  2985. * doc/aria2c.1.txt
  2986. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  2988. * src/SimpleLogger.{cc, h}
  2989. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2990. Implemented auto protocol detection.
  2991. Now you can do:
  2992. aria2c -Z http://host/file file1.torrent file2.metalink
  2993. (Note: -Z option is required for auto protcol detection.)
  2994. Then aria2c downloads 3 files simultaneously:
  2995. 1. http://host/file
  2996. 2. file1.torrent <-- read local torrent file
  2997. 3. file2.metalink <-- read local Metalink file.
  2998. Same thing goes with -i option. Assume your uris.txt contans:
  2999. http://host/file
  3000. file1.torrent
  3001. file2.metalink
  3002. Then you can do: aria2c -i uris.txt
  3003. (Note: -Z option is not needed if -i option is given.)
  3004. * src/main.cc
  3005. * src/ProtocolDetector.{cc, h}
  3006. * test/ProtocolDetectorTest.cc
  3007. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3008. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3009. installed
  3010. * src/ARC4Encryptor.h
  3011. * src/ARC4Decryptor.h
  3012. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. Renamed argument from 'errno' to 'err', since errno is confused with
  3014. errno defined in errno.h.
  3015. * src/LibgcryptARC4Decryptor.h
  3016. * src/LibgcryptARC4Context.h
  3017. * src/LibgcryptDHKeyExchange.h
  3018. * src/LibgcryptARC4Encryptor.h
  3019. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3020. Rewritten choking algorithm.
  3021. * src/PeerChokeCommand.{cc, h}
  3022. * src/BtInterestedMessage.cc
  3023. * src/PeerSessionResource.{cc, h}
  3024. * src/DefaultPeerStorage.{cc, h}
  3025. * src/BtNotInterestedMessage.cc
  3026. * src/DefaultBtMessageDispatcher.{cc, h}
  3027. * src/BtMessageDispatcher.h
  3028. * src/Peer.{cc, h}
  3029. * src/BtLeecherStateChoke.{cc, h}
  3030. * src/BtSetup.cc
  3031. * src/BtSeederStateChoke.{cc, h}
  3032. * src/PeerStorage.h
  3033. * test/MockPeerStorage.h
  3034. * test/MockBtMessageDispatcher.h
  3035. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3036. Fixed compilation error on x84-64 platform.
  3037. * src/AuthConfig.cc: Included ostream.
  3038. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3039. Rewritten getBasename() and getDirname(), without standard library
  3040. basename(), dirname().
  3041. * src/File.cc
  3042. * test/FileTest.cc
  3043. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Added Simplified Chinese translation. Also updated the following
  3045. translations: Polish, Dutch, German. Great thanks to all translators.
  3046. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3047. Suppress content-range error when 'Content-Range' response header
  3048. doesn't contains bytes-unit specifier 'bytes'
  3049. * src/HttpHeader.cc (getRange)
  3050. * test/HttpHeaderTest.cc
  3051. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. Fixed compilation error with g++-4.3
  3053. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3054. Added missing include files for MinGW
  3055. * test/HttpHeaderProcessorTest.cc
  3056. * test/DHTRoutingTableSerializerTest.cc
  3057. * test/DHTRoutingTableDeserializerTest.cc
  3058. * test/UriListParserTest.cc
  3059. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. Now download line is printed nicely with no garbage at the end of
  3061. line. I use ioctl to get the columns of terminal.
  3062. If stdout is redirected to another device, instead of carriage return,
  3063. end of line '\n' character is used. This is feature request#1909659
  3064. * src/ConsoleStatCalc.cc (calculateStat)
  3065. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3066. Included a2time.h
  3067. * src/DHTMessageDispatcher.h
  3068. * src/DHTMessageEntry.h
  3069. * src/DHTReplaceNodeTask.h
  3070. * src/DHTMessageTracker.h
  3071. * src/Util.h
  3072. * src/CookieBox.h
  3073. * src/SocketCore.h
  3074. * src/DefaultBtMessageDispatcher.h
  3075. * src/SocketCore.cc
  3076. * src/Util.cc
  3077. * src/DHTPingTask.h
  3078. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Fixed high memory footprint when DHT is enabled.
  3080. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3081. queued than it is processed and the queue is getting longer. As a
  3082. consequence, momory usage is increased.
  3083. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3084. replacement cache in DHTBucket which is described in Kademlia paper.
  3085. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3086. DHTReplaceNodeTask.
  3087. * src/DHTBucket.{h, cc}
  3088. (cacheNode): New function.
  3089. (getCachedNodes): New function.
  3090. (dropNode): Push back cached node to _nodes.
  3091. * test/DHTBucketTest.cc
  3092. (testCacheNode): New test
  3093. (testDropNode): New test
  3094. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3095. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3096. the unused 4KB memory when ssl is not used.
  3097. * src/SocketCore.cc
  3098. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3099. Added summary log for peer announce storage.
  3100. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3101. Removed cast
  3102. * src/DefaultPeerStorage.cc (addPeer)
  3103. Log exception message
  3104. * src/DHTMessageTracker.cc (handleTimeout)
  3105. Fixed casting
  3106. * test/HttpRequestTest.cc
  3107. * test/MetalinkProcessorTest.cc
  3108. * test/PieceTest.cc
  3109. * test/MetalinkEntryTest.cc
  3110. * test/SequenceTest.cc
  3111. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3112. * src/ParameterizedStringParser.cc (createLoop):
  3113. Removed unused variable sstep.
  3114. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3115. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3116. * src/Util.{h, cc}
  3117. (parseUInt): New function.
  3118. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3119. The actual range is uint32_t.
  3120. * test/UtilTest.cc
  3121. * src/ParameterizedStringParser.cc:
  3122. Use Util::parseUInt() for loop variables.
  3123. * test/ParameterizedStringParserTest.cc
  3124. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3125. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3126. Rewritten the functions for binding port.
  3127. * src/DHTConnectionImpl.{h, cc}
  3128. * src/PeerListenCommand.{h, cc}
  3129. * src/DHTSetup.cc
  3130. * src/BtSetup.cc
  3131. * test/DHTConnectionImplTest.cc
  3132. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3133. type cleanup for allmost all remaining files.
  3134. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3135. Type clarification
  3136. * src/PeerSessionResource.{h, cc}
  3137. * src/DefaultPieceStorage.{h, cc}
  3138. * src/Peer.{h, cc}
  3139. * test/PeerSessionResourceTest.cc
  3140. Use div function
  3141. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3142. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Type clarification
  3144. * src/DefaultPeerStorage.{h, cc}
  3145. * test/DefaultPeerStorageTest.cc
  3146. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3147. Type clarification: size_t for length or size, uint64_t for file
  3148. length, off_t for file offset.
  3149. * src/DefaultBtProgressInfoFile.cc
  3150. * src/DefaultBtContext.{h, cc}
  3151. * src/DefaultBtInteractive.cc
  3152. * src/DownloadCommand.{h, cc}
  3153. * src/IteratableChunkChecksumValidator.{h, cc}
  3154. * src/SegmentMan.{h, cc}
  3155. * src/SingleFileDownloadContext.{h, cc}
  3156. * src/IteratableChecksumValidator.{h, cc}
  3157. * src/BtContext.h
  3158. * src/IteratableValidator.h
  3159. * src/DownloadContext.h
  3160. * test/SingleFileDownloadContextTest.cc
  3161. * test/DefaultBtContextTest.cc
  3162. * test/MockBtContext.h
  3163. * test/Metalink2RequestGroupTest.cc
  3164. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Type clarification: size_t for length or size, uint64_t for file
  3166. length, off_t for file offset.
  3167. * src/PiecedSegment.cc
  3168. * src/GrowSegment.h
  3169. * src/DefaultBtRequestFactory.h
  3170. * src/DefaultBtProgressInfoFile.cc
  3171. * src/UnknownLengthPieceStorage.h
  3172. * src/DefaultPieceStorage.cc
  3173. * src/UnknownLengthPieceStorage.cc
  3174. * src/DefaultBtInteractive.cc
  3175. * src/GrowSegment.cc
  3176. * src/BitfieldMan.h
  3177. * src/DownloadCommand.cc
  3178. * src/BtRequestFactory.h
  3179. * src/PiecedSegment.h
  3180. * src/DefaultPieceStorage.h
  3181. * src/Piece.cc
  3182. * src/DefaultBtRequestFactory.cc
  3183. * src/PieceStorage.h
  3184. * src/Segment.h
  3185. * src/Piece.h
  3186. * src/BitfieldMan.cc
  3187. * src/Util.cc
  3188. * test/DefaultBtProgressInfoFileTest.cc
  3189. * test/DefaultPieceStorageTest.cc
  3190. * test/MockPieceStorage.h
  3191. * test/BtRequestMessageTest.cc
  3192. * test/DefaultBtMessageDispatcherTest.cc
  3193. * test/BitfieldManTest.cc
  3194. * test/GrowSegmentTest.cc
  3195. * test/PieceTest.cc
  3196. * test/SegmentTest.cc
  3197. * test/SegmentManTest.cc
  3198. * test/DefaultBtRequestFactoryTest.cc
  3199. * test/MockBtRequestFactory.h
  3200. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3201. Fixed compilation error with --disable-nls
  3202. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3203. in gettext.h causes the problem.
  3204. * src/common.h
  3205. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Removed subPiece related functions.
  3207. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3208. * src/DefaultPieceStorage.{h, cc}
  3209. * test/PieceTest.cc
  3210. * test/DefaultPieceStorageTest.cc
  3211. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3212. Use unsigned char for data store.
  3213. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3214. Bump up version number to 0.13.0+1
  3215. * configure.ac
  3216. * Release 0.13.0+1
  3217. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Changed inactive connection timeout to 120.
  3219. To accept more mulually interested peers, disconnect peer when there
  3220. is no interest between us after certain time passed.
  3221. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3222. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3223. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3224. when compiled with async DNS support.
  3225. * src/DownloadEngine.cc
  3226. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3227. value '10' will be a little bit short when some DNS servers are
  3228. offline and several DNS servers are tried. It should be configured
  3229. by command-line option.
  3230. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3231. Merged Ross's mingw patch.
  3232. * src/DHTRoutingTableDeserializer.cc
  3233. * src/DHTRoutingTableSerializer.cc
  3234. * src/Platform.{h, cc}
  3235. * src/timegm.h
  3236. * src/gettimeofday.h
  3237. * src/getaddrinfo.h
  3238. * src/SocketCore.h
  3239. * src/common.h
  3240. * src/inet_aton.h
  3241. * src/DownloadEngine.h
  3242. * src/gai_strerror.h
  3243. * src/a2netcompat.h
  3244. * configure.ac
  3245. * configure
  3246. * aclocal.m4
  3247. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Included missing iostream.
  3249. * test/AllTest.cc
  3250. * test/BtDependencyTest.cc
  3251. * test/BtExtendedMessageTest.cc
  3252. * test/DHTConnectionImplTest.cc
  3253. * test/DHTMessageFactoryImplTest.cc
  3254. * test/DHTMessageTrackerEntryTest.cc
  3255. * test/DHTNodeTest.cc
  3256. * test/DHTRoutingTableSerializerTest.cc
  3257. * test/DefaultBtAnnounceTest.cc
  3258. * test/DefaultBtContextTest.cc
  3259. * test/DefaultBtMessageFactoryTest.cc
  3260. * test/DefaultExtensionMessageFactoryTest.cc
  3261. * test/HandshakeExtensionMessageTest.cc
  3262. * test/HttpResponseTest.cc
  3263. * test/MetalinkProcessorTest.cc
  3264. * test/MultiFileAllocationIteratorTest.cc
  3265. * test/SocketCoreTest.cc
  3266. * test/UTPexExtensionMessageTest.cc
  3267. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Reorganized includes.
  3269. * src/NameResolver.cc
  3270. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Fixed compilation error without ares/c-ares
  3272. * src/NameResolver.h:
  3273. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3274. Added a test for large file.
  3275. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3276. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3277. Fixed the bug that file size is ignored if size > INT32_MAX
  3278. * src/SizeMetalinkParserState.cc (endElement):
  3279. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3280. Bump up version number to 0.13.0
  3281. * configure.ac
  3282. * Release 0.13.0
  3283. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. Updated Makfefile.am to make 'make dist' work.
  3285. Now packaged filename is aria2c-VERSION.tar.bz2.
  3286. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3287. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3288. Large file support is now configured by configure script.
  3289. * configure.ac
  3290. Removed unsused source files
  3291. * src/
  3292. * test/
  3293. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3294. Peer.h and BtContext.h respectively.
  3295. * src/Peer.h
  3296. * src/BtContext.h
  3297. Updated translations.
  3298. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3299. translations. Great thanks to all translators!;)
  3300. * po/*.{po, gmo}
  3301. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3302. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3303. statically declared sha1 MessageDigestContext.
  3304. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3305. initialization of short-lived MessageDigestContext.
  3306. * src/MessageDigestHelper.{h, cc}
  3307. * src/main.cc
  3308. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3309. the initialization of MessageDigestContext every time in validating
  3310. chunk checksum.
  3311. * src/DownloadCommand.{h, cc}
  3312. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3313. Add a file descriptor which connected to fast peer(latency<1500) to
  3314. select(). This change reduced CPU load.
  3315. * src/PeerInteractionCommand.cc
  3316. * src/DefaultBtInteractive.{h, cc}
  3317. * src/BtInteractive.h
  3318. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Fixed the previous insufficient fix for possible busy loop.
  3320. * src/MSEHandshake.cc (identifyHandshakeType)
  3321. Removed unused functions.
  3322. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  3323. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3324. Fixed possible busy loop if first 20 bytes are not received for a few
  3325. minutes.
  3326. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  3327. * src/ReceiverMSEHandshakeCommand.cc
  3328. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3329. Fixed compilation error
  3330. * src/ExpatMetalinkProcessor.cc
  3331. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3333. * src/DHTBucket.cc
  3334. Removed unnecessary cast.
  3335. * src/HandshakeExtensionMessage.cc
  3336. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3337. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3338. is missing.
  3339. * src/OptionHandlerFactory.cc
  3340. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3341. Fixed the bug that HAVE message is not sent for a piece they are
  3342. downloaded fom http/ftp server before any BitTorrent handshake is done
  3343. with peers.
  3344. * src/DefaultBtInteractive.cc
  3345. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3346. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3347. * src/Makefile.am
  3348. * src/Makefile.in
  3349. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. Updated README. Added html version of README and man page.
  3351. * README
  3352. * README.html
  3353. * readme2html: Shell script to generate README.html from README using
  3354. asciidoc.
  3355. * doc/aria2c.1.html
  3356. * doc/makeman: Added the line to generate aria2c.1.html
  3357. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3358. Fixed offset calculation.
  3359. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3360. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3361. Rewritten itos and uitos using template. llitos and ullitos are
  3362. replaced with itos and uitos respectively.
  3363. * src/Util.{h, cc}
  3364. * test/UtilTest.cc
  3365. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3366. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3367. of the number of bytes required for storing public key and shared
  3368. secret.
  3369. * src/LibgcryptDHKeyExchange.h
  3370. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3371. * src/MSEHandshake.cc
  3372. * test/DHKeyExchangeTest.cc
  3373. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3374. Removed since they are not used.
  3375. * src/Xml2MetalinkProcessor.{h, cc}
  3376. * src/Socket.cc
  3377. * src/SegmentSplitter.{h, cc}
  3378. * test/Xml2MetalinkProcessorTest.cc
  3379. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. Fixed the bug that prevents aria2 from stopping other than by pressing
  3381. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3382. option. aria2 doesn't stop even after --seed-time is satisfied and
  3383. continues to output blank lines in the console.
  3384. * src/ReceiverMSEHandshakeCommand.cc
  3385. * src/PeerReceiveHandshakeCommand.cc
  3386. * src/PeerListenCommand.cc
  3387. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Bump up version number to 0.13.0rc
  3389. * configure.ac
  3390. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Updated man page and some usage text.
  3392. * doc/aria2c.1.txt
  3393. * src/usage_text.h
  3394. * po/*.{po, gmo}
  3395. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3396. Updated translations. Added Finnish and Hebrew translations.
  3397. Great thanks to all translators!
  3398. * po/*.{po, gmo}
  3399. * po/LINGUAS
  3400. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Log more detailed information about each message.
  3402. * src/DHTQueryMessage.{h, cc}
  3403. * src/DHTGetPeersMessage.{h, cc}
  3404. * src/DHTFindNodeReplyMessage.{h, cc}
  3405. * src/DHTGetPeersReplyMessage.{h, cc}
  3406. * src/DHTAnnouncePeerMessage.{h, cc}
  3407. * src/DHTResponseMessage.{h, cc}
  3408. * src/DHTFindNodeMessage.{h, cc}
  3409. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Use constants defined in prefs.h
  3411. * src/option_processing.cc
  3412. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3413. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3414. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3415. Make room for future enchancements for IPv6 addresses.
  3416. Bump up version number of dht.dat file format to 2.
  3417. Not compatible with previous version.
  3418. * src/DHTRoutingTableSerializer.cc
  3419. * src/DHTRoutingTableDeserializer.cc
  3420. * test/DHTRoutingTableSerializerTest.cc
  3421. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3422. Added handling for the return values from
  3423. PeerMessageUtil::createcompact().
  3424. * src/DefaultBtContext.cc (computeFastSet):
  3425. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3426. Fixed abort when peer's ip address is IPv4-mapped address.
  3427. * src/DefaultBtContext.cc (computeFastSet)
  3428. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3429. cannot handle IPv4-mapped addresses.
  3430. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3431. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3432. Proper return value handling for OpenSSL functions.
  3433. * src/LibsslDHKeyExchange.h
  3434. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3435. Random bytes generation using libgcrypt and OpenSSL.
  3436. * src/DHTUtil.{h, cc}
  3437. * test/DHTUtilTest.cc
  3438. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3439. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3440. received.
  3441. * src/DHTMessageReceiver.cc (receiveMessage)
  3442. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3443. Fixed the bug that a return code is always 0. BUG#1897704
  3444. If error occurred during the download or there exist unfinished
  3445. downloads, aria2 returns with code 1.
  3446. * src/RequestGroupMan.{h, cc}
  3447. * src/MultiUrlRequestInfo.{h, cc}
  3448. * src/main.cc
  3449. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3450. IPv6 support for SocketCore class.
  3451. TODO: In SocketCore::establishConnection(), this is insufficient to
  3452. determin the failure of connect() here because the socket is
  3453. non-blocking state. The next addresses should be tried after select().
  3454. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3455. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3456. instead which address family independent.
  3457. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3458. information in a compact peer format which is for IPv4 only.
  3459. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3460. this is a spec of BitTorrent protocol.
  3461. * src/SocketCore.{h, cc}
  3462. * src/PeerMessageUtil.cc
  3463. * test/SocketCoreTest.cc
  3464. * test/PeerMessageUtilTest.cc
  3465. * test/DHTConnectionImplTest.cc
  3466. Handle IPv4-mapped addresses.
  3467. * src/DHTNode.cc: Now identity is determined by node id.
  3468. * src/DHTMessageTrackerEntry.cc
  3469. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3470. should handle it.
  3471. * src/DHTRoutingTableDeserializer.cc
  3472. * src/DHTMessageFactoryImpl.cc
  3473. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3474. Change the unit of --stop option from a minute to a second.
  3475. * src/usage_text.h
  3476. * src/DownloadEngineFactory.cc
  3477. * src/OptionHandlerFactory.cc
  3478. * src/message.h
  3479. * src/TimedHaltCommand.cc
  3480. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. Make listening socket non-block mode.
  3482. * src/FtpConnection.cc
  3483. * src/FtpNegotiationCommand.{h, cc}
  3484. * src/PeerListenCommand.cc
  3485. Fixed the bug that cause slow ftp negotiation.
  3486. * src/FtpNegotiationCommand.{h, cc}
  3487. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3488. Added basic tag to --enable-dht, --dht-listen-port option.
  3489. * src/HelpItemFactory.cc (createHelpItems)
  3490. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Updated text.
  3492. * src/usage_text.h
  3493. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3494. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3495. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Determin _threadtholdSpeed in each constructor for
  3497. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3498. * src/ActivePeerConnectionCommand.{h, cc}
  3499. * src/PeerReceiveHandshakeCommand.{h, cc}
  3500. * src/BtSetup.cc
  3501. * src/BtConstants.h
  3502. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Added --bt-min-crypto-level and --bt-require-crypto options.
  3504. * src/OptionHandlerFactory.cc
  3505. * src/MSEHandshake.cc
  3506. * src/HelpItemFactory.cc
  3507. * src/option_processing.cc
  3508. * src/ReceiverMSEHandshakeCommand.cc
  3509. * src/prefs.h
  3510. * src/DefaultBtAnnounce.cc
  3511. * src/InitiatorMSEHandshakeCommand.cc
  3512. * src/usage_text.h
  3513. * test/MSEHandshakeTest.cc
  3514. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Bump version number to 0.13.0b
  3516. * configure.ac
  3517. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Updated doc.
  3519. * src/MessageDigestHelper.h:
  3520. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Use raw message digest as a token instead of its hexadecimal
  3522. representation.
  3523. * src/DHTTokenTracker.cc (generateToken)
  3524. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3525. Added Message Stream Encryption(MSE) support.
  3526. Currently, aria2 accepts incoming connections with Obfuscation Header
  3527. and legacy BitTorrent Header and establishes connections with
  3528. Obfuscation Header first and if failed then retry with legacy
  3529. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3530. choose ARC4. The new option to change the default behavior is planned.
  3531. For tracker extension, "supportcrypto=1" is added statically.
  3532. * src/PeerInitiateConnectionCommand.{h, cc}
  3533. * src/PeerConnection.{h, cc}
  3534. * src/HandleRegistry.h
  3535. * src/SocketCore.h
  3536. * src/PeerReceiveHandshakeCommand.{h, cc}
  3537. * src/BtRegistry.{h, cc}
  3538. * src/PeerListenCommand.cc
  3539. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3540. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3541. * src/MSEHandshake.{h, cc}
  3542. * src/ARC4Encryptor.h
  3543. * src/ARC4Decryptor.h
  3544. * src/LibgcryptARC4Encryptor.h
  3545. * src/LibgcryptARC4Decryptor.h
  3546. * src/LibgcryptARC4Context.h
  3547. * src/LibsslARC4Encryptor.h
  3548. * src/LibsslARC4Decryptor.h
  3549. * src/LibsslARC4Context.h
  3550. * src/DHKeyExchange.h
  3551. * src/LibgcryptDHKeyExchange.h
  3552. * src/LibsslDHKeyExchange.h
  3553. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3554. * test/DefaultBtAnnounceTest.cc
  3555. * test/ARC4Test.cc
  3556. * test/DHKeyExchangeTest.cc
  3557. Removed prepareForRetry() because it is not used.
  3558. * src/PeerAbstractCommand.{h, cc}
  3559. * src/PeerInteractionCommand.{h, cc}
  3560. * src/PeerInitiateConnectionCommand.{h, cc}
  3561. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Added the ability to load nodes from torrent file. These nodes are
  3563. added to the routing table when downloading that torrent.
  3564. * src/BtContext.h
  3565. * src/DefaultBtContext.{h, cc}
  3566. * src/DHTSetup.cc
  3567. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  3568. hostname and port pair, and resolves all of them.
  3569. * src/NameResolver.{h, cc}: Added reset().
  3570. * src/RequestGroup.cc
  3571. * test/DefaultBtContextTest.cc
  3572. * test/MockBtContext.h
  3573. Removed assert() from DefaultBtContext and throw exception instead.
  3574. * src/DefaultBtContext.cc
  3575. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3576. Fixed segmentation fault bug when exiting if dht is disabled.
  3577. * src/RequestGroup.cc
  3578. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Fixed typo in log message and define the message in message.h
  3580. * src/TimedHaltCommand.cc
  3581. * src/message.h
  3582. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3583. Included RecoverableException.h to fix compilation error.
  3584. * test/DHTMessageFactoryImplTest.cc
  3585. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3586. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  3587. * test/DHTPingMessageTest.cc
  3588. * test/DHTGetPeersMessageTest.cc
  3589. * test/DHTFindNodeMessageTest.cc
  3590. * test/DHTAnnouncePeerMessageTest.cc
  3591. * test/MockDHTMessage.h
  3592. * test/MockDHTMessageFactory.h
  3593. * test/MockDHTMessageDispatcher.h: New class.
  3594. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3595. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  3596. virtual.
  3597. * src/DHTMessageDispatcher.h
  3598. * src/DHTMessageDispatcherImpl.{h, cc}
  3599. * src/DHTSetup.cc
  3600. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Adding handling of DHT error message. Just log error message and
  3602. throw exception.
  3603. * src/DHTMessageFactoryImpl.cc
  3604. * test/DHTMessageFactoryImplTest.cc
  3605. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3606. Added handling of dynamic cast failure.
  3607. * src/DHTNodeLookupTask.cc
  3608. * src/DHTPeerLookupTask.cc
  3609. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3610. Added the ability to stop aria2 itself when given time has passed
  3611. from start. Use --stop option to specify time in minutes.
  3612. When 0 is given, this feature is disabled.
  3613. * src/OptionHandlerFactory.cc
  3614. * src/TimeBasedCommand.h: Make _interval protected scope.
  3615. * src/HelpItemFactory.cc
  3616. * src/option_processing.cc
  3617. * src/prefs.h
  3618. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  3619. before calling RequestGroupMan::fillRequestGroupFromReserver().
  3620. Without this modification, the result list shows "ERR" when aria2 is
  3621. stopped by --stop option. It should be "INPR".
  3622. * src/DownloadEngine.{h, cc}
  3623. * src/DownloadEngineFactory.cc
  3624. * src/usage_text.h
  3625. * src/TimedHaltCommand.{h, cc}: New class.
  3626. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3627. Bootstrap through node added by port message.
  3628. Currently bootstrap is executed if the number of buckets in routing
  3629. table is 1.
  3630. * src/BtPortMessage.{h, cc}
  3631. * src/DefaultBtMessageFactory.{h, cc}
  3632. * src/PeerInteractionCommand.cc
  3633. * test/BtPortMessageTest.cc
  3634. * test/MockDHTTask.h
  3635. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. Extract the Peer class's member variables, which are only needed after
  3637. PeerInteractionCommand, into PeerSessionResource class.
  3638. This class is instantiated in PeerInteractionCommand class's ctor and
  3639. released in its dtor.
  3640. This will make Peer class lightweight and uses less memory for peers
  3641. which are not connected and wait in the queue.
  3642. * src/PeerChokeCommand.cc
  3643. * src/PeerSessionResource.{h, cc}
  3644. * src/PeerInteractionCommand.cc
  3645. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  3646. * src/DefaultBtInteractive.cc
  3647. * src/BtPieceMessage.cc
  3648. * src/BtInterestedMessage.cc
  3649. * src/BtUnchokeMessage.cc
  3650. * src/DefaultPeerStorage.{h, cc}
  3651. * src/PeerInitiateConnectionCommand.cc
  3652. * src/ActivePeerConnectionCommand.cc
  3653. * src/BtNotInterestedMessage.cc
  3654. * src/DefaultBtMessageDispatcher.cc
  3655. * src/BtChokeMessage.cc
  3656. * src/BtRequestMessage.cc
  3657. * src/Peer.{h, cc}
  3658. * src/BtRegistry.h
  3659. * src/TrackerWatcherCommand.cc
  3660. * src/PeerReceiveHandshakeCommand.cc
  3661. * test/BtExtendedMessageTest.cc
  3662. * test/BtAllowedFastMessageTest.cc
  3663. * test/BtCancelMessageTest.cc
  3664. * test/DefaultPieceStorageTest.cc
  3665. * test/BtBitfieldMessageTest.cc
  3666. * test/BtHaveMessageTest.cc
  3667. * test/BtNotInterestedMessageTest.cc
  3668. * test/BtRequestMessageTest.cc
  3669. * test/PeerSessionResourceTest.cc
  3670. * test/DefaultBtMessageDispatcherTest.cc
  3671. * test/PeerTest.cc
  3672. * test/BtInterestedMessageTest.cc
  3673. * test/BtRejectMessageTest.cc
  3674. * test/BtChokeMessageTest.cc
  3675. * test/DefaultPeerStorageTest.cc
  3676. * test/BtHaveNoneMessageTest.cc
  3677. * test/BtHaveAllMessageTest.cc
  3678. * test/DefaultExtensionMessageFactoryTest.cc
  3679. * test/BtUnchokeMessageTest.cc
  3680. * test/DefaultBtMessageFactoryTest.cc
  3681. * test/HandshakeExtensionMessageTest.cc
  3682. * test/UTPexExtensionMessageTest.cc
  3683. * test/DefaultBtRequestFactoryTest.cc
  3684. * test/BtPieceMessageTest.cc
  3685. Removed typedef PeerStats.
  3686. * src/PeerStat.h
  3687. * src/SegmentMan.cc
  3688. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3689. Added std namespace to copy, remove_copy, back_inserter,
  3690. front_inserter.
  3691. * src/RequestGroupMan.cc
  3692. * src/DefaultPieceStorage.cc
  3693. * src/StreamFileAllocationEntry.cc
  3694. * src/BtFileAllocationEntry.cc
  3695. * src/RequestGroup.cc
  3696. * src/MetalinkEntry.cc
  3697. * src/DelegatingPeerListProcessor.cc
  3698. * src/DefaultBtRequestFactory.cc
  3699. * src/DefaultBtMessageDispatcher.cc
  3700. * src/version_usage.cc: Included <algorithm>
  3701. * src/main.cc
  3702. * src/MetalinkParserController.cc
  3703. * src/DefaultBtContext.cc
  3704. * src/DownloadEngineFactory.cc
  3705. * src/a2algo.h
  3706. Removed.
  3707. * test/StreamUriListParserTest.cc
  3708. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  3710. ActivePeerConnectionCommand when it is given and
  3711. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  3712. * src/ActivePeerConnectionCommand.{h, cc}
  3713. * src/BtSetup.cc
  3714. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Only add socket to DownloadEngine's select routine when peer or
  3716. localhost is unchoked and interested. This lowers CPU usage a
  3717. little bit.
  3718. * src/PeerInteractionCommand.cc
  3719. * src/PeerAbstractCommand.{h, cc}
  3720. * src/BtInteractive.h
  3721. * src/DefaultBtInteractive.{h, cc}
  3722. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3723. Revert previous change because get_peers message is needed for
  3724. announce_peer anyway.
  3725. * src/DHTGetPeersCommand.cc
  3726. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3727. Request peers thought DHT only when download hasn't finished.
  3728. * src/DHTGetPeersCommand.cc
  3729. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3730. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  3731. * src/DHTBucketRefreshTask.{h, cc}
  3732. * src/DHTSetup.cc
  3733. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3734. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  3735. standard classes.
  3736. Included string.h where mem* function are used.
  3737. Added namespace aria2.
  3738. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3739. Create directory before saving DHT routing table.
  3740. Now ios::failure is now handled properly.
  3741. * src/DHTAutoSaveCommand.cc
  3742. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3743. Removed unnecessary cerr.
  3744. * src/DownloadEngine.cc
  3745. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Catch exception inside DHTMessageReceiver::receiveMessage().
  3747. Log unknown message.
  3748. * src/DHTMessageReceiver.{h, cc}
  3749. * src/DHTMessageFactory.h
  3750. * src/DHTMessageFactoryImpl.{h, cc}
  3751. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  3752. * src/DHTInteractionCommand.cc
  3753. * src/DHTUnknownMessage.{h, cc}
  3754. * test/DHTUnknownMessageTest.cc
  3755. * test/MockDHTMessageFactory.h
  3756. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Commented out ip address comparison because a host can have multiple
  3758. ip addresses and it is hard to predict the hostname is resolved into
  3759. which one.
  3760. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  3761. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3762. * po/Makefile.in: Removed since this is generated by configure.
  3763. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3764. Fixed compiler warning about redefinition of SIZE_MAX.
  3765. Use common.h instead of config.h directly here.
  3766. * src/Platform.{h, cc}
  3767. The check of ENABLE_NLS is made in gettext.h, so it is not required
  3768. here.
  3769. * common.h
  3770. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  3771. Updated gettext related files.
  3772. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  3773. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  3774. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3775. Added DHT functionality, compatible with mainline.
  3776. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  3777. You may need to specify entry point to DHT network using
  3778. --dht-entry-point. DHT uses UDP port to listen incoming message.
  3779. Use --dht-listen-port to specify port number. Make sure that your
  3780. firewall configuration can pass through UDP traffic to the port.
  3781. The routing table is saved in $HOME/.aria2/dht.dat.
  3782. * src/DHT*
  3783. * src/BNode.{h, cc}
  3784. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  3785. particular torrent.
  3786. * src/Data.cc: Rewritten ctor.
  3787. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  3788. --dht-entry-point.
  3789. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  3790. * src/RequestGroup.cc: Initialize DHT functionality. When download
  3791. ends, remove BtContext from DHTPeerAnnounceStorage.
  3792. * src/BtPortMessage.{h, cc}: Rewritten.
  3793. * src/message.h
  3794. * src/OptionHandlerImpl.cc
  3795. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  3796. --dht-entry-point.
  3797. * src/Dictionary.{h, cc} (remove): New function.
  3798. * src/prefs.h
  3799. * src/DefaultBtMessageFactory.h
  3800. * src/BtHandshakeMessage.cc
  3801. * src/ActivePeerConnectionCommand.cc
  3802. * src/SocketCore.{h, cc}: Added datagram socket support.
  3803. * src/DefaultBtMessageFactory.cc
  3804. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  3805. Create DHT commands.
  3806. * src/BtMessageFactory.h
  3807. * src/PeerMessageUtil.{h, cc}
  3808. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Fixed the bug that log file is not written when configuration file doesn't exist.
  3810. This is caused by using Logger class before LogFactory is not configured.
  3811. BUG #1875079
  3812. * src/option_processing.cc
  3813. Warning message "configuration doesn't exist" is only printed when --conf is
  3814. given.
  3815. * src/option_processing.cc
  3816. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3817. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  3818. ShaVisitor is now deprecated and slated to be removed.
  3819. * src/DefaultBtContext.cc
  3820. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3821. Externalize message to message.h
  3822. * src/Platform.cc
  3823. * src/message.h
  3824. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Set default domain and default path to cookie.
  3826. * src/HttpResponse.cc
  3827. * src/CookieBox.{h, cc}
  3828. * src/CookieParser.{h, cc}
  3829. * test/CookieParserTest.cc
  3830. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Added --no-conf and --conf-path command-line option.
  3832. --no-conf option disables loading aria2.conf file.
  3833. --conf-path option changes the configuration file path. The default
  3834. file path is $HOME/.aria2/aria2.conf
  3835. Added a warning message when the configuration file is not found.
  3836. * src/HelpItemFactory.cc
  3837. * src/option_processing.cc
  3838. * src/prefs.h
  3839. * src/usage_text.h
  3840. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Added the message to inform users that other help categories are
  3842. available in -h option.
  3843. * src/version_usage.cc
  3844. * src/TagContainer.{h, cc}
  3845. * test/TagContainerTest.cc
  3846. * src/TaggedItem.{h, cc}
  3847. * test/TaggedItemTest.cc
  3848. * src/HelpItem.h
  3849. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  3851. from PiecedSegment's ctor.
  3852. Previously Piece::getAllMissingBlockIndexes() is called from
  3853. PiecedSegment() but it is rather expensive since only first element is
  3854. used.
  3855. * src/PiecedSegment.cc
  3856. * src/Piece.{h, cc}
  3857. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3858. Rewritten get*Missing*Index functions. Now no need to allocate memory
  3859. each time these functions are called.
  3860. * src/BitfieldMan.{h, cc}
  3861. * test/BitfieldManTest.cc
  3862. * src/array_fun.h
  3863. * test/array_funTest.cc
  3864. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  3865. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  3866. filtered. Removed unnecessary cast to int32_t.
  3867. * src/BitfieldMan.{h, cc}
  3868. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3869. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  3870. payload length(4bytes) are received. This happens because lenbufLength
  3871. is not updated in this particular case and successive call of
  3872. receiveMessage() overwrites payload length with bytes recieved which
  3873. are payload body.
  3874. * src/PeerConnection.{h, cc}
  3875. * src/message.h
  3876. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  3878. peer if there are peers that have same ipaddr and port.
  3879. I've experiened segmentation fault and "pure virtual function was
  3880. called" error.
  3881. * src/Peer.h
  3882. * test/PeerTest.cc
  3883. * src/DefaultPeerStorage.cc
  3884. * test/DefaultPeerStorageTest.cc
  3885. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Removed a call to isPowerOf() because it is no longer necessary here
  3887. and a request block is not always power of 2.
  3888. BUG#1866924
  3889. * src/PeerMessageUtil.cc (checkLength)
  3890. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3891. Fixed the bug that always first found Segment is removed from
  3892. usedSegmentEntries. Removed unused functions.
  3893. * src/SegmentMan.{h, cc}
  3894. * test/SegmentManTest.cc
  3895. Fixed the bug that ServerHost is not removed.
  3896. * src/RequestGroup.cc
  3897. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3898. Fixed the bug that SegmentMan::completeSegment() is not called
  3899. even if Segment is complete when --lowest-speed-limit is enabled.
  3900. BUG#1864525
  3901. * src/DownloadCommand.{h, cc}
  3902. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3903. Fixed: hash algorithm 'sha1' is always used.
  3904. * src/DownloadCommand.cc (validatePieceHash)
  3905. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Added --enable-peer-exchange command-line option.
  3907. * src/OptionHandlerFactory.cc
  3908. * src/HelpItemFactory.cc
  3909. * src/option_processing.cc
  3910. * src/usage_text.h
  3911. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3912. Move extension from BtRuntime to ExtensionMessageFactory, because
  3913. extension can be specified per peer, not per torrent.
  3914. * src/DefaultBtInteractive.cc
  3915. * src/BtRuntime.h
  3916. * src/ExtendedMessagingAware.h
  3917. * src/ExtensionMessageFactory.h
  3918. * src/DefaultExtensionMessageFactory.cc
  3919. * test/DefaultExtensionMessageFactoryTest.cc
  3920. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3921. Added categorized option help. Specify category using --help option.
  3922. Also added the ability to search options in forward match.
  3923. * src/HelpItem.{h, cc}
  3924. * test/HelpItemTest.cc
  3925. * src/HelpItemFactory.{h, cc}
  3926. * src/TagContainer.{h, cc}
  3927. * test/TagContainerTest.cc
  3928. * src/option_processing.cc
  3929. * src/prefs.h
  3930. * src/TaggedItem.{h, cc}
  3931. * test/TaggedItemTest.cc
  3932. * src/version_usage.cc
  3933. * src/help_tags.h
  3934. * src/usage_text.h
  3935. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3936. Fixed segmentation fault when bad torrent metainfo is parsed.
  3937. Added dynamic_cast properly to detect the misconfiguration of metainfo
  3938. and then throw exception or skip it.
  3939. * src/DefaultBtContext.{h, cc}
  3940. * test/DefaultBtContextTest.cc
  3941. * src/AnnounceList.cc
  3942. * src/CompactPeerListProcessor.cc
  3943. * src/message.h
  3944. * src/DefaultBtAnnounce.{h, cc}
  3945. * test/DefaultBtAnnounceTest.cc
  3946. * src/BencodeVisitor.cc
  3947. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3948. Added missing "B"(=Byte). So now the message looks like this:
  3949. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  3950. * src/message.h (MSG_SHARE_RATIO_REPORT)
  3951. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3952. Show the seed ratio after torrent downloads.
  3953. For example, after torrent download completed and --seed-time and
  3954. --seed-ratio conditions are fulfilled, following message is printed
  3955. right after "Download complete: .....":
  3956. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  3957. * src/RequestGroupMan.cc
  3958. * src/RequestGroup.{h, cc}
  3959. * src/message.h
  3960. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Remove a defunct control file. A defunct control file means that while
  3962. it exists, but the corresponding download file is missing.
  3963. After its removal, a download restarts from the beginning.
  3964. * src/RequestGroup.cc
  3965. * src/message.h
  3966. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3967. Allocate bitfield in Peer when it is really used. More specifically,
  3968. bitfield in Peer is allocated after the connection is established and
  3969. deallocated when the connection is dropped.
  3970. Since 2 parameters(piece length and total length) was removed from the
  3971. constructor of Peer class, many test classes were modified accordingly.
  3972. See svn log for more detailed information.
  3973. * src/PeerInteractionCommand.cc
  3974. * src/CompactPeerListProcessor.cc
  3975. * src/Peer.cc
  3976. * src/DefaultPeerListProcessor.cc
  3977. * src/PeerListenCommand.cc
  3978. * src/PeerReceiveHandshakeCommand.cc
  3979. Fixed memory leak
  3980. * src/Piece.cc
  3981. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  3983. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  3984. command-line options.
  3985. * src/option_processing.cc
  3986. * src/ActivePeerConnectionCommand.cc
  3987. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3988. Send have message to peer if it already has the piece.
  3989. * src/BtHaveMessage.{h, cc}
  3990. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  3992. port.
  3993. * src/DefaultPeerStorage.{h, cc}
  3994. * test/DefaultPeerStorageTest.cc
  3995. * src/HandshakeExtensionMessage.cc
  3996. * test/HandshakeExtensionMessageTest.cc
  3997. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  3998. * src/PeerStorage.h
  3999. * test/MockPeerStorage.h
  4000. * src/PeerListenCommand.cc
  4001. * src/PeerReceiveHandshakeCommand.cc
  4002. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4003. Added --metalink-enable-unique-protocol option.
  4004. * src/Metalink2RequestGroup.cc
  4005. * src/option_processing.cc
  4006. * src/prefs.h
  4007. * src/version_usage.cc
  4008. * doc/aria2c.1.txt
  4009. * doc/aria2c.1
  4010. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Allow a peer in incomingPeer to be added peers.
  4012. * src/DefaultPeerStorage.cc
  4013. * test/DefaultPeerStorageTest.cc
  4014. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4015. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4016. I could reproduce this bug in following procedure:
  4017. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4018. 2. Restart aria2.
  4019. 3. You see the download stopped around 99%.
  4020. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4021. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4022. If timeout is reached, then _nextCommand is unused and it may contains
  4023. segments and they won't be canceled. Actually, timeout is not needed
  4024. here because if the server dropped connection, then retry is made.
  4025. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Added uTorrent compatible Peer Exchange.
  4027. * src/BencodeVisitor.{h, cc}
  4028. * test/BencodeVisitorTest.cc
  4029. * src/BtConstants.h
  4030. * src/BtContext.h: Added 'private' flag.
  4031. * src/BtExtendedMessage.{h, cc}
  4032. * test/BtExtendedMessageTest.cc
  4033. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4034. reserved field.
  4035. * test/BtHandshakeMessageTest.cc
  4036. * src/BtMessageFactory.h
  4037. * src/BtRegistry.h
  4038. * src/BtRuntime.h: This class holds default extension message IDs for
  4039. aria2. By default, aria2 uses ID 8 for ut_pex.
  4040. * src/DefaultBtContext.cc
  4041. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4042. When it is true, aria2 enables ut_pex. This value is set by
  4043. PeerInteractionCommand.
  4044. * src/DefaultBtMessageFactory.{h, cc}
  4045. * test/DefaultBtMessageFactoryTest.cc
  4046. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4047. handling to DefaultBtInteractive class.
  4048. * src/DefaultExtensionMessageFactory.{h, cc}
  4049. * test/DefaultExtensionMessageFactoryTest.cc
  4050. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4051. the container(peers and incomingPeers. The equality is determined by
  4052. Peer::id).
  4053. * test/DefaultPeerStorageTest.cc
  4054. * src/ExtensionMessage.h
  4055. * test/MockExtensionMessage.h
  4056. * src/ExtensionMessageFactory.h
  4057. * test/MockExtensionMessageFactory.h
  4058. * src/HandshakeExtensionMessage.{h, cc}
  4059. * test/HandshakeExtensionMessageTest.cc
  4060. * src/MetaEntry.h
  4061. * src/Peer.{h, cc}
  4062. * src/PeerInteractionCommand.cc
  4063. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4064. addIncomingPeer.
  4065. * src/PeerMessageUtil.{h, cc}
  4066. * src/PeerObject.h
  4067. * src/UTPexExtensionMessage.{h, cc}
  4068. * test/UTPexExtensionMessageTest.cc
  4069. * src/message.h
  4070. * src/prefs.h
  4071. Fixed the bug that returns incomplete data when it contains null
  4072. character. A convenient constructor was also added.
  4073. * src/Data.{h, cc}
  4074. Rewritten.
  4075. * src/CompactPeerListProcessor.cc
  4076. Fixed typos.
  4077. * src/message.h
  4078. * src/MetaFileUtil.cc
  4079. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Added "Status Legend" label to the explanation text of 'stat' in
  4081. download result and moved it to the last. BUG#1848214
  4082. * src/RequestGroupMan.cc
  4083. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4085. * src/Makefie.am
  4086. * test/Makefile.am
  4087. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Fixed the bug that prevents aria2 from loading cookie file when expire
  4089. value is greater than 2^31-1. BUG#1851066
  4090. * src/CookieBoxFactory.cc
  4091. * test/CookieBoxFactoryTest.cc
  4092. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4093. Fixed possible memory leak when an exception is thrown.
  4094. * src/XML2SAXMetalinkProcessor.cc
  4095. Added Expat support. If both libxml2 and Expat are installed, then
  4096. libxml2 is used by default.
  4097. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4098. ExpatMetalinkProcessor according to the configuration.
  4099. * src/ExpatMetalinkProcessor.{h, cc}
  4100. * src/main.cc: Removed libxml2 specific header and init/free function.
  4101. * src/MetalinkProcessorFactory.{h, cc}
  4102. * src/MetalinkHelper.cc
  4103. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4104. * src/MetalinkProcessor.h
  4105. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4106. MetalinkProcessorTest is used instead.
  4107. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4108. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4109. MetalinkProcessorFactory::newInstance().
  4110. * m4/libexpat.m4
  4111. * configure.ac: Added configuration options for libexpat.
  4112. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Disabled -s option in metalink download.
  4114. * src/Metalink2RequestGroup.cc
  4115. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. If several protocols are available for a mirror in metalink file,
  4117. aria2 now use one of them. --metalink-preferred-protocol option was
  4118. added to specify the preference of protocol.
  4119. * src/AbstractCommand.cc
  4120. * src/OptionHandlerFactory.cc
  4121. * src/ServerHost.{h, cc}
  4122. * src/Metalink2RequestGroup.cc
  4123. * src/RequestGroup.{h, cc}
  4124. * test/RequestGroupTest.cc
  4125. * src/option_processing.cc
  4126. * src/prefs.h
  4127. * src/HttpResponseCommand.cc
  4128. * src/MetalinkResource.{h, cc}
  4129. * src/FtpNegotiationCommand.cc
  4130. * src/MetalinkEntry.{h, cc}
  4131. * src/MetalinkEntryTest.cc
  4132. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Code cleanup and added debug log.
  4134. * src/PeerConnection.cc
  4135. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4136. Compiler error fix: applied the patch by Tiziano Mueller
  4137. * src/RequestGroup.cc
  4138. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4139. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4140. in stopped and completed event.
  4141. * src/AnnounceList.{h, cc}
  4142. * test/AnnounceListTest.cc
  4143. * src/DefaultBtAnnounce.cc
  4144. * test/DefaultBtAnnounceTest.cc
  4145. Sorted URLs.
  4146. * test/Metalink2RequestGroupTest.cc
  4147. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4148. Removed unnecessary string copy. Updated doc and corrected indentation.
  4149. * src/Base64.cc
  4150. Fixed compilation warnings
  4151. * test/DataTest.cc
  4152. * test/HttpRequestTest.cc
  4153. * test/MetaFileUtilTest.cc
  4154. * test/RequestTest.cc
  4155. * Release 0.12.0
  4156. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4157. Updated translations
  4158. * po/{de,fr,ja,nl,ru}.po
  4159. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4160. translations. Many thanks to translators.
  4161. * po/{ca,es,it,pt_BR,sv}.po
  4162. * po/LINGUAS
  4163. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4164. Added a notice about URL
  4165. * src/version_usage.cc
  4166. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4167. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4168. aria2 repeatedly sends stopped request when tracker returns error code.
  4169. * src/AnnounceList.cc
  4170. * test/AnnounceListTest.cc
  4171. * src/AnnounceTier.h
  4172. Added a message when ctrl-c is hit.
  4173. Now second ctrl-c is also handled in signal handler.
  4174. * src/RequestGroupMan.{h, cc}
  4175. * src/RequestGroup.{h, cc}
  4176. * src/MultiUrlRequestInfo.cc
  4177. * src/DownloadEngine.cc
  4178. * src/TrackerWatcherCommand.cc
  4179. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4180. Code cleanup
  4181. * src/Base64.cc (encode)
  4182. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4183. Changed Direct/IO enable/disable procesure in file allocation routine.
  4184. * src/SingleFileAllocationIterator.cc
  4185. (SingleFileAllocationIterator):
  4186. Disable directIO if offset is not multiple of 512.
  4187. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4188. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4189. Enable created SingleFileAllocationIterator's directIO.
  4190. * src/FileAllocationEntry.cc
  4191. (FileAllocationEntry): Enable directIO here.
  4192. (~FileAllocationEntry): Disable directIO here.
  4193. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4194. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4195. * src/Peer.{h, cc}
  4196. * src/DefaultPieceStorage.cc
  4197. * test/DefaultPieceStorageTest.cc
  4198. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4199. Rewritten direct I/O support routine
  4200. * src/SingleFileAllocationIterator.cc
  4201. * src/MultiDiskAdaptor.{h, cc}
  4202. * src/ByteArrayDiskWriter.h
  4203. * src/AbstractSingleDiskAdaptor.h
  4204. * src/AbstractDiskWriter.cc
  4205. * src/DefaultPieceStorage.cc
  4206. * src/DiskWriter.h
  4207. * src/BinaryStream.h
  4208. * src/IteratableChunkChecksumValidator.cc
  4209. * src/IteratableChecksumValidator.cc
  4210. * src/CheckIntegrityEntry.cc
  4211. * src/FileAllocationEntry.cc
  4212. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4213. Fixed typo
  4214. * src/version_usage.cc
  4215. Updated doc
  4216. * doc/aria2c.1.txt
  4217. * doc/aria2c.1
  4218. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Fixed compile error without message digest support.
  4220. * src/FileMetalinkParserState.cc
  4221. * src/MetalinkParserController.{h, cc}
  4222. * test/XML2SAXMetalinkProcessorTest.cc
  4223. * test/MetalinkParserControllerTest.cc
  4224. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4225. Enable direct I/O support in checksum checking.
  4226. * src/IteratableChunkChecksumValidator.{h, cc}
  4227. * test/IteratableChunkChecksumValidatorTest.cc
  4228. * src/CheckIntegrityEntry.cc
  4229. * src/PieceHashCheckIntegrityEntry.cc
  4230. * src/IteratableChecksumValidator.{h, cc}
  4231. * src/BtCheckIntegrityEntry.cc: Added doc.
  4232. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4233. Added --allow-piece-length-change option.
  4234. * src/DefaultBtProgressInfoFile.cc
  4235. * test/DefaultBtProgressInfoFileTest.cc
  4236. * src/OptionHandlerFactory.cc
  4237. * src/option_processing.cc
  4238. * src/prefs.h
  4239. * src/version_usage.cc
  4240. * doc/aria2c.1.txt
  4241. * doc/aria2c.1
  4242. Fixed: duplicated result entry appears when exception is thrown in
  4243. RequestGroup::createInitiateConnectionCommand().
  4244. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4245. Add RequestGroup to _requestGroup after RequetGroup::
  4246. createInitiateConnectionCommand() succeeds.
  4247. Externalized message
  4248. * src/XML2SAXMetalinkProcessor.cc
  4249. * src/message.h
  4250. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Forced download abort when received negative response from http/ftp
  4252. server.
  4253. * src/HttpResponseCommand.cc
  4254. * src/FtpNegotiationCommand.cc
  4255. * src/HttpResponse.cc
  4256. * src/FtpConnection.cc
  4257. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4258. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4259. the predecessor, Xml2MetalinkParser class.
  4260. I tested them against 94KB metalink file with 1234 chunk checksums.
  4261. The new one parsed it in 22msec, while it took 6000msec with old one.
  4262. * src/XML2SAXMetalinkProcessor.{h, cc}
  4263. * test/XML2SAXMetalinkProcessorTest.cc
  4264. * src/MetalinkParserController.{h, cc}
  4265. * test/MetalinkParserControllerTest.cc
  4266. * src/MetalinkParserState.h: Also added 16 subclasses.
  4267. * src/main.cc
  4268. * src/Metalink2RequestGroup.cc
  4269. * src/MetalinkHelper.cc
  4270. * src/MetalinkEntry.cc
  4271. * src/ChunkChecksum.h
  4272. Rewritten Base64 class for better performance.
  4273. * src/Base64.{h, cc}
  4274. * test/Base64Test.cc
  4275. * src/HttpRequest.cc
  4276. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4277. Fixed the bug#1841757: aria2 will connect to server to only get
  4278. file size.
  4279. * src/StreamFileAllocationEntry.cc
  4280. * src/option_processing.cc
  4281. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4282. downloads.
  4283. * src/FtpNegotiationCommand.cc
  4284. Suppressed wrong message when finding PreDownloadHandler
  4285. * src/RequestGroup.cc
  4286. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Updated usage
  4288. * src/version_usage.cc
  4289. Updated man page
  4290. * doc/aria2c.1.txt
  4291. * doc/aria2c.1
  4292. Updated po files
  4293. * po/aria2c.pot
  4294. * po/*.po
  4295. * po/*.gmo
  4296. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Eliminated g++-4.2 warning
  4298. * src/DownloadHandlerConstants.{h, cc}
  4299. * src/Util.cc
  4300. * test/MetaFileUtilTest.cc
  4301. * test/PStringBuildVisitorTest.cc
  4302. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4303. * src/RequestGroup.cc
  4304. * src/BtCheckIntegrityEntry.cc
  4305. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Fixed a2io.h
  4307. * src/a2io.h
  4308. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Added direct I/O support. The current implementation uses O_DIRECT,
  4310. which is not posix standard and is tested on linux 2.6.21.
  4311. Currently only file allocation uses direct I/O.
  4312. * src/SingleFileAllocationIterator.{h, cc}
  4313. * test/SingleFileAllocationIteratorTest.cc
  4314. * src/MultiFileAllocationIterator.{h, cc}
  4315. * test/MultiFileAllocationIteratorTest.cc
  4316. * src/BinaryStream.h
  4317. * src/DiskWriter.h
  4318. * src/AbstractDiskWriter.{h, cc}
  4319. * src/ByteArrayDiskWriter.h
  4320. * src/DiskAdaptor.h
  4321. * src/AbstractSingleDiskAdaptor.{h, cc}
  4322. * src/MultiDiskAdaptor.{h, cc}
  4323. * src/FileAllocationEntry.cc
  4324. * src/Util.{h, cc}
  4325. * src/OptionHandlerFactory.cc
  4326. * src/prefs.h
  4327. * src/version_usage.cc
  4328. * src/option_processing.cc
  4329. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  4330. handleException.
  4331. * src/MultiFileAllocationIterator.cc
  4332. Added EINTR handling
  4333. * src/SocketCore.cc
  4334. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Updated usage
  4336. * src/version_usage.cc
  4337. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Applied Ross's patch for MinGW port.
  4339. * src/DownloadEngine.h
  4340. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4341. Set Content-Type to SingleFileDownloadContext when http response is
  4342. received.
  4343. * src/HttpResponseCommand.cc
  4344. * src/HttpResponse.{h, cc}
  4345. * test/HttpResponseTest.cc
  4346. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Rewritten to add content-type support.
  4348. * src/DownloadHandler.{h, cc}
  4349. * src/BtPostDownloadHandler.{h, cc}
  4350. * test/BtPostDownloadHandlerTest.cc
  4351. * src/MetalinkPostDownloadHandler.{h, cc}
  4352. * test/MetalinkPostDownloadHandlerTest.cc
  4353. * src/PostDownloadHandler.{h, cc}
  4354. * src/DownloadHandlerConstants.{h, cc}
  4355. * src/RequestGroup.cc
  4356. * src/HttpResponseCommand.cc
  4357. * src/FtpNegotiationCommand.cc
  4358. * src/SingleFileDownloadContext.{h, cc}
  4359. * src/RequestGroup.h
  4360. * src/RequestGroupCriteria.h
  4361. * src/ContentTypeRequestGroupCriteria.h
  4362. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4363. If it is give, metalink/torrent file is not written to the disk, but
  4364. just is kept in memory. Parsing is occurred on memory.
  4365. * src/MetalinkHelper.{h, cc}
  4366. * src/MetalinkProcessor.h
  4367. * src/Xml2MetalinkProcessor.{h, cc}
  4368. * test/Xml2MetalinkProcessorTest.cc
  4369. * src/DownloadHandlerFactory.{h, cc}
  4370. * test/DownloadHandlerFactoryTest.cc
  4371. * src/PreDownloadHandler.{h, cc}
  4372. * src/OptionHandlerFactory.cc
  4373. * src/DefaultBtContext.{h, cc}
  4374. * test/DefaultBtContextTest.cc
  4375. * src/version_usage.cc
  4376. * src/Metalink2RequestGroup.{h, cc}
  4377. * src/RequestGroup.{h, cc}
  4378. * src/a2functional.h
  4379. * test/a2functionalTest.cc
  4380. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4381. * src/OptionHandlerImpl.h
  4382. * src/prefs.h
  4383. * src/Util.{h, cc}
  4384. * test/UtilTest.cc
  4385. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4386. memory usage.
  4387. * src/RequestGroupMan.{h, cc}
  4388. * src/DownloadEngine.cc
  4389. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4390. WeakHandle to SharedHandle because WeakHandle could be null.
  4391. * src/RequestGroup.{h, cc}
  4392. * src/DownloadEngineFactory.cc
  4393. * src/DownloadResult.h
  4394. Set totalLength after download finished
  4395. * src/UnknownLengthPieceStorage.{h, cc}
  4396. Keep torrent file specified in metalink in memory.
  4397. * src/Metalink2RequestGroup.cc
  4398. * src/BtDependency.cc
  4399. * src/TrueRequestGroupCriteria.h
  4400. Fixed the bug: seekg is used where seekp should be used.
  4401. * src/ByteArrayDiskWriter.cc
  4402. * test/ByteArraydiskWriterTest.cc
  4403. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4404. Fixed syntax error
  4405. * test/SequenceTest.cc
  4406. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4407. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4408. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4409. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4410. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4411. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Added the check to see whether ares_host_callback accepts timeouts
  4413. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4414. * src/NameResolver.{h, cc}
  4415. * m4/libcares.m4
  4416. * configure.ac: Set C++ for language choice.
  4417. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Fixed: compilation fails without c-ares/ares
  4419. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4420. Generate http/ftp commands only when download is incomplete.
  4421. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4422. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Corrected typo. Examples are removed since they are available in man
  4424. page.
  4425. * src/version_usage.cc
  4426. Updated man page.
  4427. * doc/aria2c.1
  4428. * doc/aria2c.1.txt
  4429. * doc/makeman: Commented out sed command.
  4430. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4431. Throw DlAbortEx when a remote file is not found.
  4432. * src/HttpResponse.cc
  4433. * src/FtpNegotiationCommand.cc
  4434. * src/message.h
  4435. Overwrite an existing file if --allow-overwrite=true is given.
  4436. * src/RequestGroup.cc
  4437. Removed unused functions
  4438. * src/AbstractCommand.h
  4439. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Removed 'extern' from 'extern typedef ...' in src/*.h
  4441. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. Updated usage
  4443. * src/version_usage.cc
  4444. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4445. Trim announce URL
  4446. * src/DefaultBtContext.cc
  4447. * test/ShaVisitorTest.cc
  4448. Trim argument s. Give trimed s to exception constructor.
  4449. * src/Util.cc (parseInt)(parseLLInt)
  4450. * test/UtilTest.cc
  4451. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4452. Set precision back to 1.
  4453. * src/ConsoleStatCalc.cc (calculateStat)
  4454. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Replaced strtol with Util::parseInt
  4456. * src/ChunkedEncoding.cc
  4457. * src/HttpConnection.cc
  4458. * src/CookieBoxFactory.cc
  4459. * src/ParameterizedStringParser.cc
  4460. * src/Util.cc
  4461. * test/UtilTest.cc
  4462. * test/OptionHandlerTest.cc
  4463. * src/Request.cc
  4464. Throw exception when empty string is given. The message for exception
  4465. changed.
  4466. * src/Util.cc (parseInt)(parseLLInt)
  4467. * src/message.h
  4468. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4469. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4470. set to 1.
  4471. * src/ConsoleStatCalc.cc (calculateStat)
  4472. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Preallocate non-requested file which is adjacent forward to requested
  4474. file('requested' files means the files given in --select-file option)
  4475. if they share a same piece.
  4476. This fixes long pause in the file system which doesn't support sparse
  4477. files like FAT32 while downloading.
  4478. * src/MultiFileAllocationIterator.{h, cc}
  4479. * test/MultiFileAllocationIteratorTest.cc
  4480. * src/FileEntry.{h, cc}
  4481. Removed unused _option.
  4482. * src/MultiDiskAdaptor.h
  4483. * test/MultiDiskAdaptorTest.cc
  4484. * src/DefaultPieceStorage.cc
  4485. Set the default value of --seed-ratio to 1.0.
  4486. If 0.0 is given, then seeding continues regardless of share ratio.
  4487. * src/version_usage.cc
  4488. * src/option_processing.cc
  4489. * src/BtSetup.cc
  4490. * doc/aria2c.1.txt
  4491. * doc/aria2c.1
  4492. Fixed: Selective download is not working in BitTorrent
  4493. * src/RequestGroup.cc
  4494. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4495. * src/PieceStorage.h
  4496. * test/MockPieceStorage.h
  4497. * src/UnknownLengthPieceStorage.h
  4498. * src/DefaultPieceStorage.{h, cc}
  4499. * src/Metalink2RequestGroup.cc
  4500. * src/RequestGroup.cc
  4501. * src/Sequence.h
  4502. * test/SequenceTest.cc
  4503. * src/IntSequence.h
  4504. * src/message.h
  4505. * src/Util.{h, cc}
  4506. * test/UtilTest.cc
  4507. Added new function 'parse' to catch exception thrown by subclass's
  4508. parseArg
  4509. * src/OptionHandler.h
  4510. * src/OptionParser.cc
  4511. * src/NameMatchOptionHandler.h
  4512. * src/OptionHandlerImpl.h
  4513. * test/OptionHandlerTest.cc
  4514. Added IntegerRangeOptionHandler. Used for --listen-port and
  4515. --select-file. Now --listen-port accepts range of port.
  4516. * src/OptionHandlerFactory.cc
  4517. * src/version_usage.cc
  4518. * src/OptionHandlerImpl.h
  4519. * src/option_processing.cc
  4520. * src/BtSetup.cc
  4521. * src/PeerListenCommand.{h, cc}
  4522. * doc/aria2c.1.txt
  4523. * doc/aria2c.1
  4524. Implemented operator< for Exception class to provide easy way to print
  4525. exception stack trace.
  4526. * src/Exception.{h, cc}
  4527. * src/main.cc
  4528. * src/option_processing.cc
  4529. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. * src/version_usage.cc
  4531. (showVersion): Reworked.
  4532. (showUsage): Added examples.
  4533. Removed Hint for total length and file name.
  4534. * src/Metalink2RequestGroup.cc
  4535. * src/RequestGroup.{h, cc}
  4536. * src/HttpResponseCommand.cc
  4537. * src/FtpNegotiationCommand.cc
  4538. Now --follow-torrent and --follow-metalink option work properly.
  4539. * src/RequestGroup.cc
  4540. Updated man page
  4541. * doc/aria2c.1.txt
  4542. * doc/aria2c.1
  4543. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4544. Removed.
  4545. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4546. Use Segment::operator==()
  4547. * src/HttpConnection.cc
  4548. * src/Segment.h
  4549. Updated usage
  4550. * src/version_usage.cc
  4551. Added EINTR treatment.
  4552. * src/SocketCore.cc
  4553. * src/AbstractDiskWriter.cc
  4554. Rewritten.
  4555. * src/Util.cc (rangedFileCopy)
  4556. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Fixed typo.
  4558. * src/version_usage.cc
  4559. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Implemented. Now -c option works fine.
  4561. * src/DefaultPieceStorage.cc (markPiecesDone)
  4562. * test/DefaultPieceStorageTest.cc
  4563. Removed.
  4564. * src/SegmentMan.{h, cc}
  4565. (markAllPiecesDone)
  4566. (markPieceDone)
  4567. Synchronized po files with
  4568. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  4569. * src/fr.po
  4570. * src/ru.po
  4571. * src/de.po
  4572. * src/ja.po
  4573. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4574. Added ifdef and some modifications to compile without BitTorrent,
  4575. Metalink, MessageDigest
  4576. support.
  4577. * src/PieceHashCheckIntegrityEntry.cc
  4578. * src/MetalinkEntry.h
  4579. * src/version_usage.cc
  4580. * src/main.cc
  4581. * src/DownloadEngine.{h, cc}
  4582. * src/Metalink2RequestGroup.cc
  4583. * src/Peer.cc
  4584. * src/RequestGroup.cc
  4585. * src/MetalinkHelper.cc
  4586. * test/DefaultPieceStorageTest.cc
  4587. * test/MetalinkPostDownloadHandlerTest.cc
  4588. * test/Metalink2RequestGroupTest.cc
  4589. Hide TOTAL SPD when all downloads complete.
  4590. * src/ConsoleStatCalc.cc
  4591. Log target system information.
  4592. * src/main.cc
  4593. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Now --metalink-location accepts a comma-deliminated list of locations.
  4595. * src/MetalinkEntry.{h, cc}
  4596. * test/MetalinkEntryTest.cc
  4597. * src/version_usage.cc
  4598. * src/Metalink2RequestGroup.cc
  4599. * src/Xml2MetalinkProcessor.cc
  4600. * test/Xml2MetalinkProcessorTest.cc
  4601. * doc/aria2c.1.txt
  4602. * doc/aria2c.1
  4603. * src/Util.cc (toUpper)(toLower): Rewritten.
  4604. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Added the ability to detect duplicate download entry which is about to
  4606. download the same file other RequestGroup is downloading.
  4607. * src/RequestGroup.cc
  4608. * src/HttpResponseCommand.cc
  4609. * src/FtpNegotiationCommand.cc
  4610. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. Recalculates download progress when loading a control file,
  4612. if the piece length of DownloadContext is different from the one saved
  4613. in the control file. Currently in-flight pieces are ignored.
  4614. * src/DefaultBtProgressInfoFile.cc
  4615. * test/DefaultBtProgressInfoFileTest.cc
  4616. * src/Util.{h, cc}
  4617. * test/UtilTest.cc
  4618. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Do not rotate tiers in announce-list.
  4620. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  4621. AnnounceList::allTiersFailed() used instead to detect whether all
  4622. tiers are tried and failed.
  4623. * test/DefaultBtAnnounceTest.cc
  4624. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  4625. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  4626. * test/AnnounceListTest.cc
  4627. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  4628. clause. Catch RecoverableException instead of DlRetryEx instead.
  4629. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Implemented checksum validation feature(1 checksum for each file)
  4631. The validation takes place after the download.
  4632. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  4633. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  4634. * src/CheckIntegrityCommand.cc: Changed log message.
  4635. * src/Metalink2RequestGroup.cc: Set checksum to
  4636. SingleFileDownloadContext.
  4637. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  4638. PieceHashCheckIntegrity class.
  4639. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  4640. PieceHashCheckIntegrity class.
  4641. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  4642. * src/IteratableValidator.h: New class.
  4643. * src/message.h
  4644. * src/CheckIntegrityEntry.{h, cc}
  4645. * src/IteratableChunkChecksumValidator.{h, cc}
  4646. * src/SingleFileDownloadContext.h
  4647. * src/DownloadCommand.cc
  4648. --allow-overwrite=true is no longer needed to check file integrity
  4649. before download in BitTorrent download.
  4650. * src/RequestGroup.cc (getInitialCommand)
  4651. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  4652. throws exception.
  4653. * src/RequestGroupMan.cc (getInitialCommands)
  4654. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. urlencode the given url inside Request::parseUrl(...)
  4656. * src/Request.{h, cc}
  4657. * src/Util.{h, cc}
  4658. * test/RequestTest.cc
  4659. Removed #!metalink3! notation support because it is deleted from
  4660. the metalink specification.
  4661. * src/Request.{h, cc}
  4662. * test/RequestTest.cc
  4663. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4664. Don't connect server before checking file integrity at startup, if
  4665. filesize and output file path are known.
  4666. * src/AbstractCommand.cc
  4667. * src/StreamFileAllocationEntry.cc
  4668. * src/Metalink2RequestGroup.cc
  4669. * src/RequestGroup.{h, cc}
  4670. * src/HttpResponseCommand.cc
  4671. * src/FtpNegotiationCommand.cc
  4672. Added DownloadFailureException. If it is thrown, RequestGroup should
  4673. halt.
  4674. * src/AbstractCommand.cc
  4675. * src/DownloadFailureException.h
  4676. * src/RequestGroup.cc
  4677. Catch RecoverableException, instead of DlAbortEx.
  4678. * src/RequestGroupMan.cc
  4679. * src/FillRequestGroupCommand.cc
  4680. * src/MetaFileUtil.cc
  4681. * src/IteratableChunkChecksumValidator.cc
  4682. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  4683. getGID())
  4684. * src/CheckIntegrityCommand.cc
  4685. * src/message.h
  4686. Print gid instead of idx.
  4687. * src/RequestGroupMan.cc
  4688. Removed exception throwers declaration.
  4689. * src/DirectDiskAdaptor.{h, cc}
  4690. * src/SocketCore.{h, cc}
  4691. * src/MultiDiskAdaptor.{h, cc}
  4692. * src/HttpConnection.{h, cc}
  4693. * src/HttpResponse.{h, cc}
  4694. * src/DiskAdaptor.{h, cc}
  4695. * src/CopyDiskAdaptor.{h, cc}
  4696. * src/MultiDiskAdaptor.{h, cc}
  4697. * src/HttpHeaderProcessor.{h, cc}
  4698. * src/AbstractSingleDiskAdaptor.{h, cc}
  4699. * src/Util.{h, cc}
  4700. * test/UtilTest.cc
  4701. * src/DefaultDiskWriter.{h, cc}
  4702. * src/FtpConnection.{h, cc}
  4703. * src/AbstractDiskWriter.{h, cc}
  4704. Removed duplicate code.
  4705. * src/StreamCheckIntegrityEntry.cc
  4706. Removed unnecessary include.
  4707. * src/DiskWriter.h
  4708. Included Exception.h
  4709. * src/option_processing.cc
  4710. Included 2 files and added doc
  4711. * src/TrackerWatcherCommand.cc
  4712. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  4713. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Changed CheckIntegrityEntry interface so that it can define
  4715. the action when all the chunk checksums are valid.
  4716. * src/CheckIntegrityEntry.h
  4717. * src/StreamCheckIntegrityEntry.{h, cc}
  4718. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  4719. are valid, then aira2 goes to seeding mode. Sometimes it is better
  4720. to exit rather than doing seeding. So, it would be good to toggle this
  4721. behavior.
  4722. * src/CheckIntegrityCommand.cc
  4723. * src/AbstractCommand.cc
  4724. * src/RequestGroup.cc
  4725. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4726. Reflect the download length of in-flight pieces.
  4727. It makes the download length readout more precise.
  4728. * src/DefaultPieceStorage.{h, cc}
  4729. * test/DefaultPieceStorageTest.cc
  4730. * src/a2functional.h
  4731. * test/a2functionalTest.cc
  4732. Lower CPU load when --max-download-limit is used.
  4733. There is up and down in speed indicator when enabling
  4734. http-pipelining but a download goes well. I think the problem is that
  4735. because http-pipelining is enabled, DownloadCommand is created for
  4736. each segment and in its constructor, PeerStat::downloadStart() is
  4737. called. In PeerStat::downloadStart(), speed calculation object is
  4738. reseted, which makes download speed zero.
  4739. * src/DownloadCommand.cc
  4740. Rewritten using accumulate.
  4741. * src/RequestGroupMan.cc (calculateStat)
  4742. Code clearnup.
  4743. * src/FtpNegotiationCommand.cc
  4744. * src/HttpResponseCommand.cc
  4745. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Fixed: Can not resume: aria2 reports download already finished.
  4747. * src/AbstractCommand.{h, cc}
  4748. * src/HttpResponseCommand.cc
  4749. * src/FtpNegotiateCommand.cc
  4750. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. Now a file is stored in the directory specified in .metalnk file
  4752. (file[@name]).
  4753. * src/Metalink2RequestGroup.cc
  4754. Create the directory structure when opening the file if it doesn't
  4755. exist.
  4756. * src/AbstractDiskWriter.cc
  4757. * src/Util.{h, cc}
  4758. * src/File.h
  4759. * test/UtilTest.cc
  4760. Removed file name comparison
  4761. * src/Metalink2RequestGroup.cc
  4762. * src/HttpResponseCommand.cc
  4763. Rewritten using Util::mkdirs()
  4764. * src/FileEntry.cc (setupDir)
  4765. * test/FileEntryTest.cc
  4766. Updated doc
  4767. * src/SingleFileDownloadContext.h
  4768. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Now SleepCommand dispatches nextCommand when halt is requested.
  4770. It avoids a possible long wait after hitting CTRL-C.
  4771. * src/SleepCommand.{h, cc}
  4772. * src/RequestGroupAware.{h, cc}
  4773. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  4775. to open listen port, then remove the port number from the tracker
  4776. request.
  4777. * src/DefaultBtAnnounce.cc
  4778. * test/DefaultBtAnnounceTest.cc
  4779. * test/MockPieceStorage.h
  4780. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  4781. them more testable.
  4782. * src/DefaultBtAnnounce.{h, cc}
  4783. * src/DefaultBtContext.{h, cc}
  4784. * src/Util.{h, cc}
  4785. * test/DefaultBtAnnounceTest.cc
  4786. * test/DefaultBtContextTest.cc
  4787. * test/UtilTest.cc
  4788. Added 'B' to upload bytes readout.
  4789. * src/ConsoleStatCalc.cc
  4790. Now the listen port for BitTorrent download is opened when it is
  4791. needed.
  4792. * src/DownloadEngineFactory.cc
  4793. * src/BtSetup.{h, cc}
  4794. * src/PeerListenCommand.{h, cc}
  4795. Now an exception thrown while parsing tracker response is now logged.
  4796. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  4797. called, which means no retry is made in this case, assuming a tracker
  4798. has a problem.
  4799. * src/TrackerWatcherCommand.cc
  4800. Fixed: downloading a file whose length is unkown fails.
  4801. * src/DownloadCommand.cc
  4802. Simplified prepareForNextSegment()
  4803. * src/DownloadCommand.cc
  4804. Updated
  4805. * po/POTFILES.in
  4806. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4807. Re-implemented a file listing for Metalink, which was dropped while
  4808. http/ftp/torrent integration was being implemented.
  4809. * src/MetalinkHelper.{h, cc}: New class.
  4810. * test/MetalinkHelperTest.cc
  4811. * src/main.cc
  4812. * src/Metalink2RequestGroup.cc
  4813. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Added the ability to display the detailed torrent file information.
  4815. Now -S option gives not only a file listing, but also total download
  4816. length, info hash, announce URI, piece length, the number of pieces,
  4817. and mode(single or multi-torrent).
  4818. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  4819. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  4820. KiB)
  4821. * test/UtilTest.cc
  4822. * src/main.cc
  4823. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4824. Added ftp://USER:PASSWD@Servername automatic parsing.
  4825. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  4826. _password. Recognize username and password in URI.
  4827. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  4828. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  4829. * src/RequestFactory.{h, cc}: Removed.
  4830. * src/AuthConfigFactory.{h, cc}: New class.
  4831. * src/FtpConnection.cc: Use AuthConfigFactory.
  4832. * src/HttpRequest.cc: Use AuthConfigFactory.
  4833. * test/HttpRequestTest.cc: Updated.
  4834. * test/RequestTest.cc: Updated.
  4835. * test/AuthConfigFactoryTest.cc: New class.
  4836. * test/RequestFactoryTest.cc: Removed.
  4837. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Use RequestGroup::allDownloadFinished() to decide whether the control
  4839. file should be removed or saved.
  4840. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  4841. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  4842. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4843. Use File::renameTo()
  4844. * src/DefaultBtProgressInfoFile.cc
  4845. Added --no-file-allocation-limit command-line option.
  4846. * src/version_usage.cc
  4847. * src/option_processing.cc
  4848. * src/OptionHandlerFactory.cc
  4849. * src/RequestGroup.{h, cc}
  4850. * src/BtCheckIntegrityEntry.cc
  4851. * src/StreamCheckIntegrityEntry.cc
  4852. * src/prefs.h
  4853. * doc/aria2c.1.txt
  4854. * doc/aria2c.1
  4855. Now prealloc is the default value for --file-allocation option.
  4856. * src/version_usage.cc
  4857. * src/option_processing.cc
  4858. * doc/aria2c.1.txt
  4859. * doc/aria2c.1
  4860. Don't URL-encode user-agent.
  4861. * src/HttpRequest.cc
  4862. Updated translations
  4863. * po/LINGUAS: Added nl for Dutch translation.
  4864. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  4865. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  4866. * po/POTFILES.in: Updated.
  4867. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. Added the ability to recognize url-list in a torrent file.
  4869. The retrieved URLs are attached to the corresponding FileEntry.
  4870. * src/DefaultBtContext.{h, cc}
  4871. * src/FileEntry.{h, cc}
  4872. * test/DefaultBtContextTest.cc
  4873. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  4875. after the download finishes.
  4876. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  4878. the data smaller than block length.
  4879. A block length can be specified by constructor's argument.
  4880. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  4881. Get a missing piece in the range of given FileEntry. This function is
  4882. not used in the program yet.
  4883. * src/Util.h: Added some macros.
  4884. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Added HTTP/1.1 keep alive and pipelining support.
  4886. See --enable-http-keep-alive and --enable-http-pipelining option.
  4887. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  4888. Segment.
  4889. * src/HttpDownloadCommand.{h, cc}
  4890. * src/OptionHandlerFactory.cc
  4891. * src/HttpConnection.{h, cc}
  4892. * src/version_usage.cc
  4893. * src/HttpInitiateConnectionCommand.cc
  4894. * src/FtpInitiateConnectionCommand.cc
  4895. * src/Segment.h
  4896. * src/HttpRequestCommand.{h, cc}
  4897. * src/option_processing.cc
  4898. * src/prefs.h
  4899. * src/HttpResponseCommand.cc
  4900. * src/SegmentMan.{h, cc}
  4901. * src/FtpNegotiateCommand.cc
  4902. * src/HttpProxyResponseCommand.cc
  4903. * src/Request.cc
  4904. * src/HttpRequest.cc
  4905. * src/DownloadCommand.cc
  4906. * test/HttpRequestTest.cc
  4907. * test/RequestTest.cc
  4908. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4909. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  4910. finished.
  4911. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  4913. catching it inside the method.
  4914. When no file entry is found in a metalink without querying user
  4915. preferences, throw the exception with the error message that suggests
  4916. metalink file is probably broken.
  4917. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  4918. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Fixed the bug that prevents remote Metalink/Torrent file from begin
  4920. processed.
  4921. * src/RequestGroupMan.cc (removeStoppedGroup)
  4922. Added debug message.
  4923. * src/BtPostDownloadHandler.cc
  4924. * src/MetalinkPostDownloadHandler.cc
  4925. * src/PostDownloadHandler.{h, cc}
  4926. * src/RequestGroup.cc
  4927. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4928. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  4929. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4930. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  4931. stops and there are any unfinished or in-progress downloads.
  4932. Added the legend of "stat".
  4933. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Throw exception when chunck checksum verification fails.
  4935. * src/DownloadCommand.cc (validatePieceHash): New function.
  4936. * src/PiecedSegment.{h, cc} (clear): New function.
  4937. * src/GrowSegment.{h, cc} (clear): New function.
  4938. * src/Segment.h (clear): New function.
  4939. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  4940. * test/SegmentTest.cc
  4941. * test/GrowSegmentTest.cc
  4942. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. Do not send referer when redirected.
  4944. * src/Request.cc (redirectUrl)
  4945. * test/RequestTest.cc
  4946. * test/HttpRequestTest.cc
  4947. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Implemented BitTorrent/http/ftp integrated download.
  4949. I've rewritten lots of files and now some headers have forward
  4950. class declarations to reduce compile time.
  4951. The implementation is extremely alpha stage, I recommend to use this
  4952. for testing purpose only.
  4953. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. Fixed the compilation error on 64bit platform.
  4955. * test/HttpHeaderProcessorTest.cc
  4956. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Merged Ross's patch that fixes compilation problem in MinGW
  4958. * test/DefaultBtProgressInfoFileTest.cc
  4959. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Updated fr.po by sebone
  4961. * po/fr.po
  4962. Updated man page.
  4963. * doc/aria2c.1.txt
  4964. * Release 0.11.3
  4965. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  4967. failure in Metalink.
  4968. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Automatically save *.aria2 control file of http/ftp download in every
  4970. 60 seconds.
  4971. * src/AutoSaveCommand.{h, cc}: New class.
  4972. * src/TimeBasedCommand.{h, cc}: New class.
  4973. * src/DownloadEngineFactory.cc (newConsoleEngine)
  4974. Disable parameterized URI support by default. Added -P option to
  4975. enable the feature.
  4976. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  4977. * src/OptionHandlerFactory.cc
  4978. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  4979. Updated Japanese translation.
  4980. * po/ja.po
  4981. Updated man page.
  4982. * doc/aria2c.1.txt
  4983. * Release 0.11.3-rc
  4984. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  4986. it is successful, then renamed to *.aria2.
  4987. This prevents *.aria2 file from being truncated or corrupted when
  4988. file system becomes out of space.
  4989. * src/DefaultBtProgressInfoFile.cc (save)
  4990. * src/SegmentMan.cc (save)
  4991. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  4992. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Reduced the fragmentation of bitfield in http/ftp download.
  4994. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  4995. * test/BitfieldManTest.cc
  4996. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4997. Added the ability to disable segmented download in .metalink.
  4998. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  4999. 'url' tag.
  5000. * src/MetalinkEntry.{h, cc}
  5001. * src/RequestResource.{h, cc}
  5002. * src/MetalinkRequestInfo.cc
  5003. * src/Xml2MetalinkProcessor.cc
  5004. * test/Xml2MetalinkProcessorTest.cc
  5005. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5006. Added parameterized URI support.
  5007. * src/main.cc: -Z option added.
  5008. * src/OptionHandlerFactory.cc
  5009. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5010. * src/PStringDatum.h: New class.
  5011. * src/PStringSegment.{h,cc}: New class.
  5012. * src/PStringNumLoop.h: New class.
  5013. * src/PStringSelect.h: New class.
  5014. * src/NumberDecorator.h: New class.
  5015. * src/FixedWidthNumberDecorator.h: New class.
  5016. * src/AlphaNumberDecorator.h: New class.
  5017. * src/PStringVisitor.h: New class.
  5018. * src/PStringBuildVisitor.{h,cc}: New class.
  5019. * src/ParameterizedStringParser.{h,cc}: New class.
  5020. * src/Util.{h,cc}
  5021. (isNumber): New function.
  5022. (isLowercase): New function.
  5023. (isUppercase): New function.
  5024. (alphaToNum): New function.
  5025. * test/ParameterizedStringParserTest.cc: New class.
  5026. * test/AlphaNumberDecoratorTest.cc: New class.
  5027. * test/PStringBuildVisitorTest.cc: New class.
  5028. * test/UtilTest.cc
  5029. (testIsNumber): New function.
  5030. (testIsLowercase): New function.
  5031. (testIsUppercase): New function.
  5032. (testAlphaToNum): New function.
  5033. Added '\n' after the error message
  5034. * src/RequestInfo.h (printDownloadAbortMessage)
  5035. Added auto file renaming feature in http(s)/ftp download.
  5036. * src/main.cc: Added --auto-file-renaming command-line option.
  5037. * src/OptionHandlerFactory.cc
  5038. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5039. * src/RequestGroup.{h, cc}
  5040. (shouldCancelDownloadForSafety): Rewritten
  5041. (tryAutoFileRenaming): New function.
  5042. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5043. * src/HttpResponseCommand.cc
  5044. (executeInternal): Removed the call to RequestGroupMan::
  5045. isSameFileBeingDownloaded()
  5046. * src/FtpNegotiateCommand.cc
  5047. (recvSize): Removed the call to RequestGroupMan::
  5048. isSameFileBeingDownloaded()
  5049. * test/RequestGroupTest.cc: New class.
  5050. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5052. IO.
  5053. * src/DefaultBtProgressInfoFile.cc
  5054. * src/MetaFileUtil.cc
  5055. * src/SimpleLogger.cc
  5056. * src/SegmentMan.cc
  5057. * src/Util.cc
  5058. * src/Platform.cc
  5059. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5061. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5062. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5063. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5064. Fixed the bug that prevents file allocation is not done when
  5065. dowloading multi-torrent file.
  5066. * src/AbstractDiskWriter.cc (openFile)
  5067. Increase the maximum number of -j option from 15 to 45.
  5068. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5069. Added fr.po, thanks to Charles Landemaine.
  5070. * po/fr.po
  5071. * po/LINGUAS
  5072. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5073. gcc 3.4.4 support:
  5074. * src/DefaultBtContext.cc: int32_t -> int
  5075. * src/main.cc: int -> int32_t, int32_t -> int
  5076. * src/messageDigest.h: uint32_t -> unsigned int
  5077. * src/NameResolver.h: int32_t -> int
  5078. * src/PeerConnection.cc: int -> int32_t
  5079. * src/SpeedCalc.cc: int32_t -> int
  5080. * src/TrackerUpdateCommand.h: int -> int32_t
  5081. * src/Util.cc: int32_t -> int
  5082. * src/Util.h: int32_t -> int
  5083. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5084. * test/AnnounceListTest.cc: int -> int32_t
  5085. * test/ChunkedEncodingTest.cc: int -> int32_t
  5086. * test/DataTest.cc: int -> int32_t
  5087. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5088. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5089. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5090. * test/FeatureConfigTest.cc: int -> int32_t
  5091. * test/MetalinkEntryTest.cc: int -> int32_t
  5092. * test/MockBtRequestFactory.h: int -> int32_t
  5093. * test/MockPieceStorage.h: int -> int32_t
  5094. * test/OptionTest.cc: int -> int32_t
  5095. * test/RequestTest.cc: int -> int32_t
  5096. * test/SegmentManTest.cc: int -> int32_t
  5097. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5098. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5099. Move sleep functions to Util class:
  5100. * src/Util.cc
  5101. (sleep): New function.
  5102. (usleep): New function.
  5103. * src/DownloadCommand.cc: sleep -> Util::sleep
  5104. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5105. MinGW build enhancements. The following files are added:
  5106. * src/timegm.{c,h}
  5107. Changes to support the above new files:
  5108. * configure.ac
  5109. * src/Makefile.am
  5110. * src/a2time.h
  5111. * src/Util.cc:
  5112. * src/strptime.c: Added support for %Z option.
  5113. Fixed MinGW non-blocking bug.
  5114. * src/SocketCore.cc
  5115. * src/HttpRequestCommand.cc
  5116. Miscellenous build fixes/enhancements.
  5117. * configure.ac: Added summary report.
  5118. * src/Platform.h: Tweaked #include's.
  5119. * src/a2netcompat.h: Tweaked #include's.
  5120. * src/strptime.h: Tweaked #include's.
  5121. * src/gai_strerror.c: Tweaked #include's.
  5122. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5123. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5124. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5125. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5126. Increased the initial connection size in BitTorrent download to 40.
  5127. * src/BtRuntime.h
  5128. Added the usage message of --peer-id-prefix option.
  5129. * src/main.cc
  5130. * Release 0.11.2
  5131. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. MessageDigestHelper is introduced in order to simplify the use
  5133. of message digest. Removed repeated code.
  5134. The message digest algorithm is now specified by string, like "sha1",
  5135. "md5".
  5136. * src/messageDigest.{h, cc}
  5137. * src/MessageDigestHelper.{h, cc}: New class.
  5138. * src/DefaultPieceStorage.cc
  5139. * src/DefaultBtContext.{h, cc}
  5140. (computeFastSet): New function.
  5141. (setInfoHash): Added for unit testing.
  5142. (setNumPieces): Added for unit testing.
  5143. * src/DefaultBtInteractive.cc
  5144. * src/BtPieceMessage.cc
  5145. * src/Peer.cc
  5146. * src/Checksum.h
  5147. * src/message.h
  5148. * src/IteratableChecksumValidator.h
  5149. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5150. inside it.
  5151. * src/SegmentMan.{h, cc}
  5152. (checkIntegrity): Removed.
  5153. * src/IteratableChunkChecksumValidator.{h, cc}
  5154. * src/Util.h
  5155. (sha1Sum): Removed.
  5156. (simpleMessageDigest): Removed.
  5157. (fileChecksum): Removed.
  5158. (computeFastSet): Removed.
  5159. * src/ShaVisitor.cc
  5160. * src/ChunkChecksum.h
  5161. * src/DownloadCommand.cc
  5162. Removed messageDigest virtual functions.
  5163. * src/MultiDiskAdaptor.{h, cc}
  5164. * src/DiskAdaptor.h
  5165. * src/ByteArrayDiskWriter.h
  5166. * src/DiskWriter.h
  5167. * src/DiskAdaptorWriter.h
  5168. * src/AbstractSingleDiskAdaptor.{h, cc}
  5169. * src/AbstractDiskWriter.{h, cc}
  5170. Fixed comilation error when message digest is disabled.
  5171. * src/MetalinkEntry.{h, cc}
  5172. * src/MetalinkRequestInfo.cc
  5173. Removed srandom and random.
  5174. * src/SimpleRandomizer.h
  5175. Added size() virtual function to DiskAdaptor
  5176. * src/MultiDiskAdaptor.h
  5177. Fixed the bug that causes that files are not opened correctly in
  5178. multi-file torrent.
  5179. * src/TorrentRequestInfo.cc
  5180. * src/MultiDiskAdaptor.cc
  5181. Added SHA256 support
  5182. * src/messageDigest.cc
  5183. * src/Xml2MetalinkProcessor.cc
  5184. Show supported message digest algorithms
  5185. * src/main.cc
  5186. Updated contact info.
  5187. * src/main.cc
  5188. Applied Ross's patch
  5189. * src/a2netcompat.h
  5190. * src/main.cc
  5191. Fixed the bug that prevents a remote metalink from not being processed
  5192. even if '-o foo.metalink' is specified.
  5193. * src/MetalinkRequestInfo.cc
  5194. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. Merged Dan's patch:
  5196. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5197. Use va_copy to avoid core dump on amd64:
  5198. * src/SimpleLogger.cc
  5199. Updated contact info.
  5200. * src/main.cc
  5201. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5202. digest is not available.
  5203. * src/MetalinkEntry.h
  5204. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Make a2netcompat.h include a2io.h to fix compilation error:
  5206. * src/a2netcompat.h
  5207. * src/SocketCore.cc: Removed include of a2io.h
  5208. * src/Util.cc: Removed include of a2io.h
  5209. Gather time related functions to a2time.h:
  5210. * src/a2time.h: New file.
  5211. * src/DefaultPeerStorage.cc
  5212. * src/SimpleLogger.cc
  5213. * src/Util.{h, cc}
  5214. * src/SimpleRandomizer.h
  5215. * src/TimeA2.{h,cc}
  5216. * src/DownloadCommand.cc
  5217. * src/main.cc
  5218. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5219. a2netcompat.h:
  5220. * src/NameResolver.cc
  5221. Fixed compilation error without openssl:
  5222. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5223. Added default block to suppress compiler warnings:
  5224. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5225. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5226. MinGW build enhancements. The following files are added:
  5227. * src/gai_strerror.{c,h}
  5228. * src/gettimeofday.{c,h}
  5229. Changes to support the above new files:
  5230. * configure.ac
  5231. * src/Makefile.am
  5232. * src/a2netcompat.h
  5233. * src/TimeA2.cc
  5234. * src/DefaultPeerStorage.cc
  5235. * src/NameResolver.cc: removed mingw_strerror() function.
  5236. * src/SocketCore.cc: removed mingw_strerror() function.
  5237. Miscellaneous MinGW build fixes.
  5238. * src/a2io.h: Use _lseeki64() instead of lseek()
  5239. * src/common.h
  5240. * src/DefaultFileAllocator.cc
  5241. * src/GlowFileAllocator.cc
  5242. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5243. * src/NameResolver.cc
  5244. (callback): Changed int32_t to int.
  5245. (resolve): Changed int32_t to int.
  5246. * src/Platform.cc
  5247. * src/Platform.h
  5248. * test/MultiDiskWriterTest.cc
  5249. * test/PeerMessageUtilTest.cc
  5250. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5251. Other enhancements and fixes.
  5252. * src/HttpRequestCommand.cc
  5253. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5254. * src/SocketCore.cc:
  5255. (error): New function to abstract errno/WSAGetLastError().
  5256. (errorMsg): New function to abstract errno/WSAGetLastError().
  5257. (initiateSecureConnection): Added more detailed error reporting.
  5258. * src/SocketCore.h: Added private variable blocking, to allow
  5259. proper handling of OpenSSL psuedo-errors.
  5260. * src/message.h
  5261. (EX_SSL_INIT_FAILURE)
  5262. (EX_SSL_IO_ERROR)
  5263. (EX_SSL_PROTOCOL_ERROR)
  5264. (EX_SSL_UNKNOWN_ERROR)
  5265. (EX_SSL_CONNECT_ERROR)
  5266. (EX_SOCKET_BLOCKING)
  5267. (EX_SOCKET_NONBLOCKING)
  5268. (EX_SOCKET_UNKNOWN_ERROR)
  5269. * src/Util.cc
  5270. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5271. reserved name.
  5272. (httpGMT): Fixed typo.
  5273. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5274. Merged Ross's win32 patch(manually)
  5275. In the course of merging, following files are added.
  5276. * src/strptime.{h,c}
  5277. * src/libgen.{h,c}
  5278. * src/inet_aton.{h,c}
  5279. * src/Platform.{h,cc}
  5280. * src/localtime_r.{h,c}
  5281. * src/getaddrinfo.{h,c}
  5282. I've gethered network related things, and put them to following file:
  5283. * src/a2netcompat.h
  5284. Also io related things are put to following file:
  5285. * src/a2io.h
  5286. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5287. * src/message.h
  5288. (MSG_ALLOCATION_COMPLETED)
  5289. (EX_TOO_LARGE_FILE)
  5290. (EX_SIZE_MISMATCH)
  5291. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5292. (EX_INVALID_CHUNK_CHECKSUM)
  5293. (EX_INVALID_RANGE_HEADER)
  5294. * src/FileAllocationCommand.cc
  5295. * src/HttpResponse.cc
  5296. * src/RequestGroup.cc
  5297. * src/MultiDiskAdaptor.cc
  5298. * src/OptionHandlerImpl.h
  5299. * src/HttpResponseCommand.cc
  5300. * src/FtpNegotiateCommand.cc
  5301. * src/IteratableChecksumValidator.cc
  5302. * src/SegmentMan.cc
  5303. * src/ChunkChecksumValidator.cc
  5304. Added Randomizer::getRandomNumber(long int)
  5305. * src/Randomizer.h (getRandomNumber)
  5306. * src/SimpleRandomizer.h (getRandomNumber)
  5307. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5308. * src/Util.cc (randomAlpha): Use this new function.
  5309. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. Converted int's to in32_t. long long int's are also converted to
  5311. int64_t
  5312. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Fixed the bug that prevents cookies from being sent to the server
  5314. if the domain of cookie is FQDN and starts with ".".
  5315. * src/Cookie.cc (match)
  5316. To add the ability to change peer id.
  5317. * src/DefaultBtContext.h
  5318. (_peerIdPrefix): New variable
  5319. (setPeerIdPrefix): New function.
  5320. * src/torrentRequestInfo.cc
  5321. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  5322. DefaultBtContext.
  5323. * src/main.cc (main): Added peer-id-prefix command-line option.
  5324. The usage message is not added yet.
  5325. * src/DefaultBtContext.cc
  5326. (generatePeerId): Use _peerIdPrefix.
  5327. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  5328. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Fixed the bug that prevents filename in content-disposition from
  5330. being retrieved when filename is not quoted.
  5331. * src/Util.cc (getContentDispositionFilename)
  5332. Fixed the bug that causes infinate loop and memory leak when file open
  5333. operation failed.
  5334. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5335. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Fixed the bug that causes segfault when all URIs specified are
  5337. unsupported.
  5338. * src/RequestGroupMan.cc (getInitialCommands)
  5339. Check if RequestGroup::createNextCommand() returns empty list of
  5340. commands.
  5341. * src/RequestGroup.cc (createNextCommand)
  5342. Change log level from info to error so that users can notice that
  5343. an error occurred.
  5344. Fixed the bug that causes segfault when a zero-sized file is
  5345. downloaded.
  5346. * src/BitfieldMan.cc (isAllBitSet)
  5347. Return true if bitfieldLength is 0.
  5348. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. * src/main.cc
  5350. (showUsage): Added 3 usage examples for metalink download.
  5351. Replace MetalinkChunkChecksum with ChunkChecksum.
  5352. * src/MetalinkChunkChecksum.h: Removed.
  5353. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5354. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5355. * src/Xml2MetalinkProcessor.cc
  5356. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5357. * src/MetalinkRequestInfo.cc (execute)
  5358. * Release 0.11.1
  5359. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5360. Reads URIs from stdin when "-i -" is specified.
  5361. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5362. * src/UriListParser.h, src/UriListParser.cc: New class.
  5363. * src/StreamUriListParser.h: New class.
  5364. * src/FileUriListParser.h: New class.
  5365. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5366. instead of UriFileListParser.
  5367. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Made console readout more readable.
  5369. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5370. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5371. Fix the bug that causes -s option not to work.
  5372. * src/main.cc (main)
  5373. * src/a2algo.h: New file.
  5374. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Create directory structure specified in metalink file.
  5376. * src/RequestGroup.h, src/RequestGroup.cc
  5377. (initAndOpenFile): Create a directory to store files if it does not
  5378. exist.
  5379. (getDir): New function.
  5380. Added ETA and download speed for an individual file to readout.
  5381. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5382. * src/RequestGroup.h
  5383. (calculateDownloadSpeed): New function.
  5384. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Made -S option work with metalink file and provided selective download
  5386. to metalink.
  5387. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5388. (filename): Removed.
  5389. (file): New variable.
  5390. (size): Removed.
  5391. (operator=): Updated.
  5392. (getPath): New function.
  5393. (getLength): New function.
  5394. (toFileEntry): New function.
  5395. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5396. (execute): Use toStream.
  5397. (showFileEntry): Removed.
  5398. * src/MetalinkRequestInfo.h
  5399. (targetFiles): New variable.
  5400. (setTargetFiles): New variable.
  5401. * src/MetalinkRequestInfo.cc
  5402. (execute): Added the ability to print file information included in
  5403. a metalink file.
  5404. Added selective download mode to metalink.
  5405. * src/main.cc
  5406. (showUsage): Updated to denote that -S and --select-file options are
  5407. applicable to metalink.
  5408. * src/FileEntry.h
  5409. (operator=): New function.
  5410. (getBasename): New function.
  5411. (getDirname): New function.
  5412. * src/Util.h, src/Util.cc
  5413. (toStream): New function.
  5414. * src/Xml2MetalinkProcessor.cc: Updated.
  5415. Made aria2 work with metalink with directory structure.
  5416. * src/File.h, src/File.cc
  5417. (getBasename): New function.
  5418. (getDirname): New function.
  5419. * src/RequestGroup.h, src/RequestGroup.cc
  5420. (_topDir): New variable.
  5421. (setTopDir): New function.
  5422. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5423. Rewrote HTTP header parsing with stringstream.
  5424. * src/HttpConnection.h, src/HttpConnection.cc
  5425. (HttpRequestEntry): New class.
  5426. (headerBuf): Removed.
  5427. (headerBufLength): Removed.
  5428. (outstandingHttpRequests): Now its element type is
  5429. HttpRequestEntryHandle.
  5430. (findEndOfHeader): Removed.
  5431. (receiveResponse): Rewritten.
  5432. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5433. Updated doc for -j option to notice that it should be used with -i
  5434. option.
  5435. * src/main.cc (showUsage)
  5436. Removed unused classes.
  5437. * src/RequestInfo.h
  5438. (FileInfo): Removed.
  5439. (checksum): Removed.
  5440. (fileInfo): Removed.
  5441. (setChecksum): Removed.
  5442. (getChecksum): Removed.
  5443. (getFileInfo): Removed.
  5444. Use ISO units.
  5445. * src/ConsoleDownloadEngine.cc
  5446. * src/TorrentConsoleDownloadEngine.cc
  5447. * src/Util.cc (abbrevSize)
  5448. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Added the default listening ports to the help message.
  5450. * src/main.cc (showUsage)
  5451. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Reduce the number of calls to gettimeofday to lower CPU load.
  5453. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5454. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5455. * src/Peer.h (calculateUploadSpeed): New function.
  5456. (calculateDownloadSpeed): New function.
  5457. * src/DefaultPeerStorage.cc
  5458. (CalculateStat): Added _now variable.
  5459. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5460. and Peer::calculateUploadSpeed(const struct timeval&)
  5461. Drop connection if no request or piece message is exchanged in
  5462. a certain interval.
  5463. * src/DefaultBtInteractive.h
  5464. (btRuntime): New variable.
  5465. (inactiveCheckPoint): New variable.
  5466. (checkActiveInteraction): New function.
  5467. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5468. request or piece message is received.
  5469. (checkActiveInteraction): New function.
  5470. (doInteractionProcessing): Call checkActiveInteraction.
  5471. Fixed the bug that causes remote Metalink and Torrent files are not
  5472. processed.
  5473. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5474. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Changed format of log file.
  5476. * src/SimpleLogger.cc
  5477. * Release 0.11.0
  5478. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5479. * src/AbstractCommand.cc
  5480. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5481. MSG_MAX_TRY from error to info.
  5482. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5483. * src/message.h
  5484. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5485. (MSG_DOWNLOAD_ABORTED): Added %s.
  5486. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5487. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5488. * src/PeerAbstractCommand.cc
  5489. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5490. * src/Request.h
  5491. (cookieBox): Made ShardHandle.
  5492. * src/RequestGroup.h, src/RequestGroup.cc
  5493. (createNextCommandWithAdj): New function.
  5494. * src/FileAllocationCommand.cc
  5495. (executeInternal): Use createNextCommandWithAdj().
  5496. * src/CheckIntegrityCommand.cc
  5497. (executeInternal): Use createNextCommandWithAdj().
  5498. Added --load-cookies command-option.
  5499. * src/OptionHandlerFactory.cc
  5500. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5501. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5502. Now aria2 can handle cookie's expiration date.
  5503. * src/Cookie.h (expires): Changed its type to time_t.
  5504. * src/main.cc: Added --load-cookies command-line option.
  5505. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5506. * src/Util.h, src/Util.cc (httpGMT): New function.
  5507. * src/Request.cc (Request): Initialize cookieBox using
  5508. CookieBoxFactory.
  5509. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5510. * src/CookieParser.h, src/CookieParser.cc: New class.
  5511. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5512. * src/HttpResponseCommand.cc
  5513. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5514. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5515. download.
  5516. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Added -j command-line option.
  5518. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5519. * src/main.cc
  5520. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5521. Rewritten using stringstream.
  5522. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5523. Rewritten using stringstream.
  5524. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5525. Make download size shown in MB, KB.
  5526. * src/ConsoleDownloadEngine.h (sendStatistics)
  5527. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5528. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5529. Accept incoming connections if download rate is low.
  5530. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5531. (_lowestSpeedLimit): New variable.
  5532. (setLowestSpeedLimit): New function.
  5533. (execute): Accept incoming connections if download rate is low.
  5534. MAX_PEERS is ignored in this case.
  5535. Disable PREF_OUT in multiple concurrent download:
  5536. * src/RequestGroup.h, src/RequestGroup.cc
  5537. (setUserDefinedFilename): New function.
  5538. * src/DownloadEngineFactory.cc
  5539. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5540. concurrent download.
  5541. * src/DefaultSegmentManFactory.cc
  5542. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5543. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5545. Added its overloaded method.
  5546. * src/RequestGroup.h
  5547. (_numConcurrentCommand): New variable.
  5548. (setNumConcurrentCommand): New function.
  5549. * src/RequestGroup.cc
  5550. Abort download if same file is being downloaded concurrently.
  5551. * src/RequestGroup.h, src/RequestGroupMan.cc
  5552. (isSameFileBeingDownloaded): New function.
  5553. * src/HttpResponseCommand.cc (executeInternal)
  5554. * src/FtpNegotiateCommand.cc (recvSize)
  5555. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  5556. * main.cc: Added help message for -i option.
  5557. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  5559. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  5560. * src/MetalinkEntry.h
  5561. (checksum): Changed to ChecksumHandle
  5562. * src/MetalinkRequestInfo.cc
  5563. (checksum): Changed to ChecksumHandle
  5564. * src/File.cc
  5565. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  5566. * src/common.h
  5567. (DIR_OPEN_MODE): New definition
  5568. * src/RequestGroup.cc
  5569. (prepareForNextAction): Added an argument.
  5570. * src/message.h
  5571. (MSG_GOOD_CHECKSUM): New definition
  5572. (MSG_BAD_CHECKSUM): New definition
  5573. * src/HttpResponseCommand.cc
  5574. (handleDefaultEncoding): Continue download sequence in new
  5575. non-segmented download.
  5576. * src/FileAllocationEntry.h
  5577. (_nextDownloadCommand): New variable.
  5578. * src/DownloadCommand.cc
  5579. (prepareForNextSegment): Create ChecksumCommand if checksum is
  5580. available.
  5581. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  5582. * src/IteratableChecksumValidator.h,
  5583. src/IteratableChecksumValidator.cc: New class.
  5584. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  5585. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Change file mode to 666:
  5587. * src/common.h (OPEN_MODE): New definition.
  5588. * src/File.cc
  5589. * src/Util.cc
  5590. * src/Directry.cc
  5591. * src/AbstractDiskWriter.cc
  5592. Change the level of log message "download aborted" to debug:
  5593. * src/PeerAbstractCommand.cc (execute)
  5594. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  5595. * src/TrackerWatcherCommand.cc
  5596. (createCommand): Sleep some seconds after request failed.
  5597. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  5598. then abort tracker request.
  5599. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. * Added the simultaneous download feature.
  5601. * src/main.cc: Print "Exception caught: " when exception is caught.
  5602. Use CUIDCounter instead of BtRuntime::getNewCuid():
  5603. * src/ActivePeerConnectionCommand.cc
  5604. * src/PeerInteractionCommand.cc
  5605. * src/BtRuntime.h
  5606. (cuidCounter): Removed.
  5607. (getNewCuid): Removed.
  5608. * src/DownloadEngineFactory.cc
  5609. * src/PeerListenCommand.cc
  5610. * src/TrackerUpdateCommand.cc
  5611. * src/PeerInitiateConnectionCommand.cc
  5612. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5613. * src/PeerAbstractCommand.cc
  5614. (onAbort): Call PeerStorage::returnPeer()
  5615. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  5616. (incomingPeers): New variable.
  5617. (addIncomingPeer): New function.
  5618. (returnPeer): New function.
  5619. (onErasingPeer): New function.
  5620. (addPeer): push_back -> push_front
  5621. (getActivePeers): Rewritten.
  5622. (calculateStat): Rewritten.
  5623. * src/PeerStorage.h
  5624. (TransferStat::copy): New function.
  5625. (TransferStat::TransferStat): New function.
  5626. (TransferStat::operator=): New function.
  5627. (addIncomingPeer): New function.
  5628. (returnPeer): New function.
  5629. * src/PeerListenCommand.cc
  5630. (execute): Use PeerStorage::addIncomingPeer() instead of
  5631. Peer::addPeer().
  5632. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. Connect to a peer actively when download speed is lower than specified
  5634. speed in torrent download:
  5635. * src/ActivePeerConnectionCommand.h: New class.
  5636. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. * src/HttpRequest.cc (createRequest): url-encode user-agent
  5638. * src/main.cc: Fixed the bug that prevents download if .netrc
  5639. doesn't exist.
  5640. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5641. To cache resolved hostname:
  5642. * src/AbstractCommand.h, src/AbstractCommand.cc
  5643. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  5644. Added dns cache.
  5645. * src/FtpInitiateConnectionCommand.cc
  5646. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  5647. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  5648. NameResolver working without ares.
  5649. * src/TorrentRequestInfo.cc
  5650. (execute): Don't cache dns in torrent download.
  5651. * src/HttpInitiateConnectionCommand.cc
  5652. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  5653. * src/DNSCache.h: New class.
  5654. * src/UrlRequestInfo.cc
  5655. (execute): Use dns cache.
  5656. In http request, suppress port number in http request header if port
  5657. is 80 or 443:
  5658. * src/HttpRequest.cc (getHostText): Suppress port number in http
  5659. request header if port is 80 or 443.
  5660. (createProxyRequest): Allways send port number.
  5661. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. To add the command-line option which disables netrc support:
  5663. * src/OptionHandlerFactory.cc
  5664. (createOptionHandlers): Added PREF_NO_NETRC.
  5665. * src/main.cc: Added -n option.
  5666. * src/prefs.h (PREF_NO_NETRC): New definition.
  5667. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  5668. V_TRUE.
  5669. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  5670. is V_FALSE. This may get configurable in the future release.
  5671. To clear peer's error status by time basis:
  5672. * src/PeerAbstractCommand.cc
  5673. (onAbort): Call Peer::startBadCondition().
  5674. * src/Peer.h, src/Peer.cc
  5675. (error): Removed.
  5676. (_badConditionStartTime): New variable.
  5677. (_badConditionInterval): New variable. Initialized to 10 seconds.
  5678. (startBadCondition): New function.
  5679. (isGood): New function.
  5680. * src/DefaultPeerStorage.cc
  5681. (addPeer): Use Peer::isGood().
  5682. (FindFinePeer): Use Peer::isGood().
  5683. Always include port number in http request header:
  5684. * src/HttpRequest.cc (getHostText): Always include port number in
  5685. http request header.
  5686. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. To the ability to read options from a config file:
  5688. * src/main.cc: Command-line parameter validation is delegated to
  5689. OptionHandler class.
  5690. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  5691. * src/Option.h, src/Option.cc (clear): New function.
  5692. * src/OptionParser.h, src/OptionParser.cc: New class.
  5693. * src/OptionHandler.h: New class.
  5694. * src/NameMatchOptionHandler.h: New class.
  5695. * src/OptionHandlerImpl.h: New classes.
  5696. * src/prefs.h: '_' -> '-'
  5697. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  5698. (FTP_PASV): New definition.
  5699. * src/Util.h, src/Util.cc (getRealSize): New function.
  5700. To disable netrc support if .netrc file does not have correct
  5701. permissions:
  5702. * src/File.h, src/File.cc (mode): New function.
  5703. To prevent confidential information to be logged:
  5704. * src/HttpConnection.h, src/HttpConnection.cc
  5705. (eraseConfidentialInfo): New function.
  5706. (sendRequest): Call eraseConfidentialInfo().
  5707. (sendProxyRequest): Call eraseConfidentialInfo().
  5708. * src/main.cc: Validate permissions of .netrc file.
  5709. To add --user-agent command-line option:
  5710. * src/main.cc: Added new command line option: --user-agent
  5711. * src/prefs.h (PREF_USER_AGENT): New definition.
  5712. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  5713. parameter to HttpRequest object.
  5714. * src/AbstractProxyRequestCommand.cc
  5715. (executeInternal): Set user-agent option parameter to HttpRequest
  5716. object.
  5717. Marged the patches from Dan Fandrich.
  5718. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Use filename and size from Metalink file instead of sending HEAD
  5720. request:
  5721. * src/UrlRequestInfo.h
  5722. (_filename): New variable.
  5723. (_totalLength): New variable.
  5724. (setTotalLength): New variable.
  5725. (setFilename): New variable.
  5726. * src/MetalinkRequestInfo.cc
  5727. (execute): Set filename and size to UrlRequestInfo
  5728. * src/UrlRequestInfo.cc
  5729. (execute): Use filename and size from Metalink instead of seding
  5730. HEAD request to servers.
  5731. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. To add the ability to resume downloading a partially downloaded file
  5733. which is downloaded from the beginning:
  5734. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  5735. takes this role.
  5736. * src/main.cc: Added -c option.
  5737. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  5738. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  5739. * src/prefs.h (PREF_CONTINUE): New definition.
  5740. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  5741. * src/DefaultDiskWriter.cc
  5742. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  5743. * src/AbstractDiskWriter.h
  5744. (glowFileAllocator): New variable.
  5745. * src/AbstractDiskWriter.cc
  5746. (openExistingFile): Now preallocate file space from the end of the
  5747. existing file if totalLength argument is specified and grater than 0.
  5748. * src/UrlRequestInfo.cc: If -c option is specified and the file
  5749. to download exists in local, continue the download of the file.
  5750. --allow-overwrite=true is assumed in this context.
  5751. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  5752. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  5753. Throw exception if --check-integrity=true is specified but chunk
  5754. checksums are not provided:
  5755. * src/UrlRequestInfo.cc
  5756. Do not print URLs to stdout:
  5757. * src/UrlRequestInfo.cc
  5758. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5759. * src/Request.h: Use AuthResolver to get authentication information.
  5760. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  5761. set to RequestFactory object.
  5762. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  5763. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  5764. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  5765. create Request object.
  5766. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  5767. To integrate Netrc into exsiting classes:
  5768. * src/Request.h
  5769. (_userDefinedAuthConfig): New variable.
  5770. (findNetrcAuthenticator): New function.
  5771. (segment): Removed.
  5772. (setUserDefinedAuthConfig): New function.
  5773. (resolveHttpAuthConfigItem): New function.
  5774. (resolveFtpAuthConfigItem): New function.
  5775. (resolveHttpProxyAuthConfigItem): New function.
  5776. * src/HttpRequest.h
  5777. (authConfig): Removed.
  5778. (proxyAuthConfig): Removed.
  5779. (setAuthConfig): Removed.
  5780. (setProxyAuthConfig): Removed.
  5781. * src/UrlRequest.h
  5782. (getHeadResult): Added a parameter: authConfigHandle
  5783. * src/common.h
  5784. (SingletonHolder.h): New include.
  5785. * src/main.cc
  5786. (Netrc.h): New include.
  5787. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  5788. Added initial value of PREF_NETRC_PATH.
  5789. Added the initialization of netrc.
  5790. * src/AuthConfig.h: New class.
  5791. * src/prefs.h
  5792. (PREF_NETRC_PATH): New definition.
  5793. * src/HttpAuthConfig.h: Removed.
  5794. * src/Netrc.cc
  5795. (getRequiredNextToken): New function.
  5796. (skipMacdef): New function.
  5797. (parse): Rewritten.
  5798. * src/Netrc.h
  5799. (getRequiredNextToken): New function.
  5800. (skipMacdef): New function.
  5801. * src/Util.h, src/Util.cc
  5802. (getHomeDir): New function.
  5803. * src/TrackerWatcherComand.cc
  5804. (createRequestCommand): Use AuthConfig.
  5805. * src/FtpConnection.cc
  5806. (sendUser): Use Request::resolveFtpAuthConfigItem().
  5807. (sendPass): Use Request::resolveFtpAuthConfigItem().
  5808. * src/Request.cc
  5809. (findNetrcAuthenticator): New function.
  5810. (resolveHttpAuthConfigItem): New function.
  5811. (resolveFtpAuthConfigItem): New function.
  5812. (resolveHttpProxyAuthConfigItem): New function.
  5813. * src/UrlRequestInfo.cc: Use AuthConfig.
  5814. * src/HttpRequest.cc
  5815. (createRequest): Use authConfig.
  5816. (getProxyAuthString): Use authConfig.
  5817. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  5818. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  5819. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. To reduce overhead to find commands whose socket is either
  5821. readable or writable in the download engine loop:
  5822. * src/Command.h, src/Command.cc
  5823. (STATUS): New enum.
  5824. (status): New variable.
  5825. (statusMatch): New function.
  5826. (setStatusActive): New function.
  5827. (setStatusInactive): New function.
  5828. * src/DownloadEngine.h, src/DownloadEngine.cc
  5829. (executeCommand): New function.
  5830. (run): Simplified.
  5831. (waitData): Call Command::setStatusActive() when command's socket is
  5832. readable or writable.
  5833. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. To handle Segment as SegmentHandle:
  5835. * src/AbstractCommand.cc (execute): Rewritten.
  5836. * src/SegmentMan.h: Segment -> SegmentHandle
  5837. Introducded HttpResponse class, HttpRequest class to improve code
  5838. extensiveness and make it clear:
  5839. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  5840. HttpResponse class.
  5841. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  5842. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  5843. * src/HttpConnection.cc: Contruction of http request were moved to
  5844. HttpRequest class.
  5845. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  5846. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  5847. * src/HttpAuthConfig.h: New class.
  5848. * src/Range.h: New class.
  5849. To make FtpTunnel{Request, Response}Command and
  5850. HttpProxy{Request, Response}Command derived from
  5851. AbstractProxy{Request, Response}Command:
  5852. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  5853. Derived from AbstractProxyRequestCommand class.
  5854. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  5855. Derived from AbstractProxyResponseCommand class.
  5856. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  5857. Derived from AbstractProxyRequestCommand class.
  5858. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  5859. Derived from AbstractProxyResponseCommand class.
  5860. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  5861. : New class.
  5862. * src/AbstractProxyResponseCommand.h,
  5863. src/AbstractProxyResponseCommand.cc: New class.
  5864. To add netrc support:
  5865. * src/Netrc.h, src/Netrc.cc: New class.
  5866. * src/Util.h, src/Util.cc (split): New function.
  5867. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  5868. "Content-Range" header instead of "Range" header.
  5869. * src/HttpHeader.h
  5870. (getStatus): Removed.
  5871. (setStatus): Removed.
  5872. * src/Segment.h
  5873. (getPositionToWrite): New function.
  5874. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. * src/HttpHeader.h
  5876. (Range.h): New include.
  5877. (status): New variable.
  5878. (HttpHeader): Initialized status with 0.
  5879. (getStatus): New function.
  5880. (setStatus): New function.
  5881. (getRange): New function.
  5882. (HttpHeaderHandle): New function.
  5883. * src/HttpHeader.cc
  5884. (getRange): New function.
  5885. * src/Request.h
  5886. (RequestWeakHandle): New definition.
  5887. * src/HttpConnection.h
  5888. (HttpConnectionHandle): New type definition.
  5889. * src/HttpConnection.cc
  5890. (receiveResponse): Set HTTP status to headers.
  5891. * src/main.cc
  5892. (showUsage): Fixed typo.
  5893. * src/Segment.h
  5894. (SegmentHandle): New type definition.
  5895. * src/BitfieldMan.h
  5896. (getMissingUnusedLength): New function.
  5897. * src/BitfieldMan.cc
  5898. (getMissingUnusedLength): New function.
  5899. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. To fix static initialization order problem:
  5901. * src/BitfieldManFactory.h
  5902. (defaultRandomizer): Removed.
  5903. (factory): New variable.
  5904. (getNewFactory): Removed.
  5905. (getFactoryInstance): New function.
  5906. (setDefaultRandomizer): Rewritten.
  5907. (getDefaultRandomizer): Rewritten.
  5908. * src/BitfieldManFactory.cc
  5909. (defaultRandomizer): Removed.
  5910. (factory): Initialized to 0.
  5911. (BitfieldManFactory): Initialized randomizer to 0.
  5912. * src/DefaultPieceStorage.cc
  5913. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  5914. * src/Peer.cc
  5915. (Peer): getNewFactory() -> getFactoryInstance()
  5916. * src/SegmentMan.cc
  5917. (initBitfield): getNewFactory() -> getFactoryInstance()
  5918. * src/Piece.cc
  5919. (Piece): getNewFactory() -> getFactoryInstance()
  5920. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. To fix the bug that causes crash on Max OS X:
  5922. * src/SimpleRandomizer.h
  5923. (getInstance): Create new instance if the static variable is null.
  5924. * src/SimpleRandomizer.cc
  5925. (randomizer): Initialized to 0.
  5926. * src/BitfieldManFactory.h
  5927. (getNewFactory): Removed the call to setRandomizer().
  5928. To fix the miscalculation of the range of checksum:
  5929. * src/BitfieldMan.h
  5930. (isBitSetOffsetRange): New function.
  5931. * src/BitfieldMan.cc
  5932. (isBitSetOffsetRange): New function.
  5933. * src/SegmentMan.cc
  5934. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  5935. Use bitfield->getBlockLength() instead of segment.segmentLength.
  5936. * Release 0.10.1
  5937. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. To lower CPU usage in BitTorrent download when --max-upload-limit
  5939. command-line option specified:
  5940. * src/DefaultBtMessageDispatcher.cc
  5941. (sendMessages): Calculate uploading speed only when current message
  5942. is uploading data and is not sent yet.
  5943. * src/DefaultPeerStorage.h
  5944. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  5945. * src/HttpResponseCommand.cc
  5946. (handleDefaultEncoding): Added the cast to int32_t to itos.
  5947. This fixes compile error in Soralis 10.
  5948. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. To fix segfault in Metalink download:
  5950. * src/UrlRequestInfo.h
  5951. (filename): Removed.
  5952. (totalLength): Removed.
  5953. (setTotalLength): Removed.
  5954. (setFilename): Removed.
  5955. * src/MetalinkRequestInfo.cc
  5956. (execute): Do not set filename and totalLength to reqInfo.
  5957. Set chunk checksum to reqInfo if it is not null.
  5958. * src/HttpResponseCommand.cc
  5959. (executeInternal): Fixed filename in log.
  5960. (handleDefaultEncoding): Removed the call to initBitfield() and
  5961. markAllPiecesDone().
  5962. (handleOtherEncoding): Added HEAD method handling.
  5963. * src/FtpNegotiateCommand.cc
  5964. (executeInternal): Added SEQ_HEAD_OK handling.
  5965. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  5966. return false.
  5967. * src/FtpNegotiateCommand.h
  5968. (SEQ_HEAD_OK): New definition.
  5969. * src/SegmentMan.cc
  5970. (initBitfield): Delete bitfield.
  5971. (isChunkChecksumValidationReady): Fixed the condition.
  5972. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  5973. works fine.
  5974. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. * src/Xml2MetalinkProcessor.h
  5976. (xpathExists): New function.
  5977. * src/Xml2MetalinkProcessor.cc
  5978. (xpathExists): New function.
  5979. Not to send HEAD request if filename and size are available in Metalink
  5980. file:
  5981. * src/UrlRequestInfo.h
  5982. (filename): New variable.
  5983. (totalLength): New variable.
  5984. (setTotalLength): New function.
  5985. (setFilename): New function.
  5986. * src/MetalinkRequestInfo.cc
  5987. (execute): Set filename and size to UrlRequestInfo.
  5988. * src/MetalinkEntry.cc
  5989. (MetalinkEntry): Initialize size with 0.
  5990. * src/UrlRequestInfo.cc
  5991. (execute): Set filename and size to SegmentMan.
  5992. Not to download rest of the files after selected files are downloaded
  5993. in BitTorrent:
  5994. * src/PieceStorage.h
  5995. (allDownloadFinished): New function.
  5996. * src/DefaultBtAnnounce.cc
  5997. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  5998. downloadFinished.
  5999. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6000. * src/DefaultPieceStorage.cc
  6001. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6002. Commented out the call to finishSelectiveDownloadingMode().
  6003. (downloadFinished): Call isFilteredAllBitSet() instead of
  6004. isAllBitSet().
  6005. (allDownloadFinished): New function.
  6006. * src/DefaultBtInteractive.cc
  6007. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6008. downloadFinished().
  6009. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6010. * src/TorrentDownloadEngine.cc
  6011. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6012. * src/BitfieldMan.h
  6013. (isFilteredAllBitSet): New function.
  6014. * src/ShareRatioSeedCriteria.h
  6015. (PieceStorage.h): New include.
  6016. (pieceStorage): New variable.
  6017. (evaluate):
  6018. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6019. * src/BitfieldMan.cc
  6020. (isFilteredAllBitSet): New function.
  6021. (isAllBitSet): Filter is not took into account.
  6022. Rename --force-truncate as --allow-overwrite:
  6023. * src/TorrentRequestInfo.cc
  6024. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6025. * src/main.cc
  6026. (showUsage): --force-truncate -> --allow-overwrite
  6027. * src/message.h
  6028. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6029. * src/prefs.h
  6030. (PREF_FORCE_TRUNCATE): Removed.
  6031. (PREF_ALLOW_OVERWRITE): New definition.
  6032. * src/SegmentMan.cc
  6033. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6034. * src/MetalinkRequestInfo.cc
  6035. (execute): Queueing message are now logged in info level.
  6036. * src/common.h
  6037. (LONG_LONG_MAX): Removed.
  6038. (LONG_LONG_MIN): Removed.
  6039. * src/HttpResponseCommand.cc
  6040. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6041. * src/FtpNegotiateCommand.cc
  6042. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6043. * src/main.cc
  6044. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6045. command-line option.
  6046. (main): Added --check-integriy and --realtime-chunk-checksum
  6047. command-line option.
  6048. --force-truncate -> --allow-overwrite
  6049. Set initial value of --check-integrity option to false.
  6050. Don't show usage when error occurs while persing command-line options.
  6051. Removed deprecated --upload-limit option.
  6052. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6054. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6055. * src/BtAllowedFastMessage.cc:
  6056. * src/BtBitfieldMessage.cc
  6057. * src/BtCancelMessage.cc
  6058. * src/BtChokeMessage.cc
  6059. * src/BtHaveAllMessage.cc
  6060. * src/BtHaveMessage.cc
  6061. * src/BtHaveNoneMessage.cc
  6062. * src/BtInterestedMessage.cc
  6063. * src/BtNotInterestedMessage.cc
  6064. * src/BtPieceMessage.cc
  6065. * src/BtPortMessage.cc
  6066. * src/BtRejectMessage.cc
  6067. * src/BtRequestMessage.cc
  6068. * src/BtSuggestPieceMessage.cc
  6069. * src/BtUnchokeMessage.cc
  6070. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6071. files are affected.
  6072. * src/ChunkChecksumValidator.cc
  6073. * src/SegmentMan.cc
  6074. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6075. To add chunk checksum validation:
  6076. * src/MetalinkEntry.h
  6077. (MetalinkChunkChecksum.h): New include.
  6078. (chunkChecksum): New variable.
  6079. * src/Request.h
  6080. (method): New variable.
  6081. (setMethod): New function.
  6082. (getMethod): New function.
  6083. (METHOD_GET): New static constant.
  6084. (METHOD_HEAD): New static constant.
  6085. * src/Xml2MetalinkProcessor.h
  6086. (getPieceHash): New function.
  6087. * src/PieceStorage.h
  6088. (markAllPiecesDone): New function.
  6089. (checkIntegrity): New function.
  6090. * src/FileAllocator.h
  6091. (NullFileAllocationMonitor.h): New include.
  6092. (FileAllocator): Initialize fileAllocationMonitor with new
  6093. NullFileAllocationMonitor().
  6094. * src/MultiDiskAdaptor.h
  6095. (messageDigest.h): Remove include.
  6096. (ctx): Removed.
  6097. (hashUpdate): Added ctx.
  6098. (MultiDiskAdaptor): Removed ctx.
  6099. (sha1Sum): Renamed as messageDigest.
  6100. (messageDigest): New function.
  6101. * src/UrlRequestInfo.h
  6102. (HeadResult): New class.
  6103. (digestAlgo): New variable.
  6104. (chunkChecksumLength): New variable.
  6105. (chunkChecksums): New variable.
  6106. (getHeadResult): New function.
  6107. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6108. (setDigestAlgo): New function.
  6109. (setChunkChecksumLength): New function.
  6110. (setChunkChecksums): New function.
  6111. * src/DefaultPieceStorage.cc
  6112. (DiskAdaptorWriter.h): New include.
  6113. (ChunkChecksumValidator.h): New include.
  6114. (markAllPiecesDone): New function.
  6115. (checkIntegrity): New function.
  6116. * src/DefaultBtContext.h
  6117. (getPieceHashes): New function.
  6118. * src/TorrentRequestInfo.cc
  6119. (execute): Try to validate chunk checksum if file already exists and
  6120. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6121. * src/messageDigest.h
  6122. (~MessageDigestContext): Added digestFree().
  6123. * src/MetalinkRequestInfo.cc
  6124. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6125. * src/DiskAdaptor.h
  6126. (messageDigest.h): New include.
  6127. (sha1Sum): Renamed as messageDigest.
  6128. (messageDigest): New function.
  6129. * src/DownloadCommand.h
  6130. (PeerStat.h): New include.
  6131. (maxDownloadSpeedLimit): New variable.
  6132. (startupIdleTime): New variable.
  6133. (lowestDownloadSpeedLimit): New variable.
  6134. (peerStat): New variable.
  6135. (setMaxDownloadSpeedLimit): New function.
  6136. (setStartupIdleTime): New function.
  6137. (setLowestDownloadSPeedLimit): New function.
  6138. * src/BtContext.h
  6139. (getPieceHashes): New function.
  6140. * src/main.cc
  6141. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6142. option to true for testing purpose.
  6143. * src/BtPieceMessage.cc
  6144. (checkPieceHash): Use messageDigest
  6145. * src/DownloadEngine.cc
  6146. (SetDescriptor): Removed.
  6147. (AccumulateActiveCommand): Removed.
  6148. (waitData): Rewritten.
  6149. (updateFdSet): Rewritten.
  6150. * src/MultiDiskAdaptor.cc
  6151. (hashUpdate): Added ctx.
  6152. (sha1Sum): Renamed as messageDigest.
  6153. (messageDigest): New function.
  6154. * src/BitfieldMan.h
  6155. (isBitRangeSet): New function.
  6156. (unsetBitRange): New function.
  6157. * src/ByteArrayDiskWriter.h
  6158. (sha1Sum): Renamed as messageDigest.
  6159. (messageDigest): New function.
  6160. * src/ConsoleDownloadEngine.cc
  6161. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6162. * src/DiskWriter.h
  6163. (messageDigest.h): New include.
  6164. (sha1Sum): Renamed as messageDigest.
  6165. (messageDigest): New function.
  6166. * src/ChunkChecksumValidator.h: New class.
  6167. * src/DiskAdaptorWriter.h: New class.
  6168. * src/prefs.h
  6169. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6170. (PREF_CHECK_INTEGRITY): New definition.
  6171. * src/HttpResponseCommand.cc
  6172. (handleDefaultEncoding): Added method "HEAD" handling.
  6173. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6174. (handleOtherEncoding):
  6175. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6176. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6177. startupIdleTime, lowestDownloadSpeedLimit to command.
  6178. * src/SegmentMan.h
  6179. (getSegmentEntryByIndex): New function.
  6180. (getSegmentEntryByCuid): New function.
  6181. (getSegmentEntryIteratorByCuid): New function.
  6182. (diskWriter): DiskWriter -> DiskWriterHandle
  6183. (pieceHashes): New variable.
  6184. (chunkHashLength): New variable.
  6185. (digestAlgo): New variable.
  6186. (FindPeerStat): Removed.
  6187. (getPeerStat): Rewritten.
  6188. (markAllPiecesDone): New function.
  6189. (checkIntegrity): New function.
  6190. (tryChunkChecksumValidation): New function.
  6191. (isChunkChecksumValidationReady): New function.
  6192. * src/BitfieldMan.cc
  6193. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6194. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6195. blocks to 0.
  6196. (isBitRangeSet): New function.
  6197. (unsetBitRange): New function.
  6198. * src/FtpNegotiateCommand.cc
  6199. (executeInternal): Set maxDownloadSpeedLimit,
  6200. startupIdleTime, lowestDownloadSpeedLimit to command.
  6201. (recvSize): Added method "HEAD" handling.
  6202. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6203. * src/AbstractSingleDiskAdaptor.cc
  6204. (sha1Sum): Renamed as messageDigest.
  6205. (messageDigest): New function.
  6206. * src/AbstractSingleDiskAdaptor.h
  6207. (sha1Sum): Renamed as messageDigest.
  6208. (messageDigest): New function.
  6209. * src/Util.h
  6210. (indexRange): New function.
  6211. * src/MetalinkEntry.cc
  6212. (MetalinkEntry): Initialized chunkChecksum to 0.
  6213. * src/ShaVisitor.cc
  6214. (~ShaVisitor): Removed the call to ctx.digestFree().
  6215. * src/SegmentMan.cc
  6216. (ChunkChecksumValidator.h): New include.
  6217. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6218. to DIGEST_ALGO_SHA1.
  6219. (~SegmentMan): Removed diskWriter.
  6220. (FindSegmentEntryByIndex): Removed.
  6221. (FindSegmentEntryByCuid): Removed.
  6222. (checkoutSegment): Rewritten.
  6223. (findSlowerSegmentEntry): Rewritten.
  6224. (getSegment): Rewritten.
  6225. (updateSegment): Rewritten.
  6226. (completeSegment): Rewritten.
  6227. (markAllPiecesDone): New function.
  6228. (checkIntegrity): New function.
  6229. (isChunkChecksumValidationReady): New function.
  6230. (tryChunkChecksumValidation): New function.
  6231. * src/Xml2MetalinkProcessor.cc
  6232. (getEntry): Get size and set it to entry.
  6233. Get chunk checksum and set it to entry.
  6234. (getPieceHash): New function.
  6235. * src/Util.cc
  6236. (sha1Sum): Removed ctx.digestFree()
  6237. (fileChecksum): Removed ctx.digestFree()
  6238. (indexRange): New function.
  6239. * src/Request.cc
  6240. (METHOD_GET): New variable.
  6241. (METHOD_HEAD): New variable.
  6242. (Request): Added method.
  6243. * src/UrlRequestInfo.cc
  6244. (FatalException.h): New include.
  6245. (message.h): New include.
  6246. (operator<<): Added operator<< for class HeadResult.
  6247. (getHeadResult): New function.
  6248. (execute): Get filename and size in separate download engine.
  6249. * src/ChunkChecksumValidator.cc: New class.
  6250. * src/DownloadCommand.cc:
  6251. (DownloadCommand): Added peerStat.
  6252. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6253. the value from Option.
  6254. The buffer size is now 16KB.
  6255. Use peerStat member instead of getting it from SegmentMan.
  6256. Use startupIdleTime member instead of gettingit from Option.
  6257. Added chunk checksum validation.
  6258. * src/AbstractDiskWriter.cc
  6259. (AbstractDiskWriter): Removed ctx.
  6260. (~AbstractDiskWriter): Removed ctx.digestFree()
  6261. (writeDataInternal): Returns the return value of write.
  6262. (readDataInternal): Returns the return value of read.
  6263. (sha1Sum): Renamed as messageDigest
  6264. (messageDigest): New function.
  6265. * src/AbstractDiwkWriter.h
  6266. (messageDigest.h): Removed include.
  6267. (ctx): Removed.
  6268. (sha1Sum): Renamed as messageDigest
  6269. (messageDigest): New function.
  6270. * src/DefaultPieceStorage.h
  6271. (markAllPiecesDone): New function.
  6272. (checkIntegrity): New function.
  6273. * src/NullFileAllocationMonitor.h: New class.
  6274. * src/MetalinkChunkChecksum.h: New class.
  6275. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. To decrease CPU usage in bittorrent download, calculation results in
  6277. BitfieldMan were cached and realtime fetching PeerObject was removed
  6278. with WeakHandle introduced. Option values are set to the objects
  6279. by setter before download begins.
  6280. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6281. * src/DefaultBtRequestFactory.h
  6282. (dispatcher): BtMessageDispatcherHandle ->
  6283. BtMessageDispatcherWeakHandle.
  6284. (messageFactory): New variable.
  6285. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6286. BtMessageDispatcherWeakHandle.
  6287. (setBtMessageFactory): New function.
  6288. * src/DefaultBtMessageDispatcher.cc:
  6289. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6290. from Option.
  6291. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6292. feating the value from Option.
  6293. Use messageFactory member.
  6294. * src/PeerInteractionCommand.cc
  6295. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6296. Add reverse dependencies to factory object.
  6297. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6298. dispatcher.
  6299. Set messageFactory to receiver.
  6300. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6301. btInteractive.
  6302. Set receiver to peerObject.
  6303. Set maxDownloadSpeedLimit to this.
  6304. (executeInternal): Use maxDownloadSpeedLimit member.
  6305. * src/BtChokeMessage.cc
  6306. (doReceivedAction): Use dispatcher, requestFactory member.
  6307. (onSendComplete): Use dispatcher member.
  6308. * src/PeerInteractionCommand.h
  6309. (maxDownloadSpeedLimit): New variable.
  6310. * src/DefaultBtMessageReceiver.h
  6311. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6312. (dispatcher):
  6313. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6314. (messageFactory): New variable.
  6315. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6316. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6317. (setDispatcher):
  6318. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6319. (setBtMessageFactory): New function.
  6320. * src/DefaultBtInteractive.cc
  6321. (initiateHandshake): Use messageFactory member.
  6322. (addBitfieldMessageToQueue): Use messageFactory member.
  6323. (addAllowedFastMessageToQueue): Use messageFactory member.
  6324. (decideChoking): Use messageFactory member.
  6325. (checkHave): Use messageFactory member.
  6326. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  6327. (receiveMessages): Use maxDownloadSpeedLimit member.
  6328. (decideInterest): Use messageFactory member.
  6329. * src/BtRequestMessage.cc
  6330. (doReceivedAction): Use messageFactory, dispatcher member.
  6331. (onQueued): Use dispatcher member.
  6332. * src/BtPieceMessage.cc
  6333. (doReceivedAction): Use dispatcher member.
  6334. (send): Use peerConnection member.
  6335. (onWrongPiece): Use requestFactory member.
  6336. (handleChokingEvent): Use messageFactory, dispatcher member.
  6337. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6338. * src/BtMessageDispatcher.h
  6339. (BtMessageDispatcherWeakHandle): New type definition.
  6340. * src/SimpleBtMessage.cc
  6341. (send): Use peerConnection member.
  6342. * src/BtRejectMessage.cc
  6343. (doReceivedAction): Use dispatcher member.
  6344. * src/DefaultBtMessageDispatcher.h
  6345. (Option.h): Removed include.
  6346. (messageFactory): New variable.
  6347. (option): Removed.
  6348. (maxUploadSpeedLimit): New variable.
  6349. (requestTimeout): New variable.
  6350. (DefaultBtMessageDispatcher): Removed option.
  6351. Added maxUploadSpeedLimit, requestTimeout.
  6352. (setOption): Removed.
  6353. (getOption): Removed.
  6354. (setMaxUploadSpeedLimit): New function.
  6355. (setRequestTimeout): New function.
  6356. (setBtMessageFactory): New function.
  6357. * src/DefaultBtInteractive.h
  6358. (btMessageReceiver):
  6359. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6360. (dispatcher):
  6361. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6362. (btRequestFactory):
  6363. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6364. (peerConnection):
  6365. PeerConnectionHandle -> PeerConnectionWeakHandle
  6366. (messageFactory): New variable.
  6367. (option): Removed.
  6368. (keepAliveInterval): New variable.
  6369. (maxDownloadSpeedLimit): New variable.
  6370. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6371. (setBtMessageReceiver):
  6372. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6373. (setDispatcher):
  6374. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6375. (setBtRequestFactory):
  6376. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6377. (setPeerConnection):
  6378. PeerConnectionHandle -> PeerConnectionWeakHandle
  6379. (setOption): Removed.
  6380. (setKeepAliveInterval): New function.
  6381. (setMaxDownloadSpeedLimit): New function.
  6382. (setBtMessageFactory): New function.
  6383. * src/BitfieldMan.h
  6384. (cachedNumMissingBlock): New variable.
  6385. (cachedNumFilteredBlock): New variable.
  6386. (cachedCompletedLength): New variable.
  6387. (cachedFilteredComletedLength): New variable.
  6388. (cachedFilteredTotalLength): New variable.
  6389. (countMissingBlockNow): New function.
  6390. (countFilteredBlockNow): New function.
  6391. (getFilteredTotalLengthNow): New function.
  6392. (getCompletedLengthNow): New function.
  6393. (getFilteredCompletedLengthNow): New function.
  6394. (updateCache): New function.
  6395. * src/AbstractBtMessage.h
  6396. (BtMessageDispatcher.h): New include.
  6397. (PeerConnection.h): New include.
  6398. (BtRequestFactory.h): New include
  6399. (BtMessageFactory.h): New include.
  6400. (dispatcher): New variable.
  6401. (messageFactory): New variable.
  6402. (peerConnection: New variable.
  6403. (setBtMessageDispatcher): New function.
  6404. (setPeerConnection): New function.
  6405. (setBtMessageFactory): New function.
  6406. (setBtRequestFactory): New function.
  6407. * src/DefaultBtMessageFactory.cc
  6408. (setCommonProperty): Set dispatcher, requestFactory, this,
  6409. peerConnection to msg.
  6410. * src/BtRegistry.h
  6411. (BT_MESSAGE_RECEIVER): New macro.
  6412. * src/PeerConnection.h
  6413. (PeerConnectionWeakHandle): New type definition.
  6414. * src/BtMessageFactory.h
  6415. (BtMessageFactoryWeakHandle): New type definition.
  6416. * src/BitfieldMan.cc
  6417. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6418. cachedCompletedLength, cachedFilteredComletedLength,
  6419. cachedFilteredTotalLength.
  6420. Call updateCache().
  6421. (countMissingBlock): Return cachedNumMissingBlock.
  6422. (countMissingBlockNow): New function.
  6423. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6424. (countFilteredBlockNow): New function.
  6425. (setBit): Call updateCache().
  6426. (unsetBit): Call updateCache().
  6427. (setBitfield): Call updateCache().
  6428. (clearAllBit): Call updateCache().
  6429. (setAllBit): Use setBitInternal instead of setBit.
  6430. Call updateCache().
  6431. (addFilter): Call updateCache().
  6432. (enableFilter): Call updateCache().
  6433. (disableFilter): Call updateCache().
  6434. (clearFilter): Call updateCache().
  6435. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6436. (getFilteredTotalLengthNow): New function.
  6437. (getCompletedLength): Return cachedCompletedLength.
  6438. (getCompletedLengthNow): New function.
  6439. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6440. (getFilteredCompletedLengthNow): New function.
  6441. (updateCache): New function.
  6442. * src/BtMessageReceiver.h
  6443. (BtMessageReceiverWeakHandle): New type definition.
  6444. * src/DefaultBtMessageReceiver.cc
  6445. (receiveHandshake): Use messageFactory member.
  6446. (sendHandshake): Use messageFactory member.
  6447. (receiveMessage): Use messageFactory member.
  6448. * src/DefaultBtMessageFactory.h
  6449. (dispatcher): New variable.
  6450. (requestFactory): New variable.
  6451. (peerConnection): New variablle.
  6452. (setBtMessageDispatcher): New function.
  6453. (setBtRequestFactory): New function.
  6454. (setPeerConnection): New function.
  6455. * src/SharedHandle.h
  6456. (RefCount): New class.
  6457. (WeakHandle): New class.
  6458. * src/PeerObject.h
  6459. (BtMessageReceiver.h): New include.
  6460. (PeerObject): Added btMessageReceiver.
  6461. (btMessageReceiver): New variable.
  6462. * src/Util.cc
  6463. (countBit): Simplified.
  6464. * src/BtCancelMessage.cc
  6465. (doReceivedAction): Use dispatcher member.
  6466. * src/BtRequestFactory.h
  6467. (BtRequestFactoryWeakHandle): New type definition.
  6468. * src/PeerStorage.h
  6469. (downloadSpeed): int -> uint32_t
  6470. (uploadSpeed): int -> uint32_t
  6471. (sessionDownloadLength): long long int -> uint64_t
  6472. (sessionUploadLength): long long int -> uint64_t
  6473. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6474. To add RecoverableException, FatalException:
  6475. * src/AbstractCommand.cc
  6476. (onAbort): Exception -> RecoverableException
  6477. * src/PeerAbstractCommand.h
  6478. (RecoverableException.h): New include.
  6479. (onAbort): Exception -> RecoverableException.
  6480. * src/PeerInteractionCommand.cc
  6481. (onAbort): Exception -> RecoverableException.
  6482. * src/PeerAbstractCommand.cc
  6483. (execute): Exception -> RecoverableException.
  6484. (onAbort): Exception -> RecoverableException.
  6485. * src/TorrentRequestInfo.cc
  6486. (execute): Exception -> RecoverableException.
  6487. * src/MetalinkRequestInfo.cc
  6488. (execute): Exception -> RecoverableException.
  6489. * src/MetaFileUtil.cc: RecoverableException.
  6490. * src/AbstractCommand.h
  6491. (onAbort): Exception -> RecoverableException.
  6492. * src/DlRetryEx.h: Exception -> RecoverableException.
  6493. * src/DlAbortEx.h: Exception -> RecoverableException.
  6494. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6495. * src/Util.cc: Exception -> RecoverableException.
  6496. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6497. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6498. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6499. To make ID static const int
  6500. * src/BtInterestedMessage.h
  6501. (ID_t): Removed.
  6502. (ID): New variable.
  6503. (getId): Made non-const.
  6504. * src/BtPieceMessage.h
  6505. (ID_t): Removed.
  6506. (ID): New variable.
  6507. (getId): Made non-const.
  6508. * src/BtChokeMessage.h
  6509. (ID_t): Removed.
  6510. (ID): New variable.
  6511. (getId): Made non-const.
  6512. * src/BtHaveAllMessage.h
  6513. (ID_t): Removed.
  6514. (ID): New variable.
  6515. (getId): Made non-const.
  6516. * src/BtKeepAliveMessage.h
  6517. (ID_t): Removed.
  6518. (ID): New variable.
  6519. (getId): Made non-const.
  6520. * src/BtHandshakeMessage.h
  6521. (ID): New variable.
  6522. (getId): Made non-const.
  6523. * src/BtSuggestPieceMessage.h
  6524. (ID_t): Removed.
  6525. (ID): New variable.
  6526. (getId): Made non-const.
  6527. * src/BtPortMessage.h
  6528. (ID_t): Removed.
  6529. (ID): New variable.
  6530. (getId): Made non-const.
  6531. * src/AbstractBtMessage.h
  6532. (id): Removed.
  6533. (AbstractBtMessage): Removed id.
  6534. (getId): Removed.
  6535. * src/BtHaveMessage.h
  6536. (ID_t): Removed.
  6537. (ID): New variable.
  6538. (getId): Made non-const.
  6539. * src/BtAllowedFastMessage.h
  6540. (ID_t): Removed.
  6541. (ID): New variable.
  6542. (getId): Made non-const.
  6543. * src/BtCancelMessage.h
  6544. (ID_t): Removed.
  6545. (ID): New variable.
  6546. (getId): Made non-const.
  6547. * src/BtNotInterestedMessage.h
  6548. (ID_t): Removed.
  6549. (ID): New variable.
  6550. (getId): Made non-const.
  6551. * src/BtChokeMessage.h
  6552. (ID_t): Removed.
  6553. (ID): New variable.
  6554. (getId): Made non-const.
  6555. * src/BtRejectMessage.h
  6556. (ID_t): Removed.
  6557. (ID): New variable.
  6558. (getId): Made non-const.
  6559. * src/BtBitfieldMessage.h
  6560. (ID_t): Removed.
  6561. (ID): New variable.
  6562. (getId): Made non-const.
  6563. * src/BtUnchokeMessage.h
  6564. (ID_t): Removed.
  6565. (ID): New variable.
  6566. (getId): Made non-const.
  6567. * src/BtRequestMessage.h
  6568. (ID_t): Removed.
  6569. (ID): New variable.
  6570. (getId): Made non-const.
  6571. * src/BtHaveMessage.h
  6572. (ID_t): Removed.
  6573. (ID): New variable.
  6574. (getId): Made non-const.
  6575. To add --force-truncate command-line option and a check whether
  6576. the file already exists:
  6577. * src/DirectDiskAdaptor.h
  6578. (getFilePath): Made virtual public.
  6579. * src/MultiDiskAdaptor.h
  6580. (File.h): New include.
  6581. (DiskWriterEntry::fileEntry): Made private.
  6582. (DiskWriterEntry::fileExists): New function.
  6583. (DiskWriterEntry::getFileEntry): New function.
  6584. (fileExists): New function.
  6585. (getFilePath): New function.
  6586. * src/TorrentRequestInfo.cc
  6587. (FatalException.h): New include.
  6588. (message.h): New include.
  6589. (RecoverableException.h): New include.
  6590. (execute): Added a check whether file is already exists or not.
  6591. * src/DiskAdaptor.h
  6592. (fileExists): New function.
  6593. (getFilePath): New function.
  6594. * src/main.cc
  6595. (showUsage): Added an explanation of --force-truncate command-line
  6596. option.
  6597. (main): Added --force-truncate command-line option.
  6598. * src/Exception.h
  6599. (setMsg): buf[256] -> buf[1024]
  6600. * src/CopyDiskWriter.h
  6601. (getFilePath): Made public virtual.
  6602. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  6603. (fileExists): New function.
  6604. * src/DownloadEngineFactory.cc
  6605. (newTorrentConsoleEngine): Don't open file here.
  6606. * src/message.h
  6607. (EX_FILE_ALREADY_EXISTS): New definition.
  6608. * src/prefs.h
  6609. (PREF_FOECE_TRUNCATE): New definition.
  6610. * src/HttpResponseCommand.cc
  6611. (handleDefaultEncoding): Added a check whether the file already exists.
  6612. * src/SegmentMan.h
  6613. (fileExists): New function.
  6614. (shouldCancelDownloadForSafety): New function.
  6615. * src/FtpNegotiateCommand.cc
  6616. (recvSize): Added a check whether the file already exists.
  6617. * src/AbstractSingleDiskAdaptor.cc
  6618. (File.h): New include.
  6619. (fileExists): New function.
  6620. * src/AbstractSingleDiskAdaptor.h
  6621. (getFilePath): Removed.
  6622. (fileExists): New function.
  6623. * src/SegmentMan.cc
  6624. (fileExists): New function.
  6625. (shouldCancelDownloadForSafety): New function.
  6626. To fix regression bug in torrent downloading:
  6627. * src/DefaultBtRequestFactory.cc
  6628. (doChokedAction): New function.
  6629. * src/DefaultBtRequestFactory.h
  6630. (doChokedAction): New function.
  6631. * src/DefaultBtMessageDispatcher.cc
  6632. (doChokedAction): Do not delete request if its target is in allowed
  6633. fast set.
  6634. * src/DefaultBtInteractive.cc
  6635. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  6636. (sendKeepAlive): Send keep alive message even if the outgoing message
  6637. queue is not empty.
  6638. (decideInterest): Simplified the code.
  6639. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  6640. it is already called when BtChokeMessage is received from a peer.
  6641. * src/BtRequestFactory.h
  6642. (doChokedAction): New function.
  6643. To clean up code:
  6644. * src/PeerInteractionCommand.h
  6645. (executeInternal): Added virtual keyword explicitly.
  6646. (prepareForRetry): Added virtual keyword explicitly.
  6647. (prepareForNextPeer): Added virtual keyword explicitly.
  6648. (onAbort): Added virtual keyword explicitly.
  6649. * src/RequestSlot.cc
  6650. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  6651. * src/BtPieceMessage.cc
  6652. (doReceivedAction): Added a debug log of piece's bitfield.
  6653. * src/Piece.h
  6654. (getBitfieldLength): New function.
  6655. * src/ByteArrayDiskWriter.cc
  6656. (clear): Added buf = 0 to avoid double free corruption.
  6657. * src/FileAllocator.cc
  6658. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  6659. Added cp.reset().
  6660. * src/BitfieldMan.h
  6661. (operator=): Rewritten.
  6662. * src/BitfieldMan.cc
  6663. (BitfieldMan): Initialized bitfield, useBitfield.
  6664. * src/PeerConnection.cc
  6665. (receiveMessage): Added a call to socket->readable() after getting
  6666. message length to avoid possible EOF.
  6667. * src/Util.cc
  6668. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  6669. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. To add an ability to pre-allocate file space:
  6671. * src/DirectDiskAdaptor.h: Rewritten.
  6672. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  6673. * src/MultiDiskAdaptor.h: Rewritten.
  6674. * src/DefaultPieceStorage.cc
  6675. (MultiDiskWriter.h): Removed include.
  6676. (PreAllocationDiskWriter.h): Removed include.
  6677. (FileAllocationMonitor.h): New include.
  6678. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  6679. (initStorage): Rewritten.
  6680. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6681. * src/FileAllocator.h: New class.
  6682. * src/FileAllocator.cc: New class.
  6683. * src/FileAllocationMonitor.h: New class.
  6684. * src/FileAllocationMonitor.cc: New class.
  6685. * src/ConsoleFileAllocationMonitor.h: New class.
  6686. * src/ConsoleFileAllocationMonitor.cc: New class.
  6687. * src/AbstractSingleDiskAdaptor.h: New class.
  6688. * src/AbstractSingleDiskAdaptor.cc: New class.
  6689. * src/DiskAdaptor.h
  6690. (Directory.h): Removed include.
  6691. (DiskWriter.h): Removed include.
  6692. (FileEntry.h): Removed include.
  6693. (diskWriter): Removed.
  6694. (DiskAdaptor): Removed diskWriter.
  6695. (openFile): Made pure virtual.
  6696. (closeFile): Made pure virtual.
  6697. (openExistingFile): Made pure virtual.
  6698. (initAndOpenFile): Made pure virtual.
  6699. (writeData): Made pure virtual.
  6700. (readData): Made pure virtual.
  6701. (sha1Sum): Made pure virtual.
  6702. (getStoreDir): Returns const reference of storeDir.
  6703. (DiskAdaptorHandle): New type definition.
  6704. * src/main.cc
  6705. (ConsoleFileAllocationMonitor.h): New include.
  6706. (showUsage): Added default value description of -s option.
  6707. Added the description of --file-allocation option.
  6708. (main): Set default value of --file-allocation option to 'none'.
  6709. Added --file-allocation command-line option.
  6710. Setup FileAllocationMonitorFactory.
  6711. * src/FtpInitiateConnectionCommand.cc
  6712. (executeInternal): Removed diskWriter related processing, which was
  6713. moved to FtpNegotiationCommand.cc.
  6714. * src/DirectDiskAdaptor.cc
  6715. (getFilePath): Made non-const.
  6716. * src/CopyDiskAdaptor.h
  6717. (DiskAdaptor.h): Removed include.
  6718. (DiskWriter.h): Removed include.
  6719. (AbstractSingleDiskAdaptor.h): New include.
  6720. (getFilePath): Made non-const. Added virtual keyword.
  6721. (CopyDiskAdaptor): Removed diskWriter.
  6722. (getTempFile): Returns const reference.
  6723. (CopyDiskAdaptorHandle): New type definition.
  6724. * src/ByteArrayDiskWriter.cc
  6725. (clear): Simplified.
  6726. (initAndOpenFile): Rewritten.
  6727. (openFile): Call initAndOpenFile()
  6728. * src/MultiDiskAdaptor.cc: Rewritten.
  6729. * src/DownloadEngineFactory.cc
  6730. (FileAllocator.h): New include.
  6731. (FileAllocationMonitor.h): New include.
  6732. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  6733. create DefaultDiskWriter with file allocator.
  6734. * src/DiskWriter.h
  6735. (initAndOpenFile): Added totalLength argument.
  6736. (openFile): Added totalLength argument.
  6737. * src/prefs.h
  6738. (PREF_FILE_ALLOCATION): New definition.
  6739. (V_PREALLOC): New definition.
  6740. (V_NONE): New definition.
  6741. * src/HttpResponseCommand.cc
  6742. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  6743. size.
  6744. * src/FtpNegotiateCommand.cc
  6745. (Util.h): New include.
  6746. (recvSize): Open file here.
  6747. * src/Util.h
  6748. (ullitos): New function.
  6749. * src/CopyDiskWriter.h
  6750. (getFilePath): Made non-const.
  6751. * src/DefaultDiskWriter.h
  6752. (Option.h): New include.
  6753. (totalLength): Removed.
  6754. (DefaultDiskWriter): Removed totalLength.
  6755. (initAndOpenFile): Added totalLength argument.
  6756. (DefaultDiskWriterHandle): New type definition.
  6757. (createNewDiskWriter): New function.
  6758. * src/Util.cc
  6759. (ullitos): New function.
  6760. * src/DefaultDiskWriter.cc
  6761. (message.h): New include.
  6762. (FileAllocator.h): New include.
  6763. (prefs.h): New include.
  6764. (Util.h): New include.
  6765. (DefaultDiskWriter): Removed totalLength.
  6766. (initAndOpenFile): Added file allocation.
  6767. (createNewDiskWriter): New function. Just for temporary solution.
  6768. It will be rewritten later.
  6769. * src/DiskAdaptor.cc
  6770. (DiskAdaptor): Removed diskWriter.
  6771. * src/AbstractDiskWriter.cc
  6772. (LogFactory.h): New include.
  6773. (AbstractDiskWriter): Added fileAllocator, logger.
  6774. (openFile): Added totalLength argument.
  6775. * src/AbstractDiskWriter.h
  6776. (FileAllocator.h): New include.
  6777. (Logger.h): New include.
  6778. (fileAllocator): New variable.
  6779. (logger): New variable.
  6780. (openFile): Added totalLength argument. Added virtual keyword
  6781. explicitly.
  6782. (openExistingFile): Added totalLength argument. Added virtual keyword
  6783. explicitly.
  6784. (closeFile): Added virtual keyword explicitly.
  6785. (sha1Sum): Added virtual keyword explicitly.
  6786. (writeData): Added virtual keyword explicitly.
  6787. (readData): Added virtual keyword explicitly.
  6788. (setFileAllocator): New function.
  6789. * src/DefaultPieceStorage.h
  6790. (FileAllocator.h): New include.
  6791. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6792. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6793. * src/FileProgressMonitor.h: New class.
  6794. To compile aria2 on PC-BSD:
  6795. * src/DefaultBtContext.cc
  6796. (libgen.h): New include.
  6797. To fix memory leak:
  6798. * src/Exception.h
  6799. (~Exception): Delete cause. Fixed memory leak.
  6800. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Rewritten a portion of bittorrent implementation:
  6802. * src/BtMessageValidator.h: New class.
  6803. * src/BtBitfieldMessageValidator.h: New class.
  6804. * src/BtHandshakeMessageValidator.h: New class.
  6805. * src/BtRequestMessageValidator.h: New class.
  6806. * src/BtSuggestPieceMessageValidator.h: New class.
  6807. * src/BtAllowedFastMessageValidator.h: New class.
  6808. * src/BtRejectMessageValidator.h: New class.
  6809. * src/BtCancelMessageValidator.h: New class.
  6810. * src/BtPieceMessageValidator.h: New class.
  6811. * src/BtHaveMessageValidator.h: New class.
  6812. * src/BtEventListener.h: New class.
  6813. * src/AbstractBtEventListener.h: New class.
  6814. * src/BtEvent.h: New class.
  6815. * src/BtChokingEvent.h: New class.
  6816. * src/BtChokedEvent.h: New class.
  6817. * src/BtCancelSendingPieceEvent.h: New class.
  6818. * src/BtAbortOutstandingRequestEvent.h: New class.
  6819. * src/Randomizer.h: New class.
  6820. * src/SimpleRandomizer.h: New class.
  6821. * src/BtMessage.h: New class.
  6822. * src/AbstractBtMessage.h: New class.
  6823. * src/SimpleBtMessage.h: New class.
  6824. * src/BtHaveMessage.h: New class.
  6825. * src/BtInterestedMessage.h: New class.
  6826. * src/BtAllowedFastMessage.h: New class.
  6827. * src/BtUnchokeMessage.h: New class.
  6828. * src/BtCancelMessage.h: New class.
  6829. * src/BtNotInterestedMessage.h: New class.
  6830. * src/BtChokeMessage.h: New class.
  6831. * src/BtHaveNoneMessage.h: New class.
  6832. * src/BtHandshakeMessage.h: New class.
  6833. * src/BtSuggestPieceMessage.h: New class.
  6834. * src/BtHaveMessage.h: New class.
  6835. * src/BtPieceMessage.h: New class.
  6836. * src/BtHaveAllMessage.h: New class.
  6837. * src/BtKeepAliveMessage.h: New class.
  6838. * src/BtPortMessage.h: New class.
  6839. * src/BtRejectMessage.h: New class.
  6840. * src/BtBitfieldMessage.h: New class.
  6841. * src/BtRequestMessage.h: New class.
  6842. * src/DefaultBtRequestFactory.h: New class.
  6843. * src/DefaultBtMessageReceiver.h: New class.
  6844. * src/BtInteractive.h: New class.
  6845. * src/BtMessageDispatcher.h: New class.
  6846. * src/DefaultBtMessageDispatcher.h: New class.
  6847. * src/DefaultBtInteractive.h: New class.
  6848. * src/BitfieldManFactory.h: New class.
  6849. * src/HandleRegistry.h: New class.
  6850. * src/BtMessageFactory.h: New class.
  6851. * src/BtMessageReceiver.h: New class.
  6852. * src/DefaultBtMessageFactory.h: New class.
  6853. * src/PeerObject.h: New class.
  6854. * src/BtRequestFactory.h: New class.
  6855. * src/SuggestPieceMessage.h: Removed.
  6856. * src/PortMessage.h: Removed.
  6857. * src/SuggestPieceMessage.h: Removed.
  6858. * src/KeepAliveMessage.h: Removed.
  6859. * src/HandshakeMessage.h: Removed.
  6860. * src/PeerInteraction.h: Removed.
  6861. * src/UnchokeMessage.h: Removed.
  6862. * src/PieceMessage.h: Removed.
  6863. * src/RequestMessage.h: Removed.
  6864. * src/InterestedMessage.h: Removed.
  6865. * src/HaveMessage.h: Removed.
  6866. * src/CancelMessage.h: Removed.
  6867. * src/RejectMessage.h: Removed.
  6868. * src/AllowedFastMessage.h: Removed.
  6869. * src/HaveNoneMessage.h: Removed.
  6870. * src/SimplePeerMessage.h: Removed.
  6871. * src/HaveAllMessage.h: Removed.
  6872. * src/BitfieldMessage.h: Removed.
  6873. * src/PeerMessageFactory.h: Removed.
  6874. * src/NotInterestedMessage.h: Removed.
  6875. * src/ChokeMessage.h: Removed.
  6876. * src/PeerMessage.h: Removed.
  6877. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. To know root cause of exception:
  6879. * src/Exception.h
  6880. (cause): New variable.
  6881. (Exception): Added a parameter.
  6882. (getMsg): Return const reference to msg.
  6883. (getCause): New function.
  6884. * src/DlRetryEx.h
  6885. (DlRetryEx): Added a parameter 'cause'.
  6886. Added an overloaded constructor.
  6887. (DlAbortEx): Added a parameter 'cause'.
  6888. Added an overloaded constructor.
  6889. * src/SimpleLogger.cc
  6890. (writeLog): Log nested exception messages recursively.
  6891. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. * src/DefaultBtProgressInfoFile.cc
  6893. (load): Fixed memory leak when the infohash doesn't match.
  6894. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. * src/DefaultPeerStorage.cc
  6896. (calculateStat): Simplified the code by combining 2 loops into 1.
  6897. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  6899. for BitTorrent download:
  6900. * src/PeerAbstractCommand.cc
  6901. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  6902. * src/main.cc:
  6903. (timeoutSpecified): Removed.
  6904. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  6905. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  6906. * src/TorrentRequestInfo.cc
  6907. (timeoutSpecified): Removed.
  6908. (torrentHandler): Removed timeoutSpecified and the adjustment of
  6909. timeout value.
  6910. * src/prefs.h
  6911. (PREF_BT_TIMEOUT): New definition.
  6912. Delete unused variables:
  6913. * src/TorrentRequestInfo.cc
  6914. (requestInfo): Removed.
  6915. Move setSignalHander to Util::setGlobalSignalHandler:
  6916. * src/TorrentRequestInfo.cc:
  6917. setSignalHander -> Util::setGlobalSignalHandler
  6918. * src/main.cc
  6919. (setSignalHander): Removed.
  6920. (main): setSignalHander -> Util::setGlobalSignalHandler
  6921. * src/Util.h
  6922. (setGlobalSignalHandler): New function.
  6923. * src/Util.cc
  6924. (setGlobalSignalHandler): New function.
  6925. * src/UrlRequestInfo.cc:
  6926. setSignalHander -> Util::setGlobalSignalHandler
  6927. Reset peer status in order to exit gracefully:
  6928. * src/PeerAbstractCommand.cc
  6929. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  6930. To fix the bug that causes the number of bytes uploaded is not saved
  6931. to .aria2 file:
  6932. * src/DefaultPeerStorage.h
  6933. (removedPeerSessionDownloadLength): New variable.
  6934. (removedPeerSessionUploadLength): New variable.
  6935. * src/DefaultPeerStorage.cc
  6936. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  6937. removedPeerSessionUploadLength(0).
  6938. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  6939. through all peers, and then add removedPeerSessionDownloadLength(
  6940. removedPeerSessionUploadLength) to it.
  6941. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  6942. (to) the peer to removedPeerSessionDownloadLength
  6943. (removedPeerSessionUploadLength).
  6944. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. To add Metalink location option:
  6946. * src/MetalinkRequestInfo.cc
  6947. (execute): Call MetalinkEntry::setLocationPreference()
  6948. * src/main.cc
  6949. (showUsage): Added the help message for --metalink-location option.
  6950. (main): Added --metalink-location option.
  6951. * src/prefs.h
  6952. (PREF_METALINK_LOCATION): New definition.
  6953. * src/MetalinkEntry.cc
  6954. (AddLocationPreference): New function object.
  6955. (setLocationPreference): New function.
  6956. * src/Xml2MetalinkProcessor.cc
  6957. (getResource): Set location attribute to MetalinkResource
  6958. To show URLs to download
  6959. * src/UrlRequestInfo.h
  6960. (printUrls): New function.
  6961. To add multiple <file> Metalink support:
  6962. * src/MetalinkEntry.h
  6963. (MetalinkResources): Removed.
  6964. (setLocationPreference): New function.
  6965. (MetalinkEntryHandle): New type definition.
  6966. (MetalinkEntries): New type definition.
  6967. * src/Xml2MetalinkProcessor.h
  6968. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6969. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6970. (parseFile): Metalinker* -> MetalinkerHandle
  6971. * src/UrlRequestInfo.h
  6972. (execute): RequestInfo* -> RequestInfos
  6973. * src/MetalinkRequestInfo.cc
  6974. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  6975. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  6976. (execute): RequestInfo* -> RequestInfos
  6977. Added multiple <file> support. Print filename when it is queued.
  6978. * src/MetalinkRequestInfo.h
  6979. (execute): RequestInfo* -> RequestInfos
  6980. (getDownloadEngine): Removed.
  6981. * src/RequestInfo.h
  6982. (RequestInfoHandle): New type definition.
  6983. (RequestInfos): New type definition.
  6984. (execute): RequestInfo* -> RequestInfos
  6985. (getDownloadEngine): Removed.
  6986. * src/MetalinkResource.h
  6987. (MetalinkResourceHandle): New type definition.
  6988. (MetalinkResources): New type definition.
  6989. * src/MetalinkEntry.cc
  6990. (~MetalinkEntry): Removed the deletion of the elements of resources,
  6991. because the element is now of type MetalinkResourceHandle.
  6992. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  6993. (Supported): MetalinkResource* -> MetalinkResourceHandle
  6994. (dropUnsupportedResource): Removed the deletion of the elements of
  6995. resources because the element is now of type MetalinkResourceHandle.
  6996. * src/Xml2MetalinkProcessor.cc
  6997. (parseFile): Metalinker* -> MetalinkerHandle
  6998. MetalinkEntry* -> MetalinkEntryHandle
  6999. Removed try-catch block.
  7000. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7001. MetalinkResource* -> MetalinkResourceHandle
  7002. Removed try-catch block.
  7003. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7004. Free result by using xmlXPathFreeObject()
  7005. * src/Metalinker.cc
  7006. (~Metalinker): Removed the deletion of entries.
  7007. MetalinkEntry* -> MetalinkEntryHandle
  7008. (queryEntry): Add multiple <file> Metalink support.
  7009. * src/Metalinker.h
  7010. (MetalinkEntries): Removed.
  7011. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7012. * src/MetalinkProcessor.h
  7013. (parseFile): Metalinker* -> MetalinkerHandle
  7014. Bug fixes:
  7015. * src/PeerChokeCommand.cc
  7016. (execute): cat01->cat02
  7017. * src/DefaultPieceStorage.cc
  7018. (DefaultPieceStorage): Added diskAdaptor(0)
  7019. * src/TrackerWatcherComand.cc:
  7020. (execute): Use btAnnounce->noMoreAnnounce()
  7021. to determin whether the function returns true or not.
  7022. * src/TrackerUpdateCommand.cc:
  7023. (execute): Use btAnnounce->noMoreAnnounce()
  7024. to determin whether the function returns true or not.
  7025. * src/FtpConnection.cc
  7026. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7027. This is the fix of the busy loop bug.
  7028. * src/DownloadCommand.cc
  7029. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7030. cached PeerStat.
  7031. The value of "name" entry in torrent file is now set by
  7032. *DiskAdaptor::setTopDir(...) methods.
  7033. * src/MultiDiskAdaptor.h
  7034. (topDir): New variable.
  7035. (setTopDir): New function.
  7036. (getTopDir): New function.
  7037. * src/MultiDiskAdaptor.cc
  7038. (getFilePath): Concat storDir, "/" and topDir.
  7039. (mkdir): Use getFilePath() to get the directory path for output.
  7040. * src/DefaultPieceStorage.cc
  7041. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7042. CopyDiskAdaptor.
  7043. * src/CopyDiskAdaptor.h
  7044. (topDir): New variable.
  7045. (setTopDir): New function.
  7046. (getTopDir): New function.
  7047. * src/CopyDiskAdaptor.cc
  7048. (fixFilename): Updated.
  7049. Misc
  7050. * src/UrlRequestInfo.h
  7051. (e): Removed.
  7052. (UrlRequestInfo): Removed e.
  7053. (getDownloadEngine): Removed.
  7054. * src/UrlRequestInfo.cc
  7055. (handler): Rewritten.
  7056. (printUrls): New function.
  7057. (execute): Call printUrls().
  7058. * src/HandshakeMessage.cc
  7059. (check): peerinteraction->getBtContext() -> btContext
  7060. * src/PeerInteraction.h
  7061. (getBtContext): Removed.
  7062. * src/TorrentRequestInfo.h
  7063. (execute): RequestInfo* -> RequestInfos
  7064. (getDownloadEngine): Removed.
  7065. * src/TorrentRequestInfo.cc
  7066. (haltRequested): Removed.
  7067. (btHaltRequested): New variable.
  7068. (torrentHandler): haltRequested -> btHaltRequested
  7069. (execute): RequestInfo* -> RequestInfos
  7070. * src/TorrentConsoleDownloadEngine.cc
  7071. (afterEachIteration): haltRequested -> btHaltRequested.
  7072. * src/ConsoleDownloadEngine.h
  7073. (initStatistics): Added virtual.
  7074. (calculateStatistics): Added virtual.
  7075. (onEndOfRun): Added virtual.
  7076. (afterEachIteration): Added virtual.
  7077. * src/ConsoleDownloadEngine.cc
  7078. (haltRequested): New variable.
  7079. (afterEachIteration): New function.
  7080. * src/main.cc
  7081. (requestInfo): Removed.
  7082. * src/SegmentMan.cc
  7083. (findSlowerSegmentEntry): Refactored.
  7084. * Release 0.9.0
  7085. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7087. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7088. * src/TorrentMan.h: Removed.
  7089. * src/TorrentMan.cc: Removed.
  7090. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7091. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7092. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7093. * src/PeerAbstractCommand.cc: Use btRuntime.
  7094. * src/BtContextAwareCommand.h: New class.
  7095. * src/FileEntry.h: Added accessor methods for following variables.
  7096. (path): Made private.
  7097. (length): Made private.
  7098. (offset): Made private.
  7099. (extracted): Made private.
  7100. (requested): Made private.
  7101. (FileEntries): New definition.
  7102. (FileEntryHandle): New definition.
  7103. * src/FileEntry.cc: New file.
  7104. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7105. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7106. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7107. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7108. * src/PieceStorage.h: New file.
  7109. * src/PeerInteractionCommand.h: Use btContext.
  7110. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7111. btRuntime.
  7112. * src/DefaultBtProgressInfoFile.h: New file.
  7113. * src/DefaultBtProgressInfoFile.cc: New file.
  7114. * src/File.cc
  7115. (Util.h): New include.
  7116. (mkdirs): New function.
  7117. * src/MultiDiskAdaptor.h
  7118. (mkdir): New function.
  7119. * src/PeerListProcessor.h
  7120. (Peers): Removed.
  7121. * src/PeerInteraction.h
  7122. (torrentMan): Removed.
  7123. (btContext): New variable.
  7124. (peerStorage): New variable.
  7125. (pieceStorage): New variable.
  7126. (btAnnounce): New variable.
  7127. (getTorrentMan): Removed.
  7128. (getBtContext): New function.
  7129. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7130. btAnnounce.
  7131. * src/HandshakeMessage.h
  7132. (TorrentMan.h): Removed.
  7133. * src/HandshakeMessage.cc: Use btContext.
  7134. * src/DefaultBtAnnounce.cc: New file.
  7135. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7136. * src/DefaultPieceStorage.cc: New file.
  7137. * src/DefaultBtContext.h: New file.
  7138. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7139. Use the accessor methods of FileEntry.
  7140. * src/CookieBox.cc: Updated to use Util::slice().
  7141. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7142. * src/common.h (SharedHandle.h): New include.
  7143. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7144. pieceStorage.
  7145. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7146. * src/DiskAdaptor.h
  7147. (topDir): Removed.
  7148. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7149. (setTopDir): Removed.
  7150. (getTopDir): Removed.
  7151. * src/BtContext.h: New file.
  7152. * src/DefaultPeerStorage.h: New file.
  7153. * src/PieceMessage.h (TorrentMan.h): Removed.
  7154. * src/RequestMessage.h (TorrentMan.h): Removed.
  7155. * src/TorrentDownloadEngine.h
  7156. (uploadLength): New variable.
  7157. (btContext): New variable.
  7158. (btRuntime): New variable.
  7159. (pieceStorage): New variable.
  7160. (peerStorage): New variable.
  7161. (btAnnounce): New variable.
  7162. (btProgressInfoFile): New variable.
  7163. (torrentMan): Removed.
  7164. (setBtContext): New function.
  7165. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7166. peerStorage, btAnnounce, btProgressInfoFile.
  7167. * src/Piece.h
  7168. (toString): New function.
  7169. (Pieces): New type definition.
  7170. * src/Peer.h
  7171. (active): New variable.
  7172. (Peer): Added active.
  7173. (activate): Set active to true.
  7174. (deactivate): Set active to false.
  7175. (isActive): New function.
  7176. (Peers): New type definition.
  7177. * src/DirectDiskAdaptor.cc
  7178. (getFilePath): Use the accessor methods of FileEntry.
  7179. * src/TorrentConsoleDownloadEngine.h
  7180. (afterEachIteration): New function.
  7181. * src/TorrentConsoleDownloadEngine.cc
  7182. (haltRequested): New variable.
  7183. (sendStatistics): Use pieceStorage, btRuntime.
  7184. (afterEachIteration): New function.
  7185. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7186. * src/Directry.h
  7187. (Directory): New function.
  7188. (DirectoryHandle): New type definition.
  7189. * src/BtProgressInfoFile.h: New file.
  7190. * src/RequestMessage.cc: Use pieceStorage.
  7191. * src/BtRuntime.h: New file.
  7192. * src/DefaultBtContext.cc: New file.
  7193. * src/BitfieldMan.h
  7194. (getCompletedLength): New function(private).
  7195. (getCompletedLength): New function.
  7196. (getFilteredCompletedLength): New function.
  7197. * src/BitfieldMan.h
  7198. (getCompletedLength): New function(private).
  7199. (getCompletedLength): New function.
  7200. (getFilteredCompletedLength): New function.
  7201. * src/MultiDiskAdaptor.cc
  7202. (mkdir): New function.
  7203. (openFile): Call mkdir().
  7204. (initAndOpenFile): Call mkdir().
  7205. * src/CancelMessage.h
  7206. (TorrentMan.h): Removed.
  7207. * src/RejectMessage.h
  7208. (TorrentMan.h): Removed.
  7209. * src/DownloadEngineFactory.cc
  7210. (DefaultPieceStorage.h): New include.
  7211. (DefaultPeerStorage.h): New include.
  7212. (DefaultBtAnnounce.h): New include.
  7213. (DefaultBtProgressInfoFile.h): New include.
  7214. (newTorrentConsoleEngine): Rewritten.
  7215. * src/ShareRatioSeedCriteria.h
  7216. (torrentMan): Removed.
  7217. (btContext): New variable.
  7218. (peerStorage): New variable.
  7219. (btRuntime): New variable.
  7220. (evaluate): Use btContext, btRuntime, peerStorage.
  7221. * src/AnnounceTier.h: New file.
  7222. * src/BtAnnounce.h: New file.
  7223. * src/BtRegistry.h: New file.
  7224. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7225. * src/PeerConnection.h (TorrentMan.h): Removed.
  7226. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7227. * src/Util.h
  7228. (slice): Added an argument.
  7229. * src/Util.cc
  7230. (slice): Added an argument to control whether trim is made or not.
  7231. * src/PeerStorage.h: New file.
  7232. * src/BtRegistry.cc: New file.
  7233. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7234. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7235. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7236. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7237. * src/TorrentRequestInfo.h
  7238. (e): Removed.
  7239. (showFileEntry): Added an argument.
  7240. (getDownloadEngine): Return 0.
  7241. * src/DefaultBtAnnounce.h: New file.
  7242. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7243. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7244. * src/PeerMessageFactory.h
  7245. (btContext): New variable.
  7246. (pieceStorage): New variable.
  7247. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7248. btAnnounce.
  7249. * src/DiskAdaptor.cc
  7250. (DiskAdaptor): Removed topDir.
  7251. (~DiskAdaptor): Removed topDir.
  7252. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7253. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7254. * src/File.h (mkdirs): New function.
  7255. * src/DefaultPeerStorage): New file.
  7256. * src/DownloadEngineFactory.h
  7257. (newTorrentConsoleEngine): Use btContext.
  7258. * src/BtContextAwareCommand.cc: New file.
  7259. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7260. * src/PeerMessage.h
  7261. (btContext): New variable.
  7262. (peerStorage): New variable.
  7263. (pieceStorage): New variable.
  7264. (setBtContext): New function.
  7265. * src/Directry.cc
  7266. (Directory): New function.
  7267. (createDir): Do nothing if name.size() == 0.
  7268. * src/AnnounceList.h
  7269. (AnnounceTier): Removed.
  7270. (AnnounceTiers): Removed.
  7271. * src/DefaultPieceStorage.h: New file.
  7272. * src/Piece.cc (toString): New function.
  7273. To fix typo:
  7274. * src/main.cc (showVersion): Fixed typo.
  7275. To fix compile warning:
  7276. * src/DelegatingPeerListProcessor.cc
  7277. (canHandle): Added "return false".
  7278. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7280. make the process of announce request testable.
  7281. * src/TrackerWatcherCommand.h
  7282. (TimeA2.h): Removed.
  7283. (interval): Removed.
  7284. (checkPoint): Removed.
  7285. (createRequestCommand): Added an argument 'url'.
  7286. (TrackerWatherCommand): Removed interval.
  7287. (createCommand): New function.
  7288. * src/DownloadEngineFactory.cc
  7289. (newTorrentConsoleEngine): Updated according to the changes in
  7290. TrackerWatherCommand.
  7291. * src/TorrentMan.cc
  7292. (DelegatingPeerListProcessor.h): New includes.
  7293. (TorrentMan): Added the initialization of announceInterval.
  7294. (isStoppedAnnounceReady): New function.
  7295. (isCompletedAnnounceReady): New function.
  7296. (isDefaultAnnounceReady): New function.
  7297. (isAnnounceReady): New function.
  7298. (getAnnounceUrl): New function.
  7299. (announceStart): New function.
  7300. (announceFailure): New function.
  7301. (announceSuccess): New function.
  7302. (isAllAnnounceFailed): New function.
  7303. (resetAnnounce): New function.
  7304. (processAnnounceResponse): New function.
  7305. (needMorePeerConnection): New function.
  7306. (noMoreAnnounce): New function.
  7307. * src/TrackerUpdateCommand.h
  7308. (getTrackerResponse): int->size_t
  7309. * src/TorrentMan.h
  7310. (isStoppedAnnounceReady): New function.
  7311. (isCompletedAnnounceReady): New function.
  7312. (isDefaultAnnounceReady): New function.
  7313. (announceInterval): New variable.
  7314. (isAnnounceReady): New function.
  7315. (getAnnounceUrl): New function.
  7316. (announceStart): New function.
  7317. (announceFailure): New function.
  7318. (announceSuccess): New function.
  7319. (isAllAnnounceFailed): New function.
  7320. (resetAnnounce): New function.
  7321. (processAnnounceResponse): New function.
  7322. (needMorePeerConnection): New function.
  7323. (noMoreAnnounce): New function.
  7324. * src/TrackerWatcherCommand.cc
  7325. (TrackerWatherCommand): Removed interval and checkPoint.
  7326. (execute): Rewritten.
  7327. (createCommand): New function.
  7328. (createRequestCommand): Rewritten.
  7329. * src/TrackerUpdateCommand.cc
  7330. (MetaFileUtil.h): Removed.
  7331. (DelegatingPeerListProcessor.h): Removed.
  7332. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7333. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Request -> RequestHandle:
  7335. * src/HttpResponseCommand.h: Request->RequestHandle
  7336. * src/AbstractCommand.cc: Request->RequestHandle
  7337. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7338. * src/HttpRequestCommand.cc: Request->RequestHandle
  7339. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7340. * src/AbstractCommand.h: Request->RequestHandle
  7341. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7342. * src/HttpResponseCommand.cc: Request->RequestHandle
  7343. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7344. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7345. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7346. * src/HttpConnection.h: Request->RequestHandle
  7347. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7348. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7349. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7350. * src/DownloadCommand.h: Request->RequestHandle
  7351. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7352. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7353. * src/HttpRequestCommand.h: Request->RequestHandle
  7354. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7355. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7356. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7357. * src/HttpDownloadCommand.h: Request->RequestHandle
  7358. * src/FtpConnection.cc: Request->RequestHandle
  7359. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7360. * src/UrlRequestInfo.cc: Request->RequestHandle
  7361. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7362. * src/HttpConnection.h: Request->RequestHandle
  7363. * src/DownloadCommand.cc: Request->RequestHandle
  7364. * src/FtpConnection.h: Request->RequestHandle
  7365. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7366. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7367. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7368. * src/Request.h
  7369. (SharedHandle.h): New include.
  7370. (RequestHandle): New type definition.
  7371. (Requests): Redefined.
  7372. To add MULTITRACKER support:
  7373. * src/TrackerWatcherCommand.h
  7374. (createRequestCommand): New function.
  7375. * src/DownloadEngineFactory.cc
  7376. (newTorrentConsoleEngine): Removed req.
  7377. * src/prefs.h
  7378. (PREF_TRACKER_MAX_TRIES): New definition.
  7379. * src/TorrentMan.cc
  7380. (TorrentMan): Removed req. Added trackerNumTry.
  7381. (~TorrentMan): Removed req.
  7382. (setupInternal1): Added announceList.
  7383. * src/TorrentRequestInfo.cc
  7384. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7385. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7386. * src/main.cc
  7387. (main): Added PREF_TRACKER_MAX_TRIES.
  7388. * src/TorrentMan.h
  7389. (Request.h): Removed.
  7390. (AnnounceList.h): New include.
  7391. (trackerNumTry): New variable.
  7392. (req): Removed.
  7393. (announceList): New variable.
  7394. * src/TrackerWatcherCommand.cc
  7395. (execute): Rewritten.
  7396. (createRequestCommand): New function.
  7397. * src/TrackerUpdateCommand.cc
  7398. (execute): Updated with the use of AnnounceList.
  7399. * src/AnnounceList.cc: New class.
  7400. * src/AnnounceList.h: New class.
  7401. To fix typo:
  7402. * src/prefs.h
  7403. (PREF_MAX_TRIES): max_try->max_tries
  7404. To not to decode "+" as space in URL decode:
  7405. * src/Util.cc
  7406. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7407. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. To add timeout to async name resolution:
  7409. * src/AbstractCommand.h
  7410. (nameResolveFinished): New function. This is not elegant way. It needs
  7411. to be more refined.
  7412. (nameResolverCheck): New variable.
  7413. * src/AbstractCommand.cc
  7414. (AbstractCommand): Added nameResolverCheck.
  7415. (execute): Added the check whether the name resolution has finished.
  7416. (setNameResolverCheck): Set nameResolverCheck to true.
  7417. (disableNameResolverCheck): Set nameResolverCheck to false.
  7418. (nameResolverFinished): New function.
  7419. * src/FtpInitiateConnectionCommand.h
  7420. (nameResolverFinished): New function.
  7421. * src/FtpInitiateConnectionCommand.cc
  7422. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7423. * src/HttpInitiateConnectionCommand.h
  7424. (nameResolverFinished): New function.
  7425. * src/HttpInitiateConnectionCommand.cc
  7426. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7427. * src/prefs.h
  7428. (PREF_DNS_TIMEOUT): New definition.
  7429. * src/main.cc
  7430. (main): Added PREF_DNS_TIMEOUT.
  7431. To add the support for a non-compact response from a tracker:
  7432. * src/PeerListProcessor.h: New class.
  7433. * src/DefaultPeerListProcessor.h: New class.
  7434. * src/DefaultPeerListProcessor.cc: New class.
  7435. * src/CompactPeerListProcessor.h: New class.
  7436. * src/CompactPeerListProcessor.cc: New class.
  7437. * src/DelegatingPeerListProcessor.h: New class.
  7438. * src/DelegatingPeerListProcessor.cc: New class.
  7439. * src/TorrentMan.cc
  7440. (addPeer): New function(overload).
  7441. (addPeer): Delete unused peers only when new peer is added.
  7442. * src/TorrentMan.h
  7443. (PeerListProcessor.h): Included.
  7444. (Peers): Removed.
  7445. (addPeer): New function(overload).
  7446. * src/TrackerUpdateCommand.cc
  7447. (netinet/in.h): Removed.
  7448. (DelegatingPeerListProcessor.h): Included.
  7449. (execute): Updated to use DelegatingPeerListProcessor.
  7450. To fix the memory leak in TorrentMan::peers:
  7451. * src/PeerAbstractCommand.cc
  7452. (onAbort): Added peer->resetStatus().
  7453. * src/Peer.h
  7454. (resetStatus): Made public.
  7455. To improve the precision of the speed calculation:
  7456. * src/SpeedCalc.h
  7457. (nextInterval): New variable.
  7458. * src/SpeedCalc.cc
  7459. (reset): Added nextInterval.
  7460. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7461. (changeSw): Set nextInterval to 15 seconds relative to the current
  7462. instant time.
  7463. * src/main.cc
  7464. (showVersion): Updated.
  7465. (showUsage): Updated.
  7466. * Release 0.8.1
  7467. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. * src/main.cc
  7469. (showUsage): Commented out --min-segment-size option.
  7470. (main): Commented out --min-segment-size option.
  7471. * Release 0.8.0
  7472. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. * src/*.{h,cc}:
  7474. Added an exception to the license which allows linking with OpenSSL.
  7475. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. * src/AbstractCommand.cc
  7477. (execute): Check whether the download has finished before checking
  7478. socket status.
  7479. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7480. Do not exit even if no segment is available.
  7481. * src/prefs.h
  7482. (PREF_STARTUP_IDLE_TIME): New definition.
  7483. * src/PeerInteractionCommand.cc
  7484. (executeInternal): Removed max speed limit. Because it performs bad.
  7485. (receiveMessages): Added max speed limit. This was better than above,
  7486. but still a little bit to be desired. Sometimes the download speed
  7487. became much faster than I specified.
  7488. * src/SpeedCalc.h
  7489. (start): New variable.
  7490. (accumulatedLength): New variable.
  7491. (getAvgSpeed): New function.
  7492. * src/SpeedCalc.cc
  7493. (reset): Added start, accumulatedLength.
  7494. (update): Added calculation of an average speed.
  7495. (getAvgSpeed): New function.
  7496. * src/DownloadCommand.h
  7497. (sw): Removed.
  7498. * src/main.cc
  7499. (main): Added PREF_STARTUP_IDLE_TIME.
  7500. * src/PeerStat.h
  7501. (STATUS): Added REQUEST_IDLE.
  7502. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7503. (getAvgDownloadSpeed): New function
  7504. (requestIdle): New function.
  7505. * src/SegmentMan.h
  7506. (SegmentEntryHandle): New type definition.
  7507. (SegmentEntries): Now holds SegmentEntryHandle.
  7508. (findSlowerSegmentEntry): New funtion.
  7509. * src/SegmentMan.cc
  7510. (save): Updated according to the changes in SegmentEntries.
  7511. (read): Updated according to the changes in SegmentEntries.
  7512. (FindSegmentEntryByIndex): Updated according to the changes in
  7513. SegmentEntries.
  7514. (FindSegmentEntryByCuid): Updated according to the changes in
  7515. SegmentEntries.
  7516. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7517. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7518. Renamed uitr as itr.
  7519. (findSlowerSegmentEntry): New function.
  7520. (getSegment): Updated according to the changes in SegmentEntries.
  7521. Added the feature that cancels the segment with slow server and fast
  7522. one takes it over.
  7523. (cancelSegment): Updated according to the changes in SegmentEntries.
  7524. (getDownloadLength): Updated according to the changes in
  7525. SegmentEntries.
  7526. (init): Assigned 0 to bitfield after deleting it.
  7527. * src/DownloadCommand.cc
  7528. (STARTUP_IDLE_TIME): Removed.
  7529. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7530. * src/PeerChokeCommand.cc
  7531. (optUnchokingPeer): Updated according to the changes in Peer.
  7532. (ResetDelta): Removed.
  7533. (UploadFaster): Updated according to the changes in Peer.
  7534. (DownloadFaster): Updated according to the changes in Peer.
  7535. (execute): I clarify the meaning of "upload" and "download" here.
  7536. "upload" means the transfer from localhost to remote host.
  7537. "download" means the transfer from remote host to localhost.
  7538. Based on this rule, I swapped orderByUploadRate and
  7539. orderByDownloadRate.
  7540. * src/PeerInteractionCommand.cc
  7541. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7542. (executeInternal): Removed the argument of
  7543. peerInteraction->sendMessages().
  7544. (receiveMessages): Rewritten download speed limit.
  7545. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7546. * src/HttpResponseCommand.cc
  7547. (handleDefaultEncoding): If file size is unknown in torrent request,
  7548. do not call segmentMan->initBitfield() here.
  7549. Disabled persistent connection feature in torrent request.
  7550. * src/UrlRequestInfo.h
  7551. (UrlRequestInfo): Removed const qualifier from option.
  7552. * src/TorrentMan.h
  7553. (TransferStat): New class.
  7554. (deltaDownloadLength): Removed.
  7555. (deltaUploadLength): Removed.
  7556. (addDeltaDownloadLength): Removed.
  7557. (getDeltaDownloadLength): Removed.
  7558. (resetDeltaDownloadLength): Removed.
  7559. (addDeltaUploadLength): Removed.
  7560. (getDeltaUploadLength): Removed.
  7561. (resetDeltaUploadLength): Removed.
  7562. (addActivePeer): Added peer->activate().
  7563. (deleteActivePeer): Added peer->deactivate().
  7564. (calculateStat): New function.
  7565. * src/TorrentMan.cc
  7566. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  7567. (calculateStat): New function.
  7568. * src/PeerInteraction.h
  7569. (uploadLimit): Removed.
  7570. (option): New variable.
  7571. (setUploadLimit): Removed.
  7572. (getUploadSpeed): Removed.
  7573. (sendMessages): Removed the argument "currentUploadSpeed".
  7574. * src/PeerInteraction.cc
  7575. (prefs.h): Included.
  7576. (PeerInteraction): Removed uploadLimit. Added option.
  7577. (sendMessages): Rewritten upload speed limit.
  7578. (sendHandshake): Removed the argument from sendMessages().
  7579. (sendBitfield): Removed the argument from sendMessages().
  7580. * src/PeerAbstractCommand.cc
  7581. (execute): Commented out the portion of upload limit.
  7582. (onAbort): Removed peer->resetStatus().
  7583. * src/TorrentRequestInfo.cc
  7584. (timeoutSpecified): Declared extern.
  7585. (execute): Set timeout to 180 if timeout is not specified by.
  7586. command-line.
  7587. * src/PieceMessage.cc
  7588. (receivedAction): Added peer->updateDownloadLength().
  7589. Removed peer->addPeerUpload().
  7590. Removed torrentMan->addDeltaDownloadLength().
  7591. (send): Added peer->updateUploadLength().
  7592. Removed peer->addPeerDownload().
  7593. Removed torrentMan->addDeltaUploadLength().
  7594. * src/main.cc
  7595. (timeoutSpecified): New variable.
  7596. (main): Set timeoutSpecified to false.
  7597. If the command-line option "--upload-limit" is specified, then
  7598. timeoutSpecified is set to true. This option will remain in the next
  7599. release, but be deprecated in the future release.
  7600. * src/TorrentRequestInfo.h
  7601. (TorrentRequestInfo): Removed const qualifier from op.
  7602. * src/PeerStat.h
  7603. (uploadSpeed): New variable.
  7604. (PeerStat): Added default value to cuid.
  7605. (calculateUploadSpeed): New function.
  7606. (updateUploadLength): New function.
  7607. (getMaxUploadSpeed): New function.
  7608. (getAvgUploadSpeed): New function.
  7609. (reset): Added uploadSpeed. Set status to IDLE.
  7610. * src/TorrentDownloadEngine.h
  7611. (cp): Declared as Time.
  7612. (sessionDownloadLengthArray): Removed.
  7613. (sessionUploadLengthArray): Removed.
  7614. (currentCp): Removed.
  7615. (lastCalcStat): New variable
  7616. (lastElapsed): Removed.
  7617. (sessionDownloadLength): Removed.
  7618. (calculateStat): New function.
  7619. * src/TorrentDownloadEngine.cc
  7620. (initStatistics): Removed lastElapsed, cp[],
  7621. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  7622. currentCp, sessionDownloadLength.
  7623. Added cp.reset() and lastCalcStat.reset().
  7624. (calculateSpeed): Changed the name of the argument.
  7625. (calculateStatistics): Rewritten.
  7626. (calculateStat): New function.
  7627. * src/Peer.h
  7628. (PeerStat.h): Included.
  7629. (peerUpload): Removed.
  7630. (peerDownload): Removed.
  7631. (peerStat): New variable.
  7632. (sessionUploadLength): New variable.
  7633. (sessionDownloadLength): New variable.
  7634. (deltaUpload): Removed.
  7635. (deltaDownload): Removed.
  7636. (resetStatus): Made private.
  7637. (Peer): Added sessionUploadLength, sessionDownloadLength.
  7638. Removed peerUpload, peerDownload.
  7639. (updateUploadLength): New function.
  7640. (addDeltaUpload): Removed.
  7641. (updateDownloadLength): New function.
  7642. (resetDeltaUpload): Removed.
  7643. (getDeltaUpload): Removed.
  7644. (addDeltaDownload): Removed.
  7645. (calculateUploadSpeed): New function.
  7646. (resetDeltaDownload): Removed.
  7647. (getDeltaDownload): Removed.
  7648. (calculateDownloadSpeed): New function.
  7649. (getSessionUploadLength): New function.
  7650. (getSessionDownloadLength): New function.
  7651. (activate): New function.
  7652. (deactivate): New function.
  7653. (addPeerUpload): Removed.
  7654. (setPeerUpload): Removed.
  7655. (getPeerUpload): Removed.
  7656. (addPeerDownload): Removed.
  7657. (setPeerDownload): Removed.
  7658. (getPeerDownload): Removed.
  7659. * src/Peer.cc
  7660. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  7661. * src/MetalinkRequestInfo.h
  7662. (MetalinkRequestInfo): Removed const qualifier from op.
  7663. * src/RequestInfo.h
  7664. (op): Removed const qualifier.
  7665. (RequestInfo): Removed const qualifier from op.
  7666. * src/prefs.h
  7667. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  7668. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  7669. * src/PeerInteractionCommand.cc
  7670. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  7671. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  7672. * src/PeerInteraction.cc
  7673. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  7674. * src/main.cc
  7675. (showUsage): Updated the description of "--lowest-speed-limit" option.
  7676. Added the description of "--max-download-limit" option.
  7677. Removed the description of "--upload-limit" option.
  7678. Added the description of "--max-upload-limit" option.
  7679. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  7680. Added "--max-download-limit" option and "--max-upload-limit" option.
  7681. Added the warning message if "--upload-limit" option is used.
  7682. * src/DownloadCommand.cc
  7683. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  7684. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. To rewrite segment download mechanism for HTTP/FTP download.
  7686. Use BitfieldMan to manage segment download.
  7687. * src/HttpResponseCommand.h
  7688. (executeInternal): Pass the reference of segment.
  7689. * src/AbstractCommand.cc
  7690. (prepareForRetry): Call segmentMan->cancelSegment here.
  7691. (onAbort): Call segmentMan->cancelSegment here.
  7692. * src/HttpDownloadCommand.cc
  7693. (prepareForNextSegment): New function.
  7694. * src/DownloadEngineFactory.cc
  7695. (newConsoleEngine): Removed splitter.
  7696. (newTorrentConsoleEngine): Removed splitter.
  7697. * src/Request.h
  7698. (segment): Renamed from seg.
  7699. * src/FtpInitiateConnectionCommand.h
  7700. (executeInternal): Pass the reference of segment.
  7701. * src/AbstractCommand.h
  7702. (executeInternal): Pass the reference of segment.
  7703. * src/pref.h
  7704. (PREF_SEGMENT_SIZE): New definition.
  7705. * src/HttpProxyRequestCommand.h
  7706. (executeInternal): Pass the reference of segment.
  7707. * src/HttpResponseCommand.cc
  7708. (checkResponse): Allowed status 206 when a request range starts 0.
  7709. (handleDefaultEncoding): Rewritten the code related to Segment.
  7710. (handleOtherEncoding): Rewritten the code related to Segment.
  7711. * src/SegmentMan.h
  7712. (SegmentEntry): New class.
  7713. (SegmentEntries): New type definition.
  7714. (bitfield): New variable.
  7715. (usedSegmentEntries): New variable.
  7716. (onNullBitfield): New function.
  7717. (checkoutSegment): New function.
  7718. (segments): Removed.
  7719. (splitter): Removed.
  7720. (unregisterId): Removed.
  7721. (getSegment): New function(overload)
  7722. (getDownloadedSize): Removed.
  7723. (cancelSegment): New function.
  7724. (completeSegment): New function.
  7725. (initBitfield): New function.
  7726. (hasSegment): New function.
  7727. (getDownloadLength): New function.
  7728. * src/BitfieldMan.h
  7729. (getStartIndex): New function.
  7730. (getEndIndex): New function.
  7731. (getMissingUnusedIndex): New function(overload).
  7732. (getSparseMissingUnusedIndex): New function.
  7733. * src/BitfieldMan.cc
  7734. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  7735. (getMissingUnusedIndex): New function(overload).
  7736. (Range): New class.
  7737. (getStartIndex): New function.
  7738. (getEndIndex): New function.
  7739. (getSparseMissingUnusedIndex): New function.
  7740. (isBitSetInternal): Return false if the given index is less than 0.
  7741. * src/HttpInitiateConnectionCommand.h
  7742. (executeInternal): Pass the reference of segment.
  7743. * src/FtpNegotiateCommand.h
  7744. (executeInternal): Pass the reference of segment.
  7745. * src/FtpNegotiateCommand.cc
  7746. (recvSize): Initialize bitfield here.
  7747. * src/FtpTunnelResponseCommand.h
  7748. (executeInternal): Pass the reference of segment.
  7749. * src/HttpConnection.cc
  7750. (createRequest): Rewritten range header processing.
  7751. * src/DownloadCommand.h
  7752. (executeInternal): Pass the reference of segment.
  7753. (prepareForRetry): Removed.
  7754. (prepareForNextSegment): Added an argument segment. Made it a virtual
  7755. function.
  7756. * src/main.cc
  7757. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  7758. * src/SegmentMan.cc
  7759. (SegmentMan): Added bitfield. Removed splitter.
  7760. (~SegmentMan): Added bitfield. Removed splitter.
  7761. (unregisterId): Removed.
  7762. (getSegment): Rewritten.
  7763. (updateSegment): Rewritten.
  7764. (save): Rewritten.
  7765. (read): Rewritten.
  7766. (finished): Rewritten.
  7767. (getDownloadedSize): Removed.
  7768. (initBitfield): New function.
  7769. (FindSegmentEntryByIndex): New function object.
  7770. (FindSegmentEntryByCuid): New function object.
  7771. (checkoutSegment): New function.
  7772. (onNullBitfield): New function.
  7773. (getSegment): New function(overload).
  7774. (CancelSegment): New function object.
  7775. (cancelSegment): New function.
  7776. (completeSegment): New function.
  7777. (hasSegment): New function.
  7778. (getDownloadLength): New function.
  7779. * src/FtpInitiateConnectionCommand.cc
  7780. (executeInternal): Load .aria2 file after hostname resolution finishes.
  7781. * src/Segment.h: Rewritten.
  7782. * src/Segment.cc (operator<<): New function.
  7783. * src/HttpDownloadCommand.h
  7784. (prepareForNextSegment): New function.
  7785. * src/Request.cc
  7786. (resetUrl): Made segment null.
  7787. * src/DownloadEngine.cc
  7788. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  7789. * src/HttpProxyRequestCommand.h
  7790. (executeInternal): Pass the reference of segment.
  7791. * src/DownloadCommand.cc
  7792. (executeInternal): Rewritten the code related to Segment.
  7793. (prepareForRetry): Removed.
  7794. (prepareForNextSegment): Rewritten.
  7795. * src/FtpTunnelResponseCommand.h
  7796. (executeInternal): Pass the reference of segment.
  7797. To add HTTP 1.1 persistent connection support(experimental)
  7798. * src/HttpRequestCommand.cc
  7799. (executeInternal): Disable keep alive if it is disabled by
  7800. configuration.
  7801. * src/Request.h
  7802. (keepAlive): New variable.
  7803. (isKeepAlive): New function.
  7804. (setKeepAlive): New function.
  7805. * src/pref.h
  7806. (PREF_HTTP_KEEP_ALIVE): New definition.
  7807. * src/HttpResponseCommand.cc
  7808. (executeInternal): Check the remote server supports keep alive.
  7809. * src/HttpConnection.cc
  7810. (createRequest): Send "Connection: close" only if keep alive is
  7811. disabled.
  7812. * src/main.cc
  7813. (main):
  7814. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  7815. To add max download speed limit:
  7816. * src/pref.h
  7817. (PREF_MAX_SPEED_LIMIT): New definition.
  7818. * src/PeerInteractionCommand.cc
  7819. (executeInternal): Added max download speed limit. Not tested yet.
  7820. * src/SegmentMan.h
  7821. (PeerStats): New type definition.
  7822. (peerStats): New variable.
  7823. (registerPeerStat): New function.
  7824. (FindPeerStat): New function object.
  7825. (getPeerStat): New function.
  7826. (calculateDownloadSpeed): New function.
  7827. * src/SpeedCalc.h: New class.
  7828. * src/SpeedCalc.cc: New class.
  7829. * src/main.cc
  7830. (main):
  7831. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  7832. download speed is not restricted).
  7833. * src/PeerStat.h: New class.
  7834. * src/SegmentMan.cc
  7835. (registerPeerStat): New function.
  7836. (calculateDownloadSpeed): New function.
  7837. * src/DownloadCommand.cc
  7838. (STARTUP_IDLE_TIME): New definition.
  7839. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  7840. downloadStart.
  7841. (~DownloadCommand): Call peerStat->downloadStop.
  7842. (executeInternal): Added download speed limitter. Rewritten lowest
  7843. speed limitter.
  7844. * src/HttpConnection.cc
  7845. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  7846. * src/AbstractCommand.cc
  7847. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  7848. Added hostname to the error message.
  7849. * src/ConsoleDownloadEngine.cc
  7850. (calculateStatistics): Initialize psize with dlSize.
  7851. * src/PieceMessage.cc
  7852. (receivedAction): Do not call peerInteraction->abortPiece here.
  7853. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  7854. * src/BitfieldMan.h
  7855. (clearAllUseBit): New function.
  7856. (setAllUseBit): New function.
  7857. * src/BitfieldMan.cc
  7858. (clearAllBit): Do not clear useBitfield here.
  7859. (clearAllUseBit): New function.
  7860. (setAllUseBit): New function.
  7861. * src/Piece.cc
  7862. (clearAllBlock): Call bitfield->clearAllUseBit().
  7863. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. To make filename URL-decoded:
  7865. * src/HttpResponseCommand.h: Updated doc.
  7866. * src/HttpResponseCommand.cc
  7867. (determinFilename): Made filename URL-decoded.
  7868. * src/FtpInitiateConnectionCommand.cc
  7869. (executeInternal): Made filename URL-decoded.
  7870. * src/Util.h (urldecode): New function.
  7871. * src/Util.cc (urldecode): New function.
  7872. To fix a bug that caused assertion failure in ares_strerror:
  7873. * src/NameResolver.cc (callback): Fixed the bug.
  7874. * Release 0.7.3
  7875. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. To add --seed-time and --seed-ratio command-line option:
  7877. * src/Option.h (getAsDouble): New function.
  7878. * src/Option.cc (getAsDouble): New function.
  7879. * src/SeedCheckCommand.h: New class.
  7880. * src/SeedCheckCommand.cc: New class.
  7881. * src/DownloadEngineFactory.cc
  7882. (SeedCheckCommand.h): Included.
  7883. (UnionSeedCriteria.h): Included.
  7884. (TimeSeedCriteria.h): Included.
  7885. (ShareRatioSeedCriteria.h): Included.
  7886. (newTorrentConsoleEngine): Added the processing of seed option.
  7887. * src/SeedCriteria.h: New class.
  7888. * src/ShareRatioSeedCriteria.h: New class.
  7889. * src/TimeSeedCriteria.h: New class.
  7890. * src/UnionSeedCriteria.h: New class.
  7891. * src/prefs.h
  7892. (PREF_SEED_TIME): New definition.
  7893. (PREF_SEED_RATIO): New definition.
  7894. * src/main.cc
  7895. (showUsage): Added --seed-time and --seed-ratio option.
  7896. (main): Added --seed-time and --seed-ratio option.
  7897. Made default log file name "/dev/null".
  7898. * src/SharedHandle.h
  7899. (SharedHandle): Copy constructor. Made it assignable from the
  7900. SharedHandle of the subclasses.
  7901. (operator=): Made it assignable from the SharedHandle of the
  7902. subclasses.
  7903. (getRefCount): New function.
  7904. To add notice log level and the switch to write log to stdout. This
  7905. switch is configurable per log level.
  7906. * src/Logger.h
  7907. (notice): New function.
  7908. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  7909. constant.
  7910. * src/LogFactory.cc
  7911. (getInstance): The use of NullLogger was removed. A log message with
  7912. notice log level was made written to stdout along with log file.
  7913. * src/NullLogger.h
  7914. (notice): New function.
  7915. * src/SimpleLogger.h
  7916. (writeHeader): Added the 'file' argument.
  7917. (writeLog): Added the 'file' argument.
  7918. (writeFile): New function.
  7919. (stdoutField): New variable.
  7920. (SimpleLogger): Removed the default constructor.
  7921. (SimpleLogger): Made the default value of logfile 0.
  7922. (debug): Added 'virtual' keyword.
  7923. (info): Added 'virtual' keyword.
  7924. (warn): Added 'virtual' keyword.
  7925. (error): Added 'virtual' keyword.
  7926. (notice): New function.
  7927. (setStdout): New function.
  7928. * src/SimpleLogger.cc
  7929. (WRITE_LOG): Replaced writeLog with writeFile.
  7930. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  7931. (SimpleLogger): Removed the default constructor.
  7932. (setStdout): New function.
  7933. (writeLog): Added the handling of NOTICE log level.
  7934. (writeFile): New function.
  7935. (notice): New function.
  7936. * src/TorrentMan.h: Updated doc.
  7937. * src/BitfieldMan.h: Updated doc.
  7938. * src/TrackerWatcherCommand.cc
  7939. (execute): Return true if error occurred in the request to the tracker
  7940. and halt is requested.
  7941. * src/TrackerUpdateCommand.cc
  7942. (execute): Return true if error occurred in the request to the tracker
  7943. and halt is requested.
  7944. To call onDownloadComplete from TorrentMan::completePiece(), not from
  7945. DownloadEngine:
  7946. * src/TorrentConsoleDownloadEngine.h
  7947. (onSelectiveDownloadingCompletes): Removed.
  7948. * src/TorrentConsoleDownloadEngine.cc
  7949. (onSelectiveDownloadingCompletes): Removed.
  7950. * src/TorrentDownloadEngine.h
  7951. (onEndOfRun): Added 'virtual' keyword.
  7952. (afterEachIteration): Removed.
  7953. (onSelectiveDownloadingCompletes): Removed.
  7954. * src/TorrentDownloadEngine.cc
  7955. (onEndOfRun): Removed filenameFixed.
  7956. (afterEachIteration): Removed.
  7957. * src/TorrentMan.cc
  7958. (completePiece): Call onDownloadComplete here.
  7959. (onDownloadComplete): Added 2 log messages.
  7960. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7961. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  7962. * src/NameResolver.h: Added the prototype declaration of callback().
  7963. To support c-ares library:
  7964. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7965. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7966. * src/FtpInitiateConnectionCommand.h:
  7967. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7968. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7969. * src/HttpInitiateConnectionCommand.h:
  7970. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7971. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  7972. Added thes upport of c-ares's ares_strerror(the idea came from patch
  7973. #1542285 by tizianomueller)
  7974. * src/HttpInitiateConnectionCommand.cc:
  7975. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7976. * src/FtpInitiateConnectionCommand.cc:
  7977. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7978. * src/DownloadEngine.h:
  7979. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7980. * src/DownloadEngine.cc:
  7981. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7982. To fix the bug that causes compilation failure with metalink-support
  7983. disabled(bug#1543587):
  7984. * src/main.cc: Fixed with the patch by tizianomueller.
  7985. * Release 0.7.2
  7986. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. * src/main.cc
  7988. (main): Added a message to inform users that aria2 is starting to
  7989. verify checksum.
  7990. * src/RequestInfo.cc
  7991. (printDownloadAbortMessage): Added a message to inform users that
  7992. transfer can be resumed.
  7993. * src/FeatureConfig.cc
  7994. (FEATURE_ASYNC_DNS): New definition.
  7995. (FeatureConfig): Added aysnc DNS entry.
  7996. To replace CommandUuid with Command* in SocketEntry and
  7997. NameResolverEntry:
  7998. * src/DownloadEngine.h
  7999. (CommandUuids): Removed.
  8000. (SocketEntry::commandUuid): Removed.
  8001. (SocketEntry::command): New variable.
  8002. (SocketEntry::SocketEntry): Updated.
  8003. (SocketEntry::operator==): Updated.
  8004. (NameResolverEntry::commandUuid): Removed.
  8005. (NameResolverEntry::command): New variable.
  8006. (NameResolverEntry::NameResolverEntry): Updated.
  8007. (NameResolverEntry::operator==): Updated.
  8008. (waitData): Changed the argument type.
  8009. (addSocketForReadCheck): Changed the argument type.
  8010. (deleteSocketForReadCheck): Changed the argument type.
  8011. (addSocketForWriteCheck): Changed the argument type.
  8012. (deleteSocketForWriteCheck): Changed the argument type.
  8013. (addNameResolverCheck): Changed the argument type.
  8014. (deleteNameResolverCheck): Changed the argument type.
  8015. * src/DownloadEngine.cc
  8016. (FindCommand): Removed.
  8017. (run): Removed activeUuid. Added activeCommands instead.
  8018. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8019. (AccumulateActiveCommand): New function object.
  8020. (waitData): Use AccumulateActiveCommand.
  8021. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8022. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8023. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8024. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8025. (addNameResolverCheck): Use Command instead of CommandUuid.
  8026. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8027. * src/AbstractCommand.cc
  8028. (disableReadCheckSocket): Updated according to the changes in
  8029. DownloadEngine.
  8030. (setReadCheckSocket): Updated according to the changes in
  8031. DownloadEngine.
  8032. (disableWriteCheckSocket): Updated according to the changes in
  8033. DownloadEngine.
  8034. (setWriteCheckSocket): Updated according to the changes in
  8035. DownloadEngine.
  8036. (setNameResolverCheck): Updated according to the changes in
  8037. DownloadEngine.
  8038. (disableNameResolverCheck): Updated according to the changes in
  8039. DownloadEngine.
  8040. * src/AbstractCommand.cc
  8041. (disableReadCheckSocket): Updated according to the changes in
  8042. DownloadEngine.
  8043. (setReadCheckSocket): Updated according to the changes in
  8044. DownloadEngine.
  8045. (disableWriteCheckSocket): Updated according to the changes in
  8046. DownloadEngine.
  8047. (setWriteCheckSocket): Updated according to the changes in
  8048. DownloadEngine.
  8049. * release 0.7.1
  8050. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. To handle the case where some BitTorrent tracker requires all letters
  8052. except for [A-Za-z0-9] is URL encoded.
  8053. * src/Util.h
  8054. (torrentUrlencode): New function.
  8055. * src/Util.cc
  8056. (ctype.h): Included.
  8057. (torrentUrlencode): New function.
  8058. * src/TrackerWatcherCommand.cc
  8059. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8060. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. To add asynchronous DNS support(libares):
  8062. * src/AbstractCommand.h
  8063. (setNameResolverCheck): New function.
  8064. (disableNameResolverCheck): New function
  8065. (resolveHostname): New function.
  8066. * src/AbstractCommand.cc
  8067. (setNameResolverCheck): New function.
  8068. (disableNameResolverCheck): New function
  8069. (resolveHostname): New function.
  8070. * src/FtpInitiateConnectionCommand.h
  8071. (nameResolver): New function.
  8072. * src/FtpInitiateConnectionCommand.cc
  8073. (Util.h): Included.
  8074. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8075. disableWriteCheckSocket.
  8076. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8077. (executeInternal): Added async DNS support.
  8078. * src/HttpInitiateConnectionCommand.h
  8079. (nameResolver): New function.
  8080. * src/HttpInitiateConnectionCommand.cc
  8081. (DlRetryEx.h): Included.
  8082. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8083. disableWriteCheckSocket.
  8084. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8085. (executeInternal): Added async DNS support.
  8086. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8087. by extern "C" declaration.
  8088. * src/NameResolver.cc: New class.
  8089. * src/Util.h:
  8090. (isNumberAndDotsNotation): New function
  8091. * src/Util.cc
  8092. (isNumberAndDotsNotation): New function.
  8093. * src/DownloadEngine.h
  8094. (NameResolver.h): Included.
  8095. (NameResolverEntry): New class.
  8096. (NameResolverEntries): New type definition.
  8097. (addNameResolverCheck): New function.
  8098. (deleteNameResolverCheck): New function.
  8099. * src/DownloadEngine.cc
  8100. (run): Initialize cp with 0.
  8101. (SetDescriptor::operator()): Added for NameResolverEntry.
  8102. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8103. (waitData): Check nameResolver entries.
  8104. (updateFdSet): Update fds in nameResolver entries.
  8105. (addNameResolverCheck): New function.
  8106. (deleteNameResolverCheck): new function.
  8107. * src/PeerInteractionCommand.cc
  8108. (executeInternal): Fixed wrong socket handling.
  8109. * src/main.cc
  8110. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8111. * src/Util.cc
  8112. (fileChecksum): Removed the call to ctx.digestReset().
  8113. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. * po/ru.po: Azamat sent me Russian translation.
  8115. * src/FtpNegotiateCommand.cc
  8116. (recvGreeting): Call disableWriteCheckSocket just after
  8117. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8118. (recvRetr): Recognized status code 125 as a acceptable response code.
  8119. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8120. case-insesitive filesystem(BUG#1531057).
  8121. * src/Time.h: Renamed as TimeA2.h.
  8122. * src/Time.cc: Renamed as TimeA2.cc.
  8123. * src/TimeA2.h: New class.
  8124. * src/TimeA2.cc: New class.
  8125. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8126. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8127. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8128. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8129. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8130. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8131. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8132. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8133. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8134. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8135. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8136. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8137. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8138. * release 0.7.0
  8139. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. * src/PeerChokeCommand.h
  8141. (PeerChokeCommand): Rearranged the arguments.
  8142. * src/PeerChokeCommand.cc
  8143. (PeerChokeCommand): Rearranged the arguments.
  8144. * src/MetalinkEntry.h
  8145. (Checksum.h): Included.
  8146. (md5): Removed.
  8147. (sha1): Removed.
  8148. (checksum): New variable.
  8149. (operator=): Updated.
  8150. (check): Removed.
  8151. * src/prefs.h
  8152. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8153. (PREF_FOLLOW_TORRENT): New definition.
  8154. (PREF_SELECT_FILE): New definition.
  8155. (PREF_FOLLOW_METALINK): New definition.
  8156. * src/MetalinkResource.h
  8157. (TYPE_HTTPS): Added to enum TYPE.
  8158. * src/TorrentMan.cc
  8159. (~TorrentMan): Rewritten.
  8160. * src/MultiDiskWriter.cc
  8161. (MultiDiskAdaptor): Updated according to the changes in
  8162. MessageDigestContext.
  8163. (~MultiDiskAdaptor): Updated according to the changes in
  8164. MessageDigestContext.
  8165. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8166. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8167. * src/Util.h
  8168. (fileChecksum): Updated according to the changes in
  8169. MessageDigestContext.
  8170. * src/Util.cc
  8171. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8172. (fileChecksum): Updated according to the changes in
  8173. MessageDigestContext.
  8174. * src/messageDigest.h: Rewritten.
  8175. * src/MetalinkEntry.cc
  8176. (check): Removed.
  8177. (Supported): Updated.
  8178. (dropUnsupportedResource): Fixed a memory leak.
  8179. * src/ShaVisitor.cc
  8180. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8181. (~ShaVisitor): Updated according to the changes in
  8182. MessageDigestContext.
  8183. (visit): Updated according to the changes in MessageDigestContext.
  8184. * src/main.cc
  8185. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8186. command-line option added.
  8187. * src/DownloadEngine.h
  8188. (SocketEntry): New class.
  8189. (SocketEntries): New definition.
  8190. (PairFind): Removed.
  8191. (SockCmdMap): Removed.
  8192. * src/DownloadEngine.cc
  8193. (DownloadEngine): Rewritten.
  8194. (~DownloadEngine): Rewritten.
  8195. (run): Renamed activeCommandUuids as activeUuids.
  8196. (SetDescriptor): Rewritten.
  8197. (AccumulateActiveCommandUuid): Removed.
  8198. (AccumulateActiveUuid): New function object.
  8199. (waitData): Rewritten.
  8200. (updateFdSet): Rewritten.
  8201. (addSocket): Rewritten.
  8202. (deleteSocket): Rewritten.
  8203. (addSocketForReadCheck): Rewritten.
  8204. (deleteSocketForReadCheck): Rewritten.
  8205. (addSocketForWriteCheck): Rewritten.
  8206. (deleteSocketForWriteCheck): Rewritten.
  8207. * src/Xml2MetalinkProcessor.cc
  8208. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8209. * src/DownloadCommand.cc
  8210. (executeInternal): Added the check routine for lowest speed limit.
  8211. * src/AbstractDiskWriter.cc
  8212. (AbstractDiskWriter): Updated according to the changes in
  8213. MessageDigestContext.
  8214. (~AbstractDiskWriter): Updated according to the changes in
  8215. MessageDigestContext.
  8216. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8217. * src/RequestInfo.h: New class.
  8218. * src/UrlRequestInfo.h: New class.
  8219. * src/UrlRequestInfo.cc: New class.
  8220. * src/TorrentRequestInfo.h: New class.
  8221. * src/TorrentRequestInfo.cc: New class.
  8222. * src/MetalinkRequestInfo.h: New class.
  8223. * src/MetalinkRequestInfo.cc: New class.
  8224. * src/Checksum.h: New class.
  8225. * src/DownloadEngineFactory.h: New class.
  8226. * src/DownloadEngineFactory.cc: New class.
  8227. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. * src/Option.h
  8229. (getAsBool): New function.
  8230. * src/Option.cc
  8231. (prefs.h): Included.
  8232. (defined): 0-length value is now recognized as undefined.
  8233. (getAsInt): Rewritten.
  8234. (getAsLLInt): Rewritten.
  8235. (getAsBool): New function.
  8236. * src/FeatureConfig.h: Rewritten.
  8237. * src/FeatureConfig.cc: Rewritten.
  8238. * src/prefs.h
  8239. (PREF_STDOUT_LOG): New definition.
  8240. (PREF_LOG): New definition.
  8241. (PREF_DIR): New definition.
  8242. (PREF_OUT): New definition.
  8243. (PREF_SPLIT): New definition.
  8244. (PREF_DAEMON): New definition.
  8245. (PREF_REFERER): New definition.
  8246. (PREF_TORRENT_FILE): New definition.
  8247. (PREF_LISTEN_PORT): New definition.
  8248. (PREF_METALINK_FILE): New definition.
  8249. (PREF_METALINK_VERSION): New definition.
  8250. (PREF_METALINK_LANGUAGE): New definition.
  8251. (PREF_METALINK_OS): New definition.
  8252. (PREF_METALINK_SERVERS): New definition.
  8253. * src/main.cc
  8254. (main): Following command-line parameters are now put into Option
  8255. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8256. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8257. metalinkLanguage, metalinkOs, metalinkServers
  8258. To fix the bug that aria2 can not handle http response header properly.
  8259. * src/HttpHeader.cc
  8260. (put): Made name lowercased.
  8261. (defined): Made name lowercased.
  8262. (getFirst): Made name lowercased.
  8263. (get): Made name lowercased.
  8264. (getFirstAsInt): Rewritten.
  8265. (getFirstAsLLInt): Rewritten.
  8266. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. * src/TorrentMan.h:
  8268. (advertisePiece): Updated doc.
  8269. (getAdvertisedPieceIndexes): Updated doc.
  8270. (removeAdvertisedPiece); New function.
  8271. * src/TorrentMan.cc
  8272. (FindElapsedHave): New function object.
  8273. (removeAdvertisedPiece): New function.
  8274. * src/HaveEraseCommand.h: New class.
  8275. * src/HaveEraseCommand.cc: New class.
  8276. * src/FeatureConfig.h: New class.
  8277. * src/FeatureConfig.cc: New class.
  8278. * src/Request.h
  8279. (defaultPorts): Removed.
  8280. * src/Request.cc
  8281. (FeatureConfig.h): Included.
  8282. (Request): Removed the statements related to defaultPorts.
  8283. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8284. A default port number is now retrieved from FeatureConfig.
  8285. * src/main.cc
  8286. (HaveEraseCommand.h): Included.
  8287. (showVersion): Added the output of feature list.
  8288. (main): Added HaveEraseCommand to command queue in BitTorrent
  8289. downloading.
  8290. * src/PeerInteractionCommand.h
  8291. (chokeCheckPoint): Commented out.
  8292. (periodicExecPoint): New variable.
  8293. * src/PeerInteractionCommand.cc
  8294. (executeInternal): Following methods are now called in at least every
  8295. 0.5 seconds to reduce CPU usage:
  8296. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8297. checkHave(), sendKeepAlive().
  8298. (checkLongTimePeerChoking): Commented out.
  8299. * src/BitfieldMan.h
  8300. (getNthBitIndex): Changed the method signature.
  8301. (getMissingIndexRandomly): Changed the method signature.
  8302. * src/BitfieldMan.cc
  8303. (getNthBitIndex): Rewritten
  8304. (getMissingIndexRandomly): Rewritten.
  8305. (hasMissingPiece): Rewritten.
  8306. (getMissingIndex): Refactored.
  8307. (getMissingUnusedIndex); Refactored.
  8308. (getMissingIndex): Refactored.
  8309. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. * src/PeerMessage.h
  8311. (Piece.h): Included.
  8312. (SharedHandle.h): Included.
  8313. (invalidate): New variable.
  8314. (uploading): New variable.
  8315. (isInvalidate): New function.
  8316. (isUploading): New function.
  8317. (onPush): New function.
  8318. (onChoked): New function.
  8319. (onCanceled): New function.
  8320. (onAbortPiece): New function.
  8321. (PeerMessageHandle): New type definition.
  8322. * src/PeerMessage.cc
  8323. (PeerMessage): Added the initialization for invalidate and uploading.
  8324. * src/CancelMessage.h
  8325. (CancelMessage): Rewritten.
  8326. * src/RejectMessage.h
  8327. (RejectMessage): Rewritten.
  8328. * src/Metalinker.h
  8329. (operator=): Defined.
  8330. * src/MetaEntry.h
  8331. (operator=): Defined.
  8332. * src/MetalinkResource.h
  8333. (operator=): Defined.
  8334. * src/AllowedFastMessage.h
  8335. (AllowedFastMessage): Rewritten.
  8336. * src/HandshakeMessage.h
  8337. (HandshakeMessage): New function(overload).
  8338. * src/HandshakeMessage.cc
  8339. (HandshakeMessage): Rewritten.
  8340. (init): New function.
  8341. * src/HaveMessage.h
  8342. (HaveMessage): Rewritten.
  8343. * src/Time.h
  8344. (operator=): Defined the function body here.
  8345. * src/Time.cc
  8346. (operator=): Removed.
  8347. * src/SocketCore.h
  8348. (operator==): Defined here.
  8349. (operator!=): Defined here.
  8350. (operator<): Defined here.
  8351. * src/SocketCore.cc
  8352. (operator==): Removed.
  8353. (operator<): Removed.
  8354. * src/BitfieldMan.h
  8355. (operator=): Defined the function body here.
  8356. * src/BitfieldMan.cc
  8357. (operator=): Removed.
  8358. * src/TorrentMan.h
  8359. (deleteErrorPeer): Removed.
  8360. (deleteUnusedPeer); New function.
  8361. * src/TorrentMan.cc
  8362. (addPeer): Call deleteUnusedPeer.
  8363. (deleteErrorPeer): Removed.
  8364. (deleteUnusedPeer): New function.
  8365. * src/PeerAbstractCommand.h
  8366. (setNoCheck): New function.
  8367. (noCheck): New variable.
  8368. * src/PeerAbstractCommand.cc
  8369. (PeerAbstractCommand): Added the initialization of noCheck.
  8370. (execute): Added a check for noCheck.
  8371. (setNoCheck): New function.
  8372. * src/Util.h
  8373. (stdio.h): Included.
  8374. * src/Util.cc
  8375. (unistd.h): Included.
  8376. * src/DefaultDiskWriter.cc
  8377. (unistd.h): Included.
  8378. * src/Peer.h
  8379. (operator==): Defined the function body here.
  8380. (operator!=): Defined the function body here.
  8381. * src/Peer.cc
  8382. (operator==): Removed.
  8383. (operator!=): Removed.
  8384. * src/Piece.h
  8385. (Piece): Defined the function body here(copy constructor).
  8386. (operator=): Defined the function body here.
  8387. (operator==): Defined the function body here.
  8388. * src/Piece.cc
  8389. (Piece): Removed(copy constructor).
  8390. (operator=): Removed.
  8391. (operator==): Removed.
  8392. * src/PeerMessageUtil.h
  8393. (ChokeMessage.h): Removed.
  8394. (UnchokeMessage.h): Removed.
  8395. (InterestedMessage.h): Removed.
  8396. (NotInterestedMessage.h): Removed.
  8397. (HaveMessage.h): Removed.
  8398. (BitfieldMessage.h): Removed.
  8399. (RequestMessage.h): Removed.
  8400. (CancelMessage.h): Removed.
  8401. (PieceMessage.h): Removed.
  8402. (HandshakeMessage.h): Removed.
  8403. (KeepAliveMessage.h): Removed.
  8404. (PortMessage.h): Removed.
  8405. (HaveAllMessage.h): Removed.
  8406. (HaveNoneMessage.h): Removed.
  8407. (PeerConnection.h): Removed.
  8408. (HandshakeMessage.h): Included.
  8409. * src/BitfieldMessage.h
  8410. (init): New function.
  8411. (BitfieldMessage): Rewritten.
  8412. (BitfieldMessage): New function(overload).
  8413. * src/RequestSlot.h
  8414. (operator=): Defined the function body here.
  8415. (operator==): Defined the function body here.
  8416. * src/RequestSlot.cc
  8417. (operator=): Removed.
  8418. (operator==): Removed.
  8419. To remove the dependency on the PeerMessage subclass from
  8420. PeerInteraction:
  8421. * src/PeerMessageFactory.h: New class.
  8422. * src/PeerMessageFactory.cc: New class.
  8423. * src/SimplePeerMessage.cc
  8424. (send): If invalidate is true then do nothing.
  8425. * src/PeerInteractionCommand.cc
  8426. (HandshakeMessage.h): Included.
  8427. (KeepAliveMessage.h): Included.
  8428. (ChokeMessage.h): Included.
  8429. (UnchokeMessage.h): Included.
  8430. (HaveMessage.h): Included.
  8431. (executeInternal): Call setNoCheck().
  8432. Removed setWriteCheckSocket(socket).
  8433. * src/PeerInteraction.h
  8434. (ChokeMessage.h): Removed.
  8435. (UnchokeMessage.h): Removed.
  8436. (InterestedMessage.h): Removed.
  8437. (NotInterestedMessage.h): Removed.
  8438. (HaveMessage.h): Removed.
  8439. (BitfieldMessage.h): Removed.
  8440. (RequestMessage.h): Removed.
  8441. (CancelMessage.h): Removed.
  8442. (PieceMessage.h): Removed.
  8443. (HandshakeMessage.h): Removed.
  8444. (KeepAliveMessage.h): Removed.
  8445. (PortMessage.h): Removed.
  8446. (HaveAllMessage.h): Removed.
  8447. (HaveNoneMessage.h): Removed.
  8448. (RejectMessage.h): Removed.
  8449. (AllowedFastMessage.h): Removed.
  8450. (SuggestPieceMessage.h): Removed.
  8451. (PeerMessageFactory.h): Included.
  8452. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8453. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8454. (PeerMessageFactory): New variable.
  8455. (createPeerMessage): Removed.
  8456. (createHandshakeMessage): Removed.
  8457. (setPeerMessageCommonProperty): Removed.
  8458. (addRequestSlot): New function.
  8459. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8460. (getPeerMessageFactory): New function.
  8461. (createRequestMessage): Removed.
  8462. (createCancelMessage): Removed.
  8463. (createPieceMessage): Removed.
  8464. (createHaveMessage): Removed.
  8465. (createChokeMessage): Removed.
  8466. (createUnchokeMessage): Removed.
  8467. (createInterestedMessage): Removed.
  8468. (createNotInterestedMessage): Removed.
  8469. (createBitfieldMessage): Removed.
  8470. (createKeepAliveMessage): Removed.
  8471. (createHaveAllMessage): Removed.
  8472. (createHaveNoneMessage): Removed.
  8473. (createRejectMessage): Removed.
  8474. (createAllowedFastMessage): Removed.
  8475. * src/PeerInteraction.cc
  8476. (PeerInteraction): Allocate PeerMessageFactory here.
  8477. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8478. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8479. PieceMessage::ID.
  8480. (addMessage): Simplified by using PeerMessage::onPush().
  8481. (addRequestSlot): New function.
  8482. (rejectAllPieceMessageInQueue): Simplified by using
  8483. PeerMessage::onChoked().
  8484. (rejectPieceMessageInQueue): Simplified by using
  8485. PeerMessage::onCanceled().
  8486. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8487. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8488. (createHandshakeMessage): Removed.
  8489. (createPeerMessage): Removed.
  8490. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8491. (setPeerMessageCommonProperty): Removed.
  8492. (createRequestMessage): Removed.
  8493. (createCancelMessage): Removed.
  8494. (createPieceMessage): Removed.
  8495. (createHaveMessage): Removed.
  8496. (createChokeMessage): Removed.
  8497. (createUnchokeMessage): Removed.
  8498. (createInterestedMessage): Removed.
  8499. (createNotInterestedMessage): Removed.
  8500. (createBitfieldMessage): Removed.
  8501. (createKeepAliveMessage): Removed.
  8502. (createHaveAllMessage): Removed.
  8503. (createHaveNoneMessage): Removed.
  8504. (createRejectMessage): Removed.
  8505. (createAllowedFastMessage): Removed.
  8506. * src/PieceMessage.h
  8507. (createRejectMessage): New function.
  8508. (PieceMessage): Rewritten.
  8509. (onChoked): New function.
  8510. (onCanceled): New function.
  8511. * src/PieceMessage.cc
  8512. (send): If invalidate is true then do nothing, just return.
  8513. (createRejectMessage): New function.
  8514. (onChoked): New function.
  8515. (onCanceled): New function.
  8516. * src/RequestMessage.h
  8517. (RequestMessage): Rewritten.
  8518. (onPush): New function.
  8519. (onAbortPiece): New function.
  8520. * src/RequestMessage.cc
  8521. (onPush): New function.
  8522. (onAbortPiece): New function.
  8523. Update fd_set when a socket is added or deleted in order to improve
  8524. performance:
  8525. * src/DownloadEngine.h
  8526. (rfdset): New variable.
  8527. (wfdset): New variable.
  8528. (updateFdSet): New function.
  8529. * src/DownloadEngine.cc
  8530. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8531. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8532. (waitData): Copy rfdset and wfdset.
  8533. (updateFdSet): New function.
  8534. (addSocket): Call updateFdSet.
  8535. (deleteSocket): Call updateFdSet.
  8536. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. To add the support for Metalink3.0 backward compatible links:
  8538. * src/Request.h
  8539. (SAFE_CHARS): Added '#'.
  8540. (METALINK_MARK): New definition.
  8541. * src/Request.cc
  8542. (parseUrl): Added the support for Metalink3.0 backward compatible
  8543. links.
  8544. etc
  8545. * src/PeerInteraction.cc
  8546. (MsgPushBack): Removed.
  8547. (sendMessages): Use STL copy and back_inserter.
  8548. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8549. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8550. * src/TorrentMan.h
  8551. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8552. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. * src/SharedHandle.h: New class.
  8554. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8555. * src/HttpResponseCommand.h
  8556. (HttpResponseCommand): Wrapped Socket.
  8557. * src/SocketCore.h
  8558. (operator==): New function.
  8559. (operator!=): New function.
  8560. (operator<): New function.
  8561. (getSockfd): New function.
  8562. (isOpen): New function.
  8563. (writeData): New function.
  8564. * src/SocketCore.cc
  8565. (operator==): New function.
  8566. (operator!=): New function.
  8567. (operator<): New function.
  8568. * src/AbstractCommand.h
  8569. (socket): Changed its type to SocketHandle.
  8570. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8571. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8572. (disableReadCheckSocket): New function.
  8573. (disableWriteCheckSocket): New function.
  8574. (readCheckTarget): Changed its type to SocketHandle.
  8575. (writeCheckTarget): Changed its type to SocketHandle.
  8576. (AbstractCommand): Replaced Socket with SocketHandle.
  8577. * src/AbstractCommand.cc
  8578. (AbstractCommand): Replaced Socket with SocketHandle.
  8579. (~AbstractCommand): Removed the deallocation for Socket object.
  8580. (disableReadCheckSocket): New function.
  8581. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8582. (disableWriteCheckSocket): New function.
  8583. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8584. * src/HttpDownloadCommand.cc
  8585. (DownloadCommand): Replaced Socket with SocketHandle.
  8586. * src/PeerAbstractCommand.h
  8587. (socket): Changed its type to SocketHandle.
  8588. (peer): Changed its type to PeerHandle.
  8589. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8590. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8591. (disableReadCheckSocket): New function.
  8592. (disableWriteCheckSocket): New function.
  8593. (readCheckTarget): Changed its type to SocketHandle.
  8594. (writeCheckTarget): Changed its type to SocketHandle.
  8595. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8596. Replaced Peer with PeerHandle.
  8597. * src/HttpRequestCommand.cc
  8598. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8599. Use disableReadCheckSocket.
  8600. * src/PeerInitiateConnectionCommand.h
  8601. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8602. * src/PeerChokeCommand.cc
  8603. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  8604. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  8605. (execute): Use PeerHandle.
  8606. * src/PeerConnection.h
  8607. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  8608. (socket): Changed its type to SocketHandle.
  8609. (PeerConnection): Replaced Socket with SocketHandle.
  8610. * src/PeerConnection.cc
  8611. (PeerConnection): Replaced Socket with SocketHandle.
  8612. * src/PeerInteractionCommand.h
  8613. (PeerInteractionCommand): Replaced socket with SocketHandle.
  8614. Replaced Peer with PeerHandle.
  8615. * src/PeerInteractionCommand.cc
  8616. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  8617. Replaced Peer with PeerHandle.
  8618. (executeInternal): Use disableWriteCheckSocket.
  8619. Use HandshakeMessageHandle.
  8620. (receiveMessages): Use PeerMessageHandle.
  8621. (prepareForNextPeer): Use PeerHandle.
  8622. * src/HttpProxyRequestCommand.h
  8623. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8624. * src/HttpResponseCommand.cc
  8625. (HttpResponseCommand): Replaced Socket with SocketHandle.
  8626. * src/TorrentMan.cc
  8627. (nullPeer): Added external reference.
  8628. (~TorrentMan): Removed the deallocation of the elements of peers.
  8629. (addPeer): Rewritten.
  8630. (isPeerAvailable): Use nullPeer.
  8631. (deleteOldpeers): Replaced with deleteErrorPeer.
  8632. (deleteErrorPeer): New function.
  8633. (getPeer): Use PeerHandle and nullPeer.
  8634. (hasMissingPiece): Replaced Peer with PeerHandle.
  8635. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8636. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8637. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8638. (getMissingPiece): Replaced Peer with PeerHandle.
  8639. * src/FtpNegotiateCommand.cc
  8640. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  8641. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  8642. (recvGreeting): Use disableWriteCheckSocket.
  8643. (recvPasv): Removed the allocation of Socket.
  8644. Use disableReadCheckSocket.
  8645. (sendRestPasv): Use disableWriteCheckSocket.
  8646. (recvRetr): Changed assertion.
  8647. * src/PeerInteraction.h
  8648. (SharedHandle.h): Included SharedHandle.h.
  8649. (PeerMessageHandle): New type definition.
  8650. (HandshakeMessageHandle): New type definition.
  8651. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  8652. (peer): Changed its type to PeerHandle.
  8653. (createHandshakeMessage): Replaced HandshakeMessage with
  8654. HandshakeMessageHandle.
  8655. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  8656. (PeerInteraction): Replaced Peer with PeerHandle.
  8657. Replaced Socket with SocketHandle.
  8658. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8659. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8660. (receiveHandshake): Replaced HandshakeMessage with
  8661. HandshakeMessageHandle.
  8662. * src/PeerInteraction.cc
  8663. (PeerInteraction): Replaced Peer with PeerHandle.
  8664. Replaced Socket with SocketHandle.
  8665. (~PeerInteraction): Removed the deallocation of the elements of
  8666. messageQueue.
  8667. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  8668. (isSendingMessageInProgress): Replaced PeerMessage with
  8669. PeerMessageHandle.
  8670. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  8671. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8672. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  8673. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  8674. (abortPiece): Use PeerMessageHandle.
  8675. (receiveHandshake): Replaced HandshakeMessage with
  8676. HandshakeMessageHandle. Removed try-catch block.
  8677. (createHandshakeMessage): Replaced HandshakeMessage with
  8678. HandshakeMessageHandle.
  8679. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8680. Removed try-catch block.
  8681. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  8682. * src/HttpProxyResponseCommand.cc
  8683. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8684. * src/FtpTunnelResponseCommand.h
  8685. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8686. * src/HttpConnection.cc
  8687. (HttpConnection): Replaced Socket with SocketHandle.
  8688. * src/PeerAbstractCommand.cc
  8689. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8690. (~PeerAbstractCommand): Removed the deallocation of socket.
  8691. Use disableReadCheckSocket, disableWriteCheckSocket.
  8692. (disableReadCheckSocket): New function.
  8693. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8694. (disableWriteCheckSocket): New function.
  8695. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8696. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  8697. * src/FtpTunnelRequestCommand.cc
  8698. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8699. (~FtpTunnelRequestCommand): Corrected indentation.
  8700. * src/DownloadCommand.h
  8701. (DownloadCommand): Replaced Socket with SocketHandle.
  8702. * src/PeerListenCommand.cc
  8703. (PeerListenCommand): Removed the initialization of socket.
  8704. (~PeerListenCommand): Removed the deallocation of socket.
  8705. (bindPort): Use SocketHandle.
  8706. (execute): Use SocketHandle and PeerHandle.
  8707. * src/FtpDowndloadCommand.cc
  8708. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8709. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  8710. * src/main.cc
  8711. (main): Corrected indentation.
  8712. * src/HttpInitiateConnectionCommand.cc
  8713. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  8714. (executeInternal): Removed the allocation of socket.
  8715. * src/HttpRequestCommand.h
  8716. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8717. * src/FtpNegotiationCommand.h
  8718. (dataSocket): Changed its type to SocketHandle.
  8719. (serverSocket): Changed its type to SocketHandle.
  8720. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  8721. * src/TorrentMan.h
  8722. (MAX_PEER_UPDATE): Removed.
  8723. (MAX_PEERS): New definition.
  8724. (Peers): The element is now of type PeerHandle.
  8725. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  8726. (getPeer): Replaced Peer with PeerHandle.
  8727. (deleteOldErrorPeers): Removed.
  8728. (deleteErrorPeer): New function.
  8729. (hasMissingPiece): Replaced Peer with PeerHandle.
  8730. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8731. (getMissingPiece): Replaced Peer with PeerHandle.
  8732. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8733. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8734. (addActivePeer): Replaced Peer with PeerHandle.
  8735. (deleteActivePeer): Replaced Peer with PeerHandle.
  8736. Added a check for the return value of find.
  8737. * src/FtpTunnelResponseCommand.cc
  8738. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8739. * src/FtpInitiateConnectionCommand.cc
  8740. (executeInternal): Removed the allocation of socket.
  8741. * src/DownloadEngine.h
  8742. (Sockets): An element is now of type SocketHandle.
  8743. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  8744. (CommandUuids): New type definition.
  8745. (rsockets): Changed its type to SockCmdMap.
  8746. (wsockets): Changed its type to SockCmdMap.
  8747. (addSocket): Rewritten.
  8748. (deleteSocket): Rewritten.
  8749. (addSocketForReadCheck): Rewritten.
  8750. (deleteSocketForReadCheck): Rewritten.
  8751. (addSocketForWriteCheck): Rewritten.
  8752. (deleteSocketForWriteCheck): Rewritten.
  8753. (PairFind): New template class.
  8754. * src/HttpDownloadCommand.h
  8755. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  8756. * src/FtpConnection.cc
  8757. (FtpConnection): Replaced Socket with SocketHandle.
  8758. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  8759. block.
  8760. * src/InitiateConnectionCommandFactory.cc
  8761. (DlAbortEx.h): Included DlAbortEx.h.
  8762. (createInitiateConnectionCommand): Throw exception if the protocol of
  8763. requested URI is not supported.
  8764. * src/Peer.cc
  8765. (nullPeer): Changed its type to PeerHandle.
  8766. (operator==): New function.
  8767. (operator!=): New function.
  8768. * src/Peer.h
  8769. (SharedHandle.h): Included SharedHandle.h.
  8770. (operator==): New function.
  8771. (operator!=): New function.
  8772. (Peer): Added the default constructor.
  8773. Use resetStatus() to initialize member variables.
  8774. (nullPeer): Removed.
  8775. * src/TrackerUpdateCommand.cc
  8776. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  8777. with MIN_PEERS.
  8778. * src/PeerListenCommand.h
  8779. (socket): Changed its type to SocketHandle.
  8780. * src/Command.h
  8781. (CommandUuid): New type definition.
  8782. (uuid): New variable.
  8783. (uuidGen): New variable.
  8784. (Command): Added the initialization of uuid.
  8785. (getUuid): New function.
  8786. * src/Socket.h
  8787. (Socket): Removed.
  8788. (SocketHandle): New type definition.
  8789. * src/DownloadEngine.h
  8790. (FindCommand): New function object.
  8791. (run): The portion of socket check was rewritten.
  8792. (SetDescriptor): New function object.
  8793. (AccumulateActiveCommandUuid): New function object.
  8794. (waitData): Rewritten.
  8795. (addSocket): Rewritten.
  8796. (deleteSocket): Rewritten.
  8797. (addSocketForReadCheck): Rewritten.
  8798. (addSocketForWriteCheck): Rewritten.
  8799. (deleteSocketForReadCheck): Rewritten.
  8800. (deleteSocketForWriteCheck): Rewritten.
  8801. * src/HttpProxyResponseCommand.h
  8802. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  8803. * src/HttpConnection.h
  8804. (socket): Changed its type to SocketHandle.
  8805. (HttpConnection): Replaced Socket with SocketHandle.
  8806. * src/PeerInitiateConnectionCommand.cc
  8807. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8808. (executeInternal): Removed the allocation of socket.
  8809. (prepareForNextPeer): Use PeerHandle.
  8810. * src/PeerMessage.h
  8811. (peer): Changed its type to PeerHandle.
  8812. (getPeer): Replaced Peer with PeerHandle.
  8813. (setPeer): Replaced Peer with PeerHandle.
  8814. * src/DownloadCommand.cc
  8815. (DownloadCommand): Replaced Socket with SocketHandle.
  8816. * src/FtpConnection.h
  8817. (socket): Changed its type to SocketHandle.
  8818. (FtpConnection): Replaced Socket with SocketHandle.
  8819. (sendPort); Replaced Socket with SocketHandle.
  8820. * src/FtpDowndloadCommand.h
  8821. (ctrlSocket): Changed its type to SocketHandle.
  8822. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8823. * src/HttpProxyRequestCommand.cc
  8824. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8825. * src/FtpTunnelRequestCommand.h
  8826. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8827. etc
  8828. * src/PeerChokeCommand.h
  8829. (setAllPeerChoked): Removed.
  8830. (setAllPeerResetDelta): Removed.
  8831. * src/PeerChokeCommand.cc
  8832. (setAllPeerChoked): Removed.
  8833. (ChokePeer): New function object.
  8834. (setAllPeerResetDelta): Removed.
  8835. (ResetDelta): New function object.
  8836. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  8837. (execute): Show download speed when the local node is a seeder.
  8838. setAllPeerChoked and setAllPeerResetDelta were rewritten
  8839. using STL.
  8840. * src/TrackerWatcherCommand.h
  8841. (MIN_PEERS): Removed.
  8842. * src/TorrentMan.cc
  8843. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  8844. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. To fix the bug that .aria2 file is not saved if downloading is stopped
  8846. by the errors:it results that aria2 can not resume downloading:
  8847. * src/main.cc
  8848. (normalDownload): Added the call to save().
  8849. (main): Added the deletion of the elements in 'reserved'.
  8850. To fix log:
  8851. * src/PeerInteraction.cc
  8852. (receiveHandshake): Fixed log.
  8853. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. To improve download performance in BitTorrent:
  8855. * src/TorrentMan.cc
  8856. (getPeer): Check the number of connections. Return nullPeer if
  8857. it is greater than MAX_PEER_UPDATE.
  8858. This code was originally here, but was removed in 0.5.1.
  8859. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. To improve the conditional compilation:
  8861. * src/MultiDiskWriter.h:
  8862. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8863. * src/MultiDiskWriter.cc:
  8864. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8865. * src/Util.h:
  8866. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8867. Added ENABLE_BITTORRENT around computeFastSet().
  8868. * src/Util.cc:
  8869. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8870. Added ENABLE_BITTORRENT around computeFastSet().
  8871. * src/messageDigest.h:
  8872. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  8873. * src/ShaVisitor.h:
  8874. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8875. * src/ShaVisitor.cc:
  8876. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8877. * src/main.cc:
  8878. Added ENABLE_BITTORRENT around includes and blocks related to
  8879. BitTorrent.
  8880. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  8881. digest support is not available.
  8882. * src/AbstractDiskWriter.h:
  8883. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8884. * src/AbstractDiskWriter.cc:
  8885. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8886. * src/MetalinkEntry.cc
  8887. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  8888. support is not available.
  8889. To add command-line options for Metalink:
  8890. * src/main.cc:
  8891. Added metalink-version, metalink-language, metalink-os,
  8892. follow-metalink.
  8893. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  8894. * src/main.cc: Use these definition.
  8895. * Release 0.6.0
  8896. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. To add Metalink support(http/ftp only):
  8898. * src/AbstractCommand.h
  8899. (tryReserved): New function.
  8900. * src/AbstractCommand.cc
  8901. (execute): Call tryReserved().
  8902. (tryReserved): New function.
  8903. * src/Request.h
  8904. (Requests): New type definition.
  8905. * src/SegmentMan.h
  8906. (reserved): New variable.
  8907. * src/Util.h
  8908. (fileChecksum): New function.
  8909. (toUpper): New function.
  8910. (toLower): New function.
  8911. * src/Util.cc
  8912. (messageDigest.h): Included.
  8913. (trim): Trim \r\n\t.
  8914. (fileChecksum): New function.
  8915. (toUpper): New function.
  8916. (toLower): New function.
  8917. * src/main.cc
  8918. (normalDownload): New function.
  8919. (main): Added 2 command-line options: metalink-file,
  8920. metalink-connection. Their usage has not been written yet.
  8921. * src/MetalinkProcessor.h: New class.
  8922. * src/Xml2MetalinkProcessor.h: New class.
  8923. * src/Xml2MetalinkProcessor.cc: New class.
  8924. * src/MetalinkEntry.h: New class.
  8925. * src/MetalinkEntry.cc: New class.
  8926. * src/MetalinkResource.h: New class.
  8927. * src/MetalinkResource.cc: New class.
  8928. To add md5 message digest checking:
  8929. * src/messageDigest.h: Rewritten.
  8930. * src/MultiDiskWriter.cc: Updated according to the changes in
  8931. messageDigest.h.
  8932. * src/ShaVisitor.cc: Updated according to the changes in
  8933. messageDigest.h.
  8934. * src/Util.cc: Updated according to the changes in messageDigest.h.
  8935. * src/AbstractDiskWriter.cc: Updated according to the changes in
  8936. messageDigest.h.
  8937. To fix a bug that causes segfault when the payload length in peer
  8938. message is less than 0:
  8939. * src/PeerConnection.cc:
  8940. (receiveMessage): Fixed the bug.
  8941. * src/PeerMessageUtil.cc
  8942. (checkLength): Throw an exception if length is less than or equals to
  8943. 0.
  8944. To add new interfaces to Base64 encoding/decoding:
  8945. * src/Base64.h
  8946. (part_encode): Changed the method signature.
  8947. (encode): New function(overload).
  8948. (decode): New function(overload).
  8949. * src/Base64.cc
  8950. (part_encode): Rewritten.
  8951. (encode): Rewritten.
  8952. (encode): New function(overload).
  8953. To prevent a peer to download same piece if there is an error in
  8954. checksum:
  8955. * src/PieceMessage.cc
  8956. (receivedAction): Call peerInteraction->abortPiece().
  8957. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. To fix the bug that causes same have message is sent many times to
  8959. a single peer.
  8960. * src/Time.cc
  8961. (isNewer): Use Util::difftv().
  8962. * src/Util.cc
  8963. (difftv): Added a cast to (long long int).
  8964. * src/TorrentMan.cc
  8965. (advertisePiece): Use push_front.
  8966. (getAdvertisedPieceIndexes): A performance improvement was made.
  8967. To fix the bug that sends tracker requests without a sleep interval
  8968. when the number of connections is less than 15.
  8969. * src/TrackerWatcherCommand.cc
  8970. (execute): Now the number of connections is not a factor to decide
  8971. whether or not a tracker request should be sent or not.
  8972. * src/Time.h
  8973. (setTimeInSec): New function.
  8974. * src/Time.cc
  8975. (setTimeInSec): New function.
  8976. etc.
  8977. * src/ChokeMessage.cc
  8978. (receivedAction): Removed peer->snubbing = false
  8979. * src/PeerConnection.h
  8980. (receiveHandshake): Updated doc.
  8981. * src/TorrentMan.h
  8982. (getAdvertisedPieceIndexes): Updated the method signature.
  8983. * src/TorrentMan.cc
  8984. (getAdvertisedPieceIndexes): Updated the method signature.
  8985. * src/Time.h
  8986. (getTimeInMicros): Added a cast to (long long int).
  8987. (getTimeInMillis): Added a cast to (long long int).
  8988. * Release 0.5.2
  8989. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8990. To make a listening socket non-block:
  8991. * src/SocketCore.h
  8992. (setNonBlockingMode): New function.
  8993. * src/SocketCore.cc
  8994. (setNonBlockingMode): New function.
  8995. (beginListen): Added a call to setNonBlockingMode().
  8996. (acceptConnection): Call setNonBlockingMode().
  8997. (setBlockingMode): Updated.
  8998. To handle tracker's NAT-checking:
  8999. * src/PeerConnection.cc
  9000. (receiveHandshake): 'msg' param is filled with received data and
  9001. its length is assigned to 'length' param, even if all handshake
  9002. message is not yet received.
  9003. * src/PeerInteractionCommand.cc
  9004. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9005. a new peer connects to localhost.
  9006. A call to peerInteraction->sendHandshake() was removed because
  9007. it is called from peerInteraction->receiveHandshake(true).
  9008. * src/PeerInteraction.h
  9009. (quickReplied): New variable.
  9010. (receiveHandshake): Added an argument.
  9011. * src/PeerInteraction.cc
  9012. (PeerInteraction): Added the initialization of quickReplied.
  9013. (receiveHandshake): Send handshake message as soon as the info hash
  9014. in a handshake message from a peer is correct.
  9015. To change the random part of peer id and key parameter:
  9016. * src/TorrentMan.h
  9017. (key): New variable.
  9018. * src/TorrentMan.cc
  9019. (setupInternal1): Use Util::randomAlpha() to generate random part
  9020. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9021. key is also generated by Util::randomAlpha() and it is now 8 character
  9022. long.
  9023. * src/Util.h
  9024. (randomAlpha): New function.
  9025. * src/Util.cc
  9026. (randomAlpha): New function.
  9027. * src/TrackerWatcherCommand.cc
  9028. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9029. Added no_peer_id=1.
  9030. Set snubbing flag to false when a choke message is received from a
  9031. snubbed peer.
  9032. * src/ChokeMessage.cc
  9033. (receivedAction): Set snubbing flag to false.
  9034. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9036. * src/SimpleLogger.h (writeHeader): New function.
  9037. * src/SimpleLogger.cc (writeHeader): New function.
  9038. (writeLog): Fixed the bug that causes segfaults if exception message
  9039. contains an unescaped "%" character.
  9040. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9041. when a tracker request fails.
  9042. * src/Request.cc (parseUrl): Query string is now handled properly.
  9043. * Release 0.5.1
  9044. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. To add Time class which represents a specific instant in time and
  9046. its precision is microseconds. Time checking procedures were rewritten
  9047. using this object.
  9048. * src/Time.h: New class.
  9049. * src/Time.cc: New class.
  9050. * src/AbstractCommand.h
  9051. (updateCheckPoint): Removed.
  9052. (isTimeoutDetected): Removed.
  9053. (checkPoint): Changed the type to Time.
  9054. (timeout): New variable.
  9055. (setTimeout): New function.
  9056. * src/AbstractCommand.cc
  9057. (AbstractCommand): Removed the initialization of checkPoint.
  9058. Added the initialization of timeout.
  9059. (updateCheckPoint): Removed.
  9060. (isTimeoutDetected): Removed.
  9061. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9062. * src/PeerChokeCommand.h
  9063. (checkPoint): Changed the type to Time.
  9064. * src/PeerChokeCommand.cc
  9065. (PeerChokeCommand): Removed the initialization of checkPoint.
  9066. (execute): Rewritten using Time object.
  9067. * src/TrackerWatcherCommand.h
  9068. (checkPoint): Changed the type to Time.
  9069. * src/TrackerWatcherCommand.cc
  9070. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9071. (execute): Rewritten.
  9072. * src/ConsoleDownloadEngine.h
  9073. (cp): Changed the type to Time.
  9074. (startup): Changed the type to Time.
  9075. * src/ConsoleDownloadEngine.cc
  9076. (initStatistics): Use cp.reset(), startup.reset().
  9077. (calculateStatistics): Rewritten using Time object.
  9078. * src/PeerAbstractCommand.h
  9079. (updateCheckPoint): Removed.
  9080. (isTimeoutDetected): Removed.
  9081. (checkPoint): Changed the type to Time.
  9082. * src/PeerAbstractCommand.cc
  9083. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9084. (updateCheckPoint): Removed.
  9085. (isTimeoutDetected): Removed.
  9086. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9087. * src/PeerInteractionCommand.cc
  9088. (PeerInteractionCommand): Removed the initializations of struct
  9089. timeval variables.
  9090. * src/PeerInteractionCommand.h
  9091. (keepAliveCheckPoint): Changed the type to Time.
  9092. (chokeCheckPoint): Changed the type to Time.
  9093. (freqCheckPoint): Changed the type to Time.
  9094. (haveCheckTime): Changed the type to Time.
  9095. * src/PeerInteractionCommand.cc
  9096. (executeInternal): Rewritten using Time object.
  9097. (detectMessageFlooding): Rewritten using Time object.
  9098. (checkLongTimePeerChoking): Rewritten using Time object.
  9099. (sendKeepAlive): Rewritten using Time object.
  9100. (checkHave): Rewritten using Time object.
  9101. * src/SleepCommand.h
  9102. (checkPoint): Changed the type to Time.
  9103. * src/SleepCommand.cc
  9104. (SleepCommand): Removed the initialization of checkPoint.
  9105. (execute): Rewritten using Time object.
  9106. * src/TorrentAutoSaveCommand.h
  9107. (checkPoint): Changed the type to Time.
  9108. * src/TorrentAutoSaveCommand.cc
  9109. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9110. (execute): Rewritten.
  9111. * src/DownloadCommand.h
  9112. (sw): Changed the type to Time.
  9113. * src/DownloadCommand.cc
  9114. (DownloadCommand): Removed the initialization of sw.
  9115. (executeInternal): Rewritten.
  9116. * src/RequestSlot.h
  9117. (dispatchedTime): Changed the type to Time.
  9118. * src/RequestSlot.cc
  9119. (RequestSlot): Removed the call to setDispatchedTime().
  9120. (setDispatchedTime): Rewirtten.
  9121. (isTimeout): Rewritten.
  9122. (getLatencyInMillis): Rewritten.
  9123. * src/TorrentDownloadEngine.h
  9124. (cp): Changed the type to Time[2].
  9125. (startup): Changed the type to Time.
  9126. * src/TorrentDownloadEngine.cc
  9127. (initStatistics): Rewritten.
  9128. (calculateStatistics): Rewritten.
  9129. * src/DownloadEngine.cc
  9130. (run): Rewritten.
  9131. To detect all attempts to connect to the tracker are failed:
  9132. * src/AbstractCommand.cc
  9133. (execute): Increment e->segmentMan->errors if a command aborted.
  9134. * src/SegmentMan.h
  9135. (errors): New variable.
  9136. * src/SegmentMan.cc
  9137. (SegmentMan): Added the initialization of errors.
  9138. (init): Added the initialization of errors.
  9139. * src/TrackerWatcherCommand.cc
  9140. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9141. request was failed.
  9142. To handle snubbed peers:
  9143. * src/PeerChokeCommand.cc
  9144. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9145. (execute): Snubbed peers don't get unchoked.
  9146. * src/PeerInteraction.h
  9147. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9148. * src/PeerInteraction.cc
  9149. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9150. back the requested 16k block in 60 seconds.
  9151. * src/PieceMessage.cc
  9152. (receivedAction): A peer's snubbed state is cleard if it sends
  9153. the requested 16k block in 60 seconds.
  9154. * src/Peer.h
  9155. (snubbing): New variable.
  9156. * src/Peer.cc
  9157. (resetStatus): Added snubbed = false.
  9158. To fix the bug that causes have message is not sent:
  9159. * src/PeerInteractionCommand.cc
  9160. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9161. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9162. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9163. * src/TorrentMan.h
  9164. (HaveEntry): New class.
  9165. (advertisePiece): Rewritten.
  9166. (getAdvertisedPieceIndexes): Rewritten.
  9167. (Haves): Changed the type.
  9168. (getAdvertisedPieceIndexes): Added an argument.
  9169. Others:
  9170. * src/TorrentMan.h
  9171. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9172. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9173. * src/TorrentMan.cc
  9174. (getPeer): Don't check the number of connections here.
  9175. (setupInternal1): Changed peerId.
  9176. * src/PeerInteractionCommand.h
  9177. (KEEP_ALIVE_INTERVAL): New definition.
  9178. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9179. * src/main.cc
  9180. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9181. * src/DownloadEngine.h: Removed unnecessary header includes.
  9182. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9183. To fix the bug that causes segfaults if a tracker returns a zero-length
  9184. list as "peers":
  9185. * src/TrackerUpdateCommand.cc
  9186. (execute): Added a check to see wether the type of peers is Data*.
  9187. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. * Release 0.5.0
  9189. To fix compile issue with gcc3:
  9190. * src/CancelMessage.h
  9191. (ID): Renamed as ID_t
  9192. (ID_t): New enum.
  9193. * src/RejectMessage.h
  9194. (ID): Renamed as ID_t
  9195. (ID_t): New enum.
  9196. * src/SuggestPieceMessage.h
  9197. (ID): Renamed as ID_t
  9198. (ID_t): New enum.
  9199. * src/AllowedFastMessage.h
  9200. (ID): Renamed as ID_t
  9201. (ID_t): New enum.
  9202. * src/PortMessage.h
  9203. (ID): Renamed as ID_t
  9204. (ID_t): New enum.
  9205. * src/HaveNoneMessage.h
  9206. (ID): Renamed as ID_t
  9207. (ID_t): New enum.
  9208. * src/KeepAliveMessage.h
  9209. (ID): Renamed as ID_t
  9210. (ID_t): New enum.
  9211. * src/HaveAllMessage.h
  9212. (ID): Renamed as ID_t
  9213. (ID_t): New enum.
  9214. * src/UnchokeMessage.h
  9215. (ID): Renamed as ID_t
  9216. (ID_t): New enum.
  9217. * src/BitfieldMessage.h
  9218. (ID): Renamed as ID_t
  9219. (ID_t): New enum.
  9220. * src/PieceMessage.h
  9221. (ID): Renamed as ID_t
  9222. (ID_t): New enum.
  9223. * src/RequestMessage.h
  9224. (ID): Renamed as ID_t
  9225. (ID_t): New enum.
  9226. * src/NotInterestedMessage.h
  9227. (ID): Renamed as ID_t
  9228. (ID_t): New enum.
  9229. * src/ChokeMessage.h
  9230. (ID): Renamed as ID_t
  9231. (ID_t): New enum.
  9232. * src/InterestedMessage.h
  9233. (ID): Renamed as ID_t
  9234. (ID_t): New enum.
  9235. * src/HaveMessage.h
  9236. (ID): Renamed as ID_t
  9237. (ID_t): New enum.
  9238. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. * src/PeerAbstractCommand.h
  9240. (beforeSocketCheck): Removed.
  9241. * src/PeerAbstractCommand.cc
  9242. Modified in order to call executeInternal() even if socket check
  9243. and upload limit check fail.
  9244. * src/PeerInteractionCommand.h
  9245. (keepAlive): Removed.
  9246. (sendKeepAlive): New function.
  9247. (checkHave): New function.
  9248. (beforeSocketCheck): Removed.
  9249. * src/PeerInteractionCommand.cc
  9250. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9251. calls to checkHave() and sendKeepAlive().
  9252. (keepAlive): Renamed to sendKeepAlive().
  9253. (sendKeepAlive): New function.
  9254. (beforeSocketCheck): Removed.
  9255. (checkHave): New function.
  9256. * src/BitfieldMan.cc
  9257. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9258. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9259. 0.
  9260. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9261. * src/TorrentMan.h
  9262. (UsedPieces): Removed.
  9263. (Pieces): New type definition.
  9264. * src/Piece.h: Updated doc.
  9265. * src/Peer.h
  9266. (totalLength): Removed.
  9267. * src/Peer.cc
  9268. (updateLatency): Fixed the latency calculation.
  9269. * src/TorrentMan.cc
  9270. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9271. than or equal to MAX_PEER_LIST_SIZE.
  9272. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9273. then return false.
  9274. (deleteOldErrorPeers): Rewritten.
  9275. (deleteUsedPiece): Fixed the miss use of STL remove.
  9276. * src/PeerInteraction.h
  9277. (Pieces): Removed.
  9278. (deleteTimeoutRequestSlot): Removed.
  9279. (deleteCompletedRequestSlot): Removed.
  9280. (checkRequestSlot): New function.
  9281. * src/PeerInteraction.cc
  9282. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9283. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9284. (checkRequestSlot): New function.
  9285. * src/DownloadEngine.cc
  9286. (run): Clear activeSockets before calling waitData().
  9287. (waitData): Removed a call to activeSockets.clear().
  9288. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. To attempt to handle EINTR:
  9290. * src/SocketCore.cc
  9291. (isReadable): Added EINTR handling.
  9292. (isWritable): Added EINTR handling.
  9293. To improve the performance:
  9294. * src/AbstractCommand.cc
  9295. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9296. * src/PeerInteractionCommand.h
  9297. (receiveMessage): Renamed as receiveMessages().
  9298. (receiveMessages): New function.
  9299. * src/PeerInteractionCommand.cc
  9300. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9301. () function. detectMessageFlooding() is moved here.
  9302. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9303. (). The flooding detection for have message is comment out.
  9304. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9305. Util::difftv().
  9306. (receiveMessage): Renamed as receiveMessages().
  9307. (receiveMessages): New function.
  9308. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9309. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9310. * src/SleepCommand.cc
  9311. (execute): Use Util::difftvsec() instead of Util::difftv().
  9312. * src/BitfieldMan.h
  9313. (getNthBitIndex): New function.
  9314. (hasMissingPiece): New function.
  9315. (getAllMissingIndexes): New function.
  9316. * src/BitfieldMan.cc
  9317. (countSetBit): Rewritten.
  9318. (getNthBitIndex): New function.
  9319. (getMissingIndexRandomly): Rewritten.
  9320. (hasMissingPiece): New function.
  9321. (getAllMissingIndexes): New function.
  9322. * src/TorrentMan.cc
  9323. (hasMissingPiece): New function.
  9324. (deleteUsedPiece): Rewritten using STL.
  9325. * src/PeerInteraction.cc
  9326. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  9327. is a little bit faster then TorrentMan::getMissingPieceIndex().
  9328. (addRequests): Updated the number of pending requests.
  9329. * src/PeerAbstractCommand.cc
  9330. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9331. (execute): Returns true if TorrentMan::isHalt() is true.
  9332. Corrected the condition of upload limit checking.
  9333. * src/Util.h
  9334. (countBit): New function.
  9335. * src/Util.cc
  9336. (nbits): New variable.
  9337. (countBit): New function.
  9338. * src/DownloadEngine.h
  9339. (SockCmdMap): New type definition.
  9340. (waitData): Added an argument.
  9341. (addSocket): Added an argument.
  9342. (addSocketForReadCheck): Added an argument.
  9343. (addSocketForWriteCheck): Added an argument.
  9344. * src/DownloadEngine.cc
  9345. (run): Executes only commands whose sockets are ready to read or write.
  9346. All commands are executed in every 1 second.
  9347. (waitData): Calls select() again if it returned
  9348. EINTR.
  9349. (addSocket): Saves socket and command object pair to the map.
  9350. (deleteSocket): Deletes socket and command object pair from the map.
  9351. (addSocketForReadCheck): Added an argument.
  9352. (addSocketForWriteCheck): Added an argument.
  9353. * src/DownloadCommand.cc
  9354. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9355. To send "event=stopped" to the tracker when the application finishes:
  9356. * src/PeerChokeCommand.h
  9357. (checkPoint): New variable.
  9358. * src/PeerChokeCommand.cc
  9359. (PeerChokeCommand): Added the initialization of checkPoint.
  9360. (execute): The interval check is now done by checkPoint, not
  9361. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9362. * src/TorrentMan.h
  9363. (halt): New function.
  9364. (hasMissingPiece): New function.
  9365. (isHalt): New function.
  9366. (setHalt): New function.
  9367. * src/TorrentMan.cc
  9368. (TorrentMan): Added the initialization of halt.
  9369. * src/TorrentAutoSaveCommand.h
  9370. (checkPoint): New variable.
  9371. * src/PeerListenCommand.cc
  9372. (execute): Returns true if TorrentMan::isHalt() is true.
  9373. * src/main.cc
  9374. (setSignalHander): Added flags argument.
  9375. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9376. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9377. Removed printDownloadAbortMessage() after torrent downloading loop.
  9378. * src/TorrentAutoSaveCommand.cc
  9379. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9380. (execute): Returns true if TorrentMan::isHalt() is true.
  9381. The interval check is now done by checkPoint, not SleepCommand.
  9382. * src/TrackerWatcherCommand.cc
  9383. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9384. event=stopped.
  9385. * src/TrackerUpdateCommand.cc
  9386. (prepareForRetry): Do not use SleepCommand here.
  9387. (execute): Returns true if TorrentMan::isHalt() is true.
  9388. Others:
  9389. * src/TorrentMan.cc
  9390. (getMissingPieceIndex): Updated log message.
  9391. * src/PeerInteraction.cc
  9392. (createPeerMessag): Updated log message.
  9393. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. To add the ability to download several pieces in mix in a command and
  9395. increase the number of request slots according to request-cancel
  9396. latency:
  9397. * src/PeerInteractionCommand.cc
  9398. (executeInternal): The number of messages to be received at a time
  9399. is increased from 10 to 50.
  9400. * src/LogFactory
  9401. (getInstance): Added NullLogger.
  9402. * src/NullLogger.h: New class.
  9403. * src/BitfieldMan.h
  9404. (getMissingIndex): New function.
  9405. * src/BitfieldMan.cc
  9406. (getMissingIndex): New function.
  9407. * src/TorrentMan.h
  9408. (checkOutPiece): New function.
  9409. (getMissingPieceIndex): New function.
  9410. (getMissingFastPieceIndex): New function.
  9411. (getMissingFastPiece): New function.
  9412. * src/TorrentMan.cc
  9413. (updatePiece): Rewritten using STL.
  9414. (syncPiece): Rewritten using STL.
  9415. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9416. checkOutPiece().
  9417. (getMissingPieceIndex): New function.
  9418. (getMissingFastPieceIndex): New function.
  9419. (getMissingFastPiece): New function.
  9420. (checkOutPiece): New function.
  9421. * src/PeerInteraction.h
  9422. (Pieces): New type definition.
  9423. (piece): Removed.
  9424. (pieces): New variable.
  9425. (getNewPieceAndSendInterest): Added the "piece" argument.
  9426. (abortPiece): Added the "piece" argument.
  9427. (abortAllPieces): New function.
  9428. (isInRequestSlot): New function.
  9429. (hasDownloadPiece): Added the "index" argument.
  9430. (setDownloadPiece): Removed.
  9431. (getDownloadPiece): Added the "index" argument.
  9432. (updatePiece): New function.
  9433. (createRequestMessage): Added the "index" argument.
  9434. * src/PeerInteraction.cc
  9435. (onChoked): Rewritten.
  9436. (abortPiece): Rewirtten.
  9437. (abortAllPieces): New function.
  9438. (deleteTimeoutRequestSlot): Rewritten.
  9439. Clarified code a little bit.
  9440. (deleteCompletedRequestSlot): Rewritten.
  9441. (isInRequestSlot): New function.
  9442. (syncPiece): Rewritten.
  9443. (updatePiece): New function.
  9444. (getNewPieceAndSendInterest): Rewritten.
  9445. (addRequests): Rewritten.
  9446. (getDownloadPiece): Rewritten.
  9447. (hasDownloadPiece): Rewritten.
  9448. (createRequestMessage): Added the "index" argument.
  9449. * src/common.h
  9450. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9451. (DIV_FLOOR): New definition.
  9452. * src/PieceMessage.cc
  9453. (receivedAction): Update request-piece latency here.
  9454. * src/RequestSlot.h
  9455. (getLatencyInMillis): New function.
  9456. * src/RequestSlot.cc
  9457. (isTimeout): Rewritten using getLatencyInMillis.
  9458. (getLatencyInMillis): New function.
  9459. * src/Piece.h
  9460. (operator==): New function.
  9461. (getMissingBlockIndex): New function.
  9462. * src/Piece.cc
  9463. (operator==): New function.
  9464. (getMissingBlockIndex): New function.
  9465. * src/Peer.h
  9466. (DEFAULT_LATENCY): New definition.
  9467. (latency): New variable.
  9468. (updateLatency): New function.
  9469. (getLatency): New function.
  9470. * src/Peer.cc
  9471. (resetStatus): Reset latecy.
  9472. (updateLatency): New function.
  9473. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. * src/SocketCore.cc
  9475. (isReadable): Added secure to the condition.
  9476. * src/HttpConnection.cc
  9477. (receiveResponse): Fixed a bug that causes no response header
  9478. exception.
  9479. * src/Peer.h
  9480. (getFastSet): Fixed the return value type.
  9481. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9482. To remove a wait from download loop:
  9483. * src/DownloadEngine.cc
  9484. (run): Comment out shortSleep.
  9485. To rewrite the message handling:
  9486. * src/SimplePeerMessage.h: New class.
  9487. * src/SimplePeerMessage.cc: New class.
  9488. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9489. (msg): New variable.
  9490. (create): New function.
  9491. (send): Removed.
  9492. (getMessage): New function.
  9493. (getMessageLength): New function.
  9494. * src/CancelMessage.cc
  9495. (create): New function.
  9496. (receivedAction): Replaced deleteRequestMessageInQueue with
  9497. rejectPieceMessageInQueue.
  9498. (send): Removed.
  9499. (getMessage): New function.
  9500. (getMessageLength): New function.
  9501. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9502. (msg): New variable.
  9503. (msgLength): New variable.
  9504. (~BitfieldMessage): Deleted msg.
  9505. (send): Removed.
  9506. (getMessage): New function.
  9507. (getMessageLength): New function.
  9508. * src/BitfieldMessage.cc
  9509. (create): New function.
  9510. (send): Removed.
  9511. (getMessage): New function.
  9512. (getMessageLength): New function.
  9513. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9514. (msg): New variable.
  9515. (sendPredicate): New function.
  9516. (onSendComplete): New function.
  9517. (send): Removed.
  9518. (getMessage): New function.
  9519. (getMessageLength): New function.
  9520. (create): New function.
  9521. * src/ChokeMessage.cc
  9522. (create): New function.
  9523. (send): Removed.
  9524. (sendPredicate): New function.
  9525. (getMessage): New function.
  9526. (getMessageLength): New function.
  9527. (onSendComplete): New function.
  9528. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9529. (msg): New variable.
  9530. (send): Removed.
  9531. (getMessage): New function.
  9532. (getMessageLength): New function.
  9533. * src/KeepAliveMessage.cc
  9534. (send): Removed.
  9535. (getMessage): New function.
  9536. (getMessageLength): New function.
  9537. * src/PortMessage.h
  9538. (create): New function.
  9539. (receivedAction): Updated log message.
  9540. * src/PortMessage.cc: New file.
  9541. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9542. (msg): New variable.
  9543. (sendPredicate): New function.
  9544. (onSendComplete): New function.
  9545. (create): New function.
  9546. (send): Removed.
  9547. (getMessage): New function.
  9548. (getMessageLength): New function.
  9549. * src/UnchokeMessage.cc
  9550. (create): New function.
  9551. (send): Removed.
  9552. (sendPredicate): New function.
  9553. (getMessage): New function.
  9554. (getMessageLength): New function.
  9555. (onSendComplete): New function.
  9556. * src/PieceMessage.h
  9557. (leftPieceDataLength): Removed.
  9558. (leftDataLength): New variable.
  9559. (headerSend): New variable.
  9560. (pendingCount): New variable.
  9561. (msgHeader): New variable.
  9562. (sendPieceData): New function.
  9563. (incrementPendingCount): New function.
  9564. (isPendingCountMax): New function.
  9565. (create): New function.
  9566. (getMessageHeader): New function.
  9567. (getMessageHeaderLength): New function.
  9568. * src/PieceMessage.cc
  9569. (create): New function.
  9570. (getMessageHeader): New function.
  9571. (getMessageHeaderLength): New function.
  9572. (send): Rewritten.
  9573. (sendPieceData): New function.
  9574. * src/HaveMessage.h: Derived from SimplePeerMessage.
  9575. (msg): New variable.
  9576. (create): New function.
  9577. (getMessage): New function.
  9578. (getMessageLength): New function.
  9579. * src/HaveMessage.cc
  9580. (create): New function.
  9581. (send): Removed.
  9582. (sendPieceData): New function.
  9583. (getMessage): New function.
  9584. (getMessageLength): New function.
  9585. * src/RequestMessage.h: Derived from SimplePeerMessage.
  9586. (msg): New variable.
  9587. (create): New function.
  9588. (send): Removed.
  9589. (getMessage): New function.
  9590. (getMessageLength): New function.
  9591. * src/RequestMessage.cc
  9592. (create): New function.
  9593. (receivedAction): Added the handling of fast extension.
  9594. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  9595. (send): Removed.
  9596. (getMessage): New function.
  9597. (getMessageLength): New function.
  9598. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  9599. (msg): New variable.
  9600. (sendPredicate): New function.
  9601. (onSendComplete): New function.
  9602. (create): New function.
  9603. (getMessage): New function.
  9604. (getMessageLength): New function.
  9605. * src/InterestedMessage.cc
  9606. (create): New function.
  9607. (send): Removed.
  9608. (sendPieceData): New function.
  9609. (getMessage): New function.
  9610. (getMessageLength): New function.
  9611. (onSendComplete): New function.
  9612. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  9613. (msg): New variable.
  9614. (sendPieceData): New function.
  9615. (onSendComplete): New function.
  9616. (create): New function.
  9617. (send): Removed.
  9618. (getMessage): New function.
  9619. (getMessageLength): New function.
  9620. * src/NotInterestedMessage.cc
  9621. (create): New function.
  9622. (send): Removed.
  9623. (sendPredicate): New function.
  9624. (getMessage): New function.
  9625. (getMessageLength): New function.
  9626. (onSendComplete): New function.
  9627. * src/AllowedFastMessage.h: New class.
  9628. * src/AllowedFastMessage.cc: New class.
  9629. * src/RejectMessage.h: New class.
  9630. * src/RejectMessage.cc: New class.
  9631. * src/SuggestPieceMessage.h: New class.
  9632. * src/SuggestPieceMessage.cc: New class.
  9633. * src/HaveAllMessage.h: New class.
  9634. * src/HaveAllMessage.cc: New class.
  9635. * src/HaveNoneMessage.h: New class.
  9636. * src/HaveNoneMessage.cc: New class.
  9637. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  9638. (msg): New variable.
  9639. (reserved): New variable.
  9640. (create): New function.
  9641. (getId): New function.
  9642. (receivedAction): New function.
  9643. (getMessage): New function.
  9644. (getMessageLength): New function.
  9645. (isFastExtensionSupported): New function.
  9646. * src/HandshakeMessage.cc
  9647. (HandshakeMessage): Moved here from HandshakeMessage.h.
  9648. (create): New function.
  9649. (getMessage): New function.
  9650. (getMessageLength): New function.
  9651. (toString): Added the output of reserved field.
  9652. (check): Added const qualifier.
  9653. (isFastExtensionSupported): New function.
  9654. * src/PeerMessageUtil.h
  9655. (createChokeMessage): Removed.
  9656. (createUnchokeMessage): Removed.
  9657. (createInterestedMessage): Removed.
  9658. (createNotInterestedMessage): Removed.
  9659. (createHaveMessage): Removed.
  9660. (createBitfieldMessage): Removed.
  9661. (createRequestMessage): Removed.
  9662. (createCancelMessage): Removed.
  9663. (createPieceMessage): Removed.
  9664. (createPortMessage): Removed.
  9665. (createChokeMessage): Removed.
  9666. (createUnchokeMessage): Removed.
  9667. (createInterestedMessage): Removed.
  9668. (createNotInterestedMessage): Removed.
  9669. (createHaveMessage): Removed.
  9670. (createBitfieldMessage): Removed.
  9671. (createRequestMessage): Removed.
  9672. (createCancelMessage): Removed.
  9673. (createPieceMessage): Removed.
  9674. (createKeepAliveMessage): Removed.
  9675. (createHandshakeMessage): Removed.
  9676. (setIntParam): New function.
  9677. (createPeerMessageString): New function.
  9678. * src/PeerMessageUtil.cc
  9679. (createChokeMessage): Removed.
  9680. (createUnchokeMessage): Removed.
  9681. (createInterestedMessage): Removed.
  9682. (createNotInterestedMessage): Removed.
  9683. (createHaveMessage): Removed.
  9684. (createBitfieldMessage): Removed.
  9685. (createRequestMessage): Removed.
  9686. (createCancelMessage): Removed.
  9687. (createPieceMessage): Removed.
  9688. (createPortMessage): Removed.
  9689. (createRequestMessage): Removed.
  9690. (createCancelMessage): Removed.
  9691. (createPieceMessage): Removed.
  9692. (createHaveMessage): Removed.
  9693. (createChokeMessage): Removed.
  9694. (createUnchokeMessage): Removed.
  9695. (createInterestedMessage): Removed.
  9696. (createNotInterestedMessage): Removed.
  9697. (createBitfieldMessage): Removed.
  9698. (createKeepAliveMessage): Removed.
  9699. (createHandshakeMessage): Removed.
  9700. (setIntParam): New function.
  9701. (createPeerMessageString): New function.
  9702. * src/PeerConnection.h
  9703. (peer): Removed.
  9704. (torrentMan): Removed.
  9705. (createNLengthMessage): Removed.
  9706. (setIntParam): Removed.
  9707. (writeOutgoingMessageLog): Removed all overloaded functions.
  9708. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9709. (sendMessage): New function.
  9710. (sendHandshake): Removed.
  9711. (sendKeepAlive): Removed.
  9712. (sendChoke): Removed.
  9713. (sendUnchoke): Removed.
  9714. (sendInterested): Removed.
  9715. (sendNotInterested): Removed.
  9716. (sendHave): Removed.
  9717. (sendBitfield): Removed.
  9718. (sendRequest): Removed.
  9719. (sendPiece): Removed.
  9720. (sendPieceHeader): Removed.
  9721. (sendPieceData): Removed.
  9722. (sendCancel): Removed.
  9723. (getPeer): Removed.
  9724. * src/PeerConnection.cc
  9725. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9726. (sendHandshake): Removed.
  9727. (sendKeepAlive): Removed.
  9728. (createNLengthMessage): Removed.
  9729. (setIntParam): Removed.
  9730. (writeOutgoingMessageLog): Removed all overloaded functions.
  9731. (sendChoke): Removed.
  9732. (sendUnchoke): Removed.
  9733. (sendInterested): Removed.
  9734. (sendNotInterested): Removed.
  9735. (sendHave): Removed.
  9736. (sendBitfield): Removed.
  9737. (sendRequest): Removed.
  9738. (sendPiece): Removed.
  9739. (sendPieceHeader): Removed.
  9740. (sendPieceData): Removed.
  9741. (sendMessage): New function.
  9742. (sendCancel): Removed.
  9743. * src/PeerInteractionCommand.cc
  9744. (PeerInteractionCommand): Call setUploadLimit.
  9745. (executeInternal): Call setUploadLimit.
  9746. Added the handling of "inProgress" state of handshake message.
  9747. Call sendBitfield() or sendAllowdFast() instead of deprecated
  9748. sendNow().
  9749. (keepAlive): Call addMessage and sendMessage instead of deprecated
  9750. sendNow().
  9751. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  9752. * src/TorrentMan.h
  9753. (PEER_ID_LENGTH): New definition.
  9754. (hasAllPieces): New function.
  9755. * src/TorrentMan.cc
  9756. (getMissingPiece): Added the handling of fast extension.
  9757. (cancelPiece): Call updatePiece().
  9758. (hasAllPieces): New function.
  9759. * src/PeerInteraction.h
  9760. (fastSet): New variable.
  9761. (getNewPieceAndSendInterest): Changed the return type to void.
  9762. (send): Renamed as sendMessages.
  9763. (deleteAllRequestSlot): Removed.
  9764. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9765. (cancelAllRequest): Removed all overloaded functions.
  9766. (deleteAllRequestSlot): Removed.
  9767. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9768. (rejectPieceMessageInQueue): New function.
  9769. (rejectAllPieceMessageInQueue): New function.
  9770. (onChoked): New function.
  9771. (isSendingMessageInProgress): New function.
  9772. (getCorrespondingRequestSlot): Changed its arguments.
  9773. (isInFastSet): New function.
  9774. (addFastSetIndex): New function.
  9775. (addRequests): New function.
  9776. (sendNow): Removed.
  9777. (trySendNow): Removed.
  9778. (sendBitfield): New function.
  9779. (sendAllowdFast): New function.
  9780. (createHaveAllMessage): New function.
  9781. (createHaveNoneMessage): New function.
  9782. (createRejectMessage): New function.
  9783. (createAllowedFastMessage): New function.
  9784. * src/PeerInteraction.cc
  9785. (send): Renamed as sendMessages.
  9786. (sendMessages): New function.
  9787. (MsgPushBack): New class.
  9788. (isSendingMessageInProgress): New function.
  9789. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9790. (rejectAllPieceMessageInQueue): New function.
  9791. Added the handling of fast extension.
  9792. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9793. (rejectPieceMessageInQueue): New function.
  9794. Added the handling of fast extension.
  9795. (deleteRequestSlot): Replaced for loop with std::find.
  9796. (onChoked): New function.
  9797. (deleteAllRequestSlot): Removed.
  9798. (abortPiece): Rewirtten.
  9799. (deleteTimeoutRequestSlot): Updated log messages.
  9800. (getCorrespondingRequestSlot): Changed its arguments.
  9801. (cancelAllRequest): Removed all overloaded functions.
  9802. (receiveHandshake): Added the check to see whether an incoming peer
  9803. supports fast extension.
  9804. (createHandshakeMessage): Use HandshakeMessage::create instead of
  9805. PeerMessageUtil.
  9806. (createPeerMessage): Use create() of each message class instead of
  9807. PeerMessageUtil.
  9808. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  9809. AllowedFastMessage were added.
  9810. (getNewPieceAndSendInterest): Changed its return value type to void.
  9811. Added the handling of fast extension.
  9812. (addRequests): New function.
  9813. (sendNow): Removed.
  9814. (sendHandshake): Rewritten.
  9815. (trySendNow): Removed.
  9816. (sendBitfield): New function.
  9817. (sendAllowdFast): New function.
  9818. (isInFastSet): New function.
  9819. (addFastSetIndex): New function.
  9820. (createRequestMessage): Use RequestMessage::create instead of
  9821. PeerMessageUtil.
  9822. (createCancelMessage): Use CancelMessage::create instead of
  9823. PeerMessageUtil.
  9824. (createPieceMessage): Use PieceMessage::create instead of
  9825. PeerMessageUtil.
  9826. (createHaveMessage): Use HaveMessage::create instead of
  9827. PeerMessageUtil.
  9828. (createChokeMessage): Use ChokeMessage::create instead of
  9829. PeerMessageUtil.
  9830. (createUnchokeMessage): Use UnchokeMessage::create instead of
  9831. PeerMessageUtil.
  9832. (createInterestedMessage): Use InterestedMessage::create instead of
  9833. PeerMessageUtil.
  9834. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  9835. of PeerMessageUtil.
  9836. (createBitfieldMessage): Use BitfieldMessage::create instead of
  9837. PeerMessageUtil.
  9838. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  9839. PeerMessageUtil.
  9840. (createHaveAllMessage): New function.
  9841. (createHaveNoneMessage): New function.
  9842. (createRejectMessage): New function.
  9843. (createAllowedFastMessage: New function.
  9844. * src/Util.h
  9845. (sha1Sum): New function.
  9846. (computeFastSet): New function.
  9847. * src/Util.cc
  9848. (sha1Sum): New function.
  9849. (computeFastSet): New function.
  9850. * src/Peer.h
  9851. (fastExtensionEnabled): New variable.
  9852. (fastSet): New variable.
  9853. (setAllBitfield): New function.
  9854. (setFastExtensionEnabled): New function.
  9855. (isFastExtensionEnabled): New function.
  9856. (addFastSetIndex): New function.
  9857. (getFastSet): New function.
  9858. (isInFastSet): New function.
  9859. (countFastSet): New function.
  9860. * src/Peer.cc
  9861. (isInFastSet): New function.
  9862. (addFastSetIndex): New function.
  9863. (setAllBitfield): New function.
  9864. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  9865. sockets.
  9866. * src/PeerAbstractCommand.cc
  9867. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  9868. and uploadLimit.
  9869. (execute): Changed the procedure of checking sockets. The upload speed
  9870. checking were added.
  9871. (setUploadLimit): New function.
  9872. (setUploadLimitCheck): New function.
  9873. * src/PeerAbstractCommand.h
  9874. (setUploadLimit): New function.
  9875. (setUploadLimitCheck): New function.
  9876. (uploadLimit): New variable.
  9877. (uploadLimitCheck): New variable.
  9878. To contact a tracker regularly:
  9879. * src/TrackerWatcherCommand.h (interval): New variable.
  9880. (checkPoint): New variable.
  9881. (TrackerWatcherCommand): Added interval argument.
  9882. * src/TrackerWatcherCommand.cc
  9883. (TrackerWatcherCommand): Initialized checkPoint.
  9884. (execute): Now a tracker is contacted in every specified period.
  9885. If peer list is not needed, send request with numwant=0.
  9886. * src/TrackerUpdateCommand.cc
  9887. (execute): Updated log messages.
  9888. * src/DownloadEngine.cc
  9889. (~DownloadEngine): Removed two asserts.
  9890. (waitData): Uncommented wfds. May be a bug fix.
  9891. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. * src/PeerInteractionCommand.h
  9893. (checkInactiveConnection): Removed.
  9894. * src/PeerInteractionCommand.cc
  9895. (executeInternal): Removed following function calls:
  9896. detectMessageFlooding(), checkLongTimePeerChoking and
  9897. checkInactiveConnection().
  9898. (checkInactiveConnection): Removed.
  9899. (detectMessageFlooding): Removed function call to
  9900. checkInactiveConnection().
  9901. * src/PeerMessageUtil.h
  9902. (createChokeMessage): New function. Overload.
  9903. (createUnchokeMessage): New function. Overload.
  9904. (createInterestedMessage): New function. Overload.
  9905. (createNotInterestedMessage): New function. Overload.
  9906. (createHaveMessage): New function. Overload.
  9907. (createBitfieldMessage): New function. Overload.
  9908. (createRequestMessage): New function. Overload.
  9909. (createCancelMessage): New function. Overload.
  9910. (createPieceMessage): New function. Overload.
  9911. (createKeepAliveMessage): New function. Overload.
  9912. * src/PeerMessageUtil.cc
  9913. (createChokeMessage): New function. Overload.
  9914. (createUnchokeMessage): New function. Overload.
  9915. (createInterestedMessage): New function. Overload.
  9916. (createNotInterestedMessage): New function. Overload.
  9917. (createHaveMessage): New function. Overload.
  9918. (createBitfieldMessage): New function. Overload.
  9919. (createRequestMessage): New function. Overload.
  9920. (createCancelMessage): New function. Overload.
  9921. (createPieceMessage): New function. Overload.
  9922. (createKeepAliveMessage): New function. Overload.
  9923. * src/SendMessageQueue.cc
  9924. (createRequestMessage): Use PeerMessageUtil.
  9925. (createCancelMessage): Use PeerMessageUtil.
  9926. (createPieceMessage): Use PeerMessageUtil.
  9927. (createHaveMessage): Use PeerMessageUtil.
  9928. (createChokeMessage): Use PeerMessageUtil.
  9929. (createUnchokeMessage): Use PeerMessageUtil.
  9930. (createInterestedMessage): Use PeerMessageUtil.
  9931. (createNotInterestedMessage): Use PeerMessageUtil.
  9932. (createBitfieldMessage): Use PeerMessageUtil.
  9933. (createKeepAliveMessage): Use PeerMessageUtil.
  9934. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  9935. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  9936. * src/PeerInteraction.h: New class.
  9937. * src/PeerInteraction.cc: New class.
  9938. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Each peer message has its own class.
  9940. * src/PendingMessages.h: Removed.
  9941. * src/PendingMessages.cc: Removed. The sending process was moved to
  9942. each message class.
  9943. * src/RequestSlotMan.h: Removed.
  9944. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  9945. SendMessageQueue.
  9946. * src/RequestMessage.h: New class.
  9947. * src/RequestMessage.cc: New class.
  9948. * src/CancelMessage.h: New class.
  9949. * src/CancelMessage.cc: New class.
  9950. * src/BitfieldMessage.h: New class.
  9951. * src/BitfieldMessage.cc: New class.
  9952. * src/ChokeMessage.h: New class.
  9953. * src/ChokeMessage.cc: New class.
  9954. * src/KeepAliveMessage.h: New class.
  9955. * src/KeepAliveMessage.cc: New class.
  9956. * src/PortMessage.h: New class.
  9957. * src/UnchokeMessage.h: New class.
  9958. * src/UnchokeMessage.cc: New class.
  9959. * src/PieceMessage.h: New class.
  9960. * src/PieceMessage.cc: New class.
  9961. * src/HaveMessage.h: New class.
  9962. * src/HaveMessage.cc: New class.
  9963. * src/BitfieldMessage.h: New class.
  9964. * src/BitfieldMessage.cc: New class.
  9965. * src/NotInterestedMessage.h: New class.
  9966. * src/NotInterestedMessage.cc: New class.
  9967. * src/InterestedMessage.h: New class.
  9968. * src/InterestedMessage.cc: New class.
  9969. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  9970. (getSendMessageQueue): New function.
  9971. (setSendMessageQueue): New function.
  9972. * src/HandshakeMessage.cc: New class.
  9973. * src/PeerConnection.h (receiveMessage): Changed return value and
  9974. arguments.
  9975. (receiveHandshake): Changed return value and arguments.
  9976. * src/PeerConnection.cc (receiveMessage): Do not create message class
  9977. here.
  9978. (receiveHandshake): Do not create handshake class here.
  9979. * src/PeerInteractionCommand.h (peerConnection): Removed.
  9980. (piece): Removed.
  9981. (syncPiece): Removed.
  9982. (sendInterest): Removed.
  9983. (sendMessages): Removed.
  9984. (createRequestPendingMessage): Removed.
  9985. (checkPieceHash): Removed.
  9986. (erasePieceOnDisk): Removed.
  9987. (getNewPieceAndSendInterest): Removed.
  9988. (onGotNewPice): Removed.
  9989. (onGotWrongPiece): Removed.
  9990. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  9991. Removed peerConnection, piece.
  9992. (~PeerInteractionCommand): Removed peerConnection.
  9993. (executeInternal): Use sendMessageQueue instead of peerConnection.
  9994. (syncPiece): Moved to SendMessageQueue.
  9995. (decideChoking): Removed PendingMessage.
  9996. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  9997. The action after receiving peer message was moved to each message
  9998. class.
  9999. (onGotNewPice): Moved to SendMessageQueue.
  10000. (onGotWrongPiece): Moved to SendMessageQueue.
  10001. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10002. (sendInterest): Moved to SendMessageQueue.
  10003. (createRequestPendingMessage): Removed.
  10004. (sendMessages): Moved to SendMessageQueue.
  10005. (onAbort): Use SendMessageQueue::abortPiece()
  10006. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10007. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10008. (checkPieceHash): Moved to SendMessageQueue.
  10009. (erasePieceOnDisk): Moved to SendMessageQueue.
  10010. * src/PeerMessageUtil.h
  10011. (createBitfieldMessage): Removed.
  10012. (createHaveMessage): Changed return value and arguments.
  10013. (createBitfieldMessage): Changed return value and arguments.
  10014. (createRequestCancelMessage): Removed.
  10015. (createPieceMessage): Changed return value and arguments.
  10016. (getShortIntParam): New function.
  10017. (checkIndex): Changed arguments.
  10018. (checkBegin): Changed arguments.
  10019. (checkLength): Changed arguments.
  10020. (checkPieceOffset): Removed.
  10021. (checkRange): New function.
  10022. (checkBitfield): Changed arguments.
  10023. (createPeerMessage): Removed.
  10024. (checkIntegrity): Removed.
  10025. (createHandshakeMessage): Changed arguments.
  10026. (createChokeMessage): New function.
  10027. (createUnchokeMessage): New function.
  10028. (createInterestedMessage): New function.
  10029. (createNotInterestedMessage): New function.
  10030. (createRequestMessage): New function.
  10031. (createCancelMessage): New function.
  10032. (createPortMessage): New function.
  10033. * src/PeerMessageUtil.cc
  10034. (createBitfieldMessage): Removed.
  10035. (createHaveMessage): Changed return value and arguments.
  10036. (createBitfieldMessage): Changed return value and arguments.
  10037. (createRequestCancelMessage): Removed.
  10038. (createPieceMessage): Changed return value and arguments.
  10039. (getShortIntParam): New function.
  10040. (checkIndex): Changed arguments.
  10041. (checkBegin): Changed arguments.
  10042. (checkLength): Changed arguments.
  10043. (checkPieceOffset): Removed.
  10044. (checkRange): New function.
  10045. (checkBitfield): Changed arguments.
  10046. (createPeerMessage): Removed.
  10047. (checkIntegrity): Removed.
  10048. (createHandshakeMessage): Changed arguments.
  10049. (createChokeMessage): New function.
  10050. (createUnchokeMessage): New function.
  10051. (createInterestedMessage): New function.
  10052. (createNotInterestedMessage): New function.
  10053. (createRequestMessage): New function.
  10054. (createCancelMessage): New function.
  10055. (createPortMessage): New function.
  10056. * src/PeerMessage.h
  10057. (id): Removed.
  10058. (index): Removed.
  10059. (begin): Removed.
  10060. (length): Removed.
  10061. (bitfield): Removed.
  10062. (bitfieldLength): Removed.
  10063. (block): Removed.
  10064. (blockLength): Removed.
  10065. (inProgress): New variable.
  10066. (cuid): New variable.
  10067. (peer): New variable.
  10068. (sendMessageQueue): New variable.
  10069. (logger): New variable.
  10070. (setBitfield): Removed.
  10071. (getBitfield): Removed.
  10072. (setBlock): Removed.
  10073. (getBlock): Removed.
  10074. (getBitfieldLength): Removed.
  10075. (getBlockLength): Removed.
  10076. (isInProgress): New function.
  10077. (toString): Made pure virtual.
  10078. (check): New function.
  10079. (send): New function.
  10080. (receivedAction): New function.
  10081. (getId): Made pure virtual.
  10082. (setId): Removed.
  10083. (getIndex): Removed.
  10084. (setIndex): Removed.
  10085. (getBegin): Removed.
  10086. (setBegin): Removed.
  10087. (getLength): Removed.
  10088. (setLength): Removed.
  10089. (getCuid): New function.
  10090. (setCuid): New function.
  10091. (getPeer): New function.
  10092. (setPeer): New function.
  10093. (getSendMessageQueue): New function.
  10094. (setSendMessageQueue): New function.
  10095. (ID): Removed.
  10096. * src/PeerMessage.cc
  10097. (setBitfield): Removed.
  10098. (setBlock): Removed.
  10099. (toString): Removed.
  10100. * src/TorrentMan.h
  10101. (getPieceLength): New function.
  10102. (getPieceLength): New function.
  10103. * src/SendMessageQueue.h
  10104. (REQUEST_TIME_OUT): New definition.
  10105. (RequestSlots): New definition.
  10106. (MessageQueue): New definition.
  10107. (requestSlotMan): Removed.
  10108. (pendingMessages): Removed.
  10109. (requestSlots): New variable.
  10110. (messageQueue): New variable.
  10111. (torrentMan): New variable.
  10112. (peerConnection): New variable.
  10113. (peer): New variable.
  10114. (piece): New variable.
  10115. (getNewPieceAndSendInterest): New function.
  10116. (createPeerMessage): New function.
  10117. (createHandshakeMessage): New function.
  10118. (send): Made private.
  10119. (setPeerMessageCommonProperty): New function.
  10120. (deleteAllRequestSlot): New function.
  10121. (deleteRequestMessageInQueue): New function.
  10122. (cancelAllRequest): Made private.
  10123. (cancelAllRequest): Made private.
  10124. (countRequestSlot): Made private.
  10125. (addPendingMessage): Removed.
  10126. (deletePendingPieceMessage): Removed.
  10127. (deletePendingRequestMessage): Removed.
  10128. (addMessage): New function.
  10129. (deletePieceMessageInQueue): New function.
  10130. (deleteTimeoutRequestSlot): Changed argument.
  10131. (deleteCompletedRequestSlot): Changed argument.
  10132. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10133. (getCorrespondingRequestSlot): New function.
  10134. (countPendingMessage): Removed.
  10135. (countMessageInQueue): New function.
  10136. (getTorrentMan): New function.
  10137. (getPeerConnection): New function.
  10138. (hasDownloadPiece): New function.
  10139. (getDownloadPiece): New function.
  10140. (setDownloadPiece): New function.
  10141. (syncPiece): New function.
  10142. (sendMessages): New function.
  10143. (sendNow): New function.
  10144. (trySendNow): New function.
  10145. (abortPiece): New function.
  10146. (sendHandshake): New function.
  10147. (receiveMessage): New function.
  10148. (receiveHandshake): New function.
  10149. (createRequestMessage): New function.
  10150. (createCancelMessage): New function.
  10151. (createPieceMessage): New function.
  10152. (createHaveMessage): New function.
  10153. (createChokeMessage): New function.
  10154. (createUnchokeMessage): New function.
  10155. (createInterestedMessage): New function.
  10156. (createNotInterestedMessage): New function.
  10157. (createBitfieldMessage): New function.
  10158. (createKeepAliveMessage): New function.
  10159. * src/SendMessageQueue.cc
  10160. (SendMessageQueue): Removed requestSlotMan.
  10161. Instantiated peerConnection here.
  10162. (~SendMessageQueue): Removed requestSlotMan.
  10163. Added deletion of peerConnection and the contents of messageQueue.
  10164. (send): Updated according to the change of messageQueue.
  10165. (addPendingMessage): Renamed to addMessage.
  10166. (addMessage): New function.
  10167. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10168. (deletePieceMessageInQueue): New function.
  10169. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10170. (deleteRequestMessageInQueue): New function.
  10171. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10172. here.
  10173. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10174. (...) was moved here.
  10175. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10176. moved here.
  10177. (deleteCompletedRequestSlot):
  10178. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10179. (getCorrespondingRequestSlot):
  10180. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10181. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10182. (countPendingMessage): Renamed to countMessageInQueue.
  10183. (countMessageInQueue): New function.
  10184. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10185. (receiveHandshake): New function.
  10186. (createHandshakeMessage): New function.
  10187. (receiveMessage): New function.
  10188. (createPeerMessage): New function.
  10189. (syncPiece): New function.
  10190. (getNewPieceAndSendInterest): New function.
  10191. (sendMessages): New function.
  10192. (sendNow): New function.
  10193. (trySendNow): New function.
  10194. (sendHandshake): New function.
  10195. (abortPiece): New function.
  10196. (getDownloadPiece): New function.
  10197. (getPeerMessageCommonProperty): New function.
  10198. (createRequestMessage): New function.
  10199. (createCancelMessage): New function.
  10200. (createPieceMessage): New function.
  10201. (createHaveMessage): New function.
  10202. (createChokeMessage): New function.
  10203. (createUnchokeMessage): New function.
  10204. (createInterestedMessage): New function.
  10205. (createNotInterestedMessage): New function.
  10206. (createBitfieldMessage): New function.
  10207. (createKeepAliveMessage): New function.
  10208. To add simple Content-Disposition support:
  10209. * src/HttpResponseCommand.h (determinFilename): New function.
  10210. * src/HttpResponseCommand.cc (executeInternal):
  10211. Use determinFilename(headers) instead of req->getFile() when comparing
  10212. filename.
  10213. (determinFilename): New function.
  10214. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10215. req->getFile().
  10216. (handleOtherEncoding): Use determinFilename(headers) instead of
  10217. req->getFile().
  10218. * src/Util.h (getContentDispositionFilename): New function.
  10219. * src/Util.cc (getContentDispositionFilename): New function.
  10220. * src/LogFactory.h (release): New function.
  10221. * src/LogFactory.cc (release): New function.
  10222. To fix a bug that causes out-of-bound exception when HTTP status
  10223. line is wrong:
  10224. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10225. size.
  10226. * src/common.h (Deleter): New class.
  10227. * src/SegmentMan.cc
  10228. (~SegmentMan): Added deletion of splitter and diskWriter.
  10229. * src/DownloadEngine.h
  10230. (Commands): Use deque.
  10231. (clearQueue): New function.
  10232. * src/DownloadEngine.cc
  10233. (~DownloadEngine): Added deletion of segmentMan.
  10234. (cleanQueue): New function.
  10235. * src/TorrentDownloadEngine.h
  10236. (TorrentDownloadEngine): The implementation was moved to
  10237. TorrentDownloadEngine.cc.
  10238. (~TorrentDownloadEngine): The implementation was moved to
  10239. TorrentDownloadEngine.cc.
  10240. * src/TorrentDownloadEngine.cc
  10241. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10242. * src/main.cc
  10243. (clearRequest): Removed.
  10244. (handler): Added deletion of e.
  10245. (torrentHandler): Added deletion of te.
  10246. (main): Do not share splitter.
  10247. Use Deleter instead of clearRequest.
  10248. Deletion of classes were updated.
  10249. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. * src/main.cc (main): Fixed typo.
  10251. * src/message.h: Fixed typo.
  10252. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10253. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. To add --select-file command-line option:
  10255. * src/Util.cc
  10256. (unfoldRange): New function.
  10257. (getNum): New function.
  10258. (unfoldSubRange): New function
  10259. * src/main.cc
  10260. (showUsage): Added help message.
  10261. (main): Added --select-file command-line option. Updated the layout of
  10262. file listing.
  10263. * src/common.h
  10264. (Integers): New definition.
  10265. * src/SocketCore.cc
  10266. (writeData): Removed timeout argument.
  10267. (readData): Removed timeout argument.
  10268. (peekData): Removed timeout argument.
  10269. * src/Socket.cc
  10270. (writeData): Removed timeout argument.
  10271. (readData): Removed timeout argument.
  10272. (peekData): Removed timeout argument.
  10273. * Release 0.4.1
  10274. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10275. To deploy upload rate based choking algorithm:
  10276. * src/PeerInteractionCommand.cc
  10277. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10278. peer currently used.
  10279. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10280. download completes. Simplified.
  10281. (receiveMessage): Updated.
  10282. * src/TorrentMan.h
  10283. (activePeers): New variable.
  10284. (addActivePeer): New function.
  10285. (getActivePeers): New function.
  10286. (deleteActivePeer): New function.
  10287. * src/TorrentMan.cc
  10288. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10289. * src/PeerAbstractCommand.cc
  10290. (onAbort): Use peer->resetStatus().
  10291. * src/main.cc
  10292. (PeerChokeCommand.h): Included.
  10293. (main): Added the instance of ChokingCommand to the command queue.
  10294. * src/Peer.h
  10295. (amChoking): Renamed from amChocking
  10296. (chokingRequired): New variable.
  10297. (optUnchoking): New variable.
  10298. (deltaUpload): New variable.
  10299. (deltaDownload): New variable.
  10300. (addDeltaUpload): New function.
  10301. (resetDeltaUpload): New function.
  10302. (addDeltaDownload): New function.
  10303. (resetDeltaDownload): New function.
  10304. (addPeerUpload): Added a call to addDeltaUpload.
  10305. (addPeerDownload): Added a call to addDeltaDownload.
  10306. * src/Peer.cc
  10307. (shouldBeChoking): Renamed from shouldChoke.
  10308. (resetStatus): New function.
  10309. * src/PeerChokeCommand.h: New class.
  10310. * src/PeerChokeCommand.cc: New class.
  10311. To add lazy upload speed limiter:
  10312. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  10313. statistics calculation to TorrentDownloadEngine.
  10314. * src/TorrentConsoleDownloadEngine.cc
  10315. (sendStatistics): Renamed from printStatistics.
  10316. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  10317. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  10318. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  10319. * src/TorrentDownloadEngine.h: Added the variables for statistics
  10320. calculation.
  10321. (sendStatistics): New function as pure virtual function.
  10322. (getUploadSpeed): New function.
  10323. * src/TorrentDownloadEngine.cc
  10324. (initStatistics): New function.
  10325. (calculateSpeed): New function.
  10326. (calculateStatistics): New function.
  10327. * src/SendMessageQueue.h
  10328. (uploadLength): New variable.
  10329. (send): Added an argument.
  10330. (setUploadLimit): New function.
  10331. (getUploadLimit): New function.
  10332. * src/SendMessageQueue.cc
  10333. (send): Added upload speed limiter.
  10334. * src/prefs.h
  10335. (PREF_UPLOAD_LIMIT): New definition.
  10336. * src/PeerInteractionCommand.cc
  10337. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10338. * src/main.cc
  10339. (main): Added --upload-limit option
  10340. For bug fixes:
  10341. * src/main.cc
  10342. (showUsage): Corrected --listen-port help
  10343. Other changes:
  10344. * src/TorrentMan.cc
  10345. (getPeer): Return nullPeer if connection is grather than
  10346. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10347. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. To add some useful information to the exception message:
  10349. * src/SocketCore.cc : Updated messages.
  10350. * src/SegmentMan.cc :
  10351. * src/TorrentMan.cc : Updated messages.
  10352. * src/MultiDiskWriter.cc : Updated messages.
  10353. * src/Util.cc : Updated messages.
  10354. * src/AbstractDiskWriter.cc : Updated messages.
  10355. * src/PreAllocationDiskWriter.cc : Updated messages.
  10356. * src/message.cc : Added new messages. Updated some messages.
  10357. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10358. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10359. Updated threshold from 30 to 15.
  10360. * src/AbstractDiskWriter.h (filename): New variable.
  10361. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10362. (createFile): Assigned filename.
  10363. * src/main.cc: Updated the help message for http-auth-scheme.
  10364. * Release 0.4.0
  10365. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10366. To add TrackerUpdateCommand with which replaces
  10367. CompactTrackerResponseProcessor:
  10368. * src/TrackerWatcherCommand.h (req): Removed.
  10369. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10370. if the number of peer connections are less than 30.
  10371. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10372. * src/SegmentMan.h (diskWriter): New function.
  10373. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10374. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10375. (main): Use TrackerUpdateCommand.
  10376. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10377. (req): New variable.
  10378. (setTrackerResponseProcessor): Removed.
  10379. (getTrackerResponseProcessor): Removed.
  10380. (processTrackerResponse): Removed.
  10381. * src/DownloadEngine.h (diskWriter): Removed.
  10382. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10383. to torrentMan->processTrackerResponse().
  10384. To add Util::expandBuffer:
  10385. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10386. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10387. * src/Util.h (expandBuffer): New function.
  10388. To fix the bug that causes segmentation fault when "-l ." is specified
  10389. in command-line option:
  10390. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10391. (openFile): New function.
  10392. (closeFile): New function.
  10393. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10394. (~SimpleLogger): Call closeFile();
  10395. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10396. * src/main.cc (main): Added a check to see logger is configured
  10397. properly.
  10398. To enable HTTP authentication without specifying "--http-auth-scheme"
  10399. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10400. * src/HttpConnection.cc (createRequest): Send Authorization header
  10401. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10402. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10403. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10404. * src/Peer.cc (shouldChoke): Updated algorithm.
  10405. * src/message.h (EX_AUTH_FAILED): New definition.
  10406. (EX_FILE_OPEN): New definition.
  10407. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10408. if status == 401.
  10409. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10410. if req->isTorrent == true.
  10411. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10412. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10413. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10414. (createFile): Updated message.
  10415. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. To add a readout of estimated remaining time to normal HTTP/FTP
  10417. downloads:
  10418. * src/ConsoleDownloadEngine.h (startup): New variable.
  10419. (startupLength): New variable.
  10420. (isStartupLengthSet): New variable.
  10421. (avgSpeed): New variable.
  10422. (eta): New variable.
  10423. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10424. estimated remaining time.
  10425. (initStatistics): Initialized newly added variables.
  10426. (calculateStatistics): Calculate average speed and estimated remaining
  10427. time.
  10428. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10429. * src/TrackerDownloadCommand.h: Removed.
  10430. * src/TrackerDownloadCommand.cc: Removed.
  10431. * src/TrackerInitCommand.h: Removed.
  10432. * src/TrackerInitCommand.cc: Removed.
  10433. * src/TrackerUpdateCommand.h: Removed.
  10434. * src/TrackerUpdateCommand.cc: Removed.
  10435. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10436. url written in TrackerInitCommand was moved here. Do not create
  10437. tracker request command if torrentMan->trackers != 0.
  10438. * src/CompactTrackerResponseProcessor.h: New class.
  10439. * src/CompactTrackerResponseProcessor.cc: New class.
  10440. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10441. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10442. Decoupled TorrentDownloadEngine from this.
  10443. * src/SegmentMan.h (init): New function.
  10444. * src/SegmentMan.cc (init): New function.
  10445. * src/TorrentMan.h (responseProcessor): New variable.
  10446. (trackers): New variable.
  10447. (setTrackerResponseProcessor): New function.
  10448. (getTrackerResponseProcessor): New function.
  10449. (processTrackerResponse): New function.
  10450. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10451. (processTrackerResponse): New function.
  10452. * src/main.cc (main): Use ByteArrayDiskWriter and
  10453. CompactTrackerResponseProcessor.
  10454. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10455. processTrackerResponse().
  10456. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10457. readout.
  10458. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10459. which indicates download has completed.
  10460. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10461. (closeFile): fd >= 0, not fd > 0
  10462. * src/main.cc (main): Added short cut for show-files.
  10463. Added short cut for torrent-file.
  10464. Added new command-line option listen-port.
  10465. Updated i18n messages.
  10466. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. To add LogFactory which creates singleton logger:
  10468. * src/LogFactory.h: New class.
  10469. * src/LogFactory.cc: New class.
  10470. * src/Command.h (logger): New variable.
  10471. (Constructor): Use LogFactory.
  10472. * src/AbstractCommand.cc: Use Command::logger
  10473. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10474. Use LogFactory.
  10475. * src/SegmentSplitter.h : Made logger protected.
  10476. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10477. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10478. * src/DownloadEngine.h : Made logger protected.
  10479. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10480. * src/PeerInteractionCommand.cc : Use Command::logger.
  10481. * src/HttpResponseCommand.cc : Use Command::logger.
  10482. * src/SegmentMan.h : Made logger private.
  10483. * src/TorrentMan.h : Made logger private.
  10484. * src/TorrentMan.cc : Use LogFactory.
  10485. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10486. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10487. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10488. Use LogFactory.
  10489. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10490. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10491. Use LogFactory.
  10492. * src/DownloadCommand.cc : Use Command::logger.
  10493. * src/PeerAbstractCommand.cc : Use Command::logger.
  10494. * src/PeerListenCommand.cc : Use Command::logger.
  10495. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10496. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10497. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10498. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10499. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10500. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10501. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10502. Use LogFactory.
  10503. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10504. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10505. Use LogFactory.
  10506. * src/main.cc (main): Use LogFactory.
  10507. * src/DiskAdaptor.h (logger): New variable.
  10508. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10509. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10510. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10512. parameter to a tracker request.
  10513. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10514. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10515. * src/main.cc (setSignalHander): New function.
  10516. (main): Added a handler for SIGTERM.
  10517. (handler): Updated message.
  10518. (torrentHandler): Updated message.
  10519. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. * src/TorrentConsoleDownloadEngine.cc
  10521. (onPartialDownloadingCompletes): Renamed as
  10522. onSelectiveDownloadingCompletes.
  10523. (onSelectiveDownloadingCompletes): Updated message.
  10524. To add DiskAdaptor which abstract DiskWriter family:
  10525. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10526. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10527. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10528. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10529. MultiDiskAdaptor.h.
  10530. (readFileEntry): Changed its arguments.
  10531. (setup): setupDiskWriter is merged into this function.
  10532. (setupDiskWriter): Removed.
  10533. (setFileFilter): New function.
  10534. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10535. made in readFileEntry.
  10536. (getFilePath): Removed.
  10537. (getTempFilePath): Removed.
  10538. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10539. (fixFilename): Removed.
  10540. (copySingleFile): Removed.
  10541. (splitMultiFile): Removed.
  10542. (deleteTempFile): Removed.
  10543. (setFileEntriesToDownload): Removed.
  10544. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10545. (isSelectiveDownloadingMode): New function.
  10546. (setAllMultiFileRequestedState): Removed.
  10547. (finishPartialDownloadingMode): Renamed as
  10548. finishSelectiveDownloadingMode.
  10549. (finishSelectiveDownloadingMode): New function.
  10550. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10551. (getSelectedTotalLength): New function.
  10552. (onDownloadComplete): Use diskAdaptor.
  10553. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10554. (Range): Removed.
  10555. (setMultiFileEntries): Renamed as setFileEntries.
  10556. (setFileEntries): New function.
  10557. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  10558. (pieceLength): New variable.
  10559. * src/main.cc (printDownloadCompeleteMessage): New function.
  10560. (torrentHandler): Use diskAdaptor instead of diskWriter.
  10561. (main): Renamed torrent-show-files to show-files.
  10562. Rewritten file contents listing.
  10563. * src/TorrentMan.h (FileEntry): Removed.
  10564. (multiFileTopDir): Removed.
  10565. (multiFileEntries): Removed.
  10566. (diskWriter): Removed.
  10567. (diskAdaptor): New variable.
  10568. * src/DefaultDiskWriter.h (totalLength): New variable.
  10569. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  10570. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  10571. diskWriter.
  10572. * src/TorrentConsoleDownloadEngine.h
  10573. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  10574. (partialTotalLength): Renamed as selectedTotalLength.
  10575. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  10576. openExistingFile, otherwise call initAndOpenFile.
  10577. (closeFile): fd > 0, not fd != 0.
  10578. * src/DirectDiskAdaptor.h: New class.
  10579. * src/DirectDiskAdaptor.cc: New class.
  10580. * src/MultiDiskAdaptor.h: New class.
  10581. * src/MultiDiskAdaptor.cc: New class.
  10582. * src/CopyDiskAdaptor.h: New class.
  10583. * src/CopyDiskAdaptor.cc: New class.
  10584. * src/DiskAdaptor.h: New class.
  10585. * src/DiskAdaptor.cc: New class.
  10586. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  10587. (PREF_SHOW_FILES): New definition.
  10588. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. To add the ability to download multi torrent into respective files
  10590. directly:
  10591. * src/DiskWriter.h (openFile): New function.
  10592. (seek): Removed.
  10593. * src/MultiDiskWriter.h: New class.
  10594. * src/MultiDiskWriter.cc: New class.
  10595. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  10596. protected.
  10597. (openFile): New function.
  10598. * src/AbstractDiskWriter.cc (openFile): New function.
  10599. * src/prefs.h (V_FALSE): New definition.
  10600. (PREF_DIRECT_FILE_MAPPING): New definition.
  10601. * src/TorrentMan.h (setupDiskWriter): New function.
  10602. (setAllMultiFileRequestedState): New function.
  10603. (onDownloadComplete): New function.
  10604. * src/TorrentMan.cc : Included MultiDiskWriter.h
  10605. (setupDiskWriter): New function.
  10606. (getFilePath): Updated.
  10607. (getTempFilePath): Updated.
  10608. (getSegmentFilePath): Updated.
  10609. (fixFilename): Updated.
  10610. (deleteTempFile): Updated.
  10611. (setAllMultiFileRequestedState): New function.
  10612. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  10613. (finishPartialDownloadingMode): Reset requested flags.
  10614. (onDownloadComplete): New function.
  10615. * src/main.cc: Added --direct-file-mapping option.
  10616. Use TorrentMan::setupDiskWriter().
  10617. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  10618. onDownloadComplete().
  10619. To fix ETA bug:
  10620. * src/Util.h (difftvsec): New function.
  10621. * src/Util.cc (difftvsec): New function.
  10622. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  10623. type of "elapsed" instead of long long int.
  10624. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  10625. The updates of statistics takes place every 1 seconds.
  10626. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  10627. (calculateSpeed): Changed its argument signature.
  10628. * src/PeerMessage.cc (toString): Fixed message.
  10629. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. To print ETA:
  10631. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  10632. completion handling when dealing with
  10633. TorrentMan::isPartialDownloadingMode() == true.
  10634. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  10635. New function.
  10636. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  10637. (sessionDownloadLength): New variable.
  10638. (avgSpeed): New variable.
  10639. (eta): New variable.
  10640. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  10641. new variables: eta, avgSpeed, startup.
  10642. (calculateSpeed): Calculate average speed and ETA.
  10643. (printStatistics): Added ETA.
  10644. * src/Util.h (secfmt): New function.
  10645. * src/Util.cc (secfmt): New function.
  10646. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10647. To detect "keep alive" flooding:
  10648. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  10649. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  10650. variable: keepAliveCount.
  10651. (detectMessageFlooding): Added "keep alive" flooding detection.
  10652. (receiveMessage): Increase keepAliveCount when "keep alive" message
  10653. received.
  10654. To add the ability to download only specified files in multi-file
  10655. torrent:
  10656. * src/BitfieldMan.h (filterBitfield): New variable.
  10657. (filterEnabled): New variable.
  10658. (setFilterBit): New function.
  10659. (enableFilter): New function.
  10660. (disableFilter): New function.
  10661. (isFilterEnabled): New function.
  10662. (getFilteredTotalLength): New function.
  10663. (getCompletedLength): New function.
  10664. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  10665. filterBitfield, filterEnabled.
  10666. (CopyConstructor): Added filterBitfield and filterEnabled.
  10667. (operator==): Added filterBitfield and filterEnabled.
  10668. (Destructor): Added filterBitfield.
  10669. (getMissingIndex): Use filterBitfield.
  10670. (getMissingUnusedIndex): Use filterBitfield.
  10671. (getFirstMissingUnusedIndex): Use filterBitfield.
  10672. (getFirstMissingUnusedIndex): Use filterBitfield.
  10673. (getAllMissingIndexes): Use filterBitfield.
  10674. (countMissingBlock): Use filterBitfield.
  10675. (countBlock): Use filterBitfield.
  10676. (setBitInternal): Added new argument on.
  10677. (setUseBit): Use setBitInternal.
  10678. (unsetUseBit): Use setBitInternal.
  10679. (setBit): Use setBitInternal.
  10680. (unsetBit): Use setBitInternal.
  10681. (isAllBitSet): Use filterBitfield.
  10682. (setFilterBit): New function.
  10683. (addFilter): New function.
  10684. (enableFilter): New function.
  10685. (disableFilter): New function.
  10686. (clearFilter): New function.
  10687. (isFilterEnabled): New function.
  10688. (getFilteredTotalLength): New function.
  10689. (getCompletedLength): New function.
  10690. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  10691. Initalized newly added variables.
  10692. [FileEntry](offset): New variable.
  10693. [FileEntry](extracted): New variable.
  10694. [FileEntry](requested): New variable.
  10695. (readFileEntry): New function.
  10696. (option): New variable.
  10697. (splitMultiFile): Removed const qualifier.
  10698. (fixFilename): Removed const qualifier.
  10699. (readFileEntryFromMetaInfoFile): New function.
  10700. (finishPartialDownloadingMode): New function.
  10701. (isPartialDownloadingMode): New function.
  10702. (setFileEntriesToDownload): New function.
  10703. (getCompletedLength): New function.
  10704. (getPartialTotalLength): New function.
  10705. * src/TorrentMan.cc (readFileEntry): New function.
  10706. (setup): Use readFileEntry. If no-preallocation option is specified,
  10707. use DefaultDiskWriter.
  10708. (readFileEntryFromMetaInfoFile): New function.
  10709. (fixFilename): Removed const qualifier.
  10710. (splitMultiFile): Removed const qualifier.
  10711. (setFileEntriesToDownload): New function.
  10712. (isPartialDownloadingMode): New function.
  10713. (finishPartialDownloadingMode): New function.
  10714. (getCompletedLength): New function.
  10715. (getPartialTotalLength): New function.
  10716. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  10717. New variable.
  10718. (partialTotalLength): New variable.
  10719. (downloadLength): New variable.
  10720. (totalLength): New variable.
  10721. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  10722. Added log.
  10723. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  10724. partialTotalLength, downloadLength, totalLength.
  10725. (calculate): Calculate downloadLength and totalLength.
  10726. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  10727. * src/main.cc (addCommand): Changed argument signature.
  10728. (main): Added new variable: args. Added new option "torrent-show-files"
  10729. "no-preallocation". Usage is not updated yet.
  10730. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10731. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  10732. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. Attempt to add the ability to listing file entries in a .torrent file.
  10734. This feature is not yet complete.
  10735. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  10736. * src/TorrentMan.cc (getMultiFileEntries): New function.
  10737. (getName): New function.
  10738. * src/TorrentMan.h (getMultiFileEntries): New function.
  10739. (getName): New function.
  10740. * src/main.cc (main): Use above 2 funtion.
  10741. * Release 0.3.2
  10742. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10743. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  10744. (detectMessageFlooding): Updated threshold value.
  10745. (checkLongTimePeerChoking): Updated timeout value.
  10746. (getNewPieceAndSendInterest): Added debug log.
  10747. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  10748. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  10749. (getPeer): Updated.
  10750. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  10751. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  10752. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  10753. is localhost.
  10754. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  10755. * src/PendingMessage.cc (processMessage): Not to send piece message
  10756. if peer is not interested in the pieces localhost has.
  10757. * src/Peer.cc (shouldChoke): Updated.
  10758. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  10759. * src/Util.cc (isPowerOf): New function.
  10760. * src/Util.h (isPowerOf): New function.
  10761. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  10762. whether or not it is power of 2.
  10763. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10764. Added new class SendMessageQueue that includes PendingMessages and
  10765. RequestSlotMan.
  10766. * src/SendMessageQueue.h: New class.
  10767. * src/SendMessageQueue.cc: New class.
  10768. * src/PendingMessage.h: Added new member variable blockIndex and its
  10769. accessors.
  10770. (createRequestMessage): Updated.
  10771. * src/PendingMessage.cc (createRequestMessage): Updated.
  10772. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  10773. SendMessageQueue.
  10774. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  10775. (receiveMessage): Updated with SendMessageQueue.
  10776. (deletePendingPieceMessage): Removed.
  10777. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  10778. (sendInterest): Updated with SendMessageQueue.
  10779. (createRequestPendingMessage): Updated with SendMessageQueue.
  10780. (sendMessages): Updated with SendMessageQueue.
  10781. (onAbort): Updated with SendMessageQueue.
  10782. (keepAlive): Updated with SendMessageQueue.
  10783. (beforeSocketCheck): Updated SendMessageQueue.
  10784. * src/PeerInteractionCommand (sendMessages): Shuffle
  10785. missingBLockIndexes before using it.
  10786. Added its own timeout for peer connection.
  10787. * src/PeerAbstractCommand.h: Added member variable timeout and its
  10788. setter.
  10789. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  10790. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10791. Added setTimeout() call.
  10792. (executeInternal): Added setTimeout() call.
  10793. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  10794. Added timeout.
  10795. (isTimeoutDetected): Updated.
  10796. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  10797. option.
  10798. Added *simple* message flooding checker.
  10799. * src/PeerInteractionCommand.cc (executeInternal):
  10800. Added detectMessageFlooding() call.
  10801. (detectMessageFlooding): New function.
  10802. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  10803. (beforeSocketCheck): Added detectMessageFlooding() call.
  10804. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  10805. chokeUnchokeCount, haveCount, detectMessageFlooding().
  10806. Removed deletePendingPieceMessage(), getRequestSlot(),
  10807. deleteRequestSlot(), deleteAllRequestSlot().
  10808. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  10809. Added checkLongTimePeerChoking() call.
  10810. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  10811. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  10812. if duplicate == false.
  10813. The parameter "uploaded" and "downloaded" in the tracker request are
  10814. the size since the client sent the "started" event to the tracker.
  10815. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  10816. uploaded size to preDownloadedSize, preUploadedSize respectively.
  10817. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  10818. getSessionDownloadedSize(), getSessionUploadedSize().
  10819. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  10820. getSessionUploadedSize() instead of getDownloadedSize(),
  10821. getUploadedSize().
  10822. * src/PendingMessage.cc (processMessage): Do not send request message
  10823. if the peer is choking the client.
  10824. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  10825. less than interval.
  10826. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. * configure.in: Added gnutls support. Added several CPP macros.
  10828. * m4/openssl.m4: Added.
  10829. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  10830. readData(), peekData(). Added gnutls support.
  10831. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  10832. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  10833. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  10834. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10835. Instead, added a check for whether setup method has executed
  10836. successfully.
  10837. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  10838. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  10839. * src/Makefile.am: Updated.
  10840. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  10841. using whether OpenSSL or gcrypt, depending on the result of configure
  10842. script.
  10843. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  10844. messageDigest.h.
  10845. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  10846. * src/PeerListenCommand.cc: Added log about port binded successfully.
  10847. Fixed memory leak.
  10848. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  10849. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  10850. Removed instantiation of TrackerInitCommand. Instead,
  10851. TrackerWatcherCommand is instantiated and pushed to the command queue.
  10852. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  10853. ENABLE_SSL.
  10854. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  10855. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  10856. If a piece is already acquired by another command, delete the request
  10857. slots for the piece.
  10858. * src/TrackerUpdateCommand.cc (execute):
  10859. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  10860. Added a check whether peer list is null.
  10861. Fixed the bug that causes sending completed event to the tracker
  10862. several times.
  10863. * src/TrackerInitCommand.cc (execute):
  10864. Fixed the bug that causes sending completed event to the tracker
  10865. several times.
  10866. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  10867. by using messageDigest.h.
  10868. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10869. * PeerConnection.cc: Replaced log message "keep-alive" with
  10870. "keep alive".
  10871. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  10872. localhost long time.
  10873. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  10874. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  10875. at most 100 failure entry from the list. If with duplicate = false,
  10876. MAX_PEER_LIST is not checked.
  10877. * PeerListenCommand.cc: Fixed the argument order of log message.
  10878. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10879. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  10880. Added warn().
  10881. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  10882. Implemented warn().
  10883. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  10884. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10885. * Request.h: Added AFTER_COMPLETED event.
  10886. * TorrentDownloadEngine.cc: Prints "Download complete" message
  10887. instead of downloaded size and progress(%) after download completes.
  10888. * PeerInteractionCommand.cc: After download completes, sends unchoke
  10889. message to the peer if it is interested in what localhost has
  10890. downloaded.
  10891. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  10892. destination instead of just renaming it.
  10893. * TorrentMan.cc: Added deleteTempFile().
  10894. * PeerAbstractCommand.cc: do not stop execution after download
  10895. completes. This makes localhost a seeder.
  10896. * Util.{h,cc}: Added fileCopy().
  10897. * PeerListenCommand.cc: do not stop execution after download completes.
  10898. This makes localhost a seeder.
  10899. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  10900. Added TorrentMan::deleteTempFile() to torrentHandler.
  10901. Initialized the variable dir as ".".
  10902. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  10903. Deleted renameSingleFile().
  10904. Added copySingleFile(), deleteTempFile().
  10905. * DownloadEngine.h: Added virtual function afterEachIteration().
  10906. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  10907. in onEndOfRun() to afterEachIteration().
  10908. In onEndOfRun(), changed if condition to check whether filenameFixed is
  10909. true.
  10910. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  10911. In rangedFileCopy(), added try-catch block to properly close file
  10912. descriptors.
  10913. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  10914. Added afterEachIteration(), isFilenameFixed().
  10915. * Peer.cc: Changed choking strategy.
  10916. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  10917. * TrackerInitCommand.cc: Send completed event only once.
  10918. * DownloadEngine.cc: Added a call to afterEachIteration().
  10919. * TrackerUpdateCommand.cc: Do not stop execution after download
  10920. completes.
  10921. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  10922. connect the peers at most MAX_PEER_UPDATE when a peer list is
  10923. received from a tracker.
  10924. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  10925. Decreased the number of failure peers to delete to 0(just comment out
  10926. the line).
  10927. * Release 0.3.1
  10928. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. * PeerInteractionCommand.cc: added a call to
  10930. TorrentMan::unadvertisePiece in Destructor.
  10931. * PeerInteractionCommand.cc: make have message sent immediately
  10932. if the size of pending message queue is zero.
  10933. * TorrentMan.cc: set the maximum size of peer list to 250.
  10934. * TorrentMan.h: changed the container type of Peers and UsedPieces
  10935. to deque.
  10936. * Util.cc: fixed rangedFileCopy.
  10937. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  10938. to Constructor. Also, moved digest cleanup to Destructor.
  10939. * MetaFileUtil.cc: fixed memory leak
  10940. * replaced std::vector with std::deque.
  10941. * AbstractCommand.cc: casted timeout value to long long int.
  10942. * ChunkedEncoding.cc: fixed memory leak.
  10943. * PeerInteractionCommand.cc: casted timeout value to long long int.
  10944. * SleepCommand.cc: casted timeout value to long long int.
  10945. * Data.cc: fixed memory leak.
  10946. * Data.cc: fixed toLLInt().
  10947. * BitfieldMan.cc: fixed memory leak.
  10948. * TorrentMan.cc: initialized storeDir to ".".
  10949. * TorrentMan.cc: fixed memory leak.
  10950. * TorrentMan.cc: corrected file paths of splitted files.
  10951. * PeerAbstractCommand.cc: casted timeout to long long int.
  10952. * main.cc: added delete(req) and delete(te->diskWriter).
  10953. * RequestSlot.cc: casted timeout value to long long int.
  10954. * Request.cc: fixed memory leak.
  10955. * PendingMessage.cc: make HAVE messages sent only when peer does not
  10956. have the piece.
  10957. * Peer.{h,cc}: added hasPiece(int index).
  10958. * main.cc: corrected addCommand.
  10959. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10960. * BitTorrent protocol support added.
  10961. * Release 0.3.0
  10962. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10963. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  10964. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  10966. decoding did not work properly.
  10967. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10968. * DownloadEngine.h: included sys/time.h
  10969. * DownloadEngine.cc: remove sys/time.h
  10970. * Makefile.am (SUBDIRS): Add intl.
  10971. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  10972. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. * main.cc: correct help message for --http-auth-scheme.
  10974. * main.cc: changed e-mail address for bug reports.
  10975. * ja.po: added japanese translation.
  10976. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10977. * SimpleLogger.cc: flush log file instead of stdout.
  10978. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10979. * main.cc: Fixed command-line option: max-tries
  10980. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  10981. does not equal to seg.sp.
  10982. * DownloadCommand.cc: If EOF is got from the server and the total size
  10983. of file is not zero, then throw DlRetryEx.
  10984. * main.cc: Set the minium value of min-segment-size to 1024.
  10985. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  10986. fails because of a regression since 0.2.0 release.
  10987. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10988. * HttpConnection.cc:
  10989. * common.h: defined the user agent name as macro
  10990. * DownloadEngine.{h, cc}:
  10991. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  10992. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  10993. * main.cc: Download complete/abort message is now generated by main.
  10994. * Makefile.am (SUBDIRS): Add m4.
  10995. (ACLOCAL_AMFLAGS): New variable.
  10996. (EXTRA_DIST): New variable.
  10997. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  10998. * gettext: added gettext functionality
  10999. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. * AbstractCommand.cc:
  11001. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11002. unregister its cuid from SegmentMan.
  11003. * DownloadEngine.cc: .aria2 file was written when a downloading
  11004. failed with errors.
  11005. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11006. Added "User-Agent" header to CONNECT proxy request.
  11007. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11008. properly.
  11009. * Logger.h:
  11010. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11011. * ChunkedEncoding.cc: Added #include directive for strings.h
  11012. * Release 0.2.1
  11013. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. * Util.{h,cc}: added startsWith().
  11015. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11016. Util::endsWith().
  11017. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11018. * common.h: added #include directive of limit.h.
  11019. * DownloadEngine.cc: added #include directive of sys/time.h and
  11020. algorithm.
  11021. * Exception.h: added #include directive of stdio.h.
  11022. * AbstractCommand.h: added #include directive of sys/time.h.
  11023. * DownloadCommand.h: added #include directive of sys/time.h.
  11024. * *.h: added #include directive of common.h to all base classes.
  11025. subclasses' one was removed.
  11026. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11027. does not define these macros.
  11028. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. * Release 0.2.0
  11030. * main.cc:
  11031. * HttpInitiateConnectionCommand.{h,cc}:
  11032. * prefs.h:
  11033. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11034. We can now use GET command in http proxy.
  11035. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11036. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11037. that splits slowest segment of SegmentMan::commands vector.
  11038. This is the default split algorithm of aria2.
  11039. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11040. that splits first segment of SegmentMan::commands vector.
  11041. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11042. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11043. * Segment.h:
  11044. * SegmentMan.cc: Added speed field to Segment.h
  11045. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11046. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11047. * message.h: Change file size related %d to %lld.
  11048. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11049. * FtpInitiateConnectionCommand.{h,cc}:
  11050. * FtpNegotiationCommand.{h,cc}:
  11051. * FtpDownloadCommand.{h,cc}:
  11052. * FtpConnection.{h,cc}: Added FTP support
  11053. * SimpleLogger.cc: Log message now includes time information.
  11054. * main.cc: The value of --http-auth-scheme option is chagned from
  11055. 'BASIC' to 'basic'
  11056. * main.cc: Added --timeout command-line option.
  11057. * main.cc: Added --min-segment-size command-line option.
  11058. * main.cc: Added --max-retries command-line option.
  11059. * prefs.h: option string constants are now defined in prefs.h
  11060. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11061. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11062. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11063. with version 0.1.0's one.
  11064. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. * configure.in: Added --enable-ssl option to configure script.
  11066. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11067. cannot permit absoluteURI as Request-URI.
  11068. * HttpConnection.cc: Added Referer support.
  11069. * main.cc: Added referer command-line option.
  11070. * main.cc: Added rety-wait command-line option.
  11071. * Exception.h: Fixed formating bug in Exception::setMsg()
  11072. * SocketCore.{h,cc}:
  11073. * Socket.{h, cc}:
  11074. * Request.cc:
  11075. * InitiateConnectionCommandFactory.cc:
  11076. * HttpRequestCommand.cc: Added HTTPS support.
  11077. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11078. for SocketCore.
  11079. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11080. size is wrong
  11081. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11082. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11083. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11084. * Release 0.1.0